content
stringlengths 4
1.04M
| lang
stringclasses 358
values | score
int64 0
5
| repo_name
stringlengths 5
114
| repo_path
stringlengths 4
229
| repo_licenses
sequencelengths 1
8
|
---|---|---|---|---|---|
package com.baeldung.demo;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class DemoRestController {
@GetMapping(value = "/welcome")
public ResponseEntity<String> welcomeEndpoint() {
return ResponseEntity.ok("Welcome to Baeldung Spring Boot Demo!");
}
}
| Java | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-artifacts-2/src/main/java/com/baeldung/demo/DemoRestController.java | [
"MIT"
] |
=================================================================
This file was generated from Processor Expert 03.33
project "RTOSDemo", 18/06/2005, 18:00
-----------------------------------------------------------------
There is no signal defined in this project.
Hint: Signals may be defined in the Bean Inspector (advanced or expert view)
=================================================================
=================================================================
SIGNAL LIST
-----------------------------------------------------------------
SIGNAL NAME => PIN NAME
-----------------------------------------------------------------
=================================================================
=================================================================
PIN LIST
-----------------------------------------------------------------
PIN NAME => SIGNAL NAME
-----------------------------------------------------------------
=================================================================
| Standard ML | 0 | JVVJV/FreeRTOS | FreeRTOS/Demo/HCS12_CodeWarrior_small/DOC/RTOSDemo.sig | [
"MIT"
] |
( Generated from test_comments_in.muv by the MUV compiler. )
( https://github.com/revarbat/pymuv )
: _helloworld[ -- ret ]
"Hello Harold!" me @ swap notify
0
;
: __start
"me" match me ! me @ location loc ! trig trigger !
_helloworld
;
| MUF | 3 | revarbat/pymuv | tests/test_comments_cmp.muf | [
"MIT"
] |
(* ::Package:: *)
IntegrationErrorPlot[
errorData_,
names_,
errorKind_,
upperError_: 1,
lowerRelative_: 1.*^-17] :=
With[
{series = Length[names],
errorDataAndEmpty = Append[errorData, {0, 0}],
minWork = Min[First /@ Flatten[errorData, 1]],
maxWork = Max[First /@ Flatten[errorData, 1]],
unit = QuantityUnit@UnitSimplify@Last@Last@Last@errorData,
(*The Mathematica 10 default indexed colour scheme*)
colour = ColorData[97]},
Module[
{kernels = ParallelTable[$KernelID -> i, {i, $KernelCount}],
currentTasks,
temporaryCell},
DynamicModule[
{plots = (
SetSharedVariable[kernels];
SetSharedVariable[currentTasks];
currentTasks = ConstantArray["", Length[kernels]];
PrintTemporary["Rendering " <> errorKind <> ":"];
(*Beware the Jabberwock, my son! |temporaryCell| must be deleted
before we leave the DynamicModule, otherwise it will refer to the
out of scope variable |currentTasks|.*)
temporaryCell = PrintTemporary[Dynamic[Column[currentTasks]]];
Function[
i,
If[i <= series,
currentTasks[[$KernelID /. kernels]] =
names[[i]] <> " (" <> ToString[i] <> "/" <>
ToString[series] <> ")"];
ListLogLogPlot[
errorDataAndEmpty[[i]],
PlotRange -> {{minWork, maxWork},
{lowerRelative upperError, upperError}},
ImageSize -> 1200,
AxesLabel -> {"Evaluations", errorKind <>
" (" <> ToString[unit, TraditionalForm] <> ")"},
PlotStyle -> {colour[i], PointSize[0.001]}]]~ParallelMap~
Range[series + 1]),
visible = Append[ConstantArray[True, series], True]},
NotebookDelete@temporaryCell;
PrintTemporary["Done."];
Dynamic[
Row[
{Show[plots[[Select[Range[series + 1], visible[[#]] &]]]],
SwatchLegend[
If[visible[[#]], colour[#], Transparent] & /@ Range[series],
Toggler[
Dynamic[visible[[#]]],
{True -> names[[#]], False -> names[[#]]}] & /@
Range[series]]}]],
SaveDefinitions -> True]]]
| Mathematica | 5 | tnuvoletta/Principia | mathematica/integration.wl | [
"MIT"
] |
"""The rmvtransport component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/rmvtransport/__init__.py | [
"Apache-2.0"
] |
(ns d.server
(:require [com.appsflyer.donkey.core :as donkey-core]
[com.appsflyer.donkey.server :as donkey-server])
(:gen-class)
(:import (io.vertx.core.impl.cpu CpuCoreSensor)))
(def empty-body
(bytes (byte-array (map (comp byte int) ""))))
(def empty-response
{:status 200
:headers {"content-type" "text/plain"}
:body empty-body})
(defn just-id [req]
(bytes (byte-array (map (comp byte int) (-> :path-params req (get "id"))))))
(defn get-user-id-response [req]
{:status 200
:headers {"content-type" "text/plain"}
:body (just-id req)})
(defn- get-root-handler [_ res _]
(res empty-response))
(defn- get-user-id-handler [req res _]
(res (get-user-id-response req)))
(defn- post-user-handler [_ res _]
(res empty-response))
(def get-root-route {:methods [:get]
:path "/"
:handler get-root-handler})
(def get-user-id-route {:methods [:get]
:path "/user/:id"
:handler get-user-id-handler})
(def post-user-route {:methods [:post]
:path "/user"
:handler post-user-handler})
(defn -main [& _]
(let [concurrency (max 1 (- (CpuCoreSensor/availableProcessors) 1))]
(->
(donkey-core/create-donkey
{:event-loops concurrency})
(donkey-core/create-server {:port 3000
:routes [get-root-route get-user-id-route post-user-route]
:instances concurrency
:compression false
:decompression false
:date-header true
:server-header true
:keep-alive true})
(donkey-server/start-sync)))) | Clojure | 4 | mattiapenati/web-frameworks | clojure/donkey/src/d/server.clj | [
"MIT"
] |
factorial (n) =
if (n == 0)
1
else
n * factorial (n - 1)
print factorial (n) = console.log "factorial #(n): #(factorial (n))"
print factorial 3
print factorial 5
print factorial 10
| PogoScript | 3 | featurist/pogoscript | examples/factorial.pogo | [
"BSD-2-Clause"
] |
"""
23
42
"""
import System
import System.Collections.Generic
interface ListInterface (IList[of int]):
pass
class Impl (List[of int], ListInterface):
pass
class Impl2 (List[of int], IList[of int]):
pass
l = Impl()
l.Add(23)
print l[0]
l2 = Impl2()
l2.Add(42)
print l2[0]
| Boo | 3 | popcatalin81/boo | tests/testcases/regression/BOO-1220-1.boo | [
"BSD-3-Clause"
] |
# Combine existing list of authors with everyone known in git, sort, add header.
tail --lines=+3 AUTHORS > AUTHORS.tmp
git log --format='%aN' | grep -v abraidwood | grep -v Rich-Harris | grep -v ForbesLindesay >> AUTHORS.tmp
echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS
sort -u AUTHORS.tmp >> AUTHORS
rm -f AUTHORS.tmp
| Shell | 3 | joseconstela/meteor | tools/tests/apps/modules/packages/modules-test-package/node_modules/acorn/bin/update_authors.sh | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.http.client.reactive;
import java.io.Closeable;
import java.io.IOException;
import java.net.URI;
import java.nio.ByteBuffer;
import java.util.function.BiFunction;
import java.util.function.Function;
import org.apache.hc.client5.http.cookie.BasicCookieStore;
import org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient;
import org.apache.hc.client5.http.impl.async.HttpAsyncClients;
import org.apache.hc.client5.http.protocol.HttpClientContext;
import org.apache.hc.core5.concurrent.FutureCallback;
import org.apache.hc.core5.http.HttpResponse;
import org.apache.hc.core5.http.HttpStreamResetException;
import org.apache.hc.core5.http.Message;
import org.apache.hc.core5.http.nio.AsyncRequestProducer;
import org.apache.hc.core5.reactive.ReactiveResponseConsumer;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Mono;
import reactor.core.publisher.MonoSink;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.DefaultDataBufferFactory;
import org.springframework.http.HttpMethod;
import org.springframework.util.Assert;
/**
* {@link ClientHttpConnector} implementation for the Apache HttpComponents HttpClient 5.x.
*
* @author Martin Tarjányi
* @author Arjen Poutsma
* @since 5.3
* @see <a href="https://hc.apache.org/index.html">Apache HttpComponents</a>
*/
public class HttpComponentsClientHttpConnector implements ClientHttpConnector, Closeable {
private final CloseableHttpAsyncClient client;
private final BiFunction<HttpMethod, URI, ? extends HttpClientContext> contextProvider;
private DataBufferFactory dataBufferFactory = DefaultDataBufferFactory.sharedInstance;
/**
* Default constructor that creates and starts a new instance of {@link CloseableHttpAsyncClient}.
*/
public HttpComponentsClientHttpConnector() {
this(HttpAsyncClients.createDefault());
}
/**
* Constructor with a pre-configured {@link CloseableHttpAsyncClient} instance.
* @param client the client to use
*/
public HttpComponentsClientHttpConnector(CloseableHttpAsyncClient client) {
this(client, (method, uri) -> HttpClientContext.create());
}
/**
* Constructor with a pre-configured {@link CloseableHttpAsyncClient} instance
* and a {@link HttpClientContext} supplier lambda which is called before each request
* and passed to the client.
* @param client the client to use
* @param contextProvider a {@link HttpClientContext} supplier
*/
public HttpComponentsClientHttpConnector(CloseableHttpAsyncClient client,
BiFunction<HttpMethod, URI, ? extends HttpClientContext> contextProvider) {
Assert.notNull(client, "Client must not be null");
Assert.notNull(contextProvider, "ContextProvider must not be null");
this.contextProvider = contextProvider;
this.client = client;
this.client.start();
}
/**
* Set the buffer factory to use.
*/
public void setBufferFactory(DataBufferFactory bufferFactory) {
this.dataBufferFactory = bufferFactory;
}
@Override
public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri,
Function<? super ClientHttpRequest, Mono<Void>> requestCallback) {
HttpClientContext context = this.contextProvider.apply(method, uri);
if (context.getCookieStore() == null) {
context.setCookieStore(new BasicCookieStore());
}
HttpComponentsClientHttpRequest request = new HttpComponentsClientHttpRequest(method, uri,
context, this.dataBufferFactory);
return requestCallback.apply(request).then(Mono.defer(() -> execute(request, context)));
}
private Mono<ClientHttpResponse> execute(HttpComponentsClientHttpRequest request, HttpClientContext context) {
AsyncRequestProducer requestProducer = request.toRequestProducer();
return Mono.create(sink -> {
ReactiveResponseConsumer reactiveResponseConsumer =
new ReactiveResponseConsumer(new MonoFutureCallbackAdapter(sink, this.dataBufferFactory, context));
this.client.execute(requestProducer, reactiveResponseConsumer, context, null);
});
}
@Override
public void close() throws IOException {
this.client.close();
}
private static class MonoFutureCallbackAdapter
implements FutureCallback<Message<HttpResponse, Publisher<ByteBuffer>>> {
private final MonoSink<ClientHttpResponse> sink;
private final DataBufferFactory dataBufferFactory;
private final HttpClientContext context;
public MonoFutureCallbackAdapter(MonoSink<ClientHttpResponse> sink,
DataBufferFactory dataBufferFactory, HttpClientContext context) {
this.sink = sink;
this.dataBufferFactory = dataBufferFactory;
this.context = context;
}
@Override
public void completed(Message<HttpResponse, Publisher<ByteBuffer>> result) {
HttpComponentsClientHttpResponse response =
new HttpComponentsClientHttpResponse(this.dataBufferFactory, result, this.context);
this.sink.success(response);
}
@Override
public void failed(Exception ex) {
Throwable t = ex;
if (t instanceof HttpStreamResetException) {
HttpStreamResetException httpStreamResetException = (HttpStreamResetException) ex;
t = httpStreamResetException.getCause();
}
this.sink.error(t);
}
@Override
public void cancelled() {
}
}
}
| Java | 5 | spreoW/spring-framework | spring-web/src/main/java/org/springframework/http/client/reactive/HttpComponentsClientHttpConnector.java | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Ockam Node</title>
</head>
<body>
Error
</body>
</html>
| HTML+EEX | 0 | twittner/ockam | implementations/elixir/ockam/ockam_node_web/lib/node_web/templates/error.html.eex | [
"Apache-2.0"
] |
(import
[aliasing [get-best-match]]
[applicationinsights [TelemetryClient]]
[applicationinsights.exceptions [enable]]
[bottle [abort get :as handle-get hook http-date parse-date request redirect response static-file view :as render-view]]
[config [*asset-hash* *banned-agents-page* *debug-mode* *exclude-from-feeds* *feed-css* *feed-ttl* *instrumentation-key* *page-media-base* *page-route-base* *placeholder-image* *site-copyright* *site-description* *site-name* *static-path* *links-page* *stats-address* *stats-port* *store-path* *scaled-media-base* *thumbnail-sizes* *timezone* *root-junk* *redirect-page*]]
[datetime [datetime]]
[dateutil.relativedelta [relativedelta]]
[feeds [render-feed-items]]
[json [dumps]]
[logging [getLogger]]
[models [search get-links get-all get-page-metadata get-latest get-last-update-time get-table-stats]]
[os [environ]]
[os.path [join split]]
[pytz [*utc*]]
[render [render-page]]
[store [asset-exists? asset-path get-page]]
[socket [socket *af-inet* *sock-dgram*]]
[time [gmtime time]]
[transform [apply-transforms inner-html get-link-groups get-mappings get-plaintext-lines]]
[utils [base-url compact-hash compute-hmac get-thumbnail lru-cache ttl-cache report-processing-time trace-flow utc-date]])
(setv log (getLogger --name--))
(setv sock (socket *af-inet* *sock-dgram*))
(setv *redirects* (get-mappings *redirect-page*))
(setv *banned-agents* (get-plaintext-lines *banned-agents-page*))
(setv *footer-links* (get-link-groups *links-page*))
; enable trace capture with AppInsights
(if *instrumentation-key* (enable *instrumentation-key*))
; redirect if trailing slashes
; ban some user agents
(with-decorator
(hook "before_request")
(defn before-request []
(let [[path (get (. request environ) "PATH_INFO")]
[ua (.get (. request headers) "User-Agent" "")]]
(if (in ua *banned-agents*)
(abort (int 401) "Banned."))
(if (and (!= path "/") (= "/" (slice path -1)))
(redirect (slice path 0 -1) (int 301))))))
; grab page metadata or generate a minimal shim based on the last update
(with-decorator
(ttl-cache 30)
(defn get-minimal-metadata [pagename]
(try
(if pagename
(get-page-metadata pagename)
(let [[last (get-last-update-time)]]
{"hash" (str last)
"mtime" last}))
(except [e Exception]
(.error log e)))))
(defn instrumented-processing-time [event]
; timing decorator with AppInsights reporting
(setv client
(if *instrumentation-key*
(TelemetryClient *instrumentation-key*)
nil))
(defn inner [func]
(defn timed-fn [&rest args &kwargs kwargs]
(let [[start (time)]
[result (apply func args kwargs)]
[elapsed (int (* 1000 (- (time) start)))]
[ua (.get (. request headers) "User-Agent" "")]
[ff (.get (. request headers) "X-Forwarded-For" "")]]
(if client
(do
(.track_metric client "Processing Time" elapsed)
(.track_event client
event {"Url" request.url
"User-Agent" ua
"X-Forwarded-For" ff}
{"Processing Time" elapsed})
(.flush client)))
(.set-header response (str "Processing-Time") (+ (str elapsed) "ms"))
result))
timed-fn)
inner)
; HTTP enrichment decorator - note that bottle automatically maps HEAD to GET, so no special handling is required for that.
(defn http-caching [page-key content-type seconds]
(defn inner [func]
(defn wrap-fn [&rest args &kwargs kwargs]
(.set-header response (str "Content-Type") content-type)
(if *debug-mode*
(apply func args kwargs)
(let [[pagename (if page-key (.get kwargs page-key nil) nil)]
[etag-seed (if page-key *asset-hash* (. request url))]
[metadata (get-minimal-metadata pagename)]
[req-headers (. request headers)]
[none-match (.get req-headers "If-None-Match" nil)]
[mod-since (parse-date (.get req-headers "If-Modified-Since" ""))]]
(if metadata
(let [[pragma (if seconds "public" "no-cache, must-revalidate")]
[etag (.format "W/\"{}\"" (compact-hash etag-seed content-type (get metadata "hash")))]]
(if (and mod-since (<= (get metadata "mtime") (.fromtimestamp datetime mod-since)))
(abort (int 304) "Not modified"))
(if (= etag none-match)
(abort (int 304) "Not modified"))
(.set-header response (str "Date") (http-date (gmtime)))
(.set-header response (str "X-sushy-http-caching") "True")
(.set-header response (str "ETag") etag)
(.set-header response (str "Last-Modified") (http-date (get metadata "mtime")))
(.set-header response (str "Expires") (http-date (+ (.now datetime) (apply relativedelta [] {"seconds" seconds}))))
(.set-header response (str "Cache-Control") (.format "{}, max-age={}, s-maxage={}" pragma seconds (* 2 seconds)))
(.set-header response (str "Pragma") pragma)))
(apply func args kwargs))))
wrap-fn)
inner)
; root to /space
(with-decorator
(handle-get "/")
(defn home-page []
(redirect *page-route-base* (int 301))))
; environment dump
(with-decorator
(handle-get "/env")
(report-processing-time)
(http-caching nil "text/html" 0)
(render-view "debug")
(defn debug-dump []
(if *debug-mode*
{"base_url" (base-url)
"environ" (dict environ)
"headers" {"title" "Environment dump"}
"page_route_base" *page-route-base*
"site_description" *site-description*
"site_name" *site-name*}
(abort (int 404) "Page Not Found"))))
; database stats
(with-decorator
(handle-get "/stats")
(report-processing-time)
(http-caching nil "text/html" 0)
(render-view "debug")
(defn debug-dump []
(if *debug-mode*
{"base_url" (base-url)
"environ" (get-table-stats)
"headers" {"title" "Database Statistics"}
"page_route_base" *page-route-base*
"site_description" *site-description*
"site_name" *site-name*}
(abort (int 404) "Page Not Found"))))
; RSS/atom feed
(with-decorator
(handle-get "/atom")
(handle-get "/feed")
(handle-get "/rss")
(instrumented-processing-time "feed")
(http-caching nil "application/atom+xml" *feed-ttl*)
(ttl-cache (/ *feed-ttl* 4))
(render-view "atom")
(defn serve-feed []
(.set-header response (str "Content-Type") "application/atom+xml")
{"base_url" (base-url)
"feed_ttl" *feed-ttl*
"items" (render-feed-items (base-url))
"page_route_base" *page-route-base*
"pubdate" (utc-date (get-last-update-time))
"site_copyright" *site-copyright*
"site_description" *site-description*
"site_name" *site-name*}))
; Sitemap
(with-decorator
(handle-get "/sitemap.xml")
(instrumented-processing-time "sitemap")
(http-caching nil "text/xml" *feed-ttl*)
(ttl-cache *feed-ttl*)
(render-view "sitemap")
(defn serve-sitemap []
(setv (. response content-type) "text/xml")
{"base_url" (base-url)
"items" (get-all)
"page_route_base" *page-route-base*}))
; junk that needs to be at root level
(with-decorator
(handle-get (% "/<filename:re:(%s)>" *root-junk*))
(defn static-root [filename]
(apply static-file [filename] {"root" (join *static-path* "root")})))
; robots.txt
(with-decorator
(handle-get "/robots.txt")
(report-processing-time)
(http-caching nil "text/plain" 3600)
(ttl-cache 3600)
(render-view "robots")
(defn serve-robots []
{"base_url" (base-url)
"page_route_base" *page-route-base*}))
; OpenSearch metadata
(with-decorator
(handle-get "/opensearch.xml")
(report-processing-time)
(http-caching nil "text/xml" 3600)
(ttl-cache 3600)
(render-view "opensearch")
(defn handle-opensearch []
{"base_url" (base-url)
"site_description" *site-description*
"site_name" *site-name*}))
; search
(with-decorator
(handle-get "/search")
(instrumented-processing-time "search")
(http-caching nil "text/html" 30)
(ttl-cache 30 "q")
(render-view "search")
(defn handle-search []
(if (in "q" (.keys (. request query)))
{"base_url" (base-url)
"headers" {}
"page_route_base" *page-route-base*
"query" (. request query q)
"results" (search (. request query q))
"site_description" *site-description*
"site_name" *site-name*
"footer_links" *footer-links*}
{"base_url" (base-url)
"headers" {}
"page_route_base" *page-route-base*
"site_description" *site-description*
"site_name" *site-name*
"footer_links" *footer-links*})))
; static files
(with-decorator
(handle-get "/static/<filename:path>")
(defn static-files [filename]
(apply static-file [filename] {"root" *static-path*})))
; page media
(with-decorator
(handle-get (+ *page-media-base* "/<hash>/<filename:path>"))
(defn page-media [hash filename]
(if (= hash (compute-hmac *asset-hash* *page-media-base* (+ "/" filename)))
(apply static-file [filename] {"root" *store-path*})
(redirect *placeholder-image*))))
; blog index
(with-decorator
(handle-get *page-route-base*)
(report-processing-time)
(http-caching "route-base" "text/html" 3600)
(ttl-cache 60)
(render-view "blog")
(defn blog-homepage []
{"base_url" (base-url)
"body" ""
"headers" {"title" "Home Page"}
"pagename" *site-name*
"page_route_base" *page-route-base*
"site_description" *site-description*
"site_name" *site-name*
"footer_links" *footer-links*}))
; page content
(with-decorator
(handle-get (+ *page-route-base* "/<pagename:path>"))
(report-processing-time)
(http-caching "pagename" "text/html" 3600)
(ttl-cache 30)
(render-view "wiki")
(defn wiki-page [pagename]
(if (in (.lower pagename) *redirects*)
(let [[target (get *redirects* (.lower pagename))]]
(if (or (= "/" (get target 0)) (in "http" target))
(redirect target (int 301))
(redirect (+ *page-route-base* "/" target) (int 301))))
(try
(let [[page (get-page pagename)]
[event (dict (. request headers))]]
(assoc event "url" (. request url))
(if *stats-port*
(.sendto sock (dumps event) (, *stats-address* *stats-port*)))
{"base_url" (base-url)
"body" (inner-html (apply-transforms (render-page page) pagename))
"headers" (:headers page)
"pagename" pagename
"page_route_base" *page-route-base*
"seealso" (list (get-links pagename))
"site_description" *site-description*
"site_name" *site-name*
"footer_links" *footer-links*})
(except [e IOError]
(let [[match (get-best-match pagename)]]
(if (!= match pagename)
(redirect (+ *page-route-base* "/" match) (int 301))
(redirect (+ "/search?q=" pagename)))))))))
; thumbnails
(with-decorator
(handle-get (+ *scaled-media-base* "/<hash>/<x:int>,<y:int><effect:re:(\,(blur|sharpen)|)>/<filename:path>"))
(report-processing-time)
(http-caching nil "image/jpeg" 3600)
(defn thumbnail-image [hash x y effect filename]
(let [[size (, (long x) (long y))]
[eff (if (len effect) (slice effect 1) "")]
[hmac (compute-hmac *asset-hash* *scaled-media-base* (+ (% "/%d,%d%s" (, x y effect)) "/" filename))]]
(.debug log (, size hmac hash effect eff filename))
(if (!= hash hmac)
(abort (int 403) "Invalid Image Request")
(let [[(, pagename asset) (split filename)]]
(.debug log (, pagename asset))
(if (asset-exists? pagename asset)
(let [[buffer (get-thumbnail x y eff (asset-path pagename asset))]
[length (len buffer)]]
(if length
(do
(.set-header response (str "Content-Length") length)
buffer)
(redirect "/static/img/placeholder.png")))
(redirect "/static/img/placeholder.png")))))))
| Hy | 4 | CyberFlameGO/sushy | sushy/routes.hy | [
"MIT"
] |
// @useCaseSensitiveFileNames: false
// @filename: C:/foo/bar/Baz/src/utils.ts
export function exist() {}
// @filename: C:/foo/bar/Baz/src/sample.ts
import { exit } from "./utils.js";
exit() | TypeScript | 2 | monciego/TypeScript | tests/cases/compiler/missingMemberErrorHasShortPath.ts | [
"Apache-2.0"
] |
Setup:
$ . $TESTDIR/setup.sh
$ printf 'foo\n' > ./exitcodes_test.txt
$ printf 'bar\n' >> ./exitcodes_test.txt
Normal matching:
$ ag foo exitcodes_test.txt
1:foo
$ ag zoo exitcodes_test.txt
[1]
Inverted matching:
$ ag -v foo exitcodes_test.txt
2:bar
$ ag -v zoo exitcodes_test.txt
1:foo
2:bar
$ ag -v "foo|bar" exitcodes_test.txt
[1]
| Perl | 3 | kknives/the_silver_searcher | tests/exitcodes.t | [
"Apache-2.0"
] |
do {
print("hello")
} catch MyErr.a(let code),
MyErr.b(let code)
// RUN: %sourcekitd-test -req=format -line=5 -length=1 %s | %FileCheck --strict-whitespace %s
// CHECK: key.sourcetext: ""
| Swift | 2 | gandhi56/swift | test/SourceKit/CodeFormat/indent-trailing/trailing-catch-item-no-comma.swift | [
"Apache-2.0"
] |
#ifndef LibTorch_Lite_h
#define LibTorch_Lite_h
#include <torch/csrc/jit/mobile/import.h>
#include <torch/csrc/jit/mobile/module.h>
#include <torch/script.h>
#endif
| C | 1 | Hacky-DH/pytorch | ios/LibTorch-Lite.h | [
"Intel"
] |
[Desktop Entry]
Type=Application
Name=nnn
Comment=Terminal file manager
Exec=nnn
Terminal=true
Icon=nnn
MimeType=inode/directory
Categories=System;FileTools;FileManager;ConsoleOnly
Keywords=File;Manager;Management;Explorer;Launcher
| desktop | 3 | wk30/nnn | misc/desktop/nnn.desktop | [
"BSD-2-Clause"
] |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
const EmergencyKit = () => (
<Layout>
<SEO title="Emergency Kit" />
<h1>If you click the skip link, the next tab will take you to the "Go back to homepage" link.</h1>
<p>
Make sure you're prepared for the worst. Put together a kit for the most stressful
situations. You'll want something for each of your senses:
</p>
<ol>
<li>
Something to look at (cute pictures, vacation spots, family photos)
</li>
<li>Something to listen to (music, soothing sounds, call a friend)</li>
<li>Something to smell (fresh flowers, an orange, coffee, lotion)</li>
<li>
Something to feel (a soft scarf, sticky tape, stress ball, craft
project)
</li>
<li>Something to taste (candy, lip balm, gum, favorite tea)</li>
</ol>
<Link to="/">Go back to the homepage</Link>
</Layout>
)
export default EmergencyKit
| JavaScript | 3 | Pabelnedved/ghostlocoko | examples/using-reach-skip-nav/src/pages/emergency-kit.js | [
"MIT"
] |
<h1>Listing Books</h1>
<table>
<tr>
<th>Title</th>
<th>Summary</th>
<th></th>
<th></th>
<th></th>
</tr>
<%= for book <- @books do %>
<tr>
<%# comment %>
<td><%= book.title %></td>
<td><%= book.content %></td>
<td><%= link "Show", to: book_path(@conn, :show, book) %></td>
<td><%= link "Edit", to: book_path(@conn, :edit, book) %></td>
<td><%= link "Delete", to: book_path(@conn, :delete, book), method: :delete, data: [confirm: "Are you sure?"] %></td>
</tr>
<% end %>
</table>
<br />
<%= link "New book", to: book_path(@conn, :new) %>
| HTML+EEX | 4 | websharks/ace-builds | demo/kitchen-sink/docs/html_elixir.eex | [
"BSD-3-Clause"
] |
module namespace deepfs = "http://www.deepfs.org/";
declare function deepfs:pe2pn($f as element()+) as xs:string* {
for $e in $f
return fn:string-join(
for $v in $e/ancestor-or-self::*
return if ($v/@root) then '' else fn:data($v/@name), '/')
};
| XQuery | 4 | JensErat/basex | basex-examples/src/main/resources/xml/deepfs.xq | [
"BSD-3-Clause"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const cp = require('child_process');
const fs = require('fs');
const path = require('path');
async function spawn(cmd, args, opts) {
return new Promise((c, e) => {
const child = cp.spawn(cmd, args, { shell: true, stdio: 'inherit', env: process.env, ...opts });
child.on('close', code => code === 0 ? c() : e(`Returned ${code}`));
});
}
async function main() {
await spawn('yarn', [], { cwd: 'extensions' });
for (const extension of fs.readdirSync('extensions')) {
try {
let packageJSON = JSON.parse(fs.readFileSync(path.join('extensions', extension, 'package.json')).toString());
if (!(packageJSON && packageJSON.scripts && packageJSON.scripts['update-grammar'])) {
continue;
}
} catch {
continue;
}
await spawn(`npm`, ['run', 'update-grammar'], { cwd: `extensions/${extension}` });
}
// run integration tests
if (process.platform === 'win32') {
cp.spawn('.\\scripts\\test-integration.bat', [], { env: process.env, stdio: 'inherit' });
} else {
cp.spawn('/bin/bash', ['./scripts/test-integration.sh'], { env: process.env, stdio: 'inherit' });
}
}
if (require.main === module) {
main().catch(err => {
console.error(err);
process.exit(1);
});
}
| JavaScript | 4 | kklt2002/vscode | build/npm/update-all-grammars.js | [
"MIT"
] |
// run-pass
#![allow(dead_code)]
enum E { V16(u16), V32(u32) }
static C: (E, u16, u16) = (E::V16(0xDEAD), 0x600D, 0xBAD);
pub fn main() {
let (_, n, _) = C;
assert!(n != 0xBAD);
assert_eq!(n, 0x600D);
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/consts/const-enum-tuple.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
"1.9.0"
| MoonScript | 0 | fastcoding/lapis | lapis/version.moon | [
"MIT",
"Unlicense"
] |
import math
// Does not build
Point: cover {
x, y: Float
norm ::= (this x pow(2.0f) + this y pow(2.0f)) sqrt()
normToo : Float { get { (this x pow(2.0f) + this y pow(2.0f)) sqrt() } }
}
main: func {
p := (2, 2) as Point
n1 := p norm
n2 := p normToo
if (n1 != n2) {
"Fail: expected n1 == n2, but got %f != %f" printfln(n1, n2)
exit(1)
}
"Pass" println()
}
| ooc | 2 | shamanas/rock | test/compiler/properties/pdfe-cover.ooc | [
"MIT"
] |
#!/bin/sh
PATH=/bin:/usr/bin
TERM=screen
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
TMUX="$TEST_TMUX -Ltest"
$TMUX kill-server 2>/dev/null
TMUX2="$TEST_TMUX -Ltest2"
$TMUX2 kill-server 2>/dev/null
TMP=$(mktemp)
trap "rm -f $TMP" 0 1 15
$TMUX2 -f/dev/null new -d || exit 1
$TMUX2 set -as terminal-overrides ',*:am@' || exit 1
$TMUX2 set -g status-right 'RRR' || exit 1
$TMUX2 set -g status-left 'LLL' || exit 1
$TMUX2 set -g window-status-current-format 'WWW' || exit 1
$TMUX -f/dev/null new -x20 -y2 -d "$TMUX2 attach" || exit 1
sleep 1
$TMUX capturep -p|tail -1 >$TMP || exit 1
$TMUX kill-server 2>/dev/null
$TMUX2 kill-server 2>/dev/null
cat <<EOF|cmp -s $TMP - || exit 1
LLLWWW RR
EOF
exit 0
| Shell | 3 | listx/tmux | regress/am-terminal.sh | [
"ISC"
] |
package com.android.tools.idea.lang.aidl.lexer;
import com.intellij.lexer.*;
import com.intellij.psi.tree.IElementType;
import static com.android.tools.idea.lang.aidl.lexer.AidlTokenTypes.*;
%%
%{
public _AidlLexer() {
this((java.io.Reader)null);
}
%}
%public
%class _AidlLexer
%implements FlexLexer
%function advance
%type IElementType
%unicode
EOL="\r"|"\n"|"\r\n"
LINE_WS=[\ \t\f]
WHITE_SPACE=({LINE_WS}|{EOL})+
COMMENT="//"[^\r\n]*
BLOCK_COMMENT=[/][*][^*]*[*]+([^/*][^*]*[*]+)*[/]
IDVALUE=(0|[1-9][0-9]*)
IDENTIFIER=[_a-zA-Z][_a-zA-Z0-9]*
%%
<YYINITIAL> {
{WHITE_SPACE} { return com.intellij.psi.TokenType.WHITE_SPACE; }
"import" { return IMPORT_KEYWORD; }
"package" { return PACKAGE_KEYWORD; }
"parcelable" { return PARCELABLE_KEYWORD; }
"interface" { return INTERFACE_KEYWORD; }
"flattenable" { return FLATTENABLE_KEYWORD; }
"rpc" { return RPC_KEYWORD; }
"in" { return IN_KEYWORD; }
"out" { return OUT_KEYWORD; }
"inout" { return INOUT_KEYWORD; }
"oneway" { return ONEWAY_KEYWORD; }
"void" { return VOID_KEYWORD; }
"{" { return LCURLY; }
"}" { return RCURLY; }
"(" { return LPARENTH; }
")" { return RPARENTH; }
"[" { return LBRACKET; }
"]" { return RBRACKET; }
"," { return COMMA; }
"=" { return EQUALS; }
";" { return SEMICOLON; }
"<" { return LT; }
">" { return GT; }
"boolean" { return BOOLEAN_KEYWORD; }
"byte" { return BYTE_KEYWORD; }
"char" { return CHAR_KEYWORD; }
"short" { return SHORT_KEYWORD; }
"int" { return INT_KEYWORD; }
"long" { return LONG_KEYWORD; }
"float" { return FLOAT_KEYWORD; }
"double" { return DOUBLE_KEYWORD; }
"ONEWAY" { return ONEWAY; }
{COMMENT} { return COMMENT; }
{BLOCK_COMMENT} { return BLOCK_COMMENT; }
{IDVALUE} { return IDVALUE; }
{IDENTIFIER} { return IDENTIFIER; }
[^] { return com.intellij.psi.TokenType.BAD_CHARACTER; }
}
| JFlex | 4 | phpc0de/idea-android | android-lang/src/com/android/tools/idea/lang/aidl/lexer/_AidlLexer.flex | [
"Apache-2.0"
] |
<% provide :title, @inbound_email.message_id %>
<h1><%= @inbound_email.message_id %>: <%= @inbound_email.status %></h1>
<ul>
<li><%= button_to "Route again", main_app.rails_conductor_inbound_email_reroute_path(@inbound_email), method: :post %></li>
<li><%= button_to "Incinerate", main_app.rails_conductor_inbound_email_incinerate_path(@inbound_email), method: :post %></li>
</ul>
<details>
<summary>Full email source</summary>
<pre><%= @inbound_email.source %></pre>
</details>
<%= link_to "Back to all inbound emails", main_app.rails_conductor_inbound_emails_path %> | HTML+ERB | 3 | jstncarvalho/rails | actionmailbox/app/views/rails/conductor/action_mailbox/inbound_emails/show.html.erb | [
"MIT"
] |
PROGRAM_NAME='SnmpMonitorCommon'
(***********************************************************)
(* FILE CREATED ON: 05/21/2016 AT: 20:18:04 *)
(***********************************************************)
(* FILE_LAST_MODIFIED_ON: 12/12/2016 AT: 12:57:02 *)
(***********************************************************)
(*
This virtual device module must be monitored by a SNAPI
RMS monitor module including RmsNlSnapiComponents;
#DEFINE SNAPI_MONITOR_MODULE;
#INCLUDE 'RmsMonitorCommon';
#INCLUDE 'RmsNlSnapiComponents';
For the RmsMonitorCommon to register the asset in RMS, the physical device or
virtual device module must be ONLINE and channel DATA_INITIALIZED (252)
must be ON (as evaluated by the RegisterAssetWrapper() function).
DEVICE_COMMUNICATING is NOT evaluated during asset registration.
RmsNlSnapiComponents will update the "asset.online" parameter in RMS if the
SNAPI virtual device channel DEVICE_COMMUNICATING (251) changes.
For the "asset.online" parameter to show ONLINE, the physical device or
virtual device module must be ONLINE and DEVICE_COMMUNICATING (251)
must be ON (as evaluated by the GetOnlineSnapiValue() function).
For the "data.initialized" parameter to show TRUE the physical device or
virtual device module must be ONLINE and DATA_INITIALIZED (252)
must be ON (as evaluated by the GetDataInitializedSnapiValue() function).
*)
(***********************************************************)
(* CONSTANT DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_CONSTANT
integer MAX_LEN_STR = 255;
integer MAX_LEN_INTEGER = 5;
integer MAX_LEN_LONG = 10;
integer MAX_LEN_FQDN = 255;
integer MAX_LEN_OID = 1407;
integer MAX_NUM_OID_NODE = 128;
integer MAX_LEN_OID_NODE = MAX_LEN_LONG;
integer MAX_LEN_OCTET_STRING = 65535;
#IF_NOT_DEFINED MAX_NUM_VARBINDS
integer MAX_NUM_VARBINDS = 25; // Number of parameter varbinds to cache
#END_IF
#IF_NOT_DEFINED MAX_LEN_VARBIND_VALUE
integer MAX_LEN_VARBIND_VALUE = 50; // Constrained to maximum size of initialValue in RmsAssetParameter structure as defined in RmsApi
#END_IF
long CONTACT_TIMEOUT = 190; // Default seconds of no contact after which to consider asset to be offline (max time between traps received or SNMPGET polls)
long POLL_INTERVAL = 60; // Default seconds between update SNMP GET messages
long CHANGE_POLL_DELAY = 3; // Seconds after which to request a status update post a change.
integer MAX_LEN_ARRAY_VALUE = MAX_LEN_VARBIND_VALUE;
integer MAX_NUM_ARRAY_SIZE = MAX_NUM_VARBINDS;
integer ARRAY_KEY = 1;
integer ARRAY_VALUE = 2;
integer SNMP_GET_CMD_PARAM_OID = 1;
integer SNMP_GET_CMD_PARAM_COMMUNITY = 2;
integer SNMP_GET_CMD_PARAM_AGENT_ADDR = 3;
integer SNMP_GET_CMD_PARAM_AGENT_PORT = 4;
integer SNMP_GET_CMD_PARAM_REQUEST_ID = 5;
integer SNMP_SET_CMD_PARAM_OID = 1;
integer SNMP_SET_CMD_PARAM_VALUE = 2;
integer SNMP_SET_CMD_PARAM_TYPE = 3;
integer SNMP_SET_CMD_PARAM_COMMUNITY = 4;
integer SNMP_SET_CMD_PARAM_AGENT_ADDR = 5;
integer SNMP_SET_CMD_PARAM_AGENT_PORT = 6;
integer SNMP_SET_CMD_PARAM_REQUEST_ID = 7;
integer SNMP_RESPONSE_PARAM_OID = 1;
integer SNMP_RESPONSE_PARAM_VALUE = 2;
integer SNMP_RESPONSE_PARAM_TYPE = 3;
integer SNMP_RESPONSE_PARAM_COMMUNITY = 4;
integer SNMP_RESPONSE_PARAM_SOURCE_ADDR = 5;
integer SNMP_RESPONSE_PARAM_REQUEST_ID = 6;
integer SNMP_RESPONSE_PARAM_ENTERPRISE = 6;
integer SNMP_RESPONSE_PARAM_AGENT_ADDR = 7;
integer SNMP_RESPONSE_PARAM_GENERIC_TRAP = 8;
integer SNMP_RESPONSE_PARAM_SPECIFIC_TRAP = 9;
integer SNMP_RESPONSE_PARAM_TIME_STAMP = 10;
char ASN1_TAG_INTEGER = $02; // 00000010 Primitive
char ASN1_TAG_OCTET_STRING = $04; // 00000100 Primitive
char ASN1_TAG_NULL = $05; // 00000101 Primitive
char ASN1_TAG_OBJECT_IDENTIFIER = $06; // 00000110 Primitive
char ASN1_TAG_SEQUENCE = $30; // 00110000 Constructed
char ASN1_TAG_IPADDRESS = $40; // 01000000 Application Primitive (SNMP)
char ASN1_TAG_COUNTER = $41; // 01000001 Application Primitive (SNMP)
char ASN1_TAG_GAUGE = $42; // 01000010 Application Primitive (SNMP)
char ASN1_TAG_TIMETICKS = $43; // 01000011 Application Primitive (SNMP)
char ASN1_TAG_OPAQUE = $44; // 01000100 Application Primitive (SNMP)
char OID_sysDescr[] = '1.3.6.1.2.1.1.1.0'; // .iso.org.dod.internet.mgmt.mib-2.system.sysDescr
char OID_sysObjectID[] = '1.3.6.1.2.1.1.2.0'; // .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID
char OID_sysUpTime[] = '1.3.6.1.2.1.1.3.0'; // .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime
char OID_sysName[] = '1.3.6.1.2.1.1.5.0'; // .iso.org.dod.internet.mgmt.mib-2.system.sysName
char OID_enterprises[] = '1.3.6.1.4.1';
(***********************************************************)
(* DATA TYPE DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_TYPE
structure _snmp_agent {
char address[MAX_LEN_FQDN]
integer port
char community[MAX_LEN_OCTET_STRING]
}
(***********************************************************)
(* VARIABLE DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_VARIABLE
volatile _snmp_agent snmp_agent;
volatile char varbinds[MAX_NUM_ARRAY_SIZE][2][MAX_LEN_ARRAY_VALUE];
volatile char requests[MAX_NUM_ARRAY_SIZE][2][MAX_LEN_ARRAY_VALUE];
volatile char contact_last_seen[MAX_LEN_STR];
constant long CONTACT_TIMEOUT_TL = 1;
volatile long CONTACT_TIMEOUT_TIMES[] = {
(CONTACT_TIMEOUT * 1000)
}
constant long STATUS_POLL_TL = 2;
volatile long STATUS_POLL_TIMES[] = {
0,
(POLL_INTERVAL * 1000)
}
(***********************************************************)
(* INCLUDES GO BELOW *)
(***********************************************************)
(***********************************************************)
(* SUBROUTINE/FUNCTION DEFINITIONS GO BELOW *)
(***********************************************************)
define_function integer setProperty(char key[], char value[]) {
if (AMX_DEBUG <= get_log_level()) debug("'setProperty', '(', key, ', ', value, ')'");
switch (key) {
case 'ASSET_NAME': MONITOR_ASSET_NAME = value;
case 'IP_ADDRESS': snmp_agent.address = value;
case 'PORT': snmp_agent.port = atoi(value);
case 'COMMUNITY': snmp_agent.community = value;
case 'CONTACT_TIMEOUT': CONTACT_TIMEOUT_TIMES[1] = atoi(value) * 1000;
case 'POLL_INTERVAL': STATUS_POLL_TIMES[2] = atoi(value) * 1000;
default: {
if (AMX_ERROR <= get_log_level()) debug("'setProperty', '() ', 'error setting value for ', key");
if (AMX_DEBUG <= get_log_level()) debug("'setProperty', '() ', 'returning false'");
return false;
}
}
send_string vdvDeviceModule, "'PROPERTY-', key, ',', value";
if (AMX_DEBUG <= get_log_level()) debug("'setProperty', '() ', 'returning true'");
return true;
}
define_function integer reinitialize() {
stack_var volatile integer i;
if (AMX_DEBUG <= get_log_level()) debug("'reinitialize', '()'");
if (timeline_active(STATUS_POLL_TL)) timeline_kill(STATUS_POLL_TL);
array_clear(varbinds);
off[vdvDeviceModule, DEVICE_COMMUNICATING];
off[vdvDeviceModule, DATA_INITIALIZED];
if (!snmp_agent.port) snmp_agent.port = 161;
if (!length_string(snmp_agent.community)) snmp_agent.community = 'public';
if (!length_string(snmp_agent.address)) {
if (AMX_INFO <= get_log_level()) debug("'reinitialize', '() ', 'SNMP host not configured, and will need to be passed as command parameters.'");
if (AMX_DEBUG <= get_log_level()) debug("'reinitialize', '() ', 'returning false'");
return false;
}
if (STATUS_POLL_TIMES[2] > 0) {
timeline_create(STATUS_POLL_TL, STATUS_POLL_TIMES, length_array(STATUS_POLL_TIMES), TIMELINE_ABSOLUTE, TIMELINE_REPEAT);
} else {
if (timeline_active(STATUS_POLL_TL)) timeline_kill(STATUS_POLL_TL);
if (AMX_DEBUG <= get_log_level()) debug("'reinitialize', '() ', 'status polling timeline is disabled'");
}
if (AMX_DEBUG <= get_log_level()) debug("'reinitialize', '() ', 'returning true'");
return true;
}
#IF_NOT_DEFINED __PRIME_PLAIN_STRING
#DEFINE __PRIME_PLAIN_STRING
define_function char[MAX_LEN_STR] plain_string(char str[MAX_LEN_STR]) {
stack_var volatile integer i;
stack_var volatile char ret[MAX_LEN_STR];
for (i = 1; i <= length_string(str); i++) {
if (
((str[i] >= $30) && (str[i] <= $39)) || // 0-9
((str[i] >= $41) && (str[i] <= $5A)) || // A-Z
((str[i] >= $61) && (str[i] <= $7A)) // a-z
) {
ret = "ret, str[i]";
}
}
return ret;
}
#END_IF
#IF_NOT_DEFINED __PRIME_EXPLODE
#DEFINE __PRIME_EXPLODE
define_function integer explode(char str[], char delim[], char quote[], char parts[][]) {
stack_var volatile integer i;
stack_var volatile integer start, end, quoted;
if (AMX_DEBUG <= get_log_level()) debug("'explode', '("', str, '", "', delim, '", "', quote, '", ', 'parts[', itoa(max_length_array(parts)), '][]', ')'");
start = 1;
while (start <= length_string(str)) {
i++;
if (length_string(quote) && (mid_string(str, start, length_string(quote)) == quote)) { // Consider quoted strings as a single parts
quoted = true;
start = start + length_string(quote); // Move starting position to omit quote
end = find_string(str, quote, start); // Find next quote
} else {
quoted = false;
end = find_string(str, delim, start); // Find next delimiter
}
if ((!end) || (i == max_length_array(parts))) { // Return remainder of string if no further delimiters or quotes are found, or the maximum number of parts have already been found
end = length_string(str) + 1;
}
parts[i] = mid_string(str, start, end - start);
if (AMX_DEBUG <= get_log_level()) debug("'explode', '() ', 'array[', itoa(i), '] ', parts[i]");
start = end + length_string(delim); // Advance past the ending delimiter
if (quoted) start = start + length_string(quote); // Advance past the quote
}
set_length_array(parts, i);
if (AMX_DEBUG <= get_log_level()) debug("'explode', '() ', 'returning array[', itoa(i), ']'");
return i;
}
#END_IF
#IF_NOT_DEFINED __PRIME_LTOA
#DEFINE __PRIME_LTOA
define_function char[MAX_LEN_LONG] ltoa(long l) {
stack_var volatile char ret[MAX_LEN_LONG];
if (AMX_DEBUG <= get_log_level()) debug("'ltoa', '(', 'long', ')'");
if (l < 100000) {
ret = itoa(l);
} else {
ret = "itoa(l / 100000), itoa(l % 100000)"; // Keep itoa input under 16 bits
}
if (AMX_DEBUG <= get_log_level()) debug("'ltoa', '() ', 'returning ', ret");
return ret;
}
#END_IF
#IF_NOT_DEFINED __PRIME_ATOL_UNSIGNED
#DEFINE __PRIME_ATOL_UNSIGNED
define_function long atol_unsigned(char str[]) {
stack_var volatile integer i;
stack_var volatile long l;
if (AMX_DEBUG <= get_log_level()) debug("'atol_unsigned', '(', 'str', ')'");
for (i = 1; i <= length_string(str); i++) {
stack_var volatile integer digit;
if ((str[i] < '0') || (str[i] > '9')) {
if (AMX_DEBUG <= get_log_level()) debug("'atol_unsigned', '() ', 'stopping at non-numerical character "', str[i], '"'");
break;
}
digit = atoi("str[i]");
l = l * 10;
l = l + digit;
}
if (AMX_DEBUG <= get_log_level()) debug("'atol_unsigned', '() ', 'returning ', ltoa(l)");
return l;
}
#END_IF
#IF_NOT_DEFINED __PRIME_ARRAY_FIND
#DEFINE __PRIME_ARRAY_FIND
define_function integer array_find(char array[][][], char key[]) {
stack_var volatile integer i;
if (AMX_DEBUG <= get_log_level()) debug("'array_find', '(', 'array[]', ', ', key, ')'");
for (i = 1; i <= length_array(array); i++) {
if (array[i][ARRAY_KEY] == key) {
if (AMX_DEBUG <= get_log_level()) debug("'array_find', '() ', 'key found. Returning ', itoa(i)");
return i;
}
}
if (AMX_DEBUG <= get_log_level()) debug("'array_find', '() ', 'key could not be found. Returning false.'");
return false;
}
#END_IF
#IF_NOT_DEFINED __PRIME_ARRAY_FIND_VALUE
#DEFINE __PRIME_ARRAY_FIND_VALUE
define_function integer array_find_value(char array[][][], char value[]) {
stack_var volatile integer i;
if (AMX_DEBUG <= get_log_level()) debug("'array_find_value', '(', 'array[]', ', ', value, ')'");
for (i = 1; i <= length_array(array); i++) {
if (array[i][ARRAY_VALUE] == value) {
if (AMX_DEBUG <= get_log_level()) debug("'array_find_value', '() ', 'value found. Returning ', itoa(i)");
return i;
}
}
if (AMX_DEBUG <= get_log_level()) debug("'array_find_value', '() ', 'value could not be found. Returning false.'");
return false;
}
#END_IF
#IF_NOT_DEFINED __PRIME_ARRAY_GET
#DEFINE __PRIME_ARRAY_GET
define_function char[MAX_LEN_ARRAY_VALUE] array_get(char array[][][], char key[]) {
stack_var volatile integer i;
if (AMX_DEBUG <= get_log_level()) debug("'array_get', '(', 'array[]', ', ', key, ')'");
i = array_find(array, key);
if (i) {
if (AMX_DEBUG <= get_log_level()) debug("'array_get', '() ', 'key found at index ', itoa(i), '. Returning ', array[i][ARRAY_VALUE]");
return array[i][ARRAY_VALUE];
} else {
if (AMX_DEBUG <= get_log_level()) debug("'array_get', '() ', 'key could not be found. Returning empty string.'");
return '';
}
}
#END_IF
#IF_NOT_DEFINED __PRIME_ARRAY_SET
#DEFINE __PRIME_ARRAY_SET
define_function integer array_set(char array[][][], char key[], char value[]) {
stack_var volatile integer i;
if (AMX_DEBUG <= get_log_level()) debug("'array_set', '(', 'array[]', ', ', key, ', ', value, ')'");
i = array_find(array, key);
if (!i && (length_array(array) < max_length_array(array))) { // OID does not exist
i = length_array(array) + 1;
set_length_array(array, i);
array[i][ARRAY_KEY] = key;
}
if (!i) {
if (AMX_DEBUG <= get_log_level()) debug("'array_set', '() ', 'varbind could not be stored because array is full. Returning false.'");
return false;
} else {
if (array[i][ARRAY_VALUE] != value) {
array[i][ARRAY_VALUE] = value;
if (AMX_DEBUG <= get_log_level()) debug("'array_set', '() ', 'varbind at index ', itoa(i), ' updated. Returning true.'");
return true;
} else {
if (AMX_DEBUG <= get_log_level()) debug("'array_set', '() ', 'varbind at index ', itoa(i), ' already up-to-date. Returning false.'");
return false;
}
}
}
#END_IF
#IF_NOT_DEFINED __PRIME_ARRAY_CLEAR
#DEFINE __PRIME_ARRAY_CLEAR
define_function integer array_clear(char array[][][]) {
stack_var volatile integer i;
if (AMX_DEBUG <= get_log_level()) debug("'array_clear', '(', 'array[]', ')'");
for (i = 1; i <= length_string(array); i++) {
array[i][ARRAY_VALUE] = '';
}
if (AMX_DEBUG <= get_log_level()) debug("'array_clear', '() ', 'returning'");
}
#END_IF
define_function char[MAX_LEN_LONG] snmp_get(char oid[]) {
stack_var volatile char request_id[MAX_LEN_LONG];
if (AMX_DEBUG <= get_log_level()) debug("'snmp_get', '(', oid, ')'");
request_id = ltoa(random_number(get_timer));
array_set(requests, oid, request_id);
// send_command vdvSNMP, "'SNMPGET-<oid>[,<community>[,<host>[,<port>[,<request id>]]]]'";
send_command vdvSNMP, "'SNMPGET', '-', oid, ',', snmp_agent.community, ',', snmp_agent.address, ',', itoa(snmp_agent.port), ',', request_id";
if (AMX_DEBUG <= get_log_level()) debug("'snmp_get', '() ', 'returning ', itoa(request_id), '.'");
return request_id;
}
define_function char[MAX_LEN_LONG] snmp_set(char oid[], char varbind_type[], char varbind_value[]) {
stack_var volatile char request_id[MAX_LEN_LONG];
if (AMX_DEBUG <= get_log_level()) debug("'snmp_set', '(', oid, ')'");
request_id = ltoa(random_number(get_timer));
array_set(requests, oid, request_id);
// send_command vdvSNMP, "'SNMPSET-<oid>,<type>,<value>[,<community>[,<host>[,<port>[,<request id>]]]]'";
send_command vdvSNMP, "'SNMPSET', '-', oid, ',', varbind_type, ',', varbind_value, ',', snmp_agent.community, ',', snmp_agent.address, ',', itoa(snmp_agent.port), ',', request_id";
if (timeline_active(STATUS_POLL_TL)) {
if (STATUS_POLL_TIMES[2] > CHANGE_POLL_DELAY * 1000) {
if (AMX_DEBUG <= get_log_level()) debug("'snmp_set', '() ', 'requesting status update in ', itoa(CHANGE_POLL_DELAY), ' seconds.'");
timeline_set(STATUS_POLL_TL, STATUS_POLL_TIMES[2] - (CHANGE_POLL_DELAY * 1000))
}
}
if (AMX_DEBUG <= get_log_level()) debug("'snmp_set', '() ', 'returning ', request_id, '.'");
return request_id;
}
define_function char[MAX_LEN_LONG] sysObjectID_to_enterprise(char oid[]) {
stack_var volatile integer pos;
stack_var volatile char enterprise[MAX_LEN_LONG];
if (AMX_DEBUG <= get_log_level()) debug("'sysObjectID_to_enterprise', '(', oid, ')'");
if (remove_string(oid, "OID_enterprises, '.'", 1)) {
pos = find_string(oid, '.', 1);
if (pos) {
enterprise = left_string(oid, pos - 1);
} else {
enterprise = oid;
}
}
if (length_string(enterprise)) {
if (AMX_DEBUG <= get_log_level()) debug("'sysObjectID_to_enterprise', '() ', 'returning ', enterprise");
return enterprise;
} else {
if (AMX_DEBUG <= get_log_level()) debug("'sysObjectID_to_enterprise', '() ', 'manufacturer not found. returning false.'");
return '';
}
}
define_function char[MAX_LEN_OID] sysObjectID_to_model(char oid[]) {
stack_var volatile integer pos;
stack_var volatile char model[MAX_LEN_OID];
if (AMX_DEBUG <= get_log_level()) debug("'sysObjectID_to_model', '(', oid, ')'");
if (remove_string(oid, "OID_enterprises, '.'", 1)) {
if (AMX_DEBUG <= get_log_level()) debug("'sysObjectID_to_model', '() ', 'returning ', oid");
return oid;
} else {
if (AMX_DEBUG <= get_log_level()) debug("'sysObjectID_to_model', '() ', 'model not found. returning false'");
return '';
}
}
define_function char[MAX_LEN_STR] timeticks_to_time(long timeticks) {
stack_var volatile long days, hours, minutes, seconds;
stack_var volatile char ret[MAX_LEN_STR];
if (AMX_DEBUG <= get_log_level()) debug("'timeticks_to_time', '(', ltoa(timeticks), ')'");
days = timeticks / 8640000; // 100 * 60 * 60 * 24
timeticks = timeticks - (days * 8640000);
hours = timeticks / 360000; // 100 * 60 * 60
timeticks = timeticks - (hours * 360000);
minutes = timeticks / 6000; // 100 * 60
timeticks = timeticks - (minutes * 6000);
seconds = timeticks / 100;
if (days) ret = "itoa(days), ' days '";
if (hours || length_string(ret)) ret = "ret, format('%d', hours), ':'";
if (minutes || length_string(ret)) ret = "ret, format('%02d', minutes), ':'";
if (seconds || length_string(ret)) ret = "ret, format('%02d', seconds)";
if (AMX_DEBUG <= get_log_level()) debug("'timeticks_to_time', '() ', 'returning ', ret");
return ret;
}
(***********************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
data_event[vdvDeviceModule] {
command: {
stack_var volatile char cmd[MAX_LEN_STR];
if (AMX_DEBUG <= get_log_level()) debug("'data_event command: ', data.text, ' (', itoa(length_string(data.text)), ' bytes)'");
cmd = remove_string(data.text, '-', 1);
if (cmd) {
cmd = left_string(cmd, length_string(cmd) - 1);
} else {
cmd = data.text;
}
cmd = upper_string(cmd);
switch (cmd) {
case 'DEBUG': {
set_log_level(atoi(data.text));
send_string vdvDeviceModule, "'DEBUG-', data.text";
}
case 'PROPERTY': {
stack_var char parts[2][MAX_LEN_STR];
if (!explode(data.text, ',', '"', parts)) {
if (AMX_ERROR <= get_log_level()) debug("'data_event command property: ', 'Could not parse parameters!'");
} else {
setProperty(parts[1], parts[2]);
}
}
case 'REINIT': {
if (AMX_INFO <= get_log_level()) debug("'data_event command reinit: re-initializing...'");
reinitialize();
}
}
}
}
data_event[vdvSNMP] {
online: {
/*
ONLINE != DEVICE_COMMUNICATING. The connection to the device may be
connectionless (UDP), or the device may be in a fault state and
unresponsive.
*/
reinitialize();
}
offline: {
/*
OFFLINE != DEVICE_COMMUNICATING. The socket to the device may
automatically close when a request completes or is idle for some time.
*/
}
onerror: {
/*
DEVICE_COMMUNICATING status will be automatically updated by the
CONTACT_TIMEOUT_TL timeline, the delay of which will cater for
occasional poor network connectivity or packet loss.
*/
}
string: {
stack_var volatile char cmd[MAX_LEN_STR];
cmd = remove_string(data.text, '-', 1);
if (cmd) {
cmd = left_string(cmd, length_string(cmd) - 1);
} else {
cmd = data.text;
}
cmd = upper_string(cmd);
if ((cmd == 'OID') || (cmd == 'TRAP')) {
stack_var char parts[10][MAX_LEN_STR];
if (!explode(data.text, ',', '"', parts)) {
debug("'data_event string ', cmd, ': ', 'could not parse parameters!'");
} else {
if (
(
(cmd == 'OID') &&
(parts[SNMP_RESPONSE_PARAM_SOURCE_ADDR] == snmp_agent.address) &&
(parts[SNMP_RESPONSE_PARAM_COMMUNITY] == snmp_agent.community) &&
(parts[SNMP_RESPONSE_PARAM_REQUEST_ID] == array_get(requests, parts[SNMP_RESPONSE_PARAM_OID]))
) || (
(cmd == 'TRAP') &&
(parts[SNMP_RESPONSE_PARAM_AGENT_ADDR] == snmp_agent.address) &&
(parts[SNMP_RESPONSE_PARAM_COMMUNITY] == snmp_agent.community)
)
) { // Ensure the agent response is destined for this monitor module
if (AMX_DEBUG <= get_log_level()) debug("'data_event string ', cmd, ': processing varbind'");
contact_last_seen = "date, ' ', time";
// Device has become contactable
if (![vdvDeviceModule, DEVICE_COMMUNICATING]) {
on[vdvDeviceModule, DEVICE_COMMUNICATING];
}
// Attmept to retrieve device information when the devices becomes contactable.
// Here instead of in DEVICE_COMMUNICATING channel event to ensure polling continues until the information received (otherwise would only be requested once)
if (![vdvDeviceModule, DATA_INITIALIZED]) {
if (parts[SNMP_RESPONSE_PARAM_OID] == OID_sysUpTime) { // Only poll the device following a response to OID_sysUpTime queried at a regular interval
snmp_get(OID_sysDescr);
snmp_get(OID_sysObjectID);
snmp_get(OID_sysName);
#IF_DEFINED INCLUDE_DEVICE_INFO_POLL_CALLBACK
device_info_poll_callback();
#END_IF
}
}
if (!timeline_active(CONTACT_TIMEOUT_TL)) {
timeline_create(CONTACT_TIMEOUT_TL, CONTACT_TIMEOUT_TIMES, length_array(CONTACT_TIMEOUT_TIMES), TIMELINE_ABSOLUTE, TIMELINE_ONCE);
} else {
timeline_set(CONTACT_TIMEOUT_TL, 0); // Re-start expiration of last contact
}
if (array_set(varbinds, parts[SNMP_RESPONSE_PARAM_OID], parts[SNMP_RESPONSE_PARAM_VALUE])) { // Avoid processing updates for unchanged values
if (AMX_DEBUG <= get_log_level()) debug("'data_event string ', cmd, ': ', parts[SNMP_RESPONSE_PARAM_OID], ' updated'");
#IF_DEFINED INCLUDE_VARBIND_UPDATED_CALLBACK
varbind_updated_callback(parts[SNMP_RESPONSE_PARAM_OID], parts[SNMP_RESPONSE_PARAM_VALUE]);
#END_IF
}
}
}
}
}
}
timeline_event[STATUS_POLL_TL] {
switch (timeline.sequence) {
case 1: {
snmp_get(OID_sysUpTime);
#IF_DEFINED INCLUDE_DEVICE_STATUS_POLL_CALLBACK
if ([vdvDeviceModule, DATA_INITIALIZED]) {
device_status_poll_callback();
}
#END_IF
}
case 2: {
// Wait...
}
}
}
timeline_event[CONTACT_TIMEOUT_TL] {
stack_var volatile integer i;
/*
Set DEVICE_COMMUNICATING OFF to trigger an "asset.online" update via
RmsNlSnapiComponents.
*/
off[vdvDeviceModule, DEVICE_COMMUNICATING];
/*
Set DATA_INITIALIZED OFF to prevent the RMS monitor module from
re-registering the asset until all data has been received from the device
after a connection is re-established.
This is required to ensure the a new asset is registered when a device
is replaced. Asset registration is triggered from RmsMonitorCommon when
DATA_INITIALIZED is set ON.
*/
off[vdvDeviceModule, DATA_INITIALIZED];
}
channel_event[vdvDeviceModule, DATA_INITIALIZED] {
off: {
// Clear varbind values when the device can no longer be contacted (and may be replaced)
array_clear(varbinds);
}
}
| NetLinx | 5 | marselle001/amx-snmp-library | SnmpMonitorCommon.axi | [
"MIT"
] |
model Context {
config: map[string]any,
certEnvironment: any
}
init(context: Context);
function getTimestamp(): string;
function getConfig(key: string): string;
function getSdkVersion(): string;
function toUrlEncodedRequestBody(bizParams: map[string]any): bytes;
async function readAsJson(response: $Response, method: string): map[string]any;
function toRespModel(respMap: map[string]any): map[string]any;
function getRandomBoundary(): string;
function toMultipartRequestBody(textParams: map[string]string, fileParams: map[string]string, boundary: string): readable;
function generatePage(method: string, systemParams: map[string]string, bizParams: map[string]any, textParams: map[string]string, sign: string): string;
function getMerchantCertSN(): string;
function getAlipayCertSN(respMap:map[string]any): string;
function getAlipayRootCertSN(): string;
function isCertMode(): boolean;
function extractAlipayPublicKey(alipayCertSN:string): string;
function verify(respMap: map[string]any, alipayPublicKey: string): boolean;
function sign(systemParams: map[string]string, bizParams: map[string]any, textParams: map[string]string, merchantPrivateKey: string): string;
function aesEncrypt(plainText: string, encryptKey: string): string;
function aesDecrypt(cipherText: string, encryptKey: string): string;
function generateOrderString(systemParams: map[string]string, bizParams: map[string]any, textParams: map[string]string, sign: string): string;
function concatStr(a: string, b: string): string;
function verifyParams(parameters: map[string]string, publicKey: string): boolean;
function sortMap(randomMap: map[string]string): map[string]string; | Tea | 4 | zenithEver/easysdk | tea/kernel/main.tea | [
"MIT"
] |
/* handle 503s */
if (obj.status >= 500 && obj.status < 600) {
/* deliver stale object if it is available */
if (stale.exists) {
return(deliver_stale);
}
}
# Return empty response in case fastlyCdn/geoip/getaction/ has been processed already
if (obj.status == 980) {
set obj.status = 200;
synthetic {""};
return (deliver);
}
| VCL | 4 | paliarush/fastly-magento2 | etc/vcl_snippets/error.vcl | [
"BSD-3-Clause"
] |
exec("swigtest.start", -1);
try
D = new_D();
catch
swigtesterror();
end
if A_do_x(D) <> 1 then swigtesterror(); end
try
delete_D(D);
catch
swigtesterror();
end
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/abstract_access_runme.sci | [
"BSD-3-Clause"
] |
# module b/utils.nim
let x* = 10
| Nimrod | 0 | JohnAD/Nim | tests/modules/b/utils.nim | [
"MIT"
] |
def g: 43;
| JSONiq | 0 | Abhibob/gojq | cli/testdata/m2/m3.jq | [
"MIT"
] |
<gpx version="1.1">
<trk>
<name><%= DateTime.to_iso8601(@drive.start_date) %></name>
<trkseg>
<%= for position <- @drive.positions do %>
<trkpt lat="<%= position.latitude %>" lon="<%= position.longitude %>">
<ele><%= position.elevation %></ele>
<time><%= DateTime.to_iso8601(position.date) %></time>
</trkpt>
<% end %>
</trkseg>
</trk>
</gpx> | HTML+EEX | 3 | kuma/teslamate | lib/teslamate_web/templates/drive/gpx.xml.eex | [
"MIT"
] |
<base>
{
for $item in /items/item
let $idname := concat($item/id, $item/name)
where $idname != '2second'
order by $item/id
return $item/id
}
</base> | XQuery | 4 | rikvb/camel | components/camel-saxon/src/test/resources/org/apache/camel/component/xquery/flwor-expression.xquery | [
"Apache-2.0"
] |
#
# Copyright (C) 2019 The Falco Authors.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
require(jsonlite)
library(ggplot2)
library(GetoptLong)
initial.options <- commandArgs(trailingOnly = FALSE)
file.arg.name <- "--file="
script.name <- sub(file.arg.name, "", initial.options[grep(file.arg.name, initial.options)])
script.basename <- dirname(script.name)
if (substr(script.basename, 1, 1) != '/') {
script.basename = paste(getwd(), script.basename, sep='/')
}
results = paste(script.basename, "results.json", sep='/')
output = "./output.png"
metric = "cpu"
GetoptLong(
"results=s", "Path to results file",
"benchmark=s", "Benchmark from results file to graph",
"variant=s@", "Variant(s) to include in graph. Can be specified multiple times",
"output=s", "Output graph file",
"metric=s", "Metric to graph. Can be one of (cpu|drops)"
)
if (metric == "cpu") {
data_metric="cpu_usage"
yaxis_label="CPU Usage (%)"
title="Falco/Sysdig/Multimatch CPU Usage: %s"
} else if (metric == "drops") {
data_metric="drop_pct"
yaxis_label="Event Drops (%)"
title="Falco/Sysdig/Multimatch Event Drops: %s"
}
res <- fromJSON(results, flatten=TRUE)
res2 = res[res$benchmark == benchmark & res$variant %in% variant,]
plot <- ggplot(data=res2, aes(x=sample, y=get(data_metric), group=variant, colour=variant)) +
geom_line() +
ylab(yaxis_label) +
xlab("Time") +
ggtitle(sprintf(title, benchmark))
theme(legend.position=c(.2, .88));
print(paste("Writing graph to", output, sep=" "))
ggsave(file=output)
| R | 3 | dnwe/falco | test/plot-live.r | [
"Apache-2.0"
] |
## nghttp2
ifneq ($(USE_BINARYBUILDER_NGHTTP2), 1)
$(SRCCACHE)/nghttp2-$(NGHTTP2_VER).tar.bz2: | $(SRCCACHE)
$(JLDOWNLOAD) $@ https://github.com/nghttp2/nghttp2/releases/download/v$(NGHTTP2_VER)/$(notdir $@)
$(SRCCACHE)/nghttp2-$(NGHTTP2_VER)/source-extracted: $(SRCCACHE)/nghttp2-$(NGHTTP2_VER).tar.bz2
$(JLCHECKSUM) $<
cd $(dir $<) && $(TAR) -jxf $<
touch -c $(SRCCACHE)/nghttp2-$(NGHTTP2_VER)/configure # old target
echo 1 > $@
checksum-nghttp2: $(SRCCACHE)/nghttp2-$(NGHTTP2_VER).tar.bz2
$(JLCHECKSUM) $<
$(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-configured: $(SRCCACHE)/nghttp2-$(NGHTTP2_VER)/source-extracted
mkdir -p $(dir $@)
cd $(dir $@) && \
$(dir $<)/configure $(CONFIGURE_COMMON) --enable-lib-only
echo 1 > $@
$(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-compiled: $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-configured
$(MAKE) -C $(dir $<)
echo 1 > $@
$(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-checked: $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-compiled
ifeq ($(OS),$(BUILD_OS))
$(MAKE) -C $(dir $@) check $(NGHTTP2_CHECK_MFLAGS)
endif
echo 1 > $@
$(eval $(call staged-install, \
nghttp2,nghttp2-$(NGHTTP2_VER), \
MAKE_INSTALL,,, \
$$(INSTALL_NAME_CMD)libnghttp2.$$(SHLIB_EXT) $$(build_shlibdir)/libnghttp2.$$(SHLIB_EXT)))
clean-nghttp2:
-rm $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-configured $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-compiled
-$(MAKE) -C $(BUILDDIR)/nghttp2-$(NGHTTP2_VER) clean
distclean-nghttp2:
-rm -rf $(SRCCACHE)/nghttp2-$(NGHTTP2_VER).tar.bz2 \
$(SRCCACHE)/nghttp2-$(NGHTTP2_VER) \
$(BUILDDIR)/nghttp2-$(NGHTTP2_VER)
get-nghttp2: $(SRCCACHE)/nghttp2-$(NGHTTP2_VER).tar.bz2
extract-nghttp2: $(SRCCACHE)/nghttp2-$(NGHTTP2_VER)/source-extracted
configure-nghttp2: $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-configured
compile-nghttp2: $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-compiled
fastcheck-nghttp2: check-nghttp2
check-nghttp2: $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-checked
else
$(eval $(call bb-install,nghttp2,NGHTTP2,false))
endif
| Makefile | 2 | jonas-schulze/julia | deps/nghttp2.mk | [
"MIT"
] |
/**
* Copyright [2012-2014] PayPal Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
REGISTER $path_jar;
SET pig.exec.reducers.max 999;
SET pig.exec.reducers.bytes.per.reducer 536870912;
SET mapred.job.queue.name $queue_name;
SET job.name 'Shifu Encode: $data_set';
SET io.sort.mb 500;
SET mapred.child.java.opts -Xmx1G;
SET mapred.child.ulimit 2.5G;
SET mapred.reduce.slowstart.completed.maps 0.6;
SET mapred.map.tasks.speculative.execution true;
SET mapred.reduce.tasks.speculative.execution true;
SET mapreduce.map.speculative true;
SET mapreduce.reduce.speculative true;
-- compress outputs
SET mapred.output.compress $is_compress;
SET mapreduce.output.fileoutputformat.compress $is_compress;
SET mapred.map.output.compress.codec org.apache.hadoop.io.compress.GzipCodec;
SET mapreduce.output.fileoutputformat.compress.codec org.apache.hadoop.io.compress.GzipCodec;
SET mapreduce.output.fileoutputformat.compress.type block;
DEFINE IsDataFilterOut ml.shifu.shifu.udf.PurifyDataUDF('$source_type', '$path_model_config', '$path_column_config', '$evalSetName');
DEFINE EncodeData ml.shifu.shifu.udf.EncodeDataUDF('$source_type', '$path_model_config', '$path_column_config', '$evalSetName');
raw = LOAD '$pathRawData' USING PigStorage('$delimiter', '-noschema');
filtered = FILTER raw BY IsDataFilterOut(*);
encodeData = FOREACH filtered GENERATE EncodeData(*);
encodeData = FILTER encodeData BY $0 IS NOT NULL;
encodeData = FOREACH encodeData GENERATE FLATTEN($0);
STORE encodeData INTO '$pathEncodeData' USING PigStorage('$output_delimiter', '-schema');
| PigLatin | 3 | moony320/shifu | src/main/pig/EncodeData.pig | [
"Apache-2.0"
] |
"""Test the Forecast.Solar config flow."""
from unittest.mock import patch
from homeassistant.components.forecast_solar.const import (
CONF_AZIMUTH,
CONF_DAMPING,
CONF_DECLINATION,
CONF_INVERTER_SIZE,
CONF_MODULES_POWER,
DOMAIN,
)
from homeassistant.config_entries import SOURCE_USER
from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import RESULT_TYPE_CREATE_ENTRY, RESULT_TYPE_FORM
from tests.common import MockConfigEntry
async def test_user_flow(hass: HomeAssistant) -> None:
"""Test the full user configuration flow."""
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": SOURCE_USER}
)
assert result.get("type") == RESULT_TYPE_FORM
assert result.get("step_id") == SOURCE_USER
assert "flow_id" in result
with patch(
"homeassistant.components.forecast_solar.async_setup_entry", return_value=True
) as mock_setup_entry:
result2 = await hass.config_entries.flow.async_configure(
result["flow_id"],
user_input={
CONF_NAME: "Name",
CONF_LATITUDE: 52.42,
CONF_LONGITUDE: 4.42,
CONF_AZIMUTH: 142,
CONF_DECLINATION: 42,
CONF_MODULES_POWER: 4242,
},
)
assert result2.get("type") == RESULT_TYPE_CREATE_ENTRY
assert result2.get("title") == "Name"
assert result2.get("data") == {
CONF_LATITUDE: 52.42,
CONF_LONGITUDE: 4.42,
}
assert result2.get("options") == {
CONF_AZIMUTH: 142,
CONF_DECLINATION: 42,
CONF_MODULES_POWER: 4242,
}
assert len(mock_setup_entry.mock_calls) == 1
async def test_options_flow(
hass: HomeAssistant, mock_config_entry: MockConfigEntry
) -> None:
"""Test config flow options."""
mock_config_entry.add_to_hass(hass)
with patch(
"homeassistant.components.forecast_solar.async_setup_entry", return_value=True
):
await hass.config_entries.async_setup(mock_config_entry.entry_id)
await hass.async_block_till_done()
result = await hass.config_entries.options.async_init(mock_config_entry.entry_id)
assert result.get("type") == RESULT_TYPE_FORM
assert result.get("step_id") == "init"
assert "flow_id" in result
result2 = await hass.config_entries.options.async_configure(
result["flow_id"],
user_input={
CONF_API_KEY: "solarPOWER!",
CONF_DECLINATION: 21,
CONF_AZIMUTH: 22,
CONF_MODULES_POWER: 2122,
CONF_DAMPING: 0.25,
CONF_INVERTER_SIZE: 2000,
},
)
assert result2.get("type") == RESULT_TYPE_CREATE_ENTRY
assert result2.get("data") == {
CONF_API_KEY: "solarPOWER!",
CONF_DECLINATION: 21,
CONF_AZIMUTH: 22,
CONF_MODULES_POWER: 2122,
CONF_DAMPING: 0.25,
CONF_INVERTER_SIZE: 2000,
}
| Python | 5 | MrDelik/core | tests/components/forecast_solar/test_config_flow.py | [
"Apache-2.0"
] |
/*
Bulllord Game Engine
Copyright (C) 2010-2017 Trix
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#include "iapentry.h"
#include "system.h"
#if defined BL_PLATFORM_WIN32
#elif defined BL_PLATFORM_UWP
#include <ppl.h>
#include <ppltasks.h>
#include "xml/ezxml.h"
#include "util.h"
#elif defined BL_PLATFORM_OSX
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#if ! __has_feature(objc_arc)
#error add the -fobjc-arc compiler flag
#endif
#import <StoreKit/StoreKit.h>
#elif defined BL_PLATFORM_IOS
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
#if ! __has_feature(objc_arc)
#error add the -fobjc-arc compiler flag
#endif
#elif defined BL_PLATFORM_LINUX
#elif defined BL_PLATFORM_ANDROID
#include <jni.h>
#include <pthread.h>
#include <android/window.h>
#elif defined BL_PLATFORM_WEB
#else
#endif
typedef struct _IAPMember {
BLAnsi aProductID[128];
BLEnum eChannel;
#if defined BL_PLATFORM_OSX
NSMutableArray* pProducts;
SKPaymentTransaction* pUnVerified;
BLVoid(*pPurchaseSubscriber)(BLEnum, BLAnsi*, BLAnsi*);
BLVoid(*pValidationSubscriber)(BLBool);
BLVoid(*pCheckSubscriber)(BLAnsi*, BLAnsi*, BLAnsi*);
#elif defined BL_PLATFORM_IOS
NSMutableArray* pProducts;
SKPaymentTransaction* pUnVerified;
BLVoid(*pPurchaseSubscriber)(BLEnum, BLAnsi*, BLAnsi*);
BLVoid(*pValidationSubscriber)(BLBool);
BLVoid(*pCheckSubscriber)(BLAnsi*, BLAnsi*, BLAnsi*);
#elif defined BL_PLATFORM_ANDROID
jobject* pActivity;
JavaVM* pVM;
JNIEnv* pEnv;
JNIEnv* pLocalEnv;
BLVoid(*pPurchaseSubscriber)(BLEnum, BLAnsi*, BLAnsi*);
BLVoid(*pValidationSubscriber)(BLBool);
BLVoid(*pCheckSubscriber)(BLAnsi*, BLAnsi*, BLAnsi*);
#endif
}_BLIAPMemberExt;
static _BLIAPMemberExt* _PrIapMem = NULL;
#if defined(BL_PLATFORM_IOS) || defined(BL_PLATFORM_OSX)
@interface AppStore : NSObject
@property(nonatomic,copy) NSArray* _availableproducts;
+ (AppStore*)getInstance;
- (void)initiatePaymentRequestForProductWithIdentifier:(NSString*)_ProductID;
- (void)startProductRequest;
- (void)refreshAppStoreReceipt;
@end
@interface AppStore () <SKProductsRequestDelegate, SKPaymentTransactionObserver>
@end
@implementation AppStore
+ (void)initialize{}
+ (AppStore*)getInstance
{
static AppStore* _shared = NULL;
if (!_shared)
{
static dispatch_once_t _oncepredicate;
dispatch_once(&_oncepredicate, ^{
_shared = [[super allocWithZone:nil] init];
[[SKPaymentQueue defaultQueue] addTransactionObserver:_shared];
});
}
return _shared;
}
+ (id)allocWithZone:(NSZone*)_Zone
{
return [self getInstance];
}
- (id)copyWithZone:(NSZone*)_Zone
{
return self;
}
- (void)initiatePaymentRequestForProductWithIdentifier:(NSString*)_ProductID
{
if (!self._availableproducts)
NSLog(@"No products are available. Did you initialize MKStoreKit by calling [[MKStoreKit sharedKit] startProductRequest]?");
if (![SKPaymentQueue canMakePayments])
{
#if defined(BL_PLATFORM_IOS)
UIAlertController*_controller = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"In App Purchasing Disabled", @"") message:NSLocalizedString(@"Check your parental control settings and try again later", @"") preferredStyle:UIAlertControllerStyleAlert];
[[UIApplication sharedApplication].keyWindow.rootViewController
presentViewController:_controller animated:YES completion:nil];
#else
NSAlert* _alert = [[NSAlert alloc] init];
_alert.messageText = NSLocalizedString(@"In App Purchasing Disabled", @"");
_alert.informativeText = NSLocalizedString(@"Check your parental control settings and try again later", @"");
[_alert runModal];
#endif
return;
}
[self._availableproducts enumerateObjectsUsingBlock:^(SKProduct* _ThisProduct, NSUInteger _Idx, BOOL* _Stop)
{
if ([_ThisProduct.productIdentifier isEqualToString:_ProductID]) {
*_Stop = YES;
SKPayment *payment = [SKPayment paymentWithProduct:_ThisProduct];
[[SKPaymentQueue defaultQueue] addPayment:payment];
}
}];
}
- (void)startProductRequest
{
SKProductsRequest* _request = [[SKProductsRequest alloc] initWithProductIdentifiers:[NSSet setWithArray:_PrIapMem->pProducts]];
_request.delegate = self;
[_request start];
}
- (void)productsRequest:(SKProductsRequest*)_Request didReceiveResponse:(SKProductsResponse*)_Response
{
self._availableproducts = _Response.products;
}
- (void)refreshAppStoreReceipt
{
SKReceiptRefreshRequest* _refreshrequest = [[SKReceiptRefreshRequest alloc] initWithReceiptProperties:nil];
_refreshrequest.delegate = self;
[_refreshrequest start];
}
- (void)requestDidFinish:(SKRequest*)_Request
{
if([_Request isKindOfClass:[SKReceiptRefreshRequest class]])
{
NSURL* _receipturl = [[NSBundle mainBundle] appStoreReceiptURL];
if ([[NSFileManager defaultManager] fileExistsAtPath:[_receipturl path]])
{
NSLog(@"App receipt exists. Preparing to validate and update local stores.");
[self startValidatingReceiptsAndUpdateLocalStore];
}
else
{
NSLog(@"Receipt request completed but there is no receipt. The user may have refused to login, or the reciept is missing.");
}
}
}
- (void)startValidatingReceiptsAndUpdateLocalStore
{
[self startValidatingAppStoreReceiptWithCompletionHandler:^(NSArray* _Receipts, NSError* _Error)
{
if (_Receipts && !_Error)
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"com.mugunthkumar.mkstorekit.validatedreceipts" object:nil];
}
else
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"com.mugunthkumar.mkstorekit.failedvalidatingreceipts" object:_Error];
}
}];
}
- (void)startValidatingAppStoreReceiptWithCompletionHandler:(void (^)(NSArray* _Receipts, NSError* _Error)) _CompletionHandler
{
NSURL* _receipturl = [[NSBundle mainBundle] appStoreReceiptURL];
NSError* _receipterror;
BOOL _ispresent = [_receipturl checkResourceIsReachableAndReturnError:&_receipterror];
if (!_ispresent)
{
_CompletionHandler(nil, nil);
return;
}
NSData* _receiptdata = [NSData dataWithContentsOfURL:_receipturl];
if (!_receiptdata)
{
_CompletionHandler(nil, nil);
return;
}
NSError* _error;
NSMutableDictionary* _requestcontents = [NSMutableDictionary dictionaryWithObject:
[_receiptdata base64EncodedStringWithOptions:0] forKey:@"receipt-data"];
NSData* _requestdata = [NSJSONSerialization dataWithJSONObject:_requestcontents options:0 error:&_error];
#ifdef DEBUG
NSMutableURLRequest* _storerequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://sandbox.itunes.apple.com/verifyReceipt"]];
#else
NSMutableURLRequest* _storerequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://buy.itunes.apple.com/verifyReceipt"]];
#endif
[_storerequest setHTTPMethod:@"POST"];
[_storerequest setHTTPBody:_requestdata];
NSURLSession* _session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
[[_session dataTaskWithRequest:_storerequest completionHandler:^(NSData* _Data, NSURLResponse* _Response, NSError* _Error)
{
if (!_Error)
{
NSDictionary* _jsonresponse = [NSJSONSerialization JSONObjectWithData:_Data options:0 error:&_Error];
NSInteger _status = [_jsonresponse[@"status"] integerValue];
if (_jsonresponse[@"receipt"] != [NSNull null])
{
NSString* _originalappversion = _jsonresponse[@"receipt"][@"original_application_version"];
if (nil == _originalappversion)
{
_CompletionHandler(nil, nil);
return;
}
}
else
{
_CompletionHandler(nil, nil);
return;
}
if (_status != 0)
{
_CompletionHandler(nil, [NSError errorWithDomain:@"com.mugunthkumar.mkstorekit" code:_status userInfo:nil]);
return;
}
else
{
if (_jsonresponse[@"receipt"] != [NSNull null])
{
NSArray* _inappreceipts = _jsonresponse[@"receipt"][@"in_app"];
_CompletionHandler(_inappreceipts, nil);
return;
}
else
{
_CompletionHandler(nil, nil);
return;
}
}
}
else
{
_CompletionHandler(nil, _Error);
return;
}
}] resume];
}
- (void)paymentQueue:(SKPaymentQueue*)_Queue updatedTransactions:(NSArray*)_Transactions
{
for (SKPaymentTransaction* _transaction in _Transactions)
{
switch (_transaction.transactionState) {
case SKPaymentTransactionStatePurchasing:
break;
case SKPaymentTransactionStateDeferred:
if (_PrIapMem->pPurchaseSubscriber)
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"com.mugunthkumar.mkstorekit.productspurchasedeferred"
object:_transaction.payment.productIdentifier];
}
break;
case SKPaymentTransactionStateFailed:
if (_PrIapMem->pPurchaseSubscriber)
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"com.mugunthkumar.mkstorekit.productspurchasefailed"
object:_transaction.payment.productIdentifier];
}
else if (_PrIapMem->pCheckSubscriber)
{
_PrIapMem->pCheckSubscriber((BLAnsi*)[_transaction.payment.productIdentifier UTF8String], NULL, NULL);
[[SKPaymentQueue defaultQueue] finishTransaction:_transaction];
}
break;
case SKPaymentTransactionStatePurchased:
case SKPaymentTransactionStateRestored:
{
_PrIapMem->pUnVerified = _transaction;
if (_PrIapMem->pPurchaseSubscriber)
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"com.mugunthkumar.mkstorekit.productspurchased"
object:_transaction.payment.productIdentifier];
}
else if (_PrIapMem->pCheckSubscriber)
{
NSData* _requestdata = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]];
NSError* _error;
NSDictionary* _requestcontents = @{@"receipt-data": [_requestdata base64EncodedStringWithOptions:0]};
NSData* _receipt = [NSJSONSerialization dataWithJSONObject:_requestcontents
options:0
error:&_error];
if (!_requestdata)
{
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_PrIapMem->pCheckSubscriber(NULL, NULL, NULL);
}
else
{
NSString* _receiptstr =[[NSString alloc] initWithData:_receipt encoding:NSUTF8StringEncoding];
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
strcpy(_PrIapMem->aProductID, (BLAnsi*)[_transaction.payment.productIdentifier UTF8String]);
_PrIapMem->pCheckSubscriber((BLAnsi*)[_transaction.payment.productIdentifier UTF8String], (BLAnsi*)[_receiptstr UTF8String], NULL);
}
_PrIapMem->pCheckSubscriber = NULL;
}
}
break;
}
}
}
@end
#elif defined(BL_PLATFORM_ANDROID)
#ifdef __cplusplus
extern "C" {
#endif
BLVoid Jni_productPurchased(JNIEnv* _Env, jobject, jint _Code, jstring _Recept, jstring _Signature)
{
_PrIapMem->pLocalEnv = _Env;
const BLUtf8* _recept8 = (const BLUtf8*)_Env->GetStringUTFChars(_Recept, NULL);
const BLUtf8* _signature8 = (const BLUtf8*)_Env->GetStringUTFChars(_Signature, NULL);
if (_PrIapMem->pPurchaseSubscriber)
{
if (_Code == 0)
_PrIapMem->pPurchaseSubscriber(BL_PE_SUCCEEDED, (BLAnsi*)_recept8, (BLAnsi*)_signature8);
else
{
_PrIapMem->pPurchaseSubscriber(BL_PE_NOTPURCHASED, NULL, NULL);
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
}
}
_Env->ReleaseStringUTFChars(_Signature, (const BLAnsi*)_signature8);
_Env->ReleaseStringUTFChars(_Recept, (const BLAnsi*)_recept8);
_PrIapMem->pPurchaseSubscriber = NULL;
_PrIapMem->pLocalEnv = NULL;
}
BLVoid Jni_validationResult(JNIEnv* _Env, jobject, jint _Code)
{
_PrIapMem->pLocalEnv = _Env;
if (_PrIapMem->pValidationSubscriber)
{
if (_Code == 0)
_PrIapMem->pValidationSubscriber(TRUE);
else
_PrIapMem->pValidationSubscriber(FALSE);
}
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_PrIapMem->pValidationSubscriber = NULL;
_PrIapMem->pLocalEnv = NULL;
}
BLVoid Jni_checkUnfulfilled(JNIEnv* _Env, jobject, jstring _ProductID, jstring _Recept, jstring _Signature)
{
_PrIapMem->pLocalEnv = _Env;
const BLUtf8* _pid8 = (const BLUtf8*)_Env->GetStringUTFChars(_ProductID, NULL);
const BLUtf8* _recept8 = (const BLUtf8*)_Env->GetStringUTFChars(_Recept, NULL);
const BLUtf8* _signature8 = (const BLUtf8*)_Env->GetStringUTFChars(_Signature, NULL);
strcpy(_PrIapMem->aProductID, (const BLAnsi*)_pid8);
_PrIapMem->pCheckSubscriber((BLAnsi*)_pid8, (BLAnsi*)_recept8, (BLAnsi*)_signature8);
_Env->ReleaseStringUTFChars(_ProductID, (const BLAnsi*)_pid8);
_Env->ReleaseStringUTFChars(_Signature, (const BLAnsi*)_signature8);
_Env->ReleaseStringUTFChars(_Recept, (const BLAnsi*)_recept8);
_PrIapMem->pCheckSubscriber = NULL;
_PrIapMem->pLocalEnv = NULL;
}
static JNINativeMethod gMethods[] = {
{"productPurchased", "(ILjava/lang/String;Ljava/lang/String;)V", (void*)Jni_productPurchased},
{"validationResult", "(I)V", (void*)Jni_validationResult},
{"checkUnfulfilled", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", (void*)Jni_checkUnfulfilled}
};
#ifdef __cplusplus
}
#endif
#endif
BLVoid
blIAPOpenEXT(IN BLAnsi* _Version, ...)
{
_PrIapMem = (_BLIAPMemberExt*)malloc(sizeof(_BLIAPMemberExt));
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
va_list _argp;
BLS32 _argno = 0;
BLVoid* _para;
va_start(_argp, _Version);
while (1)
{
_para = va_arg(_argp, void*);
_argno++;
#if defined(BL_PLATFORM_WIN32)
if (_argno == 1);
else break;
#elif defined(BL_PLATFORM_UWP)
break;
#elif defined(BL_PLATFORM_LINUX)
if (_argno == 1);
else if (_argno == 2);
else break;
#elif defined(BL_PLATFORM_ANDROID)
if (_argno == 1)
_PrIapMem->pVM = (JavaVM*)_para;
else if(_argno == 2)
_PrIapMem->pEnv = (JNIEnv*)_para;
else if (_argno == 3)
_PrIapMem->pActivity = (jobject*)_para;
else break;
#elif defined(BL_PLATFORM_OSX)
if (_argno == 1);
else break;
#elif defined(BL_PLATFORM_IOS)
if (_argno == 1);
else break;
#elif defined(BL_PLATFORM_WEB)
if (_argno == 1);
else break;
#endif
}
va_end(_argp);
#if defined(BL_PLATFORM_IOS) || defined(BL_PLATFORM_OSX)
_PrIapMem->pPurchaseSubscriber = NULL;
_PrIapMem->pValidationSubscriber = NULL;
_PrIapMem->pCheckSubscriber = NULL;
_PrIapMem->pUnVerified = NULL;
#elif defined(BL_PLATFORM_ANDROID)
_PrIapMem->pPurchaseSubscriber = NULL;
_PrIapMem->pValidationSubscriber = NULL;
_PrIapMem->pCheckSubscriber = NULL;
JNIEnv* _env = _PrIapMem->pEnv;
_PrIapMem->pVM->AttachCurrentThread(&_env, NULL);
jclass _blcls = _env->GetObjectClass(*_PrIapMem->pActivity);
_env->RegisterNatives(_blcls, gMethods, sizeof(gMethods) / sizeof(gMethods[0]));
_env->DeleteLocalRef(_blcls);
_PrIapMem->pVM->DetachCurrentThread();
_PrIapMem->pLocalEnv = NULL;
#endif
}
BLVoid
blIAPCloseEXT()
{
free(_PrIapMem);
}
BLVoid
blIAPRegistProductsEXT(IN BLEnum _Channel, IN BLAnsi* _Products, IN BLAnsi* _GoogleLicense)
{
_PrIapMem->eChannel = _Channel;
#if defined(BL_PLATFORM_IOS) || defined(BL_PLATFORM_OSX)
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
@autoreleasepool {
_PrIapMem->pProducts = [NSMutableArray array];
BLAnsi* _tmp;
BLAnsi* _products = (BLAnsi*)alloca(strlen(_Products) + 1);
memset(_products, 0, strlen(_Products) + 1);
strcpy(_products, _Products);
_tmp = strtok((BLAnsi*)_products, ",");
while (_tmp)
{
[_PrIapMem->pProducts addObject : [NSString stringWithUTF8String : _tmp]];
_tmp = strtok(NULL, ",");
}
[[AppStore getInstance] startProductRequest];
[[NSNotificationCenter defaultCenter] addObserverForName:@"com.mugunthkumar.mkstorekit.productspurchased" object:nil queue : [[NSOperationQueue alloc] init] usingBlock : ^ (NSNotification* _Note)
{
NSData* _requestdata = [NSData dataWithContentsOfURL : [[NSBundle mainBundle] appStoreReceiptURL]];
NSError* _error;
NSDictionary* _requestcontents = @{@"receipt-data": [_requestdata base64EncodedStringWithOptions:0]};
NSData* _receipt = [NSJSONSerialization dataWithJSONObject : _requestcontents options : 0 error : &_error];
if (!_requestdata && _PrIapMem->pPurchaseSubscriber)
{
_PrIapMem->pPurchaseSubscriber(BL_PE_UNKNOW, NULL, NULL);
_PrIapMem->pPurchaseSubscriber = NULL;
}
else
{
NSString* _receiptstr = [[NSString alloc] initWithData:_receipt encoding : NSUTF8StringEncoding];
if (_PrIapMem->pPurchaseSubscriber)
_PrIapMem->pPurchaseSubscriber(BL_PE_SUCCEEDED, (BLAnsi*)[_receiptstr UTF8String], NULL);
_PrIapMem->pPurchaseSubscriber = NULL;
}
}];
[[NSNotificationCenter defaultCenter] addObserverForName:@"com.mugunthkumar.mkstorekit.productspurchasefailed" object:nil queue : [[NSOperationQueue alloc] init] usingBlock : ^ (NSNotification* _Note)
{
if (_PrIapMem->pPurchaseSubscriber)
_PrIapMem->pPurchaseSubscriber(BL_PE_NOTPURCHASED, NULL, NULL);
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_PrIapMem->pPurchaseSubscriber = NULL;
}];
[[NSNotificationCenter defaultCenter] addObserverForName:@"com.mugunthkumar.mkstorekit.productspurchasedeferred" object:nil queue : [[NSOperationQueue alloc] init] usingBlock : ^ (NSNotification* _Note)
{
if (_PrIapMem->pPurchaseSubscriber)
_PrIapMem->pPurchaseSubscriber(BL_PE_NOTFULFILLED, NULL, NULL);
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_PrIapMem->pPurchaseSubscriber = NULL;
}];
[[NSNotificationCenter defaultCenter] addObserverForName:@"com.mugunthkumar.mkstorekit.failedvalidatingreceipts" object:nil queue : [[NSOperationQueue alloc] init] usingBlock : ^ (NSNotification* _Note)
{
if (_PrIapMem->pValidationSubscriber)
{
_PrIapMem->pValidationSubscriber(FALSE);
if (_PrIapMem->pUnVerified)
[[SKPaymentQueue defaultQueue] finishTransaction:_PrIapMem->pUnVerified];
_PrIapMem->pUnVerified = NULL;
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_PrIapMem->pValidationSubscriber = NULL;
}
}];
[[NSNotificationCenter defaultCenter] addObserverForName:@"com.mugunthkumar.mkstorekit.subscriptionexpired" object:nil queue : [[NSOperationQueue alloc] init] usingBlock : ^ (NSNotification* _Note)
{
if (_PrIapMem->pValidationSubscriber)
{
_PrIapMem->pValidationSubscriber(FALSE);
if (_PrIapMem->pUnVerified)
[[SKPaymentQueue defaultQueue] finishTransaction:_PrIapMem->pUnVerified];
_PrIapMem->pUnVerified = NULL;
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_PrIapMem->pValidationSubscriber = NULL;
}
}];
[[NSNotificationCenter defaultCenter] addObserverForName:@"com.mugunthkumar.mkstorekit.validatedreceipts" object:nil queue : [[NSOperationQueue alloc] init] usingBlock : ^ (NSNotification* _Note)
{
if (_PrIapMem->pValidationSubscriber)
{
_PrIapMem->pValidationSubscriber(TRUE);
if (_PrIapMem->pUnVerified)
[[SKPaymentQueue defaultQueue] finishTransaction:_PrIapMem->pUnVerified];
_PrIapMem->pUnVerified = NULL;
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_PrIapMem->pValidationSubscriber = NULL;
}
}];
}
}
#elif defined(BL_PLATFORM_ANDROID)
if (_PrIapMem->eChannel == BL_PC_GOOGLE)
{
BLBool _attached = FALSE;
JNIEnv* _env = _PrIapMem->pEnv;
if (_PrIapMem->pLocalEnv)
_env = _PrIapMem->pLocalEnv;
else
{
_PrIapMem->pVM->AttachCurrentThread(&_env, NULL);
_PrIapMem->pLocalEnv = _env;
_attached = TRUE;
}
jclass _blcls = _env->GetObjectClass(*_PrIapMem->pActivity);
jmethodID _mid = _env->GetMethodID(_blcls, "setSignature", "(Ljava/lang/String;)V");
jstring _license = _env->NewStringUTF((const BLAnsi*)_GoogleLicense);
_env->CallVoidMethod(*_PrIapMem->pActivity, _mid, _license);
_env->DeleteLocalRef(_blcls);
_env->DeleteLocalRef(_license);
if (_attached)
_PrIapMem->pVM->DetachCurrentThread();
_PrIapMem->pLocalEnv = NULL;
}
#endif
}
BLBool
blIAPPurchaseEXT(IN BLAnsi* _ProductID, IN BLVoid(*_Subscriber)(BLEnum, BLAnsi*, BLAnsi*))
{
if (_PrIapMem->aProductID[0] != 0)
return FALSE;
strcpy(_PrIapMem->aProductID, _ProductID);
#if defined BL_PLATFORM_WIN32
#elif defined BL_PLATFORM_UWP
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
const BLUtf16* _productid16 = blGenUtf16Str((const BLUtf8*)_ProductID);
Platform::String^ _productid = ref new Platform::String((const wchar_t*)_productid16, blUtf16Length(_productid16));
blDeleteUtf16Str((BLUtf16*)_productid16);
auto _dispatcher = Windows::UI::Core::CoreWindow::GetForCurrentThread()->Dispatcher;
_dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::Normal, ref new Windows::UI::Core::DispatchedHandler([_productid, _Subscriber]() {
auto _operation = Windows::ApplicationModel::Store::CurrentApp::RequestProductPurchaseAsync(_productid);
concurrency::create_task(_operation).then([=](concurrency::task< Windows::ApplicationModel::Store::PurchaseResults^> _Task)
{
try {
auto _result = _Task.get();
switch (_result->Status)
{
case Windows::ApplicationModel::Store::ProductPurchaseStatus::NotFulfilled:
_Subscriber(BL_PE_NOTFULFILLED, NULL);
Windows::ApplicationModel::Store::CurrentApp::ReportProductFulfillment(_productid);
break;
case Windows::ApplicationModel::Store::ProductPurchaseStatus::NotPurchased:
_Subscriber(BL_PE_NOTPURCHASED, NULL);
Windows::ApplicationModel::Store::CurrentApp::ReportProductFulfillment(_productid);
break;
case Windows::ApplicationModel::Store::ProductPurchaseStatus::AlreadyPurchased:
_Subscriber(BL_PE_ALREADYPURCHASED, NULL);
Windows::ApplicationModel::Store::CurrentApp::ReportProductFulfillment(_productid);
break;
case Windows::ApplicationModel::Store::ProductPurchaseStatus::Succeeded:
{
concurrency::create_task( Windows::ApplicationModel::Store::CurrentApp::GetProductReceiptAsync(_productid)).then([=](concurrency::task<Platform::String^> _Task)
{
try {
Platform::String^ _receipt = _Task.get();
BLUtf16* _receipt16 = (BLUtf16*)_receipt->Data();
const BLUtf8* _receipt8 = blGenUtf8Str(_receipt16);
_Subscriber(BL_PE_SUCCEEDED, (BLAnsi*)_receipt8, NULL);
blDeleteUtf8Str((BLUtf8*)_receipt8);
}
catch (Platform::Exception^ _E) {
_Subscriber(BL_PE_UNKNOW, NULL, NULL);
}
});
}
break;
default:
_Subscriber(BL_PE_UNKNOW, NULL, NULL);
break;
}
}
catch (Platform::Exception^ _E) {
_Subscriber(BL_PE_UNKNOW, NULL, NULL);
}
});
}));
}
#elif defined BL_PLATFORM_OSX
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
@autoreleasepool {
_PrIapMem->pPurchaseSubscriber = (BLVoid(*)(BLEnum, BLAnsi*, BLAnsi*))_Subscriber;
NSString* _productid = [NSString stringWithUTF8String:_ProductID];
[[AppStore getInstance] initiatePaymentRequestForProductWithIdentifier:_productid];
}
}
#elif defined BL_PLATFORM_IOS
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
@autoreleasepool {
_PrIapMem->pPurchaseSubscriber = (BLVoid(*)(BLEnum, BLAnsi*, BLAnsi*))_Subscriber;
NSString* _productid = [NSString stringWithUTF8String:_ProductID];
[[AppStore getInstance] initiatePaymentRequestForProductWithIdentifier:_productid];
}
}
#elif defined BL_PLATFORM_LINUX
#elif defined BL_PLATFORM_ANDROID
if (_PrIapMem->eChannel == BL_PC_GOOGLE)
{
_PrIapMem->pPurchaseSubscriber = (BLVoid(*)(BLEnum, BLAnsi*, BLAnsi*))_Subscriber;
BLBool _attached = FALSE;
JNIEnv* _env = _PrIapMem->pEnv;
if (_PrIapMem->pLocalEnv)
_env = _PrIapMem->pLocalEnv;
else
{
_PrIapMem->pVM->AttachCurrentThread(&_env, NULL);
_PrIapMem->pLocalEnv = _env;
_attached = TRUE;
}
jclass _blcls = _env->GetObjectClass(*_PrIapMem->pActivity);
jmethodID _mid = _env->GetMethodID(_blcls, "purchase", "(Ljava/lang/String;)V");
jstring _productid = _env->NewStringUTF((const BLAnsi*)_ProductID);
_env->CallVoidMethod(*_PrIapMem->pActivity, _mid, _productid);
_env->DeleteLocalRef(_blcls);
_env->DeleteLocalRef(_productid);
if (_attached)
_PrIapMem->pVM->DetachCurrentThread();
_PrIapMem->pLocalEnv = NULL;
}
#elif defined BL_PLATFORM_WEB
#else
# "error what's the fucking platform"
#endif
return TRUE;
}
BLVoid
blIAPValidationEXT(IN BLVoid(*_Subscriber)(BLBool))
{
#if defined BL_PLATFORM_WIN32
#elif defined BL_PLATFORM_UWP
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
//MS Store—È÷§
//https://msdn.microsoft.com/en-us/library/windows/apps/jj649137.aspx
const BLUtf16* _productid16 = blGenUtf16Str((const BLUtf8*)_PrIapMem->aProductID);
Platform::String^ _productid = ref new Platform::String((const wchar_t*)_productid16, blUtf16Length(_productid16));
blDeleteUtf16Str((BLUtf16*)_productid16);
Windows::ApplicationModel::Store::CurrentApp::ReportProductFulfillment(_productid);
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
}
#elif defined BL_PLATFORM_OSX
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
@autoreleasepool {
_PrIapMem->pValidationSubscriber = (BLVoid(*)(BLBool))_Subscriber;
[[AppStore getInstance] startValidatingReceiptsAndUpdateLocalStore];
}
}
#elif defined BL_PLATFORM_IOS
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
@autoreleasepool {
_PrIapMem->pValidationSubscriber = (BLVoid(*)(BLBool))_Subscriber;
[[AppStore getInstance] startValidatingReceiptsAndUpdateLocalStore];
}
}
#elif defined BL_PLATFORM_LINUX
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
}
#elif defined BL_PLATFORM_ANDROID
if (_PrIapMem->eChannel == BL_PC_GOOGLE)
{
_PrIapMem->pValidationSubscriber = (BLVoid(*)(BLBool))_Subscriber;
BLBool _attached = FALSE;
JNIEnv* _env = _PrIapMem->pEnv;
if (_PrIapMem->pLocalEnv)
_env = _PrIapMem->pLocalEnv;
else
{
_PrIapMem->pVM->AttachCurrentThread(&_env, NULL);
_PrIapMem->pLocalEnv = _env;
_attached = TRUE;
}
jclass _blcls = _env->GetObjectClass(*_PrIapMem->pActivity);
jmethodID _mid = _env->GetMethodID(_blcls, "validation", "()V");
_env->CallVoidMethod(*_PrIapMem->pActivity, _mid);
_env->DeleteLocalRef(_blcls);
if (_attached)
_PrIapMem->pVM->DetachCurrentThread();
_PrIapMem->pLocalEnv = NULL;
}
else
{
}
#elif defined BL_PLATFORM_WEB
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
}
#else
# "error what's the fucking platform"
#endif
}
BLVoid
blIAPCheckUnfulfilledEXT(IN BLVoid(*_Subscriber)(BLAnsi*, BLAnsi*, BLAnsi*))
{
#if defined BL_PLATFORM_WIN32
#elif defined BL_PLATFORM_UWP
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
auto _dispatcher = Windows::UI::Core::CoreWindow::GetForCurrentThread()->Dispatcher;
_dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::Normal, ref new Windows::UI::Core::DispatchedHandler([_Subscriber]()
{
concurrency::create_task(Windows::ApplicationModel::Store::CurrentApp::GetUnfulfilledConsumablesAsync()).then([=](concurrency::task<Windows::Foundation::Collections::IVectorView<Windows::ApplicationModel::Store::UnfulfilledConsumable^>^ > _Task)
{
try {
Windows::Foundation::Collections::IVectorView<Windows::ApplicationModel::Store::UnfulfilledConsumable^>^ _unfulfilled = _Task.get();
for (BLU32 _idx = 0; _idx < _unfulfilled->Size; ++_idx)
{
Windows::ApplicationModel::Store::UnfulfilledConsumable^ _un = _unfulfilled->GetAt(_idx);
concurrency::create_task(Windows::ApplicationModel::Store::CurrentApp::GetProductReceiptAsync(_un->ProductId)).then([=](concurrency::task<Platform::String^> _Task)
{
try {
const BLUtf8* _productid8 = blGenUtf8Str((const BLUtf16*)_un->ProductId->Data());
Platform::String^ _receipt = _Task.get();
BLUtf16* _receipt16 = (BLUtf16*)_receipt->Data();
const BLUtf8* _receipt8 = blGenUtf8Str(_receipt16);
if (blUtf8Length(_receipt8))
{
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
strcpy(_PrIapMem->aProductID, (BLAnsi*)_productid8);
_Subscriber((BLAnsi*)_productid8, (BLAnsi*)_receipt8);
}
else
{
_Subscriber((BLAnsi*)_productid8, NULL);
Windows::ApplicationModel::Store::CurrentApp::ReportProductFulfillment(_un->ProductId);
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
}
blDeleteUtf8Str((BLUtf8*)_productid8);
blDeleteUtf8Str((BLUtf8*)_receipt8);
}
catch (Platform::Exception^ _E) {}
});
break;
}
}
catch (Platform::Exception^ _E) {}
});
}));
}
#elif defined BL_PLATFORM_OSX
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
_PrIapMem->pCheckSubscriber = (BLVoid(*)(BLAnsi*, BLAnsi*, BLAnsi*))_Subscriber;
@autoreleasepool {
NSArray* _transactions = [SKPaymentQueue defaultQueue].transactions;
if (_transactions.count > 0)
{
SKPaymentTransaction* _transaction = [_transactions firstObject];
if (_transaction.transactionState == SKPaymentTransactionStatePurchased || _transaction.transactionState == SKPaymentTransactionStateRestored)
{
_PrIapMem->pUnVerified = _transaction;
NSData* _requestdata = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]];
NSError* _error;
NSDictionary* _requestcontents = @{@"receipt-data": [_requestdata base64EncodedStringWithOptions:0]};
NSData* _receipt = [NSJSONSerialization dataWithJSONObject:_requestcontents options:0 error:&_error];
if (!_requestdata)
{
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_Subscriber(NULL, NULL, NULL);
}
else
{
NSString* _receiptstr =[[NSString alloc] initWithData:_receipt encoding:NSUTF8StringEncoding];
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
strcpy(_PrIapMem->aProductID, (BLAnsi*)[_transaction.payment.productIdentifier UTF8String]);
_Subscriber((BLAnsi*)[_transaction.payment.productIdentifier UTF8String], (BLAnsi*)[_receiptstr UTF8String], NULL);
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
}
}
else
{
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_Subscriber((BLAnsi*)[_transaction.payment.productIdentifier UTF8String], NULL, NULL);
}
}
}
}
#elif defined BL_PLATFORM_IOS
if (_PrIapMem->eChannel == BL_PC_SELF)
{
}
else
{
_PrIapMem->pCheckSubscriber = (BLVoid(*)(BLAnsi*, BLAnsi*, BLAnsi*))_Subscriber;
@autoreleasepool {
NSArray* _transactions = [SKPaymentQueue defaultQueue].transactions;
if (_transactions.count > 0)
{
SKPaymentTransaction* _transaction = [_transactions firstObject];
if (_transaction.transactionState == SKPaymentTransactionStatePurchased || _transaction.transactionState == SKPaymentTransactionStateRestored)
{
_PrIapMem->pUnVerified = _transaction;
NSData* _requestdata = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]];
NSError* _error;
NSDictionary* _requestcontents = @{@"receipt-data": [_requestdata base64EncodedStringWithOptions:0]};
NSData* _receipt = [NSJSONSerialization dataWithJSONObject:_requestcontents options:0 error:&_error];
if (!_requestdata)
{
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_Subscriber(NULL, NULL, NULL);
}
else
{
NSString* _receiptstr =[[NSString alloc] initWithData:_receipt encoding:NSUTF8StringEncoding];
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
strcpy(_PrIapMem->aProductID, (BLAnsi*)[_transaction.payment.productIdentifier UTF8String]);
_Subscriber((BLAnsi*)[_transaction.payment.productIdentifier UTF8String], (BLAnsi*)[_receiptstr UTF8String], NULL);
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
}
}
else
{
memset(_PrIapMem->aProductID, 0, sizeof(_PrIapMem->aProductID));
_Subscriber((BLAnsi*)[_transaction.payment.productIdentifier UTF8String], NULL, NULL);
}
}
}
}
#elif defined BL_PLATFORM_LINUX
#elif defined BL_PLATFORM_ANDROID
if (_PrIapMem->eChannel == BL_PC_GOOGLE)
{
_PrIapMem->pCheckSubscriber = (BLVoid(*)(BLAnsi*, BLAnsi*, BLAnsi*))_Subscriber;
BLBool _attached = FALSE;
JNIEnv* _env = _PrIapMem->pEnv;
if (_PrIapMem->pLocalEnv)
_env = _PrIapMem->pLocalEnv;
else
{
_PrIapMem->pVM->AttachCurrentThread(&_env, NULL);
_PrIapMem->pLocalEnv = _env;
_attached = TRUE;
}
jclass _blcls = _env->GetObjectClass(*_PrIapMem->pActivity);
jmethodID _mid = _env->GetMethodID(_blcls, "checkUnfulfilled", "()V");
_env->CallVoidMethod(*_PrIapMem->pActivity, _mid);
_env->DeleteLocalRef(_blcls);
if (_attached)
_PrIapMem->pVM->DetachCurrentThread();
_PrIapMem->pLocalEnv = NULL;
}
else
{
}
#elif defined BL_PLATFORM_WEB
#else
# "error what's the fucking platform"
#endif
}
| XC | 3 | timgates42/Bulllord-Engine | plugins/iap/iapentry.xc | [
"MIT"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R07d09*/
/*Part A*/
proc iml;
startTime = time();
simulations = 1000;
sampleSize = 20;
/*Part B*/
simulationNumber = 1:simulations;
each = j(simulations,1,sampleSize);
simulationNumber = repeat(simulationNumber,each)`;
/*Part C*/
call randseed(27606);
total = simulations*sampleSize;
beta0 = 5;
beta1 = 2;
xvals = randfun(total,"Uniform");
x = xvals*20;
error = randfun(total,"Normal",0,5);
y = beta0 + beta1*x + error;
/*Part D*/
create sp4r.simulation var {simulationNumber x y};
append;
close sp4r.simulation;
/*Part E*/
submit;
ods select none;
ods output ParameterEstimates=sp4r.params;
proc reg data=sp4r.simulation;
by simulationNumber;
model y=x;
run;
ods select default;
endsubmit;
/*Part F*/
use sp4r.params;
read all var {estimate} where (variable='Intercept') into beta0;
close sp4r.params;
use sp4r.params;
read all var {estimate} where (variable='X') into beta1;
close sp4r.params;
/*Part G*/
mean0 = mean(beta0);
sd0 = std(beta0);
call qntl(percentiles0,beta0,{.025, .975});
mean1 = mean(beta1);
sd1 = std(beta1);
call qntl(percentiles1,beta1,{.025, .975});
out0 = mean0//sd0//percentiles0;
reset noname;
print out0[colname="Beta0"
rowname={"Mean","Standard Deviation","LCL","UCL"}];
out1 = mean1//sd1//percentiles1;
print out1[colname="Beta1"
rowname={"Mean","Standard Deviation","LCL","UCL"}];
total = time() - startTime;
print total[colname="Elapsed Time"];
quit;
| SAS | 5 | snowdj/sas-prog-for-r-users | code/SP4R07d09.sas | [
"CC-BY-4.0"
] |
BwJ | PureBasic | 1 | rajeevsrao/onnx | onnx/backend/test/data/node/test_convinteger_with_padding/test_data_set_0/input_1.pb | [
"MIT"
] |
#ifndef Py_INTERNAL_GENOBJECT_H
#define Py_INTERNAL_GENOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef Py_BUILD_CORE
# error "this header requires Py_BUILD_CORE define"
#endif
/* runtime lifecycle */
extern void _PyAsyncGen_Fini(PyInterpreterState *);
/* other API */
#ifndef WITH_FREELISTS
// without freelists
# define _PyAsyncGen_MAXFREELIST 0
#endif
#ifndef _PyAsyncGen_MAXFREELIST
# define _PyAsyncGen_MAXFREELIST 80
#endif
struct _Py_async_gen_state {
#if _PyAsyncGen_MAXFREELIST > 0
/* Freelists boost performance 6-10%; they also reduce memory
fragmentation, as _PyAsyncGenWrappedValue and PyAsyncGenASend
are short-living objects that are instantiated for every
__anext__() call. */
struct _PyAsyncGenWrappedValue* value_freelist[_PyAsyncGen_MAXFREELIST];
int value_numfree;
struct PyAsyncGenASend* asend_freelist[_PyAsyncGen_MAXFREELIST];
int asend_numfree;
#endif
};
#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_GENOBJECT_H */
| C | 4 | lostbeta/cpython | Include/internal/pycore_genobject.h | [
"0BSD"
] |
$! File: PCSI_PRODUCT_GNV_CURL.COM
$!
$! $Id$
$!
$! This command file packages up the product CURL into a sequential
$! format kit
$!
$! Copyright 2009 - 2020, John Malmberg
$!
$! Permission to use, copy, modify, and/or distribute this software for any
$! purpose with or without fee is hereby granted, provided that the above
$! copyright notice and this permission notice appear in all copies.
$!
$! THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
$! WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
$! MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
$! ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
$! WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
$! ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
$! OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
$!
$! 16-Jun-2009 J.Malmberg
$!
$!=========================================================================
$!
$! Save default
$ default_dir = f$environment("DEFAULT")
$!
$! Put things back on error.
$ on warning then goto all_exit
$!
$!
$ can_build = 1
$ producer = f$trnlnm("GNV_PCSI_PRODUCER")
$ if producer .eqs. ""
$ then
$ write sys$output "GNV_PCSI_PRODUCER logical name has not been set."
$ can_build = 0
$ endif
$ producer_full_name = f$trnlnm("GNV_PCSI_PRODUCER_FULL_NAME")
$ if producer_full_name .eqs. ""
$ then
$ write sys$output -
"GNV_PCSI_PRODUCER_FULL_NAME logical name has not been set."
$ can_build = 0
$ endif
$ stage_root_name = f$trnlnm("STAGE_ROOT")
$ if stage_root_name .eqs. ""
$ then
$ write sys$output "STAGE_ROOT logical name has not been set."
$ can_build = 0
$ endif
$!
$ if (can_build .eq. 0)
$ then
$ write sys$output "Not able to build a kit."
$ goto all_exit
$ endif
$!
$! Make sure that the kit name is up to date for this build
$!----------------------------------------------------------
$ @MAKE_PCSI_CURL_KIT_NAME.COM
$!
$!
$! Make sure that the image is built
$!----------------------------------
$ arch_name = f$edit(f$getsyi("arch_name"),"UPCASE")
$ if f$search("[--.src]curl.exe") .eqs. ""
$ then
$ build_it = 1
$ libfile = "[.packages.vms.''arch_name']curllib.olb"
$ if f$search(libfile) .nes. ""
$ then
$ build_it = 0
$ else
$ ! GNV based build
$ libfile = "[.lib.^.libs]libcurl.a"
$ if f$search(libfile) .nes. ""
$ then
$ build_it = 0;
$ endif
$ endif
$ if build_it .eq. 1
$ then
$ @build_vms list
$ endif
$ @gnv_link_curl.com
$ endif
$!
$! Make sure that the release note file name is up to date
$!---------------------------------------------------------
$ @BUILD_GNV_CURL_RELEASE_NOTES.COM
$!
$!
$! Make sure that the source has been backed up.
$!----------------------------------------------
$ arch_type = f$getsyi("ARCH_NAME")
$ arch_code = f$extract(0, 1, arch_type)
$ @backup_gnv_curl_src.com
$!
$! Regenerate the PCSI description file.
$!--------------------------------------
$ @BUILD_GNV_CURL_PCSI_DESC.COM
$!
$! Regenerate the PCSI Text file.
$!---------------------------------
$ @BUILD_GNV_CURL_PCSI_TEXT.COM
$!
$!
$! Parse the kit name into components.
$!---------------------------------------
$ kit_name = f$trnlnm("GNV_PCSI_KITNAME")
$ if kit_name .eqs. ""
$ then
$ write sys$output "@MAKE_PCSI_CURL_KIT_NAME.COM has not been run."
$ goto all_exit
$ endif
$ producer = f$element(0, "-", kit_name)
$ base = f$element(1, "-", kit_name)
$ product_name = f$element(2, "-", kit_name)
$ mmversion = f$element(3, "-", kit_name)
$ majorver = f$extract(0, 3, mmversion)
$ minorver = f$extract(3, 2, mmversion)
$ updatepatch = f$element(4, "-", kit_name)
$ if updatepatch .eqs. "" then updatepatch = ""
$!
$ version_fao = "!AS.!AS"
$ mmversion = f$fao(version_fao, "''majorver'", "''minorver'")
$ if updatepatch .nes. ""
$ then
$ version = "''mmversion'" + "-" + updatepatch
$ else
$ version = "''mmversion'"
$ endif
$!
$ @stage_curl_install remove
$ @stage_curl_install
$!
$! Move to the base directories
$ set def [--]
$ current_default = f$environment("DEFAULT")
$ my_dir = f$parse(current_default,,,"DIRECTORY") - "[" - "<" - ">" - "]"
$!
$!
$!
$ source = "''default_dir'"
$ src1 = "new_gnu:[usr.bin],"
$ src2 = "new_gnu:[usr.include.curl],"
$ src3 = "new_gnu:[usr.lib],"
$ src4 = "new_gnu:[usr.lib.pkgconfig],"
$ src5 = "new_gnu:[usr.share.man.man1],"
$ src6 = "new_gnu:[usr.share.man.man3],"
$ src7 = "new_gnu:[vms_src],"
$ src8 = "new_gnu:[common_src],"
$ src9 = "prj_root:[''my_dir'],prj_root:[''my_dir'.src]"
$ gnu_src = src1 + src2 + src3 + src4 + src5 + src6 + src7 + src8 + src9
$!
$!
$ base = ""
$ if arch_name .eqs. "ALPHA" then base = "AXPVMS"
$ if arch_name .eqs. "IA64" then base = "I64VMS"
$ if arch_name .eqs. "VAX" then base = "VAXVMS"
$!
$ if base .eqs. "" then exit 44
$!
$ pcsi_option = "/option=noconfirm"
$ if arch_code .eqs. "V"
$ then
$ pcsi_option = ""
$ endif
$!
$!
$product package 'product_name' -
/base='base' -
/producer='producer' -
/source='source' -
/destination=STAGE_ROOT:[KIT] -
/material=('gnu_src','source') -
/format=sequential 'pcsi_option'
$!
$!
$! VAX can not do a compressed kit.
$! ZIP -9 "-V" does a better job, so no reason to normally build a compressed
$! kit.
$!----------------------------------
$if p1 .eqs. "COMPRESSED"
$then
$ if arch_code .nes. "V"
$ then
$ product copy /options=(novalidate, noconfirm) /format=compressed -
'product_name' -
/source=stage_root:[kit]/dest=stage_root:[kit] -
/version='version'/base='base'
$ endif
$endif
$!
$all_exit:
$ set def 'default_dir'
$ exit
| DIGITAL Command Language | 4 | jjatria/curl | packages/vms/pcsi_product_gnv_curl.com | [
"curl"
] |
const MDX_WRAPPERS_LOCATION = `mdx-wrappers-dir`
const MDX_SCOPES_LOCATION = `mdx-scopes-dir`
module.exports = {
MDX_WRAPPERS_LOCATION,
MDX_SCOPES_LOCATION,
}
| JavaScript | 3 | JQuinnie/gatsby | packages/gatsby-plugin-mdx/constants.js | [
"MIT"
] |
create database `x``f"n`; | SQL | 0 | cuishuang/tidb | br/tests/lightning_exotic_filenames/data/xfn-schema-create.sql | [
"Apache-2.0"
] |
? my $context = $main::context;
? $_mt->wrapper_file("wrapper.mt")->(sub {
? my $title = "Built-in and standard class libraries";
<title><?= $title ?> - Documents - JSX</title>
?= $_mt->render_file("header.mt");
?= $_mt->render_file("breadcrumb.mt", [ qw(Documents doc.html) ], [$title]);
<div id="main">
<h2><?= $title ?></h2>
<ul>
<?
use File::Find;
sub to_link {
my ($path) = @_;
$path =~ s{^.*jsxdoc/}{jsxdoc/};
return $path;
}
sub to_name {
my ($path) = @_;
my $name = to_link($path);
$name =~ s{\.html$}{};
return $name;
}
find {
wanted => sub {
return if -d $_;
return unless /\.html$/;
?>
<li><a href="<?= to_link($_) ?>"><?= to_name($_) ?></a></li>
<?
},
no_chdir => 1,
}, 'jsx.github.com/jsxdoc';
?>
</ul>
</div>
? })
| Mathematica | 4 | monkpit/JSX | doc/src/doc/stdlibref.mt | [
"MIT"
] |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnboxedTuples #-}
--------------------------------------------------------------------------------
-- |
-- Module : Foreign.CUDA.Driver.Module.Query
-- Copyright : [2009..2020] Trevor L. McDonell
-- License : BSD
--
-- Querying module attributes for low-level driver interface
--
--------------------------------------------------------------------------------
module Foreign.CUDA.Driver.Module.Query (
-- ** Querying module inhabitants
getFun, getPtr, getTex,
) where
#include "cbits/stubs.h"
{# context lib="cuda" #}
-- Friends
import Foreign.CUDA.Driver.Error
import Foreign.CUDA.Driver.Exec
import Foreign.CUDA.Driver.Marshal ( peekDeviceHandle )
import Foreign.CUDA.Driver.Module.Base
import Foreign.CUDA.Driver.Texture
import Foreign.CUDA.Internal.C2HS
import Foreign.CUDA.Ptr
-- System
import Foreign
import Foreign.C
import Control.Exception ( throwIO )
import Control.Monad ( liftM )
import Data.ByteString.Short ( ShortByteString )
import qualified Data.ByteString.Short as BS
import qualified Data.ByteString.Short.Internal as BI
import qualified Data.ByteString.Internal as BI
import Prelude as P
import GHC.Exts
import GHC.Base ( IO(..) )
--------------------------------------------------------------------------------
-- Querying module attributes
--------------------------------------------------------------------------------
-- |
-- Returns a function handle.
--
-- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MODULE.html#group__CUDA__MODULE_1ga52be009b0d4045811b30c965e1cb2cf>
--
{-# INLINEABLE getFun #-}
getFun :: Module -> ShortByteString -> IO Fun
getFun !mdl !fn = resultIfFound "function" fn =<< cuModuleGetFunction mdl fn
{-# INLINE cuModuleGetFunction #-}
{# fun unsafe cuModuleGetFunction
{ alloca- `Fun' peekFun*
, useModule `Module'
, useAsCString* `ShortByteString'
}
-> `Status' cToEnum #}
where
peekFun = liftM Fun . peek
-- |
-- Return a global pointer, and size of the global (in bytes).
--
-- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MODULE.html#group__CUDA__MODULE_1gf3e43672e26073b1081476dbf47a86ab>
--
{-# INLINEABLE getPtr #-}
getPtr :: Module -> ShortByteString -> IO (DevicePtr a, Int)
getPtr !mdl !name = do
(!status,!dptr,!bytes) <- cuModuleGetGlobal mdl name
resultIfFound "global" name (status,(dptr,bytes))
{-# INLINE cuModuleGetGlobal #-}
{# fun unsafe cuModuleGetGlobal
{ alloca- `DevicePtr a' peekDeviceHandle*
, alloca- `Int' peekIntConv*
, useModule `Module'
, useAsCString* `ShortByteString'
}
-> `Status' cToEnum #}
-- |
-- Return a handle to a texture reference. This texture reference handle
-- should not be destroyed, as the texture will be destroyed automatically
-- when the module is unloaded.
--
-- <http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__MODULE.html#group__CUDA__MODULE_1g9607dcbf911c16420d5264273f2b5608>
--
{-# INLINEABLE getTex #-}
getTex :: Module -> ShortByteString -> IO Texture
getTex !mdl !name = resultIfFound "texture" name =<< cuModuleGetTexRef mdl name
{-# INLINE cuModuleGetTexRef #-}
{# fun unsafe cuModuleGetTexRef
{ alloca- `Texture' peekTex*
, useModule `Module'
, useAsCString* `ShortByteString'
}
-> `Status' cToEnum #}
--------------------------------------------------------------------------------
-- Internal
--------------------------------------------------------------------------------
{-# INLINE resultIfFound #-}
resultIfFound :: String -> ShortByteString -> (Status, a) -> IO a
resultIfFound kind name (!status,!result) =
case status of
Success -> return result
NotFound -> cudaErrorIO (kind ++ ' ' : describe status ++ ": " ++ unpack name)
_ -> throwIO (ExitCode status)
-- Utilities
-- ---------
-- [Short]ByteStrings are not null-terminated, so can't be passed directly to C.
--
-- unsafeUseAsCString :: ShortByteString -> CString
-- unsafeUseAsCString (BI.SBS ba#) = Ptr (byteArrayContents# ba#)
{-# INLINE useAsCString #-}
useAsCString :: ShortByteString -> (CString -> IO a) -> IO a
useAsCString (BI.SBS ba#) action = IO $ \s0 ->
case sizeofByteArray# ba# of { n# ->
case newPinnedByteArray# (n# +# 1#) s0 of { (# s1, mba# #) ->
case byteArrayContents# (unsafeCoerce# mba#) of { addr# ->
case copyByteArrayToAddr# ba# 0# addr# n# s1 of { s2 ->
case writeWord8OffAddr# addr# n# 0## s2 of { s3 ->
case action (Ptr addr#) of { IO action' ->
case action' s3 of { (# s4, r #) ->
case touch# mba# s4 of { s5 ->
(# s5, r #)
}}}}}}}}
{-# INLINE unpack #-}
unpack :: ShortByteString -> [Char]
unpack = P.map BI.w2c . BS.unpack
| C2hs Haskell | 5 | jmatsushita/cuda | src/Foreign/CUDA/Driver/Module/Query.chs | [
"BSD-3-Clause"
] |
# The purpose of this test is to exercise weird code paths for the well-formed
# type check
{ example0: \r -> (r : forall (a : Fields) . forall (b : Type) . { a })
, example1: \u -> (u : forall (a : Alternatives) . forall (b : Type) . < a >)
}
| Grace | 3 | DebugSteven/grace | tasty/data/complex/well-formed-input.grace | [
"BSD-3-Clause"
] |
union U {
var x: int;
var y: real;
}
proc main() {
var uu = new U(y=20.0);
writeln(uu);
}
| Chapel | 3 | jhh67/chapel | test/types/unions/union-init2.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
KIDS Distribution saved on Apr 30, 2015@13:14:31
Version 8
**KIDS**:HDI*1.0*14^
**INSTALL NAME**
HDI*1.0*14
"BLD",9232,0)
HDI*1.0*14^HEALTH DATA & INFORMATICS^0^3150430^y
"BLD",9232,1,0)
^^1^1^3150123^
"BLD",9232,1,1,0)
See National Patch Module for details.
"BLD",9232,4,0)
^9.64PA^^
"BLD",9232,6)
3^
"BLD",9232,6.3)
24
"BLD",9232,"INIT")
POST^HDI1014A
"BLD",9232,"KRN",0)
^9.67PA^779.2^20
"BLD",9232,"KRN",.4,0)
.4
"BLD",9232,"KRN",.401,0)
.401
"BLD",9232,"KRN",.402,0)
.402
"BLD",9232,"KRN",.403,0)
.403
"BLD",9232,"KRN",.5,0)
.5
"BLD",9232,"KRN",.84,0)
.84
"BLD",9232,"KRN",3.6,0)
3.6
"BLD",9232,"KRN",3.8,0)
3.8
"BLD",9232,"KRN",9.2,0)
9.2
"BLD",9232,"KRN",9.8,0)
9.8
"BLD",9232,"KRN",9.8,"NM",0)
^9.68A^3^3
"BLD",9232,"KRN",9.8,"NM",1,0)
HDI1014A^^0^B6536981
"BLD",9232,"KRN",9.8,"NM",2,0)
HDI1014B^^0^B3231269
"BLD",9232,"KRN",9.8,"NM",3,0)
HDISVAP^^0^B6261884
"BLD",9232,"KRN",9.8,"NM","B","HDI1014A",1)
"BLD",9232,"KRN",9.8,"NM","B","HDI1014B",2)
"BLD",9232,"KRN",9.8,"NM","B","HDISVAP",3)
"BLD",9232,"KRN",19,0)
19
"BLD",9232,"KRN",19.1,0)
19.1
"BLD",9232,"KRN",101,0)
101
"BLD",9232,"KRN",409.61,0)
409.61
"BLD",9232,"KRN",771,0)
771
"BLD",9232,"KRN",779.2,0)
779.2
"BLD",9232,"KRN",870,0)
870
"BLD",9232,"KRN",8989.51,0)
8989.51
"BLD",9232,"KRN",8989.52,0)
8989.52
"BLD",9232,"KRN",8994,0)
8994
"BLD",9232,"KRN","B",.4,.4)
"BLD",9232,"KRN","B",.401,.401)
"BLD",9232,"KRN","B",.402,.402)
"BLD",9232,"KRN","B",.403,.403)
"BLD",9232,"KRN","B",.5,.5)
"BLD",9232,"KRN","B",.84,.84)
"BLD",9232,"KRN","B",3.6,3.6)
"BLD",9232,"KRN","B",3.8,3.8)
"BLD",9232,"KRN","B",9.2,9.2)
"BLD",9232,"KRN","B",9.8,9.8)
"BLD",9232,"KRN","B",19,19)
"BLD",9232,"KRN","B",19.1,19.1)
"BLD",9232,"KRN","B",101,101)
"BLD",9232,"KRN","B",409.61,409.61)
"BLD",9232,"KRN","B",771,771)
"BLD",9232,"KRN","B",779.2,779.2)
"BLD",9232,"KRN","B",870,870)
"BLD",9232,"KRN","B",8989.51,8989.51)
"BLD",9232,"KRN","B",8989.52,8989.52)
"BLD",9232,"KRN","B",8994,8994)
"BLD",9232,"QUES",0)
^9.62^^
"BLD",9232,"REQB",0)
^9.611^2^2
"BLD",9232,"REQB",1,0)
HDI*1.0*6^2
"BLD",9232,"REQB",2,0)
XU*8.0*654^2
"BLD",9232,"REQB","B","HDI*1.0*6",1)
"BLD",9232,"REQB","B","XU*8.0*654",2)
"INIT")
POST^HDI1014A
"MBREQ")
0
"PKG",552,-1)
1^1
"PKG",552,0)
HEALTH DATA & INFORMATICS^HDI^Data Standardization
"PKG",552,20,0)
^9.402P^^
"PKG",552,22,0)
^9.49I^1^1
"PKG",552,22,1,0)
1.0^3050426^3050922^11862
"PKG",552,22,1,"PAH",1,0)
14^3150430^1788
"PKG",552,22,1,"PAH",1,1,0)
^^1^1^3150430
"PKG",552,22,1,"PAH",1,1,1,0)
See National Patch Module for details.
"QUES","XPF1",0)
Y
"QUES","XPF1","??")
^D REP^XPDH
"QUES","XPF1","A")
Shall I write over your |FLAG| File
"QUES","XPF1","B")
YES
"QUES","XPF1","M")
D XPF1^XPDIQ
"QUES","XPF2",0)
Y
"QUES","XPF2","??")
^D DTA^XPDH
"QUES","XPF2","A")
Want my data |FLAG| yours
"QUES","XPF2","B")
YES
"QUES","XPF2","M")
D XPF2^XPDIQ
"QUES","XPI1",0)
YO
"QUES","XPI1","??")
^D INHIBIT^XPDH
"QUES","XPI1","A")
Want KIDS to INHIBIT LOGONs during the install
"QUES","XPI1","B")
NO
"QUES","XPI1","M")
D XPI1^XPDIQ
"QUES","XPM1",0)
PO^VA(200,:EM
"QUES","XPM1","??")
^D MG^XPDH
"QUES","XPM1","A")
Enter the Coordinator for Mail Group '|FLAG|'
"QUES","XPM1","B")
"QUES","XPM1","M")
D XPM1^XPDIQ
"QUES","XPO1",0)
Y
"QUES","XPO1","??")
^D MENU^XPDH
"QUES","XPO1","A")
Want KIDS to Rebuild Menu Trees Upon Completion of Install
"QUES","XPO1","B")
NO
"QUES","XPO1","M")
D XPO1^XPDIQ
"QUES","XPZ1",0)
Y
"QUES","XPZ1","??")
^D OPT^XPDH
"QUES","XPZ1","A")
Want to DISABLE Scheduled Options, Menu Options, and Protocols
"QUES","XPZ1","B")
NO
"QUES","XPZ1","M")
D XPZ1^XPDIQ
"QUES","XPZ2",0)
Y
"QUES","XPZ2","??")
^D RTN^XPDH
"QUES","XPZ2","A")
Want to MOVE routines to other CPUs
"QUES","XPZ2","B")
NO
"QUES","XPZ2","M")
D XPZ2^XPDIQ
"RTN")
3
"RTN","HDI1014A")
0^1^B6536981
"RTN","HDI1014A",1,0)
HDI1014A ;SLC/AJB - PATCH 14 POST INSTALL;04/28/2015
"RTN","HDI1014A",2,0)
;;1.0;HEALTH DATA & INFORMATICS;**14**;Feb 22, 2005;Build 24
"RTN","HDI1014A",3,0)
;
"RTN","HDI1014A",4,0)
POST ;
"RTN","HDI1014A",5,0)
N DOMAIN,HDIDOM,HDIERROR,HDIMSG
"RTN","HDI1014A",6,0)
;
"RTN","HDI1014A",7,0)
S HDIMSG(1)="Post-Installation (POST^HDI1014A) will now be run."
"RTN","HDI1014A",8,0)
S HDIMSG(2)=" "
"RTN","HDI1014A",9,0)
D MES^XPDUTL(.HDIMSG) K HDIMSG
"RTN","HDI1014A",10,0)
;
"RTN","HDI1014A",11,0)
S DOMAIN="IMMUNIZATIONS" ; domain to be added to HDIS DOMAIN File #7115.1
"RTN","HDI1014A",12,0)
;
"RTN","HDI1014A",13,0)
; add domain
"RTN","HDI1014A",14,0)
I '+$$UPDTDOM^HDISVCUT(DOMAIN) D Q
"RTN","HDI1014A",15,0)
. D MES^XPDUTL("***** Error adding the "_DOMAIN_" domain to the HDIS DOMAIN FILE #7115.1."),PSTHALT("")
"RTN","HDI1014A",16,0)
;
"RTN","HDI1014A",17,0)
; get domain IEN
"RTN","HDI1014A",18,0)
I '+$$GETIEN^HDISVF09(DOMAIN,.HDIDOM) D Q
"RTN","HDI1014A",19,0)
. D MES^XPDUTL("***** Error retrieving the IEN for the "_DOMAIN_" domain."),PSTHALT("")
"RTN","HDI1014A",20,0)
;
"RTN","HDI1014A",21,0)
; verify domain IEN
"RTN","HDI1014A",22,0)
I '+HDIDOM D Q
"RTN","HDI1014A",23,0)
. D MES^XPDUTL("***** Error verifying the IEN for the "_DOMAIN_" domain."),PSTHALT("")
"RTN","HDI1014A",24,0)
;
"RTN","HDI1014A",25,0)
; get files & fields to be added to File #7115.6
"RTN","HDI1014A",26,0)
N DATA,LINE F LINE=1:1 S DATA=$P($T(DATA+LINE),";;",2) Q:DATA="" D
"RTN","HDI1014A",27,0)
. N FILE,FIELD,HDIDATA,HDIERMSG
"RTN","HDI1014A",28,0)
. S FILE=$P(DATA,U),FIELD=$P(DATA,U,2)
"RTN","HDI1014A",29,0)
. I +$$GETIEN^HDISVF05(FILE,FIELD) Q ; quit if entry already exists
"RTN","HDI1014A",30,0)
. S HDIDATA(FILE)=FIELD
"RTN","HDI1014A",31,0)
. ; add entry to HDIS FILE/FIELD File #7115.6
"RTN","HDI1014A",32,0)
. I '+$$ADDDFFS^HDISVF09(HDIDOM,.HDIDATA,.HDIERMSG) D
"RTN","HDI1014A",33,0)
. . I '$D(HDIERROR) D MES^XPDUTL("***** "_"Error updating File #7115.6")
"RTN","HDI1014A",34,0)
. . S HDIERROR=1
"RTN","HDI1014A",35,0)
. . D MES^XPDUTL("***** "_HDIERMSG)
"RTN","HDI1014A",36,0)
;
"RTN","HDI1014A",37,0)
I +$D(HDIERROR) D PSTHALT("") Q
"RTN","HDI1014A",38,0)
;
"RTN","HDI1014A",39,0)
; Initiate VUIDs for set of code fields
"RTN","HDI1014A",40,0)
I '$$VUID^HDISVCUT("IMM","HDI1014B") D Q
"RTN","HDI1014A",41,0)
. D MES^XPDUTL("***** VUIDs for set of code fields update failed."),PSTHALT("")
"RTN","HDI1014A",42,0)
;
"RTN","HDI1014A",43,0)
S HDIMSG(1)="Post-Installation complete."
"RTN","HDI1014A",44,0)
S HDIMSG(2)=""
"RTN","HDI1014A",45,0)
D MES^XPDUTL(.HDIMSG)
"RTN","HDI1014A",46,0)
Q
"RTN","HDI1014A",47,0)
PSTHALT(MSG) ; display error message
"RTN","HDI1014A",48,0)
S HDIMSG(1)=""
"RTN","HDI1014A",49,0)
S HDIMSG(2)=MSG
"RTN","HDI1014A",50,0)
S HDIMSG(3)="***** Post-installation has been halted."
"RTN","HDI1014A",51,0)
S HDIMSG(4)="***** Please contact Enterprise VistA Support."
"RTN","HDI1014A",52,0)
S HDIMSG(5)=""
"RTN","HDI1014A",53,0)
D MES^XPDUTL(.HDIMSG)
"RTN","HDI1014A",54,0)
Q
"RTN","HDI1014A",55,0)
DATA ;
"RTN","HDI1014A",56,0)
;;920^.01
"RTN","HDI1014A",57,0)
;;920.1^.01
"RTN","HDI1014A",58,0)
;;920.2^.01
"RTN","HDI1014A",59,0)
;;920.3^.01
"RTN","HDI1014A",60,0)
;;920.4^.01
"RTN","HDI1014A",61,0)
;;920.5^.01
"RTN","HDI1014A",62,0)
;;9999999.04^.01
"RTN","HDI1014A",63,0)
;;9999999.14^.01
"RTN","HDI1014A",64,0)
;;9999999.28^.01
"RTN","HDI1014A",65,0)
;;
"RTN","HDI1014A",66,0)
Q
"RTN","HDI1014B")
0^2^B3231269
"RTN","HDI1014B",1,0)
HDI1014B ;SLC/AJB - PATCH 14 POST INSTALL;03/23/2015
"RTN","HDI1014B",2,0)
;;1.0;HEALTH DATA & INFORMATICS;**14**;Feb 22, 2005;Build 24
"RTN","HDI1014B",3,0)
;
"RTN","HDI1014B",4,0)
IMM ;VUID'S for IMMUNIZATIONS domain Sets-Of-Codes
"RTN","HDI1014B",5,0)
;;920~.03~C~5199107~1~
"RTN","HDI1014B",6,0)
;;920~.03~H~5199108~1~
"RTN","HDI1014B",7,0)
;;920.1~.03~0~5199109~1~
"RTN","HDI1014B",8,0)
;;920.1~.03~1~5199110~1~
"RTN","HDI1014B",9,0)
;;920.4~.03~0~4500630~1~
"RTN","HDI1014B",10,0)
;;920.4~.03~1~4500633~1~
"RTN","HDI1014B",11,0)
;;920.4~.06~P~5199111~1~
"RTN","HDI1014B",12,0)
;;920.4~.06~C~5199112~1~
"RTN","HDI1014B",13,0)
;;9999999.04~.03~1~4500659~1~
"RTN","HDI1014B",14,0)
;;9999999.04~.03~0~4501128~1~
"RTN","HDI1014B",15,0)
;;9999999.14~.05~0~5199113~1~
"RTN","HDI1014B",16,0)
;;9999999.14~.05~1~5199114~1~
"RTN","HDI1014B",17,0)
;;9999999.14~.05~2~5199115~1~
"RTN","HDI1014B",18,0)
;;9999999.14~.05~3~5199116~1~
"RTN","HDI1014B",19,0)
;;9999999.14~.05~4~5199117~1~
"RTN","HDI1014B",20,0)
;;9999999.14~.05~5~5199118~1~
"RTN","HDI1014B",21,0)
;;9999999.14~.05~6~5199119~1~
"RTN","HDI1014B",22,0)
;;9999999.14~.05~7~5199120~1~
"RTN","HDI1014B",23,0)
;;9999999.14~.05~8~5199121~1~
"RTN","HDI1014B",24,0)
;;9999999.14~.06~0~4500630~1~
"RTN","HDI1014B",25,0)
;;9999999.14~.06~1~4500633~1~
"RTN","HDI1014B",26,0)
;;9999999.14~.07~1~4501128~1~
"RTN","HDI1014B",27,0)
;;9999999.14~.08~0~5199122~1~
"RTN","HDI1014B",28,0)
;;9999999.14~.08~1~5199123~1~
"RTN","HDI1014B",29,0)
;;9999999.14~.16~0~5199124~1~
"RTN","HDI1014B",30,0)
;;9999999.14~.16~1~5199125~1~
"RTN","HDI1014B",31,0)
;;9999999.14~.17~1~4500633~1~
"RTN","HDI1014B",32,0)
;;9999999.14~.17~0~4500630~1~
"RTN","HDI1014B",33,0)
;;9999999.14~.2~0~4500630~1~
"RTN","HDI1014B",34,0)
;;9999999.14~.2~1~4500633~1~
"RTN","HDI1014B",35,0)
;;9999999.14~.51~1~4500633~1~
"RTN","HDI1014B",36,0)
;;9999999.14~.51~0~4500630~1~
"RTN","HDI1014B",37,0)
;;9999999.14~100~N~5199126~1~
"RTN","HDI1014B",38,0)
;;9999999.14~100~V~5199127~1~
"RTN","HDI1014B",39,0)
;;9999999.14~100~L~5199128~1~
"RTN","HDI1014B",40,0)
;;9999999.14~8803~Y~4500633~1~
"RTN","HDI1014B",41,0)
;;9999999.14~8803~N~4500630~1~
"RTN","HDI1014B",42,0)
;;9999999.28~.03~1~4501128~1~
"RTN","HDI1014B",43,0)
;;9999999.28~100~N~5199129~1~
"RTN","HDI1014B",44,0)
;;9999999.28~100~V~5199130~1~
"RTN","HDI1014B",45,0)
;;9999999.28~100~L~5199131~1~
"RTN","HDI1014B",46,0)
;;
"RTN","HDISVAP")
0^3^B6261884
"RTN","HDISVAP",1,0)
HDISVAP ;ALB/RMO,BPFO/JRM - Application Programmer API(s); 4/23/15@13:25:00 ; 4/23/15 1:25pm
"RTN","HDISVAP",2,0)
;;1.0;HEALTH DATA & INFORMATICS;**2,14**;Feb 22, 2005;Build 24
"RTN","HDISVAP",3,0)
;
"RTN","HDISVAP",4,0)
NTRTMSG(HDISARYF,HDISARY) ;New Term Rapid Turnaround (NTRT) Message
"RTN","HDISVAP",5,0)
; Input -- HDISARYF Return Text in an Array Flag (Optional- Default 0)
"RTN","HDISVAP",6,0)
; 1=Yes and 0=No
"RTN","HDISVAP",7,0)
; Output -- HDISARY If requested, an array containing the NTRT Message is returned otherwise
"RTN","HDISVAP",8,0)
; the message is displayed on the screen. The Output variable is assumed
"RTN","HDISVAP",9,0)
; to be Null when the API is invoked.
"RTN","HDISVAP",10,0)
; Notes -- Use of this supported API is covered by ICR 4638
"RTN","HDISVAP",11,0)
N HDISLNE,HDISTXT
"RTN","HDISVAP",12,0)
F HDISLNE=1:1 S HDISTXT=$P($T(MSG+HDISLNE),";;",2) Q:HDISTXT="END" D
"RTN","HDISVAP",13,0)
. I $G(HDISARYF) D
"RTN","HDISVAP",14,0)
. . S HDISARY(HDISLNE)=HDISTXT
"RTN","HDISVAP",15,0)
. ELSE D
"RTN","HDISVAP",16,0)
. . W !?3,HDISTXT
"RTN","HDISVAP",17,0)
Q
"RTN","HDISVAP",18,0)
;
"RTN","HDISVAP",19,0)
LOSVUID(CODE) ;Convert Lab's Organism Screen set of codes to VUID
"RTN","HDISVAP",20,0)
; Input: Code - Code representing organism screen
"RTN","HDISVAP",21,0)
;Output: VUID - VUID for input code
"RTN","HDISVAP",22,0)
; NULL returned on bad input
"RTN","HDISVAP",23,0)
; Notes: Use of this supported API is covered by ICR 4801
"RTN","HDISVAP",24,0)
; : This API is only to be used to determine the VUID for the
"RTN","HDISVAP",25,0)
; Organism Screen fields that a site may add to the Organism
"RTN","HDISVAP",26,0)
; multiple (subfile #63.3) in the Microbiology multiple
"RTN","HDISVAP",27,0)
; (subfile #63.05) of the Lab Data file (#63) via the option
"RTN","HDISVAP",28,0)
; LRWU7 [Add a new internal name for an antibiotic]
"RTN","HDISVAP",29,0)
;
"RTN","HDISVAP",30,0)
N RSLT
"RTN","HDISVAP",31,0)
S CODE=$G(CODE)
"RTN","HDISVAP",32,0)
S RSLT=$S(CODE="A":4500665,CODE="N":4500805,CODE="R":4500877,1:"")
"RTN","HDISVAP",33,0)
Q RSLT
"RTN","HDISVAP",34,0)
;
"RTN","HDISVAP",35,0)
LOSCODE(VUID) ;Convert Lab's Organism Screen VUID to set of codes
"RTN","HDISVAP",36,0)
;Input: VUID - VUID representing organism screen
"RTN","HDISVAP",37,0)
;Output: Code - Code for input VUID
"RTN","HDISVAP",38,0)
; NULL returned on bad input
"RTN","HDISVAP",39,0)
; Notes: Use of this supported API is covered by ICR 4801
"RTN","HDISVAP",40,0)
; : This API is only to be used to determine the code for the
"RTN","HDISVAP",41,0)
; Organism Screen fields that a site may add to the Organism
"RTN","HDISVAP",42,0)
; multiple (subfile #63.3) in the Microbiology multiple
"RTN","HDISVAP",43,0)
; (subfile #63.05) of the Lab Data file (#63) via the option
"RTN","HDISVAP",44,0)
; LRWU7 [Add a new internal name for an antibiotic]
"RTN","HDISVAP",45,0)
;
"RTN","HDISVAP",46,0)
N RSLT
"RTN","HDISVAP",47,0)
S VUID=$G(VUID)
"RTN","HDISVAP",48,0)
S RSLT=$S(VUID=4500665:"A",VUID=4500805:"N",VUID=4500877:"R",1:"")
"RTN","HDISVAP",49,0)
Q RSLT
"RTN","HDISVAP",50,0)
;
"RTN","HDISVAP",51,0)
MFSEXIT ;Invoke code to update file implementation status
"RTN","HDISVAP",52,0)
;from MFS event driver protocol exit action
"RTN","HDISVAP",53,0)
; Input -- ^TMP("XUMF EVENT",$J
"RTN","HDISVAP",54,0)
; Output -- None
"RTN","HDISVAP",55,0)
N HDISERFN,HDISFILN
"RTN","HDISVAP",56,0)
;Check for an error in MFS, if error get file number being
"RTN","HDISVAP",57,0)
;processed at time of error
"RTN","HDISVAP",58,0)
I $D(^TMP("XUMF EVENT",$J,"ERROR",1)) S HDISERFN=+$P(^(1),"^",1)
"RTN","HDISVAP",59,0)
;Loop through MFS event array,update status
"RTN","HDISVAP",60,0)
S HDISFILN=0
"RTN","HDISVAP",61,0)
F S HDISFILN=$O(^TMP("XUMF EVENT",$J,HDISFILN)) Q:'HDISFILN D
"RTN","HDISVAP",62,0)
. I HDISFILN'=$G(HDISERFN) D MFSUP^HDISVF09(HDISFILN,0)
"RTN","HDISVAP",63,0)
;Check for error file number, update status
"RTN","HDISVAP",64,0)
I $G(HDISERFN)>0 D MFSUP^HDISVF09(HDISERFN,1)
"RTN","HDISVAP",65,0)
Q
"RTN","HDISVAP",66,0)
;
"RTN","HDISVAP",67,0)
MSG ;NTRT message text
"RTN","HDISVAP",68,0)
;;
"RTN","HDISVAP",69,0)
;;In support of national standardization of the contents of this file,
"RTN","HDISVAP",70,0)
;;local site addition and modification functions are no longer available.
"RTN","HDISVAP",71,0)
;;If you wish to contact Standards & Terminology Services (STS), request
"RTN","HDISVAP",72,0)
;;a new term, or modify an existing term, please refer to the New
"RTN","HDISVAP",73,0)
;;Term Rapid Turnaround (NTRT) web site located at
"RTN","HDISVAP",74,0)
;;http://vista.domain.ext/ntrt/.
"RTN","HDISVAP",75,0)
;;
"RTN","HDISVAP",76,0)
;;END
"VER")
8.0^22.0
**END**
**END**
| Genshi | 4 | mdgeek/VistA-FHIR-CWF | Scripts/Install/CWF/kid/21-HDI_1_14_V8.kid | [
"Apache-2.0"
] |
#!/bin/awk -f
# 5 lines 1 code 3 comments 1 blanks
# This is a comment
{ print $0 }
| Awk | 2 | Redfire75369/tokei | tests/data/awk.awk | [
"Apache-2.0",
"MIT"
] |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/nw/src/browser/pepper/pepper_broker_message_filter.h"
#include <string>
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "content/public/browser/browser_ppapi_host.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
#include "ipc/ipc_message_macros.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/host/dispatch_host_message.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "url/gurl.h"
using content::BrowserPpapiHost;
using content::BrowserThread;
using content::RenderProcessHost;
namespace chrome {
PepperBrokerMessageFilter::PepperBrokerMessageFilter(PP_Instance instance,
BrowserPpapiHost* host)
: document_url_(host->GetDocumentURLForInstance(instance)) {
int unused;
host->GetRenderFrameIDsForInstance(instance, &render_process_id_, &unused);
}
PepperBrokerMessageFilter::~PepperBrokerMessageFilter() {}
scoped_refptr<base::TaskRunner>
PepperBrokerMessageFilter::OverrideTaskRunnerForMessage(
const IPC::Message& message) {
return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI);
}
int32_t PepperBrokerMessageFilter::OnResourceMessageReceived(
const IPC::Message& msg,
ppapi::host::HostMessageContext* context) {
PPAPI_BEGIN_MESSAGE_MAP(PepperBrokerMessageFilter, msg)
PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_Broker_IsAllowed,
OnIsAllowed)
PPAPI_END_MESSAGE_MAP()
return PP_ERROR_FAILED;
}
int32_t PepperBrokerMessageFilter::OnIsAllowed(
ppapi::host::HostMessageContext* context) {
return PP_OK;
}
} // namespace chrome
| C++ | 4 | namaljayathunga/nw.js | src/browser/pepper/pepper_broker_message_filter.cc | [
"MIT"
] |
"""Test the Aladdin Connect model class."""
from homeassistant.components.aladdin_connect.model import DoorDevice
from homeassistant.core import HomeAssistant
async def test_model(hass: HomeAssistant) -> None:
"""Test model for Aladdin Connect Model."""
test_values = {
"device_id": "1",
"door_number": "2",
"name": "my door",
"status": "good",
}
result2 = DoorDevice(test_values)
assert result2["device_id"] == "1"
assert result2["door_number"] == "2"
assert result2["name"] == "my door"
assert result2["status"] == "good"
| Python | 4 | liangleslie/core | tests/components/aladdin_connect/test_model.py | [
"Apache-2.0"
] |
/*
* Copyright (C) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* @file init_pms.uc
* @brief Initialization of packet modifier indirect scripts.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#ifndef _INIT_PMS_UC_
#define _INIT_PMS_UC_
#macro hex_format(VALUE)
#define_eval _HEX_IN (VALUE)
#define_eval _HEX_OUT ''
#define _HEX_LOOP 28
#while (_HEX_LOOP >= 0)
#define_eval _HEX_TMP ((_HEX_IN >> _HEX_LOOP) & 0xf)
#define_eval _HEX_TMP strleft(strright("0123456789abcdef", 16 - _HEX_TMP), 1)
#define_eval _HEX_OUT '_HEX_OUT/**/_HEX_TMP'
#define_eval _HEX_LOOP (_HEX_LOOP - 4)
#undef _HEX_TMP
#endloop
#undef _HEX_LOOP
#define_eval HEX_OUT '0x/**/_HEX_OUT'
#endm
#define PM_SCRIPT 0
#while (PM_SCRIPT <= 112)
// rdata = 1
#define_eval OPCODES 0x0101010101010101
// render delete opcodes
#define_eval PMS_DEL_BYTES (PM_SCRIPT)
#define_eval PMS_DEL_SHIFT 1
#while (PMS_DEL_BYTES != 0)
#if (PMS_DEL_BYTES <= 16)
#define_eval OPCODES (OPCODES | ((PMS_DEL_BYTES - 1) << PMS_DEL_SHIFT))
#define_eval PMS_DEL_BYTES (0)
#else
#define_eval OPCODES (OPCODES | (15 << PMS_DEL_SHIFT))
#define_eval PMS_DEL_BYTES (PMS_DEL_BYTES - 16)
#endif
#define_eval PMS_DEL_SHIFT (PMS_DEL_SHIFT + 8)
#endloop
// make last opcode pad packet to length
#define_eval OPCODES (OPCODES | (0xc0 << (((PM_SCRIPT + 15) / 16) * 8)))
// fill remaining opcodes with NOPs
#define_eval NOP_COUNT 1
#while ((OPCODES & 0x8000000000000000) == 0)
#define_eval OPCODES (OPCODES | (0xe0 << ((NOP_COUNT + ((PM_SCRIPT + 15) / 16)) * 8)))
#define_eval NOP_COUNT (NOP_COUNT + 1)
#endloop
hex_format(OPCODES)
.init_csr xpb:Nbi0IsldXpbMap.NbiTopXpbMap.PktModifier.NbiPmOpcodeRamCnfg.NbiPmOpcode32Cnfg0_/**/PM_SCRIPT HEX_OUT
hex_format(OPCODES >> 32)
.init_csr xpb:Nbi0IsldXpbMap.NbiTopXpbMap.PktModifier.NbiPmOpcodeRamCnfg.NbiPmOpcode32Cnfg1_/**/PM_SCRIPT HEX_OUT
#define_eval PM_SCRIPT (PM_SCRIPT + 1)
#endloop
#endif // _INIT_PMS_UC_
| UnrealScript | 4 | pcasconnetronome/nic-firmware | firmware/apps/nic/init_pms.uc | [
"BSD-2-Clause"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
## dummy stub for https://github.com/JuliaBinaryWrappers/GMP_jll.jl
baremodule GMP_jll
using Base, Libdl
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
const PATH_list = String[]
const LIBPATH_list = String[]
export libgmp, libgmpxx
# These get calculated in __init__()
const PATH = Ref("")
const LIBPATH = Ref("")
artifact_dir = ""
libgmp_handle = C_NULL
libgmp_path = ""
libgmpxx_handle = C_NULL
libgmpxx_path = ""
if Sys.iswindows()
const libgmp = "libgmp-10.dll"
const libgmpxx = "libgmpxx-4.dll"
elseif Sys.isapple()
const libgmp = "@rpath/libgmp.10.dylib"
const libgmpxx = "@rpath/libgmpxx.4.dylib"
else
const libgmp = "libgmp.so.10"
const libgmpxx = "libgmpxx.so.4"
end
function __init__()
global libgmp_handle = dlopen(libgmp)
global libgmp_path = dlpath(libgmp_handle)
global libgmpxx_handle = dlopen(libgmpxx)
global libgmpxx_path = dlpath(libgmpxx_handle)
global artifact_dir = dirname(Sys.BINDIR)
LIBPATH[] = dirname(libgmp_path)
push!(LIBPATH_list, LIBPATH[])
end
# JLLWrappers API compatibility shims. Note that not all of these will really make sense.
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because
# there isn't one. It instead returns the overall Julia prefix.
is_available() = true
find_artifact_dir() = artifact_dir
dev_jll() = error("stdlib JLLs cannot be dev'ed")
best_wrapper = nothing
get_libgmp_path() = libgmp_path
get_libgmpxx_path() = libgmpxx_path
end # module GMP_jll
| Julia | 4 | jonas-schulze/julia | stdlib/GMP_jll/src/GMP_jll.jl | [
"MIT"
] |
import OSS;
import OpenPlatform;
import RPCUtil;
import RPC;
import OSSUtil;
import Util;
import FileForm;
import EndpointUtil;
extends RPC;
init(config: RPC.Config){
super(config);
@endpointRule = '';
checkConfig(config);
@endpoint = getEndpoint('imagesearch', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
model SearchImageByNameRequest = {
categoryId?: integer(name='CategoryId'),
instanceName: string(name='InstanceName'),
productId: string(name='ProductId'),
picName: string(name='PicName'),
num?: integer(name='Num'),
start?: integer(name='Start'),
filter?: string(name='Filter'),
}
model SearchImageByNameResponse = {
requestId: string(name='RequestId'),
success: boolean(name='Success'),
code: integer(name='Code'),
msg: string(name='Msg'),
auctions: [
{
categoryId: integer(name='CategoryId'),
productId: string(name='ProductId'),
picName: string(name='PicName'),
customContent: string(name='CustomContent'),
sortExprValues: string(name='SortExprValues'),
intAttr: integer(name='IntAttr'),
strAttr: string(name='StrAttr'),
}
](name='Auctions'),
head: {
docsReturn: integer(name='DocsReturn'),
docsFound: integer(name='DocsFound'),
searchTime: integer(name='SearchTime'),
}(name='Head'),
picInfo: {
categoryId: integer(name='CategoryId'),
region: string(name='Region'),
allCategories: [
{
id: integer(name='Id'),
name: string(name='Name'),
}
](name='AllCategories'),
}(name='PicInfo'),
}
async function searchImageByName(request: SearchImageByNameRequest, runtime: Util.RuntimeOptions): SearchImageByNameResponse {
Util.validateModel(request);
return doRequest('SearchImageByName', 'HTTPS', 'POST' , '2020-02-12', 'AK', null, request, runtime);
}
model SearchImageByPicRequest = {
categoryId?: integer(name='CategoryId'),
instanceName: string(name='InstanceName'),
picContent: string(name='PicContent'),
crop?: boolean(name='Crop'),
region?: string(name='Region'),
num?: integer(name='Num'),
start?: integer(name='Start'),
filter?: string(name='Filter'),
}
model SearchImageByPicResponse = {
requestId: string(name='RequestId'),
success: boolean(name='Success'),
code: integer(name='Code'),
msg: string(name='Msg'),
auctions: [
{
categoryId: integer(name='CategoryId'),
productId: string(name='ProductId'),
picName: string(name='PicName'),
customContent: string(name='CustomContent'),
sortExprValues: string(name='SortExprValues'),
intAttr: integer(name='IntAttr'),
strAttr: string(name='StrAttr'),
}
](name='Auctions'),
head: {
docsReturn: integer(name='DocsReturn'),
docsFound: integer(name='DocsFound'),
searchTime: integer(name='SearchTime'),
}(name='Head'),
picInfo: {
categoryId: integer(name='CategoryId'),
region: string(name='Region'),
allCategories: [
{
id: integer(name='Id'),
name: string(name='Name'),
}
](name='AllCategories'),
}(name='PicInfo'),
}
async function searchImageByPic(request: SearchImageByPicRequest, runtime: Util.RuntimeOptions): SearchImageByPicResponse {
Util.validateModel(request);
return doRequest('SearchImageByPic', 'HTTPS', 'POST' , '2020-02-12', 'AK', null, request, runtime);
}
model SearchImageByPicAdvanceRequest = {
picContentObject: readable(name='PicContentObject'),
categoryId?: integer(name='CategoryId'),
instanceName: string(name='InstanceName'),
crop?: boolean(name='Crop'),
region?: string(name='Region'),
num?: integer(name='Num'),
start?: integer(name='Start'),
filter?: string(name='Filter'),
}
async function searchImageByPicAdvance(request: SearchImageByPicAdvanceRequest, runtime: Util.RuntimeOptions): SearchImageByPicResponse {
// Step 0: init client
var accessKeyId = @credential.getAccessKeyId();
var accessKeySecret = @credential.getAccessKeySecret();
var authConfig = new RPC.Config{
accessKeyId = accessKeyId,
accessKeySecret = accessKeySecret,
type = 'access_key',
endpoint = 'openplatform.aliyuncs.com',
protocol = @protocol,
regionId = @regionId,
};
var authClient = new OpenPlatform(authConfig);
var authRequest = new OpenPlatform.AuthorizeFileUploadRequest{
product = 'ImageSearch',
regionId = @regionId,
};
var authResponse = new OpenPlatform.AuthorizeFileUploadResponse{};
var ossConfig = new OSS.Config{
accessKeySecret = accessKeySecret,
type = 'access_key',
protocol = @protocol,
regionId = @regionId,
};
var ossClient : OSS = null;
var fileObj = new FileForm.FileField{};
var ossHeader = new OSS.PostObjectRequest.header{};
var uploadRequest = new OSS.PostObjectRequest{};
var ossRuntime = new OSSUtil.RuntimeOptions{};
RPCUtil.convert(runtime, ossRuntime);
var searchImageByPicreq = new SearchImageByPicRequest{};
RPCUtil.convert(request, searchImageByPicreq);
authResponse = authClient.authorizeFileUploadWithOptions(authRequest, runtime);
ossConfig.accessKeyId = authResponse.accessKeyId;
ossConfig.endpoint = RPCUtil.getEndpoint(authResponse.endpoint, authResponse.useAccelerate, @endpointType);
ossClient = new OSS(ossConfig);
fileObj = new FileForm.FileField{
filename = authResponse.objectKey,
content = request.picContentObject,
contentType = '',
};
ossHeader = new OSS.PostObjectRequest.header{
accessKeyId = authResponse.accessKeyId,
policy = authResponse.encodedPolicy,
signature = authResponse.signature,
key = authResponse.objectKey,
file = fileObj,
successActionStatus = '201',
};
uploadRequest = new OSS.PostObjectRequest{
bucketName = authResponse.bucket,
header = ossHeader,
};
ossClient.postObject(uploadRequest, ossRuntime);
searchImageByPicreq.picContent = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var searchImageByPicResp = searchImageByPic(searchImageByPicreq, runtime);
return searchImageByPicResp;
}
model DeleteImageRequest = {
instanceName: string(name='InstanceName'),
productId: string(name='ProductId'),
picName?: string(name='PicName'),
}
model DeleteImageResponse = {
requestId: string(name='RequestId'),
success: boolean(name='Success'),
message: string(name='Message'),
code: integer(name='Code'),
}
async function deleteImage(request: DeleteImageRequest, runtime: Util.RuntimeOptions): DeleteImageResponse {
Util.validateModel(request);
return doRequest('DeleteImage', 'HTTPS', 'POST' , '2020-02-12', 'AK', null, request, runtime);
}
model AddImageRequest = {
instanceName: string(name='InstanceName'),
categoryId?: integer(name='CategoryId'),
productId: string(name='ProductId'),
picName: string(name='PicName'),
picContent: string(name='PicContent'),
crop?: boolean(name='Crop'),
region?: string(name='Region'),
customContent?: string(name='CustomContent'),
intAttr?: integer(name='IntAttr'),
strAttr?: string(name='StrAttr'),
}
model AddImageResponse = {
requestId: string(name='RequestId'),
success: boolean(name='Success'),
message: string(name='Message'),
code: integer(name='Code'),
picInfo: {
categoryId: integer(name='CategoryId'),
region: string(name='Region'),
}(name='PicInfo'),
}
async function addImage(request: AddImageRequest, runtime: Util.RuntimeOptions): AddImageResponse {
Util.validateModel(request);
return doRequest('AddImage', 'HTTPS', 'POST' , '2020-02-12', 'AK', null, request, runtime);
}
model AddImageAdvanceRequest = {
picContentObject: readable(name='PicContentObject'),
instanceName: string(name='InstanceName'),
categoryId?: integer(name='CategoryId'),
productId: string(name='ProductId'),
picName: string(name='PicName'),
crop?: boolean(name='Crop'),
region?: string(name='Region'),
customContent?: string(name='CustomContent'),
intAttr?: integer(name='IntAttr'),
strAttr?: string(name='StrAttr'),
}
async function addImageAdvance(request: AddImageAdvanceRequest, runtime: Util.RuntimeOptions): AddImageResponse {
// Step 0: init client
var accessKeyId = @credential.getAccessKeyId();
var accessKeySecret = @credential.getAccessKeySecret();
var authConfig = new RPC.Config{
accessKeyId = accessKeyId,
accessKeySecret = accessKeySecret,
type = 'access_key',
endpoint = 'openplatform.aliyuncs.com',
protocol = @protocol,
regionId = @regionId,
};
var authClient = new OpenPlatform(authConfig);
var authRequest = new OpenPlatform.AuthorizeFileUploadRequest{
product = 'ImageSearch',
regionId = @regionId,
};
var authResponse = new OpenPlatform.AuthorizeFileUploadResponse{};
var ossConfig = new OSS.Config{
accessKeySecret = accessKeySecret,
type = 'access_key',
protocol = @protocol,
regionId = @regionId,
};
var ossClient : OSS = null;
var fileObj = new FileForm.FileField{};
var ossHeader = new OSS.PostObjectRequest.header{};
var uploadRequest = new OSS.PostObjectRequest{};
var ossRuntime = new OSSUtil.RuntimeOptions{};
RPCUtil.convert(runtime, ossRuntime);
var addImagereq = new AddImageRequest{};
RPCUtil.convert(request, addImagereq);
authResponse = authClient.authorizeFileUploadWithOptions(authRequest, runtime);
ossConfig.accessKeyId = authResponse.accessKeyId;
ossConfig.endpoint = RPCUtil.getEndpoint(authResponse.endpoint, authResponse.useAccelerate, @endpointType);
ossClient = new OSS(ossConfig);
fileObj = new FileForm.FileField{
filename = authResponse.objectKey,
content = request.picContentObject,
contentType = '',
};
ossHeader = new OSS.PostObjectRequest.header{
accessKeyId = authResponse.accessKeyId,
policy = authResponse.encodedPolicy,
signature = authResponse.signature,
key = authResponse.objectKey,
file = fileObj,
successActionStatus = '201',
};
uploadRequest = new OSS.PostObjectRequest{
bucketName = authResponse.bucket,
header = ossHeader,
};
ossClient.postObject(uploadRequest, ossRuntime);
addImagereq.picContent = `http://${authResponse.bucket}.${authResponse.endpoint}/${authResponse.objectKey}`;
var addImageResp = addImage(addImagereq, runtime);
return addImageResp;
}
function getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: map[string]string, endpoint: string) throws: string{
if (!Util.empty(endpoint)) {
return endpoint;
}
if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
return endpointMap[regionId];
}
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
}
| Tea | 4 | alibabacloud-sdk-swift/alibabacloud-sdk | imagesearch-20200212/main.tea | [
"Apache-2.0"
] |
$ORIGIN example.org.
$TTL 7200
@ 43200 IN SOA ns1.example.org. hostmaster.example.org. 2020030700 7200 3600 864000 7200
IN NS friend-dns.example.com.
IN NS ns-a.example.net.
IN NS ns1.example.org.
IN NS ns2.example.org.
IN A 192.0.2.1
IN AAAA 2001:db8::1:1
IN MX 10 mx.example.org.
IN TXT "v=spf1 ip4:192.0.2.25 ip6:2001:db8::1:25 mx include:_spf.example.com ~all"
IN CAA 0 iodef "mailto:[email protected]"
IN CAA 0 issue "example.net"
IN CAA 0 issue "letsencrypt.org; accounturi=https://acme-staging-v02.api.letsencrypt.org/acme/acct/23456789"
IN CAA 0 issue "letsencrypt.org; accounturi=https://acme-v01.api.letsencrypt.org/acme/reg/1234567"
IN CAA 0 issue "letsencrypt.org; accounturi=https://acme-v02.api.letsencrypt.org/acme/acct/76543210"
IN CAA 0 issuewild ";"
0123456789abcdef0123456789abcdef IN CNAME verify.bing.com.
_acme-challenge 15 IN CNAME _acme-challenge.chat-acme.d.example.net.
_amazon-tlsa IN TLSA 2 0 1 18ce6cfe7bf14e60b2e347b8dfe868cb31d02ebb3ada271569f50343b46db3a4
IN TLSA 2 0 1 1ba5b2aa8c65401a82960118f80bec4f62304d83cec4713a19c39c011ea46db4
IN TLSA 2 0 1 8ecde6884f3d87b1125ba31ac3fcb13d7016de7f57cc904fe1cb97c6ae98196e
IN TLSA 2 0 1 e35d28419ed02025cfa69038cd623962458da5c695fbdea3c22b0bfb25897092
_cacert-c3-tlsa IN TLSA 2 0 1 4edde9e55ca453b388887caa25d5c5c5bccf2891d73b87495808293d5fac83c8
_cacert-le-tlsa IN TLSA 2 0 1 4edde9e55ca453b388887caa25d5c5c5bccf2891d73b87495808293d5fac83c8
IN TLSA 2 1 1 60b87575447dcba2a36b7d11ac09fb24a9db406fee12d2cc90180517616e8a18
IN TLSA 2 1 1 b111dd8a1c2091a89bd4fd60c57f0716cce50feeff8137cdbee0326e02cf362b
_dmarc IN TXT "v=DMARC1; p=none; sp=none; rua=mailto:[email protected]; ruf=mailto:[email protected]; adkim=s"
example.com._report._dmarc IN TXT "v=DMARC1"
example.net._report._dmarc IN TXT "v=DMARC1"
special.test._report._dmarc IN TXT "v=DMARC1"
xn--2j5b.xn--9t4b11yi5a._report._dmarc IN TXT "v=DMARC1"
xn--qck5b9a5eml3bze.xn--zckzah._report._dmarc IN TXT "v=DMARC1"
_adsp._domainkey IN TXT "dkim=all"
d201911._domainkey IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4SmyE5Tz5/wPL8cb2AKuHnlFeLMOhAl1UX/NYaeDCKMWoBPTgZRT0jonKLmV2UscHdodXu5ZsLr/NAuLCp7HmPLReLz7kxKncP6ppveKxc1aq5SPTKeWe77p6BptlahHc35eiXsZRpTsEzrbEOainy1IWEd+w9p1gWbrSutwE22z0i4V88nQ9UBa1ks" "6cVGxXBZFovWC+i28aGs6Lc7cSfHG5+Mrg3ud5X4evYXTGFMPpunMcCsXrqmS5a+5gRSEMZhngha/cHjLwaJnWzKaywNWF5XOsCjL94QkS0joB7lnGOHMNSZBCcu542Y3Ht3SgHhlpkF9mIbIRfpzA9IoSQIDAQAB"
d201911e2._domainkey IN TXT "v=DKIM1; k=ed25519; p=GBt2k2L39KUb39fg5brOppXDHXvISy0+ECGgPld/bIo="
d202003._domainkey IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv/1tQvOEs7xtKNm7PbPgY4hQjwHVvqqkDb0+TeqZHYRSczQ3c0LFJrIDFiPIdwQe/7AuKrxvATSh/uXKZ3EP4ouMgROPZnUxVXENeetJj+pc3nfGwTKUBTTTth+SO74gdIWsntjvAfduzosC4ZkxbDwZ9c253qXARGvGu+LB/iAeq0ngEbm5fU13+Jo" "pv0d4dR6oGe9GvMEnGGLZzNrxWl1BPe2x5JZ5/X/3fW8vJx3OgRB5N6fqbAJ6HZ9kcbikDH4lPPl9RIoprFk7mmwno/nXLQYGhPobmqq8wLkDiXEkWtYa5lzujz3XI3Zkk8ZIOGvdbVVfAttT0IVPnYkOhQIDAQAB"
d202003e2._domainkey IN TXT "v=DKIM1; k=ed25519; p=DQI5d9sNMrr0SLDoAi071IFOyKnlbR29hAQdqVQecQg="
_kerberos IN TXT "EXAMPLE.ORG"
_le-amazon-tlsa IN TLSA 2 0 1 18ce6cfe7bf14e60b2e347b8dfe868cb31d02ebb3ada271569f50343b46db3a4
IN TLSA 2 0 1 1ba5b2aa8c65401a82960118f80bec4f62304d83cec4713a19c39c011ea46db4
IN TLSA 2 0 1 8ecde6884f3d87b1125ba31ac3fcb13d7016de7f57cc904fe1cb97c6ae98196e
IN TLSA 2 0 1 e35d28419ed02025cfa69038cd623962458da5c695fbdea3c22b0bfb25897092
IN TLSA 2 1 1 60b87575447dcba2a36b7d11ac09fb24a9db406fee12d2cc90180517616e8a18
IN TLSA 2 1 1 b111dd8a1c2091a89bd4fd60c57f0716cce50feeff8137cdbee0326e02cf362b
_letsencrypt-tlsa IN TLSA 2 1 1 60b87575447dcba2a36b7d11ac09fb24a9db406fee12d2cc90180517616e8a18
IN TLSA 2 1 1 b111dd8a1c2091a89bd4fd60c57f0716cce50feeff8137cdbee0326e02cf362b
_mta-sts IN TXT "v=STSv1; id=20191231r1;"
_ourca-cacert-le-tlsa IN TLSA 2 0 1 11f058f61f97b8adc66ef4801f918c71b10e5c1e3d39afde10408b3026647ef1
IN TLSA 2 0 1 4edde9e55ca453b388887caa25d5c5c5bccf2891d73b87495808293d5fac83c8
IN TLSA 2 0 1 ea99063a0a3bda9727032cf82da238698b90ba729300703d3956943635f96488
IN TLSA 2 1 1 60b87575447dcba2a36b7d11ac09fb24a9db406fee12d2cc90180517616e8a18
IN TLSA 2 1 1 b111dd8a1c2091a89bd4fd60c57f0716cce50feeff8137cdbee0326e02cf362b
_ourca-cacert-tlsa IN TLSA 2 0 1 11f058f61f97b8adc66ef4801f918c71b10e5c1e3d39afde10408b3026647ef1
IN TLSA 2 0 1 4edde9e55ca453b388887caa25d5c5c5bccf2891d73b87495808293d5fac83c8
IN TLSA 2 0 1 ea99063a0a3bda9727032cf82da238698b90ba729300703d3956943635f96488
_ourca-le-amazon-tlsa IN TLSA 2 0 1 11f058f61f97b8adc66ef4801f918c71b10e5c1e3d39afde10408b3026647ef1
IN TLSA 2 0 1 18ce6cfe7bf14e60b2e347b8dfe868cb31d02ebb3ada271569f50343b46db3a4
IN TLSA 2 0 1 1ba5b2aa8c65401a82960118f80bec4f62304d83cec4713a19c39c011ea46db4
IN TLSA 2 0 1 8ecde6884f3d87b1125ba31ac3fcb13d7016de7f57cc904fe1cb97c6ae98196e
IN TLSA 2 0 1 e35d28419ed02025cfa69038cd623962458da5c695fbdea3c22b0bfb25897092
IN TLSA 2 0 1 ea99063a0a3bda9727032cf82da238698b90ba729300703d3956943635f96488
IN TLSA 2 1 1 60b87575447dcba2a36b7d11ac09fb24a9db406fee12d2cc90180517616e8a18
IN TLSA 2 1 1 b111dd8a1c2091a89bd4fd60c57f0716cce50feeff8137cdbee0326e02cf362b
_ourca-le-tlsa IN TLSA 2 0 1 11f058f61f97b8adc66ef4801f918c71b10e5c1e3d39afde10408b3026647ef1
IN TLSA 2 0 1 ea99063a0a3bda9727032cf82da238698b90ba729300703d3956943635f96488
IN TLSA 2 1 1 60b87575447dcba2a36b7d11ac09fb24a9db406fee12d2cc90180517616e8a18
IN TLSA 2 1 1 b111dd8a1c2091a89bd4fd60c57f0716cce50feeff8137cdbee0326e02cf362b
_ourca-tlsa IN TLSA 2 0 1 11f058f61f97b8adc66ef4801f918c71b10e5c1e3d39afde10408b3026647ef1
IN TLSA 2 0 1 ea99063a0a3bda9727032cf82da238698b90ba729300703d3956943635f96488
_ourcaca4-tlsa IN TLSA 2 0 1 ea99063a0a3bda9727032cf82da238698b90ba729300703d3956943635f96488
_ourcaca5-tlsa IN TLSA 2 0 1 11f058f61f97b8adc66ef4801f918c71b10e5c1e3d39afde10408b3026647ef1
_report IN TXT "[email protected]; rf=ARF; [email protected];"
_sip+d2s._sctp IN SRV 0 0 0 .
_sips+d2s._sctp IN SRV 0 0 0 .
_im._sip IN SRV 0 0 0 .
_pres._sip IN SRV 0 0 0 .
*._smimecert IN CNAME _ourca-smimea.example.org.
_client._smtp IN SRV 1 1 1 example.org.
_smtp-tlsrpt IN TXT "v=TLSRPTv1; rua=mailto:[email protected]"
_avatars-sec._tcp IN SRV 10 10 443 avatars.example.org.
_finger._tcp IN SRV 10 10 79 barbican.example.org.
_hkp._tcp IN SRV 0 0 0 .
_imap._tcp IN SRV 10 10 143 imap.example.org.
_imaps._tcp IN SRV 10 10 993 imap.example.org.
_jabber._tcp IN SRV 10 2 5269 xmpp-s2s.example.org.
_kerberos._tcp IN SRV 10 1 88 kerb-service.example.org.
_kerberos-adm._tcp IN SRV 10 1 749 kerb-service.example.org.
_ldap._tcp IN SRV 0 0 0 .
_openpgpkey._tcp IN SRV 10 10 443 openpgpkey.example.org.
_pgpkey-http._tcp IN SRV 0 0 0 .
_pgpkey-https._tcp IN SRV 0 0 0 .
_pop3._tcp IN SRV 0 0 0 .
_pop3s._tcp IN SRV 0 0 0 .
_sieve._tcp IN SRV 10 10 4190 imap.example.org.
_sip+d2t._tcp IN SRV 0 0 0 .
_sips+d2t._tcp IN SRV 0 0 0 .
_submission._tcp IN SRV 10 10 587 smtp.example.org.
_submissions._tcp IN SRV 10 10 465 smtp.example.org.
_xmpp-client._tcp IN SRV 10 2 5222 xmpp.example.org.
_xmpp-server._tcp IN SRV 10 2 5269 xmpp-s2s.example.org.
_smtp._tls IN TXT "v=TLSRPTv1; rua=mailto:[email protected]"
b._dns-sd._udp IN PTR field.example.org.
lb._dns-sd._udp IN PTR field.example.org.
r._dns-sd._udp IN PTR field.example.org.
_kerberos._udp IN SRV 10 1 88 kerb-service.example.org.
_kpasswd._udp IN SRV 10 1 464 kerb-service.example.org.
_ldap._udp IN SRV 0 0 0 .
_sip+d2u._udp IN SRV 0 0 0 .
auth IN AAAA 2001:db8::48:4558:6175:7468
avatars IN A 192.0.2.93
IN AAAA 2001:db8::48:4558:5345:5256
barbican IN A 192.0.2.1
IN AAAA 2001:db8::1:1
chat IN A 203.0.113.175
IN AAAA 2001:db8::f0ab:cdef:1234:f00f
_acme-challenge.chat 15 IN CNAME _acme-challenge.chat.chat-acme.d.example.net.
conference.chat IN CNAME chat.example.org.
fileproxy.chat IN CNAME chat.example.org.
proxy-chatfiles.chat IN CNAME chat.example.org.
pubsub.chat IN CNAME chat.example.org.
conference IN CNAME xmpp-s2s.example.org.
_acme-challenge.conference 15 IN CNAME _acme-challenge.conference.chat-acme.d.example.net.
_xmpp-server._tcp.conference IN SRV 10 2 5269 chat.example.org.
IN SRV 10 2 5269 xmpp-s2s.example.org.
dict IN CNAME services.example.org.
dns-moreinfo IN TXT "Fred Bloggs, TZ=America/New_York" "Chat-Service-X: @handle1" "Chat-Service-Y: [email protected]"
field IN NS ns1.example.org.
IN NS ns2.example.org.
finger IN CNAME barbican.example.org.
foo IN A 192.0.2.200
_client._smtp.foo IN SRV 1 2 1 foo.example.org.
fred IN A 192.0.2.93
IN AAAA 2001:db8::48:4558:5345:5256
IN MX 10 mx.example.org.
IN TXT "v=spf1 ip4:192.0.2.25 ip6:2001:db8::1:25 mx include:_spf.example.com ~all"
_dmarc.fred IN TXT "v=DMARC1; p=none; sp=none; rua=mailto:[email protected]; ruf=mailto:[email protected]; adkim=s"
_adsp._domainkey.fred IN TXT "dkim=all"
d201911._domainkey.fred IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8/OMUa3PnWh9LqXFVwlAgYDdTtbq3zTtTOSBmJq5yWauzXYcUuSmhW7CsV0QQlacCsQgJlwg9Nl1vO1TosAj5EKUCLTeSqjlWrM7KXKPx8FT71Q9H9wXX4MHUyGrqHFo0OPzcmtHwqcd8AD6MIvJHSRoAfiPPBp8Euc0wGnJZdGS75Hk+wA3MQ2/Tlz" "P2eenyiFyqmUTAGOYsGC/tREsWPiegR/OVxNGlzTY6quHsuVK7UYtIyFnYx9PGWdl3b3p7VjQ5V0Rp+2CLtVrCuS6Zs+/3NhZdM7mdD0a9Jgxakwa1le5YmB5lHTGF7T8quy6TlKe9lMUIRNjqTHfSFz/MwIDAQAB"
d201911e2._domainkey.fred IN TXT "v=DKIM1; k=ed25519; p=rQNsV9YcPJn/WYI1EDLjNbN/VuX1Hqq/oe4htbnhv+A="
d202003._domainkey.fred IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvpnx7tnRxAnE/poIRbVb2i+f1uQCXWnBHzHurgEyZX0CmGaiJuCbr8SWOW2PoXq9YX8gIv2TS3uzwGv/4yA2yX9Z9zar1LeWUfGgMWLdCol9xfmWrI+6MUzxuwhw/mXwzigbI4bHoakh3ez/i3J9KPS85GfrOODqA1emR13f2pG8EzAcje+rwW2PtYj" "c0h+FMDpeLuPYyYszFbNlrkVUneesxnoz+o4x/s6P14ZoRqz5CR7u6G02HwnNaHads5Eto6FYYErUUTtFmgWuYabHxgLVGRdRQs6B5OBYT/3L2q/lAgmEgdy/QL+c0Psfj99/XQmO8fcM0scBzw2ukQzcUwIDAQAB"
d202003e2._domainkey.fred IN TXT "v=DKIM1; k=ed25519; p=0DAPp/IRLYFI/Z4YSgJRi4gr7xcu1/EfJ5mjVn10aAw="
_report.fred IN TXT "[email protected]; rf=ARF; [email protected];"
_smtp-tlsrpt.fred IN TXT "v=TLSRPTv1; rua=mailto:[email protected]"
_smtp._tls.fred IN TXT "v=TLSRPTv1; rua=mailto:[email protected]"
git IN CNAME vcs.example.org.
_443._tcp.git IN CNAME _ourca-le-tlsa.example.org.
gladys IN MX 10 mx.example.org.
_dmarc.gladys IN TXT "v=DMARC1; p=none; sp=none; rua=mailto:[email protected]; ruf=mailto:[email protected]; adkim=s"
_adsp._domainkey.gladys IN TXT "dkim=all"
_report.gladys IN TXT "[email protected]; rf=ARF; [email protected];"
_smtp-tlsrpt.gladys IN TXT "v=TLSRPTv1; rua=mailto:[email protected]"
_smtp._tls.gladys IN TXT "v=TLSRPTv1; rua=mailto:[email protected]"
go IN CNAME abcdefghijklmn.cloudfront.net.
_fedcba9876543210fedcba9876543210.go IN CNAME _45678901234abcdef45678901234abcd.ggedgsdned.acm-validations.aws.
hermes IN A 192.0.2.25
IN AAAA 2001:db8::48:4558:696d:6170
IN AAAA 2001:db8::48:4558:736d:7470
IN SSHFP 1 2 4472FF5BD0528CD49216AF4503BA6A1C48F121D0292A31D6AF193E5000AF4966
IN SSHFP 3 2 EABA20C1565676A5229184CCFCF82D0EE408F91757A67D9FA51A0B6F3DB4A33B
IN SSHFP 4 2 A9D89920E599D04363C8B35A4CE66C1ED257EA1D16981F060B6AED080BBB7A7C
imap IN A 192.0.2.25
IN AAAA 2001:db8::48:4558:696d:6170
_143._tcp.imap IN CNAME _ourca-le-tlsa.example.org.
_4190._tcp.imap IN CNAME _ourca-le-tlsa.example.org.
_993._tcp.imap IN CNAME _ourca-le-tlsa.example.org.
imap46 IN A 192.0.2.25
IN AAAA 2001:db8::48:4558:696d:6170
_143._tcp.imap46 IN CNAME _ourca-le-tlsa.example.org.
_993._tcp.imap46 IN CNAME _ourca-le-tlsa.example.org.
barbican.ipv4 IN A 192.0.2.1
finger.ipv4 IN CNAME barbican.ipv4.example.org.
git.ipv4 IN CNAME vcs.ipv4.example.org.
hermes.ipv4 IN A 192.0.2.25
IN SSHFP 1 2 4472FF5BD0528CD49216AF4503BA6A1C48F121D0292A31D6AF193E5000AF4966
IN SSHFP 3 2 EABA20C1565676A5229184CCFCF82D0EE408F91757A67D9FA51A0B6F3DB4A33B
IN SSHFP 4 2 A9D89920E599D04363C8B35A4CE66C1ED257EA1D16981F060B6AED080BBB7A7C
megalomaniac.ipv4 IN A 198.51.100.254
IN SSHFP 1 2 4E9CED94D3CAF2CE915F85A63CE7279D5118A79EA03DAC59CF4859B825D2F619
IN SSHFP 3 2 D3556A3DB83AB9CCEC39DC6693DD2F3E28B178C9BBA61880924821C426CC61EB
IN SSHFP 4 2 C60C9D9D4728668F5F46986FF0C5B416C5E913862C4970CBFE211A6F44A111B4
mx.ipv4 IN A 192.0.2.25
nsauth.ipv4 IN A 192.0.2.53
IN SSHFP 1 2 895804AE022FFF643B2677563CB850607C5BB564D9919896C521098C8ABC40F2
IN SSHFP 3 2 28A65470BADAE611375747E1A803211C41E3D71E97741FA92CCBDF7B01F34E42
IN SSHFP 4 2 6E10445C0649C03FA83E18B1873E5B89B3A20893ECB48D01E7CEDB3DD563ECF0
people.ipv4 IN CNAME services.ipv4.example.org.
_443._tcp.people.ipv4 IN CNAME _ourca-le-tlsa.example.org.
security.ipv4 IN A 192.0.2.92
_443._tcp.security.ipv4 IN CNAME _ourca-le-tlsa.example.org.
www.security.ipv4 IN CNAME security.ipv4.example.org.
_443._tcp.www.security.ipv4 IN CNAME _ourca-le-tlsa.example.org.
services.ipv4 IN A 192.0.2.93
tower.ipv4 IN A 192.0.2.42
IN SSHFP 1 2 0F211D236E94768911A294F38653C4AF6FA935A5B06C975D8162F59142571451
IN SSHFP 3 2 88BF7B7401C11FA2E84871EFB06CD73D8FC409154605B354DB2DDA0B82FE1160
IN SSHFP 4 2 6D30900BE0FAAAE73568FC007A87B4D076CF9A351ECACC1106AEF726C34AD61D
vcs.ipv4 IN A 192.0.2.228
IN SSHFP 1 2 B518BE390BABDF43CB2D598AA6BEFA6CE6878546BF107B829D0CFC65253A97D4
IN SSHFP 3 2 E92545DC0BF501F72333DDEB7A37AFC2C5B408CE39A3AD95FBC66236F0077323
IN SSHFP 4 2 02289441124A487095A6CDA2E946C6A8ED9087FAF3592EC4135536C3E615521C
www.ipv4 IN CNAME services.ipv4.example.org.
_443._tcp.www.ipv4 IN CNAME _ourca-le-tlsa.example.org.
barbican.ipv6 IN AAAA 2001:db8::1:1
finger.ipv6 IN CNAME barbican.ipv6.example.org.
git.ipv6 IN CNAME vcs.ipv6.example.org.
hermes.ipv6 IN AAAA 2001:db8::48:4558:696d:6170
IN AAAA 2001:db8::48:4558:736d:7470
IN SSHFP 1 2 4472FF5BD0528CD49216AF4503BA6A1C48F121D0292A31D6AF193E5000AF4966
IN SSHFP 3 2 EABA20C1565676A5229184CCFCF82D0EE408F91757A67D9FA51A0B6F3DB4A33B
IN SSHFP 4 2 A9D89920E599D04363C8B35A4CE66C1ED257EA1D16981F060B6AED080BBB7A7C
megalomaniac.ipv6 IN AAAA 2001:db8:ffef::254
IN SSHFP 1 2 4E9CED94D3CAF2CE915F85A63CE7279D5118A79EA03DAC59CF4859B825D2F619
IN SSHFP 3 2 D3556A3DB83AB9CCEC39DC6693DD2F3E28B178C9BBA61880924821C426CC61EB
IN SSHFP 4 2 C60C9D9D4728668F5F46986FF0C5B416C5E913862C4970CBFE211A6F44A111B4
mx.ipv6 IN AAAA 2001:db8::48:4558:736d:7470
nsauth.ipv6 IN AAAA 2001:db8::53:1
IN SSHFP 1 2 895804AE022FFF643B2677563CB850607C5BB564D9919896C521098C8ABC40F2
IN SSHFP 3 2 28A65470BADAE611375747E1A803211C41E3D71E97741FA92CCBDF7B01F34E42
IN SSHFP 4 2 6E10445C0649C03FA83E18B1873E5B89B3A20893ECB48D01E7CEDB3DD563ECF0
people.ipv6 IN CNAME services.ipv6.example.org.
_443._tcp.people.ipv6 IN CNAME _ourca-le-tlsa.example.org.
security.ipv6 IN AAAA 2001:db8::48:4558:53:4543
_443._tcp.security.ipv6 IN CNAME _ourca-le-tlsa.example.org.
www.security.ipv6 IN CNAME security.ipv6.example.org.
_443._tcp.www.security.ipv6 IN CNAME _ourca-le-tlsa.example.org.
services.ipv6 IN AAAA 2001:db8::48:4558:5345:5256
tower.ipv6 IN AAAA 2001:db8::1:42
IN SSHFP 1 2 0F211D236E94768911A294F38653C4AF6FA935A5B06C975D8162F59142571451
IN SSHFP 3 2 88BF7B7401C11FA2E84871EFB06CD73D8FC409154605B354DB2DDA0B82FE1160
IN SSHFP 4 2 6D30900BE0FAAAE73568FC007A87B4D076CF9A351ECACC1106AEF726C34AD61D
vcs.ipv6 IN AAAA 2001:db8::48:4558:4456:4353
IN SSHFP 1 2 B518BE390BABDF43CB2D598AA6BEFA6CE6878546BF107B829D0CFC65253A97D4
IN SSHFP 3 2 E92545DC0BF501F72333DDEB7A37AFC2C5B408CE39A3AD95FBC66236F0077323
IN SSHFP 4 2 02289441124A487095A6CDA2E946C6A8ED9087FAF3592EC4135536C3E615521C
www.ipv6 IN CNAME services.ipv6.example.org.
_443._tcp.www.ipv6 IN CNAME _ourca-le-tlsa.example.org.
xmpp.ipv6 IN AAAA 2001:db8::f0ab:cdef:1234:f00f
xmpp-s2s.ipv6 IN AAAA 2001:db8::f0ab:cdef:1234:f00f
kerb-service IN A 192.0.2.88
IN AAAA 2001:db8::48:4558:6b65:7262
khard IN NS ns-cloud-d1.googledomains.com.
IN NS ns-cloud-d2.googledomains.com.
IN NS ns-cloud-d3.googledomains.com.
IN NS ns-cloud-d4.googledomains.com.
kpeople IN AAAA 2001:db8::48:4558:6b70:706c
mailtest IN MX 10 mx.example.org.
_dmarc.mailtest IN TXT "v=DMARC1; p=none; sp=none; rua=mailto:[email protected]; ruf=mailto:[email protected]; adkim=s"
_adsp._domainkey.mailtest IN TXT "dkim=all"
d201911._domainkey.mailtest IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAo9xHnjHyhm1weA6FjOqM8LKVsklFt26HXWoe/0XCdmBG4i/UzQ7RiSgWO4kv7anPK6qf6rtL1xYsHufaRXG8yLsZxz+BbUP99eZvxZX78tMg4cGf+yU6uFxulCbOzsMy+8Cc3bbQTtIWYjyWBwnHdRRrCkQxjZ5KAd+x7ZB5qzqg2/eLJ7fCuNsr/xn" "0XTY6XYgug95e3h4CEW3Y+bkG81AMeJmT/hoVTcXvT/Gm6ZOUmx6faQWIHSW7qOR3VS6S75HOuclEUk0gt9r7OQHKl01sXh8g02SHRk8SUMEoNVayqplYZTFFF01Z192m7enmpp+St+HHUIT6jW/CAMCO3wIDAQAB"
d201911e2._domainkey.mailtest IN TXT "v=DKIM1; k=ed25519; p=afulDDnhaTzdqKQN0jtWV04eOhAcyBk3NCyVheOf53Y="
d202003._domainkey.mailtest IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs2BTVZaVLvL3qZBPaF7tRR0SdOKe+hjcpQ5fqO48lEuYiyTb6lkn8DPjDK11gTN3au0Bm+y8KC7ITKSJosuJXytxt3wqc61Pwtmb/Cy7GzmOF1AuegydB3/88VbgHT5DZucHrh6+ValZk4Trkx+/1K26Uo+h2KL2n/Ldb1y91ATHujp8DqxAOhiZ7KN" "aS1okNRRB4/14jPufAbeiN8/iBPiY5Hl80KHmpjM+7vvjb5jiecZ1ZrVDj7eTES4pmVh2v1c106mZLieoqDPYaf/HVbCM4E4n1B6kjbboSOpANADIcqXxGJQ7Be7/Sk9f7KwRusrsMHXmBHgm4wPmwGVZ3QIDAQAB"
d202003e2._domainkey.mailtest IN TXT "v=DKIM1; k=ed25519; p=iqwH/hhozFdeo1xnuldr8KUi7O7g+DzmC+f0SYMKVDc="
_report.mailtest IN TXT "[email protected]; rf=ARF; [email protected];"
_smtp-tlsrpt.mailtest IN TXT "v=TLSRPTv1; rua=mailto:[email protected]"
_smtp._tls.mailtest IN TXT "v=TLSRPTv1; rua=mailto:[email protected]"
megalomaniac IN A 198.51.100.254
IN AAAA 2001:db8:ffef::254
IN SSHFP 1 2 4E9CED94D3CAF2CE915F85A63CE7279D5118A79EA03DAC59CF4859B825D2F619
IN SSHFP 3 2 D3556A3DB83AB9CCEC39DC6693DD2F3E28B178C9BBA61880924821C426CC61EB
IN SSHFP 4 2 C60C9D9D4728668F5F46986FF0C5B416C5E913862C4970CBFE211A6F44A111B4
mta-sts IN A 192.0.2.93
IN AAAA 2001:db8::48:4558:5345:5256
IN TXT "v=STSv1; id=20191231r1;"
mx IN A 192.0.2.25
IN AAAA 2001:db8::48:4558:736d:7470
IN TXT "v=spf1 a include:_spflarge.example.net -all"
_client._smtp.mx IN SRV 1 2 1 mx.example.org.
_25._tcp.mx IN CNAME _ourca-le-tlsa.example.org.
_26._tcp.mx IN CNAME _ourca-le-tlsa.example.org.
_27._tcp.mx IN CNAME _ourca-le-tlsa.example.org.
news-feed IN A 192.0.2.93
IN AAAA 2001:db8::48:4558:6e6e:7470
ns1 IN A 192.0.2.53
IN AAAA 2001:db8::53:1
ns2 IN A 203.0.113.53
IN AAAA 2001:db8:113::53
nsauth IN A 192.0.2.53
IN AAAA 2001:db8::53:1
IN SSHFP 1 2 895804AE022FFF643B2677563CB850607C5BB564D9919896C521098C8ABC40F2
IN SSHFP 3 2 28A65470BADAE611375747E1A803211C41E3D71E97741FA92CCBDF7B01F34E42
IN SSHFP 4 2 6E10445C0649C03FA83E18B1873E5B89B3A20893ECB48D01E7CEDB3DD563ECF0
openpgpkey IN A 192.0.2.92
IN AAAA 2001:db8::48:4558:53:4543
opqrstuvwxyz IN CNAME gv-abcdefghijklmn.dv.googlehosted.com.
people IN CNAME services.example.org.
_443._tcp.people IN CNAME _ourca-le-tlsa.example.org.
proxy-chatfiles IN CNAME xmpp.example.org.
_acme-challenge.proxy-chatfiles 15 IN CNAME _acme-challenge.proxy-chatfiles.chat-acme.d.example.net.
realhost IN MX 0 .
IN TXT "v=spf1 -all"
_25._tcp.realhost IN TLSA 3 0 0 0000000000000000000000000000000000000000000000000000000000000000
security IN A 192.0.2.92
IN AAAA 2001:db8::48:4558:53:4543
_443._tcp.security IN CNAME _ourca-le-tlsa.example.org.
ocsp.security IN AAAA 2001:db8::48:4558:6f63:7370
www.security IN CNAME security.example.org.
_443._tcp.www.security IN CNAME _ourca-le-tlsa.example.org.
services IN A 192.0.2.93
IN AAAA 2001:db8::48:4558:5345:5256
_hkp._tcp.sks IN SRV 0 0 0 .
_pgpkey-http._tcp.sks IN SRV 0 0 0 .
_pgpkey-https._tcp.sks IN SRV 0 0 0 .
_hkp._tcp.sks-peer IN SRV 0 0 0 .
_pgpkey-http._tcp.sks-peer IN SRV 0 0 0 .
_pgpkey-https._tcp.sks-peer IN SRV 0 0 0 .
smtp IN A 192.0.2.25
IN AAAA 2001:db8::48:4558:736d:7470
_1465._tcp.smtp IN CNAME _ourca-le-tlsa.example.org.
_1587._tcp.smtp IN CNAME _ourca-le-tlsa.example.org.
_465._tcp.smtp IN CNAME _ourca-le-tlsa.example.org.
_587._tcp.smtp IN CNAME _ourca-le-tlsa.example.org.
smtp46 IN A 192.0.2.25
IN AAAA 2001:db8::48:4558:736d:7470
_1465._tcp.smtp46 IN CNAME _ourca-le-tlsa.example.org.
_1587._tcp.smtp46 IN CNAME _ourca-le-tlsa.example.org.
_465._tcp.smtp46 IN CNAME _ourca-le-tlsa.example.org.
_587._tcp.smtp46 IN CNAME _ourca-le-tlsa.example.org.
svn IN AAAA 2001:db8::48:4558:73:766e
_443._tcp.svn IN CNAME _ourca-le-tlsa.example.org.
tower IN A 192.0.2.42
IN AAAA 2001:db8::1:42
IN SSHFP 1 2 0F211D236E94768911A294F38653C4AF6FA935A5B06C975D8162F59142571451
IN SSHFP 3 2 88BF7B7401C11FA2E84871EFB06CD73D8FC409154605B354DB2DDA0B82FE1160
IN SSHFP 4 2 6D30900BE0FAAAE73568FC007A87B4D076CF9A351ECACC1106AEF726C34AD61D
vcs IN A 192.0.2.228
IN AAAA 2001:db8::48:4558:4456:4353
IN SSHFP 1 2 B518BE390BABDF43CB2D598AA6BEFA6CE6878546BF107B829D0CFC65253A97D4
IN SSHFP 3 2 E92545DC0BF501F72333DDEB7A37AFC2C5B408CE39A3AD95FBC66236F0077323
IN SSHFP 4 2 02289441124A487095A6CDA2E946C6A8ED9087FAF3592EC4135536C3E615521C
webauth IN AAAA 2001:db8::48:4558:7765:6261
wpad IN CNAME services.example.org.
www IN CNAME services.example.org.
_443._tcp.www IN CNAME _ourca-le-tlsa.example.org.
xmpp IN A 203.0.113.175
IN AAAA 2001:db8::f0ab:cdef:1234:f00f
_acme-challenge.xmpp 15 IN CNAME _acme-challenge.xmpp.chat-acme.d.example.net.
_5222._tcp.xmpp IN CNAME _ourca-le-tlsa.example.org.
_5223._tcp.xmpp IN CNAME _ourca-le-tlsa.example.org.
fileproxy.xmpp IN CNAME xmpp.example.org.
pubsub.xmpp IN CNAME xmpp-s2s.example.org.
_acme-challenge.pubsub.xmpp 15 IN CNAME _acme-challenge.pubsub.xmpp.chat-acme.d.example.net.
xmpp-s2s IN A 203.0.113.175
IN AAAA 2001:db8::f0ab:cdef:1234:f00f
_5269._tcp.xmpp-s2s IN CNAME _ourca-le-tlsa.example.org.
yoyo IN NS ns1.he.net.
IN NS ns2.he.net.
IN NS ns3.he.net.
IN NS ns4.he.net.
IN NS ns5.he.net.
zyxwvutsrqpo IN CNAME gv-nmlkjihgfedcba.dv.googlehosted.com.
| DNS Zone | 2 | IT-Sumpfling/dnscontrol | commands/test_data/example.org.zone.zone | [
"MIT"
] |
# This script is sourced by the user and uses
# their shell. Try not to use tcshisms.
# Do not execute this script without sourcing,
# because it won't have any effect then.
# That is, always run this script with
#
# source ./emsdk_env.csh
#
# instead of just plainly running with
#
# ./emsdk_env.csh
#
# which won't have any effect.
set SRC=($_)
if ("$SRC" == "") then
set SRC="$0"
else
set SRC="$SRC[1]"
endif
set CURDIR=`pwd`
setenv DIR `dirname "$SRC"`
unset SRC
setenv EMSDK_CSH 1
eval `$DIR/emsdk construct_env`
unsetenv DIR
unsetenv EMSDK_CSH
| Tcsh | 4 | matt9ucci/emsdk | emsdk_env.csh | [
"MIT"
] |
acl purge {
"localhost";
"127.0.0.1";
}
backend sqlapi {
.host = "127.0.0.1";
.port = "8080";
}
backend windshaft {
.host = "127.0.0.1";
.port = "8181";
}
sub vcl_recv {
# Allowing PURGE from localhost
if (req.request == "PURGE") {
if (!client.ip ~ purge) {
error 405 "Not allowed.";
}
return (lookup);
}
# Routing request to backend based on X-Carto-Service header from nginx
if (req.http.X-Carto-Service == "sqlapi") {
set req.backend = sqlapi;
remove req.http.X-Carto-Service;
}
if (req.http.X-Carto-Service == "windshaft") {
set req.backend = windshaft;
remove req.http.X-Carto-Service;
}
}
sub vcl_hit {
if (req.request == "PURGE") {
purge;
error 200 "Purged.";
}
}
sub vcl_miss {
if (req.request == "PURGE") {
purge;
error 200 "Purged.";
}
}
| VCL | 4 | Baschdl/docker-cartodb | config/varnish.vcl | [
"BSD-3-Clause"
] |
macroscript spinner_precision
category:"Tools"
internalcategory:"Tools"
Tooltip:"Spinner precision"
buttontext:"Spn. precision"
(
rollout roSpinner "Spinner Precision" width:168 height:32
(
radioButtons rdo1 "" pos:[8,8] width:155 height:16 labels:#("0", "1", "2", "3", "4") columns:5
on rdo1 changed state do
(
preferences.spinnerPrecision=(state as integer - 1)
)
on roSpinner open do
(
rdo1.state = (preferences.spinnerPrecision + 1)
)
)
try(
createdialog roSpinner
cui.RegisterDialogBar roSpinner
)
catch()
)
--macros.run "tools" "spinner_precision" | MAXScript | 4 | 89096000/MaxScript | Widgets/spinner_precision.mcr | [
"MIT"
] |
---
prev: type-basics.textile
next: sbt.textile
title: Advanced types
layout: post
---
This lesson covers:
* "View bounds":#viewbounds ("type classes")
* "Other Type Bounds":#otherbounds
* "Higher kinded types & ad-hoc polymorphism":#higher
* "F-bounded polymorphism / recursive types":#fbounded
* "Structural types":#structural
* "Abstract types members":#abstractmem
* "Type erasures & manifests":#manifest
* "Case study: Finagle":#finagle
h2(#viewbounds). View bounds ("type classes")
Sometimes you don't need to specify that one type is equal/sub/super another, just that you could fake it with conversions. A view bound specifies a type that can be "viewed as" another. This makes sense for an operation that needs to "read" an object but doesn't modify the object.
*Implicit* functions allow automatic conversion. More precisely, they allow on-demand function application when this can help satisfy type inference. e.g.:
<pre>
scala> implicit def strToInt(x: String) = x.toInt
strToInt: (x: String)Int
scala> "123"
res0: java.lang.String = 123
scala> val y: Int = "123"
y: Int = 123
scala> math.max("123", 111)
res1: Int = 123
</pre>
View bounds, like type bounds demand such a function exists for the given type. You specify a view bound with <code><%</code> e.g.,
<pre>
scala> class Container[A <% Int] { def addIt(x: A) = 123 + x }
defined class Container
</pre>
This says that *A* has to be "viewable" as *Int*. Let's try it.
<pre>
scala> (new Container[String]).addIt("123")
res11: Int = 246
scala> (new Container[Int]).addIt(123)
res12: Int = 246
scala> (new Container[Float]).addIt(123.2F)
<console>:8: error: could not find implicit value for evidence parameter of type (Float) => Int
(new Container[Float]).addIt(123.2)
^
</pre>
h2(#otherbounds). Other type bounds
Methods can enforce more complex type bounds via implicit parameters. For example, <code>List</code> supports <code>sum</code> on numeric contents but not on others. Alas, Scala's numeric types don't all share a superclass, so we can't just say <code>T <: Number</code>. Instead, to make this work, Scala's math library <a href="https://www.azavea.com/blogs/labs/2011/06/scalas-numeric-type-class-pt-1/">defines an implicit <code>Numeric[T]</code> for the appropriate types T</a>. Then in <code>List</code>'s definition uses it:
<pre>
sum[B >: A](implicit num: Numeric[B]): B
</pre>
If you invoke <code>List(1,2).sum()</code>, you don't need to pass a _num_ parameter; it's set implicitly. But if you invoke <code>List("whoop").sum()</code>, it complains that it couldn't set <code>num</code>.
Methods may ask for some kinds of specific "evidence" for a type without setting up strange objects as with <code>Numeric</code>. Instead, you can use one of these type-relation operators:
|A =:= B|A must be equal to B|
|A <:< B|A must be a subtype of B|
|A <%< B|A must be viewable as B|
(If you get errors trying to use <:< or <%<, be aware that those went away in Scala 2.10. Scala School examples work with "Scala 2.9.x":https://www.scala-lang.org/download/2.9.3.html . You can use a newer Scala, but expect errors.)
<pre>
scala> class Container[A](value: A) { def addIt(implicit evidence: A =:= Int) = 123 + value }
defined class Container
scala> (new Container(123)).addIt
res11: Int = 246
scala> (new Container("123")).addIt
<console>:10: error: could not find implicit value for parameter evidence: =:=[java.lang.String,Int]
</pre>
Similarly, given our previous implicit, we can relax the constraint to viewability:
<pre>
scala> class Container[A](value: A) { def addIt(implicit evidence: A <%< Int) = 123 + value }
defined class Container
scala> (new Container("123")).addIt
res15: Int = 246
</pre>
h3. Generic programming with views
In the Scala standard library, views are primarily used to implement generic functions over collections. For example, the "min" function (on *Seq[]*), uses this technique:
<pre>
def min[B >: A](implicit cmp: Ordering[B]): A = {
if (isEmpty)
throw new UnsupportedOperationException("empty.min")
reduceLeft((x, y) => if (cmp.lteq(x, y)) x else y)
}
</pre>
The main advantages of this are:
* Items in the collections aren't required to implement *Ordered*, but *Ordered* uses are still statically type checked.
* You can define your own orderings without any additional library support:
<pre>
scala> List(1,2,3,4).min
res0: Int = 1
scala> List(1,2,3,4).min(new Ordering[Int] { def compare(a: Int, b: Int) = b compare a })
res3: Int = 4
</pre>
As a sidenote, there are views in the standard library that translates *Ordered* into *Ordering* (and vice versa).
<pre>
trait LowPriorityOrderingImplicits {
implicit def ordered[A <: Ordered[A]]: Ordering[A] = new Ordering[A] {
def compare(x: A, y: A) = x.compare(y)
}
}
</pre>
h4. Context bounds & implicitly[]
Scala 2.8 introduced a shorthand for threading through & accessing implicit arguments.
<pre>
scala> def foo[A](implicit x: Ordered[A]) {}
foo: [A](implicit x: Ordered[A])Unit
scala> def foo[A : Ordered] {}
foo: [A](implicit evidence$1: Ordered[A])Unit
</pre>
Implicit values may be accessed via *implicitly*
<pre>
scala> implicitly[Ordering[Int]]
res37: Ordering[Int] = scala.math.Ordering$Int$@3a9291cf
</pre>
Combined, these often result in less code, especially when threading through views.
h2(#higher). Higher-kinded types & ad-hoc polymorphism
Scala can abstract over "higher kinded" types. For example, suppose that you needed to use several types of containers for several types of data. You might define a <code>Container</code> interface that might be implemented by means of several container types: an <code>Option</code>, a <code>List</code>, etc. You want to define an interface for using values in these containers without nailing down the values' type.
This is analogous to function currying. For example, whereas "unary types" have constructors like <code>List[A]</code>, meaning we have to satisfy one "level" of type variables in order to produce a concrete types (just like an uncurried function needs to be supplied by only one argument list to be invoked), a higher-kinded type needs more.
<pre>
scala> trait Container[M[_]] { def put[A](x: A): M[A]; def get[A](m: M[A]): A }
scala> val container = new Container[List] { def put[A](x: A) = List(x); def get[A](m: List[A]) = m.head }
container: java.lang.Object with Container[List] = $anon$1@7c8e3f75
scala> container.put("hey")
res24: List[java.lang.String] = List(hey)
scala> container.put(123)
res25: List[Int] = List(123)
</pre>
Note that *Container* is polymorphic in a parameterized type ("container type").
If we combine using containers with implicits, we get "ad-hoc" polymorphism: the ability to write generic functions over containers.
<pre>
scala> trait Container[M[_]] { def put[A](x: A): M[A]; def get[A](m: M[A]): A }
scala> implicit val listContainer = new Container[List] { def put[A](x: A) = List(x); def get[A](m: List[A]) = m.head }
scala> implicit val optionContainer = new Container[Some] { def put[A](x: A) = Some(x); def get[A](m: Some[A]) = m.get }
scala> def tupleize[M[_]: Container, A, B](fst: M[A], snd: M[B]) = {
| val c = implicitly[Container[M]]
| c.put(c.get(fst), c.get(snd))
| }
tupleize: [M[_],A,B](fst: M[A],snd: M[B])(implicit evidence$1: Container[M])M[(A, B)]
scala> tupleize(Some(1), Some(2))
res33: Some[(Int, Int)] = Some((1,2))
scala> tupleize(List(1), List(2))
res34: List[(Int, Int)] = List((1,2))
</pre>
h2(#fbounded). F-bounded polymorphism
Often it's necessary to access a concrete subclass in a (generic) trait. For example, imagine you had some trait that is generic, but can be compared to a particular subclass of that trait.
<pre>
trait Container extends Ordered[Container]
</pre>
However, this now necessitates the subclass to implement the compare method
<pre>
def compare(that: Container): Int
</pre>
And so we cannot access the concrete subtype, e.g.:
<pre>
class MyContainer extends Container {
def compare(that: MyContainer): Int
}
</pre>
fails to compile, since we are specifying Ordered for *Container*, not the particular subtype.
Then an alternative solution would be parameterize Container so that we can access the subtype in the subclass.
<pre>
trait Container[A] extends Ordered[A]
</pre>
The subclass could now do the following:
<pre>
class MyContainer extends Container[MyContainer] {
def compare(that: MyContainer): Int
}
</pre>
But the problem is that the type A is not bounded by anything, and you could potentially do something like this:
<pre>
class MyContainer extends Container[String] {
def compare(that: String): Int
}
</pre>
To reconcile this, we instead use F-bounded polymorphism.
<pre>
trait Container[A <: Container[A]] extends Ordered[A]
</pre>
Strange type! But note now how Ordered is parameterized on *A*, which itself is *Container[A]*
So, now
<pre>
class MyContainer extends Container[MyContainer] {
def compare(that: MyContainer) = 0
}
</pre>
They are now ordered:
<pre>
scala> List(new MyContainer, new MyContainer, new MyContainer)
res3: List[MyContainer] = List(MyContainer@30f02a6d, MyContainer@67717334, MyContainer@49428ffa)
scala> List(new MyContainer, new MyContainer, new MyContainer).min
res4: MyContainer = MyContainer@33dfeb30
</pre>
Given that they are all subtypes of *Container[_]*, we can define another subclass & create a mixed list of *Container[_]*:
<pre>
scala> class YourContainer extends Container[YourContainer] { def compare(that: YourContainer) = 0 }
defined class YourContainer
scala> List(new MyContainer, new MyContainer, new MyContainer, new YourContainer)
res2: List[Container[_ >: YourContainer with MyContainer <: Container[_ >: YourContainer with MyContainer <: ScalaObject]]]
= List(MyContainer@3be5d207, MyContainer@6d3fe849, MyContainer@7eab48a7, YourContainer@1f2f0ce9)
</pre>
Note how the resulting type is now lower-bound by *YourContainer with MyContainer*. This is the work of the type inferencer. Interestingly- this type doesn't even need to make sense, it only provides a logical greatest lower bound for the unified type of the list. What happens if we try to use *Ordered* now?
<pre>
(new MyContainer, new MyContainer, new MyContainer, new YourContainer).min
<console>:9: error: could not find implicit value for parameter cmp:
Ordering[Container[_ >: YourContainer with MyContainer <: Container[_ >: YourContainer with MyContainer <: ScalaObject]]]
</pre>
No *Ordered[]* exists for the unified type. Too bad.
h2(#structural). Structural types
Scala has support for *structural types* -- type requirements are expressed by interface _structure_ instead of a concrete type.
<pre>
scala> def foo(x: { def get: Int }) = 123 + x.get
foo: (x: AnyRef{def get: Int})Int
scala> foo(new { def get = 10 })
res0: Int = 133
</pre>
This can be quite nice in many situations, but the implementation uses reflection, so be performance-aware!
h2(#abstractmem). Abstract type members
In a trait, you can leave type members abstract.
<pre>
scala> trait Foo { type A; val x: A; def getX: A = x }
defined trait Foo
scala> (new Foo { type A = Int; val x = 123 }).getX
res3: Int = 123
scala> (new Foo { type A = String; val x = "hey" }).getX
res4: java.lang.String = hey
</pre>
This is often a useful trick when doing dependency injection, etc.
You can refer to an abstract type variable using the hash-operator:
<pre>
scala> trait Foo[M[_]] { type t[A] = M[A] }
defined trait Foo
scala> val x: Foo[List]#t[Int] = List(1)
x: List[Int] = List(1)
</pre>
h2(#manifest). Type erasures & manifests
As we know, type information is lost at compile time due to _erasure_. Scala features *Manifests*, allowing us to selectively recover type information. Manifests are provided as an implicit value, generated by the compiler as needed.
<pre>
scala> class MakeFoo[A](implicit manifest: Manifest[A]) { def make: A = manifest.erasure.newInstance.asInstanceOf[A] }
scala> (new MakeFoo[String]).make
res10: String = ""
</pre>
h2(#finagle). Case study: Finagle
See: "https://github.com/twitter/finagle":https://github.com/twitter/finagle
<pre>
trait Service[-Req, +Rep] extends (Req => Future[Rep])
trait Filter[-ReqIn, +RepOut, +ReqOut, -RepIn]
extends ((ReqIn, Service[ReqOut, RepIn]) => Future[RepOut])
{
def andThen[Req2, Rep2](next: Filter[ReqOut, RepIn, Req2, Rep2]) =
new Filter[ReqIn, RepOut, Req2, Rep2] {
def apply(request: ReqIn, service: Service[Req2, Rep2]) = {
Filter.this.apply(request, new Service[ReqOut, RepIn] {
def apply(request: ReqOut): Future[RepIn] = next(request, service)
override def release() = service.release()
override def isAvailable = service.isAvailable
})
}
}
def andThen(service: Service[ReqOut, RepIn]) = new Service[ReqIn, RepOut] {
private[this] val refcounted = new RefcountedService(service)
def apply(request: ReqIn) = Filter.this.apply(request, refcounted)
override def release() = refcounted.release()
override def isAvailable = refcounted.isAvailable
}
}
</pre>
A service may authenticate requests with a filter.
<pre>
trait RequestWithCredentials extends Request {
def credentials: Credentials
}
class CredentialsFilter(credentialsParser: CredentialsParser)
extends Filter[Request, Response, RequestWithCredentials, Response]
{
def apply(request: Request, service: Service[RequestWithCredentials, Response]): Future[Response] = {
val requestWithCredentials = new RequestWrapper with RequestWithCredentials {
val underlying = request
val credentials = credentialsParser(request) getOrElse NullCredentials
}
service(requestWithCredentials)
}
}
</pre>
Note how the underlying service requires an authenticated request, and that this is statically verified. Filters can thus be thought of as service transformers.
Many filters can be composed together:
<pre>
val upFilter =
logTransaction andThen
handleExceptions andThen
extractCredentials andThen
homeUser andThen
authenticate andThen
route
</pre>
Type safely!
| Textile | 5 | AstronomiaDev/scala_school | web/advanced-types.textile | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("circle", {
cx: "9",
cy: "16.5",
r: "1"
}, "0"), /*#__PURE__*/_jsx("circle", {
cx: "15",
cy: "16.5",
r: "1"
}, "1"), /*#__PURE__*/_jsx("path", {
d: "M17.25 9.6c-.02-.02-.03-.04-.05-.07-.38-.52-.92-.53-.92-.53H7.72s-.54.01-.92.54c-.02.02-.03.04-.05.06-.07.11-.14.24-.19.4-.22.66-.74 2.22-1.56 4.69v6.5c0 .45.35.81.78.81h.44c.43 0 .78-.36.78-.81V20h10v1.19c0 .45.34.81.78.81h.44c.43 0 .78-.36.78-.81v-6.5c-.82-2.46-1.34-4.03-1.56-4.69-.05-.16-.12-.29-.19-.4zM8.33 11h7.34l.23.69.43 1.31H7.67l.66-2zM17 18H7v-3h10v3zM10.83 3C10.41 1.83 9.3 1 8 1 6.34 1 5 2.34 5 4c0 1.65 1.34 3 3 3 1.3 0 2.41-.84 2.83-2H16v2h2V5h1V3h-8.17zM8 5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"
}, "2")], 'CarRentalOutlined'); | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/CarRentalOutlined.js | [
"MIT"
] |
# cmd
> Android service manager.
> More information: <https://cs.android.com/android/platform/superproject/+/master:frameworks/native/cmds/cmd/>.
- List every running service:
`cmd -l`
- Call a specific service:
`cmd {{alarm}}`
- Call a service with arguments:
`cmd {{vibrator}} {{vibrate 300}}`
| Markdown | 3 | derNiklaas/tldr | pages/android/cmd.md | [
"CC-BY-4.0"
] |
class_name Layer extends Reference
# A class for layer properties.
var name := ""
var visible := true
var locked := false
var frame_container : HBoxContainer
var new_cels_linked := false
var linked_cels := [] # Array of Frames
func _init(_name := "", _visible := true, _locked := false, _frame_container := HBoxContainer.new(), _new_cels_linked := false, _linked_cels := []) -> void:
name = _name
visible = _visible
locked = _locked
frame_container = _frame_container
new_cels_linked = _new_cels_linked
linked_cels = _linked_cels
func can_layer_get_drawn() -> bool:
return visible && !locked
| GDScript | 4 | triptych/Pixelorama | src/Classes/Layer.gd | [
"MIT"
] |
HAI 1.3
I HAS A COINZ ITZ A BUKKIT
COINZ HAS A SRS 0 ITZ 200
COINZ HAS A SRS 1 ITZ 100
COINZ HAS A SRS 2 ITZ 50
COINZ HAS A SRS 3 ITZ 20
COINZ HAS A SRS 4 ITZ 10
COINZ HAS A SRS 5 ITZ 5
COINZ HAS A SRS 6 ITZ 2
COINZ HAS A SRS 7 ITZ 1
BTW MEMORY[R][C] ITZ THE NUMBR OF WAYS YOU CAN MAKE C USING COINZ <= R
I HAS A MEMORY ITZ A BUKKIT
IM IN YR LOOP UPPIN YR ROW WILE DIFFRINT ROW 8
MEMORY HAS A SRS ROW ITZ A BUKKIT
IM IN YR LOOOP UPPIN YR COL WILE DIFFRINT COL 201
MEMORY'Z SRS ROW HAS A SRS COL ITZ 0
IM OUTTA YR LOOOP
IM OUTTA YR LOOP
I HAS A WAYS
I HAS A COINVALUE
IM IN YR LOOP UPPIN YR ROW WILE DIFFRINT ROW 8
IM IN YR LOOOP UPPIN YR COL WILE DIFFRINT COL 201
WAYS R 0
IM IN YR LOOOOP UPPIN YR COIN WILE DIFFRINT COIN SUM OF ROW 1
COINVALUE R COINZ'Z SRS COIN
BOTH SAEM COINVALUE COL, O RLY?
YA RLY
WAYS R SUM OF WAYS 1
MEBBE BOTH SAEM BIGGR OF COINVALUE COL COL
WAYS R SUM OF...
WAYS...
MEMORY'Z SRS SUM OF COIN 0'Z SRS DIFF OF COL COINVALUE
OIC
IM OUTTA YR LOOOOP
MEMORY'Z SRS SUM OF ROW 0'Z SRS SUM OF COL 0 R WAYS
IM OUTTA YR LOOOP
IM OUTTA YR LOOP
VISIBLE MEMORY'Z SRS 7'Z SRS 200
KTHXBYE
| LOLCODE | 4 | LeartS/loleuler | 031.lol | [
"MIT"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#ifndef TENSORFLOW_COMPILER_MLIR_TFR_IR_TFR_UTILS_UTILS_H_
#define TENSORFLOW_COMPILER_MLIR_TFR_IR_TFR_UTILS_UTILS_H_
#include "mlir/IR/Block.h" // from @llvm-project
#include "mlir/IR/Operation.h" // from @llvm-project
#include "mlir/IR/OperationSupport.h" // from @llvm-project
#include "mlir/Support/LLVM.h" // from @llvm-project
#include "mlir/Support/LogicalResult.h" // from @llvm-project
#include "tensorflow/compiler/mlir/tfr/ir/tfr_ops.h"
namespace mlir {
namespace TFR {
// This is a hardcoded rule for mapping a TF op name to the corresponding
// TFR function name. Examples:
// tf.Pack => tf__pack
// tf.ConcatV2 => tf__concat_v2
// TODO(fengliuai): move to an util file.
std::string GetComposeFuncName(StringRef tf_op_name);
// This is a hardcoded rule for mapping a TFR function op name to the
// corresponding TF opname. Examples:
// tf__pack -> tf.Pack
// tf__concat_v2 => tf.ConcatV2
std::string GetTFOpName(StringRef compose_func_name);
// Validate the attributes of 'src' is either contained in the registered
// attribute sets or in the allowed list.
LogicalResult ValidateAttrs(Operation* src, const StringSet<>& registered);
// Copies all the allowed attributes in 'src' to 'dst'. The copy failed if the
// 'dst' has the attribute. Return a failure if there are any attributes are not
// allowed and also unregistered.
LogicalResult CopyAllowedUnregisteredAttrs(Operation* src, CallOp dst,
const StringSet<>& registered);
// Copies all the allowed attributes in 'src' to 'dst'. FlatSymbolRefAttr is
// excluded.
LogicalResult CopyNonSymbolRefAttrs(CallOp src, Operation* dst);
// Propagates all the attributes in 'src' to the operations between 'begin' and
// 'end'. Operation 'end' is excluded.
void PropagateAttrsToOperations(CallOp src, Block::iterator begin,
Block::iterator end);
} // namespace TFR
} // namespace mlir
#endif // TENSORFLOW_COMPILER_MLIR_TFR_IR_TFR_UTILS_UTILS_H_
| C | 4 | EricRemmerswaal/tensorflow | tensorflow/compiler/mlir/tfr/utils/utils.h | [
"Apache-2.0"
] |
################################################
################# ZIP PATH 1 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 595.769 971.013 68.367
zip_path_point 617.240 982.719 85.965
zip_end_path
################# END ZIP PATH 1 #################
################# ZIP PATH 2 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 597.420 911.907 87.951
zip_path_point 611.503 936.960 72.997
zip_end_path
################# END ZIP PATH 2 #################
################# ZIP PATH 3 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 622.076 1023.440 63.331
zip_path_point 622.719 1018.502 93.332
zip_end_path
################# END ZIP PATH 3 #################
################# ZIP PATH 4 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 628.066 653.647 80.947
zip_path_point 652.793 654.850 98.078
zip_path_point 677.121 654.452 121.481
zip_path_point 710.524 646.688 122.730
zip_path_point 744.227 642.925 123.980
zip_end_path
################# END ZIP PATH 4 #################
################# ZIP PATH 5 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 631.571 1017.425 93.820
zip_path_point 653.945 1018.949 91.508
zip_path_point 676.320 1020.473 70.296
zip_path_point 688.877 1021.349 58.994
zip_path_point 701.634 1022.026 51.414
zip_end_path
################# END ZIP PATH 5 #################
################# ZIP PATH 6 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 639.683 966.037 84.225
zip_path_point 689.438 956.275 90.453
zip_path_point 739.193 946.514 95.940
zip_path_point 788.948 936.752 101.427
zip_path_point 838.703 926.990 106.914
zip_path_point 883.580 918.186 111.693
zip_end_path
################# END ZIP PATH 6 #################
################# ZIP PATH 7 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 641.629 1156.085 64.865
zip_path_point 665.451 1200.132 77.380
zip_path_point 688.672 1243.979 89.156
zip_path_point 690.138 1247.258 89.300
zip_end_path
################# END ZIP PATH 7 #################
################# ZIP PATH 8 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 647.373 1216.143 59.351
zip_path_point 649.375 1217.210 92.651
zip_end_path
################# END ZIP PATH 8 #################
################# ZIP PATH 9 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 656.468 1211.522 93.177
zip_path_point 681.191 1213.828 92.881
zip_path_point 705.915 1216.135 82.302
zip_path_point 730.384 1218.306 73.437
zip_path_point 754.853 1220.477 67.488
zip_end_path
################# END ZIP PATH 9 #################
################# ZIP PATH 10 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 664.549 761.402 102.108
zip_path_point 675.283 781.529 101.954
zip_path_point 696.017 800.657 94.508
zip_path_point 698.568 805.866 92.115
zip_end_path
################# END ZIP PATH 10 #################
################# ZIP PATH 11 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 667.071 1071.460 59.851
zip_path_point 640.825 1029.389 67.036
zip_path_point 639.251 1026.864 63.832
zip_end_path
################# END ZIP PATH 11 #################
################# ZIP PATH 12 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 681.428 851.663 102.023
zip_path_point 682.274 857.674 107.525
zip_end_path
################# END ZIP PATH 12 #################
################# ZIP PATH 13 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 688.419 814.561 92.096
zip_path_point 651.401 848.164 92.076
zip_path_point 614.383 881.766 91.308
zip_path_point 600.317 894.536 87.967
zip_end_path
################# END ZIP PATH 13 #################
################# ZIP PATH 14 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 690.738 1071.926 59.857
zip_path_point 718.545 1031.940 51.832
zip_end_path
################# END ZIP PATH 14 #################
################# ZIP PATH 15 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 704.126 1290.795 89.088
zip_path_point 725.776 1332.843 70.701
zip_path_point 733.841 1348.508 59.900
zip_end_path
################# END ZIP PATH 15 #################
################# ZIP PATH 16 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 709.910 748.459 89.816
zip_path_point 718.399 769.508 85.932
zip_path_point 726.888 790.558 75.963
zip_end_path
################# END ZIP PATH 16 #################
################# ZIP PATH 17 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 716.417 703.283 88.381
zip_path_point 693.333 697.461 86.535
zip_path_point 670.250 691.640 73.819
zip_path_point 667.480 690.942 70.780
zip_end_path
################# END ZIP PATH 17 #################
################# ZIP PATH 18 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 716.858 1244.631 89.045
zip_path_point 728.226 1196.511 97.219
zip_path_point 734.592 1169.563 99.721
zip_end_path
################# END ZIP PATH 18 #################
################# ZIP PATH 19 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 717.701 634.430 104.600
zip_path_point 687.153 675.260 104.696
zip_path_point 662.594 708.085 102.100
zip_end_path
################# END ZIP PATH 19 #################
################# ZIP PATH 20 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 718.911 629.346 70.251
zip_path_point 717.944 629.452 104.100
zip_end_path
################# END ZIP PATH 20 #################
################# ZIP PATH 21 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 727.332 763.987 84.168
zip_path_point 744.248 750.002 87.851
zip_end_path
################# END ZIP PATH 21 #################
################# ZIP PATH 22 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 732.261 1124.261 99.745
zip_path_point 727.120 1101.174 100.445
zip_path_point 721.979 1078.088 84.275
zip_path_point 711.698 1031.915 68.074
zip_path_point 702.623 1001.287 55.689
zip_end_path
################# END ZIP PATH 22 #################
################# ZIP PATH 23 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 732.939 1112.987 59.850
zip_path_point 694.976 1114.277 59.850
zip_end_path
################# END ZIP PATH 23 #################
################# ZIP PATH 24 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 733.315 1043.086 44.023
zip_path_point 783.468 1035.628 50.227
zip_path_point 833.622 1028.170 55.683
zip_path_point 883.775 1020.711 61.138
zip_path_point 905.443 1018.487 62.496
zip_end_path
################# END ZIP PATH 24 #################
################# ZIP PATH 25 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 734.343 605.285 69.928
zip_path_point 750.482 605.113 67.796
zip_path_point 766.621 604.942 53.571
zip_end_path
################# END ZIP PATH 25 #################
################# ZIP PATH 26 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 737.579 931.404 51.220
zip_path_point 716.598 908.304 73.219
zip_path_point 709.877 905.151 70.799
zip_end_path
################# END ZIP PATH 26 #################
################# ZIP PATH 27 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 746.348 668.394 122.776
zip_path_point 740.464 689.729 113.792
zip_path_point 735.780 711.064 93.308
zip_path_point 735.132 714.654 88.352
zip_end_path
################# END ZIP PATH 27 #################
################# ZIP PATH 28 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 756.100 1155.746 99.220
zip_path_point 760.176 1186.748 76.063
zip_end_path
################# END ZIP PATH 28 #################
################# ZIP PATH 29 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 758.959 1194.575 63.456
zip_path_point 764.260 1195.303 46.030
zip_end_path
################# END ZIP PATH 29 #################
################# ZIP PATH 30 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 759.687 1211.316 63.947
zip_path_point 710.624 1201.801 63.107
zip_path_point 692.961 1198.375 59.852
zip_end_path
################# END ZIP PATH 30 #################
################# ZIP PATH 31 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 764.413 1133.386 99.716
zip_path_point 783.198 1108.766 100.661
zip_end_path
################# END ZIP PATH 31 #################
################# ZIP PATH 32 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 765.981 1159.159 99.716
zip_path_point 810.625 1183.744 102.261
zip_path_point 855.268 1211.829 104.064
zip_path_point 870.587 1219.715 104.201
zip_path_point 885.906 1225.201 104.337
zip_end_path
################# END ZIP PATH 32 #################
################# ZIP PATH 33 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 771.910 1172.993 63.947
zip_path_point 723.732 1159.705 63.095
zip_path_point 690.971 1150.670 59.851
zip_end_path
################# END ZIP PATH 33 #################
################# ZIP PATH 34 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 776.173 1384.778 59.389
zip_path_point 775.563 1385.205 93.170
zip_end_path
################# END ZIP PATH 34 #################
################# ZIP PATH 35 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 776.538 590.261 41.751
zip_path_point 770.792 585.914 54.699
zip_end_path
################# END ZIP PATH 35 #################
################# ZIP PATH 36 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 778.127 1380.551 93.692
zip_path_point 780.733 1332.620 80.418
zip_path_point 783.339 1284.689 66.407
zip_path_point 784.330 1266.475 59.124
zip_end_path
################# END ZIP PATH 36 #################
################# ZIP PATH 37 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 779.095 1230.403 63.946
zip_path_point 739.117 1262.004 62.663
zip_path_point 706.979 1287.409 59.851
zip_end_path
################# END ZIP PATH 37 #################
################# ZIP PATH 38 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 790.673 706.230 124.487
zip_path_point 826.321 741.589 115.105
zip_path_point 834.850 750.027 114.023
zip_end_path
################# END ZIP PATH 38 #################
################# ZIP PATH 39 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 792.934 1321.527 59.855
zip_path_point 842.515 1314.349 70.136
zip_path_point 845.431 1313.927 67.129
zip_end_path
################# END ZIP PATH 39 #################
################# ZIP PATH 40 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 804.465 725.206 70.251
zip_path_point 796.278 734.802 87.850
zip_end_path
################# END ZIP PATH 40 #################
################# ZIP PATH 41 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 826.335 762.948 110.827
zip_path_point 781.175 783.752 106.282
zip_path_point 751.369 797.483 101.617
zip_end_path
################# END ZIP PATH 41 #################
################# ZIP PATH 42 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 826.402 1227.598 46.030
zip_path_point 831.918 1228.608 63.456
zip_end_path
################# END ZIP PATH 42 #################
################# ZIP PATH 43 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 840.839 1179.419 74.023
zip_path_point 884.232 1154.925 70.614
zip_path_point 892.042 1150.516 69.240
zip_end_path
################# END ZIP PATH 43 #################
################# ZIP PATH 44 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 856.866 760.258 106.973
zip_path_point 863.339 738.383 103.320
zip_path_point 869.812 716.508 92.220
zip_path_point 882.757 672.758 66.763
zip_path_point 883.534 670.133 62.646
zip_end_path
################# END ZIP PATH 44 #################
################# ZIP PATH 45 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 863.236 1245.084 105.631
zip_path_point 846.791 1264.905 103.229
zip_path_point 832.947 1284.727 93.958
zip_path_point 811.857 1324.369 73.568
zip_path_point 794.902 1350.533 61.081
zip_end_path
################# END ZIP PATH 45 #################
################# ZIP PATH 46 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 864.625 1267.214 66.624
zip_path_point 863.782 1265.734 97.640
zip_end_path
################# END ZIP PATH 46 #################
################# ZIP PATH 47 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 866.119 1262.615 98.148
zip_path_point 839.194 1221.252 90.849
zip_path_point 818.730 1189.815 82.843
zip_end_path
################# END ZIP PATH 47 #################
################# ZIP PATH 48 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 867.992 776.508 112.423
zip_path_point 897.561 733.592 107.972
zip_path_point 921.895 700.860 101.848
zip_end_path
################# END ZIP PATH 48 #################
################# ZIP PATH 49 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 874.239 963.551 62.593
zip_path_point 846.249 1006.177 62.656
zip_path_point 818.258 1048.804 61.980
zip_path_point 790.268 1091.430 61.303
zip_path_point 786.426 1097.281 59.851
zip_end_path
################# END ZIP PATH 49 #################
################# ZIP PATH 50 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 878.080 1211.270 68.740
zip_path_point 879.584 1210.817 101.500
zip_end_path
################# END ZIP PATH 50 #################
################# ZIP PATH 51 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 883.719 1201.219 102.011
zip_path_point 915.265 1162.523 105.556
zip_path_point 946.811 1123.826 108.357
zip_path_point 978.357 1085.130 111.159
zip_path_point 1009.903 1046.434 113.960
zip_path_point 1016.843 1037.921 113.549
zip_end_path
################# END ZIP PATH 51 #################
################# ZIP PATH 52 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 894.869 621.373 98.009
zip_path_point 854.043 649.440 105.507
zip_path_point 835.995 610.128 120.408
zip_path_point 808.048 664.316 124.498
zip_end_path
################# END ZIP PATH 52 #################
################# ZIP PATH 53 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 895.912 1177.993 80.149
zip_path_point 911.404 1158.136 80.364
zip_path_point 926.896 1138.280 72.893
zip_path_point 957.881 1098.567 62.501
zip_end_path
################# END ZIP PATH 53 #################
################# ZIP PATH 54 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 899.473 935.000 62.594
zip_path_point 876.765 890.548 66.273
zip_path_point 854.057 846.096 69.210
zip_path_point 831.349 801.645 72.147
zip_path_point 819.086 777.641 70.751
zip_end_path
################# END ZIP PATH 54 #################
################# ZIP PATH 55 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 908.183 913.064 100.237
zip_path_point 867.304 885.330 93.219
zip_path_point 826.426 857.596 85.468
zip_path_point 785.548 829.861 77.717
zip_path_point 764.291 815.439 70.758
zip_end_path
################# END ZIP PATH 55 #################
################# ZIP PATH 56 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 911.107 1174.015 69.257
zip_path_point 961.534 1174.277 62.381
zip_path_point 1011.962 1174.538 53.076
zip_end_path
################# END ZIP PATH 56 #################
################# ZIP PATH 57 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 917.500 902.310 100.231
zip_path_point 877.638 869.806 98.397
zip_path_point 838.975 838.202 95.820
zip_path_point 800.312 806.598 93.243
zip_path_point 761.649 774.994 90.667
zip_path_point 757.956 768.465 88.352
zip_end_path
################# END ZIP PATH 57 #################
################# ZIP PATH 58 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 919.336 713.814 82.701
zip_path_point 871.433 727.840 86.378
zip_path_point 823.530 741.866 89.315
zip_path_point 809.159 746.074 88.351
zip_end_path
################# END ZIP PATH 58 #################
################# ZIP PATH 59 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 920.936 918.429 98.892
zip_path_point 930.880 917.027 106.390
zip_end_path
################# END ZIP PATH 59 #################
################# ZIP PATH 60 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 931.553 1025.102 68.290
zip_path_point 986.020 1001.745 103.056
zip_end_path
################# END ZIP PATH 60 #################
################# ZIP PATH 61 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 942.175 878.239 62.093
zip_path_point 943.987 879.733 96.131
zip_end_path
################# END ZIP PATH 61 #################
################# ZIP PATH 62 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 947.606 886.439 96.628
zip_path_point 939.941 912.104 98.851
zip_path_point 932.276 910.769 100.281
zip_end_path
################# END ZIP PATH 62 #################
################# ZIP PATH 63 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 948.062 1085.025 61.993
zip_path_point 949.074 1086.391 96.350
zip_end_path
################# END ZIP PATH 63 #################
################# ZIP PATH 64 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 948.659 1092.809 96.850
zip_path_point 970.915 1138.642 99.740
zip_path_point 993.172 1184.475 101.885
zip_path_point 1010.628 1220.422 102.440
zip_end_path
################# END ZIP PATH 64 #################
################# ZIP PATH 65 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 948.992 1063.970 71.392
zip_path_point 937.880 1016.375 82.682
zip_path_point 926.769 968.780 93.233
zip_path_point 918.324 932.607 100.241
zip_end_path
################# END ZIP PATH 65 #################
################# ZIP PATH 66 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 953.017 912.695 111.692
zip_path_point 966.054 864.624 108.046
zip_path_point 979.091 816.552 103.660
zip_path_point 991.085 772.327 97.368
zip_end_path
################# END ZIP PATH 66 #################
################# ZIP PATH 67 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 953.159 878.010 96.653
zip_path_point 1001.650 866.321 86.763
zip_path_point 1050.141 854.633 76.144
zip_path_point 1098.632 842.944 65.526
zip_path_point 1136.513 834.006 55.215
zip_end_path
################# END ZIP PATH 67 #################
################# ZIP PATH 68 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 954.303 919.458 111.690
zip_path_point 995.314 949.714 110.578
zip_path_point 1013.810 963.359 108.580
zip_end_path
################# END ZIP PATH 68 #################
################# ZIP PATH 69 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 976.326 1280.215 80.595
zip_path_point 991.029 1263.616 100.993
zip_path_point 1006.532 1246.817 102.503
zip_end_path
################# END ZIP PATH 69 #################
################# ZIP PATH 70 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 976.772 907.016 70.833
zip_path_point 1027.604 902.932 71.139
zip_path_point 1078.436 898.848 70.695
zip_path_point 1129.268 894.764 70.252
zip_path_point 1134.251 894.363 70.097
zip_end_path
################# END ZIP PATH 70 #################
################# ZIP PATH 71 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 980.673 1225.401 53.070
zip_path_point 986.931 1201.197 53.070
zip_end_path
################# END ZIP PATH 71 #################
################# ZIP PATH 72 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 985.328 1009.551 103.617
zip_path_point 962.989 1018.146 99.408
zip_path_point 940.651 1026.742 86.734
zip_path_point 895.973 1043.931 69.146
zip_path_point 885.460 1047.976 62.529
zip_end_path
################# END ZIP PATH 72 #################
################# ZIP PATH 73 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 987.286 993.985 103.561
zip_path_point 951.211 959.387 102.946
zip_path_point 922.351 931.709 100.230
zip_end_path
################# END ZIP PATH 73 #################
################# ZIP PATH 74 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 991.669 1240.497 102.448
zip_path_point 942.154 1246.661 106.414
zip_path_point 922.348 1249.127 106.791
zip_end_path
################# END ZIP PATH 74 #################
################# ZIP PATH 75 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 997.886 1001.888 98.080
zip_path_point 998.308 1001.920 108.080
zip_end_path
################# END ZIP PATH 75 #################
################# ZIP PATH 76 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 999.780 736.423 86.154
zip_path_point 1033.248 727.680 80.234
zip_end_path
################# END ZIP PATH 76 #################
################# ZIP PATH 77 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1000.418 720.566 63.331
zip_path_point 1002.710 707.743 77.048
zip_end_path
################# END ZIP PATH 77 #################
################# ZIP PATH 78 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1008.413 723.293 63.331
zip_path_point 1017.740 732.348 63.331
zip_end_path
################# END ZIP PATH 78 #################
################# ZIP PATH 79 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1010.377 989.510 103.080
zip_path_point 1007.820 1015.348 113.080
zip_end_path
################# END ZIP PATH 79 #################
################# ZIP PATH 80 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1015.780 1119.224 62.694
zip_path_point 1017.258 1170.106 66.551
zip_path_point 1017.635 1183.076 65.768
zip_end_path
################# END ZIP PATH 80 #################
################# ZIP PATH 81 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1015.913 856.541 62.705
zip_path_point 1015.379 807.652 73.915
zip_path_point 1015.251 795.919 76.088
zip_end_path
################# END ZIP PATH 81 #################
################# ZIP PATH 82 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1020.050 964.844 103.522
zip_path_point 1014.081 915.391 99.916
zip_path_point 1008.112 865.937 95.573
zip_path_point 1002.142 816.483 91.229
zip_path_point 998.583 781.355 86.198
zip_end_path
################# END ZIP PATH 82 #################
################# ZIP PATH 83 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1021.393 1038.505 113.581
zip_path_point 1023.559 1062.368 112.810
zip_path_point 1026.326 1087.631 101.555
zip_path_point 1031.256 1136.757 88.792
zip_path_point 1036.187 1185.883 76.030
zip_path_point 1037.157 1195.252 72.654
zip_end_path
################# END ZIP PATH 83 #################
################# ZIP PATH 84 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1022.311 963.688 108.626
zip_path_point 1021.282 941.241 104.749
zip_path_point 1020.254 918.794 88.819
zip_path_point 1018.856 888.266 69.743
zip_end_path
################# END ZIP PATH 84 #################
################# ZIP PATH 85 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1024.216 1237.287 101.928
zip_path_point 1022.885 1236.282 107.438
zip_end_path
################# END ZIP PATH 85 #################
################# ZIP PATH 86 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1025.717 1248.900 102.662
zip_path_point 1019.157 1290.883 77.791
zip_end_path
################# END ZIP PATH 86 #################
################# ZIP PATH 87 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1030.526 1043.280 108.581
zip_path_point 1060.287 1082.425 114.331
zip_path_point 1068.936 1079.388 113.542
zip_end_path
################# END ZIP PATH 87 #################
################# ZIP PATH 88 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1031.956 1098.930 71.733
zip_path_point 1017.253 1035.007 108.080
zip_end_path
################# END ZIP PATH 88 #################
################# ZIP PATH 89 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1032.161 1288.907 63.331
zip_path_point 1013.199 1290.127 63.331
zip_end_path
################# END ZIP PATH 89 #################
################# ZIP PATH 90 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1033.844 1237.622 102.493
zip_path_point 1069.373 1274.123 100.766
zip_path_point 1104.903 1310.623 98.295
zip_path_point 1140.432 1347.124 95.825
zip_path_point 1164.118 1371.458 93.150
zip_end_path
################# END ZIP PATH 90 #################
################# ZIP PATH 91 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1034.374 1170.445 53.073
zip_path_point 1071.018 1135.457 59.658
zip_path_point 1099.040 1108.701 62.896
zip_end_path
################# END ZIP PATH 91 #################
################# ZIP PATH 92 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1037.704 986.625 103.080
zip_path_point 1008.671 1016.569 103.080
zip_end_path
################# END ZIP PATH 92 #################
################# ZIP PATH 93 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1038.931 1285.894 76.250
zip_path_point 1047.650 1294.159 83.937
zip_path_point 1056.369 1302.425 83.265
zip_end_path
################# END ZIP PATH 93 #################
################# ZIP PATH 94 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1042.946 1314.831 83.284
zip_path_point 1029.474 1325.092 81.244
zip_path_point 1016.003 1335.353 69.474
zip_end_path
################# END ZIP PATH 94 #################
################# ZIP PATH 95 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1048.868 1001.705 98.080
zip_path_point 1048.716 1001.779 113.080
zip_end_path
################# END ZIP PATH 95 #################
################# ZIP PATH 96 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1050.738 892.293 70.931
zip_path_point 1030.048 969.873 108.080
zip_end_path
################# END ZIP PATH 96 #################
################# ZIP PATH 97 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1059.265 1222.820 73.793
zip_path_point 1055.342 1172.574 70.201
zip_path_point 1058.848 1129.879 62.697
zip_end_path
################# END ZIP PATH 97 #################
################# ZIP PATH 98 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1061.142 1002.705 113.644
zip_path_point 1084.951 1003.950 111.690
zip_path_point 1108.761 1005.195 96.273
zip_path_point 1156.381 1007.685 78.199
zip_path_point 1204.000 1010.176 60.126
zip_path_point 1206.801 1010.322 55.667
zip_end_path
################# END ZIP PATH 98 #################
################# ZIP PATH 99 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1068.700 1088.587 72.146
zip_path_point 1030.278 1056.665 70.605
zip_path_point 991.859 1024.744 72.816
zip_path_point 953.440 992.822 77.127
zip_path_point 940.041 974.242 78.338
zip_path_point 926.642 955.662 72.350
zip_end_path
################# END ZIP PATH 99 #################
################# ZIP PATH 100 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1070.703 1182.499 65.267
zip_path_point 1071.896 1181.097 99.132
zip_end_path
################# END ZIP PATH 100 #################
################# ZIP PATH 101 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1072.490 703.019 74.582
zip_path_point 1122.923 696.068 72.359
zip_path_point 1173.357 689.117 69.381
zip_path_point 1185.223 687.481 67.424
zip_end_path
################# END ZIP PATH 101 #################
################# ZIP PATH 102 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1075.826 1172.464 99.643
zip_path_point 1059.780 1125.381 105.503
zip_path_point 1043.734 1078.299 110.607
zip_path_point 1031.539 1042.516 113.589
zip_end_path
################# END ZIP PATH 102 #################
################# ZIP PATH 103 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1086.981 909.865 75.232
zip_path_point 1058.547 991.146 112.996
zip_end_path
################# END ZIP PATH 103 #################
################# ZIP PATH 104 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1087.994 1101.369 72.933
zip_path_point 1091.579 1063.563 113.040
zip_end_path
################# END ZIP PATH 104 #################
################# ZIP PATH 105 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1093.367 814.482 62.395
zip_path_point 1097.482 865.146 67.271
zip_path_point 1099.257 887.001 67.998
zip_end_path
################# END ZIP PATH 105 #################
################# ZIP PATH 106 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1108.968 1065.041 113.578
zip_path_point 1115.996 1042.885 110.550
zip_path_point 1123.024 1020.730 95.861
zip_path_point 1137.081 976.421 77.441
zip_path_point 1141.860 961.357 70.272
zip_end_path
################# END ZIP PATH 106 #################
################# ZIP PATH 107 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1109.326 719.601 105.195
zip_path_point 1064.788 696.899 104.857
zip_path_point 1020.251 674.197 103.774
zip_path_point 975.714 651.495 102.692
zip_path_point 931.176 628.793 101.610
zip_path_point 916.306 624.537 98.183
zip_end_path
################# END ZIP PATH 107 #################
################# ZIP PATH 108 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1112.701 1072.817 113.492
zip_path_point 1126.783 1092.701 112.580
zip_path_point 1140.865 1112.586 99.194
zip_path_point 1169.030 1152.355 84.168
zip_path_point 1188.911 1180.428 70.467
zip_end_path
################# END ZIP PATH 108 #################
################# ZIP PATH 109 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1116.494 1011.005 75.450
zip_path_point 1160.328 988.101 63.755
zip_path_point 1187.832 973.730 53.559
zip_end_path
################# END ZIP PATH 109 #################
################# ZIP PATH 110 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1117.678 834.135 51.078
zip_path_point 1068.972 844.563 55.228
zip_end_path
################# END ZIP PATH 110 #################
################# ZIP PATH 111 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1118.780 977.911 62.593
zip_path_point 1118.424 973.771 92.590
zip_end_path
################# END ZIP PATH 111 #################
################# ZIP PATH 112 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1119.944 971.229 93.091
zip_path_point 1125.290 921.608 96.903
zip_path_point 1130.637 871.986 99.956
zip_path_point 1135.984 822.365 103.009
zip_path_point 1141.330 772.743 106.063
zip_path_point 1142.400 762.819 105.298
zip_end_path
################# END ZIP PATH 112 #################
################# ZIP PATH 113 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1126.862 957.212 75.033
zip_path_point 1164.602 991.481 74.353
zip_path_point 1202.341 1025.749 72.915
zip_path_point 1235.641 1055.984 70.441
zip_end_path
################# END ZIP PATH 113 #################
################# ZIP PATH 114 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1138.220 776.829 60.837
zip_path_point 1185.416 778.843 80.756
zip_path_point 1224.284 780.501 96.211
zip_end_path
################# END ZIP PATH 114 #################
################# ZIP PATH 115 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1145.490 1219.031 70.445
zip_path_point 1110.657 1221.727 65.772
zip_end_path
################# END ZIP PATH 115 #################
################# ZIP PATH 116 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1145.658 1046.987 62.895
zip_path_point 1173.990 1089.160 68.031
zip_path_point 1202.012 1130.178 70.442
zip_end_path
################# END ZIP PATH 116 #################
################# ZIP PATH 117 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1145.854 848.204 41.711
zip_path_point 1136.769 851.408 53.017
zip_end_path
################# END ZIP PATH 117 #################
################# ZIP PATH 118 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1150.993 1202.394 111.938
zip_path_point 1102.384 1213.637 108.625
zip_path_point 1053.776 1224.880 105.269
zip_path_point 1032.860 1233.202 102.450
zip_end_path
################# END ZIP PATH 118 #################
################# ZIP PATH 119 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1157.936 755.227 105.205
zip_path_point 1194.167 722.066 96.587
zip_path_point 1230.397 688.906 85.320
zip_end_path
################# END ZIP PATH 119 #################
################# ZIP PATH 120 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1182.377 1225.952 111.960
zip_path_point 1211.207 1266.997 103.516
zip_path_point 1230.428 1294.360 95.849
zip_end_path
################# END ZIP PATH 120 #################
################# ZIP PATH 121 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1183.368 1372.605 93.007
zip_path_point 1227.066 1346.365 95.448
zip_path_point 1257.054 1328.356 95.840
zip_end_path
################# END ZIP PATH 121 #################
################# ZIP PATH 122 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1196.442 691.273 100.784
zip_path_point 1157.750 723.895 107.820
zip_path_point 1153.198 727.733 108.014
zip_end_path
################# END ZIP PATH 122 #################
################# ZIP PATH 123 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1197.646 931.980 56.108
zip_path_point 1208.098 981.536 62.846
zip_path_point 1218.551 1031.092 68.830
zip_path_point 1223.675 1055.384 70.444
zip_end_path
################# END ZIP PATH 123 #################
################# ZIP PATH 124 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1198.424 1256.573 86.345
zip_path_point 1182.542 1269.419 86.762
zip_path_point 1166.661 1282.265 83.094
zip_path_point 1127.897 1310.958 69.897
zip_path_point 1114.717 1320.713 64.233
zip_end_path
################# END ZIP PATH 124 #################
################# ZIP PATH 125 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1198.609 684.319 66.924
zip_path_point 1199.063 682.308 100.280
zip_end_path
################# END ZIP PATH 125 #################
################# ZIP PATH 126 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1199.772 1022.014 55.634
zip_path_point 1150.254 1024.653 62.833
zip_path_point 1148.274 1024.758 62.898
zip_end_path
################# END ZIP PATH 126 #################
################# ZIP PATH 127 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1203.743 1205.042 69.941
zip_path_point 1200.635 1212.965 85.830
zip_end_path
################# END ZIP PATH 127 #################
################# ZIP PATH 128 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1203.809 691.086 100.782
zip_path_point 1212.171 700.648 104.414
zip_path_point 1220.534 710.211 105.048
zip_path_point 1237.259 729.336 97.217
zip_path_point 1254.312 748.836 93.592
zip_end_path
################# END ZIP PATH 128 #################
################# ZIP PATH 129 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1218.115 1081.456 77.607
zip_path_point 1168.182 1082.952 76.137
zip_path_point 1118.249 1084.447 73.920
zip_path_point 1088.289 1085.344 71.988
zip_end_path
################# END ZIP PATH 129 #################
################# ZIP PATH 130 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1222.880 1118.832 81.220
zip_path_point 1175.596 1104.086 75.102
zip_path_point 1128.312 1089.340 68.250
zip_path_point 1107.507 1082.852 62.899
zip_end_path
################# END ZIP PATH 130 #################
################# ZIP PATH 131 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1226.808 732.805 67.430
zip_path_point 1191.254 768.664 61.050
zip_path_point 1163.368 796.789 53.076
zip_end_path
################# END ZIP PATH 131 #################
################# ZIP PATH 132 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1233.261 747.070 93.355
zip_path_point 1223.936 727.816 90.392
zip_path_point 1214.611 708.563 67.471
zip_end_path
################# END ZIP PATH 132 #################
################# ZIP PATH 133 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1236.826 1287.784 95.841
zip_path_point 1252.226 1264.968 94.594
zip_path_point 1259.126 1242.353 94.248
zip_path_point 1263.970 1229.770 92.270
zip_path_point 1268.914 1214.787 89.594
zip_end_path
################# END ZIP PATH 133 #################
################# ZIP PATH 134 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1238.011 1087.458 79.528
zip_path_point 1256.071 1040.094 74.678
zip_path_point 1274.132 992.730 69.080
zip_path_point 1292.192 945.365 63.481
zip_path_point 1292.546 944.437 60.154
zip_end_path
################# END ZIP PATH 134 #################
################# ZIP PATH 135 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1239.379 1157.428 91.670
zip_path_point 1229.535 1148.836 80.740
zip_end_path
################# END ZIP PATH 135 #################
################# ZIP PATH 136 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1243.286 1071.458 110.467
zip_path_point 1195.837 1055.729 112.502
zip_path_point 1148.388 1040.000 113.797
zip_path_point 1100.939 1024.271 115.092
zip_path_point 1060.080 1011.891 113.685
zip_end_path
################# END ZIP PATH 136 #################
################# ZIP PATH 137 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1246.826 1113.238 110.476
zip_path_point 1227.560 1124.142 107.770
zip_path_point 1208.294 1135.046 87.974
zip_path_point 1185.175 1148.131 70.650
zip_end_path
################# END ZIP PATH 137 #################
################# ZIP PATH 138 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1257.492 1082.723 77.837
zip_path_point 1269.300 1091.048 109.970
zip_end_path
################# END ZIP PATH 138 #################
################# ZIP PATH 139 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1261.129 646.490 41.671
zip_path_point 1256.709 663.872 67.120
zip_end_path
################# END ZIP PATH 139 #################
################# ZIP PATH 140 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1261.935 800.968 93.356
zip_path_point 1310.395 816.495 97.405
zip_path_point 1358.855 832.022 100.714
zip_path_point 1370.406 836.262 99.718
zip_end_path
################# END ZIP PATH 140 #################
################# ZIP PATH 141 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1264.266 1055.810 71.423
zip_path_point 1280.247 1103.405 81.102
zip_path_point 1282.754 1110.870 81.848
zip_end_path
################# END ZIP PATH 141 #################
################# ZIP PATH 142 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1269.421 1295.131 96.089
zip_path_point 1265.331 1245.509 92.181
zip_path_point 1261.242 1195.888 87.536
zip_path_point 1257.643 1152.221 81.199
zip_end_path
################# END ZIP PATH 142 #################
################# ZIP PATH 143 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1269.620 1116.620 81.595
zip_path_point 1248.045 1106.837 81.616
zip_path_point 1237.257 1110.195 81.152
zip_end_path
################# END ZIP PATH 143 #################
################# ZIP PATH 144 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1270.147 1315.938 95.853
zip_path_point 1307.494 1284.474 107.335
zip_path_point 1325.421 1269.371 112.600
zip_end_path
################# END ZIP PATH 144 #################
################# ZIP PATH 145 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1272.251 1072.732 110.472
zip_path_point 1294.760 1061.355 111.827
zip_path_point 1317.269 1049.978 103.687
zip_path_point 1362.286 1027.223 96.165
zip_path_point 1401.124 1007.594 87.966
zip_end_path
################# END ZIP PATH 145 #################
################# ZIP PATH 146 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1285.557 1176.984 101.904
zip_path_point 1268.858 1130.389 109.765
zip_path_point 1263.180 1114.547 110.471
zip_end_path
################# END ZIP PATH 146 #################
################# ZIP PATH 147 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1286.559 1195.880 101.906
zip_path_point 1237.591 1202.380 110.405
zip_path_point 1219.962 1204.720 111.984
zip_end_path
################# END ZIP PATH 147 #################
################# ZIP PATH 148 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1288.633 1214.884 101.906
zip_path_point 1247.251 1187.369 97.108
zip_path_point 1226.560 1173.612 90.720
zip_end_path
################# END ZIP PATH 148 #################
################# ZIP PATH 149 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1290.826 718.326 85.269
zip_path_point 1321.687 758.543 91.790
zip_path_point 1352.547 798.760 97.355
zip_path_point 1375.130 828.049 99.719
zip_end_path
################# END ZIP PATH 149 #################
################# ZIP PATH 150 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1294.656 744.295 78.185
zip_path_point 1325.753 706.069 70.457
zip_path_point 1347.522 679.310 59.862
zip_end_path
################# END ZIP PATH 150 #################
################# ZIP PATH 151 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1299.900 760.768 46.630
zip_path_point 1296.678 760.338 64.056
zip_end_path
################# END ZIP PATH 151 #################
################# ZIP PATH 152 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1335.766 635.184 89.041
zip_path_point 1293.370 663.502 88.496
zip_path_point 1283.394 670.164 85.259
zip_end_path
################# END ZIP PATH 152 #################
################# ZIP PATH 153 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1339.691 1169.995 91.574
zip_path_point 1331.518 1128.805 91.322
zip_end_path
################# END ZIP PATH 153 #################
################# ZIP PATH 154 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1340.717 673.945 89.042
zip_path_point 1293.814 673.438 85.220
zip_end_path
################# END ZIP PATH 154 #################
################# ZIP PATH 155 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1346.980 1243.609 112.552
zip_path_point 1365.815 1197.503 117.758
zip_path_point 1383.897 1153.241 121.128
zip_end_path
################# END ZIP PATH 155 #################
################# ZIP PATH 156 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1351.016 1254.782 112.074
zip_path_point 1348.091 1254.931 117.579
zip_end_path
################# END ZIP PATH 156 #################
################# ZIP PATH 157 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1355.713 1145.351 122.442
zip_path_point 1308.557 1161.641 119.865
zip_path_point 1261.402 1177.931 116.539
zip_path_point 1218.961 1192.593 111.982
zip_end_path
################# END ZIP PATH 157 #################
################# ZIP PATH 158 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1356.956 1121.272 121.169
zip_path_point 1344.419 1103.447 123.439
zip_path_point 1331.882 1085.622 97.410
zip_path_point 1320.599 1069.579 74.574
zip_path_point 1309.316 1053.536 67.839
zip_end_path
################# END ZIP PATH 158 #################
################# ZIP PATH 159 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1357.740 895.959 59.350
zip_path_point 1360.201 894.144 93.751
zip_end_path
################# END ZIP PATH 159 #################
################# ZIP PATH 160 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1361.935 804.341 64.056
zip_path_point 1357.002 801.860 46.630
zip_end_path
################# END ZIP PATH 160 #################
################# ZIP PATH 161 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1362.178 886.635 94.264
zip_path_point 1335.084 844.963 89.573
zip_path_point 1315.035 814.126 83.439
zip_end_path
################# END ZIP PATH 161 #################
################# ZIP PATH 162 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1364.300 1153.417 122.494
zip_path_point 1356.834 1163.739 122.870
zip_path_point 1334.369 1184.662 101.953
zip_end_path
################# END ZIP PATH 162 #################
################# ZIP PATH 163 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1365.132 689.391 92.669
zip_path_point 1349.931 707.329 91.865
zip_path_point 1334.731 725.267 76.399
zip_path_point 1320.754 742.953 64.585
zip_end_path
################# END ZIP PATH 163 #################
################# ZIP PATH 164 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1367.319 685.024 59.350
zip_path_point 1369.049 684.262 92.131
zip_end_path
################# END ZIP PATH 164 #################
################# ZIP PATH 165 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1367.378 1307.869 69.287
zip_path_point 1366.650 1309.663 99.290
zip_end_path
################# END ZIP PATH 165 #################
################# ZIP PATH 166 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1368.273 1305.847 99.844
zip_path_point 1368.455 1295.812 98.705
zip_path_point 1368.338 1284.377 95.520
zip_path_point 1368.104 1261.507 80.350
zip_path_point 1367.916 1243.211 69.842
zip_end_path
################# END ZIP PATH 166 #################
################# ZIP PATH 167 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1368.901 675.463 92.140
zip_path_point 1354.678 673.232 88.541
zip_end_path
################# END ZIP PATH 167 #################
################# ZIP PATH 168 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1370.444 896.269 94.240
zip_path_point 1410.474 915.351 69.813
zip_path_point 1423.818 921.711 59.851
zip_end_path
################# END ZIP PATH 168 #################
################# ZIP PATH 169 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1374.328 851.615 99.725
zip_path_point 1339.342 901.528 91.012
zip_path_point 1313.456 944.441 81.564
zip_path_point 1287.570 987.354 72.116
zip_path_point 1263.714 1026.901 61.023
zip_end_path
################# END ZIP PATH 169 #################
################# ZIP PATH 170 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1379.289 821.763 99.730
zip_path_point 1346.288 784.372 90.076
zip_path_point 1319.407 753.300 78.291
zip_end_path
################# END ZIP PATH 170 #################
################# ZIP PATH 171 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1391.245 823.148 99.721
zip_path_point 1377.189 775.284 97.042
zip_path_point 1363.132 727.421 93.615
zip_path_point 1349.076 679.557 90.188
zip_path_point 1348.233 676.685 89.041
zip_end_path
################# END ZIP PATH 171 #################
################# ZIP PATH 172 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1401.064 994.658 87.999
zip_path_point 1359.762 968.901 77.283
zip_path_point 1318.459 943.144 65.823
zip_path_point 1309.373 937.477 60.167
zip_end_path
################# END ZIP PATH 172 #################
################# ZIP PATH 173 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1403.960 1159.131 102.791
zip_path_point 1364.256 1189.526 103.601
zip_path_point 1324.053 1219.322 103.670
zip_path_point 1319.789 1223.569 101.900
zip_end_path
################# END ZIP PATH 173 #################
################# ZIP PATH 174 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1404.913 726.942 54.268
zip_path_point 1415.572 723.945 61.051
zip_path_point 1426.231 720.948 59.866
zip_end_path
################# END ZIP PATH 174 #################
################# ZIP PATH 175 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1407.877 1157.284 68.200
zip_path_point 1410.102 1155.769 102.290
zip_end_path
################# END ZIP PATH 175 #################
################# ZIP PATH 176 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1441.888 920.159 59.857
zip_path_point 1448.313 870.457 70.052
zip_path_point 1449.069 864.609 69.246
zip_end_path
################# END ZIP PATH 176 #################
################# ZIP PATH 177 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 921.825 917.111 62.093
zip_path_point 910.937 927.938 106.390
zip_end_path
################# END ZIP PATH 177 #################
################# ZIP PATH 178 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 936.213 867.162 62.594
zip_path_point 946.107 818.178 66.550
zip_path_point 950.856 794.666 64.818
zip_end_path
################# END ZIP PATH 178 #################
################# ZIP PATH 179 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 619.323 951.023 83.943
zip_path_point 616.715 926.938 81.874
zip_path_point 614.108 902.854 72.325
zip_path_point 613.065 893.220 67.528
zip_end_path
################# END ZIP PATH 179 #################
################# ZIP PATH 180 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 245.714 848.102 43.132
zip_path_point 296.709 848.756 43.882
zip_path_point 323.707 849.102 43.135
zip_end_path
################# END ZIP PATH 180 #################
################# ZIP PATH 181 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 380.613 839.591 43.291
zip_path_point 399.483 840.484 51.340
zip_path_point 418.353 841.378 53.222
zip_end_path
################# END ZIP PATH 181 #################
################# ZIP PATH 182 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 423.423 847.719 53.214
zip_path_point 424.065 872.128 60.785
zip_path_point 424.386 884.333 66.332
zip_path_point 424.707 896.537 68.202
zip_end_path
################# END ZIP PATH 182 #################
################# ZIP PATH 183 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 462.449 888.611 73.200
zip_path_point 511.515 888.994 87.828
zip_path_point 514.401 889.017 88.205
zip_end_path
################# END ZIP PATH 183 #################
################# ZIP PATH 184 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 529.355 904.244 88.305
zip_path_point 543.173 903.908 93.112
zip_path_point 557.977 903.548 93.203
zip_end_path
################# END ZIP PATH 184 #################
################# ZIP PATH 185 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 369.424 856.903 43.137
zip_path_point 370.753 870.317 43.183
zip_path_point 372.082 883.730 42.930
zip_path_point 372.593 929.659 26.657
zip_path_point 392.704 974.788 25.183
zip_path_point 440.126 1067.446 23.137
zip_end_path
################# END ZIP PATH 185 #################
################# ZIP PATH 186 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 461.151 1105.585 25.899
zip_path_point 509.539 1102.527 43.908
zip_path_point 525.022 1101.548 42.586
zip_end_path
################# END ZIP PATH 186 #################
################# ZIP PATH 187 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 546.503 1044.498 41.760
zip_path_point 549.481 1035.018 62.544
zip_path_point 550.578 1029.883 62.594
zip_end_path
################# END ZIP PATH 187 #################
################# ZIP PATH 188 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 588.661 1034.477 62.594
zip_path_point 618.061 1076.138 62.575
zip_path_point 626.132 1087.575 59.872
zip_end_path
################# END ZIP PATH 188 #################
################# ZIP PATH 189 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 567.287 1091.792 59.850
zip_path_point 566.470 1087.667 59.901
zip_path_point 564.019 1075.292 41.828
zip_end_path
################# END ZIP PATH 189 #################
################# ZIP PATH 190 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 674.348 1054.132 42.211
zip_path_point 676.883 1066.163 59.553
zip_path_point 677.417 1068.695 59.850
zip_end_path
################# END ZIP PATH 190 #################
################# ZIP PATH 191 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 715.551 1254.657 41.711
zip_path_point 719.445 1248.623 52.270
zip_end_path
################# END ZIP PATH 191 #################
################# ZIP PATH 192 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 730.179 1259.137 51.721
zip_path_point 725.114 1277.521 56.281
zip_path_point 720.048 1295.905 59.862
zip_end_path
################# END ZIP PATH 192 #################
################# ZIP PATH 193 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 739.333 1249.902 51.803
zip_path_point 747.707 1237.638 61.155
zip_path_point 756.080 1225.373 67.572
zip_end_path
################# END ZIP PATH 193 #################
################# ZIP PATH 194 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 784.345 1158.640 63.956
zip_path_point 786.322 1148.447 62.598
zip_path_point 788.299 1138.255 59.860
zip_end_path
################# END ZIP PATH 194 #################
################# ZIP PATH 195 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 802.066 1126.481 59.856
zip_path_point 845.835 1151.296 68.917
zip_path_point 855.276 1156.648 69.245
zip_end_path
################# END ZIP PATH 195 #################
################# ZIP PATH 196 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 809.589 1096.782 59.851
zip_path_point 859.530 1086.640 62.576
zip_path_point 909.472 1076.499 64.558
zip_path_point 917.306 1074.908 62.493
zip_end_path
################# END ZIP PATH 196 #################
################# ZIP PATH 197 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 739.925 1121.005 59.851
zip_path_point 724.109 1169.360 58.494
zip_path_point 717.596 1189.270 57.265
zip_path_point 716.976 1191.166 56.882
zip_path_point 715.115 1196.855 54.211
zip_end_path
################# END ZIP PATH 197 #################
################# ZIP PATH 198 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 708.861 1189.259 56.684
zip_path_point 723.914 1163.117 99.532
zip_path_point 726.509 1159.805 99.717
zip_end_path
################# END ZIP PATH 198 #################
################# ZIP PATH 199 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 766.786 1064.421 100.684
zip_path_point 744.404 1056.068 97.217
zip_path_point 722.023 1047.715 86.674
zip_path_point 677.259 1031.010 71.931
zip_path_point 656.668 1023.326 63.855
zip_end_path
################# END ZIP PATH 199 #################
################# ZIP PATH 200 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 783.594 1061.932 100.672
zip_path_point 804.372 1049.105 98.415
zip_path_point 825.150 1036.279 90.670
zip_path_point 866.706 1010.626 79.938
zip_path_point 908.262 984.973 69.207
zip_path_point 929.871 971.633 62.605
zip_end_path
################# END ZIP PATH 200 #################
################# ZIP PATH 201 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 936.867 757.882 86.260
zip_path_point 888.988 761.779 100.866
zip_path_point 864.090 763.805 106.935
zip_end_path
################# END ZIP PATH 201 #################
################# ZIP PATH 202 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 937.908 750.375 86.289
zip_path_point 918.478 737.428 82.430
zip_path_point 899.047 724.481 69.121
zip_path_point 894.384 721.374 62.642
zip_end_path
################# END ZIP PATH 202 #################
################# ZIP PATH 203 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 868.071 721.611 62.603
zip_path_point 847.144 722.775 69.972
zip_path_point 826.218 723.939 70.760
zip_end_path
################# END ZIP PATH 203 #################
################# ZIP PATH 204 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 805.619 664.018 42.212
zip_path_point 791.589 676.000 70.301
zip_path_point 789.047 678.172 70.751
zip_end_path
################# END ZIP PATH 204 #################
################# ZIP PATH 205 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 947.930 423.772 43.135
zip_path_point 903.179 446.076 45.082
zip_path_point 858.428 468.380 45.882
zip_path_point 813.677 490.683 45.081
zip_path_point 790.406 502.281 43.135
zip_end_path
################# END ZIP PATH 205 #################
################# ZIP PATH 206 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 919.391 482.058 53.372
zip_path_point 919.499 493.516 57.359
zip_path_point 919.608 504.973 61.073
zip_path_point 919.716 516.431 64.786
zip_path_point 919.825 527.888 68.225
zip_end_path
################# END ZIP PATH 206 #################
################# ZIP PATH 207 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 903.584 556.412 83.215
zip_path_point 903.852 566.832 85.348
zip_path_point 904.120 577.252 88.597
zip_path_point 904.387 587.672 92.146
zip_path_point 904.655 598.092 93.811
zip_end_path
################# END ZIP PATH 207 #################
################# ZIP PATH 208 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 793.715 540.457 42.854
zip_path_point 827.380 578.564 47.499
zip_path_point 861.045 616.671 51.401
zip_path_point 865.666 621.901 51.304
zip_end_path
################# END ZIP PATH 208 #################
################# ZIP PATH 209 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 889.504 637.051 42.212
zip_path_point 892.089 649.448 62.344
zip_path_point 892.966 651.613 62.594
zip_end_path
################# END ZIP PATH 209 #################
################# ZIP PATH 210 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 951.854 636.424 40.682
zip_path_point 948.828 647.958 62.170
zip_path_point 947.164 656.161 62.594
zip_end_path
################# END ZIP PATH 210 #################
################# ZIP PATH 211 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1071.140 654.136 40.718
zip_path_point 1064.402 662.815 63.377
zip_path_point 1063.335 664.800 63.831
zip_end_path
################# END ZIP PATH 211 #################
################# ZIP PATH 212 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1082.249 692.541 63.831
zip_path_point 1089.854 706.044 63.412
zip_path_point 1097.458 719.547 62.394
zip_end_path
################# END ZIP PATH 212 #################
################# ZIP PATH 213 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1129.616 797.599 62.785
zip_path_point 1175.716 818.700 69.054
zip_path_point 1193.795 826.976 69.241
zip_end_path
################# END ZIP PATH 213 #################
################# ZIP PATH 214 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1260.129 863.553 69.249
zip_path_point 1278.477 876.770 67.795
zip_path_point 1296.825 889.987 60.160
zip_end_path
################# END ZIP PATH 214 #################
################# ZIP PATH 215 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1273.776 820.533 69.268
zip_path_point 1276.763 813.405 75.030
zip_path_point 1280.549 806.276 74.649
zip_end_path
################# END ZIP PATH 215 #################
################# ZIP PATH 216 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1344.930 825.989 64.548
zip_path_point 1346.993 873.881 59.876
zip_end_path
################# END ZIP PATH 216 #################
################# ZIP PATH 217 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1339.858 929.759 41.711
zip_path_point 1318.114 908.199 68.808
zip_end_path
################# END ZIP PATH 217 #################
################# ZIP PATH 218 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1030.151 1713.887 23.140
zip_path_point 1006.194 1699.563 26.603
zip_path_point 982.238 1687.640 29.170
zip_path_point 934.325 1678.794 37.248
zip_path_point 898.870 1678.435 45.050
zip_path_point 888.329 1676.453 43.140
zip_end_path
################# END ZIP PATH 218 #################
################# ZIP PATH 219 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 848.815 1671.583 43.141
zip_path_point 845.118 1664.510 44.601
zip_path_point 836.221 1647.438 46.061
zip_path_point 823.827 1623.292 48.887
zip_path_point 812.239 1574.001 57.282
zip_path_point 810.939 1556.451 61.617
zip_path_point 811.090 1547.475 63.184
zip_path_point 819.040 1538.300 63.456
zip_end_path
################# END ZIP PATH 219 #################
################# ZIP PATH 220 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 868.882 1435.428 42.945
zip_path_point 905.951 1403.482 53.947
zip_path_point 943.021 1371.536 64.215
zip_path_point 960.642 1362.453 62.601
zip_end_path
################# END ZIP PATH 220 #################
################# ZIP PATH 221 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 937.234 1295.401 62.596
zip_path_point 915.490 1285.599 65.559
zip_path_point 893.746 1275.796 67.126
zip_end_path
################# END ZIP PATH 221 #################
################# ZIP PATH 222 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 840.873 1401.981 54.899
zip_path_point 854.118 1354.514 64.089
zip_path_point 860.475 1331.730 67.131
zip_end_path
################# END ZIP PATH 222 #################
################# ZIP PATH 223 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 776.421 1253.584 53.384
zip_path_point 735.488 1253.999 82.838
zip_path_point 730.985 1254.045 87.489
zip_path_point 726.483 1254.090 89.041
zip_end_path
################# END ZIP PATH 223 #################
################# ZIP PATH 224 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 687.379 1281.924 89.056
zip_path_point 646.928 1254.989 78.015
zip_path_point 606.477 1228.054 66.247
zip_path_point 593.533 1219.435 59.867
zip_end_path
################# END ZIP PATH 224 #################
################# ZIP PATH 225 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 704.658 1288.160 89.048
zip_path_point 755.051 1287.183 82.015
zip_path_point 805.444 1286.205 74.249
zip_path_point 824.218 1285.841 67.133
zip_end_path
################# END ZIP PATH 225 #################
################# ZIP PATH 226 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 844.815 1286.360 66.624
zip_path_point 847.467 1287.213 96.622
zip_end_path
################# END ZIP PATH 226 #################
################# ZIP PATH 227 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 839.532 1286.398 97.146
zip_path_point 819.924 1273.129 91.276
zip_path_point 800.317 1259.860 81.805
zip_path_point 761.102 1233.322 65.734
zip_path_point 734.741 1208.160 54.236
zip_end_path
################# END ZIP PATH 227 #################
################# ZIP PATH 228 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 832.911 1249.750 42.211
zip_path_point 843.646 1254.481 66.640
zip_path_point 845.363 1255.237 67.125
zip_end_path
################# END ZIP PATH 228 #################
################# ZIP PATH 229 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 863.404 1270.313 98.145
zip_path_point 863.198 1285.183 97.207
zip_path_point 862.992 1300.053 94.075
zip_end_path
################# END ZIP PATH 229 #################
################# ZIP PATH 230 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 865.722 1311.216 94.071
zip_path_point 868.416 1330.263 85.658
zip_path_point 871.110 1349.310 61.342
zip_path_point 873.962 1369.478 42.045
zip_end_path
################# END ZIP PATH 230 #################
################# ZIP PATH 231 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 851.285 1311.441 66.624
zip_path_point 863.553 1307.425 93.570
zip_end_path
################# END ZIP PATH 231 #################
################# ZIP PATH 232 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 914.737 1389.299 44.225
zip_path_point 949.158 1356.677 63.697
zip_path_point 955.907 1350.281 62.619
zip_end_path
################# END ZIP PATH 232 #################
################# ZIP PATH 233 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 924.083 1365.718 44.222
zip_path_point 896.580 1326.667 59.757
zip_path_point 888.604 1315.343 64.395
zip_path_point 880.629 1304.018 67.156
zip_end_path
################# END ZIP PATH 233 #################
################# ZIP PATH 234 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 911.533 1328.871 52.857
zip_path_point 914.633 1279.494 60.854
zip_path_point 917.734 1230.116 68.106
zip_path_point 919.036 1209.378 69.244
zip_end_path
################# END ZIP PATH 234 #################
################# ZIP PATH 235 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 924.721 1198.763 69.239
zip_path_point 972.718 1215.952 68.696
zip_path_point 999.068 1225.389 65.768
zip_end_path
################# END ZIP PATH 235 #################
################# ZIP PATH 236 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1030.019 1253.007 73.812
zip_path_point 982.302 1255.186 89.326
zip_path_point 934.584 1257.365 104.505
zip_path_point 920.423 1258.175 106.812
zip_end_path
################# END ZIP PATH 236 #################
################# ZIP PATH 237 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 863.545 1238.247 105.601
zip_path_point 849.048 1235.318 101.887
zip_path_point 834.551 1232.388 77.573
zip_end_path
################# END ZIP PATH 237 #################
################# ZIP PATH 238 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 896.085 1222.855 42.212
zip_path_point 893.519 1214.151 68.902
zip_path_point 893.252 1213.244 69.121
zip_path_point 892.984 1212.338 69.240
zip_end_path
################# END ZIP PATH 238 #################
################# ZIP PATH 239 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 890.882 1211.784 102.010
zip_path_point 913.426 1221.384 96.860
zip_path_point 935.971 1230.983 88.630
zip_path_point 981.059 1250.183 74.518
zip_path_point 1004.930 1260.348 65.788
zip_end_path
################# END ZIP PATH 239 #################
################# ZIP PATH 240 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 731.968 946.628 42.211
zip_path_point 730.363 950.870 51.200
zip_path_point 729.360 955.145 55.240
zip_path_point 728.156 959.076 55.660
zip_end_path
################# END ZIP PATH 240 #################
################# ZIP PATH 241 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 690.086 971.539 55.689
zip_path_point 679.401 966.341 62.045
zip_path_point 668.716 961.144 63.860
zip_end_path
################# END ZIP PATH 241 #################
################# ZIP PATH 242 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 622.095 943.343 72.955
zip_path_point 654.892 905.636 72.118
zip_path_point 666.699 892.061 70.751
zip_end_path
################# END ZIP PATH 242 #################
################# ZIP PATH 243 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 645.091 888.102 42.212
zip_path_point 653.240 872.267 70.744
zip_path_point 655.488 867.899 70.751
zip_end_path
################# END ZIP PATH 243 #################
################# ZIP PATH 244 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 620.426 919.306 42.211
zip_path_point 629.595 924.542 63.781
zip_path_point 632.347 926.451 63.831
zip_end_path
################# END ZIP PATH 244 #################
################# ZIP PATH 245 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 649.583 1071.378 42.211
zip_path_point 659.850 1083.011 59.781
zip_path_point 661.806 1085.227 59.850
zip_end_path
################# END ZIP PATH 245 #################
################# ZIP PATH 246 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 734.689 1077.906 42.211
zip_path_point 741.524 1083.509 59.801
zip_path_point 743.532 1085.732 59.851
zip_end_path
################# END ZIP PATH 246 #################
################# ZIP PATH 247 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 709.956 1074.547 42.212
zip_path_point 699.011 1081.242 59.754
zip_path_point 696.383 1083.257 59.851
zip_end_path
################# END ZIP PATH 247 #################
################# ZIP PATH 248 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 820.188 1246.386 63.948
zip_path_point 831.947 1257.798 66.436
zip_path_point 843.707 1269.210 67.129
zip_end_path
################# END ZIP PATH 248 #################
################# ZIP PATH 249 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 877.568 1254.981 67.125
zip_path_point 872.845 1220.395 69.241
zip_end_path
################# END ZIP PATH 249 #################
################# ZIP PATH 250 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 845.981 1185.464 41.711
zip_path_point 859.485 1177.367 68.740
zip_end_path
################# END ZIP PATH 250 #################
################# ZIP PATH 251 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1144.739 1649.306 23.148
zip_path_point 1194.351 1645.963 35.819
zip_path_point 1212.834 1644.717 42.718
zip_path_point 1222.075 1644.094 43.276
zip_path_point 1231.317 1643.472 43.148
zip_end_path
################# END ZIP PATH 251 #################
################# ZIP PATH 252 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1227.850 1610.461 43.135
zip_path_point 1229.804 1586.178 44.070
zip_path_point 1228.358 1561.896 44.905
zip_path_point 1240.066 1513.330 45.129
zip_path_point 1251.701 1489.533 44.117
zip_path_point 1266.336 1465.736 43.210
zip_end_path
################# END ZIP PATH 252 #################
################# ZIP PATH 253 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1134.072 1592.592 23.217
zip_path_point 1151.421 1592.184 30.682
zip_path_point 1168.771 1591.775 33.188
zip_end_path
################# END ZIP PATH 253 #################
################# ZIP PATH 254 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1175.593 1584.054 33.224
zip_path_point 1174.719 1566.227 38.716
zip_path_point 1174.282 1557.313 41.722
zip_path_point 1174.063 1552.857 42.824
zip_path_point 1173.845 1548.400 43.246
zip_end_path
################# END ZIP PATH 254 #################
################# ZIP PATH 255 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1158.087 1525.105 48.260
zip_path_point 1159.791 1505.263 53.135
zip_path_point 1160.643 1495.342 55.830
zip_path_point 1161.069 1490.382 57.377
zip_path_point 1161.495 1485.421 58.240
zip_end_path
################# END ZIP PATH 255 #################
################# ZIP PATH 256 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1168.947 1481.166 58.294
zip_path_point 1184.724 1480.379 63.525
zip_path_point 1192.613 1479.985 66.403
zip_path_point 1200.501 1479.591 68.205
zip_end_path
################# END ZIP PATH 256 #################
################# ZIP PATH 257 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1208.601 1472.023 68.227
zip_path_point 1208.310 1455.703 73.090
zip_path_point 1208.165 1447.544 75.782
zip_path_point 1208.092 1443.464 77.129
zip_path_point 1208.020 1439.384 78.198
zip_end_path
################# END ZIP PATH 257 #################
################# ZIP PATH 258 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1169.756 1292.650 42.212
zip_path_point 1179.642 1286.138 70.391
zip_path_point 1183.899 1283.421 70.441
zip_end_path
################# END ZIP PATH 258 #################
################# ZIP PATH 259 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1102.447 1188.444 42.212
zip_path_point 1095.153 1188.352 65.517
zip_path_point 1090.986 1188.609 65.768
zip_end_path
################# END ZIP PATH 259 #################
################# ZIP PATH 260 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 694.510 741.781 76.599
zip_path_point 688.903 728.660 101.600
zip_end_path
################# END ZIP PATH 260 #################
################# ZIP PATH 261 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 629.166 733.948 74.099
zip_path_point 643.196 744.321 101.600
zip_end_path
################# END ZIP PATH 261 #################
################# ZIP PATH 262 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1353.630 747.113 53.986
zip_path_point 1391.400 713.131 59.157
zip_path_point 1402.509 703.136 59.852
zip_end_path
################# END ZIP PATH 262 #################
################# ZIP PATH 263 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1346.229 658.639 59.857
zip_path_point 1330.560 672.779 65.587
zip_path_point 1314.892 686.919 67.132
zip_end_path
################# END ZIP PATH 263 #################
################# ZIP PATH 264 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1331.453 668.413 41.711
zip_path_point 1350.394 668.947 59.350
zip_end_path
################# END ZIP PATH 264 #################
################# ZIP PATH 265 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1344.101 609.861 42.211
zip_path_point 1361.166 616.692 59.110
zip_path_point 1363.021 617.434 59.327
zip_path_point 1364.875 618.177 59.545
zip_path_point 1368.585 619.662 59.881
zip_end_path
################# END ZIP PATH 265 #################
################# ZIP PATH 266 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1439.681 676.189 59.852
zip_path_point 1443.939 678.260 59.801
zip_path_point 1458.843 685.511 42.212
zip_end_path
################# END ZIP PATH 266 #################
################# ZIP PATH 267 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1390.255 604.317 59.851
zip_path_point 1354.764 627.739 88.290
zip_path_point 1352.605 629.307 89.415
zip_path_point 1350.845 630.474 89.040
zip_end_path
################# END ZIP PATH 267 #################
################# ZIP PATH 268 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1746.911 999.303 43.135
zip_path_point 1724.334 954.686 45.081
zip_path_point 1714.400 935.055 43.135
zip_end_path
################# END ZIP PATH 268 #################
################# ZIP PATH 269 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1688.086 871.654 43.135
zip_path_point 1679.453 862.013 43.740
zip_path_point 1676.219 844.372 44.644
zip_path_point 1651.953 817.890 44.453
zip_path_point 1633.164 814.917 43.103
zip_end_path
################# END ZIP PATH 269 #################
################# ZIP PATH 270 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1620.102 856.378 43.135
zip_path_point 1574.771 877.480 44.604
zip_path_point 1529.440 898.583 44.513
zip_path_point 1485.923 918.842 42.847
zip_end_path
################# END ZIP PATH 270 #################
################# ZIP PATH 271 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1461.886 923.554 42.515
zip_path_point 1449.823 925.983 59.400
zip_path_point 1446.194 926.978 59.851
zip_end_path
################# END ZIP PATH 271 #################
################# ZIP PATH 272 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1398.870 921.689 59.850
zip_path_point 1380.721 916.061 61.550
zip_path_point 1362.572 910.433 59.851
zip_end_path
################# END ZIP PATH 272 #################
################# ZIP PATH 273 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1359.474 897.941 94.479
zip_path_point 1361.148 948.464 101.977
zip_path_point 1362.823 998.988 108.705
zip_path_point 1364.498 1049.510 115.434
zip_path_point 1366.172 1100.031 122.163
zip_path_point 1366.271 1103.003 120.819
zip_end_path
################# END ZIP PATH 273 #################
################# ZIP PATH 274 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1354.682 897.716 94.275
zip_path_point 1343.985 903.132 94.229
zip_path_point 1333.289 908.548 88.707
zip_path_point 1311.896 919.381 80.864
zip_path_point 1269.110 941.045 66.717
zip_path_point 1226.325 962.709 52.570
zip_path_point 1209.210 971.375 42.236
zip_end_path
################# END ZIP PATH 274 #################
################# ZIP PATH 275 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1274.319 944.513 60.151
zip_path_point 1267.870 995.053 58.667
zip_path_point 1265.467 1013.881 55.631
zip_end_path
################# END ZIP PATH 275 #################
################# ZIP PATH 276 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1222.162 1005.468 55.630
zip_path_point 1207.972 984.884 56.288
zip_path_point 1193.781 964.300 56.846
zip_path_point 1181.293 946.186 55.226
zip_end_path
################# END ZIP PATH 276 #################
################# ZIP PATH 277 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1194.950 1107.768 41.711
zip_path_point 1218.820 1105.194 69.941
zip_end_path
################# END ZIP PATH 277 #################
################# ZIP PATH 278 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1123.832 1080.507 41.711
zip_path_point 1116.495 1068.461 62.393
zip_end_path
################# END ZIP PATH 278 #################
################# ZIP PATH 279 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1034.543 1133.645 41.711
zip_path_point 1037.790 1115.293 62.193
zip_end_path
################# END ZIP PATH 279 #################
################# ZIP PATH 280 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 906.983 1073.184 41.711
zip_path_point 914.912 1061.557 61.993
zip_end_path
################# END ZIP PATH 280 #################
################# ZIP PATH 281 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 975.064 873.634 41.711
zip_path_point 977.547 890.666 62.093
zip_end_path
################# END ZIP PATH 281 #################
################# ZIP PATH 282 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1147.666 899.276 62.797
zip_path_point 1177.835 858.782 70.663
zip_path_point 1180.201 855.606 69.242
zip_end_path
################# END ZIP PATH 282 #################
################# ZIP PATH 283 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1194.793 868.656 41.711
zip_path_point 1197.048 853.824 68.739
zip_end_path
################# END ZIP PATH 283 #################
################# ZIP PATH 284 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1238.114 831.003 68.741
zip_path_point 1247.279 835.486 98.740
zip_end_path
################# END ZIP PATH 284 #################
################# ZIP PATH 285 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1248.833 828.196 99.256
zip_path_point 1251.872 816.912 97.397
zip_path_point 1254.912 805.628 93.371
zip_end_path
################# END ZIP PATH 285 #################
################# ZIP PATH 286 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1248.384 837.722 99.256
zip_path_point 1248.720 862.495 95.127
zip_path_point 1249.057 887.268 87.915
zip_path_point 1249.729 936.814 75.849
zip_path_point 1250.401 986.361 63.783
zip_path_point 1250.731 1010.648 55.645
zip_end_path
################# END ZIP PATH 286 #################
################# ZIP PATH 287 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1230.230 791.562 96.216
zip_path_point 1218.028 808.975 92.428
zip_path_point 1205.827 827.087 77.330
zip_end_path
################# END ZIP PATH 287 #################
################# ZIP PATH 288 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1245.690 872.174 69.241
zip_path_point 1234.739 921.780 65.479
zip_path_point 1223.788 971.385 60.979
zip_path_point 1216.273 1005.428 55.632
zip_end_path
################# END ZIP PATH 288 #################
################# ZIP PATH 289 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1257.469 740.652 41.711
zip_path_point 1262.312 727.352 66.624
zip_end_path
################# END ZIP PATH 289 #################
################# ZIP PATH 290 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1310.319 709.589 67.145
zip_path_point 1325.971 725.913 63.854
zip_path_point 1341.622 742.237 54.005
zip_end_path
################# END ZIP PATH 290 #################
################# ZIP PATH 291 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1066.185 345.278 43.135
zip_path_point 1090.987 394.680 45.060
zip_path_point 1123.790 403.783 45.673
zip_path_point 1156.593 422.686 46.286
zip_path_point 1179.195 433.738 47.086
zip_path_point 1201.797 438.591 45.486
zip_path_point 1237.251 434.604 43.135
zip_end_path
################# END ZIP PATH 291 #################
################# ZIP PATH 292 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1272.832 405.679 43.135
zip_path_point 1294.179 431.040 46.641
zip_path_point 1302.453 466.721 48.643
zip_path_point 1302.127 502.402 48.746
zip_path_point 1293.351 530.733 46.310
zip_path_point 1282.175 551.063 45.675
zip_path_point 1262.223 581.125 44.003
zip_path_point 1253.687 594.169 42.981
zip_end_path
################# END ZIP PATH 292 #################
################# ZIP PATH 293 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1200.595 640.757 52.220
zip_path_point 1168.131 678.489 57.706
zip_path_point 1135.666 716.221 62.455
zip_path_point 1131.771 720.748 62.396
zip_end_path
################# END ZIP PATH 293 #################
################# ZIP PATH 294 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1219.446 577.213 42.939
zip_path_point 1175.250 600.595 44.341
zip_path_point 1153.152 612.286 44.469
zip_path_point 1131.055 623.978 43.198
zip_path_point 1128.403 625.381 42.211
zip_end_path
################# END ZIP PATH 294 #################
################# ZIP PATH 295 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1113.809 605.958 42.211
zip_path_point 1072.225 578.187 43.962
zip_path_point 1040.622 557.081 42.211
zip_end_path
################# END ZIP PATH 295 #################
################# ZIP PATH 296 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1012.342 557.626 50.268
zip_path_point 989.945 568.578 49.742
zip_path_point 967.548 579.531 47.916
zip_path_point 922.755 601.437 43.816
zip_path_point 918.275 603.627 42.373
zip_end_path
################# END ZIP PATH 296 #################
################# ZIP PATH 297 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1033.850 552.731 51.556
zip_path_point 1018.965 601.166 58.072
zip_path_point 1004.079 649.601 63.850
zip_path_point 1002.620 654.350 63.834
zip_end_path
################# END ZIP PATH 297 #################
################# ZIP PATH 298 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1308.288 670.018 42.254
zip_path_point 1305.111 674.774 66.289
zip_path_point 1301.934 679.531 67.124
zip_end_path
################# END ZIP PATH 298 #################
################# ZIP PATH 299 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1407.327 760.918 53.937
zip_path_point 1419.914 741.887 56.392
zip_path_point 1426.207 732.371 59.071
zip_path_point 1432.500 722.855 59.855
zip_end_path
################# END ZIP PATH 299 #################
################# ZIP PATH 300 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1414.956 810.604 42.452
zip_path_point 1425.750 818.247 68.990
zip_path_point 1428.910 820.812 69.240
zip_end_path
################# END ZIP PATH 300 #################
################# ZIP PATH 301 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1425.967 865.543 69.246
zip_path_point 1402.712 873.841 67.036
zip_path_point 1379.458 882.138 62.133
zip_path_point 1372.016 884.794 59.857
zip_end_path
################# END ZIP PATH 301 #################
################# ZIP PATH 302 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1268.025 904.827 60.151
zip_path_point 1263.757 902.727 60.100
zip_path_point 1254.573 899.329 42.212
zip_end_path
################# END ZIP PATH 302 #################
################# ZIP PATH 303 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1428.244 1018.152 43.262
zip_path_point 1408.200 1003.259 87.531
zip_end_path
################# END ZIP PATH 303 #################
################# ZIP PATH 304 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1379.635 1065.961 42.212
zip_path_point 1371.185 1066.559 67.740
zip_path_point 1365.717 1066.945 67.839
zip_end_path
################# END ZIP PATH 304 #################
################# ZIP PATH 305 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1326.501 1050.083 67.866
zip_path_point 1328.553 1045.581 67.818
zip_path_point 1334.452 1032.638 42.212
zip_end_path
################# END ZIP PATH 305 #################
################# ZIP PATH 306 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1292.772 1057.474 67.839
zip_path_point 1288.802 1055.895 67.589
zip_path_point 1280.420 1052.562 42.211
zip_end_path
################# END ZIP PATH 306 #################
################# ZIP PATH 307 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1284.273 1206.771 76.399
zip_path_point 1295.186 1221.284 101.400
zip_end_path
################# END ZIP PATH 307 #################
################# ZIP PATH 308 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1348.044 1190.750 73.899
zip_path_point 1330.058 1181.224 101.400
zip_end_path
################# END ZIP PATH 308 #################
################# ZIP PATH 309 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1329.397 1225.476 101.900
zip_path_point 1329.965 1233.585 111.129
zip_path_point 1330.533 1241.695 112.558
zip_end_path
################# END ZIP PATH 309 #################
################# ZIP PATH 310 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1345.622 1270.449 112.588
zip_path_point 1348.906 1276.707 111.787
zip_path_point 1353.990 1284.564 90.887
zip_path_point 1358.757 1295.480 69.788
zip_end_path
################# END ZIP PATH 310 #################
################# ZIP PATH 311 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1339.331 1270.575 112.644
zip_path_point 1335.904 1293.307 111.479
zip_path_point 1332.477 1316.040 91.271
zip_path_point 1326.294 1357.048 69.844
zip_end_path
################# END ZIP PATH 311 #################
################# ZIP PATH 312 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1293.195 1460.466 43.003
zip_path_point 1304.584 1411.778 43.654
zip_path_point 1307.090 1401.067 42.884
zip_end_path
################# END ZIP PATH 312 #################
################# ZIP PATH 313 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 1289.895 1360.424 55.230
zip_path_point 1300.183 1350.843 69.287
zip_end_path
################# END ZIP PATH 313 #################
################# ZIP PATH 314 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1259.444 1278.484 70.442
zip_path_point 1253.348 1271.490 86.369
zip_path_point 1250.736 1268.492 86.330
zip_end_path
################# END ZIP PATH 314 #################
################# ZIP PATH 315 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1274.596 1241.349 70.441
zip_path_point 1263.641 1240.252 86.680
zip_path_point 1255.817 1239.468 86.331
zip_end_path
################# END ZIP PATH 315 #################
################# ZIP PATH 316 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1214.538 1287.232 86.330
zip_path_point 1193.340 1333.233 93.024
zip_path_point 1177.130 1368.410 92.951
zip_end_path
################# END ZIP PATH 316 #################
################# ZIP PATH 317 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1113.475 1299.019 63.833
zip_path_point 1150.486 1264.243 69.233
zip_path_point 1165.000 1250.605 70.443
zip_end_path
################# END ZIP PATH 317 #################
################# ZIP PATH 318 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 747.800 1289.149 42.211
zip_path_point 753.436 1302.617 59.563
zip_path_point 755.512 1307.579 59.851
zip_end_path
################# END ZIP PATH 318 #################
################# ZIP PATH 319 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 804.848 1407.705 41.797
zip_path_point 784.690 1401.489 59.372
zip_end_path
################# END ZIP PATH 319 #################
################# ZIP PATH 320 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 759.088 857.776 42.212
zip_path_point 742.757 847.212 71.134
zip_path_point 740.650 845.849 70.751
zip_end_path
################# END ZIP PATH 320 #################
################# ZIP PATH 321 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 828.794 769.675 70.251
zip_path_point 840.305 765.899 106.420
zip_end_path
################# END ZIP PATH 321 #################
################# ZIP PATH 322 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 913.898 667.581 100.812
zip_path_point 910.081 645.955 99.928
zip_path_point 906.265 624.328 98.046
zip_end_path
################# END ZIP PATH 322 #################
################# ZIP PATH 323 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1383.419 938.651 41.978
zip_path_point 1391.808 942.877 59.369
zip_path_point 1393.629 942.458 59.851
zip_end_path
################# END ZIP PATH 323 #################
################# ZIP PATH 324 #################
zip_begin_path
zip_is_teleporter false
zip_path_point 1280.215 1185.361 101.932
zip_path_point 1263.280 1198.155 99.615
zip_path_point 1246.344 1210.948 86.363
zip_end_path
################# END ZIP PATH 324 #################
################################################
| Zimpl | 1 | ajnavarro/language-dataset | data/github.com/PSEmulator/Client/6f644a754736b7a44f4fd660562dbe1bf1ade87f/expansion1/expansion1/ugd03.zpl | [
"MIT"
] |
import "autoLayout"
AutoLayoutForm form1 { contents = Elemental3 { }, clientSize = { 1024, 768 } };
class Elemental3 : Col
{
bgColor = skyBlue;
Bar r2 { this, bgColor = blue };
// Bar r { this, bgColor = beige, minSize.h = 10, maxSize.h = 10 };
Bar r { this, bgColor = beige, minSize.h = 10, maxSize.h = 10 };
Bar r3 { this, bgColor = green };
}
| eC | 3 | N-eil/ecere-sdk | autoLayout/tests/test3.ec | [
"BSD-3-Clause"
] |
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "keycloak.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate to 20 characters because this is used to set the node identifier in WildFly which is limited to
23 characters. This allows for a replica suffix for up to 99 replicas.
*/}}
{{- define "keycloak.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 20 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 20 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 20 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "keycloak.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name for the postgres requirement.
*/}}
{{- define "keycloak.postgresql.fullname" -}}
{{- $postgresContext := dict "Values" .Values.postgresql "Release" .Release "Chart" (dict "Name" "postgresql") -}}
{{ template "postgresql.fullname" $postgresContext }}
{{- end -}}
{{/*
Create the name for the database secret.
*/}}
{{- define "keycloak.externalDbSecret" -}}
{{- if .Values.keycloak.persistence.existingSecret -}}
{{- .Values.keycloak.persistence.existingSecret -}}
{{- else -}}
{{- template "keycloak.fullname" . -}}-db
{{- end -}}
{{- end -}}
{{/*
Create the name for the password secret key.
*/}}
{{- define "keycloak.dbPasswordKey" -}}
{{- if .Values.keycloak.persistence.existingSecret -}}
{{- .Values.keycloak.persistence.existingSecretKey -}}
{{- else -}}
password
{{- end -}}
{{- end -}}
{{/*
Create environment variables for database configuration.
*/}}
{{- define "keycloak.externalDbConfig" -}}
- name: DB_VENDOR
value: {{ .Values.keycloak.persistence.dbVendor | quote }}
{{- if eq .Values.keycloak.persistence.dbVendor "POSTGRES" }}
- name: POSTGRES_PORT_5432_TCP_ADDR
value: {{ .Values.keycloak.persistence.dbHost | quote }}
- name: POSTGRES_PORT_5432_TCP_PORT
value: {{ .Values.keycloak.persistence.dbPort | quote }}
- name: POSTGRES_USER
value: {{ .Values.keycloak.persistence.dbUser | quote }}
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "keycloak.externalDbSecret" . }}
key: {{ include "keycloak.dbPasswordKey" . | quote }}
- name: POSTGRES_DATABASE
value: {{ .Values.keycloak.persistence.dbName | quote }}
{{- else if eq .Values.keycloak.persistence.dbVendor "MYSQL" }}
- name: MYSQL_PORT_3306_TCP_ADDR
value: {{ .Values.keycloak.persistence.dbHost | quote }}
- name: MYSQL_PORT_3306_TCP_PORT
value: {{ .Values.keycloak.persistence.dbPort | quote }}
- name: MYSQL_USER
value: {{ .Values.keycloak.persistence.dbUser | quote }}
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "keycloak.externalDbSecret" . }}
key: {{ include "keycloak.dbPasswordKey" . | quote }}
- name: MYSQL_DATABASE
value: {{ .Values.keycloak.persistence.dbName | quote }}
{{- end }}
{{- end -}}
| Smarty | 4 | kevinpollet/charts | incubator/keycloak/templates/_helpers.tpl | [
"Apache-2.0"
] |
using Uno;
using Uno.Testing;
using Uno.UX;
using FuseTest;
namespace Fuse.Views.Test
{
public class ExportedViewsTest
{
[Test]
public void ExportTest()
{
var root = TestRootPanel.CreateWithChild(new Fuse.Views.Test.UX.ExportTest());
var t = Fuse.ExportedViews.FindTemplate("MyExportedView");
Assert.AreNotEqual(null, t);
var view = t.New() as Fuse.Views.Test.UX.MyExportedView;
Assert.AreNotEqual(null, t);
}
}
} | Uno | 3 | helilabs/fuselibs | Source/Fuse.Views/Tests/ExportedViews.uno | [
"MIT"
] |
// FLAGS: -d3
// OUTPUT: \[debug\] Run time error 4: "Array index out of bounds"
// OUTPUT: \[debug\] Attempted to read/write array element at index 100 in array of size 1
// OUTPUT: \[debug\] AMX backtrace:
// OUTPUT: \[debug\] #0 000000d8 in public out_of_bounds_pos \(\) at .*bounds\.pwn:29
// OUTPUT: \[debug\] #1 native CallLocalFunction \(\) in plugin-runner(\.exe)?
// OUTPUT: \[debug\] #2 00000038 in main \(\) at .*bounds\.pwn:21
// OUTPUT: \[debug\] Run time error 4: "Array index out of bounds"
// OUTPUT: \[debug\] Attempted to read/write array element at negative index -100
// OUTPUT: \[debug\] AMX backtrace:
// OUTPUT: \[debug\] #0 0000015c in public out_of_bounds_neg \(\) at .*bounds\.pwn:36
// OUTPUT: \[debug\] #1 native CallLocalFunction \(\) in plugin-runner(\.exe)?
// OUTPUT: \[debug\] #2 0000006c in main \(\) at .*bounds\.pwn:22
#include "test"
public out_of_bounds_pos();
public out_of_bounds_neg();
main() {
CallLocalFunction("out_of_bounds_pos", "");
CallLocalFunction("out_of_bounds_neg", "");
}
public out_of_bounds_pos()
{
new a[1];
new i = 100;
return a[i];
}
public out_of_bounds_neg()
{
new a[5];
new i = -100;
return a[i];
}
| PAWN | 3 | SL-RP/samp-plugin-crashdetect | tests/bounds.pwn | [
"BSD-2-Clause"
] |
// simple-ipsec.click An IP Router Configuration with IPsec/ESP support
// This file is an extended version of a canonical IP router that also supports
// IPsec ESP tunnels between gateways
// This configuration uses network sources (FromDevice and to Device elements)
// Kernel configuration for cone as a router between
// 18.26.4 (eth0) and 18.26.7 (eth1). Moreover an
// IPsec tunnel is configured between this router(18.26.4.24) and another(18.26.4.1) which
// are used for connecting 18.26.7 and 18.26.8. At the end of the day a packet that is
// sent from 18.26.7 and has to arrive somewhere at 18.26.8 enters the IPsec tunnel between
// the aformentioned gateways.
// To illustrate details:
// (18.26.7)<-->(Router1)<-->(18.26.4)<-->(Router2)<-->(18.26.8)
// To illustrate the IPsec/ESP Tunnel:
// (18.26.7)<-->(Router1)<--IPsec/ESP-->(Router2)<-->(18.26.8)
// Proxy ARPs for 18.26.7 on eth0.
// This routers interfaces are configured as follows:
// eth0, 00:50:BF:01:0C:91, 18.26.4.24
// eth1, 00:50:BF:01:0C:5D, 18.26.7.1
// 0. ARP queries
// 1. ARP replies
// 2. IP
// 3. Other
// We need separate classifiers for each interface because
// we only want proxy ARP on eth0.
c0 :: Classifier(12/0806 20/0001,
12/0806 20/0002,
12/0800,
-);
c1 :: Classifier(12/0806 20/0001,
12/0806 20/0002,
12/0800,
-);
FromDevice(eth0) -> [0]c0;
FromDevice(eth1) -> [0]c1;
out0 :: Queue(200) -> ToDevice(eth0);
out1 :: Queue(200) -> ToDevice(eth1);
//This packet goes to linux stack
tol :: ToHost();
// An "ARP querier" for each interface.
arpq0 :: ARPQuerier(18.26.4.24, 00:50:BF:01:0C:91);
arpq1 :: ARPQuerier(18.26.7.1, 00:50:BF:01:0C:5D);
// Deliver ARP responses to ARP queriers as well as Linux.
t :: Tee(3);
c0[1] -> t;
c1[1] -> t;
t[0] -> tol;
t[1] ->[1]arpq0;
t[2] ->[1]arpq1;
// Connect ARP outputs to the interface queues.
arpq0 -> out0;
arpq1 -> out1;
// Proxy ARP on eth0 for 18.26.8, as well as cone's IP address.
ar0 :: ARPResponder(18.26.4.24 00:50:BF:01:0C:91,
18.26.7.0/24 00:50:BF:01:0C:91);
c0[0] ->ar0 -> out0;
// Ordinary ARP on eth1.
ar1 :: ARPResponder(18.26.7.1 00:50:BF:01:0C:5D);
c1[0] -> ar1 -> out1;
// The IP routing table determines which incoming and outgoing packets are comming from or need to enter the IPsec tunnel respectively.
// Incoming packets will have this routers' IP as destination address and in that case the IP protocol number is checked to determine
// whether this packet is an IPsec/ESP packet, in which case it is propagated to the IPsec incoming processing path, or a packet for
// this router that should be propagated to the linux stack. The packets that exit the IPsec processing path visit IP routing
// table again to be properly forwarded.
// Outgoing packets are sent to the outgoing IPsec/ESP processing path, they get encapsulated and therefore they visit the IP routing
// table a second time in order to be properly forwarded.
//IP routing table. The 0,1,2 outputs are _reserved_ for the described usage below in RadixIPsecLookup:
// 0: packets for this machine that may belong to an IPsec tunnel (if they don't the RadixIPsecLookup code changes outgoing port to number 2 below)
// 1: packets for 18.26.8 via corresponding gateway (18.26.4.1) with which there is an IPsec tunnel.
// 2: packets for this machine which cannot belong to IPsec tunnel (because they originate from a 18.26.7).This port must be connected to
// linux stack
//
// Apart from these you have to enter canonical IP router paths from output port 3 and onwards:
// 3: packets for 18.26.4.1 which is a router to which we send prepared outgoing ESP packets that visit IP routing table for the second time
// as regular outgoing packets
// 4: Canonical IP routing for packets that are for any machine at 18.26.7
rt :: RadixIPsecLookup(18.26.4.24/32 0,
18.26.4.1/32 3,
18.26.7.1/32 2,
18.26.7.0/24 4,
18.26.8.0/24 18.26.4.1 1 234 ABCDEFFF001DEFD2354550FE40CD708E 112233EE556677888877665544332211 300 64);
// IPsec incoming packet IP table visit order
// rt[0]->rt[4]
// IPsec outgoing packet IP table visit order
// rt[1]->rt[3]
// Hand incoming IP packets to the routing table.
// CheckIPHeader checks all the lengths and length fields
// for sanity.
ip :: Strip(14)
-> CheckIPHeader(INTERFACES 18.26.4.24/24 18.26.7.1/24)
-> [0]rt;
c0[2] -> Paint(1) -> ip;
c1[2] -> Paint(2) -> ip;
// IP packets for this machine.
// ToHost expects ethernet packets, so cook up a fake header.
rt[2] -> EtherEncap(0x0800, 1:1:1:1:1:1, 2:2:2:2:2:2) -> tol;
//1 entering the ipsec tunnel...
//ESP Encapsulate -> Authenticate -> Encrypt -> IP Encapsulate -> send back to IP routing table
rt[1] -> espen :: IPsecESPEncap()
-> cauth :: IPsecAuthHMACSHA1(0)
-> encr :: IPsecAES(1)
-> ipencap :: IPsecEncap(50)
-> [0]rt;
//0 packets arriving from a tunnel...
//Strip IP header -> Decrypt -> Authenticate -> Decapsulate ESP -> send back to IP routing table
rt[0] -> StripIPHeader()
-> decr :: IPsecAES(0)
-> vauth :: IPsecAuthHMACSHA1(1)
-> espuncap :: IPsecESPUnencap()
-> CheckIPHeader()
-> [0]rt;
rt[3] -> DropBroadcasts
-> cp1 :: PaintTee(1)
-> gio1 :: IPGWOptions(18.26.4.24)
-> FixIPSrc(18.26.4.24)
-> dt1 :: DecIPTTL
-> fr1 :: IPFragmenter(1500)
-> [0]arpq0;
// Canonical IP router processing paths
// we've committed to a
// particular output device.
// Check paint to see if a redirect is required.
// Process record route and timestamp IP options.
// Fill in missing ip_src fields.
// Discard packets that arrived over link-level broadcast or multicast.
// Decrement and check the TTL after deciding to forward.
// Fragment.
// Send outgoing packets through ARP to the interfaces.
rt[4] -> DropBroadcasts
-> cp2 :: PaintTee(2)
-> gio2 :: IPGWOptions(18.26.7.1)
-> FixIPSrc(18.26.7.1)
-> dt2 :: DecIPTTL
-> fr2 :: IPFragmenter(1500)
-> [0]arpq1;
// DecIPTTL[1] emits packets with expired TTLs.
// Reply with ICMPs. Rate-limit them?
dt1[1] -> ICMPError(18.26.4.24, timeexceeded) -> [0]rt;
dt2[1] -> ICMPError(18.26.4.24, timeexceeded) -> [0]rt;
// Send back ICMP UNREACH/NEEDFRAG messages on big packets with DF set.
// This makes path mtu discovery work.
fr1[1] -> ICMPError(18.26.7.1, unreachable, needfrag) -> [0]rt;
fr2[1] -> ICMPError(18.26.7.1, unreachable, needfrag) -> [0]rt;
// Send back ICMP Parameter Problem messages for badly formed
// IP options. Should set the code to point to the
// bad byte, but that's too hard.
gio1[1] -> ICMPError(18.26.4.24, parameterproblem) -> [0]rt;
gio2[1] -> ICMPError(18.26.4.24, parameterproblem) -> [0]rt;
// Send back an ICMP redirect if required.
cp1[1] -> ICMPError(18.26.4.24, redirect, host) -> [0]rt;
cp2[1] -> ICMPError(18.26.7.1, redirect, host) -> [0]rt;
// Unknown ethernet type numbers.
c0[3] -> Discard;
c1[3] -> Discard;
| Click | 5 | ANLAB-KAIST/NBA | configs/ipsec_router_simple.click | [
"MIT"
] |
from .DummyModel import DummyModel
model_map = {
"DummyModel": DummyModel
}
| Python | 1 | Hacky-DH/pytorch | benchmarks/distributed/rpc/parameter_server/models/__init__.py | [
"Intel"
] |
syntax = "proto3";
package tensorflow.rpc;
import "tensorflow/core/framework/tensor.proto";
import "tensorflow/core/protobuf/struct.proto";
message CallRequest {
string method = 1;
repeated TensorProto input_tensors = 2;
}
message CallResponse {
repeated TensorProto output_tensors = 1;
}
message ListRequest {}
message RegisteredMethod {
string method = 1;
StructuredValue input_specs = 2;
StructuredValue output_specs = 3;
}
message ListResponse {
repeated RegisteredMethod registered_methods = 1;
}
service RpcService {
// RPC for invoking a registered function on remote server.
rpc Call(CallRequest) returns (CallResponse) {}
// RPC for listing available methods in a server.
rpc List(ListRequest) returns (ListResponse) {}
}
| Protocol Buffer | 4 | EricRemmerswaal/tensorflow | tensorflow/distribute/experimental/rpc/proto/tf_rpc_service.proto | [
"Apache-2.0"
] |
DROP TABLE IF EXISTS car;
CREATE TABLE car (id int(10) NOT NULL AUTO_INCREMENT,
model varchar(50) NOT NULL,
year int(4) NOT NULL,
PRIMARY KEY (id));
INSERT INTO car (model, year) VALUES ('BMW', 2000);
INSERT INTO car (model, year) VALUES ('BENZ', 2010);
INSERT INTO car (model, year) VALUES ('PORCHE', 2005);
INSERT INTO car (model, year) VALUES ('PORCHE', 2004);
DELIMITER $$
DROP PROCEDURE IF EXISTS FIND_CARS_AFTER_YEAR$$
CREATE PROCEDURE FIND_CARS_AFTER_YEAR(IN year_in INT)
BEGIN
SELECT * FROM car WHERE year >= year_in ORDER BY year;
END$$
DROP PROCEDURE IF EXISTS GET_TOTAL_CARS_BY_MODEL$$
CREATE PROCEDURE GET_TOTAL_CARS_BY_MODEL(IN model_in VARCHAR(50), OUT count_out INT)
BEGIN
SELECT COUNT(*) into count_out from car WHERE model = model_in;
END$$
DELIMITER ;
| SQL | 4 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-repo/src/main/resources/car-mysql.sql | [
"MIT"
] |
; Simple example
"Hello World" println
| Ioke | 1 | olabini/ioke | test/scripts/hello_world.ik | [
"ICU",
"MIT"
] |
screen quiz_question_answer_explanation_screen(quiz_question):
on "show" action With(dissolve)
on "hide" action With(dissolve)
frame:
style_prefix "confirm"
xfill True
xsize 1200
xmargin 50
ypadding 30
yalign .25
background '#fffe'
vbox:
xfill True
spacing 10
label _('Question')
text quiz_question.question
null height 20
label _('Correct answer')
text _('{b}[quiz_question.true!t]{/b}')
null height 20
if quiz_question.explanation:
label _('Explanation')
text quiz_question.explanation
if quiz_question.learn_more_url:
textbutton _("{icon=icon-help-circle} Learn More"):
hovered Notify(_('Learn more about this topic in an article!'))
action OpenURL(quiz_question.learn_more_url)
null height 40
textbutton _("Gotcha! Let's move on."):
xalign 0.5
action Return()
init python:
class QuizQuestion():
'''
question: a string
true: a string
false: a list of strings
explanation: an optional string
code_label: an optional string, see game/quiz_code_snippets.txt
'''
def __init__(self, question, true, false, category=None, explanation=None,
code_label=None, learn_more_url=None, easter_egg_name=None, difficulty=None):
"""
tech trivia questions only have question, true, and false, so all other fields are optional
"""
choices = {
true: True
}
for f in false:
choices[f] = False
# a list of tuples
# ex.
'''
[
("What is the binary representation of 10?", None),
("1010", True),
("0101", False),
],
'''
choices = []
for f in false:
choices.append((f, False))
# shuffle insert the true answer
# max is total num of choices, true plus false
idx = renpy.random.randint(0, len(false) + 1)
choices.insert(idx, (true, True))
self.choices = choices
self.true = true
self.question = question
self.explanation = explanation
self.category = category
self.code_label = code_label
self.learn_more_url = learn_more_url
self.easter_egg_name = easter_egg_name
self.difficulty = difficulty
init 101 python:
## Hacker Space Tech Trivia
trivia_questions = [
QuizQuestion(
question=_("Which is faster for training Neural Networks, a GPU or a CPU?"),
true=_("GPU."),
false=[_("CPU."), _("They are the same.")]
),
QuizQuestion(
question=_("Which of the following is a legal identifier in assembly language?"),
true=_("july_2021"),
false=[_("10percent"), _("a1a2a3...a247a248"), _("eflags")]
),
QuizQuestion(
question=_("Who was the child of a famous poet and English mathematician whom many historians consider the first programmer?"),
true=_("Ada Lovelace"),
false=[_("Grace Hopper"), _("Alan Turing"), _("Charles Babbage")]
),
QuizQuestion(
question=_("Which has more precision, a double or a float?"),
true=_("A double."),
false=[_("A float."), _("They have the same precision.")]
),
QuizQuestion(
question=_("Which of the following programming languages is created by a Japanese developer?"),
true=_("Ruby"),
false=[_("C"), _("C++"), _("Java"), _("Kotlin"), _("Python")]
),
QuizQuestion(
question=_("Which of the following operators has the highest precedence in C++?"),
true=_("!"),
false=[_("*"), _("&&"), _("!=")]
),
QuizQuestion(
question=_("What's the meaning behind the name of the Python programming language?"),
true=_("Monty Python"),
false=[_("The snake")]
),
QuizQuestion(
question=_("What was the original name for Java?"),
true=_("Oak"),
false=[_("Coffee"), _("JavaScript"), _("Guava"), _("Homebrew")]
),
]
easter_egg_quiz_questions = [
QuizQuestion(
question=_("freeCodeCamp.org first launched in:"),
true=_("2014"),
false=[_("2001"), _("1910"), _("2030")],
explanation=_("The first version of the freeCodeCamp curriculum went live in 2014, from Quincy Larson's closet office in San Francisco. Other developers quickly stepped in to help expand the curriculum and save him from madness."),
learn_more_url="https://www.freecodecamp.org/news/about/",
difficulty=1,
easter_egg_name=quiz_fcc_launch
),
QuizQuestion(
question=_("freeCodeCamp is a 501(c)(3) public charity (nonprofit) with a mission to:"),
true=_("To help people learn to code for free."),
false=[_("Help companies recruit developers"), _("Advocate for open source software"), _("Make cat photo apps")],
explanation=_("Even though freeCodeCamp does create open source projects, and does help developers get jobs, its mission is \"to help people learn to code for free. We accomplish this by creating thousands of videos, articles, and interactive coding lessons - all freely available to the public.\""),
learn_more_url="https://www.freecodecamp.org/news/about/",
difficulty=1,
easter_egg_name=quiz_fcc_mission
),
QuizQuestion(
question=_("Code Radio is:"),
true=_("An internet radio that plays music you can code to"),
false=[_("A form of communication America used during World War II created by the Navajo people"), _("A radio station for old acoustic modems"), _("A way to talk with beings from other solar systems")],
explanation=_("Code Radio is avilable 24/7, with more than 1,500 instrumental songs on rotation. Lots of developers enjoy listening to it as background music while they work."),
learn_more_url="https://www.freecodecamp.org/news/code-radio-24-7/",
difficulty=1,
easter_egg_name=quiz_code_radio
),
QuizQuestion(
question=_("What is DevDocs.io? "),
true=_("A powerful documentation website run by the freeCodeCamp community"),
false=[_("A community of doctors who know how to code"), _("Developers who work at the shipyard"), _("A fancy docking station you can put your laptop on while you code")],
explanation=_("DevDocs.io is a popular search engine for programming language documentation. You can download the full documentation for different tools and browse it offline. Perfect for when you need to code on the go and won't have an internet connection."),
learn_more_url="https://www.freecodecamp.org/news/devdocs-is-joining-the-freecodecamp-community-ae185a1c14a6/",
difficulty=1,
easter_egg_name=quiz_devdocs
),
QuizQuestion(
question=_("What is the name of freeCodeCamp's popular GitHub repository that teaches you how to contribute to open source?"),
true=_("How to Contribute to Open Source"),
false=[_("GitGoing"), _("Project Octocat"), _("Open Sauce")],
explanation=_("One of the best ways to get real-world experience working with large legacy codebases is to contribute to open source. But this is an ambiguous process. So the freeCodeCamp community created this repository to help new developers get started."),
learn_more_url="https://www.freecodecamp.org/news/how-to-contribute-to-open-source-projects-beginners-guide/",
difficulty=1,
easter_egg_name=quiz_fcc_opensource
),
QuizQuestion(
question=_("The freeCodeCamp learning platform is written in which programming language?"),
true=_("JavaScript and Node.js"),
false=[_("Python and Django"), _("PHP and Laravel"), _("Java and Spring")],
explanation=_("freeCodeCamp teaches many different programming languages and frameworks, and could be written in any of these. This said, in 2014 when Quincy Larson sat down to start building the first version of freeCodeCamp, he chose JavaScript and Node.js. He did this because it had a huge package ecosystem and was relatively easy to program in. Node.js is also very fast, and works well at scale. Large websites like Netflix and LinkedIn use it as a primary language."),
learn_more_url="https://www.freecodecamp.org/news/the-definitive-node-js-handbook-6912378afc6e/",
difficulty=1,
easter_egg_name=quiz_fcc_language
),
QuizQuestion(
question=_("Which open source community has been the biggest inspiration to freeCodeCamp?"),
true=_("Wikipedia"),
false=[_("Linux"), _("Mozilla Firefox"), _("Open Office")],
explanation=_("All of these projects have been a source of inspiration, but Wikipedia is the closest analog to what the freeCodeCamp community would ultimately like to become: hundreds of languages represented, with thousands of contributors from a wide variety of backgrounds and interests."),
learn_more_url="https://www.freecodecamp.org/news/welcome-to-the-abundance-economy-there-are-free-lunches-all-over-the-place-b9d0a417fd1a/",
difficulty=1,
easter_egg_name=quiz_fcc_inspiration
),
QuizQuestion(
question=_("What forum tool does freeCodeCamp use for its forum?"),
true=_("Discourse"),
false=[_("NodeBB"), _("phpBB"), _("vBulletin")],
explanation=_("The freeCodeCamp community was an early adopter of Discourse, a powerful forum tool designed by Stack Overflow founder Jeff Atwood. Quincy Larson first met Jeff at an event in San Francisco in 2014, and the two talked about online communities. Jeff convinced Quincy to create a forum so that learners could easily help one another. One benefit of a forum is that other people can then discover past conversations, and use them to help get unstuck. If you ask a question on the freeCodeCamp forum, you will generally get an answer in just a few hours."),
learn_more_url="https://www.freecodecamp.org/news/the-future-of-the-freecodecamp-forum/",
difficulty=1,
easter_egg_name=quiz_fcc_forum
),
QuizQuestion(
question=_("What chat tool does freeCodecamp use for its main self-hosted chat server?"),
true=_("RocketChat"),
false=[_("Slack"), _("Discord"), _("Gitter")],
explanation=_("The freeCodeCamp contributor community communicates mostly through our self-hosted Rocket Chat instance at https://chat.freecodecamp.org. This said, we do have an active Discord server, and in the past have used both Slack and Gitter."),
learn_more_url="https://www.freecodecamp.org/news/introducing-freecodecamp-chat/",
difficulty=1,
easter_egg_name=quiz_fcc_chat
),
QuizQuestion(
question=_("freeCodeCamp's Mascot is:"),
true=_("CamperBot"),
false=[_("freeCodeCampasaurus Rex"), _("Bill Murray"), _("Campy the Raccoon")],
explanation=_("The freeCodeCamp community created CamperBot early on to help out with automated tasks in our chat rooms. Since then, he has been helpful in many different places, including the freeCodeCamp forum. He is a helpful robot who runs on kindness."),
learn_more_url="https://www.freecodecamp.org/news/about/",
difficulty=1,
easter_egg_name=quiz_fcc_mascot
)
] | Ren'Py | 5 | googlebleh/LearnToCodeRPG | game/scripts/quiz_questions.rpy | [
"BSD-3-Clause"
] |
module.exports = {
reactStrictMode: true,
experimental: {
serverComponents: true,
// runtime: 'edge',
},
}
| JavaScript | 4 | hanneslund/next.js | test/integration/react-streaming-and-server-components/switchable-runtime/next.config.js | [
"MIT"
] |
"""Tests for the Freebox config flow."""
from unittest.mock import Mock, patch
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN
from homeassistant.components.button.const import SERVICE_PRESS
from homeassistant.components.freebox.const import DOMAIN
from homeassistant.const import ATTR_ENTITY_ID, CONF_HOST, CONF_PORT
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
from .const import MOCK_HOST, MOCK_PORT
from tests.common import MockConfigEntry
async def test_reboot_button(hass: HomeAssistant, router: Mock):
"""Test reboot button."""
entry = MockConfigEntry(
domain=DOMAIN,
data={CONF_HOST: MOCK_HOST, CONF_PORT: MOCK_PORT},
unique_id=MOCK_HOST,
)
entry.add_to_hass(hass)
assert await async_setup_component(hass, DOMAIN, {})
await hass.async_block_till_done()
assert hass.config_entries.async_entries() == [entry]
assert router.call_count == 1
assert router().open.call_count == 1
with patch(
"homeassistant.components.freebox.router.FreeboxRouter.reboot"
) as mock_service:
await hass.services.async_call(
BUTTON_DOMAIN,
SERVICE_PRESS,
service_data={
ATTR_ENTITY_ID: "button.reboot_freebox",
},
blocking=True,
)
await hass.async_block_till_done()
mock_service.assert_called_once()
| Python | 4 | MrDelik/core | tests/components/freebox/test_button.py | [
"Apache-2.0"
] |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "tensorflow/compiler/tf2xla/kernels/image_resize_ops.h"
#include "absl/strings/str_format.h"
#include "absl/types/span.h"
#include "tensorflow/compiler/jit/xla_activity.pb.h"
#include "tensorflow/compiler/jit/xla_activity_listener.h"
#include "tensorflow/compiler/tf2xla/shape_util.h"
#include "tensorflow/compiler/tf2xla/type_util.h"
#include "tensorflow/compiler/tf2xla/xla_helpers.h"
#include "tensorflow/compiler/tf2xla/xla_op_kernel.h"
#include "tensorflow/compiler/tf2xla/xla_op_registry.h"
#include "tensorflow/compiler/xla/array4d.h"
#include "tensorflow/compiler/xla/client/lib/constants.h"
#include "tensorflow/compiler/xla/client/xla_builder.h"
#include "tensorflow/core/framework/kernel_def_builder.h"
#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/lib/math/math_util.h"
namespace tensorflow {
namespace {
// We implement bilinear interpolation by upsampling followed by convolution.
// The basic idea is as follows. To scale from NxN to RxR:
//
// 1. S := (N - 1) / gcd(N-1, R-1)
// 2. k := (R - 1) / gcd(N-1, R-1)
// 3. Convolution((2k-1)x(2k-1), stride=S, lhs_dilation=k, padding=k-1)
//
// For example, to Scale from 7x7 -> 15x15:
//
// 1. S := (7-1) / gcd(7-1, 15-1) = 6 / gcd(6, 14) = 6 / 2 = 3
// 2. k := (15 - 1) / gcd(7-1, 15-1) = 14 / gcd(6, 14) = 14 / 2 = 7
// 3. Convolution(15x15, stride=3, lhs_dilation=7, padding=2)
//
//
// The 7x7 -> 15x15 case is much too large to write out in full as an
// example. The smallest interesting example is 3x3 -> 4x4.
//
// S := 2
// k := 3
//
// 00 03 06 00 00 00 00 00 00 00 00 00 00 00 00 02 04 06
// 09 12 15 -> 00 00 00 00 00 00 00 00 00 00 00 -> 06 08 10 12
// 18 21 24 00 00 00 00 00 03 00 00 06 00 00 12 14 16 18
// 00 00 00 00 00 00 00 00 00 00 00 18 20 22 24
// 00 00 00 00 00 00 00 00 00 00 00
// 00 00 09 00 00 12 00 00 15 00 00
// 00 00 00 00 00 00 00 00 00 00 00
// 00 00 00 00 00 00 00 00 00 00 00
// 00 00 18 00 00 21 00 00 24 00 00
// 00 00 00 00 00 00 00 00 00 00 00
// 00 00 00 00 00 00 00 00 00 00 00
//
// with the following convolutional kernel, with stride [2, 2]:
// 1 2 3 2 1
// 2 4 6 4 2
// 1/9 * 3 6 9 6 3
// 2 4 6 4 2
// 1 2 3 2 1
// Note that the convolution kernel matrix is separable and thus we can instead
// use 2 consecutive 1D kernel of the dimension 2k-1, along each axis.
// Computes the size of the convolutional kernel and stride to use when resizing
// from in_size to out_size.
struct ResizeConvolutionDims {
// Size of the kernel to use.
std::vector<int64_t> kernel_size; // k
// Stride of the convolution to use.
std::vector<int64_t> stride; // S
};
ResizeConvolutionDims ComputeResizeConvolutionParameters(
absl::Span<const int64_t> in_size, absl::Span<const int64_t> out_size,
bool align_corners) {
CHECK_EQ(in_size.size(), out_size.size());
int num_spatial_dims = in_size.size();
ResizeConvolutionDims dims;
dims.kernel_size.resize(num_spatial_dims);
dims.stride.resize(num_spatial_dims);
for (int i = 0; i < num_spatial_dims; ++i) {
if (in_size[i] == 1) {
// We must handle input size 1 specially because XLA convolution does
// not allow stride 0.
dims.stride[i] = dims.kernel_size[i] = 1;
} else if (out_size[i] == 1) {
// If in_size[i] > 1 but out_size[i] == 1, then we slice out the first
// entry before resizing.
dims.stride[i] = dims.kernel_size[i] = 1;
} else {
// The scaling factor changes depending on the alignment of corners.
const int64_t in_size_factor =
align_corners ? in_size[i] - 1 : in_size[i];
const int64_t out_size_factor =
align_corners ? out_size[i] - 1 : out_size[i];
int64_t gcd = MathUtil::GCD(static_cast<uint64>(in_size_factor),
static_cast<uint64>(out_size_factor));
dims.stride[i] = in_size_factor / gcd;
dims.kernel_size[i] = out_size_factor / gcd;
}
}
return dims;
}
// The upper padding of the input needed by ConvGeneralDilated calls is
// determined by solving two related relationships (assuming rhs_dilation == 0):
// 1. dilated_input_dim = lower_padding + upper_padding
// + lhs_dilation * (in_size - 1) + 1
// 2. dilated_input_dim = (2 * dims.kernel-size - 1)
// + dims.stride * (out_size - 1)
int64_t CalculateUpperPadding(int64_t in_size, int64_t out_size,
int64_t kernel_size, int64_t stride) {
int64_t padding = (2 * kernel_size - 1) + (out_size - 1) * stride -
(kernel_size - 1) - 1 - (kernel_size * (in_size - 1));
return padding;
}
// Form a 2D convolution kernel like:
// 1 2 3 2 1
// 2 4 6 4 2
// 1/9 * 3 6 9 6 3
// 2 4 6 4 2
// 1 2 3 2 1
// by multiplying two 1D kernels of the form:
// 1/3 * [1 2 3 2 1]
// If the 2D kernel would be very large, the 1D kernel can be applied once in
// each dimension due to the symmetry of the kernel along all axis to reduce the
// computational intensity.
xla::XlaOp MakeBilinear1DKernel(xla::XlaBuilder* builder,
xla::PrimitiveType type, int64_t n) {
std::vector<float> kernel(n * 2 - 1);
for (int64_t i = 0; i < n; ++i) {
float v = (i + 1.0f) / n;
kernel[i] = v;
kernel[n * 2 - 2 - i] = v;
}
return xla::ConvertElementType(xla::ConstantR1<float>(builder, kernel), type);
}
// Unlike the bilinear kernel, which is triangular, the nearest neighbor
// kernel is a square. For example, a 1D kernel with n=3 would look like
// [0 1 1 1 0]
// and n=4 would look like
// [0 0 1 1 1 1 0].
// Note that in the second case, the kernel is not symmetric and we default
// to the right (because an existing non TPU kernel
// for nearest neighbor resize already chose to default to the right,
// so we want to be consistent).
xla::XlaOp MakeNearestNeighbor1DKernel(xla::XlaBuilder* builder,
xla::PrimitiveType type, int64_t n) {
std::vector<float> kernel(n * 2 - 1, 0.0f);
std::fill(&kernel[n / 2], &kernel[(3 * n) / 2], 1.0f);
return xla::ConvertElementType(xla::ConstantR1<float>(builder, kernel), type);
}
// Kernels with more than 16 spatial elements are considered intense and the
// kernel should be applied to each dimension independently.
const int64_t kMax2DKernelSize = 16;
xla::XlaOp MakeGeneralResizeKernel(xla::XlaBuilder* builder,
xla::PrimitiveType type,
absl::Span<const int64_t> kernel_size,
int64_t channels, bool is_kernel_bilinear) {
auto make_kernel_func =
is_kernel_bilinear ? MakeBilinear1DKernel : MakeNearestNeighbor1DKernel;
std::vector<int64_t> depthwise_kernel_sizes = {
(2 * kernel_size[0] - 1), (2 * kernel_size[1] - 1), channels, 1};
auto depthwise_kernel =
xla::BroadcastInDim(make_kernel_func(builder, type, kernel_size[1]),
depthwise_kernel_sizes, /*broadcast_dimensions=*/{1});
return xla::Mul(depthwise_kernel,
make_kernel_func(builder, type, kernel_size[0]),
/*broadcast_dimensions=*/{0});
}
xla::XlaOp MakeGeneralResizeKernelInDim(xla::XlaBuilder* builder,
xla::PrimitiveType type,
absl::Span<const int64_t> kernel_size,
int64_t channels, int64_t dim,
bool is_kernel_bilinear) {
auto make_kernel_func =
is_kernel_bilinear ? MakeBilinear1DKernel : MakeNearestNeighbor1DKernel;
std::vector<int64_t> depthwise_kernel_sizes = {
dim == 0 ? (2 * kernel_size[0] - 1) : 1,
dim == 1 ? (2 * kernel_size[1] - 1) : 1, channels, 1};
return xla::BroadcastInDim(make_kernel_func(builder, type, kernel_size[dim]),
depthwise_kernel_sizes,
/*broadcast_dimensions=*/{dim});
}
xla::XlaOp BroadcastSpatialDimensions(xla::XlaBuilder* builder,
const xla::XlaOp& input,
int32_t spatial_dimensions_offset,
absl::Span<const int64_t> in_size,
absl::Span<const int64_t> out_size) {
// Add broadcasts to handle expanding from a size == 1 dimension to a
// size > 1 dimension.
auto broadcast_shape_or_status = builder->GetShape(input);
if (!broadcast_shape_or_status.ok()) {
return builder->ReportError(broadcast_shape_or_status.status());
}
xla::Shape broadcast_shape = broadcast_shape_or_status.ValueOrDie();
for (int32_t i = 0; i < in_size.size(); ++i) {
if (in_size[i] == 1 && out_size[i] > 1) {
broadcast_shape.set_dimensions(spatial_dimensions_offset + i,
out_size[i]);
}
}
return xla::BroadcastInDim(input, broadcast_shape.dimensions(),
/*broadcast_dimensions=*/{0, 1, 2, 3});
}
xla::XlaOp ResizeUsingDilationAndConvolution(
xla::XlaBuilder* builder, const xla::XlaOp& input, xla::PrimitiveType type,
const int num_spatial_dims, absl::Span<const int64_t> in_size,
absl::Span<const int64_t> out_size, const int64_t channels,
const bool align_corners, bool is_kernel_bilinear) {
// Picture for a 1x3 to 1x4 bilinear resize:
// stride = 2, kernel size = 3
// Input:
// 3 6 9
// Input with dilation and padding:
// 0 0 3 0 0 6 0 0 9 0 0
// Convolution kernel:
// 1/3 * [1 2 3 2 1]
// Output:
// 3 5 7 9
xla::ConvolutionDimensionNumbers dimension_numbers;
dimension_numbers.set_input_batch_dimension(0);
dimension_numbers.set_output_batch_dimension(0);
dimension_numbers.set_input_feature_dimension(num_spatial_dims + 1);
dimension_numbers.set_output_feature_dimension(num_spatial_dims + 1);
for (int i = 0; i < num_spatial_dims; ++i) {
dimension_numbers.add_input_spatial_dimensions(1 + i);
dimension_numbers.add_output_spatial_dimensions(1 + i);
dimension_numbers.add_kernel_spatial_dimensions(i);
}
dimension_numbers.set_kernel_input_feature_dimension(num_spatial_dims + 1);
dimension_numbers.set_kernel_output_feature_dimension(num_spatial_dims);
ResizeConvolutionDims dims =
ComputeResizeConvolutionParameters(in_size, out_size, align_corners);
if (dims.kernel_size[0] * dims.kernel_size[1] >
kMax2DKernelSize * kMax2DKernelSize) {
BroadcastOptimizationRemark(
XlaOptimizationRemark::SLOW_IMAGE_RESIZE_DIMENSIONS,
absl::StrFormat("%dx%d", dims.kernel_size[0], dims.kernel_size[1]))
.IgnoreError();
}
xla::XlaOp output;
// Concatenation and padding below currently assumes num_spatial_dims is 2 to
// prevent needless code complexity.
CHECK_EQ(num_spatial_dims, 2)
<< "ResizeUsingDilationAndConvolution pads only 2 dimensions currently.";
std::vector<int64_t> upper_padding(num_spatial_dims);
for (int i = 0; i < num_spatial_dims; ++i) {
upper_padding[i] = dims.kernel_size[i] - 1;
}
xla::XlaOp input_data = input;
if (!align_corners) {
// When Tensorflow does not align_corners, the resize indexing can access
// beyond the upper bound and is instead clamped to prevent out of bounds
// reads. This is conceptually the same as extending the edges of the input.
// We emulate this by copying the last row/column of the input.
// Calculate what padding would be needed then determine how far to extend
// the border before lhs dilation.
std::vector<int64_t> num_extended(num_spatial_dims);
upper_padding[0] = CalculateUpperPadding(
in_size[0], out_size[0], dims.kernel_size[0], dims.stride[0]);
upper_padding[1] = CalculateUpperPadding(
in_size[1], out_size[1], dims.kernel_size[1], dims.stride[1]);
num_extended[0] = upper_padding[0] / (dims.kernel_size[0]);
num_extended[1] = upper_padding[1] / (dims.kernel_size[1]);
const int64_t batch_dim_size =
builder->GetShape(input).ValueOrDie().dimensions(0);
if (num_extended[0] > 0) {
auto slice = xla::Slice(
input_data, {0, in_size[0] - 1, 0, 0},
{batch_dim_size, in_size[0], in_size[1], channels}, {1, 1, 1, 1});
for (int i = 0; i < num_extended[0]; i++) {
input_data = xla::ConcatInDim(builder, {input_data, slice}, 1);
}
}
if (num_extended[1] > 0) {
auto slice = xla::Slice(
input_data, {0, 0, in_size[1] - 1, 0},
{batch_dim_size, in_size[0] + num_extended[0], in_size[1], channels},
{1, 1, 1, 1});
for (int i = 0; i < num_extended[1]; i++) {
input_data = xla::ConcatInDim(builder, {input_data, slice}, 2);
}
}
// Setting in_size to (in_size + num_extended) due to the above Slice and
// ConcatInDim. Recalculate needed padding after the above Slice/Concat.
upper_padding[0] =
CalculateUpperPadding(in_size[0] + num_extended[0], out_size[0],
dims.kernel_size[0], dims.stride[0]);
upper_padding[1] =
CalculateUpperPadding(in_size[1] + num_extended[1], out_size[1],
dims.kernel_size[1], dims.stride[1]);
}
// Split convolutions into independent dimensions if they would be a very
// large kernel or if one or more of the dimensions are already equal.
bool decompose_resize =
in_size[0] == out_size[0] || in_size[1] == out_size[1] ||
dims.kernel_size[0] * dims.kernel_size[1] >= kMax2DKernelSize;
if (!decompose_resize) {
xla::XlaOp kernel = MakeGeneralResizeKernel(builder, type, dims.kernel_size,
channels, is_kernel_bilinear);
output =
xla::ConvGeneralDilated(input_data, kernel, dims.stride,
/*padding=*/
{{dims.kernel_size[0] - 1, upper_padding[0]},
{dims.kernel_size[1] - 1, upper_padding[1]}},
/*lhs_dilation=*/dims.kernel_size,
/*rhs_dilation=*/{1, 1}, dimension_numbers,
/*feature_group_count=*/channels);
} else {
output = input_data;
if (in_size[0] != out_size[0]) {
xla::XlaOp kernel0 = MakeGeneralResizeKernelInDim(
builder, type, dims.kernel_size, channels, 0, is_kernel_bilinear);
output = xla::ConvGeneralDilated(
output, kernel0, {dims.stride[0], 1},
/*padding=*/
{{dims.kernel_size[0] - 1, upper_padding[0]}, {0, 0}},
/*lhs_dilation=*/{dims.kernel_size[0], 1},
/*rhs_dilation=*/{1, 1}, dimension_numbers,
/*feature_group_count=*/channels);
}
if (in_size[1] != out_size[1]) {
xla::XlaOp kernel1 = MakeGeneralResizeKernelInDim(
builder, type, dims.kernel_size, channels, 1, is_kernel_bilinear);
output = xla::ConvGeneralDilated(
output, kernel1, {1, dims.stride[1]},
/*padding=*/
{{0, 0}, {dims.kernel_size[1] - 1, upper_padding[1]}},
/*lhs_dilation=*/{1, dims.kernel_size[1]},
/*rhs_dilation=*/{1, 1}, dimension_numbers,
/*feature_group_count=*/channels);
}
}
// Add broadcasts to handle expanding from a size == 1 dimension to a
// size > 1 dimension.
return BroadcastSpatialDimensions(
builder, output, /*spatial_dimensions_offset=*/1, in_size, out_size);
}
xla::XlaOp ResizeUsingDilationAndConvolutionGradOp(
xla::XlaBuilder* builder, const xla::XlaOp& grad, xla::PrimitiveType type,
const int num_spatial_dims, absl::Span<const int64_t> in_size,
absl::Span<const int64_t> grad_size, const int64_t channels,
const bool align_corners, bool is_kernel_bilinear) {
ResizeConvolutionDims dims =
ComputeResizeConvolutionParameters(in_size, grad_size, align_corners);
// To form the backward convolution, we keep the kernel unchanged (it is
// already symmetric) and swap the roles of strides and LHS dilation.
xla::ConvolutionDimensionNumbers dimension_numbers;
dimension_numbers.set_input_batch_dimension(0);
dimension_numbers.set_output_batch_dimension(0);
dimension_numbers.set_input_feature_dimension(num_spatial_dims + 1);
dimension_numbers.set_output_feature_dimension(num_spatial_dims + 1);
for (int i = 0; i < num_spatial_dims; ++i) {
dimension_numbers.add_input_spatial_dimensions(i + 1);
dimension_numbers.add_output_spatial_dimensions(i + 1);
dimension_numbers.add_kernel_spatial_dimensions(i);
}
dimension_numbers.set_kernel_input_feature_dimension(num_spatial_dims + 1);
dimension_numbers.set_kernel_output_feature_dimension(num_spatial_dims);
xla::XlaOp output;
if (dims.kernel_size[0] * dims.kernel_size[1] < kMax2DKernelSize) {
xla::XlaOp kernel = MakeGeneralResizeKernel(builder, type, dims.kernel_size,
channels, is_kernel_bilinear);
// Broadcast the input kernel where the forward op expanded from a size == 1
// dimension to a size > 1 dimension. This has the effect of summing the
// gradient contributions in that dimension.
kernel = BroadcastSpatialDimensions(
builder, kernel, /*spatial_dimensions_offset=*/0, in_size, grad_size);
output = xla::ConvGeneralDilated(
grad, kernel, /*window_strides=*/dims.kernel_size,
/*padding=*/
{{dims.kernel_size[0] - 1, dims.kernel_size[0] - 1},
{dims.kernel_size[1] - 1, dims.kernel_size[1] - 1}},
/*lhs_dilation=*/dims.stride,
/*rhs_dilation=*/{1, 1}, dimension_numbers,
/*feature_group_count=*/channels);
} else {
xla::XlaOp kernel0 = MakeGeneralResizeKernelInDim(
builder, type, dims.kernel_size, channels, 0, is_kernel_bilinear);
xla::XlaOp kernel1 = MakeGeneralResizeKernelInDim(
builder, type, dims.kernel_size, channels, 1, is_kernel_bilinear);
// Broadcast the input kernel where the forward op expanded from a
// size == 1 dimension to a size > 1 dimension. This has the effect of
// summing the gradient contributions in that dimension.
if (in_size[0] == 1 && grad_size[0] > 1) {
kernel0 = BroadcastSpatialDimensions(builder, kernel0,
/*spatial_dimensions_offset=*/0, {1},
{grad_size[0]});
}
if (in_size[1] == 1 && grad_size[1] > 1) {
kernel1 = BroadcastSpatialDimensions(builder, kernel0,
/*spatial_dimensions_offset=*/0,
in_size, grad_size);
}
output = xla::ConvGeneralDilated(
grad, kernel0, /*window_strides=*/{dims.kernel_size[0], 1},
/*padding=*/
{{dims.kernel_size[0] - 1, dims.kernel_size[0] - 1}, {0, 0}},
/*lhs_dilation=*/{dims.stride[0], 1},
/*rhs_dilation=*/{1, 1}, dimension_numbers,
/*feature_group_count=*/channels);
output = xla::ConvGeneralDilated(
output, kernel1, /*window_strides=*/{1, dims.kernel_size[1]},
/*padding=*/
{{0, 0}, {dims.kernel_size[1] - 1, dims.kernel_size[1] - 1}},
/*lhs_dilation=*/{1, dims.stride[1]},
/*rhs_dilation=*/{1, 1}, dimension_numbers,
/*feature_group_count=*/channels);
}
// If in_size[i] > 1 and grad_size[i] == 1, pad the output in dimension i.
// Opposite of the slice performed by the forward op.
xla::PaddingConfig padding = xla::MakeNoPaddingConfig(4);
bool pad_output = false;
for (int i = 0; i < num_spatial_dims; ++i) {
if (in_size[i] > 1 && grad_size[i] == 1) {
pad_output = true;
padding.mutable_dimensions(1 + i)->set_edge_padding_high(in_size[i] - 1);
}
}
if (pad_output) {
output = xla::Pad(output, xla::Zero(builder, type), padding);
}
return output;
}
void GeneralCompile(XlaOpKernelContext* ctx, bool align_corners_,
bool is_kernel_bilinear) {
xla::XlaBuilder* b = ctx->builder();
TensorShape input_shape = ctx->InputShape(0);
OP_REQUIRES(ctx, input_shape.dims() == 4,
errors::InvalidArgument("input must be 4-dimensional",
input_shape.DebugString()));
// First dimension always assumed to be batch
const int64_t batch = input_shape.dim_size(0);
std::vector<int64_t> in_size = {input_shape.dim_size(1),
input_shape.dim_size(2)};
// Last/4th dimension always assumed to be num channels
const int64_t channels = input_shape.dim_size(3);
OP_REQUIRES(ctx, in_size[0] > 0 && in_size[1] > 0,
errors::InvalidArgument("input size must be positive, got [",
in_size[0], ",", in_size[1], "]"));
std::vector<int64_t> out_size;
OP_REQUIRES_OK(ctx, ctx->ConstantInputAsIntVector(1, &out_size));
OP_REQUIRES(ctx, out_size.size() == 2,
errors::InvalidArgument("output size must be length 2, got ",
out_size.size()));
OP_REQUIRES(ctx, out_size[0] > 0 && out_size[1] > 0,
errors::InvalidArgument("output size must be positive, got [",
out_size[0], ",", out_size[1], "]"));
const int num_spatial_dims = 2;
xla::XlaOp input = ctx->Input(0);
xla::PrimitiveType input_type = ctx->input_xla_type(0);
// If in_size[i] > 1 and out_size[i] == 1, slice out the first input in
// dimension i.
bool slice_input = false;
for (int i = 0; i < num_spatial_dims; ++i) {
if (in_size[i] > 1 && out_size[i] == 1) {
// If in_size[i] > 1 but out_size[i] == 1, then we slice out the first
// entry before resizing.
slice_input = true;
in_size[i] = 1;
}
}
if (slice_input) {
input = xla::Slice(input, {0, 0, 0, 0},
{batch, in_size[0], in_size[1], channels}, {1, 1, 1, 1});
}
// Output is always type float if 'is_kernel_bilinear' is true.
// GPU with integer input also uses float, because XLA
// integer convolution on CuDNN is either not supported or not allowed
// directly.
xla::PrimitiveType original_input_type = input_type;
if (is_kernel_bilinear || (xla::primitive_util::IsIntegralType(input_type))) {
input = xla::ConvertElementType(input, xla::F32);
input_type = xla::F32;
}
for (int dim = 0; dim < in_size.size(); ++dim) {
// If the pairwise_distance function more accurately estimated performance,
// this threshold could be reduced.
constexpr int64_t kSmallDimThreshold = 1 << 10;
if (in_size[dim] > out_size[dim] || out_size[dim] < kSmallDimThreshold) {
std::vector<int64_t> next_size = in_size;
next_size[dim] = out_size[dim];
input = ResizeUsingDilationAndConvolution(
b, input, input_type, num_spatial_dims, in_size, next_size, channels,
align_corners_, is_kernel_bilinear);
in_size[dim] = next_size[dim];
}
}
// This function approximates the cost of a bilinear resize from a src_size to
// a dst_size. The accuracy is okay, but empirically, the algorithm makes some
// suboptimal choices. A better cost model would improve performance.
auto pairwise_distance = [align_corners_](int64_t src_size,
int64_t dst_size) {
auto params = ComputeResizeConvolutionParameters({src_size}, {dst_size},
align_corners_);
return params.stride[0];
};
for (int dim = 0; dim < in_size.size(); ++dim) {
std::vector<int64_t> distances(out_size[dim] + 1);
std::vector<int64_t> next_step(out_size[dim] + 1);
for (int64_t i = distances.size() - 2; i >= in_size[dim]; --i) {
distances[i] = INT64_MAX;
for (int64_t j = i + 1; j < distances.size(); ++j) {
int64_t distance = pairwise_distance(i, j) + distances[j];
if (distance < distances[i]) {
distances[i] = distance;
next_step[i] = j;
}
}
}
while (in_size[dim] != out_size[dim]) {
auto next_size = in_size;
next_size[dim] = next_step[in_size[dim]];
input = ResizeUsingDilationAndConvolution(
b, input, input_type, num_spatial_dims, in_size, next_size, channels,
align_corners_, is_kernel_bilinear);
in_size[dim] = next_size[dim];
}
}
// Bilinear always outputs float, but nearest neighbor keeps the original type
if (!is_kernel_bilinear && original_input_type != input_type) {
input = xla::ConvertElementType(input, original_input_type);
}
ctx->SetOutput(0, input);
}
} // namespace
ResizeNearestNeighborOp::ResizeNearestNeighborOp(OpKernelConstruction* ctx)
: XlaOpKernel(ctx) {
OP_REQUIRES_OK(ctx, ctx->GetAttr("align_corners", &align_corners_));
OP_REQUIRES(
ctx, align_corners_ == true,
errors::Unimplemented("ResizeNearestNeighbor with align_corners=False "
"is not yet implemented"));
OP_REQUIRES_OK(ctx, ctx->GetAttr("half_pixel_centers", &half_pixel_centers_));
OP_REQUIRES(ctx, half_pixel_centers_ == false,
errors::Unimplemented(
"ResizeNearestNeighbor with half_pixel_centers=True is "
"not yet implemented"));
}
void ResizeNearestNeighborOp::Compile(XlaOpKernelContext* ctx) {
GeneralCompile(ctx, align_corners_, is_kernel_bilinear_);
}
REGISTER_XLA_OP(Name("ResizeNearestNeighbor").CompileTimeConstantInput("size"),
ResizeNearestNeighborOp);
ResizeBilinearOp::ResizeBilinearOp(OpKernelConstruction* ctx)
: XlaOpKernel(ctx) {
OP_REQUIRES_OK(ctx, ctx->GetAttr("align_corners", &align_corners_));
OP_REQUIRES_OK(ctx, ctx->GetAttr("half_pixel_centers", &half_pixel_centers_));
OP_REQUIRES(
ctx, half_pixel_centers_ == false,
errors::Unimplemented("ResizeBilinear with half_pixel_centers=True is "
"not yet implemented"));
}
void ResizeBilinearOp::Compile(XlaOpKernelContext* ctx) {
GeneralCompile(ctx, align_corners_, is_kernel_bilinear_);
}
REGISTER_XLA_OP(Name("ResizeBilinear").CompileTimeConstantInput("size"),
ResizeBilinearOp);
ResizeBilinearGradOp::ResizeBilinearGradOp(OpKernelConstruction* ctx)
: XlaOpKernel(ctx) {
OP_REQUIRES_OK(ctx, ctx->GetAttr("align_corners", &align_corners_));
OP_REQUIRES_OK(ctx, ctx->GetAttr("half_pixel_centers", &half_pixel_centers_));
OP_REQUIRES(
ctx, align_corners_ == true,
errors::Unimplemented("ResizeBilinearGrad with align_corners=False is "
"not yet implemented"));
OP_REQUIRES(ctx, half_pixel_centers_ == false,
errors::Unimplemented(
"ResizeBilinearGrad with half_pixel_centers=True is "
"not yet implemented"));
DataType output_dtype;
OP_REQUIRES_OK(ctx, ctx->GetAttr("T", &output_dtype));
OP_REQUIRES_OK(ctx, DataTypeToPrimitiveType(output_dtype, &output_type_));
}
void ResizeBilinearGradOp::Compile(XlaOpKernelContext* ctx) {
xla::XlaBuilder* b = ctx->builder();
TensorShape input_shape = ctx->InputShape(1);
OP_REQUIRES(ctx, input_shape.dims() == 4,
errors::InvalidArgument("input must be 4-dimensional",
input_shape.DebugString()));
const int64_t batch = input_shape.dim_size(0);
std::vector<int64_t> in_size = {input_shape.dim_size(1),
input_shape.dim_size(2)};
const int64_t channels = input_shape.dim_size(3);
OP_REQUIRES(ctx, in_size[0] > 0 && in_size[1] > 0,
errors::InvalidArgument("input size must be positive, got [",
in_size[0], ",", in_size[1], "]"));
TensorShape grad_shape = ctx->InputShape(0);
OP_REQUIRES(ctx, grad_shape.dims() == 4,
errors::InvalidArgument("gradient must be 4-dimensional",
grad_shape.DebugString()));
const int64_t grad_batch = grad_shape.dim_size(0);
const std::vector<int64_t> grad_size = {grad_shape.dim_size(1),
grad_shape.dim_size(2)};
const int64_t grad_channels = grad_shape.dim_size(3);
OP_REQUIRES(ctx, batch == grad_batch,
errors::InvalidArgument(
"activations and gradients must have the same batch size (",
batch, " vs. ", grad_batch, ")"));
OP_REQUIRES(ctx, grad_size[0] > 0 && grad_size[1] > 0,
errors::InvalidArgument("gradient size must be positive, got [",
grad_size[0], ",", grad_size[1], "]"));
OP_REQUIRES(
ctx, channels == grad_channels,
errors::InvalidArgument(
"activations and gradients must have the same number of channels (",
channels, " vs. ", grad_channels, ")"));
const int num_spatial_dims = 2;
xla::XlaOp grad = ctx->Input(0);
xla::XlaOp output = grad;
while (in_size != grad_size) {
if (in_size[0] != 1 && in_size[1] != 1) {
std::vector<float> k = {
(static_cast<float>(grad_size[0]) - 1) / ((in_size[0] - 1) * 2),
(static_cast<float>(grad_size[1]) - 1) / ((in_size[1] - 1) * 2)};
if ((k[0] == std::floor(k[0])) && (k[1] == std::floor(k[1])) &&
k[0] > 1 && k[1] > 1) {
std::vector<int64_t> next_grad_size = {(in_size[0] - 1) * 2 + 1,
(in_size[1] - 1) * 2 + 1};
output = ResizeUsingDilationAndConvolutionGradOp(
b, grad, xla::F32, num_spatial_dims, in_size, next_grad_size,
channels, align_corners_, true);
grad = output;
in_size = next_grad_size;
} else {
output = ResizeUsingDilationAndConvolutionGradOp(
b, grad, xla::F32, num_spatial_dims, in_size, grad_size, channels,
align_corners_, true);
in_size = grad_size;
}
} else {
output = ResizeUsingDilationAndConvolutionGradOp(
b, grad, xla::F32, num_spatial_dims, in_size, grad_size, channels,
align_corners_, true);
in_size = grad_size;
}
}
output = xla::ConvertElementType(output, output_type_);
ctx->SetOutput(0, output);
}
REGISTER_XLA_OP(Name("ResizeBilinearGrad"), ResizeBilinearGradOp);
} // namespace tensorflow
| C++ | 5 | EricRemmerswaal/tensorflow | tensorflow/compiler/tf2xla/kernels/image_resize_ops.cc | [
"Apache-2.0"
] |
14 10 15 34 34 39 26 5 21 27 7 46 35 28 36 36 8 12 39 42 31 46 4 23 27 11 32 5 12 9 24 5 26 27 30 50 43 1 32 19
10 36 49 19 35 8 49 41 13 8 27 30 9 2 49 43 18 2 29 47 38 3 23 27 16 15 13 43 31 12 18 46 28 46 38 40 3 8 46 47
22 39 11 35 13 13 39 36 37 49 12 18 12 28 45 35 41 34 14 45 15 18 4 49 42 37 9 44 16 3 42 46 32 1 27 37 33 31 38 21
46 14 20 49 44 28 13 47 21 29 44 50 37 49 30 9 1 43 46 39 37 12 46 40 4 29 12 35 23 15 8 12 29 11 48 8 23 47 19 1
3 22 27 25
3 2 3 4 4 5 4 3 3 2 3 4 5 4 5 2 4 5 4 4 3 1 3 1 3 5 1 5 5 1 5 2 1 2 4 2 3 5 4 5
3 3 1 3 5 2 3 5 1 5 5 3 2 1 3 4 2 4 2 3 2 2 3 4 5 3 4 4 3 3 4 5 1 4 1 4 5 4 1 1 4 2 3 4 5 5 1 3 5 4
3 5 5 4 2 1 3 4 1 1 4 1 3 2 4 5 1 5 1 4 4 3 3 4 3 3 3 1 3 2 2 3 1 2 5 1 5 3 1 5 1 5 2 1 2 2 1 3 2 2
1 1 3 3 1 5 5 4 2 2 2 5 1 4 4 4 3 1 2 2 5 3 5 3 4 3 2 3 5 1 4 5 1 2 5 3 2 1 4 2 5 2 3 4 5 2 3 1 5 1
1 4 4 2 1 5 1 2 5 5 3 2 1 4 4 3 2 3 2 2 3 5 2 1 1 2 4 4 3 2 3 2 2 3 1 2 2 3 4 4 3 1 5 5 1 5 5 4 2 5
3 2 4 3 2 3 1 4 4 2 2 1 4 3 5 4 2 3 5 4 1 4 3 2 2 5 5 1 4 1 4 4 5 5 4 1 3 2 3 2 1 4 2 2 5 3 1 5 3 2
5 4 4 2 2 4 4 4 5 1 5 5 3 3 4 3 5 5 2 5 5 4 3 5 5 4 3 5 3 1 4 4 5 4 4 5 4 4 1 1 4 1 4 3 3 2 4 1 5 1
3 4 5 2 5 4 4 1 4 2 3 2 4 1 4 4 3 1 3 3 3 1 2 3 5 1 2 4 4 1 5 3 2 4 1 2 1 4 4 4 4 4 4 3 3 4 1 1 3 3
2 1 4 3 1 2 4 2 1 2 2 1 4 5 1 4 5 5 2 4 3 1 5 3 5 1 4 3 3 2 1 4 5 4 3 5 2 3 1 1 3 5 5 1 2 3 2 2 3 3
2 2 4 1 2 5 4 2 5 4 4 1 4 2 5 2 2 3 5 4 1 2 3 2 4 2 1 5 2 4 4 5 4 1 3 3 4 5 1 5 3 1 3 3 3 3 2 1 4 3
5 5 2 1 1 1 2 4 5 3 3 3 2 4 3 1 2 4 1 4 2 1 5 2 4 3 4 1 5 1 4 1 1 1 1 1 3 3 5 4 5 1 3 3 3 2 5 1 2 5
2 4 1 5 1 1 1 2 1 3 4 4 2 5 5 3 4 4 1 3 2 3 3 5 5 5 3 2 1 3 3 2 3 2 3 2 2 2 2 2 2 1 5 1 5 1 1 2 5 1
5 5 4 3 5 3 5 3 1 3 2 1 4 5 3 3 1 5 2 1 4 2 4 5 1 2 2 2 3 1 2 4 1 3 5 2 3 3 5 3 5 2 1 1 3 2 4 5 5 1
5 2 4 1 5 1 1 3 2 4 4 3 4 5 1 2 3 5 1 1 4 5 2 5 4 3 1 4 5 3 4 2 1 1 5 1 5 3 3 4 2 1 3 1 4 5 5 3 4 1
2 4 4 4 3 1 5 5 1 5 4 3 5 2 5 3 4 5 1 3 2 4 5 5 2 5 2 1 3 3 1 4 2 3 3 1 1 3 3 4 4 4 1 5 4 2 2 3 5 4
2 3 2 3 2 2 2 4 3 2 3 5 4 5 4 2 5 5 3 3 4 1 4 4 4 5 4 5 3 5 4 3 2 4 4 5 3 3 2 3 1 5 2 3 3 5 5 3 4 2
3 4 5 5 5 5 2 4 4 3 2 2 3 1 4 1 4 3 5 5 2 2 5 4 4 3 2 5 3 3 4 5 3 2 1 3 4 5 5 1 2 4 3 1 3 4 4 2 4 1
3 4 3 5 4 4 2 1 4 4 1 2 3 2 2 2 1 4 1 1 4 4 2 1 3 4 3 3 1 4 1 4 3 4 1 5 4 5 2 4 3 2 3 5 4 1 3 1 5 3
3 5 3 2 3 4 3 5 1 5 2 3 2 4 1 4 4 3 1 3 3 3 5 2 5 5 5 2 2 5 4 5 2 3 1 3 5 4 1 2 2 4 5 3 3 4 3 3 4 3
1 3 4 5 5 1 3 2 2 4 5 5 3 4 4 2 3 4 1 2 2 1 1 5 4 5 2 5 3 4 4 4 3 5 5 3 1 2 2 5 4 1 4 5 2 2 1 2 1 4
3 3 4 4 1 2 3 3 1 4 2 2 4 5 5 1 2 1 1 1 4 2 4 3 1 2 1 4 1 4 3 2 2 1 2 1 1 5 4 3 1 4 5 1 4 5 2 3 5 4
3 1 1 1 5 2 3 1 5 5 1 2 4 3 2 3 5 1 3 5 4 1 1 2 3 4 3 3 4 1 1 4 3 4 5 3 3 1 5 1 5 2 4 3 1 2 1 2 5 5
2 3 5 2 5 3 4 2 5 2 5 4 2 5 3 4 3 5 3 1 3 5 1 3 1 2 2 4 2 3 5 2 4 5 5 5 2 1 1 5 4 4 5 4 2 1 5 1 3 3
5 5 1 3 4 1 5 2 4 1 1 3 5 1 3 2 1 5 3 5 4 3 5 1 1 4 1 2 1 3 5 5 1 1 5 1 3 1 2 1 4 2 1 5 2 5 1 1 5 1
2 3 2 5 5 4 3 1 2 2 4 5 1 2 1 5 2 5 3 2 5 5 3 3 3 1 2 5 1 1 2 4 1 5 3 1 4 2 5 2 2 2 5 3 3 5 1 1 3 3
2 4 3 4 4 5 5 3 5 5 4 3 2 5 4 5 1 2 3 1 2 2 3 4 2 1 4 3 4 5 5 3 5 3 1 3 2 5 3 2 5 4 2 1 5 5 5 3 4 2
5 1 5 3 5 4 2 3 5 2 3 5 3 2 2 5 1 5 4 2 1 5 1 3 5 2 2 4 4 1 4 2 4 3 1 4 5 4 4 5 1 1 1 4 4 4 2 1 4 4
4 1 1 4 1 4 2 5 1 3 2 3 5 1 3 5 1 3 2 5 2 5 1 1 4 2 5 3 4 3 5 1 3 3 3 2 4 2 3 5 2 4 5 1 4 3 3 3 5 1
3 5 1 1 2 4 3 1 4 3 2 4 4 2 2 1 4 5 3 2 1 1 2 1 1 2 3 3 3 5 5 2 3 2 1 5 5 4 2 5 5 4 3 1 2 1 5 5 4 1
3 4 5 4 5 1 4 1 5 2 5 5 2 3 1 3 4 2 2 5 1 4 2 5 4 2 5 5 1 3 3 2 2 4 5 3 4 4 1 2 3 3 1 5 2 5 1 5 4 2
2 4 2 1 4 3 3 2 1 4 3 3 4 1 3 4 4 5 3 4 4 2 3 4 1 4 4 2 3 2 3 4 4 1 1 5 1 3 2 2 3 5 5 2 3 1 1 5 2 2
4 5 1 3 3 4 4 1 3 4 5 3 4 4 1 5 3 3 2 4 2 3 5 4 3 2 5 4 5 4 4 5 1 3 3 1 3 1 2 3 4 2 1 5 4 1 1 5 5 2
5 2 5 5 4 1 1 3 4 3 4 5 1 4 2 1 1 3 1 5 1 1 5 3 5 5 1 2 5 5 4 1 2 1 4 4 3 2 3 3 4 5 5 1 3 4 4 2 1 1
3 4 5 2 3 3 5 2 1 2 5 4 1 4 5 2 3 2 1 2 2 4 3 4 1 4 3 4 2 3 5 5 3 5 3 2 5 1 1 3 3 5 5 4 2 5 1 2 2 4
4 1 4 2 4 5 5 5 5 5 4 2 3 4 4 2 2 4 1 2 5 4 5 3 3 2 5 4 5 5 4 5 4 4 4 4 3 4 3 5 4 1 2 3 5 4 3 5 4 3
3 1 5 5 1 1 1 4 1 1 4 5 4 2 1 2 4 5 3 4 2 1 5 4 3 5 2 4 5 4 4 3 3 1 5 2 1 5 1 1 1 2 4 2 1 3 4 1 5 5
1 5 4 4 2 2 1 3 4 2 5 4 1 3 1 3 5 3 3 2 3 1 1 4 1 3 2 3 5 5 5 1 3 5 5 1 5 2 5 1 4 1 2 3 2 1 4 4 3 3
3 5 4 2 1 3 1 4 5 4 1 1 4 2 4 3 3 5 3 2 5 3 3 1 3 1 3 2 2 4 1 4 2 2 4 2 2 5 5 1 2 5 2 1 5 4 2 4 5 1
2 5 3 3 5 5 2 2 3 1 2 5 2 1 1 2 5 4 1 4 3 4 1 4 1 2 2 2 4 3 1 1 4 4 3 1 2 1 3 4 3 4 5 3 3 4 1 2 4 1
2 5 3 2 3 5 1 4 3 3 2 1 1 5 2 5 5 3 5 3 3 4 3 2 4 2 1 3 1 1 4 3 4 3 5 1 3 5 4 4 3 2 1 3 5 5 3 3 1 5
3 1 3 1 3 3 1 1 5 4 2 3 3 3 2 5 4 2 4 5 2 4 1 1 2 3 4 4 5 4 3 1 5 4 4 2 3 2 2 4 4 3 5 2 4 5 1 1 4 4
| Matlab | 0 | yinrun/LOPDC-Benchmarks | lofri/matlab/n40-m4-r50-7.matlab | [
"MIT"
] |
#!/bin/bash
echo "=== Installing the website dependencies"
cd "$1" || exit
yarn
echo "=== Building website"
NODE_ENV=production ./node_modules/.bin/gatsby build
| Shell | 4 | JQuinnie/gatsby | scripts/publish-site-from-npm.sh | [
"MIT"
] |
/W [ 32 38 723 40 126 723 168 168 723 171 171 723 173 173 723 175 175 723 180 180 723 184 184 723 187 187 723 258 258 723 260 260 723 262 262 723 268 268 723 270 270 723 280 280 723 282 282 723 286 286 723 305 305 723 313 313 723 317 317 723 710 711 723 728 733 723 8211 8212 723 8216 8218 723 8220 8222 723 8240 8240 723 8249 8250 723 63166 63166 723 64256 64260 723 ] | Redcode | 0 | amirul1000/health-care-hospital-management-system- | application/third_party/mpdf60/ttfontdata/ocrb.cw | [
"MIT"
] |
---
title: Terms of service
layout: single
container-size: narrow
---
<div class="card card-md">
<div class="card-body">
<h3 class="card-title">{{ page.title }}</h3>
<div class="markdown">
{% capture license %}{% include terms-of-service.md %}{% endcapture %}
{{ license | markdownify }}
</div>
</div>
</div> | HTML | 2 | muhginanjar/tabler | src/pages/terms-of-service.html | [
"MIT"
] |
CREATE TABLE `tb_wbrbzvpfra` (
`col_lokvnorvsp` char(235) CHARACTER SET utf8mb4 DEFAULT NULL,
`col_vazlbmjjtl` char(1) DEFAULT NULL,
`col_kcxzselokz` mediumint(229) unsigned NOT NULL DEFAULT '1',
`col_bjiezlcrgf` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') NOT NULL DEFAULT 'enum_or_set_0',
PRIMARY KEY (`col_kcxzselokz`,`col_bjiezlcrgf`),
UNIQUE KEY `uk_qxibrmyivk` (`col_bjiezlcrgf`),
UNIQUE KEY `uk_zmxfbsrjpe` (`col_bjiezlcrgf`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
| SQL | 1 | yuanweikang2020/canal | parse/src/test/resources/ddl/table/mysql_17.sql | [
"Apache-2.0"
] |
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "cloudserver.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "cloudserver.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create a default fully qualified name for the cloudserver data app.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "cloudserver.localdata.fullname" -}}
{{- if .Values.localdata.fullnameOverride -}}
{{- .Values.localdata.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- printf "%s-localdata" .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s-localdata" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "cloudserver.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create the name of the service account to use for the api component
*/}}
{{- define "cloudserver.serviceAccountName.api" -}}
{{- if .Values.serviceAccounts.api.create -}}
{{ default (include "cloudserver.fullname" .) .Values.serviceAccounts.api.name }}
{{- else -}}
{{ default "default" .Values.serviceAccounts.api.name }}
{{- end -}}
{{- end -}}
{{/*
Create the name of the service account to use for the localdata component
*/}}
{{- define "cloudserver.serviceAccountName.localdata" -}}
{{- if .Values.serviceAccounts.localdata.create -}}
{{ default (include "cloudserver.localdata.fullname" .) .Values.serviceAccounts.localdata.name }}
{{- else -}}
{{ default "default" .Values.serviceAccounts.localdata.name }}
{{- end -}}
{{- end -}}
{{/*
Create a default fully qualified mongodb-replicaset name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "cloudserver.mongodb-replicaset.fullname" -}}
{{- $name := default "mongodb-replicaset" (index .Values "mongodb-replicaset" "nameOverride") -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create the MongoDB URL. If MongoDB is installed as part of this chart, use k8s service discovery,
else use user-provided URL.
*/}}
{{- define "mongodb-replicaset.url" -}}
{{- if (index .Values "mongodb-replicaset" "enabled") -}}
{{- $count := (int (index .Values "mongodb-replicaset" "replicas")) -}}
{{- $release := .Release.Name -}}
{{- range $v := until $count }}{{ $release }}-mongodb-replicaset-{{ $v }}.{{ $release }}-mongodb-replicaset:27017{{ if ne $v (sub $count 1) }},{{- end -}}{{- end -}}
{{- else -}}
{{- index .Values "mongodb-replicaset" "url" -}}
{{- end -}}
{{- end -}}
{{/*
Create a default fully qualified redis-ha name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "cloudserver.redis-ha.fullname" -}}
{{- $name := default "redis-ha" (index .Values "redis-ha" "nameOverride") -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create the Redis-HA URL. If Redis-HA is installed as part of this chart, use k8s service discovery,
else use user-provided URL.
*/}}
{{- define "redis-ha.url" -}}
{{- if (index .Values "redis-ha" "enabled") -}}
{{- $count := (int (index .Values "redis-ha" "replicas")) -}}
{{- $release := .Release.Name -}}
{{- range $v := until $count }}{{ $release }}-redis-ha-server-{{ $v }}.{{ $release }}-redis-ha:26379{{ if ne $v (sub $count 1) }},{{- end -}}{{- end -}}
{{- else -}}
{{- index .Values "redis-ha" "url" -}}
{{- end -}}
{{- end -}}
| Smarty | 5 | kevinpollet/charts | stable/cloudserver/templates/_helpers.tpl | [
"Apache-2.0"
] |
color([ 128/255, 0/255, 0/255 ])
cube(size=[10,10,10],center=false); | OpenSCAD | 4 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/transformations/colorEx1.scad | [
"MIT"
] |
--TEST--
mysqli_stmt_prepare()
--EXTENSIONS--
mysqli
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
require_once("connect.inc");
// Note: No SQL tests here! We can expand one of the *fetch()
// tests to a generic SQL test, if we ever need that.
// We would duplicate the SQL test cases if we have it here and in one of the
// fetch tests, because the fetch tests would have to call prepare/execute etc.
// anyway.
$tmp = NULL;
$link = NULL;
require('table.inc');
$cleanupIds = range(1000, 3007);
$model = 50;
$params = '(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)';
/* create a prepared statement */
if ($stmt = $link->prepare("SHOW STATUS WHERE 1 = ? AND 1 IN {$params}")) {
$stmt->bind_param('iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii', $model, $cleanupIds[0], $cleanupIds[1], $cleanupIds[2], $cleanupIds[3], $cleanupIds[4], $cleanupIds[5], $cleanupIds[6], $cleanupIds[7], $cleanupIds[8], $cleanupIds[9], $cleanupIds[10], $cleanupIds[11], $cleanupIds[12], $cleanupIds[13], $cleanupIds[14], $cleanupIds[15], $cleanupIds[16], $cleanupIds[17], $cleanupIds[18], $cleanupIds[19], $cleanupIds[20], $cleanupIds[21], $cleanupIds[22], $cleanupIds[23], $cleanupIds[24], $cleanupIds[25], $cleanupIds[26], $cleanupIds[27], $cleanupIds[28], $cleanupIds[29], $cleanupIds[30], $cleanupIds[31], $cleanupIds[32], $cleanupIds[33], $cleanupIds[34], $cleanupIds[35], $cleanupIds[36], $cleanupIds[37], $cleanupIds[38], $cleanupIds[39], $cleanupIds[40], $cleanupIds[41], $cleanupIds[42], $cleanupIds[43], $cleanupIds[44], $cleanupIds[45], $cleanupIds[46], $cleanupIds[47], $cleanupIds[48], $cleanupIds[49], $cleanupIds[50], $cleanupIds[51], $cleanupIds[52], $cleanupIds[53], $cleanupIds[54], $cleanupIds[55], $cleanupIds[56], $cleanupIds[57], $cleanupIds[58], $cleanupIds[59], $cleanupIds[60], $cleanupIds[61], $cleanupIds[62], $cleanupIds[63], $cleanupIds[64], $cleanupIds[65], $cleanupIds[66], $cleanupIds[67], $cleanupIds[68], $cleanupIds[69], $cleanupIds[70], $cleanupIds[71], $cleanupIds[72], $cleanupIds[73], $cleanupIds[74], $cleanupIds[75], $cleanupIds[76], $cleanupIds[77], $cleanupIds[78], $cleanupIds[79], $cleanupIds[80], $cleanupIds[81], $cleanupIds[82], $cleanupIds[83], $cleanupIds[84], $cleanupIds[85], $cleanupIds[86], $cleanupIds[87], $cleanupIds[88], $cleanupIds[89], $cleanupIds[90], $cleanupIds[91], $cleanupIds[92], $cleanupIds[93], $cleanupIds[94], $cleanupIds[95], $cleanupIds[96], $cleanupIds[97], $cleanupIds[98], $cleanupIds[99], $cleanupIds[100], $cleanupIds[101], $cleanupIds[102], $cleanupIds[103], $cleanupIds[104], $cleanupIds[105], $cleanupIds[106], $cleanupIds[107], $cleanupIds[108], $cleanupIds[109], $cleanupIds[110], $cleanupIds[111], $cleanupIds[112], $cleanupIds[113], $cleanupIds[114], $cleanupIds[115], $cleanupIds[116], $cleanupIds[117], $cleanupIds[118], $cleanupIds[119], $cleanupIds[120], $cleanupIds[121], $cleanupIds[122], $cleanupIds[123], $cleanupIds[124], $cleanupIds[125], $cleanupIds[126], $cleanupIds[127], $cleanupIds[128], $cleanupIds[129], $cleanupIds[130], $cleanupIds[131], $cleanupIds[132], $cleanupIds[133], $cleanupIds[134], $cleanupIds[135], $cleanupIds[136], $cleanupIds[137], $cleanupIds[138], $cleanupIds[139], $cleanupIds[140], $cleanupIds[141], $cleanupIds[142], $cleanupIds[143], $cleanupIds[144], $cleanupIds[145], $cleanupIds[146], $cleanupIds[147], $cleanupIds[148], $cleanupIds[149], $cleanupIds[150], $cleanupIds[151], $cleanupIds[152], $cleanupIds[153], $cleanupIds[154], $cleanupIds[155], $cleanupIds[156], $cleanupIds[157], $cleanupIds[158], $cleanupIds[159], $cleanupIds[160], $cleanupIds[161], $cleanupIds[162], $cleanupIds[163], $cleanupIds[164], $cleanupIds[165], $cleanupIds[166], $cleanupIds[167], $cleanupIds[168], $cleanupIds[169], $cleanupIds[170], $cleanupIds[171], $cleanupIds[172], $cleanupIds[173], $cleanupIds[174], $cleanupIds[175], $cleanupIds[176], $cleanupIds[177], $cleanupIds[178], $cleanupIds[179], $cleanupIds[180], $cleanupIds[181], $cleanupIds[182], $cleanupIds[183], $cleanupIds[184], $cleanupIds[185], $cleanupIds[186], $cleanupIds[187], $cleanupIds[188], $cleanupIds[189], $cleanupIds[190], $cleanupIds[191], $cleanupIds[192], $cleanupIds[193], $cleanupIds[194], $cleanupIds[195], $cleanupIds[196], $cleanupIds[197], $cleanupIds[198], $cleanupIds[199], $cleanupIds[200], $cleanupIds[201], $cleanupIds[202], $cleanupIds[203], $cleanupIds[204], $cleanupIds[205], $cleanupIds[206], $cleanupIds[207], $cleanupIds[208], $cleanupIds[209], $cleanupIds[210], $cleanupIds[211], $cleanupIds[212], $cleanupIds[213], $cleanupIds[214], $cleanupIds[215], $cleanupIds[216], $cleanupIds[217], $cleanupIds[218], $cleanupIds[219], $cleanupIds[220], $cleanupIds[221], $cleanupIds[222], $cleanupIds[223], $cleanupIds[224], $cleanupIds[225], $cleanupIds[226], $cleanupIds[227], $cleanupIds[228], $cleanupIds[229], $cleanupIds[230], $cleanupIds[231], $cleanupIds[232], $cleanupIds[233], $cleanupIds[234], $cleanupIds[235], $cleanupIds[236], $cleanupIds[237], $cleanupIds[238], $cleanupIds[239], $cleanupIds[240], $cleanupIds[241], $cleanupIds[242], $cleanupIds[243], $cleanupIds[244], $cleanupIds[245], $cleanupIds[246], $cleanupIds[247], $cleanupIds[248], $cleanupIds[249], $cleanupIds[250], $cleanupIds[251], $cleanupIds[252], $cleanupIds[253], $cleanupIds[254], $cleanupIds[255], $cleanupIds[256], $cleanupIds[257], $cleanupIds[258], $cleanupIds[259], $cleanupIds[260], $cleanupIds[261], $cleanupIds[262], $cleanupIds[263], $cleanupIds[264], $cleanupIds[265], $cleanupIds[266], $cleanupIds[267], $cleanupIds[268], $cleanupIds[269], $cleanupIds[270], $cleanupIds[271], $cleanupIds[272], $cleanupIds[273], $cleanupIds[274], $cleanupIds[275], $cleanupIds[276], $cleanupIds[277], $cleanupIds[278], $cleanupIds[279], $cleanupIds[280], $cleanupIds[281], $cleanupIds[282], $cleanupIds[283], $cleanupIds[284], $cleanupIds[285], $cleanupIds[286], $cleanupIds[287], $cleanupIds[288], $cleanupIds[289], $cleanupIds[290], $cleanupIds[291], $cleanupIds[292], $cleanupIds[293], $cleanupIds[294], $cleanupIds[295], $cleanupIds[296], $cleanupIds[297], $cleanupIds[298], $cleanupIds[299], $cleanupIds[300], $cleanupIds[301], $cleanupIds[302], $cleanupIds[303], $cleanupIds[304], $cleanupIds[305], $cleanupIds[306], $cleanupIds[307], $cleanupIds[308], $cleanupIds[309], $cleanupIds[310], $cleanupIds[311], $cleanupIds[312], $cleanupIds[313], $cleanupIds[314], $cleanupIds[315], $cleanupIds[316], $cleanupIds[317], $cleanupIds[318], $cleanupIds[319], $cleanupIds[320], $cleanupIds[321], $cleanupIds[322], $cleanupIds[323], $cleanupIds[324], $cleanupIds[325], $cleanupIds[326], $cleanupIds[327], $cleanupIds[328], $cleanupIds[329], $cleanupIds[330], $cleanupIds[331], $cleanupIds[332], $cleanupIds[333], $cleanupIds[334], $cleanupIds[335], $cleanupIds[336], $cleanupIds[337], $cleanupIds[338], $cleanupIds[339], $cleanupIds[340], $cleanupIds[341], $cleanupIds[342], $cleanupIds[343], $cleanupIds[344], $cleanupIds[345], $cleanupIds[346], $cleanupIds[347], $cleanupIds[348], $cleanupIds[349], $cleanupIds[350], $cleanupIds[351], $cleanupIds[352], $cleanupIds[353], $cleanupIds[354], $cleanupIds[355], $cleanupIds[356], $cleanupIds[357], $cleanupIds[358], $cleanupIds[359], $cleanupIds[360], $cleanupIds[361], $cleanupIds[362], $cleanupIds[363], $cleanupIds[364], $cleanupIds[365], $cleanupIds[366], $cleanupIds[367], $cleanupIds[368], $cleanupIds[369], $cleanupIds[370], $cleanupIds[371], $cleanupIds[372], $cleanupIds[373], $cleanupIds[374], $cleanupIds[375], $cleanupIds[376], $cleanupIds[377], $cleanupIds[378], $cleanupIds[379], $cleanupIds[380], $cleanupIds[381], $cleanupIds[382], $cleanupIds[383], $cleanupIds[384], $cleanupIds[385], $cleanupIds[386], $cleanupIds[387], $cleanupIds[388], $cleanupIds[389], $cleanupIds[390], $cleanupIds[391], $cleanupIds[392], $cleanupIds[393], $cleanupIds[394], $cleanupIds[395], $cleanupIds[396], $cleanupIds[397], $cleanupIds[398], $cleanupIds[399], $cleanupIds[400], $cleanupIds[401], $cleanupIds[402], $cleanupIds[403], $cleanupIds[404], $cleanupIds[405], $cleanupIds[406], $cleanupIds[407], $cleanupIds[408], $cleanupIds[409], $cleanupIds[410], $cleanupIds[411], $cleanupIds[412], $cleanupIds[413], $cleanupIds[414], $cleanupIds[415], $cleanupIds[416], $cleanupIds[417], $cleanupIds[418], $cleanupIds[419], $cleanupIds[420], $cleanupIds[421], $cleanupIds[422], $cleanupIds[423], $cleanupIds[424], $cleanupIds[425], $cleanupIds[426], $cleanupIds[427], $cleanupIds[428], $cleanupIds[429], $cleanupIds[430], $cleanupIds[431], $cleanupIds[432], $cleanupIds[433], $cleanupIds[434], $cleanupIds[435], $cleanupIds[436], $cleanupIds[437], $cleanupIds[438], $cleanupIds[439], $cleanupIds[440], $cleanupIds[441], $cleanupIds[442], $cleanupIds[443], $cleanupIds[444], $cleanupIds[445], $cleanupIds[446], $cleanupIds[447], $cleanupIds[448], $cleanupIds[449], $cleanupIds[450], $cleanupIds[451], $cleanupIds[452], $cleanupIds[453], $cleanupIds[454], $cleanupIds[455], $cleanupIds[456], $cleanupIds[457], $cleanupIds[458], $cleanupIds[459], $cleanupIds[460], $cleanupIds[461], $cleanupIds[462], $cleanupIds[463], $cleanupIds[464], $cleanupIds[465], $cleanupIds[466], $cleanupIds[467], $cleanupIds[468], $cleanupIds[469], $cleanupIds[470], $cleanupIds[471], $cleanupIds[472], $cleanupIds[473], $cleanupIds[474], $cleanupIds[475], $cleanupIds[476], $cleanupIds[477], $cleanupIds[478], $cleanupIds[479], $cleanupIds[480], $cleanupIds[481], $cleanupIds[482], $cleanupIds[483], $cleanupIds[484], $cleanupIds[485], $cleanupIds[486], $cleanupIds[487], $cleanupIds[488], $cleanupIds[489], $cleanupIds[490], $cleanupIds[491], $cleanupIds[492], $cleanupIds[493], $cleanupIds[494], $cleanupIds[495], $cleanupIds[496], $cleanupIds[497], $cleanupIds[498], $cleanupIds[499], $cleanupIds[500], $cleanupIds[501], $cleanupIds[502], $cleanupIds[503], $cleanupIds[504], $cleanupIds[505], $cleanupIds[506], $cleanupIds[507], $cleanupIds[508], $cleanupIds[509], $cleanupIds[510], $cleanupIds[511], $cleanupIds[512], $cleanupIds[513], $cleanupIds[514], $cleanupIds[515], $cleanupIds[516], $cleanupIds[517], $cleanupIds[518], $cleanupIds[519], $cleanupIds[520], $cleanupIds[521], $cleanupIds[522], $cleanupIds[523], $cleanupIds[524], $cleanupIds[525], $cleanupIds[526], $cleanupIds[527], $cleanupIds[528], $cleanupIds[529], $cleanupIds[530], $cleanupIds[531], $cleanupIds[532], $cleanupIds[533], $cleanupIds[534], $cleanupIds[535], $cleanupIds[536], $cleanupIds[537], $cleanupIds[538], $cleanupIds[539], $cleanupIds[540], $cleanupIds[541], $cleanupIds[542], $cleanupIds[543], $cleanupIds[544], $cleanupIds[545], $cleanupIds[546], $cleanupIds[547], $cleanupIds[548], $cleanupIds[549], $cleanupIds[550], $cleanupIds[551], $cleanupIds[552], $cleanupIds[553], $cleanupIds[554], $cleanupIds[555], $cleanupIds[556], $cleanupIds[557], $cleanupIds[558], $cleanupIds[559], $cleanupIds[560], $cleanupIds[561], $cleanupIds[562], $cleanupIds[563], $cleanupIds[564], $cleanupIds[565], $cleanupIds[566], $cleanupIds[567], $cleanupIds[568], $cleanupIds[569], $cleanupIds[570], $cleanupIds[571], $cleanupIds[572], $cleanupIds[573], $cleanupIds[574], $cleanupIds[575], $cleanupIds[576], $cleanupIds[577], $cleanupIds[578], $cleanupIds[579], $cleanupIds[580], $cleanupIds[581], $cleanupIds[582], $cleanupIds[583], $cleanupIds[584], $cleanupIds[585], $cleanupIds[586], $cleanupIds[587], $cleanupIds[588], $cleanupIds[589], $cleanupIds[590], $cleanupIds[591], $cleanupIds[592], $cleanupIds[593], $cleanupIds[594], $cleanupIds[595], $cleanupIds[596], $cleanupIds[597], $cleanupIds[598], $cleanupIds[599], $cleanupIds[600], $cleanupIds[601], $cleanupIds[602], $cleanupIds[603], $cleanupIds[604], $cleanupIds[605], $cleanupIds[606], $cleanupIds[607], $cleanupIds[608], $cleanupIds[609], $cleanupIds[610], $cleanupIds[611], $cleanupIds[612], $cleanupIds[613], $cleanupIds[614], $cleanupIds[615], $cleanupIds[616], $cleanupIds[617], $cleanupIds[618], $cleanupIds[619], $cleanupIds[620], $cleanupIds[621], $cleanupIds[622], $cleanupIds[623], $cleanupIds[624], $cleanupIds[625], $cleanupIds[626], $cleanupIds[627], $cleanupIds[628], $cleanupIds[629], $cleanupIds[630], $cleanupIds[631], $cleanupIds[632], $cleanupIds[633], $cleanupIds[634], $cleanupIds[635], $cleanupIds[636], $cleanupIds[637], $cleanupIds[638], $cleanupIds[639], $cleanupIds[640], $cleanupIds[641], $cleanupIds[642], $cleanupIds[643], $cleanupIds[644], $cleanupIds[645], $cleanupIds[646], $cleanupIds[647], $cleanupIds[648], $cleanupIds[649], $cleanupIds[650], $cleanupIds[651], $cleanupIds[652], $cleanupIds[653], $cleanupIds[654], $cleanupIds[655], $cleanupIds[656], $cleanupIds[657], $cleanupIds[658], $cleanupIds[659], $cleanupIds[660], $cleanupIds[661], $cleanupIds[662], $cleanupIds[663], $cleanupIds[664], $cleanupIds[665], $cleanupIds[666], $cleanupIds[667], $cleanupIds[668], $cleanupIds[669], $cleanupIds[670], $cleanupIds[671], $cleanupIds[672], $cleanupIds[673], $cleanupIds[674], $cleanupIds[675], $cleanupIds[676], $cleanupIds[677], $cleanupIds[678], $cleanupIds[679], $cleanupIds[680], $cleanupIds[681], $cleanupIds[682], $cleanupIds[683], $cleanupIds[684], $cleanupIds[685], $cleanupIds[686], $cleanupIds[687], $cleanupIds[688], $cleanupIds[689], $cleanupIds[690], $cleanupIds[691], $cleanupIds[692], $cleanupIds[693], $cleanupIds[694], $cleanupIds[695], $cleanupIds[696], $cleanupIds[697], $cleanupIds[698], $cleanupIds[699], $cleanupIds[700], $cleanupIds[701], $cleanupIds[702], $cleanupIds[703], $cleanupIds[704], $cleanupIds[705], $cleanupIds[706], $cleanupIds[707], $cleanupIds[708], $cleanupIds[709], $cleanupIds[710], $cleanupIds[711], $cleanupIds[712], $cleanupIds[713], $cleanupIds[714], $cleanupIds[715], $cleanupIds[716], $cleanupIds[717], $cleanupIds[718], $cleanupIds[719], $cleanupIds[720], $cleanupIds[721], $cleanupIds[722], $cleanupIds[723], $cleanupIds[724], $cleanupIds[725], $cleanupIds[726], $cleanupIds[727], $cleanupIds[728], $cleanupIds[729], $cleanupIds[730], $cleanupIds[731], $cleanupIds[732], $cleanupIds[733], $cleanupIds[734], $cleanupIds[735], $cleanupIds[736], $cleanupIds[737], $cleanupIds[738], $cleanupIds[739], $cleanupIds[740], $cleanupIds[741], $cleanupIds[742], $cleanupIds[743], $cleanupIds[744], $cleanupIds[745], $cleanupIds[746], $cleanupIds[747], $cleanupIds[748], $cleanupIds[749], $cleanupIds[750], $cleanupIds[751], $cleanupIds[752], $cleanupIds[753], $cleanupIds[754], $cleanupIds[755], $cleanupIds[756], $cleanupIds[757], $cleanupIds[758], $cleanupIds[759], $cleanupIds[760], $cleanupIds[761], $cleanupIds[762], $cleanupIds[763], $cleanupIds[764], $cleanupIds[765], $cleanupIds[766], $cleanupIds[767], $cleanupIds[768], $cleanupIds[769], $cleanupIds[770], $cleanupIds[771], $cleanupIds[772], $cleanupIds[773], $cleanupIds[774], $cleanupIds[775], $cleanupIds[776], $cleanupIds[777], $cleanupIds[778], $cleanupIds[779], $cleanupIds[780], $cleanupIds[781], $cleanupIds[782], $cleanupIds[783], $cleanupIds[784], $cleanupIds[785], $cleanupIds[786], $cleanupIds[787], $cleanupIds[788], $cleanupIds[789], $cleanupIds[790], $cleanupIds[791], $cleanupIds[792], $cleanupIds[793], $cleanupIds[794], $cleanupIds[795], $cleanupIds[796], $cleanupIds[797], $cleanupIds[798], $cleanupIds[799], $cleanupIds[800], $cleanupIds[801], $cleanupIds[802], $cleanupIds[803], $cleanupIds[804], $cleanupIds[805], $cleanupIds[806], $cleanupIds[807], $cleanupIds[808], $cleanupIds[809], $cleanupIds[810], $cleanupIds[811], $cleanupIds[812], $cleanupIds[813], $cleanupIds[814], $cleanupIds[815], $cleanupIds[816], $cleanupIds[817], $cleanupIds[818], $cleanupIds[819], $cleanupIds[820], $cleanupIds[821], $cleanupIds[822], $cleanupIds[823], $cleanupIds[824], $cleanupIds[825], $cleanupIds[826], $cleanupIds[827], $cleanupIds[828], $cleanupIds[829], $cleanupIds[830], $cleanupIds[831], $cleanupIds[832], $cleanupIds[833], $cleanupIds[834], $cleanupIds[835], $cleanupIds[836], $cleanupIds[837], $cleanupIds[838], $cleanupIds[839], $cleanupIds[840], $cleanupIds[841], $cleanupIds[842], $cleanupIds[843], $cleanupIds[844], $cleanupIds[845], $cleanupIds[846], $cleanupIds[847], $cleanupIds[848], $cleanupIds[849], $cleanupIds[850], $cleanupIds[851], $cleanupIds[852], $cleanupIds[853], $cleanupIds[854], $cleanupIds[855], $cleanupIds[856], $cleanupIds[857], $cleanupIds[858], $cleanupIds[859], $cleanupIds[860], $cleanupIds[861], $cleanupIds[862], $cleanupIds[863], $cleanupIds[864], $cleanupIds[865], $cleanupIds[866], $cleanupIds[867], $cleanupIds[868], $cleanupIds[869], $cleanupIds[870], $cleanupIds[871], $cleanupIds[872], $cleanupIds[873], $cleanupIds[874], $cleanupIds[875], $cleanupIds[876], $cleanupIds[877], $cleanupIds[878], $cleanupIds[879], $cleanupIds[880], $cleanupIds[881], $cleanupIds[882], $cleanupIds[883], $cleanupIds[884], $cleanupIds[885], $cleanupIds[886], $cleanupIds[887], $cleanupIds[888], $cleanupIds[889], $cleanupIds[890], $cleanupIds[891], $cleanupIds[892], $cleanupIds[893], $cleanupIds[894], $cleanupIds[895], $cleanupIds[896], $cleanupIds[897], $cleanupIds[898], $cleanupIds[899], $cleanupIds[900], $cleanupIds[901], $cleanupIds[902], $cleanupIds[903], $cleanupIds[904], $cleanupIds[905], $cleanupIds[906], $cleanupIds[907], $cleanupIds[908], $cleanupIds[909], $cleanupIds[910], $cleanupIds[911], $cleanupIds[912], $cleanupIds[913], $cleanupIds[914], $cleanupIds[915], $cleanupIds[916], $cleanupIds[917], $cleanupIds[918], $cleanupIds[919], $cleanupIds[920], $cleanupIds[921], $cleanupIds[922], $cleanupIds[923], $cleanupIds[924], $cleanupIds[925], $cleanupIds[926], $cleanupIds[927], $cleanupIds[928], $cleanupIds[929], $cleanupIds[930], $cleanupIds[931], $cleanupIds[932], $cleanupIds[933], $cleanupIds[934], $cleanupIds[935], $cleanupIds[936], $cleanupIds[937], $cleanupIds[938], $cleanupIds[939], $cleanupIds[940], $cleanupIds[941], $cleanupIds[942], $cleanupIds[943], $cleanupIds[944], $cleanupIds[945], $cleanupIds[946], $cleanupIds[947], $cleanupIds[948], $cleanupIds[949], $cleanupIds[950], $cleanupIds[951], $cleanupIds[952], $cleanupIds[953], $cleanupIds[954], $cleanupIds[955], $cleanupIds[956], $cleanupIds[957], $cleanupIds[958], $cleanupIds[959], $cleanupIds[960], $cleanupIds[961], $cleanupIds[962], $cleanupIds[963], $cleanupIds[964], $cleanupIds[965], $cleanupIds[966], $cleanupIds[967], $cleanupIds[968], $cleanupIds[969], $cleanupIds[970], $cleanupIds[971], $cleanupIds[972], $cleanupIds[973], $cleanupIds[974], $cleanupIds[975], $cleanupIds[976], $cleanupIds[977], $cleanupIds[978], $cleanupIds[979], $cleanupIds[980], $cleanupIds[981], $cleanupIds[982], $cleanupIds[983], $cleanupIds[984], $cleanupIds[985], $cleanupIds[986], $cleanupIds[987], $cleanupIds[988], $cleanupIds[989], $cleanupIds[990], $cleanupIds[991], $cleanupIds[992], $cleanupIds[993], $cleanupIds[994], $cleanupIds[995], $cleanupIds[996], $cleanupIds[997], $cleanupIds[998], $cleanupIds[999], $cleanupIds[1000], $cleanupIds[1001], $cleanupIds[1002], $cleanupIds[1003], $cleanupIds[1004], $cleanupIds[1005], $cleanupIds[1006], $cleanupIds[1007], $cleanupIds[1008], $cleanupIds[1009], $cleanupIds[1010], $cleanupIds[1011], $cleanupIds[1012], $cleanupIds[1013], $cleanupIds[1014], $cleanupIds[1015], $cleanupIds[1016], $cleanupIds[1017], $cleanupIds[1018], $cleanupIds[1019], $cleanupIds[1020], $cleanupIds[1021], $cleanupIds[1022], $cleanupIds[1023], $cleanupIds[1024], $cleanupIds[1025], $cleanupIds[1026], $cleanupIds[1027], $cleanupIds[1028], $cleanupIds[1029], $cleanupIds[1030], $cleanupIds[1031], $cleanupIds[1032], $cleanupIds[1033], $cleanupIds[1034], $cleanupIds[1035], $cleanupIds[1036], $cleanupIds[1037], $cleanupIds[1038], $cleanupIds[1039], $cleanupIds[1040], $cleanupIds[1041], $cleanupIds[1042], $cleanupIds[1043], $cleanupIds[1044], $cleanupIds[1045], $cleanupIds[1046], $cleanupIds[1047], $cleanupIds[1048], $cleanupIds[1049], $cleanupIds[1050], $cleanupIds[1051], $cleanupIds[1052], $cleanupIds[1053], $cleanupIds[1054], $cleanupIds[1055], $cleanupIds[1056], $cleanupIds[1057], $cleanupIds[1058], $cleanupIds[1059], $cleanupIds[1060], $cleanupIds[1061], $cleanupIds[1062], $cleanupIds[1063], $cleanupIds[1064], $cleanupIds[1065], $cleanupIds[1066], $cleanupIds[1067], $cleanupIds[1068], $cleanupIds[1069], $cleanupIds[1070], $cleanupIds[1071], $cleanupIds[1072], $cleanupIds[1073], $cleanupIds[1074], $cleanupIds[1075], $cleanupIds[1076], $cleanupIds[1077], $cleanupIds[1078], $cleanupIds[1079], $cleanupIds[1080], $cleanupIds[1081], $cleanupIds[1082], $cleanupIds[1083], $cleanupIds[1084], $cleanupIds[1085], $cleanupIds[1086], $cleanupIds[1087], $cleanupIds[1088], $cleanupIds[1089], $cleanupIds[1090], $cleanupIds[1091], $cleanupIds[1092], $cleanupIds[1093], $cleanupIds[1094], $cleanupIds[1095], $cleanupIds[1096], $cleanupIds[1097], $cleanupIds[1098], $cleanupIds[1099], $cleanupIds[1100], $cleanupIds[1101], $cleanupIds[1102], $cleanupIds[1103], $cleanupIds[1104], $cleanupIds[1105], $cleanupIds[1106], $cleanupIds[1107], $cleanupIds[1108], $cleanupIds[1109], $cleanupIds[1110], $cleanupIds[1111], $cleanupIds[1112], $cleanupIds[1113], $cleanupIds[1114], $cleanupIds[1115], $cleanupIds[1116], $cleanupIds[1117], $cleanupIds[1118], $cleanupIds[1119], $cleanupIds[1120], $cleanupIds[1121], $cleanupIds[1122], $cleanupIds[1123], $cleanupIds[1124], $cleanupIds[1125], $cleanupIds[1126], $cleanupIds[1127], $cleanupIds[1128], $cleanupIds[1129], $cleanupIds[1130], $cleanupIds[1131], $cleanupIds[1132], $cleanupIds[1133], $cleanupIds[1134], $cleanupIds[1135], $cleanupIds[1136], $cleanupIds[1137], $cleanupIds[1138], $cleanupIds[1139], $cleanupIds[1140], $cleanupIds[1141], $cleanupIds[1142], $cleanupIds[1143], $cleanupIds[1144], $cleanupIds[1145], $cleanupIds[1146], $cleanupIds[1147], $cleanupIds[1148], $cleanupIds[1149], $cleanupIds[1150], $cleanupIds[1151], $cleanupIds[1152], $cleanupIds[1153], $cleanupIds[1154], $cleanupIds[1155], $cleanupIds[1156], $cleanupIds[1157], $cleanupIds[1158], $cleanupIds[1159], $cleanupIds[1160], $cleanupIds[1161], $cleanupIds[1162], $cleanupIds[1163], $cleanupIds[1164], $cleanupIds[1165], $cleanupIds[1166], $cleanupIds[1167], $cleanupIds[1168], $cleanupIds[1169], $cleanupIds[1170], $cleanupIds[1171], $cleanupIds[1172], $cleanupIds[1173], $cleanupIds[1174], $cleanupIds[1175], $cleanupIds[1176], $cleanupIds[1177], $cleanupIds[1178], $cleanupIds[1179], $cleanupIds[1180], $cleanupIds[1181], $cleanupIds[1182], $cleanupIds[1183], $cleanupIds[1184], $cleanupIds[1185], $cleanupIds[1186], $cleanupIds[1187], $cleanupIds[1188], $cleanupIds[1189], $cleanupIds[1190], $cleanupIds[1191], $cleanupIds[1192], $cleanupIds[1193], $cleanupIds[1194], $cleanupIds[1195], $cleanupIds[1196], $cleanupIds[1197], $cleanupIds[1198], $cleanupIds[1199], $cleanupIds[1200], $cleanupIds[1201], $cleanupIds[1202], $cleanupIds[1203], $cleanupIds[1204], $cleanupIds[1205], $cleanupIds[1206], $cleanupIds[1207], $cleanupIds[1208], $cleanupIds[1209], $cleanupIds[1210], $cleanupIds[1211], $cleanupIds[1212], $cleanupIds[1213], $cleanupIds[1214], $cleanupIds[1215], $cleanupIds[1216], $cleanupIds[1217], $cleanupIds[1218], $cleanupIds[1219], $cleanupIds[1220], $cleanupIds[1221], $cleanupIds[1222], $cleanupIds[1223], $cleanupIds[1224], $cleanupIds[1225], $cleanupIds[1226], $cleanupIds[1227], $cleanupIds[1228], $cleanupIds[1229], $cleanupIds[1230], $cleanupIds[1231], $cleanupIds[1232], $cleanupIds[1233], $cleanupIds[1234], $cleanupIds[1235], $cleanupIds[1236], $cleanupIds[1237], $cleanupIds[1238], $cleanupIds[1239], $cleanupIds[1240], $cleanupIds[1241], $cleanupIds[1242], $cleanupIds[1243], $cleanupIds[1244], $cleanupIds[1245], $cleanupIds[1246], $cleanupIds[1247], $cleanupIds[1248], $cleanupIds[1249], $cleanupIds[1250], $cleanupIds[1251], $cleanupIds[1252], $cleanupIds[1253], $cleanupIds[1254], $cleanupIds[1255], $cleanupIds[1256], $cleanupIds[1257], $cleanupIds[1258], $cleanupIds[1259], $cleanupIds[1260], $cleanupIds[1261], $cleanupIds[1262], $cleanupIds[1263], $cleanupIds[1264], $cleanupIds[1265], $cleanupIds[1266], $cleanupIds[1267], $cleanupIds[1268], $cleanupIds[1269], $cleanupIds[1270], $cleanupIds[1271], $cleanupIds[1272], $cleanupIds[1273], $cleanupIds[1274], $cleanupIds[1275], $cleanupIds[1276], $cleanupIds[1277], $cleanupIds[1278], $cleanupIds[1279], $cleanupIds[1280], $cleanupIds[1281], $cleanupIds[1282], $cleanupIds[1283], $cleanupIds[1284], $cleanupIds[1285], $cleanupIds[1286], $cleanupIds[1287], $cleanupIds[1288], $cleanupIds[1289], $cleanupIds[1290], $cleanupIds[1291], $cleanupIds[1292], $cleanupIds[1293], $cleanupIds[1294], $cleanupIds[1295], $cleanupIds[1296], $cleanupIds[1297], $cleanupIds[1298], $cleanupIds[1299], $cleanupIds[1300], $cleanupIds[1301], $cleanupIds[1302], $cleanupIds[1303], $cleanupIds[1304], $cleanupIds[1305], $cleanupIds[1306], $cleanupIds[1307], $cleanupIds[1308], $cleanupIds[1309], $cleanupIds[1310], $cleanupIds[1311], $cleanupIds[1312], $cleanupIds[1313], $cleanupIds[1314], $cleanupIds[1315], $cleanupIds[1316], $cleanupIds[1317], $cleanupIds[1318], $cleanupIds[1319], $cleanupIds[1320], $cleanupIds[1321], $cleanupIds[1322], $cleanupIds[1323], $cleanupIds[1324], $cleanupIds[1325], $cleanupIds[1326], $cleanupIds[1327], $cleanupIds[1328], $cleanupIds[1329], $cleanupIds[1330], $cleanupIds[1331], $cleanupIds[1332], $cleanupIds[1333], $cleanupIds[1334], $cleanupIds[1335], $cleanupIds[1336], $cleanupIds[1337], $cleanupIds[1338], $cleanupIds[1339], $cleanupIds[1340], $cleanupIds[1341], $cleanupIds[1342], $cleanupIds[1343], $cleanupIds[1344], $cleanupIds[1345], $cleanupIds[1346], $cleanupIds[1347], $cleanupIds[1348], $cleanupIds[1349], $cleanupIds[1350], $cleanupIds[1351], $cleanupIds[1352], $cleanupIds[1353], $cleanupIds[1354], $cleanupIds[1355], $cleanupIds[1356], $cleanupIds[1357], $cleanupIds[1358], $cleanupIds[1359], $cleanupIds[1360], $cleanupIds[1361], $cleanupIds[1362], $cleanupIds[1363], $cleanupIds[1364], $cleanupIds[1365], $cleanupIds[1366], $cleanupIds[1367], $cleanupIds[1368], $cleanupIds[1369], $cleanupIds[1370], $cleanupIds[1371], $cleanupIds[1372], $cleanupIds[1373], $cleanupIds[1374], $cleanupIds[1375], $cleanupIds[1376], $cleanupIds[1377], $cleanupIds[1378], $cleanupIds[1379], $cleanupIds[1380], $cleanupIds[1381], $cleanupIds[1382], $cleanupIds[1383], $cleanupIds[1384], $cleanupIds[1385], $cleanupIds[1386], $cleanupIds[1387], $cleanupIds[1388], $cleanupIds[1389], $cleanupIds[1390], $cleanupIds[1391], $cleanupIds[1392], $cleanupIds[1393], $cleanupIds[1394], $cleanupIds[1395], $cleanupIds[1396], $cleanupIds[1397], $cleanupIds[1398], $cleanupIds[1399], $cleanupIds[1400], $cleanupIds[1401], $cleanupIds[1402], $cleanupIds[1403], $cleanupIds[1404], $cleanupIds[1405], $cleanupIds[1406], $cleanupIds[1407], $cleanupIds[1408], $cleanupIds[1409], $cleanupIds[1410], $cleanupIds[1411], $cleanupIds[1412], $cleanupIds[1413], $cleanupIds[1414], $cleanupIds[1415], $cleanupIds[1416], $cleanupIds[1417], $cleanupIds[1418], $cleanupIds[1419], $cleanupIds[1420], $cleanupIds[1421], $cleanupIds[1422], $cleanupIds[1423], $cleanupIds[1424], $cleanupIds[1425], $cleanupIds[1426], $cleanupIds[1427], $cleanupIds[1428], $cleanupIds[1429], $cleanupIds[1430], $cleanupIds[1431], $cleanupIds[1432], $cleanupIds[1433], $cleanupIds[1434], $cleanupIds[1435], $cleanupIds[1436], $cleanupIds[1437], $cleanupIds[1438], $cleanupIds[1439], $cleanupIds[1440], $cleanupIds[1441], $cleanupIds[1442], $cleanupIds[1443], $cleanupIds[1444], $cleanupIds[1445], $cleanupIds[1446], $cleanupIds[1447], $cleanupIds[1448], $cleanupIds[1449], $cleanupIds[1450], $cleanupIds[1451], $cleanupIds[1452], $cleanupIds[1453], $cleanupIds[1454], $cleanupIds[1455], $cleanupIds[1456], $cleanupIds[1457], $cleanupIds[1458], $cleanupIds[1459], $cleanupIds[1460], $cleanupIds[1461], $cleanupIds[1462], $cleanupIds[1463], $cleanupIds[1464], $cleanupIds[1465], $cleanupIds[1466], $cleanupIds[1467], $cleanupIds[1468], $cleanupIds[1469], $cleanupIds[1470], $cleanupIds[1471], $cleanupIds[1472], $cleanupIds[1473], $cleanupIds[1474], $cleanupIds[1475], $cleanupIds[1476], $cleanupIds[1477], $cleanupIds[1478], $cleanupIds[1479], $cleanupIds[1480], $cleanupIds[1481], $cleanupIds[1482], $cleanupIds[1483], $cleanupIds[1484], $cleanupIds[1485], $cleanupIds[1486], $cleanupIds[1487], $cleanupIds[1488], $cleanupIds[1489], $cleanupIds[1490], $cleanupIds[1491], $cleanupIds[1492], $cleanupIds[1493], $cleanupIds[1494], $cleanupIds[1495], $cleanupIds[1496], $cleanupIds[1497], $cleanupIds[1498], $cleanupIds[1499], $cleanupIds[1500], $cleanupIds[1501], $cleanupIds[1502], $cleanupIds[1503], $cleanupIds[1504], $cleanupIds[1505], $cleanupIds[1506], $cleanupIds[1507], $cleanupIds[1508], $cleanupIds[1509], $cleanupIds[1510], $cleanupIds[1511], $cleanupIds[1512], $cleanupIds[1513], $cleanupIds[1514], $cleanupIds[1515], $cleanupIds[1516], $cleanupIds[1517], $cleanupIds[1518], $cleanupIds[1519], $cleanupIds[1520], $cleanupIds[1521], $cleanupIds[1522], $cleanupIds[1523], $cleanupIds[1524], $cleanupIds[1525], $cleanupIds[1526], $cleanupIds[1527], $cleanupIds[1528], $cleanupIds[1529], $cleanupIds[1530], $cleanupIds[1531], $cleanupIds[1532], $cleanupIds[1533], $cleanupIds[1534], $cleanupIds[1535], $cleanupIds[1536], $cleanupIds[1537], $cleanupIds[1538], $cleanupIds[1539], $cleanupIds[1540], $cleanupIds[1541], $cleanupIds[1542], $cleanupIds[1543], $cleanupIds[1544], $cleanupIds[1545], $cleanupIds[1546], $cleanupIds[1547], $cleanupIds[1548], $cleanupIds[1549], $cleanupIds[1550], $cleanupIds[1551], $cleanupIds[1552], $cleanupIds[1553], $cleanupIds[1554], $cleanupIds[1555], $cleanupIds[1556], $cleanupIds[1557], $cleanupIds[1558], $cleanupIds[1559], $cleanupIds[1560], $cleanupIds[1561], $cleanupIds[1562], $cleanupIds[1563], $cleanupIds[1564], $cleanupIds[1565], $cleanupIds[1566], $cleanupIds[1567], $cleanupIds[1568], $cleanupIds[1569], $cleanupIds[1570], $cleanupIds[1571], $cleanupIds[1572], $cleanupIds[1573], $cleanupIds[1574], $cleanupIds[1575], $cleanupIds[1576], $cleanupIds[1577], $cleanupIds[1578], $cleanupIds[1579], $cleanupIds[1580], $cleanupIds[1581], $cleanupIds[1582], $cleanupIds[1583], $cleanupIds[1584], $cleanupIds[1585], $cleanupIds[1586], $cleanupIds[1587], $cleanupIds[1588], $cleanupIds[1589], $cleanupIds[1590], $cleanupIds[1591], $cleanupIds[1592], $cleanupIds[1593], $cleanupIds[1594], $cleanupIds[1595], $cleanupIds[1596], $cleanupIds[1597], $cleanupIds[1598], $cleanupIds[1599], $cleanupIds[1600], $cleanupIds[1601], $cleanupIds[1602], $cleanupIds[1603], $cleanupIds[1604], $cleanupIds[1605], $cleanupIds[1606], $cleanupIds[1607], $cleanupIds[1608], $cleanupIds[1609], $cleanupIds[1610], $cleanupIds[1611], $cleanupIds[1612], $cleanupIds[1613], $cleanupIds[1614], $cleanupIds[1615], $cleanupIds[1616], $cleanupIds[1617], $cleanupIds[1618], $cleanupIds[1619], $cleanupIds[1620], $cleanupIds[1621], $cleanupIds[1622], $cleanupIds[1623], $cleanupIds[1624], $cleanupIds[1625], $cleanupIds[1626], $cleanupIds[1627], $cleanupIds[1628], $cleanupIds[1629], $cleanupIds[1630], $cleanupIds[1631], $cleanupIds[1632], $cleanupIds[1633], $cleanupIds[1634], $cleanupIds[1635], $cleanupIds[1636], $cleanupIds[1637], $cleanupIds[1638], $cleanupIds[1639], $cleanupIds[1640], $cleanupIds[1641], $cleanupIds[1642], $cleanupIds[1643], $cleanupIds[1644], $cleanupIds[1645], $cleanupIds[1646], $cleanupIds[1647], $cleanupIds[1648], $cleanupIds[1649], $cleanupIds[1650], $cleanupIds[1651], $cleanupIds[1652], $cleanupIds[1653], $cleanupIds[1654], $cleanupIds[1655], $cleanupIds[1656], $cleanupIds[1657], $cleanupIds[1658], $cleanupIds[1659], $cleanupIds[1660], $cleanupIds[1661], $cleanupIds[1662], $cleanupIds[1663], $cleanupIds[1664], $cleanupIds[1665], $cleanupIds[1666], $cleanupIds[1667], $cleanupIds[1668], $cleanupIds[1669], $cleanupIds[1670], $cleanupIds[1671], $cleanupIds[1672], $cleanupIds[1673], $cleanupIds[1674], $cleanupIds[1675], $cleanupIds[1676], $cleanupIds[1677], $cleanupIds[1678], $cleanupIds[1679], $cleanupIds[1680], $cleanupIds[1681], $cleanupIds[1682], $cleanupIds[1683], $cleanupIds[1684], $cleanupIds[1685], $cleanupIds[1686], $cleanupIds[1687], $cleanupIds[1688], $cleanupIds[1689], $cleanupIds[1690], $cleanupIds[1691], $cleanupIds[1692], $cleanupIds[1693], $cleanupIds[1694], $cleanupIds[1695], $cleanupIds[1696], $cleanupIds[1697], $cleanupIds[1698], $cleanupIds[1699], $cleanupIds[1700], $cleanupIds[1701], $cleanupIds[1702], $cleanupIds[1703], $cleanupIds[1704], $cleanupIds[1705], $cleanupIds[1706], $cleanupIds[1707], $cleanupIds[1708], $cleanupIds[1709], $cleanupIds[1710], $cleanupIds[1711], $cleanupIds[1712], $cleanupIds[1713], $cleanupIds[1714], $cleanupIds[1715], $cleanupIds[1716], $cleanupIds[1717], $cleanupIds[1718], $cleanupIds[1719], $cleanupIds[1720], $cleanupIds[1721], $cleanupIds[1722], $cleanupIds[1723], $cleanupIds[1724], $cleanupIds[1725], $cleanupIds[1726], $cleanupIds[1727], $cleanupIds[1728], $cleanupIds[1729], $cleanupIds[1730], $cleanupIds[1731], $cleanupIds[1732], $cleanupIds[1733], $cleanupIds[1734], $cleanupIds[1735], $cleanupIds[1736], $cleanupIds[1737], $cleanupIds[1738], $cleanupIds[1739], $cleanupIds[1740], $cleanupIds[1741], $cleanupIds[1742], $cleanupIds[1743], $cleanupIds[1744], $cleanupIds[1745], $cleanupIds[1746], $cleanupIds[1747], $cleanupIds[1748], $cleanupIds[1749], $cleanupIds[1750], $cleanupIds[1751], $cleanupIds[1752], $cleanupIds[1753], $cleanupIds[1754], $cleanupIds[1755], $cleanupIds[1756], $cleanupIds[1757], $cleanupIds[1758], $cleanupIds[1759], $cleanupIds[1760], $cleanupIds[1761], $cleanupIds[1762], $cleanupIds[1763], $cleanupIds[1764], $cleanupIds[1765], $cleanupIds[1766], $cleanupIds[1767], $cleanupIds[1768], $cleanupIds[1769], $cleanupIds[1770], $cleanupIds[1771], $cleanupIds[1772], $cleanupIds[1773], $cleanupIds[1774], $cleanupIds[1775], $cleanupIds[1776], $cleanupIds[1777], $cleanupIds[1778], $cleanupIds[1779], $cleanupIds[1780], $cleanupIds[1781], $cleanupIds[1782], $cleanupIds[1783], $cleanupIds[1784], $cleanupIds[1785], $cleanupIds[1786], $cleanupIds[1787], $cleanupIds[1788], $cleanupIds[1789], $cleanupIds[1790], $cleanupIds[1791], $cleanupIds[1792], $cleanupIds[1793], $cleanupIds[1794], $cleanupIds[1795], $cleanupIds[1796], $cleanupIds[1797], $cleanupIds[1798], $cleanupIds[1799], $cleanupIds[1800], $cleanupIds[1801], $cleanupIds[1802], $cleanupIds[1803], $cleanupIds[1804], $cleanupIds[1805], $cleanupIds[1806], $cleanupIds[1807], $cleanupIds[1808], $cleanupIds[1809], $cleanupIds[1810], $cleanupIds[1811], $cleanupIds[1812], $cleanupIds[1813], $cleanupIds[1814], $cleanupIds[1815], $cleanupIds[1816], $cleanupIds[1817], $cleanupIds[1818], $cleanupIds[1819], $cleanupIds[1820], $cleanupIds[1821], $cleanupIds[1822], $cleanupIds[1823], $cleanupIds[1824], $cleanupIds[1825], $cleanupIds[1826], $cleanupIds[1827], $cleanupIds[1828], $cleanupIds[1829], $cleanupIds[1830], $cleanupIds[1831], $cleanupIds[1832], $cleanupIds[1833], $cleanupIds[1834], $cleanupIds[1835], $cleanupIds[1836], $cleanupIds[1837], $cleanupIds[1838], $cleanupIds[1839], $cleanupIds[1840], $cleanupIds[1841], $cleanupIds[1842], $cleanupIds[1843], $cleanupIds[1844], $cleanupIds[1845], $cleanupIds[1846], $cleanupIds[1847], $cleanupIds[1848], $cleanupIds[1849], $cleanupIds[1850], $cleanupIds[1851], $cleanupIds[1852], $cleanupIds[1853], $cleanupIds[1854], $cleanupIds[1855], $cleanupIds[1856], $cleanupIds[1857], $cleanupIds[1858], $cleanupIds[1859], $cleanupIds[1860], $cleanupIds[1861], $cleanupIds[1862], $cleanupIds[1863], $cleanupIds[1864], $cleanupIds[1865], $cleanupIds[1866], $cleanupIds[1867], $cleanupIds[1868], $cleanupIds[1869], $cleanupIds[1870], $cleanupIds[1871], $cleanupIds[1872], $cleanupIds[1873], $cleanupIds[1874], $cleanupIds[1875], $cleanupIds[1876], $cleanupIds[1877], $cleanupIds[1878], $cleanupIds[1879], $cleanupIds[1880], $cleanupIds[1881], $cleanupIds[1882], $cleanupIds[1883], $cleanupIds[1884], $cleanupIds[1885], $cleanupIds[1886], $cleanupIds[1887], $cleanupIds[1888], $cleanupIds[1889], $cleanupIds[1890], $cleanupIds[1891], $cleanupIds[1892], $cleanupIds[1893], $cleanupIds[1894], $cleanupIds[1895], $cleanupIds[1896], $cleanupIds[1897], $cleanupIds[1898], $cleanupIds[1899], $cleanupIds[1900], $cleanupIds[1901], $cleanupIds[1902], $cleanupIds[1903], $cleanupIds[1904], $cleanupIds[1905], $cleanupIds[1906], $cleanupIds[1907], $cleanupIds[1908], $cleanupIds[1909], $cleanupIds[1910], $cleanupIds[1911], $cleanupIds[1912], $cleanupIds[1913], $cleanupIds[1914], $cleanupIds[1915], $cleanupIds[1916], $cleanupIds[1917], $cleanupIds[1918], $cleanupIds[1919], $cleanupIds[1920], $cleanupIds[1921], $cleanupIds[1922], $cleanupIds[1923], $cleanupIds[1924], $cleanupIds[1925], $cleanupIds[1926], $cleanupIds[1927], $cleanupIds[1928], $cleanupIds[1929], $cleanupIds[1930], $cleanupIds[1931], $cleanupIds[1932], $cleanupIds[1933], $cleanupIds[1934], $cleanupIds[1935], $cleanupIds[1936], $cleanupIds[1937], $cleanupIds[1938], $cleanupIds[1939], $cleanupIds[1940], $cleanupIds[1941], $cleanupIds[1942], $cleanupIds[1943], $cleanupIds[1944], $cleanupIds[1945], $cleanupIds[1946], $cleanupIds[1947], $cleanupIds[1948], $cleanupIds[1949], $cleanupIds[1950], $cleanupIds[1951], $cleanupIds[1952], $cleanupIds[1953], $cleanupIds[1954], $cleanupIds[1955], $cleanupIds[1956], $cleanupIds[1957], $cleanupIds[1958], $cleanupIds[1959], $cleanupIds[1960], $cleanupIds[1961], $cleanupIds[1962], $cleanupIds[1963], $cleanupIds[1964], $cleanupIds[1965], $cleanupIds[1966], $cleanupIds[1967], $cleanupIds[1968], $cleanupIds[1969], $cleanupIds[1970], $cleanupIds[1971], $cleanupIds[1972], $cleanupIds[1973], $cleanupIds[1974], $cleanupIds[1975], $cleanupIds[1976], $cleanupIds[1977], $cleanupIds[1978], $cleanupIds[1979], $cleanupIds[1980], $cleanupIds[1981], $cleanupIds[1982], $cleanupIds[1983], $cleanupIds[1984], $cleanupIds[1985], $cleanupIds[1986], $cleanupIds[1987], $cleanupIds[1988], $cleanupIds[1989], $cleanupIds[1990], $cleanupIds[1991], $cleanupIds[1992], $cleanupIds[1993], $cleanupIds[1994], $cleanupIds[1995], $cleanupIds[1996], $cleanupIds[1997], $cleanupIds[1998], $cleanupIds[1999], $cleanupIds[2000], $cleanupIds[2001], $cleanupIds[2002], $cleanupIds[2003], $cleanupIds[2004], $cleanupIds[2005], $cleanupIds[2006]);
/* execute query */
$stmt->execute();
/* close statement */
$stmt->close();
}
mysqli_close($link);
print "done!";
?>
--CLEAN--
<?php
require_once("clean_table.inc");
?>
--EXPECT--
done!
| PHP | 3 | NathanFreeman/php-src | ext/mysqli/tests/mysqli_stmt_big_prepare.phpt | [
"PHP-3.01"
] |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from inspect import FullArgSpec
from typing import List, Optional, Type, cast as _cast # noqa: F401
import numpy as np # noqa: F401
import pandas # noqa: F401
import pandas as pd # noqa: F401
from numpy import * # noqa: F401
from pandas import * # noqa: F401
from inspect import getfullargspec # noqa: F401
def resolve_string_type_hint(tpe: str) -> Optional[Type]:
import pyspark.pandas as ps
from pyspark.pandas import DataFrame, Series
locs = {
"ps": ps,
"pyspark.pandas": ps,
"DataFrame": DataFrame,
"Series": Series,
}
# This is a hack to resolve the forward reference string.
exec("def func() -> %s: pass\narg_spec = getfullargspec(func)" % tpe, globals(), locs)
return _cast(FullArgSpec, locs["arg_spec"]).annotations.get("return", None)
| Python | 3 | akhalymon-cv/spark | python/pyspark/pandas/typedef/string_typehints.py | [
"Apache-2.0"
] |
/***************************************************
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
MIT license, all text above must be included in any redistribution
****************************************************/
#include "OpenBook_IL91874.h"
#define EPD_CS 9
#define EPD_DC 10
#define EPD_RESET 11
#define EPD_BUSY 12
#define SRAM_CS -1
OpenBook_IL91874 display(264, 176, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS);
void setup() {
Serial.begin(115200);
display.begin();
display.setRotation(3);
// large block of text
display.clearBuffer();
display.fillRect(0, 0, 176, 264, EPD_WHITE);
display.setCursor(0, 0);
testdrawtext("Compile time:", EPD_BLACK, EPD_WHITE);
display.println(F(__TIME__));
testdrawtext("BLACK on WHITE.", EPD_BLACK, EPD_WHITE);
testdrawtext("DARK on WHITE.", EPD_DARK, EPD_WHITE);
testdrawtext("LIGHT on WHITE.", EPD_LIGHT, EPD_WHITE);
testdrawtext("WHITE on BLACK.", EPD_WHITE, EPD_BLACK);
testdrawtext("LIGHT on BLACK.", EPD_LIGHT, EPD_BLACK);
testdrawtext("DARK on BLACK.", EPD_DARK, EPD_BLACK);
testdrawtext("DARK on LIGHT.", EPD_DARK, EPD_LIGHT);
testdrawtext("LIGHT on DARK.", EPD_LIGHT, EPD_DARK);
display.fillRect( 10, 200, 30, 30, EPD_BLACK);
display.fillRect( 52, 200, 30, 30, EPD_DARK);
display.fillRect( 94, 200, 30, 30, EPD_LIGHT);
display.fillRect(136, 200, 30, 30, EPD_WHITE);
display.drawRect( 10, 200, 30, 30, EPD_BLACK);
display.drawRect( 52, 200, 30, 30, EPD_BLACK);
display.drawRect( 94, 200, 30, 30, EPD_BLACK);
display.drawRect(136, 200, 30, 30, EPD_BLACK);
display.display();
display.setDisplayMode(OPEN_BOOK_DISPLAY_MODE_GRAYSCALE);
delay(5000);
display.display();
}
void loop() {
//don't do anything!
}
void testdrawtext(char *text, uint16_t color, uint16_t background) {
display.setTextColor(color, background);
display.println(text);
}
| Arduino | 5 | gvvynplaine/The-Open-Book | Examples/Tiny_Book_IL91874_Test/Tiny_Book_IL91874_Test.ino | [
"MIT"
] |
Sporth s => dac;
s.parse("440 0.1 sine");
1::second => now;
s.parse("880 0.1 sine");
3::second => now;
| ChucK | 3 | brandenbyers/Sporth | util/chorth/reparse.ck | [
"MIT"
] |
/*
* This file is part of the X10 project (http://x10-lang.org).
*
* This file is licensed to You under the Eclipse Public License (EPL);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.opensource.org/licenses/eclipse-1.0.php
*
* (C) Copyright IBM Corporation 2006-2016.
*/
import x10.util.foreach.Block;
import x10.util.OptionsParser;
import x10.util.Option;
import x10.util.Pair;
import x10.util.Random;
/**
* A distributed implementation of KMeans clustering.
*
* Intra-place concurrency is exposed via Foreach.
*
* A PlaceLocalHandle is used to store the local state of
* the algorithm which consists of the points the place
* is responsible for assigning to clusters and scratch storage
* for computing a step of the algorithm by determining which
* cluster each point is currently assigned to and what the
* new centroid of that cluster is.
*
* For the highest throughput and most scalable implementation of
* the KMeans algorithm in X10 for Native X10, see KMeans.x10 in the
* X10 Benchmarks Suite (separate download from x10-lang.org).
*/
public class KMeans {
/*
* The local state consists of the points assigned to
* this place and scratch storage for computing the new
* cluster centroids based on the current assignment
* of points to clusters.
*/
final static class LocalState implements x10.io.Unserializable {
var points:Rail[Float];
var clusters:Rail[Float];
var clusterCounts:Rail[Int];
var numPoints:Long;
var numClusters:Long;
var dim:Long;
def this(initPoints:(Place)=>Rail[Float], numPoints:Long, dim:Long, numClusters:Long) {
points = initPoints(here);
clusters = new Rail[Float](numClusters * dim);
clusterCounts = new Rail[Int](numClusters);
this.numPoints = numPoints;
this.numClusters = numClusters;
this.dim = dim;
}
// outlined from localStep to help JIT compiler
def kernel(mine:LongRange, currentClusters:Rail[Float],
scratchClusters:Rail[Float], scratchClusterCounts:Rail[Int]) {
val dim = this.dim;
val numClusters = this.numClusters;
val points = this.points;
for (p in mine) {
var closest:Long = -1;
var closestDist:Float = Float.MAX_VALUE;
for (k in 0..(numClusters-1)) {
var dist : Float = 0;
for (d in 0..(dim-1)) {
val tmp = points(p * dim + d) - currentClusters(k * dim + d);
dist += tmp * tmp;
}
if (dist < closestDist) {
closestDist = dist;
closest = k;
}
}
for (d in 0..(dim-1)) {
scratchClusters(closest * dim + d) += points(p * dim + d);
}
scratchClusterCounts(closest)++;
}
}
def localStep(currentClusters:Rail[Float]) {
// clear scratch storage to prepare for this step
clusters.clear();
clusterCounts.clear();
// Primary kernel: for every point, determine current closest
// cluster and assign the point to that cluster.
Block.for(mine:LongRange in 0..(numPoints-1)) {
val scratchClusters = new Rail[Float](numClusters * dim);
val scratchClusterCounts = new Rail[Int](numClusters);
kernel(mine, currentClusters, scratchClusters, scratchClusterCounts);
atomic {
for (i in scratchClusters.range()) {
clusters(i) += scratchClusters(i);
}
for (i in scratchClusterCounts.range()) {
clusterCounts(i) += scratchClusterCounts(i);
}
}
}
}
}
static class KMeansMaster implements x10.io.Unserializable {
val lsPLH:PlaceLocalHandle[LocalState];
var currentClusters:Rail[Float];
val newClusters:Rail[Float];
val newClusterCounts:Rail[Int];
var pg:PlaceGroup;
val numClusters:Long;
val dim:Long;
val epsilon:Float;
var converged:Boolean = false;
var maxIterations:Long;
var currentIteration:Long;
def this(lsPLH:PlaceLocalHandle[LocalState], pg:PlaceGroup, epsilon:Float, iterations:Long) {
this.lsPLH = lsPLH;
this.pg = pg;
this.epsilon = epsilon;
this.numClusters = lsPLH().numClusters;
this.dim = lsPLH().dim;
currentClusters = new Rail[Float](numClusters * dim);
newClusters = new Rail[Float](numClusters * dim);
newClusterCounts = new Rail[Int](numClusters);
maxIterations = iterations;
currentIteration = 0;
}
def setInitialCentroids() {
finish {
for (p in pg) async {
val plh = this.lsPLH; // don't capture this!
val tmp = at (p) { new Rail[Float](plh().numClusters * plh().dim, (i:Long) => { plh().points(i) }) };
atomic {
for (i in currentClusters.range()) {
currentClusters(i) += tmp(i);
}
}
}
}
val np = pg.numPlaces();
for (i in currentClusters.range()) {
currentClusters(i) /= np;
}
}
public def isFinished() = converged || currentIteration >= maxIterations;
// Perform one global step of the KMeans algorithm
// by coordinating the localSteps in each place and
// accumulating the resulting new cluster centroids.
public def step() {
finish {
val masterGR = GlobalRef(this);
val shadowClusters = this.currentClusters; // avoid capture of KMeansMaster object in at!
val shadowPLH = this.lsPLH; // avoid capture of KMeansMaster object in at!
for (p in pg) at (p) async {
val ls = shadowPLH();
ls.localStep(shadowClusters);
val resultClusters = ls.clusters;
val resultCounts = ls.clusterCounts;
at (masterGR.home) async {
val master = masterGR();
atomic {
for (i in master.newClusters.range()) {
master.newClusters(i) += resultClusters(i);
}
for (i in master.newClusterCounts.range()) {
master.newClusterCounts(i) += resultCounts(i);
}
}
}
}
}
// Normalize to compute new cluster centroids
for (k in 0..(numClusters-1)) {
if (newClusterCounts(k) > 0) {
for (d in 0..(dim-1)) newClusters(k*dim + d) /= newClusterCounts(k);
}
}
// Test for convergence
var didConverge:Boolean = true;
for (i in newClusters.range()) {
if (Math.abs(currentClusters(i) - newClusters(i)) > epsilon) {
didConverge = false;
break;
}
}
converged = didConverge;
currentIteration += 1;
// Prepare for next iteration
Rail.copy(newClusters, currentClusters);
newClusters.clear();
newClusterCounts.clear();
}
}
static def printPoints (clusters:Rail[Float], numPoints:Long, dim:Long) {
for (d in 0..(dim-1)) {
for (k in 0..(numPoints-1)) {
if (k>0)
Console.OUT.print(" ");
Console.OUT.print(clusters(k*dim + d).toString());
}
Console.OUT.println();
}
}
static def computeClusters(activePlaces:PlaceGroup, initPoints:(Place)=>Rail[Float], numPoints:Long,
dim:Long, numClusters:Long, iterations:Long, epsilon:Float,
verbose:Boolean):Rail[Float] {
// Initialize KMeans LocalState in active places.
val localPLH = PlaceLocalHandle.make[LocalState](activePlaces, ()=>{ new LocalState(initPoints, numPoints, dim, numClusters) });
// Initialize algorithm state
val master = new KMeansMaster(localPLH, activePlaces, epsilon, iterations);
master.setInitialCentroids();
if (verbose) {
Console.OUT.println("Initial clusters: ");
printPoints(master.currentClusters, numClusters, dim);
}
// Perform iterative algorithm
for (iter in 0..(iterations-1)) {
master.step();
if (master.isFinished()) break;
}
return master.currentClusters;
}
public static def main (args:Rail[String]) {
val opts = new OptionsParser(args, [
Option("q","quiet","just print time taken"),
Option("v","verbose","print out each iteration"),
Option("h","help","this information")
], [
Option("i","iterations","quit after this many iterations"),
Option("c","clusters","number of clusters to find"),
Option("d","dim","number of dimensions"),
Option("e","epsilon","convergence threshold"),
Option("n","num","quantity of points")
]);
if (opts.filteredArgs().size!=0L) {
Console.ERR.println("Unexpected arguments: "+opts.filteredArgs());
Console.ERR.println("Use -h or --help.");
System.setExitCode(1n);
return;
}
if (opts("-h")) {
Console.OUT.println(opts.usage(""));
return;
}
val numClusters = opts("-c",4);
val numPoints = opts("-n", 2000);
val iterations = opts("-i",50);
val dim = opts("-d", 4);
val epsilon = opts("-e", 1e-3f); // negative epsilon forces i iterations.
val verbose = opts("-v");
Console.OUT.println("points: "+numPoints+" clusters: "+numClusters+" dim: "+dim);
val pg = Place.places();
val pointsPerPlace = numPoints / pg.size();
val initPoints = (p:Place) => {
val rand = new x10.util.Random(p.id);
val pts = new Rail[Float](pointsPerPlace * dim, (Long)=> rand.nextFloat());
pts
};
val start = System.nanoTime();
val clusters = computeClusters(pg, initPoints, pointsPerPlace, dim, numClusters, iterations, epsilon, verbose);
val stop = System.nanoTime();
Console.OUT.printf("TOTAL_TIME: %.3f seconds\n", (stop-start)/1e9);
if (verbose) {
Console.OUT.println("\nFinal results:");
printPoints(clusters, numClusters, dim);
}
}
}
// vim: shiftwidth=4:tabstop=4:expandtab
| X10 | 5 | octonion/examples | languages/x10/KMeans.x10 | [
"MIT"
] |
# Problem 28
# What is the sum of the numbers on the diagonals in a 1001 by 1001 spiral
# formed in the same way?
# Starting with the number 1 and moving to the right in a clockwise
# direction a 5 by 5 spiral is formed as follows:
#
# 21 22 23 24 25
# 20 7 8 9 10
# 19 6 1 2 11
# 18 5 4 3 12
# 17 16 15 14 13
#
# It can be verified that the sum of the numbers on the diagonals is 101.
taille = 1001
pas = taille - 1
number = taille ** 2
coins = 1
sum = number
while: { pas > 0 } do: {
number = number - pas
sum = sum + number
if: (coins == 4) then: {
coins = 1
pas = pas - 2
} else: {
coins = coins + 1
}
}
"The sum of the numbers of the diagonals of the matrix is: " ++ sum println
| Fancy | 4 | bakkdoor/fancy | examples/project-euler/28.fy | [
"BSD-3-Clause"
] |
// spec to include
* all _projects_ visible for the _current user_ are returned
* _projects_ may be active or closed
USER: project lead, admin
| AsciiDoc | 1 | therockstorm/openapi-generator | modules/openapi-generator/src/test/resources/3_0/asciidoc/specs/rest/project/GET/spec.adoc | [
"Apache-2.0"
] |
:- initialization logtalk_load(['00-util','01-python','02-fs','03-homebrew','04-apt','05-git','06-meta','07-managed',marelle,sudo]).
| Logtalk | 1 | PaulBrownMagic/logtalk3 | tools/wrapper/marelle/loader.lgt | [
"Apache-2.0"
] |
const createRunner = require('atom-mocha-test-runner').createRunner;
module.exports = createRunner({ testSuffixes: ['test.js'] });
| JavaScript | 3 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | packages/dalek/test/runner.js | [
"MIT"
] |
/* global QUnit, URLify */
'use strict';
QUnit.module('admin.URLify');
QUnit.test('empty string', function(assert) {
assert.strictEqual(URLify('', 8, true), '');
});
QUnit.test('preserve nonessential words', function(assert) {
assert.strictEqual(URLify('the D is silent', 15, true), 'the-d-is-silent');
});
QUnit.test('strip non-URL characters', function(assert) {
assert.strictEqual(URLify('D#silent@', 7, true), 'dsilent');
});
QUnit.test('merge adjacent whitespace', function(assert) {
assert.strictEqual(URLify('D silent', 8, true), 'd-silent');
});
QUnit.test('trim trailing hyphens', function(assert) {
assert.strictEqual(URLify('D silent always', 9, true), 'd-silent');
});
QUnit.test('non-ASCII string', function(assert) {
assert.strictEqual(URLify('Kaupa-miða', 255, true), 'kaupa-miða');
});
| JavaScript | 5 | jpmallarino/django | js_tests/admin/URLify.test.js | [
"BSD-3-Clause",
"0BSD"
] |
<GameProjectFile>
<PropertyGroup Type="Node" Name="MissionPoint" ID="8852bf71-27c9-4716-8202-12e04b29b651" Version="2.0.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1" />
<ObjectData Name="Node" CanEdit="False" FrameEvent="" ctype="SingleNodeObjectData">
<Position X="0" Y="0" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint />
<CColor A="255" R="255" G="255" B="255" />
<Size X="0" Y="0" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<Children>
<NodeObjectData Name="Sprite_1" ActionTag="1073028131" FrameEvent="" Tag="1647" ObjectIndex="1" ctype="SpriteObjectData">
<Position X="503.5569" Y="2352.608" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy" ActionTag="1073028131" FrameEvent="" Tag="182" ObjectIndex="2" ctype="SpriteObjectData">
<Position X="474.6352" Y="2319.508" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_0" ActionTag="1073028132" FrameEvent="" Tag="183" ObjectIndex="3" ctype="SpriteObjectData">
<Position X="459.717" Y="2292.416" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_2" ActionTag="1073028134" FrameEvent="" Tag="185" ObjectIndex="5" ctype="SpriteObjectData">
<Position X="392.6227" Y="2226.961" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_3" ActionTag="1073028135" FrameEvent="" Tag="186" ObjectIndex="6" ctype="SpriteObjectData">
<Position X="379.8948" Y="2186.053" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_4" ActionTag="1073028136" FrameEvent="" Tag="187" ObjectIndex="7" ctype="SpriteObjectData">
<Position X="358.985" Y="2143.328" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_6" ActionTag="1073028138" FrameEvent="" Tag="189" ObjectIndex="9" ctype="SpriteObjectData">
<Position X="339.719" Y="2031.555" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_7" ActionTag="1073028139" FrameEvent="" Tag="190" ObjectIndex="10" ctype="SpriteObjectData">
<Position X="364.0544" Y="1996.934" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_8" ActionTag="1073028140" FrameEvent="" Tag="191" ObjectIndex="11" ctype="SpriteObjectData">
<Position X="392.1791" Y="1958.561" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_10" ActionTag="1073028142" FrameEvent="" Tag="193" ObjectIndex="13" ctype="SpriteObjectData">
<Position X="369.0542" Y="1884.94" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_11" ActionTag="1073028143" FrameEvent="" Tag="194" ObjectIndex="14" ctype="SpriteObjectData">
<Position X="339.0541" Y="1854.07" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_12" ActionTag="1073028144" FrameEvent="" Tag="195" ObjectIndex="15" ctype="SpriteObjectData">
<Position X="312.1791" Y="1821.947" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_13" ActionTag="1073028145" FrameEvent="" Tag="196" ObjectIndex="16" ctype="SpriteObjectData">
<Position X="276.554" Y="1782.948" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_15" ActionTag="1073028147" FrameEvent="" Tag="198" ObjectIndex="18" ctype="SpriteObjectData">
<Position X="268.429" Y="1689.957" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_16" ActionTag="1073028148" FrameEvent="" Tag="199" ObjectIndex="19" ctype="SpriteObjectData">
<Position X="282.8042" Y="1645.957" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_18" ActionTag="1073028150" FrameEvent="" Tag="201" ObjectIndex="21" ctype="SpriteObjectData">
<Position X="302.5233" Y="1551.084" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_19" ActionTag="1073028151" FrameEvent="" Tag="202" ObjectIndex="22" ctype="SpriteObjectData">
<Position X="334.6792" Y="1521.462" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_20" ActionTag="1073028152" FrameEvent="" Tag="203" ObjectIndex="23" ctype="SpriteObjectData">
<Position X="360.9292" Y="1497.464" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_21" ActionTag="1073028153" FrameEvent="" Tag="204" ObjectIndex="24" ctype="SpriteObjectData">
<Position X="400.3046" Y="1475.966" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_22" ActionTag="1073028154" FrameEvent="" Tag="205" ObjectIndex="25" ctype="SpriteObjectData">
<Position X="417.1791" Y="1435.094" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_24" ActionTag="1073028156" FrameEvent="" Tag="207" ObjectIndex="27" ctype="SpriteObjectData">
<Position X="378.179" Y="1340.599" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_25" ActionTag="1073028157" FrameEvent="" Tag="208" ObjectIndex="28" ctype="SpriteObjectData">
<Position X="344.054" Y="1302.476" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_26" ActionTag="1073028158" FrameEvent="" Tag="209" ObjectIndex="29" ctype="SpriteObjectData">
<Position X="323.4287" Y="1257.646" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_27" ActionTag="1073028159" FrameEvent="" Tag="210" ObjectIndex="30" ctype="SpriteObjectData">
<Position X="325.5124" Y="1216.357" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_28" ActionTag="1073028160" FrameEvent="" Tag="211" ObjectIndex="31" ctype="SpriteObjectData">
<Position X="352.1791" Y="1139.443" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_30" ActionTag="1073028162" FrameEvent="" Tag="213" ObjectIndex="33" ctype="SpriteObjectData">
<Position X="339.6791" Y="1178.115" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_18_Copy" ActionTag="1073028164" FrameEvent="" Tag="215" ObjectIndex="35" ctype="SpriteObjectData">
<Position X="335.0212" Y="798.5841" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_19_Copy" ActionTag="1073028165" FrameEvent="" Tag="216" ObjectIndex="36" ctype="SpriteObjectData">
<Position X="370.0361" Y="761.8188" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_20_Copy" ActionTag="1073028166" FrameEvent="" Tag="217" ObjectIndex="37" ctype="SpriteObjectData">
<Position X="403.4288" Y="734.9645" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_23_Copy" ActionTag="1073028169" FrameEvent="" Tag="220" ObjectIndex="40" ctype="SpriteObjectData">
<Position X="452.1788" Y="619.8467" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_24_Copy" ActionTag="1073028170" FrameEvent="" Tag="221" ObjectIndex="41" ctype="SpriteObjectData">
<Position X="429.6788" Y="582.0992" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_27_Copy" ActionTag="1073028173" FrameEvent="" Tag="224" ObjectIndex="44" ctype="SpriteObjectData">
<Position X="368.012" Y="453.8576" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_28_Copy" ActionTag="1073028174" FrameEvent="" Tag="225" ObjectIndex="45" ctype="SpriteObjectData">
<Position X="394.6788" Y="376.943" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_30_Copy" ActionTag="1073028176" FrameEvent="" Tag="227" ObjectIndex="47" ctype="SpriteObjectData">
<Position X="382.1788" Y="415.616" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_17_Copy_Copy" ActionTag="1073028177" FrameEvent="" Tag="228" ObjectIndex="48" ctype="SpriteObjectData">
<Position X="353.7133" Y="1043.834" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_18_Copy_Copy" ActionTag="1073028178" FrameEvent="" Tag="229" ObjectIndex="49" ctype="SpriteObjectData">
<Position X="337.1366" Y="999.163" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_27_Copy_Copy" ActionTag="1073028183" FrameEvent="" Tag="234" ObjectIndex="54" ctype="SpriteObjectData">
<Position X="422.1785" Y="259.6909" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_28_Copy_Copy" ActionTag="1073028184" FrameEvent="" Tag="235" ObjectIndex="55" ctype="SpriteObjectData">
<Position X="397.1783" Y="185.2764" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_29_Copy_Copy" ActionTag="1073028185" FrameEvent="" Tag="236" ObjectIndex="56" ctype="SpriteObjectData">
<Position X="373.8448" Y="141.6956" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_30_Copy_Copy" ActionTag="1073028186" FrameEvent="" Tag="237" ObjectIndex="57" ctype="SpriteObjectData">
<Position X="413.8453" Y="218.9495" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_58" ActionTag="1073030699" FrameEvent="" Tag="2303" ObjectIndex="58" ctype="SpriteObjectData">
<Position X="387.856" Y="529.9994" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="88" Y="84" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS02.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_58_Copy" ActionTag="1073030700" FrameEvent="" Tag="2304" ObjectIndex="59" ctype="SpriteObjectData">
<Position X="414.9981" Y="319.9987" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="88" Y="84" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS02.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_60" ActionTag="1073030701" FrameEvent="" Tag="2305" ObjectIndex="60" ctype="SpriteObjectData">
<Position X="455" Y="692.8572" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="86" Y="84" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS01.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_61" ActionTag="1073030702" FrameEvent="" Tag="2306" ObjectIndex="61" ctype="SpriteObjectData">
<Position X="398.7145" Y="1136.857" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="92" Y="145" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS03.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_60_Copy" ActionTag="1073030850" FrameEvent="" Tag="299" ObjectIndex="62" ctype="SpriteObjectData">
<Position X="299" Y="868.8572" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="86" Y="84" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS01.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_1_Copy_18_Copy_Copy_Copy" ActionTag="1073030851" FrameEvent="" Tag="300" ObjectIndex="63" ctype="SpriteObjectData">
<Position X="323.1366" Y="949.163" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="25" Y="25" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS04.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_60_Copy_0" ActionTag="1073030852" FrameEvent="" Tag="301" ObjectIndex="64" ctype="SpriteObjectData">
<Position X="415" Y="1388.857" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="86" Y="84" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS01.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_60_Copy_0_Copy" ActionTag="1073030853" FrameEvent="" Tag="302" ObjectIndex="65" ctype="SpriteObjectData">
<Position X="284" Y="1602.857" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="86" Y="84" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS01.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_60_Copy_0_Copy_0" ActionTag="1073030854" FrameEvent="" Tag="303" ObjectIndex="66" ctype="SpriteObjectData">
<Position X="417.9983" Y="1921.855" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="86" Y="84" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS01.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_61_Copy" ActionTag="1073030855" FrameEvent="" Tag="304" ObjectIndex="67" ctype="SpriteObjectData">
<Position X="232.7145" Y="1783.857" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="92" Y="145" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS03.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_60_Copy_0_Copy_0_Copy" ActionTag="1073030856" FrameEvent="" Tag="305" ObjectIndex="68" ctype="SpriteObjectData">
<Position X="332.9968" Y="2095.188" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="86" Y="84" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS01.png" />
</NodeObjectData>
<NodeObjectData Name="Sprite_61_Copy_Copy" ActionTag="1073030857" FrameEvent="" Tag="306" ObjectIndex="69" ctype="SpriteObjectData">
<Position X="412.7113" Y="2315.524" />
<Scale ScaleX="1" ScaleY="1" />
<AnchorPoint ScaleX="0.5" ScaleY="0.5" />
<CColor A="255" R="255" G="255" B="255" />
<Size X="92" Y="145" />
<PrePosition X="0" Y="0" />
<PreSize X="0" Y="0" />
<FileData Type="Normal" Path="MissionSelect/MS03.png" />
</NodeObjectData>
</Children>
</ObjectData>
</Content>
</Content>
</GameProjectFile> | Csound | 3 | chukong/CocosStudioSamples | DemoMicroCardGame/CocosStudioResources/cocosstudio/MissionPoint.csd | [
"MIT"
] |
( Generated from test_literal_int_variants_in.muv by the MUV compiler. )
( https://github.com/revarbat/pymuv )
: _main[ _arg -- ret ]
{
99 98 97 96 95 195935983 195935983 12345678
12345678 668 0
}list var! _valid_numbers
var _num
_valid_numbers @ foreach
_num ! pop
{ _num @ " bottles of beer on the wall!" }list array_interpret me @ swap notify
repeat
0
;
: __start
"me" match me ! me @ location loc ! trig trigger !
_main
;
| MUF | 3 | revarbat/pymuv | tests/test_literal_int_variants_cmp.muf | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.