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
\documentclass{article} \usepackage{agda} \begin{document} \AgdaHide{ \begin{code} postulate A : Set \end{code}} \end{document}
Literate Agda
2
shlevy/agda
test/LaTeXAndHTML/succeed/Issue2077-2.lagda
[ "BSD-3-Clause" ]
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause */ #include <single_ctx_test.uc> #include <config.h> #include <gro_cfg.uc> #include <global.uc> #include <pv.uc> #include <stdmac.uc> .reg pkt_offset .reg pms_offset .reg pkt_vec[PV_SIZE_LW] move(BF_A(pkt_vec, PV_NUMBER_bf), 0) move(BF_A(pkt_vec, PV_MU_ADDR_bf), 0) move(BF_A(pkt_vec, PV_CSUM_OFFLOAD_bf), 0) move(pkt_offset, 44) .while (pkt_offset < 76) move(BF_A(pkt_vec, PV_OFFSET_bf), pkt_offset) pv_write_nbi_meta(pms_offset, pkt_vec, fail#) test_assert_equal(pms_offset, 32) alu[pkt_offset, pkt_offset, +, 1] .endw .while (pkt_offset < 108) move(BF_A(pkt_vec, PV_OFFSET_bf), pkt_offset) pv_write_nbi_meta(pms_offset, pkt_vec, fail#) test_assert_equal(pms_offset, 56) alu[pkt_offset, pkt_offset, +, 1] .endw .while (pkt_offset < 140) move(BF_A(pkt_vec, PV_OFFSET_bf), pkt_offset) pv_write_nbi_meta(pms_offset, pkt_vec, fail#) test_assert_equal(pms_offset, 96) alu[pkt_offset, pkt_offset, +, 1] .endw .while (pkt_offset < 253) move(BF_A(pkt_vec, PV_OFFSET_bf), pkt_offset) pv_write_nbi_meta(pms_offset, pkt_vec, fail#) test_assert_equal(pms_offset, 120) alu[pkt_offset, pkt_offset, +, 1] .endw test_pass() fail#: test_fail()
UnrealScript
2
pcasconnetronome/nic-firmware
test/datapath/pv_wr_nbi_meta_pms_offset_test.uc
[ "BSD-2-Clause" ]
make Nat : Set ; make NatD := con ['sumD ['zero 'suc] [ (con ['constD (Sig ())]) (con ['prodD (con ['idD]) (con ['constD (Sig ())]) ])]] : Desc ; give Mu NatD ; make zero := con ['zero] : Nat ; make suc := (\ x -> con ['suc x]) : Nat -> Nat ; make N-case := (\ n P m0 ms -> induction Nat.NatD n P (con [ (con con m0) (con \ k -> con \ _ -> ms k) ] )) : (n : Nat)(P : Nat -> Set) -> P [] -> ((k : Nat) -> P (con ['suc k])) -> P n ; make one := (suc zero) : Nat ; make two := (suc one) : Nat ; make plus := con con [(\ _ _ y -> y) (\ _ -> con \ h _ y -> suc (h y))] : Nat -> Nat -> Nat ; module Vec ; lambda A : Set ; make Vec : Nat -> Set ; make VecD : Nat -> IDesc Nat ; lambda n ; elim N-case n ; give \ _ -> IDone TT ; give \ m _ -> IArg A (\ a -> IInd1 m (IDone TT)) ; prev ; lambda n ; give IMu Nat VecD n ; make vnil := con [] : Vec zero ; make vcons := (\ n a as -> con [ a as , [] ]) : (n : Nat) -> A -> Vec n -> Vec (suc n) ; make vappend : (m : Nat) -> Vec m -> (n : Nat) -> Vec n -> Vec (plus m n) ; give (\ m as -> iinduction Nat Vec.VecD m as (\ mas -> (n : Nat) -> Vec n -> Vec (plus (mas !) n)) ?) ; lambda m ; elim N-case m ; give \ _ _ _ _ _ n bs -> bs ; give \ k A _ _ -> con \ a -> con \ as _ -> con \ appp _ n bs -> Vec^1.vcons A (plus k n) a (appp n bs) ; root ; make ex := Vec.vcons Nat one zero (Vec.vcons Nat zero one (Vec.vnil Nat)) : Vec.Vec Nat two
PigLatin
4
mietek/epigram
test/VecAppend4.pig
[ "MIT" ]
#!/bin/bash # install extra Python dependencies # (must come after setup-venv) BASEDIR=$(dirname $0) source $BASEDIR/defaults.sh if ! $WITH_PYTHON3 ; then # Python2 : else # Python3 pip install --pre protobuf==3.0.0b3 pip install pydot fi
Shell
4
sunLiFen/caffe
scripts/travis/install-python-deps.sh
[ "Intel", "BSD-2-Clause" ]
// MIT License // Copyright (c) 2019-2021 bloc97 // All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. //!DESC Anime4K-v3.2-Upscale-CNN-x2-(S)-Conv-4x3x3x3 //!HOOK MAIN //!BIND MAIN //!SAVE conv2d_tf //!WIDTH MAIN.w //!HEIGHT MAIN.h //!COMPONENTS 4 //!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > * #define go_0(x_off, y_off) (MAIN_texOff(vec2(x_off, y_off))) vec4 hook() { vec4 result = mat4(-0.0057322932, 0.12928207, -0.056848746, 0.18680117, -0.0306273, 0.25602463, 0.053723164, 0.20419341, 0.0018709862, 0.022848232, -0.04105527, 0.10169034, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, -1.0); result += mat4(0.009471417, -0.12957802, 0.096014425, 0.21836184, 0.00021601951, -0.22997683, 0.23666254, 0.41192335, 0.021762101, 0.0047863554, 0.008233427, 0.108514786, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 0.0); result += mat4(-0.01156376, -0.18988979, 0.04614705, -0.044767227, 0.01050636, -0.26426336, 0.23741047, 0.0027636609, -0.027718676, -0.14202335, -0.016650287, -0.06637125, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 1.0); result += mat4(0.057809234, -0.11033858, 0.056533534, -0.06292466, 0.13880666, -0.18710336, 0.2441031, -0.25326246, 0.0032683122, -0.026437074, 0.0023248852, 7.640766e-05, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, -1.0); result += mat4(-0.49110603, 0.4429004, -0.44015464, -0.41174838, -0.87738293, 0.7808468, -1.0929365, -0.59699076, -0.18409836, 0.185138, -0.11773224, -0.17097276, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 0.0); result += mat4(0.10580959, -0.055947904, -0.03431237, -0.080236495, 0.14862584, -0.15393938, -0.18872876, -0.3170681, 0.03559387, -0.003990826, 0.021298569, 0.012844483, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 1.0); result += mat4(-0.040715586, -0.25781113, 0.08896714, -0.1225879, -0.15790503, -0.54010904, 0.29588607, 0.10401059, 0.003413123, -0.108357325, 0.0112870345, -0.11888622, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, -1.0); result += mat4(0.0049315444, 0.02376202, -0.08224771, 0.121118225, -0.041512914, -0.027994309, -0.585988, -0.069672115, -0.017247835, 0.0056576864, 0.04319012, 0.055003505, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 0.0); result += mat4(0.37521392, 0.15916082, 0.059708964, 0.19046007, 0.8120325, 0.38343868, 0.3436578, 0.5287958, 0.16570656, 0.06957687, 0.014022592, 0.074799836, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 1.0); result += vec4(-0.01050964, -0.00939481, 0.17684458, 0.027366742); return result; } //!DESC Anime4K-v3.2-Upscale-CNN-x2-(S)-Conv-4x3x3x8 //!HOOK MAIN //!BIND conv2d_tf //!SAVE conv2d_1_tf //!WIDTH conv2d_tf.w //!HEIGHT conv2d_tf.h //!COMPONENTS 4 //!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > * #define go_0(x_off, y_off) (max((conv2d_tf_texOff(vec2(x_off, y_off))), 0.0)) #define go_1(x_off, y_off) (max(-(conv2d_tf_texOff(vec2(x_off, y_off))), 0.0)) vec4 hook() { vec4 result = mat4(-0.011029496, 0.05866063, -0.09460646, -0.017664742, -0.022488879, 0.18384217, -0.00397663, -0.064733066, 0.08466802, 0.10667488, 8.0212536e-05, 0.0908869, 0.13580276, 0.00097438256, 0.12176522, -0.08218466) * go_0(-1.0, -1.0); result += mat4(0.16062798, -0.10190268, 0.03280682, 0.05621916, -0.009684231, -0.08464307, 0.17058301, -0.096469186, 0.1967505, -0.1450099, 0.093607284, -0.28240147, -0.21377413, 0.10079291, -0.1741522, 0.17330575) * go_0(-1.0, 0.0); result += mat4(-0.060160473, 0.06316997, 0.0046929033, -0.049405966, 0.13851729, 0.06830702, -0.0586872, -0.040827133, 0.007052838, -0.03576886, -0.111261636, 0.039155316, -0.07380389, -0.09369825, 0.04471156, 0.09678487) * go_0(-1.0, 1.0); result += mat4(-0.36683616, -0.035950605, -0.24414362, -0.009159744, 0.19335322, -0.099253505, 0.075083904, -0.00076695543, 0.65291303, -0.25599423, 0.19827642, 0.065899536, -0.07423247, -0.068967685, 0.0050554527, -0.060272824) * go_0(0.0, -1.0); result += mat4(-0.020688485, -0.83178276, 0.11104878, 0.26454413, 0.13655476, 0.37675047, -0.22219229, -0.01751935, 0.44552696, 0.92510307, 0.16063261, -0.62011045, 0.19366647, -0.06996067, -0.2504841, 0.00803723) * go_0(0.0, 0.0); result += mat4(0.0051537007, -0.057168536, -0.16110587, 0.25232598, -0.04447099, 0.11997351, 0.14808103, -0.34443566, -0.26212573, -0.21970181, 0.2724405, 0.21050811, -0.07949061, -0.064808235, -0.21208277, -0.0042361654) * go_0(0.0, 1.0); result += mat4(-0.0888952, -0.20169449, 0.19144905, -0.016882861, -0.013283103, 0.07552998, -0.24686803, 0.012453213, -0.065454446, -0.016123284, -0.47316182, 0.070926026, 0.09219782, 0.13118166, 0.074736096, 0.0077910526) * go_0(1.0, -1.0); result += mat4(0.5832154, 0.1138069, -0.039765622, 0.3182784, -0.25497997, 0.0013993139, 0.39285088, -0.48511526, -0.39891505, -0.19094779, -0.082146175, -0.20826934, 0.020590555, -0.0012490178, -0.4398621, 0.14377014) * go_0(1.0, 0.0); result += mat4(0.21917395, 3.4314657e-05, 0.25734863, -0.3433305, 0.015720673, 0.2676127, -0.06807297, 0.15040149, -0.23638041, -0.0050233034, -0.13666134, 0.4542111, -0.033572577, -0.08450588, -0.23341487, 0.053490847) * go_0(1.0, 1.0); result += mat4(-0.17482175, 0.057647135, 0.33135444, 0.0850751, -0.1718849, -0.0854123, 0.036795795, -0.13874969, -0.10903869, -0.19007301, -0.06064334, -0.03786032, -0.036696054, 0.07844446, 0.012523185, -0.01562906) * go_1(-1.0, -1.0); result += mat4(-0.04411997, -0.10331819, 0.10050193, 0.12406485, 0.07431592, 0.30109692, -0.17511666, -0.13263564, -0.10192587, 0.07821255, -0.22415096, 0.25552443, 0.17881326, -0.13914281, 0.109979235, -0.0016463579) * go_1(-1.0, 0.0); result += mat4(-0.01911644, -0.15412527, 0.028903123, 0.20831817, 0.00375175, 0.08110953, 0.074919395, -0.17581624, -0.015677985, 0.06504228, 0.08817818, -0.12518327, -0.09537373, 0.028905088, -0.051288474, 0.054334078) * go_1(-1.0, 1.0); result += mat4(0.2852779, -0.28924024, 0.36805123, 0.21079305, -0.28336474, 0.1679663, -0.08641141, -0.10699407, -0.16090055, 0.1287612, -0.15910125, 0.05734755, 0.15883245, 0.0053026294, 0.080674745, 0.0505137) * go_1(0.0, -1.0); result += mat4(0.17639062, 0.3790122, -0.19588692, -0.020314282, 0.26197383, 0.09014768, 0.19696823, -0.41025418, -0.08308115, -0.33279485, -0.22528782, 0.06172439, -0.1365661, -0.13094363, -0.005086559, 0.089024484) * go_1(0.0, 0.0); result += mat4(0.05262993, 0.0006296959, 0.1657725, -0.32591924, 0.12126701, 0.061543245, -0.10526848, 0.041583937, 0.094976954, 0.09416157, -0.22019257, -0.058390073, -0.2073888, 0.057273377, 0.19558284, 0.004208022) * go_1(0.0, 1.0); result += mat4(0.30005738, 0.18478931, -0.23342943, 0.22455733, -0.016488122, 0.099634305, 0.31620836, -0.15731157, 0.09595808, 0.0013774688, 0.48273298, -0.07027936, -0.18764344, -0.26194447, -0.11794225, -0.012173601) * go_1(1.0, -1.0); result += mat4(0.117986746, -0.13846518, -0.019614812, -0.3011192, 0.5501164, 0.3408611, -0.40090847, 0.15706886, 0.13050972, 0.051776595, 0.20792943, 0.23389706, -0.22965533, -0.053367328, 0.3911586, -0.032988597) * go_1(1.0, 0.0); result += mat4(0.054753624, -0.008485731, -0.2451672, 0.17528129, 0.13657846, 0.010480436, 0.07651423, -0.43316832, 0.12736236, 0.13804524, 0.12529011, -0.30946237, -0.14423579, 0.08403089, 0.24335162, 0.057288036) * go_1(1.0, 1.0); result += vec4(0.012077211, 0.013045883, 0.0380778, -0.02908858); return result; } //!DESC Anime4K-v3.2-Upscale-CNN-x2-(S)-Conv-4x3x3x8 //!HOOK MAIN //!BIND conv2d_1_tf //!SAVE conv2d_2_tf //!WIDTH conv2d_1_tf.w //!HEIGHT conv2d_1_tf.h //!COMPONENTS 4 //!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > * #define go_0(x_off, y_off) (max((conv2d_1_tf_texOff(vec2(x_off, y_off))), 0.0)) #define go_1(x_off, y_off) (max(-(conv2d_1_tf_texOff(vec2(x_off, y_off))), 0.0)) vec4 hook() { vec4 result = mat4(-0.036115196, -0.06971895, -0.07508942, 0.016036168, 0.12120111, 0.24536026, 0.044755507, -0.20663576, 0.029635755, -0.15427187, 0.027148994, -0.20795093, 0.10170582, 0.077919215, 0.66063017, -0.4632968) * go_0(-1.0, -1.0); result += mat4(-0.0052889925, -0.019060908, -0.08660142, -0.022095207, -0.08097976, -0.015142803, -0.18552722, -0.078493506, -0.16293915, -0.20099808, -0.08370822, 0.3701389, 0.09094984, 0.2487225, 0.24338846, 0.044003833) * go_0(-1.0, 0.0); result += mat4(-0.061406493, -0.017232792, -0.10917424, 0.11203319, 0.040699825, -0.019294346, 0.084953666, -0.018133596, 0.07209552, 0.016069936, 0.17805555, -0.089537814, 0.15809004, 0.1027023, 0.15044671, -0.15530108) * go_0(-1.0, 1.0); result += mat4(0.0948676, -0.040305693, -0.005591629, -0.048048403, -0.07547777, 0.056606572, 0.021390207, 0.32600567, -0.20805131, -0.099587254, 0.029613169, 0.0092129605, -0.29429698, -0.09898621, 0.44470885, -0.89487344) * go_0(0.0, -1.0); result += mat4(-0.122259885, 0.11445877, 0.06666907, 0.1869428, -0.1553992, -0.1658741, 0.2988138, -0.57746625, -0.34609964, 0.11169158, -0.41877756, 0.38075635, 0.21293911, 0.09640372, -0.12754214, -0.08026104) * go_0(0.0, 0.0); result += mat4(0.15128808, 0.050087795, 0.09219755, -0.18080945, 0.0044571217, -0.046019405, -0.1289922, 0.20305426, 0.19601224, 0.04667917, 0.17465587, 0.027672665, 0.18441725, 0.06845396, 0.11288585, -0.23283863) * go_0(0.0, 1.0); result += mat4(-0.072962, -0.06639447, 0.049347494, -0.1386401, 0.10396071, 0.08187777, -0.04280746, 0.07390891, 0.06628344, 0.037797406, 0.021885803, -0.013147403, 0.22376558, 0.36243078, 0.12874891, -0.0023783944) * go_0(1.0, -1.0); result += mat4(0.074945286, 0.16045591, -0.11798349, 0.12910712, 0.054760084, -0.095626175, -0.047832094, 0.03493912, 0.11817307, 0.037452437, -0.14301221, -0.027356789, -0.052390423, 0.11373512, 0.07686775, 0.010008694) * go_0(1.0, 0.0); result += mat4(-0.023999173, -0.091900624, 0.02388157, 0.03173873, 0.0065633506, -0.033716757, -0.1198324, 0.12057766, 0.026465805, -0.07517131, -0.07760598, 0.060463097, 0.07345541, 0.046037503, 0.21101558, -0.26785463) * go_0(1.0, 1.0); result += mat4(0.15544604, -0.03902825, 0.04630384, -0.25173616, -0.0691359, 0.07476507, 0.009071253, 0.089964196, -0.26539803, -0.3958477, -0.22155671, 0.20735882, -0.105860494, -0.003996804, -0.044815883, 0.39544627) * go_1(-1.0, -1.0); result += mat4(0.6169709, 0.23717614, -0.37884676, -0.7484867, 0.020169826, -0.30718836, 1.0965588, -0.20711036, -0.39149985, -0.06843563, -0.06522909, 0.103805855, 0.03265825, -0.15137726, 0.12837899, -0.01294922) * go_1(-1.0, 0.0); result += mat4(-0.23638196, -0.4560866, -0.11948684, -0.1464144, 0.10690008, 0.007835961, 0.11864342, -0.13101323, -0.16509797, 0.075027354, 0.08122998, 0.13451207, 0.0011890623, 0.052157886, 0.08372405, -0.07085038) * go_1(-1.0, 1.0); result += mat4(-0.21997726, -0.16488647, -0.0291317, 0.17997476, 0.1493211, 0.027494298, 0.0034613227, -0.3207727, 0.18699001, 0.14728633, -0.042895135, -0.07612043, 0.125076, -0.14714554, -0.03480009, -0.22753975) * go_1(0.0, -1.0); result += mat4(-0.5342686, -0.7426105, -0.38294584, 0.42549992, 0.46053204, 0.7867879, 0.106234804, -0.041163098, 0.5198579, -0.5219404, 0.14809476, -0.41802374, 0.06810794, -0.15122683, -0.047409, 0.13178343) * go_1(0.0, 0.0); result += mat4(-0.50428164, 0.18220626, 0.35510704, -0.081787474, 0.03155813, 0.019284263, 0.0032388573, -0.20513348, -0.05385551, 0.17803182, -0.26206362, 0.2870375, 0.008557827, 0.08401449, -0.027598893, -0.010791235) * go_1(0.0, 1.0); result += mat4(0.16657415, 0.067647465, 0.093076974, -0.14438486, -0.10017002, 0.0022367141, 0.03250936, -0.052794546, -0.009178676, -0.019673595, -0.0016697067, -0.15424626, -0.112123474, -0.11079971, 0.011987111, -0.11747758) * go_1(1.0, -1.0); result += mat4(-0.023021797, -0.058703423, -0.037978355, -0.062433913, -0.13130441, 0.048656322, 0.056839373, 0.109036915, -0.07823158, 0.14785293, 0.058555078, -0.11679035, -0.14002073, 0.07395252, 0.098268874, -0.06710464) * go_1(1.0, 0.0); result += mat4(0.14906375, 0.030001195, -0.10338215, 0.0662968, -0.161953, -0.13682815, 0.09563142, 0.009514228, -0.009491218, 0.06737101, -0.1393389, 0.15231515, -0.073147796, 0.00767062, 0.028675212, 0.014213088) * go_1(1.0, 1.0); result += vec4(0.018736731, -0.0026039074, 0.050130025, -0.055364225); return result; } //!DESC Anime4K-v3.2-Upscale-CNN-x2-(S)-Conv-4x3x3x8 //!HOOK MAIN //!BIND conv2d_2_tf //!SAVE conv2d_last_tf //!WIDTH conv2d_2_tf.w //!HEIGHT conv2d_2_tf.h //!COMPONENTS 4 //!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > * #define go_0(x_off, y_off) (max((conv2d_2_tf_texOff(vec2(x_off, y_off))), 0.0)) #define go_1(x_off, y_off) (max(-(conv2d_2_tf_texOff(vec2(x_off, y_off))), 0.0)) vec4 hook() { vec4 result = mat4(0.019100675, -0.014241565, 0.004667036, -0.03865062, 0.106731094, 0.026099661, 0.014594411, -0.011881356, 0.0040967264, -0.004626336, 0.006469508, 0.010875305, -0.033909045, -0.085905954, 0.07861378, 0.019452631) * go_0(-1.0, -1.0); result += mat4(0.20777655, -0.060354974, 0.0023840065, -0.064121604, -0.17397617, 0.019293457, -0.09707183, 0.080641985, 0.01025124, -0.017382381, 0.008661793, -0.010995665, 0.21943407, -0.115574986, 0.14471593, -0.068836235) * go_0(-1.0, 0.0); result += mat4(0.057942886, -0.06311754, 0.2253396, -0.04159292, -0.020731755, 0.007877151, 0.041525815, 0.025278691, 0.03041967, -0.025137542, 0.024364179, -0.024543528, 0.029438615, -0.015506873, 0.081686, -0.07812221) * go_0(-1.0, 1.0); result += mat4(0.054237515, 0.0676094, -0.0047708177, 0.0043467237, -0.10032304, -0.020498628, 0.04240586, 0.07272254, 0.0784221, 0.017945962, -0.022310399, -0.013134622, 0.015638694, -0.10001543, 0.1043031, 0.05898838) * go_0(0.0, -1.0); result += mat4(-0.021652509, 0.35796642, 0.059497777, 0.23948468, 0.15454951, -0.10017235, -0.19072174, -0.44812536, -0.03974552, 0.04529369, 0.22207436, 0.026222564, -0.09705454, 0.5623026, -0.3354105, -0.017278556) * go_0(0.0, 0.0); result += mat4(-0.053682446, -0.03411237, -0.09399936, 0.15128824, -0.07463, -0.042020727, 0.0031783928, 0.13481957, -0.07731454, 0.044114403, -0.23085599, 0.060444202, -0.15015422, 0.0018040676, -0.18684982, 0.2812511) * go_0(0.0, 1.0); result += mat4(0.0029329916, 0.001596018, 0.0007512241, 0.016544111, -0.04876942, -0.05272409, 0.037884697, 0.049948208, 0.015518177, 0.11368592, -0.03815777, -0.013149978, -0.027638039, 0.107719295, -0.04115787, 0.02745414) * go_0(1.0, -1.0); result += mat4(0.016691081, 0.010204119, 0.04078854, 0.01613337, 0.03325829, 0.0114824055, -0.017286912, -0.07284126, -0.110984206, -0.21041764, 0.0089543555, 0.18986733, 0.01537506, -0.2059135, 0.029074017, 0.013117443) * go_0(1.0, 0.0); result += mat4(0.013965926, 0.029871881, 0.0034499036, -0.011343668, 0.022120327, -0.0068748263, 0.009324342, -0.039081004, 0.08032371, 0.050809264, 0.035050742, -0.2032847, 0.06305391, -0.021958945, 0.038569167, -0.22465245) * go_0(1.0, 1.0); result += mat4(0.046307724, -0.012419472, 0.007673863, -0.042344846, 0.011042414, 0.016994251, -0.018166406, -0.016955731, -0.13240299, 0.01768431, -0.027607648, 0.0699927, -0.02840628, 0.004414203, 0.0049618417, 0.011084679) * go_1(-1.0, -1.0); result += mat4(-0.119954154, -0.007455482, -0.031108133, -0.009946449, 0.0077065965, 0.01660345, 0.032943666, 0.016376585, 0.10273124, 0.1556573, -0.24643841, 0.107307844, -0.068235755, 0.0561896, -0.0104672015, 0.042693343) * go_1(-1.0, 0.0); result += mat4(-0.01634601, 0.04195375, -0.10401894, 0.047641944, -0.034602515, -0.0034419263, -0.010457858, 0.015194475, -0.03962551, -0.030031368, 0.16036317, 0.019283568, -0.05877721, 0.016504882, -0.15523468, 0.018161612) * go_1(-1.0, 1.0); result += mat4(-0.08083991, 0.0024665035, -0.049373373, 0.030371357, 0.0113322195, -0.014676956, 0.011646689, -0.01142667, 0.124930486, 0.06625774, -0.045840867, -0.009693036, -0.012649251, -0.07388084, 0.008790075, 0.0013844534) * go_1(0.0, -1.0); result += mat4(-0.33941835, -0.2763476, -0.118311435, -0.063535266, 0.20936015, 0.13731301, 0.13443594, 0.07464433, 0.059650812, -0.36973104, 0.16444235, -0.37082872, 0.06432777, -0.18283032, -0.044489607, -0.13895285) * go_1(0.0, 0.0); result += mat4(0.13533665, 0.08268915, -0.03675727, -0.14348659, 0.0186255, -0.05051692, 0.056702953, 0.0061717895, 0.047663026, -0.088188455, 0.23254345, -0.014015464, 0.08400204, -0.0073777726, 0.2202068, -0.12366078) * go_1(0.0, 1.0); result += mat4(0.04361004, 0.046543695, 0.0064863074, -0.03358146, -0.022602187, 0.018138997, -0.011071864, 0.010244091, -0.019814799, -0.17250171, 0.040823266, -0.040131986, 0.010125854, 0.020660749, 0.0020435036, -0.010819304) * go_1(1.0, -1.0); result += mat4(-0.004810193, -0.11286074, 0.051985834, 0.04788631, -0.023950428, 0.036145125, -0.038203828, 0.052401308, 0.022986965, 0.26420745, -0.06076917, -0.09252999, 0.03164547, 0.15652153, -0.037934, -0.0035418556) * go_1(1.0, 0.0); result += mat4(0.03358366, -0.005219482, 0.007060882, -0.06569114, -0.02941682, 0.00966056, -0.0153679885, 0.019905418, -0.107232265, -0.03405676, -0.044340115, 0.26892832, -0.04723829, -0.02589829, 0.004563232, 0.19318114) * go_1(1.0, 1.0); result += vec4(-0.00346731, -0.0046263863, -0.004627155, -0.0057769152); return result; } //!DESC Anime4K-v3.2-Upscale-CNN-x2-(S)-Depth-to-Space //!HOOK MAIN //!BIND MAIN //!BIND conv2d_last_tf //!SAVE MAIN //!WIDTH conv2d_last_tf.w 2 * //!HEIGHT conv2d_last_tf.h 2 * //!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > * vec4 hook() { vec2 f0 = fract(conv2d_last_tf_pos * conv2d_last_tf_size); ivec2 i0 = ivec2(f0 * vec2(2.0)); float c0 = conv2d_last_tf_tex((vec2(0.5) - f0) * conv2d_last_tf_pt + conv2d_last_tf_pos)[i0.y * 2 + i0.x]; float c1 = c0; float c2 = c1; float c3 = c2; return vec4(c0, c1, c2, c3) + MAIN_tex(MAIN_pos); }
GLSL
5
dvdvideo1234/Anime4K
glsl/Upscale/Anime4K_Upscale_CNN_x2_S.glsl
[ "MIT" ]
//tab_size=4 // Copyright 2021 nickmqb // SPDX-License-Identifier: Apache-2.0 copyImagePixelsToByteArray(dest Array<byte>, offset int, img Array<byte>) { // Write image upside down so that u,v coordinates are aligned with world coordinate system i := 0 for y := 15; y >= 0; y -= 1 { for x := 0; x < 16 { pixel := img[y * 16 + x] index := offset + (i / 2) * 2 + 1 if (i & 1) == 0 { dest[index] = pixel } else { dest[index] = cast(dest[index] | (pixel << 4), byte) } i += 1 } } } buildTrigLookup() { trig := new Array<short>(256) for i := 0; i < trig.count { trig[i] = cast(sin(i / 512.0 * pi) * 4096 + .5, short) } return trig } buildVisibilityLookup() { vis := new Array<byte>(256) for i := 0; i < 128 { angle := i / 64.0 * pi dx := sin(angle) dz := -cos(angle) scale := abs(dx) > abs(dz) ? (1 / abs(dx)) : (1 / abs(dz)) scale *= 6.5 dx *= scale dz *= scale vis[i * 2] = cast(floor(dx), byte) vis[i * 2 + 1] = cast(floor(dz), byte) } return vis } convertChar(ch char) { chars := "`\x01\x02\x03\x04%&'()*+,-./0123456789:;<=>? ABCDEFGHIJKLMNOPQRSTUVWXYZ[$]^_" index := chars.indexOfChar(ch) if index < 0 { Stderr.writeLine(format("{} is not a valid char", ch)) abandon() } return index } toHex(n int) { assert(n >= 0) sb := StringBuilder{} ulong.writeHexTo(cast(n, ulong), ref sb) return sb.compactToString() } addString(table Array<byte>, defs StringBuilder, index *int, key string, s string) { defs.write(format("STE_{} := 0x{}\n", key, toHex(0x1300 + index^))) for i := 0; i < s.length { table[index^] = cast(convertChar(s[i]), byte) index^ += 1 } table[index^] = 0 index^ += 1 } addColor(table Array<byte>, index *int, b byte, g byte, r byte) { table[index^] = cast((g << 4) | r, byte) table[index^ + 1] = b index^ += 2 } buildStringTable(defs StringBuilder) { defs.write("// String table\n\n") table := new Array<byte>(256) // Sky color values are placed in string table index := 0 addColor(table, ref index, 15, 12, 8) //fc8 addColor(table, ref index, 12, 10, 6) //ca6 addColor(table, ref index, 11, 8, 7) //b87 addColor(table, ref index, 9, 7, 7) addColor(table, ref index, 8, 6, 6) addColor(table, ref index, 7, 5, 5) addColor(table, ref index, 6, 5, 5) addColor(table, ref index, 5, 4, 4) addColor(table, ref index, 3, 3, 4) addColor(table, ref index, 2, 2, 3) addColor(table, ref index, 1, 1, 2) addColor(table, ref index, 0, 0, 0) assert(index == 24) addString(table, defs, ref index, "GAME_MENU", "- GAME MENU -") addString(table, defs, ref index, "INVENTORY", "- INVENTORY -") addString(table, defs, ref index, "DEBUG_INFO", "DEBUG INFO") addString(table, defs, ref index, "FPGA_CRAFT", "FPGA_CRAFT") addString(table, defs, ref index, "NOCLIP", "NOCLIP") addString(table, defs, ref index, "TIME", "TIME [--]") addString(table, defs, ref index, "SAVE", "SAVE (-- CHUNKS)") addString(table, defs, ref index, "RETURN_TO_GAME", "RETURN TO GAME") addString(table, defs, ref index, "ON", " [ON]") addString(table, defs, ref index, "OFF", " [OFF]") addString(table, defs, ref index, "COORDS", "X:---- Y:---- Z:---- F:") addString(table, defs, ref index, "FACING_DIR", "N``NW`W``SW`S``SE`E``NE") addString(table, defs, ref index, "ITEM_SELECT_TOP", "\x01 \x02") addString(table, defs, ref index, "ITEM_SELECT_BOTTOM", "\x03 \x04") assert(index <= 254) // Last 2 bytes cannot be used (used for flash status reg) defs.write("\n") return table } buildDefaultLightMap() { light := new Array<byte>(32 * 32 * 32 / 2) for i := 0; i < light.count { light[i] = 0xff } return light } InventorySlot struct { block byte quantity byte cons(block byte, quantity byte) { return InventorySlot { block: block, quantity: quantity } } } buildInventory() { items := new List<InventorySlot>{} // Hotbar items.add(InventorySlot(Blocks.cobblestone, 0x40)) items.add(InventorySlot(Blocks.rocket, 0x40)) items.add(InventorySlot(Blocks.grass, 0x40)) items.add(InventorySlot(Blocks.oak_planks, 0x40)) items.add(InventorySlot(Blocks.bricks, 0x40)) items.add(InventorySlot(Blocks.lamp, 0x40)) items.add(InventorySlot(Blocks.door_bottom, 0x40)) items.add(InventorySlot(Blocks.obsidian, 0x40)) items.add(InventorySlot(Blocks.lava, 0x40)) // Items items.add(InventorySlot(Blocks.bedrock, 64)) items.add(InventorySlot(Blocks.birch_leaves, 64)) items.add(InventorySlot(Blocks.birch_log, 64)) items.add(InventorySlot(Blocks.birch_planks, 64)) items.add(InventorySlot(Blocks.bookshelf, 64)) items.add(InventorySlot(Blocks.bricks, 64)) items.add(InventorySlot(Blocks.cactus, 64)) items.add(InventorySlot(Blocks.coal_ore, 64)) items.add(InventorySlot(Blocks.cobblestone, 64)) items.add(InventorySlot(Blocks.diamond_block, 64)) items.add(InventorySlot(Blocks.diamond_ore, 64)) items.add(InventorySlot(Blocks.dirt, 64)) items.add(InventorySlot(Blocks.door_bottom, 64)) items.add(InventorySlot(Blocks.furnace, 64)) items.add(InventorySlot(Blocks.gold_block, 64)) items.add(InventorySlot(Blocks.gold_ore, 64)) items.add(InventorySlot(Blocks.grass, 64)) items.add(InventorySlot(Blocks.grass_snow, 64)) items.add(InventorySlot(Blocks.gravel, 64)) items.add(InventorySlot(Blocks.ice, 64)) items.add(InventorySlot(Blocks.iron_block, 64)) items.add(InventorySlot(Blocks.iron_ore, 64)) items.add(InventorySlot(Blocks.lamp, 64)) items.add(InventorySlot(Blocks.lava, 64)) items.add(InventorySlot(Blocks.oak_leaves, 64)) items.add(InventorySlot(Blocks.oak_log, 64)) items.add(InventorySlot(Blocks.oak_planks, 64)) items.add(InventorySlot(Blocks.obsidian, 64)) items.add(InventorySlot(Blocks.rocket, 64)) items.add(InventorySlot(Blocks.sand, 64)) items.add(InventorySlot(Blocks.sandstone, 64)) items.add(InventorySlot(Blocks.snow, 64)) items.add(InventorySlot(Blocks.spruce_leaves, 64)) items.add(InventorySlot(Blocks.spruce_leaves_snow, 64)) items.add(InventorySlot(Blocks.spruce_log, 64)) items.add(InventorySlot(Blocks.spruce_planks, 64)) items.add(InventorySlot(Blocks.stone, 64)) items.add(InventorySlot(Blocks.stone_bricks, 64)) items.add(InventorySlot(Blocks.water, 64)) if items.count > 9 + 108 { Stderr.writeLine("Too many items in inventory") abandon() } return new items.slice(0, items.count) } encodeMapOffset(dx int, dy int, dz int) { result := 0 result |= (dx & 1) result |= ((dz & 1) << 1) result |= ((dy & 31) << 2) result |= ((dx & 30) << 6) result |= ((dz & 30) << 10) //result |= (1 << 15) return cast(result, ushort) } buildAdjacencyInfo() { values := new Array<ushort>(6) values[0] = encodeMapOffset(1, 0, 0) values[1] = encodeMapOffset(-1, 0, 0) values[2] = encodeMapOffset(0, 0, 1) values[3] = encodeMapOffset(0, 0, -1) values[4] = encodeMapOffset(0, 1, 0) values[5] = encodeMapOffset(0, -1, 0) return values } buildPortalLookup() { values := new Array<ushort>(64) pattern_xza := "12030303121212121212121212120303" pattern_xzb := "11111111111111110022002200221111" pattern_y := "00112233441122331111222233330044" for d := 0; d < 2 { for i := 0; i < 32 { xza := pattern_xza[i] - '0' - 1 xzb := pattern_xzb[i] - '0' - 1 y := pattern_y[i] - '0' values[d * 32 + i] = d == 0 ? encodeMapOffset(xza, y, xzb) : encodeMapOffset(xzb, y, xza) } } return values } convertArray<T, U>(array Array<T>) { if sizeof(T) > sizeof(U) { assert(sizeof(T) % sizeof(U) == 0) return new Array<U> { dataPtr: array.dataPtr, count: CheckedMath.mulPositiveInt(array.count, sizeof(T) / sizeof(U)) } } else { assert(sizeof(U) % sizeof(T) == 0) return new Array<U> { dataPtr: array.dataPtr, count: CheckedMath.mulPositiveInt(array.count, sizeof(U) / sizeof(T)) } } } assertWithMessage(cond bool, message string) { if cond { return } Stderr.writeLine(message) abandon() } generateData(textures Array<*Image>, blockInfos Array<BlockInfo>, blockTextureInfos Array<BlockTextureInfo>) { textureBytes := new Array<byte>(64 * 1024) ramBytes := new Array<byte>(32 * 1024) palBytes := ramBytes.slice(0, 4 * 1024) pe := 0 pal := cast(null, Array<ByteColor4>) lava := blockTextureInfos[Blocks.lava].top portal2 := blockTextureInfos[Blocks.portal_2].top destroy := 126 for t, i in textures { if i == destroy { num := 10 t = repeatImageTiles(t, num * 16) rr := reduceImageColors(t, 3) pal = rr.palette for j := 0; j <= 9 { sub := ref rr.bytes.slice(j * 256, (j + 1) * 256) copyImagePixelsToByteArray(textureBytes, (128 + j) * 256, sub) if j == 0 { copyImagePixelsToByteArray(textureBytes, destroy * 256, sub) } } } else if i == lava { num := 20 t = repeatImageTiles(t, num * 16) rr := reduceImageColors(t, 16) pal = rr.palette for j := 0; j < num { sub := ref rr.bytes.slice(j * 256, (j + 1) * 256) copyImagePixelsToByteArray(textureBytes, (160 + j) * 256, sub) if j == 0 { copyImagePixelsToByteArray(textureBytes, lava * 256, sub) } } } else if i == portal2 { num := 32 t = repeatImageTiles(t, num * 16) rr := reduceImageColors(t, 16) pal = rr.palette for j := 0; j < num { sub := ref rr.bytes.slice(j * 256, (j + 1) * 256) copyImagePixelsToByteArray(textureBytes, (192 + j) * 256, sub) if j == 0 { copyImagePixelsToByteArray(textureBytes, portal2 * 256, sub) } } } else { rr := reduceImageColors(t, 16) pal = rr.palette copyImagePixelsToByteArray(textureBytes, i * 256, rr.bytes) } forceDither := i == blockTextureInfos[Blocks.stone].top || i == blockTextureInfos[Blocks.coal_ore].top || i == blockTextureInfos[Blocks.iron_ore].top || i == blockTextureInfos[Blocks.gold_ore].top || i == blockTextureInfos[Blocks.diamond_ore].top || i == blockTextureInfos[Blocks.stone_bricks].top || i == blockTextureInfos[Blocks.gravel].top for p, j in pal { palBytes[i * 32 + j * 2] = cast((quantizeByteComponentAsU4(p.g) << 4) | quantizeByteComponentAsU4(p.r), byte) palBytes[i * 32 + j * 2 + 1] = cast(quantizeByteComponentAsU4(p.b) | (forceDither ? 16 : 0), byte) } } // String table kasmConstants := new StringBuilder{} kasmConstants.write("// Note: kasm does not support multiple files, so these constants must be manually copy-pasted into firmware.ka\n\n") Stdout.writeLine("Note: if any constants from constants.txt have changed, these must be must be manually copy-pasted into firmware.ka") stringBytes := buildStringTable(kasmConstants) stringBytes.copySlice(0, stringBytes.count, ramBytes, 0x1300) // Trig trigBytes := convertArray<short, byte>(buildTrigLookup()) trigBytes.copySlice(0, trigBytes.count, ramBytes, 0x1400) // Block info blockTextureInfos16 := new Array<ushort>(256) for bi, i in blockInfos { blockTextureInfos16[i] = cast(bi.textureBits, ushort) } blockTextureInfoBytes := convertArray<ushort, byte>(blockTextureInfos16) blockInfos16 := new Array<ushort>(256) for bi, i in blockInfos { blockInfos16[i] = cast(bi.infoBits, ushort) } blockInfoBytes := convertArray<ushort, byte>(blockInfos16) blockInfoBytes.copySlice(0, blockInfoBytes.count, ramBytes, 0x1600) kasmConstants.write("// Block info\n\n") kasmConstants.write(format("DOOR_BLOCK := {}\n", Blocks.door_bottom)) kasmConstants.write(format("COBBLESTONE_BLOCK := {}\n", Blocks.cobblestone)) kasmConstants.write(format("OBSIDIAN_BLOCK := {}\n", Blocks.obsidian)) kasmConstants.write(format("ROCKET := {}\n", Blocks.rocket)) kasmConstants.write("\n") // Visibility visBytes := buildVisibilityLookup() visBytes.copySlice(0, visBytes.count, ramBytes, 0x1800) // Inventory inventory := buildInventory() inventoryBytes := convertArray<InventorySlot, byte>(inventory) inventoryBytes.copySlice(0, inventoryBytes.count, ramBytes, 0x1a00) // Adjacency adj := buildAdjacencyInfo() adjBytes := convertArray<ushort, byte>(adj) adjBytes.copySlice(0, adjBytes.count, ramBytes, 0x1c00) // Portal portal := buildPortalLookup() portalBytes := convertArray<ushort, byte>(portal) portalBytes.copySlice(0, portalBytes.count, ramBytes, 0x1d00) // Light //lightBytes := buildLightMap() lightBytes := buildDefaultLightMap() lightBytes.copySlice(0, lightBytes.count, ramBytes, 0x4000) sb := new StringBuilder{} sb.write("RAM_A $262144 := [\n") writeArray(ramBytes, sb) sb.write("]\n\n") sb.write("TEXTURES $262144 := [\n") writeArray(ref textureBytes.slice(0, 32 * 1024), sb) sb.write("]\n\n") sb.write("MAP $262144 := [\n") writeArray(new Array<byte>(32 * 1024), sb) sb.write("]\n\n") assert(File.tryWriteString("../hw/src/data_sim.w", sb.compactToString())) assert(File.tryWriteString("../hw/src/constants.txt", kasmConstants.compactToString())) sb.clear() sb.write("BLOCK_TEXTURE_INFO $4096 := [\n") writeArray(blockTextureInfoBytes, sb) sb.write("]\n\n") generateFontData(sb) generateLightLookup(sb) assert(File.tryWriteString("../hw/src/static_data.w", sb.compactToString())) writeBinaryFile(ramBytes, "../ram_a.bin") writeBinaryFile(textureBytes, "../textures.bin") // Includes animated textures }
mupad
4
nickmqb/fpga_craft
data_gen/data_generator.mu
[ "Apache-2.0" ]
package io.swagger.client.model { import io.swagger.common.ListWrapper; import io.swagger.client.model.Currency; public class AmountList implements ListWrapper { // This declaration below of _Amount_obj_class is to force flash compiler to include this class private var _amount_obj_class: io.swagger.client.model.Amount = null; [XmlElements(name="amount", type="io.swagger.client.model.Amount")] public var amount: Array = new Array(); public function getList(): Array{ return amount; } } }
ActionScript
4
Nirostar/swagger-codegen
samples/client/petstore/flash/flash/src/io/swagger/client/model/AmountList.as
[ "Apache-2.0" ]
<?xml version='1.0' encoding='UTF-8'?> <Project Type="Project" LVVersion="17008000"> <Property Name="NI.Project.Description" Type="Str">Debug Server This examples shows how the debug server works. The debug server is used to remotely debug G# applications. This applications could be an LabVIEW RT system, LabVIEW web services, LabVIEW build executables and also just another application instance. In this example a temporary project is launched (causing a new application instance) and the G# Debugger is launched from this project. When the debugger launches, press "Connect" and enter "localhost" as the target address. You now see the objects being created and destroyed on the remote target. Notice also the debugger trace and the user events that are being logged.</Property> <Property Name="ThirdParty.LV.ExampleFinder" Type="Str">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;nidna:ExampleProgram xmlns:nidna="http://www.ni.com/Schemas/DNA/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ni.com/Schemas/DNA/1.0 ..\DNA\1.0\NiExampleProgram.xsd" SchemaVersion="1.0" ContentType="EXAMPLE" &lt;Title&gt; &lt;Text Locale="US"&gt;G# - DebugServer.lvproj&lt;/Text&gt; &lt;/Title&gt; &lt;Description&gt; &lt;Text Locale="US"&gt;Debug Server This examples shows how the debug server works. The debug server is used to remotely debug G# applications. This applications could be an LabVIEW RT system, LabVIEW web services, LabVIEW build executables and also just another application instance. In this example a temporary project is launched (causing a new application instance) and the G# Debugger is launched from this project. When the debugger launches, press "Connect" and enter "localhost" as the target address. You now see the objects being created and destroyed on the remote target. Notice also the debugger trace and the user events that are being logged.&lt;/Text&gt; &lt;/Description&gt; &lt;Keywords&gt; &lt;Item&gt;objects&lt;/Item&gt; &lt;Item&gt;object-oriented&lt;/Item&gt; &lt;Item&gt;classes&lt;/Item&gt; &lt;Item&gt;G#&lt;/Item&gt; &lt;Item&gt;garbage&lt;/Item&gt; &lt;Item&gt;garbage collector&lt;/Item&gt; &lt;Item&gt;debug&lt;/Item&gt; &lt;/Keywords&gt; &lt;Navigation&gt; &lt;Item&gt;8419&lt;/Item&gt; &lt;/Navigation&gt; &lt;FileType&gt;LV Project&lt;/FileType&gt; &lt;Metadata&gt; &lt;Item Name="RTSupport"&gt;&lt;/Item&gt; &lt;/Metadata&gt; &lt;ProgrammingLanguages&gt; &lt;Item&gt;LabVIEW&lt;/Item&gt; &lt;/ProgrammingLanguages&gt; &lt;RequiredSoftware&gt; &lt;NiSoftware MinVersion="9.0"&gt;LabVIEW&lt;/NiSoftware&gt; &lt;/RequiredSoftware&gt;</Property> <Item Name="My Computer" Type="My Computer"> <Property Name="NI.SortType" Type="Int">3</Property> <Property Name="server.app.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.control.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.tcp.enabled" Type="Bool">false</Property> <Property Name="server.tcp.port" Type="Int">0</Property> <Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property> <Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property> <Property Name="server.vi.callsEnabled" Type="Bool">true</Property> <Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property> <Property Name="specify.custom.address" Type="Bool">false</Property> <Item Name="MyRemoteClass.lvclass" Type="LVClass" URL="../MyRemoteClass_class/MyRemoteClass.lvclass"/> <Item Name="G# - DebugServer.vi" Type="VI" URL="../G# - DebugServer.vi"/> <Item Name="Dependencies" Type="Dependencies"> <Item Name="vi.lib" Type="Folder"> <Item Name="G#Object.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/addons/_AddQ/G#Object/G#Object.lvclass"/> <Item Name="Clear Errors.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Clear Errors.vi"/> <Item Name="Error Code Database.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Code Database.vi"/> <Item Name="Get LV Class Path.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/LVClass/Get LV Class Path.vi"/> <Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Cluster From Error Code.vi"/> <Item Name="Get LV Class Default Value.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/LVClass/Get LV Class Default Value.vi"/> <Item Name="Qualified Name Array To Single String.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/LVClass/Qualified Name Array To Single String.vi"/> <Item Name="G#DebugServer.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/addons/_AddQ/G#DebugServer/G#DebugServer.lvclass"/> <Item Name="G#Debugger.lvlib" Type="Library" URL="/&lt;vilib&gt;/addons/_AddQ/G#Debugger/G#Debugger.lvlib"/> <Item Name="G#RemoteProxy.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/addons/_AddQ/G#Debugger/G#RemoteProxy/G#RemoteProxy.lvclass"/> <Item Name="System Exec.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/system.llb/System Exec.vi"/> <Item Name="FixBadRect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/FixBadRect.vi"/> <Item Name="imagedata.ctl" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/imagedata.ctl"/> <Item Name="Draw Flattened Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Flattened Pixmap.vi"/> <Item Name="Empty Picture" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Empty Picture"/> <Item Name="Open URL in Default Browser.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser.vi"/> <Item Name="Open URL in Default Browser (string).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser (string).vi"/> <Item Name="Open URL in Default Browser core.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser core.vi"/> <Item Name="Open URL in Default Browser (path).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser (path).vi"/> <Item Name="Path to URL.vi" Type="VI" URL="/&lt;vilib&gt;/printing/PathToURL.llb/Path to URL.vi"/> <Item Name="Escape Characters for HTTP.vi" Type="VI" URL="/&lt;vilib&gt;/printing/PathToURL.llb/Escape Characters for HTTP.vi"/> <Item Name="LVPointTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVPointTypeDef.ctl"/> <Item Name="Check if File or Folder Exists.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Check if File or Folder Exists.vi"/> <Item Name="NI_FileType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/lvfile.llb/NI_FileType.lvlib"/> <Item Name="NI_PackedLibraryUtility.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/LVLibp/NI_PackedLibraryUtility.lvlib"/> <Item Name="Set Busy.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Set Busy.vi"/> <Item Name="Set Cursor.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Set Cursor.vi"/> <Item Name="Set Cursor (Cursor ID).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Set Cursor (Cursor ID).vi"/> <Item Name="Set Cursor (Icon Pict).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Set Cursor (Icon Pict).vi"/> <Item Name="Unset Busy.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Unset Busy.vi"/> </Item> </Item> <Item Name="Build Specifications" Type="Build"/> </Item> </Project>
LabVIEW
4
JamesBalisciano/gsharp
VIPM/Files/examples/AddQ/G#/DebugServer/G# - DebugServer.lvproj
[ "BSD-3-Clause" ]
'****************************************************************** '* Diffusion Example '* Author: Richard R Betson '* Date: 02/20/11 '* Language: Monkey '* Target: GLFW '****************************************************************** ' Linsence - Public Domain '****************************************************************** Import monkey Import mojo Global flag=0 Global clra:Int Function Main() New Diffusion End Function Class Diffusion Extends App Global fps,fp,fps_t Global mapx:Int[77900] Global mapx1:Int[77900] Global mapx2:Int[77900] Global mapx3:Int[77900] Global mapx4:Int[77900] Global clrr:Int[77900] Global clrb:Int[77900] Global clrr1:Int[77900] Global clrb1:Int[77900] Global ii Global fxsel_ttl Global fxsel Method OnCreate() fxsel_ttl=Millisecs()+9000 SetUpdateRate(30) SetLookUp() End Method Method OnUpdate() If fxsel_ttl<Millisecs() fxsel=fxsel+1 fxsel_ttl=Millisecs()+9000 If fxsel>4 Then fxsel=0 Endif ii=ii+1 Local x2=(160 + (Sin(ii)*90) ) Local y2=(120 + (Cos(ii)*90) ) Local x3=(160 + (-Sin(ii)*90) ) Local y3=(120 + (-Cos(ii)*90) ) 'Draw Line LineB(160,120,x2,y2) LineB(160,120,x3,y3) For Local zz=0 To 100 Local xz=Int(Rnd(50))+135 Local yz=Int(Rnd(50))+95 clrb1[ ( 320 *yz ) +xz ]=255 If zz>60 Then clrr1[ ( 320 *yz ) +xz ]=200 Next For Local y=1 To 240 For Local x= 1 To 320 'Apply mapping via lookup table If fxsel=0 clrr[ ( 320 *y ) +x ] = clrr1[ mapx[( 320 *y ) +x] ] clrb[ ( 320 *y ) +x ] = clrb1[ mapx[( 320 *y ) +x] ] Else If fxsel=1 clrr[ ( 320 *y ) +x ] = clrr1[ mapx1[( 320 *y ) +x] ] clrb[ ( 320 *y ) +x ] = clrb1[ mapx1[( 320 *y ) +x] ] Else If fxsel=2 clrr[ ( 320 *y ) +x ] = clrr1[ mapx2[( 320 *y ) +x] ] clrb[ ( 320 *y ) +x ] = clrb1[ mapx2[( 320 *y ) +x] ] Else If fxsel=3 clrr[ ( 320 *y ) +x ] = clrr1[ mapx3[( 320 *y ) +x] ] clrb[ ( 320 *y ) +x ] = clrb1[ mapx3[( 320 *y ) +x] ] Else If fxsel=4 clrr[ ( 320 *y ) +x ] = clrr1[ mapx4[( 320 *y ) +x] ] clrb[ ( 320 *y ) +x ] = clrb1[ mapx4[( 320 *y ) +x] ] Endif Next Next End Method Method OnRender() fps=fps+1 If fps_t<Millisecs() fp=(fps) fps_t=1000+Millisecs() fps=0 Endif PushMatrix() For Local y=1 To 240 For Local x= 1 To 320 'Blur Image and Fade Color Local r=clrr[ ( 320 *y ) + x ] Local sumr = ((r *4) + clrr[ ( 320 *y ) + x+1 ] + clrr[ ( 320 *y ) + x-1 ] + clrr[ ( 320 *y-1 ) + x ] + clrr[ ( 320 *y+1 ) + x ] ) /8 Local b=clrb[ ( 320 *y ) + x ] Local sumb = ((b *4) + clrb[ ( 320 *y ) + x+1 ] + clrb[ ( 320 *y ) + x-1 ] + clrb[ ( 320 *y-1 ) + x ] + clrb[ ( 320 *y+1 ) + x ] ) /8 Local sumg,g r=sumr-4 b=sumb-4 If r<10 Then r=10 If r>255 Then r=255 If b<0 Then b=0 If b>255 Then b=255 clrr1[ ( 320 *y ) + x ]=r clrb1[ ( 320 *y ) + x ]=b SetColor(r,0,b) DrawRect(x*2,y*2,2,2) Next Next 'Uncomment to see FPS 'SetColor(255,255,255) 'DrawText(fp,10,10) PopMatrix() End Method Function LineB(x1,y1,x2,y2) 'Ported 'Bresenham Line Algorithm 'Source - GameDev.Net - Mark Feldman 'Public Domain Local deltax = Abs(x2 - x1) Local deltay = Abs(y2 - y1) Local numpixels,d,dinc1,dinc2,xinc1,xinc2,yinc1,yinc2,x,y,i If deltax >= deltay numpixels = deltax + 1 d = (2 * deltay) - deltax dinc1 = deltay Shl 1 dinc2 = (deltay - deltax) Shl 1 xinc1 = 1 xinc2 = 1 yinc1 = 0 yinc2 = 1 Else numpixels = deltay + 1 d = (2 * deltax) - deltay dinc1 = deltax Shl 1 dinc2 = (deltax - deltay) Shl 1 xinc1 = 0 xinc2 = 1 yinc1 = 1 yinc2 = 1 Endif If x1 > x2 xinc1 = -xinc1 xinc2 = -xinc2 Endif If y1 > y2 yinc1 = -yinc1 yinc2 = -yinc2 Endif x = x1 y = y1 For i = 1 To numpixels If d < 0 d = d + dinc1 x = x + xinc1 y = y + yinc1 Else d = d + dinc2 x = x + xinc2 y = y + yinc2 Endif 'Draw line If x>0 And x<320 And y>0 And y<240 clrr1[ (( 320 *y )+x) ]=255 Endif Next End Function Method SetLookUp() Local ang For Local lui=0 To 4 ang=0 For Local y=1 To 240 For Local x= 1 To 320 ang=0 Local rad#=Abs((x-160)*(x-160)) + Abs( (y-120) * (y-120) ) If rad>0 rad= Sqrt(rad) Else rad=0 Endif If rad=0 Then rad=1 Local dx#=((x-160)/(rad)) Local dy#=((y-120)/(rad)) If lui=0 'Parabolic rad= 1-( ( rad*.93 - ( Cos(-rad)*(Sin(rad*22000)) )) * (-Cos(rad*.5) ) ) dx=(dx*Cos(ang) - dy*Sin(ang)) dy=(dy*Cos(ang) + dx*Sin(ang)) Local x1=Int(dx*rad)+(160) Local y1=Int(dy*rad)+(120) If y1<1 Then y1=1 If y1>240 Then y1=240 If x1<1 Then x1=1 If x1>320 Then x1=320 mapx[ ( 320 *y ) +x ] = ( 320 *y1 ) +x1'Int(x1) Else If lui=1 'Free Float ang=1 rad= 1-( ( rad- (Sin(rad*900)*-Cos(rad*900)*.5 )*3.1415926 ) * (-Cos((3.1415926) ) )*.9 ) Local x1=Int(dx*rad)+(160) Local y1=Int(dy*rad)+(120) x1= ( x1*Cos(ang) - y1*Sin(ang) ) y1= ( x1*Sin(ang) + y1*Cos(ang) ) If y1<1 Then y1=1 If y1>240 Then y1=240 If x1<1 Then x1=1 If x1>320 Then x1=320 mapx2[ ( 320 *y ) +x ] = ( 320 *y1 ) +x1'Int(x1) Else If lui=2 'Burst rad= 2-( ( rad- (Sin(rad*4000)*(-Cos(rad*2000)*.9) )*3.1415926 ) * (-Cos((3.1415926) ) )*.8 ) dx=(dx*Cos(ang) - dy*Sin(ang)) dy=(dy*Cos(ang) + dx*Sin(ang)) Local x1=Int(dx*rad)+(160) Local y1=Int(dy*rad)+(120) If y1<1 Then y1=1 If y1>240 Then y1=240 If x1<1 Then x1=1 If x1>320 Then x1=320 mapx1[ ( 320 *y ) +x ] = ( 320 *y1 ) +x1'Int(x1) Else If lui=3 'Orb rad= 2-( ( rad- (Sin(rad)*(Cos(rad)*2.5) )*3.1415926 ) * (-Cos((3.1415926) ))*.97 ) dx=(dx*Cos(ang) - dy*Sin(ang)) dy=(dy*Cos(ang) + dx*Sin(ang)) Local x1=Int(dx*rad)+(160) Local y1=Int(dy*rad)+(120) If y1<1 Then y1=1 If y1>240 Then y1=240 If x1<1 Then x1=1 If x1>320 Then x1=320 mapx3[ ( 320 *y ) +x ] = ( 320 *y1 ) +x1'Int(x1) Else If lui=4 'Swirl ang=-3 rad= 1-( ( rad- (Sin(rad)*-Cos(rad)*.9 )*3.1415926 ) * (-Cos((3.1415926) ) )*.9 ) dx=(dx*Cos(ang) - dy*Sin(ang)) dy=(dy*Cos(ang) + dx*Sin(ang)) Local x1=Int(dx*rad)+(160) Local y1=Int(dy*rad)+(120) If y1<1 Then y1=1 If y1>240 Then y1=240 If x1<1 Then x1=1 If x1>320 Then x1=320 mapx4[ ( 320 *y ) +x ] = ( 320 *y1 ) +x1'Int(x1) Endif Next Next Next End Method End Class
Monkey
4
blitz-research/monkey
bananas/Richard_Betson/glfw_diffusion/glfw_diffusion_example.monkey
[ "Zlib" ]
a ← 3 2 ⍴ ⍳ 6 ×/ (+/ a) ⍝ 1 2 --> 3 ⍝ 3 4 --> 7 ⍝ 5 6 --> 11 ⍝ -- ⍝ 21×11=231
APL
4
mbudde/apltail
tests/test9.apl
[ "MIT" ]
PROGRAM_NAME='RelayConfig' // Relay config definitions. #if_not_defined __RELAY_CONFIG__ #define __RELAY_CONFIG__ #include 'Debug.axi' #include 'ConfigUtils.axi' #include 'ConfigServerUtils.axi' DEFINE_CONSTANT MAX_RELAYS = 100 RELAY_TYPE_UNKNOWN = 0 RELAY_TYPE_ACTIVE = 1 RELAY_TYPE_PASSIVE = 2 DEFINE_TYPE structure RelayGeneral { integer mEnabled // Whether relays are even present in this system dev mDevControl // Device for AMX internal control integer mTpPort // Port for Touch Panel events } structure RelayItem { integer mId char mName[32] char mShortName[32] int mType devchan mDevChan1 devchan mDevChan2 } DEFINE_CONSTANT READING_NONE = 0 READING_GENERAL = 1 READING_RELAY = 2 DEFINE_VARIABLE volatile RelayGeneral gGeneral volatile RelayItem gRelays[MAX_RELAYS] volatile integer gThisItem = 0 volatile integer gReadMode = READING_NONE DEFINE_FUNCTION handleHeading (char moduleName[], char heading[]) { debug (moduleName, 8, "'read config heading: <',heading,'>'") switch (heading) { case 'general': { gReadMode = READING_GENERAL break } case 'relay': { gReadMode = READING_RELAY break } default: { debug (moduleName, 0, "'unknown config heading: ',heading") } } } DEFINE_FUNCTION handleProperty (char moduleName[], char propName[], char propValue[]) { debug (moduleName, 8, "'read config property (',propName,'): <',propValue,'>'") switch (gReadMode) { case READING_GENERAL: { switch (propName) { case 'enabled': { lower_string (propValue) gGeneral.mEnabled = (propValue = 'true' || propValue = 't' || propValue = 1) break } case 'dev-control': { parseDev (gGeneral.mDevControl, propValue) break } case 'tp-port': { gGeneral.mTpPort = atoi(propValue) break } } // switch } case READING_RELAY: { switch (propName) { case 'id': { gThisItem = atoi(propValue) gRelays[gThisItem].mId = gThisItem break } case 'name': { gRelays[gThisItem].mName = propValue if (gRelays[gThisItem].mShortName = '') { // Copy to the short name (may be overridden) gRelays[gThisItem].mShortName = propValue } break } case 'type': { gRelays[gThisItem].mType = relayTypeFromStr (propValue) } case 'short-name': { gRelays[gThisItem].mShortName = propValue break } case 'dev-chan': { parseDev (gRelays[gThisItem].mDevChan1.device, propValue) remove_string (propValue,',',1) gRelays[gThisItem].mDevChan1.channel = atoi(propValue) break } case 'on-dev-chan': { parseDev (gRelays[gThisItem].mDevChan1.device, propValue) remove_string (propValue,',',1) gRelays[gThisItem].mDevChan1.channel = atoi(propValue) break } case 'off-dev-chan': { parseDev (gRelays[gThisItem].mDevChan2.device, propValue) remove_string (propValue,',',1) gRelays[gThisItem].mDevChan2.channel = atoi(propValue) break } } // switch } default: { debug (moduleName, 1, "'error: property with no heading (',propName,'): <',propValue,'>'") } } } DEFINE_FUNCTION integer relayTypeFromStr (char str[]) { lower_string (str) switch (str) { case 'passive': return RELAY_TYPE_PASSIVE case 'active': return RELAY_TYPE_ACTIVE default: return RELAY_TYPE_UNKNOWN } } DEFINE_START gGeneral.mTpPort = 1 // Anything but zero #end_if // __RELAY_CONFIG__
NetLinx
4
ajnavarro/language-dataset
data/github.com/rverstappen/AMX/f51a7770e767a8c77b4dead77314c410f23e125f/NetLinx/RelayConfig.axi
[ "MIT" ]
(*********************************************************** BSS SOUNDWEB LONDON API TESTS Website: https://github.com/amclain/amx-lib-bss These functions test the library's functionality. ************************************************************) PROGRAM_NAME='bss-tests' (***********************************************************) (***********************************************************) (* System Type : NetLinx *) (***********************************************************) (* INCLUDES GO BELOW *) (***********************************************************) #include 'amx-test-suite' #include 'amx-lib-bss' DEFINE_DEVICE //dvTelnet = 0:first_local_port:0; (***********************************************************) (* CONSTANT DEFINITIONS GO BELOW *) (***********************************************************) DEFINE_CONSTANT TEST_OBJECT[] = {$01, $02, $03, $04, $05, $06, $07, $08}; TEST_OBJECT_ESCAPED[] = {$01, BSS_ESC, $82, BSS_ESC, $83, $04, $05, BSS_ESC, $86, $07, $08}; (***********************************************************) (* TEST DEFINITIONS GO BELOW *) (***********************************************************) DEFINE_MUTUALLY_EXCLUSIVE define_function testSuiteRun() { //ip_client_open(first_local_port, '10.0.20.51', 23, IP_TCP); //combine_devices(vdvBSS, dvTelnet); testLongToByte(); testEncodeDecode(); testCommands(); //uncombine_devices(vdvBSS); //ip_client_close(first_local_port); } define_function testLongToByte() { char bytes[4]; bytes = _bssLongToByte($01b2c3d4); assertString(bytes, "$01, $b2, $c3, $d4", 'Assert long to byte.'); bytes = _bssLongToByte(type_cast(-11163017)); assertString(bytes, "$ff, $55, $aa, $77", 'Assert negative long to byte.'); } define_function testEncodeDecode() { double d; slong l; d = -20; // Test -20dB. // PROBLEMS WITH HOW AMX HANDLES THE SOUNDWEB GAIN SCALING EQUATION. // It looks like log10 is returning 0 due to a function call error. //testSuitePrint("'fn: ', ftoa((log10_value(abs_value(d / 10)) * -1 * 200000) - 100000)"); //testSuitePrint("'slong: ', ftoa(d)"); //testSuitePrint("'value: ', itoa(bssEncodeGain(d))"); //testSuitePrint("'value: ', itohex(bssEncodeGain(d))"); //assert(bssEncodeGain(d) == -160205, 'Encode gain.'); } define_function testCommands() { bssSet(TEST_OBJECT, 0); assertEventString(vdvBSS, "BSS_STX, BSS_DI_SETSV, TEST_OBJECT_ESCAPED, $00, $00, $00, $00, $80, BSS_ETX", 'BSS set.'); bssSubscribe(TEST_OBJECT, 0); assertEventString(vdvBSS, "BSS_STX, BSS_DI_SUBSCRIBESV, TEST_OBJECT_ESCAPED, $00, $00, $00, $00, $81, BSS_ETX", 'BSS subscribe.'); bssUnsubscribe(TEST_OBJECT); assertEventString(vdvBSS, "BSS_STX, BSS_DI_UNSUBSCRIBESV, TEST_OBJECT_ESCAPED, $00, $82, BSS_ETX", 'BSS unsubscribe.'); bssVenueRecall(0); assertEventString(vdvBSS, "BSS_STX, BSS_DI_VENUE_PRESET_RECALL, $00, $00, $00, $00, $8B, BSS_ETX", 'BSS venue recall.'); bssPresetRecall(0); assertEventString(vdvBSS, "BSS_STX, BSS_DI_PARAM_PRESET_RECALL, $00, $00, $00, $00, $8C, BSS_ETX", 'BSS preset recall.'); bssSetPercent(TEST_OBJECT, 0); assertEventString(vdvBSS, "BSS_STX, BSS_DI_SETSVPERCENT, TEST_OBJECT_ESCAPED, $00, $00, $00, $00, $85, BSS_ETX", 'BSS set percent.'); bssSetPercent(TEST_OBJECT, 50); assertEventString(vdvBSS, "BSS_STX, BSS_DI_SETSVPERCENT, TEST_OBJECT_ESCAPED, $00, $32, $00, $00, $B7, BSS_ETX", 'BSS set percent 50%.'); bssSubscribePercent(TEST_OBJECT, 0); assertEventString(vdvBSS, "BSS_STX, BSS_DI_SUBSCRIBESVPERCENT, TEST_OBJECT_ESCAPED, $00, $00, $00, $00, $86, BSS_ETX", 'BSS subscribe percent.'); bssUnsubscribePercent(TEST_OBJECT); assertEventString(vdvBSS, "BSS_STX, BSS_DI_UNSUBSCRIBESVPERCENT, TEST_OBJECT_ESCAPED, $00, $87, BSS_ETX", 'BSS unsubscribe percent.'); bssBumpPercent(TEST_OBJECT, 0); assertEventString(vdvBSS, "BSS_STX, BSS_DI_BUMPSVPERCENT, TEST_OBJECT_ESCAPED, $00, $00, $00, $00, $98, BSS_ETX", 'BSS bump percent.'); } (***********************************************************) (* THE EVENTS GO BELOW *) (***********************************************************) DEFINE_EVENT data_event[vdvBSS] { string: { testSuiteEvent e; e.device = vdvBSS; e.str = data.text; e.type = TEST_SUITE_EVENT_STRING; testSuiteEventTriggered(e); //debug = data.text; /* // WIRESHARK VERIFICATION { local_var char temp[BSS_MAX_PACKET_LEN]; temp = data.text; ip_client_open(49000, '192.168.0.37', 23, IP_TCP); wait 5 { send_string 0:49000:0, temp; wait 5 { ip_client_close(49000); } } } */ } } (***********************************************************) (* END OF PROGRAM *) (* DO NOT PUT ANY CODE BELOW THIS COMMENT *) (***********************************************************)
NetLinx
4
marselle001/amx-lib-bss
tests/bss-tests.axs
[ "Apache-2.0" ]
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -18.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -21.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -51.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -76.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 4.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -68.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 37.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -116.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 69.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -193.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 119.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -242.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 189.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -218.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 158.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -249.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -18.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -10.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -62.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -3.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -69.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -13.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -18.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -93.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 46.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -103.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 29.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -167.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 114.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -178.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 118.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -184.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -18.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 -5.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -67.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 -22.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -50.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 -52.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 21.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 -105.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 58.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 -134.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 60.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 -188.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 135.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 -234.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 174.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 -233.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 -18.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -93.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 21.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -130.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 58.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -152.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 121.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -160.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 113.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -193.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 119.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -248.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 195.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -232.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 172.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -285.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 -18.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -61.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 -11.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -112.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 40.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -142.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 111.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -126.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 79.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -117.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 43.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -182.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 129.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -239.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 179.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -291.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -21.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 -10.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -84.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -119.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 9.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -121.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 -43.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -113.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -173.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 -8.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -91.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 24.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -84.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 21.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -21.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -5.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -89.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -19.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -100.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -30.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -82.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -55.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -101.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -31.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -142.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -29.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -70.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -32.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -28.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -28.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -21.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -93.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -1.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -127.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 8.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -130.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 18.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -110.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -46.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -90.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -83.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -89.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -10.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -30.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -30.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -80.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -21.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -61.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -33.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -109.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -10.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -120.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 8.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -76.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -80.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -14.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -159.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -23.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -76.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -37.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -23.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -86.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -10.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -5.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -16.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -30.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -45.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -103.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -59.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -110.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -11.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -54.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -67.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -119.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -30.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -107.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 37.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -68.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 -10.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -93.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 72.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -138.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 63.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -203.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 41.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -165.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 44.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -113.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 -8.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -179.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 30.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -105.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 35.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -120.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 -10.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -61.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 40.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -120.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 45.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -193.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 31.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -131.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 10.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -37.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 -84.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -113.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 -36.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -112.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 42.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -126.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 -5.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -93.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 53.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -143.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 24.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -184.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 29.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -126.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 13.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -101.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 -29.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -148.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 -26.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -84.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 -14.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -64.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 -5.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -61.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 21.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -125.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 6.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -174.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 19.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -92.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 -21.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -25.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 -105.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -82.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 -92.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -91.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 -7.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -70.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -93.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -61.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -87.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -37.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -94.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -66.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -36.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 8.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -80.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 30.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -165.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -23.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -90.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -31.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -59.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -72.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 -237.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 -439.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 -374.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 -423.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 -475.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 -481.00
Matlab
0
yinrun/LOPDC-Benchmarks
jobshop/matlab/js-6-8-36.matlab
[ "MIT" ]
<div class="mat-grid-tile-content"> <ng-content></ng-content> </div>
HTML
2
tungyingwaltz/components
src/material/grid-list/grid-tile.html
[ "MIT" ]
doc "A top-level function, with multi-line documentation." void topLevel(String? a, Integer b=5, String... seqs) { function nested(String s) { print(s[1..2]); return true; } for (s in seqs.filter((String x) x.size > 2)) { nested(s); } value uppers = seqs.sequence[].uppercased; String|Nothing z = a; Sequence<Integer> ints = { 1, 2, 3, 4, 5 }; } shared class Example<Element>(name, element) satisfies Comparable<Example<Element>> given Element satisfies Comparable<Element> { shared String name; shared Element element; shared actual Comparison compare(Example<Element> other) { return element <=> other.element; } shared actual String string { return "Example with " + element.string; } } Example<Integer> instance = Example { name = "Named args call"; element = 5; };
Ceylon
5
koron/pygments.rb
vendor/pygments-main/tests/examplefiles/example.ceylon
[ "MIT" ]
/* Copyright (c) <2003-2016> <Newton Game Dynamics> * * 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 */ #version 120 void main() { gl_FragColor = gl_Color; }
PostScript
3
execomrt/newton-dynamics
newton-4.00/applications/media/shaders/SolidColor.ps
[ "Zlib" ]
global function AddNorthstarCustomMatchSettingsMenu global function SetNextMatchSettingsCategory const string SETTING_ITEM_TEXT = " " // this is long enough to be the same size as the textentry field struct { string currentCategory table< int, int > enumRealValues } file void function AddNorthstarCustomMatchSettingsMenu() { AddMenu( "CustomMatchSettingsMenu", $"resource/ui/menus/custom_match_settings.menu", InitNorthstarCustomMatchSettingsMenu, "#MENU_MATCH_SETTINGS" ) } void function SetNextMatchSettingsCategory( string category ) { file.currentCategory = category Hud_SetText( Hud_GetChild( GetMenu( "CustomMatchSettingsMenu" ), "Title" ), Localize( "#MENU_MATCH_SETTINGS_SUBMENU", Localize( category ) ) ) print( "Category: " + category ) file.enumRealValues.clear() } void function InitNorthstarCustomMatchSettingsMenu() { AddMenuEventHandler( GetMenu( "CustomMatchSettingsMenu" ), eUIEvent.MENU_OPEN, OnNorthstarCustomMatchSettingsMenuOpened ) AddMenuFooterOption( GetMenu( "CustomMatchSettingsMenu" ), BUTTON_B, "#B_BUTTON_BACK", "#BACK" ) foreach ( var button in GetElementsByClassname( GetMenu( "CustomMatchSettingsMenu" ), "MatchSettingButton" ) ) { // it's not possible to clear dialoglists, so we have to hack together stuff that effectively recreates their functionality Hud_DialogList_AddListItem( button, SETTING_ITEM_TEXT, "prev" ) Hud_DialogList_AddListItem( button, SETTING_ITEM_TEXT, "main" ) Hud_DialogList_AddListItem( button, SETTING_ITEM_TEXT, "next" ) AddButtonEventHandler( button, UIE_CHANGE, OnSettingButtonPressed ) } foreach ( var textPanel in GetElementsByClassname( GetMenu( "CustomMatchSettingsMenu" ), "MatchSettingTextEntry" ) ) Hud_AddEventHandler( textPanel, UIE_LOSE_FOCUS, SendTextPanelChanges ) } void function OnNorthstarCustomMatchSettingsMenuOpened() { array<var> buttons = GetElementsByClassname( GetMenu( "CustomMatchSettingsMenu" ), "MatchSettingButton" ) array<var> textPanels = GetElementsByClassname( GetMenu( "CustomMatchSettingsMenu" ), "MatchSettingTextEntry" ) foreach ( var button in buttons ) { Hud_SetEnabled( button, false ) Hud_SetVisible( button, false ) } foreach ( var textPanel in textPanels ) { Hud_SetEnabled( textPanel, false ) Hud_SetVisible( textPanel, false ) } int i = 0; foreach ( CustomMatchSettingContainer setting in GetPrivateMatchCustomSettingsForCategory( file.currentCategory ) ) { Hud_SetEnabled( buttons[ i ], true ) Hud_SetVisible( buttons[ i ], true ) Hud_SetText( buttons[ i ], setting.localizedName ) Hud_SetDialogListSelectionValue( buttons[ i ], "main" ) Hud_SetEnabled( textPanels[ i ], true ) Hud_SetVisible( textPanels[ i ], true ) // manually resolve default gamemode/playlist vars since game won't do it for us if we aren't using GetCurrentPlaylistVar string gamemode = PrivateMatch_GetSelectedMode() if ( gamemode != "speedball" ) // hack since lf is weird gamemode = GetPlaylistGamemodeByIndex( gamemode, 0 ) string gamemodeVar = GetGamemodeVarOrUseValue( PrivateMatch_GetSelectedMode(), setting.playlistVar, setting.defaultValue ) string playlistVar = GetPlaylistVarOrUseValue( PrivateMatch_GetSelectedMode(), setting.playlistVar, setting.defaultValue ) if ( playlistVar != gamemodeVar && playlistVar == setting.defaultValue ) playlistVar = gamemodeVar if ( setting.isEnumSetting ) { // setup internal state for enums int enumIndex = int ( max( 0, setting.enumValues.find( playlistVar ) ) ) file.enumRealValues[ int( Hud_GetScriptID( textPanels[ i ] ) ) ] <- enumIndex Hud_SetText( textPanels[ i ], setting.enumNames[ enumIndex ] ) } else Hud_SetText( textPanels[ i ], playlistVar ) i++ } } void function OnSettingButtonPressed( var button ) { CustomMatchSettingContainer setting = GetPrivateMatchCustomSettingsForCategory( file.currentCategory )[ int( Hud_GetScriptID( button ) ) ] var textPanel = GetElementsByClassname( GetMenu( "CustomMatchSettingsMenu" ), "MatchSettingTextEntry" )[ int( Hud_GetScriptID( button ) ) ] if ( setting.isEnumSetting ) { string selectionVal = Hud_GetDialogListSelectionValue( button ) if ( selectionVal == "main" ) return int enumVal = file.enumRealValues[ int( Hud_GetScriptID( button ) ) ] if ( selectionVal == "next" ) // enum val += 1 enumVal = ( enumVal + 1 ) % setting.enumValues.len() else // enum val -= 1 { enumVal-- if ( enumVal == -1 ) enumVal = setting.enumValues.len() - 1 } file.enumRealValues[ int( Hud_GetScriptID( button ) ) ] = enumVal Hud_SetText( textPanel, setting.enumNames[ enumVal ] ) ClientCommand( "PrivateMatchSetPlaylistVarOverride " + setting.playlistVar + " " + setting.enumValues[ enumVal ] ) } else { // this doesn't work for some reason Hud_SetFocused( textPanel ) } Hud_SetDialogListSelectionValue( button, "main" ) } void function SendTextPanelChanges( var textPanel ) { CustomMatchSettingContainer setting = GetPrivateMatchCustomSettingsForCategory( file.currentCategory )[ int( Hud_GetScriptID( textPanel ) ) ] // enums don't need to do this if ( !setting.isEnumSetting ) ClientCommand( "PrivateMatchSetPlaylistVarOverride " + setting.playlistVar + " " + Hud_GetUTF8Text( textPanel ) ) }
Squirrel
4
GeckoEidechse/NorthstarMods
Northstar.Client/mod/scripts/vscripts/ui/menu_ns_custom_match_settings.nut
[ "MIT" ]
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -65.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -85.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -48.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -73.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -70.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -82.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -7.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -42.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -54.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -42.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -80.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 5.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -67.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -31.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -12.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -87.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 25.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -157.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 79.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -159.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 82.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -173.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 66.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -160.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -65.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -52.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -81.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -84.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -59.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -71.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -18.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -63.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -33.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -133.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -73.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 11.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -124.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 81.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -202.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 140.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -270.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 192.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -294.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 217.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -270.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 163.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -300.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -65.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -57.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -76.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -79.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -64.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -102.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -76.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -20.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -137.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 15.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -137.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 75.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -113.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 70.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -151.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 89.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -216.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 138.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -219.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 142.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -276.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 169.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -336.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -65.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -79.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -54.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -35.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -108.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 4.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -93.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 10.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -106.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -40.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -82.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -37.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -25.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -44.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -37.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -25.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -43.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -35.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -55.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -22.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -51.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -56.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -73.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -65.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -74.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -59.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -32.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -111.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -26.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -63.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -14.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -82.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -40.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -82.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -32.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -30.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -76.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 33.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -102.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 40.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -141.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 63.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -174.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 97.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -233.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 126.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -280.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -65.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -7.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -126.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -5.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -138.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 17.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -106.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -95.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 6.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -128.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -3.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -59.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -55.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 12.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -70.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 8.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -60.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -18.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -39.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -38.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -59.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -48.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -45.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -65.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -50.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -83.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 11.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -154.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 39.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -128.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 86.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -182.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 92.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -214.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 150.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -212.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 100.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -143.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 88.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -150.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 62.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -140.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 52.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -129.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 41.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -148.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 43.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -65.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -76.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -57.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -42.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -101.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -59.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -30.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -72.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -24.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -115.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -7.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -113.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 51.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -147.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 104.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -188.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 126.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -262.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 184.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -292.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 215.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -262.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 155.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -275.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -65.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -61.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -72.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -94.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -49.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -115.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 26.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -63.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -33.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -118.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -4.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -81.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 19.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -90.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 47.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -86.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 24.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -165.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 87.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -164.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 87.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -225.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 118.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -245.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -85.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -52.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -86.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -64.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -66.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -66.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -46.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -56.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 7.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -105.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 56.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -113.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 2.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -169.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 15.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -193.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 24.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -204.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 70.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -178.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 84.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -148.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 70.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -167.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -85.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -57.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -81.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -59.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -71.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -97.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -15.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -69.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 20.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -109.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 60.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -177.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 66.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -158.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 4.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -142.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -27.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -150.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 16.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -103.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 9.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -154.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 76.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -203.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -85.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -79.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -59.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -15.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -115.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 9.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -121.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 17.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -66.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -12.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -37.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -77.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -34.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -89.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -65.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -28.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -141.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 23.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -157.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 61.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -155.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 71.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -149.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 60.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -85.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -74.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -64.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -12.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -118.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -21.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -91.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -7.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -42.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -12.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -37.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -72.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -39.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -121.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -33.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -93.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -76.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -75.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -59.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -58.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -36.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -111.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 33.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -147.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -85.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -7.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -131.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 15.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -145.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 22.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -134.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 6.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -55.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 34.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -83.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -43.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -68.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -100.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -54.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -61.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -108.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 6.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -140.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 77.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -171.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 63.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -141.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 88.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -85.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -50.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -88.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 31.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -161.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 44.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -156.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 93.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -142.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 120.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -169.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 110.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -221.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 55.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -209.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 97.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -266.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 128.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -262.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 168.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -262.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 163.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -241.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 176.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -85.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -76.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -62.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -22.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -108.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -54.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -58.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -65.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 16.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -87.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 38.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -153.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 42.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -192.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 38.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -179.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 10.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -196.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 62.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -176.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 82.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -140.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 62.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -142.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -85.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -61.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -77.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -74.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -56.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -110.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -2.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -56.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 7.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -90.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 41.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -121.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 10.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -135.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -19.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -77.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -92.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -99.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -35.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -48.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -46.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -103.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 25.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -112.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -52.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -57.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -92.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -92.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -60.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -86.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -36.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -80.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -71.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -88.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -18.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -86.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -27.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -80.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -111.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -49.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -140.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -35.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -119.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -88.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -19.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -64.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -106.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -52.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -79.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -70.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -48.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -104.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 20.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -142.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 6.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -157.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 9.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -115.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 14.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -127.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -11.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -180.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 65.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -254.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 138.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -292.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 174.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -252.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 206.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -289.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 157.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -52.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -74.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -75.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -45.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -107.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -10.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -112.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -18.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -133.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 9.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -115.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 19.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -132.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -43.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -148.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -189.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 40.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -194.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 55.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -133.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 24.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -107.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -50.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -52.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -7.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -142.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -18.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -134.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 33.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -155.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -5.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -146.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 55.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -161.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 48.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -161.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -22.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -169.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 32.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -221.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 121.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -275.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 190.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -268.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 198.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -281.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 185.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -52.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -50.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -99.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -2.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -150.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 55.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -177.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 82.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -233.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 141.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -247.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 201.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -314.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 133.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -324.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 190.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -379.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 243.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -397.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 281.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -359.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 298.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -381.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 273.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -52.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -76.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -73.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -55.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -97.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -43.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -79.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -76.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -75.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -66.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -40.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -62.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -51.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -114.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -77.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -86.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -103.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -81.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -73.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -63.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -15.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -5.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -78.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -45.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -52.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -61.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -88.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -107.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -45.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -99.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -23.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -67.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -84.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -69.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -37.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -30.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -83.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -57.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -134.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 16.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -205.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 16.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -170.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 65.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -143.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 32.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -115.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -15.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -57.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -79.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -65.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -43.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -135.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 15.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -155.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 37.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -161.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 22.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -179.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 18.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -116.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 53.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -129.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 54.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -200.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 87.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -217.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 120.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -258.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 131.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 -325.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 163.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -57.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -74.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -70.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -40.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -138.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -15.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -125.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 13.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -137.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 22.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -179.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 23.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -121.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 21.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -97.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -11.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -135.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -11.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -119.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -139.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -51.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 -143.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -44.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -57.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -7.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -137.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -13.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -165.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 28.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -168.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 26.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -150.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 68.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -225.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 52.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -150.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 42.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -118.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 21.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -167.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 70.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -200.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 136.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -274.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 123.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 -317.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 191.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -57.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -50.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -94.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 3.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -181.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 50.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -190.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 113.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -237.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 154.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -311.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 205.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -303.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 197.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -273.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 179.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -325.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 192.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -322.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 227.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -365.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 223.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 -417.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 279.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -57.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -76.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -68.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -50.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -128.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -48.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -92.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -45.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -79.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -53.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -104.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -58.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -40.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -50.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -26.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -97.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -49.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -132.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 2.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -117.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -21.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -80.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 -114.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -39.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -57.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -61.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -83.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -102.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -76.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -104.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -36.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -36.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -88.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -56.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -101.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -26.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -72.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 7.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -83.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 5.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -151.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -35.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -95.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 11.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -149.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -43.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 -151.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -9.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -79.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -74.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -26.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -18.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -32.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -59.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -39.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -93.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -40.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -64.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -79.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -74.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -52.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -79.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 17.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -80.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 38.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -125.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 45.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -172.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 86.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -215.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 0.00 120.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 0.00 -269.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -79.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -7.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -93.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 9.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -59.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -16.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -82.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -80.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -53.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -18.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -125.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -45.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -81.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -58.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -4.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -48.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 6.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -44.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -36.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -37.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -49.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -41.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -54.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 0.00 -34.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -79.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 -50.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -50.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 25.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -75.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 6.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -104.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 7.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -140.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 68.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -211.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 108.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -234.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 97.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -159.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 110.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -152.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 78.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -158.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 54.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -140.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 59.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 0.00 -154.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 54.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 -79.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -76.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 -24.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -28.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 -22.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -92.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 -6.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -151.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 18.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -139.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 -4.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -155.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 29.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -150.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 88.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -166.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 124.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -246.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 166.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -290.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 204.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -244.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 149.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 0.00 -264.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 -79.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -61.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 -39.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -80.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 30.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -148.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 50.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -142.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 9.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -142.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 -1.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -123.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 -3.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -93.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 31.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -64.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 22.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -149.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 69.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -162.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 76.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -207.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 0.00 112.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 1.00 0.00 -234.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -74.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 -7.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -90.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 4.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -89.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 -19.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -106.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 -50.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -53.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 6.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -120.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 -45.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -113.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 -63.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -69.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 -16.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -92.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 21.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -155.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 61.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -231.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 78.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 0.00 -261.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 0.00 148.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -74.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 -50.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -47.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 20.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -105.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 3.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -128.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 37.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -140.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 92.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -206.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 108.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -266.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 92.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -224.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 142.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -250.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 143.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -277.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 152.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -322.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 178.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 0.00 -361.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 0.00 236.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -74.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -76.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -21.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -33.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -52.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -95.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -30.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -121.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 18.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -115.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -155.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -3.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -155.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 23.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -134.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 26.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -181.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 47.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -192.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 22.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -125.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 0.00 -58.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 0.00 -82.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -74.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -61.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -36.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -85.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -151.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 26.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -112.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 9.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -118.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 4.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -123.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -35.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -98.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -34.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -32.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -76.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -84.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -50.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -64.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -106.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -88.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 0.00 -95.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 0.00 1.00 0.00 -52.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -7.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -50.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -20.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -47.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -62.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -24.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -115.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 -6.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -94.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 79.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -177.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 62.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -245.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 63.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -192.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 121.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -169.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 111.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -142.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 71.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -148.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 43.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 0.00 -126.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 0.00 62.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 -7.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -76.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 6.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -100.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 -9.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -122.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 -17.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -164.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 64.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -128.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 30.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -201.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 18.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -184.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 55.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -155.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 107.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -213.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 182.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -273.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 196.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -260.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 0.00 177.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 0.00 -256.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 -7.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -61.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 -9.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -152.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 43.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -178.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 39.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -155.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 55.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -131.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 33.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -169.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 -14.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -127.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 -2.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -53.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 5.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -116.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 85.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -145.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 68.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -223.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 0.00 140.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 0.00 1.00 0.00 -226.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 -50.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -76.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 22.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -57.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 13.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -138.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 70.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -186.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 150.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -215.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 183.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -287.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 173.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -337.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 213.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -310.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 229.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -371.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 273.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -395.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 296.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -351.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 0.00 265.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 0.00 -356.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 -50.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -61.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 7.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -109.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 65.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -194.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 126.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -177.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 141.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -218.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 186.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -255.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 141.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -280.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 156.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -208.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 127.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -274.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 176.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -267.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 168.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -314.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 0.00 228.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 0.00 1.00 0.00 -326.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -76.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -61.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -46.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -83.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -33.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -141.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -32.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -79.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -66.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -60.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -77.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -48.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -106.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -17.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -120.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 39.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -197.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 2.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -168.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 57.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -135.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 30.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 0.00 -90.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 1.00 0.00 -23.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 -572.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 -665.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 -805.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 -1.00 -841.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 -1.00 -578.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00 -1.00 -785.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00 -1.00 -550.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00 -1.00 -462.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00 -1.00 -780.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00 -1.00 -750.00
Matlab
0
yinrun/LOPDC-Benchmarks
jobshop/matlab/js-10-12-19.matlab
[ "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. ==============================================================================*/ #include "tensorflow/python/framework/python_tensor_converter.h" #include "absl/strings/str_cat.h" #include "tensorflow/python/eager/pywrap_tensor.h" #include "tensorflow/python/eager/pywrap_tfe.h" #include "tensorflow/python/util/util.h" #if PY_MAJOR_VERSION < 3 // Python 2.x: #define PY_INT_AS_LONG(x) (PyInt_AsLong(x)) #define PY_STRING_INTERN_FROM_STRING(x) (PyString_InternFromString(x)) #else // Python 3.x: #define PY_INT_AS_LONG(x) (PyLong_AsLong(x)) #define PY_STRING_INTERN_FROM_STRING(x) (PyUnicode_InternFromString(x)) #endif namespace tensorflow { namespace { // Returns `tensor.dtype._type_enum` as a DataType enum. Assumes that `tensor` // is a python `Tensor` object. // // On error: sets a python AttributeError exception and returns DT_INVALID. DataType DataTypeForTensor(PyObject* tensor) { static PyObject* dtype_attr = PY_STRING_INTERN_FROM_STRING("dtype"); static PyObject* type_enum_attr = PY_STRING_INTERN_FROM_STRING("_type_enum"); Safe_PyObjectPtr py_dtype(PyObject_GetAttr(tensor, dtype_attr)); if (!py_dtype) return DT_INVALID; Safe_PyObjectPtr enum_field(PyObject_GetAttr(py_dtype.get(), type_enum_attr)); if (!enum_field) return DT_INVALID; DataType result = static_cast<DataType>(PY_INT_AS_LONG(enum_field.get())); return result; } // Check that actual_dtype == expected_dtype. If not, set an exception and // return false. (If expected_dtype is DT_INVALID, then instead simply update // its value to `actual_dtype` and return true.) bool CheckDType(DataType actual_dtype, DataType& expected_dtype) { if (expected_dtype == DT_INVALID) { expected_dtype = actual_dtype; // set output parameter. } else if (expected_dtype != actual_dtype) { PyErr_SetString(PyExc_TypeError, absl::StrCat("Expected ", DataType_Name(expected_dtype), " but got ", DataType_Name(actual_dtype)) .c_str()); return false; } return true; } } // namespace Safe_PyObjectPtr PythonTensorConverter::Convert(PyObject* src, DataType& dtype, bool* used_fallback) const { // First, try converting `src` to a Tensor without calling back into Python. if (ctx_) { // Eager mode // TODO(b/164980194): Handle resource variables as well. (See // ConvertToTensor function in pywrap_tfe_src.cc). if (EagerTensor_CheckExact(src)) { // `src` is already an eager tensor; check its type, and return it as-is. if (!CheckDType(PyEagerTensor_Dtype(src), dtype)) return nullptr; Py_INCREF(src); return Safe_PyObjectPtr(src); } else { TFE_TensorHandle* handle = tensorflow::ConvertToEagerTensor(ctx_, src, dtype, device_name_); if (handle) { Safe_PyObjectPtr result(EagerTensorFromHandle(handle)); if (!CheckDType(PyEagerTensor_Dtype(result.get()), dtype)) { return nullptr; } return result; } else { PyErr_Clear(); } } } else { // Graph mode if (swig::IsTensor(src)) { DataType src_dtype = DataTypeForTensor(src); if (src_dtype == DT_INVALID) return nullptr; if (!CheckDType(src_dtype, dtype)) return nullptr; Py_INCREF(src); return Safe_PyObjectPtr(src); } } // Fallback: use the Python tf.convert_to_tensor function. // Currently this is used: // // * In Eager mode: for anything that's not already an Eager tensor, or // handled by `tensorflow::ConvertToEagerTensor`. (At time of writing // for this comment, ConvertToEagerTensor handles simple values like ints, // nested lists of simple values, and numpy arrays.) // * In graph mode: for anything that's not already a tensor. // // TODO(b/164980194) Reduce/eliminate cases where fallback is used. if (used_fallback) *used_fallback = true; static PyObject* convert_to_tensor = swig::GetRegisteredPyObject("tf.convert_to_tensor"); if (!convert_to_tensor) return nullptr; Safe_PyObjectPtr args(PyTuple_New(dtype == DT_INVALID ? 1 : 2)); Safe_PyObjectPtr kwargs(PyDict_New()); Py_INCREF(src); PyTuple_SetItem(args.get(), 0, src); if (dtype != DT_INVALID) { PyTuple_SetItem(args.get(), 1, PyLong_FromLong(dtype)); } PyDict_SetItemString(kwargs.get(), "ctx", py_eager_context_); Safe_PyObjectPtr result( PyObject_Call(convert_to_tensor, args.get(), kwargs.get())); if (!result) return nullptr; dtype = DataTypeForTensor(result.get()); // set output parameter. if (dtype == DT_INVALID) return nullptr; return result; } } // namespace tensorflow
C++
5
EricRemmerswaal/tensorflow
tensorflow/python/framework/python_tensor_converter.cc
[ "Apache-2.0" ]
<cfscript> function doSomething(id){ switch (id){ case -1: return "new"; default: return "existing"; } } </cfscript>
ColdFusion
4
tonym128/CFLint
src/test/resources/com/cflint/tests/ParseError/case_623.cfm
[ "BSD-3-Clause" ]
.class public final Linner/TestCls$A; .super Ljava/lang/Object; .source "TestCls.java" # interfaces .implements Linner/TestCls$I; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Linner/TestCls; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "A" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Linner/TestCls$I", "<", "Ljava/lang/String;", "Ljava/lang/Runnable;", ">;" } .end annotation # direct methods .method public constructor <init>()V .registers 1 .prologue .line 9 invoke-direct {p0}, Ljava/lang/Object;-><init>()V return-void .end method .method private varargs renamedCall([Ljava/lang/Runnable;)Ljava/lang/String; .registers 3 .param p1, "p" # [Ljava/lang/Runnable; .prologue .line 12 const-string v0, "str" return-object v0 .end method # virtual methods .method public synthetic call([Ljava/lang/Object;)Ljava/lang/Object; .registers 3 .prologue .line 9 check-cast p1, [Ljava/lang/Runnable; invoke-virtual {p0, p1}, Linner/TestCls$A;->renamedCall([Ljava/lang/Runnable;)Ljava/lang/String; move-result-object v0 return-object v0 .end method
Smali
3
DSYliangweihao/jadx
jadx-core/src/test/smali/inner/TestSyntheticMthRename/TestCls$A.smali
[ "Apache-2.0" ]
*------------------------------------------------------------------------------- * Dynamic calibration * - Calibrate TFP (both energy and capital-labor) * - Set population to the GDP/population data used * * Options: * - Time-varying Elasticity of Substitution (default) or Constant ($setglobal ces_fixed) *------------------------------------------------------------------------------- $ifthen %phase%=='conf' * By default, GDP/population/EI data is taken from baseline scenario $if not set tfpscen $setglobal tfpscen '%baseline%' $if %baseline%=='ssp1' $setglobal nogastrade $if %baseline%=='ssp1' $setglobal nocoaltrade $if not '%baseline%'=='ssp2' $setglobal nocorrallssp2 $setglobal tfp_min 0.05 * By default, creates and overwrites start and data_tfp files $setglobal tfpoutgdx '%datapath%data_tfp_%tfpscen%.gdx' * Iteration from which starting to calibrate $setglobal start_calib_iter 2 $setglobal min_iter 3 $setglobal calibrate_tfpy yes $setglobal calibrate_tfpn yes * Error tolerances for convergence (in % of GDP/TPES averaged over time and regions) $setglobal errtol_tfpy 0.1 $setglobal errtol_tfpn 0.1 * Calibration of TFPN only in SSP2 $if set nocorrallssp2 $setglobal calibrate_tfpn no $if %tfpscen%=='ssp2' $setglobal calibrate_tfpn yes $setglobal nodectfpy 2125 * Specific option for SSP5 $ifthen.ssp5 %tfpscen%=="ssp5" $setglobal errtol_tfpy 0.2 $setglobal fix_tfpn_end 2125 $endif.ssp5 * Time-varying Elasticity of Substitution * By default (SSP2, elffren elasticity is increasing from 5 to 10 by 2100) $setglobal ela_endvalue_elffren 10 #was:5 * These values are kept constant: $setglobal ela_endvalue_elff 2 $setglobal ela_endvalue_el2 2 $setglobal ela_endvalue_elintren 2 $setglobal ela_endvalue_en 2/3 $setglobal ela_startyear 2005 $setglobal ela_endyear 2100 $ifthen.l %baseline% == 'ssp1' $setglobal ela_endvalue_elffren 100 $elseif.l %baseline% == 'ssp2' $setglobal ela_endvalue_elffren 10 $elseif.l %baseline% == 'ssp3' $setglobal ela_endvalue_elffren 5 $elseif.l %baseline% == 'ssp4' $setglobal ela_endvalue_elffren 100 $elseif.l %baseline% == 'ssp5' $setglobal ela_endvalue_elffren 5 $endif.l $if set ces_fixed $setglobal ela_endvalue_elffren 5 $setglobal write_tfp_file 'datapath' *------------------------------------------------------------------------------- $elseif %phase%=='sets' $if %calibrate_tfpy% =='yes' set ierr / tfpy /; $if %calibrate_tfpn% =='yes' set ierr / tfpn /; *------------------------------------------------------------------------------- $elseif %phase%=='include_data' * Explicit load for non-ssp2 calibration $gdxin '%datapath%data_validation.gdx'; parameter q_en_valid_dyn(*,t,n); $loaddc q_en_valid_dyn=q_en_valid_weo parameter q_in_valid_dyn(*,t,n); $loaddc q_in_valid_dyn=q_in_valid_weo $gdxin q_en_valid_dyn(jcalib,t,n)$(q_en_valid_dyn(jcalib,t,n) eq 0)=1e-8; Parameter ei(t,n), ei_global(t), ei_kali(t,n); Parameter tpes_iter(siter, t,n), delta_tfpn_iter(siter, t, n); Parameter tfpn_corr_ssp_param(ssp) 'Factor by wich growth rate of SSP2 tfpn adjusted'/ ssp1 1.015 ssp2 1 ssp3 0.9975 ssp4 1.0075 ssp5 1.012 /; * Load source for TPES $gdxin %datapath%data_validation parameter tpes_valid_weo(t,n); $loaddc tpes_valid_weo $gdxin $ifthen.c %calibrate_tfpy% =='yes' errtol('tfpy')=%errtol_tfpy%; $endif.c $ifthen.c %calibrate_tfpn% =='yes' errtol('tfpn')=%errtol_tfpn%; $endif.c *------------------------------------------------------------------------------- $elseif %phase%=='compute_data' parameter income_el(t,n), income_elkali(t,n), tfpy_iter(siter,t,n),tfpn_iter(siter,t,n); parameter delta_tfpy(t,n), delta_tfpn(t,n); parameter dtpes(t,n), dy(t,n), dy_calib(t,n); parameter tpes_kali(t,n); * Use TFPN from SSP2 for other SSPs $ifthen.s2a set nocorrallssp2 Parameter tfpn_ssp2(t,n), tfpy_ssp2(t,n); $if not set tfpgdxssp2 $setglobal tfpgdxssp2 data_tfp_ssp2 $gdxin '%datapath%%tfpgdxssp2%.gdx' $loaddc tfpn_ssp2=tfpn tfpy_ssp2=tfpy $gdxin tfpn(tfirst,n) = 1; Loop((t,tp1)$(pre(t,tp1)), tfpn(tp1,n) = tfpn(t,n) * (1 + ((tfpn_ssp2(tp1,n)/tfpn_ssp2(t,n))-1)) * (tfpn_corr_ssp_param('%tfpscen%')**5); ); $endif.s2a * Initial income elasticity: 0.4 (OECD) and in 0.55 (non-OECD). Growth rate such that in 2150, both values decline to 0.2 income_elkali(tfirst,n)$(oecd(n)) = 0.40; income_elkali(tfirst,n)$(not oecd(n)) = 0.55; income_elkali(tfirst,'china') = 0.20; income_elkali(tfirst,'india') = 0.40; income_elkali(t,n) = income_elkali(tfirst,n) * exp((year(t) - 2005) / (smax(tt,year(tt)) - 2005) * log(0.20 / income_elkali(tfirst,n))); * implement time-varying CES elasticities linearly * Elasticities (rho): elffren: 5 (0.8), elff: 2 (0.5), el2: 2 (0.5) (nuclear with rest), elintren: 2 (0.5), en: 2/3 (-0.5) * rho = (ela - 1) / ela = 1 - 1/ela * ela = 1 / (1 - rho) * implement linear change in elasticity rho('elffren',t) = 1 - 1 / ( (1 / (1 - rho('elffren','1')) ) * ((%ela_endyear% - year(t))/(%ela_endyear%-%ela_startyear%)) + %ela_endvalue_elffren% * ((year(t)-%ela_startyear%)/(%ela_endyear%-%ela_startyear%)) ); rho('elff',t) = 1 - 1 / ( (1 / (1 - rho('elff','1')) ) * ((%ela_endyear% - year(t))/(%ela_endyear%-%ela_startyear%)) + %ela_endvalue_elff% * ((year(t)-%ela_startyear%)/(%ela_endyear%-%ela_startyear%)) ); rho('el2',t) = 1 - 1 / ( (1 / (1 - rho('el2','1')) ) * ((%ela_endyear% - year(t))/(%ela_endyear%-%ela_startyear%)) + %ela_endvalue_el2% * ((year(t)-%ela_startyear%)/(%ela_endyear%-%ela_startyear%)) ); rho('elintren',t) = 1 - 1 / ( (1 / (1 - rho('elintren','1')) ) * ((%ela_endyear% - year(t))/(%ela_endyear%-%ela_startyear%)) + %ela_endvalue_elintren% * ((year(t)-%ela_startyear%)/(%ela_endyear%-%ela_startyear%)) ); rho('en',t) = 1 - 1 / ( (1 / (1 - rho('en','1')) ) * ((%ela_endyear% - year(t))/(%ela_endyear%-%ela_startyear%)) + %ela_endvalue_en% * ((year(t)-%ela_startyear%)/(%ela_endyear%-%ela_startyear%)) ); * after %ela_endyear% all constant rho('elffren',t)$(year(t) gt %ela_endyear%) = valuein(%ela_endyear%, rho('elffren',tt)); rho('elff',t)$(year(t) gt %ela_endyear%) = valuein(%ela_endyear%, rho('elff',tt)); rho('el2',t)$(year(t) gt %ela_endyear%) = valuein(%ela_endyear%, rho('el2',tt)); rho('elintren',t)$(year(t) gt %ela_endyear%) = valuein(%ela_endyear%, rho('elintren',tt)); rho('en',t)$(year(t) gt %ela_endyear%) = valuein(%ela_endyear%, rho('en',tt)); *------------------------------------------------------------------------------- $elseif %phase%=='before_solve' if((stop_nash ne 1), * TFPY Calibration $ifthen.c %calibrate_tfpy% =='yes' delta_tfpy(t,n) = (ykali(t,n)/Q.l('y',t,n)-1); tfpy(t,n)$(ord(siter) eq 1 and tfirst(t)) = 1; tfpy(t,n)$(ord(siter) gt 1 and tfirst(t)) = (((((Q.l('y',t,n) + sum(fuel, COST_FUEL.l(fuel,t,n)))/q0('y',n))**rho('y',t) - alpha('fen',n)*(Q.l('fen',t,n)/q0('fen',n))**rho('y',t))/alpha('kl',n))**(1/rho('y',t)) ) / (q0('kl',n)*((K.l('fg',t,n)/q0('k',n))**(alpha('k',n))*(l(t,n)/q0('l',n))**(alpha('l',n)))/q0('kl',n)); tfpy(t,n)$(ord(siter) ge %start_calib_iter% and tperiod(t) gt 1)=tfpy(t,n)*(1+delta_tfpy(t,n)); $if set nocorrallssp2 tfpy(t,n)$tfix(t)=tfpy_ssp2(t,n); * If over i10, take moving average tfpy_iter(siter,t,n)=tfpy(t,n); tfpy(tlast,n) = sum(pre(t, tlast), tfpy(t,n)); tfpy(t,n) = max(tfpy(t,n), %tfp_min%); allerr(run,siter,'tfpy')=100 * sum((t,n)$(year(t) gt 2010 and year(t) le 2100),abs((Q.l('y',t,n)-ykali(t,n))/ykali(t,n)))/sum((t,n)$(tperiod(t) gt 2 and not tperiod(t) gt 20), 1); $if set nodectfpy loop((t,tm1)$pre(tm1,t), tfpy(t,n)$(year(t) gt %nodectfpy%) = max(tfpy(tm1,n),tfpy(t,n))); tfpy_iter(siter,t,n) = tfpy(t,n); $endif.c * TFPN Calibration $ifthen.c %calibrate_tfpn%=='yes' dtpes(tfirst,n) = 1.000001; dy(tfirst,n) = 1.000001; dy_calib(tfirst,N) = 1.000001; * INCOME ELASTICITY loop((t,tp1)$(pre(t,tp1)), dtpes(tp1,n)= (tpes(tp1,n) /tpes(t,n)) -1 ; dy(tp1,n)= (Q.l('y',tp1,n) / Q.l('y',t,n))-1; dy_calib(tp1,n)= (ykali(tp1,n) / ykali(t,n)) -1; income_el(tp1,n)= DIV0(dtpes(tp1,n),dy(tp1,n)); ); * Update tpes kali tpes_kali(tfirst,n)= tpes(tfirst,n); * Calibrate TPES until 2015 on IEA World Energy Balances from Validation loop((tm1,t)$((pre(tm1,t)) and (year(t) gt 2005) and (smin(n,tpes_valid_weo(t,n)) ne 0)), tpes_kali(t,n) = tpes_kali(tm1,n) * (tpes_valid_weo(t,n)/tpes_valid_weo(tm1,n)); ); * Elasticity rule only after 2015 Loop((t,tp1)$(pre(t,tp1) and (ORD(tp1) gt CARD(tpes_valid_weo)/CARD(n))), tpes_kali(tp1,n)=tpes_kali(t,n)*(1+income_elkali(tp1,n)*dy_calib(tp1,n)); ); ei_kali(t,n) = (tpes_kali(t,n) *twh2ej) / (ykali(t,n) * mer2ppp(t,n)); #just as output * Updating tfpn to obtain calibrated tpes delta_tfpn(t,n)=((tpes(t,n)/tpes_kali(t,n))-1); tfpn(tfirst,n)=1; tfpn(t,n)$(ord(siter) ge %start_calib_iter% and tperiod(t) gt 1)=tfpn(t,n)*(1+delta_tfpn(t,n)); tfpn_iter(siter,t,n)=tfpn(t,n); tfpn(tlast,n) = sum(pre(t, tlast), tfpn(t,n)); tfpn(t,n) = max(tfpn(t,n), %tfp_min%); tpes_iter(siter, t,n)=tpes(t,n); delta_tfpn_iter(siter, t, n)=delta_tfpn(t,n); allerr(run,siter,'tfpn')=100*sum((t,n)$(tperiod(t) gt 2 and not tperiod(t) gt 20),abs((tpes(t,n)-tpes_kali(t,n))/tpes_kali(t,n)))/sum((t,n)$(tperiod(t) gt 2 and not tperiod(t) gt 20), 1); $endif.c $ifthen.ft set fix_tfpn_end tfpn(t,n)$(year(t) gt %fix_tfpn_end%) = valuein(%fix_tfpn_end%,tfpn(tt,n)); $endif.ft ); *------------------------------------------------------------------------------- $elseif %phase%=='summary_report' * Energy Intensity ei(t,n) = tpes(t,n) * twh2ej / (Q.l('y',t,n) * mer2ppp(t,n)); ei_global(t) = sum(n,tpes(t,n)) * twh2ej / sum(n,Q.l('y',t,n) * mer2ppp(t,n)); *------------------------------------------------------------------------------- $elseif %phase%=='tfpgdx_items' tfpy tfpn ykali *------------------------------------------------------------------------------- $elseif %phase%=='gdx_items' * Parameters delta_tfpn delta_tfpy dtpes dy dy_calib ei ei_global ei_kali income_el income_elkali tfpn_corr_ssp_param tfpn_iter tfpy_iter tpes_kali $endif
GAMS
4
witch-team/witchmodel
modules/calib_dynamic.gms
[ "Apache-2.0" ]
public final fun <P> funParamParam(a: R|kotlin/Int|, b: R|P|): R|kotlin/Int|
Text
0
AndrewReitz/kotlin
compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamParamErased.txt
[ "ECL-2.0", "Apache-2.0" ]
HAI 1.2 OBTW THE SOLUTION HAS SURELY 6 DIGITS BECAUSE 101101 = 143*707 THIS MEANS WE CAN CONSTRUCT DIRECTLY THE BISEX NUMBER AND THEN JUST CHECK IF IT CAN BE DECOMPOSED IN TWO 3 DIGITS NUMBERS TLDR HOW IZ I INVERT YR NUMBERZ I HAS A BACKWARDS ITZ "" I HAS A POWEROFTEN ITZ 100 IM IN YR LOOP UPPIN YR INDEX WILE DIFFRINT NUMBERZ 0 BACKWARDS R SMOOSH BACKWARDS MOD OF NUMBERZ 10 MKAY NUMBERZ R QUOSHUNT OF NUMBERZ 10 IM OUTTA YR LOOP FOUND YR BACKWARDS IF U SAY SO I HAS A HALF1 ITZ 998 I HAS A CANDIDATE I HAS A D1 I HAS A SATANA ITZ 0 IM IN YR HOUZ CANDIDATE R SMOOSH HALF1 I IZ INVERT YR HALF1 MKAY MKAY CANDIDATE IS NOW A NUMBR D1 R QUOSHUNT OF CANDIDATE 999 IM IN YR KITCHEN DIFFRINT BIGGR OF 999 D1 999, O RLY?, YA RLY, GTFO, OIC BOTH SAEM MOD OF CANDIDATE D1 0, O RLY? YA RLY SATANA R CANDIDATE GTFO OIC D1 R SUM OF D1 1 IM OUTTA YR KITCHEN DIFFRINT SATANA 0, O RLY?, YA RLY, GTFO, OIC HALF1 R DIFF OF HALF1 1 IM OUTTA YR HOUZ VISIBLE SATANA KTHXBYE
LOLCODE
3
LeartS/loleuler
004.lol
[ "MIT" ]
// Texture definitions generated by SLADE3 // on Sun Jan 28 00:41:58 2018 Texture "AUGNZ", 726, 766 { Patch "AUGNZ", 0, 0 } Sprite "YAUGA0", 640, 480 { XScale 2.750 YScale 2.750 Offset -257, -40 Patch "CHANDHB", 298, 309 Patch "CAUG", 207, 176 Patch "CHANDHD", 16, 274 } Sprite "YAUGb0", 640, 480 { XScale 2.750 YScale 2.750 Offset -210, 14 Patch "CEXPLA", 202, 213 Patch "CHANDHB", 349, 372 Patch "CAUG", 278, 248 Patch "CHANDHD", 79, 359 } Sprite "YAUGc0", 640, 480 { XScale 2.750 YScale 2.750 Offset -210, 14 Patch "CHANDHB", 349, 372 Patch "CAUG", 265, 245 Patch "CAUGM", 278, 356 Patch "CHANDHA", 52, 331 } Sprite "YAUGd0", 640, 480 { XScale 2.750 YScale 2.750 Offset -210, 14 Patch "CAUGM", 248, 433 Patch "CHANDHC", -50, 348 Patch "CHANDHB", 349, 372 Patch "CAUG", 266, 234 } Sprite "YAUGe0", 640, 480 { XScale 2.750 YScale 2.750 Offset -210, 14 Patch "CHANDHC", -102, 425 Patch "CHANDHB", 349, 372 Patch "CAUG", 270, 244 } Sprite "YAUGf0", 640, 480 { XScale 2.750 YScale 2.750 Offset -211, 14 Patch "CAUGM", 143, 366 { Rotate 90 } Patch "CHANDHA", -10, 361 Patch "CHANDHB", 349, 372 Patch "CAUG", 266, 234 } Sprite "YAUGg0", 640, 480 { XScale 2.750 YScale 2.750 Offset -210, 14 Patch "CAUGM", 293, 287 Patch "CHANDHD", 45, 344 Patch "CHANDHB", 332, 367 Patch "CAUG", 255, 235 } // End of texture definitions
Augeas
3
ajnavarro/language-dataset
data/github.com/superpomme/DoomZ/b9308844cdc80351e6ed6b30dfa4d002fdb17e18/TEXTURES.aug
[ "MIT" ]
module Drv { passive component LinuxSpiDriver { # ---------------------------------------------------------------------- # General ports # ---------------------------------------------------------------------- sync input port SpiReadWrite: Drv.SpiReadWrite # ---------------------------------------------------------------------- # Special ports # ---------------------------------------------------------------------- event port Log telemetry port Tlm text event port LogText time get port Time # ---------------------------------------------------------------------- # Events # ---------------------------------------------------------------------- include "Events.fppi" # ---------------------------------------------------------------------- # Telemetry # ---------------------------------------------------------------------- include "Telemetry.fppi" } }
FORTRAN
4
AlperenCetin0/fprime
Drv/LinuxSpiDriver/LinuxSpiDriver.fpp
[ "Apache-2.0" ]
<?Lassoscript // Last modified 8/31/09 by ECL, Landmann InterActive /* Tagdocs; {Tagname= OutputTestimonial } {Description= Outputs either all or one randomly-selected testimonial } {Author= Eric Landmann } {AuthorEmail= [email protected] } {ModifiedBy= } {ModifiedByEmail= } {Date= 1/11/08 } {Usage= OutputTestimonial } {ExpectedResults= If $vTestimonial = all, it outputs all the testimonials in one block If $vTestimonial = random, it outputs one randomly-selected testimonial } {Dependencies= $vTestimonial must be defined, otherwise there will be no output } {DevelNotes= $vTestimonial is created in detail.inc. This tag outputs the testimonial in ***one large block***, there is no pagination available. This tag checks the value of $vTestimonial, which comes from the Testimonial field on the content table } {ChangeNotes= 8/31/09 Integrated into itPage codebase. } /Tagdocs; */ If: !(Lasso_TagExists:'OutputTestimonial'); Define_Tag:'OutputTestimonial', -Description='Outputs either all or one randomly-selected testimonial'; Local:'Result' = null; // Check if $vTestimonial is defined If: (Var:'vTestimonial') != ''; If: $svDebug == 'Y'; #Result += '<p class="debugCT">\n'; #Result += '60: vTestimonial = ' ($vTestimonial) '</p>\n'; /If; // Get all the testimonial records If: $vTestimonial == 'All'; Var:'SQLSearchTestimonials' = 'SELECT ID, Testimonial_Head, Testimonial_Comment, Testimonial_Name, Testimonial_Thumb FROM ' $svTestimonialsTable ' WHERE Active = "Y" ORDER BY ID DESC'; // Get a random testimonial record Else: $vTestimonial == 'Random'; Var:'SQLSearchTestimonials' = 'SELECT ID, Testimonial_Head, Testimonial_Comment, Testimonial_Name, Testimonial_Thumb FROM ' $svTestimonialsTable ' WHERE Active = "Y" ORDER BY RAND() LIMIT 1'; // Not defined, get a random record Else: $vTestimonial == ''; Var:'SQLSearchTestimonials' = 'SELECT ID, Testimonial_Head, Testimonial_Comment, Testimonial_Name, Testimonial_Thumb FROM ' $svTestimonialsTable ' WHERE Active = "Y" ORDER BY RAND() LIMIT 1'; /If; #Result +='<div class="TestimonialContainer">\n'; Inline: $IV_Testimonials, -Table=$svTestimonialsTable, -SQL=$SQLSearchTestimonials; Records; Var:'vTestimonial_Head' = (Field:'Testimonial_Head'); Var:'vTestimonial_Comment' = (Field:'Testimonial_Comment'); Var:'vTestimonial_Name' = (Field:'Testimonial_Name'); Var:'vTestimonial_Thumb' = (Field:'Testimonial_Thumb'); #Result +='\t<table width="100%" class="TestimonialContainer">\n'; #Result +='\t\t<tr>\n'; If: $vTestimonial_Thumb != ''; // #Result +='\t\t\t<td width="140">\n'; #Result +='\t\t\t<td width="100">\n'; #Result +='\t\t\t\t<p class="testimonial">\n'; #Result +='\t\t\t\t\t<img src="'($svImagesThmbPath)($vTestimonial_Thumb)'" alt="'($vTestimonial_Thumb)'">\n'; Else; #Result +='\t\t\t<td>\n'; #Result +='\t\t\t\t<p class="testimonial">\n'; /If; #Result +='\t\t\t</p></td>\n'; #Result +='\t\t\t<td>\n'; #Result +='\t\t\t\t<p class="testimonial">\n'; If: ($vTestimonial_Head != ''); #Result +='\t\t\t\t\t<strong>'($vTestimonial_Head)'</strong><br>\n'; /If; #Result +='\t\t\t\t\t'($vTestimonial_Comment)'<br>\n'; If: ($vTestimonial_Name != ''); #Result +='\t\t\t\t\t<strong>'($vTestimonial_Name)'</strong><br>\n'; /If; #Result +='\t\t\t</p></td>\n'; #Result +='\t\t</tr>\n'; #Result +='\t</table>\n'; /Records; /Inline; #Result += '</div>\n'; Else; If: $svDebug == 'Y'; #Result += 'Testimonial content is undefined<br>\n'; /If; /If; Return: (Encode_Smart:(#Result)); /Define_Tag; Log_Critical: 'Custom Tag Loaded - OutputTestimonial'; /If; ?>
Lasso
4
fourplusone/SubEthaEdit
Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/OutputTestimonial.lasso
[ "MIT" ]
branch: file format elf32-littleriscv Disassembly of section .text: 80000000 <_start>: 80000000: 00100293 li t0,1 80000004: 00200313 li t1,2 80000008: 00000f93 li t6,0 8000000c: 00629663 bne t0,t1,80000018 <Exit> 80000010: 001f8f93 addi t6,t6,1 80000014: 002f8f93 addi t6,t6,2 80000018 <Exit>: 80000018: 004f8f93 addi t6,t6,4 8000001c: 008f8f93 addi t6,t6,8 80000020: 00100073 ebreak
ObjDump
3
snu-csl/pyrisc
asm/branch.objdump
[ "BSD-3-Clause" ]
@_private(sourceFile: "dynamic_replacement_dlclose.swift") import Module1 extension A { @_dynamicReplacement(for: value) var repl: Int { return 2 } }
Swift
3
lwhsu/swift
test/Interpreter/Inputs/dynamic_replacement_dlclose2.swift
[ "Apache-2.0" ]
a=:a x=a/99+1-(a>999)*a/230y=x*x*x x*=(y+2*a)/(2*y+a)y=x*x*x x*=(y+2*a)/(2*y+a)x=(a/x/x+x+x)/3:o=(a/x/x+x+x)/3goto:done++ y=x*x*x x*=(y+2*a)/(2*y+a) y=x*x*x x*=y+2*a x/=2*y+a x=n*(a/(x*x)+2*x) x=(a/x/x+x+x)/3 # 109,142 points. 10,000 ticks. Total error: 0.065. Worst Error: 0.001. /--------//--------//--------//--------//--------//--------//--------/ a=:a x=a/10 x=2*x+a/x/x x/=3 x=2*x+a/x/x x/=3 x=2*x+a/x/x x/=3 x=2*x+a/x/x x/=3 x=2*x+a/x/x x/=3 x=2*x+a/x/x x/=3 x=2*x+a/x/x x/=3 x=2*x+a/x/x x/=3 x=2*x+a/x/x x/=3 x=2*x+a/x/x x/=3 :o=x goto:done++ x=(2*x+a/(x*x))/3 x=2*x+a/(x*x)x/=3 a=:a x=a/10 x=(2/3)*x+(1/3)*a/(x*x) x=(2/3)*x+(1/3)*a/(x*x) x=(2/3)*x+(1/3)*a/(x*x) x=(2/3)*x+(1/3)*a/(x*x) x=(2/3)*x+(1/3)*a/(x*x) x=(2/3)*x+(1/3)*a/(x*x) x=(2/3)*x+(1/3)*a/(x*x) x=(2/3)*x+(1/3)*a/(x*x) x=(2/3)*x+(1/3)*a/(x*x) x=(2/3)*x+(1/3)*a/(x*x) :o=x goto:done++ # https://www.mathpath.org/Algor/cuberoot/cube.root.babylon.htm # 103,730 points. 60,000 ticks. Total error: 1550.263. Worst Error: 1.637. /--------//--------//--------//--------//--------//--------//--------/ k=1000 d=2000 t=10 n=0.333 p=0.005 i=0.001 h=0.5 y=3.24z=3.019 a=:a x=a*0.008+1.06-(a>d)*a*p x=n*(a/(x*x)+2*x)-3l=(x-y)*t r=(x+z)*t m=(l+r)*h c=(m*m*m)/k>=a l=l*c+m*(1-c)r+=c*(m-r)goto3+(r-l<=i) :o=l/10 :done=1 goto2 # 107,491 points. 94,775 ticks. No Error. - one off setup - read input, guesstimate cube root, one round of newtons, setup binary search range - binary search until perfect - output, correcting for precision boost /--------//--------//--------//--------//--------//--------//--------/ a=:a x=a*0.008+1.06-(a>2000)*a*0.005x=0.33*(a/(x*x)+2*x)-3l=x-3.3r=x+4 m=(l+r)*0.5 c=m*m*m>=a l=l*c+m*(1-c) r=r*(1-c)+m*c goto2+(r-l<=0.001) :o=l goto:done++ # 107,825 points. 74,413 tcks. Total error: 0.058. Worst Error: 0.001. /--------//--------//--------//--------//--------//--------//--------/ a=:a x=a/50 y=x*x*x x=x*(y+2*a)/(2*y+a) y=x*x*x x=x*(y+2*a)/(2*y+a) y=x*x*x x=x*(y+2*a)/(2*y+a) y=x*x*x x=x*(y+2*a)/(2*y+a) y=x*x*x x=x*(y+2*a)/(2*y+a) y=x*x*x x=x*(y+2*a)/(2*y+a) y=x*x*x x=x*(y+2*a)/(2*y+a) y=x*x*x x=x*(y+2*a)/(2*y+a) y=x*x*x x=x*(y+2*a)/(2*y+a) y=x*x*x x=x*(y+2*a)/(2*y+a) :o=x goto:done++ # 104,841 points. 60,000 ticks. Total error: 37.749. Worst Error: 0.021. /--------//--------//--------//--------//--------//--------//--------/ # 107,405 points. 98,711 ticks. No Error. a=:a l=6 r=216 k=1000 h=0.5 i=0.001 m=(l+r)*h c=(m*m*m)/k>=a l=l*c+m*(1-c)r+=c*(m-r)goto2+(r-l<=i) :o=l/10 goto:done++ l=l*c+m*(1-c) l+=(1-c)*(m-l) r=r*(1-c)+m*c r+=c*(m-r) /--------//--------//--------//--------//--------//--------//--------/ # 107,726 points. 82,183 ticks. Total error: 0.426. Worst error: 0.001 a=:a l=0.5 r=22 m=(l+r)*0.5 c=m*m*m>=a l=l*c+m*(1-c) r=r*(1-c)+m*c goto2+(r-l<=0.001) :o=l goto:done++ /--------//--------//--------//--------//--------//--------//--------/
LOLCODE
3
Dude112113/Yolol
YololEmulator/Scripts/CubeRoot.lol
[ "MIT" ]
--- title: "README" author: "Eric Graves" date: "October 12, 2016" output: md_document --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE, fig.width=5, fig.height=5, fig.align='center') library(isofor) ``` ## Isolation Forest An Isolation Forest is an ensemble of completely random decision trees. At each split a random feature and a random split point is chosen. Anomalies are isolated if they end up in a partition far away from the rest of the data. In decision tree terms, this corresponds to a record that has a short "path length". The path length is the number of nodes that a record passes through before terminating in a leaf node. Records with short average path lengths through the entire ensemble are considered anomalies. ## An analogy Describing the location of a country home takes many fewer directions than describing the location of a brownstone in Brooklyn. The country home might be described as "the only house on the south shore of Lake Woebegon". While directions to the brownstone must be qualified with much more detail: "Go north on 5th Street for 12 blocks, take a left on Van Buren, etc.." Isolated | Dense :-------------------------:|:-------------------------: <img src="README_files/figure-markdown_strict/2_river-house.jpg" height="250"/> | <img src="README_files/figure-markdown_strict/Brooklyn-brownstones.jpg" height="250"/> The country house in this example is a literal outlier. It is off by itself away from most other homes. Similarly, records that can be described succinctly are also outliers. ## Example Here we create two random, normal vectors and add some outliers. The majority of the data points are centered around (0, 0) with a standard deviation of 1/2. 50 outliers are introduced and are centered around (-1.5, 1.5) with a standard deviation of 1. This is to encourage some co-mingling of outliers with the bulk of the data. ```{r dummy-data} N = 1e3 x = c(rnorm(N, 0, 0.5), rnorm(N*0.05, -1.5, 1)) y = c(rnorm(N, 0, 0.5), rnorm(N*0.05, 1.5, 1)) ol = c(rep(0, N), rep(1, (0.05*N))) + 2 data = data.frame(x, y) plot(data, pch=ol) title("Dummy data with outliers") ``` The code below builds an Isolation Forest by passing in the dummy data, the number of trees requested (100) and the number of records to subsample for each tree (32). The records that exceed the 95% percentile of the anomaly score should flag the most anomalous records. By coloring such records as red and plotting the results the effectiveness of the Isolation Forest can be viewed. ```{r isofor} mod = iForest(X = data, 100, 32) p = predict(mod, data) col = ifelse(p > quantile(p, 0.95), "red", "blue") plot(x, y, col=col, pch=ol) ``` Knowing there are two populations, the Kmeans algorithm seems like a good fit for identifying the two clusters. However, we can see that it picks cluster centers that do not do a good job of separating the data. ```{r kmeans} km = kmeans(data, 2) plot(x, y, col=km$cluster+1, pch=ol) ``` ## Node Membership In addition to predicting an anomaly score, a node membership matrix can also be predicted. There are two ways to produce a nod membership matrix. The first returns a matrix of size `n_obs x n_trees` and contains the terminal node ID for each observation: ```{r node-ids} node_ids = predict(mod, data, nodes=TRUE) head(node_ids[,1:10]) ``` THe second uses the Matrix library to return a sparse matrix of 1s and 0s indicating node membership. There are as many ones as there are `n_obs x n_trees` but the dimension is much larger at `n_obs x n_terminal_nodes`: ```{r node-membership} library(Matrix) nodes = predict(mod, data, sparse=TRUE) head(nodes[,1:10]) ```
RMarkdown
5
Zelazny7/isofor
README.rmd
[ "MIT" ]
// run-pass // Make sure we don't crash with a cycle error during coherence. #![feature(specialization)] //~ WARN the feature `specialization` is incomplete trait Trait<T> { type Assoc; } impl<T> Trait<T> for Vec<T> { default type Assoc = (); } impl Trait<u8> for Vec<u8> { type Assoc = u8; } impl<T> Trait<T> for String { type Assoc = (); } impl Trait<<Vec<u8> as Trait<u8>>::Assoc> for String {} fn main() {}
Rust
4
Eric-Arellano/rust
src/test/ui/specialization/assoc-ty-graph-cycle.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
\section{Something Not Entirely Unlike Categories in Type Theory} %if False \begin{code} module Categories where open import Agda.Primitive renaming (_⊔_ to _\-/_) open import DeBruijn open import Thinnings open import Slime open import Worry \end{code} %endif What follows is far from perfect. The best that can be said is that it is an effective pragmatic compromise. Neither is it an unusual recipe. I labour the point only to teach the craft of the cooking. A category will have a |Set| of objects and, indexed by source and target objects, a |Setoid| of arrows. But there's another catch: type theoretic level. There is no good reason to believe that the level objects live on is in any way related to the the level that arrows live on. Agda is particularly bad at supporting \emph{cumulativity} --- implicit upward flow between levels --- and by `bad', I mean it just does not. (Coq by contrast, is rather good at it.) Agda forces one to use level polymorphism instead of cumulativity. The two are poor stablemates, but they have backed the wrong horse. In the now, the pragmatic policy is to keep the levels of objects and arrows separate. %format Level = "\D{Level}" %format Cat = "\D{Cat}" %format Obj = "\F{Obj}" %format Arr = "\F{Arr}" %format ~> = "\F{\vartriangleright\!}" %format _~>_ = "\F{" _ "\!}" ~> "\F{\!" _ "}" %format _~~_ = "\D{" _ "\!}" ~~ "\D{\!" _ "}" %format id = "\F{\upiota}" %format - = "\F{\fatsemi}" %format _-_ = "\F{" _ "\!}" - "\F{\!" _ "}" %format coex = "\F{coex}" %format idco = "\F{idco}" %format coid = "\F{coid}" %format coco = "\F{coco}" \begin{definition}[|Cat|egory] Fix |k|, the level of objects, and |l|, the level of arrows. %if False \begin{code} module _ (k l : Level) where -- fix |k|, the level of objects, -- and |l|, the level of arrows \end{code} %endif We may then define a notion of |Cat|egory. \begin{code} record Cat : Set (lsuc (k \-/ l)) where -- We have a |Set| of |Obj|ects, and a family of |Setoid|s of |Arr|ows. field Obj : Set k Arr : Obj -> Obj -> Setoid l -- Agda allows one to pause between |field|s to make \emph{definitions}\ldots _~>_ : Obj -> Obj -> Set l S ~> T = El (Arr S T) -- \ldots and then resume requesting |field|s. -- We have identity and composition. field id : {-<-}{T : Obj} -> {->-} T ~> T _-_ : {-<-}{R S T : Obj} -> {->-} R ~> S -> S ~> T -> R ~> T -- Locally define equality of arrows\ldots _~~_ : {S T : Obj}(f g : S ~> T) -> Set l _~~_ {S}{T} f g = Arr S T :> f ~~ g -- \ldots then require the laws. field coex : {-<-}{R S T : Obj}{f f' : R ~> S}{g g' : S ~> T} -> {->-} f ~~ f' -> g ~~ g' -> (f - g) ~~ (f' - g') idco : {-<-}{S T : Obj}{->-}(f : S ~> T) -> (id - f) ~~ f coid : {-<-}{S T : Obj}{->-}(f : S ~> T) -> (f - id) ~~ f coco : {-<-}{R S T U : Obj}{->-}(f : R ~> S)(g : S ~> T)(h : T ~> U) -> (f - (g - h)) ~~ ((f - g) - h) \end{code} %if False \begin{code} open Cat \end{code} %endif Note the inevitable necessity of |coex|, the explicit witness that composition respects the weak notion of equivalence given by |~~|: let us ensure that this proof is always trivial. \end{definition} As a warm-up, let us construct the category of sets and functions-up-to-pointwise-equality. \begin{definition}[Pointwise Set] Every level {l} of the type theoretic hierarchy has a category of sets and functions, considered up to pointwise equality. The objects in the category are large, but the arrows are small. %format SET = "\F{SET}" \begin{code} module _ (l : Level) where SET : Cat (lsuc l) l Obj SET = Set l Arr SET S T = PI S \ _ -> IN T id SET x = x _-_ SET f g x = g (f x) qe (coex SET {f = f} (eq qf) (eq qg)) x with f x | qf x ... | _ | r~ = qg _ qe (idco SET f) x = r~ qe (coid SET f) x = r~ qe (coco SET f g h) x = r~ \end{code} \end{definition} When giving the extensionality witness for composition, we know only that its arguments agree pointwise. Fortunately for us, the definition of composition uses its arguments by invoking them at specific points. \begin{definition}[Discrete Category] Every |Set| induces a \emph{discrete category} with its elements for objects and only identity arrows, given by intensional equality. %format DISCRETE = "\F{DISCRETE}" %format splatvr = contraction %format splateqrv = contraction %format splateqr = contraction %if False \begin{code} pattern splatvr = <> , r~ pattern splateqrv = eq (r~ , <>) pattern splateqr = eq r~ module _ {l : Level} where \end{code} %endif \begin{code} DISCRETE : (X : Set l) -> Cat l l Obj (DISCRETE X) = X Arr (DISCRETE X) x y = IN (One {l}) || \ _ -> x ~ y id (DISCRETE X) = splatvr _-_ (DISCRETE X) splatvr splatvr = splatvr coex (DISCRETE X) splateqrv splateqrv = splateqrv idco (DISCRETE X) splatvr = splateqrv coid (DISCRETE X) splatvr = splateqrv coco (DISCRETE X) splatvr splatvr splatvr = splateqrv \end{code} I make the arrows carry \emph{trivial} information, subject to the \emph{condition} that source and target are equal. I am therefore not obliged to reason about equality between equality proofs. \end{definition} %format OP = "\F{OP}" %format Cdot = "\V{C}." %format C.Obj = Cdot Obj %format C.Arr = Cdot Arr %format C.id = Cdot id %format C.- = Cdot - %format C.~> = Cdot ~> %format C.~~ = Cdot ~~ %format C._-_ = Cdot _-_ %format C.coex = Cdot coex %format C.idco = Cdot idco %format C.coid = Cdot coid %format C.coco = Cdot coco \begin{definition}[Opposite Category] Fix a category |C|. (The following declaration allows us to refer to its components as |C.Obj|, and so on.) \begin{code} module _ {k l}(C : Cat k l)where private module C = Cat C \end{code} We construct |OP|, whose objects are those of |C| but whose arrows are reversed, as follows: \begin{code} OP : Cat k l Obj OP = C.Obj Arr OP S T = C.Arr T S id OP = C.id _-_ OP f g = g C.- f coex OP qf qg = C.coex qg qf idco OP = C.coid coid OP = C.idco coco OP f g h = eq (Sy (C.Arr _ _) _ _ (qe (C.coco h g f))) \end{code} Identities are preserved but composition is flipped. Correspondingly, the witness to extensionality of composition also flips and the identity absorption proofs swap over. Associativity of composition relies essentially on the symmetry of setoid equivalence for the arrows of |C|. Outside our module, we may now write |OP C| for the opposite category of |C|. \end{definition} \begin{definition}[Restricting Objects] %format OB = "\F{OB}" One way to construct a \emph{sub}category is to restrict the objects to the image of a function. \begin{code} module _ {k l}(C : Cat k l){k'}{O : Set k'} where private module C = Cat C OB : (O -> C.Obj) -> Cat k' l Obj (OB f) = O Arr (OB f) S T = C.Arr (f S) (f T) \end{code} I omit the remaining fields as they are copied from |C|. %if False \begin{code} id (OB f) = C.id _-_ (OB f) = C._-_ coex (OB f) = C.coex idco (OB f) = C.idco coid (OB f) = C.coid coco (OB f) = C.coco \end{code} %endif \end{definition} Finally, in this section, let us assemble the jigsaw pieces which make up the category of thinnings. \begin{lemma}[Category of Thinnings] Thinnings form the arrows of a category. %format THIN = "\F{THIN}" %format lzero = "\D{0}" \begin{code} THIN : Set -> Cat lzero lzero Obj (THIN X) = Bwd X Arr (THIN X) ga de = IN (ga <= de) id (THIN X) = io _-_ (THIN X) = _-<=_ coex (THIN X) splateqr splateqr = splateqr idco (THIN X) th = eq (io~ th) coid (THIN X) th = eq (th ~io) coco (THIN X) th ph ps = eq (assoc th ph ps) \end{code} \end{lemma} Now, the crucial structure that we exploit in codeBruijn programming arises from the relationship between the discrete category on scopes and the category of thinnings. That relationship requires us to consider `arrows between categories', i.e., \emph{functors}.
Literate Agda
5
gallais/EGTBS
extended/Categories.lagda
[ "BSD-3-Clause" ]
grammar Interpolative; interpolative: segment* EOF; segment: Literal|Variable; Variable: '@' VariableChar+? '@'; Literal: LiteralChar+; LiteralChar: '@@'|~[@]; VariableChar: ~[@];
ANTLR
4
sasaie/onedev
server-core/src/main/java/io/onedev/server/util/interpolative/Interpolative.g4
[ "MIT" ]
# # Script to remove old archived waveform files # # K. Lindquist # Geophysical Institute # U. of Alaska # August, 1998 # use Datascope; use Getopt::Std; if( ! getopts('v') || $#ARGV != 1 ) { die( "Usage: remove_old_archive_waveforms [-v] wfdir Leave_N_days\n" ); } else { $Wfdir = $ARGV[0]; # Leave_N_days includes the last partial day present # (i.e. setting this to 2 leaves 1.5 days in the directory) $Leave_N_days = $ARGV[1]; } #Fool automounter into mounting directory: opendir(D,$Wfdir); closedir(D); die( "Directory $Wfdir doesn't exist or not writable. Bye!\n") unless( -d $Wfdir && -w $Wfdir ); chdir( $Wfdir ); opendir( D, "." ); while( $year = readdir( D ) ) { next unless( $year =~ /[0-9]{4}/ ); opendir( Y, "$year" ); while( $doy = readdir( Y ) ) { next unless( $doy =~ /[0-9]{3}/ ); push( @Days, "$year/$doy" ); } closedir( Y ); } closedir( D ); @Days = sort( @Days ); while( $Leave_N_days-- ) { pop( @Days ); } foreach $day ( @Days ) { if( $opt_v ) { print "Removing $Wfdir/$day\n"; } if( ! -w $day ) { print "remove_old_archive_waveforms: no write permission on $Wfdir/$day!\n"; next; } $cmd = "/bin/rm -r $day"; system( "$cmd" ); }
XProc
3
jreyes1108/antelope_contrib
nobuild/bin/rt/split_archive_database/remove_old_archive_waveforms.xpl
[ "BSD-2-Clause", "MIT" ]
# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ # @ECLASS: stack.eclass # @MAINTAINER: Renee D'Netto <[email protected]> # @AUTHOR: Renee D'Netto <[email protected]> # @BLURB: An eclass for programs compiled using Haskell Stack. # @DESCRIPTION: # This eclass allows Haskell programs to be compiled using Stack, # which pins library versions using resolvers. # This enables programs using different library versions to be installed side-by-side. # It also provides a choice of dependency on stack or stack-bin, enabling these packages # to be installed without pulling in the entire Haskell platform. # # Inheritors need to specify the version of GHC to use like so: # SRC_URI="$(stack_ghc_src 8.0.2)" # Include generated code inherit stack_urls # Either stack package can be used. DEPEND="|| ( dev-haskell/stack dev-haskell/stack-bin )" EXPORT_FUNCTIONS src_configure src_compile src_install # We want this to be cached across builds, but $HOME is package-specific STACK_ROOT="/var/tmp/portage/.stack" STACK_ARGS="--stack-root ${STACK_ROOT}" # @FUNCTION: stack_src_configure # @DESCRIPTION: # Configure the package. stack_src_configure() { # Make sure working directory exists mkdir -p ${STACK_ROOT} # Add pre-downloaded STACK_GHC to Stack path einfo "Configuring GHC" mkdir -p ${STACK_ROOT}/programs/x86_64-linux/ cp -sf ${DISTDIR}/ghc-tinfo6-*.tar.xz ${STACK_ROOT}/programs/x86_64-linux/ || die stack ${STACK_ARGS} setup || die } # @FUNCTION: stack_src_compile # @DESCRIPTION: # Compiles the package. stack_src_compile() { debug-print-function ${FUNCNAME} "$@" einfo "Compiling" # Setting PATH to suppress warning env PATH="${HOME}/.local/bin:${PATH}" stack ${STACK_ARGS} install || die } # @FUNCTION: stack_src_install # @DESCRIPTION: stack_src_install() { debug-print-function ${FUNCNAME} "$@" einfo "Installing" # Copying installed files instead of using 'install --local-bin-path' as it doesn't seem to play well with --stack-root dobin ${HOME}/.local/bin/* }
Gentoo Eclass
4
rdnetto/rdnetto-overlay
eclass/stack.eclass
[ "Apache-2.0" ]
proc restart_killed_instances {} { foreach type {redis sentinel} { foreach_${type}_id id { if {[get_instance_attrib $type $id pid] == -1} { puts -nonewline "$type/$id " flush stdout restart_instance $type $id } } } } proc verify_sentinel_auto_discovery {} { set sentinels [llength $::sentinel_instances] foreach_sentinel_id id { wait_for_condition 1000 50 { [dict get [S $id SENTINEL MASTER mymaster] num-other-sentinels] == ($sentinels-1) } else { fail "At least some sentinel can't detect some other sentinel" } } }
Tcl
4
dawnwalk/redis
tests/sentinel/tests/includes/utils.tcl
[ "BSD-3-Clause" ]
import "movieSchema" import "genericEditor" import "allMoviesReport" import "borrowerReport" class MovieCollectionForm : Window { text = "Movie Collection"; background = activeBorder; borderStyle = sizable; hasMaximize = true; hasMinimize = true; hasClose = true; hasMenuBar = true; size = { 576, 432 }; Menu fileMenu { menu, "File", f }; MenuItem exit { fileMenu, "Exit", x, altF4, NotifySelect = MenuFileExit }; Menu reportsMenu { menu, "Reports", r }; MenuItem allMovies { reportsMenu, "All Movies", a; bool NotifySelect(MenuItem selection, Modifiers mods) { ExecuteReport(db, class(MoviesReport)); return true; } }; MenuItem borrowedMovies { reportsMenu, "Borrowed Movies", b; bool NotifySelect(MenuItem selection, Modifiers mods) { daysAgo = 0; ExecuteReport(db, class(BorrowerReport)); return true; } }; MenuItem olderThan3Months { reportsMenu, "> 3 months ago", k3, ctrlR; bool NotifySelect(MenuItem selection, Modifiers mods) { daysAgo = 90; ExecuteReport(db, class(BorrowerReport)); return true; } }; GenericEditor editor { this, anchor = { 0, 0, 0, 0 }, table = dbtable("Movies"), list.text = "List of Movies", editor.text = "Movie Entry Being Edited" }; Button editBorrowers { this, caption = "Edit Borrowers", altB, stayOnTop = true, anchor = { right = 40, bottom = 40 }; bool NotifyClicked(Button button, int x, int y, Modifiers mods) { GenericEditor borrowersEditor { hasClose = true; borderStyle = sizable; size = { 640, 300 }; table = dbtable("Borrowers"); list.text = "List of Borrowers", editor.text = "Borrower Entry Being Edited"; }; borrowersEditor.Modal(); editor.dataBoxes[3].Refresh(); return true; } }; } MovieCollectionForm mainForm {};
eC
3
N-eil/ecere-sdk
samples/db/MovieCollection/movieCollection.ec
[ "BSD-3-Clause" ]
table.insert(_G.test_loadorder, "ordinary after")
Lua
1
uga-rosa/neovim
test/functional/fixtures/nvim/after/filen.lua
[ "Vim" ]
!========================================================================== ! MMS description file for bzip2 support in UnZip 6 2008-02-16 !========================================================================== ! ! To build the LIBBZ2_NS library, edit the USER CUSTOMIZATION ! lines below to taste, then do ! mms ! or ! mmk ! if you use Matt's Make (free MMS-compatible make utility). ! ! In all other cases where you want to explicitly specify a makefile target, ! you have to specify your compiling environment, too. These are: ! ! $ MMS/MACRO=(__ALPHA__=1) ! Alpha AXP, (DEC C) ! $ MMS/MACRO=(__IA64__=1) ! IA64, (DEC C) ! $ MMS/MACRO=(__DECC__=1) ! VAX, using DEC C ! $ MMS/MACRO=(__FORCE_VAXC__=1) ! VAX, prefering VAXC over DECC ! $ MMS/MACRO=(__VAXC__=1) ! VAX, where VAXC is default ! $ MMS/MACRO=(__GNUC__=1) ! VAX, using GNU C ! ! To delete all .OBJ, .OLB, .EXE and .HLP files, ! mms clean ## The "DO_THE_BUILD" target does no longer work with current ## releases of the MMS tool, sigh. #DO_THE_BUILD : # @ decc = f$search("SYS$SYSTEM:DECC$COMPILER.EXE").nes."" # @ axp = (f$getsyi("HW_MODEL") .ge. 1024) .and. - # (f$getsyi("HW_MODEL") .lt. 4096) # @ i64 = f$getsyi("HW_MODEL") .ge. 4096 # @ macro = "/MACRO=(" #.IFDEF CCOPTS # @ macro = macro + """CCOPTS=$(CCOPTS)""," #.ENDIF # @ if decc then macro = macro + "__DECC__=1," # @ if axp then macro = macro + "__ALPHA__=1," # @ if i64 then macro = macro + "__IA64__=1," # @ if .not.(axp .or. i64 .or. decc) then macro = macro + "__VAXC__=1," # @ macro = f$extract(0,f$length(macro)-1,macro)+ ")" # $(MMS)$(MMSQUALIFIERS)'macro' DEFAULT # Define MMK architecture macros when using MMS. .IFDEF __MMK__ # __MMK__ .ELSE # __MMK__ ALPHA_X_ALPHA = 1 IA64_X_IA64 = 1 VAX_X_VAX = 1 .IFDEF $(MMS$ARCH_NAME)_X_ALPHA # $(MMS$ARCH_NAME)_X_ALPHA __ALPHA__ = 1 .ENDIF # $(MMS$ARCH_NAME)_X_ALPHA .IFDEF $(MMS$ARCH_NAME)_X_IA64 # $(MMS$ARCH_NAME)_X_IA64 __IA64__ = 1 .ENDIF # $(MMS$ARCH_NAME)_X_IA64 .IFDEF $(MMS$ARCH_NAME)_X_VAX # $(MMS$ARCH_NAME)_X_VAX __VAX__ = 1 .ENDIF # $(MMS$ARCH_NAME)_X_VAX .ENDIF # __MMK__ .IFDEF __ALPHA__ # __ALPHA__ DEST = ALPHA #E = .AXP_EXE #O = .AXP_OBJ #A = .AXP_OLB .ELSE # __ALPHA__ .IFDEF __IA64__ # __IA64__ DEST = IA64 #E = .I64_EXE #O = .I64_OBJ #A = .I64_OLB .ELSE # __IA64__ .IFDEF __DECC__ # __DECC__ DEST = VAX #E = .VAX_DECC_EXE #O = .VAX_DECC_OBJ #A = .VAX_DECC_OLB .ENDIF # __DECC__ .IFDEF __FORCE_VAXC__ # __FORCE_VAXC__ __VAXC__ = 1 .ENDIF # __FORCE_VAXC__ .IFDEF __VAXC__ # __VAXC__ DEST = VAXV #E = .VAX_VAXC_EXE #O = .VAX_VAXC_OBJ #A = .VAX_VAXC_OLB .ENDIF # __VAXC__ .IFDEF __GNUC__ # __GNUC__ DEST = VAXG #E = .VAX_GNUC_EXE #O = .VAX_GNUC_OBJ #A = .VAX_GNUC_OLB .ENDIF # __GNUC__ .ENDIF # __IA64__ .ENDIF # __ALPHA__ .IFDEF O # O .ELSE # O !If EXE and OBJ extensions aren't defined, define them E = .EXE O = .OBJ A = .OLB .ENDIF # O .IFDEF SRCDIR .ELSE SRCDIR = [] .ENDIF .IFDEF DSTDIR # DSTDIR .ELSE # DSTDIR .IFDEF DEST # DEST DSTDIR = [.$(DEST)] .ELSE # DEST DSTDIR = [] .ENDIF # DEST .ENDIF # DSTDIR !!!!!!!!!!!!!!!!!!!!!!!!!!! USER CUSTOMIZATION !!!!!!!!!!!!!!!!!!!!!!!!!!!! ! add any common optional preprocessor flags (macros) here ! (do not forget a trailing comma!!): COMMON_DEFS = !!!!!!!!!!!!!!!!!!!!!!!! END OF USER CUSTOMIZATION !!!!!!!!!!!!!!!!!!!!!!!! .IFDEF __GNUC__ CC = gcc LIBS = ,GNU_CC:[000000]GCCLIB.OLB/LIB .ELSE CC = cc LIBS = .ENDIF CFLAGS = /NOLIST OPTFILE = sys$disk:[.vms]vaxcshr.opt .IFDEF __ALPHA__ # __ALPHA__ CC_OPTIONS = /STANDARD=RELAX/PREFIX=ALL/ANSI/NAMES=(AS_IS) CC_DEFS = .ELSE # __ALPHA__ .IFDEF __IA64__ # __IA64__ CC_OPTIONS = /STANDARD=RELAX/PREFIX=ALL/ANSI/NAMES=(AS_IS) CC_DEFS = .ELSE # __IA64__ .IFDEF __DECC__ # __DECC__ CC_OPTIONS = /DECC/STANDARD=RELAX/PREFIX=ALL/NAMES=(AS_IS) CC_DEFS = .ELSE # __DECC__ .IFDEF __FORCE_VAXC__ # __FORCE_VAXC__ !Select VAXC on systems where DEC C exists CC_OPTIONS = /VAXC .ELSE # __FORCE_VAXC__ !No flag allowed/needed on a pure VAXC system CC_OPTIONS = .ENDIF # __FORCE_VAXC__ CC_DEFS = .ENDIF # __DECC__ .ENDIF # __IA64__ .ENDIF # __ALPHA__ ! ! The .FIRST target is needed only if we're serious about building, ! and then, only if BZIP2 support was requested. ! .IFDEF MMSTARGETS # MMSTARGETS .FIRST @ write sys$output " Destination: $(DSTDIR)" @ write sys$output "" if ("$(DEST)" .nes. "") then - if (f$search("$(DEST).DIR;1") .eqs. "") then - create /directory $(DSTDIR) .ENDIF # MMSTARGETS CC_DEFS2 = CFLAGS_INCL = /INCLUDE = [] .IFDEF __DEBUG__ CDEB = /DEBUG/NOOPTIMIZE .ELSE CDEB = .ENDIF CFLAGS_ALL = $(CC_OPTIONS) $(CFLAGS) $(CDEB) $(CFLAGS_INCL) - /def=($(CC_DEFS) $(COMMON_DEFS) BZ_NO_STDIO, VMS) - $(CCOPTS) OBJBZ2LIB = \ $(DSTDIR)blocksort$(O), \ $(DSTDIR)huffman$(O), \ $(DSTDIR)crctable$(O), \ $(DSTDIR)randtable$(O), \ $(DSTDIR)compress$(O), \ $(DSTDIR)decompress$(O), \ $(DSTDIR)bzlib$(O) OLBBZ2 = $(DSTDIR)LIBBZ2_NS$(A) BZIP2_H = $(SRCDIR)bzlib.h $(SRCDIR)bzlib_private.h !!!!!!!!!!!!!!!!!!! override default rules: !!!!!!!!!!!!!!!!!!! .suffixes : .suffixes : .ANL $(E) $(A) .MLB .HLB .TLB .FLB $(O) - .FORM .BLI .B32 .C .c .COB - .FOR .BAS .B16 .PLI .PEN .PAS .MAC .MAR .M64 .CLD .MSG .COR .DBL - .RPG .SCN .IFDL .RBA .RC .RCO .RFO .RPA .SC .SCO .SFO .SPA .SPL - .SQLADA .SQLMOD .RGK .RGC .MEM .RNO .HLP .RNH .L32 .REQ .R32 - .L16 .R16 .TXT .H .FRM .MMS .DDL .COM .DAT .OPT .CDO .SDML .ADF - .GDF .LDF .MDF .RDF .TDF $(O)$(A) : If "''F$Search("$(MMS$TARGET)")'" .EQS. "" Then $(LIBR)/Create $(MMS$TARGET) $(LIBR)$(LIBRFLAGS) $(MMS$TARGET) $(MMS$SOURCE) .c$(O) : $(CC) $(CFLAGS_ALL) /OBJ=$(MMS$TARGET) $(MMS$SOURCE) !!!!!!!!!!!!!!!!!! here starts the bzip2 specific part !!!!!!!!!!! DEFAULT default : CHK_DESTDIR $(OLBBZ2) @ ! Do nothing. CLEAN.COM clean.com : @ open/write tmp $(MMS$TARGET) @ write tmp "$!" @ write tmp "$! Clean.com -- procedure to delete files. It always returns success" @ write tmp "$! status despite any error or warnings. Also it extracts" @ write tmp "$! filename from MMS ""module=file"" format." @ write tmp "$!" @ write tmp "$ on control_y then goto ctly" @ write tmp "$ if p1.eqs."""" then exit 1" @ write tmp "$ i = -1" @ write tmp "$scan_list:" @ write tmp "$ i = i+1" @ write tmp "$ item = f$elem(i,"","",p1)" @ write tmp "$ if item.eqs."""" then goto scan_list" @ write tmp "$ if item.eqs."","" then goto done ! End of list" @ write tmp "$ item = f$edit(item,""trim"") ! Clean of blanks" @ write tmp "$ wild = f$elem(1,""="",item)" @ write tmp "$ show sym wild" @ write tmp "$ if wild.eqs.""="" then wild = f$elem(0,""="",item)" @ write tmp "$ vers = f$parse(wild,,,""version"",""syntax_only"")" @ write tmp "$ if vers.eqs."";"" then wild = wild - "";"" + "";*""" @ write tmp "$scan:" @ write tmp "$ f = f$search(wild)" @ write tmp "$ if f.eqs."""" then goto scan_list" @ write tmp "$ on error then goto err" @ write tmp "$ on warning then goto warn" @ write tmp "$ delete/log 'f'" @ write tmp "$warn:" @ write tmp "$err:" @ write tmp "$ goto scan" @ write tmp "$done:" @ write tmp "$ctly:" @ write tmp "$ exit 1" @ close tmp CLEAN clean : clean.com @clean "$(OBJBZ2LIB)" @clean "$(OLBBZ2)" @- delete/noconfirm/nolog clean.com;* @- if ("$(DEST).dir" .nes. "") then - if (f$search("$(DEST).dir") .nes. "") then - set protect=w:d $(DEST).dir;* @- if ("$(DEST).dir" .nes. "") then - if (f$search("$(DEST).dir") .nes. "") then - delete/noconfirm $(DEST).dir;* CHK_DESTDIR chk_destdir : @ If ("$(DEST)" .NES. "") Then - If "''F$Search("$(DEST).DIR;1")'" .EQS. "" Then - Create /directory $(DSTDIR) $(OLBBZ2) : $(OBJBZ2LIB) If "''F$Search("$(MMS$TARGET)")'" .EQS. "" Then $(LIBR)/Create $(MMS$TARGET) $(LIBR)$(LIBRFLAGS) $(MMS$TARGET) $(MMS$CHANGED_LIST) @ write sys$output "$(MMS$TARGET) updated." $(OBJBZ2LIB) : $(BZIP2_H) $(DSTDIR)blocksort$(O) : $(SRCDIR)blocksort.c $(DSTDIR)huffman$(O) : $(SRCDIR)huffman.c $(DSTDIR)crctable$(O) : $(SRCDIR)crctable.c $(DSTDIR)randtable$(O) : $(SRCDIR)randtable.c $(DSTDIR)compress$(O) : $(SRCDIR)compress.c $(DSTDIR)decompress$(O) : $(SRCDIR)decompress.c $(DSTDIR)bzlib$(O) : $(SRCDIR)bzlib.c
Module Management System
3
ThirdProject/android_external_unzip
bzip2/descrbz2.mms
[ "Info-ZIP" ]
( Generated from test_attributes_in.muv by the MUV compiler. ) ( https://github.com/revarbat/muv ) : _sub[ _a _b _c -- ret ] { _a @ _b @ _c @ }list array_interpret ; : _main[ _arg -- ret ] var _arr var _b { "foo" { "fee" 2 "fie" 8 "foe" 7 "fum" 42 }dict "bar" { "blah" 1 "blat" 3 "bloo" 5 "bleh" 7 "boo" '_sub }dict "baz" '_sub }dict _arr ! _arr @ { "foo" "fie" }list array_nested_get _b ! 43 dup _arr @ { "bar" "bloo" }list array_nested_set _arr ! pop _arr @ { "bar" "blat" }list over over array_nested_get 7 + rot rot array_nested_set _arr ! _arr @ { "bar" "blat" }list over over array_nested_get 8 + rot rot array_nested_set _arr ! _arr @ { "bar" "blat" }list over over array_nested_get 9 + rot rot array_nested_set _arr ! 5 4 3 _sub pop { 4 6 2 _arr @ "baz" [] dup address? if execute else } popn "Tried to execute a non-address in test_attributes_in.muv:30" abort then }list dup array_count 2 < if 0 [] then pop { 4 6 2 _arr @ { "bar" "boo" }list array_nested_get dup address? if execute else } popn "Tried to execute a non-address in test_attributes_in.muv:31" abort then }list dup array_count 2 < if 0 [] then pop 0 ; : __start "me" match me ! me @ location loc ! trig trigger ! _main ;
MUF
3
revarbat/muv
tests/test_attributes_cmp.muf
[ "BSD-2-Clause" ]
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause */ ;TEST_INIT_EXEC nfp-mem i32.ctm:0x80 0xffffffff 0xffffffff 0xffffffee 0x81000065 ;TEST_INIT_EXEC nfp-mem i32.ctm:0x90 0x81000258 0x81000258 0x81000258 0x88470001 ;TEST_INIT_EXEC nfp-mem i32.ctm:0xa0 0x40ff0000 0x21ff6000 0x0000005d 0x3c405555 ;TEST_INIT_EXEC nfp-mem i32.ctm:0xb0 0x66667777 0x88880000 0x00000000 0x00011111 ;TEST_INIT_EXEC nfp-mem i32.ctm:0xc0 0x22223333 0x44440000 0x00000000 0x00013c01 ;TEST_INIT_EXEC nfp-mem i32.ctm:0xd0 0x01280000 0x00000000 0x00000000 0x00003c01 ;TEST_INIT_EXEC nfp-mem i32.ctm:0xe0 0x01040000 0x00000000 0x00000000 0x00002b01 ;TEST_INIT_EXEC nfp-mem i32.ctm:0xf0 0x01040000 0x00000000 0x00000000 0x00000602 ;TEST_INIT_EXEC nfp-mem i32.ctm:0x100 0x00010000 0x0000aaaa 0xbbbb3333 0x44440000 ;TEST_INIT_EXEC nfp-mem i32.ctm:0x110 0x00000000 0x00010014 0x00500000 0x00000000 ;TEST_INIT_EXEC nfp-mem i32.ctm:0x120 0x00005002 0x20009de2 0x000058 #include <aggregate.uc> #include <stdmac.uc> #include <pv.uc> .reg pkt_vec[PV_SIZE_LW] aggregate_zero(pkt_vec, PV_SIZE_LW) move(pkt_vec[0], 0xac) move(pkt_vec[2], 0x80) move(pkt_vec[3], 0x40) move(pkt_vec[4], 0x3fc0) move(pkt_vec[5], (((14 + 4 + 4 + 4 + 4 + 4 + 4) << 24) | ((14 + 4 + 4 + 4 + 4 + 4 + 4 + 112) << 16) | ((14 + 4 + 4 + 4 + 4 + 4 + 4) << 8) | ((14 + 4 + 4 + 4 + 4 + 4 + 4 + 112))))
UnrealScript
3
pcasconnetronome/nic-firmware
test/datapath/pkt_vlan_vlan_vlan_vlan_mpls_mpls_ipv6_tcp_x80.uc
[ "BSD-2-Clause" ]
defmodule Phoenix.Digester.Gzip do @moduledoc ~S""" Gzip compressor for Phoenix.Digester """ @behaviour Phoenix.Digester.Compressor def compress_file(file_path, content) do if Path.extname(file_path) in Application.fetch_env!(:phoenix, :gzippable_exts) do {:ok, :zlib.gzip(content)} else :error end end def file_extensions do [".gz"] end end
Elixir
4
faheempatel/phoenix
lib/phoenix/digester/gzip.ex
[ "MIT" ]
[Desktop Entry] Version=1.0 Name=OWASP ZAP Exec=zaproxy Icon=${SNAP}/meta/gui/icon.png Terminal=false Type=Application Comment=OWASP ZAP is an open-source web application security scanner Keywords=network;scan;scanner;web;security;zed;attack;proxy;
desktop
2
eas5/zaproxy
snap/snap/gui/zaproxy.desktop
[ "Apache-2.0" ]
function available echo (status -t)[5] | read -la caller printf 'warning: function %savailable%s is deprecated and will be removed soon.\n' \ (set_color -u) (set_color normal) contains input $caller or echo $caller type -q $argv end
fish
2
codetriage-readme-bot/oh-my-fish
pkg/omf/functions/compat/available.fish
[ "MIT" ]
sleep 1 t app appmode photo sleep 900 t app button shutter PR d:\autoexec.ash REBOOT yes
AGS Script
1
waltersgrey/autoexechack
MegaLapse/15MinInterval/Hero3PlusBlack/autoexec.ash
[ "MIT" ]
import numpy as np from ..accuracy_eval import SemSegmEvaluation from ..utils import plot_acc def test_segm_models(models_list, data_fetcher, eval_params, experiment_name, is_print_eval_params=True, is_plot_acc=True): if is_print_eval_params: print( "===== Running evaluation of the classification models with the following params:\n" "\t0. val data location: {}\n" "\t1. val data labels: {}\n" "\t2. frame size: {}\n" "\t3. batch size: {}\n" "\t4. transform to RGB: {}\n" "\t5. log file location: {}\n".format( eval_params.imgs_segm_dir, eval_params.img_cls_file, eval_params.frame_size, eval_params.batch_size, eval_params.bgr_to_rgb, eval_params.log ) ) accuracy_evaluator = SemSegmEvaluation(eval_params.log, eval_params.img_cls_file, eval_params.batch_size) accuracy_evaluator.process(models_list, data_fetcher) accuracy_array = np.array(accuracy_evaluator.general_fw_accuracy) print( "===== End of processing. Accuracy results:\n" "\t1. max accuracy (top-5) for the original model: {}\n" "\t2. max accuracy (top-5) for the DNN model: {}\n".format( max(accuracy_array[:, 0]), max(accuracy_array[:, 1]), ) ) if is_plot_acc: plot_acc(accuracy_array, experiment_name)
Python
5
xipingyan/opencv
samples/python/tutorial_code/dnn/dnn_conversion/common/test/voc_segm_test.py
[ "Apache-2.0" ]
# This file is a part of Julia. License is MIT: https://julialang.org/license module PhysQuantities export PhysQuantity # Mimic a quantity with a physical unit that is not convertible to a real number struct PhysQuantity{n,T} # n is like the exponent of the unit val::T end PhysQuantity{n}(x::T) where {n,T} = PhysQuantity{n,T}(x) Base.zero(::Type{PhysQuantity{n,T}}) where {n,T} = PhysQuantity{n,T}(zero(T)) Base.zero(x::PhysQuantity) = zero(typeof(x)) Base.:+(x::PhysQuantity{n}, y::PhysQuantity{n}) where n = PhysQuantity{n}(x.val + y.val) Base.:-(x::PhysQuantity{n}, y::PhysQuantity{n}) where n = PhysQuantity{n}(x.val - y.val) Base.:*(x::PhysQuantity{n,T}, y::Int) where {n,T} = PhysQuantity{n}(x.val*y) Base.:/(x::PhysQuantity{n,T}, y::Int) where {n,T} = PhysQuantity{n}(x.val/y) Base.:*(x::PhysQuantity{n1,S}, y::PhysQuantity{n2,T}) where {n1,n2,S,T} = PhysQuantity{n1+n2}(x.val*y.val) Base.:/(x::PhysQuantity{n1,S}, y::PhysQuantity{n2,T}) where {n1,n2,S,T} = PhysQuantity{n1-n2}(x.val/y.val) Base.convert(::Type{PhysQuantity{0,T}}, x::Int) where T = PhysQuantity{0}(convert(T, x)) Base.convert(::Type{P}, ::Int) where P<:PhysQuantity = error("Int is incommensurate with PhysQuantity") end #module
Julia
5
greimel/julia
test/testhelpers/PhysQuantities.jl
[ "Zlib" ]
#include "iostats.h" #include "string_utils.h" #include <fstream> void getIoStats(void *args) { iostats *io = reinterpret_cast<iostats *>(args); if (io) { Clock::time_point now = Clock::now(); /* ns */ std::chrono::duration<float> time_diff = now - io->last_update; io->prev.read_bytes = io->curr.read_bytes; io->prev.write_bytes = io->curr.write_bytes; std::string line; std::ifstream f("/proc/self/io"); while (std::getline(f, line)) { if (starts_with(line, "read_bytes:")) { try_stoull(io->curr.read_bytes, line.substr(12)); } else if (starts_with(line, "write_bytes:")) { try_stoull(io->curr.write_bytes, line.substr(13)); } } if (io->last_update.time_since_epoch().count()) { io->diff.read = (io->curr.read_bytes - io->prev.read_bytes) / (1024.f * 1024.f); io->diff.write = (io->curr.write_bytes - io->prev.write_bytes) / (1024.f * 1024.f); io->per_second.read = io->diff.read / time_diff.count(); io->per_second.write = io->diff.write / time_diff.count(); } io->last_update = now; } }
C++
4
wojciethecat/MangoHud
src/iostats.cpp
[ "MIT" ]
MODULE = Agar::Tlist PACKAGE = Agar::Tlist PREFIX = AG_ PROTOTYPES: ENABLE VERSIONCHECK: DISABLE Agar::Tlist new(package, parent, ...) const char * package Agar::Widget parent PREINIT: Uint flags = 0, wflags = 0; CODE: if ((items == 3 && SvTYPE(SvRV(ST(2))) != SVt_PVHV) || items > 3) { Perl_croak(aTHX_ "Usage: Agar::Tlist->new(parent,[{opts}])"); } if (items == 3) { AP_MapHashToFlags(SvRV(ST(2)), apTlistFlagNames, &flags); AP_MapHashToFlags(SvRV(ST(2)), apWidgetFlagNames, &wflags); } RETVAL = AG_TlistNew(parent, flags); if (RETVAL) { AGWIDGET(RETVAL)->flags |= wflags; } OUTPUT: RETVAL void setItemHeight(self, pixels) Agar::Tlist self int pixels CODE: AG_TlistSetItemHeight(self, pixels); void setIcon(self, item, surface) Agar::Tlist self Agar::TlistItem item Agar::Surface surface CODE: AG_TlistSetIcon(self, item, AG_SurfaceDup(surface)); void sizeHint(self, text, numItems) Agar::Tlist self const char * text int numItems CODE: AG_TlistSizeHint(self, text, numItems); void sizeHintPixels(self, w, h) Agar::Tlist self int w int h CODE: AG_TlistSizeHintPixels(self, w, h); void sizeHintLargest(self, numItems) Agar::Tlist self int numItems CODE: AG_TlistSizeHintLargest(self, numItems); Agar::TlistItem addItem(self, text) Agar::Tlist self const char * text CODE: RETVAL = AG_TlistAddS(self, NULL, text); OUTPUT: RETVAL void delItem(self, item) Agar::Tlist self Agar::TlistItem item CODE: AG_TlistDel(self, item); void beginRebuild(self) Agar::Tlist self CODE: AG_TlistBegin(self); void endRebuild(self) Agar::Tlist self CODE: AG_TlistEnd(self); void select(self, item) Agar::Tlist self Agar::TlistItem item CODE: AG_TlistSelect(self, item); void selectAll(self) Agar::Tlist self CODE: AG_TlistSelectAll(self); void deselect(self, item) Agar::Tlist self Agar::TlistItem item CODE: AG_TlistDeselect(self, item); void deselectAll(self) Agar::Tlist self CODE: AG_TlistDeselectAll(self); Agar::TlistItem findByIndex(self, index) Agar::Tlist self int index CODE: RETVAL = AG_TlistFindByIndex(self, index); OUTPUT: RETVAL Agar::TlistItem selectedItem(self) Agar::Tlist self CODE: RETVAL = AG_TlistSelectedItem(self); OUTPUT: RETVAL Agar::TlistItem findText(self, text) Agar::Tlist self const char * text CODE: RETVAL = AG_TlistFindText(self, text); OUTPUT: RETVAL void setFlag(self, name) Agar::Tlist self const char * name CODE: if (AP_SetNamedFlag(name, apTlistFlagNames, &(self->flags))) { AP_SetNamedFlag(name, apWidgetFlagNames, &(AGWIDGET(self)->flags)); } void unsetFlag(self, name) Agar::Tlist self const char * name CODE: if (AP_UnsetNamedFlag(name, apTlistFlagNames, &(self->flags))) { AP_UnsetNamedFlag(name, apWidgetFlagNames, &(AGWIDGET(self)->flags)); } Uint getFlag(self, name) Agar::Tlist self const char * name CODE: if (AP_GetNamedFlag(name, apTlistFlagNames, self->flags, &RETVAL)) { if (AP_GetNamedFlag(name, apWidgetFlagNames, AGWIDGET(self)->flags, &RETVAL)) { XSRETURN_UNDEF; } } OUTPUT: RETVAL MODULE = Agar::Tlist PACKAGE = Agar::TlistItem PREFIX = AG_ PROTOTYPES: ENABLE VERSIONCHECK: DISABLE int isSelected(item) Agar::TlistItem item CODE: RETVAL = item->selected; OUTPUT: RETVAL SV * getText(item) Agar::TlistItem item CODE: RETVAL = newSVpv(item->text, 0); OUTPUT: RETVAL void setText(item, text) Agar::TlistItem item const char * text CODE: strncpy(item->text, text, AG_TLIST_LABEL_MAX); int getDepth(item) Agar::TlistItem item CODE: RETVAL = item->depth; OUTPUT: RETVAL void setDepth(item, depth) Agar::TlistItem item int depth CODE: item->depth = depth; int isExpanded(item) Agar::TlistItem item CODE: RETVAL = item->flags & AG_TLIST_ITEM_EXPANDED; OUTPUT: RETVAL void setExpanded(item, on) Agar::TlistItem item int on CODE: if (on) { item->flags |= AG_TLIST_ITEM_EXPANDED; } else { item->flags &= ~AG_TLIST_ITEM_EXPANDED; } int hasChildren(item) Agar::TlistItem item CODE: RETVAL = item->flags & AG_TLIST_HAS_CHILDREN; OUTPUT: RETVAL void setHasChildren(item, on) Agar::TlistItem item int on CODE: if (on) { item->flags |= AG_TLIST_HAS_CHILDREN; } else { item->flags &= ~AG_TLIST_HAS_CHILDREN; } void setNoSelect(item, on) Agar::TlistItem item int on CODE: if (on) { item->flags |= AG_TLIST_NO_SELECT; } else { item->flags &= ~AG_TLIST_NO_SELECT; }
XS
4
auzkok/libagar
p5-Agar/Agar/Tlist.xs
[ "BSD-2-Clause" ]
#import <Foundation/NSObject.h> @protocol KT38234_P1 -(int)foo; @end; @interface KT38234_Base : NSObject <KT38234_P1> -(int)callFoo; @end;
C
4
Mu-L/kotlin
kotlin-native/backend.native/tests/interop/objc/tests/KT38234_override.h
[ "ECL-2.0", "Apache-2.0" ]
{ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "github>LLK/scratch-renovate-config" ], "packageRules": [ // Closure compiler & library releases are always "major" so separating them leads to PR SPAM { "matchPackageNames": ["google-closure-compiler", "google-closure-library"], "separateMultipleMajor": false } ] }
JSON5
3
Ssvbxx/scratch-blocks
renovate.json5
[ "Apache-2.0" ]
""" BCW0011-4.boo(10,11): BCW0011: WARNING: Type 'Foo' does not provide an implementation for 'IFoo.Bar()', a stub has been created. """ interface IFoo: def Bar() interface IBar(IFoo): pass class Foo(IBar): pass
Boo
4
popcatalin81/boo
tests/testcases/warnings/BCW0011-4.boo
[ "BSD-3-Clause" ]
package org.xtendroid.xtendroidtest import org.xtendroid.annotations.AndroidPreference /** * Storage of settings, for use in testing. */ @AndroidPreference class Settings { boolean enabled = true String url = "" // this value not shown in preference screen long maxTimeout = 0 // long values not supported in pref screen }
Xtend
4
kusl/Xtendroid
XtendroidTest/src/org/xtendroid/xtendroidtest/Settings.xtend
[ "MIT" ]
beans{ testString String, 'test' testNum int, 100 testObj(i:101,s:'objVal') }
Groovy
0
zeesh49/tutorials
spring-groovy/src/main/resources/groovyContextConfig.groovy
[ "MIT" ]
call %SCRIPT_HELPERS_DIR%\setup_pytorch_env.bat git submodule update --init --recursive --jobs 0 third_party/pybind11 cd test\custom_operator :: Build the custom operator library. mkdir build pushd build echo "Executing CMake for custom_operator test..." :: Note: Caffe2 does not support MSVC + CUDA + Debug mode (has to be Release mode) cmake -DCMAKE_PREFIX_PATH=%TMP_DIR_WIN%\build\torch -DCMAKE_BUILD_TYPE=Release -GNinja .. if ERRORLEVEL 1 exit /b 1 echo "Executing Ninja for custom_operator test..." ninja -v if ERRORLEVEL 1 exit /b 1 echo "Ninja succeeded for custom_operator test." popd :: Run tests Python-side and export a script module. python test_custom_ops.py -v if ERRORLEVEL 1 exit /b 1 :: TODO: fix and re-enable this test :: See https://github.com/pytorch/pytorch/issues/25155 :: python test_custom_classes.py -v :: if ERRORLEVEL 1 exit /b 1 python model.py --export-script-module="build/model.pt" if ERRORLEVEL 1 exit /b 1 :: Run tests C++-side and load the exported script module. cd build set PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\bin\x64;%TMP_DIR_WIN%\build\torch\lib;%PATH% test_custom_ops.exe model.pt if ERRORLEVEL 1 exit /b 1
Batchfile
4
Hacky-DH/pytorch
.jenkins/pytorch/win-test-helpers/test_custom_script_ops.bat
[ "Intel" ]
require(httr) headers = c( `Accept` = 'application/vnd.go.cd.v4+json', `Content-Type` = 'application/json' ) data = '{\n "hostname": "agent02.example.com",\n "agent_config_state": "Enabled",\n "resources": ["Java","Linux"],\n "environments": ["Dev"]\n }' res <- httr::PATCH(url = 'https://ci.example.com/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da', httr::add_headers(.headers=headers), body = data, httr::authenticate('username', 'password'))
R
3
kado0413/curlconverter
fixtures/r/patch.r
[ "MIT" ]
--TEST-- DateTime::add() -- dates --CREDITS-- Daniel Convissor <[email protected]> --FILE-- <?php require 'examine_diff.inc'; define('PHPT_DATETIME_SHOW', PHPT_DATETIME_SHOW_ADD); require 'DateTime_data-dates.inc'; ?> --EXPECT-- test__7: ADD: 2009-01-07 00:00:00 EST + P+0Y0M7DT0H0M0S = **2009-01-14 00:00:00 EST** test_years_positive__7_by_0_day: ADD: 2000-02-07 00:00:00 EST + P+7Y0M0DT0H0M0S = **2007-02-07 00:00:00 EST** test_years_positive__7_by_1_day: ADD: 2000-02-07 00:00:00 EST + P+7Y0M1DT0H0M0S = **2007-02-08 00:00:00 EST** test_years_positive__6_shy_1_day: ADD: 2000-02-07 00:00:00 EST + P+6Y11M30DT0H0M0S = **2007-02-06 00:00:00 EST** test_years_positive__7_by_1_month: ADD: 2000-02-07 00:00:00 EST + P+7Y1M0DT0H0M0S = **2007-03-07 00:00:00 EST** test_years_positive__6_shy_1_month: ADD: 2000-02-07 00:00:00 EST + P+6Y11M0DT0H0M0S = **2007-01-07 00:00:00 EST** test_years_positive__7_by_1_month_split_newyear: ADD: 1999-12-07 00:00:00 EST + P+7Y1M0DT0H0M0S = **2007-01-07 00:00:00 EST** test_years_positive__6_shy_1_month_split_newyear: ADD: 2000-01-07 00:00:00 EST + P+6Y11M0DT0H0M0S = **2006-12-07 00:00:00 EST** test_negative__7: ADD: 2009-01-14 00:00:00 EST + P-0Y0M7DT0H0M0S = **2009-01-07 00:00:00 EST** test_years_negative__7_by_0_day: ADD: 2007-02-07 00:00:00 EST + P-7Y0M0DT0H0M0S = **2000-02-07 00:00:00 EST** test_years_negative__7_by_1_day: ADD: 2007-02-08 00:00:00 EST + P-7Y0M1DT0H0M0S = **2000-02-07 00:00:00 EST** test_years_negative__6_shy_1_day: ADD: 2007-02-06 00:00:00 EST + P-6Y11M28DT0H0M0S = **2000-02-07 00:00:00 EST** test_years_negative__7_by_1_month: ADD: 2007-03-07 00:00:00 EST + P-7Y1M0DT0H0M0S = **2000-02-07 00:00:00 EST** test_years_negative__6_shy_1_month: ADD: 2007-01-07 00:00:00 EST + P-6Y11M0DT0H0M0S = **2000-02-07 00:00:00 EST** test_years_negative__7_by_1_month_split_newyear: ADD: 2007-01-07 00:00:00 EST + P-7Y1M0DT0H0M0S = **1999-12-07 00:00:00 EST** test_years_negative__6_shy_1_month_split_newyear: ADD: 2006-12-07 00:00:00 EST + P-6Y11M0DT0H0M0S = **2000-01-07 00:00:00 EST**
PHP
3
thiagooak/php-src
ext/date/tests/DateTime_add-dates.phpt
[ "PHP-3.01" ]
package com.baeldung.pact; import au.com.dius.pact.consumer.Pact; import au.com.dius.pact.consumer.PactProviderRuleMk2; import au.com.dius.pact.consumer.PactVerification; import au.com.dius.pact.consumer.dsl.PactDslWithProvider; import au.com.dius.pact.model.RequestResponsePact; import org.junit.Rule; import org.junit.Test; import org.springframework.http.*; import org.springframework.web.client.RestTemplate; import java.io.IOException; import java.net.ServerSocket; import java.util.HashMap; import java.util.Map; import java.util.Random; import static org.assertj.core.api.Assertions.assertThat; public class PactConsumerDrivenContractUnitTest { private static int getAvailablePort() { return new Random() .ints(6000, 9000) .filter(PactConsumerDrivenContractUnitTest::isFree) .findFirst() .orElse(8080); } private static boolean isFree(int port) { try { new ServerSocket(port).close(); return true; } catch (IOException e) { return false; } } @Rule public PactProviderRuleMk2 mockProvider = new PactProviderRuleMk2("test_provider", "localhost", getAvailablePort(), this); @Pact(consumer = "test_consumer") public RequestResponsePact createPact(PactDslWithProvider builder) { Map<String, String> headers = new HashMap<>(); headers.put("Content-Type", "application/json"); return builder .given("test GET") .uponReceiving("GET REQUEST") .path("/pact") .method("GET") .willRespondWith() .status(200) .headers(headers) .body("{\"condition\": true, \"name\": \"tom\"}") .given("test POST") .uponReceiving("POST REQUEST") .method("POST") .headers(headers) .body("{\"name\": \"Michael\"}") .path("/pact") .willRespondWith() .status(201) .toPact(); } @Test @PactVerification() public void givenGet_whenSendRequest_shouldReturn200WithProperHeaderAndBody() { // when ResponseEntity<String> response = new RestTemplate().getForEntity(mockProvider.getUrl() + "/pact", String.class); // then assertThat(response.getStatusCode().value()).isEqualTo(200); assertThat(response.getHeaders().get("Content-Type").contains("application/json")).isTrue(); assertThat(response.getBody()).contains("condition", "true", "name", "tom"); // and HttpHeaders httpHeaders = new HttpHeaders(); httpHeaders.setContentType(MediaType.APPLICATION_JSON); String jsonBody = "{\"name\": \"Michael\"}"; // when ResponseEntity<String> postResponse = new RestTemplate().exchange(mockProvider.getUrl() + "/pact", HttpMethod.POST, new HttpEntity<>(jsonBody, httpHeaders), String.class); // then assertThat(postResponse.getStatusCode().value()).isEqualTo(201); } }
Java
5
DBatOWL/tutorials
libraries-5/src/test/java/com/baeldung/pact/PactConsumerDrivenContractUnitTest.java
[ "MIT" ]
--TEST-- Bug #73209: RecursiveArrayIterator does not iterate object properties --FILE-- <?php class hello { public $props = array(); function __construct() { $this->props = ['hello' => 5, 'props' => ['keyme' => ['test' => 5]]]; } } $data = new hello(); $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($data), RecursiveIteratorIterator::SELF_FIRST); echo "Expect to see all keys in ->props here: \n"; foreach($iterator as $k=>$v) { echo $k . "\n"; } ?> --EXPECT-- Expect to see all keys in ->props here: props hello props keyme test
PHP
3
thiagooak/php-src
ext/spl/tests/bug73209.phpt
[ "PHP-3.01" ]
module audiostreamerscrobbler.players.musiccast.MusicCastDetector import audiostreamerscrobbler.maintypes.Player.types.PlayerTypes import audiostreamerscrobbler.players.musiccast.{MusicCastPlayer, MusicCastDeviceDescriptorXmlParser} import audiostreamerscrobbler.players.protocols.SSDPHandler import java.net.URL let SEARCH_TEXT_MUSICCAST = "urn:schemas-upnp-org:device:MediaRenderer:1" let DEBUG = false function createMusicCastDetector = |cb| { let ssdpHandler = getSsdpHandlerInstance() let ssdpCb = createSsdpCallback(ssdpHandler, cb) let detector = DynamicObject("MusicCastDetector"): define("_ssdpHandler", |this| -> ssdpHandler): define("_ssdpCb", |this| -> ssdpCb): define("playerType", PlayerTypes.MusicCast()): define("start", |this| -> startMusicCastDetector(this)): define("stop", |this| -> stopMusicCastDetector(this)) return detector } local function createSsdpCallback = |ssdpHandler, cb| { let parser = createMusicCastDeviceDescriptorParser() let ignoredHosts = set[] let ssdpCb = |host, headers| { if (host isnt null and ignoredHosts: contains(host)) { if (DEBUG) { println("Device at '" + host + "' is ignored") } return } let deviceDescriptorUrl = headers: get("location") if (deviceDescriptorUrl is null) { if (DEBUG) { println("No Device Descriptor URL found in HTML header. This is not a supported MusicCast device.") } ignoredHosts: add(host) return } var inputStream = null try { inputStream = URL(deviceDescriptorUrl): openStream() let deviceDescriptor = parser: parse(inputStream) if (not _isMusicCastDevice(deviceDescriptor)) { if (DEBUG) { println("Device could not be validated as valid MusicCast device") } ignoredHosts: add(host) return } let musicCastImpl = _createMusicCastImpl(deviceDescriptor) let musicCastPlayer = createMusicCastPlayer(musicCastImpl) cb(musicCastPlayer) } finally { if (inputStream != null) { inputStream: close() } } } return ssdpCb } local function startMusicCastDetector = |detector| { let ssdpHandler = detector: _ssdpHandler() ssdpHandler: addCallback(SEARCH_TEXT_MUSICCAST, detector: _ssdpCb()) } local function stopMusicCastDetector = |detector| { let ssdpHandler = detector: _ssdpHandler() ssdpHandler: removeCallback(SEARCH_TEXT_MUSICCAST, detector: _ssdpCb()) } local function _isMusicCastDevice = |deviceDescriptor| { return (deviceDescriptor: hasRequiredElement() == true and deviceDescriptor: manufacturer() == "Yamaha Corporation" and deviceDescriptor: urlBase() isnt null and deviceDescriptor: yxcControlUrl() isnt null) } local function _createMusicCastImpl = |deviceDescriptor| { return MusicCastImpl( deviceDescriptor: name(), deviceDescriptor: model(), deviceDescriptor: manufacturer(), deviceDescriptor: host(), deviceDescriptor: urlBase(), deviceDescriptor: yxcControlUrl() ) }
Golo
5
vvdleun/audiostreamerscrobbler
src/main/golo/include/players/musiccast/MusicCastDetector.golo
[ "MIT" ]
\section{Random Numbers} %$Log: MyRandom.lhs,v $ %Revision 1.1 2004/11/30 15:25:33 simonmar %The compiler now detects local modules that overlap with package %modules, so we must rename Random to avoid the clash. % %Revision 1.1 1996/01/08 20:04:20 partain %Initial revision % %Revision 1.1 92/06/30 15:54:46 dlester %Initial revision % A call to @randomInts@ with two @Int@ arguments generates a pseudo-random sequence of @Int@'s. > module MyRandom (randomInts) where Use seeds s1 in 1..2147483562 and s2 in 1..2147483398 to generate an infinite list of random Ints. (Algorithm due to Lennart Augustsson) > randomInts :: Int -> Int -> [Int] > randomInts s1 s2 = if 1 <= s1 && s1 <= 2147483562 then > if 1 <= s2 && s2 <= 2147483398 then rands s1 s2 > else error "randomInts: Bad second seed." > else error "randomInts: Bad first seed." > rands :: Int -> Int -> [Int] > rands s1 s2 = > let > k = s1 `div` 53668 > s1' = 40014 * (s1 - k * 53668) - k * 12211 > s1'' = if s1' < 0 then s1' + 2147483563 else s1' > k' = s2 `div` 52774 > s2' = 40692 * (s2 - k' * 52774) - k' * 3791 > s2'' = if s2' < 0 then s2' + 2147483399 else s2' > z = s1'' - s2'' > in if z < 1 then z + 2147483562 : rands s1'' s2'' > else z : rands s1'' s2''
Literate Haskell
4
ryantrinkle/ghcjs
test/nofib/spectral/primetest/MyRandom.lhs
[ "MIT" ]
.. include:: _contributors.rst .. currentmodule:: sklearn .. _changes_0_22_2: Version 0.22.2.post1 ==================== **March 3 2020** The 0.22.2.post1 release includes a packaging fix for the source distribution but the content of the packages is otherwise identical to the content of the wheels with the 0.22.2 version (without the .post1 suffix). Both contain the following changes. Changelog --------- :mod:`sklearn.impute` ..................... - |Efficiency| Reduce :func:`impute.KNNImputer` asymptotic memory usage by chunking pairwise distance computation. :pr:`16397` by `Joel Nothman`_. :mod:`sklearn.metrics` ...................... - |Fix| Fixed a bug in :func:`metrics.plot_roc_curve` where the name of the estimator was passed in the :class:`metrics.RocCurveDisplay` instead of the parameter `name`. It results in a different plot when calling :meth:`metrics.RocCurveDisplay.plot` for the subsequent times. :pr:`16500` by :user:`Guillaume Lemaitre <glemaitre>`. - |Fix| Fixed a bug in :func:`metrics.plot_precision_recall_curve` where the name of the estimator was passed in the :class:`metrics.PrecisionRecallDisplay` instead of the parameter `name`. It results in a different plot when calling :meth:`metrics.PrecisionRecallDisplay.plot` for the subsequent times. :pr:`16505` by :user:`Guillaume Lemaitre <glemaitre>`. :mod:`sklearn.neighbors` .............................. - |Fix| Fix a bug which converted a list of arrays into a 2-D object array instead of a 1-D array containing NumPy arrays. This bug was affecting :meth:`neighbors.NearestNeighbors.radius_neighbors`. :pr:`16076` by :user:`Guillaume Lemaitre <glemaitre>` and :user:`Alex Shacked <alexshacked>`. .. _changes_0_22_1: Version 0.22.1 ============== **January 2 2020** This is a bug-fix release to primarily resolve some packaging issues in version 0.22.0. It also includes minor documentation improvements and some bug fixes. Changelog --------- :mod:`sklearn.cluster` ...................... - |Fix| :class:`cluster.KMeans` with ``algorithm="elkan"`` now uses the same stopping criterion as with the default ``algorithm="full"``. :pr:`15930` by :user:`inder128`. :mod:`sklearn.inspection` ......................... - |Fix| :func:`inspection.permutation_importance` will return the same `importances` when a `random_state` is given for both `n_jobs=1` or `n_jobs>1` both with shared memory backends (thread-safety) and isolated memory, process-based backends. Also avoid casting the data as object dtype and avoid read-only error on large dataframes with `n_jobs>1` as reported in :issue:`15810`. Follow-up of :pr:`15898` by :user:`Shivam Gargsya <shivamgargsya>`. :pr:`15933` by :user:`Guillaume Lemaitre <glemaitre>` and `Olivier Grisel`_. - |Fix| :func:`inspection.plot_partial_dependence` and :meth:`inspection.PartialDependenceDisplay.plot` now consistently checks the number of axes passed in. :pr:`15760` by `Thomas Fan`_. :mod:`sklearn.metrics` ...................... - |Fix| :func:`metrics.plot_confusion_matrix` now raises error when `normalize` is invalid. Previously, it runs fine with no normalization. :pr:`15888` by `Hanmin Qin`_. - |Fix| :func:`metrics.plot_confusion_matrix` now colors the label color correctly to maximize contrast with its background. :pr:`15936` by `Thomas Fan`_ and :user:`DizietAsahi`. - |Fix| :func:`metrics.classification_report` does no longer ignore the value of the ``zero_division`` keyword argument. :pr:`15879` by :user:`Bibhash Chandra Mitra <Bibyutatsu>`. - |Fix| Fixed a bug in :func:`metrics.plot_confusion_matrix` to correctly pass the `values_format` parameter to the :class:`ConfusionMatrixDisplay` plot() call. :pr:`15937` by :user:`Stephen Blystone <blynotes>`. :mod:`sklearn.model_selection` .............................. - |Fix| :class:`model_selection.GridSearchCV` and :class:`model_selection.RandomizedSearchCV` accept scalar values provided in `fit_params`. Change in 0.22 was breaking backward compatibility. :pr:`15863` by :user:`Adrin Jalali <adrinjalali>` and :user:`Guillaume Lemaitre <glemaitre>`. :mod:`sklearn.naive_bayes` .......................... - |Fix| Removed `abstractmethod` decorator for the method `_check_X` in :class:`naive_bayes.BaseNB` that could break downstream projects inheriting from this deprecated public base class. :pr:`15996` by :user:`Brigitta Sipőcz <bsipocz>`. :mod:`sklearn.preprocessing` ............................ - |Fix| :class:`preprocessing.QuantileTransformer` now guarantees the `quantiles_` attribute to be completely sorted in non-decreasing manner. :pr:`15751` by :user:`Tirth Patel <tirthasheshpatel>`. :mod:`sklearn.semi_supervised` .............................. - |Fix| :class:`semi_supervised.LabelPropagation` and :class:`semi_supervised.LabelSpreading` now allow callable kernel function to return sparse weight matrix. :pr:`15868` by :user:`Niklas Smedemark-Margulies <nik-sm>`. :mod:`sklearn.utils` .................... - |Fix| :func:`utils.check_array` now correctly converts pandas DataFrame with boolean columns to floats. :pr:`15797` by `Thomas Fan`_. - |Fix| :func:`utils.check_is_fitted` accepts back an explicit ``attributes`` argument to check for specific attributes as explicit markers of a fitted estimator. When no explicit ``attributes`` are provided, only the attributes that end with a underscore and do not start with double underscore are used as "fitted" markers. The ``all_or_any`` argument is also no longer deprecated. This change is made to restore some backward compatibility with the behavior of this utility in version 0.21. :pr:`15947` by `Thomas Fan`_. .. _changes_0_22: Version 0.22.0 ============== **December 3 2019** For a short description of the main highlights of the release, please refer to :ref:`sphx_glr_auto_examples_release_highlights_plot_release_highlights_0_22_0.py`. .. include:: changelog_legend.inc Website update -------------- `Our website <https://scikit-learn.org/>`_ was revamped and given a fresh new look. :pr:`14849` by `Thomas Fan`_. Clear definition of the public API ---------------------------------- Scikit-learn has a public API, and a private API. We do our best not to break the public API, and to only introduce backward-compatible changes that do not require any user action. However, in cases where that's not possible, any change to the public API is subject to a deprecation cycle of two minor versions. The private API isn't publicly documented and isn't subject to any deprecation cycle, so users should not rely on its stability. A function or object is public if it is documented in the `API Reference <https://scikit-learn.org/dev/modules/classes.html>`_ and if it can be imported with an import path without leading underscores. For example ``sklearn.pipeline.make_pipeline`` is public, while `sklearn.pipeline._name_estimators` is private. ``sklearn.ensemble._gb.BaseEnsemble`` is private too because the whole `_gb` module is private. Up to 0.22, some tools were de-facto public (no leading underscore), while they should have been private in the first place. In version 0.22, these tools have been made properly private, and the public API space has been cleaned. In addition, importing from most sub-modules is now deprecated: you should for example use ``from sklearn.cluster import Birch`` instead of ``from sklearn.cluster.birch import Birch`` (in practice, ``birch.py`` has been moved to ``_birch.py``). .. note:: All the tools in the public API should be documented in the `API Reference <https://scikit-learn.org/dev/modules/classes.html>`_. If you find a public tool (without leading underscore) that isn't in the API reference, that means it should either be private or documented. Please let us know by opening an issue! This work was tracked in `issue 9250 <https://github.com/scikit-learn/scikit-learn/issues/9250>`_ and `issue 12927 <https://github.com/scikit-learn/scikit-learn/issues/12927>`_. Deprecations: using ``FutureWarning`` from now on ------------------------------------------------- When deprecating a feature, previous versions of scikit-learn used to raise a ``DeprecationWarning``. Since the ``DeprecationWarnings`` aren't shown by default by Python, scikit-learn needed to resort to a custom warning filter to always show the warnings. That filter would sometimes interfere with users custom warning filters. Starting from version 0.22, scikit-learn will show ``FutureWarnings`` for deprecations, `as recommended by the Python documentation <https://docs.python.org/3/library/exceptions.html#FutureWarning>`_. ``FutureWarnings`` are always shown by default by Python, so the custom filter has been removed and scikit-learn no longer hinders with user filters. :pr:`15080` by `Nicolas Hug`_. Changed models -------------- The following estimators and functions, when fit with the same data and parameters, may produce different models from the previous version. This often occurs due to changes in the modelling logic (bug fixes or enhancements), or in random sampling procedures. - :class:`cluster.KMeans` when `n_jobs=1`. |Fix| - :class:`decomposition.SparseCoder`, :class:`decomposition.DictionaryLearning`, and :class:`decomposition.MiniBatchDictionaryLearning` |Fix| - :class:`decomposition.SparseCoder` with `algorithm='lasso_lars'` |Fix| - :class:`decomposition.SparsePCA` where `normalize_components` has no effect due to deprecation. - :class:`ensemble.HistGradientBoostingClassifier` and :class:`ensemble.HistGradientBoostingRegressor` |Fix|, |Feature|, |Enhancement|. - :class:`impute.IterativeImputer` when `X` has features with no missing values. |Feature| - :class:`linear_model.Ridge` when `X` is sparse. |Fix| - :class:`model_selection.StratifiedKFold` and any use of `cv=int` with a classifier. |Fix| - :class:`cross_decomposition.CCA` when using scipy >= 1.3 |Fix| Details are listed in the changelog below. (While we are trying to better inform users by providing this information, we cannot assure that this list is complete.) Changelog --------- .. Entries should be grouped by module (in alphabetic order) and prefixed with one of the labels: |MajorFeature|, |Feature|, |Efficiency|, |Enhancement|, |Fix| or |API| (see whats_new.rst for descriptions). Entries should be ordered by those labels (e.g. |Fix| after |Efficiency|). Changes not specific to a module should be listed under *Multiple Modules* or *Miscellaneous*. Entries should end with: :pr:`123456` by :user:`Joe Bloggs <joeongithub>`. where 123456 is the *pull request* number, not the issue number. :mod:`sklearn.base` ................... - |API| From version 0.24 :meth:`base.BaseEstimator.get_params` will raise an AttributeError rather than return None for parameters that are in the estimator's constructor but not stored as attributes on the instance. :pr:`14464` by `Joel Nothman`_. :mod:`sklearn.calibration` .......................... - |Fix| Fixed a bug that made :class:`calibration.CalibratedClassifierCV` fail when given a `sample_weight` parameter of type `list` (in the case where `sample_weights` are not supported by the wrapped estimator). :pr:`13575` by :user:`William de Vazelhes <wdevazelhes>`. :mod:`sklearn.cluster` ...................... - |Feature| :class:`cluster.SpectralClustering` now accepts precomputed sparse neighbors graph as input. :issue:`10482` by `Tom Dupre la Tour`_ and :user:`Kumar Ashutosh <thechargedneutron>`. - |Enhancement| :class:`cluster.SpectralClustering` now accepts a ``n_components`` parameter. This parameter extends `SpectralClustering` class functionality to match :meth:`cluster.spectral_clustering`. :pr:`13726` by :user:`Shuzhe Xiao <fdas3213>`. - |Fix| Fixed a bug where :class:`cluster.KMeans` produced inconsistent results between `n_jobs=1` and `n_jobs>1` due to the handling of the random state. :pr:`9288` by :user:`Bryan Yang <bryanyang0528>`. - |Fix| Fixed a bug where `elkan` algorithm in :class:`cluster.KMeans` was producing Segmentation Fault on large arrays due to integer index overflow. :pr:`15057` by :user:`Vladimir Korolev <balodja>`. - |Fix| :class:`~cluster.MeanShift` now accepts a :term:`max_iter` with a default value of 300 instead of always using the default 300. It also now exposes an ``n_iter_`` indicating the maximum number of iterations performed on each seed. :pr:`15120` by `Adrin Jalali`_. - |Fix| :class:`cluster.AgglomerativeClustering` and :class:`cluster.FeatureAgglomeration` now raise an error if `affinity='cosine'` and `X` has samples that are all-zeros. :pr:`7943` by :user:`mthorrell`. :mod:`sklearn.compose` ...................... - |Feature| Adds :func:`compose.make_column_selector` which is used with :class:`compose.ColumnTransformer` to select DataFrame columns on the basis of name and dtype. :pr:`12303` by `Thomas Fan`_. - |Fix| Fixed a bug in :class:`compose.ColumnTransformer` which failed to select the proper columns when using a boolean list, with NumPy older than 1.12. :pr:`14510` by `Guillaume Lemaitre`_. - |Fix| Fixed a bug in :class:`compose.TransformedTargetRegressor` which did not pass `**fit_params` to the underlying regressor. :pr:`14890` by :user:`Miguel Cabrera <mfcabrera>`. - |Fix| The :class:`compose.ColumnTransformer` now requires the number of features to be consistent between `fit` and `transform`. A `FutureWarning` is raised now, and this will raise an error in 0.24. If the number of features isn't consistent and negative indexing is used, an error is raised. :pr:`14544` by `Adrin Jalali`_. :mod:`sklearn.cross_decomposition` .................................. - |Feature| :class:`cross_decomposition.PLSCanonical` and :class:`cross_decomposition.PLSRegression` have a new function ``inverse_transform`` to transform data to the original space. :pr:`15304` by :user:`Jaime Ferrando Huertas <jiwidi>`. - |Enhancement| :class:`decomposition.KernelPCA` now properly checks the eigenvalues found by the solver for numerical or conditioning issues. This ensures consistency of results across solvers (different choices for ``eigen_solver``), including approximate solvers such as ``'randomized'`` and ``'lobpcg'`` (see :issue:`12068`). :pr:`12145` by :user:`Sylvain Marié <smarie>` - |Fix| Fixed a bug where :class:`cross_decomposition.PLSCanonical` and :class:`cross_decomposition.PLSRegression` were raising an error when fitted with a target matrix `Y` in which the first column was constant. :issue:`13609` by :user:`Camila Williamson <camilaagw>`. - |Fix| :class:`cross_decomposition.CCA` now produces the same results with scipy 1.3 and previous scipy versions. :pr:`15661` by `Thomas Fan`_. :mod:`sklearn.datasets` ....................... - |Feature| :func:`datasets.fetch_openml` now supports heterogeneous data using pandas by setting `as_frame=True`. :pr:`13902` by `Thomas Fan`_. - |Feature| :func:`datasets.fetch_openml` now includes the `target_names` in the returned Bunch. :pr:`15160` by `Thomas Fan`_. - |Enhancement| The parameter `return_X_y` was added to :func:`datasets.fetch_20newsgroups` and :func:`datasets.fetch_olivetti_faces` . :pr:`14259` by :user:`Sourav Singh <souravsingh>`. - |Enhancement| :func:`datasets.make_classification` now accepts array-like `weights` parameter, i.e. list or numpy.array, instead of list only. :pr:`14764` by :user:`Cat Chenal <CatChenal>`. - |Enhancement| The parameter `normalize` was added to :func:`datasets.fetch_20newsgroups_vectorized`. :pr:`14740` by :user:`Stéphan Tulkens <stephantul>` - |Fix| Fixed a bug in :func:`datasets.fetch_openml`, which failed to load an OpenML dataset that contains an ignored feature. :pr:`14623` by :user:`Sarra Habchi <HabchiSarra>`. :mod:`sklearn.decomposition` ............................ - |Efficiency| :class:`decomposition.NMF(solver='mu')` fitted on sparse input matrices now uses batching to avoid briefly allocating an array with size (#non-zero elements, n_components). :pr:`15257` by `Mart Willocx <Maocx>`_. - |Enhancement| :func:`decomposition.dict_learning()` and :func:`decomposition.dict_learning_online()` now accept `method_max_iter` and pass it to :meth:`decomposition.sparse_encode`. :issue:`12650` by `Adrin Jalali`_. - |Enhancement| :class:`decomposition.SparseCoder`, :class:`decomposition.DictionaryLearning`, and :class:`decomposition.MiniBatchDictionaryLearning` now take a `transform_max_iter` parameter and pass it to either :func:`decomposition.dict_learning()` or :func:`decomposition.sparse_encode()`. :issue:`12650` by `Adrin Jalali`_. - |Enhancement| :class:`decomposition.IncrementalPCA` now accepts sparse matrices as input, converting them to dense in batches thereby avoiding the need to store the entire dense matrix at once. :pr:`13960` by :user:`Scott Gigante <scottgigante>`. - |Fix| :func:`decomposition.sparse_encode()` now passes the `max_iter` to the underlying :class:`linear_model.LassoLars` when `algorithm='lasso_lars'`. :issue:`12650` by `Adrin Jalali`_. :mod:`sklearn.dummy` .................... - |Fix| :class:`dummy.DummyClassifier` now handles checking the existence of the provided constant in multiouput cases. :pr:`14908` by :user:`Martina G. Vilas <martinagvilas>`. - |API| The default value of the `strategy` parameter in :class:`dummy.DummyClassifier` will change from `'stratified'` in version 0.22 to `'prior'` in 0.24. A FutureWarning is raised when the default value is used. :pr:`15382` by `Thomas Fan`_. - |API| The ``outputs_2d_`` attribute is deprecated in :class:`dummy.DummyClassifier` and :class:`dummy.DummyRegressor`. It is equivalent to ``n_outputs > 1``. :pr:`14933` by `Nicolas Hug`_ :mod:`sklearn.ensemble` ....................... - |MajorFeature| Added :class:`ensemble.StackingClassifier` and :class:`ensemble.StackingRegressor` to stack predictors using a final classifier or regressor. :pr:`11047` by :user:`Guillaume Lemaitre <glemaitre>` and :user:`Caio Oliveira <caioaao>` and :pr:`15138` by :user:`Jon Cusick <jcusick13>`.. - |MajorFeature| Many improvements were made to :class:`ensemble.HistGradientBoostingClassifier` and :class:`ensemble.HistGradientBoostingRegressor`: - |Feature| Estimators now natively support dense data with missing values both for training and predicting. They also support infinite values. :pr:`13911` and :pr:`14406` by `Nicolas Hug`_, `Adrin Jalali`_ and `Olivier Grisel`_. - |Feature| Estimators now have an additional `warm_start` parameter that enables warm starting. :pr:`14012` by :user:`Johann Faouzi <johannfaouzi>`. - |Feature| :func:`inspection.partial_dependence` and :func:`inspection.plot_partial_dependence` now support the fast 'recursion' method for both estimators. :pr:`13769` by `Nicolas Hug`_. - |Enhancement| for :class:`ensemble.HistGradientBoostingClassifier` the training loss or score is now monitored on a class-wise stratified subsample to preserve the class balance of the original training set. :pr:`14194` by :user:`Johann Faouzi <johannfaouzi>`. - |Enhancement| :class:`ensemble.HistGradientBoostingRegressor` now supports the 'least_absolute_deviation' loss. :pr:`13896` by `Nicolas Hug`_. - |Fix| Estimators now bin the training and validation data separately to avoid any data leak. :pr:`13933` by `Nicolas Hug`_. - |Fix| Fixed a bug where early stopping would break with string targets. :pr:`14710` by `Guillaume Lemaitre`_. - |Fix| :class:`ensemble.HistGradientBoostingClassifier` now raises an error if ``categorical_crossentropy`` loss is given for a binary classification problem. :pr:`14869` by `Adrin Jalali`_. Note that pickles from 0.21 will not work in 0.22. - |Enhancement| Addition of ``max_samples`` argument allows limiting size of bootstrap samples to be less than size of dataset. Added to :class:`ensemble.RandomForestClassifier`, :class:`ensemble.RandomForestRegressor`, :class:`ensemble.ExtraTreesClassifier`, :class:`ensemble.ExtraTreesRegressor`. :pr:`14682` by :user:`Matt Hancock <notmatthancock>` and :pr:`5963` by :user:`Pablo Duboue <DrDub>`. - |Fix| :func:`ensemble.VotingClassifier.predict_proba` will no longer be present when `voting='hard'`. :pr:`14287` by `Thomas Fan`_. - |Fix| The `named_estimators_` attribute in :class:`ensemble.VotingClassifier` and :class:`ensemble.VotingRegressor` now correctly maps to dropped estimators. Previously, the `named_estimators_` mapping was incorrect whenever one of the estimators was dropped. :pr:`15375` by `Thomas Fan`_. - |Fix| Run by default :func:`utils.estimator_checks.check_estimator` on both :class:`ensemble.VotingClassifier` and :class:`ensemble.VotingRegressor`. It leads to solve issues regarding shape consistency during `predict` which was failing when the underlying estimators were not outputting consistent array dimensions. Note that it should be replaced by refactoring the common tests in the future. :pr:`14305` by `Guillaume Lemaitre`_. - |Fix| :class:`ensemble.AdaBoostClassifier` computes probabilities based on the decision function as in the literature. Thus, `predict` and `predict_proba` give consistent results. :pr:`14114` by `Guillaume Lemaitre`_. - |Fix| Stacking and Voting estimators now ensure that their underlying estimators are either all classifiers or all regressors. :class:`ensemble.StackingClassifier`, :class:`ensemble.StackingRegressor`, and :class:`ensemble.VotingClassifier` and :class:`VotingRegressor` now raise consistent error messages. :pr:`15084` by `Guillaume Lemaitre`_. - |Fix| :class:`ensemble.AdaBoostRegressor` where the loss should be normalized by the max of the samples with non-null weights only. :pr:`14294` by `Guillaume Lemaitre`_. - |API| ``presort`` is now deprecated in :class:`ensemble.GradientBoostingClassifier` and :class:`ensemble.GradientBoostingRegressor`, and the parameter has no effect. Users are recommended to use :class:`ensemble.HistGradientBoostingClassifier` and :class:`ensemble.HistGradientBoostingRegressor` instead. :pr:`14907` by `Adrin Jalali`_. :mod:`sklearn.feature_extraction` ................................. - |Enhancement| A warning will now be raised if a parameter choice means that another parameter will be unused on calling the fit() method for :class:`feature_extraction.text.HashingVectorizer`, :class:`feature_extraction.text.CountVectorizer` and :class:`feature_extraction.text.TfidfVectorizer`. :pr:`14602` by :user:`Gaurav Chawla <getgaurav2>`. - |Fix| Functions created by ``build_preprocessor`` and ``build_analyzer`` of :class:`feature_extraction.text.VectorizerMixin` can now be pickled. :pr:`14430` by :user:`Dillon Niederhut <deniederhut>`. - |Fix| :func:`feature_extraction.text.strip_accents_unicode` now correctly removes accents from strings that are in NFKD normalized form. :pr:`15100` by :user:`Daniel Grady <DGrady>`. - |Fix| Fixed a bug that caused :class:`feature_extraction.DictVectorizer` to raise an `OverflowError` during the `transform` operation when producing a `scipy.sparse` matrix on large input data. :pr:`15463` by :user:`Norvan Sahiner <norvan>`. - |API| Deprecated unused `copy` param for :meth:`feature_extraction.text.TfidfVectorizer.transform` it will be removed in v0.24. :pr:`14520` by :user:`Guillem G. Subies <guillemgsubies>`. :mod:`sklearn.feature_selection` ................................ - |Enhancement| Updated the following :mod:`feature_selection` estimators to allow NaN/Inf values in ``transform`` and ``fit``: :class:`feature_selection.RFE`, :class:`feature_selection.RFECV`, :class:`feature_selection.SelectFromModel`, and :class:`feature_selection.VarianceThreshold`. Note that if the underlying estimator of the feature selector does not allow NaN/Inf then it will still error, but the feature selectors themselves no longer enforce this restriction unnecessarily. :issue:`11635` by :user:`Alec Peters <adpeters>`. - |Fix| Fixed a bug where :class:`feature_selection.VarianceThreshold` with `threshold=0` did not remove constant features due to numerical instability, by using range rather than variance in this case. :pr:`13704` by :user:`Roddy MacSween <rlms>`. :mod:`sklearn.gaussian_process` ............................... - |Feature| Gaussian process models on structured data: :class:`gaussian_process.GaussianProcessRegressor` and :class:`gaussian_process.GaussianProcessClassifier` can now accept a list of generic objects (e.g. strings, trees, graphs, etc.) as the ``X`` argument to their training/prediction methods. A user-defined kernel should be provided for computing the kernel matrix among the generic objects, and should inherit from :class:`gaussian_process.kernels.GenericKernelMixin` to notify the GPR/GPC model that it handles non-vectorial samples. :pr:`15557` by :user:`Yu-Hang Tang <yhtang>`. - |Efficiency| :func:`gaussian_process.GaussianProcessClassifier.log_marginal_likelihood` and :func:`gaussian_process.GaussianProcessRegressor.log_marginal_likelihood` now accept a ``clone_kernel=True`` keyword argument. When set to ``False``, the kernel attribute is modified, but may result in a performance improvement. :pr:`14378` by :user:`Masashi Shibata <c-bata>`. - |API| From version 0.24 :meth:`gaussian_process.kernels.Kernel.get_params` will raise an ``AttributeError`` rather than return ``None`` for parameters that are in the estimator's constructor but not stored as attributes on the instance. :pr:`14464` by `Joel Nothman`_. :mod:`sklearn.impute` ..................... - |MajorFeature| Added :class:`impute.KNNImputer`, to impute missing values using k-Nearest Neighbors. :issue:`12852` by :user:`Ashim Bhattarai <ashimb9>` and `Thomas Fan`_ and :pr:`15010` by `Guillaume Lemaitre`_. - |Feature| :class:`impute.IterativeImputer` has new `skip_compute` flag that is False by default, which, when True, will skip computation on features that have no missing values during the fit phase. :issue:`13773` by :user:`Sergey Feldman <sergeyf>`. - |Efficiency| :meth:`impute.MissingIndicator.fit_transform` avoid repeated computation of the masked matrix. :pr:`14356` by :user:`Harsh Soni <harsh020>`. - |Fix| :class:`impute.IterativeImputer` now works when there is only one feature. By :user:`Sergey Feldman <sergeyf>`. - |Fix| Fixed a bug in :class:`impute.IterativeImputer` where features where imputed in the reverse desired order with ``imputation_order`` either ``"ascending"`` or ``"descending"``. :pr:`15393` by :user:`Venkatachalam N <venkyyuvy>`. :mod:`sklearn.inspection` ......................... - |MajorFeature| :func:`inspection.permutation_importance` has been added to measure the importance of each feature in an arbitrary trained model with respect to a given scoring function. :issue:`13146` by `Thomas Fan`_. - |Feature| :func:`inspection.partial_dependence` and :func:`inspection.plot_partial_dependence` now support the fast 'recursion' method for :class:`ensemble.HistGradientBoostingClassifier` and :class:`ensemble.HistGradientBoostingRegressor`. :pr:`13769` by `Nicolas Hug`_. - |Enhancement| :func:`inspection.plot_partial_dependence` has been extended to now support the new visualization API described in the :ref:`User Guide <visualizations>`. :pr:`14646` by `Thomas Fan`_. - |Enhancement| :func:`inspection.partial_dependence` accepts pandas DataFrame and :class:`pipeline.Pipeline` containing :class:`compose.ColumnTransformer`. In addition :func:`inspection.plot_partial_dependence` will use the column names by default when a dataframe is passed. :pr:`14028` and :pr:`15429` by `Guillaume Lemaitre`_. :mod:`sklearn.kernel_approximation` ................................... - |Fix| Fixed a bug where :class:`kernel_approximation.Nystroem` raised a `KeyError` when using `kernel="precomputed"`. :pr:`14706` by :user:`Venkatachalam N <venkyyuvy>`. :mod:`sklearn.linear_model` ........................... - |Efficiency| The 'liblinear' logistic regression solver is now faster and requires less memory. :pr:`14108`, :pr:`14170`, :pr:`14296` by :user:`Alex Henrie <alexhenrie>`. - |Enhancement| :class:`linear_model.BayesianRidge` now accepts hyperparameters ``alpha_init`` and ``lambda_init`` which can be used to set the initial value of the maximization procedure in :term:`fit`. :pr:`13618` by :user:`Yoshihiro Uchida <c56pony>`. - |Fix| :class:`linear_model.Ridge` now correctly fits an intercept when `X` is sparse, `solver="auto"` and `fit_intercept=True`, because the default solver in this configuration has changed to `sparse_cg`, which can fit an intercept with sparse data. :pr:`13995` by :user:`Jérôme Dockès <jeromedockes>`. - |Fix| :class:`linear_model.Ridge` with `solver='sag'` now accepts F-ordered and non-contiguous arrays and makes a conversion instead of failing. :pr:`14458` by `Guillaume Lemaitre`_. - |Fix| :class:`linear_model.LassoCV` no longer forces ``precompute=False`` when fitting the final model. :pr:`14591` by `Andreas Müller`_. - |Fix| :class:`linear_model.RidgeCV` and :class:`linear_model.RidgeClassifierCV` now correctly scores when `cv=None`. :pr:`14864` by :user:`Venkatachalam N <venkyyuvy>`. - |Fix| Fixed a bug in :class:`linear_model.LogisticRegressionCV` where the ``scores_``, ``n_iter_`` and ``coefs_paths_`` attribute would have a wrong ordering with ``penalty='elastic-net'``. :pr:`15044` by `Nicolas Hug`_ - |Fix| :class:`linear_model.MultiTaskLassoCV` and :class:`linear_model.MultiTaskElasticNetCV` with X of dtype int and `fit_intercept=True`. :pr:`15086` by :user:`Alex Gramfort <agramfort>`. - |Fix| The liblinear solver now supports ``sample_weight``. :pr:`15038` by `Guillaume Lemaitre`_. :mod:`sklearn.manifold` ....................... - |Feature| :class:`manifold.Isomap`, :class:`manifold.TSNE`, and :class:`manifold.SpectralEmbedding` now accept precomputed sparse neighbors graph as input. :issue:`10482` by `Tom Dupre la Tour`_ and :user:`Kumar Ashutosh <thechargedneutron>`. - |Feature| Exposed the ``n_jobs`` parameter in :class:`manifold.TSNE` for multi-core calculation of the neighbors graph. This parameter has no impact when ``metric="precomputed"`` or (``metric="euclidean"`` and ``method="exact"``). :issue:`15082` by `Roman Yurchak`_. - |Efficiency| Improved efficiency of :class:`manifold.TSNE` when ``method="barnes-hut"`` by computing the gradient in parallel. :pr:`13213` by :user:`Thomas Moreau <tommoral>` - |Fix| Fixed a bug where :func:`manifold.spectral_embedding` (and therefore :class:`manifold.SpectralEmbedding` and :class:`cluster.SpectralClustering`) computed wrong eigenvalues with ``eigen_solver='amg'`` when ``n_samples < 5 * n_components``. :pr:`14647` by `Andreas Müller`_. - |Fix| Fixed a bug in :func:`manifold.spectral_embedding` used in :class:`manifold.SpectralEmbedding` and :class:`cluster.SpectralClustering` where ``eigen_solver="amg"`` would sometimes result in a LinAlgError. :issue:`13393` by :user:`Andrew Knyazev <lobpcg>` :pr:`13707` by :user:`Scott White <whitews>` - |API| Deprecate ``training_data_`` unused attribute in :class:`manifold.Isomap`. :issue:`10482` by `Tom Dupre la Tour`_. :mod:`sklearn.metrics` ...................... - |MajorFeature| :func:`metrics.plot_roc_curve` has been added to plot roc curves. This function introduces the visualization API described in the :ref:`User Guide <visualizations>`. :pr:`14357` by `Thomas Fan`_. - |Feature| Added a new parameter ``zero_division`` to multiple classification metrics: :func:`precision_score`, :func:`recall_score`, :func:`f1_score`, :func:`fbeta_score`, :func:`precision_recall_fscore_support`, :func:`classification_report`. This allows to set returned value for ill-defined metrics. :pr:`14900` by :user:`Marc Torrellas Socastro <marctorrellas>`. - |Feature| Added the :func:`metrics.pairwise.nan_euclidean_distances` metric, which calculates euclidean distances in the presence of missing values. :issue:`12852` by :user:`Ashim Bhattarai <ashimb9>` and `Thomas Fan`_. - |Feature| New ranking metrics :func:`metrics.ndcg_score` and :func:`metrics.dcg_score` have been added to compute Discounted Cumulative Gain and Normalized Discounted Cumulative Gain. :pr:`9951` by :user:`Jérôme Dockès <jeromedockes>`. - |Feature| :func:`metrics.plot_precision_recall_curve` has been added to plot precision recall curves. :pr:`14936` by `Thomas Fan`_. - |Feature| :func:`metrics.plot_confusion_matrix` has been added to plot confusion matrices. :pr:`15083` by `Thomas Fan`_. - |Feature| Added multiclass support to :func:`metrics.roc_auc_score` with corresponding scorers `'roc_auc_ovr'`, `'roc_auc_ovo'`, `'roc_auc_ovr_weighted'`, and `'roc_auc_ovo_weighted'`. :pr:`12789` and :pr:`15274` by :user:`Kathy Chen <kathyxchen>`, :user:`Mohamed Maskani <maskani-moh>`, and `Thomas Fan`_. - |Feature| Add :class:`metrics.mean_tweedie_deviance` measuring the Tweedie deviance for a given ``power`` parameter. Also add mean Poisson deviance :class:`metrics.mean_poisson_deviance` and mean Gamma deviance :class:`metrics.mean_gamma_deviance` that are special cases of the Tweedie deviance for ``power=1`` and ``power=2`` respectively. :pr:`13938` by :user:`Christian Lorentzen <lorentzenchr>` and `Roman Yurchak`_. - |Efficiency| Improved performance of :func:`metrics.pairwise.manhattan_distances` in the case of sparse matrices. :pr:`15049` by `Paolo Toccaceli <ptocca>`. - |Enhancement| The parameter ``beta`` in :func:`metrics.fbeta_score` is updated to accept the zero and `float('+inf')` value. :pr:`13231` by :user:`Dong-hee Na <corona10>`. - |Enhancement| Added parameter ``squared`` in :func:`metrics.mean_squared_error` to return root mean squared error. :pr:`13467` by :user:`Urvang Patel <urvang96>`. - |Enhancement| Allow computing averaged metrics in the case of no true positives. :pr:`14595` by `Andreas Müller`_. - |Enhancement| Multilabel metrics now supports list of lists as input. :pr:`14865` :user:`Srivatsan Ramesh <srivatsan-ramesh>`, :user:`Herilalaina Rakotoarison <herilalaina>`, :user:`Léonard Binet <leonardbinet>`. - |Enhancement| :func:`metrics.median_absolute_error` now supports ``multioutput`` parameter. :pr:`14732` by :user:`Agamemnon Krasoulis <agamemnonc>`. - |Enhancement| 'roc_auc_ovr_weighted' and 'roc_auc_ovo_weighted' can now be used as the :term:`scoring` parameter of model-selection tools. :pr:`14417` by `Thomas Fan`_. - |Enhancement| :func:`metrics.confusion_matrix` accepts a parameters `normalize` allowing to normalize the confusion matrix by column, rows, or overall. :pr:`15625` by `Guillaume Lemaitre <glemaitre>`. - |Fix| Raise a ValueError in :func:`metrics.silhouette_score` when a precomputed distance matrix contains non-zero diagonal entries. :pr:`12258` by :user:`Stephen Tierney <sjtrny>`. - |API| ``scoring="neg_brier_score"`` should be used instead of ``scoring="brier_score_loss"`` which is now deprecated. :pr:`14898` by :user:`Stefan Matcovici <stefan-matcovici>`. :mod:`sklearn.model_selection` .............................. - |Efficiency| Improved performance of multimetric scoring in :func:`model_selection.cross_validate`, :class:`model_selection.GridSearchCV`, and :class:`model_selection.RandomizedSearchCV`. :pr:`14593` by `Thomas Fan`_. - |Enhancement| :class:`model_selection.learning_curve` now accepts parameter ``return_times`` which can be used to retrieve computation times in order to plot model scalability (see learning_curve example). :pr:`13938` by :user:`Hadrien Reboul <H4dr1en>`. - |Enhancement| :class:`model_selection.RandomizedSearchCV` now accepts lists of parameter distributions. :pr:`14549` by `Andreas Müller`_. - |Fix| Reimplemented :class:`model_selection.StratifiedKFold` to fix an issue where one test set could be `n_classes` larger than another. Test sets should now be near-equally sized. :pr:`14704` by `Joel Nothman`_. - |Fix| The `cv_results_` attribute of :class:`model_selection.GridSearchCV` and :class:`model_selection.RandomizedSearchCV` now only contains unfitted estimators. This potentially saves a lot of memory since the state of the estimators isn't stored. :pr:`#15096` by `Andreas Müller`_. - |API| :class:`model_selection.KFold` and :class:`model_selection.StratifiedKFold` now raise a warning if `random_state` is set but `shuffle` is False. This will raise an error in 0.24. :mod:`sklearn.multioutput` .......................... - |Fix| :class:`multioutput.MultiOutputClassifier` now has attribute ``classes_``. :pr:`14629` by :user:`Agamemnon Krasoulis <agamemnonc>`. - |Fix| :class:`multioutput.MultiOutputClassifier` now has `predict_proba` as property and can be checked with `hasattr`. :issue:`15488` :pr:`15490` by :user:`Rebekah Kim <rebekahkim>` :mod:`sklearn.naive_bayes` ............................... - |MajorFeature| Added :class:`naive_bayes.CategoricalNB` that implements the Categorical Naive Bayes classifier. :pr:`12569` by :user:`Tim Bicker <timbicker>` and :user:`Florian Wilhelm <FlorianWilhelm>`. :mod:`sklearn.neighbors` ........................ - |MajorFeature| Added :class:`neighbors.KNeighborsTransformer` and :class:`neighbors.RadiusNeighborsTransformer`, which transform input dataset into a sparse neighbors graph. They give finer control on nearest neighbors computations and enable easy pipeline caching for multiple use. :issue:`10482` by `Tom Dupre la Tour`_. - |Feature| :class:`neighbors.KNeighborsClassifier`, :class:`neighbors.KNeighborsRegressor`, :class:`neighbors.RadiusNeighborsClassifier`, :class:`neighbors.RadiusNeighborsRegressor`, and :class:`neighbors.LocalOutlierFactor` now accept precomputed sparse neighbors graph as input. :issue:`10482` by `Tom Dupre la Tour`_ and :user:`Kumar Ashutosh <thechargedneutron>`. - |Feature| :class:`neighbors.RadiusNeighborsClassifier` now supports predicting probabilities by using `predict_proba` and supports more outlier_label options: 'most_frequent', or different outlier_labels for multi-outputs. :pr:`9597` by :user:`Wenbo Zhao <webber26232>`. - |Efficiency| Efficiency improvements for :func:`neighbors.RadiusNeighborsClassifier.predict`. :pr:`9597` by :user:`Wenbo Zhao <webber26232>`. - |Fix| :class:`neighbors.KNeighborsRegressor` now throws error when `metric='precomputed'` and fit on non-square data. :pr:`14336` by :user:`Gregory Dexter <gdex1>`. :mod:`sklearn.neural_network` ............................. - |Feature| Add `max_fun` parameter in :class:`neural_network.BaseMultilayerPerceptron`, :class:`neural_network.MLPRegressor`, and :class:`neural_network.MLPClassifier` to give control over maximum number of function evaluation to not meet ``tol`` improvement. :issue:`9274` by :user:`Daniel Perry <daniel-perry>`. :mod:`sklearn.pipeline` ....................... - |Enhancement| :class:`pipeline.Pipeline` now supports :term:`score_samples` if the final estimator does. :pr:`13806` by :user:`Anaël Beaugnon <ab-anssi>`. - |Fix| The `fit` in :class:`~pipeline.FeatureUnion` now accepts `fit_params` to pass to the underlying transformers. :pr:`15119` by `Adrin Jalali`_. - |API| `None` as a transformer is now deprecated in :class:`pipeline.FeatureUnion`. Please use `'drop'` instead. :pr:`15053` by `Thomas Fan`_. :mod:`sklearn.preprocessing` ............................ - |Efficiency| :class:`preprocessing.PolynomialFeatures` is now faster when the input data is dense. :pr:`13290` by :user:`Xavier Dupré <sdpython>`. - |Enhancement| Avoid unnecessary data copy when fitting preprocessors :class:`preprocessing.StandardScaler`, :class:`preprocessing.MinMaxScaler`, :class:`preprocessing.MaxAbsScaler`, :class:`preprocessing.RobustScaler` and :class:`preprocessing.QuantileTransformer` which results in a slight performance improvement. :pr:`13987` by `Roman Yurchak`_. - |Fix| KernelCenterer now throws error when fit on non-square :class:`preprocessing.KernelCenterer` :pr:`14336` by :user:`Gregory Dexter <gdex1>`. :mod:`sklearn.model_selection` .............................. - |Fix| :class:`model_selection.GridSearchCV` and `model_selection.RandomizedSearchCV` now supports the :term:`_pairwise` property, which prevents an error during cross-validation for estimators with pairwise inputs (such as :class:`neighbors.KNeighborsClassifier` when :term:`metric` is set to 'precomputed'). :pr:`13925` by :user:`Isaac S. Robson <isrobson>` and :pr:`15524` by :user:`Xun Tang <xun-tang>`. :mod:`sklearn.svm` .................. - |Enhancement| :class:`svm.SVC` and :class:`svm.NuSVC` now accept a ``break_ties`` parameter. This parameter results in :term:`predict` breaking the ties according to the confidence values of :term:`decision_function`, if ``decision_function_shape='ovr'``, and the number of target classes > 2. :pr:`12557` by `Adrin Jalali`_. - |Enhancement| SVM estimators now throw a more specific error when `kernel='precomputed'` and fit on non-square data. :pr:`14336` by :user:`Gregory Dexter <gdex1>`. - |Fix| :class:`svm.SVC`, :class:`svm.SVR`, :class:`svm.NuSVR` and :class:`svm.OneClassSVM` when received values negative or zero for parameter ``sample_weight`` in method fit(), generated an invalid model. This behavior occurred only in some border scenarios. Now in these cases, fit() will fail with an Exception. :pr:`14286` by :user:`Alex Shacked <alexshacked>`. - |Fix| The `n_support_` attribute of :class:`svm.SVR` and :class:`svm.OneClassSVM` was previously non-initialized, and had size 2. It has now size 1 with the correct value. :pr:`15099` by `Nicolas Hug`_. - |Fix| fixed a bug in :class:`BaseLibSVM._sparse_fit` where n_SV=0 raised a ZeroDivisionError. :pr:`14894` by :user:`Danna Naser <danna-naser>`. - |Fix| The liblinear solver now supports ``sample_weight``. :pr:`15038` by `Guillaume Lemaitre`_. :mod:`sklearn.tree` ................... - |Feature| Adds minimal cost complexity pruning, controlled by ``ccp_alpha``, to :class:`tree.DecisionTreeClassifier`, :class:`tree.DecisionTreeRegressor`, :class:`tree.ExtraTreeClassifier`, :class:`tree.ExtraTreeRegressor`, :class:`ensemble.RandomForestClassifier`, :class:`ensemble.RandomForestRegressor`, :class:`ensemble.ExtraTreesClassifier`, :class:`ensemble.ExtraTreesRegressor`, :class:`ensemble.GradientBoostingClassifier`, and :class:`ensemble.GradientBoostingRegressor`. :pr:`12887` by `Thomas Fan`_. - |API| ``presort`` is now deprecated in :class:`tree.DecisionTreeClassifier` and :class:`tree.DecisionTreeRegressor`, and the parameter has no effect. :pr:`14907` by `Adrin Jalali`_. - |API| The ``classes_`` and ``n_classes_`` attributes of :class:`tree.DecisionTreeRegressor` are now deprecated. :pr:`15028` by :user:`Mei Guan <meiguan>`, `Nicolas Hug`_, and `Adrin Jalali`_. :mod:`sklearn.utils` .................... - |Feature| :func:`~utils.estimator_checks.check_estimator` can now generate checks by setting `generate_only=True`. Previously, running :func:`~utils.estimator_checks.check_estimator` will stop when the first check fails. With `generate_only=True`, all checks can run independently and report the ones that are failing. Read more in :ref:`rolling_your_own_estimator`. :pr:`14381` by `Thomas Fan`_. - |Feature| Added a pytest specific decorator, :func:`~utils.estimator_checks.parametrize_with_checks`, to parametrize estimator checks for a list of estimators. :pr:`14381` by `Thomas Fan`_. - |Feature| A new random variable, :class:`utils.fixes.loguniform` implements a log-uniform random variable (e.g., for use in RandomizedSearchCV). For example, the outcomes ``1``, ``10`` and ``100`` are all equally likely for ``loguniform(1, 100)``. See :issue:`11232` by :user:`Scott Sievert <stsievert>` and :user:`Nathaniel Saul <sauln>`, and `SciPy PR 10815 <https://github.com/scipy/scipy/pull/10815>`. - |Enhancement| :func:`utils.safe_indexing` (now deprecated) accepts an ``axis`` parameter to index array-like across rows and columns. The column indexing can be done on NumPy array, SciPy sparse matrix, and Pandas DataFrame. An additional refactoring was done. :pr:`14035` and :pr:`14475` by `Guillaume Lemaitre`_. - |Enhancement| :func:`utils.extmath.safe_sparse_dot` works between 3D+ ndarray and sparse matrix. :pr:`14538` by :user:`Jérémie du Boisberranger <jeremiedbb>`. - |Fix| :func:`utils.check_array` is now raising an error instead of casting NaN to integer. :pr:`14872` by `Roman Yurchak`_. - |Fix| :func:`utils.check_array` will now correctly detect numeric dtypes in pandas dataframes, fixing a bug where ``float32`` was upcast to ``float64`` unnecessarily. :pr:`15094` by `Andreas Müller`_. - |API| The following utils have been deprecated and are now private: - ``choose_check_classifiers_labels`` - ``enforce_estimator_tags_y`` - ``mocking.MockDataFrame`` - ``mocking.CheckingClassifier`` - ``optimize.newton_cg`` - ``random.random_choice_csc`` - ``utils.choose_check_classifiers_labels`` - ``utils.enforce_estimator_tags_y`` - ``utils.optimize.newton_cg`` - ``utils.random.random_choice_csc`` - ``utils.safe_indexing`` - ``utils.mocking`` - ``utils.fast_dict`` - ``utils.seq_dataset`` - ``utils.weight_vector`` - ``utils.fixes.parallel_helper`` (removed) - All of ``utils.testing`` except for ``all_estimators`` which is now in ``utils``. :mod:`sklearn.isotonic` .................................. - |Fix| Fixed a bug where :class:`isotonic.IsotonicRegression.fit` raised error when `X.dtype == 'float32'` and `X.dtype != y.dtype`. :pr:`14902` by :user:`Lucas <lostcoaster>`. Miscellaneous ............. - |Fix| Port `lobpcg` from SciPy which implement some bug fixes but only available in 1.3+. :pr:`13609` and :pr:`14971` by `Guillaume Lemaitre`_. - |API| Scikit-learn now converts any input data structure implementing a duck array to a numpy array (using ``__array__``) to ensure consistent behavior instead of relying on ``__array_function__`` (see `NEP 18 <https://numpy.org/neps/nep-0018-array-function-protocol.html>`_). :pr:`14702` by `Andreas Müller`_. - |API| Replace manual checks with ``check_is_fitted``. Errors thrown when using a non-fitted estimators are now more uniform. :pr:`13013` by :user:`Agamemnon Krasoulis <agamemnonc>`. Changes to estimator checks --------------------------- These changes mostly affect library developers. - Estimators are now expected to raise a ``NotFittedError`` if ``predict`` or ``transform`` is called before ``fit``; previously an ``AttributeError`` or ``ValueError`` was acceptable. :pr:`13013` by by :user:`Agamemnon Krasoulis <agamemnonc>`. - Binary only classifiers are now supported in estimator checks. Such classifiers need to have the `binary_only=True` estimator tag. :pr:`13875` by `Trevor Stephens`_. - Estimators are expected to convert input data (``X``, ``y``, ``sample_weights``) to :class:`numpy.ndarray` and never call ``__array_function__`` on the original datatype that is passed (see `NEP 18 <https://numpy.org/neps/nep-0018-array-function-protocol.html>`_). :pr:`14702` by `Andreas Müller`_. - `requires_positive_X` estimator tag (for models that require X to be non-negative) is now used by :meth:`utils.estimator_checks.check_estimator` to make sure a proper error message is raised if X contains some negative entries. :pr:`14680` by :user:`Alex Gramfort <agramfort>`. - Added check that pairwise estimators raise error on non-square data :pr:`14336` by :user:`Gregory Dexter <gdex1>`. - Added two common multioutput estimator tests :func:`~utils.estimator_checks.check_classifier_multioutput` and :func:`~utils.estimator_checks.check_regressor_multioutput`. :pr:`13392` by :user:`Rok Mihevc <rok>`. - |Fix| Added ``check_transformer_data_not_an_array`` to checks where missing - |Fix| The estimators tags resolution now follows the regular MRO. They used to be overridable only once. :pr:`14884` by `Andreas Müller`_. Code and Documentation Contributors ----------------------------------- Thanks to everyone who has contributed to the maintenance and improvement of the project since version 0.21, including: Aaron Alphonsus, Abbie Popa, Abdur-Rahmaan Janhangeer, abenbihi, Abhinav Sagar, Abhishek Jana, Abraham K. Lagat, Adam J. Stewart, Aditya Vyas, Adrin Jalali, Agamemnon Krasoulis, Alec Peters, Alessandro Surace, Alexandre de Siqueira, Alexandre Gramfort, alexgoryainov, Alex Henrie, Alex Itkes, alexshacked, Allen Akinkunle, Anaël Beaugnon, Anders Kaseorg, Andrea Maldonado, Andrea Navarrete, Andreas Mueller, Andreas Schuderer, Andrew Nystrom, Angela Ambroz, Anisha Keshavan, Ankit Jha, Antonio Gutierrez, Anuja Kelkar, Archana Alva, arnaudstiegler, arpanchowdhry, ashimb9, Ayomide Bamidele, Baran Buluttekin, barrycg, Bharat Raghunathan, Bill Mill, Biswadip Mandal, blackd0t, Brian G. Barkley, Brian Wignall, Bryan Yang, c56pony, camilaagw, cartman_nabana, catajara, Cat Chenal, Cathy, cgsavard, Charles Vesteghem, Chiara Marmo, Chris Gregory, Christian Lorentzen, Christos Aridas, Dakota Grusak, Daniel Grady, Daniel Perry, Danna Naser, DatenBergwerk, David Dormagen, deeplook, Dillon Niederhut, Dong-hee Na, Dougal J. Sutherland, DrGFreeman, Dylan Cashman, edvardlindelof, Eric Larson, Eric Ndirangu, Eunseop Jeong, Fanny, federicopisanu, Felix Divo, flaviomorelli, FranciDona, Franco M. Luque, Frank Hoang, Frederic Haase, g0g0gadget, Gabriel Altay, Gabriel do Vale Rios, Gael Varoquaux, ganevgv, gdex1, getgaurav2, Gideon Sonoiya, Gordon Chen, gpapadok, Greg Mogavero, Grzegorz Szpak, Guillaume Lemaitre, Guillem García Subies, H4dr1en, hadshirt, Hailey Nguyen, Hanmin Qin, Hannah Bruce Macdonald, Harsh Mahajan, Harsh Soni, Honglu Zhang, Hossein Pourbozorg, Ian Sanders, Ingrid Spielman, J-A16, jaehong park, Jaime Ferrando Huertas, James Hill, James Myatt, Jay, jeremiedbb, Jérémie du Boisberranger, jeromedockes, Jesper Dramsch, Joan Massich, Joanna Zhang, Joel Nothman, Johann Faouzi, Jonathan Rahn, Jon Cusick, Jose Ortiz, Kanika Sabharwal, Katarina Slama, kellycarmody, Kennedy Kang'ethe, Kensuke Arai, Kesshi Jordan, Kevad, Kevin Loftis, Kevin Winata, Kevin Yu-Sheng Li, Kirill Dolmatov, Kirthi Shankar Sivamani, krishna katyal, Lakshmi Krishnan, Lakshya KD, LalliAcqua, lbfin, Leland McInnes, Léonard Binet, Loic Esteve, loopyme, lostcoaster, Louis Huynh, lrjball, Luca Ionescu, Lutz Roeder, MaggieChege, Maithreyi Venkatesh, Maltimore, Maocx, Marc Torrellas, Marie Douriez, Markus, Markus Frey, Martina G. Vilas, Martin Oywa, Martin Thoma, Masashi SHIBATA, Maxwell Aladago, mbillingr, m-clare, Meghann Agarwal, m.fab, Micah Smith, miguelbarao, Miguel Cabrera, Mina Naghshhnejad, Ming Li, motmoti, mschaffenroth, mthorrell, Natasha Borders, nezar-a, Nicolas Hug, Nidhin Pattaniyil, Nikita Titov, Nishan Singh Mann, Nitya Mandyam, norvan, notmatthancock, novaya, nxorable, Oleg Stikhin, Oleksandr Pavlyk, Olivier Grisel, Omar Saleem, Owen Flanagan, panpiort8, Paolo, Paolo Toccaceli, Paresh Mathur, Paula, Peng Yu, Peter Marko, pierretallotte, poorna-kumar, pspachtholz, qdeffense, Rajat Garg, Raphaël Bournhonesque, Ray, Ray Bell, Rebekah Kim, Reza Gharibi, Richard Payne, Richard W, rlms, Robert Juergens, Rok Mihevc, Roman Feldbauer, Roman Yurchak, R Sanjabi, RuchitaGarde, Ruth Waithera, Sackey, Sam Dixon, Samesh Lakhotia, Samuel Taylor, Sarra Habchi, Scott Gigante, Scott Sievert, Scott White, Sebastian Pölsterl, Sergey Feldman, SeWook Oh, she-dares, Shreya V, Shubham Mehta, Shuzhe Xiao, SimonCW, smarie, smujjiga, Sönke Behrends, Soumirai, Sourav Singh, stefan-matcovici, steinfurt, Stéphane Couvreur, Stephan Tulkens, Stephen Cowley, Stephen Tierney, SylvainLan, th0rwas, theoptips, theotheo, Thierno Ibrahima DIOP, Thomas Edwards, Thomas J Fan, Thomas Moreau, Thomas Schmitt, Tilen Kusterle, Tim Bicker, Timsaur, Tim Staley, Tirth Patel, Tola A, Tom Augspurger, Tom Dupré la Tour, topisan, Trevor Stephens, ttang131, Urvang Patel, Vathsala Achar, veerlosar, Venkatachalam N, Victor Luzgin, Vincent Jeanselme, Vincent Lostanlen, Vladimir Korolev, vnherdeiro, Wenbo Zhao, Wendy Hu, willdarnell, William de Vazelhes, wolframalpha, xavier dupré, xcjason, x-martian, xsat, xun-tang, Yinglr, yokasre, Yu-Hang "Maxin" Tang, Yulia Zamriy, Zhao Feng
reStructuredText
2
emarkou/scikit-learn
doc/whats_new/v0.22.rst
[ "BSD-3-Clause" ]
@echo off call ..\_winpack_run_python_sample.cmd %* exit /B
Batchfile
2
thisisgopalmandal/opencv
samples/python/_run_winpack_demo.cmd
[ "BSD-3-Clause" ]
# Copyright (c) 2015 Sandstorm Development Group, Inc. and contributors # Licensed under the MIT License: # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. @0x8ef99297a43a5e34; $import "/capnp/c++.capnp".namespace("capnp::json"); struct Value { union { null @0 :Void; boolean @1 :Bool; number @2 :Float64; string @3 :Text $Go.name("string_"); array @4 :List(Value); object @5 :List(Field); # Standard JSON values. call @6 :Call; # Non-standard: A "function call", applying a named function (named by a single identifier) # to a parameter list. Examples: # # BinData(0, "Zm9vCg==") # ISODate("2015-04-15T08:44:50.218Z") # # Mongo DB users will recognize the above as exactly the syntax Mongo uses to represent BSON # "binary" and "date" types in text, since JSON has no analog of these. This is basically the # reason this extension exists. We do NOT recommend using `call` unless you specifically need # to be compatible with some silly format that uses this syntax. } struct Field { name @0 :Text; value @1 :Value; } struct Call { function @0 :Text; params @1 :List(Value); } } # ======================================================================================== # Annotations to control parsing. Typical usage: # # using Json = import "/capnp/compat/json.capnp"; # # And then later on: # # myField @0 :Text $Json.name("my_field"); annotation name @0xfa5b1fd61c2e7c3d (field, enumerant, method, group, union) :Text; # Define an alternative name to use when encoding the given item in JSON. This can be used, for # example, to use snake_case names where needed, even though Cap'n Proto uses strictly camelCase. # # (However, because JSON is derived from JavaScript, you *should* use camelCase names when # defining JSON-based APIs. But, when supporting a pre-existing API you may not have a choice.) annotation flatten @0x82d3e852af0336bf (field, group, union) :FlattenOptions; # Specifies that an aggregate field should be flattened into its parent. # # In order to flatten a member of a union, the union (or, for an anonymous union, the parent # struct type) must have the $jsonDiscriminator annotation. # # TODO(someday): Maybe support "flattening" a List(Value.Field) as a way to support unknown JSON # fields? struct FlattenOptions { prefix @0 :Text = ""; # Optional: Adds the given prefix to flattened field names. } annotation discriminator @0xcfa794e8d19a0162 (struct, union) :DiscriminatorOptions; # Specifies that a union's variant will be decided not by which fields are present, but instead # by a special discriminator field. The value of the discriminator field is a string naming which # variant is active. This allows the members of the union to have the $jsonFlatten annotation, or # to all have the same name. struct DiscriminatorOptions { name @0 :Text; # The name of the discriminator field. Defaults to matching the name of the union. valueName @1 :Text; # If non-null, specifies that the union's value shall have the given field name, rather than the # value's name. In this case the union's variant can only be determined by looking at the # discriminant field, not by inspecting which value field is present. # # It is an error to use `valueName` while also declaring some variants as $flatten. } annotation base64 @0xd7d879450a253e4b (field) :Void; # Place on a field of type `Data` to indicate that its JSON representation is a Base64 string. annotation hex @0xf061e22f0ae5c7b5 (field) :Void; # Place on a field of type `Data` to indicate that its JSON representation is a hex string. annotation notification @0xa0a054dea32fd98c (method) :Void; # Indicates that this method is a JSON-RPC "notification", meaning it expects no response. using Go = import "/go.capnp"; $Go.package("json"); $Go.import("capnproto.org/go/capnp/v3/std/capnp/json");
Cap'n Proto
4
flier/go-capnproto2
std/capnp/compat/json.capnp
[ "MIT" ]
#+TITLE: :lang solidity This module adds [[https://github.com/ethereum/solidity][Solidity]] support through [[https://github.com/ethereum/emacs-solidity][solidity-mode]] + Syntax-checking (~flycheck~) + Code completion ([[https://github.com/ssmolkin1/company-solidity][company-solidity]]) + Gas estimation (~C-c C-g~) * Table of Contents :TOC: - [[#module-flags][Module Flags]] - [[#prerequisites][Prerequisites]] - [[#solc][Solc]] - [[#solium][Solium]] - [[#todo][TODO]] * Module Flags This module provides no flags. * Prerequisites This module requires one or both linters for syntax checking: + [[https://github.com/ethereum/solc-js][Solc]] + [[http://solium.readthedocs.io/en/latest/user-guide.html#installation][Solium]] If both are enabled *Solc* is run first, then *Solium* if *Solc* catches no errors. ** Solc #+BEGIN_SRC sh npm install -g solc #+END_SRC ** Solium #+BEGIN_SRC sh npm install -g solium #+END_SRC By default *solium* looks for ~.soliumrc.json~ in the project directory, but you can set it to your own ~.soliumrc.json~ with this in your private doom ~config.el~ #+BEGIN_SRC emacs-lisp (setq flycheck-solidity-solium-soliumrcfile "~/.soliumrc.json") #+END_SRC * TODO + Snippets
Org
4
leezu/doom-emacs
modules/lang/solidity/README.org
[ "MIT" ]
import module namespace tree = "http://basex.org/red-black-tree" at "red-black-tree.xqm"; tree:serialize( fold-right( 1 to 1000, $tree:empty, function($x, $tree) { tree:insert( trace( $x, "insert: " ), $tree ) } ) )
XQuery
4
JensErat/basex
basex-examples/src/main/resources/xq/higher-order/red-black-tree.xq
[ "BSD-3-Clause" ]
"""Provides data updates from the Control4 controller for platforms.""" import logging from pyControl4.account import C4Account from pyControl4.director import C4Director from pyControl4.error_handling import BadToken from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_TOKEN, CONF_USERNAME from homeassistant.core import HomeAssistant from homeassistant.helpers import aiohttp_client from .const import ( CONF_ACCOUNT, CONF_CONTROLLER_UNIQUE_ID, CONF_DIRECTOR, CONF_DIRECTOR_TOKEN_EXPIRATION, DOMAIN, ) _LOGGER = logging.getLogger(__name__) async def director_update_data( hass: HomeAssistant, entry: ConfigEntry, var: str ) -> dict: """Retrieve data from the Control4 director for update_coordinator.""" # possibly implement usage of director_token_expiration to start # token refresh without waiting for error to occur try: director = hass.data[DOMAIN][entry.entry_id][CONF_DIRECTOR] data = await director.getAllItemVariableValue(var) except BadToken: _LOGGER.info("Updating Control4 director token") await refresh_tokens(hass, entry) director = hass.data[DOMAIN][entry.entry_id][CONF_DIRECTOR] data = await director.getAllItemVariableValue(var) return {key["id"]: key for key in data} async def refresh_tokens(hass: HomeAssistant, entry: ConfigEntry): """Store updated authentication and director tokens in hass.data.""" config = entry.data account_session = aiohttp_client.async_get_clientsession(hass) account = C4Account(config[CONF_USERNAME], config[CONF_PASSWORD], account_session) await account.getAccountBearerToken() controller_unique_id = config[CONF_CONTROLLER_UNIQUE_ID] director_token_dict = await account.getDirectorBearerToken(controller_unique_id) director_session = aiohttp_client.async_get_clientsession(hass, verify_ssl=False) director = C4Director( config[CONF_HOST], director_token_dict[CONF_TOKEN], director_session ) director_token_expiry = director_token_dict["token_expiration"] _LOGGER.debug("Saving new tokens in hass data") entry_data = hass.data[DOMAIN][entry.entry_id] entry_data[CONF_ACCOUNT] = account entry_data[CONF_DIRECTOR] = director entry_data[CONF_DIRECTOR_TOKEN_EXPIRATION] = director_token_expiry
Python
5
tbarbette/core
homeassistant/components/control4/director_utils.py
[ "Apache-2.0" ]
// @allowJs: true // @checkJs: true // @noEmit: true // @Filename: type.js /** @typedef {import("./mod1").TestEnum} TE */ /** @type {TE} */ const test = 'add' /** @type {import("./mod1").TestEnum} */ const tost = 'remove' // @Filename: value.js import { TestEnum } from "./mod1" /** @type {TestEnum} */ const tist = TestEnum.ADD // @Filename: mod1.js /** @enum {string} */ export const TestEnum = { ADD: 'add', REMOVE: 'remove' }
TypeScript
4
nilamjadhav/TypeScript
tests/cases/conformance/jsdoc/enumTagImported.ts
[ "Apache-2.0" ]
var x{i in 1..3} >= 10 + i, <= 20 + i; var y{i in 1..2} >= 13 + i, <= 23 + i, integer; minimize o1{i in 1..16}: (30 + i) * x[1] + sin(sum{j in 1..3} x[j] + sum{j in 1..2} y[j]); minimize o2: cos(x[1]); maximize o3{i in 1..2}: (50 + i) * y[1]; s.t. c1{i in 1..10}: 100 + i <= (60 + i) * x[1] + log(sum{j in 1..3} x[j] + sum{j in 1..2} y[j]) <= 200 + i; s.t. c2: exp(x[1]) == 0; s.t. c3{i in 1..2}: 111 + i <= (80 + i) * x[3] <= 211 + i; s.t. c4{1..6}: x[1] != 1; s.t. c5: x[1] != 1 && x[2] != 2; option presolve 0;
AMPL
3
ampl/plugins
test/data/test.ampl
[ "BSD-3-Clause" ]
extends /templates/base block content p span(data-i18n="account.unsubscribe_from_marketing", data-i18n-options={email:view.email}) button.btn.btn-warning#unsubscribe-button(data-i18n="account.unsubscribe_button") .progress.progress-striped.active.secret .progress-bar p.secret#fail-alert(data-i18n="account.unsubscribe_failed").alert.alert-danger p.secret#success-alert(data-i18n="account.unsubscribe_success").alert.alert-success
Jade
4
cihatislamdede/codecombat
app/templates/account/unsubscribe-view.jade
[ "CC-BY-4.0", "MIT" ]
# ---------------------------------------------------------- # # Aliases and functions for juju (https://juju.is) # # ---------------------------------------------------------- # # Load TAB completions # You need juju's bash completion script installed. By default bash-completion's # location will be used (i.e. pkg-config --variable=completionsdir bash-completion). completion_file="$(pkg-config --variable=completionsdir bash-completion 2>/dev/null)/juju" || \ completion_file="/usr/share/bash-completion/completions/juju" [[ -f "$completion_file" ]] && source "$completion_file" unset completion_file # ---------------------------------------------------------- # # Aliases (in alphabetic order) # # # # Generally, # # - `!` means --force --no-wait -y # # - `ds` suffix means --destroy-storage # # ---------------------------------------------------------- # alias jam="juju add-model --config logging-config=\"<root>=WARNING; unit=DEBUG\"\ --config update-status-hook-interval=\"60m\"" alias jb='juju bootstrap' alias jbm='juju bootstrap microk8s' alias jc='juju config' alias jdc='juju destroy-controller --destroy-all-models' alias 'jdc!'='juju destroy-controller --destroy-all-models --force --no-wait -y' alias jdcds='juju destroy-controller --destroy-all-models --destroy-storage' alias 'jdcds!'='juju destroy-controller --destroy-all-models --destroy-storage --force --no-wait -y' alias jdm='juju destroy-model' alias 'jdm!'='juju destroy-model --force --no-wait -y' alias jdmds='juju destroy-model --destroy-storage' alias 'jdmds!'='juju destroy-model --destroy-storage --force --no-wait -y' alias jde='juju deploy --channel=edge' alias jd='juju deploy' alias jdl='juju debug-log --ms' alias jdlr='juju debug-log --ms --replay' alias jcon='juju consume' alias jeb='juju export-bundle' alias jex='juju expose' alias jh='juju help' alias jkc='juju kill-controller -y -t 0' alias jm='juju models' alias jmc='juju model-config' alias jof='juju offer' alias jra='juju run-action' alias jraw='juju run-action --wait' alias jrel='juju relate' alias jrm='juju remove-application' alias 'jrm!'='juju remove-application --force --no-wait' alias jrmds='juju remove-application --destroy-storage' alias 'jrmds!'='juju remove-application --destroy-storage --force --no-wait' alias jrmrel='juju remove-relation' alias 'jrmrel!'='juju remove-relation --force' alias jrmsas='juju remove-saas' alias jrp='juju refresh --path' alias jrs='juju remove-storage' alias 'jrs!'='juju remove-storage --force' alias jsa='juju scale-application' alias jsh='juju ssh' alias jshc='juju ssh --container' alias jshm='juju show-model' alias jssl='juju show-status-log' alias jstj='juju status --format=json' alias jst='juju status --relations --storage --color' alias jsu='juju show-unit' alias jsw='juju switch' # ---------------------------------------------------------- # # Functions (in alphabetic order) # # ---------------------------------------------------------- # # Get app or unit address jaddr() { # $1 = app name # $2 = unit number (optional) if (( ! ${+commands[jq]} )); then echo "jq is required but could not be found." >&2 return 1 fi if [[ $# -eq 1 ]]; then # Get app address juju status "$1" --format=json \ | jq -r ".applications.\"$1\".address" elif [[ $# -eq 2 ]]; then # Get unit address juju status "$1/$2" --format=json \ | jq -r ".applications.\"$1\".units.\"$1/$2\".address" else echo "Invalid number of arguments." echo "Usage: jaddr <app-name> [<unit-number>]" echo "Example: jaddr karma" echo "Example: jaddr karma 0" return 1 fi } # Display app and unit relation data jreld() { # $1 = relation name # $2 = app name # $3 = unit number if [[ $# -ne 3 ]]; then echo "Invalid number of arguments." echo "Usage: jreld <relation-name> <app-name> <unit-number>" echo "Example: jreld karma-dashboard alertmanager 0" return 1 fi local relid="$(juju run "relation-ids $1" --unit $2/$3)" if [[ -z "$relid" ]]; then return 1 fi echo "App data:" juju run "relation-get -r $relid --app - $2" --unit $2/$3 echo echo "Unit data:" juju run "relation-get -r $relid - $2" --unit $2/$3 } # Watch juju status, with optional interval (default: 5 sec) wjst() { local interval="${1:-5}" shift $(( $# > 0 )) watch -n "$interval" --color juju status --relations --storage --color "$@" }
Shell
4
sshishov/ohmyzsh
plugins/juju/juju.plugin.zsh
[ "MIT" ]
=pod =head1 NAME PKCS7_encrypt_ex, PKCS7_encrypt - create a PKCS#7 envelopedData structure =head1 SYNOPSIS #include <openssl/pkcs7.h> PKCS7 *PKCS7_encrypt_ex(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, int flags, OSSL_LIB_CTX *libctx, const char *propq); PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, int flags); =head1 DESCRIPTION PKCS7_encrypt_ex() creates and returns a PKCS#7 envelopedData structure. I<certs> is a list of recipient certificates. I<in> is the content to be encrypted. I<cipher> is the symmetric cipher to use. I<flags> is an optional set of flags. The library context I<libctx> and the property query I<propq> are used when retrieving algorithms from providers. Only RSA keys are supported in PKCS#7 and envelopedData so the recipient certificates supplied to this function must all contain RSA public keys, though they do not have to be signed using the RSA algorithm. EVP_des_ede3_cbc() (triple DES) is the algorithm of choice for S/MIME use because most clients will support it. Some old "export grade" clients may only support weak encryption using 40 or 64 bit RC2. These can be used by passing EVP_rc2_40_cbc() and EVP_rc2_64_cbc() respectively. The algorithm passed in the B<cipher> parameter must support ASN1 encoding of its parameters. Many browsers implement a "sign and encrypt" option which is simply an S/MIME envelopedData containing an S/MIME signed message. This can be readily produced by storing the S/MIME signed message in a memory BIO and passing it to PKCS7_encrypt(). The following flags can be passed in the B<flags> parameter. If the B<PKCS7_TEXT> flag is set MIME headers for type B<text/plain> are prepended to the data. Normally the supplied content is translated into MIME canonical format (as required by the S/MIME specifications) if B<PKCS7_BINARY> is set no translation occurs. This option should be used if the supplied data is in binary format otherwise the translation will corrupt it. If B<PKCS7_BINARY> is set then B<PKCS7_TEXT> is ignored. If the B<PKCS7_STREAM> flag is set a partial B<PKCS7> structure is output suitable for streaming I/O: no data is read from the BIO B<in>. If the flag B<PKCS7_STREAM> is set the returned B<PKCS7> structure is B<not> complete and outputting its contents via a function that does not properly finalize the B<PKCS7> structure will give unpredictable results. Several functions including SMIME_write_PKCS7(), i2d_PKCS7_bio_stream(), PEM_write_bio_PKCS7_stream() finalize the structure. Alternatively finalization can be performed by obtaining the streaming ASN1 B<BIO> directly using BIO_new_PKCS7(). PKCS7_encrypt() is similar to PKCS7_encrypt_ex() but uses default values of NULL for the library context I<libctx> and the property query I<propq>. =head1 RETURN VALUES PKCS7_encrypt_ex() and PKCS7_encrypt() return either a PKCS7 structure or NULL if an error occurred. The error can be obtained from ERR_get_error(3). =head1 SEE ALSO L<ERR_get_error(3)>, L<PKCS7_decrypt(3)> =head1 HISTORY The function PKCS7_encrypt_ex() was added in OpenSSL 3.0. The B<PKCS7_STREAM> flag was added in OpenSSL 1.0.0. =head1 COPYRIGHT Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at L<https://www.openssl.org/source/license.html>. =cut
Pod
5
pmesnier/openssl
doc/man3/PKCS7_encrypt.pod
[ "Apache-2.0" ]
%{ /* -*- c++ -*- */ #ifndef H_SYNTREE #define H_SYNTREE #include "syn_typedefs.h" %} %{ #ifndef NDEBUG # define NDEBUG # define NDEBUG_WAS_NOT_DEFINED #endif #include "syntree.h" #include <satire.h> #include "pignodelist.h" #include "IrCreation.h" %} %% extern_c get:head(NODE, TYPE, CONSTR, _, FIELD, _, FTYPE) %{ FTYPE TYPE##_##CONSTR##_get_##FIELD(TYPE NODE) %} /* do something for all nonterminals (marked NT) */ get:body(NODE, "ExpressionRootNT", _, _, FIELD, _, _) %{ return isSgExpressionRoot((SgNode *) NODE)->get_##FIELD(); %} get:body(NODE, _, "UndeclareStmt", _, "vars", _, _) %{ return Ir::createNodeList(*((UndeclareStmt *) NODE)->get_vars()); %} get:body(NODE, _, "DeclareStmt" | "UndeclareStmt", _, FIELD, _, _) %{ CONSTR *stmt = dynamic_cast<CONSTR *>((SgNode *) NODE); return (void *) stmt->get_##FIELD(); %} get:body(NODE, _, "ExternalCall" | "ExternalReturn", _, "params", _, _) %{ CONSTR *stmt = dynamic_cast<CONSTR *>((SgNode *) NODE); return Ir::createNodeList(*stmt->get_##FIELD()); %} get:body(NODE, _, "ConstructorCall" | "DestructorCall", _, "name", _, _) %{ CONSTR *stmt = dynamic_cast<CONSTR *>((SgNode *) NODE); return Ir::getCharPtr(stmt->get_##FIELD()); %} get:body(NODE, _, "FunctionEntry" | "FunctionExit" | "FunctionCall" | "FunctionReturn", _, "funcname", _, _) %{ CONSTR *stmt = dynamic_cast<CONSTR *>((SgNode *) NODE); return Ir::getCharPtr(stmt->get_##FIELD()); %} get:body(NODE, _, "ExternalCall" | "ExternalReturn" | "ConstructorCall" | "DestructorCall", _, FIELD, _, _) %{ CONSTR *stmt = dynamic_cast<CONSTR *>((SgNode *) NODE); return stmt->get_##FIELD(); %} get:body(NODE, _, "FunctionExit"|"FunctionCall"|"FunctionReturn", _, "params", _, _) %{ if (((CallStmt *) NODE)->parent->get_##FIELD() != NULL) return Ir::createNodeList(*((CallStmt *) NODE)->parent->get_##FIELD()); else return NULL; %} get:body(NODE, _, "FunctionEntry" | "FunctionExit" | "FunctionCall" | "FunctionReturn" , _, FIELD, _, _) %{ CONSTR *stmt = dynamic_cast<CONSTR *>((SgNode *) NODE); return stmt->get_##FIELD(); %} get:body(NODE, _, "ArgumentAssignment" | "ParamAssignment" | "ReturnAssignment" | "LogicalIf" | "IfJoin" | "WhileJoin", _, FIELD, _, _) %{ CONSTR *assignment = dynamic_cast<CONSTR *>((SgNode *) NODE); return assignment->get_##FIELD(); %} get:body(NODE, _, "ScopeStatement", _, "node", _, _) %{ return NODE; %} get:body(NODE, _, "VarRefExp" | "InitializedName", _, "name", _, _) %{ SgInitializedName *in = isSgInitializedName((SgNode *) NODE); if (in == NULL && isSgVarRefExp((SgNode *) NODE)) in = isSgVarRefExp((SgNode *) NODE)->get_symbol()->get_declaration(); if (in != NULL) { /* FIXME: check for global scope '::' and use non-qualified name for global scope * find a better way to deal with qualified names */ if ((in->get_scope() != NULL) && (in->get_scope()->get_qualified_name()!="::")) { return Ir::getCharPtr(Ir::getStrippedName(in)); } else { /* don't print the global namespace (::) */ return Ir::getCharPtr(in->get_name()); } } else return NULL; %} get:body(NODE, _, "VariableSymbol", _, "name", _, _) %{ SgVariableSymbol *var = isSgVariableSymbol((SgNode *) NODE); /* FIXME: check for global scope '::' and use non-qualified name for global scope * find a better way to deal with qualified names [MS08] */ if ((var->get_declaration()->get_scope() != NULL) && (var->get_declaration()->get_scope()->get_qualified_name() != "::") ) return Ir::getCharPtr(var->get_declaration()->get_qualified_name()); else /* don't print the global namespace (::) */ return Ir::getCharPtr(var->get_declaration()->get_name()); %} get:body(NODE, _, "FunctionSymbol", _, "name", _, _) %{ SgFunctionSymbol *fun = isSgFunctionSymbol((SgNode *) NODE); return Ir::getCharPtr(fun->get_name().str()); %} get:body(NODE, _, "ArrayType", _, "size", _, _) %{ SgExpression *index = isSgArrayType((SgNode *) NODE)->get_index(); if (SgUnsignedLongVal *v = isSgUnsignedLongVal(index)) return v->get_value(); else return -1; %} get:body(NODE, _, "BasicType", _, "typename", _, _) %{ return basic_type_name(NODE); %} get:body(NODE, _, "NamedType", _, "name", _, _) %{ SgNamedType *type = isSgNamedType((SgNode *) NODE); return Ir::getCharPtr(type->get_name()); %} /* lists */ get:body(NODE, _, _, _, "declarations", _, FTYPE) %{ return Ir::createNodeList( isSg##CONSTR((SgNode *) NODE)->get_##FIELD()); %} get:body(NODE, _, _, _, "args", _, FTYPE) %{ return Ir::createNodeList( isSg##CONSTR((SgNode *) NODE)->get_##FIELD()); %} get:body(NODE, _, _, _, "arguments", _, FTYPE) %{ return Ir::createNodeList( isSg##CONSTR((SgNode *) NODE)->get_##FIELD()); %} get:body(NODE, _, _, _, "ctors", _, FTYPE) %{ return Ir::createNodeList( isSg##CONSTR((SgNode *) NODE)->get_##FIELD()); %} get:body(NODE, _, "ForInitStatement", _, "init_stmt", _, FTYPE) %{ return Ir::createNodeList( isSg##CONSTR((SgNode *) NODE)->get_##FIELD()); %} get:body(NODE, _, "VariableDeclaration", _, "variables", _, FTYPE) %{ return Ir::createNodeList( isSg##CONSTR((SgNode *) NODE)->get_##FIELD()); %} get:body(NODE, _, "ExprListExp", _, "expressions", _, FTYPE) %{ return Ir::createNodeList( isSg##CONSTR((SgNode *) NODE)->get_##FIELD()); %} get:body(NODE, _, "AsmStmt", _, "operands", _, FTYPE) %{ return Ir::createNodeList( isSg##CONSTR((SgNode *) NODE)->get_##FIELD()); %} /* dummy implementation, is never called! */ get:body(NODE, _, "FunctionSymbolNTList", _, "fs", _, _) %{ return NULL; %} get:body(NODE, _, "StringVal", _, "value", _, _) %{ return Ir::getCharPtr(isSg##CONSTR((SgNode *) NODE)->get_value()); %} get:body(NODE, _, CONSTR, _, "value", _, _) %{ return isSg##CONSTR((SgNode *) NODE)->get_value(); %} get:body(NODE, _, CONSTR, _, FIELD, _, _) %{ return (void *) isSg##CONSTR((SgNode *) NODE)->get_##FIELD(); %} %% extern_c per_constructor is:head(NODE, TYPE, CONSTR, _, _, _, _) %{ int is_op_##TYPE##_##CONSTR(TYPE NODE) %} is:body(NODE, _, "DeclareStmt" | "UndeclareStmt", _, _, _, _) %{ return dynamic_cast<CONSTR *>(isSgStatement((SgNode *) NODE)) != NULL; %} is:body(NODE, _, "ExpressionRootNT", _, _, _, _) %{ return isSgExpressionRoot((SgNode *) NODE) != NULL; %} is:body(NODE, _, "ExternalCall" | "ExternalReturn" | "ConstructorCall" | "DestructorCall", _, _, _, _) %{ CONSTR *e = dynamic_cast<CONSTR *>(isSgStatement((SgNode *) NODE)); return e != NULL; %} is:body(NODE, _, "FunctionEntry" | "FunctionExit" | "FunctionCall" | "FunctionReturn", _, _, _, _) %{ CONSTR *e = dynamic_cast<CONSTR *>(isSgStatement((SgNode *) NODE)); return e != NULL && e->parent != NULL && e->parent->node_type == (KFG_NODE_TYPE) X_##CONSTR; %} is:body(NODE, _, "ArgumentAssignment" | "ParamAssignment" | "ReturnAssignment" | "LogicalIf" | "IfJoin" | "WhileJoin", _, _, _, _) %{ return dynamic_cast<CONSTR *>(isSgStatement((SgNode *) NODE)) != NULL; %} is:body(NODE, _, "BasicType", _, _, _, _) %{ return basic_type_name(NODE) != NULL; %} /* dummy implementation, is never called! */ is:body(NODE, _, "FunctionSymbolNTList", _, _, _, _) %{ return 42; %} is:body(NODE, _, CONSTR, _, _, _, _) %{ return isSg##CONSTR((SgNode *) NODE) != NULL; %} %% extern_c list empty:head(NODE, _, _, _, _, _, FTYPE) %{ int LIST_##FTYPE##_empty(void **NODE) %} empty:body(NODE, _, _, _, _, _, _) %{ return *NODE == NULL; %} %% extern_c list hd:head(NODE, _, _, _, _, _, FTYPE) %{ void *LIST_##FTYPE##_hd(void **NODE) %} hd:body(NODE, _, _, _, _, _, _) %{ return *NODE; %} %% extern_c list tl:head(NODE, _, _, _, _, _, FTYPE) %{ void *LIST_##FTYPE##_tl(void **NODE) %} tl:body(NODE, _, _, _, _, _, _) %{ return NODE + 1; %} %{ #include "pag_support.h" #endif %} %{ //#include "pag_support.c" #ifdef NDEBUG_WAS_NOT_DEFINED # undef NDEBUG #endif %}
PigLatin
4
maurizioabba/rose
projects/SATIrE/src/analyzer/astaccess/rose.pig
[ "BSD-3-Clause" ]
<?xml version="1.0" encoding="UTF-8"?> <!-- ******************************************************************* --> <!-- --> <!-- Copyright IBM Corp. 2010, 2014 --> <!-- --> <!-- 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. --> <!-- --> <!-- ******************************************************************* --> <!-- DO NOT EDIT. THIS FILE IS GENERATED. --> <faces-config> <faces-config-extension> <namespace-uri>http://www.ibm.com/xsp/coreex</namespace-uri> <default-prefix>xe</default-prefix> <designer-extension> <control-subpackage-name>dojo.grid</control-subpackage-name> </designer-extension> </faces-config-extension> <component> <description>%component.djxDataGrid.descr%</description> <display-name>%component.djxDataGrid.name%</display-name> <component-type>com.ibm.xsp.extlib.dojo.grid.DojoDataGrid</component-type> <component-class>com.ibm.xsp.extlib.component.dojo.grid.UIDojoDataGrid</component-class> <property> <description>%property.jsId.descr%</description> <display-name>%property.jsId.name%</display-name> <property-name>jsId</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>basics</category> <tags> todo not-control-id-reference </tags> </designer-extension> </property-extension> </property> <property> <description>%property.store.descr%</description> <display-name>%property.store.name%</display-name> <property-name>store</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>data</category> </designer-extension> </property-extension> </property> <property> <description>%property.rowSelector.descr%</description> <display-name>%property.rowSelector.name%</display-name> <property-name>rowSelector</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>format</category> </designer-extension> </property-extension> </property> <property> <description>%property.selectionMode.descr%</description> <display-name>%property.selectionMode.name%</display-name> <property-name>selectionMode</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>basics</category> <editor>com.ibm.workplace.designer.property.editors.comboParameterEditor</editor> <editor-parameter> none single multiple extended </editor-parameter> </designer-extension> </property-extension> </property> <property> <description>%property.headerMenu.descr%</description> <display-name>%property.headerMenu.name%</display-name> <property-name>headerMenu</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.autoHeight.descr%</description> <display-name>%property.autoHeight.name%</display-name> <property-name>autoHeight</property-name> <property-class>int</property-class> <property-extension> <designer-extension> <category>basics</category> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>%property.singleClickEdit.descr%</description> <display-name>%property.singleClickEdit.name%</display-name> <property-name>singleClickEdit</property-name> <property-class>boolean</property-class> <property-extension> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.loadingMessage.descr%</description> <display-name>%property.loadingMessage.name%</display-name> <property-name>loadingMessage</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.errorMessage.descr%</description> <display-name>%property.errorMessage.name%</display-name> <property-name>errorMessage</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.selectable.descr%</description> <display-name>%property.selectable.name%</display-name> <property-name>selectable</property-name> <property-class>boolean</property-class> <property-extension> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.updateDelay.descr%</description> <display-name>%property.updateDelay.name%</display-name> <property-name>updateDelay</property-name> <property-class>int</property-class> <property-extension> <designer-extension> <category>data</category> </designer-extension> </property-extension> </property> <property> <description>%property.initialWidth.descr%</description> <display-name>%property.initialWidth.name%</display-name> <property-name>initialWidth</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>format</category> <editor>com.ibm.workplace.designer.property.editors.comboParameterEditor</editor> <editor-parameter> 50% 30px 10em 2cm auto inherit </editor-parameter> </designer-extension> </property-extension> </property> <property> <description>%property.rowsPerPage.descr%</description> <display-name>%property.rowsPerPage.name%</display-name> <property-name>rowsPerPage</property-name> <property-class>int</property-class> <property-extension> <default-value>20</default-value> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.query.descr%</description> <display-name>%property.query.name%</display-name> <property-name>query</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.escapeHTMLInData.descr%</description> <display-name>%property.escapeHTMLInData.name%</display-name> <property-name>escapeHTMLInData</property-name> <property-class>boolean</property-class> <property-extension> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.onStyleRow.descr%</description> <display-name>%property.onStyleRow.name%</display-name> <property-name>onStyleRow</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>events</category> <event>true</event> <subcategory>container-event</subcategory> <tags> not-css-style </tags> </designer-extension> </property-extension> </property> <property> <description>%property.onRowClick.descr%</description> <display-name>%property.onRowClick.name%</display-name> <property-name>onRowClick</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>events</category> <event>true</event> <subcategory>container-event</subcategory> </designer-extension> </property-extension> </property> <property> <description>%property.onRowDblClick.descr%</description> <display-name>%property.onRowDblClick.name%</display-name> <property-name>onRowDblClick</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>events</category> <event>true</event> <subcategory>container-event</subcategory> </designer-extension> </property-extension> </property> <property> <description>%property.onRowContextMenu.descr%</description> <display-name>%property.onRowContextMenu.name%</display-name> <property-name>onRowContextMenu</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>events</category> <event>true</event> <subcategory>container-event</subcategory> </designer-extension> </property-extension> </property> <property> <description>%property.storeComponentId.descr%</description> <display-name>%property.storeComponentId.name%</display-name> <property-name>storeComponentId</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>data</category> <editor>com.ibm.xsp.extlib.designer.tooling.editor.XPageControlIDEditor</editor> <editor-parameter> http://www.ibm.com/xsp/coreex|restService </editor-parameter> </designer-extension> </property-extension> </property> <component-extension> <base-component-type>com.ibm.xsp.extlib.dojo.Widget</base-component-type> <component-family>com.ibm.xsp.extlib.dojo.DojoDataGrid</component-family> <renderer-type>com.ibm.xsp.extlib.dojo.grid.DojoDataGrid</renderer-type> <tag-name>djxDataGrid</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Dojo Layout</category> <tags> todo </tags> </designer-extension> </component-extension> </component> <component> <description>%component.djxDataGridRow.descr%</description> <display-name>%component.djxDataGridRow.name%</display-name> <component-type>com.ibm.xsp.extlib.dojo.grid.DojoDataGridRow</component-type> <component-class>com.ibm.xsp.extlib.component.dojo.grid.UIDojoDataGridRow</component-class> <component-extension> <component-family>com.ibm.xsp.extlib.dojo.DojoDataGrid</component-family> <renderer-type>com.ibm.xsp.extlib.dojo.grid.DojoDataGridRow</renderer-type> <tag-name>djxDataGridRow</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Dojo Layout</category> <tags> no-faces-config-renderer </tags> </designer-extension> </component-extension> </component> <component> <description>%component.djxDataGridColumn.descr%</description> <display-name>%component.djxDataGridColumn.name%</display-name> <component-type>com.ibm.xsp.extlib.dojo.grid.DojoDataGridColumn</component-type> <component-class>com.ibm.xsp.extlib.component.dojo.grid.UIDojoDataGridColumn</component-class> <property> <description>%property.field.descr%</description> <display-name>%property.field.name%</display-name> <property-name>field</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>data</category> </designer-extension> </property-extension> </property> <property> <description>%property.width.descr%</description> <display-name>%property.width.name%</display-name> <property-name>width</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>format</category> </designer-extension> </property-extension> </property> <property> <description>%property.cellType.descr%</description> <display-name>%property.cellType.name%</display-name> <property-name>cellType</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>basics</category> <editor>com.ibm.workplace.designer.property.editors.comboParameterEditor</editor> <editor-parameter> dojox.grid.cells.Cell dojox.grid.cells.RowIndex dojox.grid.cells.Select dojox.grid.cells.AlwaysEdit dojox.grid.cells.Bool </editor-parameter> </designer-extension> </property-extension> </property> <property> <description>%property.formatter.descr%</description> <display-name>%property.formatter.name%</display-name> <property-name>formatter</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>data</category> <editor>com.ibm.designer.domino.client.script.editor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.get.descr%</description> <display-name>%property.get.name%</display-name> <property-name>get</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>data</category> <editor>com.ibm.designer.domino.client.script.editor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.options.descr%</description> <display-name>%property.options.name%</display-name> <property-name>options</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.editable.descr%</description> <display-name>%property.editable.name%</display-name> <property-name>editable</property-name> <property-class>boolean</property-class> <property-extension> <designer-extension> <category>basics</category> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>%property.hidden.descr%</description> <display-name>%property.hidden.name%</display-name> <property-name>hidden</property-name> <property-class>boolean</property-class> <property-extension> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.label.descr%</description> <display-name>%property.label.name%</display-name> <property-name>label</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <component-extension> <component-family>com.ibm.xsp.extlib.dojo.DojoDataGrid</component-family> <renderer-type>com.ibm.xsp.extlib.dojo.grid.DojoDataGridColumn</renderer-type> <tag-name>djxDataGridColumn</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Dojo Layout</category> <tags> no-faces-config-renderer </tags> </designer-extension> </component-extension> </component> </faces-config>
XPages
3
jesse-gallagher/XPagesExtensionLibrary
extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/extlib-dojox-grid.xsp-config
[ "Apache-2.0" ]
/**************************************************************************** * * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ****************************************************************************/ import QtQuick 2.3 import QtQuick.Controls 1.2 import QtQuick.Controls.Styles 1.4 import QtQuick.Layouts 1.2 import QGroundControl.FactSystem 1.0 import QGroundControl.FactControls 1.0 import QGroundControl.Palette 1.0 import QGroundControl.Controls 1.0 import QGroundControl.ScreenTools 1.0 Column { /// ListModel must contains elements which look like this: /// ListElement { /// title: "Roll sensitivity" /// description: "Slide to the left to make roll control faster and more accurate. Slide to the right if roll oscillates or is too twitchy." /// param: "MC_ROLL_TC" /// min: 0 /// max: 100 /// step: 1 /// } property ListModel sliderModel property real _margins: ScreenTools.defaultFontPixelHeight property bool _loadComplete: false Component.onCompleted: _loadComplete = true FactPanelController { id: controller } QGCPalette { id: palette; colorGroupEnabled: enabled } Column { id: sliderOuterColumn anchors.left: parent.left anchors.right: parent.right spacing: _margins Repeater { id: sliderRepeater model: sliderModel Rectangle { id: sliderRect anchors.left: parent.left anchors.right: parent.right height: sliderColumn.y + sliderColumn.height + _margins color: palette.windowShade Column { id: sliderColumn anchors.margins: _margins anchors.left: parent.left anchors.right: parent.right anchors.top: sliderRect.top QGCLabel { text: title font.family: ScreenTools.demiboldFontFamily } Item { width: 1 height: _margins } Slider { anchors.left: parent.left anchors.right: parent.right minimumValue: min maximumValue: max stepSize: step tickmarksEnabled: true value: _fact.value id: slider property int handleWidth: 0 property Fact _fact: controller.getParameterFact(-1, param) onValueChanged: { if (_loadComplete && enabled) { _fact.value = value } } style: SliderStyle { tickmarks: Repeater { id: repeater model: control.stepSize > 0 ? 1 + (control.maximumValue - control.minimumValue) / control.stepSize : 0 property int unused: get() function get() { slider.handleWidth = styleData.handleWidth return 0 } Rectangle { color: Qt.hsla(palette.text.hslHue, palette.text.hslSaturation, palette.text.hslLightness, 0.5) width: 2 height: 4 y: repeater.height x: styleData.handleWidth / 2 + index * ((repeater.width - styleData.handleWidth) / (repeater.count-1)) } } } } Item { // spacing width: 1 height: 4 } RowLayout { anchors.left: parent.left anchors.right: parent.right QGCLabel { id: leftValueLabel text: slider.minimumValue horizontalAlignment: Text.AlignLeft } Item { QGCLabel { visible: slider.value != slider.minimumValue && slider.value != slider.maximumValue text: Math.round(slider._fact.value*100000)/100000 x: getX() function getX() { var span = slider.maximumValue - slider.minimumValue var x = slider.handleWidth / 2 + (slider.value-slider.minimumValue)/span * (slider.width-slider.handleWidth) - width / 2 // avoid overlapping text var minX = leftValueLabel.x + leftValueLabel.width + _margins/2 if (x < minX) x = minX var maxX = rightValueLabel.x - _margins/2 - width if (x > maxX) x = maxX return x } } } QGCLabel { id: rightValueLabel text: slider.maximumValue Layout.alignment: Qt.AlignRight } } QGCLabel { text: description anchors.left: parent.left anchors.right: parent.right wrapMode: Text.WordWrap } } } } } }
QML
5
ChristopherOlson/HeliPilot-QGC
src/QmlControls/FactSliderPanel.qml
[ "Apache-2.0" ]
; #FUNCTION# ==================================================================================================================== ; Name ..........: IsMgcNumPresent ; Description ...: Checks if a number is a present in a number (Magic numbers aka Powers of 2) ; Syntax ........: IsMgcNumPresent($iNumber, $iMagicNumber) ; Parameters ....: $iNumber - Number to check if it exists in $iMagicNumber. ; $iMagicNumber - The number which might contain $iNumber. ; Return values .: Success: True ; Failure: False ; Author ........: Damon Harris (TheDcoder) ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: https://git.io/vPFjk ; Example .......: Yes, see IsMgcNumPresent_Example.au3 ; =============================================================================================================================== Func IsMgcNumPresent($iNumber, $iMagicNumber) Return BitAND($iMagicNumber, $iNumber) = $iNumber EndFunc
AutoIt
4
IHA114/ProxAllium
IsMgcNumPresent.au3
[ "MIT" ]
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 # Do not print "KERNEL: " in front of messages to ensure user-printed messages # match the filter expected by the DV environment. unset messageprefix pref.setvalue application/console/general/show-identifier-in-messages false run -all endsim pref.setvalue application/console/general/show-identifier-in-messages true
Stata
2
parzival3/Surelog
third_party/tests/Ibex/dv/uvm/data/riviera/riviera_run.do
[ "Apache-2.0" ]
[Desktop Entry] Version=1.0 Name=RenderDoc Comment=A stand-alone graphics API debugger GenericName=Graphics Debugger Exec=qrenderdoc %f Icon=application-x-renderdoc-capture Terminal=false Type=Application X-MultipleArgs=false Categories=Development; StartupNotify=true MimeType=application/x-renderdoc-capture;
desktop
2
PLohrmannAMD/renderdoc
qrenderdoc/share/renderdoc.desktop
[ "MIT" ]
// file Fibonacci.x10 public class Fibonacci { public static def fib(n:Long): Long { if (n < 2) { return n; } val f1:Long; val f2:Long; finish { async f1 = fib(n-1); async f2 = fib(n-2); } return f1 + f2; } public static def main(args:Rail[String]) { x10.io.Console.OUT.println("This is fibonacci in X10."); for (var i:Long=0; i < 10; ++i) { x10.io.Console.OUT.println(i + ": " + fib(i)); } } }
X10
4
RalfGuder/LaTeX-examples
documents/Programmierparadigmen/scripts/x10/Fibonacci.x10
[ "MIT" ]
namespace OpenAPI open OpenAPI.Model.User open System.Collections.Generic open System module UserApiHandlerParams = //#region Body parameters [<CLIMutable>] type CreateUserBodyParams = User //#endregion type CreateUserDefaultStatusCodeResponse = { content:string; } type CreateUserResult = CreateUserDefaultStatusCode of CreateUserDefaultStatusCodeResponse type CreateUserArgs = { bodyParams:CreateUserBodyParams } //#region Body parameters [<CLIMutable>] type CreateUsersWithArrayInputBodyParams = User[] //#endregion type CreateUsersWithArrayInputDefaultStatusCodeResponse = { content:string; } type CreateUsersWithArrayInputResult = CreateUsersWithArrayInputDefaultStatusCode of CreateUsersWithArrayInputDefaultStatusCodeResponse type CreateUsersWithArrayInputArgs = { bodyParams:CreateUsersWithArrayInputBodyParams } //#region Body parameters [<CLIMutable>] type CreateUsersWithListInputBodyParams = User[] //#endregion type CreateUsersWithListInputDefaultStatusCodeResponse = { content:string; } type CreateUsersWithListInputResult = CreateUsersWithListInputDefaultStatusCode of CreateUsersWithListInputDefaultStatusCodeResponse type CreateUsersWithListInputArgs = { bodyParams:CreateUsersWithListInputBodyParams } //#region Path parameters [<CLIMutable>] type DeleteUserPathParams = { username : string ; } //#endregion type DeleteUserStatusCode400Response = { content:string; } type DeleteUserStatusCode404Response = { content:string; } type DeleteUserResult = DeleteUserStatusCode400 of DeleteUserStatusCode400Response|DeleteUserStatusCode404 of DeleteUserStatusCode404Response type DeleteUserArgs = { pathParams:DeleteUserPathParams; } //#region Path parameters [<CLIMutable>] type GetUserByNamePathParams = { username : string ; } //#endregion type GetUserByNameDefaultStatusCodeResponse = { content:User; } type GetUserByNameStatusCode400Response = { content:string; } type GetUserByNameStatusCode404Response = { content:string; } type GetUserByNameResult = GetUserByNameDefaultStatusCode of GetUserByNameDefaultStatusCodeResponse|GetUserByNameStatusCode400 of GetUserByNameStatusCode400Response|GetUserByNameStatusCode404 of GetUserByNameStatusCode404Response type GetUserByNameArgs = { pathParams:GetUserByNamePathParams; } //#region Query parameters [<CLIMutable>] type LoginUserQueryParams = { username : string ; password : string ; } //#endregion type LoginUserDefaultStatusCodeResponse = { content:string; } type LoginUserStatusCode400Response = { content:string; } type LoginUserResult = LoginUserDefaultStatusCode of LoginUserDefaultStatusCodeResponse|LoginUserStatusCode400 of LoginUserStatusCode400Response type LoginUserArgs = { queryParams:Result<LoginUserQueryParams,string>; } type LogoutUserDefaultStatusCodeResponse = { content:string; } type LogoutUserResult = LogoutUserDefaultStatusCode of LogoutUserDefaultStatusCodeResponse //#region Path parameters [<CLIMutable>] type UpdateUserPathParams = { username : string ; } //#endregion //#region Body parameters [<CLIMutable>] type UpdateUserBodyParams = User //#endregion type UpdateUserStatusCode400Response = { content:string; } type UpdateUserStatusCode404Response = { content:string; } type UpdateUserResult = UpdateUserStatusCode400 of UpdateUserStatusCode400Response|UpdateUserStatusCode404 of UpdateUserStatusCode404Response type UpdateUserArgs = { pathParams:UpdateUserPathParams; bodyParams:UpdateUserBodyParams }
F#
4
MalcolmScoffable/openapi-generator
samples/server/petstore/fsharp-giraffe/OpenAPI/src/api/UserApiHandlerParams.fs
[ "Apache-2.0" ]
(************************************************ MessagingUtilities.wl ************************************************* Description: Higher-level utilities for sending and receiving messages from Jupyter Symbols defined: getFrameAssoc, createReplyFrame *************************************************) (************************************ Get[] guard *************************************) If[ !TrueQ[WolframLanguageForJupyter`Private`$GotMessagingUtilities], WolframLanguageForJupyter`Private`$GotMessagingUtilities = True; (************************************ load required WolframLanguageForJupyter files *************************************) Get[FileNameJoin[{DirectoryName[$InputFileName], "SocketUtilities.wl"}]]; (* hmac *) (************************************ private symbols *************************************) (* begin the private context for WolframLanguageForJupyter *) Begin["`Private`"]; (************************************ utilities for reading in, and writing out, message frames *************************************) (* transform received frame into a structured Association *) getFrameAssoc[baFrame_ByteArray] := Module[ { (* string form of the byte array *) frameStr, (* storage for the various value fields of the received frame *) identLen, header, pheader, metadata, content }, (* set frameStr to the string form of the byte array of the received frame *) frameStr = Quiet[ByteArrayToString[baFrame]]; (* get the values (of key-value pairs) from the string frame *) {identLen, header, pheader, metadata, content} = First[ (* pick out the values using the expected form of the frame *) (* see https://jupyter-client.readthedocs.io/en/stable/messaging.html *) StringCases[ frameStr, Shortest[ident1___] ~~ "<IDS|MSG>" ~~ Shortest[___] ~~ "{" ~~ Shortest[json2___] ~~ "}" ~~ "{" ~~ Shortest[json3___] ~~ "}" ~~ "{" ~~ Shortest[json4___] ~~ "}" ~~ "{" ~~ Shortest[json5___] ~~ "}" ~~ EndOfString :> Prepend[ (* add back in the brackets *) ( Association[ ImportByteArray[ StringToByteArray[ StringJoin["{", #1, "}"] ], "JSON" ] ] & ) /@ {json2,json3,json4,json5}, (* use the length of ident1 *) StringLength[ident1] ] ] ]; (* return an association with: * an ident key with a byte array value * the header of the original frame imported as JSON * the content of the original frame imported as JSON *) Return[ Association[ "ident" -> baFrame[[;;identLen]], "header" -> header, "content" -> content ] ]; ]; (* generate a reply message frame from using a source message frame, replyType, and replyContent *) createReplyFrame[ (* the source frame to use, after it has been ran through getFrameAssoc *) sourceFrame_Association, (* the message type to be used for the reply message frame *) replyType_String, (* the content to be used for the reply message frame *) replyContent : (_String | _ByteArray), (* whether to list sourceFrame as a parent for the reply message frame *) branchOff:(True|False) ] := Module[ { (* for storing the header and content of the source message frame *) header, content, (* the association for the generated reply message frame *) result }, (* save the header and content of the source message frame *) header = sourceFrame["header"]; content = sourceFrame["content"]; (* build reply message *) (* see https://jupyter-client.readthedocs.io/en/stable/messaging.html for why the following are set as they are *) result = Association[ "ident" -> If[KeyExistsQ[sourceFrame, "ident"], sourceFrame["ident"], ByteArray[{0, 0, 0, 0, 0}]], "idsmsg" -> "<IDS|MSG>", "header" -> ExportString[ Append[ header, {"date" -> DateString["ISODateTime"], "msg_type" -> replyType, "msg_id" -> StringInsert[StringReplace[CreateUUID[], "-" -> ""], "-", 9]} ], "JSON", "Compact" -> True ], "pheader" -> If[branchOff, "{}", ExportString[header, "JSON", "Compact" -> True]], "metadata" -> ExportString[ {"text/html" -> {}}, "JSON", "Compact" -> True ], "content" -> replyContent ]; (* generate the signature of the reply message *) AssociateTo[ result, "signature" -> hmac[ keyString, StringJoin[ result["header"], result["pheader"], result["metadata"], If[StringQ[result["content"]], result["content"], ByteArrayToString[result["content"]]] ] ] ]; (* return the built reply message frame *) Return[result]; ]; (* end the private context for WolframLanguageForJupyter *) End[]; (* `Private` *) (************************************ Get[] guard *************************************) ] (* WolframLanguageForJupyter`Private`$GotMessagingUtilities *)
Mathematica
5
linux-xhyang/WolframLanguageForJupyter
WolframLanguageForJupyter/Resources/MessagingUtilities.wl
[ "MIT" ]
#pragma once #include "envoy/extensions/internal_redirect/allow_listed_routes/v3/allow_listed_routes_config.pb.h" #include "envoy/extensions/internal_redirect/allow_listed_routes/v3/allow_listed_routes_config.pb.validate.h" #include "envoy/router/internal_redirect.h" #include "source/common/protobuf/message_validator_impl.h" #include "source/common/protobuf/utility.h" #include "source/extensions/internal_redirect/allow_listed_routes/allow_listed_routes.h" namespace Envoy { namespace Extensions { namespace InternalRedirect { class AllowListedRoutesPredicateFactory : public Router::InternalRedirectPredicateFactory { public: Router::InternalRedirectPredicateSharedPtr createInternalRedirectPredicate(const Protobuf::Message& config, absl::string_view) override { auto allow_listed_routes_config = MessageUtil::downcastAndValidate<const envoy::extensions::internal_redirect:: allow_listed_routes::v3::AllowListedRoutesConfig&>( config, ProtobufMessage::getStrictValidationVisitor()); return std::make_shared<AllowListedRoutesPredicate>(allow_listed_routes_config); } std::string name() const override { return "envoy.internal_redirect_predicates.allow_listed_routes"; } ProtobufTypes::MessagePtr createEmptyConfigProto() override { return std::make_unique< envoy::extensions::internal_redirect::allow_listed_routes::v3::AllowListedRoutesConfig>(); } }; } // namespace InternalRedirect } // namespace Extensions } // namespace Envoy
C
4
dcillera/envoy
source/extensions/internal_redirect/allow_listed_routes/config.h
[ "Apache-2.0" ]
// NOLINTNEXTLINE(modernize-deprecated-headers) #include <stdint.h> #include <ATen/nnapi/NeuralNetworks.h> #include <ATen/nnapi/nnapi_wrapper.h> #include <ATen/nnapi/nnapi_model_loader.h> #ifndef NNAPI_LOADER_STANDALONE # include <c10/util/Logging.h> #else #define CAFFE_ENFORCE(cond, ...) do { if (!cond) { return -1; } } while (0) #endif #define NNAPI_CHECK(res) CAFFE_ENFORCE(res == ANEURALNETWORKS_NO_ERROR, "NNAPI returned error: ", res) namespace caffe2 { namespace nnapi { namespace { /* Serialized format for NNAPI models. It is basically just a list arguments for calls to be made to NNAPI. */ typedef enum _SourceType { SOURCE_IMMEDIATE = 0, SOURCE_NUMBERED_BUFFER = 2, SOURCE_NUMBERED_MEMORY = 3, } SourceType; typedef struct _SerializedOperand { int32_t type; uint32_t dimension_count; float scale; int32_t zero_point; } SerializedOperand; typedef struct _SerializedValue { int32_t index; int32_t source_type; uint32_t source_length; } SerializedValue; typedef struct _SerializedOperation { int32_t operation_type; uint32_t input_count; uint32_t output_count; } SerializedOperation; typedef struct _SerializedModel { int32_t version; int32_t operand_count; int32_t value_count; int32_t operation_count; int32_t input_count; int32_t output_count; // SerializedOperand operands[operand_count]; // SerializedValue values[value_count]; // SerializedOperation operations[operation_count]; // uint32_t operand_dimensions[sum(dimension_count)] // uint32_t value_data[sum(source_length+pad)/4] // uint32_t operation_args[sum(input_count + output_count)] // uint32_t model_inputs[input_count] // uint32_t model_outputs[output_count] } SerializedModel; /** * Get the physically stored size of a value. All values are padded out * to a multiple of 4 bytes to ensure the next value is 4-byte aligned. */ static uint32_t value_physical_size(uint32_t len) { uint32_t phys = len; if (len % 4 == 0) { return len; } return len + 4 - (phys % 4); } } // namespace int load_nnapi_model( struct nnapi_wrapper* nnapi, ANeuralNetworksModel* model, const void* serialized_model, int64_t model_length, size_t num_buffers, const void** buffer_ptrs, int32_t* buffer_sizes, size_t num_memories, ANeuralNetworksMemory** memories, int32_t* memory_sizes, int32_t* out_input_count, int32_t* out_output_count, size_t* out_bytes_consumed) { int64_t required_size = 0; const uint8_t* next_pointer = (const uint8_t*)serialized_model; const uint8_t* end_of_buf = (const uint8_t*)serialized_model + model_length; required_size += sizeof(SerializedModel); CAFFE_ENFORCE(model_length >= required_size, "Model is too small. Size = ", model_length); const SerializedModel* ser_model = (SerializedModel*)next_pointer; next_pointer = (uint8_t*)serialized_model + required_size; CAFFE_ENFORCE(next_pointer <= end_of_buf); CAFFE_ENFORCE(ser_model->version == 1); // Keep these small to avoid integer overflow. CAFFE_ENFORCE(ser_model->operand_count < (1 << 24)); CAFFE_ENFORCE(ser_model->value_count < (1 << 24)); CAFFE_ENFORCE(ser_model->operation_count < (1 << 24)); CAFFE_ENFORCE(ser_model->input_count < (1 << 24)); CAFFE_ENFORCE(ser_model->output_count < (1 << 24)); required_size += sizeof(SerializedOperand) * ser_model->operand_count; CAFFE_ENFORCE(model_length >= required_size, "Model is too small. Size = ", model_length); const SerializedOperand* operands = (const SerializedOperand*)next_pointer; next_pointer = (uint8_t*)serialized_model + required_size; CAFFE_ENFORCE(next_pointer <= end_of_buf); required_size += sizeof(SerializedValue) * ser_model->value_count; CAFFE_ENFORCE(model_length >= required_size, "Model is too small. Size = ", model_length); const SerializedValue* values = (const SerializedValue*)next_pointer; next_pointer = (uint8_t*)serialized_model + required_size; CAFFE_ENFORCE(next_pointer <= end_of_buf); required_size += sizeof(SerializedOperation) * ser_model->operation_count; CAFFE_ENFORCE(model_length >= required_size, "Model is too small. Size = ", model_length); const SerializedOperation* operations = (const SerializedOperation*)next_pointer; next_pointer = (uint8_t*)serialized_model + required_size; CAFFE_ENFORCE(next_pointer <= end_of_buf); for (int i = 0; i < ser_model->operand_count; i++) { required_size += 4 * operands[i].dimension_count; } for (int i = 0; i < ser_model->value_count; i++) { required_size += value_physical_size(values[i].source_length); } for (int i = 0; i < ser_model->operation_count; i++) { required_size += 4 * (operations[i].input_count + operations[i].output_count); } required_size += 4 * (ser_model->input_count + ser_model->output_count); CAFFE_ENFORCE(model_length >= required_size, "Model is too small. Size = ", model_length); CAFFE_ENFORCE(next_pointer <= end_of_buf); for (int i = 0; i < ser_model->operand_count; i++) { ANeuralNetworksOperandType operand; operand.type = operands[i].type; operand.scale = operands[i].scale; operand.zeroPoint = operands[i].zero_point; operand.dimensionCount = operands[i].dimension_count; // NOLINTNEXTLINE(modernize-use-nullptr) operand.dimensions = operands[i].dimension_count ? (const uint32_t*)next_pointer : NULL; next_pointer += 4 * operands[i].dimension_count; CAFFE_ENFORCE(next_pointer <= end_of_buf); int result = nnapi->Model_addOperand(model, &operand); NNAPI_CHECK(result); } for (int i = 0; i < ser_model->value_count; i++) { uint32_t len = values[i].source_length; const uint8_t* stored_pointer = next_pointer; // NOLINTNEXTLINE(modernize-use-nullptr) const void* value_pointer = NULL; // NOLINTNEXTLINE(cppcoreguidelines-init-variables) size_t value_length; switch ((SourceType)values[i].source_type) { case SOURCE_IMMEDIATE: { value_pointer = stored_pointer; value_length = len; } break; case SOURCE_NUMBERED_BUFFER: { CAFFE_ENFORCE(len == 12); uint32_t buffer_number = *(uint32_t*)stored_pointer; uint32_t buffer_offset = *(uint32_t*)(stored_pointer + 4); uint32_t operand_length = *(uint32_t*)(stored_pointer + 8); CAFFE_ENFORCE(buffer_number < num_buffers); CAFFE_ENFORCE(buffer_offset + operand_length >= buffer_offset); // No integer overflow CAFFE_ENFORCE(buffer_offset + operand_length <= (uint32_t)buffer_sizes[buffer_number]); // No buffer overflow value_pointer = (uint8_t*)buffer_ptrs[buffer_number] + buffer_offset; value_length = operand_length; } break; case SOURCE_NUMBERED_MEMORY: CAFFE_ENFORCE(false, "Memory inputs not implemented yet."); break; default: CAFFE_ENFORCE(false, "Unknown source type: ", values[i].source_type); } // NOLINTNEXTLINE(modernize-use-nullptr) CAFFE_ENFORCE(value_pointer != NULL); next_pointer += value_physical_size(len); CAFFE_ENFORCE(next_pointer <= end_of_buf); int result = nnapi->Model_setOperandValue( model, values[i].index, value_pointer, value_length); NNAPI_CHECK(result); } for (int i = 0; i < ser_model->operation_count; i++) { const uint32_t* inputs = (const uint32_t*)next_pointer; next_pointer += 4 * operations[i].input_count; CAFFE_ENFORCE(next_pointer <= end_of_buf); const uint32_t* outputs = (const uint32_t*)next_pointer; next_pointer += 4 * operations[i].output_count; CAFFE_ENFORCE(next_pointer <= end_of_buf); int result = nnapi->Model_addOperation( model, operations[i].operation_type, operations[i].input_count, inputs, operations[i].output_count, outputs); NNAPI_CHECK(result); } const uint32_t* model_inputs = (const uint32_t*)next_pointer; next_pointer += 4 * ser_model->input_count; CAFFE_ENFORCE(next_pointer <= end_of_buf); const uint32_t* model_outputs = (const uint32_t*)next_pointer; next_pointer += 4 * ser_model->output_count; CAFFE_ENFORCE(next_pointer <= end_of_buf); int result = nnapi->Model_identifyInputsAndOutputs( model, ser_model->input_count, model_inputs, ser_model->output_count, model_outputs); NNAPI_CHECK(result); *out_input_count = ser_model->input_count; *out_output_count = ser_model->output_count; // TODO: Maybe eliminate required_size and just rely on next_pointer for bounds checking. CAFFE_ENFORCE(next_pointer <= end_of_buf); CAFFE_ENFORCE(next_pointer == (const uint8_t*)serialized_model + required_size); // NOLINTNEXTLINE(modernize-use-nullptr) if (out_bytes_consumed != NULL) { *out_bytes_consumed = next_pointer - (const uint8_t*)serialized_model; } return 0; } }} // namespace caffe2::nnapi
C++
4
Hacky-DH/pytorch
aten/src/ATen/nnapi/nnapi_model_loader.cpp
[ "Intel" ]
// LOADXML within a loop really doesn't work because it tends to replace any local variable definitions // so the accumulation variables tend to be replaced. LOADXML('<xml/>'); #DECLARE(n); #DECLARE(sum); #SET(sum,1) #SET(n,1) #LOOP #IF(%n% <= 4) LOADXML('<xml><value>' + %n% + '</value></xml>'); #SET(n,%n% + 1) #SET(sum, %sum% + %n%) #ELSE #BREAK #END #END output(%value%);
ECL
3
miguelvazq/HPCC-Platform
ecl/regress/issue18564.ecl
[ "Apache-2.0" ]
<html><head><title>{{title}}</title></head><body><p>{{body}}</p></body></html>
HTML
3
nicchagil/spring-framework
spring-webmvc/src/test/resources/org/springframework/web/servlet/view/script/nashorn/template.html
[ "Apache-2.0" ]
// Copyright 2020 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. { metadata: { namespace: "shadow_element_names", export: "CORE_EXPORT", }, data: [ // // ID names for UA shadow elements // { name: "details-content", Symbol: "kIdDetailsContent", }, { name: "details-summary", Symbol: "kIdDetailsSummary", }, { name: "details-marker", Symbol: "kIdDetailsMarker", }, { name: "date-time-edit", Symbol: "kIdDateTimeEdit", }, { name: "spin", Symbol: "kIdSpinButton", }, { name: "clear", Symbol: "kIdClearButton", }, { name: "editing-view-port", Symbol: "kIdEditingViewPort", }, { name: "picker", Symbol: "kIdPickerIndicator", }, { name: "placeholder", Symbol: "kIdPlaceholder", }, { name: "search-clear", Symbol: "kIdSearchClearButton", }, { name: "password-reveal", Symbol: "kIdPasswordRevealButton", }, { name: "thumb", Symbol: "kIdSliderThumb", }, { name: "track", Symbol: "kIdSliderTrack", }, { name: "text-field-container", Symbol: "kIdTextFieldContainer", }, { name: "file-upload-button", Symbol: "kIdFileUploadButton", }, { name: "optgroup-label", Symbol: "kIdOptGroupLabel", }, // // Pseudo names for UA shadow elements. // These are web-exposed as pseudo element selectors. // { name: "-webkit-details-marker", Symbol: "kPseudoWebKitDetailsMarker", }, { name: "-webkit-input-placeholder", Symbol: "kPseudoInputPlaceholder", }, { name: "-webkit-file-upload-button", Symbol: "kPseudoFileUploadButton", }, { name: "-internal-input-suggested", Symbol: "kPseudoInternalInputSuggested", }, { name: "-internal-media-controls-segmented-track", Symbol: "kPseudoMediaControlsSegmentedTrack", }, { name: "-webkit-media-slider-container", Symbol: "kPseudoMediaSliderContainer", }, { name: "-webkit-media-slider-thumb", Symbol: "kPseudoMediaSliderThumb", }, { name: "-webkit-meter-inner-element", Symbol: "kPseudoMeterInnerElement", }, { name: "-webkit-slider-container", Symbol: "kPseudoSliderContainer", }, { name: "-webkit-slider-thumb", Symbol: "kPseudoSliderThumb", }, { name: "-webkit-slider-runnable-track", Symbol: "kPseudoSliderTrack", }, { name: "-webkit-textfield-decoration-container", Symbol: "kPseudoTextFieldDecorationContainer", }, ], }
JSON5
4
zealoussnow/chromium
third_party/blink/renderer/core/html/shadow/shadow_element_names.json5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
parser grammar Fortios_internet_service_name; options { tokenVocab = FortiosLexer; } cf_internet_service_name: INTERNET_SERVICE_NAME newline cfisn_edit*; cfisn_edit: EDIT internet_service_name newline cfisne* NEXT newline; cfisne: cfisne_set | UNSET unimplemented; cfisne_set : SET ( cfisne_set_internet_service_id | cfisne_set_type ) ; cfisne_set_internet_service_id: INTERNET_SERVICE_ID internet_service_id newline; cfisne_set_type: TYPE internet_service_name_type newline; internet_service_name_type: DEFAULT | LOCATION;
ANTLR
3
pranavbj-amzn/batfish
projects/batfish/src/main/antlr4/org/batfish/grammar/fortios/Fortios_internet_service_name.g4
[ "Apache-2.0" ]
/*stdint is not included by default*/ include stdint assert: func<K,T>(a: K, T: Class){ if(a class name != T name){ Exception new("Mismatch! %s vs %s" format(a class name, T name)) throw() } } mytype : cover from Int64 mytype2 : cover from Float a : Double = 2. assert(a+1, Double) assert(a+1., Double) assert(a+1.f, Double) assert(a+1l, Double) assert(a+1ll, Double) assert(1+a, Double) assert(1.+a, Double) assert(1.f+a, Double) assert(1l+a, Double) assert(1ll+a, Double) b : LDouble = 2. assert(b+1, LDouble) assert(b+1., LDouble) assert(b+1.f, LDouble) assert(b+1l, LDouble) assert(b+1ll, LDouble) assert(1+b, LDouble) assert(1.+b, LDouble) assert(1.f+b, LDouble) assert(1l+b, LDouble) assert(1ll+b, LDouble) c : Float = 2. assert(c+1, Float) assert(c+1.f, Float) assert(c+1l, Float) assert(c+1ll, Float) assert(1+c, Float) assert(1.f+c, Float) assert(1l+c, Float) assert(1ll+c, Float) d : mytype = 2 assert(d+1, mytype) assert(d+1.f, Float) assert(d+1l, mytype) assert(d+1ll, LLong) assert(1+d, mytype) assert(1.f+d, Float) assert(1l+d, mytype) assert(1ll+d, LLong) e : mytype2 = 2. assert(e+1, mytype2) assert(e+1.f, mytype2) assert(e+1l, mytype2) assert(e+1ll, mytype2) assert(1+e, mytype2) assert(1.f+e, Float) assert(1l+e, mytype2) assert(1ll+e, mytype2) f : LLong = 1 assert(f+1, LLong) assert(f+1.f, Float) assert(f+1l, LLong) assert(f+1ll, LLong) assert(1+f, LLong) assert(1.f+f, Float) assert(1l+f, LLong) assert(1ll+f, LLong) g : Long = 1 assert(g+1, Long) assert(g+1.f, Float) assert(g+1l, Long) assert(g+1ll, LLong) assert(1+g, Long) assert(1.f+g, Float) assert(1l+g, Long) assert(1ll+g, LLong) h : ULLong = 1 assert(h+1, ULLong) assert(h+1.f, Float) assert(h+1l, ULLong) assert(h+1ll, ULLong) assert(1+h, ULLong) assert(1.f+h, Float) assert(1l+h, ULLong) assert(1ll+h, ULLong) j : ULong = 1 assert(j+1, ULong) assert(j+1.f, Float) assert(j+1l, ULong) assert(j+1ll, LLong) assert(1+j, ULong) assert(1.f+j, Float) assert(1l+j, ULong) assert(1ll+j, LLong) i : Short = 1 assert(i+1, Int) assert(i+1.f, Float) assert(i+1l, Long) assert(i+1ll, LLong) assert(1+i, Int) assert(1.f+i, Float) assert(1l+i, Long) assert(1ll+i, LLong) k : Int8 = 1 assert(k+1, Int) assert(k+1.f, Float) assert(k+1l, Long) assert(k+1ll, LLong) assert(1+k, Int) assert(1.f+k, Float) assert(1l+k, Long) assert(1ll+k, LLong) /* l : Char = 1 assert(l, Char) assert(l+1, Int) assert(l+1.f, Float) assert(l+1l, Long) assert(l+1ll, LLong) assert(1+l, Int) assert(1.f+l, Float) assert(1l+l, Long) assert(1ll+l, LLong) assert('c'+l, Char) m : UChar = 1 assert(m+1, Int) assert(m+1.f, Float) assert(m+1l, Long) assert(m+1ll, LLong) assert(1+m, Int) assert(1.f+m, Float) assert(1l+m, Long) assert(1ll+m, LLong) assert('c'+m, UChar) */ n : Int16 = 1 assert(n+1, Int) assert(n+1.f, Float) assert(n+1l, Long) assert(n+1ll, LLong) assert(1+n, Int) assert(1.f+n, Float) assert(1l+n, Long) assert(1ll+n, LLong) o : Int32 = 1 assert(o+1, Int32) assert(o+1.f, Float) assert(o+1l, Long) assert(o+1ll, LLong) assert(1+o, Int32) assert(1.f+o, Float) assert(1l+o, Long) assert(1ll+o, LLong) p : Int64 = 1 assert(p+1, Int64) assert(p+1.f, Float) assert(p+1l, Int64) assert(p+1ll, LLong) assert(1+p, Int64) assert(1.f+p, Float) assert(1l+p, Int64) assert(1ll+p, LLong) q : UInt64 = 1 assert(q+1, UInt64) assert(q+1.f, Float) assert(q+1l, UInt64) assert(q+1ll, UInt64) assert(1+q, UInt64) assert(1.f+q, Float) assert(1l+q, UInt64) assert(1ll+q, UInt64) r : UInt8 = 1 assert(r+1, Int) assert(r+1.f, Float) assert(r+1l, Long) assert(r+1ll, LLong) assert(1+r, Int) assert(1.f+r, Float) assert(1l+r, Long) assert(1ll+r, LLong) s : UInt16 = 1 assert(s+1, Int) assert(s+1.f, Float) assert(s+1l, Long) assert(s+1ll, LLong) assert(1+s, Int) assert(1.f+s, Float) assert(1l+s, Long) assert(1ll+s, LLong) t : UInt32 = 1 assert(t+1, UInt32) assert(t+1.f, Float) assert(t+1l, UInt32) assert(t+1ll, LLong) assert(1+t, UInt32) assert(1.f+t, Float) assert(1l+t, UInt32) assert(1ll+t, LLong) /* in many compiler, Long is larger than Int */ u : UInt = 1 assert(u+1, UInt) assert(u+1.f, Float) assert(u+1l, Long) assert(u+1ll, LLong) assert(1+u, UInt) assert(1.f+u, Float) assert(1l+u, Long) assert(1ll+u, LLong)
ooc
2
shamanas/rock
test/compiler/types/type-analysis.ooc
[ "MIT" ]
%% -*- prolog -*- %%============================================================================= %% Copyright (C) 2011 by Denys Duchier %% %% This program is free software: you can redistribute it and/or modify it %% under the terms of the GNU Lesser General Public License as published by the %% Free Software Foundation, either version 3 of the License, or (at your %% option) any later version. %% %% This program is distributed in the hope that it will be useful, but WITHOUT %% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or %% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for %% more details. %% %% You should have received a copy of the GNU Lesser General Public License %% along with this program. If not, see <http://www.gnu.org/licenses/>. %%=============================================================================
Prolog
0
ryandesign/yap
packages/gecode/6.1.1/gecode_yap_auto_generated.yap
[ "Artistic-1.0-Perl", "ClArtistic" ]
enum ScrollRestoration { "auto", "manual" }; [Exposed=Window] interface History { // readonly attribute unsigned long index; readonly attribute unsigned long length; // attribute ScrollRestoration scrollRestoration; readonly attribute any state; undefined go(optional long delta = 0); undefined back(); undefined forward(); undefined pushState(any data, DOMString title, optional USVString? url = null); undefined replaceState(any data, DOMString title, optional USVString? url = null); };
WebIDL
4
Unique184/jsdom
lib/jsdom/living/window/History.webidl
[ "MIT" ]
import QtQuick.Layouts 1.4 import QtQuick 2.4 import QtQuick.Controls 2.0 import org.kde.kirigami 2.4 as Kirigami import Mycroft 1.0 as Mycroft Mycroft.Delegate { id: systemHtmlFrame skillBackgroundColorOverlay: "#000000" Loader { id: webViewHtmlLoader source: "WebViewHtmlFrame.qml" anchors.fill: parent property var pageHtml: sessionData.html property var resourceLocation: sessionData.resourceLocation } }
QML
3
assistent-cat/mycroft-core
mycroft/res/ui/SYSTEM_HtmlFrame.qml
[ "Apache-2.0" ]
Next merlin protocol should be stateless. Also worth taking a look: [[https://github.com/Microsoft/language-server-protocol|Microsoft/language-server-protocol]]. The protocol is still implemented as a series of request/answer. {{{ request-format: { uri: "path to current document", source: "full source text", setup: merlin-setup, query: merlin-query, configuration: { terminal_width: int, verbosity: int, }, } answer-format: { class: "return" | "failure" | "error" | "exception", value: <defined-by-class-and-request>, notifications: string list } merlin-query: ... merlin-setup: { build_path: string list, source_path: string list, cmi_path: string list, cmt_path: string list, findlib: string, stdlib: string, packages: string list, flags: string list, reader: string list, suffixes: (string * string) list } }}}
MediaWiki
3
ayshiff/caramel
vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/doc/next/Protocol.wiki
[ "Apache-2.0" ]
i 00001 00 110 7755 00 100 7756 i 00002 00 30 00001 00 22 00000 i 00003 06 33 12345 00 22 00000 i 00004 02 33 76543 00 22 00000
Octave
0
besm6/mesm6
test/gpio/gpio.oct
[ "MIT" ]
syntax = "proto2"; package object_detection.protos; message FlexibleGridAnchorGenerator { repeated AnchorGrid anchor_grid = 1; // Whether to produce anchors in normalized coordinates. optional bool normalize_coordinates = 2 [default = true]; } message AnchorGrid { // The base sizes in pixels for each anchor in this anchor layer. repeated float base_sizes = 1; // The aspect ratios for each anchor in this anchor layer. repeated float aspect_ratios = 2; // The anchor height stride in pixels. optional uint32 height_stride = 3; // The anchor width stride in pixels. optional uint32 width_stride = 4; // The anchor height offset in pixels. optional uint32 height_offset = 5 [default = 0]; // The anchor width offset in pixels. optional uint32 width_offset = 6 [default = 0]; }
Protocol Buffer
4
873040/Abhishek
research/object_detection/protos/flexible_grid_anchor_generator.proto
[ "Apache-2.0" ]
Red/System [ Title: "Red/System struct! datatype test script" Author: "Nenad Rakocevic" File: %struct-test.reds Tabs: 4 Rights: "Copyright (C) 2011-2018 Red Foundation. All rights reserved." License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt" ] #include %../../../../quick-test/quick-test.reds ~~~start-file~~~ "struct!" ===start-group=== "Struct members simple read/write tests" --test-- "s-rw-1" struct1: declare struct! [b [integer!]] struct1/b: 12345 --assert struct1/b = 12345 --test-- "s-rw-2" struct2: declare struct! [b [byte!] c [c-string!] d [integer!]] struct2/c: "a" struct2/d: 9876 struct2/b: #"R" ;-- intentionnaly put there to test not overlapping memory storage --assert struct2/b = #"R" --assert struct2/c/1 = #"a" --assert struct2/d = 9876 --test-- "s-rw-3" --assert struct2/c/1 = #"a" --test-- "s-rw-4" --assert struct2/d = 9876 --test-- "s-rw-5" struct2/c/1: #"x" --assert struct2/c/1 = #"x" --test-- "s-rw-6" struct2-b: struct2/b struct2-c: struct2/c struct2-d: struct2/d --assert struct2-b = #"R" --test-- "s-rw-7" --assert struct2-c/1 = #"x" --test-- "s-rw-8" --assert struct2-d = 9876 --test-- "s-rw-9" struct2-c/1: #"y" --assert struct2-c/1 = #"y" --test-- "s-rw-10" struct2-foo-int: func [a [integer!] return: [integer!]][a] struct2-foo-byte: func [a [byte!] return: [byte!]][a] --assert 9876 = struct2-foo-int struct2/d --test-- "s-rw-11" --assert #"R" = struct2-foo-byte struct2/b ===end-group=== ===start-group=== "Nested structs read/write tests" --test-- "s-nested-1" struct3: declare struct! [ d [byte!] b [integer!] c [c-string!] sub [ ;-- this is a reference to a struct! not a struct value struct! [ e [integer!] f [c-string!] ] ] g [integer!] ] struct3/sub: declare struct! [ e [integer!] f [c-string!] ] struct3/d: #"A" struct3/b: 123 struct3/c: "test" struct3/g: 123456798 struct3/sub/e: 987 struct3/sub/f: "hello" --assert struct3/b = 123 --assert struct3/g = 123456798 --test-- "s-nested-2" --assert struct3/d = #"A" --test-- "s-nested-3" --assert struct3/c/1 = #"t" --test-- "s-nested-4" --assert all [ struct3/c/1 = #"t" struct3/c/2 = #"e" struct3/c/3 = #"s" struct3/c/4 = #"t" ] --test-- "s-nested-5" --assert struct3/sub/e = 987 --test-- "s-nested-6" struct3-e: struct3/sub/e --assert struct3-e = 987 --test-- "s-nested-7" --assert all [ struct3/sub/f/1 = #"h" struct3/sub/f/2 = #"e" struct3/sub/f/3 = #"l" struct3/sub/f/4 = #"l" struct3/sub/f/5 = #"o" ] --test-- "s-nested-8" struct3-f: struct3/sub/f --assert struct3-f/1 = #"h" --test-- "s-nested-9" struct3-byte: struct3/sub/f/2 --assert struct3-byte = #"e" ===end-group=== ===start-group=== "Local struct variables read/write tests" struct-local-foo: func [ /local struct1 [struct! [b [integer!]]] struct2 [struct! [b [byte!] c [c-string!] d [integer!]]] struct2-b [byte!] struct2-c [c-string!] struct2-d [integer!] struct3 [struct! [d [byte!] b [integer!] c [c-string!] sub [struct! [e [integer!] f [c-string!]]] g [integer!]]] struct3-e [integer!] struct3-f [c-string!] struct3-byte [byte!] ][ --test-- "ls-rw-1" struct1: declare struct! [b [integer!]] struct1/b: 12345 --assert struct1/b = 12345 --test-- "ls-rw-2" struct2: declare struct! [b [byte!] c [c-string!] d [integer!]] struct2/c: "a" struct2/d: 9876 struct2/b: #"R" ;-- intentionnaly put there to test not overlapping memory storage --assert struct2/b = #"R" --assert struct2/c/1 = #"a" --assert struct2/d = 9876 --test-- "ls-rw-3" --assert struct2/c/1 = #"a" --test-- "ls-rw-4" --assert struct2/d = 9876 --test-- "ls-rw-5" struct2/c/1: #"x" --assert struct2/c/1 = #"x" --test-- "ls-rw-6" struct2-b: struct2/b struct2-c: struct2/c struct2-d: struct2/d --assert struct2-b = #"R" --test-- "ls-rw-7" --assert struct2-c/1 = #"x" --test-- "ls-rw-8" --assert struct2-d = 9876 --test-- "ls-rw-9" struct2-c/1: #"y" --assert struct2-c/1 = #"y" --test-- "ls-rw-10" --assert 9876 = struct2-foo-int struct2/d --test-- "ls-rw-11" --assert #"R" = struct2-foo-byte struct2/b --test-- "ls-nested-1" struct3: declare struct! [ d [byte!] b [integer!] c [c-string!] sub [ ;-- this is a reference to a struct! not a struct value struct! [ e [integer!] f [c-string!] ] ] g [integer!] ] struct3/sub: declare struct! [ e [integer!] f [c-string!] ] struct3/d: #"A" struct3/b: 123 struct3/c: "test" struct3/g: 123456798 struct3/sub/e: 987 struct3/sub/f: "hello" --assert struct3/b = 123 --assert struct3/g = 123456798 --test-- "ls-nested-2" --assert struct3/d = #"A" --test-- "ls-nested-3" --assert struct3/c/1 = #"t" --test-- "ls-nested-4" --assert all [ struct3/c/1 = #"t" struct3/c/2 = #"e" struct3/c/3 = #"s" struct3/c/4 = #"t" ] --test-- "ls-nested-5" --assert struct3/sub/e = 987 --test-- "ls-nested-6" struct3-e: struct3/sub/e --assert struct3-e = 987 --test-- "ls-nested-7" --assert all [ struct3/sub/f/1 = #"h" struct3/sub/f/2 = #"e" struct3/sub/f/3 = #"l" struct3/sub/f/4 = #"l" struct3/sub/f/5 = #"o" ] --test-- "ls-nested-8" struct3-f: struct3/sub/f --assert struct3-f/1 = #"h" --test-- "ls-nested-9" struct3-byte: struct3/sub/f/2 --assert struct3-byte = #"e" ] struct-local-foo ===end-group=== ===start-group=== "Struct variables arithmetic" --test-- "struct-math-1" struct4: declare struct! [ a [struct! [value [integer!]]] b [struct! [value [integer!]]] c [struct! [value [integer!]]] ] struct5: declare struct! [value [integer!]] struct4/a: declare struct! [value [integer!]] struct4/b: declare struct! [value [integer!]] struct4/c: declare struct! [value [integer!]] struct4/a/value: 123 struct4/b/value: 456 struct4/c/value: 789 --assert struct4/a/value = 123 --assert struct4/b/value = 456 --assert struct4/c/value = 789 struct5: struct4/a --assert struct5/value = 123 --test-- "struct-math-2" struct5: struct5 + 1 --assert struct5/value = 456 --test-- "struct-math-3" struct5: struct4/c --assert struct5/value = 789 struct5: struct5 - 2 --assert struct5/value = 123 --test-- "struct-math-4" struct-idx: 2 struct5: struct5 + struct-idx --assert struct5/value = 789 --test-- "struct-math-5" struct-idx: -2 struct5: struct5 + struct-idx --assert struct5/value = 123 --test-- "struct-math-6" struct-idx: -2 struct5: struct5 - struct-idx --assert struct5/value = 789 --test-- "struct-math-7" struct6: declare struct! [ a [struct! [value [byte!]]] b [struct! [value [byte!]]] c [struct! [value [byte!]]] ] struct7: declare struct! [value [byte!]] struct6/a: declare struct! [value [byte!]] struct6/b: declare struct! [value [byte!]] struct6/c: declare struct! [value [byte!]] struct6/a/value: #"a" struct6/b/value: #"b" struct6/c/value: #"c" --assert struct6/a/value = #"a" --assert struct6/b/value = #"b" --assert struct6/c/value = #"c" struct7: struct6/a --assert struct7/value = #"a" --test-- "struct-math-8" struct7: struct7 + 1 --assert struct7/value = #"b" --test-- "struct-math-9" struct7: struct6/c --assert struct7/value = #"c" struct7: struct7 - 2 --assert struct7/value = #"a" --test-- "struct-math-10" struct-idx: 2 struct7: struct7 + struct-idx --assert struct7/value = #"c" --test-- "struct-math-11" struct-idx: -2 struct7: struct7 + struct-idx --assert struct7/value = #"a" --test-- "struct-math-12" struct-idx: -2 struct7: struct7 - struct-idx --assert struct7/value = #"c" --test-- "struct-math-13" struct8: declare struct! [ a [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] b [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] c [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] ] struct9: declare struct! [v1 [integer!] v2 [byte!] v3 [c-string!]] struct8/a: declare struct! [v1 [integer!] v2 [byte!] v3 [c-string!]] struct8/b: declare struct! [v1 [integer!] v2 [byte!] v3 [c-string!]] struct8/c: declare struct! [v1 [integer!] v2 [byte!] v3 [c-string!]] struct8/a/v1: 123 struct8/b/v1: 456 struct8/c/v1: 789 struct8/a/v2: #"a" struct8/b/v2: #"b" struct8/c/v2: #"c" struct8/a/v3: "A" struct8/b/v3: "B" struct8/c/v3: "C" --assert struct8/a/v1 = 123 --assert struct8/b/v1 = 456 --assert struct8/c/v1 = 789 --assert struct8/a/v2 = #"a" --assert struct8/b/v2 = #"b" --assert struct8/c/v2 = #"c" --assert struct8/a/v3/1 = #"A" --assert struct8/b/v3/1 = #"B" --assert struct8/c/v3/1 = #"C" struct9: struct8/a --assert struct9/v1 = 123 --assert struct9/v2 = #"a" --assert struct9/v3/1 = #"A" --test-- "struct-math-14" struct9: struct9 + 1 --assert struct9/v1 = 456 --assert struct9/v2 = #"b" --assert struct9/v3/1 = #"B" ===end-group=== ===start-group=== "Local struct variables arithmetic" struct-local-foo2: func [ /local struct4 [struct! [ a [struct! [value [integer!]]] b [struct! [value [integer!]]] c [struct! [value [integer!]]] ]] struct5 [struct! [value [integer!]]] struct6 [struct! [ a [struct! [value [byte!]]] b [struct! [value [byte!]]] c [struct! [value [byte!]]] ]] struct7 [struct! [value [byte!]]] struct8 [struct! [ a [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] b [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] c [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] ]] struct9 [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] struct-idx [integer!] ][ --test-- "loc-struct-math-1" struct4: declare struct! [ a [struct! [value [integer!]]] b [struct! [value [integer!]]] c [struct! [value [integer!]]] ] struct5: declare struct! [value [integer!]] struct4/a: declare struct! [value [integer!]] struct4/b: declare struct! [value [integer!]] struct4/c: declare struct! [value [integer!]] struct4/a/value: 123 struct4/b/value: 456 struct4/c/value: 789 --assert struct4/a/value = 123 --assert struct4/b/value = 456 --assert struct4/c/value = 789 struct5: struct4/a --assert struct5/value = 123 --test-- "loc-struct-math-2" struct5: struct5 + 1 --assert struct5/value = 456 --test-- "loc-struct-math-3" struct5: struct4/c --assert struct5/value = 789 struct5: struct5 - 2 --assert struct5/value = 123 --test-- "loc-struct-math-4" struct-idx: 2 struct5: struct5 + struct-idx --assert struct5/value = 789 --test-- "loc-struct-math-5" struct-idx: -2 struct5: struct5 + struct-idx --assert struct5/value = 123 --test-- "loc-struct-math-6" struct-idx: -2 struct5: struct5 - struct-idx --assert struct5/value = 789 --test-- "loc-struct-math-7" struct6: declare struct! [ a [struct! [value [byte!]]] b [struct! [value [byte!]]] c [struct! [value [byte!]]] ] struct7: declare struct! [value [byte!]] struct6/a: declare struct! [value [byte!]] struct6/b: declare struct! [value [byte!]] struct6/c: declare struct! [value [byte!]] struct6/a/value: #"a" struct6/b/value: #"b" struct6/c/value: #"c" --assert struct6/a/value = #"a" --assert struct6/b/value = #"b" --assert struct6/c/value = #"c" struct7: struct6/a --assert struct7/value = #"a" --test-- "loc-struct-math-8" struct7: struct7 + 1 --assert struct7/value = #"b" --test-- "loc-struct-math-9" struct7: struct6/c --assert struct7/value = #"c" struct7: struct7 - 2 --assert struct7/value = #"a" --test-- "loc-struct-math-10" struct-idx: 2 struct7: struct7 + struct-idx --assert struct7/value = #"c" --test-- "loc-struct-math-11" struct-idx: -2 struct7: struct7 + struct-idx --assert struct7/value = #"a" --test-- "loc-struct-math-12" struct-idx: -2 struct7: struct7 - struct-idx --assert struct7/value = #"c" --test-- "loc-struct-math-13" struct8: declare struct! [ a [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] b [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] c [struct! [v1 [integer!] v2 [byte!] v3 [c-string!]]] ] struct9: declare struct! [v1 [integer!] v2 [byte!] v3 [c-string!]] struct8/a: declare struct! [v1 [integer!] v2 [byte!] v3 [c-string!]] struct8/b: declare struct! [v1 [integer!] v2 [byte!] v3 [c-string!]] struct8/c: declare struct! [v1 [integer!] v2 [byte!] v3 [c-string!]] struct8/a/v1: 123 struct8/b/v1: 456 struct8/c/v1: 789 struct8/a/v2: #"a" struct8/b/v2: #"b" struct8/c/v2: #"c" struct8/a/v3: "A" struct8/b/v3: "B" struct8/c/v3: "C" --assert struct8/a/v1 = 123 --assert struct8/b/v1 = 456 --assert struct8/c/v1 = 789 --assert struct8/a/v2 = #"a" --assert struct8/b/v2 = #"b" --assert struct8/c/v2 = #"c" --assert struct8/a/v3/1 = #"A" --assert struct8/b/v3/1 = #"B" --assert struct8/c/v3/1 = #"C" struct9: struct8/a --assert struct9/v1 = 123 --assert struct9/v2 = #"a" --assert struct9/v3/1 = #"A" --test-- "loc-struct-math-14" struct9: struct9 + 1 --assert struct9/v1 = 456 --assert struct9/v2 = #"b" --assert struct9/v3/1 = #"B" ] struct-local-foo2 ===end-group=== ===start-group=== "Struct passed/returned by value" tiny!: alias struct! [b1 [byte!]] small!: alias struct! [one [integer!] two [integer!]] big!: alias struct! [one [integer!] two [integer!] three [float!]] huge!: alias struct! [w1 [integer!] w2 [integer!] w3 [float!] w4 [integer!] w5 [integer!] w6 [float!]] hugeI!: alias struct! [w1 [integer!] w2 [integer!] w3 [integer!] w4 [integer!] w5 [integer!] w6 [integer!]] hugef32!: alias struct! [w1 [float32!] w2 [integer!] w3 [float32!] w4 [integer!] w5 [integer!] w6 [float32!]] super!: alias struct! [f1 [float!] f2 [float!] f3 [float!] f4 [float!] f5 [float!] f6 [float!]] nested1!: alias struct! [f1 [integer!] sub [tiny! value] f2 [integer!]] nested2!: alias struct! [f1 [integer!] sub [small! value] f2 [integer!]] nested3!: alias struct! [f1 [integer!] sub [big! value] f2 [integer!]] nested4!: alias struct! [g1 [integer!] sub [huge! value] g2 [integer!]] nested5!: alias struct! [g1 [integer!] sub [super! value] g2 [integer!]] #switch OS [ Windows [#define STRUCTLIB-file "structlib.dll"] macOS [#define STRUCTLIB-file "libstructlib.dylib"] FreeBSD [#define STRUCTLIB-file "libstruct-BSD.so"] #default [#define STRUCTLIB-file "libstructlib.so"] ] #import [ STRUCTLIB-file cdecl [ returnTiny: "returnTiny" [return: [tiny! value]] returnSmall: "returnSmall" [return: [small! value]] returnBig: "returnBig" [return: [big! value]] returnHuge: "returnHuge" [a [integer!] b [integer!] return: [huge! value]] returnHuge2: "returnHuge2" [h [huge! value] a [integer!] b [integer!] return: [huge! value]] returnHuge3: "returnHuge3" [h [hugeI! value] a [integer!] b [integer!] return: [hugeI! value]] returnHugef32: "returnHugef32" [h [hugef32! value] a [integer!] b [integer!] return: [hugef32! value]] set_callback3999: "set_callback" [ptr [int-ptr!]] test_callback3999: "test_callback" [return: [float32!]] test_callback3999B: "test_callbackB" [return: [float!]] test_callback3999C: "test_callbackC" [return: [float32!]] test_callback3999D: "test_callbackD" [return: [float32!]] test_callback3999E: "test_callbackE" [return: [float32!]] test_callback3999F: "test_callbackF" [return: [float!]] test_callback3999G: "test_callbackG" [return: [float!]] ] ] s1: declare tiny! s2: declare small! s3: declare big! s4: declare huge! s1/b1: #"A" s2/one: 4 s2/two: 5 s3/one: 123 s3/two: 456 s3/three: 3.14 s4/w1: 1 s4/w2: 2 s4/w3: 3.0 s4/w4: 4 s4/w5: 5 s4/w6: 6.0 sbvf1: func [s [tiny! value] v [integer!]][ s/b1: #"x" --assert s/b1 = #"x" --assert v = 741 s ] sbvf2: func [s [tiny! value] v [integer!] return: [tiny! value] /local tmp [tiny! value]][ --assert v = 123 tmp/b1: s/b1 --assert (as int-ptr! :tmp) = :tmp/b1 --assert tmp/b1 = s/b1 tmp ] sbvf3: func [s [small! value] v [integer!] return: [small! value]][ s/one: 9 s/two: 10 --assert v = 852 --assert s/one = 9 --assert s/two = 10 s ] sbvf4: func [s [small! value] v [integer!] return: [small! value] /local tmp [small! value]][ --assert v = 123 tmp/one: s/one + 1 tmp/two: s/two + 1 --assert (as int-ptr! :tmp) = :tmp/one tmp ] sbvf5: func [s [big! value] v [integer!] return: [big! value]][ s/one: 20 s/two: 30 s/three: 1.5 --assert v = 963 --assert s/one = 20 --assert s/two = 30 --assert s/three = 1.5 s ] sbvf6: func [s [big! value] v [integer!] return: [big! value] /local tmp [big! value]][ --assert v = 123 tmp/one: s/one tmp/two: s/two tmp/three: s/three --assert (as int-ptr! :tmp) = :tmp/one tmp ] sbvf7: func [s [huge! value] v [integer!] return: [huge! value]][ s/w1: 10 s/w2: 20 s/w3: 30.0 s/w4: 40 s/w5: 50 s/w6: 60.0 --assert v = 159 --assert s/w1 = 10 --assert s/w2 = 20 --assert s/w3 = 30.0 --assert s/w4 = 40 --assert s/w5 = 50 --assert s/w6 = 60.0 s ] --test-- "svb1" sbvf1 s1 741 --assert s1/b1 = #"A" --test-- "svb2" sv1: declare tiny! sv1: sbvf2 s1 123 --assert sv1/b1 = #"A" --test-- "svb3" sbvf3 s2 852 --assert s2/one = 4 --assert s2/two = 5 --test-- "svb4" sv2: declare small! sv2: sbvf4 s2 123 --assert sv2/one = 5 --assert sv2/two = 6 --test-- "svb5" sbvf5 s3 963 --assert s3/one = 123 --assert s3/two = 456 --assert s3/three = 3.14 --test-- "svb6" sv3: declare big! sv3: sbvf6 s3 123 --assert sv3/one = 123 --assert sv3/two = 456 --assert sv3/three = 3.14 p-int: :sv3/two --assert p-int/value = 456 --test-- "svb7" sbvf7 s4 159 --assert s4/w1 = 1 --assert s4/w2 = 2 --assert s4/w3 = 3.0 --assert s4/w4 = 4 --assert s4/w5 = 5 --assert s4/w6 = 6.0 --test-- "svb8" n1!: alias struct! [g1 [integer!] s1 [tiny!] g2 [integer!]] n1: declare n1! n1/g1: 11111 n1/g2: 22222 n1/s1: declare tiny! n1/s1: sbvf2 s1 123 --assert n1/s1/b1 = #"A" --assert n1/g1 = 11111 --assert n1/g2 = 22222 --test-- "svb9" n2!: alias struct! [g1 [integer!] s2 [small!] g2 [integer!]] n2: declare n2! n2/g1: 11111 n2/g2: 22222 n2/s2: declare small! n2/s2: sbvf3 s2 852 --assert n2/s2/one = 9 --assert n2/s2/two = 10 --assert n1/g1 = 11111 --assert n1/g2 = 22222 --test-- "svb10" n3!: alias struct! [g1 [integer!] s3 [big!] g2 [integer!]] n3: declare n3! n3/g1: 11111 n3/g2: 22222 n3/s3: declare big! n3/s3: sbvf5 s3 963 --assert n3/s3/one = 20 --assert n3/s3/two = 30 --assert n3/s3/three = 1.5 --assert n1/g1 = 11111 --assert n1/g2 = 22222 --assert (as int-ptr! s3) <> :n3/s3 p-int: :n3/s3/one --assert p-int/value = 20 pf: as pointer! [float!] :n3/s3/three --assert pf/value = 1.5 --test-- "svb11" sv1: returnTiny --assert sv1/b1 = #"z" --test-- "svb12" sv2: returnSmall --assert sv2/one = 111 --assert sv2/two = 222 --test-- "svb13" sv3: returnBig --assert sv3/one = 111 --assert sv3/two = 222 --assert sv3/three = 3.14159 --test-- "svb14" sv4: declare huge! sv4: returnHuge as-integer #"0" as-integer #"1" --assert sv4/w1 = 48 --assert sv4/w2 = 49 --assert sv4/w3 = 3.5 --assert sv4/w4 = 444 --assert sv4/w5 = 555 --assert sv4/w6 = 6.789 --test-- "svb15" sv4: returnHuge2 sv4 as-integer #"0" as-integer #"1" --assert sv4/w1 = 48 --assert sv4/w2 = 49 --assert sv4/w3 = 3.5 --assert sv4/w4 = 444 --assert sv4/w5 = 555 --assert sv4/w6 = 6.789 --test-- "svb15.1" sv5: declare hugeI! sv5/w6: 999 sv5: returnHuge3 sv5 as-integer #"0" as-integer #"1" --assert sv5/w1 = 48 --assert sv5/w2 = 49 --assert sv5/w3 = 3 --assert sv5/w4 = 444 --assert sv5/w5 = 555 --assert sv5/w6 = 999 --test-- "svb15.2" sv6: declare hugef32! sv6/w6: as-float32 9.99 sv6: returnHugef32 sv6 as-integer #"0" as-integer #"1" --assert sv6/w1 = as-float32 1.23 --assert sv6/w2 = 49 --assert sv6/w3 = as-float32 3.5 --assert sv6/w4 = 444 --assert sv6/w5 = 555 --assert sv6/w6 = as-float32 9.99 --test-- "svb16" nest1: declare nested1! --assert 12 = size? nested1! nest1/f1: 121212 nest1/f2: 343434 nest1/sub/b1: #"B" --assert nest1/f1 = 121212 --assert nest1/f2 = 343434 --assert nest1/sub/b1 = #"B" --test-- "svb16.1" nest1/sub: sbvf2 nest1/sub 123 --assert nest1/sub/b1 = #"B" --test-- "svb16.2" nest1/sub: sbvf2 s1 123 --assert nest1/sub/b1 = #"A" --test-- "svb16.3" nest1/sub: returnTiny --assert nest1/sub/b1 = #"z" --assert nest1/f1 = 121212 --assert nest1/f2 = 343434 --test-- "svb17" nest2: declare nested2! --assert 16 = size? nested2! nest2/f1: 121212 nest2/f2: 343434 nest2/sub/one: 147 nest2/sub/two: 258 --assert nest2/f1 = 121212 --assert nest2/f2 = 343434 --assert nest2/sub/one = 147 --assert nest2/sub/two = 258 --test-- "svb17.1" nest2/sub: sbvf4 nest2/sub 123 --assert nest2/sub/one = 148 --assert nest2/sub/two = 259 --test-- "svb17.2" nest2/sub: sbvf4 s2 123 --assert nest2/sub/one = 5 --assert nest2/sub/two = 6 --test-- "svb17.3" nest2/sub: returnSmall --assert nest2/sub/one = 111 --assert nest2/sub/two = 222 --assert nest2/f1 = 121212 --assert nest2/f2 = 343434 --test-- "svb18" nest3: declare nested3! --assert 24 = size? nested3! nest3/f1: 121212 nest3/f2: 343434 nest3/sub/one: 666 nest3/sub/two: 777 nest3/sub/three: 8.88 --assert nest3/f1 = 121212 --assert nest3/f2 = 343434 --assert nest3/sub/one = 666 --assert nest3/sub/two = 777 --assert nest3/sub/three = 8.88 --assert (as int-ptr! nest3) + 1 = :nest3/sub --assert :nest3/sub = :nest3/sub/one --assert :nest3/sub + 1 = :nest3/sub/two --assert :nest3/sub + 2 = :nest3/sub/three --assert :nest3/sub + 4 = :nest3/f2 --test-- "svb18.1" nest3/sub: sbvf6 nest3/sub 123 --assert nest3/sub/one = 666 --assert nest3/sub/two = 777 --assert nest3/sub/three = 8.88 p-int: :nest3/sub/two --assert p-int/value = 777 --test-- "svb18.2" nest3/sub: sbvf6 s3 123 --assert nest3/sub/one = 123 --assert nest3/sub/two = 456 --assert nest3/sub/three = 3.14 p-int: :nest3/sub/two --assert p-int/value = 456 --test-- "svb18.3" nest3/sub: returnBig --assert nest3/sub/one = 111 --assert nest3/sub/two = 222 --assert nest3/sub/three = 3.14159 --assert nest3/f1 = 121212 --assert nest3/f2 = 343434 --test-- "svb19" nest4: declare nested4! --assert 40 = size? nested4! nest4/g1: 121212 nest4/g2: 343434 nest4/sub/w1: 100 nest4/sub/w2: 200 nest4/sub/w3: 300.0 nest4/sub/w4: 400 nest4/sub/w5: 500 nest4/sub/w6: 600.0 --assert nest4/g1 = 121212 --assert nest4/g2 = 343434 --assert nest4/sub/w1 = 100 --assert nest4/sub/w2 = 200 --assert nest4/sub/w3 = 300.0 --assert nest4/sub/w4 = 400 --assert nest4/sub/w5 = 500 --assert nest4/sub/w6 = 600.0 --assert (as int-ptr! nest4) + 1 = :nest4/sub --assert :nest4/sub = :nest4/sub/w1 --assert :nest4/sub + 1 = :nest4/sub/w2 --assert :nest4/sub + 2 = :nest4/sub/w3 --assert :nest4/sub + 4 = :nest4/sub/w4 --assert :nest4/sub + 8 = :nest4/g2 --test-- "svb19.1" nest4/sub: returnHuge as-integer #"0" as-integer #"1" --assert nest4/sub/w1 = 48 --assert nest4/sub/w2 = 49 --assert nest4/sub/w3 = 3.5 --assert nest4/sub/w4 = 444 --assert nest4/sub/w5 = 555 --assert nest4/sub/w6 = 6.789 --test-- "svb19.2" nest4/sub: returnHuge2 nest4/sub as-integer #"0" as-integer #"1" --assert nest4/sub/w1 = 48 --assert nest4/sub/w2 = 49 --assert nest4/sub/w3 = 3.5 --assert nest4/sub/w4 = 444 --assert nest4/sub/w5 = 555 --assert nest4/sub/w6 = 6.789 --assert nest4/g1 = 121212 --assert nest4/g2 = 343434 --test-- "svb20" nest5: declare nested5! --assert 56 = size? nested5! nest5/g1: 121212 nest5/g2: 343434 nest5/sub/f1: 1.0 nest5/sub/f2: 2.0 nest5/sub/f3: 3.0 nest5/sub/f4: 4.0 nest5/sub/f5: 5.0 nest5/sub/f6: 6.0 --assert nest5/g1 = 121212 --assert nest5/g2 = 343434 --assert nest5/sub/f1 = 1.0 --assert nest5/sub/f2 = 2.0 --assert nest5/sub/f3 = 3.0 --assert nest5/sub/f4 = 4.0 --assert nest5/sub/f5 = 5.0 --assert nest5/sub/f6 = 6.0 --assert (as int-ptr! nest5) + 1 = :nest5/sub --assert :nest5/sub = :nest5/sub/f1 --assert :nest5/sub + 2 = :nest5/sub/f2 --assert :nest5/sub + 4 = :nest5/sub/f3 --assert :nest5/sub + 12 = :nest5/g2 --test-- "#3999" MyRect!: alias struct! [ x [float32!] y [float32!] w [float32!] h [float32!] ] callback-func: func [ [cdecl] return: [MyRect! value] /local rc [MyRect! value] ][ rc/x: as float32! 23.0 rc/w: as float32! 123.0 rc ] set_callback3999 as int-ptr! :callback-func --assert (as-float32 23.0) = test_callback3999 --test-- "#3999-B" MyRectB!: alias struct! [ x [float!] y [float!] w [float!] h [float!] ] callback-func-B: func [ [cdecl] return: [MyRectB! value] /local rc [MyRectB! value] ][ rc/x: 23.0 rc/w: 123.0 rc ] set_callback3999 as int-ptr! :callback-func-B --assert 23.0 = test_callback3999B --test-- "#3999-C" MyRectC!: alias struct! [ x [float32!] y [float32!] w [float32!] h [float32!] g [float32!] ] callback-func-C: func [ [cdecl] return: [MyRectC! value] /local rc [MyRectC! value] ][ rc/x: as float32! 23.0 rc/w: as float32! 123.0 rc ] set_callback3999 as int-ptr! :callback-func-C --assert (as-float32 23.0) = test_callback3999C --test-- "#3999-D" MyRectD!: alias struct! [ x [float32!] ] callback-func-D: func [ [cdecl] return: [MyRectD! value] /local rc [MyRectD! value] ][ rc/x: as float32! 23.0 rc ] set_callback3999 as int-ptr! :callback-func-D --assert (as-float32 23.0) = test_callback3999D --test-- "#3999-E" MyRectE!: alias struct! [ x [float32!] y [float32!] ] callback-func-E: func [ [cdecl] return: [MyRectE! value] /local rc [MyRectE! value] ][ rc/x: as float32! 23.0 rc/y: as float32! 123.0 rc ] set_callback3999 as int-ptr! :callback-func-E --assert (as-float32 23.0) = test_callback3999E --test-- "#3999-F" MyRectF!: alias struct! [ x [float!] ] callback-func-F: func [ [cdecl] return: [MyRectF! value] /local rc [MyRectF! value] ][ rc/x: 23.0 rc ] set_callback3999 as int-ptr! :callback-func-F --assert 23.0 = test_callback3999F --test-- "#3999-G" MyRectG!: alias struct! [ x [float!] y [float!] ] callback-func-G: func [ [cdecl] return: [MyRectG! value] /local rc [MyRectG! value] ][ rc/x: 23.0 rc/y: 123.0 rc ] set_callback3999 as int-ptr! :callback-func-G --assert 23.0 = test_callback3999G --test-- "svb50" localsbvf: func [ /local sv1 [tiny! value] sv2 [small! value] sv3 [big! value] sv4 [huge! value] p-int [int-ptr!] n1 [n1!] n2 [n2!] n3 [n3!] pf [pointer! [float!]] nest1 [nested1! value] nest2 [nested2! value] nest3 [nested3! value] nest4 [nested4! value] nest5 [nested5! value] nest6 [nested1!] nest7 [nested2!] nest8 [nested3!] ][ --test-- "loc-svb1" sbvf1 s1 741 --assert s1/b1 = #"A" --test-- "loc-svb2" sv1: declare tiny! sv1: sbvf2 s1 123 --assert sv1/b1 = #"A" --test-- "loc-svb3" sbvf3 s2 852 --assert s2/one = 4 --assert s2/two = 5 --test-- "loc-svb4" sv2: declare small! sv2: sbvf4 s2 123 --assert sv2/one = 5 --assert sv2/two = 6 --test-- "loc-svb5" sbvf5 s3 963 --assert s3/one = 123 --assert s3/two = 456 --assert s3/three = 3.14 --test-- "loc-svb6" sv3: declare big! sv3: sbvf6 s3 123 --assert sv3/one = 123 --assert sv3/two = 456 --assert sv3/three = 3.14 p-int: :sv3/two --assert p-int/value = 456 --test-- "loc-svb7" sbvf7 s4 159 --assert s4/w1 = 1 --assert s4/w2 = 2 --assert s4/w3 = 3.0 --assert s4/w4 = 4 --assert s4/w5 = 5 --assert s4/w6 = 6.0 --test-- "loc-svb8" n1: declare n1! n1/g1: 11111 n1/g2: 22222 n1/s1: declare tiny! n1/s1: sbvf2 s1 123 --assert n1/s1/b1 = #"A" --assert n1/g1 = 11111 --assert n1/g2 = 22222 --test-- "loc-svb9" n2: declare n2! n2/g1: 11111 n2/g2: 22222 n2/s2: declare small! n2/s2: sbvf3 s2 852 --assert n2/s2/one = 9 --assert n2/s2/two = 10 --assert n1/g1 = 11111 --assert n1/g2 = 22222 --test-- "loc-svb10" n3: declare n3! n3/g1: 11111 n3/g2: 22222 n3/s3: declare big! n3/s3: sbvf5 s3 963 --assert n3/s3/one = 20 --assert n3/s3/two = 30 --assert n3/s3/three = 1.5 --assert n1/g1 = 11111 --assert n1/g2 = 22222 --assert (as int-ptr! s3) <> :n3/s3 p-int: :n3/s3/one --assert p-int/value = 20 pf: as pointer! [float!] :n3/s3/three --assert pf/value = 1.5 --test-- "loc-svb11" sv1: returnTiny --assert sv1/b1 = #"z" --test-- "loc-svb12" sv2: returnSmall --assert sv2/one = 111 --assert sv2/two = 222 --test-- "loc-svb13" sv3: returnBig --assert sv3/one = 111 --assert sv3/two = 222 --assert sv3/three = 3.14159 --test-- "loc-svb14" ;sv4: declare huge! sv4: returnHuge as-integer #"0" as-integer #"1" --assert sv4/w1 = 48 --assert sv4/w2 = 49 --assert sv4/w3 = 3.5 --assert sv4/w4 = 444 --assert sv4/w5 = 555 --assert sv4/w6 = 6.789 --test-- "loc-svb15" sv4: returnHuge2 sv4 as-integer #"0" as-integer #"1" --assert sv4/w1 = 48 --assert sv4/w2 = 49 --assert sv4/w3 = 3.5 --assert sv4/w4 = 444 --assert sv4/w5 = 555 --assert sv4/w6 = 6.789 --test-- "loc-svb16" --assert 12 = size? nested1! nest1/f1: 121212 nest1/f2: 343434 nest1/sub/b1: #"B" --assert nest1/f1 = 121212 --assert nest1/f2 = 343434 --assert nest1/sub/b1 = #"B" --test-- "loc-svb16.1" nest1/sub: sbvf2 nest1/sub 123 --assert nest1/sub/b1 = #"B" --test-- "loc-svb16.2" nest1/sub: sbvf2 s1 123 --assert nest1/sub/b1 = #"A" --test-- "loc-svb16.3" nest1/sub: returnTiny --assert nest1/sub/b1 = #"z" --assert nest1/f1 = 121212 --assert nest1/f2 = 343434 --test-- "loc-svb17" --assert 16 = size? nested2! nest2/f1: 121212 nest2/f2: 343434 nest2/sub/one: 147 nest2/sub/two: 258 --assert nest2/f1 = 121212 --assert nest2/f2 = 343434 --assert nest2/sub/one = 147 --assert nest2/sub/two = 258 --test-- "loc-svb17.1" nest2/sub: sbvf4 nest2/sub 123 --assert nest2/sub/one = 148 --assert nest2/sub/two = 259 --test-- "loc-svb17.2" nest2/sub: sbvf4 s2 123 --assert nest2/sub/one = 5 --assert nest2/sub/two = 6 --test-- "loc-svb17.3" nest2/sub: returnSmall --assert nest2/sub/one = 111 --assert nest2/sub/two = 222 --assert nest2/f1 = 121212 --assert nest2/f2 = 343434 --test-- "loc-svb18" --assert 24 = size? nested3! nest3/f1: 121212 nest3/f2: 343434 nest3/sub/one: 666 nest3/sub/two: 777 nest3/sub/three: 8.88 --assert nest3/f1 = 121212 --assert nest3/f2 = 343434 --assert nest3/sub/one = 666 --assert nest3/sub/two = 777 --assert nest3/sub/three = 8.88 --assert (as int-ptr! nest3) + 1 = :nest3/sub --assert :nest3/sub = :nest3/sub/one --assert :nest3/sub + 1 = :nest3/sub/two --assert :nest3/sub + 2 = :nest3/sub/three --assert :nest3/sub + 4 = :nest3/f2 --test-- "loc-svb18.1" nest3/sub: sbvf6 nest3/sub 123 --assert nest3/sub/one = 666 --assert nest3/sub/two = 777 --assert nest3/sub/three = 8.88 p-int: :nest3/sub/two --assert p-int/value = 777 --test-- "loc-svb18.2" nest3/sub: sbvf6 s3 123 --assert nest3/sub/one = 123 --assert nest3/sub/two = 456 --assert nest3/sub/three = 3.14 p-int: :nest3/sub/two --assert p-int/value = 456 --test-- "loc-svb18.3" nest3/sub: returnBig --assert nest3/sub/one = 111 --assert nest3/sub/two = 222 --assert nest3/sub/three = 3.14159 --assert nest3/f1 = 121212 --assert nest3/f2 = 343434 --test-- "loc-svb19" nest4: declare nested4! --assert 40 = size? nested4! nest4/g1: 121212 nest4/g2: 343434 nest4/sub/w1: 100 nest4/sub/w2: 200 nest4/sub/w3: 300.0 nest4/sub/w4: 400 nest4/sub/w5: 500 nest4/sub/w6: 600.0 --assert nest4/g1 = 121212 --assert nest4/g2 = 343434 --assert nest4/sub/w1 = 100 --assert nest4/sub/w2 = 200 --assert nest4/sub/w3 = 300.0 --assert nest4/sub/w4 = 400 --assert nest4/sub/w5 = 500 --assert nest4/sub/w6 = 600.0 --assert (as int-ptr! nest4) + 1 = :nest4/sub --assert :nest4/sub = :nest4/sub/w1 --assert :nest4/sub + 1 = :nest4/sub/w2 --assert :nest4/sub + 2 = :nest4/sub/w3 --assert :nest4/sub + 4 = :nest4/sub/w4 --assert :nest4/sub + 8 = :nest4/g2 --test-- "loc-svb19.1" nest4/sub: returnHuge as-integer #"0" as-integer #"1" --assert nest4/sub/w1 = 48 --assert nest4/sub/w2 = 49 --assert nest4/sub/w3 = 3.5 --assert nest4/sub/w4 = 444 --assert nest4/sub/w5 = 555 --assert nest4/sub/w6 = 6.789 --test-- "loc-svb19.2" nest4/sub: returnHuge2 nest4/sub as-integer #"0" as-integer #"1" --assert nest4/sub/w1 = 48 --assert nest4/sub/w2 = 49 --assert nest4/sub/w3 = 3.5 --assert nest4/sub/w4 = 444 --assert nest4/sub/w5 = 555 --assert nest4/sub/w6 = 6.789 --assert nest4/g1 = 121212 --assert nest4/g2 = 343434 --test-- "loc-svb20" --assert 56 = size? nested5! nest5/g1: 121212 nest5/g2: 343434 nest5/sub/f1: 1.0 nest5/sub/f2: 2.0 nest5/sub/f3: 3.0 nest5/sub/f4: 4.0 nest5/sub/f5: 5.0 nest5/sub/f6: 6.0 --assert nest5/g1 = 121212 --assert nest5/g2 = 343434 --assert nest5/sub/f1 = 1.0 --assert nest5/sub/f2 = 2.0 --assert nest5/sub/f3 = 3.0 --assert nest5/sub/f4 = 4.0 --assert nest5/sub/f5 = 5.0 --assert nest5/sub/f6 = 6.0 --assert (as int-ptr! nest5) + 1 = :nest5/sub --assert :nest5/sub = :nest5/sub/f1 --assert :nest5/sub + 2 = :nest5/sub/f2 --assert :nest5/sub + 4 = :nest5/sub/f3 --assert :nest5/sub + 12 = :nest5/g2 --test-- "svb30" nest1: declare nested1! --assert 12 = size? nested1! nest1/f1: 121212 nest1/f2: 343434 nest1/sub/b1: #"B" --assert nest1/f1 = 121212 --assert nest1/f2 = 343434 --assert nest1/sub/b1 = #"B" --test-- "svb30.1" nest1/sub: sbvf2 nest1/sub 123 --assert nest1/sub/b1 = #"B" --test-- "svb30.2" nest1/sub: sbvf2 s1 123 --assert nest1/sub/b1 = #"A" --test-- "svb30.3" nest1/sub: returnTiny --assert nest1/sub/b1 = #"z" --assert nest1/f1 = 121212 --assert nest1/f2 = 343434 --test-- "svb31" nest2: declare nested2! --assert 16 = size? nested2! nest2/f1: 121212 nest2/f2: 343434 nest2/sub/one: 147 nest2/sub/two: 258 --assert nest2/f1 = 121212 --assert nest2/f2 = 343434 --assert nest2/sub/one = 147 --assert nest2/sub/two = 258 --test-- "svb31.1" nest2/sub: sbvf4 nest2/sub 123 --assert nest2/sub/one = 148 --assert nest2/sub/two = 259 --test-- "svb31.2" nest2/sub: sbvf4 s2 123 --assert nest2/sub/one = 5 --assert nest2/sub/two = 6 --test-- "svb31.3" nest2/sub: returnSmall --assert nest2/sub/one = 111 --assert nest2/sub/two = 222 --assert nest2/f1 = 121212 --assert nest2/f2 = 343434 --test-- "svb32" nest3: declare nested3! --assert 24 = size? nested3! nest3/f1: 121212 nest3/f2: 343434 nest3/sub/one: 666 nest3/sub/two: 777 nest3/sub/three: 8.88 --assert nest3/f1 = 121212 --assert nest3/f2 = 343434 --assert nest3/sub/one = 666 --assert nest3/sub/two = 777 --assert nest3/sub/three = 8.88 --assert (as int-ptr! nest3) + 1 = :nest3/sub --assert :nest3/sub = :nest3/sub/one --assert :nest3/sub + 1 = :nest3/sub/two --assert :nest3/sub + 2 = :nest3/sub/three --assert :nest3/sub + 4 = :nest3/f2 --test-- "svb32.1" nest3/sub: sbvf6 nest3/sub 123 --assert nest3/sub/one = 666 --assert nest3/sub/two = 777 --assert nest3/sub/three = 8.88 p-int: :nest3/sub/two --assert p-int/value = 777 --test-- "svb32.2" nest3/sub: sbvf6 s3 123 --assert nest3/sub/one = 123 --assert nest3/sub/two = 456 --assert nest3/sub/three = 3.14 p-int: :nest3/sub/two --assert p-int/value = 456 --test-- "svb32.3" nest3/sub: returnBig --assert nest3/sub/one = 111 --assert nest3/sub/two = 222 --assert nest3/sub/three = 3.14159 --assert nest3/f1 = 121212 --assert nest3/f2 = 343434 ] localsbvf ===end-group=== ~~~end-file~~~
Red
5
GalenIvanov/red
system/tests/source/units/struct-test.reds
[ "BSL-1.0", "BSD-3-Clause" ]
h1 Tobi p Is a ferret ul li: a foo li: a bar li: a baz
Jade
1
andela-jejezie/peopleProject
node_modules/grunt-mocha-test/node_modules/mocha/node_modules/jade/testing/user.jade
[ "MIT" ]
import Prim "mo:⛔"; shared actor class One(a : Text) { Prim.debugPrint(a); public func test() : async () { Prim.debugPrint(debug_show a # " tested"); }; }
Modelica
3
olaszakos/motoko
test/run-drun/class-import/one.mo
[ "Apache-2.0" ]
import operator_benchmark as op_bench import torch add_configs = op_bench.cross_product_configs( M=[8], N=[8], K=[8], device=["cuda", "cpu"], tags=["short"] ) class AddBenchmark(op_bench.TorchBenchmarkBase): def init(self, M, N, K, device): self.input_one = torch.rand(M, N, K, device=device, requires_grad=True) self.input_two = torch.rand(M, N, K, device=device, requires_grad=True) self.set_module_name("add") def forward(self): return torch.add(self.input_one, self.input_two) op_bench.generate_pt_test(add_configs, AddBenchmark) op_bench.generate_pt_gradient_test(add_configs, AddBenchmark) if __name__ == "__main__": op_bench.benchmark_runner.main()
Python
4
Hacky-DH/pytorch
benchmarks/operator_benchmark/common/tests/pt_cpu_gpu_forward_backward_test.py
[ "Intel" ]
// (c) Copyright 1995-2015 Xilinx, Inc. All rights reserved. // // This file contains confidential and proprietary information // of Xilinx, Inc. and is protected under U.S. and // international copyright and other intellectual property // laws. // // DISCLAIMER // This disclaimer is not a license and does not grant any // rights to the materials distributed herewith. Except as // otherwise provided in a valid license issued to you by // Xilinx, and to the maximum extent permitted by applicable // law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND // WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES // AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING // BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON- // INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and // (2) Xilinx shall not be liable (whether in contract or tort, // including negligence, or under any other theory of // liability) for any loss or damage of any kind or nature // related to, arising under or in connection with these // materials, including for any direct, or any indirect, // special, incidental, or consequential loss or damage // (including loss of data, profits, goodwill, or any type of // loss or damage suffered as a result of any action brought // by a third party) even if such damage or loss was // reasonably foreseeable or Xilinx had been advised of the // possibility of the same. // // CRITICAL APPLICATIONS // Xilinx products are not designed or intended to be fail- // safe, or for use in any application requiring fail-safe // performance, such as life-support or safety devices or // systems, Class III medical devices, nuclear facilities, // applications related to the deployment of airbags, or any // other applications that could lead to death, personal // injury, or severe property or environmental damage // (individually and collectively, "Critical // Applications"). Customer assumes the sole risk and // liability of any use of Xilinx products in Critical // Applications, subject only to applicable laws and // regulations governing limitations on product liability. // // THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS // PART OF THIS FILE AT ALL TIMES. // // DO NOT MODIFY THIS FILE. // IP VLNV: analog.com:user:axi_hdmi_tx:1.0 // IP Revision: 2 // The following must be inserted into your Verilog file for this // core to be instantiated. Change the instance name and port connections // (in parentheses) to your own signal names. //----------- Begin Cut here for INSTANTIATION Template ---// INST_TAG system_axi_hdmi_core_0 your_instance_name ( .hdmi_clk(hdmi_clk), // input wire hdmi_clk .hdmi_out_clk(hdmi_out_clk), // output wire hdmi_out_clk .hdmi_16_hsync(hdmi_16_hsync), // output wire hdmi_16_hsync .hdmi_16_vsync(hdmi_16_vsync), // output wire hdmi_16_vsync .hdmi_16_data_e(hdmi_16_data_e), // output wire hdmi_16_data_e .hdmi_16_data(hdmi_16_data), // output wire [15 : 0] hdmi_16_data .hdmi_16_es_data(hdmi_16_es_data), // output wire [15 : 0] hdmi_16_es_data .hdmi_24_hsync(hdmi_24_hsync), // output wire hdmi_24_hsync .hdmi_24_vsync(hdmi_24_vsync), // output wire hdmi_24_vsync .hdmi_24_data_e(hdmi_24_data_e), // output wire hdmi_24_data_e .hdmi_24_data(hdmi_24_data), // output wire [23 : 0] hdmi_24_data .hdmi_36_hsync(hdmi_36_hsync), // output wire hdmi_36_hsync .hdmi_36_vsync(hdmi_36_vsync), // output wire hdmi_36_vsync .hdmi_36_data_e(hdmi_36_data_e), // output wire hdmi_36_data_e .hdmi_36_data(hdmi_36_data), // output wire [35 : 0] hdmi_36_data .m_axis_mm2s_clk(m_axis_mm2s_clk), // input wire m_axis_mm2s_clk .m_axis_mm2s_fsync(m_axis_mm2s_fsync), // output wire m_axis_mm2s_fsync .m_axis_mm2s_fsync_ret(m_axis_mm2s_fsync_ret), // input wire m_axis_mm2s_fsync_ret .m_axis_mm2s_tvalid(m_axis_mm2s_tvalid), // input wire m_axis_mm2s_tvalid .m_axis_mm2s_tdata(m_axis_mm2s_tdata), // input wire [63 : 0] m_axis_mm2s_tdata .m_axis_mm2s_tkeep(m_axis_mm2s_tkeep), // input wire [7 : 0] m_axis_mm2s_tkeep .m_axis_mm2s_tlast(m_axis_mm2s_tlast), // input wire m_axis_mm2s_tlast .m_axis_mm2s_tready(m_axis_mm2s_tready), // output wire m_axis_mm2s_tready .s_axi_aclk(s_axi_aclk), // input wire s_axi_aclk .s_axi_aresetn(s_axi_aresetn), // input wire s_axi_aresetn .s_axi_awvalid(s_axi_awvalid), // input wire s_axi_awvalid .s_axi_awaddr(s_axi_awaddr), // input wire [31 : 0] s_axi_awaddr .s_axi_awready(s_axi_awready), // output wire s_axi_awready .s_axi_wvalid(s_axi_wvalid), // input wire s_axi_wvalid .s_axi_wdata(s_axi_wdata), // input wire [31 : 0] s_axi_wdata .s_axi_wstrb(s_axi_wstrb), // input wire [3 : 0] s_axi_wstrb .s_axi_wready(s_axi_wready), // output wire s_axi_wready .s_axi_bvalid(s_axi_bvalid), // output wire s_axi_bvalid .s_axi_bresp(s_axi_bresp), // output wire [1 : 0] s_axi_bresp .s_axi_bready(s_axi_bready), // input wire s_axi_bready .s_axi_arvalid(s_axi_arvalid), // input wire s_axi_arvalid .s_axi_araddr(s_axi_araddr), // input wire [31 : 0] s_axi_araddr .s_axi_arready(s_axi_arready), // output wire s_axi_arready .s_axi_rvalid(s_axi_rvalid), // output wire s_axi_rvalid .s_axi_rdata(s_axi_rdata), // output wire [31 : 0] s_axi_rdata .s_axi_rresp(s_axi_rresp), // output wire [1 : 0] s_axi_rresp .s_axi_rready(s_axi_rready) // input wire s_axi_rready ); // INST_TAG_END ------ End INSTANTIATION Template ---------
Verilog
3
najibarbaoui/academic_project3
server_side_c98_vhdl_verilog/burgerqueen.srcs/sources_1/bd/system/ip/system_axi_hdmi_core_0/system_axi_hdmi_core_0.veo
[ "MIT" ]