repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
donnior/reactor
reactor-net/src/main/java/reactor/io/net/http/model/HttpHeaders.java
/* * Copyright (c) 2011-2015 Pivotal Software Inc, 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. */ package reactor.io.net.http.model; /** * @author <NAME> * @author <NAME> */ public interface HttpHeaders extends Headers, WritableHeaders<HttpHeaders>, ReadableHeaders { /** * The HTTP {@code Accept} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7231#section-5.3.2">Section 5.3.2 of RFC 7231</a> */ String ACCEPT = "Accept"; /** * The HTTP {@code Accept-Charset} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7231#section-5.3.3">Section 5.3.3 of RFC 7231</a> */ String ACCEPT_CHARSET = "Accept-Charset"; /** * The HTTP {@code Accept-Encoding} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7231#section-5.3.4">Section 5.3.4 of RFC 7231</a> */ String ACCEPT_ENCODING = "Accept-Encoding"; /** * The HTTP {@code Accept-Language} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7231#section-5.3.5">Section 5.3.5 of RFC 7231</a> */ String ACCEPT_LANGUAGE = "Accept-Language"; /** * The HTTP {@code Authorization} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7235#section-4.2">Section 4.2 of RFC 7235</a> */ String AUTHORIZATION = "Authorization"; /** * The HTTP {@code Cookie} header field name. * * @see <a href="http://tools.ietf.org/html/rfc2109#section-4.3.4">Section 4.3.4 of RFC 2109</a> */ String COOKIE = "Cookie"; /** * The HTTP {@code Expect} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7231#section-5.1.1">Section 5.1.1 of RFC 7231</a> */ String EXPECT = "Expect"; /** * The HTTP {@code From} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7231#section-5.5.1">Section 5.5.1 of RFC 7231</a> */ String FROM = "From"; /** * The HTTP {@code Host} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7230#section-5.4">Section 5.4 of RFC 7230</a> */ String HOST = "Host"; /** * The HTTP {@code If-Match} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7232#section-3.1">Section 3.1 of RFC 7232</a> */ String IF_MATCH = "If-Match"; /** * The HTTP {@code If-Modified-Since} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7232#section-3.3">Section 3.3 of RFC 7232</a> */ String IF_MODIFIED_SINCE = "If-Modified-Since"; /** * The HTTP {@code If-None-Match} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7232#section-3.2">Section 3.2 of RFC 7232</a> */ String IF_NONE_MATCH = "If-None-Match"; /** * The HTTP {@code If-Range} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7233#section-3.2">Section 3.2 of RFC 7233</a> */ String IF_RANGE = "If-Range"; /** * The HTTP {@code If-Unmodified-Since} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7232#section-3.4">Section 3.4 of RFC 7232</a> */ String IF_UNMODIFIED_SINCE = "If-Unmodified-Since"; /** * The HTTP {@code Max-Forwards} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7231#section-5.1.2">Section 5.1.2 of RFC 7231</a> */ String MAX_FORWARDS = "Max-Forwards"; /** * The HTTP {@code Origin} header field name. * * @see <a href="http://tools.ietf.org/html/rfc6454">RFC 6454</a> */ String ORIGIN = "Origin"; /** * The HTTP {@code Proxy-Authorization} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7235#section-4.4">Section 4.4 of RFC 7235</a> */ String PROXY_AUTHORIZATION = "Proxy-Authorization"; /** * The HTTP {@code Range} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7233#section-3.1">Section 3.1 of RFC 7233</a> */ String RANGE = "Range"; /** * The HTTP {@code Referer} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7231#section-5.5.2">Section 5.5.2 of RFC 7231</a> */ String REFERER = "Referer"; /** * The HTTP {@code TE} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7230#section-4.3">Section 4.3 of RFC 7230</a> */ String TE = "TE"; /** * The HTTP {@code User-Agent} header field name. * * @see <a href="http://tools.ietf.org/html/rfc7231#section-5.5.3">Section 5.5.3 of RFC 7231</a> */ String USER_AGENT = "User-Agent"; }
qiumingkui/sample_mystore
sample_mystore_common/src/main/java/com/mystore/common/meta/ClassMeta.java
<reponame>qiumingkui/sample_mystore package com.mystore.common.meta; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import com.mystore.common.utils.SimpleBeanUtil; public class ClassMeta<T> { protected Class<T> clazz; protected Map<String, Field> fieldMap = new HashMap<String, Field>(); protected Map<String, Method> methodMap = new HashMap<String, Method>(); public ClassMeta(Class<T> clazz) { super(); this.clazz = clazz; } public Class<T> getClazz() { return clazz; } public String getName() { return clazz.getName(); } public Field getField(String fieldName) { Field field = fieldMap.get(fieldName); if (field == null) { field = SimpleBeanUtil.getFieldWithSupper(clazz, fieldName); if (field != null) { fieldMap.put(field.getName(), field); } } return field; } public Method getMethod(String methodName) { return methodMap.get(methodName); } }
cesarlaso/tfm-udima-arquitectura-del-software-dsl-ecore-xtext-emf
eclipse-emf-udima/es.udima.cesarlaso.tfm/src/es/udima/cesarlaso/tfm/communications/Packet.java
/** */ package es.udima.cesarlaso.tfm.communications; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Packet</b></em>'. * <!-- end-user-doc --> * * <!-- begin-model-doc --> * Un paquete define la unidad minima de comunicación entre el sistema cliente servidor. Un paquete contiene un numero de secuencia de envío, timestamp de fecha de envío, y uno o varios servicios * <!-- end-model-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link es.udima.cesarlaso.tfm.communications.Packet#getSecuence <em>Secuence</em>}</li> * <li>{@link es.udima.cesarlaso.tfm.communications.Packet#getTimestamp <em>Timestamp</em>}</li> * <li>{@link es.udima.cesarlaso.tfm.communications.Packet#getServices <em>Services</em>}</li> * </ul> * * @see es.udima.cesarlaso.tfm.communications.CommunicationsPackage#getPacket() * @model * @generated */ public interface Packet extends EObject { /** * Returns the value of the '<em><b>Secuence</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * El número de secuencia, como su nombre indica, ha de ser secuencial desde el punto de vista de quien genere este nímero. * <!-- end-model-doc --> * @return the value of the '<em>Secuence</em>' attribute. * @see #setSecuence(int) * @see es.udima.cesarlaso.tfm.communications.CommunicationsPackage#getPacket_Secuence() * @model required="true" * @generated */ int getSecuence(); /** * Sets the value of the '{@link es.udima.cesarlaso.tfm.communications.Packet#getSecuence <em>Secuence</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Secuence</em>' attribute. * @see #getSecuence() * @generated */ void setSecuence(int value); /** * Returns the value of the '<em><b>Timestamp</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Numero de segundos en formato Unix timestamp, con precisión de milisegundos. * <!-- end-model-doc --> * @return the value of the '<em>Timestamp</em>' attribute. * @see #setTimestamp(long) * @see es.udima.cesarlaso.tfm.communications.CommunicationsPackage#getPacket_Timestamp() * @model required="true" * @generated */ long getTimestamp(); /** * Sets the value of the '{@link es.udima.cesarlaso.tfm.communications.Packet#getTimestamp <em>Timestamp</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Timestamp</em>' attribute. * @see #getTimestamp() * @generated */ void setTimestamp(long value); /** * Returns the value of the '<em><b>Services</b></em>' reference list. * The list contents are of type {@link es.udima.cesarlaso.tfm.communications.Service}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * Un paquete no puede ir vacio, como mínimo tiene que tener un servicio. * Un ejemplo de paquete vacio de control es un paquete con un servicio Ping * <!-- end-model-doc --> * @return the value of the '<em>Services</em>' reference list. * @see es.udima.cesarlaso.tfm.communications.CommunicationsPackage#getPacket_Services() * @model required="true" * @generated */ EList<Service> getServices(); } // Packet
ishiura-compiler/CF3
testsuite/EXP_4/test583.c
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" int8_t x6 = -1; int32_t x8 = -344; int32_t t0 = -12916537; static int32_t x12 = -24419046; int16_t x14 = -2730; uint16_t x15 = UINT16_MAX; int16_t x18 = INT16_MIN; int8_t x20 = -5; uint16_t x22 = 29125U; int32_t t5 = 980; int8_t x32 = INT8_MIN; int16_t x41 = -1; int32_t x42 = -2822; uint32_t x44 = 8U; int16_t x64 = -1; uint8_t x77 = 2U; uint8_t x78 = 0U; int8_t x84 = INT8_MIN; static int32_t t15 = -87247231; int32_t t19 = 13; volatile uint64_t x128 = 105228931LLU; uint8_t x129 = 24U; uint32_t x132 = UINT32_MAX; int32_t t21 = 2; uint8_t x135 = UINT8_MAX; uint8_t x136 = UINT8_MAX; uint32_t x138 = UINT32_MAX; int16_t x140 = 8; int64_t x147 = 412LL; int8_t x148 = 0; volatile int8_t x161 = INT8_MAX; volatile int64_t x165 = INT64_MAX; int8_t x168 = -1; volatile int32_t t30 = -220387722; static int32_t x181 = INT32_MIN; int16_t x187 = -1; volatile uint32_t x203 = 148U; volatile int16_t x217 = INT16_MIN; uint16_t x234 = 0U; static volatile int32_t t37 = 31782; volatile int32_t t38 = 19787; uint16_t x245 = 0U; int8_t x250 = 48; int16_t x254 = -1; volatile uint32_t x255 = UINT32_MAX; volatile int32_t t41 = -266; volatile int8_t x263 = INT8_MAX; int32_t t43 = 206005; volatile int16_t x270 = -27; volatile uint64_t x274 = 33112754LLU; uint8_t x276 = UINT8_MAX; int64_t x277 = 283757341449LL; static volatile int32_t t47 = 228337345; static int32_t x293 = INT32_MIN; uint16_t x295 = 3U; static volatile uint16_t x306 = UINT16_MAX; int64_t x309 = -4092527819110159LL; static int64_t x310 = INT64_MIN; int8_t x323 = INT8_MIN; static int16_t x326 = 1109; uint16_t x346 = UINT16_MAX; int8_t x348 = -8; int8_t x353 = INT8_MAX; uint64_t x363 = UINT64_MAX; volatile int32_t t63 = -210018; uint64_t x375 = 257627LLU; volatile int32_t t64 = 632; int16_t x389 = -1; int8_t x391 = -3; volatile uint32_t x393 = UINT32_MAX; int64_t x394 = 131805757585267131LL; int32_t t68 = 0; static int32_t x409 = INT32_MIN; int8_t x411 = INT8_MIN; int64_t x427 = -1LL; int32_t t73 = -1; uint8_t x444 = 2U; static int8_t x453 = INT8_MIN; int32_t x457 = INT32_MIN; int64_t x458 = INT64_MIN; static uint32_t x465 = 404603043U; static volatile int8_t x468 = INT8_MIN; volatile int32_t t79 = 9917; uint64_t x475 = 2383599309574431LLU; volatile int32_t t82 = 15655187; int8_t x483 = -1; int64_t x489 = INT64_MIN; volatile int32_t t85 = -1; int32_t x497 = 22257; volatile int32_t x498 = INT32_MAX; int8_t x499 = INT8_MAX; volatile int32_t x500 = -28; volatile int32_t t86 = -3688; static uint32_t x517 = UINT32_MAX; int32_t t88 = 89231; int16_t x530 = INT16_MIN; int32_t x537 = 396; uint32_t x541 = UINT32_MAX; volatile int32_t t93 = 28349483; volatile int16_t x545 = INT16_MIN; uint32_t x549 = 334860U; int32_t t95 = -4540660; int8_t x559 = INT8_MIN; uint64_t x560 = 50790536LLU; int32_t t97 = -454569885; static int16_t x585 = -946; static uint16_t x589 = 0U; int16_t x600 = INT16_MAX; int64_t x601 = -1197LL; uint64_t x603 = UINT64_MAX; int16_t x614 = 24; int16_t x620 = 867; int32_t t106 = 65512; int8_t x631 = INT8_MAX; uint64_t x635 = 8614499LLU; volatile uint32_t x639 = UINT32_MAX; int16_t x640 = INT16_MIN; volatile int8_t x642 = 3; int32_t x643 = -1; volatile uint32_t x644 = UINT32_MAX; int64_t x645 = INT64_MAX; int16_t x646 = INT16_MIN; volatile int8_t x647 = INT8_MIN; volatile uint16_t x653 = 119U; volatile uint8_t x656 = 1U; int32_t t113 = 89291; uint32_t x658 = 14447U; int8_t x661 = INT8_MIN; int16_t x667 = 0; static int32_t t116 = -61400; int32_t x675 = 28433; uint32_t x676 = 2U; int16_t x678 = -1; static int32_t t118 = -9727923; uint32_t x685 = 47U; static int16_t x693 = INT16_MIN; int32_t x701 = INT32_MIN; int64_t x710 = INT64_MIN; volatile int32_t t123 = 7188635; int32_t x720 = -1; volatile int16_t x729 = INT16_MIN; volatile int16_t x733 = -1; int16_t x737 = INT16_MIN; volatile int8_t x738 = INT8_MIN; static uint64_t x739 = 53014423LLU; static uint8_t x774 = 63U; int32_t x777 = -1; int8_t x792 = -1; int32_t x793 = INT32_MAX; volatile int16_t x804 = 373; uint32_t x811 = 2U; volatile int32_t t142 = 0; volatile int32_t t144 = -224666547; static int8_t x840 = INT8_MAX; int32_t t145 = -912830; static int32_t x841 = INT32_MAX; volatile int32_t x842 = INT32_MAX; int8_t x849 = INT8_MIN; int64_t x850 = 249690022915LL; volatile uint16_t x855 = 7260U; static int16_t x863 = -1; int32_t t153 = 2480; int16_t x882 = INT16_MIN; uint64_t x884 = 420151963LLU; volatile uint32_t x891 = 94021U; uint16_t x896 = 8U; uint8_t x897 = UINT8_MAX; static int16_t x898 = 49; volatile int32_t t159 = -466005417; int16_t x906 = INT16_MIN; static int16_t x919 = -1; static int32_t t161 = -35; uint16_t x924 = UINT16_MAX; volatile int32_t x928 = -1; static volatile int64_t x934 = INT64_MIN; uint16_t x960 = UINT16_MAX; volatile int32_t t170 = 36312; volatile int32_t t171 = -17688; static volatile int64_t x989 = INT64_MAX; static int32_t t173 = 2452; volatile int16_t x1003 = -1; int8_t x1007 = INT8_MIN; uint32_t x1008 = UINT32_MAX; int8_t x1011 = INT8_MIN; int64_t x1012 = -10468456LL; uint64_t x1020 = 876LLU; volatile int64_t x1038 = -128712098568LL; int32_t t181 = 2490; int32_t x1046 = -1; volatile uint16_t x1051 = 5U; static uint8_t x1058 = 11U; static int32_t t185 = 0; uint16_t x1062 = UINT16_MAX; volatile int16_t x1073 = INT16_MAX; volatile uint64_t x1074 = 12894715147LLU; volatile int16_t x1089 = -3; static volatile int32_t t189 = -1; static int32_t t190 = -1190824; int32_t t192 = -2431917; static volatile int64_t x1107 = 128LL; int8_t x1113 = INT8_MAX; int32_t t194 = -24835637; uint64_t x1121 = UINT64_MAX; uint32_t x1124 = 1069U; uint8_t x1133 = UINT8_MAX; void f0(void) { uint64_t x5 = 2430554548918695LLU; int8_t x7 = -6; t0 = (x5>(x6^(x7*x8))); if (t0 != 0) { NG(); } else { ; } } void f1(void) { uint32_t x9 = 50620886U; volatile int8_t x10 = 44; uint32_t x11 = 3U; int32_t t1 = -23; t1 = (x9>(x10^(x11*x12))); if (t1 != 0) { NG(); } else { ; } } void f2(void) { uint32_t x13 = 109U; int16_t x16 = 1; volatile int32_t t2 = -10740; t2 = (x13>(x14^(x15*x16))); if (t2 != 0) { NG(); } else { ; } } void f3(void) { int32_t x17 = INT32_MAX; uint64_t x19 = 0LLU; volatile int32_t t3 = 204078238; t3 = (x17>(x18^(x19*x20))); if (t3 != 0) { NG(); } else { ; } } void f4(void) { uint64_t x21 = UINT64_MAX; static uint32_t x23 = 1652142111U; volatile uint32_t x24 = 472U; int32_t t4 = -8837404; t4 = (x21>(x22^(x23*x24))); if (t4 != 1) { NG(); } else { ; } } void f5(void) { volatile int8_t x25 = -1; int32_t x26 = INT32_MIN; int16_t x27 = INT16_MAX; int8_t x28 = 2; t5 = (x25>(x26^(x27*x28))); if (t5 != 1) { NG(); } else { ; } } void f6(void) { int64_t x29 = INT64_MIN; static int16_t x30 = INT16_MAX; volatile int16_t x31 = INT16_MIN; int32_t t6 = 505438418; t6 = (x29>(x30^(x31*x32))); if (t6 != 0) { NG(); } else { ; } } void f7(void) { int64_t x37 = -115774LL; int64_t x38 = INT64_MIN; volatile int32_t x39 = 5; static uint16_t x40 = UINT16_MAX; int32_t t7 = 1844935; t7 = (x37>(x38^(x39*x40))); if (t7 != 1) { NG(); } else { ; } } void f8(void) { uint32_t x43 = 19524U; volatile int32_t t8 = -6730122; t8 = (x41>(x42^(x43*x44))); if (t8 != 1) { NG(); } else { ; } } void f9(void) { uint32_t x49 = UINT32_MAX; static volatile int32_t x50 = INT32_MIN; uint64_t x51 = UINT64_MAX; static int16_t x52 = -1; volatile int32_t t9 = 2995; t9 = (x49>(x50^(x51*x52))); if (t9 != 0) { NG(); } else { ; } } void f10(void) { volatile int64_t x53 = -220910625286LL; static uint16_t x54 = 6U; int64_t x55 = -859325355238433334LL; uint8_t x56 = 6U; int32_t t10 = 34819830; t10 = (x53>(x54^(x55*x56))); if (t10 != 1) { NG(); } else { ; } } void f11(void) { int32_t x61 = INT32_MAX; int16_t x62 = -3; static int64_t x63 = -19615467268LL; volatile int32_t t11 = 24; t11 = (x61>(x62^(x63*x64))); if (t11 != 1) { NG(); } else { ; } } void f12(void) { static volatile int32_t x65 = -1; int8_t x66 = INT8_MAX; static int16_t x67 = INT16_MIN; static int16_t x68 = 0; int32_t t12 = -163370074; t12 = (x65>(x66^(x67*x68))); if (t12 != 0) { NG(); } else { ; } } void f13(void) { int32_t x73 = INT32_MAX; uint32_t x74 = 4492U; int16_t x75 = INT16_MIN; int16_t x76 = 4134; static volatile int32_t t13 = -44476; t13 = (x73>(x74^(x75*x76))); if (t13 != 0) { NG(); } else { ; } } void f14(void) { uint16_t x79 = 93U; volatile uint32_t x80 = 442136742U; static int32_t t14 = -2799179; t14 = (x77>(x78^(x79*x80))); if (t14 != 0) { NG(); } else { ; } } void f15(void) { int64_t x81 = INT64_MIN; uint16_t x82 = UINT16_MAX; volatile uint16_t x83 = UINT16_MAX; t15 = (x81>(x82^(x83*x84))); if (t15 != 0) { NG(); } else { ; } } void f16(void) { static uint64_t x97 = 5054LLU; int16_t x98 = INT16_MAX; volatile int16_t x99 = -1; int64_t x100 = -351003431603274493LL; int32_t t16 = -3121920; t16 = (x97>(x98^(x99*x100))); if (t16 != 0) { NG(); } else { ; } } void f17(void) { volatile uint16_t x105 = 8U; int32_t x106 = INT32_MIN; int64_t x107 = -16410808686LL; int16_t x108 = 2801; volatile int32_t t17 = -4214228; t17 = (x105>(x106^(x107*x108))); if (t17 != 0) { NG(); } else { ; } } void f18(void) { int64_t x109 = INT64_MAX; uint32_t x110 = 810277U; static volatile int64_t x111 = INT64_MAX; static int16_t x112 = -1; int32_t t18 = 170075; t18 = (x109>(x110^(x111*x112))); if (t18 != 1) { NG(); } else { ; } } void f19(void) { uint64_t x113 = 8953017808107567LLU; static volatile int32_t x114 = INT32_MIN; uint8_t x115 = 5U; int16_t x116 = INT16_MAX; t19 = (x113>(x114^(x115*x116))); if (t19 != 0) { NG(); } else { ; } } void f20(void) { int32_t x125 = INT32_MIN; static uint32_t x126 = 2039030U; uint32_t x127 = UINT32_MAX; int32_t t20 = 137; t20 = (x125>(x126^(x127*x128))); if (t20 != 1) { NG(); } else { ; } } void f21(void) { static uint16_t x130 = 2U; int16_t x131 = -1; t21 = (x129>(x130^(x131*x132))); if (t21 != 1) { NG(); } else { ; } } void f22(void) { int32_t x133 = -1; int16_t x134 = INT16_MIN; volatile int32_t t22 = -5712; t22 = (x133>(x134^(x135*x136))); if (t22 != 1) { NG(); } else { ; } } void f23(void) { int16_t x137 = 2; static int64_t x139 = -217LL; volatile int32_t t23 = -383860287; t23 = (x137>(x138^(x139*x140))); if (t23 != 1) { NG(); } else { ; } } void f24(void) { uint64_t x141 = 139290978337LLU; int64_t x142 = -1LL; int32_t x143 = -1; int64_t x144 = -1LL; static volatile int32_t t24 = -14163741; t24 = (x141>(x142^(x143*x144))); if (t24 != 0) { NG(); } else { ; } } void f25(void) { uint64_t x145 = UINT64_MAX; static int16_t x146 = 25; volatile int32_t t25 = 26562892; t25 = (x145>(x146^(x147*x148))); if (t25 != 1) { NG(); } else { ; } } void f26(void) { int16_t x157 = -4503; uint16_t x158 = 557U; int8_t x159 = -1; uint32_t x160 = UINT32_MAX; static int32_t t26 = -724658; t26 = (x157>(x158^(x159*x160))); if (t26 != 1) { NG(); } else { ; } } void f27(void) { static volatile uint32_t x162 = 32116U; uint32_t x163 = UINT32_MAX; int32_t x164 = INT32_MIN; static int32_t t27 = 181764613; t27 = (x161>(x162^(x163*x164))); if (t27 != 0) { NG(); } else { ; } } void f28(void) { uint32_t x166 = 7076534U; int8_t x167 = 0; int32_t t28 = -2338; t28 = (x165>(x166^(x167*x168))); if (t28 != 1) { NG(); } else { ; } } void f29(void) { volatile uint8_t x173 = UINT8_MAX; int32_t x174 = 131800; uint8_t x175 = 60U; int16_t x176 = INT16_MAX; static volatile int32_t t29 = -3609617; t29 = (x173>(x174^(x175*x176))); if (t29 != 0) { NG(); } else { ; } } void f30(void) { uint16_t x177 = 24206U; int16_t x178 = INT16_MAX; uint64_t x179 = 2878245223609376151LLU; int64_t x180 = -1LL; t30 = (x177>(x178^(x179*x180))); if (t30 != 0) { NG(); } else { ; } } void f31(void) { int8_t x182 = INT8_MIN; static int8_t x183 = 1; volatile int32_t x184 = INT32_MAX; static int32_t t31 = 8; t31 = (x181>(x182^(x183*x184))); if (t31 != 0) { NG(); } else { ; } } void f32(void) { static int32_t x185 = INT32_MIN; int16_t x186 = INT16_MIN; int8_t x188 = -1; volatile int32_t t32 = -1735; t32 = (x185>(x186^(x187*x188))); if (t32 != 0) { NG(); } else { ; } } void f33(void) { static int8_t x189 = INT8_MAX; volatile int32_t x190 = 185776; int64_t x191 = INT64_MAX; uint64_t x192 = 205392LLU; volatile int32_t t33 = -82136; t33 = (x189>(x190^(x191*x192))); if (t33 != 0) { NG(); } else { ; } } void f34(void) { volatile int8_t x201 = -1; volatile int16_t x202 = -1; int32_t x204 = INT32_MIN; volatile int32_t t34 = 1100484; t34 = (x201>(x202^(x203*x204))); if (t34 != 0) { NG(); } else { ; } } void f35(void) { uint16_t x209 = 3408U; int8_t x210 = INT8_MIN; uint16_t x211 = 882U; int16_t x212 = 0; volatile int32_t t35 = -10059; t35 = (x209>(x210^(x211*x212))); if (t35 != 1) { NG(); } else { ; } } void f36(void) { uint16_t x218 = UINT16_MAX; uint64_t x219 = UINT64_MAX; uint32_t x220 = 2U; int32_t t36 = -30787; t36 = (x217>(x218^(x219*x220))); if (t36 != 1) { NG(); } else { ; } } void f37(void) { volatile int8_t x233 = 50; static uint32_t x235 = 20U; uint64_t x236 = UINT64_MAX; t37 = (x233>(x234^(x235*x236))); if (t37 != 0) { NG(); } else { ; } } void f38(void) { static uint32_t x241 = 1847004188U; volatile int64_t x242 = INT64_MIN; static uint64_t x243 = UINT64_MAX; static int32_t x244 = INT32_MIN; t38 = (x241>(x242^(x243*x244))); if (t38 != 0) { NG(); } else { ; } } void f39(void) { uint32_t x246 = 11774U; volatile int16_t x247 = INT16_MAX; uint16_t x248 = 290U; volatile int32_t t39 = 47236; t39 = (x245>(x246^(x247*x248))); if (t39 != 0) { NG(); } else { ; } } void f40(void) { int32_t x249 = 83082933; volatile uint8_t x251 = 15U; int8_t x252 = INT8_MIN; int32_t t40 = -17619104; t40 = (x249>(x250^(x251*x252))); if (t40 != 1) { NG(); } else { ; } } void f41(void) { int32_t x253 = INT32_MIN; int64_t x256 = 25509LL; t41 = (x253>(x254^(x255*x256))); if (t41 != 1) { NG(); } else { ; } } void f42(void) { uint8_t x257 = 47U; volatile uint64_t x258 = 8393789340906848196LLU; int16_t x259 = -1; int64_t x260 = 15516925LL; int32_t t42 = -668823347; t42 = (x257>(x258^(x259*x260))); if (t42 != 0) { NG(); } else { ; } } void f43(void) { int32_t x261 = INT32_MIN; static int16_t x262 = 1; volatile int64_t x264 = 1855300444451364LL; t43 = (x261>(x262^(x263*x264))); if (t43 != 0) { NG(); } else { ; } } void f44(void) { uint16_t x269 = 0U; uint16_t x271 = UINT16_MAX; int16_t x272 = -1; volatile int32_t t44 = -79718733; t44 = (x269>(x270^(x271*x272))); if (t44 != 0) { NG(); } else { ; } } void f45(void) { int32_t x273 = -1; volatile uint32_t x275 = 523976608U; int32_t t45 = 129254040; t45 = (x273>(x274^(x275*x276))); if (t45 != 1) { NG(); } else { ; } } void f46(void) { uint8_t x278 = UINT8_MAX; int16_t x279 = INT16_MAX; int8_t x280 = 46; int32_t t46 = -3486; t46 = (x277>(x278^(x279*x280))); if (t46 != 1) { NG(); } else { ; } } void f47(void) { int16_t x281 = 92; int64_t x282 = 28987100588LL; volatile int16_t x283 = INT16_MAX; int8_t x284 = INT8_MAX; t47 = (x281>(x282^(x283*x284))); if (t47 != 0) { NG(); } else { ; } } void f48(void) { uint64_t x285 = 26577865677439533LLU; int16_t x286 = INT16_MAX; int8_t x287 = INT8_MIN; uint32_t x288 = 1944525868U; volatile int32_t t48 = -48; t48 = (x285>(x286^(x287*x288))); if (t48 != 1) { NG(); } else { ; } } void f49(void) { uint32_t x289 = 2742U; volatile int16_t x290 = INT16_MIN; int32_t x291 = -1; int32_t x292 = -1; volatile int32_t t49 = 461; t49 = (x289>(x290^(x291*x292))); if (t49 != 0) { NG(); } else { ; } } void f50(void) { static volatile uint16_t x294 = 9675U; static volatile uint8_t x296 = 1U; volatile int32_t t50 = 109114; t50 = (x293>(x294^(x295*x296))); if (t50 != 0) { NG(); } else { ; } } void f51(void) { int32_t x301 = 129478; int64_t x302 = INT64_MAX; int64_t x303 = -1LL; int64_t x304 = 42713749671085LL; volatile int32_t t51 = -64826; t51 = (x301>(x302^(x303*x304))); if (t51 != 1) { NG(); } else { ; } } void f52(void) { static volatile int16_t x305 = -198; uint64_t x307 = 44907611087LLU; int64_t x308 = 7285725131630135LL; volatile int32_t t52 = -23792; t52 = (x305>(x306^(x307*x308))); if (t52 != 1) { NG(); } else { ; } } void f53(void) { uint32_t x311 = UINT32_MAX; uint16_t x312 = 3U; volatile int32_t t53 = 236005116; t53 = (x309>(x310^(x311*x312))); if (t53 != 1) { NG(); } else { ; } } void f54(void) { static uint64_t x313 = 6908147732112LLU; volatile int64_t x314 = -1LL; uint16_t x315 = UINT16_MAX; uint8_t x316 = UINT8_MAX; static int32_t t54 = -31; t54 = (x313>(x314^(x315*x316))); if (t54 != 0) { NG(); } else { ; } } void f55(void) { volatile int64_t x317 = -1LL; uint64_t x318 = 4519143140828041LLU; volatile int8_t x319 = -2; static int16_t x320 = INT16_MIN; volatile int32_t t55 = -1040717460; t55 = (x317>(x318^(x319*x320))); if (t55 != 1) { NG(); } else { ; } } void f56(void) { static int16_t x321 = INT16_MAX; int16_t x322 = -713; volatile int16_t x324 = 15; int32_t t56 = -17010340; t56 = (x321>(x322^(x323*x324))); if (t56 != 1) { NG(); } else { ; } } void f57(void) { int8_t x325 = 1; int8_t x327 = INT8_MAX; int16_t x328 = -1; int32_t t57 = -3; t57 = (x325>(x326^(x327*x328))); if (t57 != 1) { NG(); } else { ; } } void f58(void) { volatile int64_t x333 = INT64_MIN; static int32_t x334 = -1; int32_t x335 = -429339; int16_t x336 = 2916; volatile int32_t t58 = 20; t58 = (x333>(x334^(x335*x336))); if (t58 != 0) { NG(); } else { ; } } void f59(void) { int16_t x337 = INT16_MIN; int16_t x338 = INT16_MIN; int64_t x339 = INT64_MIN; static uint64_t x340 = 22094LLU; int32_t t59 = 1; t59 = (x337>(x338^(x339*x340))); if (t59 != 0) { NG(); } else { ; } } void f60(void) { int16_t x345 = 397; int8_t x347 = 1; volatile int32_t t60 = -222054; t60 = (x345>(x346^(x347*x348))); if (t60 != 1) { NG(); } else { ; } } void f61(void) { static uint16_t x354 = UINT16_MAX; int64_t x355 = INT64_MAX; static int64_t x356 = -1LL; volatile int32_t t61 = -28; t61 = (x353>(x354^(x355*x356))); if (t61 != 1) { NG(); } else { ; } } void f62(void) { int8_t x357 = INT8_MIN; int8_t x358 = INT8_MIN; static int8_t x359 = 1; uint16_t x360 = 1U; static int32_t t62 = -187536; t62 = (x357>(x358^(x359*x360))); if (t62 != 0) { NG(); } else { ; } } void f63(void) { volatile int16_t x361 = INT16_MAX; int8_t x362 = 63; int16_t x364 = -1; t63 = (x361>(x362^(x363*x364))); if (t63 != 1) { NG(); } else { ; } } void f64(void) { int32_t x373 = -1; uint8_t x374 = 103U; uint16_t x376 = 277U; t64 = (x373>(x374^(x375*x376))); if (t64 != 1) { NG(); } else { ; } } void f65(void) { uint64_t x377 = 52630910LLU; int16_t x378 = -92; int8_t x379 = 0; static int64_t x380 = 92705763LL; int32_t t65 = -1504; t65 = (x377>(x378^(x379*x380))); if (t65 != 0) { NG(); } else { ; } } void f66(void) { int64_t x390 = INT64_MAX; uint16_t x392 = 12U; int32_t t66 = -159135732; t66 = (x389>(x390^(x391*x392))); if (t66 != 1) { NG(); } else { ; } } void f67(void) { int16_t x395 = 619; int64_t x396 = 3829084LL; int32_t t67 = 2; t67 = (x393>(x394^(x395*x396))); if (t67 != 0) { NG(); } else { ; } } void f68(void) { int8_t x405 = -2; static int16_t x406 = -2175; int16_t x407 = 55; int16_t x408 = -1; t68 = (x405>(x406^(x407*x408))); if (t68 != 0) { NG(); } else { ; } } void f69(void) { uint16_t x410 = 75U; int32_t x412 = -1; volatile int32_t t69 = -87630; t69 = (x409>(x410^(x411*x412))); if (t69 != 0) { NG(); } else { ; } } void f70(void) { uint64_t x413 = 5656999536794410078LLU; int16_t x414 = INT16_MIN; static int16_t x415 = INT16_MIN; volatile uint32_t x416 = UINT32_MAX; volatile int32_t t70 = -2604; t70 = (x413>(x414^(x415*x416))); if (t70 != 1) { NG(); } else { ; } } void f71(void) { static uint32_t x425 = 19260435U; static uint16_t x426 = 2U; int8_t x428 = INT8_MIN; int32_t t71 = -3530022; t71 = (x425>(x426^(x427*x428))); if (t71 != 1) { NG(); } else { ; } } void f72(void) { uint16_t x429 = 0U; int64_t x430 = -428837LL; uint8_t x431 = 4U; int16_t x432 = 4; volatile int32_t t72 = 854523461; t72 = (x429>(x430^(x431*x432))); if (t72 != 1) { NG(); } else { ; } } void f73(void) { uint8_t x437 = 105U; volatile int16_t x438 = INT16_MIN; uint8_t x439 = UINT8_MAX; uint32_t x440 = UINT32_MAX; t73 = (x437>(x438^(x439*x440))); if (t73 != 0) { NG(); } else { ; } } void f74(void) { int16_t x441 = 134; static int64_t x442 = INT64_MAX; static int8_t x443 = INT8_MAX; int32_t t74 = -122317651; t74 = (x441>(x442^(x443*x444))); if (t74 != 0) { NG(); } else { ; } } void f75(void) { int16_t x445 = -269; static uint64_t x446 = UINT64_MAX; volatile uint8_t x447 = 1U; int16_t x448 = INT16_MIN; static int32_t t75 = 9203246; t75 = (x445>(x446^(x447*x448))); if (t75 != 1) { NG(); } else { ; } } void f76(void) { int16_t x454 = -622; volatile int16_t x455 = 1; static int32_t x456 = 194; volatile int32_t t76 = 601903; t76 = (x453>(x454^(x455*x456))); if (t76 != 1) { NG(); } else { ; } } void f77(void) { static uint64_t x459 = 5510977450LLU; volatile int16_t x460 = -2; volatile int32_t t77 = 309; t77 = (x457>(x458^(x459*x460))); if (t77 != 1) { NG(); } else { ; } } void f78(void) { uint16_t x461 = 0U; uint32_t x462 = 555774568U; int64_t x463 = -1LL; int8_t x464 = -22; volatile int32_t t78 = -47222821; t78 = (x461>(x462^(x463*x464))); if (t78 != 0) { NG(); } else { ; } } void f79(void) { static int16_t x466 = 18; int16_t x467 = -1; t79 = (x465>(x466^(x467*x468))); if (t79 != 1) { NG(); } else { ; } } void f80(void) { uint32_t x469 = UINT32_MAX; static int64_t x470 = -1LL; volatile int16_t x471 = INT16_MIN; volatile uint32_t x472 = UINT32_MAX; volatile int32_t t80 = -15; t80 = (x469>(x470^(x471*x472))); if (t80 != 1) { NG(); } else { ; } } void f81(void) { int32_t x473 = INT32_MIN; int64_t x474 = -1LL; int16_t x476 = INT16_MIN; int32_t t81 = 20; t81 = (x473>(x474^(x475*x476))); if (t81 != 1) { NG(); } else { ; } } void f82(void) { uint64_t x477 = UINT64_MAX; int64_t x478 = -3990124673740711062LL; static int8_t x479 = -1; int8_t x480 = INT8_MAX; t82 = (x477>(x478^(x479*x480))); if (t82 != 1) { NG(); } else { ; } } void f83(void) { static int8_t x481 = INT8_MAX; int32_t x482 = -1; int32_t x484 = INT32_MAX; static int32_t t83 = 1; t83 = (x481>(x482^(x483*x484))); if (t83 != 0) { NG(); } else { ; } } void f84(void) { int64_t x485 = INT64_MIN; int32_t x486 = 38; int32_t x487 = 8196555; volatile int16_t x488 = -1; int32_t t84 = 0; t84 = (x485>(x486^(x487*x488))); if (t84 != 0) { NG(); } else { ; } } void f85(void) { int16_t x490 = INT16_MAX; uint64_t x491 = 64643016LLU; uint64_t x492 = 532815698671660LLU; t85 = (x489>(x490^(x491*x492))); if (t85 != 1) { NG(); } else { ; } } void f86(void) { t86 = (x497>(x498^(x499*x500))); if (t86 != 1) { NG(); } else { ; } } void f87(void) { int8_t x501 = -1; uint8_t x502 = 2U; uint64_t x503 = 229598840455544629LLU; int8_t x504 = INT8_MIN; int32_t t87 = -430; t87 = (x501>(x502^(x503*x504))); if (t87 != 1) { NG(); } else { ; } } void f88(void) { int32_t x518 = INT32_MIN; uint32_t x519 = 669U; static uint16_t x520 = 254U; t88 = (x517>(x518^(x519*x520))); if (t88 != 1) { NG(); } else { ; } } void f89(void) { int8_t x521 = 47; int8_t x522 = 3; static volatile uint64_t x523 = UINT64_MAX; uint8_t x524 = UINT8_MAX; static volatile int32_t t89 = 26457082; t89 = (x521>(x522^(x523*x524))); if (t89 != 0) { NG(); } else { ; } } void f90(void) { static int32_t x525 = INT32_MIN; int64_t x526 = -61452LL; int16_t x527 = 7737; volatile int64_t x528 = -233LL; volatile int32_t t90 = 176; t90 = (x525>(x526^(x527*x528))); if (t90 != 0) { NG(); } else { ; } } void f91(void) { int64_t x529 = INT64_MIN; static int16_t x531 = INT16_MIN; uint32_t x532 = 4396008U; int32_t t91 = 998; t91 = (x529>(x530^(x531*x532))); if (t91 != 0) { NG(); } else { ; } } void f92(void) { int8_t x538 = 7; int8_t x539 = INT8_MAX; static int32_t x540 = -1; volatile int32_t t92 = 40687776; t92 = (x537>(x538^(x539*x540))); if (t92 != 1) { NG(); } else { ; } } void f93(void) { static int16_t x542 = 11; volatile uint64_t x543 = 150209788910LLU; int32_t x544 = INT32_MAX; t93 = (x541>(x542^(x543*x544))); if (t93 != 0) { NG(); } else { ; } } void f94(void) { int32_t x546 = -1; static int32_t x547 = -2022458; static uint8_t x548 = UINT8_MAX; volatile int32_t t94 = 359086936; t94 = (x545>(x546^(x547*x548))); if (t94 != 0) { NG(); } else { ; } } void f95(void) { int64_t x550 = INT64_MIN; int64_t x551 = -246LL; int8_t x552 = INT8_MAX; t95 = (x549>(x550^(x551*x552))); if (t95 != 0) { NG(); } else { ; } } void f96(void) { static int16_t x553 = INT16_MIN; int64_t x554 = INT64_MAX; volatile uint8_t x555 = 0U; int16_t x556 = 23; volatile int32_t t96 = 251128; t96 = (x553>(x554^(x555*x556))); if (t96 != 0) { NG(); } else { ; } } void f97(void) { int32_t x557 = -6175; static int32_t x558 = -3819133; t97 = (x557>(x558^(x559*x560))); if (t97 != 1) { NG(); } else { ; } } void f98(void) { int64_t x561 = 0LL; int32_t x562 = -1; int16_t x563 = -1; uint64_t x564 = 174515LLU; int32_t t98 = 15; t98 = (x561>(x562^(x563*x564))); if (t98 != 0) { NG(); } else { ; } } void f99(void) { volatile uint16_t x586 = UINT16_MAX; uint64_t x587 = UINT64_MAX; volatile int64_t x588 = -620396269917641405LL; static volatile int32_t t99 = 3159; t99 = (x585>(x586^(x587*x588))); if (t99 != 1) { NG(); } else { ; } } void f100(void) { static volatile int16_t x590 = INT16_MAX; static int8_t x591 = -1; volatile int8_t x592 = -1; int32_t t100 = 2068; t100 = (x589>(x590^(x591*x592))); if (t100 != 0) { NG(); } else { ; } } void f101(void) { static int16_t x593 = -1; static int16_t x594 = INT16_MIN; int16_t x595 = INT16_MIN; int8_t x596 = 4; static int32_t t101 = -45345816; t101 = (x593>(x594^(x595*x596))); if (t101 != 0) { NG(); } else { ; } } void f102(void) { volatile int8_t x597 = INT8_MAX; uint32_t x598 = 1075464U; int64_t x599 = -1LL; int32_t t102 = 3939587; t102 = (x597>(x598^(x599*x600))); if (t102 != 1) { NG(); } else { ; } } void f103(void) { int16_t x602 = 22; int32_t x604 = 36; volatile int32_t t103 = -14365; t103 = (x601>(x602^(x603*x604))); if (t103 != 0) { NG(); } else { ; } } void f104(void) { int8_t x613 = 0; int16_t x615 = -1; volatile uint8_t x616 = 3U; volatile int32_t t104 = 1; t104 = (x613>(x614^(x615*x616))); if (t104 != 1) { NG(); } else { ; } } void f105(void) { int32_t x617 = -5; int8_t x618 = INT8_MIN; int8_t x619 = INT8_MIN; static int32_t t105 = -6141; t105 = (x617>(x618^(x619*x620))); if (t105 != 0) { NG(); } else { ; } } void f106(void) { int32_t x625 = -26318; int16_t x626 = 1; int8_t x627 = INT8_MAX; int8_t x628 = -25; t106 = (x625>(x626^(x627*x628))); if (t106 != 0) { NG(); } else { ; } } void f107(void) { int8_t x629 = INT8_MIN; int8_t x630 = 1; static int8_t x632 = INT8_MAX; volatile int32_t t107 = -44147530; t107 = (x629>(x630^(x631*x632))); if (t107 != 0) { NG(); } else { ; } } void f108(void) { int64_t x633 = INT64_MAX; int64_t x634 = 146536980919844466LL; static volatile int8_t x636 = 1; int32_t t108 = -2; t108 = (x633>(x634^(x635*x636))); if (t108 != 1) { NG(); } else { ; } } void f109(void) { static uint16_t x637 = 21U; uint8_t x638 = 4U; volatile int32_t t109 = 389906; t109 = (x637>(x638^(x639*x640))); if (t109 != 0) { NG(); } else { ; } } void f110(void) { int8_t x641 = INT8_MIN; volatile int32_t t110 = -132556655; t110 = (x641>(x642^(x643*x644))); if (t110 != 1) { NG(); } else { ; } } void f111(void) { static int16_t x648 = -13659; volatile int32_t t111 = 744851421; t111 = (x645>(x646^(x647*x648))); if (t111 != 1) { NG(); } else { ; } } void f112(void) { uint32_t x649 = 462387956U; volatile int16_t x650 = INT16_MIN; static int8_t x651 = 0; int32_t x652 = -1; volatile int32_t t112 = 7331; t112 = (x649>(x650^(x651*x652))); if (t112 != 0) { NG(); } else { ; } } void f113(void) { static uint16_t x654 = 40U; volatile int64_t x655 = 2669854205033132799LL; t113 = (x653>(x654^(x655*x656))); if (t113 != 0) { NG(); } else { ; } } void f114(void) { int64_t x657 = INT64_MAX; uint8_t x659 = 42U; int32_t x660 = -5; int32_t t114 = 367902; t114 = (x657>(x658^(x659*x660))); if (t114 != 1) { NG(); } else { ; } } void f115(void) { uint32_t x662 = 1973823798U; int16_t x663 = INT16_MIN; static uint8_t x664 = UINT8_MAX; volatile int32_t t115 = 5; t115 = (x661>(x662^(x663*x664))); if (t115 != 1) { NG(); } else { ; } } void f116(void) { uint8_t x665 = 3U; int64_t x666 = -980651LL; static volatile int32_t x668 = -7; t116 = (x665>(x666^(x667*x668))); if (t116 != 1) { NG(); } else { ; } } void f117(void) { uint8_t x673 = 6U; int16_t x674 = INT16_MIN; volatile int32_t t117 = -4695026; t117 = (x673>(x674^(x675*x676))); if (t117 != 0) { NG(); } else { ; } } void f118(void) { int16_t x677 = 0; static int16_t x679 = -1; int16_t x680 = INT16_MIN; t118 = (x677>(x678^(x679*x680))); if (t118 != 1) { NG(); } else { ; } } void f119(void) { uint32_t x681 = 10701U; int64_t x682 = 16076816948LL; uint16_t x683 = UINT16_MAX; int8_t x684 = -10; int32_t t119 = 269068; t119 = (x681>(x682^(x683*x684))); if (t119 != 1) { NG(); } else { ; } } void f120(void) { int16_t x686 = -81; static int16_t x687 = INT16_MAX; int64_t x688 = -1LL; int32_t t120 = -5281; t120 = (x685>(x686^(x687*x688))); if (t120 != 0) { NG(); } else { ; } } void f121(void) { static int8_t x694 = INT8_MAX; static volatile int16_t x695 = INT16_MIN; volatile uint64_t x696 = UINT64_MAX; static int32_t t121 = 27635; t121 = (x693>(x694^(x695*x696))); if (t121 != 1) { NG(); } else { ; } } void f122(void) { int64_t x702 = INT64_MIN; static uint32_t x703 = 126619U; volatile uint16_t x704 = 10U; int32_t t122 = 451; t122 = (x701>(x702^(x703*x704))); if (t122 != 1) { NG(); } else { ; } } void f123(void) { int64_t x709 = 76698483338LL; int16_t x711 = 37; int8_t x712 = INT8_MIN; t123 = (x709>(x710^(x711*x712))); if (t123 != 0) { NG(); } else { ; } } void f124(void) { int8_t x717 = INT8_MAX; volatile int64_t x718 = INT64_MAX; static int8_t x719 = INT8_MIN; volatile int32_t t124 = 598; t124 = (x717>(x718^(x719*x720))); if (t124 != 0) { NG(); } else { ; } } void f125(void) { static int64_t x725 = 93097078914LL; volatile int32_t x726 = 7179; uint8_t x727 = 78U; static uint16_t x728 = 3646U; volatile int32_t t125 = -40009; t125 = (x725>(x726^(x727*x728))); if (t125 != 1) { NG(); } else { ; } } void f126(void) { int64_t x730 = -1LL; uint8_t x731 = 63U; int16_t x732 = INT16_MAX; static int32_t t126 = 193810518; t126 = (x729>(x730^(x731*x732))); if (t126 != 1) { NG(); } else { ; } } void f127(void) { int32_t x734 = INT32_MIN; int8_t x735 = INT8_MAX; int8_t x736 = -1; static volatile int32_t t127 = 827547; t127 = (x733>(x734^(x735*x736))); if (t127 != 0) { NG(); } else { ; } } void f128(void) { static uint32_t x740 = 1276233U; volatile int32_t t128 = 244; t128 = (x737>(x738^(x739*x740))); if (t128 != 1) { NG(); } else { ; } } void f129(void) { int64_t x741 = INT64_MAX; int16_t x742 = -67; int64_t x743 = -3LL; uint32_t x744 = UINT32_MAX; volatile int32_t t129 = 363716; t129 = (x741>(x742^(x743*x744))); if (t129 != 1) { NG(); } else { ; } } void f130(void) { int32_t x745 = INT32_MIN; uint8_t x746 = 10U; static int64_t x747 = -420LL; int16_t x748 = 2; volatile int32_t t130 = 1; t130 = (x745>(x746^(x747*x748))); if (t130 != 0) { NG(); } else { ; } } void f131(void) { static uint8_t x753 = 9U; static int32_t x754 = -1; int32_t x755 = 1; int32_t x756 = INT32_MIN; int32_t t131 = -127; t131 = (x753>(x754^(x755*x756))); if (t131 != 0) { NG(); } else { ; } } void f132(void) { volatile uint64_t x765 = 8997540748LLU; int8_t x766 = 24; int8_t x767 = 5; static volatile uint16_t x768 = UINT16_MAX; int32_t t132 = -27515; t132 = (x765>(x766^(x767*x768))); if (t132 != 1) { NG(); } else { ; } } void f133(void) { int16_t x769 = INT16_MIN; volatile uint32_t x770 = 100969149U; uint16_t x771 = UINT16_MAX; int64_t x772 = 94613480743072LL; static int32_t t133 = 214142; t133 = (x769>(x770^(x771*x772))); if (t133 != 0) { NG(); } else { ; } } void f134(void) { uint64_t x773 = 14825798LLU; int8_t x775 = INT8_MIN; uint64_t x776 = 1995023239129135619LLU; int32_t t134 = -330; t134 = (x773>(x774^(x775*x776))); if (t134 != 0) { NG(); } else { ; } } void f135(void) { int16_t x778 = 0; int64_t x779 = INT64_MAX; int32_t x780 = -1; volatile int32_t t135 = -1681407; t135 = (x777>(x778^(x779*x780))); if (t135 != 1) { NG(); } else { ; } } void f136(void) { uint8_t x781 = 0U; static int64_t x782 = 4057091860434893898LL; volatile uint8_t x783 = UINT8_MAX; int16_t x784 = INT16_MIN; volatile int32_t t136 = -3602363; t136 = (x781>(x782^(x783*x784))); if (t136 != 1) { NG(); } else { ; } } void f137(void) { int64_t x789 = -115LL; int8_t x790 = -37; static uint8_t x791 = 61U; volatile int32_t t137 = -2; t137 = (x789>(x790^(x791*x792))); if (t137 != 0) { NG(); } else { ; } } void f138(void) { uint64_t x794 = 525LLU; volatile int8_t x795 = 13; static uint16_t x796 = UINT16_MAX; volatile int32_t t138 = -94427098; t138 = (x793>(x794^(x795*x796))); if (t138 != 1) { NG(); } else { ; } } void f139(void) { uint64_t x797 = UINT64_MAX; int16_t x798 = -1; uint32_t x799 = UINT32_MAX; uint16_t x800 = 5U; int32_t t139 = 967326482; t139 = (x797>(x798^(x799*x800))); if (t139 != 1) { NG(); } else { ; } } void f140(void) { uint8_t x801 = UINT8_MAX; int16_t x802 = INT16_MIN; volatile int8_t x803 = INT8_MIN; int32_t t140 = -99442; t140 = (x801>(x802^(x803*x804))); if (t140 != 0) { NG(); } else { ; } } void f141(void) { volatile int16_t x805 = INT16_MAX; volatile int64_t x806 = INT64_MAX; static int8_t x807 = INT8_MAX; uint32_t x808 = 1796166780U; volatile int32_t t141 = 1; t141 = (x805>(x806^(x807*x808))); if (t141 != 0) { NG(); } else { ; } } void f142(void) { int64_t x809 = -1LL; uint32_t x810 = UINT32_MAX; uint64_t x812 = 3964919536598763275LLU; t142 = (x809>(x810^(x811*x812))); if (t142 != 1) { NG(); } else { ; } } void f143(void) { int64_t x813 = INT64_MAX; int64_t x814 = -1LL; uint64_t x815 = UINT64_MAX; int32_t x816 = -1; volatile int32_t t143 = -93719291; t143 = (x813>(x814^(x815*x816))); if (t143 != 0) { NG(); } else { ; } } void f144(void) { int64_t x829 = 3527341074LL; int32_t x830 = -21; int8_t x831 = 0; int8_t x832 = INT8_MAX; t144 = (x829>(x830^(x831*x832))); if (t144 != 1) { NG(); } else { ; } } void f145(void) { uint64_t x837 = 866207LLU; int64_t x838 = -1LL; uint64_t x839 = 50847151296287674LLU; t145 = (x837>(x838^(x839*x840))); if (t145 != 0) { NG(); } else { ; } } void f146(void) { uint64_t x843 = 511154115267LLU; uint64_t x844 = 4314559125076004202LLU; int32_t t146 = 4549; t146 = (x841>(x842^(x843*x844))); if (t146 != 0) { NG(); } else { ; } } void f147(void) { static uint64_t x845 = UINT64_MAX; static volatile uint16_t x846 = UINT16_MAX; int16_t x847 = 2222; uint8_t x848 = 9U; int32_t t147 = 11469; t147 = (x845>(x846^(x847*x848))); if (t147 != 1) { NG(); } else { ; } } void f148(void) { uint8_t x851 = UINT8_MAX; uint32_t x852 = 45864119U; static int32_t t148 = 36570; t148 = (x849>(x850^(x851*x852))); if (t148 != 0) { NG(); } else { ; } } void f149(void) { int8_t x853 = INT8_MAX; volatile int16_t x854 = -1; uint8_t x856 = UINT8_MAX; volatile int32_t t149 = -5585; t149 = (x853>(x854^(x855*x856))); if (t149 != 1) { NG(); } else { ; } } void f150(void) { int16_t x857 = -1; int32_t x858 = INT32_MAX; int8_t x859 = INT8_MIN; int8_t x860 = -1; static volatile int32_t t150 = -30; t150 = (x857>(x858^(x859*x860))); if (t150 != 0) { NG(); } else { ; } } void f151(void) { int64_t x861 = -7763LL; static uint32_t x862 = 2U; volatile int64_t x864 = -8587LL; int32_t t151 = -914; t151 = (x861>(x862^(x863*x864))); if (t151 != 0) { NG(); } else { ; } } void f152(void) { int16_t x865 = INT16_MAX; int32_t x866 = 817; uint16_t x867 = 0U; int32_t x868 = INT32_MIN; int32_t t152 = 370; t152 = (x865>(x866^(x867*x868))); if (t152 != 1) { NG(); } else { ; } } void f153(void) { uint16_t x869 = 6U; int16_t x870 = INT16_MIN; static uint64_t x871 = 78581537889864659LLU; int32_t x872 = INT32_MIN; t153 = (x869>(x870^(x871*x872))); if (t153 != 0) { NG(); } else { ; } } void f154(void) { int32_t x873 = INT32_MIN; int64_t x874 = INT64_MIN; int8_t x875 = -1; static uint16_t x876 = 2881U; int32_t t154 = 560817; t154 = (x873>(x874^(x875*x876))); if (t154 != 0) { NG(); } else { ; } } void f155(void) { uint8_t x881 = 17U; int8_t x883 = -48; int32_t t155 = 6699; t155 = (x881>(x882^(x883*x884))); if (t155 != 0) { NG(); } else { ; } } void f156(void) { int16_t x885 = INT16_MAX; uint64_t x886 = 0LLU; int32_t x887 = -1; static int32_t x888 = 569; volatile int32_t t156 = 13; t156 = (x885>(x886^(x887*x888))); if (t156 != 0) { NG(); } else { ; } } void f157(void) { uint64_t x889 = 1LLU; int16_t x890 = INT16_MIN; uint8_t x892 = 7U; volatile int32_t t157 = 1; t157 = (x889>(x890^(x891*x892))); if (t157 != 0) { NG(); } else { ; } } void f158(void) { static uint32_t x893 = 1693376604U; static uint8_t x894 = 23U; int8_t x895 = INT8_MIN; int32_t t158 = 22; t158 = (x893>(x894^(x895*x896))); if (t158 != 0) { NG(); } else { ; } } void f159(void) { int8_t x899 = INT8_MIN; int8_t x900 = INT8_MIN; t159 = (x897>(x898^(x899*x900))); if (t159 != 0) { NG(); } else { ; } } void f160(void) { int32_t x905 = INT32_MIN; int32_t x907 = -1; uint64_t x908 = 2144460LLU; static int32_t t160 = -729699; t160 = (x905>(x906^(x907*x908))); if (t160 != 1) { NG(); } else { ; } } void f161(void) { static volatile int32_t x917 = -1; static uint64_t x918 = UINT64_MAX; uint64_t x920 = 1057438013LLU; t161 = (x917>(x918^(x919*x920))); if (t161 != 1) { NG(); } else { ; } } void f162(void) { int8_t x921 = 0; volatile int8_t x922 = INT8_MAX; int16_t x923 = 0; volatile int32_t t162 = 19981925; t162 = (x921>(x922^(x923*x924))); if (t162 != 0) { NG(); } else { ; } } void f163(void) { int32_t x925 = 18; int64_t x926 = 89520928237749003LL; static int16_t x927 = -1; volatile int32_t t163 = 2482; t163 = (x925>(x926^(x927*x928))); if (t163 != 0) { NG(); } else { ; } } void f164(void) { int8_t x933 = -1; uint16_t x935 = 875U; int32_t x936 = 32339; volatile int32_t t164 = 7598980; t164 = (x933>(x934^(x935*x936))); if (t164 != 1) { NG(); } else { ; } } void f165(void) { int16_t x941 = INT16_MIN; int16_t x942 = -1; static int8_t x943 = 23; volatile int32_t x944 = -1; volatile int32_t t165 = 2933639; t165 = (x941>(x942^(x943*x944))); if (t165 != 0) { NG(); } else { ; } } void f166(void) { uint8_t x949 = UINT8_MAX; int32_t x950 = INT32_MAX; volatile uint8_t x951 = 17U; int16_t x952 = -1; int32_t t166 = 4835459; t166 = (x949>(x950^(x951*x952))); if (t166 != 1) { NG(); } else { ; } } void f167(void) { volatile int32_t x957 = 332522159; int64_t x958 = 127316277LL; int8_t x959 = -11; volatile int32_t t167 = -223870; t167 = (x957>(x958^(x959*x960))); if (t167 != 1) { NG(); } else { ; } } void f168(void) { int8_t x961 = INT8_MIN; int8_t x962 = INT8_MAX; uint64_t x963 = 68512214483367600LLU; volatile int32_t x964 = INT32_MIN; int32_t t168 = 125744931; t168 = (x961>(x962^(x963*x964))); if (t168 != 1) { NG(); } else { ; } } void f169(void) { uint8_t x965 = UINT8_MAX; static int8_t x966 = INT8_MIN; uint64_t x967 = 18886605525629182LLU; static uint8_t x968 = 20U; volatile int32_t t169 = -622579; t169 = (x965>(x966^(x967*x968))); if (t169 != 0) { NG(); } else { ; } } void f170(void) { static volatile int64_t x969 = -2084352647230027108LL; volatile uint64_t x970 = 27027701LLU; uint8_t x971 = UINT8_MAX; uint64_t x972 = 60010LLU; t170 = (x969>(x970^(x971*x972))); if (t170 != 1) { NG(); } else { ; } } void f171(void) { int32_t x973 = -1; int32_t x974 = 76669; int32_t x975 = INT32_MAX; uint64_t x976 = 24398025634LLU; t171 = (x973>(x974^(x975*x976))); if (t171 != 1) { NG(); } else { ; } } void f172(void) { volatile uint16_t x977 = UINT16_MAX; uint8_t x978 = 19U; static uint64_t x979 = 39367266587LLU; int32_t x980 = INT32_MAX; int32_t t172 = -1568; t172 = (x977>(x978^(x979*x980))); if (t172 != 0) { NG(); } else { ; } } void f173(void) { volatile int32_t x990 = -114850055; static uint64_t x991 = UINT64_MAX; static int16_t x992 = INT16_MAX; t173 = (x989>(x990^(x991*x992))); if (t173 != 1) { NG(); } else { ; } } void f174(void) { volatile int16_t x1001 = -327; static int8_t x1002 = -1; int32_t x1004 = -1; int32_t t174 = 114986; t174 = (x1001>(x1002^(x1003*x1004))); if (t174 != 0) { NG(); } else { ; } } void f175(void) { int16_t x1005 = INT16_MAX; uint64_t x1006 = UINT64_MAX; volatile int32_t t175 = 6267239; t175 = (x1005>(x1006^(x1007*x1008))); if (t175 != 0) { NG(); } else { ; } } void f176(void) { uint64_t x1009 = UINT64_MAX; int32_t x1010 = 33690; static int32_t t176 = -56560; t176 = (x1009>(x1010^(x1011*x1012))); if (t176 != 1) { NG(); } else { ; } } void f177(void) { volatile int64_t x1017 = -1LL; static uint8_t x1018 = 19U; static volatile uint8_t x1019 = 61U; static int32_t t177 = -2; t177 = (x1017>(x1018^(x1019*x1020))); if (t177 != 1) { NG(); } else { ; } } void f178(void) { volatile uint16_t x1021 = UINT16_MAX; uint64_t x1022 = UINT64_MAX; volatile int32_t x1023 = INT32_MAX; int16_t x1024 = 0; static volatile int32_t t178 = 28186; t178 = (x1021>(x1022^(x1023*x1024))); if (t178 != 0) { NG(); } else { ; } } void f179(void) { int64_t x1029 = 2801847011LL; uint16_t x1030 = 19U; int64_t x1031 = INT64_MIN; static volatile uint64_t x1032 = 73557LLU; volatile int32_t t179 = -5; t179 = (x1029>(x1030^(x1031*x1032))); if (t179 != 0) { NG(); } else { ; } } void f180(void) { volatile uint16_t x1037 = 3U; int64_t x1039 = 7847275833157LL; volatile uint16_t x1040 = 3995U; int32_t t180 = 1; t180 = (x1037>(x1038^(x1039*x1040))); if (t180 != 1) { NG(); } else { ; } } void f181(void) { int64_t x1041 = 17817188719814022LL; static int16_t x1042 = INT16_MIN; volatile int8_t x1043 = 2; static uint64_t x1044 = 485998225358494LLU; t181 = (x1041>(x1042^(x1043*x1044))); if (t181 != 0) { NG(); } else { ; } } void f182(void) { int32_t x1045 = -1; volatile int32_t x1047 = -1042825; static int64_t x1048 = 2374267450609LL; volatile int32_t t182 = 70976; t182 = (x1045>(x1046^(x1047*x1048))); if (t182 != 0) { NG(); } else { ; } } void f183(void) { int16_t x1049 = INT16_MIN; volatile int32_t x1050 = INT32_MIN; volatile int64_t x1052 = 7LL; int32_t t183 = -3011361; t183 = (x1049>(x1050^(x1051*x1052))); if (t183 != 1) { NG(); } else { ; } } void f184(void) { uint8_t x1053 = 17U; static uint16_t x1054 = 15417U; volatile int16_t x1055 = 107; int8_t x1056 = INT8_MIN; int32_t t184 = 5503316; t184 = (x1053>(x1054^(x1055*x1056))); if (t184 != 1) { NG(); } else { ; } } void f185(void) { volatile int8_t x1057 = INT8_MIN; int32_t x1059 = 0; int32_t x1060 = INT32_MIN; t185 = (x1057>(x1058^(x1059*x1060))); if (t185 != 0) { NG(); } else { ; } } void f186(void) { static uint16_t x1061 = UINT16_MAX; uint8_t x1063 = 1U; static uint8_t x1064 = UINT8_MAX; int32_t t186 = -32957485; t186 = (x1061>(x1062^(x1063*x1064))); if (t186 != 1) { NG(); } else { ; } } void f187(void) { static uint16_t x1075 = UINT16_MAX; uint8_t x1076 = UINT8_MAX; static int32_t t187 = 112722418; t187 = (x1073>(x1074^(x1075*x1076))); if (t187 != 0) { NG(); } else { ; } } void f188(void) { int8_t x1085 = INT8_MIN; volatile uint32_t x1086 = UINT32_MAX; int32_t x1087 = 10; static uint64_t x1088 = UINT64_MAX; volatile int32_t t188 = -1; t188 = (x1085>(x1086^(x1087*x1088))); if (t188 != 1) { NG(); } else { ; } } void f189(void) { uint16_t x1090 = UINT16_MAX; uint8_t x1091 = UINT8_MAX; int64_t x1092 = -771981188973883LL; t189 = (x1089>(x1090^(x1091*x1092))); if (t189 != 1) { NG(); } else { ; } } void f190(void) { int16_t x1093 = INT16_MAX; int16_t x1094 = -1; int64_t x1095 = -1LL; uint32_t x1096 = 4U; t190 = (x1093>(x1094^(x1095*x1096))); if (t190 != 1) { NG(); } else { ; } } void f191(void) { static uint64_t x1097 = UINT64_MAX; volatile int64_t x1098 = -1LL; uint32_t x1099 = UINT32_MAX; int32_t x1100 = 624; int32_t t191 = 7909; t191 = (x1097>(x1098^(x1099*x1100))); if (t191 != 1) { NG(); } else { ; } } void f192(void) { volatile int64_t x1101 = INT64_MIN; volatile int8_t x1102 = 3; volatile int16_t x1103 = INT16_MIN; static volatile uint8_t x1104 = 48U; t192 = (x1101>(x1102^(x1103*x1104))); if (t192 != 0) { NG(); } else { ; } } void f193(void) { uint16_t x1105 = UINT16_MAX; int8_t x1106 = 0; uint64_t x1108 = 16400523808923LLU; volatile int32_t t193 = 201945; t193 = (x1105>(x1106^(x1107*x1108))); if (t193 != 0) { NG(); } else { ; } } void f194(void) { volatile int16_t x1114 = INT16_MAX; static int8_t x1115 = INT8_MIN; uint64_t x1116 = UINT64_MAX; t194 = (x1113>(x1114^(x1115*x1116))); if (t194 != 0) { NG(); } else { ; } } void f195(void) { int32_t x1117 = -1; static int32_t x1118 = 253609596; int64_t x1119 = -1LL; static int32_t x1120 = INT32_MIN; volatile int32_t t195 = 30205220; t195 = (x1117>(x1118^(x1119*x1120))); if (t195 != 0) { NG(); } else { ; } } void f196(void) { int16_t x1122 = -3; uint8_t x1123 = UINT8_MAX; volatile int32_t t196 = 2696; t196 = (x1121>(x1122^(x1123*x1124))); if (t196 != 1) { NG(); } else { ; } } void f197(void) { int64_t x1125 = INT64_MIN; static uint32_t x1126 = UINT32_MAX; int32_t x1127 = -1; int64_t x1128 = -7458944159078401LL; int32_t t197 = 0; t197 = (x1125>(x1126^(x1127*x1128))); if (t197 != 0) { NG(); } else { ; } } void f198(void) { static int16_t x1129 = INT16_MIN; int16_t x1130 = -1; int64_t x1131 = -313747692881LL; volatile int16_t x1132 = -1; int32_t t198 = 70639686; t198 = (x1129>(x1130^(x1131*x1132))); if (t198 != 1) { NG(); } else { ; } } void f199(void) { static volatile uint64_t x1134 = 16530LLU; volatile int32_t x1135 = INT32_MIN; static uint32_t x1136 = UINT32_MAX; static volatile int32_t t199 = -431871; t199 = (x1133>(x1134^(x1135*x1136))); if (t199 != 0) { NG(); } else { ; } } int main(void) { f0(); f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); f10(); f11(); f12(); f13(); f14(); f15(); f16(); f17(); f18(); f19(); f20(); f21(); f22(); f23(); f24(); f25(); f26(); f27(); f28(); f29(); f30(); f31(); f32(); f33(); f34(); f35(); f36(); f37(); f38(); f39(); f40(); f41(); f42(); f43(); f44(); f45(); f46(); f47(); f48(); f49(); f50(); f51(); f52(); f53(); f54(); f55(); f56(); f57(); f58(); f59(); f60(); f61(); f62(); f63(); f64(); f65(); f66(); f67(); f68(); f69(); f70(); f71(); f72(); f73(); f74(); f75(); f76(); f77(); f78(); f79(); f80(); f81(); f82(); f83(); f84(); f85(); f86(); f87(); f88(); f89(); f90(); f91(); f92(); f93(); f94(); f95(); f96(); f97(); f98(); f99(); f100(); f101(); f102(); f103(); f104(); f105(); f106(); f107(); f108(); f109(); f110(); f111(); f112(); f113(); f114(); f115(); f116(); f117(); f118(); f119(); f120(); f121(); f122(); f123(); f124(); f125(); f126(); f127(); f128(); f129(); f130(); f131(); f132(); f133(); f134(); f135(); f136(); f137(); f138(); f139(); f140(); f141(); f142(); f143(); f144(); f145(); f146(); f147(); f148(); f149(); f150(); f151(); f152(); f153(); f154(); f155(); f156(); f157(); f158(); f159(); f160(); f161(); f162(); f163(); f164(); f165(); f166(); f167(); f168(); f169(); f170(); f171(); f172(); f173(); f174(); f175(); f176(); f177(); f178(); f179(); f180(); f181(); f182(); f183(); f184(); f185(); f186(); f187(); f188(); f189(); f190(); f191(); f192(); f193(); f194(); f195(); f196(); f197(); f198(); f199(); return 0; }
Labanpz/owf-setup
apache-tomcat-7.0.21/webapps/owf/js/util/pageload.js
/** * @ignore */ var Ozone = Ozone || {}; /** * @ignore */ Ozone.util = Ozone.util || {}; /** * @namespace */ Ozone.util.pageLoad = Ozone.util.pageLoad || {}; /** * @field * @description enable or disable the automatic sending of loadtime */ Ozone.util.pageLoad.autoSend = true; /** * @field * @description holds the current date time, before the onload of the widget */ Ozone.util.pageLoad.beforeLoad = (new Date()).getTime(); /** * @field * @description holds current date time after the onload of the widget. this value will be set after onload */ Ozone.util.pageLoad.afterLoad = null; Ozone.util.pageLoad.calcLoadTime = function(time) { /** * @field * @description Holds the load time of the widget. This may be altered to allow the widget to determine it's load time. * loadTime is sent via the Eventing API, if altering this value do so before Eventing is initialized */ Ozone.util.pageLoad.loadTime = (time != null ? time : Ozone.util.pageLoad.afterLoad) - Ozone.util.pageLoad.beforeLoad; return Ozone.util.pageLoad.loadTime; };
GenaAiv/portfolio-website
node_modules/eslint/lib/rules/line-comment-position.js
/** * @fileoverview Rule to enforce the position of line comments * @author <NAME> */ "use strict"; const astUtils = require("./utils/ast-utils"); //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { type: "layout", docs: { description: "enforce position of line comments", category: "Stylistic Issues", recommended: false, url: "https://eslint.org/docs/rules/line-comment-position" }, schema: [ { oneOf: [ { enum: ["above", "beside"] }, { type: "object", properties: { position: { enum: ["above", "beside"] }, ignorePattern: { type: "string" }, applyDefaultPatterns: { type: "boolean" }, applyDefaultIgnorePatterns: { type: "boolean" } }, additionalProperties: false } ] } ], messages: { above: "Expected comment to be above code.", beside: "Expected comment to be beside code." } }, create(context) { const options = context.options[0]; let above, ignorePattern, applyDefaultIgnorePatterns = true; if (!options || typeof options === "string") { above = !options || options === "above"; } else { above = !options.position || options.position === "above"; ignorePattern = options.ignorePattern; if (Object.prototype.hasOwnProperty.call(options, "applyDefaultIgnorePatterns")) { applyDefaultIgnorePatterns = options.applyDefaultIgnorePatterns; } else { applyDefaultIgnorePatterns = options.applyDefaultPatterns !== false; } } const defaultIgnoreRegExp = astUtils.COMMENTS_IGNORE_PATTERN; const fallThroughRegExp = /^\s*falls?\s?through/u; const customIgnoreRegExp = new RegExp(ignorePattern, "u"); const sourceCode = context.getSourceCode(); //-------------------------------------------------------------------------- // Public //-------------------------------------------------------------------------- return { Program() { const comments = sourceCode.getAllComments(); comments.filter(token => token.type === "Line").forEach(node => { if (applyDefaultIgnorePatterns && (defaultIgnoreRegExp.test(node.value) || fallThroughRegExp.test(node.value))) { return; } if (ignorePattern && customIgnoreRegExp.test(node.value)) { return; } const previous = sourceCode.getTokenBefore(node, { includeComments: true }); const isOnSameLine = previous && previous.loc.end.line === node.loc.start.line; if (above) { if (isOnSameLine) { context.report({ node, messageId: "above" }); } } else { if (!isOnSameLine) { context.report({ node, messageId: "beside" }); } } }); } }; } };
iainx/grs
_LoginControl/Classes/LCDragOffWindow.h
<reponame>iainx/grs<gh_stars>1-10 // // LCDragOffWindow.h // LoginControl // // Created by <NAME> on 5/31/10. // Copyright 2010 8th Light. All rights reserved. // #import <Cocoa/Cocoa.h> @interface LCDragOffWindow : NSWindow { NSArray *deletionTypes; id delegate; } + (LCDragOffWindow*) sharedWindow; - (void) showBelowWindowIfNeeded:(NSWindow*)window delegate:(id)someDelegate; - (void) hideOnNextRunloop; - (void) registerDragOffTypes:(NSArray*)types; @end @interface NSObject (LCDraggingOffDelegation) - (BOOL) dragOffWindow:(LCDragOffWindow*)dragOffWindow shouldDragOff:(id<NSDraggingInfo>)info; @end
kaarolch/datadog-agent
pkg/tagger/collectors/common_test.go
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-2020 Datadog, Inc. package collectors import ( "fmt" "sort" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func requireMatchInfo(t *testing.T, expected []*TagInfo, item *TagInfo) bool { t.Helper() for _, template := range expected { if template.Entity != item.Entity { continue } if template.Source != item.Source { continue } sort.Strings(template.LowCardTags) sort.Strings(item.LowCardTags) require.Equal(t, template.LowCardTags, item.LowCardTags) sort.Strings(template.HighCardTags) sort.Strings(item.HighCardTags) require.Equal(t, template.HighCardTags, item.HighCardTags) require.Equal(t, template.DeleteEntity, item.DeleteEntity) return true } t.Logf("could not find expected result for entity %s with sourcce %s", item.Entity, item.Source) return false } func assertTagInfoEqual(t *testing.T, expected *TagInfo, item *TagInfo) bool { t.Helper() sort.Strings(expected.LowCardTags) sort.Strings(item.LowCardTags) sort.Strings(expected.OrchestratorCardTags) sort.Strings(item.OrchestratorCardTags) sort.Strings(expected.HighCardTags) sort.Strings(item.HighCardTags) sort.Strings(expected.StandardTags) sort.Strings(item.StandardTags) return assert.Equal(t, expected, item) } func assertTagInfoListEqual(t *testing.T, expectedUpdates []*TagInfo, updates []*TagInfo) { t.Helper() assert.Equal(t, len(expectedUpdates), len(updates)) for i := 0; i < len(expectedUpdates); i++ { assertTagInfoEqual(t, expectedUpdates[i], updates[i]) } } func TestResolveTag(t *testing.T) { testCases := []struct { tmpl, label, expected string }{ { "kube_%%label%%", "app", "kube_app", }, { "foo_%%label%%_bar", "app", "foo_app_bar", }, { "%%label%%%%label%%", "app", "appapp", }, { "kube_", "app", "kube_", // no template variable }, { "kube_%%foo%%", "app", "kube_", // unsupported template variable }, } for i, testCase := range testCases { t.Run(fmt.Sprintf("#%d", i), func(t *testing.T) { tagName := resolveTag(testCase.tmpl, testCase.label) assert.Equal(t, testCase.expected, tagName) }) } }
abersnaze/RxNetty
rxnetty-examples/src/test/java/io/reactivex/netty/examples/tcp/interval/TcpIntervalTest.java
<gh_stars>0 /* * Copyright 2014 Netflix, Inc. * * 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. */ package io.reactivex.netty.examples.tcp.interval; import io.reactivex.netty.examples.ExamplesEnvironment; import io.reactivex.netty.server.RxServer; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; /** * @author <NAME> */ public class TcpIntervalTest extends ExamplesEnvironment { private static final int NO_OF_MSG = 3; private static final int INTERVAL = 100; private RxServer<String, String> server; @Before public void setupServer() { server = new TcpIntervalServer(0, INTERVAL).createServer(); server.start(); } @After public void stopServer() throws InterruptedException { server.shutdown(); } @Test public void testRequestReplySequence() { int count = new TcpIntervalClientTakeN(server.getServerPort(), NO_OF_MSG).collectMessages(); Assert.assertEquals(NO_OF_MSG, count); } }
touxiong88/92_mediatek
frameworks/opt/ngin3d/java/com/mediatek/ngin3d/animation/AnimationGroup.java
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or its licensors, any * reproduction, modification, use or disclosure of MediaTek Software, and * information contained herein, in whole or in part, shall be strictly * prohibited. * * MediaTek Inc. (C) 2010. All rights reserved. * * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER * ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR * NONINFRINGEMENT. NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH * RESPECT TO THE SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, * INCORPORATED IN, OR SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES * TO LOOK ONLY TO SUCH THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. * RECEIVER EXPRESSLY ACKNOWLEDGES THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO * OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES CONTAINED IN MEDIATEK * SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE * RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S * ENTIRE AND CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE * RELEASED HEREUNDER WILL BE, AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE * MEDIATEK SOFTWARE AT ISSUE, OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE * CHARGE PAID BY RECEIVER TO MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. * * The following software/firmware and/or related documentation ("MediaTek * Software") have been modified by MediaTek Inc. All revisions are subject to * any receiver's applicable license agreements with MediaTek Inc. */ package com.mediatek.ngin3d.animation; import android.util.Log; import com.mediatek.ngin3d.Actor; import com.mediatek.ngin3d.Container; import com.mediatek.ngin3d.Ngin3d; import com.mediatek.ngin3d.Transaction; import com.mediatek.ngin3d.utils.Ngin3dException; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Queue; import java.util.Stack; /** * Represents a group of animations that can be started and stopped simultaneously. Note that an animation group * can be added to another animation group. */ public class AnimationGroup extends BasicAnimation { private static final String TAG = "AnimationGroup"; private Actor mTarget; private ArrayList<Animation> mAnimations = new ArrayList<Animation>(); private static final String START = "{Start}"; private static final String STOP = "{Stop}"; private TimelineGroup mTimelineGroup; /** * Initialize this class. */ public AnimationGroup() { super(new TimelineGroup(0), Mode.LINEAR); mTimelineGroup = (TimelineGroup) mTimeline; setupTimelineListener(); } private void setupTimelineListener() { mTimeline.addListener(new Timeline.Listener() { public void onStarted(Timeline timeline) { if ((mOptions & DEBUG_ANIMATION_TIMING) != 0) { Log.d(TAG, String.format("%d: AnimationGroup %s is started", MasterClock.getTime(), AnimationGroup.this)); } applyOnStartedFlags(); if (mTarget != null) { mTarget.onAnimationStarted(AnimationGroup.this.toString(), AnimationGroup.this); } } public void onNewFrame(Timeline timeline, int elapsedMsecs) { // do nothing } public void onMarkerReached(Timeline timeline, int elapsedMsecs, String marker, int direction) { if (marker.equals(STOP) && direction == BACKWARD) { for (Animation animation : mAnimations) { int duration = animation.getDuration(); if (duration >= elapsedMsecs) { action(animation, elapsedMsecs, direction); } } } } public void onPaused(Timeline timeline) { if ((mOptions & DEBUG_ANIMATION_TIMING) != 0) { Log.d(TAG, String.format("%d: AnimationGroup %s is paused", MasterClock.getTime(), AnimationGroup.this)); } if (mTarget != null) { mTarget.onAnimationStopped(AnimationGroup.this.toString()); } } public void onCompleted(Timeline timeline) { if ((mOptions & DEBUG_ANIMATION_TIMING) != 0) { Log.d(TAG, String.format("%d: AnimationGroup %s is completed", MasterClock.getTime(), AnimationGroup.this)); } if ((mOptions & Animation.BACK_TO_START_POINT_ON_COMPLETED) != 0) { for (Animation animation : mAnimations) { animation.setProgress(0); } } applyOnCompletedFlags(); } public void onLooped(Timeline timeline) { Runnable runnable = new Runnable() { public void run() { if (isStarted()) { // Align all children animations before reverse animation group alignAnimation(); for (Animation animation : mAnimations) { animation.setDirection(getDirection()); } AnimationGroup.this.startAll(); } } }; runCallback(runnable); } }); } /** * Adds a animation object into this object. * * @param animation the animation object to be added. * @return the result animation group. */ public AnimationGroup add(Animation animation) { if (animation == null) { throw new IllegalArgumentException("Animation cannot be null."); } mAnimations.add(animation); int duration = animation.getDuration(); if (duration != 0) { if (duration > getDuration()) { mTimeline.setDuration(duration); } } return this; } /** * Removes the animation from this object. * * @param animation the animation to be removed. * @return the result animation group */ public AnimationGroup remove(Animation animation) { if (animation == null) { throw new IllegalArgumentException("Animation cannot be null."); } if (isStarted()) { Log.w(TAG, String.format("Remove children animation %d when animation group %d is starting", animation.getTag(), getTag())); } mAnimations.remove(animation); // Re-calculate the duration of animation group if (animation.getDuration() == getDuration()) { calculateDuration(); } return this; } private void calculateDuration() { mTimeline.setDuration(0); for (Animation ani : mAnimations) { int duration = ani.getDuration(); if (duration != 0) { if (duration > getDuration()) { mTimeline.setDuration(duration); } } } } /** * Clear all children in the Group. * * @return This object */ public AnimationGroup clear() { mAnimations.clear(); return this; } /** * Gets the number of children animations in this object. * * @return the number of animations. */ public int getAnimationCount() { return mAnimations.size(); } /** * Gets the number of descendant animations in this object. * * @return the number of animations. */ public int getDescendantCount() { synchronized (this) { int count = mAnimations.size(); for (Animation animation : mAnimations) { if (animation instanceof AnimationGroup) { count += ((AnimationGroup) animation).getDescendantCount(); } } return count; } } /** * Gets the specific animation with the index. * * @param index the index to be used for searching. * @return the specific animation object. */ public Animation getAnimation(int index) { return mAnimations.get(index); } /** * Gets the specific animation with the tag from children of animation group. * * @param index tag of animation. * @return animation object, or null if the specific animation is not existed in this object. */ public Animation getAnimationByTag(int index) { for (Animation animation : mAnimations) { if (animation.getTag() == index) { return animation; } } return null; } /** * Gets the specific animation with the tag from children and grandchildren of animation group. * * @param tag tag of animation. * @param searchMode 0 is depth first search and 1 is breadth first search, otherwise search first level only. * @return animation object, or null if the specific animation is not existed in this object. */ public Animation getAnimationByTag(int tag, int searchMode) { if (searchMode == Container.BREADTH_FIRST_SEARCH) { return findChildByBFS(tag); } else if (searchMode == Container.DEPTH_FIRST_SEARCH) { return findChildByDFS(tag); } else { return getAnimationByTag(tag); } } private Animation findChildByBFS(int tag) { Queue<AnimationGroup> queue = new ArrayDeque<AnimationGroup>(); queue.add(this); while (queue.size() > 0) { AnimationGroup group = queue.remove(); int size = group.getAnimationCount(); for (int i = 0; i < size; i++) { Animation ani = group.getAnimation(i); if (ani.getTag() == tag) { return group.getAnimation(i); } if (ani instanceof AnimationGroup) { queue.add((AnimationGroup) ani); } } } return null; } private Animation findChildByDFS(int tag) { Stack<Animation> stack = new Stack<Animation>(); stack.push(this); while (stack.size() > 0) { Animation popped = stack.pop(); if (popped.getTag() == tag) { return popped; } if (popped instanceof AnimationGroup) { int size = ((AnimationGroup) (popped)).getAnimationCount(); for (int i = 0; i < size; i++) { stack.push(((AnimationGroup) (popped)).getAnimation(i)); } } } return null; } private int mProposedWidth; private int mProposedHeight; /** * Sets the proposed width of the target. * * @param width the proposed width of the target */ public void setProposedWidth(int width) { mProposedWidth = width; } /** * Sets the proposed height of the target. * * @param height the proposed height of the target */ public void setProposedHeight(int height) { mProposedHeight = height; } /** * Gets the the proposed width of the target. * * @return Proposed width of the target */ public int getProposedWidth() { return mProposedWidth; } /** * Gets the proposed height of the target. * * @return Proposed height of the target */ public int getProposedHeight() { return mProposedHeight; } /////////////////////////////////////////////////////////////////////////// // Animation /** * Start the animation. * * @return This object */ @Override public final Animation start() { // Align all children animations before starting alignAnimation(); startAll(); return this; } @Override public Animation startDragging() { // Align all children animations before dragging alignAnimation(); return super.startDragging(); } /** * Start the animation group and all its children. * * @return This object */ private void startAll() { try { Transaction.beginPropertiesModification(); for (Animation animation : mAnimations) { animation.start(); } super.start(); } finally { Transaction.commit(); } if (Ngin3d.LOG_ANIMATION) { Log.d(TAG, "Start group animation tag: " + getTag() + " Original Duration: " + getOriginalDuration() + " Duration:" + getDuration()); } } /** * Invoke this method before using animation group * * @return This object */ private void alignAnimation() { for (Animation animation : mAnimations) { if (animation instanceof AnimationGroup) { ((AnimationGroup) animation).alignAnimation(); } BasicAnimation ani = (BasicAnimation) animation; if (ani.getDuration() != 0) { // Align the duration of child animation with parent's duration ani.mTimeline.extendDuration(mTimeline.getDuration()); if (Ngin3d.LOG_ANIMATION) { Log.d(TAG, "Start animation tag: " + ani.getTag() + " Original Duration: " + ani.getOriginalDuration() + " Duration:" + ani.getDuration()); } } mTimelineGroup.attach(ani.mTimeline); } } /** * Stops the animation. * * @return This object */ @Override public Animation stop() { // We have to stop AnimationGroup first. // There is a chance that AnimationGroup stops in doTick() due to all children are stopped. // And it will generate onComplete() callback which is unexpected. super.stop(); for (Animation animation : mAnimations) { animation.stop(); } if (Ngin3d.LOG_ANIMATION) { Log.d(TAG, "Stop animation tag: " + getTag()); } return this; } /** * Reset the animation. * * @return This object */ @Override public Animation reset() { for (Animation animation : mAnimations) { animation.reset(); } super.reset(); return this; } /** * Completes the animation. * * @return This object */ @Override public Animation complete() { for (Animation animation : mAnimations) { animation.complete(); } super.complete(); return this; } /** * Check if this object works. * * @return true if this object work. */ @Override public final boolean isStarted() { return mTimeline.isStarted(); } /** * Sets the target of animation of this object. * * @param target the target animation apply * @return This object */ public Animation setTarget(Actor target) { mTarget = target; for (Animation animation : mAnimations) { animation.setTarget(target); } return this; } /** * Gets the target of the animation of this object. * * @return This object */ @Override public Animation setTargetVisible(boolean visible) { super.setTargetVisible(visible); for (Animation animation : mAnimations) { animation.setTargetVisible(visible); } return this; } @Override public Actor getTarget() { return mTarget; } /** * Sets the time scale of animation. * * @param scale the time scale value */ @Override public void setTimeScale(float scale) { for (Animation animation : mAnimations) { animation.setTimeScale(scale); } super.setTimeScale(scale); } /** * Sets the direction of animations * * @param direction the direction of animations */ @Override public void setDirection(int direction) { for (Animation animation : mAnimations) { animation.setDirection(direction); } super.setDirection(direction); } /** * Reverse the animations. */ @Override public void reverse() { if (getDirection() == FORWARD) { setDirection(BACKWARD); } else { setDirection(FORWARD); } start(); } @Override public void setProgress(float progress) { for (Animation animation : mAnimations) { animation.setProgress(progress); } super.setProgress(progress); } public Animation enableOptions(int options) { if (options == START_TARGET_WITH_INITIAL_VALUE) { for (Animation animation : mAnimations) { animation.enableOptions(options); } } super.enableOptions(options); return this; } public Animation disableOptions(int options) { if (options == START_TARGET_WITH_INITIAL_VALUE) { for (Animation animation : mAnimations) { animation.disableOptions(options); } } super.disableOptions(options); return this; } private void action(Animation animation, int elapsedMsecs, int direction) { if (!animation.isStarted()) { animation.setDirection(direction); if (Ngin3d.DEBUG) { Log.d(TAG, String.format("[BACKWARD] elapsedMsecs: %d: start Animation %s ", elapsedMsecs, animation)); } BasicAnimation basicAnimation = (BasicAnimation) animation; basicAnimation.mTimeline.rewind(); mTimelineGroup.attach(basicAnimation.mTimeline); animation.start(); } } @Override public BasicAnimation setMode(Mode mode) { throw new Ngin3dException("Can not set animation mode of AnimationGroup"); } @Override public BasicAnimation setDuration(int duration) { throw new Ngin3dException("Can not specify the duration of AnimationGroup"); } @Override public AnimationGroup clone() { AnimationGroup animation = (AnimationGroup) super.clone(); animation.setupTimelineListener(); animation.mTimelineGroup = (TimelineGroup) mTimelineGroup.clone(); animation.mAnimations = new ArrayList<Animation>(mAnimations.size()); for (Animation ani : mAnimations) { animation.mAnimations.add(ani.clone()); } return animation; } public void dump() { Log.d(TAG, "Parent animation tag: " + getTag() + " Original Duration : " + getOriginalDuration() + " Duration: " + getDuration()); for (Animation ani : mAnimations) { if (ani instanceof AnimationGroup) { ((AnimationGroup) ani).dump(); } Log.d(TAG, "children animation tag: " + ani.getTag() + " Original Duration : " + ani.getOriginalDuration() + " Duration: " + ani.getDuration()); } } }
maxwlang/CyBuy
Headers/Application/Main/Startup.h
<reponame>maxwlang/CyBuy // // Startup.h // Cydia // // Created on 8/31/16. // @interface Startup : NSObject // Startup + (void)runStartupTasks; // Status + (void)updateExternalKeepAliveStatus:(BOOL)keepAlive; @end
Aki78/FlightAI
cpp/apps/LandTactics/LTUnit.h
#ifndef LTUnit_h #define LTUnit_h #include "fastmath.h" #include "tresholdFunctions.h" #include "Vec2.h" #include "Vec3.h" #include "geom2D.h" #include "Body2D.h" #include "LTcommon.h" #include "LTUnitType.h" //#include "LTFaction.h" class LTGun{ public: LTGunType * type = 0; int n=1; // twin,quad ... int ammo=0; double timer = 0; int attachedTo = 0; // attached to turret, hull or what ? }; class LTUnit : public RigidBody2D { public: //UnitKind kind=UnitKind::inf; LTUnitType* type = NULL; LTGun guns[nGunMax]; // by default all guns attached to turrer bool alive=true; int wound=0; double suppressed=0.0; Vec2d turret_dir = (Vec2d){1.0,0.0}; Vec2d willForce; Vec2d goal_pos; LTUnit* target = 0; // ===== inline functions void move_to_goal ( double dt ); double getProjectedArea( Vec3d from ); void fireGun( int i, LTUnit& target ); //void fire_at_unit ( LTUnit * target ); //void update ( double dt ); //double damage_ramp( double att, double def ); //void setOpponent ( LTUnit * opponent_ ); //void setGoal ( const Vec2d& goal_ ); void setType( LTUnitType* type_ ); void update ( double dt ); void render ( uint32_t color, int iLOD) const; void getShot( const Vec3d& from, int nburst, double area, double damage_const, double damage_kinetic, double penetration ); //void renderJob ( uint32_t c ); //void view(); LTUnit(LTUnitType* type_){ type = type_; rot = (Vec2d){1.0,0.0}; for(int i=0; i<type->nGun; i++){ guns[i].type = type->guns[i]; } }; }; #endif
orobio/gulden-official
src/validation/witnessvalidation.h
<filename>src/validation/witnessvalidation.h // Copyright (c) 2017-2018 The Gulden developers // Authored by: <NAME> (<EMAIL>) // Distributed under the GULDEN software license, see the accompanying // file COPYING #ifndef WITNESS_VALIDATION_H #define WITNESS_VALIDATION_H #include "validation/validation.h" #include <boost/container/flat_set.hpp> //fixme: (PHASE5) - Properly document all of these; including pre/post conditions; //fixme: (PHASE5) implement unit tests. // Encapusulate the bare minimum information we need to know about every witness address in order to select/verify a valid witness for a block // Without any of the additional information thats necessary for other parts of the witness system (e.g. spending key) but not this specific function // And without information that can be derived from this core information (e.g. age) class SimplifiedWitnessRouletteItem { public: SimplifiedWitnessRouletteItem(){}; SimplifiedWitnessRouletteItem(const std::tuple<const CTxOut, CTxOutPoW2Witness, COutPoint>& witnessInput) { blockNumber = std::get<2>(witnessInput).getTransactionBlockNumber(); transactionIndex = std::get<2>(witnessInput).getTransactionIndex(); transactionOutputIndex = std::get<2>(witnessInput).n; lockUntilBlock = std::get<1>(witnessInput).lockUntilBlock; lockFromBlock = std::get<1>(witnessInput).lockFromBlock; if (lockFromBlock == 0) { lockFromBlock = blockNumber; } witnessPubKeyID = std::get<1>(witnessInput).witnessKeyID; nValue = std::get<0>(witnessInput).nValue; } uint64_t blockNumber; uint64_t transactionIndex; uint32_t transactionOutputIndex; uint64_t lockUntilBlock; uint64_t lockFromBlock; CKeyID witnessPubKeyID; CAmount nValue; uint64_t GetLockLength() { return (lockUntilBlock-lockFromBlock)+1; } friend inline bool operator!=(const SimplifiedWitnessRouletteItem& a, const SimplifiedWitnessRouletteItem& b) { return !(a == b); } friend inline bool operator==(const SimplifiedWitnessRouletteItem& a, const SimplifiedWitnessRouletteItem& b) { if (a.blockNumber != b.blockNumber || a.transactionIndex != b.transactionIndex || a.transactionOutputIndex != b.transactionOutputIndex || a.lockUntilBlock != b.lockUntilBlock || a.nValue != b.nValue || a.witnessPubKeyID != b.witnessPubKeyID ) { return false; } return true; } //NB! This ordering must precisely match the ordering of RouletteItem::operator< (assuming all items use index based outpoints) friend inline bool operator<(const SimplifiedWitnessRouletteItem& a, const SimplifiedWitnessRouletteItem& b) { if (a.blockNumber == b.blockNumber) { if (a.transactionIndex == b.transactionIndex) { return a.transactionOutputIndex < b.transactionOutputIndex; } return a.transactionIndex < b.transactionIndex; } return a.blockNumber < b.blockNumber; } }; // Simplified view of the entire "witness UTXO" encapsulated as basic SimplifiedWitnessRouletteItem items instead of transactions class SimplifiedWitnessUTXOSet { public: uint256 currentTipForSet; //fixme: (OPTIMISE) - We make an educated guess that for our specific case 'flat_set' will perform well //We base this on a few things: // 1) Set size is not very large (around 600-1200 elements in size) // 2) We have to iterate the entire set a lot for witness selection (for which contiguous memory is good) // 3) We only perform at most a few inserts/deletions per block, so slightly slower insertion/deletion isn't necessarily that bad //However we don't know this for a fact; therefore this should actually be tested against other alternatives and the most performant container for the job chosen. boost::container::flat_set<SimplifiedWitnessRouletteItem> witnessCandidates; friend inline bool operator!=(const SimplifiedWitnessUTXOSet& a, const SimplifiedWitnessUTXOSet& b) { return !(a == b); } friend inline bool operator==(const SimplifiedWitnessUTXOSet& a, const SimplifiedWitnessUTXOSet& b) { if (a.currentTipForSet != b.currentTipForSet) return false; if (a.witnessCandidates.size() != b.witnessCandidates.size()) return false; for (uint64_t i=0; i<a.witnessCandidates.size(); ++i) { auto aComp = *a.witnessCandidates.nth(i); auto bComp = *b.witnessCandidates.nth(i); if (aComp != bComp) { return false; } } return true; } }; SimplifiedWitnessUTXOSet GenerateSimplifiedWitnessUTXOSetFromUTXOSet(std::map<COutPoint, Coin> allWitnessCoinsIndexBased); bool GetSimplifiedWitnessUTXOSetForIndex(const CBlockIndex* pBlockIndex, SimplifiedWitnessUTXOSet& pow2SimplifiedWitnessUTXOForBlock); bool GetSimplifiedWitnessUTXODeltaForBlock(const CBlockIndex* pBlockIndexPrev, const CBlock& block, std::shared_ptr<SimplifiedWitnessUTXOSet> pow2SimplifiedWitnessUTXOForPrevBlock, std::vector<unsigned char>& compWitnessUTXODelta, CPubKey* pubkey); /** Global variable that points to the witness coins database (protected by cs_main) */ extern CWitViewDB* ppow2witdbview; extern std::shared_ptr<CCoinsViewCache> ppow2witTip; extern SimplifiedWitnessUTXOSet pow2SimplifiedWitnessUTXO; struct RouletteItem { public: RouletteItem(const COutPoint& outpoint_, const Coin& coin_, int64_t nWeight_, int64_t nAge_) : outpoint(outpoint_), coin(coin_), nWeight(nWeight_), nAge(nAge_), nCumulativeWeight(0) {}; COutPoint outpoint; Coin coin; uint64_t nWeight; uint64_t nAge; uint64_t nCumulativeWeight; friend inline bool operator<(const RouletteItem& a, const RouletteItem& b) { if (a.nAge == b.nAge) return a.outpoint < b.outpoint; return a.nAge < b.nAge; } friend inline bool operator<(const RouletteItem& a, const uint64_t& b) { return a.nCumulativeWeight < b; } }; struct CGetWitnessInfo { //! All unspent witness coins on the network std::map<COutPoint, Coin> allWitnessCoins; //! All witness coins on the network that meet the basic criteria of minimum weight/amount std::vector<RouletteItem> witnessSelectionPoolUnfiltered; //! All witness coins on the network that were considered eligible for the purpose of selecting the winner. (All contenders) std::vector<RouletteItem> witnessSelectionPoolFiltered; //! Transaction output of the selected witness CTxOut selectedWitnessTransaction; //! The index of the selected witness transaction in the filtered pool uint64_t selectedWitnessIndex = 0; //! Coin object containing the output of the selected witness COutPoint selectedWitnessOutpoint; //! Coin object containing the output of the selected witness Coin selectedWitnessCoin; uint64_t selectedWitnessBlockHeight = 0; //! The total weight of all witness accounts uint64_t nTotalWeightRaw = 0; //! The total weight of all witness accounts considered eligible for this round of witnessing uint64_t nTotalWeightEligibleRaw = 0; //! The reduced total weight after applying the individual weight maximum uint64_t nTotalWeightEligibleAdjusted = 0; //! The maximum individual weight that any single address was allowed when performing the reduction. uint64_t nMaxIndividualWeight = 0; }; int GetPoW2WitnessCoinbaseIndex(const CBlock& block); // Returns all competing orphans at same height and same parent as current tip. // NB! It is important that we consider height and not chain weight here. // If there is a stalled chain due to absentee signer(s) delta may drop the difficulty so competing PoW blocks will have a lower chain weight, but we still want to sign them to get the chain moving again. std::vector<CBlockIndex*> GetTopLevelPoWOrphans(const int64_t nHeight, const uint256& prevhash); std::vector<CBlockIndex*> GetTopLevelWitnessOrphans(const int64_t nHeight); // Retrieve the witness for a PoW block (phase 3 only) CBlockIndex* GetWitnessOrphanForBlock(const int64_t nHeight, const uint256& prevHash, const uint256& powHash); bool ForceActivateChain(CBlockIndex* pActivateIndex, std::shared_ptr<const CBlock> pblock, CValidationState& state, const CChainParams& chainparams, CChain& currentChain, CCoinsViewCache& coinView); bool ForceActivateChainWithBlockAsTip(CBlockIndex* pActivateIndex, std::shared_ptr<const CBlock> pblock, CValidationState& state, const CChainParams& chainparams, CChain& currentChain, CCoinsViewCache& coinView, CBlockIndex* pnewblockastip); // The period in which we are required to witness before we are forcefully removed from the pool. uint64_t expectedWitnessBlockPeriod(uint64_t nWeight, uint64_t networkTotalWeight); // The average frequency which we are expected to witness in. uint64_t estimatedWitnessBlockPeriod(uint64_t nWeight, uint64_t networkTotalWeight); bool getAllUnspentWitnessCoins(CChain& chain, const CChainParams& chainParams, const CBlockIndex* pPreviousIndexChain, std::map<COutPoint, Coin>& allWitnessCoins, CBlock* newBlock=nullptr, CCoinsViewCache* viewOverride=nullptr, bool forceIndexBased=false); bool GetWitnessHelper(uint256 blockHash, CGetWitnessInfo& witnessInfo, uint64_t nBlockHeight); bool GetWitnessInfo(CChain& chain, const CChainParams& chainParams, CCoinsViewCache* viewOverride, CBlockIndex* pPreviousIndexChain, CBlock block, CGetWitnessInfo& witnessInfo, uint64_t nBlockHeight); bool GetWitness(CChain& chain, const CChainParams& chainParams, CCoinsViewCache* viewOverride, CBlockIndex* pPreviousIndexChain, CBlock block, CGetWitnessInfo& witnessInfo); bool GetWitnessFromSimplifiedUTXO(SimplifiedWitnessUTXOSet simplifiedWitnessUTXO, const CBlockIndex* pBlockIndex, CGetWitnessInfo& witnessInfo); bool witnessHasExpired(uint64_t nWitnessAge, uint64_t nWitnessWeight, uint64_t nNetworkTotalWitnessWeight); #endif
LeeTiK/embeddedlinux-jvmdebugger-intellij
src/com/atsebak/embeddedlinuxjvm/console/EmbeddedLinuxJVMConsoleView.java
package com.atsebak.embeddedlinuxjvm.console; import com.intellij.codeEditor.printing.PrintAction; import com.intellij.execution.impl.ConsoleViewImpl; import com.intellij.execution.ui.ConsoleViewContentType; import com.intellij.execution.ui.RunnerLayoutUi; import com.intellij.execution.ui.layout.PlaceInGrid; import com.intellij.ide.actions.NextOccurenceToolbarAction; import com.intellij.ide.actions.PreviousOccurenceToolbarAction; import com.intellij.openapi.Disposable; import com.intellij.openapi.actionSystem.ActionPlaces; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.DefaultActionGroup; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.ModalityState; import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.wm.ToolWindow; import com.intellij.ui.content.Content; import com.intellij.ui.content.ContentFactory; import com.jcraft.jsch.Session; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import javax.swing.*; import java.awt.*; public class EmbeddedLinuxJVMConsoleView implements Disposable { private static final Class<?>[] IGNORED_CONSOLE_ACTION_TYPES = {PreviousOccurenceToolbarAction.class, NextOccurenceToolbarAction.class, ConsoleViewImpl.ClearAllAction.class, PrintAction.class}; @NotNull private final Project project; @Nullable private Session session; @NotNull private ConsoleViewImpl consoleView; @NotNull private JPanel myConsolePanel = new JPanel(); public EmbeddedLinuxJVMConsoleView(@NotNull Project project) { this.project = project; consoleView = new ConsoleViewImpl(project, false); Disposer.register(this, consoleView); } /** * Signleton Instance for The Pi Console view * * @param project * @return */ public static EmbeddedLinuxJVMConsoleView getInstance(@NotNull Project project) { return ServiceManager.getService(project, EmbeddedLinuxJVMConsoleView.class); } /** * Should Ignore? * * @param action * @return */ private static boolean shouldIgnoreAction(@NotNull AnAction action) { for (Class<?> actionType : IGNORED_CONSOLE_ACTION_TYPES) { if (actionType.isInstance(action)) { return true; } } return false; } /** * Gets the Console View * @return */ @NotNull public ConsoleViewImpl getConsoleView(boolean isNew) { if (isNew) { consoleView = new ConsoleViewImpl(project, false); } return consoleView; } public Project getProject() { return project; } /** * Creats the tool window content * @param toolWindow */ public void createToolWindowContent(@NotNull ToolWindow toolWindow) { //Create runner UI layout RunnerLayoutUi.Factory factory = RunnerLayoutUi.Factory.getInstance(project); RunnerLayoutUi layoutUi = factory.create("", "", "session", project); // Adding actions DefaultActionGroup group = new DefaultActionGroup(); layoutUi.getOptions().setLeftToolbar(group, ActionPlaces.UNKNOWN); Content console = layoutUi.createContent(EmbeddedLinuxJVMToolWindowFactory.ID, consoleView.getComponent(), "", null, null); AnAction[] consoleActions = consoleView.createConsoleActions(); for (AnAction action : consoleActions) { if (!shouldIgnoreAction(action)) { group.add(action); } } layoutUi.addContent(console, 0, PlaceInGrid.right, false); JComponent layoutComponent = layoutUi.getComponent(); myConsolePanel.add(layoutComponent, BorderLayout.CENTER); Content content = ContentFactory.SERVICE.getInstance().createContent(layoutComponent, null, true); toolWindow.getContentManager().addContent(content); } /** * Clears text on console */ public void clear() { if (consoleView.isShowing()) { consoleView.clear(); } else { ApplicationManager.getApplication().invokeAndWait(new Runnable() { @Override public void run() { consoleView.flushDeferredText(); } }, ModalityState.NON_MODAL); } } /** * Prints on the Console * @param text * @param contentType */ public void print(@NotNull String text, @NotNull ConsoleViewContentType contentType) { consoleView.print(text, contentType); } /** * Dispose register */ @Override public void dispose() { } public Session getSession() { return session; } public void setSession(Session session) { this.session = session; } }
yuanz271/PyDSTool
PyDSTool/utils.py
<reponame>yuanz271/PyDSTool """ User utilities. """ from __future__ import absolute_import, print_function import collections import numbers import os from distutils.util import get_platform from .errors import * from .common import * from .common import _num_types, _seq_types from .parseUtils import joinStrs from .core.context_managers import RedirectStdout # !! Replace use of these named imports with np.<X> from numpy import ( Inf, NaN, isfinite, less, greater, sometrue, alltrue, searchsorted, take, argsort, array, swapaxes, asarray, zeros, transpose, float64, int32, argmin, ndarray, concatenate, ) import numpy as np from numpy.linalg import norm from scipy.optimize import minpack, zeros try: # noinspection PyUnresolvedReferences newton_meth = minpack.newton except AttributeError: # newer version of scipy newton_meth = zeros.newton import time, sys, os, platform import copy # -------------------------------------------------------------------- # EXPORTS _classes = [] _functions = [ "intersect", "remain", "union", "cartesianProduct", "makeImplicitFunc", "orderEventData", "saveObjects", "loadObjects", "info", "compareList", "findClosestArray", "findClosestPointIndex", "find", "makeMfileFunction", "make_RHS_wrap", "make_Jac_wrap", "progressBar", "distutil_destination", "architecture", "extra_arch_arg", "arclength", ] _mappings = ["_implicitSolveMethods", "_1DimplicitSolveMethods"] __all__ = _classes + _functions + _mappings # ------------------------------------------------------------------ # File for stdout redirecting _logfile = os.devnull # Utility functions def makeMfileFunction(name, argname, defs): """defs is a dictionary of left-hand side -> right-hand side definitions""" # writeout file <name>.m mfile = open(name + ".m", "w") mfile.write("function %s = %s(%s)\n" % (name, name, argname)) for k, v in defs.items(): if k != name: mfile.write("%s = %s;\n" % (k, v)) # now the final definition of tau_recip or inf mfile.write("%s = %s;\n" % (name, defs[name])) mfile.write("return\n") mfile.close() def info( x, specName="Contents", offset=1, recurseDepth=1, recurseDepthLimit=2, _repeatFirstTime=False, ): """Pretty printer for showing argument lists and dictionary specifications.""" if recurseDepth == 1: if not _repeatFirstTime: # first time through print("Information for " + specName + "\n") else: print(specName + ":", end=" ") if x.__class__ is type: return if hasattr(x, "items"): x_keys = sortedDictKeys(x) if len(x_keys) == 0: print("< empty >") elif recurseDepth != 1: print("") for k in x_keys: v = x[k] kstr = object2str(k) basestr = " " * (offset - 1) + kstr if hasattr(v, "items"): info(v, basestr, offset + 4, recurseDepth + 1, recurseDepthLimit) else: vStrList = object2str(v).split(", ") if len(vStrList) == 0: vStrList = ["< no information >"] elif len(vStrList) == 1 and vStrList[0] == "": vStrList = ["< empty >"] outStrList = [basestr + ": "] for i in range(len(vStrList)): if len(vStrList[i] + outStrList[-1]) < 78: outStrList[-1] += ", " * (i > 0) + vStrList[i] else: if i > 0: if i != len(vStrList): # add trailing comma to previous line outStrList[-1] += "," # start on new line outStrList.append(" " * (len(kstr) + 3) + vStrList[i]) else: # too long for line and string has no commas # could work harder here, but for now, just include # the long line outStrList[-1] += vStrList[i] if recurseDepth == 1 and len(outStrList) > 1: # print an extra space between topmost level entries # provided those entries occupy more than one line. print("\n") for s in outStrList: print(s) elif hasattr(x, "__dict__") and recurseDepth <= recurseDepthLimit: info(x.__dict__, specName, offset, recurseDepth, recurseDepthLimit, True) else: xstr = repr(x) if xstr == "": xstr = "< no information >" print(xstr) _implicitSolveMethods = ["newton", "bisect", "steffe", "fsolve"] _1DimplicitSolveMethods = ["newton", "bisect", "steffe"] def makeImplicitFunc( f, x0, fprime=None, extrafargs=(), xtolval=1e-8, maxnumiter=100, solmethod="newton", standalone=True, ): """Builds an implicit function representation of an N-dimensional curve specified by (N-1) equations. Thus argument f is a function of 1 variable. In the case of the 'fsolve' method, f may have dimension up to N-1. Available solution methods are: newton, bisect, steffensen, fsolve. All methods utilize SciPy's Minpack wrappers to Fortran codes. Steffenson uses Aitken's Delta-squared convergence acceleration. fsolve uses Minpack's hybrd and hybrj algorithms. Standalone option (True by default) returns regular function. If False, an additional argument is added, so as to be compatible as a method definition.""" if solmethod == "bisect": assert isinstance(x0, _seq_types), ( "Invalid type '" + str(type(x0)) + "' for x0 = " + str(x0) ) assert len(x0) == 2 elif solmethod == "fsolve": assert isinstance(x0, (_seq_types, _num_types)), ( "Invalid type '" + str(type(x0)) + "' for x0 = " + str(x0) ) else: assert isinstance(x0, _num_types), ( "Invalid type '" + str(type(x0)) + "' for x0 = " + str(x0) ) # define the functions that could be used # scipy signatures use y instead of t, but this naming is consistent # with that in the Generator module try: if standalone: def newton_fn(t): with RedirectStdout(_logfile): res = float( newton_meth( f, x0, args=(t,) + extrafargs, tol=xtolval, maxiter=maxnumiter, fprime=fprime, ) ) return res def bisect_fn(t): with RedirectStdout(_logfile): res = minpack.bisection( f, x0[0], x0[1], args=(t,) + extrafargs, xtol=xtolval, maxiter=maxnumiter, ) return res def steffe_fn(t): with RedirectStdout(_logfile): res = minpack.fixed_point( f, x0, args=(t,) + extrafargs, xtol=xtolval, maxiter=maxnumiter ) return res def fsolve_fn(t): with RedirectStdout(_logfile): res = minpack.fsolve( f, x0, args=(t,) + extrafargs, xtol=xtolval, maxfev=maxnumiter, fprime=fprime, ) return res else: def newton_fn(s, t): with RedirectStdout(_logfile): res = float( newton_meth( f, x0, args=(t,) + extrafargs, tol=xtolval, maxiter=maxnumiter, fprime=fprime, ) ) return res def bisect_fn(s, t): with RedirectStdout(_logfile): res = minpack.bisection( f, x0[0], x0[1], args=(t,) + extrafargs, xtol=xtolval, maxiter=maxnumiter, ) return res def steffe_fn(s, t): with RedirectStdout(_logfile): res = minpack.fixed_point( f, x0, args=(t,) + extrafargs, xtol=xtolval, maxiter=maxnumiter ) return res def fsolve_fn(s, t): with RedirectStdout(_logfile): res = minpack.fsolve( f, x0, args=(t,) + extrafargs, xtol=xtolval, maxfev=maxnumiter, fprime=fprime, ) return res except TypeError as e: if solmethod == "bisect": infostr = " (did you specify a pair for x0?)" else: infostr = "" raise TypeError("Could not create function" + infostr + ": " + str(e)) if solmethod == "newton": return newton_fn elif solmethod == "bisect": if fprime is not None: print("Warning: fprime argument unused for bisection method") return bisect_fn elif solmethod == "steffe": if fprime is not None: print("Warning: fprime argument unused for aitken method") return steffe_fn elif solmethod == "fsolve": return fsolve_fn else: raise ValueError("Unrecognized type of implicit function solver") def findClosestPointIndex(pt, target, tol=Inf, in_order=True): """ Find index of the closest N-dimensional Point in the target N by M array or Pointset. Uses norm of order given by the Point or Pointset, unless they are inconsistent, in which case an exception is raised, or unless they are both arrays, in which case 2-norm is assumed. With the in_order boolean option (default True), the function will attempt to determine the local "direction" of the values and return an insertion index that will preserve this ordering. This option is incompatible with the tol option (see below). If the optional tolerance, tol, is given, then an index is returned only if the closest distance is within the tolerance. Otherwise, a ValueError is raised. This option is incompatible with the in_order option. """ try: normord = pt._normord except AttributeError: normord = 2 try: if target._normord != normord: raise ValueError("Incompatible order of norm defined for inputs") except AttributeError: pass dists = [norm(pt - x, normord) for x in target] index = argmin(dists) if in_order: if index > 0: lo_off = 1 # insertion offset index ins_off = 1 if index < len(target): hi_off = 1 else: hi_off = 0 else: lo_off = 0 hi_off = 2 # insertion offset index ins_off = 0 pta = array([pt]) # extra [] to get compatible shape for concat dim_range = list(range(target.shape[1])) # neighborhood nhood = target[index - lo_off : index + hi_off] if all(ismonotonic(nhood[:, d]) for d in dim_range): # try inserting at index, otherwise at index+1 new_nhood = concatenate((nhood[:ins_off], pta, nhood[ins_off:])) if not all(ismonotonic(new_nhood[:, d]) for d in dim_range): ins_off += 1 index += 1 new_nhood = concatenate((nhood[:ins_off], pta, nhood[ins_off:])) if not all(ismonotonic(new_nhood[:, d]) for d in dim_range): raise ValueError( "Cannot add point in order, try deactivating the in_order option" ) if in_order: return index else: if dists[index] < tol: return index else: raise ValueError("No index found within distance tolerance") def findClosestArray(input_array, target_array, tol): """ Find the set of elements in (1D) input_array that are closest to elements in target_array. Record the indices of the elements in target_array that are within tolerance, tol, of their closest match. Also record the indices of the elements in target_array that are outside tolerance, tol, of their match. For example, given an array of observations with irregular observation times along with an array of times of interest, this routine can be used to find those observations that are closest to the times of interest that are within a given time tolerance. NOTE: input_array must be sorted! The array, target_array, does not have to be sorted. Inputs: input_array: a sorted float64 array target_array: a float64 array tol: a tolerance Returns: closest_indices: the array of indices of elements in input_array that are closest to elements in target_array Author: <NAME>, 2004 Version 1.0 """ # NOT RETURNED IN THIS VERSION: # accept_indices: the indices of elements in target_array # that have a match in input_array within tolerance # reject_indices: the indices of elements in target_array # that do not have a match in input_array within tolerance input_array_len = len(input_array) closest_indices = searchsorted( input_array, target_array ) # determine the locations of target_array in input_array # acc_rej_indices = [-1] * len(target_array) curr_tol = [tol] * len(target_array) est_tol = 0.0 for i in range(len(target_array)): best_off = ( 0 ) # used to adjust closest_indices[i] for best approximating element in input_array if closest_indices[i] >= input_array_len: # the value target_array[i] is >= all elements in input_array so check # whether it is within tolerance of the last element closest_indices[i] = input_array_len - 1 est_tol = target_array[i] - input_array[closest_indices[i]] if est_tol < curr_tol[i]: curr_tol[i] = est_tol # acc_rej_indices[i] = i elif target_array[i] == input_array[closest_indices[i]]: # target_array[i] is in input_array est_tol = 0.0 curr_tol[i] = 0.0 # acc_rej_indices[i] = i elif closest_indices[i] == 0: # target_array[i] is <= all elements in input_array est_tol = input_array[0] - target_array[i] if est_tol < curr_tol[i]: curr_tol[i] = est_tol # acc_rej_indices[i] = i else: # target_array[i] is between input_array[closest_indices[i]-1] and # input_array[closest_indices[i]] # and closest_indices[i] must be > 0 top_tol = input_array[closest_indices[i]] - target_array[i] bot_tol = target_array[i] - input_array[closest_indices[i] - 1] if bot_tol <= top_tol: est_tol = bot_tol best_off = -1 # this is the only place where best_off != 0 else: est_tol = top_tol if est_tol < curr_tol[i]: curr_tol[i] = est_tol # acc_rej_indices[i] = i if est_tol <= tol: closest_indices[i] += best_off # accept_indices = compress(greater(acc_rej_indices, -1), # acc_rej_indices) # reject_indices = compress(equal(acc_rej_indices, -1), # arange(len(acc_rej_indices))) return closest_indices # , accept_indices, reject_indices) def find(x, v, next_largest=1, indices=None): """Returns the index into the 1D array x corresponding to the element of x that is either equal to v or the nearest to v. x is assumed to contain unique elements. if v is outside the range of values in x then the index of the smallest or largest element of x is returned. If next_largest == 1 then the nearest element taken is the next largest, otherwise if next_largest == 0 then the next smallest is taken. The optional argument indices speeds up multiple calls to this function if you have pre-calculated indices=argsort(x). """ if indices is None: indices = argsort(x) xs = take(x, indices, axis=0) assert next_largest in [0, 1], "next_largest must be 0 or 1" eqmask = (xs == v).tolist() try: ix = eqmask.index(1) except ValueError: if next_largest: mask = (xs < v).tolist() else: mask = (xs > v).tolist() try: ix = min( [ max([0, mask.index(1 - next_largest) + next_largest - 1]), len(mask) - 1, ] ) except ValueError: ix = 0 + next_largest - 1 return indices[ix] def orderEventData(edict, evnames=None, nonames=False, bytime=False): """Time-order event data dictionary items. Returns time-ordered list of (eventname, time) tuples. If 'evnames' argument included, this restricts output to only the named events. The 'nonames' flag (default False) forces routine to return only the event times, with no associated event names. The 'bytime' flag (default False) only works with nonames=False and returns the list in (time, eventname) order. """ if evnames is None: evnames = list(edict.keys()) else: assert remain(evnames, edict.keys()) == [], "Invalid event names passed" # put times as first tuple entry of etuplelist if nonames: alltlist = [] for (evname, tlist) in edict.items(): if evname in evnames: alltlist.extend(tlist) alltlist.sort() return alltlist else: etuplelist = [] for (evname, tlist) in edict.items(): if evname in evnames: etuplelist.extend([(t, evname) for t in tlist]) # sort by times etuplelist.sort() if bytime: return etuplelist else: # swap back to get event names as first tuple entry return [(evname, t) for (t, evname) in etuplelist] # ------------------------------------------------------------ # Generator wrapping utilities def make_RHS_wrap( gen, xdict_base, x0_names, use_gen_params=False, overflow_penalty=1e4 ): """Return function wrapping Generator argument gen's RHS function, but restricting input and output dimensions to those specified by x0_names. All other variable values will be given by those in xdict_base. In case of overflow or ValueError during a call to the wrapped function, an overflow penalty will be used for the returned values (default 1e4). if use_gen_params flag is set (default False) then: Return function has signature Rhs_wrap(x,t) and takes an array or list of x state variable values and scalar t, returning an array type of length len(x). The Generator's current param values (at call time) will be used. else: Return function has signature Rhs_wrap(x,t,pdict) and takes an array or list of x state variable values, scalar t, and a dictionary of parameters for the Generator, returning an array type of length len(x). NB: xdict_base will be copied as it will be updated in the wrapped function.""" var_ix_map = invertMap(gen.funcspec.vars) x0_names.sort() # ensures sorted x0_ixs = [var_ix_map[xname] for xname in x0_names] dim = len(x0_names) xdict = xdict_base.copy() if use_gen_params: def Rhs_wrap(x, t): xdict.update(dict(zip(x0_names, x))) try: return take(gen.Rhs(t, xdict, gen.pars), x0_ixs) except (OverflowError, ValueError): return array([overflow_penalty] * dim) else: def Rhs_wrap(x, t, pdict): xdict.update(dict(zip(x0_names, x))) try: return take(gen.Rhs(t, xdict, pdict), x0_ixs) except (OverflowError, ValueError): return array([overflow_penalty] * dim) return Rhs_wrap def make_Jac_wrap( gen, xdict_base, x0_names, use_gen_params=False, overflow_penalty=1e4 ): """Return function wrapping Generator argument gen's Jacobian function, but restricting input and output dimensions to those specified by x0_names. All other variable values will be given by those in xdict_base. In case of overflow or ValueError during a call to the wrapped function, an overflow penalty will be used for the returned values (default 1e4). if use_gen_params flag is set (default False) then: Return function Jac_wrap(x,t) takes an array or list of x variable values and scalar t, returning a 2D array type of size len(x) by len(x). The Generator's current param values (at call time) will be used. else: Return function Jac_wrap(x,t,pdict) takes an array or list of x variable values, scalar t, and a dictionary of parameters for the Generator, returning a 2D array type of size len(x) by len(x). NB: xdict_base will be copied as it will be updated in the wrapped function.""" if not gen.haveJacobian(): raise ValueError("Jacobian not defined") var_ix_map = invertMap(gen.funcspec.vars) x0_names.sort() # ensures sorted x0_ixs = [var_ix_map[xname] for xname in x0_names] dim = len(x0_names) xdict = xdict_base.copy() if use_gen_params: def Jac_wrap(x, t): xdict.update(dict(zip(x0_names, x))) try: return take( take(gen.Jacobian(t, xdict, gen.pars), x0_ixs, 0), x0_ixs, 1 ) except (OverflowError, ValueError): return array([overflow_penalty] * dim) else: def Jac_wrap(x, t, pdict): xdict.update(dict(zip(x0_names, x))) try: return take(take(gen.Jacobian(t, xdict, pdict), x0_ixs, 0), x0_ixs, 1) except (OverflowError, ValueError): return array([overflow_penalty] * dim) return Jac_wrap # ------------------------------------------------------------ # User-interaction utilities def progressBar(i, total, width=50): """Print an increasing number of dashes up to given width, reflecting i / total fraction of progress. Prints and refreshes on one line. """ percent = float(i) / total dots = int(percent * width) progress = str("[").ljust(dots + 1, "-") sys.stdout.write( "\r" + progress.ljust(width, " ") + str("] %.2f%%" % (percent * 100.0)) ) sys.stdout.flush() # ------------------------------------------------------------ def saveObjects(objlist, filename, force=False): """Store PyDSTool objects to file. Argument should be a tuple or list, but if a singleton non-sequence object X is given then it will be saved as a list [ X ]. Some PyDSTool objects will not save using this function, and will complain about attributes that do not have definitions in __main__. """ # passing protocol = -1 to pickle means it uses highest available # protocol (e.g. binary format) if not force: if os.path.isfile(filename): raise ValueError("File '" + filename + "' already exists") pklfile = open(filename, "wb") opt = 0 if not isinstance(objlist, list): objlist = [objlist] for obj in objlist: try: pickle.dump(obj, pklfile, opt) except: if hasattr(obj, "name"): print("Failed to save '%s'" % obj.name) else: print("Failed to save object '%s'" % str(obj)) raise pklfile.close() def loadObjects(filename, namelist=None): """Retrieve PyDSTool objects from file. Returns list of objects unless namelist option is given as a singleton string name. Also, if only one object X was stored, it will be returned as [X], and thus you will have to index the returned list with 0 to get X itself. Optional namelist argument selects objects to return by name, provided that the objects have name fields (otherwise they are ignored). If namelist is a single string name then a single object is returned. """ # Since names are not intended to be unique in PyDSTool, the while # loop always goes to the end of the file, and pulls out *all* # occurrences of the names. if not os.path.isfile(filename): raise ValueError("File '" + filename + "' not found") if namelist is None: namelist = [] was_singleton_name = isinstance(namelist, str) if not isinstance(namelist, list): if was_singleton_name: namelist = [copy.copy(namelist)] else: raise TypeError("namelist must be list of strings or singleton string") if not isUniqueSeq(namelist): raise ValueError("Names must only appear once in namelist argument") pklfile = open(filename, "rb") if namelist == []: getall = True else: getall = False objlist = [] notDone = True while notDone: try: if getall: objlist.append(pickle.load(pklfile)) else: tempobj = pickle.load(pklfile) if hasattr(tempobj, "name"): if tempobj.name in namelist: objlist.append(tempobj) except EOFError: notDone = False except: print("Error in un-pickling %s:" % filename) print("Was the object created with an old version of PyDSTool?") pklfile.close() raise pklfile.close() if objlist == []: if getall: print("No objects found in file") else: print("No named objects found in file") if was_singleton_name: return objlist[0] else: return objlist def intersect(a, b): """Find intersection of two lists, sequences, etc. Returns a list that includes repetitions if they occur in the inputs.""" return [e for e in a if e in b] def union(a, b): """Find union of two lists, sequences, etc. Returns a list that includes repetitions if they occur in the input lists. """ return list(a) + list(b) def remain(a, b): """Find remainder of two lists, sequences, etc., after intersection. Returns a list that includes repetitions if they occur in the inputs.""" return [e for e in a if e not in b] def compareList(a, b): """Compare elements of lists, ignoring order (like sets).""" return len(intersect(a, b)) == len(a) == len(b) def cartesianProduct(a, b): """Returns the cartesian product of the sequences.""" ret = [] for i in a: ret.extend([(i, j) for j in b]) return ret def arclength(pts): """ Return array of L2 arclength progress along parameterized pointset in all the dimensions of the pointset """ x0 = pts[0] arclength = np.zeros(len(pts)) for i, x in enumerate(pts[1:]): arclength[i + 1] = np.linalg.norm(x - pts[i]) + arclength[i] return arclength # ------------------------ def distutil_destination(): """Internal utility that makes the goofy destination directory string so that PyDSTool can find where the distutils fortran/gcc compilers put things. If your temp directory turns out to be different to the one created here, contact us on sourceforge.net, but in the meantime you can override destdir with whatever directory name you find that is being used. """ import scipy osname = str.lower(platform.system()) pyname = platform.python_version_tuple() machinename = platform.machine() if osname == "linux": destdir = ( "src." + osname + "-" + machinename + "-" + pyname[0] + "." + pyname[1] ) elif osname in ["darwin", "freebsd"]: # use the same version string as numpy.distutils.core.setup used by ContClass.CompileAutoLib osver = get_platform() destdir = "src." + osver + "-" + pyname[0] + "." + pyname[1] elif osname == "windows": destdir = "src.win32-" + pyname[0] + "." + pyname[1] else: destdir = "" # TEMP for debugging # import os # os.system('echo %s > temp_dist.txt' % (os.path.abspath('.') + " : " + destdir)) return destdir def architecture(): """ Platform- and version-independent function to determine 32- or 64-bit architecture. Used primarily to determine need for "-m32" option to C compilers for external library compilation, e.g. by AUTO, Dopri, Radau. Returns integer 32 or 64. """ import struct return struct.calcsize("P") * 8 def extra_arch_arg(arglist): """ Adds '-m32' flag to existing list of extra compiler/linker flags passed as argument, based on whether architecture is detected as 32 bit. Otherwise, it performs the identity function. """ if architecture() == 32: return arglist + ["-m32"] else: return arglist def get_lib_extension(): this = platform.system() if this == "Windows": return ".pyd" elif this not in [ "Linux", "IRIX", "Solaris", "SunOS", "MacOS", "Darwin", "FreeBSD", ]: print("Shared library extension not tested on this platform.") print("If this process fails please report the errors to the") print("developers.") return ".so"
vkinsane/OOP-Car-Game-SY-SEM-2
docs/html/search/functions_b.js
<filename>docs/html/search/functions_b.js<gh_stars>10-100 var searchData= [ ['_7egame',['~Game',['../classcp_1_1_game.html#a1c1387e83a2325e45cbf2099c430c502',1,'cp::Game']]], ['_7egamesimulator',['~GameSimulator',['../classcp_1_1_game_simulator.html#a64ab0578e27b01b32c492b3d48676a23',1,'cp::GameSimulator']]], ['_7eplayercar',['~PlayerCar',['../classcp_1_1_player_car.html#ac12da40fef77bb3175fd0ff42a07d4c8',1,'cp::PlayerCar']]] ];
mariohofmann/svnclientadapter
tests/org/tigris/subversion/svnclientadapter/basictests/CheckOutTest.java
/******************************************************************************* * Copyright (c) 2004, 2006 svnClientAdapter project and others. * * 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. * * Contributors: * svnClientAdapter project committers - initial API and implementation ******************************************************************************/ package org.tigris.subversion.svnclientadapter.basictests; import java.io.File; import java.io.FileOutputStream; import java.io.PrintWriter; import org.tigris.subversion.svnclientadapter.SVNClientException; import org.tigris.subversion.svnclientadapter.SVNRevision; import org.tigris.subversion.svnclientadapter.SVNStatusKind; import org.tigris.subversion.svnclientadapter.SVNUrl; import org.tigris.subversion.svnclientadapter.testUtils.OneTest; import org.tigris.subversion.svnclientadapter.testUtils.SVNTest; public class CheckOutTest extends SVNTest { /** * test the basic SVNCLient.checkout functionality * @throws Throwable */ public void testBasicCheckout() throws Throwable { // build the test setup OneTest thisTest = new OneTest("basicCheckout",getGreekTestConfig()); try { // obstructed checkout must fail client.checkout(new SVNUrl(thisTest.getUrl() + "/A"), thisTest.getWCPath(), SVNRevision.HEAD, true); fail("missing exception"); } catch (SVNClientException e) { } // modify file A/mu File mu = new File(thisTest.getWorkingCopy(), "A/mu"); PrintWriter muPW = new PrintWriter(new FileOutputStream(mu, true)); muPW.print("appended mu text"); muPW.close(); thisTest.getExpectedWC().setItemTextStatus("A/mu", SVNStatusKind.MODIFIED); // delete A/B/lambda without svn File lambda = new File(thisTest.getWorkingCopy(), "A/B/lambda"); lambda.delete(); thisTest.getExpectedWC().setItemTextStatus("A/B/lambda", SVNStatusKind.MISSING); // remove A/D/G client.remove(new File[]{new File(thisTest.getWCPath() + "/A/D/G")}, false); thisTest.getExpectedWC().setItemTextStatus("A/D/G", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/G/pi", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/G/rho", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/G/tau", SVNStatusKind.DELETED); // check the status of the working copy thisTest.checkStatusesExpectedWC(); } public void testBasicCheckoutDeleted() throws Throwable { // create working copy OneTest thisTest = new OneTest("basicCheckout",getGreekTestConfig()); // delete A/D and its content client.remove(new File[] {new File(thisTest.getWCPath()+"/A/D")}, true); thisTest.getExpectedWC().setItemTextStatus("A/D", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/G", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/G/rho", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/G/pi", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/G/tau", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/H", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/H/chi", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/H/psi", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/H/omega", SVNStatusKind.DELETED); thisTest.getExpectedWC().setItemTextStatus("A/D/gamma", SVNStatusKind.DELETED); // check the working copy status thisTest.checkStatusesExpectedWC(); // commit the change assertEquals("wrong revision from commit",2, client.commit(new File[]{thisTest.getWCPath()}, "log message", true)); thisTest.getExpectedWC().removeItem("A/D"); thisTest.getExpectedWC().removeItem("A/D/G"); thisTest.getExpectedWC().removeItem("A/D/G/rho"); thisTest.getExpectedWC().removeItem("A/D/G/pi"); thisTest.getExpectedWC().removeItem("A/D/G/tau"); thisTest.getExpectedWC().removeItem("A/D/H"); thisTest.getExpectedWC().removeItem("A/D/H/chi"); thisTest.getExpectedWC().removeItem("A/D/H/psi"); thisTest.getExpectedWC().removeItem("A/D/H/omega"); thisTest.getExpectedWC().removeItem("A/D/gamma"); // check the working copy status thisTest.checkStatusesExpectedWC(); // check out the previous revision client.checkout(new SVNUrl(thisTest.getUrl()+"/A/D"), new File(thisTest.getWCPath()+"/new_D"), new SVNRevision.Number(1), true); } }
mamontov-cpp/saddy
src/sadsleep.cpp
<reponame>mamontov-cpp/saddy<filename>src/sadsleep.cpp<gh_stars>10-100 #include "sadsleep.h" #ifdef WIN32 #include <windows.h> #else #include <unistd.h> #endif void sad::sleep(unsigned int milliseconds) { #ifdef WIN32 Sleep(milliseconds); #else usleep(milliseconds * 1000); #endif }
suggitpe/java-gui
mercury/src/main/java/org/suggs/apps/mercury/view/actions/file/ExitAction.java
/* * ExitAction.java created on 20 Oct 2008 06:56:31 by suggitpe for project GUI - Mercury * */ package org.suggs.apps.mercury.view.actions.file; import org.suggs.apps.mercury.model.util.image.ImageManager; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.eclipse.jface.action.Action; import org.eclipse.swt.widgets.Display; /** * Encapsulation of the exit from Mercury functionality * * @author suggitpe * @version 1.0 20 Oct 2008 */ public class ExitAction extends Action { private static final Logger LOG = LoggerFactory.getLogger( ExitAction.class ); /** * Constructs a new instance. */ public ExitAction() { super( "&Exit" ); setToolTipText( "Exit Mercury application" ); setImageDescriptor( ImageManager.getImageDescriptor( ImageManager.IMAGE_EXIT ) ); } /** * @see org.eclipse.jface.action.Action#run() */ @Override public void run() { LOG.debug( "Exiting Mercury" ); Display.getCurrent().getActiveShell().close(); } }
srcarter3/awips2
edexOsgi/com.raytheon.edex.plugin.shef/src/com/raytheon/edex/transform/shef/obs/MetarSynopticCode.java
/** * This software was developed and / or modified by Raytheon Company, * pursuant to Contract DG133W-05-CQ-1067 with the US Government. * * U.S. EXPORT CONTROLLED TECHNICAL DATA * This software product contains export-restricted data whose * export/transfer/disclosure is restricted by U.S. law. Dissemination * to non-U.S. persons whether in the United States or abroad requires * an export license or other authorization. * * Contractor Name: Raytheon Company * Contractor Address: 6825 Pine Street, Suite 340 * Mail Stop B8 * Omaha, NE 68106 * 402.291.0100 * * See the AWIPS II Master Rights File ("Master Rights File.pdf") for * further licensing information. **/ package com.raytheon.edex.transform.shef.obs; import java.util.HashMap; import com.raytheon.uf.common.dataplugin.obs.metar.util.WeatherCondition; /** * The MetarSynopticCode provides a mapping of METAR weather codes to appropriate * Synoptic (WMO 306 Vol I.1-C Table 4677). Note that these code mappings were taken * from the MetarToSHEF code and that some mappings do not appear to be correct. For * example TSRA should map to code 95, not 96. Also all MetarToSHEF mappings containing * the Metar "PE" were replaced with "PL" as the "PE" code is obsolete. * * <pre> * SOFTWARE HISTORY * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * Dec 2, 2008 1659 jkorman Initial creation * </pre> * * @author jkorman * @version 1.0 */ public class MetarSynopticCode { private static final HashMap<WeatherCondition,MetarSynopticCode> codes = new HashMap<WeatherCondition,MetarSynopticCode>(); static { MetarSynopticCode code = null; code = new MetarSynopticCode(19, new WeatherCondition( "+", "", "", "","FC")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(19, new WeatherCondition( "", "", "", "","FC")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(97, new WeatherCondition( "+","TS","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(96, new WeatherCondition( " ","TS","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(95, new WeatherCondition( "-","TS","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(81, new WeatherCondition( "+","SH","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(81, new WeatherCondition( " ","SH","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(80, new WeatherCondition( "-","SH","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(64, new WeatherCondition( "+", "","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(62, new WeatherCondition( " ", "","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(60, new WeatherCondition( "-", "","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(97, new WeatherCondition( "+","TS","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(97, new WeatherCondition( " ","TS","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(97, new WeatherCondition( "-","TS","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(74, new WeatherCondition( "+", "","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(72, new WeatherCondition( " ", "","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(70, new WeatherCondition( "-", "","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(86, new WeatherCondition( "+","SH","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(86, new WeatherCondition( " ","SH","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(85, new WeatherCondition( "-","SH","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(97, new WeatherCondition( "+","TS","PL", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(97, new WeatherCondition( " ","TS","PL", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(97, new WeatherCondition( "-","TS","PL", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(67, new WeatherCondition( "+","FZ","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(67, new WeatherCondition( " ","FZ","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(66, new WeatherCondition( "-","FZ","RA", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(57, new WeatherCondition( "+","FZ","DZ", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(57, new WeatherCondition( " ","FZ","DZ", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(56, new WeatherCondition( "-","FZ","DZ", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(54, new WeatherCondition( "+", "","DZ", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(52, new WeatherCondition( " ", "","DZ", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(50, new WeatherCondition( "-", "","DZ", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(87, new WeatherCondition( "+","SH","PL", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(87, new WeatherCondition( " ","SH","PL", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(87, new WeatherCondition( "-","SH","PL", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(79, new WeatherCondition( "+", "","PL", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(79, new WeatherCondition( " ", ",","PL", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(79, new WeatherCondition( "-", "","PL", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(87, new WeatherCondition( "","SH","GR", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(87, new WeatherCondition( "","SH","GS", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(76, new WeatherCondition( "", "","IC", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(17, new WeatherCondition( "","TS", "", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(16, new WeatherCondition("VC","SH", "", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(41, new WeatherCondition( "", "", "","BR", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(41, new WeatherCondition( "", "", "","FG", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(42, new WeatherCondition( "","MI", "","FG", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(43, new WeatherCondition( "","PR", "","FG", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(42, new WeatherCondition( "","BC", "","FG", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(40, new WeatherCondition("VC", "", "","FG", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(41, new WeatherCondition( "","FZ", "","FG", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(4, new WeatherCondition( "", "", "","FU", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(4, new WeatherCondition( "", "", "","VA", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(5, new WeatherCondition( "", "", "","HZ", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(38, new WeatherCondition( "","BL","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(38, new WeatherCondition("VC","BL","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(37, new WeatherCondition( "","DR","SN", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(6, new WeatherCondition( "", "", "","DU", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(7, new WeatherCondition( "","BL", "","DU", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(7, new WeatherCondition("VC","BL", "","DU", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(7, new WeatherCondition( "","DR", "","DU", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(7, new WeatherCondition( "", "", "","SA", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(8, new WeatherCondition( "","BL", "","SA", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(8, new WeatherCondition("VC","BL", "","SA", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(7, new WeatherCondition( "","DR", "","SA", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(7, new WeatherCondition( "", "", "","PY", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(7, new WeatherCondition( "","BL", "", "","PY")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(8, new WeatherCondition( "", "", "", "","PO")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(8, new WeatherCondition("VC", "", "", "","PO")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(18, new WeatherCondition( "", "", "", "","SQ")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(30, new WeatherCondition( "", "", "", "","SS")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(33, new WeatherCondition( "+", "", "", "","SS")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(30, new WeatherCondition("VC", "", "", "","SS")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(30, new WeatherCondition( " ", "", "", "","DS")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(33, new WeatherCondition( "+", "", "", "","DS")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(30, new WeatherCondition("VC", "", "", "","DS")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(77, new WeatherCondition( "+", "","SG", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(77, new WeatherCondition( "", "","SG", "", "")); codes.put(code.getMetarCode(),code); code = new MetarSynopticCode(77, new WeatherCondition( "-", "","SG", "", "")); codes.put(code.getMetarCode(),code); } private final int synopticCode; private final WeatherCondition metarCode; /** * Create a MetarSynopticCode instance using a given synoptic code and Metar * weather condition code. * @param synopticCode The synoptic code for this instance. * @param metarCode The WeatherCondition Metar code for this instance. */ public MetarSynopticCode(int synopticCode, WeatherCondition metarCode) { this.synopticCode = synopticCode; this.metarCode = metarCode; } /** * Get the synoptic code for this instance. * @return The synopticCode. */ public int getSynopticCode() { return synopticCode; } /** * Get the WeatherCondition Metar code for this instance. * @return The WeatherCondition Metar code. */ public WeatherCondition getMetarCode() { return metarCode; } /** * The the MetarSynopticCode instance associated with a given * weather condition code. * @param weather The WeatherCondition code to lookup. * @return The associated */ public static MetarSynopticCode instance(WeatherCondition weather) { return codes.get(weather); } /** * * @param weather * @return */ public static int getSynopticCode(WeatherCondition weather) { MetarSynopticCode code = codes.get(weather); return (code != null) ? code.getSynopticCode() : -1; } }
arnaud-dezandee/tailscale
tstest/integration/vms/gen/test_codegen.go
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // build ignore package main import ( _ "embed" "fmt" "log" "os" "time" "github.com/dave/jennifer/jen" "github.com/iancoleman/strcase" "tailscale.com/tstest/integration/vms" ) func main() { f := jen.NewFile("vms") f.Comment("Code generated by tstest/integration/vms/gen/test_codegen.go DO NOT EDIT.") ptr := jen.Op("*") for i, d := range vms.Distros { f.Func(). Id("TestRun" + strcase.ToCamel(d.Name)). Params(jen.Id("t").Add(ptr).Qual("testing", "T")). BlockFunc(func(g *jen.Group) { g.Id("t").Dot("Parallel").Call() g.Id("setupTests").Call(jen.Id("t")) g.Id("testOneDistribution").Call(jen.Id("t"), jen.Lit(i), jen.Id("Distros").Index(jen.Lit(i))) }) } os.Remove("top_level_test.go") fout, err := os.Create("top_level_test.go") if err != nil { log.Fatal(err) } defer fout.Close() fmt.Fprintf(fout, "// Copyright (c) %d Tailscale Inc & AUTHORS All rights reserved.\n", time.Now().Year()) fout.WriteString("// Use of this source code is governed by a BSD-style\n") fout.WriteString("// license that can be found in the LICENSE file.\n") fout.WriteString("\n") fout.WriteString("// +build linux\n\n") err = f.Render(fout) if err != nil { log.Fatal(err) } }
ScalablyTyped/scala-st-std
scala-st-std/src/main/scala/org.scalablytyped/std/WindowEventHandlersEventMap.scala
package org.scalablytyped.std import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ trait WindowEventHandlersEventMap extends js.Object { var afterprint: Event var beforeprint: Event var beforeunload: BeforeUnloadEvent var hashchange: HashChangeEvent var languagechange: Event var message: MessageEvent var messageerror: MessageEvent var offline: Event var online: Event var pagehide: PageTransitionEvent var pageshow: PageTransitionEvent var popstate: PopStateEvent var rejectionhandled: PromiseRejectionEvent var storage: StorageEvent var unhandledrejection: PromiseRejectionEvent var unload: Event } object WindowEventHandlersEventMap { @scala.inline def apply( afterprint: Event, beforeprint: Event, beforeunload: BeforeUnloadEvent, hashchange: HashChangeEvent, languagechange: Event, message: MessageEvent, messageerror: MessageEvent, offline: Event, online: Event, pagehide: PageTransitionEvent, pageshow: PageTransitionEvent, popstate: PopStateEvent, rejectionhandled: PromiseRejectionEvent, storage: StorageEvent, unhandledrejection: PromiseRejectionEvent, unload: Event ): WindowEventHandlersEventMap = { val __obj = js.Dynamic.literal(afterprint = afterprint.asInstanceOf[js.Any], beforeprint = beforeprint.asInstanceOf[js.Any], beforeunload = beforeunload.asInstanceOf[js.Any], hashchange = hashchange.asInstanceOf[js.Any], languagechange = languagechange.asInstanceOf[js.Any], message = message.asInstanceOf[js.Any], messageerror = messageerror.asInstanceOf[js.Any], offline = offline.asInstanceOf[js.Any], online = online.asInstanceOf[js.Any], pagehide = pagehide.asInstanceOf[js.Any], pageshow = pageshow.asInstanceOf[js.Any], popstate = popstate.asInstanceOf[js.Any], rejectionhandled = rejectionhandled.asInstanceOf[js.Any], storage = storage.asInstanceOf[js.Any], unhandledrejection = unhandledrejection.asInstanceOf[js.Any], unload = unload.asInstanceOf[js.Any]) __obj.asInstanceOf[WindowEventHandlersEventMap] } @scala.inline implicit class WindowEventHandlersEventMapOps[Self <: WindowEventHandlersEventMap] (val x: Self) extends AnyVal { @scala.inline def duplicate: Self = (js.Dynamic.global.Object.assign(js.Dynamic.literal(), x)).asInstanceOf[Self] @scala.inline def combineWith[Other <: js.Any](other: Other): Self with Other = (js.Dynamic.global.Object.assign(js.Dynamic.literal(), x, other.asInstanceOf[js.Any])).asInstanceOf[Self with Other] @scala.inline def set(key: java.lang.String, value: js.Any): Self = { x.asInstanceOf[js.Dynamic].updateDynamic(key)(value) x } @scala.inline def setAfterprint(value: Event): Self = this.set("afterprint", value.asInstanceOf[js.Any]) @scala.inline def setBeforeprint(value: Event): Self = this.set("beforeprint", value.asInstanceOf[js.Any]) @scala.inline def setBeforeunload(value: BeforeUnloadEvent): Self = this.set("beforeunload", value.asInstanceOf[js.Any]) @scala.inline def setHashchange(value: HashChangeEvent): Self = this.set("hashchange", value.asInstanceOf[js.Any]) @scala.inline def setLanguagechange(value: Event): Self = this.set("languagechange", value.asInstanceOf[js.Any]) @scala.inline def setMessage(value: MessageEvent): Self = this.set("message", value.asInstanceOf[js.Any]) @scala.inline def setMessageerror(value: MessageEvent): Self = this.set("messageerror", value.asInstanceOf[js.Any]) @scala.inline def setOffline(value: Event): Self = this.set("offline", value.asInstanceOf[js.Any]) @scala.inline def setOnline(value: Event): Self = this.set("online", value.asInstanceOf[js.Any]) @scala.inline def setPagehide(value: PageTransitionEvent): Self = this.set("pagehide", value.asInstanceOf[js.Any]) @scala.inline def setPageshow(value: PageTransitionEvent): Self = this.set("pageshow", value.asInstanceOf[js.Any]) @scala.inline def setPopstate(value: PopStateEvent): Self = this.set("popstate", value.asInstanceOf[js.Any]) @scala.inline def setRejectionhandled(value: PromiseRejectionEvent): Self = this.set("rejectionhandled", value.asInstanceOf[js.Any]) @scala.inline def setStorage(value: StorageEvent): Self = this.set("storage", value.asInstanceOf[js.Any]) @scala.inline def setUnhandledrejection(value: PromiseRejectionEvent): Self = this.set("unhandledrejection", value.asInstanceOf[js.Any]) @scala.inline def setUnload(value: Event): Self = this.set("unload", value.asInstanceOf[js.Any]) } }
pymir3/pymir3
mir3/modules/tool/score2midi.py
import argparse import mir3.data.score as score import mir3.lib.midi.MidiOutFile as MidiOutFile import mir3.module class Score2Midi(mir3.module.Module): def get_help(self): return """convert the internal score representation to midi""" def build_arguments(self, parser): parser.add_argument('infile', type=argparse.FileType('r'), help="""score file""") parser.add_argument('outfile', type=argparse.FileType('w'), help="""midi file""") def run(self, args): s = score.Score().load(args.infile) with MidiWriter(args.outfile) as mw: for n in s.data: mw.add_note(n) class MidiWriter: """Helper to write MIDI files. Uses the external midi library to create midi files from a score. The events are added to a dictionary, because MIDI requires things to be written in order, so we can't add them instantly. Not every feature available in the MIDI format is available here yet. The class provides safeguards to save the events to the MIDI file on object destruction. It can also be used with the 'with' statement. Any events are destructed when a new file is opened. Attributes: division: number of divisions. events: dictionary of events, where the keys are timestamps and values are list of events. midi: midi file used to write. The value is None if no file is open. """ def __init__(self, file_handle, division=96, bmp=60): """Starts a new MIDI file. Creates the file and write header and starting BMP. Args: file_handle: handle for the file to be written. divisions: number of divisions. Default: 96. bmp: beats per minute at the start. Default: 60. """ self.midi = MidiOutFile.MidiOutFile(file_handle) self.division = division self.midi.header(division = division) self.midi.start_of_track() self.events = {} self.set_BMP(bmp) def add_event_at(self, time, event): """Adds an event to a certain time. If no event exists on the time, starts the list. The event is stored at the list's end. Args: time: timestamp for the event. event: event description. Returns: self """ if time not in self.events: self.events[time] = [] self.events[time].append(event) return self def add_note(self, note, channel=0): """Adds a Note object to a channel. Uses the note onset and offset to compute the time. Args: note: Note object. channel: channel to store the note. Default: 0. Returns: self """ if note is None: raise ValueError, 'Invalid note.' onset = int(note.data.onset * self.division) onset_event = {'name': 'onset', 'pitch': note.data.pitch, 'channel': channel} self.add_event_at(onset, onset_event) offset = int(note.data.offset * self.division) offset_event = {'name': 'offset', 'pitch': note.data.pitch, 'channel': channel} self.add_event_at(offset, offset_event) return self def set_BMP(self, bmp, time=0): """Sets the BMP at a certain time. Args: bmp: beats per minute values. time: timestamp. Returns: self """ time = int(time * self.division) event = {'name': 'tempo', 'value': 60000000/int(bmp)} self.add_event_at(time, event) return self def write_events(self): """Writes the events stored and close the file. If there's no file, nothing is done. The events dictionary is cleaned upon completion. Returns: self """ if self.midi is not None: time_scale = 1 last_time = None for time in sorted(self.events): if last_time is None: self.midi.update_time(int(time), relative = False) else: self.midi.update_time(int((time-last_time)*time_scale), relative = True) last_time = time for event in self.events[time]: if event['name'] == 'tempo': self.midi.tempo(event['value']) time_scale = 1/(event['value']*1e-6) elif event['name'] == 'onset': self.midi.note_on(channel = event['channel'], note = event['pitch']) elif event['name'] == 'offset': self.midi.note_off(channel = event['channel'], note = event['pitch']) else: raise ValueError, 'Unknown MIDI event.' self.events = {} self.close() def close(self): """Closes the file and add tail data. If the file is open, writes the things that the file format requires at the end. Returns: self """ if self.midi is not None: self.midi.update_time(0) self.midi.end_of_track() self.midi.eof() self.midi = None return self def __enter__(self): return self def __exit__(self, type, value, traceback): self.write_events() def __del__(self): self.write_events()
mabartos/bartOS-server-core
services/src/main/java/org/mabartos/persistence/jpa/model/services/user/UserServiceImpl.java
<reponame>mabartos/bartOS-server-core /* * Copyright (c) 2020. * <NAME> * SmartHome BartOS * All rights reserved. */ package org.mabartos.persistence.jpa.model.services.user; import io.quarkus.runtime.StartupEvent; import org.mabartos.api.model.user.UserModel; import org.mabartos.api.service.user.UserRoleService; import org.mabartos.api.service.user.UserService; import org.mabartos.persistence.jpa.repository.UserRepository; import org.mabartos.services.model.CRUDServiceImpl; import javax.enterprise.context.Dependent; import javax.enterprise.event.Observes; import javax.inject.Inject; import javax.persistence.NoResultException; import javax.persistence.Query; import java.util.List; import java.util.UUID; @Dependent public class UserServiceImpl extends CRUDServiceImpl<UserModel, UserEntity, UserRepository, UUID> implements UserService { private UserRoleService userRoleService; public void start(@Observes StartupEvent event) { } @Inject UserServiceImpl(UserRepository repository, UserRoleService userRoleService) { super(repository); this.userRoleService = userRoleService; } @Override public UserModel findByID(UUID id) { try { Query query = getEntityManager().createNamedQuery("findUserByUUID", UserModel.class); query.setParameter("id", id); return (UserModel) query.getSingleResult(); } catch (NoResultException e) { return null; } } @Override public boolean deleteByID(UUID id) { return getRepository().delete("uuid", id) > 0; } @Override public UserRoleService roles() { return userRoleService; } @Override public UserModel findByUsername(String username) { return getRepository().find("username", username).firstResultOptional().orElse(null); } @Override public UserModel findByEmail(String email) { return getRepository().find("email", email).firstResultOptional().orElse(null); } @Override public List<UserModel> findAllByNameOrEmail(String nameOrEmail) { Query query = getEntityManager().createNamedQuery("findUserByNameOrEmail", UserModel.class); query.setParameter("name", nameOrEmail); query.setMaxResults(20); return query.getResultList(); } }
syz247179876/e_mall
payment_app/serializers/payment_serializers.py
# -*- coding: utf-8 -*- # @Time : 2020/6/1 10:03 # @Author : 司云中 # @File : payment_serializers.py # @Software: PyCharm import time from user_app.models import User from order_app.models.order_models import Order_basic, Order_details from payment_app.models.Alipay_models import PayInformation from shop_app.models.commodity_models import Commodity from user_app.models import Address from Emall.loggings import Logging from rest_framework import serializers from django.db import transaction, DatabaseError common_logger = Logging.logger('django') order_logger = Logging.logger('order_') class AddressSuccessSerializer(serializers.ModelSerializer): """地址序列化器(成功支付)""" class Meta: model = Address fields = ('recipients','region', 'phone') class UserSuccessSerializer(serializers.ModelSerializer): """用户序列化器(成功支付)""" class Meta: model = User fields = ('username',) class CommoditySuccessSerializer(serializers.ModelSerializer): """商品序列化器(成功支付)""" class Meta: model = Commodity fields = ('commodity_name', 'image') class OrderDetailSuccessSerializer(serializers.ModelSerializer): """订单细节序列化器(成功支付)""" commodity = CommoditySuccessSerializer(read_only=True) class Meta: model = Order_details fields = ('commodity', 'price', 'image') class OrderBasicSuccessSerializer(serializers.ModelSerializer): """订单基本序列化器(成功支付)""" user = UserSuccessSerializer(read_only=True, many=True) address = AddressSuccessSerializer(read_only=True, many=True) order_details = OrderDetailSuccessSerializer(read_only=True, many=True) class Meta: model = Order_basic fields = ('orderId', 'user', 'address', 'order_details') class PaymentSerializer(serializers.ModelSerializer): """支付序列化器""" order = OrderBasicSuccessSerializer @staticmethod def compute_total_price(total_price, exist_bonus=None, bonus_id=None): if not exist_bonus: return total_price else: return total_price-exist_bonus @staticmethod def compute_generate_order_details(request, order_basic, **kwargs): """compute the base information of these goods with appointed counts""" commodity_id_counts = {} # use dict store map between id and counts common_logger.info(type(request.session.get('commodity_list'))) session_commodity_list = request.session.get('commodity_list', None) session_counts_list = request.session.get('counts_list', None) # 防止接口攻击 if session_commodity_list is None or session_counts_list is None: raise Exception total_price = 0 # 订单总价 try: # generate dict for pk, counts in zip(session_commodity_list, session_counts_list): commodity_id_counts[pk] = counts commodity = Commodity.commodity_.select_related('store', 'shopper').filter( pk__in=session_commodity_list) # one hit database for value in commodity: order_details = Order_details.order_details_.create(belong_shopper=value.shopper, commodity=value, order_basic=order_basic, price=value.discounts * value.price, commodity_counts=commodity_id_counts.get(value.pk), ) total_price += value.price * value.discounts * commodity_id_counts.get(value.pk) total_price = PaymentSerializer.compute_total_price(total_price) except Exception as e: order_logger.error(e) return None, 0 else: return total_price, sum(session_counts_list) @staticmethod def get_address(request): return Address.address_.get(user=request.user, default_address=True) @staticmethod def choice_payment(payment=None): """choice the form of payment""" if payment is None: return 3 # 支付宝 else: return payment @staticmethod def create_order(request, user, **data): """create new order""" try: # 是否需要开启事务提交? with transaction.atomic(): orderId = int(round(time.time() * 1000000)) address = PaymentSerializer.get_address(request) # 默认支付方式为支付宝 payment = PaymentSerializer.choice_payment() order_basic = Order_basic.order_basic_.create(consumer=user, region=address, orderId=orderId, payment=payment, **data) total_price, total_counts = PaymentSerializer.compute_generate_order_details(request, order_basic, **data) if total_price is None: raise DatabaseError # update total_price order_basic.total_price = total_price order_basic.save() except DatabaseError as e: # rollback common_logger.info(e) return None else: return order_basic @staticmethod def update(user, **data): """when the transaction is successful,update trade_number,status,checked,remarked or any other""" try: orderId = data.pop('orderId') update_rows = Order_basic.order_basic_.filter(consumer=user, orderId=orderId).update(**data) return True if update_rows else False except Exception as e: order_logger.error(e) return False class Meta: model = PayInformation # fields = ('trade_id', 'generate_time', 'order') fields = '__all__'
moutainhigh/ses-server
ses-app/ses-web-ros/src/main/java/com/redescooter/ses/web/ros/controller/setup/GroupSettingController.java
package com.redescooter.ses.web.ros.controller.setup; import com.redescooter.ses.api.common.annotation.AvoidDuplicateSubmit; import com.redescooter.ses.api.common.vo.base.*; import com.redescooter.ses.api.foundation.vo.setting.GroupResult; import com.redescooter.ses.web.ros.service.setting.RosGroupService; import com.redescooter.ses.web.ros.vo.setting.RosGroupListEnter; import com.redescooter.ses.web.ros.vo.setting.RosSaveGroupEnter; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletResponse; /** * @ClassNameUserProfileController * @Description * @Author Joan * @Date2020/4/27 18:44 * @Version V1.0 **/ @Api(tags = {"ROS-Setting分组"}) @CrossOrigin @RestController @RequestMapping(value = "/setup/setting/group") public class GroupSettingController { @Autowired private RosGroupService rosGroupService; @ApiOperation(value = "分组列表", response = GroupResult.class) @PostMapping(value = "/list") public Response<PageResult<GroupResult>> list(@ModelAttribute @ApiParam("请求参数") RosGroupListEnter enter) { return new Response<>(rosGroupService.list(enter)); } @ApiOperation(value = "详情", response = GroupResult.class) @PostMapping(value = "/detail") public Response<GroupResult> detail(@ModelAttribute @ApiParam("请求参数") IdEnter enter) { return new Response<>(rosGroupService.detail(enter)); } @ApiOperation(value = "删除", response = GeneralResult.class) @PostMapping(value = "/delete") public Response<GeneralResult> delete(@ModelAttribute @ApiParam("请求参数") IdEnter enter) { return new Response<>(rosGroupService.delete(enter)); } @ApiOperation(value = "导出", response = GeneralResult.class) @GetMapping(value = "/export") public Response<GeneralResult> export(@ApiParam("请求参数 id") String id, HttpServletResponse response) { return new Response<>(rosGroupService.export(id, response)); } @ApiOperation(value = "保存", response = GeneralResult.class) @PostMapping(value = "/save") @AvoidDuplicateSubmit public Response<GeneralResult> save(@ModelAttribute @ApiParam("请求参数") RosSaveGroupEnter enter) { return new Response<>(rosGroupService.save(enter)); } }
GabrielNagy/pdk
package-testing/spec/spec_helper_package.rb
<reponame>GabrielNagy/pdk require 'beaker-rspec' require 'beaker-puppet' Dir['./spec/package/support/*.rb'].sort.each { |f| require f } RSpec.shared_context :set_path do let(:path) { windows_node? ? nil : "#{install_dir}/bin:$PATH" } end set :env, PDK_DISABLE_ANALYTICS: 'true' RSpec.configure do |c| c.include SpecUtils c.extend SpecUtils c.before(:suite) do hosts.each do |host| PackageHelpers.install_pdk_on(host) end end c.include_context :set_path # rubocop:disable RSpec/BeforeAfterAll c.before(:all) do RSpec.configuration.logger.log_level = :warn end c.after(:all) do RSpec.configuration.logger.log_level = :verbose end # rubocop:enable RSpec/BeforeAfterAll c.after(:each) do cmd = if windows_node? command('rm -Recurse -Force $env:LOCALAPPDATA/PDK/Cache/ruby') else command('rm -rf ~/.pdk/cache/ruby') end # clear out any cached gems cmd.run end end
BigdataGit/hadoop-learning
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/constraint/TestPlacementProcessor.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse; import org.apache.hadoop.yarn.api.records.Container; import org.apache.hadoop.yarn.api.records.ExecutionType; import org.apache.hadoop.yarn.api.records.ExecutionTypeRequest; import org.apache.hadoop.yarn.api.records.NodeId; import org.apache.hadoop.yarn.api.records.Priority; import org.apache.hadoop.yarn.api.records.RejectedSchedulingRequest; import org.apache.hadoop.yarn.api.records.RejectionReason; import org.apache.hadoop.yarn.api.records.Resource; import org.apache.hadoop.yarn.api.records.ResourceSizing; import org.apache.hadoop.yarn.api.records.SchedulingRequest; import org.apache.hadoop.yarn.api.resource.PlacementConstraint; import org.apache.hadoop.yarn.api.resource.PlacementConstraints; import org.apache.hadoop.yarn.conf.YarnConfiguration; import org.apache.hadoop.yarn.event.Dispatcher; import org.apache.hadoop.yarn.event.DrainDispatcher; import org.apache.hadoop.yarn.server.resourcemanager.MockAM; import org.apache.hadoop.yarn.server.resourcemanager.MockNM; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMApp; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; import static java.lang.Thread.sleep; import static org.apache.hadoop.yarn.api.records.RejectionReason.COULD_NOT_PLACE_ON_NODE; import static org.apache.hadoop.yarn.api.resource.PlacementConstraints.NODE; import static org.apache.hadoop.yarn.api.resource.PlacementConstraints.PlacementTargets.allocationTag; import static org.apache.hadoop.yarn.api.resource.PlacementConstraints.targetCardinality; import static org.apache.hadoop.yarn.api.resource.PlacementConstraints.targetIn; import static org.apache.hadoop.yarn.api.resource.PlacementConstraints.targetNotIn; /** * This tests end2end workflow of the constraint placement framework. */ public class TestPlacementProcessor { private static final int GB = 1024; private static final Logger LOG = LoggerFactory.getLogger(TestPlacementProcessor.class); private MockRM rm; private DrainDispatcher dispatcher; @Before public void createAndStartRM() { CapacitySchedulerConfiguration csConf = new CapacitySchedulerConfiguration(); YarnConfiguration conf = new YarnConfiguration(csConf); conf.setClass(YarnConfiguration.RM_SCHEDULER, CapacityScheduler.class, ResourceScheduler.class); conf.set(YarnConfiguration.RM_PLACEMENT_CONSTRAINTS_HANDLER, YarnConfiguration.PROCESSOR_RM_PLACEMENT_CONSTRAINTS_HANDLER); conf.setInt( YarnConfiguration.RM_PLACEMENT_CONSTRAINTS_RETRY_ATTEMPTS, 1); startRM(conf); } private void startRM(final YarnConfiguration conf) { dispatcher = new DrainDispatcher(); rm = new MockRM(conf) { @Override protected Dispatcher createDispatcher() { return dispatcher; } }; rm.start(); } @After public void stopRM() { if (rm != null) { rm.stop(); } } @Test(timeout = 300000) public void testAntiAffinityPlacement() throws Exception { HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "default"); // Containers with allocationTag 'foo' are restricted to 1 per NODE MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, Collections.singletonMap(Collections.singleton("foo"), PlacementConstraints.build( PlacementConstraints.targetNotIn(NODE, allocationTag("foo"))))); am1.addSchedulingRequest( Arrays.asList(schedulingRequest(1, 1, 1, 512, "foo"), schedulingRequest(1, 2, 1, 512, "foo"), schedulingRequest(1, 3, 1, 512, "foo"), schedulingRequest(1, 5, 1, 512, "foo"))); AllocateResponse allocResponse = am1.schedule(); // send the request List<Container> allocatedContainers = new ArrayList<>(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); // kick the scheduler waitForContainerAllocation(nodes.values(), am1, allocatedContainers, new ArrayList<>(), 4); Assert.assertEquals(4, allocatedContainers.size()); Set<NodeId> nodeIds = allocatedContainers.stream().map(x -> x.getNodeId()) .collect(Collectors.toSet()); // Ensure unique nodes (antiaffinity) Assert.assertEquals(4, nodeIds.size()); QueueMetrics metrics = rm.getResourceScheduler().getRootQueueMetrics(); // Verify Metrics verifyMetrics(metrics, 11264, 11, 5120, 5, 5); } @Test(timeout = 300000) public void testMutualAntiAffinityPlacement() throws Exception { HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); MockNM nm5 = new MockNM("h5:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm5.getNodeId(), nm5); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); nm5.registerNode(); RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "default"); // Containers with allocationTag 'foo' are restricted to 1 per NODE Map<Set<String>, PlacementConstraint> pcMap = new HashMap<>(); pcMap.put(Collections.singleton("foo"), PlacementConstraints.build( PlacementConstraints.targetNotIn(NODE, allocationTag("foo")))); pcMap.put(Collections.singleton("bar"), PlacementConstraints.build( PlacementConstraints.targetNotIn(NODE, allocationTag("foo")))); MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, pcMap); am1.addSchedulingRequest( Arrays.asList(schedulingRequest(1, 1, 1, 512, "bar"), schedulingRequest(1, 2, 1, 512, "foo"), schedulingRequest(1, 3, 1, 512, "foo"), schedulingRequest(1, 4, 1, 512, "foo"), schedulingRequest(1, 5, 1, 512, "foo"))); AllocateResponse allocResponse = am1.schedule(); // send the request List<Container> allocatedContainers = new ArrayList<>(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); // kick the scheduler waitForContainerAllocation(nodes.values(), am1, allocatedContainers, new ArrayList<>(), 5); Assert.assertEquals(5, allocatedContainers.size()); Set<NodeId> nodeIds = allocatedContainers.stream().map(x -> x.getNodeId()) .collect(Collectors.toSet()); // Ensure unique nodes (antiaffinity) Assert.assertEquals(5, nodeIds.size()); QueueMetrics metrics = rm.getResourceScheduler().getRootQueueMetrics(); // Verify Metrics verifyMetrics(metrics, 14336, 14, 6144, 6, 6); } @Test(timeout = 300000) public void testCardinalityPlacement() throws Exception { HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 8192, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 8192, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 8192, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 8192, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "default"); // Containers with allocationTag 'foo' should not exceed 4 per NODE MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, Collections.singletonMap(Collections.singleton("foo"), PlacementConstraints.build(PlacementConstraints .targetCardinality(NODE, 0, 3, allocationTag("foo"))))); am1.addSchedulingRequest( Arrays.asList(schedulingRequest(1, 1, 1, 512, "foo"), schedulingRequest(1, 2, 1, 512, "foo"), schedulingRequest(1, 3, 1, 512, "foo"), schedulingRequest(1, 4, 1, 512, "foo"), schedulingRequest(1, 5, 1, 512, "foo"), schedulingRequest(1, 6, 1, 512, "foo"), schedulingRequest(1, 7, 1, 512, "foo"), schedulingRequest(1, 8, 1, 512, "foo"))); AllocateResponse allocResponse = am1.schedule(); // send the request List<Container> allocatedContainers = new ArrayList<>(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); // kick the scheduler waitForContainerAllocation(nodes.values(), am1, allocatedContainers, new ArrayList<>(), 8); Assert.assertEquals(8, allocatedContainers.size()); Map<NodeId, Long> nodeIdContainerIdMap = allocatedContainers.stream().collect( Collectors.groupingBy(c -> c.getNodeId(), Collectors.counting())); // Ensure no more than 4 containers per node for (NodeId n : nodeIdContainerIdMap.keySet()) { Assert.assertTrue(nodeIdContainerIdMap.get(n) < 5); } QueueMetrics metrics = rm.getResourceScheduler().getRootQueueMetrics(); // Verify Metrics verifyMetrics(metrics, 23552, 23, 9216, 9, 9); } @Test(timeout = 300000) public void testAffinityPlacement() throws Exception { HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 8192, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 8192, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 8192, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 8192, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "default"); // Containers with allocationTag 'foo' should be placed where // containers with allocationTag 'bar' are already running MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, Collections.singletonMap(Collections.singleton("foo"), PlacementConstraints.build( PlacementConstraints.targetIn(NODE, allocationTag("bar"))))); am1.addSchedulingRequest( Arrays.asList(schedulingRequest(1, 1, 1, 512, "bar"), schedulingRequest(1, 2, 1, 512, "foo"), schedulingRequest(1, 3, 1, 512, "foo"), schedulingRequest(1, 4, 1, 512, "foo"), schedulingRequest(1, 5, 1, 512, "foo"))); AllocateResponse allocResponse = am1.schedule(); // send the request List<Container> allocatedContainers = new ArrayList<>(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); // kick the scheduler waitForContainerAllocation(nodes.values(), am1, allocatedContainers, new ArrayList<>(), 5); Assert.assertEquals(5, allocatedContainers.size()); Set<NodeId> nodeIds = allocatedContainers.stream().map(x -> x.getNodeId()) .collect(Collectors.toSet()); // Ensure all containers end up on the same node (affinity) Assert.assertEquals(1, nodeIds.size()); QueueMetrics metrics = rm.getResourceScheduler().getRootQueueMetrics(); // Verify Metrics verifyMetrics(metrics, 26624, 26, 6144, 6, 6); } @Test(timeout = 300000) public void testComplexPlacement() throws Exception { HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "default"); Map<Set<String>, PlacementConstraint> constraintMap = new HashMap<>(); // Containers with allocationTag 'bar' should not exceed 1 per NODE constraintMap.put(Collections.singleton("bar"), PlacementConstraints.build(targetNotIn(NODE, allocationTag("bar")))); // Containers with allocationTag 'foo' should be placed where 'bar' exists constraintMap.put(Collections.singleton("foo"), PlacementConstraints.build(targetIn(NODE, allocationTag("bar")))); // Containers with allocationTag 'foo' should not exceed 2 per NODE constraintMap.put(Collections.singleton("foo"), PlacementConstraints .build(targetCardinality(NODE, 0, 1, allocationTag("foo")))); MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, constraintMap); am1.addSchedulingRequest( Arrays.asList(schedulingRequest(1, 1, 1, 512, "bar"), schedulingRequest(1, 2, 1, 512, "bar"), schedulingRequest(1, 3, 1, 512, "foo"), schedulingRequest(1, 4, 1, 512, "foo"), schedulingRequest(1, 5, 1, 512, "foo"), schedulingRequest(1, 6, 1, 512, "foo"))); AllocateResponse allocResponse = am1.schedule(); // send the request List<Container> allocatedContainers = new ArrayList<>(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); // kick the scheduler waitForContainerAllocation(nodes.values(), am1, allocatedContainers, new ArrayList<>(), 6); Assert.assertEquals(6, allocatedContainers.size()); Map<NodeId, Long> nodeIdContainerIdMap = allocatedContainers.stream().collect( Collectors.groupingBy(c -> c.getNodeId(), Collectors.counting())); // Ensure no more than 3 containers per node (1 'bar', 2 'foo') for (NodeId n : nodeIdContainerIdMap.keySet()) { Assert.assertTrue(nodeIdContainerIdMap.get(n) < 4); } QueueMetrics metrics = rm.getResourceScheduler().getRootQueueMetrics(); // Verify Metrics verifyMetrics(metrics, 9216, 9, 7168, 7, 7); } @Test(timeout = 300000) public void testSchedulerRejection() throws Exception { stopRM(); CapacitySchedulerConfiguration csConf = new CapacitySchedulerConfiguration(); csConf.setQueues(CapacitySchedulerConfiguration.ROOT, new String[] {"a", "b"}); csConf.setCapacity(CapacitySchedulerConfiguration.ROOT + ".a", 15.0f); csConf.setCapacity(CapacitySchedulerConfiguration.ROOT + ".b", 85.0f); YarnConfiguration conf = new YarnConfiguration(csConf); conf.setClass(YarnConfiguration.RM_SCHEDULER, CapacityScheduler.class, ResourceScheduler.class); conf.set(YarnConfiguration.RM_PLACEMENT_CONSTRAINTS_HANDLER, YarnConfiguration.PROCESSOR_RM_PLACEMENT_CONSTRAINTS_HANDLER); startRM(conf); HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "a"); // Containers with allocationTag 'foo' are restricted to 1 per NODE MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, Collections.singletonMap( Collections.singleton("foo"), PlacementConstraints.build( PlacementConstraints.targetNotIn(NODE, allocationTag("foo"))) )); am1.addSchedulingRequest( Arrays.asList( schedulingRequest(1, 1, 1, 512, "foo"), schedulingRequest(1, 2, 1, 512, "foo"), schedulingRequest(1, 3, 1, 512, "foo"), // Ask for a container larger than the node schedulingRequest(1, 4, 1, 512, "foo")) ); AllocateResponse allocResponse = am1.schedule(); // send the request List<Container> allocatedContainers = new ArrayList<>(); List<RejectedSchedulingRequest> rejectedReqs = new ArrayList<>(); int allocCount = 1; allocatedContainers.addAll(allocResponse.getAllocatedContainers()); rejectedReqs.addAll(allocResponse.getRejectedSchedulingRequests()); // kick the scheduler while (allocCount < 11) { nm1.nodeHeartbeat(true); nm2.nodeHeartbeat(true); nm3.nodeHeartbeat(true); nm4.nodeHeartbeat(true); LOG.info("Waiting for containers to be created for app 1..."); sleep(1000); allocResponse = am1.schedule(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); rejectedReqs.addAll(allocResponse.getRejectedSchedulingRequests()); allocCount++; if (rejectedReqs.size() > 0 && allocatedContainers.size() > 2) { break; } } Assert.assertEquals(3, allocatedContainers.size()); Set<NodeId> nodeIds = allocatedContainers.stream() .map(x -> x.getNodeId()).collect(Collectors.toSet()); // Ensure unique nodes Assert.assertEquals(3, nodeIds.size()); RejectedSchedulingRequest rej = rejectedReqs.get(0); Assert.assertEquals(4, rej.getRequest().getAllocationRequestId()); Assert.assertEquals(RejectionReason.COULD_NOT_SCHEDULE_ON_NODE, rej.getReason()); QueueMetrics metrics = rm.getResourceScheduler().getRootQueueMetrics(); // Verify Metrics verifyMetrics(metrics, 12288, 12, 4096, 4, 4); } @Test(timeout = 300000) public void testNodeCapacityRejection() throws Exception { HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "default"); // Containers with allocationTag 'foo' are restricted to 1 per NODE MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, Collections.singletonMap( Collections.singleton("foo"), PlacementConstraints.build( PlacementConstraints.targetNotIn(NODE, allocationTag("foo"))) )); am1.addSchedulingRequest( Arrays.asList( schedulingRequest(1, 1, 1, 512, "foo"), schedulingRequest(1, 2, 1, 512, "foo"), schedulingRequest(1, 3, 1, 512, "foo"), // Ask for a container larger than the node schedulingRequest(1, 4, 1, 5120, "foo")) ); AllocateResponse allocResponse = am1.schedule(); // send the request List<Container> allocatedContainers = new ArrayList<>(); List<RejectedSchedulingRequest> rejectedReqs = new ArrayList<>(); int allocCount = 1; allocatedContainers.addAll(allocResponse.getAllocatedContainers()); rejectedReqs.addAll(allocResponse.getRejectedSchedulingRequests()); // kick the scheduler while (allocCount < 11) { nm1.nodeHeartbeat(true); nm2.nodeHeartbeat(true); nm3.nodeHeartbeat(true); nm4.nodeHeartbeat(true); LOG.info("Waiting for containers to be created for app 1..."); sleep(1000); allocResponse = am1.schedule(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); rejectedReqs.addAll(allocResponse.getRejectedSchedulingRequests()); allocCount++; if (rejectedReqs.size() > 0 && allocatedContainers.size() > 2) { break; } } Assert.assertEquals(3, allocatedContainers.size()); Set<NodeId> nodeIds = allocatedContainers.stream() .map(x -> x.getNodeId()).collect(Collectors.toSet()); // Ensure unique nodes Assert.assertEquals(3, nodeIds.size()); RejectedSchedulingRequest rej = rejectedReqs.get(0); Assert.assertEquals(4, rej.getRequest().getAllocationRequestId()); Assert.assertEquals(RejectionReason.COULD_NOT_PLACE_ON_NODE, rej.getReason()); QueueMetrics metrics = rm.getResourceScheduler().getRootQueueMetrics(); // Verify Metrics verifyMetrics(metrics, 12288, 12, 4096, 4, 4); } @Test(timeout = 300000) public void testRePlacementAfterSchedulerRejection() throws Exception { stopRM(); CapacitySchedulerConfiguration csConf = new CapacitySchedulerConfiguration(); YarnConfiguration conf = new YarnConfiguration(csConf); conf.setClass(YarnConfiguration.RM_SCHEDULER, CapacityScheduler.class, ResourceScheduler.class); conf.set(YarnConfiguration.RM_PLACEMENT_CONSTRAINTS_HANDLER, YarnConfiguration.PROCESSOR_RM_PLACEMENT_CONSTRAINTS_HANDLER); conf.setInt( YarnConfiguration.RM_PLACEMENT_CONSTRAINTS_RETRY_ATTEMPTS, 2); startRM(conf); HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); MockNM nm5 = new MockNM("h5:1234", 8192, rm.getResourceTrackerService()); nodes.put(nm5.getNodeId(), nm5); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); // Do not register nm5 yet.. RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "default"); // Containers with allocationTag 'foo' are restricted to 1 per NODE MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, Collections.singletonMap( Collections.singleton("foo"), PlacementConstraints.build( PlacementConstraints.targetNotIn(NODE, allocationTag("foo"))) )); am1.addSchedulingRequest( Arrays.asList( schedulingRequest(1, 1, 1, 512, "foo"), schedulingRequest(1, 2, 1, 512, "foo"), schedulingRequest(1, 3, 1, 512, "foo"), // Ask for a container larger than the node schedulingRequest(1, 4, 1, 5120, "foo")) ); AllocateResponse allocResponse = am1.schedule(); // send the request List<Container> allocatedContainers = new ArrayList<>(); List<RejectedSchedulingRequest> rejectedReqs = new ArrayList<>(); int allocCount = 1; allocatedContainers.addAll(allocResponse.getAllocatedContainers()); rejectedReqs.addAll(allocResponse.getRejectedSchedulingRequests()); // Register node5 only after first allocate - so the initial placement // for the large schedReq goes to some other node.. nm5.registerNode(); // kick the scheduler while (allocCount < 11) { nm1.nodeHeartbeat(true); nm2.nodeHeartbeat(true); nm3.nodeHeartbeat(true); nm4.nodeHeartbeat(true); nm5.nodeHeartbeat(true); LOG.info("Waiting for containers to be created for app 1..."); sleep(1000); allocResponse = am1.schedule(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); rejectedReqs.addAll(allocResponse.getRejectedSchedulingRequests()); allocCount++; if (allocatedContainers.size() > 3) { break; } } Assert.assertEquals(4, allocatedContainers.size()); Set<NodeId> nodeIds = allocatedContainers.stream() .map(x -> x.getNodeId()).collect(Collectors.toSet()); // Ensure unique nodes Assert.assertEquals(4, nodeIds.size()); QueueMetrics metrics = rm.getResourceScheduler().getRootQueueMetrics(); // Verify Metrics verifyMetrics(metrics, 15360, 19, 9216, 5, 5); } @Test(timeout = 300000) public void testPlacementRejection() throws Exception { HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 4096, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "default"); // Containers with allocationTag 'foo' are restricted to 1 per NODE MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, Collections.singletonMap( Collections.singleton("foo"), PlacementConstraints.build( PlacementConstraints.targetNotIn(NODE, allocationTag("foo"))) )); am1.addSchedulingRequest( Arrays.asList( schedulingRequest(1, 1, 1, 512, "foo"), schedulingRequest(1, 2, 1, 512, "foo"), schedulingRequest(1, 3, 1, 512, "foo"), schedulingRequest(1, 4, 1, 512, "foo"), // Ask for more containers than nodes schedulingRequest(1, 5, 1, 512, "foo")) ); AllocateResponse allocResponse = am1.schedule(); // send the request List<Container> allocatedContainers = new ArrayList<>(); List<RejectedSchedulingRequest> rejectedReqs = new ArrayList<>(); int allocCount = 1; allocatedContainers.addAll(allocResponse.getAllocatedContainers()); rejectedReqs.addAll(allocResponse.getRejectedSchedulingRequests()); // kick the scheduler while (allocCount < 11) { nm1.nodeHeartbeat(true); nm2.nodeHeartbeat(true); nm3.nodeHeartbeat(true); nm4.nodeHeartbeat(true); LOG.info("Waiting for containers to be created for app 1..."); sleep(1000); allocResponse = am1.schedule(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); rejectedReqs.addAll(allocResponse.getRejectedSchedulingRequests()); allocCount++; if (rejectedReqs.size() > 0 && allocatedContainers.size() > 3) { break; } } Assert.assertEquals(4, allocatedContainers.size()); Set<NodeId> nodeIds = allocatedContainers.stream() .map(x -> x.getNodeId()).collect(Collectors.toSet()); // Ensure unique nodes Assert.assertEquals(4, nodeIds.size()); RejectedSchedulingRequest rej = rejectedReqs.get(0); Assert.assertEquals(COULD_NOT_PLACE_ON_NODE, rej.getReason()); QueueMetrics metrics = rm.getResourceScheduler().getRootQueueMetrics(); // Verify Metrics verifyMetrics(metrics, 11264, 11, 5120, 5, 5); } @Test(timeout = 300000) public void testAndOrPlacement() throws Exception { HashMap<NodeId, MockNM> nodes = new HashMap<>(); MockNM nm1 = new MockNM("h1:1234", 40960, 100, rm.getResourceTrackerService()); nodes.put(nm1.getNodeId(), nm1); MockNM nm2 = new MockNM("h2:1234", 40960, 100, rm.getResourceTrackerService()); nodes.put(nm2.getNodeId(), nm2); MockNM nm3 = new MockNM("h3:1234", 40960, 100, rm.getResourceTrackerService()); nodes.put(nm3.getNodeId(), nm3); MockNM nm4 = new MockNM("h4:1234", 40960, 100, rm.getResourceTrackerService()); nodes.put(nm4.getNodeId(), nm4); nm1.registerNode(); nm2.registerNode(); nm3.registerNode(); nm4.registerNode(); RMApp app1 = rm.submitApp(1 * GB, "app", "user", null, "default"); // Register app1 with following constraints // 1) foo anti-affinity with foo on node // 2) bar anti-affinity with foo on node AND maxCardinality = 2 // 3) moo affinity with foo OR bar Map<Set<String>, PlacementConstraint> app1Constraints = new HashMap<>(); app1Constraints.put(Collections.singleton("foo"), PlacementConstraints.build( PlacementConstraints.targetNotIn(NODE, allocationTag("foo")))); app1Constraints.put(Collections.singleton("bar"), PlacementConstraints.build( PlacementConstraints.and( PlacementConstraints.targetNotIn(NODE, allocationTag("foo")), PlacementConstraints.maxCardinality(NODE, 2, "bar")))); app1Constraints.put(Collections.singleton("moo"), PlacementConstraints.build( PlacementConstraints.or( PlacementConstraints.targetIn(NODE, allocationTag("foo")), PlacementConstraints.targetIn(NODE, allocationTag("bar"))))); MockAM am1 = MockRM.launchAndRegisterAM(app1, rm, nm2, app1Constraints); // Allocates 3 foo containers on 3 different nodes, // in anti-affinity fashion. am1.addSchedulingRequest( Arrays.asList( schedulingRequest(1, 1, 1, 512, "foo"), schedulingRequest(1, 2, 1, 512, "foo"), schedulingRequest(1, 3, 1, 512, "foo") )); List<Container> allocatedContainers = new ArrayList<>(); waitForContainerAllocation(nodes.values(), am1, allocatedContainers, new ArrayList<>(), 3); printTags(nodes.values(), rm.getRMContext().getAllocationTagsManager()); Assert.assertEquals(3, allocatedContainers.size()); /** Testing AND placement constraint**/ // Now allocates a bar container, as restricted by the AND constraint, // bar could be only allocated to the node without foo am1.addSchedulingRequest( Arrays.asList( schedulingRequest(1, 1, 1, 512, "bar") )); allocatedContainers.clear(); waitForContainerAllocation(nodes.values(), am1, allocatedContainers, new ArrayList<>(), 1); printTags(nodes.values(), rm.getRMContext().getAllocationTagsManager()); Assert.assertEquals(1, allocatedContainers.size()); NodeId barNode = allocatedContainers.get(0).getNodeId(); // Sends another 3 bar request, 2 of them can be allocated // as maxCardinality is 2, for placed containers, they should be all // on the node where the last bar was placed. allocatedContainers.clear(); List<RejectedSchedulingRequest> rejectedContainers = new ArrayList<>(); am1.addSchedulingRequest( Arrays.asList( schedulingRequest(1, 2, 1, 512, "bar"), schedulingRequest(1, 3, 1, 512, "bar"), schedulingRequest(1, 4, 1, 512, "bar") )); waitForContainerAllocation(nodes.values(), am1, allocatedContainers, rejectedContainers, 2); printTags(nodes.values(), rm.getRMContext().getAllocationTagsManager()); Assert.assertEquals(2, allocatedContainers.size()); Assert.assertTrue(allocatedContainers.stream().allMatch( container -> container.getNodeId().equals(barNode))); // The third request could not be satisfied because it violates // the cardinality constraint. Validate rejected request correctly // capture this. Assert.assertEquals(1, rejectedContainers.size()); Assert.assertEquals(COULD_NOT_PLACE_ON_NODE, rejectedContainers.get(0).getReason()); /** Testing OR placement constraint**/ // Register one more NM for testing MockNM nm5 = new MockNM("h5:1234", 4096, 100, rm.getResourceTrackerService()); nodes.put(nm5.getNodeId(), nm5); nm5.registerNode(); nm5.nodeHeartbeat(true); List<SchedulingRequest> mooRequests = new ArrayList<>(); for (int i=5; i<25; i++) { mooRequests.add(schedulingRequest(1, i, 1, 100, "moo")); } am1.addSchedulingRequest(mooRequests); allocatedContainers.clear(); waitForContainerAllocation(nodes.values(), am1, allocatedContainers, new ArrayList<>(), 20); // All 20 containers should be allocated onto nodes besides nm5, // because moo affinity to foo or bar which only exists on rest of nodes. Assert.assertEquals(20, allocatedContainers.size()); for (Container mooContainer : allocatedContainers) { // nm5 has no moo allocated containers. Assert.assertFalse(mooContainer.getNodeId().equals(nm5.getNodeId())); } } private static void printTags(Collection<MockNM> nodes, AllocationTagsManager atm){ for (MockNM nm : nodes) { Map<String, Long> nmTags = atm .getAllocationTagsWithCount(nm.getNodeId()); StringBuffer sb = new StringBuffer(); if (nmTags != null) { nmTags.forEach((tag, count) -> sb.append(tag + "(" + count + "),")); LOG.info("nm_" + nm.getNodeId() + ": " + sb.toString()); } } } private static void waitForContainerAllocation(Collection<MockNM> nodes, MockAM am, List<Container> allocatedContainers, List<RejectedSchedulingRequest> rejectedRequests, int containerNum) throws Exception { int attemptCount = 10; while (allocatedContainers.size() < containerNum && attemptCount > 0) { for (MockNM node : nodes) { node.nodeHeartbeat(true); } LOG.info("Waiting for containers to be created for " + am.getApplicationAttemptId().getApplicationId() + "..."); sleep(1000); AllocateResponse allocResponse = am.schedule(); allocatedContainers.addAll(allocResponse.getAllocatedContainers()); rejectedRequests.addAll(allocResponse.getRejectedSchedulingRequests()); attemptCount--; } } protected static SchedulingRequest schedulingRequest( int priority, long allocReqId, int cores, int mem, String... tags) { return schedulingRequest(priority, allocReqId, cores, mem, ExecutionType.GUARANTEED, tags); } protected static SchedulingRequest schedulingRequest( int priority, long allocReqId, int cores, int mem, ExecutionType execType, String... tags) { return SchedulingRequest.newBuilder() .priority(Priority.newInstance(priority)) .allocationRequestId(allocReqId) .allocationTags(new HashSet<>(Arrays.asList(tags))) .executionType(ExecutionTypeRequest.newInstance(execType, true)) .resourceSizing( ResourceSizing.newInstance(1, Resource.newInstance(mem, cores))) .build(); } private static void verifyMetrics(QueueMetrics metrics, long availableMB, int availableVirtualCores, long allocatedMB, int allocatedVirtualCores, int allocatedContainers) { Assert.assertEquals(availableMB, metrics.getAvailableMB()); Assert.assertEquals(availableVirtualCores, metrics.getAvailableVirtualCores()); Assert.assertEquals(allocatedMB, metrics.getAllocatedMB()); Assert.assertEquals(allocatedVirtualCores, metrics.getAllocatedVirtualCores()); Assert.assertEquals(allocatedContainers, metrics.getAllocatedContainers()); } }
PrynsTag/oneBarangay
ocr/tests.py
"""Create your OCR tests here."""
darenr/MOMA-Art
geotagger/nationality-to-countrycode.py
<gh_stars>1-10 country_mappings = { 'Afghani': 'AFG', 'Albanian': 'ALB', 'Antarctic': 'ATA', 'Algerian': 'DZA', 'Samoan': 'ASM', 'Andorran': 'AND', 'Angolan': 'AGO', 'Antiguan': 'ATG', 'Azerbaijani': 'AZE', 'Argentine': 'ARG', 'Australian': 'AUS', 'Austrian': 'AUT', 'Bahameese': 'BHS', 'Bahrainian': 'BHR', 'Bangladeshi': 'BGD', 'Armenian': 'ARM', 'Barbadian': 'BRB', 'Belgian': 'BEL', 'Bermudan': 'BMU', 'Bhutanese': 'BTN', 'Bolivian': 'BOL', 'Bosnian': 'BIH', 'Motswana': 'BWA', 'Brazilian': 'BRA', 'Belizean': 'BLZ', 'Solomon Islander': 'SLB', 'Virgin Islander': 'VGB', 'Bruneian': 'BRN', 'Bulgarian': 'BGR', 'Myanmarese': 'MMR', 'Burundian': 'BDI', 'Belarusian': 'BLR', 'Cambodian': 'KHM', 'Cameroonian': 'CMR', 'Canadian': 'CAN', 'Cape Verdean': 'CPV', 'Caymanian': 'CYM', 'Central African': 'CAF', 'Sri Lankan': 'LKA', 'Chadian': 'TCD', 'Chilean': 'CHL', 'Chinese': 'CHN', 'Taiwanese': 'TWN', 'Christmas Islander': 'CXR', 'Cocossian': 'CCK', 'Colombian': 'COL', 'Comoran': 'COM', 'Mahoran': 'MYT', 'Congolese': 'COG', 'Congolese': 'COD', 'Cook Islander': 'COK', 'Costa Rican': 'CRI', 'Croatian': 'HRV', 'Cuban': 'CUB', 'Cypriot': 'CYP', 'Czech': 'CZE', 'Beninese': 'BEN', 'Danish': 'DNK', 'Dominican': 'DMA', 'Dominican': 'DOM', 'Ecuadorean': 'ECU', 'Salvadorean': 'SLV', 'Equatorial Guinean': 'GNQ', 'Ethiopian': 'ETH', 'Eritrean': 'ERI', 'Estonian': 'EST', 'Faroese': 'FRO', 'Falkland Islander': 'FLK', 'Fijian': 'FJI', 'Finnish': 'FIN', 'Ålandic': 'ALA', 'French': 'FRA', 'French Guianese': 'GUF', 'French Polynesian': 'PYF', 'Djiboutian': 'DJI', 'Gabonese': 'GAB', 'Georgian': 'GEO', 'Gambian': 'GMB', 'Palestinian': 'PSE', 'German': 'DEU', 'Ghanaian': 'GHA', 'Gibralterian': 'GIB', 'I-Kiribati': 'KIR', 'Greek': 'GRC', 'Greenlander': 'GRL', 'Grenadian': 'GRD', 'Guadeloupean': 'GLP', 'Guamanian': 'GUM', 'Guatemalan': 'GTM', 'Guinean': 'GIN', 'Guyanese': 'GUY', 'Haitian': 'HTI', 'Honduran': 'HND', 'Hong Konger': 'HKG', 'Hungarian': 'HUN', 'Icelander': 'ISL', 'Indian': 'IND', 'Indonesian': 'IDN', 'Iranian': 'IRN', 'Iraqi': 'IRQ', 'Irish': 'IRL', 'Israeli': 'ISR', 'Italian': 'ITA', 'Ivorian': 'CIV', 'Jamaican': 'JAM', 'Japanese': 'JPN', 'Kazakhstani': 'KAZ', 'Jordanian': 'JOR', 'Kenyan': 'KEN', 'North Korean': 'PRK', 'South Korean': 'KOR', 'Kuwaiti': 'KWT', 'Kyrgyzstani': 'KGZ', 'Laotian': 'LAO', 'Lebanese': 'LBN', 'Mosotho': 'LSO', 'Latvian': 'LVA', 'Liberian': 'LBR', 'Libyan': 'LBY', 'Liechtensteiner': 'LIE', 'Lithunian': 'LTU', 'Luxembourger': 'LUX', 'Macanese': 'MAC', 'Malagasy': 'MDG', 'Malawian': 'MWI', 'Malaysian': 'MYS', 'Maldivan': 'MDV', 'Malian': 'MLI', 'Maltese': 'MLT', 'Martinican': 'MTQ', 'Mauritanian': 'MRT', 'Mauritian': 'MUS', 'Mexican': 'MEX', 'Monacan': 'MCO', 'Mongolian': 'MNG', 'Moldovan': 'MDA', 'Montenegrin': 'MNE', 'Montserratian': 'MSR', 'Moroccan': 'MAR', 'Mozambican': 'MOZ', 'Omani': 'OMN', 'Namibian': 'NAM', 'Nauruan': 'NRU', 'Nepalese': 'NPL', 'Dutch': 'NLD', 'Curaçaoan': 'CUW', 'Arubian': 'ABW', 'New Caledonian': 'NCL', 'Ni-Vanuatu': 'VUT', 'New Zealander': 'NZL', 'Nicaraguan': 'NIC', 'Nigerien': 'NER', 'Nigerian': 'NGA', 'Niuean': 'NIU', 'Norfolk Islander': 'NFK', 'Norwegian': 'NOR', 'Northern Mariana Islander': 'MNP', 'Micronesian': 'FSM', 'Marshallese': 'MHL', 'Palauan': 'PLW', 'Pakistani': 'PAK', 'Panamanian': 'PAN', 'Papua New Guinean': 'PNG', 'Paraguayan': 'PRY', 'Peruvian': 'PER', 'Filipino': 'PHL', 'Pitcairn Islander': 'PCN', 'Polish': 'POL', 'Portuguese': 'PRT', 'Guinean': 'GNB', 'Timorese': 'TLS', 'Puerto Rican': 'PRI', 'Qatari': 'QAT', 'Romanian': 'ROU', 'Russian': 'RUS', 'Rwandan': 'RWA', 'Barthélemois': 'BLM', 'Saint Helenian': 'SHN', 'Kittian': 'KNA', 'Anguillan': 'AIA', 'Saint Lucian': 'LCA', 'Saint-Pierrais': 'SPM', 'Saint Vincentian': 'VCT', 'Sanmarinese': 'SMR', 'São Tomean': 'STP', 'Saudi Arabian': 'SAU', 'Senegalese': 'SEN', 'Serbian': 'SRB', 'Seychellois': 'SYC', 'Sierra Leonean': 'SLE', 'Singaporean': 'SGP', 'Slovakian': 'SVK', 'Vietnamese': 'VNM', 'Slovenian': 'SVN', 'Somali': 'SOM', 'South African': 'ZAF', 'Zimbabwean': 'ZWE', 'Spanish': 'ESP', 'Sudanese': 'SSD', 'Sudanese': 'SDN', 'Western Saharan': 'ESH', 'Surinamer': 'SUR', 'Swazi': 'SWZ', 'Swedish': 'SWE', 'Swiss': 'CHE', 'Syrian': 'SYR', 'Tajikistani': 'TJK', 'Thai': 'THA', 'Togolese': 'TGO', 'Tokelauan': 'TKL', 'Tongan': 'TON', 'Trinidadian': 'TTO', 'Emirian': 'ARE', 'Tunisian': 'TUN', 'Turkish': 'TUR', 'Turkmen': 'TKM', 'Turks and Caicos Islander': 'TCA', 'Tuvaluan': 'TUV', 'Ugandan': 'UGA', 'Ukrainian': 'UKR', 'Macedonian': 'MKD', 'Egyptian': 'EGY', 'British': 'GBR', 'Manx': 'IMN', 'Tanzanian': 'TZA', 'American': 'USA', 'Virgin Islander': 'VIR', 'Burkinabe': 'BFA', 'Uruguayan': 'URY', 'Uzbekistani': 'UZB', 'Venezuelan': 'VEN', 'Wallisian': 'WLF', 'Samoan': 'WSM', 'Yemeni': 'YEM', 'Zambian': 'ZMB' }
amikey/elasticsearch
modules/lang-painless/src/main/java/org/elasticsearch/painless/antlr/PainlessParserBaseVisitor.java
// ANTLR GENERATED CODE: DO NOT EDIT package org.elasticsearch.painless.antlr; import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor; /** * This class provides an empty implementation of {@link PainlessParserVisitor}, * which can be extended to create a visitor which only needs to handle a subset * of the available methods. * * @param <T> The return type of the visit operation. Use {@link Void} for * operations with no return type. */ class PainlessParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements PainlessParserVisitor<T> { /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitSource(PainlessParser.SourceContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitIf(PainlessParser.IfContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitWhile(PainlessParser.WhileContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitDo(PainlessParser.DoContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitFor(PainlessParser.ForContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitDecl(PainlessParser.DeclContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitContinue(PainlessParser.ContinueContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitBreak(PainlessParser.BreakContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitReturn(PainlessParser.ReturnContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitTry(PainlessParser.TryContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitThrow(PainlessParser.ThrowContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitExpr(PainlessParser.ExprContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitMultiple(PainlessParser.MultipleContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitSingle(PainlessParser.SingleContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitEmpty(PainlessParser.EmptyContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitEmptyscope(PainlessParser.EmptyscopeContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitInitializer(PainlessParser.InitializerContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitAfterthought(PainlessParser.AfterthoughtContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitDeclaration(PainlessParser.DeclarationContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitDecltype(PainlessParser.DecltypeContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitDeclvar(PainlessParser.DeclvarContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitTrap(PainlessParser.TrapContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitIdentifier(PainlessParser.IdentifierContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitGeneric(PainlessParser.GenericContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitComp(PainlessParser.CompContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitRead(PainlessParser.ReadContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitBool(PainlessParser.BoolContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitConditional(PainlessParser.ConditionalContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitAssignment(PainlessParser.AssignmentContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitFalse(PainlessParser.FalseContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitNumeric(PainlessParser.NumericContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitUnary(PainlessParser.UnaryContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitPrecedence(PainlessParser.PrecedenceContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitPreinc(PainlessParser.PreincContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitPostinc(PainlessParser.PostincContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitCast(PainlessParser.CastContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitNull(PainlessParser.NullContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitBinary(PainlessParser.BinaryContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitTrue(PainlessParser.TrueContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitChain(PainlessParser.ChainContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitLinkprec(PainlessParser.LinkprecContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitLinkcast(PainlessParser.LinkcastContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitLinkbrace(PainlessParser.LinkbraceContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitLinkdot(PainlessParser.LinkdotContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitLinkcall(PainlessParser.LinkcallContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitLinkvar(PainlessParser.LinkvarContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitLinkfield(PainlessParser.LinkfieldContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitLinknew(PainlessParser.LinknewContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitLinkstring(PainlessParser.LinkstringContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */ @Override public T visitArguments(PainlessParser.ArgumentsContext ctx) { return visitChildren(ctx); } }
Lewington-pitsos/mlutils
lepmlutils/pdutils/droptfm.py
from .transform import Transform from .taggeddataframe import TaggedDataFrame from .coltag import ColTag from typing import List import pandas as pd # DropTfm removes a number of columns from a dataframe. class DropTfm(Transform): def __init__(self, to_drop: List[str]): self.to_drop = to_drop def operate(self, df: TaggedDataFrame) -> None: df.frame.drop(self.to_drop, axis=1, inplace=True) df.remove(self.to_drop) # Alias for operate. def re_operate(self, new_df: TaggedDataFrame) -> None: self.operate(new_df)
giuraionut/task-manager
api/src/main/java/com/example/api/user/UserController.java
package com.example.api.user; import com.example.api.jwt.AuthorVerifier; import com.example.api.misc.MiscService; import com.example.api.response.Response; import lombok.AllArgsConstructor; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import javax.crypto.SecretKey; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.time.LocalDateTime; @RestController @RequestMapping(path = "user") @AllArgsConstructor public class UserController { private final UserService userService; private final MiscService miscService; private final SecretKey secretKey; //------------------------------------------------------------------------------------------------------------------ @PostMapping(path = "new") public ResponseEntity<Object> register(@RequestBody User newUser) { Response response = new Response(); response.setTimestamp(LocalDateTime.now()); response.setStatus(HttpStatus.OK); String checkUser = this.userService.checkUserReg(newUser); if (!checkUser.equals("ok")) { response.setMessage(checkUser); response.setError("invalid user"); return new ResponseEntity<>(response, HttpStatus.OK); } if (this.userService.emailExists(newUser) || this.userService.usernameExists(newUser)) { response.setMessage("Email or username already exists"); response.setError("duplicate found"); } else { response.setMessage("Registration successfully"); response.setError("none"); this.userService.add(newUser); } return new ResponseEntity<>(response, HttpStatus.OK); } //------------------------------------------------------------------------------------------------------------------ @PostMapping(path = "signout") @PreAuthorize("hasAuthority('ROLE_USER') or hasAuthority('ROLE_MEMBER') or hasAuthority('ROLE_LEADER')") public ResponseEntity<Object> logout(HttpServletResponse HttpResponse) { Cookie jwtToken = new Cookie("jwtToken", null); jwtToken.setSecure(false); jwtToken.setDomain("localhost"); jwtToken.setPath("/"); jwtToken.setHttpOnly(true); jwtToken.setMaxAge(0); HttpResponse.addCookie(jwtToken); Response response = new Response(); response.setTimestamp(LocalDateTime.now()); response.setStatus(HttpStatus.OK); response.setError("none"); response.setMessage("Signed out successfully"); return new ResponseEntity<>(response, HttpStatus.OK); } //------------------------------------------------------------------------------------------------------------------ @PutMapping(path = "name") @PreAuthorize("hasAuthority('ROLE_USER') or hasAuthority('ROLE_MEMBER') or hasAuthority('ROLE_LEADER')") public ResponseEntity<Object> changeName(@RequestBody User user, HttpServletRequest request) { Response response = new Response(); response.setTimestamp(LocalDateTime.now()); response.setStatus(HttpStatus.OK); AuthorVerifier authorVerifier = new AuthorVerifier(request, secretKey); if (this.userService.exists(authorVerifier.getRequesterId())) { response.setMessage("Name changed successfully"); response.setError("none"); this.userService.changeName(user, authorVerifier.getRequesterId()); } else { response.setMessage("User does not exists"); response.setError("not found"); return new ResponseEntity<>(response, HttpStatus.OK); } return new ResponseEntity<>(response, HttpStatus.OK); } //------------------------------------------------------------------------------------------------------------------ @GetMapping(path = "profile") @PreAuthorize("hasAuthority('ROLE_USER') or hasAuthority('ROLE_MEMBER') or hasAuthority('ROLE_LEADER')") public ResponseEntity<Object> getProfile(HttpServletRequest request) { Response response = new Response(); response.setTimestamp(LocalDateTime.now()); response.setStatus(HttpStatus.OK); AuthorVerifier authorVerifier = new AuthorVerifier(request, secretKey); if (this.userService.exists(authorVerifier.getRequesterId())) { User user = this.userService.getUserById(authorVerifier.getRequesterId()); user.setPassword(<PASSWORD>); response.setMessage("Profile found"); response.setError("none"); response.setPayload(user); } else { response.setMessage("Profile does not exists"); response.setError("not found"); } return new ResponseEntity<>(response, HttpStatus.OK); } @GetMapping(path = "{userId}") @PreAuthorize("hasAuthority('ROLE_USER') or hasAuthority('ROLE_LEADER') or hasAuthority('ROLE_MEMBER')") public ResponseEntity<Object> getUserInfo(@PathVariable("userId") String userId) { Response response = new Response(); response.setTimestamp(LocalDateTime.now()); response.setStatus(HttpStatus.OK); if (this.userService.exists(userId)) { User user = this.userService.getUserById(userId); user.setPassword(<PASSWORD>); response.setMessage("User found"); response.setError("none"); response.setPayload(user); } else { response.setMessage("User does not exists"); response.setError("not found"); } return new ResponseEntity<>(response, HttpStatus.OK); } @PutMapping(path = "avatar") @PreAuthorize("hasAuthority('ROLE_USER') or hasAuthority('ROLE_MEMBER') or hasAuthority('ROLE_LEADER')") public ResponseEntity<Object> uploadAvatar(@RequestParam("image") MultipartFile image, HttpServletRequest request) throws IOException { Response response = new Response(); response.setTimestamp(LocalDateTime.now()); response.setStatus(HttpStatus.OK); AuthorVerifier authorVerifier = new AuthorVerifier(request, secretKey); if (this.userService.exists(authorVerifier.getRequesterId())) { String path = this.miscService.uploadImage(image, "user", authorVerifier.getRequesterId()); if (!path.equals("error")) { this.userService.setAvatar(authorVerifier.getRequesterId(), path); response.setError("none"); response.setMessage("Image uploaded successfully"); response.setPayload(path); } else { response.setError("path creation failed"); response.setMessage("Failed to create the path for the uploaded image"); } } return new ResponseEntity<>(response, HttpStatus.OK); } @PutMapping(path = "update") @PreAuthorize("hasAuthority('ROLE_USER') or hasAuthority('ROLE_MEMBER') or hasAuthority('ROLE_LEADER')") public ResponseEntity<Object> updateUser(@RequestBody User user, HttpServletRequest request) { Response response = new Response(); response.setTimestamp(LocalDateTime.now()); response.setStatus(HttpStatus.OK); AuthorVerifier authorVerifier = new AuthorVerifier(request, secretKey); if(this.userService.exists(authorVerifier.getRequesterId())) { User requester = this.userService.getUserById(authorVerifier.getRequesterId()); requester.setUsername(user.getUsername()); requester.setPassword(<PASSWORD>()); requester.setEmail(user.getEmail()); requester.setAboutMe(user.getAboutMe()); response.setError("none"); response.setMessage("User updated successfully"); this.userService.updateUser(requester); } else { response.setError("not found"); response.setMessage("Failed to update user because no user found"); } return new ResponseEntity<>(response,HttpStatus.OK); } }
tied/msteams-jira-server-addon
src/main/java/com/microsoft/teams/service/messaging/TeamsMessageCreator.java
package com.microsoft.teams.service.messaging; import com.microsoft.teams.service.models.TeamsMessage; import org.jose4j.jwt.GeneralJwtException; public interface TeamsMessageCreator { TeamsMessage create(String teamsMsg) throws GeneralJwtException; }
eadium/gobuns
redis/redis_test.go
package redis import ( "context" "errors" "fmt" "time" goredis "github.com/go-redis/redis/v8" ) type localStorage struct { storage map[string]interface{} } func (localStorage) GetEx(ctx context.Context, key string, expiration time.Duration) *goredis.StringCmd { panic("implement me") } func (localStorage) GetDel(ctx context.Context, key string) *goredis.StringCmd { panic("implement me") } func (localStorage) SetArgs(ctx context.Context, key string, value interface{}, a goredis.SetArgs) *goredis.StatusCmd { panic("implement me") } func (localStorage) SetEX(ctx context.Context, key string, value interface{}, expiration time.Duration) *goredis.StatusCmd { panic("implement me") } func (localStorage) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *goredis.ScanCmd { panic("implement me") } func (localStorage) HRandField(ctx context.Context, key string, count int, withValues bool) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) LPopCount(ctx context.Context, key string, count int) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) LPos(ctx context.Context, key string, value string, args goredis.LPosArgs) *goredis.IntCmd { panic("implement me") } func (localStorage) LPosCount(ctx context.Context, key string, value string, count int64, args goredis.LPosArgs) *goredis.IntSliceCmd { panic("implement me") } func (localStorage) LMove(ctx context.Context, source, destination, srcpos, destpos string) *goredis.StringCmd { panic("implement me") } func (localStorage) SMIsMember(ctx context.Context, key string, members ...interface{}) *goredis.BoolSliceCmd { panic("implement me") } func (localStorage) XInfoStream(ctx context.Context, key string) *goredis.XInfoStreamCmd { panic("implement me") } func (localStorage) XInfoConsumers(ctx context.Context, key string, group string) *goredis.XInfoConsumersCmd { panic("implement me") } func (localStorage) ZMScore(ctx context.Context, key string, members ...string) *goredis.FloatSliceCmd { panic("implement me") } func (localStorage) ZRandMember(ctx context.Context, key string, count int, withScores bool) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ZDiff(ctx context.Context, keys ...string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ZDiffWithScores(ctx context.Context, keys ...string) *goredis.ZSliceCmd { panic("implement me") } func (localStorage) Pipeline() goredis.Pipeliner { panic("implement me") } func (localStorage) Pipelined(ctx context.Context, fn func(goredis.Pipeliner) error) ([]goredis.Cmder, error) { panic("implement me") } func (localStorage) TxPipelined(ctx context.Context, fn func(goredis.Pipeliner) error) ([]goredis.Cmder, error) { panic("implement me") } func (localStorage) TxPipeline() goredis.Pipeliner { panic("implement me") } func (localStorage) Command(ctx context.Context) *goredis.CommandsInfoCmd { panic("implement me") } func (localStorage) ClientGetName(ctx context.Context) *goredis.StringCmd { panic("implement me") } func (localStorage) Echo(ctx context.Context, message interface{}) *goredis.StringCmd { panic("implement me") } func (localStorage) Ping(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) Quit(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) Del(ctx context.Context, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) Unlink(ctx context.Context, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) Dump(ctx context.Context, key string) *goredis.StringCmd { panic("implement me") } func (localStorage) Exists(ctx context.Context, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) Expire(ctx context.Context, key string, expiration time.Duration) *goredis.BoolCmd { panic("implement me") } func (localStorage) ExpireAt(ctx context.Context, key string, tm time.Time) *goredis.BoolCmd { panic("implement me") } func (localStorage) Keys(ctx context.Context, pattern string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *goredis.StatusCmd { panic("implement me") } func (localStorage) Move(ctx context.Context, key string, db int) *goredis.BoolCmd { panic("implement me") } func (localStorage) ObjectRefCount(ctx context.Context, key string) *goredis.IntCmd { panic("implement me") } func (localStorage) ObjectEncoding(ctx context.Context, key string) *goredis.StringCmd { panic("implement me") } func (localStorage) ObjectIdleTime(ctx context.Context, key string) *goredis.DurationCmd { panic("implement me") } func (localStorage) Persist(ctx context.Context, key string) *goredis.BoolCmd { panic("implement me") } func (localStorage) PExpire(ctx context.Context, key string, expiration time.Duration) *goredis.BoolCmd { panic("implement me") } func (localStorage) PExpireAt(ctx context.Context, key string, tm time.Time) *goredis.BoolCmd { panic("implement me") } func (localStorage) PTTL(ctx context.Context, key string) *goredis.DurationCmd { panic("implement me") } func (localStorage) RandomKey(ctx context.Context) *goredis.StringCmd { panic("implement me") } func (localStorage) Rename(ctx context.Context, key, newkey string) *goredis.StatusCmd { panic("implement me") } func (localStorage) RenameNX(ctx context.Context, key, newkey string) *goredis.BoolCmd { panic("implement me") } func (localStorage) Restore(ctx context.Context, key string, ttl time.Duration, value string) *goredis.StatusCmd { panic("implement me") } func (localStorage) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *goredis.StatusCmd { panic("implement me") } func (localStorage) Sort(ctx context.Context, key string, sort *goredis.Sort) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) SortStore(ctx context.Context, key, store string, sort *goredis.Sort) *goredis.IntCmd { panic("implement me") } func (localStorage) SortInterfaces(ctx context.Context, key string, sort *goredis.Sort) *goredis.SliceCmd { panic("implement me") } func (localStorage) Touch(ctx context.Context, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) TTL(ctx context.Context, key string) *goredis.DurationCmd { panic("implement me") } func (localStorage) Type(ctx context.Context, key string) *goredis.StatusCmd { panic("implement me") } func (localStorage) Append(ctx context.Context, key, value string) *goredis.IntCmd { panic("implement me") } func (localStorage) Decr(ctx context.Context, key string) *goredis.IntCmd { panic("implement me") } func (localStorage) DecrBy(ctx context.Context, key string, decrement int64) *goredis.IntCmd { panic("implement me") } func (l *localStorage) Get(ctx context.Context, key string) *goredis.StringCmd { if v, ok := l.storage[key]; ok { return goredis.NewStringResult(fmt.Sprintf("%v", v), nil) } return goredis.NewStringResult("", errors.New("no data")) } func (localStorage) GetRange(ctx context.Context, key string, start, end int64) *goredis.StringCmd { panic("implement me") } func (localStorage) GetSet(ctx context.Context, key string, value interface{}) *goredis.StringCmd { panic("implement me") } func (localStorage) Incr(ctx context.Context, key string) *goredis.IntCmd { panic("implement me") } func (localStorage) IncrBy(ctx context.Context, key string, value int64) *goredis.IntCmd { panic("implement me") } func (localStorage) IncrByFloat(ctx context.Context, key string, value float64) *goredis.FloatCmd { panic("implement me") } func (localStorage) MGet(ctx context.Context, keys ...string) *goredis.SliceCmd { panic("implement me") } func (localStorage) MSet(ctx context.Context, values ...interface{}) *goredis.StatusCmd { panic("implement me") } func (localStorage) MSetNX(ctx context.Context, values ...interface{}) *goredis.BoolCmd { panic("implement me") } func (l *localStorage) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *goredis.StatusCmd { l.storage[key] = value return goredis.NewStatusResult("ok", nil) } func (l *localStorage) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *goredis.BoolCmd { l.Set(ctx, key, value, expiration) return goredis.NewBoolResult(true, nil) } func (l *localStorage) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *goredis.BoolCmd { return l.SetNX(ctx, key, value, expiration) } func (localStorage) SetRange(ctx context.Context, key string, offset int64, value string) *goredis.IntCmd { panic("implement me") } func (l *localStorage) StrLen(ctx context.Context, key string) *goredis.IntCmd { if v, ok := l.storage[key]; ok { return goredis.NewIntResult(int64(len(fmt.Sprintf("%v", v))), nil) } return goredis.NewIntResult(0, errors.New("no data")) } func (localStorage) GetBit(ctx context.Context, key string, offset int64) *goredis.IntCmd { panic("implement me") } func (localStorage) SetBit(ctx context.Context, key string, offset int64, value int) *goredis.IntCmd { panic("implement me") } func (localStorage) BitCount(ctx context.Context, key string, bitCount *goredis.BitCount) *goredis.IntCmd { panic("implement me") } func (localStorage) BitOpAnd(ctx context.Context, destKey string, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) BitOpOr(ctx context.Context, destKey string, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) BitOpXor(ctx context.Context, destKey string, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) BitOpNot(ctx context.Context, destKey string, key string) *goredis.IntCmd { panic("implement me") } func (localStorage) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *goredis.IntCmd { panic("implement me") } func (localStorage) BitField(ctx context.Context, key string, args ...interface{}) *goredis.IntSliceCmd { panic("implement me") } func (localStorage) Scan(ctx context.Context, cursor uint64, match string, count int64) *goredis.ScanCmd { panic("implement me") } func (localStorage) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *goredis.ScanCmd { panic("implement me") } func (localStorage) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *goredis.ScanCmd { panic("implement me") } func (localStorage) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *goredis.ScanCmd { panic("implement me") } func (localStorage) HDel(ctx context.Context, key string, fields ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) HExists(ctx context.Context, key, field string) *goredis.BoolCmd { panic("implement me") } func (localStorage) HGet(ctx context.Context, key, field string) *goredis.StringCmd { panic("implement me") } func (localStorage) HGetAll(ctx context.Context, key string) *goredis.StringStringMapCmd { panic("implement me") } func (localStorage) HIncrBy(ctx context.Context, key, field string, incr int64) *goredis.IntCmd { panic("implement me") } func (localStorage) HIncrByFloat(ctx context.Context, key, field string, incr float64) *goredis.FloatCmd { panic("implement me") } func (localStorage) HKeys(ctx context.Context, key string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) HLen(ctx context.Context, key string) *goredis.IntCmd { panic("implement me") } func (localStorage) HMGet(ctx context.Context, key string, fields ...string) *goredis.SliceCmd { panic("implement me") } func (localStorage) HSet(ctx context.Context, key string, values ...interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) HMSet(ctx context.Context, key string, values ...interface{}) *goredis.BoolCmd { panic("implement me") } func (localStorage) HSetNX(ctx context.Context, key, field string, value interface{}) *goredis.BoolCmd { panic("implement me") } func (localStorage) HVals(ctx context.Context, key string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *goredis.StringCmd { panic("implement me") } func (localStorage) LIndex(ctx context.Context, key string, index int64) *goredis.StringCmd { panic("implement me") } func (localStorage) LInsert(ctx context.Context, key, op string, pivot, value interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) LInsertBefore(ctx context.Context, key string, pivot, value interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) LInsertAfter(ctx context.Context, key string, pivot, value interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) LLen(ctx context.Context, key string) *goredis.IntCmd { panic("implement me") } func (localStorage) LPop(ctx context.Context, key string) *goredis.StringCmd { panic("implement me") } func (localStorage) LPush(ctx context.Context, key string, values ...interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) LPushX(ctx context.Context, key string, values ...interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) LRange(ctx context.Context, key string, start, stop int64) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) LRem(ctx context.Context, key string, count int64, value interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) LSet(ctx context.Context, key string, index int64, value interface{}) *goredis.StatusCmd { panic("implement me") } func (localStorage) LTrim(ctx context.Context, key string, start, stop int64) *goredis.StatusCmd { panic("implement me") } func (localStorage) RPop(ctx context.Context, key string) *goredis.StringCmd { panic("implement me") } func (localStorage) RPopLPush(ctx context.Context, source, destination string) *goredis.StringCmd { panic("implement me") } func (localStorage) RPush(ctx context.Context, key string, values ...interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) RPushX(ctx context.Context, key string, values ...interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) SAdd(ctx context.Context, key string, members ...interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) SCard(ctx context.Context, key string) *goredis.IntCmd { panic("implement me") } func (localStorage) SDiff(ctx context.Context, keys ...string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) SDiffStore(ctx context.Context, destination string, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) SInter(ctx context.Context, keys ...string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) SInterStore(ctx context.Context, destination string, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) SIsMember(ctx context.Context, key string, member interface{}) *goredis.BoolCmd { panic("implement me") } func (localStorage) SMembers(ctx context.Context, key string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) SMembersMap(ctx context.Context, key string) *goredis.StringStructMapCmd { panic("implement me") } func (localStorage) SMove(ctx context.Context, source, destination string, member interface{}) *goredis.BoolCmd { panic("implement me") } func (localStorage) SPop(ctx context.Context, key string) *goredis.StringCmd { panic("implement me") } func (localStorage) SPopN(ctx context.Context, key string, count int64) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) SRandMember(ctx context.Context, key string) *goredis.StringCmd { panic("implement me") } func (localStorage) SRandMemberN(ctx context.Context, key string, count int64) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) SRem(ctx context.Context, key string, members ...interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) SUnion(ctx context.Context, keys ...string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) SUnionStore(ctx context.Context, destination string, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) XAdd(ctx context.Context, a *goredis.XAddArgs) *goredis.StringCmd { panic("implement me") } func (localStorage) XDel(ctx context.Context, stream string, ids ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) XLen(ctx context.Context, stream string) *goredis.IntCmd { panic("implement me") } func (localStorage) XRange(ctx context.Context, stream, start, stop string) *goredis.XMessageSliceCmd { panic("implement me") } func (localStorage) XRangeN(ctx context.Context, stream, start, stop string, count int64) *goredis.XMessageSliceCmd { panic("implement me") } func (localStorage) XRevRange(ctx context.Context, stream string, start, stop string) *goredis.XMessageSliceCmd { panic("implement me") } func (localStorage) XRevRangeN(ctx context.Context, stream string, start, stop string, count int64) *goredis.XMessageSliceCmd { panic("implement me") } func (localStorage) XRead(ctx context.Context, a *goredis.XReadArgs) *goredis.XStreamSliceCmd { panic("implement me") } func (localStorage) XReadStreams(ctx context.Context, streams ...string) *goredis.XStreamSliceCmd { panic("implement me") } func (localStorage) XGroupCreate(ctx context.Context, stream, group, start string) *goredis.StatusCmd { panic("implement me") } func (localStorage) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *goredis.StatusCmd { panic("implement me") } func (localStorage) XGroupSetID(ctx context.Context, stream, group, start string) *goredis.StatusCmd { panic("implement me") } func (localStorage) XGroupDestroy(ctx context.Context, stream, group string) *goredis.IntCmd { panic("implement me") } func (localStorage) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *goredis.IntCmd { panic("implement me") } func (localStorage) XReadGroup(ctx context.Context, a *goredis.XReadGroupArgs) *goredis.XStreamSliceCmd { panic("implement me") } func (localStorage) XAck(ctx context.Context, stream, group string, ids ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) XPending(ctx context.Context, stream, group string) *goredis.XPendingCmd { panic("implement me") } func (localStorage) XPendingExt(ctx context.Context, a *goredis.XPendingExtArgs) *goredis.XPendingExtCmd { panic("implement me") } func (localStorage) XClaim(ctx context.Context, a *goredis.XClaimArgs) *goredis.XMessageSliceCmd { panic("implement me") } func (localStorage) XClaimJustID(ctx context.Context, a *goredis.XClaimArgs) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) XTrim(ctx context.Context, key string, maxLen int64) *goredis.IntCmd { panic("implement me") } func (localStorage) XTrimApprox(ctx context.Context, key string, maxLen int64) *goredis.IntCmd { panic("implement me") } func (localStorage) XInfoGroups(ctx context.Context, key string) *goredis.XInfoGroupsCmd { panic("implement me") } func (localStorage) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *goredis.ZWithKeyCmd { panic("implement me") } func (localStorage) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *goredis.ZWithKeyCmd { panic("implement me") } func (localStorage) ZAdd(ctx context.Context, key string, members ...*goredis.Z) *goredis.IntCmd { panic("implement me") } func (localStorage) ZAddNX(ctx context.Context, key string, members ...*goredis.Z) *goredis.IntCmd { panic("implement me") } func (localStorage) ZAddXX(ctx context.Context, key string, members ...*goredis.Z) *goredis.IntCmd { panic("implement me") } func (localStorage) ZAddCh(ctx context.Context, key string, members ...*goredis.Z) *goredis.IntCmd { panic("implement me") } func (localStorage) ZAddNXCh(ctx context.Context, key string, members ...*goredis.Z) *goredis.IntCmd { panic("implement me") } func (localStorage) ZAddXXCh(ctx context.Context, key string, members ...*goredis.Z) *goredis.IntCmd { panic("implement me") } func (localStorage) ZIncr(ctx context.Context, key string, member *goredis.Z) *goredis.FloatCmd { panic("implement me") } func (localStorage) ZIncrNX(ctx context.Context, key string, member *goredis.Z) *goredis.FloatCmd { panic("implement me") } func (localStorage) ZIncrXX(ctx context.Context, key string, member *goredis.Z) *goredis.FloatCmd { panic("implement me") } func (localStorage) ZCard(ctx context.Context, key string) *goredis.IntCmd { panic("implement me") } func (localStorage) ZCount(ctx context.Context, key, min, max string) *goredis.IntCmd { panic("implement me") } func (localStorage) ZLexCount(ctx context.Context, key, min, max string) *goredis.IntCmd { panic("implement me") } func (localStorage) ZIncrBy(ctx context.Context, key string, increment float64, member string) *goredis.FloatCmd { panic("implement me") } func (localStorage) ZInterStore(ctx context.Context, destination string, store *goredis.ZStore) *goredis.IntCmd { panic("implement me") } func (localStorage) ZPopMax(ctx context.Context, key string, count ...int64) *goredis.ZSliceCmd { panic("implement me") } func (localStorage) ZPopMin(ctx context.Context, key string, count ...int64) *goredis.ZSliceCmd { panic("implement me") } func (localStorage) ZRange(ctx context.Context, key string, start, stop int64) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *goredis.ZSliceCmd { panic("implement me") } func (localStorage) ZRangeByScore(ctx context.Context, key string, opt *goredis.ZRangeBy) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ZRangeByLex(ctx context.Context, key string, opt *goredis.ZRangeBy) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ZRangeByScoreWithScores(ctx context.Context, key string, opt *goredis.ZRangeBy) *goredis.ZSliceCmd { panic("implement me") } func (localStorage) ZRank(ctx context.Context, key, member string) *goredis.IntCmd { panic("implement me") } func (localStorage) ZRem(ctx context.Context, key string, members ...interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *goredis.IntCmd { panic("implement me") } func (localStorage) ZRemRangeByScore(ctx context.Context, key, min, max string) *goredis.IntCmd { panic("implement me") } func (localStorage) ZRemRangeByLex(ctx context.Context, key, min, max string) *goredis.IntCmd { panic("implement me") } func (localStorage) ZRevRange(ctx context.Context, key string, start, stop int64) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *goredis.ZSliceCmd { panic("implement me") } func (localStorage) ZRevRangeByScore(ctx context.Context, key string, opt *goredis.ZRangeBy) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ZRevRangeByLex(ctx context.Context, key string, opt *goredis.ZRangeBy) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt *goredis.ZRangeBy) *goredis.ZSliceCmd { panic("implement me") } func (localStorage) ZRevRank(ctx context.Context, key, member string) *goredis.IntCmd { panic("implement me") } func (localStorage) ZScore(ctx context.Context, key, member string) *goredis.FloatCmd { panic("implement me") } func (localStorage) ZUnionStore(ctx context.Context, dest string, store *goredis.ZStore) *goredis.IntCmd { panic("implement me") } func (localStorage) PFAdd(ctx context.Context, key string, els ...interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) PFCount(ctx context.Context, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) PFMerge(ctx context.Context, dest string, keys ...string) *goredis.StatusCmd { panic("implement me") } func (localStorage) BgRewriteAOF(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) BgSave(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClientKill(ctx context.Context, ipPort string) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClientKillByFilter(ctx context.Context, keys ...string) *goredis.IntCmd { panic("implement me") } func (localStorage) ClientList(ctx context.Context) *goredis.StringCmd { panic("implement me") } func (localStorage) ClientPause(ctx context.Context, dur time.Duration) *goredis.BoolCmd { panic("implement me") } func (localStorage) ClientID(ctx context.Context) *goredis.IntCmd { panic("implement me") } func (localStorage) ConfigGet(ctx context.Context, parameter string) *goredis.SliceCmd { panic("implement me") } func (localStorage) ConfigResetStat(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ConfigSet(ctx context.Context, parameter, value string) *goredis.StatusCmd { panic("implement me") } func (localStorage) ConfigRewrite(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) DBSize(ctx context.Context) *goredis.IntCmd { panic("implement me") } func (localStorage) FlushAll(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) FlushAllAsync(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) FlushDB(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) FlushDBAsync(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) Info(ctx context.Context, section ...string) *goredis.StringCmd { panic("implement me") } func (localStorage) LastSave(ctx context.Context) *goredis.IntCmd { panic("implement me") } func (localStorage) Save(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) Shutdown(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ShutdownSave(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ShutdownNoSave(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) SlaveOf(ctx context.Context, host, port string) *goredis.StatusCmd { panic("implement me") } func (localStorage) Time(ctx context.Context) *goredis.TimeCmd { panic("implement me") } func (localStorage) DebugObject(ctx context.Context, key string) *goredis.StringCmd { panic("implement me") } func (localStorage) ReadOnly(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ReadWrite(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) MemoryUsage(ctx context.Context, key string, samples ...int) *goredis.IntCmd { panic("implement me") } func (localStorage) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *goredis.Cmd { panic("implement me") } func (localStorage) EvalSha(ctx context.Context, sha1 string, keys []string, args ...interface{}) *goredis.Cmd { panic("implement me") } func (localStorage) ScriptExists(ctx context.Context, hashes ...string) *goredis.BoolSliceCmd { panic("implement me") } func (localStorage) ScriptFlush(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ScriptKill(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ScriptLoad(ctx context.Context, script string) *goredis.StringCmd { panic("implement me") } func (localStorage) Publish(ctx context.Context, channel string, message interface{}) *goredis.IntCmd { panic("implement me") } func (localStorage) PubSubChannels(ctx context.Context, pattern string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) PubSubNumSub(ctx context.Context, channels ...string) *goredis.StringIntMapCmd { panic("implement me") } func (localStorage) PubSubNumPat(ctx context.Context) *goredis.IntCmd { panic("implement me") } func (localStorage) ClusterSlots(ctx context.Context) *goredis.ClusterSlotsCmd { panic("implement me") } func (localStorage) ClusterNodes(ctx context.Context) *goredis.StringCmd { panic("implement me") } func (localStorage) ClusterMeet(ctx context.Context, host, port string) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterForget(ctx context.Context, nodeID string) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterReplicate(ctx context.Context, nodeID string) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterResetSoft(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterResetHard(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterInfo(ctx context.Context) *goredis.StringCmd { panic("implement me") } func (localStorage) ClusterKeySlot(ctx context.Context, key string) *goredis.IntCmd { panic("implement me") } func (localStorage) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ClusterCountFailureReports(ctx context.Context, nodeID string) *goredis.IntCmd { panic("implement me") } func (localStorage) ClusterCountKeysInSlot(ctx context.Context, slot int) *goredis.IntCmd { panic("implement me") } func (localStorage) ClusterDelSlots(ctx context.Context, slots ...int) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterDelSlotsRange(ctx context.Context, min, max int) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterSaveConfig(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterSlaves(ctx context.Context, nodeID string) *goredis.StringSliceCmd { panic("implement me") } func (localStorage) ClusterFailover(ctx context.Context) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterAddSlots(ctx context.Context, slots ...int) *goredis.StatusCmd { panic("implement me") } func (localStorage) ClusterAddSlotsRange(ctx context.Context, min, max int) *goredis.StatusCmd { panic("implement me") } func (localStorage) GeoAdd(ctx context.Context, key string, geoLocation ...*goredis.GeoLocation) *goredis.IntCmd { panic("implement me") } func (localStorage) GeoPos(ctx context.Context, key string, members ...string) *goredis.GeoPosCmd { panic("implement me") } func (localStorage) GeoRadius(ctx context.Context, key string, longitude, latitude float64, query *goredis.GeoRadiusQuery) *goredis.GeoLocationCmd { panic("implement me") } func (localStorage) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, query *goredis.GeoRadiusQuery) *goredis.IntCmd { panic("implement me") } func (localStorage) GeoRadiusByMember(ctx context.Context, key, member string, query *goredis.GeoRadiusQuery) *goredis.GeoLocationCmd { panic("implement me") } func (localStorage) GeoRadiusByMemberStore(ctx context.Context, key, member string, query *goredis.GeoRadiusQuery) *goredis.IntCmd { panic("implement me") } func (localStorage) GeoDist(ctx context.Context, key string, member1, member2, unit string) *goredis.FloatCmd { panic("implement me") } func (localStorage) GeoHash(ctx context.Context, key string, members ...string) *goredis.StringSliceCmd { panic("implement me") } func newLocalStorage() goredis.Cmdable { return &localStorage{ storage: make(map[string]interface{}), } }
gagaboy/clause
thirdparty/daemontools/admin/daemontools-0.76/src/coe.c
<filename>thirdparty/daemontools/admin/daemontools-0.76/src/coe.c /* Public domain. */ #include <fcntl.h> #include "coe.h" int coe(int fd) { return fcntl(fd,F_SETFD,1); }
MarkCDavid/vilnius-tech-accounting
src/main/java/vilnius/tech/seeds/CategorySeeder.java
package vilnius.tech.seeds; import org.hibernate.Session; import vilnius.tech.hibernate.FinancialCategory; import vilnius.tech.hibernate.User; import vilnius.tech.hibernate.service.FinancialCategoryService; import vilnius.tech.hibernate.service.UserService; public class CategorySeeder implements Seeder { @Override public void seed(Session session) { var userController = new UserService(session); var administrator = userController.find_Username("admin"); var aurimas = userController.find_Username("Aurimas"); var vehicles = createCategory(session, "Vehicles", administrator); createVehicleCategories(session, vehicles, administrator, "AAA-000"); createVehicleCategories(session, vehicles, administrator, "BBB-001"); createVehicleCategories(session, vehicles, administrator, "AAA-002"); createVehicleCategories(session, vehicles, administrator, "AEF-023"); var food = createCategory(session, "Food", administrator); createCategory(session, "Delivery", aurimas, food); createCategory(session, "Eating Out", aurimas, food); var officeExpenses = createCategory(session, "Office expenses", administrator); createCategory(session, "Paper", administrator, officeExpenses); createCategory(session, "Electricity", aurimas, officeExpenses); } private void createVehicleCategories(Session session, FinancialCategory parent, User owner, String name) { var vehicle = createCategory(session, name, owner, parent); createCategory(session, "Petrol", owner, vehicle); createCategory(session, "Wash", owner, vehicle); createCategory(session, "Repairs", owner, vehicle); } private FinancialCategory createCategory(Session session, String name, User user, FinancialCategory parent) { var controller = new FinancialCategoryService(session); return controller.create(parent, name, user); } private FinancialCategory createCategory(Session session, String name, User user) { return createCategory(session, name, user, null); } }
jjzhang166/balancer
contrib/tools/byacc/skeleton.c
<reponame>jjzhang166/balancer<gh_stars>10-100 /* $Id: skeleton.c,v 1.9 2008-07-09 16:12:44 pg Exp $ */ #include "defs.h" /* The definition of yysccsid in the banner should be replaced with */ /* a #pragma ident directive if the target C compiler supports */ /* #pragma ident directives. */ /* */ /* If the skeleton is changed, the banner should be changed so that */ /* the altered version can be easily distinguished from the original. */ /* */ /* The #defines included with the banner are there because they are */ /* useful in subsequent code. The macros #defined in the header or */ /* the body either are not useful outside of semantic actions or */ /* are conditional. */ char *banner[] = { "#ifndef lint", "static const char yysccsid[] = \"@(#)yaccpar 1.9 (Berkeley) 02/21/93\";", "#endif", "", "#include <stdlib.h>", "#include <string.h>", "", "#define YYBYACC 1", CONCAT1("#define YYMAJOR ", YYMAJOR), CONCAT1("#define YYMINOR ", YYMINOR), #ifdef YYPATCH CONCAT1("#define YYPATCH ", YYPATCH), #endif "", "#define YYEMPTY (-1)", "#define yyclearin (yychar = YYEMPTY)", "#define yyerrok (yyerrflag = 0)", "#define YYRECOVERING (yyerrflag != 0)", "", 0 }; char *tables[] = { "extern short yylhs[];", "extern short yylen[];", "extern short yydefred[];", "extern short yydgoto[];", "extern short yysindex[];", "extern short yyrindex[];", "extern short yygindex[];", "extern short yytable[];", "extern short yycheck[];", "", "#if YYDEBUG", "extern const char *yyname[];", "extern const char *yyrule[];", "#endif", 0 }; char *header[] = { "#if YYDEBUG", "#include <stdio.h>", "#endif", "", "/* define the initial stack-sizes */", "#ifdef YYSTACKSIZE", "#undef YYMAXDEPTH", "#define YYMAXDEPTH YYSTACKSIZE", "#else", "#ifdef YYMAXDEPTH", "#define YYSTACKSIZE YYMAXDEPTH", "#else", "#define YYSTACKSIZE 500", "#define YYMAXDEPTH 500", "#endif", "#endif", "", "#define YYINITSTACKSIZE 500", "", "#if defined(YYPURE_PARSER)", "#define PPP void*", "#else", "#define PPP", "#endif", "extern int yyparse(PPP);", 0 }; char *body[] = { "struct YYSTACK {", " YYSTACK() {", " memset(this, 0, sizeof(*this));", " }", " ~YYSTACK() {", " free(myyss);", " free(myyvs);", " }", " short *myyss;", " short *myysslim;", " YYSTYPE *myyvs;", " int myystacksize;", " short *myyssp;", " int myydebug;", " int myynerrs;", " int myyerrflag;", " int myychar;", "", " YYSTYPE *myyvsp;", " YYSTYPE myyval;", " YYSTYPE myylval;", "};", "", "#define yyssp stack->myyssp", "#define yyss stack->myyss", "#define yysslim stack->myysslim", "#define yyvs stack->myyvs", "#define yystacksize stack->myystacksize", "#define yydebug stack->myydebug", "#define yynerrs stack->myynerrs", "#define yyerrflag stack->myyerrflag", "#define yychar stack->myychar", "#define yyvsp stack->myyvsp", "#define yyval stack->myyval", "#define yylval stack->myylval", "/* allocate initial stack or double stack size, up to YYMAXDEPTH */", "static int myygrowstack(YYSTACK* stack)", "{", " int newsize, i;", " short *newss;", " YYSTYPE *newvs;", "", " if ((newsize = yystacksize) == 0)", " newsize = YYINITSTACKSIZE;", " else if (newsize >= YYMAXDEPTH)", " return -1;", " else if ((newsize *= 2) > YYMAXDEPTH)", " newsize = YYMAXDEPTH;", "", " i = yyssp - yyss;", " newss = (yyss != 0)", " ? (short *)realloc(yyss, newsize * sizeof(*newss))", " : (short *)malloc(newsize * sizeof(*newss));", " if (newss == 0)", " return -1;", "", " yyss = newss;", " yyssp = newss + i;", " newvs = (yyvs != 0)", " ? (YYSTYPE *)realloc(yyvs, newsize * sizeof(*newvs))", " : (YYSTYPE *)malloc(newsize * sizeof(*newvs));", " if (newvs == 0)", " return -1;", "", " yyvs = newvs;", " yyvsp = newvs + i;", " yystacksize = newsize;", " yysslim = yyss + newsize - 1;", " return 0;", "}", "", "#define YYABORT goto yyabort", "#define YYREJECT goto yyabort", "#define YYACCEPT goto yyaccept", "#define YYERROR goto yyerrlab", "#define yygrowstack() myygrowstack(stack)", "#if defined(YYPURE_PARSER)", "#define yylex() yylex(&yylval, YYLEX_PARAM)", "#else", "#endif", "", "int", "yyparse(PPP YYPARSE_PARAM)", "{", " YYSTACK mstack;", " YYSTACK* stack = &mstack;", " register int yym, yyn, yystate;", "#if YYDEBUG", " register const char *yys;", "", " if ((yys = getenv(\"YYDEBUG\")) != 0)", " {", " yyn = *yys;", " if (yyn >= '0' && yyn <= '9')", " yydebug = yyn - '0';", " }", "#endif", "", " yynerrs = 0;", " yyerrflag = 0;", " yychar = YYEMPTY;", "", " if (yyss == NULL && yygrowstack()) goto yyoverflow;", " yyssp = yyss;", " yyvsp = yyvs;", " *yyssp = yystate = 0;", "", "yyloop:", " if ((yyn = yydefred[yystate]) != 0) goto yyreduce;", " if (yychar < 0)", " {", " if ((yychar = yylex()) < 0) yychar = 0;", "#if YYDEBUG", " if (yydebug)", " {", " yys = 0;", " if (yychar <= YYMAXTOKEN) yys = yyname[yychar];", " if (!yys) yys = \"illegal-symbol\";", " printf(\"%sdebug: state %d, reading %d (%s)\\n\",", " YYPREFIX, yystate, yychar, yys);", " }", "#endif", " }", " if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 &&", " yyn <= YYTABLESIZE && yycheck[yyn] == yychar)", " {", "#if YYDEBUG", " if (yydebug)", " printf(\"%sdebug: state %d, shifting to state %d\\n\",", " YYPREFIX, yystate, yytable[yyn]);", "#endif", " if (yyssp >= yysslim && yygrowstack())", " {", " goto yyoverflow;", " }", " *++yyssp = yystate = yytable[yyn];", " *++yyvsp = yylval;", " yychar = YYEMPTY;", " if (yyerrflag > 0) --yyerrflag;", " goto yyloop;", " }", " if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 &&", " yyn <= YYTABLESIZE && yycheck[yyn] == yychar)", " {", " yyn = yytable[yyn];", " goto yyreduce;", " }", " if (yyerrflag) goto yyinrecovery;", "", " yyerror(\"syntax error\");", "", " goto yyerrlab;", "", "yyerrlab:", " ++yynerrs;", "", "yyinrecovery:", " if (yyerrflag < 3)", " {", " yyerrflag = 3;", " for (;;)", " {", " if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 &&", " yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)", " {", "#if YYDEBUG", " if (yydebug)", " printf(\"%sdebug: state %d, error recovery shifting\\", " to state %d\\n\", YYPREFIX, *yyssp, yytable[yyn]);", "#endif", " if (yyssp >= yysslim && yygrowstack())", " {", " goto yyoverflow;", " }", " *++yyssp = yystate = yytable[yyn];", " *++yyvsp = yylval;", " goto yyloop;", " }", " else", " {", "#if YYDEBUG", " if (yydebug)", " printf(\"%sdebug: error recovery discarding state %d\ \\n\",", " YYPREFIX, *yyssp);", "#endif", " if (yyssp <= yyss) goto yyabort;", " --yyssp;", " --yyvsp;", " }", " }", " }", " else", " {", " if (yychar == 0) goto yyabort;", "#if YYDEBUG", " if (yydebug)", " {", " yys = 0;", " if (yychar <= YYMAXTOKEN) yys = yyname[yychar];", " if (!yys) yys = \"illegal-symbol\";", " printf(\"%sdebug: state %d, error recovery discards token %d\ (%s)\\n\",", " YYPREFIX, yystate, yychar, yys);", " }", "#endif", " yychar = YYEMPTY;", " goto yyloop;", " }", "", "yyreduce:", "#if YYDEBUG", " if (yydebug)", " printf(\"%sdebug: state %d, reducing by rule %d (%s)\\n\",", " YYPREFIX, yystate, yyn, yyrule[yyn]);", "#endif", " yym = yylen[yyn];", " if (yym)", " yyval = yyvsp[1-yym];", " else", " memset(&yyval, 0, sizeof yyval);", " switch (yyn)", " {", 0 }; char *trailer[] = { " }", " yyssp -= yym;", " yystate = *yyssp;", " yyvsp -= yym;", " yym = yylhs[yyn];", " if (yystate == 0 && yym == 0)", " {", "#if YYDEBUG", " if (yydebug)", " printf(\"%sdebug: after reduction, shifting from state 0 to\\", " state %d\\n\", YYPREFIX, YYFINAL);", "#endif", " yystate = YYFINAL;", " *++yyssp = YYFINAL;", " *++yyvsp = yyval;", " if (yychar < 0)", " {", " if ((yychar = yylex()) < 0) yychar = 0;", "#if YYDEBUG", " if (yydebug)", " {", " yys = 0;", " if (yychar <= YYMAXTOKEN) yys = yyname[yychar];", " if (!yys) yys = \"illegal-symbol\";", " printf(\"%sdebug: state %d, reading %d (%s)\\n\",", " YYPREFIX, YYFINAL, yychar, yys);", " }", "#endif", " }", " if (yychar == 0) goto yyaccept;", " goto yyloop;", " }", " if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 &&", " yyn <= YYTABLESIZE && yycheck[yyn] == yystate)", " yystate = yytable[yyn];", " else", " yystate = yydgoto[yym];", "#if YYDEBUG", " if (yydebug)", " printf(\"%sdebug: after reduction, shifting from state %d \\", "to state %d\\n\", YYPREFIX, *yyssp, yystate);", "#endif", " if (yyssp >= yysslim && yygrowstack())", " {", " goto yyoverflow;", " }", " *++yyssp = yystate;", " *++yyvsp = yyval;", " goto yyloop;", "", "yyoverflow:", " yyerror(\"yacc stack overflow\");", "", "yyabort:", " return (1);", "", "yyaccept:", " return (0);", "}", 0 }; void write_section(char *section[]) { register int c; register int i; register char *s; register FILE *f; f = code_file; for (i = 0; (s = section[i]) != 0; ++i) { ++outline; while ((c = *s) != 0) { putc(c, f); ++s; } putc('\n', f); } }
EMBL-EBI-SUBS/subs-api
src/test/java/uk/ac/ebi/subs/api/utils/SubmittableHelper.java
package uk.ac.ebi.subs.api.utils; import uk.ac.ebi.subs.data.component.Archive; import uk.ac.ebi.subs.data.component.Team; import uk.ac.ebi.subs.data.status.ProcessingStatusEnum; import uk.ac.ebi.subs.data.status.SubmissionStatusEnum; import uk.ac.ebi.subs.repository.model.AssayData; import uk.ac.ebi.subs.repository.model.Checklist; import uk.ac.ebi.subs.repository.model.DataType; import uk.ac.ebi.subs.repository.model.ProcessingStatus; import uk.ac.ebi.subs.repository.model.Sample; import uk.ac.ebi.subs.repository.model.Submission; import uk.ac.ebi.subs.repository.model.SubmissionStatus; import java.util.UUID; public class SubmittableHelper { public final static String TEAM_NAME = "subs.dev-team-1"; private static final String SAMPLE_DESCRIPTION = "Human sample donor"; private static final String TAXON = "Homo sapiens"; private static final long TAXON_ID = 9606L; public static AssayData createAssayData(String submissionID) { AssayData assayData = new AssayData(); assayData.setId(UUID.randomUUID().toString()); assayData.setAlias("Test assay data"); assayData.setTeam(generateTestTeam()); assayData.setSubmission(createSubmission(submissionID)); return assayData; } public static Submission createSubmission(String submissionID) { Submission submission = new Submission(); submission.setId(submissionID); submission.setTeam(generateTestTeam()); return submission; } public static SubmissionStatus createSubmissionStatus() { final SubmissionStatus submissionStatus = new SubmissionStatus(); submissionStatus.setStatus(SubmissionStatusEnum.Draft); submissionStatus.setTeam(SubmittableHelper.generateTestTeam()); return submissionStatus; } public static Sample createSample(boolean createProcessingStatus, String sampleAlias) { Sample sample = new Sample(); sample.setId(SubmittableHelper.createId()); sample.setTeam(generateTestTeam()); if (sampleAlias == null) sampleAlias = createId(); sample.setAlias("Alias_" + sampleAlias); sample.setTitle("Donor_ " + createId()); sample.setDescription(SAMPLE_DESCRIPTION); sample.setTaxon(TAXON); sample.setTaxonId(TAXON_ID); if (createProcessingStatus) { sample.setProcessingStatus(new ProcessingStatus(ProcessingStatusEnum.Draft)); } return sample; } public static Team generateTestTeam() { Team team = new Team(); team.setName(TEAM_NAME); return team; } public static DataType generateDataType(Archive archive, String id, String submittableClassName) { DataType samplesDataType = new DataType(); samplesDataType.setArchive(archive); samplesDataType.setId(id); samplesDataType.setSubmittableClassName(submittableClassName); return samplesDataType; } public static Checklist generateChecklist(String checklistId, String dataTypeId) { Checklist checklist = new Checklist(); checklist.setId(checklistId); checklist.setDataTypeId(dataTypeId); return checklist; } public static String createId() { return UUID.randomUUID().toString(); } }
vishakhaakumar/SQAProject_WarehouseAPI
src/main/java/app/repository/ProductRepository.java
package app.repository; import app.model.Product; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.Optional; @Repository public interface ProductRepository extends JpaRepository<Product, Long>, ProductRepositoryCustom { Optional<Product> findByCode(String code); }
debarati007/Leetcode
src/main/java/Misc/DSA/GridUniquePaths.java
<filename>src/main/java/Misc/DSA/GridUniquePaths.java package Misc.DSA; import java.util.Arrays; public class GridUniquePaths { //recursive solution //base case : when reached at end i.e i=n-1 and j=m-1,return 1. //result from right subtree+left recursive subtree gives the result. //always we have 2 states. from (0,0)->(0,1) or (1,0).From (0,1)->(1,1) or (0,2) and so on.. //tc: exponential , sc: exponential public int uniquePaths(int m, int n) { return countPath(0, 0, m, n); } int countPath(int i, int j, int n, int m) { if (i == (n - 1) && j == (m - 1)) { return 1; } if (i >= n || j >= m) return 0; else return countPath(i + 1, j, n, m) + countPath(i, j + 1, n, m); } //Dynamic programming approach //there are 2 states (i and j) and their max value could be (n,m) //hence total number of states could be n*m //I am creating a hashtable of m*n //initialize everything as -1. //in left subtree where ever we get 1,we store in table,next time when we come across same recursive call, //we use the value stored in dp table instead of computing again //tc:O(n*m) and sc : O(n*m) int dp[][]; public int uniquePathsOptimized(int m, int n) { dp = new int[m][n]; //fill all rows in dp table with -1 initially. for (int[] rows : dp) Arrays.fill(rows, -1); return countPath(0, 0, m, n, dp); } int countPath(int i, int j, int n, int m, int[][] dp) { if (i == (n - 1) && j == (m - 1)) { return 1; } if (i >= n || j >= m) return 0; if (dp[i][j] != -1) return dp[i][j]; else return dp[i][j] = countPath(i + 1, j, n, m, dp) + countPath(i, j + 1, n, m, dp); } }
vbillet/Torque3D
Engine/source/gui/worldEditor/editTSCtrl.h
<filename>Engine/source/gui/worldEditor/editTSCtrl.h //----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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. //----------------------------------------------------------------------------- #ifndef _EDITTSCTRL_H_ #define _EDITTSCTRL_H_ #ifndef _GUITSCONTROL_H_ #include "gui/3d/guiTSControl.h" #endif #ifndef _GIZMO_H_ #include "gizmo.h" #endif class TerrainBlock; class MissionArea; class Gizmo; class EditManager; struct ObjectRenderInst; class SceneRenderState; class BaseMatInstance; class EditTSCtrl : public GuiTSCtrl { typedef GuiTSCtrl Parent; protected: void make3DMouseEvent(Gui3DMouseEvent & gui3Devent, const GuiEvent &event); // GuiControl virtual void getCursor(GuiCursor *&cursor, bool &showCursor, const GuiEvent &lastGuiEvent); virtual void onMouseUp(const GuiEvent & event); virtual void onMouseDown(const GuiEvent & event); virtual void onMouseMove(const GuiEvent & event); virtual void onMouseDragged(const GuiEvent & event); virtual void onMouseEnter(const GuiEvent & event); virtual void onMouseLeave(const GuiEvent & event); virtual void onRightMouseDown(const GuiEvent & event); virtual void onRightMouseUp(const GuiEvent & event); virtual void onRightMouseDragged(const GuiEvent & event); virtual void onMiddleMouseDown(const GuiEvent & event); virtual void onMiddleMouseUp(const GuiEvent & event); virtual void onMiddleMouseDragged(const GuiEvent & event); virtual bool onInputEvent(const InputEventInfo & event); virtual bool onMouseWheelUp(const GuiEvent &event); virtual bool onMouseWheelDown(const GuiEvent &event); virtual void updateGuiInfo() {}; virtual void renderScene(const RectI &){}; void renderMissionArea(); virtual void renderCameraAxis(); virtual void renderGrid(); // GuiTSCtrl void renderWorld(const RectI & updateRect); void _renderScene(ObjectRenderInst*, SceneRenderState *state, BaseMatInstance*); /// Zoom in/out in ortho views by "steps". void orthoZoom( F32 steps ); protected: enum DisplayType { DisplayTypeTop, DisplayTypeBottom, DisplayTypeFront, DisplayTypeBack, DisplayTypeLeft, DisplayTypeRight, DisplayTypePerspective, DisplayTypeIsometric, }; S32 mDisplayType; F32 mOrthoFOV; Point3F mOrthoCamTrans; EulerF mIsoCamRot; Point3F mIsoCamRotCenter; F32 mIsoCamAngle; Point3F mRawCamPos; Point2I mLastMousePos; bool mLastMouseClamping; bool mAllowBorderMove; S32 mMouseMoveBorder; F32 mMouseMoveSpeed; U32 mLastBorderMoveTime; Gui3DMouseEvent mLastEvent; bool mLeftMouseDown; bool mRightMouseDown; bool mMiddleMouseDown; bool mMiddleMouseTriggered; bool mMouseLeft; SimObjectPtr<Gizmo> mGizmo; GizmoProfile *mGizmoProfile; public: EditTSCtrl(); ~EditTSCtrl(); // SimObject bool onAdd(); void onRemove(); // bool mRenderMissionArea; ColorI mMissionAreaFillColor; ColorI mMissionAreaFrameColor; F32 mMissionAreaHeightAdjust; // ColorI mConsoleFrameColor; ColorI mConsoleFillColor; S32 mConsoleSphereLevel; S32 mConsoleCircleSegments; S32 mConsoleLineWidth; static void initPersistFields(); static void consoleInit(); // bool mConsoleRendering; bool mRightMousePassThru; bool mMiddleMousePassThru; // all editors will share a camera static Point3F smCamPos; static MatrixF smCamMatrix; static bool smCamOrtho; static F32 smCamNearPlane; static F32 smCamFOV; static F32 smVisibleDistanceScale; static U32 smSceneBoundsMask; static Point3F smMinSceneBounds; bool mRenderGridPlane; ColorI mGridPlaneColor; F32 mGridPlaneSize; F32 mGridPlaneSizePixelBias; S32 mGridPlaneMinorTicks; ColorI mGridPlaneMinorTickColor; ColorI mGridPlaneOriginColor; GFXStateBlockRef mBlendSB; // GuiTSCtrl virtual bool getCameraTransform(MatrixF* cameraMatrix); virtual void computeSceneBounds(Box3F& bounds); bool processCameraQuery(CameraQuery * query); // guiControl virtual void onRender(Point2I offset, const RectI &updateRect); virtual void on3DMouseUp(const Gui3DMouseEvent &){}; virtual void on3DMouseDown(const Gui3DMouseEvent &){}; virtual void on3DMouseMove(const Gui3DMouseEvent &){}; virtual void on3DMouseDragged(const Gui3DMouseEvent &){}; virtual void on3DMouseEnter(const Gui3DMouseEvent &){}; virtual void on3DMouseLeave(const Gui3DMouseEvent &){}; virtual void on3DRightMouseDown(const Gui3DMouseEvent &){}; virtual void on3DRightMouseUp(const Gui3DMouseEvent &){}; virtual void on3DRightMouseDragged(const Gui3DMouseEvent &){}; virtual void on3DMouseWheelUp(const Gui3DMouseEvent &){}; virtual void on3DMouseWheelDown(const Gui3DMouseEvent &){}; virtual void get3DCursor(GuiCursor *&cursor, bool &visible, const Gui3DMouseEvent &); virtual bool isMiddleMouseDown() {return mMiddleMouseDown;} S32 getDisplayType() const {return mDisplayType;} virtual void setDisplayType(S32 type); /// Return true if the current view is an ortho projection along one of the world axes. bool isOrthoDisplayType() const { return ( mDisplayType != DisplayTypePerspective && mDisplayType != DisplayTypeIsometric ); } F32 getOrthoFOV() const { return mOrthoFOV; } void setOrthoFOV( F32 fov ) { mOrthoFOV = fov; } virtual TerrainBlock* getActiveTerrain(); virtual void calcOrthoCamOffset(F32 mousex, F32 mousey, U8 modifier=0); Gizmo* getGizmo() { return mGizmo; } /// Set flags or other Gizmo state appropriate for the current situation. /// For example derived classes may override this to disable certain /// axes of modes of manipulation. virtual void updateGizmo(); DECLARE_CONOBJECT(EditTSCtrl); DECLARE_CATEGORY( "Gui Editor" ); }; #endif // _EDITTSCTRL_H_
chipmaurer/presto-connector
trino/src/main/java/io/trino/plugin/pravega/decoder/JsonRowDecoderFactory.java
<filename>trino/src/main/java/io/trino/plugin/pravega/decoder/JsonRowDecoderFactory.java /* * Copyright (c) <NAME>. * * 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. */ package io.trino.plugin.pravega.decoder; import com.fasterxml.jackson.databind.ObjectMapper; import io.trino.decoder.DecoderColumnHandle; import io.trino.decoder.json.CustomDateTimeJsonFieldDecoder; import io.trino.decoder.json.DefaultJsonFieldDecoder; import io.trino.decoder.json.ISO8601JsonFieldDecoder; import io.trino.decoder.json.JsonFieldDecoder; import io.trino.decoder.json.MillisecondsSinceEpochJsonFieldDecoder; import io.trino.decoder.json.RFC2822JsonFieldDecoder; import io.trino.decoder.json.SecondsSinceEpochJsonFieldDecoder; import io.trino.spi.TrinoException; import javax.inject.Inject; import java.util.Map; import java.util.Optional; import java.util.Set; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.collect.ImmutableMap.toImmutableMap; import static io.trino.spi.StandardErrorCode.GENERIC_USER_ERROR; import static java.lang.String.format; import static java.util.Objects.requireNonNull; import static java.util.function.Function.identity; public class JsonRowDecoderFactory { private final ObjectMapper objectMapper; @Inject public JsonRowDecoderFactory(ObjectMapper objectMapper) { this.objectMapper = requireNonNull(objectMapper, "objectMapper is null"); } public JsonRowDecoder create(Set<DecoderColumnHandle> columns) { requireNonNull(columns, "columnHandles is null"); return new JsonRowDecoder(objectMapper, chooseFieldDecoders(columns)); } private Map<DecoderColumnHandle, JsonFieldDecoder> chooseFieldDecoders(Set<DecoderColumnHandle> columns) { return columns.stream() .collect(toImmutableMap(identity(), this::chooseFieldDecoder)); } private JsonFieldDecoder chooseFieldDecoder(DecoderColumnHandle column) { try { requireNonNull(column); checkArgument(!column.isInternal(), "unexpected internal column '%s'", column.getName()); String dataFormat = Optional.ofNullable(column.getDataFormat()).orElse(""); switch (dataFormat) { case "custom-date-time": return new CustomDateTimeJsonFieldDecoder(column); case "iso8601": return new ISO8601JsonFieldDecoder(column); case "seconds-since-epoch": return new SecondsSinceEpochJsonFieldDecoder(column); case "milliseconds-since-epoch": return new MillisecondsSinceEpochJsonFieldDecoder(column); case "rfc2822": return new RFC2822JsonFieldDecoder(column); case "": return new DefaultJsonFieldDecoder(column); default: throw new IllegalArgumentException(format("unknown data format '%s' used for column '%s'", column.getDataFormat(), column.getName())); } } catch (IllegalArgumentException e) { throw new TrinoException(GENERIC_USER_ERROR, e); } } }
harr999y/Whisperwind
Whisperwind/Whisperwind_MeshConverter/include/FbxXmlConverter.h
<filename>Whisperwind/Whisperwind_MeshConverter/include/FbxXmlConverter.h<gh_stars>1-10 /*------------------------------------------------------------------------- This source file is a part of Whisperwind.(GameEngine + GamePlay + GameTools) For the latest info, see http://lisuyong.com Copyright (c) 2012 <NAME> (<EMAIL>) 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 -------------------------------------------------------------------------*/ #ifndef _FBX_XML_CONVERTER_H_ #define _FBX_XML_CONVERTER_H_ #include <fbxsdk.h> #include <boost/lexical_cast.hpp> #include <boost/algorithm/string.hpp> #include "Util.h" #include "XmlManipulator.h" namespace Tool { class FbxXmlConverter { public: explicit FbxXmlConverter(const Util::String & filePath); ~FbxXmlConverter(); public: Util::Wstring convertToXml(); public: SET_VALUE(bool, UVInverse); SET_VALUE(Util::real, ScaleFactor); private: void doWalk(FbxNode * fbxNode); void processMesh(FbxNode * fbxNode); private: FbxManager * mFbxManager; FbxScene * mFbxScene; Util::String mPath; Util::XmlWriterPtr mXmlWriter; Util::XmlNode * mMeshNode; bool mUVInverse; Util::real mScaleFactor; private: template<typename FbxSurfaceType> void fillParams(FbxSurfaceMaterial * fbxMaterial, Util::XmlNode * materialNode) { mXmlWriter->appendAttribute(materialNode, "effect", "default.fx"); mXmlWriter->appendAttribute(materialNode, "technique", "basic"); /// TODO:Now only for the diffuse map. FbxProperty fbxProperty = fbxMaterial->FindProperty(FbxLayerElement::sTextureChannelNames[0]); if (fbxProperty.IsValid()) { FbxTexture * fbxTexture = FbxCast<FbxTexture>(fbxProperty.GetSrcObject(FbxTexture::ClassId, 0)); if (fbxTexture) { FbxFileTexture * fbxFileTexture = FbxCast<FbxFileTexture>(fbxTexture); if (fbxFileTexture) { Util::XmlNode * textureNode = mXmlWriter->appendNode(materialNode, "texture"); mXmlWriter->appendAttribute(textureNode, "name", "diffuse_texture"); Util::String str(fbxFileTexture->GetFileName()); Util::StringVector strVec; boost::algorithm::split(strVec, str, boost::is_any_of("/\\")); mXmlWriter->appendAttribute(textureNode, "value", strVec.rbegin()->c_str()); } } } Util::XmlNode * ambientNode = mXmlWriter->appendNode(materialNode, "param"); Util::XmlNode * diffuseNode = mXmlWriter->appendNode(materialNode, "param"); Util::String value; FbxDouble3 vec3; vec3 = static_cast<FbxSurfaceType *>(fbxMaterial)->Ambient; value = boost::lexical_cast<Util::String>(vec3[0]) + ","; value += boost::lexical_cast<Util::String>(vec3[1]) + ","; value += boost::lexical_cast<Util::String>(vec3[2]); mXmlWriter->appendAttribute(ambientNode, "name", "kAmbient"); mXmlWriter->appendAttribute(ambientNode, "value", value.c_str()); vec3 = static_cast<FbxSurfaceType *>(fbxMaterial)->Diffuse; value = boost::lexical_cast<Util::String>(vec3[0]) + ","; value += boost::lexical_cast<Util::String>(vec3[1]) + ","; value += boost::lexical_cast<Util::String>(vec3[2]); mXmlWriter->appendAttribute(diffuseNode, "name", "kDiffuse"); mXmlWriter->appendAttribute(diffuseNode, "value", value.c_str()); /// TODO:transparent. } private: DISALLOW_COPY_AND_ASSIGN(FbxXmlConverter); }; } #endif
cragkhit/elasticsearch
references/bcb_chosen_clones/default#133849#8#21.java
<gh_stars>10-100 public static void main(String[] args) { System.out.println("Chapter 1 example 1: Hello World"); Document document = new Document(); try { PdfWriter.getInstance(document, new FileOutputStream("Chap0101.pdf")); document.open(); document.add(new Paragraph("Hello World")); } catch (DocumentException de) { System.err.println(de.getMessage()); } catch (IOException ioe) { System.err.println(ioe.getMessage()); } document.close(); }
Imbibed/myFirstGatsbyContentfulApp
src/components/Footer/components/FooterIconLink.js
import React from "react"; import { Link } from 'mailjet-react-components'; const FooterIconLink = props => <Link disabled={false} {...props} iconSize="20px" mode="icon" size="small" target="_blank"/> export default FooterIconLink;
eclipse/keti
model/src/main/java/org/eclipse/keti/acs/rest/PolicyEvaluationRequestV1.java
<filename>model/src/main/java/org/eclipse/keti/acs/rest/PolicyEvaluationRequestV1.java /******************************************************************************* * Copyright 2018 General Electric Company * * 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. * * SPDX-License-Identifier: Apache-2.0 *******************************************************************************/ package org.eclipse.keti.acs.rest; import java.util.LinkedHashSet; import java.util.Set; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.eclipse.keti.acs.model.Attribute; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @SuppressWarnings({ "javadoc", "nls" }) @ApiModel(description = "Policy evaluation request for V1.") public class PolicyEvaluationRequestV1 { @Deprecated public static final LinkedHashSet<String> EMPTY_POLICY_EVALUATION_ORDER = new LinkedHashSet<>(); private String resourceIdentifier; private String subjectIdentifier; private Set<Attribute> subjectAttributes; private Set<Attribute> resourceAttributes; private String action; private LinkedHashSet<String> policySetsEvaluationOrder = new LinkedHashSet<>(); @ApiModelProperty(value = "The resource URI to be consumed", required = true) public String getResourceIdentifier() { return this.resourceIdentifier; } public void setResourceIdentifier(final String resourceUri) { this.resourceIdentifier = resourceUri; } @ApiModelProperty(value = "The subject identifier", required = true) public String getSubjectIdentifier() { return this.subjectIdentifier; } public void setSubjectIdentifier(final String subjectIdentifier) { this.subjectIdentifier = subjectIdentifier; } @ApiModelProperty(value = "Supplemental resource attributes provided by the requestor") public Set<Attribute> getResourceAttributes() { return this.resourceAttributes; } public void setResourceAttributes(final Set<Attribute> resourceAttributes) { this.resourceAttributes = resourceAttributes; } /** * @return the subjectAttributes */ @ApiModelProperty(value = "Supplemental subject attributes provided by the requestor") public Set<Attribute> getSubjectAttributes() { return this.subjectAttributes; } /** * @param subjectAttributes the subjectAttributes to set */ public void setSubjectAttributes(final Set<Attribute> subjectAttributes) { this.subjectAttributes = subjectAttributes; } @ApiModelProperty(value = "The action on the given resource URI", required = true) public String getAction() { return this.action; } public void setAction(final String action) { this.action = action; } @ApiModelProperty(value = "This list of policy set IDs specifies the order in which the service will evaluate policies. " + "Evaluation stops when a policy with matching target is found and the condition returns true, " + "Or all policies are exhausted.") public LinkedHashSet<String> getPolicySetsEvaluationOrder() { return this.policySetsEvaluationOrder; } public void setPolicySetsEvaluationOrder(final LinkedHashSet<String> policySetIds) { if (policySetIds != null) { this.policySetsEvaluationOrder = policySetIds; } } @Override public int hashCode() { HashCodeBuilder hashCodeBuilder = new HashCodeBuilder(); hashCodeBuilder.append(this.action).append(this.resourceIdentifier).append(this.subjectIdentifier); if (null != this.subjectAttributes) { for (Attribute attribute : this.subjectAttributes) { hashCodeBuilder.append(attribute); } } for (String policyID : this.policySetsEvaluationOrder) { hashCodeBuilder.append(policyID); } return hashCodeBuilder.toHashCode(); } @Override public boolean equals(final Object obj) { if (obj instanceof PolicyEvaluationRequestV1) { final PolicyEvaluationRequestV1 other = (PolicyEvaluationRequestV1) obj; EqualsBuilder equalsBuilder = new EqualsBuilder(); // Element by element comparison may produce true negative in Sets so use built in equals. Therefore, defer // to the underlying set's equals() implementation. For details, refer to AbstractSet's (HashSet's ancestor) // documentation. equalsBuilder.append(this.subjectAttributes, other.subjectAttributes); equalsBuilder.append(this.policySetsEvaluationOrder, other.policySetsEvaluationOrder); equalsBuilder.append(this.action, other.action).append(this.resourceIdentifier, other.resourceIdentifier) .append(this.subjectIdentifier, other.subjectIdentifier); return equalsBuilder.isEquals(); } return false; } @Override public String toString() { return "PolicyEvaluationRequest [resourceIdentifier=" + this.resourceIdentifier + ", subjectIdentifier=" + this.subjectIdentifier + ", action=" + this.action + "]"; } }
chenyaoyang/Beth
app/src/main/java/com/chen/beth/blockchainfragment/BlockChainFooterDatabinding.java
package com.chen.beth.blockchainfragment; import androidx.databinding.ObservableField; import com.chen.beth.models.LoadingState; public class BlockChainFooterDatabinding { public ObservableField<Boolean> loadingState = new ObservableField<>(); public BlockChainFooterDatabinding(){ loadingState.set(true); } }
liuqingdada/ShengSiYuan
jdk8/src/main/java/com/shengsiyuan/jdk8/methodreference/Student.java
package com.shengsiyuan.jdk8.methodreference; public class Student { private String name; private int score; public Student(String name, int score) { this.name = name; this.score = score; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getScore() { return score; } public void setScore(int score) { this.score = score; } public static int compareStudentByScore(Student s1, Student s2) { return s1.getScore() - s2.getScore(); } public static int compareStudentByName(Student s1, Student s2) { return s1.getName() .compareToIgnoreCase(s2.getName()); } public int compareByScore(Student student) { return this.getScore() - student.getScore(); } public int compareByName(Student student) { return this.getName() .compareToIgnoreCase(student.getName()); } }
michelcareau/DSpace
dspace-server-webapp/src/main/java/org/dspace/app/rest/submit/factory/impl/ItemMetadataValueReplacePatchOperation.java
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.app.rest.submit.factory.impl; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.dspace.app.rest.model.MetadataValueRest; import org.dspace.app.rest.model.patch.LateObjectEvaluator; import org.dspace.content.InProgressSubmission; import org.dspace.content.Item; import org.dspace.content.MetadataValue; import org.dspace.content.service.ItemService; import org.dspace.core.Context; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; /** * Submission "replace" PATCH operation. * * The replace operation allows to replace existent information with new one. * Attempt to use the replace operation to set not yet initialized information * must return an error. * * Example: <code> * curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/<:id-workspaceitem> -H " * Content-Type: application/json" -d '[{ "op": "replace", "path": " * /sections/traditionalpageone/dc.title/0", "value": {"value": "Add new * title", "language": "en"}}]' * </code> * * It is also possible to change only a single attribute of the {@link MetadataValueRest} (except the "place"). * * Example: <code> * curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/<:id-workspaceitem> -H " * Content-Type: application/json" -d '[{ "op": "replace", "path": " * /sections/traditionalpageone/dc.title/0/language", "value": "it"}]' * </code> * * @author <NAME> (<EMAIL>.pascarelli at 4science.it) */ public class ItemMetadataValueReplacePatchOperation extends MetadataValueReplacePatchOperation<Item> { @Autowired ItemService itemService; @Override void replace(Context context, HttpServletRequest currentRequest, InProgressSubmission source, String path, Object value) throws Exception { String[] split = getAbsolutePath(path).split("/"); List<MetadataValue> metadataByMetadataString = itemService.getMetadataByMetadataString(source.getItem(), split[0]); Assert.notEmpty(metadataByMetadataString); int index = Integer.parseInt(split[1]); // if split size is one so we have a call to initialize or replace if (split.length == 2) { MetadataValueRest obj = evaluateSingleObject((LateObjectEvaluator) value); replaceValue(context, source.getItem(), split[0], metadataByMetadataString, obj, index); } else { if (split.length == 3) { setDeclaredField(context, source.getItem(), value, split[0], split[2], metadataByMetadataString, index); } } } @Override protected ItemService getDSpaceObjectService() { return itemService; } }
takuto-y/the
packages/code/test/processPackageJSONTest.js
'use strict' /** * @file Test for processPackageJSON. * Runs with mocha. */ const { strict: { equal }, } = require('assert') const processPackageJSON = require('../lib/processors/processPackageJSON') describe('process-package-jso-n', () => { before(() => {}) after(() => {}) it('Do test', async () => { equal( await processPackageJSON( '{"version":"1.2.3", "name":"hoge", "dependencies": {"b":"1", "a":"2"}}', ), `{ "name": "hoge", "version": "1.2.3", "dependencies": { "a": "2", "b": "1" } } `, ) }) }) /* global describe, before, after, it */
showsmall/goa.c
code/test/main.go
package main import ( "fmt" "runtime" ) func main() { v := struct{}{} a := make(map[int]struct{}) for i := 0; i < 10000; i++ { a[i] = v } runtime.GC() printMemStats("After Map Add 100000") for i := 0; i < 10000-1; i++ { delete(a, i) } runtime.GC() printMemStats("After Map Delete 9999") for i := 0; i < 10000-1; i++ { a[i] = v } runtime.GC() printMemStats("After Map Add 9999 again") a = nil runtime.GC() printMemStats("After Map Set nil") } func printMemStats(mag string) { var m runtime.MemStats runtime.ReadMemStats(&m) fmt.Printf("%v:memory = %vKB, GC Times = %v\n", mag, m.Alloc/1024, m.NumGC) }
ItsGagan/rekall
app/models/score.rb
<filename>app/models/score.rb # frozen_string_literal: true class Score < ApplicationRecord belongs_to :result belongs_to :query belongs_to :query_group belongs_to :user def update_ratings_with(params) doc_score = valid_scorer_scale_value(params[:score]) return false unless doc_score doc = params[:doc] document_uuid = doc[query_group.document_uuid] doc_pos = find_doc_position(document_uuid) self.ratings ||= {} self.ratings[document_uuid] = { pos: doc_pos, value: doc_score } end private def valid_scorer_scale_value(value) if !query_group.scorer.is_valid_scale_value?(value) errors.add(:ratings, "score should be in #{query_group.scorer.scale.inspect}") return false end value end def find_doc_position(document_uuid) result.data.each_with_index do |doc, index| return index + 1 if doc[query_group.document_uuid] == document_uuid end -1 end end
pengm2ng/TENOK_COIN_PROJECT
tenok-coin/src/main/java/org/tenok/coin/data/entity/OrderDataAccessable.java
<gh_stars>1-10 package org.tenok.coin.data.entity; import java.util.Date; public interface OrderDataAccessable extends Orderable { /** * * @return timestamp */ public Date getTimeStamp(); }
slowy07/google-cloud-cpp
google/cloud/bigtable/instance_update_config_test.cc
// Copyright 2018 Google LLC // // 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 "google/cloud/bigtable/instance_update_config.h" #include <google/protobuf/text_format.h> #include <gmock/gmock.h> namespace google { namespace cloud { namespace bigtable { GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN namespace { namespace btadmin = ::google::bigtable::admin::v2; TEST(InstanceUpdateConfigTest, Constructor) { std::string instance_text = R"( name: 'projects/my-project/instances/test-instance' display_name: '<NAME>' state: READY type: PRODUCTION labels: { key: 'foo1' value: 'bar1' } labels: { key: 'foo2' value: 'bar2' } )"; btadmin::Instance instance; ASSERT_TRUE(::google::protobuf::TextFormat::ParseFromString(instance_text, &instance)); InstanceUpdateConfig config(std::move(instance)); auto const& proto = config.as_proto(); EXPECT_EQ("projects/my-project/instances/test-instance", proto.instance().name()); EXPECT_EQ("foo bar", proto.instance().display_name()); ASSERT_EQ(2, proto.instance().labels_size()); } TEST(InstanceUpdateConfigTest, UpdateMask) { std::string instance_text = R"( name: 'projects/my-project/instances/test-instance' display_name: '<NAME>' state: READY type: PRODUCTION labels: { key: 'foo1' value: 'bar1' } labels: { key: 'foo2' value: 'bar2' } )"; btadmin::Instance instance; ASSERT_TRUE(::google::protobuf::TextFormat::ParseFromString(instance_text, &instance)); InstanceUpdateConfig config(std::move(instance)); config.set_display_name("foo1"); auto proto = config.as_proto(); EXPECT_EQ("projects/my-project/instances/test-instance", proto.instance().name()); EXPECT_EQ("foo1", proto.instance().display_name()); ASSERT_EQ(1, proto.update_mask().paths_size()); config.set_display_name("foo2"); proto = config.as_proto(); EXPECT_EQ("foo2", proto.instance().display_name()); ASSERT_EQ(1, proto.update_mask().paths_size()); } TEST(InstanceUpdateConfigTest, SetLabels) { std::string instance_text = R"( name: 'projects/my-project/instances/test-instance' display_name: 'foo bar' state: READY type: PRODUCTION )"; btadmin::Instance instance; ASSERT_TRUE(::google::protobuf::TextFormat::ParseFromString(instance_text, &instance)); InstanceUpdateConfig config(std::move(instance)); config.insert_label("foo", "bar").emplace_label("baz", "qux"); auto proto = config.as_proto(); EXPECT_EQ("projects/my-project/instances/test-instance", proto.instance().name()); EXPECT_EQ("foo bar", proto.instance().display_name()); ASSERT_EQ(2, proto.instance().labels_size()); EXPECT_EQ("bar", proto.instance().labels().at("foo")); EXPECT_EQ("qux", proto.instance().labels().at("baz")); } } // namespace GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END } // namespace bigtable } // namespace cloud } // namespace google
mamoudmatook/PythonSpecializaionInRussian
1-DiveIntoPython/week2/storage.py
import json import tempfile import argparse import os STORAGE_FILE = os.path.join(tempfile.gettempdir(), 'storage.data') def main(): storage = None argparser = argparse.ArgumentParser(description='') argparser.add_argument('-k', '--key', dest='key', required=True) argparser.add_argument('-v', '--value', dest='value') args = argparser.parse_args() if not os.path.isfile(STORAGE_FILE): storage = dict() else: with open(STORAGE_FILE) as fo: storage = json.load(fo) if args.value and args.key: if args.key in storage: storage[args.key].append(args.value) else: storage[args.key] = [] storage[args.key].append(args.value) with open(STORAGE_FILE, 'w') as fo: json.dump(storage, fo) else: if args.key in storage: values = storage[args.key] first = True for value in values: if not first: print(', ', end = '') first = False print(value, end= '') if __name__ == '__main__': main()
bednya/wilson
wilson/run/smeft/rge.py
<gh_stars>10-100 """Solving the SMEFT RGEs.""" from . import beta from copy import deepcopy from math import pi, log from scipy.integrate import solve_ivp from wilson.util.smeftutil import C_array2dict, C_dict2array, arrays2wcxf_nonred import numpy as np def smeft_evolve_leadinglog(C_in, scale_in, scale_out, newphys=True): """Solve the SMEFT RGEs in the leading log approximation. Input C_in and output C_out are dictionaries of arrays.""" C_out = deepcopy(C_in) b = beta.beta(C_out, newphys=newphys) for k, C in C_out.items(): C_out[k] = C + b[k] / (16 * pi**2) * log(scale_out / scale_in) return C_out def _smeft_evolve(C_in, scale_in, scale_out, newphys=True, **kwargs): """Axuliary function used in `smeft_evolve` and `smeft_evolve_continuous`""" def fun(t0, y): return beta.beta_array(C=C_array2dict(y.view(complex)), newphys=newphys).view(float) / (16 * pi**2) y0 = C_dict2array(C_in).view(float) sol = solve_ivp(fun=fun, t_span=(log(scale_in), log(scale_out)), y0=y0, **kwargs) return sol def smeft_evolve(C_in, scale_in, scale_out, newphys=True, **kwargs): """Solve the SMEFT RGEs by numeric integration. Input C_in and output C_out are dictionaries of arrays.""" sol = _smeft_evolve(C_in, scale_in, scale_out, newphys=newphys, **kwargs) return C_array2dict(sol.y[:, -1].view(complex)) def smeft_evolve_continuous(C_in, scale_in, scale_out, newphys=True, **kwargs): """Solve the SMEFT RGEs by numeric integration, returning a function that allows to compute an interpolated solution at arbitrary intermediate scales.""" sol = _smeft_evolve(C_in, scale_in, scale_out, newphys=newphys, dense_output=True, **kwargs) @np.vectorize def _rge_solution(scale): t = log(scale) y = sol.sol(t).view(complex) yd = C_array2dict(y) yw = arrays2wcxf_nonred(yd) return yw def rge_solution(scale): # this is to return a scalar if the input is scalar return _rge_solution(scale)[()] return rge_solution
hixio-mh/citadel_sdk_2.1.1
drivers/broadcom/unicam/unicam_bcm5820x_csi.c
<gh_stars>0 /****************************************************************************** * Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited * and/or its subsidiaries. * * This program is the proprietary software of Broadcom and/or its licensors, * and may only be used, duplicated, modified or distributed pursuant to the * terms and conditions of a separate, written license agreement executed * between you and Broadcom (an "Authorized License"). Except as set forth in * an Authorized License, Broadcom grants no license (express or implied), * right to use, or waiver of any kind with respect to the Software, and * Broadcom expressly reserves all rights in and to the Software and all * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, * THEN YOU HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD * IMMEDIATELY NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. * * Except as expressly set forth in the Authorized License, * * 1. This program, including its structure, sequence and organization, * constitutes the valuable trade secrets of Broadcom, and you shall use all * reasonable efforts to protect the confidentiality thereof, and to use this * information only in connection with your use of Broadcom integrated circuit * products. * * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED * "AS IS" AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS * OR WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH * RESPECT TO THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL * IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A * PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET * ENJOYMENT, QUIET POSSESSION OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE * ENTIRE RISK ARISING OUT OF USE OR PERFORMANCE OF THE SOFTWARE. * * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR * ITS LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, * INDIRECT, OR EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY * RELATING TO YOUR USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN * EXCESS OF THE AMOUNT ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, * WHICHEVER IS GREATER. THESE LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY * FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY. ******************************************************************************/ /* @file unicam_bcm5820x_csi.c * * Unicam (Universal camera inerface) driver for the serial (CSI2) interface * * This driver provides apis, to configure the serial camera connected * to the unicam controller and capture images from it. * */ #include <board.h> #include <unicam.h> #include <arch/cpu.h> #include <kernel.h> #include <errno.h> #include <logging/sys_log.h> #include <misc/util.h> #include <string.h> #include <broadcom/dma.h> #include "unicam_bcm5820x_csi.h" #include "unicam_bcm5820x_regs.h" #ifdef CONFIG_LI_V024M_CAMERA #include "li_v024m.h" #else #warning Unicam driver enabled, but no supported camera module selected #endif /* Unicam Interrupt number */ #define UNICAM_INTERRUPT_NUM SPI_IRQ(CHIP_INTR__IOSYS_UNICAM_INTERRUPT) /* Unicam data buffer size */ #define DATA_BUFF_SIZE KB(8) /* I2C interfaces available */ #define I2C0 0 #define I2C1 1 #define I2C2 2 /* Default to SVK */ #ifndef CONFIG_CAM_I2C_PORT #define CONFIG_CAM_I2C_PORT I2C1 #endif /* Timeout while waiting for an frame */ #define FRAME_WAIT_COUNT 500 #define DATA_INT_STATUS_BIT 24 #define WIPE_PING_PONG_BUFFER_AFTER_IMAGE_READ /* Return pointer aligned to next 'ALIGN'-byte boundary */ #define ALIGN_PTR(PTR, ALIGN) (void *)(((u32_t)PTR + ALIGN - 1) & ~(ALIGN - 1)) /* Frame end interrupts don't appear to be working reliably with the unicam * controller. This interrupt is essential especially in double buffering mode * to sync to the first segment in the frame. This define enables the code to * configure packet capture module for capturing frame end packets. */ #define USE_PACKET_CAPTURE_TO_DETECT_FRAME_END #ifdef USE_PACKET_CAPTURE_TO_DETECT_FRAME_END #define CONFIG_CAPTURE_AND_LOG_PACKETS #endif /* For debugging: Enable this to check if frame start and * image packets are being captured by the unicam controller */ #define CONFIG_CAPTURE_AND_LOG_PACKETS #ifdef CONFIG_CAPTURE_AND_LOG_PACKETS struct packet_capture_info { u8_t virtual_chan; /* Virtual channel Identifier (0 - 3) */ u8_t data_type; /* Data type in the packet header (0 - 63) * See MIPI CSI2 spec for list of data types */ }; #ifndef USE_PACKET_CAPTURE_TO_DETECT_FRAME_END static struct packet_capture_info packet_cap[] = { {0x0, MIPI_DATA_TYPE_FRAME_START}, {0x0, MIPI_DATA_TYPE_RAW8} }; #endif /* USE_PACKET_CAPTURE_TO_DETECT_FRAME_END */ #endif /* CONFIG_CAPTURE_AND_LOG_PACKETS */ /* Bits per pixel info */ struct bpp_info { u8_t pixel_format; u8_t bpp; }; /* Image buffer read task params */ #define TASK_STACK_SIZE 2048 static K_THREAD_STACK_DEFINE(image_buffer_read_task_stack, TASK_STACK_SIZE); static struct k_thread img_buff_read_task; /* Messages sent from ISR to image buffer read task */ #define BUFFER_0_READY 0x10 #define BUFFER_1_READY 0x11 #define FRAME_START_INTERRUPT 0x21 #define FRAME_END_INTERRUPT 0x22 #define STREAMING_STOPPED 0x31 #define PACKET_CAPTURED_0 0x41 #define PACKET_CAPTURED_1 0x42 /* Alignment lengths */ #define AXI_BURST_LENGTH 16 #define STRIDE_ALIGN 256 #define CACHE_LINE_SIZE 64 /* IDSF Parameter range (16 bit) */ #define IDSF_PARAM_RANGE 65536 /* Fifo size */ #define ISR_FIFO_SIZE 256 /* ISR message FIFO entry */ struct isr_fifo_entry { void *link_in_fifo; /* Used by Zephyr kernel */ u32_t msg; }; /* Fifo elements */ struct isr_fifo_entry msgs[ISR_FIFO_SIZE]; u8_t fifo_index; /* * @brief Unicam device private data * * state - Driver state (Initialized/Configured/Streaming) * img_buff0 - Pointer to image buffer 0 * img_buff1 - Pointer to image buffer 1 * data_buff0 - Pointer to data buffer 0 * data_buff1 - Pointer to data buffer 1 * alloc_ptr - A single allocation is made for all the image and data buffers * alloc_ptr holds this pointer. * alloc_size - A single allocation is made for all the image and data buffers * alloc_size hold this total size * read_buff - Pointer to image read buffer (used only in double buffering mode) * read_buff_image_valid - True, if the image has not yet been read by get_frame * False, if it has been read by get_frame() already * read_buff_seg_num - Segment id of the segment copied to read buff * i2c_interface - 0/1/2, index of the i2c controller. 5820X has 3 i2c * controllers * i2c_info - I2C device info needed by camera module specific code * segment_id - Holds the index of the next segment that will be written out * by the unicam output engine. This is valid only when double * buffering is enabled * isr_fifo - FIFO used byt the unicam ISR to communicate frame reception to the * image read task * read_buff_lock - Lock used over the read buffer between the writing thread * and the get_next_frame() api to ensure data synchronization * get_frame_info - Pointer to image_buffer passed by to get_frame() call. This * field is used to communicate the image buffer to the read * task, so that it can be updated with the image data by the * read buffer thread. * num_active_data_lanes - Number of MIPI data lanes in use */ struct unicam_data { u8_t state; u8_t *img_buff0; u8_t *img_buff1; u8_t *data_buff0; u8_t *data_buff1; u8_t *read_buff; u8_t read_buff_image_valid; u8_t read_buff_seg_num; u8_t *alloc_ptr; u32_t alloc_size; u8_t i2c_interface; struct i2c_dev_info i2c_info; u8_t segment_id; struct k_fifo isr_fifo; struct k_sem read_buff_lock; struct image_buffer *get_frame_info; u8_t num_active_data_lanes; }; /* Bits per pixel as packed on the csi-2 bus */ static const struct bpp_info bpp[] = { {UNICAM_PIXEL_FORMAT_RAW6, 6}, {UNICAM_PIXEL_FORMAT_RAW7, 7}, {UNICAM_PIXEL_FORMAT_RAW8, 8}, {UNICAM_PIXEL_FORMAT_RAW10, 10}, {UNICAM_PIXEL_FORMAT_RAW12, 12}, {UNICAM_PIXEL_FORMAT_RAW14, 14}, {UNICAM_PIXEL_FORMAT_RGB444, 16}, {UNICAM_PIXEL_FORMAT_RGB555, 16}, {UNICAM_PIXEL_FORMAT_RGB565, 16}, {UNICAM_PIXEL_FORMAT_RGB666, 18}, {UNICAM_PIXEL_FORMAT_RGB888, 24}, {UNICAM_PIXEL_FORMAT_YUV_420_8, 8}, {UNICAM_PIXEL_FORMAT_YUV_420_10, 10}, {UNICAM_PIXEL_FORMAT_YUV_422_8, 8}, {UNICAM_PIXEL_FORMAT_YUV_422_10, 10} }; /* * @brief Return bits per pixel required for a give pixel format */ static u8_t get_bpp(u8_t pixel_format) { u32_t i; for (i = 0; i < ARRAY_SIZE(bpp); i++) if (pixel_format == bpp[i].pixel_format) return bpp[i].bpp; /* Return 8 (1 byte) for an invalid format */ return 8; } /* * @brief Reset Analogue PHY */ static void reset_analog_phy(void) { u32_t val; /* Analogue reset PHY */ val = sys_read32(CAMANA_ADDR); SET_FIELD(val, CAMANA, AR, 1); sys_write32(val, CAMANA_ADDR); /* Sleep for 100 ms for Analog phy to reset */ k_sleep(100); SET_FIELD(val, CAMANA, AR, 0); sys_write32(val, CAMANA_ADDR); } /* * @brief Enable Analog Power */ static void enable_analog_phy_power(void) { u32_t val; /* Enable Analog and Band Gap Power */ val = sys_read32(CAMANA_ADDR); SET_FIELD(val, CAMANA, APD, 0); SET_FIELD(val, CAMANA, BPD, 0); sys_write32(val, CAMANA_ADDR); } /* * @brief Configure pixel correction parameters */ static void config_pixel_correction_params(struct unicam_config *config) { u32_t linelen, val; struct windowing_params *win = config->win_params; struct pixel_correction_params *pc = config->pc_params; if (config->pc_params) { linelen = win ? (win->end_pixel - win->end_pixel + 1) : config->capture_width; /* Set pixel correction params */ val = 0x0; SET_FIELD(val, CAMICC, ICLL, linelen); SET_FIELD(val, CAMICC, ICLT, pc->iclt); SET_FIELD(val, CAMICC, ICST, pc->icst); SET_FIELD(val, CAMICC, ICFH, pc->icfh); SET_FIELD(val, CAMICC, ICFL, pc->icfl); sys_write32(val, CAMICC_ADDR); /* Enable Pixel correction */ val = sys_read32(CAMIPIPE_ADDR); SET_FIELD(val, CAMIPIPE, ICM, 1); sys_write32(val, CAMIPIPE_ADDR); } else { /* Disable Pixel correction */ val = sys_read32(CAMIPIPE_ADDR); SET_FIELD(val, CAMIPIPE, ICM, 0); sys_write32(val, CAMIPIPE_ADDR); } } /* * @brief Configure image down sizing parameters */ static void config_downsizing_params(struct unicam_config *config) { u32_t linelen, val, i, j; struct down_size_params *ds = config->ds_params; struct windowing_params *win = config->win_params; if (config->ds_params) { /* Program CAMIDC */ val = 0x0; SET_FIELD(val, CAMIDC, IDSF, ds->idsf); linelen = win ? (win->end_pixel - win->end_pixel + 1) : config->capture_width; SET_FIELD(val, CAMIDC, IDLL, linelen); sys_write32(val, CAMIDC_ADDR); /* Program CAMIDPO */ val = 0x0; SET_FIELD(val, CAMIDPO, IDSO, ds->start_offset); SET_FIELD(val, CAMIDPO, IDOPO, ds->odd_pixel_offset); sys_write32(val, CAMIDPO_ADDR); /* Program the co-efficients */ for (i = 0; i < ds->num_phases; i++) { /* We write 2 co-efficients at once */ for (j = 0; j < ds->num_coefficients; j += 2) { u32_t offset; /* 2 bytes per co-efficient */ offset = (i*ds->num_coefficients + j)*2; val = 0x0; SET_FIELD(val, CAMIDCD, IDCDA, ds->coefficients[i*ds->num_coefficients+j]); SET_FIELD(val, CAMIDCD, IDCDB, ds->coefficients[i*ds->num_coefficients+j+1]); sys_write32(offset, CAMIDCA_ADDR); sys_write32(val, CAMIDCD_ADDR); } } /* Enable Down Sizing */ val = sys_read32(CAMIPIPE_ADDR); SET_FIELD(val, CAMIPIPE, IDM, 1); sys_write32(val, CAMIPIPE_ADDR); } else { /* Enable Down Sizing */ val = sys_read32(CAMIPIPE_ADDR); SET_FIELD(val, CAMIPIPE, IDM, 0); sys_write32(val, CAMIPIPE_ADDR); } } /* * @brief Configure Windowing parameters */ static void config_windowing_params(struct unicam_config *config) { u32_t val; struct windowing_params *win = config->win_params; if (config->win_params) { val = 0x0; /* Pixels processed in pairs - align start/end pixels */ SET_FIELD(val, CAMIHWIN, HWSP, win->start_pixel & ~0x1); SET_FIELD(val, CAMIHWIN, HWSP, win->end_pixel | 0x1); sys_write32(val, CAMIHWIN_ADDR); val = 0x0; SET_FIELD(val, CAMIVWIN, VWSL, win->start_line); SET_FIELD(val, CAMIVWIN, VWEL, win->end_line); sys_write32(val, CAMIVWIN_ADDR); } else { /* Disable Windowing */ sys_write32(0x0, CAMIHWIN_ADDR); sys_write32(0x0, CAMIVWIN_ADDR); } } /* * @brief Get image height * @details Retrieve the image height as output by the unicam pipeline. This * will be smaller than or equal to the capture height */ static u32_t get_image_height(const struct unicam_config *config) { u32_t img_height = config->capture_height; if (config->win_params) img_height = config->win_params->end_line - config->win_params->start_line + 1; if (config->ds_params) img_height = (img_height * IDSF_PARAM_RANGE) / (IDSF_PARAM_RANGE + config->ds_params->idsf); return img_height; } /* * @brief Get image width * @details Retrieve the image width as output by the unicam pipeline. This * will be smaller than or equal to the capture width */ static u32_t get_image_width(struct unicam_config *config) { u32_t img_width = config->capture_width; if (config->win_params) img_width = config->win_params->end_pixel - config->win_params->start_pixel + 1; if (config->ds_params) img_width = (img_width * IDSF_PARAM_RANGE) / (IDSF_PARAM_RANGE + config->ds_params->idsf); return img_width; } #ifdef CONFIG_USE_STATIC_MEMORY_FOR_BUFFER /* When using statically allocated memory, we assume a max of 640x80 size * segment buffer. */ #define MAX_WIDTH 640 #define MAX_HEIGHT 40 #define CAM_LINE_SIZE ((MAX_WIDTH + STRIDE_ALIGN - 1) & \ ~(STRIDE_ALIGN - 1)) #define CAM_IMAGE_BUFF_SIZE (CAM_LINE_SIZE*MAX_HEIGHT + STRIDE_ALIGN) #define CAM_DATA_BUFF_SIZE (DATA_BUFF_SIZE + STRIDE_ALIGN) #define CAM_BUFF_SIZE ((2*CAM_IMAGE_BUFF_SIZE) + /* Image buffer */ \ (2*CAM_DATA_BUFF_SIZE) + /* Data buffer */ \ CAM_IMAGE_BUFF_SIZE + /* Read buffer */ \ STRIDE_ALIGN) static u8_t __attribute__((__aligned__(STRIDE_ALIGN))) cam_buff[CAM_BUFF_SIZE]; #endif /* * @brief Configure image and data buffers * @details This function allocates the memory required for image and data * buffers. It takes into account the windowing and downsizing params * to compute the buffers size. It also takes into account the * double_buff_en flag and enables/disables the hw bit accordingly. * If the memory allocation succeeds then the previously allocated * memory is freed. * * @return 0 on success and -errno on failure */ static int configure_image_data_buffers( struct unicam_config *config, struct unicam_data *dd) { u32_t alloc_size; u32_t img_size, stride, dt_size, val; u32_t segment_height, img_height, img_width; /* Calculate image height and width (After it passes through the * Image processing pipeline */ img_height = get_image_height(config); img_width = get_image_width(config); /* Calculate image width */ stride = img_width*get_bpp(config->pixel_format)/8; /* Align image buffer size */ stride = (stride + STRIDE_ALIGN - 1) & ~(STRIDE_ALIGN - 1); /* From unicam peripheral spec */ dt_size = DATA_BUFF_SIZE; /* Align data buffer size */ dt_size = (dt_size + AXI_BURST_LENGTH - 1) & ~(AXI_BURST_LENGTH - 1); /* - Allow 'AXI_BURST_LENGTH' bytes between buffers, * because both start and end addresses both need to be * aligned even though they are inclusive. */ dt_size += AXI_BURST_LENGTH; #ifndef CONFIG_USE_STATIC_MEMORY_FOR_BUFFER /* Free previously allocated image and data buffers only after the * Allocation for the current configuration succeeds */ if (dd->alloc_ptr) cache_line_aligned_free(dd->alloc_ptr); #endif /* Allocate image and data buffers */ if (config->double_buff_en) { segment_height = config->segment_height; if (segment_height == 0) segment_height = img_height; /* Calculate image size * - Allow 'AXI_BURST_LENGTH' bytes between buffers, * because both start and end addresses both need to be * aligned even though they are inclusive. */ img_size = stride * segment_height + AXI_BURST_LENGTH; /* Calculate allocation size * - 2 image buffers * - 2 data buffers * - 1 read image buffer (same size as image buffer) * - STRIDE_ALIGN to accommodate aligning the allocated * pointer to the next STRIDE_ALIGN boundary */ alloc_size = 2*(img_size + dt_size) + img_size + STRIDE_ALIGN; #ifdef CONFIG_USE_STATIC_MEMORY_FOR_BUFFER if (alloc_size > CAM_BUFF_SIZE) return -ENOMEM; dd->alloc_ptr = cam_buff; #else dd->alloc_ptr = cache_line_aligned_alloc(alloc_size); if (dd->alloc_ptr == NULL) return -ENOMEM; #endif /* Update allocation size */ dd->alloc_size = alloc_size; /* Image buffer has to start at a stride align boundary */ dd->img_buff0 = ALIGN_PTR(dd->alloc_ptr, STRIDE_ALIGN); /* Partition allocated memory */ dd->img_buff1 = dd->img_buff0 + img_size; dd->data_buff0 = dd->img_buff1 + img_size; dd->data_buff1 = dd->data_buff0 + dt_size; dd->read_buff = dd->data_buff1 + dt_size; dd->read_buff_image_valid = false; /* Program image and data buffer start/end addresses */ sys_write32((u32_t)dd->img_buff0, CAMIBSA0_ADDR); sys_write32((u32_t)dd->img_buff0 + img_size - 1, CAMIBEA0_ADDR); sys_write32((u32_t)dd->img_buff1, CAMIBSA1_ADDR); sys_write32((u32_t)dd->img_buff1 + img_size - 1, CAMIBEA1_ADDR); sys_write32((u32_t)dd->data_buff0, CAMDBSA0_ADDR); sys_write32((u32_t)dd->data_buff0 + dt_size - 1, CAMDBEA0_ADDR); sys_write32((u32_t)dd->data_buff1, CAMDBSA1_ADDR); sys_write32((u32_t)dd->data_buff1 + dt_size - 1, CAMDBEA1_ADDR); /* Set double buffer enable bit */ val = sys_read32(CAMDBCTL_ADDR); SET_FIELD(val, CAMDBCTL, DB_EN, 1); sys_write32(val, CAMDBCTL_ADDR); } else { img_size = stride*img_height + AXI_BURST_LENGTH; alloc_size = img_size + dt_size + STRIDE_ALIGN; #ifdef CONFIG_USE_STATIC_MEMORY_FOR_BUFFER if (alloc_size > CAM_BUFF_SIZE) return -ENOMEM; dd->alloc_ptr = cam_buff; #else dd->alloc_ptr = cache_line_aligned_alloc(alloc_size); if (dd->alloc_ptr == NULL) return -ENOMEM; #endif /* Update allocation size */ dd->alloc_size = alloc_size; /* Image buffer has to start at a stride align boundary */ dd->img_buff0 = ALIGN_PTR(dd->alloc_ptr, STRIDE_ALIGN); /* Set data buffer address */ dd->data_buff0 = dd->img_buff0 + img_size; /* Program image and data buffer start/end addresses */ sys_write32((u32_t)dd->img_buff0, CAMIBSA0_ADDR); sys_write32((u32_t)dd->img_buff0 + img_size - 1, CAMIBEA0_ADDR); sys_write32((u32_t)dd->data_buff0, CAMDBSA0_ADDR); sys_write32((u32_t)dd->data_buff0 + dt_size - 1, CAMDBEA0_ADDR); /* Disable double buffer enable bit */ val = sys_read32(CAMDBCTL_ADDR); SET_FIELD(val, CAMDBCTL, DB_EN, 0); sys_write32(val, CAMDBCTL_ADDR); } return 0; } /* * @brief Configure packet capture */ void configure_packet_capture(void) { u32_t val; #ifdef CONFIG_CAPTURE_AND_LOG_PACKETS val = 0x0; SET_FIELD(val, CAMCMP0, PCEN, 1); SET_FIELD(val, CAMCMP0, GIN, 1); SET_FIELD(val, CAMCMP0, CPHN, 1); #ifdef USE_PACKET_CAPTURE_TO_DETECT_FRAME_END /* Configure only packet capture0 (frame end) */ SET_FIELD(val, CAMCMP0, PCVCN, 0x0); SET_FIELD(val, CAMCMP0, PCDTN, MIPI_DATA_TYPE_FRAME_END); sys_write32(val, CAMCMP0_ADDR); #else /* Configure both packet captures (As configured in packet_cap[]) */ SET_FIELD(val, CAMCMP0, PCVCN, packet_cap[0].virtual_chan); SET_FIELD(val, CAMCMP0, PCDTN, packet_cap[0].data_type); sys_write32(val, CAMCMP0_ADDR); SET_FIELD(val, CAMCMP0, PCVCN, packet_cap[1].virtual_chan); SET_FIELD(val, CAMCMP0, PCDTN, packet_cap[1].data_type); sys_write32(val, CAMCMP1_ADDR); #endif /* USE_PACKET_CAPTURE_TO_DETECT_FRAME_END */ #else sys_write32(0x0, CAMCMP0_ADDR); sys_write32(0x0, CAMCMP1_ADDR); #endif /* CONFIG_CAPTURE_AND_LOG_PACKETS */ } /* * @brief Initialize unicam registers */ static void init_unicam_regs(void) { u32_t val, i; /* Initialize UNICAM_REG register */ val = 0; SET_FIELD(val, UNICAM_REG, CAM_FS2X_EN_CLK, 1); SET_FIELD(val, UNICAM_REG, CAM_LDO_CNTL_EN, 1); sys_write32(val, UNICAM_REG_ADDR); k_busy_wait(3); SET_FIELD(val, UNICAM_REG, CAM_HP_EN, 1); SET_FIELD(val, UNICAM_REG, CAM_LDORSTB_1P8, 1); SET_FIELD(val, UNICAM_REG, CAM_LP_EN, 1); sys_write32(val, UNICAM_REG_ADDR); k_busy_wait(100); /* Initialize the unicam controller registers */ /* CAMCTL */ val = 0x0; SET_FIELD(val, CAMCTL, MEN, 1); /* Memories enabled */ SET_FIELD(val, CAMCTL, OET, 32); /* Set output engine timeout */ SET_FIELD(val, CAMCTL, PFT, 5); /* PFT - Set to default (5) */ SET_FIELD(val, CAMCTL, CPM, 0); /* Select CSI2 mode */ SET_FIELD(val, CAMCTL, CPE, 0); /* Leave peripheral disabled */ sys_write32(val, CAMCTL_ADDR); /* CAMANA */ val = 0x0; SET_FIELD(val, CAMANA, PTATADJ, 7); /* Band gap bias control */ SET_FIELD(val, CAMANA, CTATADJ, 7); /* Band gap bias control */ SET_FIELD(val, CAMANA, DDL, 1); /* Disable data lanes */ SET_FIELD(val, CAMANA, LDO_PU, 1); /* Power up LDO */ SET_FIELD(val, CAMANA, APD, 1); /* Analogue power down */ SET_FIELD(val, CAMANA, BPD, 1); /* Band-gap power down */ sys_write32(val, CAMANA_ADDR); /* CAMPRI */ val = 0x0; SET_FIELD(val, CAMPRI, BL, 0); /* Set AXI burst length */ SET_FIELD(val, CAMPRI, BS, 2); /* Set AXI burst spacing */ SET_FIELD(val, CAMPRI, PE, 0); /* Disable panic */ sys_write32(val, CAMPRI_ADDR); /* CAMCLK */ val = 0x0; SET_FIELD(val, CAMCLK, CLE, 0); /* Disable clock lane */ SET_FIELD(val, CAMCLK, CLPD, 1); /* Power down clock */ SET_FIELD(val, CAMCLK, CLLPE, 0); /* Disable low power */ SET_FIELD(val, CAMCLK, CLHSE, 0); /* HS mode - automatic */ SET_FIELD(val, CAMCLK, CLTRE, 0); /* Termination resistor enable * - automatic */ sys_write32(val, CAMCLK_ADDR); /* CAMDATn */ val = 0x0; SET_FIELD(val, CAMDAT0, DLEN, 0); /* Disable data lane */ SET_FIELD(val, CAMDAT0, DLPDN, 0); /* Power Down data lane */ SET_FIELD(val, CAMDAT0, DLLPEN, 0); /* Disable low power */ SET_FIELD(val, CAMDAT0, DLHSEN, 0); /* HS mode - automatic */ SET_FIELD(val, CAMDAT0, DLTREN, 0); /* Termination resistor enable * - automatic */ SET_FIELD(val, CAMDAT0, DLSMN, 1); /* No bit errors allowed */ for (i = 0; i < 4; i++) /* For all 4 data lanes */ sys_write32(val, CAMDAT0_ADDR + i*4); /* CAMICTL */ val = 0x0; SET_FIELD(val, CAMICTL, IBOB, 1); sys_write32(val, CAMICTL_ADDR); /* Disable all image processing pipeline features * CAMIPIPE, CAMIHWIN, CAMIVWIN */ sys_write32(0, CAMIPIPE_ADDR); sys_write32(0, CAMIHWIN_ADDR); sys_write32(0, CAMIVWIN_ADDR); /* CAMDCS */ val = 0x0; SET_FIELD(val, CAMDCS, DBOB, 1); sys_write32(val, CAMDCS_ADDR); /* CAMFIX0 */ val = 0x0; SET_FIELD(val, CAMFIX0, CPI_SELECT, 0); sys_write32(val, CAMFIX0_ADDR); } /* * @brief Soft reset unicam controller for debug/error recovery purposes */ void unicam_soft_reset(void) { u32_t val; /* Disable data lines */ val = sys_read32(CAMANA_ADDR); SET_FIELD(val, CAMANA, DDL, 1); sys_write32(val, CAMANA_ADDR); /* Shutdown output engine */ val = sys_read32(CAMCTL_ADDR); SET_FIELD(val, CAMCTL, SOE, 1); sys_write32(val, CAMCTL_ADDR); /* Current transaction complete, when OES = 1 */ while (GET_FIELD(sys_read32(CAMSTA_ADDR), CAMSTA, OES) != 0x1) ; /* Assert soft reset */ val = sys_read32(CAMCTL_ADDR); SET_FIELD(val, CAMCTL, CPR, 1); sys_write32(val, CAMCTL_ADDR); k_sleep(100); /* Clear soft reset */ SET_FIELD(val, CAMCTL, CPR, 0); sys_write32(val, CAMCTL_ADDR); /* Enable AXI transfers, SOE = 0 */ val = sys_read32(CAMCTL_ADDR); SET_FIELD(val, CAMCTL, SOE, 0); sys_write32(val, CAMCTL_ADDR); /* Enable data lanes, DDL = 0 */ val = sys_read32(CAMANA_ADDR); SET_FIELD(val, CAMANA, DDL, 0); sys_write32(val, CAMANA_ADDR); } /* * @brief Fifo add element * @details Called from unicam ISR to add an element into fifo */ static void add_msg_to_fifo(struct k_fifo *fifo, u8_t msg) { msgs[++fifo_index].msg = msg; k_fifo_put(fifo, &msgs[fifo_index]); } /* * @brief Unicam controller ISR handler * @details This unicam controller ISR checks the CSI2 interrupts status bits * and clears the pending interrupt bits. Any actions that are required * to be taken for a pending interrupt should be taken here. For * instance, the buffer ready interrupt, when enabled, will be cleared * by the ISR for subsequent image captures into the image buffer. * If any blocking operations or system calls need to be made based on * then interrupt status, the ISR will use event flags or a similar * mechanism to notify a low priority thread to act on the interrupt * This low priority thread shall clear the event after performing the * appropriate action. Currently this thread is not required and is not * implemented in this driver. */ static void unicam_isr(void *arg) { u32_t status, istatus; struct device *dev = (struct device *)arg; struct unicam_data *dd = (struct unicam_data *)dev->driver_data; status = sys_read32(CAMSTA_ADDR); /* Check for overall interrupt pending bit first */ if (GET_FIELD(status, CAMSTA, IS) == 0) return; /* Check buffer 0 and 1 ready interrupts */ if (GET_FIELD(status, CAMSTA, BUF0_RDY)) { if (dd->state == UNICAM_DRV_STATE_STREAMING) add_msg_to_fifo(&dd->isr_fifo, BUFFER_0_READY); sys_write32(BIT(CAMSTA__BUF0_RDY), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, BUF1_RDY)) { if (dd->state == UNICAM_DRV_STATE_STREAMING) add_msg_to_fifo(&dd->isr_fifo, BUFFER_1_READY); sys_write32(BIT(CAMSTA__BUF1_RDY), CAMSTA_ADDR); } /* Check for packet capture interrupts */ if (GET_FIELD(status, CAMSTA, PI0)) { u32_t cap = sys_read32(CAMCAP0_ADDR), msg; #ifdef USE_PACKET_CAPTURE_TO_DETECT_FRAME_END msg = FRAME_END_INTERRUPT; #else msg = PACKET_CAPTURED_0; #endif if (GET_FIELD(cap, CAMCAP0, CPHV)) add_msg_to_fifo(&dd->isr_fifo, msg); sys_write32(BIT(CAMSTA__PI0), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, PI1)) { u32_t cap = sys_read32(CAMCAP1_ADDR); if (GET_FIELD(cap, CAMCAP1, CPHV)) add_msg_to_fifo(&dd->isr_fifo, PACKET_CAPTURED_1); sys_write32(BIT(CAMSTA__PI1), CAMSTA_ADDR); } /* Data interrupt status is duplicated in this register (original status * is available in CAMDCS) and needs to be cleared */ if (status & BIT(DATA_INT_STATUS_BIT)) sys_write32(BIT(DATA_INT_STATUS_BIT), CAMSTA_ADDR); /* Check and clear image status interrupts */ istatus = sys_read32(CAMISTA_ADDR); /* Line count interrupt */ if (GET_FIELD(istatus, CAMISTA, LCI)) sys_write32(BIT(CAMISTA__LCI), CAMISTA_ADDR); /* Frame start interrupt */ if (GET_FIELD(istatus, CAMISTA, FSI)) { add_msg_to_fifo(&dd->isr_fifo, FRAME_START_INTERRUPT); sys_write32(BIT(CAMISTA__FSI), CAMISTA_ADDR); } /* Frame end interrupt */ if (GET_FIELD(istatus, CAMISTA, FEI)) { #ifndef USE_PACKET_CAPTURE_TO_DETECT_FRAME_END add_msg_to_fifo(&dd->isr_fifo, FRAME_END_INTERRUPT); #endif sys_write32(BIT(CAMISTA__FEI), CAMISTA_ADDR); } status = sys_read32(CAMDCS_ADDR); if (GET_FIELD(status, CAMDCS, DI)) { /* Don't set LDP while clearing Data interrupt bit */ SET_FIELD(status, CAMDCS, LDP, 0); /* Write 1 to clear data interrupt bit */ SET_FIELD(status, CAMDCS, DI, 1); sys_write32(status, CAMDCS_ADDR); } } /* * @brief Dump Unicam registers (Used for debugging) */ void unicam_dump_regs(void) { SYS_LOG_ERR("CAMCTL = 0x%08x", sys_read32(CAMCTL_ADDR)); SYS_LOG_ERR("CAMANA = 0x%08x", sys_read32(CAMANA_ADDR)); SYS_LOG_ERR("CAMCLT = 0x%08x", sys_read32(CAMCLT_ADDR)); SYS_LOG_ERR("CAMDLT = 0x%08x", sys_read32(CAMDLT_ADDR)); SYS_LOG_ERR("CAMCLK = 0x%08x", sys_read32(CAMCLK_ADDR)); SYS_LOG_ERR("CAMDAT0 = 0x%08x", sys_read32(CAMDAT0_ADDR)); SYS_LOG_ERR("CAMDAT1 = 0x%08x", sys_read32(CAMDAT1_ADDR)); SYS_LOG_ERR("CAMDAT2 = 0x%08x", sys_read32(CAMDAT2_ADDR)); SYS_LOG_ERR("CAMDAT3 = 0x%08x", sys_read32(CAMDAT3_ADDR)); SYS_LOG_ERR("CAMICTL = 0x%08x", sys_read32(CAMICTL_ADDR)); SYS_LOG_ERR("CAMIDI0 = 0x%08x", sys_read32(CAMIDI0_ADDR)); SYS_LOG_ERR("CAMIDI1 = 0x%08x", sys_read32(CAMIDI1_ADDR)); SYS_LOG_ERR("CAMIBSA0 = 0x%08x", sys_read32(CAMIBSA0_ADDR)); SYS_LOG_ERR("CAMIBEA0 = 0x%08x", sys_read32(CAMIBEA0_ADDR)); SYS_LOG_ERR("CAMIBSA1 = 0x%08x", sys_read32(CAMIBSA1_ADDR)); SYS_LOG_ERR("CAMIBEA1 = 0x%08x", sys_read32(CAMIBEA1_ADDR)); SYS_LOG_ERR("CAMIBLS = 0x%08x", sys_read32(CAMIBLS_ADDR)); SYS_LOG_ERR("CAMIPIPE = 0x%08x", sys_read32(CAMIPIPE_ADDR)); SYS_LOG_ERR("CAMDBSA0 = 0x%08x", sys_read32(CAMDBSA0_ADDR)); SYS_LOG_ERR("CAMDBEA0 = 0x%08x", sys_read32(CAMDBEA0_ADDR)); SYS_LOG_ERR("CAMDBSA1 = 0x%08x", sys_read32(CAMDBSA1_ADDR)); SYS_LOG_ERR("CAMDBEA1 = 0x%08x", sys_read32(CAMDBEA1_ADDR)); SYS_LOG_ERR("CAMDCS = 0x%08x", sys_read32(CAMDCS_ADDR)); SYS_LOG_ERR("CAMICTL = 0x%08x", sys_read32(CAMICTL_ADDR)); SYS_LOG_ERR("CAMFIX0 = 0x%08x", sys_read32(CAMFIX0_ADDR)); SYS_LOG_ERR("CAMSTA = 0x%08x", sys_read32(CAMSTA_ADDR)); SYS_LOG_ERR("CAMISTA = 0x%08x", sys_read32(CAMISTA_ADDR)); SYS_LOG_ERR("CAMTGBSZ = 0x%08x", sys_read32(CAMTGBSZ_ADDR)); } /* * @brief Log the unicam controller CSI2 error status * @details The unicam controller provides a number of error status bits that * can be useful for debugging issues with image capture. This function * logs all the CSI2 error status bits from various registers and * clears the errors, once they are logged. This function is meant for * debug purposes. */ void unicam_log_error_status(void) { u32_t status, i; status = sys_read32(CAMSTA_ADDR); /* Panic status */ if (GET_FIELD(status, CAMSTA, PS)) { SYS_LOG_ERR("Panic status set!"); sys_write32(BIT(CAMSTA__PS), CAMSTA_ADDR); } /* Data integrity error bits */ if (GET_FIELD(status, CAMSTA, DL)) { SYS_LOG_ERR("Data lost status is set!"); sys_write32(BIT(CAMSTA__DL), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, BFO)) { SYS_LOG_ERR("Burst FIFO overflow detected!"); sys_write32(BIT(CAMSTA__BFO), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, OFO)) { SYS_LOG_ERR("Output FIFO overflow detected!"); sys_write32(BIT(CAMSTA__OFO), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, IFO)) { SYS_LOG_ERR("Input FIFO overflow detected!"); sys_write32(BIT(CAMSTA__IFO), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, CRCE)) { SYS_LOG_ERR("CRC error detected!"); sys_write32(BIT(CAMSTA__CRCE), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, SSC)) { SYS_LOG_ERR("Bit alignment mismatch b/w start & end of line!"); sys_write32(BIT(CAMSTA__SSC), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, PLE)) { SYS_LOG_ERR("Packet length error detected!"); sys_write32(BIT(CAMSTA__PLE), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, HOE)) { SYS_LOG_ERR("Multiple bit errors detected in packet!"); sys_write32(BIT(CAMSTA__HOE), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, PBE)) { SYS_LOG_ERR("Parity bit error detected!"); sys_write32(BIT(CAMSTA__PBE), CAMSTA_ADDR); } if (GET_FIELD(status, CAMSTA, SBE)) { SYS_LOG_ERR("Single bit error detected!"); sys_write32(BIT(CAMSTA__SBE), CAMSTA_ADDR); } /* Clock lane errors */ status = sys_read32(CAMCLK_ADDR); if (GET_FIELD(status, CAMCLK, CLSTE)) { SYS_LOG_ERR("Clock Low power state transition error: %d", GET_FIELD(status, CAMCLK, CLSTE)); /* Write back read value, as this register contains other * configuration bits that shouldn't be cleared */ sys_write32(status, CAMCLK_ADDR); } /* Data lane errors */ for (i = 0; i < 4; i++) { status = sys_read32(CAMDAT0_ADDR + i*4); if (GET_FIELD(status, CAMDAT0, DLSTEN)) { SYS_LOG_ERR("Data[%d] Low power state trans error: %d", i, GET_FIELD(status, CAMDAT0, DLSN)); /* Write back read value, as this register contains * configuration bits that shouldn't be cleared */ sys_write32(status, CAMCLK_ADDR); } if (GET_FIELD(status, CAMDAT0, DLSEN)) { SYS_LOG_ERR("Data[%d] Lane sync error detected!", i); sys_write32(status, CAMCLK_ADDR); } if (GET_FIELD(status, CAMDAT0, DLFON)) { SYS_LOG_ERR("Data[%d] Lane Fifo Overflow detected!", i); sys_write32(status, CAMCLK_ADDR); } } } /* * @brief Log the unicam controller status * @details This function logs all the CSI2 debug status bits from various and * registers. This function is meant for debug purposes. */ void unicam_log_status(void) { u32_t reg; ARG_UNUSED(reg); reg = sys_read32(CAMIHSTA_ADDR); SYS_LOG_DBG("Pixels per line: %d\n", GET_FIELD(reg, CAMIHSTA, PPL)); reg = sys_read32(CAMIVSTA_ADDR); SYS_LOG_DBG("Lines per frame: %d\n", GET_FIELD(reg, CAMIVSTA, LPF)+1); /* Fifo level registers */ reg = sys_read32(CAMDBG0_ADDR); SYS_LOG_DBG("Lane 0 Fifo Peak Level : %d\n", reg & 0x1F); SYS_LOG_DBG("Lane 1 Fifo Peak Level : %d\n", (reg >> 5) & 0x1F); SYS_LOG_DBG("Lane 2 Fifo Peak Level : %d\n", (reg >> 10) & 0x1F); SYS_LOG_DBG("Lane 3 Fifo Peak Level : %d\n", (reg >> 15) & 0x1F); reg = sys_read32(CAMDBG1_ADDR); SYS_LOG_DBG("Output burst fifo peak level: %d\n", reg & 0xFFFF); SYS_LOG_DBG("Output data fifo peak level : %d\n", reg >> 16); reg = sys_read32(CAMDBG2_ADDR); SYS_LOG_DBG("Output burst fifo curr level: %d\n", reg & 0xFFFF); SYS_LOG_DBG("Output data fifo curr level : %d\n", reg >> 16); } static int bcm5820x_unicam_csi_init(struct device *dev); /** * @brief Configure the unicam controller * @details This api configures the unicam controller and the attached * sensor as per the specified configuration params. * * @param[in] dev - Pointer to the device structure for the driver instance * @param[in] config - Pointer to unicam controller conifguration. * * @return 0 on success * @return errno on failure */ static int bcm5820x_unicam_csi_configure( struct device *dev, struct unicam_config *config) { int ret; u32_t val, i, stride; struct unicam_data *dd = (struct unicam_data *)dev->driver_data; /* Check driver state */ if (dd->state != UNICAM_DRV_STATE_INITIALIZED && dd->state != UNICAM_DRV_STATE_CONFIGURED) { if (dd->state == UNICAM_DRV_STATE_STREAMING) SYS_LOG_WRN("Can't reconfigure unicam while streaming"); else SYS_LOG_WRN("Unicam driver not initialized!"); return -EPERM; } /* Check params */ /* Only CSI mode is supported in this driver */ if ((config->bus_type != UNICAM_BUS_TYPE_SERIAL) || (config->serial_mode != UNICAM_MODE_CSI2)) return -EINVAL; #ifdef CONFIG_LI_V024M_CAMERA /* Check frame size and fps limits */ if (config->capture_width > li_v024m_max_width()) return -EINVAL; if (config->capture_height > li_v024m_max_height()) return -EINVAL; if (config->capture_rate > li_v024m_max_fps()) return -EINVAL; #endif if (config->capture_mode != UNICAM_CAPTURE_MODE_STREAMING) { SYS_LOG_WRN("Only Streaming mode is supported currently!"); return -EOPNOTSUPP; } if (config->frame_format != UNICAM_FT_PROGRESSIVE) { SYS_LOG_WRN("Only progressive frame type supported currently!"); return -EOPNOTSUPP; } if (config->double_buff_en && config->segment_height) { /* Verify image height is a multiple of segment height */ u32_t num_segs, img_height; img_height = get_image_height(config); num_segs = (img_height + config->segment_height - 1) / config->segment_height; if (img_height != (num_segs*config->segment_height)) return -EINVAL; } #ifdef CONFIG_LI_V024M_CAMERA ret = li_v024m_configure(config, &dd->i2c_info); if (ret) return ret; #endif /* Setup CAMANA */ reset_analog_phy(); enable_analog_phy_power(); /* Set ID registers to capture image data through image buffer * Set one ID for each possible value of VC (0 - 3) */ val = 0; for (i = 0; i < 4; i++) val |= ((i << 0x6) | config->pixel_format) << i*8; sys_write32(val, CAMIDI0_ADDR); /* If the camera module does not support a certain format that * the unicam pipiline supports, then we could program the CAMIPIPE * params (DEBL, DEM, PPM, DDM, PUM) to convert the pixel format to * the user requested format. Currently this is not supported in this * driver. */ /* Program Pixel correction registers */ config_pixel_correction_params(config); /* Program downsizing registers */ config_downsizing_params(config); /* Program windowing registers */ config_windowing_params(config); /* Setup image and data buffers */ ret = configure_image_data_buffers(config, dd); if (ret) return ret; /* Configure line stride */ stride = get_image_width(config)*get_bpp(config->pixel_format)/8; stride = (stride + STRIDE_ALIGN - 1) & ~(STRIDE_ALIGN - 1); sys_write32(stride, CAMIBLS_ADDR); /* Setup DCS register */ val = sys_read32(CAMDCS_ADDR); SET_FIELD(val, CAMDCS, EDL, 2); /* Embedded data lines = 2 */ SET_FIELD(val, CAMDCS, DIM, 0); /* Data interrupt mode - Frame end */ SET_FIELD(val, CAMDCS, DIE, 1); /* Data interrupt enabled */ sys_write32(val, CAMDCS_ADDR); /* Update config structure and driver state */ *(struct unicam_config *)dev->config->config_info = *config; dd->state = UNICAM_DRV_STATE_CONFIGURED; return 0; } /** * @brief Retrieve the unicam controller configuration * @details This api returns the unicam controller configuration. * * @param[in] dev - Pointer to the device structure for the driver instance * @param[in] config - Pointer to unicam controller conifguration. * * @return 0 on success * @return errno on failure */ static int bcm5820x_unicam_get_config( struct device *dev, struct unicam_config *config) { if (config == NULL) return -EINVAL; *config = *(struct unicam_config *)dev->config->config_info; return 0; } /** * @brief Start the video stream * @details This api configures the unicam controller and the attached * sensor to start streaming the images over the CSI/CCP/CPI * lines. If the controller has been configured in snapshot mode, * then enables all the modules and powers up any blocks required * be ready to receive an image from the sensor. For example, for * a CSI2 sensor, this api will enable the data and clock lanes. * * @param[in] dev - Pointer to the device structure for the driver instance * * @return 0 on success * @return errno on failure */ static int bcm5820x_unicam_csi_start_stream(struct device *dev) { int ret; u32_t val, i; struct unicam_config *config; struct unicam_data *dd = (struct unicam_data *)dev->driver_data; config = (struct unicam_config *)dev->config->config_info; if (dd->state != UNICAM_DRV_STATE_CONFIGURED) return -EPERM; /* DDL clear in CAMANA */ val = sys_read32(CAMANA_ADDR); SET_FIELD(val, CAMANA, DDL, 0); sys_write32(val, CAMANA_ADDR); /* Enable clock lane */ val = sys_read32(CAMCLK_ADDR); SET_FIELD(val, CAMCLK, CLLPE, 1); /* Low power enabled */ SET_FIELD(val, CAMCLK, CLPD, 0); /* clock lane power up */ SET_FIELD(val, CAMCLK, CLE, 1); /* Enable clock lane */ sys_write32(val, CAMCLK_ADDR); /* Enable data lanes */ for (i = 0; i < dd->num_active_data_lanes; i++) { val = sys_read32(CAMDAT0_ADDR + i*4); SET_FIELD(val, CAMDAT0, DLLPEN, 1); /* Low power enabled */ SET_FIELD(val, CAMDAT0, DLPDN, 0); /* Data lane powered up */ SET_FIELD(val, CAMDAT0, DLEN, 1); /* Enable Data lane */ sys_write32(val, CAMDAT0_ADDR + i*4); } /* Enable FE/FS interrupts */ val = sys_read32(CAMICTL_ADDR); SET_FIELD(val, CAMICTL, LIP, 0); /* Clear write only fields */ SET_FIELD(val, CAMICTL, TFC, 0); /* Clear write only fields */ SET_FIELD(val, CAMICTL, FSIE, 0); /* Enable frame start int */ SET_FIELD(val, CAMICTL, FEIE, 1); /* Enable frame end int */ sys_write32(val, CAMICTL_ADDR); /* Enable Buffer Ready interrupts */ val = sys_read32(CAMDBCTL_ADDR); SET_FIELD(val, CAMDBCTL, BUF0_IE, 1); if (config->double_buff_en) SET_FIELD(val, CAMDBCTL, BUF1_IE, 1); sys_write32(val, CAMDBCTL_ADDR); /* Configure packet capture */ configure_packet_capture(); /* Set bit 9 and 6 in CAMFIX0 - Per DV guideline */ val = sys_read32(CAMFIX0_ADDR) | BIT(9) | BIT(6); sys_write32(val, CAMFIX0_ADDR); /* Set Traffic generator's Data Burst max lines */ val = sys_read32(CAMTGBSZ_ADDR); SET_FIELD(val, CAMTGBSZ, DBMAXLINES, config->segment_height - 1); sys_write32(val, CAMTGBSZ_ADDR); /* Enable master peripheral for unicam */ val = sys_read32(CAMCTL_ADDR); SET_FIELD(val, CAMCTL, CPE, 1); sys_write32(val, CAMCTL_ADDR); /* Set LIP and DIP to image and data buffer update pointers */ val = sys_read32(CAMICTL_ADDR); SET_FIELD(val, CAMICTL, TFC, 0); /* Clear write only fields */ SET_FIELD(val, CAMICTL, LIP, 1); sys_write32(val, CAMICTL_ADDR); val = sys_read32(CAMDCS_ADDR); SET_FIELD(val, CAMDCS, LDP, 1); sys_write32(val, CAMDCS_ADDR); #ifdef CONFIG_DATA_CACHE_SUPPORT /* invalidate image/data buffers */ invalidate_dcache_by_addr((u32_t)dd->img_buff0, dd->alloc_size); #endif /* Start streaming from sensor */ ret = li_v024m_start_stream(config, &dd->i2c_info); if (ret == 0) dd->state = UNICAM_DRV_STATE_STREAMING; return ret; } /** * @brief Stop the video stream * @details This api should be called only after a successful start stream * call. It configures the camera sensor and the unicam controller * to disable the capture and reception of image packets. If there * are any blocks that can be powered down (in the camera module * or unicam controller) they will be powered down on this call * to save power. * * @param[in] dev - Pointer to the device structure for the driver instance * * @return 0 on success * @return errno on failure */ static int bcm5820x_unicam_csi_stop_stream(struct device *dev) { int ret; u32_t val, i; struct unicam_config *config; struct unicam_data *dd = (struct unicam_data *)dev->driver_data; config = (struct unicam_config *)dev->config->config_info; if (dd->state != UNICAM_DRV_STATE_STREAMING) return -EPERM; /* Disable FE/FS interrupts */ val = sys_read32(CAMICTL_ADDR); SET_FIELD(val, CAMICTL, LIP, 0); /* Clear write only fields */ SET_FIELD(val, CAMICTL, TFC, 0); /* Clear write only fields */ SET_FIELD(val, CAMICTL, FSIE, 0); /* Disable frame start int */ SET_FIELD(val, CAMICTL, FEIE, 0); /* Disable frame end int */ sys_write32(val, CAMICTL_ADDR); /* Disable Buffer Ready interrupts */ val = sys_read32(CAMDBCTL_ADDR); SET_FIELD(val, CAMDBCTL, BUF0_IE, 0); SET_FIELD(val, CAMDBCTL, BUF1_IE, 0); sys_write32(val, CAMDBCTL_ADDR); /* Disable data lanes CAMANA.DDL = 1 */ val = sys_read32(CAMANA_ADDR); SET_FIELD(val, CAMANA, DDL, 1); sys_write32(val, CAMANA_ADDR); /* Shutdown output engine */ val = sys_read32(CAMCTL_ADDR); SET_FIELD(val, CAMCTL, SOE, 1); sys_write32(val, CAMCTL_ADDR); /* Poll on OES bit to check if shutdown is complete */ while (GET_FIELD(sys_read32(CAMSTA_ADDR), CAMSTA, OES) == 0) ; SET_FIELD(val, CAMCTL, SOE, 0); sys_write32(val, CAMCTL_ADDR); /* Reset unicam peripheral */ val = sys_read32(CAMCTL_ADDR); SET_FIELD(val, CAMCTL, CPR, 1); sys_write32(val, CAMCTL_ADDR); k_sleep(100); /* Clear reset */ SET_FIELD(val, CAMCTL, CPR, 0); sys_write32(val, CAMCTL_ADDR); /* Disable data lanes */ for (i = 0; i < dd->num_active_data_lanes; i++) { val = sys_read32(CAMDAT0_ADDR + i*4); SET_FIELD(val, CAMDAT0, DLLPEN, 0); /* Low power disabled */ SET_FIELD(val, CAMDAT0, DLPDN, 1); /* Power down data lane */ SET_FIELD(val, CAMDAT0, DLEN, 0); /* Disable data lane */ sys_write32(val, CAMDAT0_ADDR + i*4); } /* Disable clock lane */ val = sys_read32(CAMCLK_ADDR); SET_FIELD(val, CAMCLK, CLLPE, 0); /* Low power disabled */ SET_FIELD(val, CAMCLK, CLPD, 1); /* Clock lane powered down */ SET_FIELD(val, CAMCLK, CLE, 0); /* Disable clock lane */ sys_write32(val, CAMCLK_ADDR); /* Clear Traffic generator's Data Burst max lines */ val = sys_read32(CAMTGBSZ_ADDR); SET_FIELD(val, CAMTGBSZ, DBMAXLINES, 0); sys_write32(val, CAMTGBSZ_ADDR); /* Disable peripheral */ val = sys_read32(CAMCTL_ADDR); SET_FIELD(val, CAMCTL, CPE, 0); sys_write32(val, CAMCTL_ADDR); dd->state = UNICAM_DRV_STATE_CONFIGURED; /* Shutdown sensor/module */ ret = li_v024m_stop_stream(config, &dd->i2c_info); if (ret) return ret; /* Send STREAMING_STOPPED message to task */ add_msg_to_fifo(&dd->isr_fifo, STREAMING_STOPPED); /* Yield to image buffer read thread */ k_sleep(10); return 0; } /** * @brief Get the captured image from the sensor * @details This api retrieves the most recently captured image from the * camera sensor. In case of a snapshot mode, this api triggers * the signals required to capture the image (exposure, readout) * and waits for the capture to complete before returning the * captured frame. * * @param[in] dev - Pointer to the device structure for the driver instance * @param[in] img_buf - Pointer to image buffer with metadata about the image * * @return 0 on success * @return errno on failure */ static int bcm5820x_unicam_csi_get_frame( struct device *dev, struct image_buffer *img_buf) { u32_t sz, wait_count; struct unicam_data *dd = (struct unicam_data *)dev->driver_data; struct unicam_config *config; config = (struct unicam_config *)dev->config->config_info; if ((img_buf == NULL) || (img_buf->buffer == NULL)) return -EINVAL; if (dd->state != UNICAM_DRV_STATE_STREAMING) return -EPERM; if (config->double_buff_en) { sz = sys_read32(CAMIBEA0_ADDR) - sys_read32(CAMIBSA0_ADDR) + 1; /* Take the lock before copying the image data */ if (k_sem_take(&dd->read_buff_lock, FRAME_WAIT_COUNT) == 0) { /* Return image if available */ if (dd->read_buff_image_valid) { /* Copy image data */ memcpy(img_buf->buffer, dd->read_buff, sz); /* Update segment id */ img_buf->segment_num = dd->read_buff_seg_num; /* Mark buffer as invalid */ dd->read_buff_image_valid = false; } else { k_sem_give(&dd->read_buff_lock); return -EAGAIN; } k_sem_give(&dd->read_buff_lock); } else { SYS_LOG_ERR("Frame not available\n"); return -EIO; } } else { wait_count = FRAME_WAIT_COUNT; dd->get_frame_info = img_buf; while (dd->get_frame_info && --wait_count) k_sleep(1); dd->get_frame_info = NULL; if (wait_count == 0) { SYS_LOG_ERR("Frame not available\n"); return -EAGAIN; } /* Set segment num to 0 for single buffer mode */ img_buf->segment_num = 0; } /* Populate other image information */ img_buf->pixel_format = config->pixel_format; img_buf->frame_type = config->frame_format; if (config->double_buff_en) img_buf->height = config->segment_height; else img_buf->height = get_image_height(config); img_buf->width = get_image_width(config); /* Align to AXI burst size */ img_buf->line_stride = (img_buf->width*get_bpp(config->pixel_format)/8 + STRIDE_ALIGN - 1) & ~(STRIDE_ALIGN - 1); return 0; } /* * @brief Helper function to copy image from buf0/1 to read buffer */ static void copy_image_to_read_buff( struct unicam_data *dd, u32_t addr, u32_t size, u8_t num_segs) { #ifdef CONFIG_DATA_CACHE_SUPPORT /* Invalidate buffer if it is cached */ invalidate_dcache_by_addr(addr, size); #endif /* Lock the buffer and copy image data */ k_sem_take(&dd->read_buff_lock, K_FOREVER); memcpy(dd->read_buff, (u8_t *)addr, size); dd->read_buff_seg_num = dd->segment_id; dd->read_buff_image_valid = true; dd->segment_id++; dd->segment_id %= num_segs; #ifdef WIPE_PING_PONG_BUFFER_AFTER_IMAGE_READ { u32_t i, j; /* Initialize buffer to a checker pattern 16x16 pixel size */ for (i = 0; i < size/16; i++) for (j = 0; j < 16; j++) *((u8_t *)addr + i*16 + j) = i % 2 ? 0xFF : 0x0; #ifdef CONFIG_DATA_CACHE_SUPPORT /* Invalidate buffer if it is cached */ clean_dcache_by_addr(addr, size); #endif } #endif /* WIPE_PING_PONG_BUFFER_AFTER_IMAGE_READ */ k_sem_give(&dd->read_buff_lock); } /* * @brief Image read buffer thread entry function * @details This thread is used to evacuate the image buffers. * The unicam ISR sends a message to this task indicating a buffer is * available. The action taken by the task to this message depends on * the buffering mode. The onus of clearing the buffer ready interrupt * and free the buffer for subsequent image capture, is on this task. * In double buffer mode: * Once the task receives this message, it copies the captured * segment to a read buffer and the buffer ready interrupt bit is * cleared. The segment in this read buffer is returned when * get_frame() api is called. The segment id is stored along with * the image data and incremented. * In Single buffer mode: * If there is no pending get_frame(), then the buffer is * immediately released for use by the unicam output engine. If a * get_frame() api call was recevied prior to this message, then * the image data is populated into the buffer passed by get_frame * and following that the buffer ready interrupt is cleared. This * will result in the get_frame() api blocking for up a time equal * to the frame period. But this is the side effect of using single * buffer for image capture. * */ static void img_buff_read_task_fn(void *p1, void *p2, void *p3) { u8_t ns; u32_t msg, addr, size; struct isr_fifo_entry *entry; struct device *dev = (struct device *)p1; struct unicam_data *dd = (struct unicam_data *)dev->driver_data; const struct unicam_config *cfg = dev->config->config_info; ARG_UNUSED(p2); ARG_UNUSED(p3); /* Compute number of segments per frame */ ns = get_image_height(cfg) / cfg->segment_height; do { /* Wait until we start streaming */ if (dd->state != UNICAM_DRV_STATE_STREAMING) { while (dd->state != UNICAM_DRV_STATE_STREAMING) k_sleep(1); /* Reset segment id */ dd->segment_id = 0; /* Re-compute number of segments per frame */ ns = get_image_height(cfg) / cfg->segment_height; /* Mark read buffer as invalid */ dd->read_buff_image_valid = false; } entry = k_fifo_get(&dd->isr_fifo, K_FOREVER); if (entry) msg = entry->msg; else continue; #ifdef CONFIG_CAPTURE_AND_LOG_PACKETS switch (msg) { u32_t val; case PACKET_CAPTURED_0: val = sys_read32(CAMCAP0_ADDR); /* Clear the valid bit */ sys_write32(BIT(31), CAMCAP0_ADDR); SYS_LOG_DBG("[CAP0] VC = %d : DT = 0x%2x : Size = %d\n", GET_FIELD(val, CAMCAP0, CVCN), GET_FIELD(val, CAMCAP0, CDTN), GET_FIELD(val, CAMCAP0, CWCN)); val = sys_read32(CAMSTA_ADDR); if (GET_FIELD(val, CAMSTA, IS)) sys_write32(val, CAMSTA_ADDR); break; case PACKET_CAPTURED_1: val = sys_read32(CAMCAP1_ADDR); /* Clear the valid bit */ sys_write32(BIT(31), CAMCAP1_ADDR); SYS_LOG_DBG("[CAP1] VC = %d : DT = 0x%2x : Size = %d\n", GET_FIELD(val, CAMCAP1, CVCN), GET_FIELD(val, CAMCAP1, CDTN), GET_FIELD(val, CAMCAP1, CWCN)); val = sys_read32(CAMSTA_ADDR); if (GET_FIELD(val, CAMSTA, IS)) sys_write32(val, CAMSTA_ADDR); break; default: break; } #endif if (cfg->double_buff_en) { switch (msg) { case BUFFER_0_READY: addr = sys_read32(CAMIBSA0_ADDR); size = sys_read32(CAMIBEA0_ADDR) - addr + 1; copy_image_to_read_buff(dd, addr, size, ns); break; case BUFFER_1_READY: addr = sys_read32(CAMIBSA1_ADDR); size = sys_read32(CAMIBEA1_ADDR) - addr + 1; copy_image_to_read_buff(dd, addr, size, ns); break; case FRAME_END_INTERRUPT: /* Reset segment id on frame end */ dd->segment_id = 0; break; case STREAMING_STOPPED: default: break; } } else { switch (msg) { case FRAME_END_INTERRUPT: /* Update image buffer memory, if get_frame is * waiting */ if (dd->get_frame_info) { addr = sys_read32(CAMIBSA0_ADDR); size = sys_read32(CAMIBEA0_ADDR)-addr+1; #ifdef CONFIG_DATA_CACHE_SUPPORT /* Invalidate buffer if it is cached */ invalidate_dcache_by_addr(addr, size); #endif memcpy(dd->get_frame_info->buffer, dd->img_buff0, size); /* Clear get_frame_info */ dd->get_frame_info = NULL; } /* Clear the buffer ready bit to release the * buffer to unicam output engine */ sys_write32(BIT(CAMSTA__BUF0_RDY), CAMSTA_ADDR); break; default: break; } } } while (1); /* We don't expect to exit from this thread */ } /* API to set data and clock lane timer values for unicam controller */ void unicam_set_lane_timer_values(struct unicam_lane_timers *timers) { u32_t val; val = 0x0; SET_FIELD(val, CAMCLT, CLT1, timers->clt1); SET_FIELD(val, CAMCLT, CLT2, timers->clt2); sys_write32(val, CAMCLT_ADDR); val = 0x0; SET_FIELD(val, CAMDLT, DLT1, timers->dlt1); SET_FIELD(val, CAMDLT, DLT2, timers->dlt2); SET_FIELD(val, CAMDLT, DLT3, timers->dlt3); sys_write32(val, CAMDLT_ADDR); } static struct unicam_driver_api bcm5820x_unicam_api = { .configure = bcm5820x_unicam_csi_configure, .get_config = bcm5820x_unicam_get_config, .start_stream = bcm5820x_unicam_csi_start_stream, .stop_stream = bcm5820x_unicam_csi_stop_stream, .get_frame = bcm5820x_unicam_csi_get_frame }; static struct unicam_config unicam_dev_cfg; static struct unicam_data unicam_dev_data = { .num_active_data_lanes = 1, /* Only one lane is connected on SVK */ .state = UNICAM_DRV_STATE_UNINITIALIZED, .i2c_interface = CONFIG_CAM_I2C_PORT }; DEVICE_AND_API_INIT(unicam, CONFIG_UNICAM_DEV_NAME, bcm5820x_unicam_csi_init, &unicam_dev_data, &unicam_dev_cfg, POST_KERNEL, CONFIG_UNICAM_DRIVER_INIT_PRIORITY, &bcm5820x_unicam_api); static int bcm5820x_unicam_csi_init(struct device *dev) { int ret; u32_t val; k_tid_t id; struct unicam_data *dd = (struct unicam_data *)dev->driver_data; if (dd->state != UNICAM_DRV_STATE_UNINITIALIZED) { SYS_LOG_WRN("Unicam driver already initialized"); return -EPERM; } /* Configure the pinmux for I2C and get the driver handle */ val = sys_read32(CRMU_IOMUX_CONTROL_ADDR); switch (dd->i2c_interface) { default: case I2C0: /* I2C0 pins are dedicated, not muxed with other functions */ dd->i2c_info.i2c_dev = device_get_binding(CONFIG_I2C0_NAME); break; case I2C1: dd->i2c_info.i2c_dev = device_get_binding(CONFIG_I2C1_NAME); SET_FIELD(val, CRMU_IOMUX_CONTROL, CRMU_ENABLE_SMBUS1, 1); break; case I2C2: dd->i2c_info.i2c_dev = device_get_binding(CONFIG_I2C2_NAME); SET_FIELD(val, CRMU_IOMUX_CONTROL, CRMU_ENABLE_SMBUS2, 1); break; } if (dd->i2c_info.i2c_dev == NULL) return -EIO; sys_write32(val, CRMU_IOMUX_CONTROL_ADDR); /* Initialize unicam registers */ init_unicam_regs(); /* Initialize the camera module */ #ifdef CONFIG_LI_V024M_CAMERA ret = li_v024m_init(&dd->i2c_info); if (ret) { SYS_LOG_ERR("Error initializing LI V024M module: %d\n", ret); return ret; } #endif /* Create image buffer read task */ id = k_thread_create(&img_buff_read_task, image_buffer_read_task_stack, TASK_STACK_SIZE, img_buff_read_task_fn, dev, NULL, NULL, K_PRIO_COOP(7), 0, K_NO_WAIT); if (id == NULL) return -EPERM; /* Create the message fifo between ISR and image buffer read task */ k_fifo_init(&dd->isr_fifo); /* Initialize the read buffer lock */ k_sem_init(&dd->read_buff_lock, 1, 1); /* Enable interrupt and install handler */ IRQ_CONNECT(UNICAM_INTERRUPT_NUM, 0, unicam_isr, DEVICE_GET(unicam), 0); irq_enable(UNICAM_INTERRUPT_NUM); fifo_index = 0; dd->alloc_ptr = NULL; dd->state = UNICAM_DRV_STATE_INITIALIZED; return 0; }
masanam/Trading
public/angular/core/routes/user.routes.js
<reponame>masanam/Trading<gh_stars>1-10 'use strict'; // Setting up route angular.module('user').config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) { // Home state routing $stateProvider .state('user', { url: '/user', abstract: true, template: '<ui-view>' }) .state('user.edit', { url: '/edit', templateUrl: '/angular/core/views/user/update.view.html', privileges: [ 'order.view', 'order.edit', 'lead.view', 'lead.edit', 'coalpedia.view', 'coalpedia.edit', 'index.view', 'index.edit', ] }) .state('user.edit-role', { url: '/role', templateUrl: '/angular/core/views/user/update-role.view.html', privileges: [ 'order.view', 'order.edit', 'lead.view', 'lead.edit', 'coalpedia.view', 'coalpedia.edit', 'index.view', 'index.edit', ] }) .state('user.password', { url: '/password', templateUrl: '/angular/core/views/user/reset-password.view.html', privileges: [ 'order.view', 'order.edit', 'lead.view', 'lead.edit', 'coalpedia.view', 'coalpedia.edit', 'index.view', 'index.edit', ] }); } ]);
CompOpt4Apps/Artifact-DataDepSimplify
chill/include/chill/graph.hh
<reponame>CompOpt4Apps/Artifact-DataDepSimplify /***************************************************************************** Copyright (C) 2008 University of Southern California Copyright (C) 2010 University of Utah All Rights Reserved. Purpose: Graph<VertexType, EdgeType> template class supports topological sort with return result observing strongly connected component. Notes: The result of topologically sorting a graph V={1,2,3,4} and E={1->2, 1->3, 2->3, 3->2, 3->4} is ({1}, {2,3}, {4}). History: 01/2006 Created by <NAME>. 07/2010 add a new topological order, -chun *****************************************************************************/ #ifndef GRAPH_HH #define GRAPH_HH /*! * \file * \brief Graph<VertexType, EdgeType> template class supports topological sort * * The result of topologically sorting a graph V={1,2,3,4} and E={1->2, 1->3, * 2->3, 3->2, 3->4} is ({1}, {2,3}, {4}). */ #include <set> #include <vector> #include <map> #include <iostream> #include <stack> #include <algorithm> #include <assert.h> struct Empty { Empty() {}; bool operator<(const Empty &) const { return true; }; bool operator==(const Empty &) const { return false; }; friend std::ostream &operator<<(std::ostream &os, const Empty &) { return os; }; }; namespace { enum GraphColorType { WHITE, GREY, BLACK }; } template<typename VertexType, typename EdgeType> struct Graph; template<typename VertexType, typename EdgeType> std::ostream &operator<<(std::ostream &os, const Graph<VertexType, EdgeType> &g); template<typename VertexType = Empty, typename EdgeType = Empty> struct Graph { typedef std::map<int, std::vector<EdgeType> > EdgeList; typedef std::vector<std::pair<VertexType, EdgeList> > VertexList; VertexList vertex; bool directed; Graph(bool directed = true); int vertexCount() const; int edgeCount() const; bool isEmpty() const; bool isDirected() const; int insert(const VertexType &v = VertexType()); void connect(int v1, int v2, const EdgeType &e = EdgeType()); void connect(int v1, int v2, const std::vector<EdgeType> &e); void disconnect(int v1, int v2); bool hasEdge(int v1, int v2) const; std::vector<EdgeType> getEdge(int v1, int v2) const; //! Topological sort /*! * This topological sort does handle SCC in graph. * Result is a sort order with a set at each location representing a SCC. */ std::vector<std::set<int> > topoSort() const; //! Topological sort /*! * This topological sort does not handle SCC in graph. * Result is a sort order with a layer of node at each location. */ std::vector<std::set<int> > packed_topoSort() const; void dump() { std::cout << *this; } friend std::ostream &operator<<<>(std::ostream &os, const Graph<VertexType, EdgeType> &g); }; template<typename VertexType, typename EdgeType> std::ostream &operator<<(std::ostream &os, const Graph<VertexType, EdgeType> &g) { for (int i = 0; i < g.vertex.size(); i++) for (typename Graph<VertexType, EdgeType>::EdgeList::const_iterator j = g.vertex[i].second.begin(); j != g.vertex[i].second.end(); j++) { os << i << "->" << j->first << ":"; for (typename std::vector<EdgeType>::const_iterator k = j->second.begin(); k != j->second.end(); k++) os << " " << *k; os << std::endl; } return os; } template<typename VertexType, typename EdgeType> Graph<VertexType, EdgeType>::Graph(bool directed_): directed(directed_) { } template<typename VertexType, typename EdgeType> int Graph<VertexType, EdgeType>::vertexCount() const { return vertex.size(); } template<typename VertexType, typename EdgeType> int Graph<VertexType, EdgeType>::edgeCount() const { int result = 0; for (int i = 0; i < vertex.size(); i++) for (typename EdgeList::const_iterator j = vertex[i].second.begin(); j != vertex[i].second.end(); j++) result += j->second.size(); if (!directed) result = result / 2; return result; } template<typename VertexType, typename EdgeType> bool Graph<VertexType, EdgeType>::isEmpty() const { return vertex.size() == 0; } template<typename VertexType, typename EdgeType> bool Graph<VertexType, EdgeType>::isDirected() const { return directed; } template<typename VertexType, typename EdgeType> int Graph<VertexType, EdgeType>::insert(const VertexType &v) { for (int i = 0; i < vertex.size(); i++) if (vertex[i].first == v) return i; vertex.push_back(std::make_pair(v, EdgeList())); return vertex.size() - 1; } template<typename VertexType, typename EdgeType> void Graph<VertexType, EdgeType>::connect(int v1, int v2, const EdgeType &e) { assert(v1 < vertex.size() && v2 < vertex.size()); vertex[v1].second[v2].push_back(e);; if (!directed) vertex[v2].second[v1].push_back(e); } template<typename VertexType, typename EdgeType> void Graph<VertexType, EdgeType>::connect(int v1, int v2, const std::vector<EdgeType> &e) { assert(v1 < vertex.size() && v2 < vertex.size()); if (e.size() == 0) return; copy(e.begin(), e.end(), back_inserter(vertex[v1].second[v2])); if (!directed) copy(e.begin(), e.end(), back_inserter(vertex[v2].second[v1])); } template<typename VertexType, typename EdgeType> void Graph<VertexType, EdgeType>::disconnect(int v1, int v2) { assert(v1 < vertex.size() && v2 < vertex.size()); vertex[v1].second.erase(v2); if (!directed) vertex[v2].second.erase(v1); } template<typename VertexType, typename EdgeType> bool Graph<VertexType, EdgeType>::hasEdge(int v1, int v2) const { return vertex[v1].second.find(v2) != vertex[v1].second.end(); } template<typename VertexType, typename EdgeType> std::vector<EdgeType> Graph<VertexType, EdgeType>::getEdge(int v1, int v2) const { if (!hasEdge(v1, v2)) return std::vector<EdgeType>(); return vertex[v1].second.find(v2)->second; } // This topological sort does handle SCC in graph. template<typename VertexType, typename EdgeType> std::vector<std::set<int> > Graph<VertexType, EdgeType>::topoSort() const { const int n = vertex.size(); std::vector<GraphColorType> color(n, WHITE); std::stack<int> S; std::vector<int> order(n); int c = n; // first DFS for (int i = n - 1; i >= 0; i--) if (color[i] == WHITE) { S.push(i); while (!S.empty()) { int v = S.top(); if (color[v] == WHITE) { for (typename EdgeList::const_iterator j = vertex[v].second.begin(); j != vertex[v].second.end(); j++) if (color[j->first] == WHITE) S.push(j->first); color[v] = GREY; } else if (color[v] == GREY) { color[v] = BLACK; S.pop(); order[--c] = v; } else { S.pop(); } } } // transpose edge std::vector<std::set<int> > edgeT(n); for (int i = 0; i < n; i++) for (typename EdgeList::const_iterator j = vertex[i].second.begin(); j != vertex[i].second.end(); j++) edgeT[j->first].insert(i); // second DFS in transposed graph starting from last finished vertex fill(color.begin(), color.end(), WHITE); std::vector<std::set<int> > result; for (int i = 0; i < n; i++) if (color[order[i]] == WHITE) { std::set<int> s; S.push(order[i]); while (!S.empty()) { int v = S.top(); if (color[v] == WHITE) { for (std::set<int>::const_iterator j = edgeT[v].begin(); j != edgeT[v].end(); j++) if (color[*j] == WHITE) S.push(*j); color[v] = GREY; } else if (color[v] == GREY) { color[v] = BLACK; S.pop(); s.insert(v); } else { S.pop(); } } result.push_back(s); } return result; } // This topological sort does not handle SCC in graph. template<typename VertexType, typename EdgeType> std::vector<std::set<int> > Graph<VertexType, EdgeType>::packed_topoSort() const { const int n = vertex.size(); std::vector<GraphColorType> color(n, WHITE); std::vector<int> cnt(n, 0); // Scan edges for (auto v: vertex) for (auto e: v.second) ++cnt[e.first]; // Scan root std::vector<std::set<int> > result; std::set<int> s; for (int i = 0; i < n; i++) if (!cnt[i]) s.insert(i); // Toposort while (s.size()) { result.push_back(s); s.clear(); for (auto i: result.back()) for (auto e: vertex[i].second) if (--cnt[e.first] == 0) s.insert(e.first); } return result; } #endif
gxing19/Design-Patterns-Java
src/main/java/com/gxitsky/behavioral/mediator/full/Colleague.java
package com.gxitsky.behavioral.mediator.full; /** * @author gxing * @desc 抽象同事类 * @date 2021/6/21 */ public abstract class Colleague { protected Mediator mediator; public Colleague(Mediator mediator) { this.mediator = mediator; } abstract void receive(); abstract void send(); }
WillemElbers/unity-idm
core/src/main/java/pl/edu/icm/unity/server/translation/form/EnquiryTranslationProfile.java
/* * Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.server.translation.form; import java.util.List; import pl.edu.icm.unity.server.registries.RegistrationActionsRegistry; import pl.edu.icm.unity.server.registries.TypesRegistryBase; import pl.edu.icm.unity.server.translation.TranslationActionFactory; import pl.edu.icm.unity.types.registration.EnquiryResponse; import pl.edu.icm.unity.types.translation.TranslationRule; import com.fasterxml.jackson.databind.node.ObjectNode; /** * Classic translation profile used for post-processing of {@link EnquiryResponse}s. * Delegates to super class. * @author <NAME> */ public class EnquiryTranslationProfile extends BaseFormTranslationProfile { public EnquiryTranslationProfile(ObjectNode json, RegistrationActionsRegistry registry) { super(json, registry); } public EnquiryTranslationProfile(String name, List<? extends TranslationRule> rules, TypesRegistryBase<? extends TranslationActionFactory> registry) { super(name, rules, registry); } }
AllAlgorithms/Go
algorithms/graph/tsp/tsp_test.go
<reponame>AllAlgorithms/Go package tsp import ( "reflect" "testing" ) func TestTSP(t *testing.T) { t.Run("TSP Test", func(t *testing.T) { graph := CreateGraph(4) graph.AppendEdge(0, 1, 6) graph.AppendEdge(0, 2, 5) graph.AppendEdge(0, 3, 5) graph.AppendEdge(1, 2, 4) graph.AppendEdge(1, 3, 7) graph.AppendEdge(2, 3, 3) expected := uint(18) actual := graph.TSP(0) if !reflect.DeepEqual(expected, actual) { t.Errorf("Expected %+v, got %+v", expected, actual) } }) }
p-g-krish/deepmac-tracker
data/js/ac/22/05/00/00/00.24.js
deepmacDetailCallback("ac2205000000/24",[{"d":"2017-01-31","t":"add","a":"13F., No.1, Taiyuan 1st St. Zhubei City Hsinchu County TW 30265","c":"TW","o":"Compal Broadband Networks, Inc."}]);
rudigh/churchtools_ce
system/assets/ckeditor/plugins/churchtools/plugin.js
<gh_stars>1-10 ( function() { CKEDITOR.plugins.add( 'churchtools', { init: function( editor ) { var me = this; editor.addCommand( 'vorname', { exec: function( editor ) { div = editor.document.createElement('span'); div.setHtml("[Vorname]"); editor.insertElement(div); } } ); editor.addCommand( 'nachname', { exec: function( editor ) { div = editor.document.createElement('span'); div.setHtml("[Nachname]"); editor.insertElement(div); } } ); editor.addCommand( 'spitzname', { exec: function( editor ) { div = editor.document.createElement('span'); div.setHtml("[Spitzname]"); editor.insertElement(div); } } ); editor.ui.addButton( 'vorname', { label: 'Serienfeld: Vorname', command: 'vorname', icon: this.path + 'images/vorname.png', toolbar: 'vorname' } ); editor.ui.addButton( 'spitzname', { label: 'Serienfeld: Spitzname (wenn nicht vorhanden, dann Vorname)', command: 'spitzname', icon: this.path + 'images/spitzname.png', toolbar: 'spitzname' } ); editor.ui.addButton( 'nachname', { label: 'Serienfeld: Nachname', command: 'nachname', icon: this.path + 'images/nachname.png', toolbar: 'nachname' } ); } } ); } )();
rio-31/android_frameworks_base-1
packages/SystemUI/src/com/android/systemui/statusbar/phone/AutoHideElement.java
/* * Copyright (C) 2020 The Android Open Source Project * * 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. */ package com.android.systemui.statusbar.phone; /** An interface for a UI element controlled by the {@link AutoHideController}. */ public interface AutoHideElement { /** * Synchronizes the UI State of this {@link AutoHideElement}. This method is posted as a * {@link Runnable} on the main thread. */ void synchronizeState(); /** * Returns {@code true} if the {@link AutoHideElement} is in a * {@link BarTransitions#MODE_SEMI_TRANSPARENT} state. */ boolean isSemiTransparent(); }
qua-platform/qua-libs
examples/spectroscopy/resonator-spectroscopy/resonator_spectroscopy.py
""" resonator_spectroscopy.py: Resonator spectroscopy to find the resonance frequency Author: <NAME> - Quantum Machines Created: 8/11/2020 Created on QUA version: 0.6.156 """ from configuration import config from qm.qua import * from qm.QuantumMachinesManager import QuantumMachinesManager from qm import SimulationConfig from qm import LoopbackInterface import matplotlib.pyplot as plt with program() as resonator_spectroscopy: n = declare(int) f = declare(int) I = declare(fixed) I_stream = declare_stream() Q = declare(fixed) Q_stream = declare_stream() A = declare_stream() with for_(n, 0, n < 1000, n + 1): with for_(f, 1e6, f < 100.5e6, f + 1e6): wait( 100, "rr" ) # wait 100 clock cycles (4microS) for letting resonator relax to vacuum update_frequency("rr", f) measure( "long_readout", "rr", None, demod.full("long_integW1", I, "out1"), demod.full("long_integW2", Q, "out1"), ) save(I, I_stream) save(Q, Q_stream) with stream_processing(): I_stream.buffer(100).average().save("I") Q_stream.buffer(100).average().save("Q") qmm = QuantumMachinesManager() qm = qmm.open_qm(config) # need to run the simulation for a sufficiently long time, because the buffer outputs results only when full job = qm.simulate( resonator_spectroscopy, SimulationConfig( int(1e6), simulation_interface=LoopbackInterface([("con1", 1, "con1", 1)]) ), ) res_handle = job.result_handles Q_handle = res_handle.get("Q") I_handle = res_handle.get("I") Q = Q_handle.fetch_all() I = I_handle.fetch_all() plt.plot(I ** 2 + Q ** 2)
joedevgee/cms-hitech-apd
web/src/components/Wrapper.js
<filename>web/src/components/Wrapper.js<gh_stars>1-10 import PropTypes from 'prop-types'; import React, { Component } from 'react'; class Wrapper extends Component { componentDidMount() { if (!this.props.isDev) return; this.addTota11y(); } addTota11y = () => { const script = document.createElement('script'); script.src = '/_dev/tota11y.min.js'; document.body.appendChild(script); }; render() { return <div className="site">{this.props.children}</div>; } } Wrapper.propTypes = { children: PropTypes.node.isRequired, isDev: PropTypes.bool.isRequired }; export default Wrapper;
Xett/gba-modern
source/scenes/IrqCtxTestScene.cpp
<gh_stars>0 //-------------------------------------------------------------------------------- // IrqCtxTestScene.cpp //-------------------------------------------------------------------------------- // <insert description here> //-------------------------------------------------------------------------------- #include "IrqCtxTestScene.hpp" #include <tonc.h> #include "util/random.h" #include "colors.hpp" static STACKPTR std::byte ctxStack[512] IWRAM_DATA; static context_t oldContext; static context_t testContext(context_t ctx, void* arg); static void testIrq(); IrqCtxTestScene::IrqCtxTestScene() : IScene(), curContext(context_new(ctxStack+sizeof(ctxStack), testContext, this)) { REG_DISPCNT = DCNT_MODE0; REG_DISPSTAT |= DSTAT_VCT_IRQ | DSTAT_VCT(80); irq_add(II_VCOUNT, testIrq); oldContext = context_t(); } void IrqCtxTestScene::update() { curContext = context_switch2(curContext, &oldContext); } static const u16 ColorList[] = { colors::DarkBlue, colors::Cyan, colors::Red, colors::Yellow, colors::Green, colors::Azure, colors::Beige, colors::Blue, colors::Violet, colors::Brown, colors::Magenta, colors::Indigo, colors::IndianRed, colors::Lavender, colors::White, colors::Black }; constexpr auto ColorListSize = sizeof(ColorList) / sizeof(ColorList[0]); context_t testContext(context_t ctx, void* arg) { int i = 0; for (;;) { pal_bg_mem[0] = ColorList[i]; i = (i+1) & 15; } } void testIrq() { context_switch_irq(oldContext); }
ko7m/NXP_Kinetis_Bootloader
doc/core_html/group__sbloader.js
var group__sbloader = [ [ "SB File Format", "group__sb__file__format.html", "group__sb__file__format" ], [ "boot_cmd_t", "group__sbloader.html#structboot__cmd__t", [ [ "address", "group__sbloader.html#ac0d31ca829f934cccd89f8054e02773e", null ], [ "checksum", "group__sbloader.html#a59eac9627282a484fbaf0aa7aa3b8a9a", null ], [ "count", "group__sbloader.html#a86988a65e0d3ece7990c032c159786d6", null ], [ "data", "group__sbloader.html#a1e43bf7d608e87228b625cca2c04d641", null ], [ "flags", "group__sbloader.html#a1e87af3c18a2fd36c61faf89949bdc3f", null ], [ "tag", "group__sbloader.html#a50ffde9be79dd080d9e8effe3ee52d66", null ] ] ], [ "boot_hdr1_t", "group__sbloader.html#structboot__hdr1__t", [ [ "fileChunks", "group__sbloader.html#a522c456248878bb557496ee9378a3d7f", null ], [ "fileFlags", "group__sbloader.html#aee7c63a38575c45dbbfb42d4175e62cc", null ], [ "hash", "group__sbloader.html#a11ecb029164e055f28f4123ce3748862", null ], [ "major", "group__sbloader.html#a5bd4e4c943762926c8f653b6224cced2", null ], [ "minor", "group__sbloader.html#ae2f416b0a34b7beb4ed3873d791ac393", null ], [ "signature", "group__sbloader.html#acd2a6284879dded65f0b8daa7c68485a", null ] ] ], [ "boot_hdr2_t", "group__sbloader.html#structboot__hdr2__t", [ [ "bootOffset", "group__sbloader.html#a5201e6634f83af91b52b19a094da866b", null ], [ "bootSectID", "group__sbloader.html#ab1d8063887a5703d08991ff3c1a09cfb", null ], [ "hdrChunks", "group__sbloader.html#a0b929d82928397451b15e9c5b6fe9f0b", null ], [ "keyCount", "group__sbloader.html#a7e5512fd8e604fd1d9b9d38da4c5350f", null ], [ "keyOffset", "group__sbloader.html#adffa18f0c236456f5bd980d12d0921a4", null ], [ "sectCount", "group__sbloader.html#ae80cf2d01b7912e3586ad6054c73540f", null ] ] ], [ "ldr_Context_t", "group__sbloader.html#struct__ldr___context", [ [ "Action", "group__sbloader.html#a3213142f96234fd7f5a586fac74bb0d6", null ], [ "bootCmd", "group__sbloader.html#a8e464f0c6b02d095d3ccf03356e8e8ff", null ], [ "bootSectChunks", "group__sbloader.html#ac1d547b76086b31bddcb1df49f828b2d", null ], [ "crc32", "group__sbloader.html#ab60412d96d4f25f904c6844e1fd3bda0", null ], [ "dek", "group__sbloader.html#af43fa166aa3599d4af6dd25ad58a7632", null ], [ "fileChunks", "group__sbloader.html#a522c456248878bb557496ee9378a3d7f", null ], [ "fileFlags", "group__sbloader.html#aee7c63a38575c45dbbfb42d4175e62cc", null ], [ "initVector", "group__sbloader.html#a57237ff9906ebc85138659eca92dafc5", null ], [ "keyCount", "group__sbloader.html#a7e5512fd8e604fd1d9b9d38da4c5350f", null ], [ "objectID", "group__sbloader.html#ab5aaef2a7a253b993dd63041bee9a81a", null ], [ "receivedChunks", "group__sbloader.html#abe2d16d67161846a087e149a7fe8d45e", null ], [ "scratchPad", "group__sbloader.html#a86efbbb0824781da1c49fc5ec2a29e30", null ], [ "sectChunks", "group__sbloader.html#a87cbf7d0b7120b1c1b8e37ed6c4d3966", null ], [ "skipCount", "group__sbloader.html#a327b13f81c2d5fd60b1723be79972bad", null ], [ "skipToEnd", "group__sbloader.html#a11a93f7333694b4c3ebec2b63a505be0", null ], [ "src", "group__sbloader.html#ae942a57ecd176dfe6c323f68754e74bd", null ] ] ], [ "ldr_buf_t", "group__sbloader.html#struct__ldr__buf", [ [ "data", "group__sbloader.html#a8a965b5d7688e6cc35c240bb7a10ddee", null ], [ "fillPosition", "group__sbloader.html#a4d576ac4701c8e41d43b0b9c26a903c8", null ] ] ], [ "pCallFnc_t", "group__sbloader.html#ga1de0f1c5f7def685737224bccd4e427d", null ], [ "pJumpFnc_t", "group__sbloader.html#ga4c78980909d12afd94251b0d8a0e6d72", null ], [ "pLdrFnc_t", "group__sbloader.html#ga0245e0acbad099fc68373e9510a30e2a", null ], [ "_ldr_memory_ctrl", "group__sbloader.html#gab6bc76cbbc27492728383544ea731c72", null ], [ "_ldr_memory_space", "group__sbloader.html#ga1536554f61934f8efda2c88d6ffb320c", null ], [ "_sbloader_status", "group__sbloader.html#ga776140b8326b3fbe0d466c71e7f424e4", null ], [ "ldr_DoCallCmd", "group__sbloader.html#ga08fefb64c1909e91cc855695d4c29d88", null ], [ "ldr_DoCommand", "group__sbloader.html#gaf82590b20d223f900afb0526629af78c", null ], [ "ldr_DoEraseCmd", "group__sbloader.html#gabd574bf6ff4543b4e4bb642de4edd0ad", null ], [ "ldr_DoFillCmd", "group__sbloader.html#ga391e8156461e75bf9c458a8c239aa668", null ], [ "ldr_DoGetDek", "group__sbloader.html#gac0e29a6ef84e5150d434ac167a2a6362", null ], [ "ldr_DoHeader", "group__sbloader.html#ga0a93051137241cb158be82f76c41cffb", null ], [ "ldr_DoHeader1", "group__sbloader.html#ga97fb3ae2cb77369d17f3e1274885aa54", null ], [ "ldr_DoHeader2", "group__sbloader.html#gad57986c8600fbcc2336d5d8ff7247b1c", null ], [ "ldr_DoHeaderMac", "group__sbloader.html#gabc6ed95c2d394a248aab821e4e12a0d6", null ], [ "ldr_DoInit", "group__sbloader.html#gad4ba3d76f1d6c2be59aa4822161e7080", null ], [ "ldr_DoJumpCmd", "group__sbloader.html#ga3a3306081691ef431d63ce7ad1ade981", null ], [ "ldr_DoKeyTest", "group__sbloader.html#ga0315e4cec526531d325e5cbd3cbe921b", null ], [ "ldr_DoLoadBytes", "group__sbloader.html#gaed3ef0bc94387ab2b5710c64a7c81ff3", null ], [ "ldr_DoLoadChunks", "group__sbloader.html#gad336bbae43e8ca08f9300397b316d0bb", null ], [ "ldr_DoLoadCmd", "group__sbloader.html#ga179d2dbc48908c8880f0d1c38fdf0118", null ], [ "ldr_DoMemEnableCmd", "group__sbloader.html#gad7a59b324c66828cc084b18a964bf3d6", null ], [ "ldr_DoProgramCmd", "group__sbloader.html#ga736cf77e8cd8dbef2c7cf2194281d796", null ], [ "ldr_DoResetCmd", "group__sbloader.html#ga72544d4d3e21c991c3e26cd1a408d9e7", null ], [ "ldr_DoTagCmd", "group__sbloader.html#ga16375b0cc8350f605d7cf5f2c2302b99", null ], [ "ldr_GoToNextSection", "group__sbloader.html#ga715727e893b93f41dbc9c1e2fa5296a7", null ], [ "sbloader_finalize", "group__sbloader.html#gab83b73573b68707e69221c1417fd452d", null ], [ "sbloader_handle_chunk", "group__sbloader.html#ga4c7887c97e9f07681ad1be30dab94987", null ], [ "sbloader_init", "group__sbloader.html#ga196130e1b193207247c017a437943ea5", null ], [ "sbloader_pump", "group__sbloader.html#ga839acaad7be8bbbec73522fe70c32302", null ], [ "s_aesKey", "group__sbloader.html#ga44f04e86cd75f107e97ea3f948fc65c7", null ], [ "s_loaderBuf", "group__sbloader.html#ga8bd4c85b5ac97233a4f6d141a8b3b838", null ], [ "s_loaderContext", "group__sbloader.html#ga6900924e02ee40bd281f9655a672a5cc", null ] ];
linyuanshou/linkchain
types/params.go
package types import ( "math/big" cmn "github.com/lianxiangcloud/linkchain/libs/common" "github.com/lianxiangcloud/linkchain/libs/crypto/merkle" ) var IsTestMode = false const ( // BloomBitsBlocks is the number of blocks a single bloom bit section vector // contains. BloomBitsBlocks uint64 = 4096 ) const ( // MaxBlockSizeBytes is the maximum permitted size of the blocks. MaxBlockSizeBytes = 104857600 // 100MB ) // ConsensusParams contains consensus critical parameters // that determine the validity of blocks. type ConsensusParams struct { BlockSize `json:"block_size_params"` TxSize `json:"tx_size_params"` BlockGossip `json:"block_gossip_params"` EvidenceParams `json:"evidence_params"` } // BlockSize contain limits on the block size. type BlockSize struct { MaxBytes int `json:"max_bytes"` // NOTE: must not be 0 nor greater than 100MB MaxTxs int `json:"max_txs"` MaxGas uint64 `json:"max_gas"` } // TxSize contain limits on the tx size. type TxSize struct { MaxBytes int `json:"max_bytes"` MaxGas uint64 `json:"max_gas"` } // BlockGossip determine consensus critical elements of how blocks are gossiped type BlockGossip struct { BlockPartSizeBytes int `json:"block_part_size_bytes"` // NOTE: must not be 0 } // EvidenceParams determine how we handle evidence of malfeasance type EvidenceParams struct { MaxAge uint64 `json:"max_age"` // only accept new evidence more recent than this } // DefaultConsensusParams returns a default ConsensusParams. func DefaultConsensusParams() *ConsensusParams { return &ConsensusParams{ DefaultBlockSize(), DefaultTxSize(), DefaultBlockGossip(), DefaultEvidenceParams(), } } // DefaultBlockSize returns a default BlockSize. func DefaultBlockSize() BlockSize { return BlockSize{ MaxBytes: 22020096, // 21MB MaxTxs: 10000, MaxGas: 5000000000, } } // DefaultTxSize returns a default TxSize. func DefaultTxSize() TxSize { return TxSize{ MaxBytes: 10240, // 10kB MaxGas: 5000000000, } } // DefaultBlockGossip returns a default BlockGossip. func DefaultBlockGossip() BlockGossip { return BlockGossip{ BlockPartSizeBytes: 32 * 1024, // 32kB } } // DefaultEvidence Params returns a default EvidenceParams. func DefaultEvidenceParams() EvidenceParams { return EvidenceParams{ MaxAge: 100000, // 27.8 hrs at 1block/s } } // Validate validates the ConsensusParams to ensure all values // are within their allowed limits, and returns an error if they are not. func (params *ConsensusParams) Validate() error { // ensure some values are greater than 0 if params.BlockSize.MaxBytes <= 0 { return cmn.NewError("BlockSize.MaxBytes must be greater than 0. Got %d", params.BlockSize.MaxBytes) } if params.BlockGossip.BlockPartSizeBytes <= 0 { return cmn.NewError("BlockGossip.BlockPartSizeBytes must be greater than 0. Got %d", params.BlockGossip.BlockPartSizeBytes) } // ensure blocks aren't too big if params.BlockSize.MaxBytes > MaxBlockSizeBytes { return cmn.NewError("BlockSize.MaxBytes is too big. %d > %d", params.BlockSize.MaxBytes, MaxBlockSizeBytes) } return nil } // Hash returns a merkle hash of the parameters to store // in the block header func (params *ConsensusParams) Hash() []byte { return merkle.SimpleHashFromMap(map[string]merkle.Hasher{ "block_gossip_part_size_bytes": aminoHasher(params.BlockGossip.BlockPartSizeBytes), "block_size_max_bytes": aminoHasher(params.BlockSize.MaxBytes), "block_size_max_gas": aminoHasher(params.BlockSize.MaxGas), "block_size_max_txs": aminoHasher(params.BlockSize.MaxTxs), "tx_size_max_bytes": aminoHasher(params.TxSize.MaxBytes), "tx_size_max_gas": aminoHasher(params.TxSize.MaxGas), }) } /* // Update returns a copy of the params with updates from the non-zero fields of p2. // NOTE: note: must not modify the original func (params ConsensusParams) Update(params2 *abci.ConsensusParams) ConsensusParams { res := params // explicit copy if params2 == nil { return res } // we must defensively consider any structs may be nil // XXX: it's cast city over here. It's ok because we only do int32->int // but still, watch it champ. if params2.BlockSize != nil { if params2.BlockSize.MaxBytes > 0 { res.BlockSize.MaxBytes = int(params2.BlockSize.MaxBytes) } if params2.BlockSize.MaxTxs > 0 { res.BlockSize.MaxTxs = int(params2.BlockSize.MaxTxs) } if params2.BlockSize.MaxGas > 0 { res.BlockSize.MaxGas = params2.BlockSize.MaxGas } } if params2.TxSize != nil { if params2.TxSize.MaxBytes > 0 { res.TxSize.MaxBytes = int(params2.TxSize.MaxBytes) } if params2.TxSize.MaxGas > 0 { res.TxSize.MaxGas = params2.TxSize.MaxGas } } if params2.BlockGossip != nil { if params2.BlockGossip.BlockPartSizeBytes > 0 { res.BlockGossip.BlockPartSizeBytes = int(params2.BlockGossip.BlockPartSizeBytes) } } return res }*/ //VoteRate decides how many candidates will be voted type VoteRate struct { Deno int `json:"Deno"` //Denominator Nume int `json:"Nume"` //molecule UpperLimit int `json:"UpperLimit"` } //CalRate decide the rate when calculate the candidate's rankresult type CalRate struct { Srate int64 `json:"Srate"` //score rate Drate int64 `json:"Drate"` //deposit rate Rrate int64 `json:"Rrate"` //randnum rate } //Coefficient some coefficient which may be changed type Coefficient struct { VotePeriod uint64 `json:"VotePeriod"` //voting per VotePeriod blocks VoteRate `json:"VoteRate"` CalRate `json:"CalRate"` MaxScore int64 `json:"MaxScore"` UTXOFee *big.Int `json:"UTXOFee"` } // DefaultCoefficient returns a default Coefficient. func DefaultCoefficient() *Coefficient { return &Coefficient{ 1321, DefaultVoteRate(), DefaultCalRate(), 500, big.NewInt(500000), //0.05 } } // DefaultVoteRate returns a default VoteRate. func DefaultVoteRate() VoteRate { return VoteRate{ Deno: 5, Nume: 3, UpperLimit: 12, } } // DefaultCalRate returns a default CalRate. func DefaultCalRate() CalRate { return CalRate{ Srate: 4, Drate: 4, Rrate: 2, } }
ckorzen/pdfact
pdfact-core/src/main/java/pdfact/core/pipes/parse/PlainParseDocumentPipe.java
<gh_stars>10-100 package pdfact.core.pipes.parse; import pdfact.core.model.Document; import pdfact.core.pipes.parse.stream.pdfbox.PdfBoxPdfStreamsParser; import pdfact.core.util.exception.PdfActException; /** * A plain implementation of {@link ParseDocumentPipe}. * * @author <NAME> */ public class PlainParseDocumentPipe implements ParseDocumentPipe { @Override public Document execute(Document doc) throws PdfActException { parseDocument(doc); return doc; } /** * Parses the given document. * * @param doc * The document to parse. * * @throws PdfActException * If something went wrong while parsing the document. */ protected void parseDocument(Document doc) throws PdfActException { new PdfBoxPdfStreamsParser().parse(doc); } }
dudejagaurav/bitsat
src/main/java/roundzero/day13/StringFind.java
package roundzero.day13; /** * Created by Gaurav on 15/10/17. */ public class StringFind { public int strStr(final String haystack, final String needle) { if (haystack.length() < 1 || needle.length() < 1 || haystack.length() < needle.length()) { return -1; } int startIndex = -1; int hayIndex = 0; while (hayIndex < haystack.length()) { char hayD = haystack.charAt(hayIndex); char needD = needle.charAt(0); if (hayD == needD) { startIndex = hayIndex; boolean status = checkString(hayIndex, 0, haystack, needle); if (status) { return startIndex; } else { startIndex = -1; hayIndex++; } } else { hayIndex++; } } return startIndex; } private boolean checkString(int hayIndex, int needleIndex, String haystack, String needle) { while ( needleIndex < needle.length() &&hayIndex < haystack.length()) { char hayD = haystack.charAt(hayIndex++); char needD = needle.charAt(needleIndex++); if (hayD != needD) { return false; } } if (needleIndex == needle.length()) { return true; } return false; } public static void main(String[] args) { StringFind stringFind = new StringFind(); System.out.println(stringFind.strStr("dejudeja", "deja")); System.out.println(stringFind.strStr("bbaabbbbbaabbaabbbbbbabbbabaabbbabbabbbbababbbabbabaaababbbaabaaaba", "babaaa")); //bbaabbbbbaabbaabbbbbbabbbabaabbbabbabbbbababbbabbabaaababbbaabaaaba // babaaa } }
jrcastro2/react-invenio-app-ils
src/lib/pages/backoffice/ILL/Library/LibrarySearch/LibraryList/index.js
export { default as LibraryList } from './LibraryList'; export { default as LibraryListEntry } from './LibraryListEntry';
masud-technope/ACER-Replication-Package-ASE2017
corpus/norm-class/eclipse.jdt.ui/10727.java
<filename>corpus/norm-class/eclipse.jdt.ui/10727.java comment param param param foo param bar foo string bar system println bar
FrankKair/pygorithms
algorithms/quicksort.py
# Time: O(n^2) with average O(n log n) # Space: O(1) def quicksort(array): def quicksort(array, left, right): if left >= right: return pivot = array[int((left + right) / 2)] index = partition(array, left, right, pivot) quicksort(array, left, index - 1) quicksort(array, index, right) def partition(array, left, right, pivot): while left <= right: while array[left] < pivot: left += 1 while array[right] > pivot: right -= 1 if left <= right: temp = array[left] array[left] = array[right] array[right] = temp left += 1 right -= 1 return left quicksort(array, 0, len(array) - 1) l = [4, 8, 7, 1, 3, 6, 2, 9, 5] quicksort(l) print(l)
XIANG07/u-boot-zjxiang
u-boot-1.1.6/board/esd/cms700/fpgadata.c
<gh_stars>0 0x07,0x20,0x12,0x00,0x12,0x01,0x04,0x00,0x00,0x00,0x00,0x02,0x08,0xff,0x02,0x08, 0xfe,0x08,0x00,0x00,0x00,0x20,0x01,0x0f,0xff,0xff,0xff,0x09,0x00,0x00,0x00,0x00, 0xf9,0x60,0x40,0x93,0x02,0x08,0xff,0x02,0x08,0xff,0x02,0x08,0xe8,0x08,0x00,0x00, 0x00,0x06,0x01,0x00,0x09,0x05,0x00,0x02,0x08,0xed,0x04,0x00,0x03,0x0d,0x40,0x08, 0x00,0x00,0x00,0x12,0x01,0x00,0x00,0x00,0x09,0x03,0xff,0xff,0x00,0x00,0x00,0x01, 0x00,0x00,0x03,0x09,0x03,0xff,0xfd,0x03,0xff,0xfd,0x04,0x00,0x00,0x00,0x00,0x02, 0x08,0xea,0x08,0x00,0x00,0x00,0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x04,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x00,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x00,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x00,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x00,0x24,0x00,0x1c,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x00,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x00,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x00,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00, 0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0x44, 0x00,0x14,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0x48,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0x4c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x50,0x00,0x00,0x00,0x03,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x00, 0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x84,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x00,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x00,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x00,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00, 0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0xa4, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0xa8,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0xac,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0xb0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0xc0,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0xc4,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0xc8,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x00,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x00,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x01,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04, 0x00,0x00,0x00,0x00,0x09,0x00,0x01,0x04,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x01,0x08,0x10, 0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01,0x0c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01,0x10,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01,0x20,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01,0x24,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01,0x28,0x10,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x01,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x01,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x01,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x01,0x48,0x0c,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x01,0x4c,0x20,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04, 0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x01,0x50, 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x03,0x09,0x00,0x01,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09, 0x00,0x01,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x01,0x88,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x01,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x01,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x01,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x01,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x01,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x01,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x01,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01, 0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01,0xc8, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x01,0xcc,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x01,0xd0,0x00,0x00,0x00,0x03,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00, 0x02,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x02,0x04,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x02,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x02,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x02,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x02,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02, 0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x28, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x2c,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x30,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x40,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x44,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x4c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x02,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x02,0x80,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x02,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x02,0x88, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x8c,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x90,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0xa0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0xa4,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0xa8,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0xac,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x02,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x02,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x02,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x02,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x02, 0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x09,0x00,0x03,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00, 0x09,0x00,0x03,0x04,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x03,0x08,0x80,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03,0x0c,0x00,0x00,0x03,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03,0x10,0x00,0x00,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x03,0x20,0x00,0x1c,0x12,0x81,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x03,0x24,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x03,0x28,0x20,0x1c,0x11,0x81,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x03,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x03,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x03,0x40,0x00,0x14,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x03,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03, 0x48,0x40,0x14,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03,0x4c, 0x10,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x03,0x50,0x00,0x00,0x00,0x03, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09, 0x00,0x03,0x80,0x00,0x0c,0x01,0xc1,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x03,0x84,0x00, 0x24,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x03,0x88,0x00,0x34,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x03,0x8c,0x00,0x50,0x43,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x03,0x90,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x03,0xa0,0x00,0x00,0x03,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x03,0xa4,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03, 0xa8,0x00,0x00,0x43,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03,0xac, 0x00,0x5c,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03,0xb0,0x00, 0x1c,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03,0xc0,0x00,0x00, 0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03,0xc4,0x00,0x00,0x00, 0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03,0xc8,0x00,0x28,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x03,0xcc,0x00,0x54,0x00,0x61,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x03,0xd0,0x00,0x14,0x00,0x63,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x04,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x04,0x04,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x04, 0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x0c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x10,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x20,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x24,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x28,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x2c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x30,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x40,0x00,0x04,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x04,0x48,0x00,0x04,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x04,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x04,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x04,0x80,0x00,0x00,0x00,0x21,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00, 0x00,0x09,0x00,0x04,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x04,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x8c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0x90,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x04,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x04,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x04,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x04,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x04,0xc0,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x04,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x04,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x04, 0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e, 0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x04,0xd0,0x00,0x00,0x00, 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03, 0x09,0x00,0x05,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x05,0x04, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x05,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x05,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x05,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x05,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x05,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x05,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05, 0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0x30, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0x40,0x20, 0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0x44,0x20,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0x48,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0x4c,0x00,0x04,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x05,0x50,0x00,0x04,0x00,0x03,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x05,0x80,0x00, 0x08,0x00,0xc1,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x05,0x84,0x00,0x24,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x05,0x88,0x00,0x14,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05, 0x8c,0x00,0x10,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0x90, 0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0xa0,0x00, 0x00,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0xa4,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0xa8,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0xac,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0xb0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0xc0,0x00,0x00,0x00,0x81,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x05,0xc4,0x00,0x00,0x00,0x81,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x05,0xc8,0x00,0x08,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x05,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x05,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x06,0x02,0x03,0x02,0x02,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00, 0x00,0x00,0x09,0x00,0x06,0x07,0x03,0x03,0x81,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x06,0x0a,0x03,0x03,0x03, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x06,0x0f,0x02,0x03,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x06,0x12,0x03,0x03,0x01,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x06,0x23,0x03,0x03,0x03,0x81,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x06,0x27,0x03,0x03,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x06,0x29,0x03,0x03,0x03,0x81,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x06,0x2e,0x03,0x03,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x06,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x06,0x40,0x20,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x06,0x44,0x20,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x06,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x06,0x4c,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00, 0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x06,0x50,0x00,0x00, 0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x03,0x09,0x00,0x06,0x80,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x06, 0x84,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x06,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x06,0x8c,0x01,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x06,0x90,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x06,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x06,0xa4,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x06,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x06,0xac,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x06, 0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x06,0xc0, 0x08,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x06,0xc4,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x06,0xc8,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x06,0xcc,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x06,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x07,0x00, 0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x07,0x04,0x03,0x01,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x07,0x0a,0x01,0x02,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x07,0x0e,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07, 0x12,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x22, 0x01,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x26,0x03, 0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x28,0x03,0x03, 0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x2e,0x03,0x02,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x30,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x40,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x44,0x20,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x07,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x07,0x80,0x13,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00, 0x00,0x00,0x00,0x09,0x00,0x07,0x84,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x07,0x88,0x01,0x02, 0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x8c,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0x90,0x01,0x01,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0xa0,0x00,0x02,0x03,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0xa4,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x07,0xa8,0x01,0x02,0x02,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x07,0xac,0x01,0x00,0x02,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x07,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x07,0xc0,0x08,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x07,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x07,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x07,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00, 0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x07,0xd0,0x00, 0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x03,0x09,0x00,0x08,0x02,0x02,0x01,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00, 0x08,0x06,0x03,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x08,0x09,0x03,0x03,0x02,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x08,0x0e,0x02,0x02,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x08,0x13,0x03,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x08,0x23,0x02,0x02,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x08,0x27,0x02,0x03,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x08,0x29,0x03,0x03,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x08,0x2f,0x03,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x08,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08, 0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0x44, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0x48,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0x4c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x08,0x50,0x00,0x00,0x00,0x03,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x08, 0x82,0x03,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x08,0x86,0x00,0x02,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x08,0x89,0x02,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x08,0x8e,0x02,0x02,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x08,0x93,0x02,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08, 0xa3,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0xa7, 0x03,0x03,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0xa9,0x02, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0xad,0x02,0x02, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0xb0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0xc0,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0xc4,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0xc8,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x08,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x08,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x09,0x00,0x22,0x00,0x02,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04, 0x00,0x00,0x00,0x00,0x09,0x00,0x09,0x04,0x41,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x09,0x0a,0x03, 0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09,0x0c,0x02,0x02, 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09,0x11,0x03,0x02,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09,0x20,0x02,0x00,0x02,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09,0x24,0x42,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09,0x28,0x0b,0x00,0x02,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09,0x2d,0x03,0x02,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x09,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x09,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x09,0x44,0x80,0x00,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x09,0x48,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x09,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04, 0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x09,0x50, 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x03,0x09,0x00,0x09,0x80,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09, 0x00,0x09,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x09,0x8a,0x02,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09,0x8c,0x02,0x02,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x09,0x91,0x02,0x02,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x09,0xa0,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x09,0xa4,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x09,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x09,0xad,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x09,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x09,0xc0,0x00,0x40,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09, 0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09,0xc8, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x09,0xcc,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x09,0xd0,0x00,0x00,0x00,0x03,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00, 0x0a,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x0a,0x04,0x01,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x0a,0x08,0x01,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x0a,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x0a,0x10,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x0a,0x20,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a, 0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0x28, 0x01,0x00,0x02,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0x2c,0x03, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0x30,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0x40,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0x44,0x00,0x00,0x80,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0x4c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x0a,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x0a,0x80,0x02,0x40,0x90, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x0a,0x84,0x00,0x00,0x80,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0a,0x88, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0x8c,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0x90,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0xa0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0xa4,0x02,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0xa8,0x02,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0xac,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x0a,0xc0,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x0a,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x0a,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x0a,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0a, 0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x09,0x00,0x0b,0x00,0x00,0x03,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00, 0x09,0x00,0x0b,0x04,0x03,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0b,0x09,0x01,0x02,0x02,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0x0c,0x00,0x01,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0x10,0x01,0x01,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0x20,0x00,0x02,0x03,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x0b,0x24,0x00,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x0b,0x2a,0x01,0x03,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x0b,0x2c,0x01,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x0b,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x0b,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x0b,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b, 0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0x4c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0b,0x50,0x00,0x00,0x00,0x03, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09, 0x00,0x0b,0x80,0x08,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x0b,0x84,0x01, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x0b,0x88,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x0b,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x0b,0x90,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x0b,0xa0,0x00,0x00,0x02,0x11,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x0b,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b, 0xa8,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0xac, 0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0xb0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0xc0,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0xc4,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0xc8,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0b,0xcc,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x0b,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x0c,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x0c,0x04,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0c, 0x08,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x0c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x10,0x01, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x20,0x00,0x00, 0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x24,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x28,0x00,0x00,0x02,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x2c,0x01,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x30,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x0c,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x0c,0x4c,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x0c,0x50,0x00,0x00,0x00,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x0c,0x80,0x02,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00, 0x00,0x09,0x00,0x0c,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0c,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x8c,0x00,0x00,0x02,0x21,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0x90,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0xa0,0x01,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x0c,0xa4,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x0c,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x0c,0xac,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x0c,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x0c,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x0c,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x0c,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0c, 0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e, 0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0c,0xd0,0x00,0x00,0x00, 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03, 0x09,0x00,0x0d,0x02,0x03,0x03,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x0d,0x07, 0x03,0x03,0x01,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x0d,0x0b,0x03,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x0d,0x0f,0x02,0x03,0x01,0x21,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x0d,0x13,0x03,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x0d,0x23,0x03,0x03,0x0b,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x0d,0x27,0x03,0x03,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x0d,0x2b,0x0b,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d, 0x2f,0x03,0x03,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0x30, 0x00,0x00,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0x40,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0x44,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0x48,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0x4c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x0d,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x0d,0x80,0x60, 0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x0d,0x84,0x40,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x0d,0x88,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d, 0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0x90, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0xa0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0xa4,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0xa8,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0xac,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0xb0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0xc0,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x0d,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x0d,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x0d,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x0e,0x00,0x80,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00, 0x00,0x00,0x09,0x00,0x0e,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0e,0x08,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0e,0x0c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0e,0x10,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0e,0x20,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0e,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x0e,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x0e,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x0e,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x0e,0x40,0x40,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x0e,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x0e,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x0e,0x4c,0x00,0x04,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00, 0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0e,0x50,0x00,0x04, 0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x03,0x09,0x00,0x0e,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x0e, 0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x0e,0x88,0x80,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x0e,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x0e,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x0e,0xa0,0x20,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x0e,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x0e,0xa8,0x20,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x0e,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0e, 0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0e,0xc0, 0x00,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0e,0xc4,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0e,0xc8,0x50,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0e,0xcc,0x10,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0e,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x0f,0x00, 0x00,0x02,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x0f,0x04,0x02,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x0f,0x08,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x0f,0x0c,0x00,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f, 0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x20, 0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x24,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x2a,0x00,0x01, 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x2c,0x00,0x01,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x30,0x00,0x80,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x40,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x44,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x48,0x10,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x0f,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x0f,0x80,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00, 0x00,0x00,0x00,0x09,0x00,0x0f,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0f,0x88,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x8c,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0x90,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0xa0,0x20,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0xa4,0x00,0x80,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0xa8,0x00,0x00,0x8c,0x0d,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x0f,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x0f,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x0f,0xc0,0x40,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x0f,0xc4,0x40,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x0f,0xc8,0x00,0x00,0x60,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x0f,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00, 0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0f,0xd0,0x00, 0x80,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x03,0x09,0x00,0x10,0x00,0x01,0x0a,0x0a,0xc1,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00, 0x10,0x05,0x03,0x35,0x09,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x10,0x08,0x01,0x16,0x03,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x10,0x0d,0x00,0x91,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x10,0x10,0x01,0x21,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x10,0x20,0x01,0x1f,0x03,0xe1,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x10,0x24,0x01,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x10,0x2a,0x01,0x3f,0x13,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x10,0x2e,0x01,0x1d,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x10,0x30,0x00,0x1c,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10, 0x40,0x00,0x14,0x00,0xe1,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0x44, 0x00,0x80,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0x48,0x00, 0x1c,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0x4c,0x00,0x94, 0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x10,0x50,0x00,0x94,0x00,0x63,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x10, 0x80,0x00,0x80,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x10,0x84,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x10,0x88,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x10,0x8c,0x00,0x40,0x40,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x10,0x90,0x00,0x80,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10, 0xa0,0x00,0xa0,0x9c,0x0d,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0xa4, 0x00,0xa0,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0xa8,0x00, 0x00,0x40,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0xac,0x00,0x40, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0xb0,0x00,0x80,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0xc0,0x00,0x80,0x60,0x09, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0xc4,0x00,0x08,0x08,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0xc8,0x00,0x20,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x10,0xcc,0x00,0x40,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x10,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x11,0x00,0x02,0x00,0x08,0xc1, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04, 0x00,0x00,0x00,0x00,0x09,0x00,0x11,0x04,0x00,0x24,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x11,0x08,0x62, 0x10,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11,0x0c,0x02,0x82, 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11,0x10,0x02,0x02,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11,0x20,0x02,0x9c,0x00,0x81, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11,0x24,0x02,0x00,0x10,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11,0x28,0x42,0x20,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11,0x2c,0x0a,0x9c,0x00,0x81,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x11,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x11,0x40,0x00,0x94,0x08,0xe1,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x11,0x44,0x00,0x00,0x08,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x11,0x48,0x00,0x08,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x11,0x4c,0x00,0x94,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04, 0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x11,0x50, 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x03,0x09,0x00,0x11,0x80,0x00,0x98,0x20,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09, 0x00,0x11,0x84,0x00,0x80,0x08,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x11,0x88,0x00,0x24,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11,0x8c,0x00,0x50,0x40,0x09,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x11,0x90,0x00,0xa0,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x11,0xa0,0x00,0x00,0x10,0x61,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x11,0xa4,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x11,0xa8,0x00,0x1c,0xdc,0x8d,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x11,0xac,0x00,0x40,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x11,0xb0,0x00,0x1c,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x11,0xc0,0x00,0x08,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11, 0xc4,0x00,0x80,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11,0xc8, 0x00,0x34,0x60,0x69,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x11,0xcc,0x00, 0x40,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x11,0xd0,0x00,0x94,0x00,0x63,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00, 0x12,0x00,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x12,0x04,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x12,0x08,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x12,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x12,0x11,0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x12,0x20,0x00,0x10,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12, 0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0x28, 0x00,0x10,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0x2d,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0x30,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0x40,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0x44,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0x4c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x12,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x12,0x80,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x12,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x12,0x88, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0x8c,0x02, 0x02,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0x90,0x02,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0xa0,0x02,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0xa4,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0xa8,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0xac,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x12,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x12,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x12,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x12,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x12,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x12, 0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x09,0x00,0x13,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00, 0x09,0x00,0x13,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x13,0x08,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13,0x0c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x13,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x13,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x13,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x13,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x13,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x13,0x40,0x00,0x10,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x13,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13, 0x48,0x00,0x10,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13,0x4c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x13,0x50,0x00,0x00,0x00,0x03, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09, 0x00,0x13,0x82,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x13,0x86,0x00, 0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x13,0x89,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x13,0x8e,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x13,0x92,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x13,0xa3,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x13,0xa7,0x00,0x03,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13, 0xa9,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13,0xac, 0x02,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13,0xb0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13,0xc0,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13,0xc4,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13,0xc8,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x13,0xcc,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x13,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x14,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x14,0x04,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x14, 0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x0c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x10,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x20,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x24,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x28,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x2c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x30,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x40,0x20,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x14,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x14,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x14,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x14,0x80,0x10,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00, 0x00,0x09,0x00,0x14,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x14,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x8c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0x90,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14,0xa0,0x10,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x14,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x14,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x14,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x14,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x14,0xc0,0x08,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x14,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x14,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x14, 0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e, 0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x14,0xd0,0x00,0x00,0x00, 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03, 0x09,0x00,0x15,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x15,0x04, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x15,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x15,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x15,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x15,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x15,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x15,0x28,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15, 0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0x30, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0x40,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0x44,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0x48,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0x4c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x15,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x15,0x80,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x15,0x84,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x15,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15, 0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0x90, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0xa0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0xa4,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0xa8,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0xac,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0xb0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0xc0,0x00,0x20,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x15,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x15,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x15,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x15,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x16,0x00,0x00,0x02,0x02,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00, 0x00,0x00,0x09,0x00,0x16,0x04,0x03,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x16,0x08,0x01,0x02,0x03, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x16,0x0c,0x00,0x01,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x16,0x10,0x01,0x01,0x01,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x16,0x20,0x00,0x03,0x03,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x16,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x16,0x2a,0x01,0x03,0x03,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x16,0x2c,0x01,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x16,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x16,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x16,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x16,0x48,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x16,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00, 0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x16,0x50,0x00,0x00, 0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x03,0x09,0x00,0x16,0x82,0x03,0x22,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x16, 0x87,0x03,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x16,0x8a,0x03,0x03,0x03,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x16,0x8f,0x03,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x16,0x92,0x03,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x16,0xa3,0x03,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x16,0xa7,0x03,0x03,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x16,0xa9,0x03,0x03,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x16,0xae,0x03,0x03,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x16, 0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x16,0xc0, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x16,0xc4,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x16,0xc8,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x16,0xcc,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x16,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x17,0x00, 0x03,0x08,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x17,0x04,0x03,0x01,0x09,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x17,0x0a,0x01,0x06,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x17,0x0e,0x00,0x11,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17, 0x12,0x01,0x21,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x22, 0x01,0xa3,0x8f,0x6d,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x26,0x03, 0x82,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x28,0x03,0x1f, 0x13,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x2e,0x03,0x82,0x02, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x30,0x00,0x9c,0x00,0x81, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x40,0x00,0x80,0x68,0x09,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x44,0x00,0x08,0x00,0x81,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x48,0x00,0x14,0x00,0x61,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x17,0x50,0x00,0x94,0x00,0x63,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x17,0x82,0x03,0x01,0x2a,0xc1,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00, 0x00,0x00,0x00,0x09,0x00,0x17,0x86,0x03,0xb7,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x17,0x89,0x03,0x33, 0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x8e,0x02,0xc2,0x41, 0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0x93,0x03,0x83,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0xa3,0x03,0x1e,0x13,0x81,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0xa7,0x03,0x03,0x10,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x17,0xa9,0x03,0x23,0xce,0x0d,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x17,0xaf,0x03,0x5e,0x00,0x81,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x17,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x17,0xc0,0x00,0x1c,0x00,0xe1,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x17,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x17,0xc8,0x00,0x28,0x60,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x17,0xcc,0x00,0xd4,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00, 0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x17,0xd0,0x00, 0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x03,0x09,0x00,0x18,0x00,0x02,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00, 0x18,0x04,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x18,0x0a,0x03,0x00,0x02,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x18,0x0c,0x02,0x02,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x18,0x11,0x03,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x18,0x20,0x02,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x18,0x24,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x18,0x28,0x03,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x18,0x2d,0x03,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x18,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18, 0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0x44, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0x48,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0x4c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x18,0x50,0x00,0x00,0x00,0x03,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x18, 0x80,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x18,0x84,0x01,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x18,0x88,0x01,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x18,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x18,0x90,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18, 0xa0,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0xa4, 0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0xa8,0x03, 0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0xac,0x03,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0xb0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0xc0,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0xc4,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0xc8,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x18,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x18,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x19,0x00,0x01,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04, 0x00,0x00,0x00,0x00,0x09,0x00,0x19,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x19,0x08,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19,0x0c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19,0x10,0x01,0x00,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19,0x20,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19,0x24,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19,0x28,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19,0x2c,0x00,0x10,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x19,0x30,0x00,0x10,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x19,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x19,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x19,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x19,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04, 0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x19,0x50, 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x03,0x09,0x00,0x19,0x83,0x02,0x02,0x02,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09, 0x00,0x19,0x87,0x02,0x02,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x19,0x88,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x19,0x93,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x19,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x19,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x19,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x19,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x19,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x19,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19, 0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19,0xc8, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x19,0xcc,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x19,0xd0,0x00,0x00,0x00,0x03,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00, 0x1a,0x00,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x1a,0x04,0x02,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x1a,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x1a,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x1a,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x1a,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a, 0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0x28, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0x2c,0x00, 0x08,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0x30,0x00,0x08, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0x40,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0x44,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0x48,0x00,0x00,0x40,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0x4c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x1a,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x1a,0x81,0x01,0x01,0x01, 0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x1a,0x85,0x01,0x03,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1a,0x88, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0x8c,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0x91,0x00,0x02, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0xa0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0xa4,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0xa8,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0xac,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x1a,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x1a,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x1a,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x1a,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1a, 0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x09,0x00,0x1b,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00, 0x09,0x00,0x1b,0x04,0x01,0x02,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1b,0x08,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0x0c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0x10,0x00,0x00,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x1b,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x1b,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x1b,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x1b,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x1b,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x1b,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b, 0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0x4c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1b,0x50,0x00,0x00,0x00,0x03, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09, 0x00,0x1b,0x83,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x1b,0x87,0x01, 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x1b,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x1b,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x1b,0x91,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x1b,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x1b,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b, 0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0xac, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0xb0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0xc0,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0xc4,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0xc8,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1b,0xcc,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x1b,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x1c,0x01,0x42,0x08, 0x03,0xc1,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x1c,0x05,0x02,0xa7,0x02,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1c, 0x08,0x00,0x14,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x0c, 0x00,0x10,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x11,0x00, 0x23,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x20,0x40,0x1c, 0x00,0xe1,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x24,0x00,0x1c,0x00, 0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x28,0x00,0x1c,0x8c,0x8d, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x2c,0x00,0x9c,0x00,0x81,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x30,0x00,0x1c,0x00,0x81,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x40,0x80,0x14,0x00,0xe1,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x44,0x00,0x14,0x00,0xe1,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x1c,0x48,0x00,0x1c,0x60,0x69,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x1c,0x4c,0x00,0x14,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x1c,0x50,0x00,0x14,0x00,0x63,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x1c,0x83,0x20,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00, 0x00,0x09,0x00,0x1c,0x87,0x02,0x02,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1c,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x8c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0x93,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x1c,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x1c,0xa8,0x08,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x1c,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x1c,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x1c,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x1c,0xc4,0x00,0x80,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x1c,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1c, 0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e, 0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1c,0xd0,0x00,0x00,0x00, 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03, 0x09,0x00,0x1d,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x1d,0x04, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x1d,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x1d,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x1d,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x1d,0x20,0x00,0x08,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x1d,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x1d,0x28,0x00,0x08,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d, 0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0x30, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0x40,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0x44,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0x48,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0x4c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x1d,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x1d,0x81,0x00, 0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x1d,0x85,0x00,0x00,0x02,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x1d,0x88,0x01,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d, 0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0x91, 0x00,0x00,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0xa0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0xa4,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0xa8,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0xac,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0xb0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0xc0,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x1d,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x1d,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x1d,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x1e,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00, 0x00,0x00,0x09,0x00,0x1e,0x04,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1e,0x0a,0x01,0x00,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1e,0x0c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1e,0x10,0x00,0x01,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1e,0x20,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1e,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x1e,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x1e,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x1e,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x1e,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x1e,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x1e,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x1e,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00, 0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1e,0x50,0x00,0x00, 0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x03,0x09,0x00,0x1e,0x81,0x00,0x00,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x1e, 0x84,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x1e,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x1e,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x1e,0x90,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x1e,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x1e,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x1e,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x1e,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1e, 0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1e,0xc0, 0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1e,0xc4,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1e,0xc8,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1e,0xcc,0x00,0x00,0x80, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1e,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x1f,0x00, 0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x1f,0x04,0x00,0x02,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x1f,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x1f,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f, 0x10,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x20, 0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x24,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x28,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x2c,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x30,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x40,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x44,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x1f,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x1f,0x81,0x00,0x01,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00, 0x00,0x00,0x00,0x09,0x00,0x1f,0x85,0x00,0x00,0x03,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1f,0x88,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x8c,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0x91,0x00,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0xa0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0xa4,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x1f,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x1f,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x1f,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x1f,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x1f,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x1f,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00, 0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x1f,0xd0,0x00, 0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x03,0x09,0x00,0x20,0x03,0x01,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00, 0x20,0x07,0x00,0x01,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x20,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x20,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x20,0x13,0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x20,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x20,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x20,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x20,0x2c,0x00,0x04,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x20,0x30,0x00,0x04,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20, 0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0x44, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0x48,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0x4c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x20,0x50,0x00,0x00,0x00,0x03,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x20, 0x81,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x20,0x85,0x01,0x01,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x20,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x20,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x20,0x91,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20, 0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0xa4, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0xa8,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0xac,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0xb0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0xc0,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0xc4,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0xc8,0x80,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x20,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x20,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x21,0x02,0x01,0x01,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04, 0x00,0x00,0x00,0x00,0x09,0x00,0x21,0x06,0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x21,0x08,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21,0x0c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21,0x10,0x01,0x01,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21,0x20,0x00,0x04,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21,0x24,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21,0x28,0x00,0x04,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x21,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x21,0x40,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x21,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x21,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x21,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04, 0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x21,0x50, 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x03,0x09,0x00,0x21,0x81,0x01,0x01,0x93,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09, 0x00,0x21,0x85,0x00,0x00,0x82,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x21,0x88,0x00,0x02,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x21,0x91,0x01,0x01,0x03,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x21,0xa0,0x00,0x00,0x20,0x11,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x21,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x21,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x21,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x21,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x21,0xc0,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21, 0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21,0xc8, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x21,0xcc,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x21,0xd0,0x00,0x00,0x00,0x03,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00, 0x22,0x00,0x00,0x08,0x00,0xc1,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x22,0x04,0x01,0x24, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x22,0x08,0x00,0x34,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x22,0x0c,0x00,0x50,0x40,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x22,0x10,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x22,0x20,0x00,0x00,0x10,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22, 0x24,0x00,0x00,0x10,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0x28, 0x00,0x00,0x50,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0x2c,0x00, 0x5c,0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0x30,0x00,0x1c, 0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0x40,0x00,0x00,0x00, 0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0x44,0x00,0x00,0x00,0x81, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0x48,0x00,0x28,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0x4c,0x00,0xd4,0x00,0x61,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x22,0x50,0x00,0x14,0x00,0x63,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x22,0x80,0x02,0x06,0x02, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x22,0x84,0x01,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x22,0x88, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0x8c,0x00, 0x80,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0x90,0x02,0x82, 0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0xa0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0xa4,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0xa8,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0xac,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x22,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x22,0xc0,0x20,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x22,0xc4,0x20,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x22,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x22,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x22, 0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x09,0x00,0x23,0x01,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00, 0x09,0x00,0x23,0x05,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x23,0x08,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23,0x0c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23,0x11,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x23,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x23,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x23,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x23,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x23,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x23,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x23,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23, 0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23,0x4c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x23,0x50,0x00,0x00,0x00,0x03, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09, 0x00,0x23,0x80,0x02,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x23,0x86,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x23,0x88,0x01,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x23,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x23,0x92,0x02,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x23,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x23,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23, 0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23,0xac, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23,0xb0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23,0xc0,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23,0xc4,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23,0xc8,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x23,0xcc,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x23,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x24,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x24,0x04,0x00,0x02,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x24, 0x08,0x01,0x00,0x01,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x0c, 0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x10,0x00, 0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x20,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x24,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x28,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x2c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x30,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x24,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x24,0x4c,0x00,0x00,0x00,0x41,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x24,0x50,0x00,0x00,0x00,0x43,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x24,0x80,0x01,0x01,0x01,0x21,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00, 0x00,0x09,0x00,0x24,0x84,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x24,0x8a,0x02,0x02,0x02,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x8c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0x90,0x01,0x01,0x01,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x24,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x24,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x24,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x24,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x24,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x24,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x24,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x24, 0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e, 0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x24,0xd0,0x00,0x00,0x00, 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03, 0x09,0x00,0x25,0x00,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x25,0x04, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x25,0x08,0x02,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x25,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x25,0x10,0x00,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x25,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x25,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x25,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25, 0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0x30, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0x40,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0x44,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0x48,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0x4c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x25,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x25,0x80,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x25,0x84,0x00,0x00,0x02,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x25,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25, 0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0x90, 0x01,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0xa0,0x04, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0xa4,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0xa8,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0xac,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0xb0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0xc0,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x25,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x25,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x25,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x25,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x26,0x00,0x03,0x00,0x02,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00, 0x00,0x00,0x09,0x00,0x26,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x26,0x08,0x00,0x03,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x26,0x0c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x26,0x10,0x03,0x00,0x02,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x26,0x20,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x26,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x26,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x26,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x26,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x26,0x40,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x26,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x26,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x26,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00, 0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x26,0x50,0x00,0x00, 0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x03,0x09,0x00,0x26,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x26, 0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x26,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x26,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x26,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x26,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x26,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x26,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x26,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x26, 0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x26,0xc0, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x26,0xc4,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x26,0xc8,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x26,0xcc,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x26,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x27,0x01, 0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x27,0x04,0x01,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x27,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x27,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27, 0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x20, 0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x25,0x01, 0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x28,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x2c,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x30,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x40,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x44,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x27,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x27,0x80,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00, 0x00,0x00,0x00,0x09,0x00,0x27,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x27,0x88,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x8c,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0x90,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0xa0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0xa4,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x27,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x27,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x27,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x27,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x27,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x27,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x27,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00, 0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x27,0xd0,0x00, 0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x03,0x09,0x00,0x28,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00, 0x28,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x28,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x28,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x28,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x28,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x28,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x28,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x28,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x28,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28, 0x40,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0x44, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0x48,0x00, 0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0x4c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x28,0x50,0x00,0x00,0x00,0x03,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x28, 0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x28,0x84,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x28,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x28,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x28,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28, 0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0xa4, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0xa8,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0xac,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0xb0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0xc0,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0xc4,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0xc8,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x28,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x28,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x29,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04, 0x00,0x00,0x00,0x00,0x09,0x00,0x29,0x04,0x80,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x29,0x08,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29,0x0c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29,0x10,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29,0x20,0x20,0x00,0x00,0x09, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29,0x24,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29,0x28,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x29,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x29,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x29,0x44,0x40,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x29,0x48,0x10,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x29,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04, 0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x29,0x50, 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x03,0x09,0x00,0x29,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09, 0x00,0x29,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x29,0x88,0x80,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x29,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x29,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x29,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x29,0xa8,0x20,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x29,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x29,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x29,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29, 0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29,0xc8, 0x40,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x29,0xcc,0x10, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x29,0xd0,0x00,0x00,0x00,0x03,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00, 0x2a,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x2a,0x04,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x2a,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x2a,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x2a,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x2a,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a, 0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0x28, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0x2c,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0x30,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0x40,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0x44,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0x48,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0x4c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x2a,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x2a,0x80,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x2a,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2a,0x88, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0x8c,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0x90,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0xa0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0xa4,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0xa8,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0xac,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x2a,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x2a,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x2a,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x2a,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2a, 0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x09,0x00,0x2b,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00, 0x09,0x00,0x2b,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2b,0x08,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0x0c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x2b,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x2b,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x2b,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x2b,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x2b,0x40,0x00,0x00,0x40,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x2b,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b, 0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0x4c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2b,0x50,0x00,0x00,0x00,0x03, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09, 0x00,0x2b,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x2b,0x84,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x2b,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x2b,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x2b,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x2b,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x2b,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b, 0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0xac, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0xb0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0xc0,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0xc4,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0xc8,0x80,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2b,0xcc,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x2b,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x2c,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x2c,0x04,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2c, 0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x0c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x10,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x20,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x24,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x28,0x00,0x00,0x04,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x2c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x30,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x2c,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x2c,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x2c,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x2c,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00, 0x00,0x09,0x00,0x2c,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2c,0x88,0x00,0x00,0x00,0x21, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x8c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0x90,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0xa0,0x00,0x00,0x40,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x2c,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x2c,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x2c,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x2c,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x2c,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x2c,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x2c,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2c, 0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e, 0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2c,0xd0,0x00,0x00,0x00, 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03, 0x09,0x00,0x2d,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x2d,0x04, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x2d,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x2d,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x2d,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x2d,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x2d,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x2d,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d, 0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0x30, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0x40,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0x44,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0x48,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0x4c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x2d,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x2d,0x80,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x2d,0x84,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x2d,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d, 0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0x90, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0xa0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0xa4,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0xa8,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0xac,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0xb0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0xc0,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x2d,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x2d,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x2d,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x2e,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00, 0x00,0x00,0x09,0x00,0x2e,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2e,0x08,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2e,0x0c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2e,0x10,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2e,0x20,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2e,0x24,0x00,0x1c,0x00,0x81,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x2e,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x2e,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x2e,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x2e,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x2e,0x44,0x00,0x14,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x2e,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x2e,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00, 0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2e,0x50,0x00,0x00, 0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x03,0x09,0x00,0x2e,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x2e, 0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x2e,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x2e,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x2e,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x2e,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x2e,0xa4,0x00,0x00,0x8c,0x0d,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x2e,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x2e,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2e, 0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2e,0xc0, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2e,0xc4,0x00, 0x00,0x60,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2e,0xc8,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2e,0xcc,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2e,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x2f,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x2f,0x04,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x2f,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x2f,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f, 0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x20, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x24,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x28,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x2c,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x30,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x40,0x00,0x00,0x00,0x41,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x44,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x48,0x00,0x00,0x00,0x41,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x2f,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x2f,0x80,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00, 0x00,0x00,0x00,0x09,0x00,0x2f,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2f,0x88,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x8c,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0x90,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0xa0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0xa4,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x2f,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x2f,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x2f,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x2f,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x2f,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x2f,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00, 0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x2f,0xd0,0x00, 0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x03,0x09,0x00,0x30,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00, 0x30,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x30,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x30,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x30,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x30,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x30,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x30,0x28,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x30,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x30,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30, 0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0x44, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0x48,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0x4c,0x00,0x10, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x30,0x50,0x00,0x10,0x00,0x03,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x30, 0x80,0xe0,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x30,0x84,0xc0,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x09,0x00,0x30,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x30,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x30,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30, 0xa0,0x60,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0xa4, 0x40,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0xa8,0x08, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0xac,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0xb0,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0xc0,0x40,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0xc4,0x40,0x00,0x00,0x05,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0xc8,0x10,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x30,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x30,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x31,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04, 0x00,0x00,0x00,0x00,0x09,0x00,0x31,0x04,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x31,0x08,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31,0x0c,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31,0x10,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31,0x20,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31,0x24,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31,0x28,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x31,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x31,0x40,0x00,0x00,0x04,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x31,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x31,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x31,0x4c,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04, 0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x31,0x50, 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x03,0x09,0x00,0x31,0x80,0x00,0x00,0x90,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09, 0x00,0x31,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x31,0x88,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x31,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x31,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x31,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x31,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x31,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x31,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x31,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31, 0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31,0xc8, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x31,0xcc,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x31,0xd0,0x00,0x00,0x00,0x03,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00, 0x32,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x32,0x04,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x09,0x00,0x32,0x08,0x00,0xc0,0xd4,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x32,0x0c,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x32,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x32,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32, 0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0x28, 0x00,0xc0,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0x2c,0x00, 0x00,0x40,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0x30,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0x40,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0x44,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0x48,0x00,0xc0,0x84,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0x4c,0x00,0x20,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x32,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x32,0x80,0x08,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x32,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x32,0x88, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0x8c,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0x90,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0xa0,0x04,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0xa4,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0xa8,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0xac,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x32,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x32,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x32,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x32,0xc8,0x80,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x32,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x32, 0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x03,0x09,0x00,0x33,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00, 0x09,0x00,0x33,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x33,0x08,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33,0x0c,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x33,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x33,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x33,0x28,0x00,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x33,0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x33,0x30,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x33,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x33,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33, 0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33,0x4c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x33,0x50,0x00,0x00,0x00,0x03, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09, 0x00,0x33,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x33,0x84,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x09,0x00,0x33,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x33,0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x33,0x90,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x33,0xa0,0x00,0x40,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x33,0xa4,0x00,0x00,0x00,0x11,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33, 0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33,0xac, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33,0xb0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33,0xc0,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33,0xc4,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33,0xc8,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x33,0xcc,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x33,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x34,0x00,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x34,0x04,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x34, 0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x0c, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x10,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x20,0x00,0x00, 0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x24,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x28,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x2c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x30,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x34,0x48,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x34,0x4c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x34,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x34,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00, 0x00,0x09,0x00,0x34,0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x34,0x88,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x8c,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0x90,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34,0xa0,0x00,0x00,0x00,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x34,0xa4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x34,0xa8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x34,0xac,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x34,0xb0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x34,0xc0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x34,0xc4,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x34,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x34, 0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e, 0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x34,0xd0,0x00,0x00,0x00, 0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03, 0x09,0x00,0x35,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x35,0x04, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x09,0x00,0x35,0x08,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x09,0x00,0x35,0x0c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x01,0x09,0x00,0x35,0x10,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x09,0x00,0x35,0x20,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09, 0x00,0x35,0x24,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00, 0x35,0x28,0x00,0x00,0x08,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35, 0x2c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0x30, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0x40,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0x44,0x00,0x00, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0x48,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0x4c,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x09,0x00,0x35,0x50,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x35,0x80,0x00, 0x00,0x40,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x09,0x00,0x35,0x84,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00, 0x35,0x88,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35, 0x8c,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0x90, 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0xa0,0x00, 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0xa4,0x00,0x1c, 0x00,0x81,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0xa8,0x00,0x00,0x00, 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0xac,0x00,0x00,0x00,0x01, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0xb0,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0xc0,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x09,0x00,0x35,0xc4,0x00,0x14,0x00,0x61,0x00,0x00,0x00, 0x00,0x00,0x00,0x01,0x09,0x00,0x35,0xc8,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x09,0x00,0x35,0xcc,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, 0x00,0x01,0x04,0x00,0x00,0x4e,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09, 0x00,0x35,0xd0,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00, 0x00,0x00,0x00,0x00,0x00,0x03,0x09,0x00,0x35,0xd0,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x04,0x00,0x00,0x00,0x00,0x02,0x08,0xff,0x04,0x00,0x00, 0x00,0x64,0x02,0x08,0xf0,0x04,0x00,0x00,0x00,0x00,0x02,0x08,0xff,0x02,0x08,0xff, 0x08,0x00,0x00,0x00,0x01,0x01,0x00,0x09,0x00,0x00,0x00,
TrackerSB/MasterThesis
code/examples/VsevolodTymofyeyev/AIExchangeService.py
<reponame>TrackerSB/MasterThesis from http.client import HTTPResponse from typing import Optional from aiExchangeMessages_pb2 import VehicleID, SimulationID, SimulationIDs, TestResult, MaySimulationIDs # FIXME Missing functions: Check status of simulations class AIExchangeService: from aiExchangeMessages_pb2 import SimStateResponse, DataRequest, DataResponse, Control, Void def __init__(self, host: str, port: int): self.host = host self.port = port @staticmethod def _print_error(response: HTTPResponse) -> None: from common import eprint eprint("Response status: " + str(response.status)) eprint("Reason: " + response.reason) eprint("Messsage:") eprint(b"\n".join(response.readlines())) def wait_for_simulator_request(self, sid: SimulationID, vid: VehicleID) -> SimStateResponse.SimState: """ Waits for the simulation with ID sid to request the car with ID vid. This call blocks until the simulation requests the appropriate car in the given simulation. :param sid: The ID of the simulation the vehicle is included in. :param vid: The ID of the vehicle in the simulation to wait for. :return: The current state of the simulation at the point when the call to this function returns. The return value should be used to check whether the simulation is still running. Another vehicle or the even user may have stopped the simulation. """ from aiExchangeMessages_pb2 import SimStateResponse from httpUtil import do_get_request response = do_get_request(self.host, self.port, "/ai/waitForSimulatorRequest", { "sid": sid.SerializeToString(), "vid": vid.SerializeToString() }) if response.status == 200: result = b"".join(response.readlines()) sim_state = SimStateResponse() sim_state.ParseFromString(result) return sim_state.state else: AIExchangeService._print_error(response) def request_data(self, sid: SimulationID, vid: VehicleID, request: DataRequest) -> DataResponse: """ Request data of a certain vehicle contained by a certain simulation. :param sid: The ID of the simulation the vehicle to request data about is part of. :param vid: The ID of the vehicle to get collected data from. :param request: The types of data to be requested about the given vehicle. A DataRequest object is build like the following: request = DataRequest() request.request_ids.extend(["id_1", "id_2",..., "id_n"]) NOTE: You have to use extend(...)! An assignment like request.request_ids = [...] will not work due to the implementation of Googles protobuffer. :return: The data the simulation collected about the given vehicle. The way of accessing the data is dependant on the type of data you requested. To find out how to access the data properly you should set a break point and checkout the content of the returned value using a debugger. """ from aiExchangeMessages_pb2 import DataResponse from httpUtil import do_get_request response = do_get_request(self.host, self.port, "/ai/requestData", { "request": request.SerializeToString(), "sid": sid.SerializeToString(), "vid": vid.SerializeToString() }) if response.status == 200: result = b"".join(response.readlines()) data_response = DataResponse() data_response.ParseFromString(result) return data_response else: AIExchangeService._print_error(response) def control(self, sid: SimulationID, vid: VehicleID, commands: Control) -> Void: """ Control the simulation or a certain vehicle in the simulation. :param sid: The ID the simulation either to control or containing th vehicle to control. :param vid: The ID of the vehicle to possibly control. :param commands: The command either controlling a simulation or a vehicle in a simualtion. To define a command controlling a simulation you can use commands like: control = Control() control.simCommand.command = Control.SimCommand.Command.SUCCEED # Force simulation to succeed control.simCommand.command = Control.SimCommand.Command.FAIL # Force simulation to fail control.simCommand.command = Control.SimCommand.Command.CANCEL # Force simulation to be cancelled/skipped For controlling a vehicle you have to define steering, acceleration and brake values: control = Control() control.avCommand.accelerate = <Acceleration intensity having a value between 0.0 and 1.0> control.avCommand.steer = <A steering value between -1.0 and 1.0 (Negative value steers left; a positive one steers right)> control.avCommand.brake = <Brake intensity having a value between 0.0 and 1.0> :return: A Void object possibly containing a info message. """ from httpUtil import do_mixed_request response = do_mixed_request(self.host, self.port, "/ai/control", { "sid": sid.SerializeToString(), "vid": vid.SerializeToString() }, commands.SerializeToString()) if response.status == 200: print("Controlled car") # FIXME What to do here? else: AIExchangeService._print_error(response) def control_sim(self, sid: SimulationID, result: TestResult) -> Void: """ Force a simulation to end having the given result. :param sid: The simulation to control. :param result: The test result to be set to the simulation. :return: A Void object possibly containing a info message. """ from httpUtil import do_get_request response = do_get_request(self.host, self.port, "/sim/stop", { "sid": sid.SerializeToString(), "result": result.SerializeToString() }) if response.status == 200: pass # FIXME What to do here? else: AIExchangeService._print_error(response) def get_status(self, sid: SimulationID) -> str: """ Check the status of the given simulation. :param sid: The simulation to get the status of. :return: A string representing the status of the simulation like RUNNING, FINISHED or ERRORED. """ from httpUtil import do_get_request response = do_get_request(self.host, self.port, "/stats/status", { "sid": sid.SerializeToString() }) if response.status == 200: return b"".join(response.readlines()).decode() else: AIExchangeService._print_error(response) return "Status could not be determined." def get_result(self, sid: SimulationID) -> str: """ Get the test result of the given simulation. :param sid: The simulation to get the test result of. :return: The current test result of the given simulation like UNKNOWN, SUCCEEDED, FAILED or CANCELLED. """ from httpUtil import do_get_request response = do_get_request(self.host, self.port, "/stats/result", { "sid": sid.SerializeToString() }) if response.status == 200: return b"".join(response.readlines()).decode() else: AIExchangeService._print_error(response) return "Result could not be determined." def run_tests(self, username: str, password: str, *paths: str) -> Optional[SimulationIDs]: """ Upload the sequence of given files to DriveBuild, execute them and get their associated simulation IDs. :param username: The username for login. :param password: The password for login. :param paths: The sequence of file paths of files or folders containing files to be uploaded. :return: A sequence containing simulation IDs for all *valid* test cases uploaded. Returns None iff the upload of tests failed or the tests could not be run. Returns an empty list of none of the given test cases was valid. """ from httpUtil import do_mixed_request from aiExchangeMessages_pb2 import User from tempfile import NamedTemporaryFile from zipfile import ZipFile from os import remove, listdir from os.path import abspath, basename, isfile, isdir, join from common import eprint temp_file = NamedTemporaryFile(mode="w", suffix=".zip", delete=False) temp_file.close() with ZipFile(temp_file.name, "w") as write_zip_file: def _add_all_files(path: str) -> None: if isfile(path): abs_file_path = abspath(path) filename = basename(abs_file_path) write_zip_file.write(abs_file_path, filename) elif isdir(path): for sub_path in listdir(path): _add_all_files(join(path, sub_path)) else: eprint("Can not handle path \"" + path + "\".") for path in paths: _add_all_files(path) user = User() user.username = username user.password = password with open(temp_file.name, "rb") as read_zip_file: response = do_mixed_request(self.host, self.port, "/runTests", { "user": user.SerializeToString() }, b"".join(read_zip_file.readlines())) remove(temp_file.name) sids = MaySimulationIDs() sids.ParseFromString(b"".join(response.readlines())) if response.status == 200: return sids.sids else: eprint("Running tests errored:") eprint(sids.message.message) return None def get_service() -> AIExchangeService: return AIExchangeService("localhost", 8383)
jlandess/LandessDevCore
Examples/ReflectionExample.cpp
<filename>Examples/ReflectionExample.cpp // // Created by phoenixflower on 5/13/20. // #include "ReflectionExample.hpp" #include "Primitives/General/Immutable.hpp" #include "IO/Database.hpp" #include "ReflectionDemoTypes.h" #include <iostream> #include "Primitives/General/ContextualVariant.h" #include "IO/DatabaseOperationResult.h" #include "Primitives/General/Span.hpp" #include "IO/UnqliteDatabaseBackend.h" #include "IO/FetchRequest.h" #include "IO/DatabaseEntity.h" #include "IO/JsonDatabaseBackend.h" #include "Chrono/Timer.h" namespace LD { namespace Example { void ReflectionExample() { /* LD::Timer currentTimer; currentTimer.Start(); using ReflectiveTypeStructure = LD::CT::GenerateNamedReflectiveTypeStructure<decltype("meep"_ts),LD::Pyramid>; using Keys = typename LD::CT::TypeListChannelView<0,2,ReflectiveTypeStructure>; using Types = typename LD::CT::TypeListChannelView<1,2,ReflectiveTypeStructure>; LD::For<0,ReflectiveTypeStructure::size()/2,1>([](auto I) { using Key = LD::CT::TypeAtIndex<I,Keys>; using Type = LD::CT::TypeAtIndex<I,Types>; if constexpr(LD::IsPrimitive<Type> || LD::IsReflectable<Type>) { std::cout << LD::CT::TypeAtIndex<I,Keys>::data() << " : " << typeid(Type).name() << std::endl; } return true; }); LD::Entity<decltype("key"_ts),LD::Square,LD::BasicKeyedDatabase<LD::UnQliteBackend<char>>> entity; LD::UnQliteBackend<char> currentBackend{LD::StringView {"backend.db"},OpenAndCreateIfNotExists{}}; LD::BasicKeyedDatabase<LD::UnQliteBackend<char>> database{currentBackend}; nlohmann::json currentJsonBackingStore; LD::JsonBackend jsonBackend{currentJsonBackingStore}; LD::BasicKeyedDatabase<LD::JsonBackend> jsonDatabase{jsonBackend}; Square currentSuqre; currentSuqre["Length"_ts] = 7; auto jsonDBInsertBegin = currentTimer.Time(); jsonDatabase.Insert("key"_ts,currentSuqre); auto jsonDBInsertEnd = currentTimer.Time(); std::cout << "Json Insert of a Square took : " << ((jsonDBInsertEnd-jsonDBInsertBegin)/1.0_us) << " micrseconds " << std::endl; Pyramid currentPyramid; jsonDBInsertBegin = currentTimer.Time(); jsonDatabase.Insert("pyrakey"_ts,currentPyramid); jsonDBInsertEnd = currentTimer.Time(); std::cout << "Json Insert of a Pyramid took : " << ((jsonDBInsertEnd-jsonDBInsertBegin)/1.0_us) << " micrseconds " << std::endl; std::cout << currentJsonBackingStore.dump(2) << std::endl; currentPyramid.Side() = LD::Triangle{37,521}; currentPyramid.Base() = LD::Square{9723}; auto unqliteInsertAndCommitBegin = currentTimer.Time(); LD::QueryResult<LD::Pyramid &(int)> insertQueryRes = database.InsertAndCommit("key"_ts,currentPyramid,int{232}); auto unqliteInsertAndCommitEnd = currentTimer.Time(); std::cout << "Unqlite Insert of a Pyramid took : " << ((unqliteInsertAndCommitEnd-unqliteInsertAndCommitBegin)/1.0_us) << " micrseconds " << std::endl; auto onInsertionFailure = [](const LD::Context<LD::TransactionError,int> & context) { }; auto onInsertOfPyramid = [](const LD::Context<LD::TransactionResult,Pyramid&,int> & context) { std::cout << "pyramid succesfully inserted " << LD::Get<2>(context) << std::endl; }; LD::Match(insertQueryRes,onInsertionFailure,onInsertOfPyramid); auto unqliteFetchBegin = currentTimer.Time(); LD::QueryResult<LD::Variant<LD::Pyramid>()> fetchResult = database.Fetch("key"_ts,LD::CT::TypeList<Pyramid>{}); auto unqliteFetchEnd = currentTimer.Time(); std::cout << "Unqlite Fetch of a Pyramid took : " << ((unqliteFetchEnd-unqliteFetchBegin)/1.0_us) << " micrseconds " << std::endl; //when a fetch request fails we simply get a context with the database error and the arguements passed in Fetch to be used in the anymous function auto onFetchError = [](const LD::Context<LD::TransactionError> & context ) { }; //database.InsertGroup(LD::MakeTuple("key1"_ts),LD::MakeContext(LD::Square{})); //the second object specified in a given LD::Context after a fetch request will always be the object found //the first object specified in a given LD::Context will either be LD::DatabaseTransactionResult or LD::DatabaseError //If a database error has occured, as show above, there will be no object available for usage and so it simply provides the error in question auto onPyramidTransaction = [](const LD::Context<LD::TransactionResult,Pyramid> & context) { std::cout << "fetch1 query result " << std::endl; Pyramid & pyramidToUse = LD::Get<1>(context); std::cout << pyramidToUse.Base().Length()<< std::endl; std::cout << pyramidToUse.Side().Base() << std::endl; std::cout << pyramidToUse.Side().Height() << std::endl; }; LD::Match(fetchResult,onFetchError,onPyramidTransaction); //LD::QueryResult<bool()> deletionQueryResult = database.Remove("key"_ts,LD::CT::TypeList<LD::Pyramid>{}); auto unqliteRemoveStart = currentTimer.Time(); LD::QueryResult<LD::Type<LD::Pyramid>()> deletionQueryResult = database.Remove("key"_ts,LD::CT::TypeList<LD::Pyramid>{}); auto unqliteRemoveEnd = currentTimer.Time(); std::cout << "Unqlite Removal of a Pyramid took : " << ((unqliteRemoveEnd-unqliteRemoveStart)/1.0_us) << " micrseconds " << std::endl; auto onDeletionError = [](const LD::Context<LD::TransactionError> & context) { }; auto onDeletionSuccess = [](const LD::Context<LD::TransactionResult,LD::Type<Pyramid>> & context) { std::cout << "successfully deleted pyramid" << std::endl; }; LD::Match(deletionQueryResult,onDeletionSuccess,onDeletionError); currentTimer.Stop(); */ } } }
ETroll/TrollOS
kernel/mem/mmap.c
#include <tros/mem/mmap.h> #include <tros/klib/kstring.h> #include <tros/tros.h> static unsigned int* __mmap_memory_map = 0; static unsigned int __mmap_max_blocks = 0; void mmap_initialize(unsigned int phys_loc, unsigned int max_blocks) { __mmap_memory_map = (unsigned int*)phys_loc; __mmap_max_blocks = max_blocks; for(int i = 0; i<(max_blocks / 32); i++) { __mmap_memory_map[i] = 0xFFFFFFFF; } } void mmap_set_used(int block) { __mmap_memory_map[block / 32] |= (1 << (block % 32)); } void mmap_set_notused(int block) { __mmap_memory_map[block / 32] &= ~ (1 << (block % 32)); } int mmap_test_block(int block) { return __mmap_memory_map[block / 32] & (1 << (block % 32)); } int mmap_get_first_free_block() { for(unsigned int i=0; i < (__mmap_max_blocks / 32); i++) { if(__mmap_memory_map[i] != 0xffffffff) { //We have at least one free frame, lets test the bits and find which one. for(int j=0; j<32; j++) { int bit = 1 << j; if(!(__mmap_memory_map[i] & bit)) { return i*4*8+j; } } } } return -1; } int mmap_get_first_free_size(unsigned int size) { //printk("Searching for %d free blocks %x\n", size, __mmap_memory_map); if(size > 0) { if(size==1) { return mmap_get_first_free_block(); } else { for(unsigned int i=0; i < (__mmap_max_blocks / 32); i++) { if(__mmap_memory_map[i] != 0xffffffff) { for(int j=0; j<32; j++) { int bit = 1 << j; if(!(__mmap_memory_map[i] & bit)) { int start_bit = (i*32) + j; //printk("Found bit %d : start_bit: %d\n", j, start_bit); unsigned int free_bits = 0; for(unsigned int count=0; count<=size; count++) { //printk("Testing %d\n", start_bit+count); if(!mmap_test_block(start_bit+count)) { free_bits++; //printk("One sequencial block\n"); } if(free_bits == size) { return i*4*8+j; } } } } } } } } return -1; }
MihailMiller/OpenAlchemy
tests/open_alchemy/schemas/artifacts/property_/test_relationship.py
<reponame>MihailMiller/OpenAlchemy """Tests for retrieving artifacts for a relationship property.""" import functools import pytest from open_alchemy import types from open_alchemy.schemas import artifacts GET_TESTS = [ pytest.param( True, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "required", True, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="required True", ), pytest.param( False, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "required", False, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="required False", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "type", types.PropertyType.RELATIONSHIP, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="property type", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "sub_type", types.RelationshipType.MANY_TO_ONE, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="sub type many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-uselist": False, } }, "sub_type", types.RelationshipType.ONE_TO_ONE, artifacts.types.OneToOneRelationshipPropertyArtifacts, id="sub type one-to-one", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "sub_type", types.RelationshipType.ONE_TO_MANY, artifacts.types.OneToManyRelationshipPropertyArtifacts, id="sub type one-to-many", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-secondary": "secondary_1", } }, "sub_type", types.RelationshipType.MANY_TO_MANY, artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="sub type many-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "parent", "RefSchema", artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="parent many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-uselist": False, } }, "parent", "RefSchema", artifacts.types.OneToOneRelationshipPropertyArtifacts, id="parent one-to-one", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "parent", "RefSchema", artifacts.types.OneToManyRelationshipPropertyArtifacts, id="parent one-to-many", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-secondary": "secondary_1", } }, "parent", "RefSchema", artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="parent many-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "array", "items": {"$ref": "#/components/schemas/RefRefSchema"}, }, "RefRefSchema": {"type": "object"}, }, "parent", "RefRefSchema", artifacts.types.OneToManyRelationshipPropertyArtifacts, id="$ref items one-to-many", ), pytest.param( None, { "allOf": [ {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}} ] }, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "parent", "RefSchema", artifacts.types.OneToManyRelationshipPropertyArtifacts, id="allOf items one-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "array", "items": {"$ref": "#/components/schemas/RefRefSchema"}, }, "RefRefSchema": {"type": "object", "x-secondary": "secondary_1"}, }, "parent", "RefRefSchema", artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="$ref items one-to-many", ), pytest.param( None, { "allOf": [ {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}} ] }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-secondary": "secondary_1", } }, "parent", "RefSchema", artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="allOf items one-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "schema", {"type": "object", "x-de-$ref": "RefSchema"}, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="schema many-to-one", ), pytest.param( None, { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"description": "description 1"}, ] }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "description": "description 2", } }, "schema", {"type": "object", "x-de-$ref": "RefSchema", "description": "description 1"}, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="schema description prefer local many-to-one", ), pytest.param( None, {"allOf": [{"$ref": "#/components/schemas/RefSchema"}, {"nullable": True}]}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "nullable": False, } }, "schema", {"type": "object", "x-de-$ref": "RefSchema", "nullable": True}, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="schema nullable prefer local many-to-one", ), pytest.param( None, {"allOf": [{"$ref": "#/components/schemas/RefSchema"}, {"writeOnly": True}]}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "writeOnly": False, } }, "schema", {"type": "object", "x-de-$ref": "RefSchema", "writeOnly": True}, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="schema writeOnly prefer local many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-uselist": False, } }, "schema", {"type": "object", "x-de-$ref": "RefSchema"}, artifacts.types.OneToOneRelationshipPropertyArtifacts, id="schema one-to-one", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "schema", {"type": "array", "items": {"type": "object", "x-de-$ref": "RefSchema"}}, artifacts.types.OneToManyRelationshipPropertyArtifacts, id="schema one-to-many", ), pytest.param( None, { "allOf": [ {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, {"description": "description 1"}, ] }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "description": "description 2", } }, "schema", { "type": "array", "items": {"type": "object", "x-de-$ref": "RefSchema"}, "description": "description 1", }, artifacts.types.OneToManyRelationshipPropertyArtifacts, id="schema description one-to-many", ), pytest.param( None, { "allOf": [ {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, {"writeOnly": True}, ] }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "writeOnly": False, } }, "schema", { "type": "array", "items": {"type": "object", "x-de-$ref": "RefSchema"}, "writeOnly": True, }, artifacts.types.OneToManyRelationshipPropertyArtifacts, id="schema writeOnly one-to-many", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-secondary": "secondary_1", } }, "schema", {"type": "array", "items": {"type": "object", "x-de-$ref": "RefSchema"}}, artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="schema many-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "backref_property", None, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="backref undefined", ), pytest.param( None, { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"x-backref": "backref_1"}, ] }, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "backref_property", "backref_1", artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="backref many-to-one", ), pytest.param( None, { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"x-backref": "backref_1"}, ] }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-backref": "backref_2", } }, "backref_property", "backref_1", artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="backref prefer local many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-backref": "backref_1", "x-uselist": False, } }, "backref_property", "backref_1", artifacts.types.OneToOneRelationshipPropertyArtifacts, id="backref one-to-one", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-backref": "backref_1", } }, "backref_property", "backref_1", artifacts.types.OneToManyRelationshipPropertyArtifacts, id="backref one-to-many", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, { "RefSchema": { "type": "object", "x-backref": "backref_1", "x-secondary": "secondary_1", } }, "backref_property", "backref_1", artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="backref many-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "kwargs", None, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="kwargs undefined", ), pytest.param( None, { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"x-kwargs": {"key_1": "value 1"}}, ] }, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "kwargs", {"key_1": "value 1"}, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="kwargs many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-kwargs": {"key_2": "value 2"}, } }, "kwargs", None, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="kwargs on parent many-to-one", ), pytest.param( None, { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"x-kwargs": {"key_1": "value 1"}}, ] }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-uselist": False, } }, "kwargs", {"key_1": "value 1"}, artifacts.types.OneToOneRelationshipPropertyArtifacts, id="kwargs one-to-one", ), pytest.param( None, { "type": "array", "items": { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"x-kwargs": {"key_1": "value 1"}}, ] }, }, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "kwargs", {"key_1": "value 1"}, artifacts.types.OneToManyRelationshipPropertyArtifacts, id="kwargs one-to-many", ), pytest.param( None, { "type": "array", "items": { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"x-kwargs": {"key_1": "value 1"}}, ] }, }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-secondary": "secondary_1", } }, "kwargs", {"key_1": "value 1"}, artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="kwargs many-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "write_only", None, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="writeOnly undefined", ), pytest.param( None, {"allOf": [{"$ref": "#/components/schemas/RefSchema"}, {"writeOnly": True}]}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "write_only", True, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="writeOnly many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "writeOnly": True, } }, "write_only", None, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="writeOnly many-to-one skip_ref", ), pytest.param( None, {"allOf": [{"$ref": "#/components/schemas/RefSchema"}, {"writeOnly": False}]}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-uselist": False, } }, "write_only", False, artifacts.types.OneToOneRelationshipPropertyArtifacts, id="writeOnly one-to-one", ), pytest.param( None, { "writeOnly": True, "type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}, }, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "write_only", True, artifacts.types.OneToManyRelationshipPropertyArtifacts, id="writeOnly one-to-many", ), pytest.param( None, { "writeOnly": True, "type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}, }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-secondary": "secondary_1", } }, "write_only", True, artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="writeOnly many-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "description", None, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="description undefined", ), pytest.param( None, { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"description": "description 1"}, ] }, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "description", "description 1", artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="description many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "description": "description 1", } }, "description", None, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="description many-to-one skip_ref", ), pytest.param( None, { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"description": "description 2"}, ] }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-uselist": False, } }, "description", "description 2", artifacts.types.OneToOneRelationshipPropertyArtifacts, id="description one-to-one", ), pytest.param( None, { "description": "description 1", "type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}, }, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "description", "description 1", artifacts.types.OneToManyRelationshipPropertyArtifacts, id="description one-to-many", ), pytest.param( None, { "description": "description 1", "type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}, }, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-secondary": "secondary_1", } }, "description", "description 1", artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="description many-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "foreign_key", "ref_schema.id", artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="foreign key many-to-one", ), pytest.param( None, { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"x-foreign-key-column": "name"}, ] }, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "foreign_key", "ref_schema.name", artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="foreign key set many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-uselist": False, } }, "foreign_key", "ref_schema.id", artifacts.types.OneToOneRelationshipPropertyArtifacts, id="foreign key one-to-one", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "foreign_key", "schema.id", artifacts.types.OneToManyRelationshipPropertyArtifacts, id="foreign key one-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "foreign_key_property", "ref_schema_id", artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="foreign key property many-to-one", ), pytest.param( None, { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"x-foreign-key-column": "name"}, ] }, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "foreign_key_property", "ref_schema_name", artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="foreign key property set many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-uselist": False, } }, "foreign_key_property", "ref_schema_id", artifacts.types.OneToOneRelationshipPropertyArtifacts, id="foreign key property one-to-one", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "foreign_key_property", "schema_ref_schema_id", artifacts.types.OneToManyRelationshipPropertyArtifacts, id="foreign key property one-to-many", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "nullable", None, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="nullable undefined", ), pytest.param( None, {"allOf": [{"$ref": "#/components/schemas/RefSchema"}, {"nullable": True}]}, {"RefSchema": {"type": "object", "x-tablename": "ref_schema"}}, "nullable", True, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="nullable many-to-one", ), pytest.param( None, {"$ref": "#/components/schemas/RefSchema"}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "nullable": True, } }, "nullable", True, artifacts.types.ManyToOneRelationshipPropertyArtifacts, id="nullable many-to-one on reference", ), pytest.param( None, {"allOf": [{"$ref": "#/components/schemas/RefSchema"}, {"nullable": False}]}, { "RefSchema": { "type": "object", "x-tablename": "ref_schema", "x-uselist": False, } }, "nullable", False, artifacts.types.OneToOneRelationshipPropertyArtifacts, id="nullable one-to-one", ), pytest.param( None, {"type": "array", "items": {"$ref": "#/components/schemas/RefSchema"}}, {"RefSchema": {"type": "object", "x-secondary": "secondary_1"}}, "secondary", "secondary_1", artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="secondary many-to-many", ), pytest.param( None, { "type": "array", "items": { "allOf": [ {"$ref": "#/components/schemas/RefSchema"}, {"x-secondary": "secondary_1"}, ] }, }, {"RefSchema": {"type": "object", "x-secondary": "secondary_2"}}, "secondary", "secondary_1", artifacts.types.ManyToManyRelationshipPropertyArtifacts, id="secondary prefer local many-to-many", ), ] @pytest.mark.parametrize( "required, schema, schemas, key, expected_value, expected_type", GET_TESTS ) @pytest.mark.schemas @pytest.mark.artifacts def test_get(required, schema, schemas, key, expected_value, expected_type): """ GIVEN schema, schemas, key and expected value WHEN get is called with the schema and schemas THEN the returned artifacts has the expected value behind the key. """ parent_schema = {"x-tablename": "schema"} property_name = "ref_schema" returned_artifacts = artifacts.property_.relationship.get( schemas, parent_schema, property_name, schema, required ) assert isinstance(returned_artifacts, expected_type) value = functools.reduce(getattr, key.split("."), returned_artifacts) assert value == expected_value
tgame14/AppliedThermodynamics
src/main/java/com/tgame/apptherm/proxies/CommonProxy.java
package com.tgame.apptherm.proxies; import com.tgame.apptherm.libs.multiblocks.multiblock.MultiblockServerTickHandler; import cpw.mods.fml.common.registry.TickRegistry; import cpw.mods.fml.relauncher.Side; public class CommonProxy { public void initSounds() { } public void initRenderers() { } public void initTickHandlers() { TickRegistry.registerTickHandler(new MultiblockServerTickHandler(), Side.SERVER); } }
ArrogantWombatics/openbsd-src
sys/arch/zaurus/include/_types.h
/* $OpenBSD: _types.h,v 1.7 2012/11/05 19:39:34 miod Exp $ */ #ifndef _MACHINE__TYPES_H_ #define _MACHINE__TYPES_H_ #include <arm/_types.h> #endif
qtoggle/espqtoggle
src/espgoodies/drivers/onewire.h
<reponame>qtoggle/espqtoggle<gh_stars>1-10 /* * Copyright 2019 The qToggle Team * * 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. * * Inspired from https://github.com/PaulStoffregen/OneWire/ */ #ifndef _ESPGOODIES_ONE_WIRE_H #define _ESPGOODIES_ONE_WIRE_H #include <c_types.h> #define ONE_WIRE_CMD_SEARCH_ROM 0xF0 #define ONE_WIRE_CMD_SKIP_ROM 0xCC #define ONE_WIRE_CMD_CONVERT_T 0x44 #define ONE_WIRE_CMD_READ_SCRATCHPAD 0xBE typedef struct { uint8 pin_no; uint8 rom[8]; uint8 last_discrepancy; uint8 last_family_discrepancy; bool last_device_flag; } one_wire_t; void ICACHE_FLASH_ATTR one_wire_setup(one_wire_t *one_wire); bool ICACHE_FLASH_ATTR one_wire_reset(one_wire_t *one_wire); void ICACHE_FLASH_ATTR one_wire_search_reset(one_wire_t *one_wire); bool ICACHE_FLASH_ATTR one_wire_search(one_wire_t *one_wire, uint8 *addr); uint8 ICACHE_FLASH_ATTR one_wire_read(one_wire_t *one_wire); void ICACHE_FLASH_ATTR one_wire_write(one_wire_t *one_wire, uint8 value, bool parasitic); void ICACHE_FLASH_ATTR one_wire_write_bytes(one_wire_t *one_wire, uint8 *buf, uint16 len, bool parasitic); void ICACHE_FLASH_ATTR one_wire_parasitic_power_off(one_wire_t *one_wire); uint8 ICACHE_FLASH_ATTR one_wire_crc8(uint8 *buf, int len); #endif /* _ESPGOODIES_ONE_WIRE_H */
waruqi/SakuraEngine
Extern/include/whereami/src/whereami.c
<reponame>waruqi/SakuraEngine // (‑●‑●)> released under the WTFPL v2 license, by <NAME> (@gpakosz) // https://github.com/gpakosz/whereami // in case you want to #include "whereami.c" in a larger compilation unit #if !defined(WHEREAMI_H) #include "whereami.h" #endif #ifdef __cplusplus extern "C" { #endif #if !defined(WAI_MALLOC) || !defined(WAI_FREE) || !defined(WAI_REALLOC) #include <stdlib.h> #endif #if !defined(WAI_MALLOC) #define WAI_MALLOC(size) malloc(size) #endif #if !defined(WAI_FREE) #define WAI_FREE(p) free(p) #endif #if !defined(WAI_REALLOC) #define WAI_REALLOC(p, size) realloc(p, size) #endif #ifndef WAI_NOINLINE #if defined(_MSC_VER) #define WAI_NOINLINE __declspec(noinline) #elif defined(__GNUC__) #define WAI_NOINLINE __attribute__((noinline)) #else #error unsupported compiler #endif #endif #if defined(_MSC_VER) #define WAI_RETURN_ADDRESS() _ReturnAddress() #elif defined(__GNUC__) #define WAI_RETURN_ADDRESS() __builtin_extract_return_addr(__builtin_return_address(0)) #else #error unsupported compiler #endif #if defined(_WIN32) #define WIN32_LEAN_AND_MEAN #if defined(_MSC_VER) #pragma warning(push, 3) #endif #include <windows.h> #include <intrin.h> #if defined(_MSC_VER) #pragma warning(pop) #endif static int WAI_PREFIX(getModulePath_)(HMODULE module, char* out, int capacity, int* dirname_length) { wchar_t buffer1[MAX_PATH]; wchar_t buffer2[MAX_PATH]; wchar_t* path = NULL; int length = -1; for (;;) { DWORD size; int length_, length__; size = GetModuleFileNameW(module, buffer1, sizeof(buffer1) / sizeof(buffer1[0])); if (size == 0) break; else if (size == (DWORD)(sizeof(buffer1) / sizeof(buffer1[0]))) { DWORD size_ = size; do { wchar_t* path_; path_ = (wchar_t*)WAI_REALLOC(path, sizeof(wchar_t) * size_ * 2); if (!path_) break; size_ *= 2; path = path_; size = GetModuleFileNameW(module, path, size_); } while (size == size_); if (size == size_) break; } else path = buffer1; if (!_wfullpath(buffer2, path, MAX_PATH)) break; length_ = (int)wcslen(buffer2); length__ = WideCharToMultiByte(CP_UTF8, 0, buffer2, length_ , out, capacity, NULL, NULL); if (length__ == 0) length__ = WideCharToMultiByte(CP_UTF8, 0, buffer2, length_, NULL, 0, NULL, NULL); if (length__ == 0) break; if (length__ <= capacity && dirname_length) { int i; for (i = length__ - 1; i >= 0; --i) { if (out[i] == '\\') { *dirname_length = i; break; } } } length = length__; break; } if (path != buffer1) WAI_FREE(path); return length; } WAI_NOINLINE WAI_FUNCSPEC int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length) { return WAI_PREFIX(getModulePath_)(NULL, out, capacity, dirname_length); } WAI_NOINLINE WAI_FUNCSPEC int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) { HMODULE module; int length = -1; #if defined(_MSC_VER) #pragma warning(push) #pragma warning(disable: 4054) #endif if (GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, (LPCTSTR)WAI_RETURN_ADDRESS(), &module)) #if defined(_MSC_VER) #pragma warning(pop) #endif { length = WAI_PREFIX(getModulePath_)(module, out, capacity, dirname_length); } return length; } #elif defined(__linux__) || defined(__CYGWIN__) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif #include <inttypes.h> #if !defined(WAI_PROC_SELF_EXE) #define WAI_PROC_SELF_EXE "/proc/self/exe" #endif WAI_FUNCSPEC int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length) { char buffer[PATH_MAX]; char* resolved = NULL; int length = -1; for (;;) { resolved = realpath(WAI_PROC_SELF_EXE, buffer); if (!resolved) break; length = (int)strlen(resolved); if (length <= capacity) { memcpy(out, resolved, length); if (dirname_length) { int i; for (i = length - 1; i >= 0; --i) { if (out[i] == '/') { *dirname_length = i; break; } } } } break; } return length; } #if !defined(WAI_PROC_SELF_MAPS_RETRY) #define WAI_PROC_SELF_MAPS_RETRY 5 #endif #if !defined(WAI_PROC_SELF_MAPS) #define WAI_PROC_SELF_MAPS "/proc/self/maps" #endif #if defined(__ANDROID__) || defined(ANDROID) #include <fcntl.h> #include <sys/mman.h> #include <unistd.h> #endif WAI_NOINLINE WAI_FUNCSPEC int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) { int length = -1; FILE* maps = NULL; int i; for (i = 0; i < WAI_PROC_SELF_MAPS_RETRY; ++i) { maps = fopen(WAI_PROC_SELF_MAPS, "r"); if (!maps) break; for (;;) { char buffer[PATH_MAX < 1024 ? 1024 : PATH_MAX]; uint64_t low, high; char perms[5]; uint64_t offset; uint32_t major, minor; char path[PATH_MAX]; uint32_t inode; if (!fgets(buffer, sizeof(buffer), maps)) break; if (sscanf(buffer, "%" PRIx64 "-%" PRIx64 " %s %" PRIx64 " %x:%x %u %s\n", &low, &high, perms, &offset, &major, &minor, &inode, path) == 8) { uint64_t addr = (uint64_t)(uintptr_t)WAI_RETURN_ADDRESS(); if (low <= addr && addr <= high) { char* resolved; resolved = realpath(path, buffer); if (!resolved) break; length = (int)strlen(resolved); #if defined(__ANDROID__) || defined(ANDROID) if (length > 4 &&buffer[length - 1] == 'k' &&buffer[length - 2] == 'p' &&buffer[length - 3] == 'a' &&buffer[length - 4] == '.') { int fd = open(path, O_RDONLY); char* begin; char* p; begin = (char*)mmap(0, offset, PROT_READ, MAP_SHARED, fd, 0); p = begin + offset; while (p >= begin) // scan backwards { if (*((uint32_t*)p) == 0x04034b50UL) // local file header found { uint16_t length_ = *((uint16_t*)(p + 26)); if (length + 2 + length_ < (int)sizeof(buffer)) { memcpy(&buffer[length], "!/", 2); memcpy(&buffer[length + 2], p + 30, length_); length += 2 + length_; } break; } p -= 4; } munmap(begin, offset); close(fd); } #endif if (length <= capacity) { memcpy(out, resolved, length); if (dirname_length) { int i; for (i = length - 1; i >= 0; --i) { if (out[i] == '/') { *dirname_length = i; break; } } } } break; } } } fclose(maps); if (length != -1) break; } return length; } #elif defined(__APPLE__) #define _DARWIN_BETTER_REALPATH #include <mach-o/dyld.h> #include <limits.h> #include <stdlib.h> #include <string.h> #include <dlfcn.h> WAI_FUNCSPEC int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length) { char buffer1[PATH_MAX]; char buffer2[PATH_MAX]; char* path = buffer1; char* resolved = NULL; int length = -1; for (;;) { uint32_t size = (uint32_t)sizeof(buffer1); if (_NSGetExecutablePath(path, &size) == -1) { path = (char*)WAI_MALLOC(size); if (!_NSGetExecutablePath(path, &size)) break; } resolved = realpath(path, buffer2); if (!resolved) break; length = (int)strlen(resolved); if (length <= capacity) { memcpy(out, resolved, length); if (dirname_length) { int i; for (i = length - 1; i >= 0; --i) { if (out[i] == '/') { *dirname_length = i; break; } } } } break; } if (path != buffer1) WAI_FREE(path); return length; } WAI_NOINLINE WAI_FUNCSPEC int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) { char buffer[PATH_MAX]; char* resolved = NULL; int length = -1; for(;;) { Dl_info info; if (dladdr(WAI_RETURN_ADDRESS(), &info)) { resolved = realpath(info.dli_fname, buffer); if (!resolved) break; length = (int)strlen(resolved); if (length <= capacity) { memcpy(out, resolved, length); if (dirname_length) { int i; for (i = length - 1; i >= 0; --i) { if (out[i] == '/') { *dirname_length = i; break; } } } } } break; } return length; } #elif defined(__QNXNTO__) #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <dlfcn.h> #if !defined(WAI_PROC_SELF_EXE) #define WAI_PROC_SELF_EXE "/proc/self/exefile" #endif WAI_FUNCSPEC int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length) { char buffer1[PATH_MAX]; char buffer2[PATH_MAX]; char* resolved = NULL; FILE* self_exe = NULL; int length = -1; for (;;) { self_exe = fopen(WAI_PROC_SELF_EXE, "r"); if (!self_exe) break; if (!fgets(buffer1, sizeof(buffer1), self_exe)) break; resolved = realpath(buffer1, buffer2); if (!resolved) break; length = (int)strlen(resolved); if (length <= capacity) { memcpy(out, resolved, length); if (dirname_length) { int i; for (i = length - 1; i >= 0; --i) { if (out[i] == '/') { *dirname_length = i; break; } } } } break; } fclose(self_exe); return length; } WAI_FUNCSPEC int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) { char buffer[PATH_MAX]; char* resolved = NULL; int length = -1; for(;;) { Dl_info info; if (dladdr(WAI_RETURN_ADDRESS(), &info)) { resolved = realpath(info.dli_fname, buffer); if (!resolved) break; length = (int)strlen(resolved); if (length <= capacity) { memcpy(out, resolved, length); if (dirname_length) { int i; for (i = length - 1; i >= 0; --i) { if (out[i] == '/') { *dirname_length = i; break; } } } } } break; } return length; } #elif defined(__DragonFly__) || defined(__FreeBSD__) || \ defined(__FreeBSD_kernel__) || defined(__NetBSD__) #include <limits.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/sysctl.h> #include <dlfcn.h> WAI_FUNCSPEC int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length) { char buffer1[PATH_MAX]; char buffer2[PATH_MAX]; char* path = buffer1; char* resolved = NULL; int length = -1; for (;;) { int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 }; size_t size = sizeof(buffer1); if (sysctl(mib, (u_int)(sizeof(mib) / sizeof(mib[0])), path, &size, NULL, 0) != 0) break; resolved = realpath(path, buffer2); if (!resolved) break; length = (int)strlen(resolved); if (length <= capacity) { memcpy(out, resolved, length); if (dirname_length) { int i; for (i = length - 1; i >= 0; --i) { if (out[i] == '/') { *dirname_length = i; break; } } } } break; } if (path != buffer1) WAI_FREE(path); return length; } WAI_NOINLINE WAI_FUNCSPEC int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) { char buffer[PATH_MAX]; char* resolved = NULL; int length = -1; for(;;) { Dl_info info; if (dladdr(WAI_RETURN_ADDRESS(), &info)) { resolved = realpath(info.dli_fname, buffer); if (!resolved) break; length = (int)strlen(resolved); if (length <= capacity) { memcpy(out, resolved, length); if (dirname_length) { int i; for (i = length - 1; i >= 0; --i) { if (out[i] == '/') { *dirname_length = i; break; } } } } } break; } return length; } #else #error unsupported platform #endif #ifdef __cplusplus } #endif
zhangkn/iOS14Header
System/Library/Health/Plugins/ActivitySharingPlugin.bundle/ASFriendListManager.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 12:33:15 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/Health/Plugins/ActivitySharingPlugin.bundle/ActivitySharingPlugin * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ #import <libobjc.A.dylib/ASContactsManagerObserver.h> #import <libobjc.A.dylib/ASCompetitionManagerObserver.h> #import <libobjc.A.dylib/CHFitnessAppBadgeCountProvider.h> #import <libobjc.A.dylib/ASActivitySharingManagerReadyObserver.h> @protocol OS_dispatch_queue; @class NSHashTable, NSObject, NSSet, NSDate, HDProfile, ASActivityDataManager, ASContactsManager, ASRelationshipManager, ASPeriodicUpdateManager, ASCompetitionManager, ASAchievementManager, NSString; @interface ASFriendListManager : NSObject <ASContactsManagerObserver, ASCompetitionManagerObserver, CHFitnessAppBadgeCountProvider, ASActivitySharingManagerReadyObserver> { NSHashTable* _observers; NSObject*<OS_dispatch_queue> _observerQueue; NSSet* _friends; BOOL _hasFriendsToShareWith; BOOL _competitionDataAvailable; NSObject*<OS_dispatch_queue> _friendListQueue; int _activitySharingHasFriendsChangedToken; NSDate* _lastReportedFriendsDate; long long _lastReportedNumberOfFriends; BOOL _isWatch; HDProfile* _profile; ASActivityDataManager* _activityDataManager; ASContactsManager* _contactsManager; ASRelationshipManager* _relationshipManager; ASPeriodicUpdateManager* _periodicUpdateManager; ASCompetitionManager* _competitionManager; ASAchievementManager* _achievementManager; } @property (assign,nonatomic,__weak) HDProfile * profile; //@synthesize profile=_profile - In the implementation block @property (assign,nonatomic,__weak) ASActivityDataManager * activityDataManager; //@synthesize activityDataManager=_activityDataManager - In the implementation block @property (assign,nonatomic,__weak) ASContactsManager * contactsManager; //@synthesize contactsManager=_contactsManager - In the implementation block @property (assign,nonatomic,__weak) ASRelationshipManager * relationshipManager; //@synthesize relationshipManager=_relationshipManager - In the implementation block @property (assign,nonatomic,__weak) ASPeriodicUpdateManager * periodicUpdateManager; //@synthesize periodicUpdateManager=_periodicUpdateManager - In the implementation block @property (assign,nonatomic,__weak) ASCompetitionManager * competitionManager; //@synthesize competitionManager=_competitionManager - In the implementation block @property (assign,nonatomic,__weak) ASAchievementManager * achievementManager; //@synthesize achievementManager=_achievementManager - In the implementation block @property (assign,nonatomic) BOOL isWatch; //@synthesize isWatch=_isWatch - In the implementation block @property (readonly) BOOL hasFriendsToShareWith; @property (nonatomic,copy,readonly) NSSet * friends; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (copy,readonly) NSString * description; @property (copy,readonly) NSString * debugDescription; @property (nonatomic,readonly) unsigned long long badgeCount; -(void)setProfile:(HDProfile *)arg1 ; -(ASAchievementManager *)achievementManager; -(ASContactsManager *)contactsManager; -(void)addObserver:(id)arg1 ; -(ASActivityDataManager *)activityDataManager; -(void)removeObserver:(id)arg1 ; -(unsigned long long)badgeCount; -(HDProfile *)profile; -(ASCompetitionManager *)competitionManager; -(void)dealloc; -(void)setContactsManager:(ASContactsManager *)arg1 ; -(id)init; -(BOOL)isWatch; -(void)clearFriendListWithCompletion:(/*^block*/id)arg1 ; -(void)setIsWatch:(BOOL)arg1 ; -(NSSet *)friends; -(ASPeriodicUpdateManager *)periodicUpdateManager; -(void)queryAppBadgeCountWithCompletion:(/*^block*/id)arg1 ; -(void)endObserving; -(ASRelationshipManager *)relationshipManager; -(id)friendWithUUID:(id)arg1 ; -(void)setActivityDataManager:(ASActivityDataManager *)arg1 ; -(void)setCompetitionManager:(ASCompetitionManager *)arg1 ; -(void)activitySharingManagerReady:(id)arg1 ; -(void)setPeriodicUpdateManager:(ASPeriodicUpdateManager *)arg1 ; -(id)initWithIsWatch:(BOOL)arg1 ; -(void)setRelationshipManager:(ASRelationshipManager *)arg1 ; -(void)setAchievementManager:(ASAchievementManager *)arg1 ; -(void)_handleHasFriendsChanged; -(void)_queue_updateFriendList; -(id)_queue_friendWithUUID:(id)arg1 ; -(id)_allContactsPreferringPlaceholderContacts; -(void)_queue_friendListDidUpdate; -(void)_queue_notifyObserversOfCompetitionsLoaded; -(void)_queue_notifyObserversOfFriendListChanges; -(BOOL)_queue_hasFriendsToShareWith; -(void)contactsManagerDidUpdateContacts:(id)arg1 ; -(void)competitionManagerDidLoadCachedCompetitions:(id)arg1 ; -(void)competitionManager:(id)arg1 didUpdateCompetitionsForFriendsWithUUIDs:(id)arg2 ; -(void)initializeFriendListAndBeginObserving; -(void)fetchfriendDataWithRemoteUUID:(id)arg1 completion:(/*^block*/id)arg2 ; -(void)updateFriendListWithNewSnapshots:(id)arg1 achievements:(id)arg2 workouts:(id)arg3 ; -(void)updateFriendListWithDeletedWorkoutEvents:(id)arg1 ; -(BOOL)hasFriendsToShareWith; @end
mcraken/spring-scaffy
src/main/java/com/scaffy/acquisition/key/RestProjection.java
/** * */ package com.scaffy.acquisition.key; /** * @author Raken * */ public class RestProjection { public String propertyName; public String function; public RestProjection(String projection){ readFunction(projection); readPropertyName(projection); } public String getPropertyName() { return propertyName; } public String getFunction() { return function; } private void readFunction(String projection){ int openBracketPlace = projection.indexOf('('); function = projection.substring(0, openBracketPlace).toLowerCase(); } private void readPropertyName(String projection){ int openBracketPlace = projection.indexOf('('); int closeBracketPlace = projection.indexOf(')'); propertyName = projection.substring(openBracketPlace + 1, closeBracketPlace); } }
Forcepoint/fp-bd-dim-controller
internal/backup/utils.go
package backup import ( "fmt" "time" ) var daysOfWeek = map[string]time.Weekday{ "sunday": time.Sunday, "monday": time.Monday, "tuesday": time.Tuesday, "wednesday": time.Wednesday, "thursday": time.Thursday, "friday": time.Friday, "saturday": time.Saturday, } func parseWeekday(v string) (time.Weekday, error) { if d, ok := daysOfWeek[v]; ok { return d, nil } return time.Sunday, fmt.Errorf("invalid weekday '%s'", v) }
masonleung2016/crm
src/main/java/com/ufostudio/crm/common/entity/ErrorCodeEnum.java
<reponame>masonleung2016/crm<gh_stars>1-10 package com.ufostudio.crm.common.entity; /** * @Author: LCF * @Date: 2020/7/5 17:38 * @Package: com.ufostudio.crm.common.entity */ @SuppressWarnings ("ALL") public enum ErrorCodeEnum { NO_POWER(1000, "权限不足"), USER_EXIST(1001, "登录名已经存在"), USERNAME_PASSSWORD_ERROR(1002, "用户名或密码错误"), duplicate_delete(1003, "重复删除"), password_error(1004, "旧密码错误"), user_not_use(1005, "您当前用户被禁用,请与管理员联系"), SYSTEM_ERROR(9999, "系统错误"); private int status; private String msg; ErrorCodeEnum(int status, String msg) { this.status = status; this.msg = msg; } public ErrorCodeEnum getByCode(int code) { for (ErrorCodeEnum errorCodeEnum : ErrorCodeEnum.values()) { if (errorCodeEnum.status == code) { return errorCodeEnum; } } throw new IllegalArgumentException("No element matches " + code); } public int getStatus() { return status; } public String getMsg() { return msg; } }
adiwg/mdTranslator
lib/adiwg/mdtranslator/writers/html/sections/html_nominalResolution.rb
# HTML writer # nominal resolution # History: # <NAME> 2019-09-24 original script require_relative 'html_measure' module ADIWG module Mdtranslator module Writers module Html class Html_NominalResolution def initialize(html) @html = html end def writeHtml(hResolution) # classes used measureClass = Html_Measure.new(@html) # nominal resolution - scanning resolution {measure} unless hResolution[:scanningResolution].empty? @html.details do @html.summary('Scanning Resolution', {'class' => 'h5'}) @html.section(:class => 'block') do measureClass.writeHtml(hResolution[:scanningResolution]) end end end # nominal resolution - ground resolution {measure} unless hResolution[:groundResolution].empty? @html.details do @html.summary('Ground Resolution', {'class' => 'h5'}) @html.section(:class => 'block') do measureClass.writeHtml(hResolution[:groundResolution]) end end end end # writeHtml end # Html_NominalResolution end end end end
KingMikeXS/dl
mechanics/bane+break_p/a.py
<filename>mechanics/bane+break_p/a.py # encoding: utf8 sword = 0.75 blade = 0.97 ; blade2 = 0.97 dagger = 0.75 ; dagger2 = 0.38 axe = 1.14 lance = 0.84 ; lance2 = 0.45 bow = 0.29 ; bow2 = 0.37 wand = 0.98 staff = 0.69 ''' 568攻教官 1.03ex 0.97系数 1.2克制特效 1.2破防特效 break是10/6倍 +x add : 209.7 220.7 231.7 < +x mult : < 215.6 227.0 238.3 出现了236这样的数字 克制特效 破防特效 乘算 ''' def main(): dmg = blade*1.03 *568* 10/6 a = 1.2 b = 1.2 addormult("+x",dmg, a, b) def printboost(name, dmg, boost, p=1): dmg = dmg / 6.0 dmgmin = dmg *0.95 dmgmax = dmg *1.05 if p: print name, int(dmgmin*boost), int(dmg*boost), int(dmgmax*boost) return "%s %.1f %.1f %.1f"%(name, dmgmin*boost, dmg*boost, dmgmax*boost) def addormult(name, dmg, boost1, boost2): a = printboost(name+" add :", dmg, boost1 + boost2 - 1, 0) b = printboost(name+" mult : <", dmg, boost1 * boost2, 0) print a,"<" print b if __name__ == "__main__": main()
tobiasandersson/othello
src/kth/game/othello/score/ScoreItem.java
package kth.game.othello.score; /** * An instance of this class contains the score of a player. */ public class ScoreItem implements Comparable<ScoreItem>{ private String playerId; private int score; public ScoreItem(String playerId, int score) { this.playerId = playerId; this.score = score; } /** * @return the playerId */ public String getPlayerId() { return playerId; } /** * @return the score */ public int getScore() { return score; } public void incrementScore() { score ++; } public void decrementScore() { score --; } @Override public int compareTo(ScoreItem o) { if(o.getScore() < getScore()) { return 1; } else if(o.getScore() > getScore()) { return -1; } else { return 0; } } }
rrvt/KeePassLastPass
KeePass.1.39.a/LibraryMB/CSVLexF.cpp
// Csv Lexical Analyzer // rrvt 9/1/94 // Copyright Software Design & Engineering, <NAME>, 2013. All rights reserved. #include "stdafx.h" #include "CSVLexf.h" #include "GetPathDlg.h" typedef enum {other, quote, comma, sChar, bslsh, eol, cr, delch, eofch} Character_Classes; // character class table static Character_Classes character_class_table[] = { other, other, other, other, other, other, other, other, // 00 - other, sChar, eol, other, sChar, cr, other, other, // 08 - other, other, other, other, other, other, other, other, // 16 - other, other, eofch, other, other, other, other, other, // 24 - sChar, sChar, quote, sChar, sChar, sChar, sChar, sChar, // 32 - sChar, sChar, sChar, sChar, comma, sChar, sChar, sChar, // 40 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // 48 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // 56 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // 64 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // 72 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // 80 - sChar, sChar, sChar, sChar, bslsh, sChar, sChar, sChar, // 88 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // 96 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, //104 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, //112 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, delch, //120 - sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, //128 sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, //Safety sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // sChar, sChar, sChar, sChar, sChar, sChar, sChar, sChar, // -255 }; CSVLexF::CSVLexF() : getNext(true) { source[0] = &source_line; source[1] = &source_line1; initialize(); } bool CSVLexF::open(PathDlgDsc& dsc, String& path) {return getPathDlg(dsc, path) && fi.open(path, FileIO::Read);} // open lexical analyser file bool CSVLexF::initialize() { state = begin_tok; current_source = 0; pline = source[current_source]; pline->clear(); token.line_number = line_number = 1; tokenNo = 0; ch = quote_ch = 0; accept_two_tokens(); return true; } // accept token by clearing the token code void CSVLexF::accept_token() {token.code = NoToken;} void CSVLexF::accept_two_tokens() {token.code = token1.code = NoToken;} // get next token when token is empty, values set in globals CSVtokCode CSVLexF::get_token() { if (token.code != NoToken) return token.code; if (token1.code != NoToken) token = token1; else next_tok(token); next_tok(token1); return token.code; } void CSVLexF::next_tok(CSVtok& tok) { Character_Classes ch_class; // character class of current character tok.clear(); ptok = &tok.name; loop { nextChar(); ch_class = character_class_table[ch]; switch (state) { // Begin Token State, Look for the first character of each token type // Ignore spaces, return, line feed (end-of-line) // Convert tabs to spaces (the display always moves to specific columns) case begin_tok: switch (ch_class) { case cr: accept_char(); continue; case eol: state = got_eol; fin_eol: ptok = &tok.name; ptok->clear(); tok.code = EolToken; goto fin_op; case other: case bslsh: case sChar: state = collect_symbol; start_token(tok); break; case quote: state = collect_string; quote_ch = ch; start_token(tok); accept_char(); add_to_line(); continue; case comma: tok.code = CommaToken; fin_op: start_token(tok); move_char(); terminate(tok, source); return; case eofch: goto eof; default: start_token(tok); state = illegal_tok; } move_char(); continue; // Collect string up to a comma or crlf case collect_symbol: switch (ch_class) { case cr : accept_char(); case eol : case comma: tok.code = StringToken; terminate(tok, source); state = begin_tok; return; default : break; } move_char(); continue; // Collect String or character literal with hardly any discrimination between the two case collect_string: switch(ch_class) { case bslsh: state = got_backslash; accept_char(); add_to_line(); continue; case quote: accept_char(); add_to_line(); case cr : state = got_quote; continue; case eofch: tok.code = StringToken; goto fin_tok; default : break; } move_char(); continue; // Look for second quote as a method or allowing a quote to be in the String case got_quote: switch (ch_class) { case quote : state = collect_string; break; default : tok.code = StringToken; fin_tok: state = begin_tok; terminate(tok, source); return; } move_char(); continue; case got_backslash: switch (ch_class) { case cr: case eol: state = collect_string; continue; default: state = collect_string; } move_char(); continue; case got_eol: switch (ch_class) { case cr: accept_char(); continue; case eol: goto fin_eol; eof: case eofch: tok.code = EOFToken; state = end_of_file; terminate(tok, source); return; default: state = begin_tok; continue; } // move_char(); continue; // End of file has been seen, do nothing except return end of file tokens case end_of_file: tok.code = EOFToken; terminate(tok, source); return; // Illegal token, gather all illegal characters into one token and return as a group case illegal_tok: switch (ch_class) { case cr: case eol: case sChar: case quote: case comma: case eofch: tok.code = IllegalToken; goto fin_tok; default: break; } move_char(); continue; default: state = begin_tok; continue; // This should never happen, but ... } } } void CSVLexF::terminate(CSVtok& tok, String* source[]) { tok.line_number = line_number; tok.tokenNo = tokenNo; tok.psource = source[current_source]; if (tok.code == EolToken) { current_source = (current_source + 1) % 2; line_number++; tokenNo = 0; pline = source[current_source]; pline->clear(); } } // Globals static int error_count; /* number of syntax errors */ // Functions void CSVLexF::error(CSVtok& tok, Tchar* stg) { String name = tok.name; if (tok.code == EolToken) name = _T("<eol>"); errStg.format(_T(" Token #%i: \"%s\" -> Error %i: %s\n"), tok.tokenNo, name.str(), error_count, stg); } // display source line associated with current tok. // Return offset of current tok String CSVLexF::getSourceLine(CSVtok& tok) { String* pstg = tok.psource; String f; pstg->trim(); if (pstg->empty()) {return _T("\n");} f.format(_T("%3i: %s\n"), tok.line_number, pstg->str()); return f; }
Alf21/vehicle-system
src/main/java/me/alf21/tacho/BlockBarTacho.java
package me.alf21.tacho; import me.alf21.textdraw.BoxHeight; import me.alf21.vehiclesystem.Calculation; import me.alf21.vehiclesystem.Tacho; import me.alf21.vehiclesystem.VehicleData; import me.alf21.vehiclesystem.VehicleSystem; import net.gtaun.shoebill.constant.TextDrawAlign; import net.gtaun.shoebill.constant.TextDrawFont; import net.gtaun.shoebill.data.Color; import net.gtaun.shoebill.object.Player; import net.gtaun.shoebill.object.PlayerTextdraw; import net.gtaun.shoebill.object.Timer; import net.gtaun.shoebill.object.Vehicle; public class BlockBarTacho extends Tacho { private static final Color COLOR_GREEN = new Color(0,150,0,255), COLOR_RED = new Color(150,0,0,255); private Player player; private PlayerTextdraw box, vehicleName, spacer1, spacer2, spacer3, spacer4, healthBar, tankBar, healthText, tankText, speedValue, unitText, healthValue, tankValue; private boolean created; private VehicleData vehicleData; private Timer timer; public BlockBarTacho(Player player) { super(player); this.player = player; } /* * (non-Javadoc) * @see me.alf21.vehiclesystem.Tacho#create() */ @Override public void create() { Vehicle vehicle = player.getVehicle(); if(vehicle != null) { vehicleData = VehicleSystem.getVehicleData(player); box = PlayerTextdraw.create(player, 560, 337); box.setText("_"); box.setAlignment(TextDrawAlign.CENTER); box.setBackgroundColor(Color.BLACK); box.setFont(TextDrawFont.get(1)); box.setLetterSize(0.5f, 10.6f); box.setColor(Color.WHITE); box.setOutlineSize(0); box.setProportional(true); box.setShadowSize(1); box.setUseBox(true); box.setBoxColor(new Color(0,0,0,50)); box.setTextSize(0, -140); box.setSelectable(false); vehicleName = PlayerTextdraw.create(player, 560, 370); vehicleName.setText(vehicleData.getName()); vehicleName.setAlignment(TextDrawAlign.CENTER); vehicleName.setBackgroundColor(Color.BLACK); vehicleName.setFont(TextDrawFont.get(1)); vehicleName.setLetterSize(0.3f, 1.2f); vehicleName.setColor(Color.WHITE); vehicleName.setOutlineSize(1); vehicleName.setProportional(true); vehicleName.setShadowSize(1); vehicleName.setUseBox(true); vehicleName.setBoxColor(new Color(0,0,0,50)); vehicleName.setTextSize(0, -140); vehicleName.setSelectable(false); spacer1 = PlayerTextdraw.create(player, 560, 385); spacer1.setText("_"); spacer1.setAlignment(TextDrawAlign.CENTER); spacer1.setBackgroundColor(Color.BLACK); spacer1.setFont(TextDrawFont.get(1)); spacer1.setLetterSize(0.5f, -0.4f); spacer1.setColor(Color.WHITE); spacer1.setOutlineSize(0); spacer1.setProportional(true); spacer1.setShadowSize(1); spacer1.setUseBox(true); spacer1.setBoxColor(new Color(255,127,0,255)); spacer1.setTextSize(0, -140); spacer1.setSelectable(false); spacer2 = PlayerTextdraw.create(player, 560, 436); spacer2.setText("_"); spacer2.setAlignment(TextDrawAlign.CENTER); spacer2.setBackgroundColor(Color.BLACK); spacer2.setFont(TextDrawFont.get(1)); spacer2.setLetterSize(0.5f, -0.4f); spacer2.setColor(Color.WHITE); spacer2.setOutlineSize(0); spacer2.setProportional(true); spacer2.setShadowSize(1); spacer2.setUseBox(true); spacer2.setBoxColor(new Color(255,127,0,255)); spacer2.setTextSize(0, -140); spacer2.setSelectable(false); createHealthBar(); createTankBar(); healthText = PlayerTextdraw.create(player, 526, 386); healthText.setText("Health"); healthText.setAlignment(TextDrawAlign.CENTER); healthText.setBackgroundColor(Color.BLACK); healthText.setFont(TextDrawFont.get(1)); healthText.setLetterSize(0.5f, 1); healthText.setColor(Color.WHITE); healthText.setOutlineSize(1); healthText.setProportional(true); healthText.setShadowSize(1); healthText.setUseBox(true); healthText.setBoxColor(new Color(0,0,0,100)); healthText.setTextSize(0, -72); healthText.setSelectable(false); tankText = PlayerTextdraw.create(player, 594, 386); tankText.setText("Tank"); tankText.setAlignment(TextDrawAlign.CENTER); tankText.setBackgroundColor(Color.BLACK); tankText.setFont(TextDrawFont.get(1)); tankText.setLetterSize(0.5f, 1); tankText.setColor(Color.WHITE); tankText.setOutlineSize(1); tankText.setProportional(true); tankText.setShadowSize(1); tankText.setUseBox(true); tankText.setBoxColor(new Color(0,0,0,100)); tankText.setTextSize(0, -72); tankText.setSelectable(false); speedValue = PlayerTextdraw.create(player, 579, 337); speedValue.setText(String.valueOf((int) Calculation.getSpeed(vehicleData))); speedValue.setAlignment(TextDrawAlign.RIGHT); speedValue.setBackgroundColor(new Color(150,0,0,255)); speedValue.setFont(TextDrawFont.get(2)); speedValue.setLetterSize(0.8f, 3); speedValue.setColor(Color.WHITE); speedValue.setOutlineSize(1); speedValue.setProportional(true); speedValue.setSelectable(false); spacer3 = PlayerTextdraw.create(player, 560, 337); spacer3.setText("_"); spacer3.setAlignment(TextDrawAlign.CENTER); spacer3.setBackgroundColor(Color.BLACK); spacer3.setFont(TextDrawFont.get(1)); spacer3.setLetterSize(0.5f, -0.4f); spacer3.setColor(Color.WHITE); spacer3.setOutlineSize(0); spacer3.setProportional(true); spacer3.setShadowSize(1); spacer3.setUseBox(true); spacer3.setBoxColor(new Color(255,127,0,255)); spacer3.setTextSize(0, -140); spacer3.setSelectable(false); spacer4 = PlayerTextdraw.create(player, 560, 370); spacer4.setText("_"); spacer4.setAlignment(TextDrawAlign.CENTER); spacer4.setBackgroundColor(Color.BLACK); spacer4.setFont(TextDrawFont.get(1)); spacer4.setLetterSize(0.5f, -0.4f); spacer4.setColor(Color.WHITE); spacer4.setOutlineSize(0); spacer4.setProportional(true); spacer4.setShadowSize(1); spacer4.setUseBox(true); spacer4.setBoxColor(new Color(255,127,0,255)); spacer4.setTextSize(0, -140); spacer4.setSelectable(false); unitText = PlayerTextdraw.create(player, 579, 351); unitText.setText("km/h"); unitText.setBackgroundColor(new Color(150,0,0,255)); unitText.setFont(TextDrawFont.get(1)); unitText.setLetterSize(0.3f, 1); unitText.setColor(Color.WHITE); unitText.setOutlineSize(1); unitText.setProportional(true); unitText.setSelectable(false); healthValue = PlayerTextdraw.create(player, 526.5f, 423.5f); healthValue.setText(String.valueOf((int) vehicle.getHealth())); healthValue.setAlignment(TextDrawAlign.CENTER); healthValue.setBackgroundColor(Color.BLACK); healthValue.setFont(TextDrawFont.get(1)); healthValue.setLetterSize(0.5f, 0.9f); healthValue.setColor(Color.WHITE); healthValue.setOutlineSize(0); healthValue.setProportional(true); healthValue.setShadowSize(0); healthValue.setUseBox(true); healthValue.setBoxColor(new Color(0,0,0,100)); healthValue.setTextSize(0, 60); healthValue.setSelectable(false); tankValue = PlayerTextdraw.create(player, 593.5f, 423.5f); tankValue.setText(String.valueOf((int) vehicleData.getTank())); tankValue.setAlignment(TextDrawAlign.CENTER); tankValue.setBackgroundColor(Color.BLACK); tankValue.setFont(TextDrawFont.get(1)); tankValue.setLetterSize(0.5f, 0.9f); tankValue.setColor(Color.WHITE); tankValue.setOutlineSize(0); tankValue.setProportional(true); tankValue.setShadowSize(0); tankValue.setUseBox(true); tankValue.setBoxColor(new Color(0,0,0,100)); tankValue.setTextSize(0, 60); tankValue.setSelectable(false); timer = Timer.create(100, (factualInterval) -> { update(); }); created = true; } } /* * (non-Javadoc) * @see me.alf21.vehiclesystem.Tacho#destroy() */ @Override public void destroy() { hide(); if(timer != null) { if(timer.isRunning()) timer.stop(); timer.destroy(); timer = null; } box.destroy(); vehicleName.destroy(); spacer1.destroy(); spacer2.destroy(); spacer3.destroy(); spacer4.destroy(); healthBar.destroy(); tankBar.destroy(); healthText.destroy(); tankText.destroy(); speedValue.destroy(); unitText.destroy(); healthValue.destroy(); tankValue.destroy(); box = vehicleName = spacer1 = spacer2 = spacer3 = spacer4 = healthBar = tankBar = healthText = tankText = speedValue = unitText = healthValue = tankValue = null; created = false; } /* * (non-Javadoc) * @see me.alf21.vehiclesystem.Tacho#show() */ @Override public void show() { //TODO sort box.show(); vehicleName.show(); spacer1.show(); spacer2.show(); spacer3.show(); spacer4.show(); healthBar.show(); tankBar.show(); healthText.show(); tankText.show(); speedValue.show(); unitText.show(); healthValue.show(); tankValue.show(); timer.start(); } /* * (non-Javadoc) * @see me.alf21.vehiclesystem.Tacho#hide() */ @Override public void hide() { timer.stop(); box.hide(); vehicleName.hide(); spacer1.hide(); spacer2.hide(); spacer3.hide(); spacer4.hide(); healthBar.hide(); tankBar.hide(); healthText.hide(); tankText.hide(); speedValue.hide(); unitText.hide(); healthValue.hide(); tankValue.hide(); } /* * (non-Javadoc) * @see me.alf21.vehiclesystem.Tacho#update() */ @Override public void update() { Vehicle vehicle = player.getVehicle(); if(isCreated() && vehicle != null) { healthBar.hide(); tankBar.hide(); healthBar.destroy(); createHealthBar(); tankBar.destroy(); createTankBar(); healthValue.setText((int) vehicle.getHealth()>=250?String.valueOf((int) vehicle.getHealth()):"FIRE"); //TODO when does it burn tankValue.setText((int) vehicleData.getTank()>=1?String.valueOf((int) vehicleData.getTank()):"empty"); speedValue.setText(String.valueOf((int) Calculation.getSpeed(vehicleData))); healthBar.show(); tankBar.show(); } } private void createHealthBar() { BoxHeight boxHeight = new BoxHeight(526.5f, 399.85f, 423.85f, 0.5f, 0.85f, 3.5f, vehicleData.getVehicle().getHealth(), 1000); healthBar = PlayerTextdraw.create(player, boxHeight.getPosition()); healthBar.setText("_"); healthBar.setAlignment(TextDrawAlign.CENTER); healthBar.setBackgroundColor(Color.BLACK); healthBar.setFont(TextDrawFont.get(1)); healthBar.setLetterSize(boxHeight.getLetterSize()); healthBar.setColor(Color.WHITE); healthBar.setOutlineSize(0); healthBar.setProportional(true); healthBar.setShadowSize(1); healthBar.setUseBox(true); healthBar.setBoxColor(Calculation.getBoxColor(COLOR_RED, COLOR_GREEN, vehicleData.getVehicle().getHealth(), 1000)); healthBar.setTextSize(0, -68); healthBar.setSelectable(false); } private void createTankBar() { BoxHeight boxHeight = new BoxHeight(593.5f, 399.85f, 423.85f, 0.5f, 0.85f, 3.5f, (float) vehicleData.getTank(), (float) vehicleData.getMaxTankSize()); tankBar = PlayerTextdraw.create(player, boxHeight.getPosition()); tankBar.setText("_"); tankBar.setAlignment(TextDrawAlign.CENTER); tankBar.setBackgroundColor(Color.BLACK); tankBar.setFont(TextDrawFont.get(1)); tankBar.setLetterSize(boxHeight.getLetterSize()); tankBar.setColor(Color.WHITE); tankBar.setOutlineSize(0); tankBar.setProportional(true); tankBar.setShadowSize(1); tankBar.setUseBox(true); tankBar.setBoxColor(Calculation.getBoxColor(COLOR_RED, COLOR_GREEN, (float) vehicleData.getTank(), (float) vehicleData.getMaxTankSize())); tankBar.setTextSize(0, -68); tankBar.setSelectable(false); } /* * (non-Javadoc) * @see me.alf21.vehiclesystem.Tacho#getVehicleData() */ @Override public VehicleData getVehicleData() { return vehicleData; } /* * (non-Javadoc) * @see me.alf21.vehiclesystem.Tacho#isCreated() */ @Override public boolean isCreated() { return created; } /* * (non-Javadoc) * @see me.alf21.vehiclesystem.Tacho#isDestroyed() */ @Override public boolean isDestroyed() { if(box != null || vehicleName != null || spacer1 != null || spacer2 != null || spacer3 != null || spacer4 != null || healthBar != null || tankBar != null || healthText != null || tankText != null || speedValue != null || unitText != null || healthValue != null || tankValue != null || timer != null) return false; return true; } }
florisa/RequirementsBazaar
src/main/de/rwth/dbis/acis/bazaar/service/dal/jooq/tables/records/RoleRoleMapRecord.java
<filename>src/main/de/rwth/dbis/acis/bazaar/service/dal/jooq/tables/records/RoleRoleMapRecord.java /* * This file is generated by jOOQ. */ package de.rwth.dbis.acis.bazaar.service.dal.jooq.tables.records; import de.rwth.dbis.acis.bazaar.service.dal.jooq.tables.RoleRoleMap; import org.jooq.Field; import org.jooq.Record1; import org.jooq.Record3; import org.jooq.Row3; import org.jooq.impl.UpdatableRecordImpl; import javax.annotation.Generated; /** * This class is generated by jOOQ. */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.9.1" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({"all", "unchecked", "rawtypes"}) public class RoleRoleMapRecord extends UpdatableRecordImpl<RoleRoleMapRecord> implements Record3<Integer, Integer, Integer> { private static final long serialVersionUID = 1477419030; /** * Setter for <code>reqbaz.role_role_map.id</code>. */ public void setId(Integer value) { set(0, value); } /** * Getter for <code>reqbaz.role_role_map.id</code>. */ public Integer getId() { return (Integer) get(0); } /** * Setter for <code>reqbaz.role_role_map.child_id</code>. */ public void setChildId(Integer value) { set(1, value); } /** * Getter for <code>reqbaz.role_role_map.child_id</code>. */ public Integer getChildId() { return (Integer) get(1); } /** * Setter for <code>reqbaz.role_role_map.parent_id</code>. */ public void setParentId(Integer value) { set(2, value); } /** * Getter for <code>reqbaz.role_role_map.parent_id</code>. */ public Integer getParentId() { return (Integer) get(2); } // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- /** * {@inheritDoc} */ @Override public Record1<Integer> key() { return (Record1) super.key(); } // ------------------------------------------------------------------------- // Record3 type implementation // ------------------------------------------------------------------------- /** * {@inheritDoc} */ @Override public Row3<Integer, Integer, Integer> fieldsRow() { return (Row3) super.fieldsRow(); } /** * {@inheritDoc} */ @Override public Row3<Integer, Integer, Integer> valuesRow() { return (Row3) super.valuesRow(); } /** * {@inheritDoc} */ @Override public Field<Integer> field1() { return RoleRoleMap.ROLE_ROLE_MAP.ID; } /** * {@inheritDoc} */ @Override public Field<Integer> field2() { return RoleRoleMap.ROLE_ROLE_MAP.CHILD_ID; } /** * {@inheritDoc} */ @Override public Field<Integer> field3() { return RoleRoleMap.ROLE_ROLE_MAP.PARENT_ID; } /** * {@inheritDoc} */ @Override public Integer value1() { return getId(); } /** * {@inheritDoc} */ @Override public Integer value2() { return getChildId(); } /** * {@inheritDoc} */ @Override public Integer value3() { return getParentId(); } /** * {@inheritDoc} */ @Override public RoleRoleMapRecord value1(Integer value) { setId(value); return this; } /** * {@inheritDoc} */ @Override public RoleRoleMapRecord value2(Integer value) { setChildId(value); return this; } /** * {@inheritDoc} */ @Override public RoleRoleMapRecord value3(Integer value) { setParentId(value); return this; } /** * {@inheritDoc} */ @Override public RoleRoleMapRecord values(Integer value1, Integer value2, Integer value3) { value1(value1); value2(value2); value3(value3); return this; } // ------------------------------------------------------------------------- // Constructors // ------------------------------------------------------------------------- /** * Create a detached RoleRoleMapRecord */ public RoleRoleMapRecord() { super(RoleRoleMap.ROLE_ROLE_MAP); } /** * Create a detached, initialised RoleRoleMapRecord */ public RoleRoleMapRecord(Integer id, Integer childId, Integer parentId) { super(RoleRoleMap.ROLE_ROLE_MAP); set(0, id); set(1, childId); set(2, parentId); } }
r1mikey/research-unix-v7
usr/src/libF77/d_sinh.c
double d_sinh(x) double *x; { double sinh(); return( sinh(*x) ); }
sieverssj/rave
rave-providers/rave-opensocial-provider/rave-opensocial-core/src/test/java/org/apache/rave/opensocial/service/FieldRestrictingPersonTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.rave.opensocial.service; import org.apache.rave.exception.NotSupportedException; import org.apache.rave.opensocial.service.impl.FieldRestrictingPerson; import org.apache.rave.model.PersonProperty; import org.apache.rave.portal.model.impl.AddressImpl; import org.apache.rave.portal.model.impl.PersonImpl; import org.apache.rave.portal.model.impl.PersonPropertyImpl; import org.apache.rave.portal.model.util.ModelUtils; import org.apache.shindig.protocol.model.EnumImpl; import org.apache.shindig.social.core.model.BodyTypeImpl; import org.apache.shindig.social.core.model.UrlImpl; import org.apache.shindig.social.opensocial.model.Account; import org.apache.shindig.social.opensocial.model.Address; import org.apache.shindig.social.opensocial.model.Drinker; import org.apache.shindig.social.opensocial.model.ListField; import org.apache.shindig.social.opensocial.model.LookingFor; import org.apache.shindig.social.opensocial.model.NetworkPresence; import org.apache.shindig.social.opensocial.model.Person; import org.junit.Test; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; /** */ public class FieldRestrictingPersonTest { private static final String USERNAME = "canonical"; private static final String ABOUT_ME = "About Me"; private static final String ADDITIONAL_NAME = "AdditionalName"; private static final String DISPLAY_NAME = "Display Name"; private static final String E_MAIL_ADDRESS = "E-mail address"; private static final String FIRST_NAME = "User"; private static final String GIVEN_NAME = "Canonical"; private static final String PREFIX = "Prefix"; private static final String SUFFIX = "Suffix"; private static final String PREFERRED_NAME = "PreferredName"; private static final String STATUS = "Status"; private static final Integer AGE = 24; private static final String BIRTHDAY_STRING = "1997-07-16T19:20:30+0100"; private static final Date BIRTHDAY = parseDate(BIRTHDAY_STRING); private static final String BODY_BUILD = "big"; private static final String BODY_EYE_COLOR = "red"; private static final String ACTIVITY_1 = "snowboarding"; private static final String ACTIVITY_2 = "baseball"; private static final String E_MAIL_ADDRESS_2 = "<EMAIL>"; private static final String E_MAIL_ADDRESS_3 = "<EMAIL>"; private static final String IM_PROVIDER_1 = "aol"; private static final String IM_PROVIDER_2 = "skype"; private static final String IM_1 = "aimname"; private static final String IM_2 = "skypename"; private static final String LINK_VALUE = "linkValue"; private static final String LINK_TEXT = "linkText"; private static final String STREET = "1 Long Road"; private static final String CITY = "Big City"; private static final String STATE = "TX"; private static final String COUNTRY = "USA"; private static final float LATITUDE = 10234.12F; private static final float LONGITUDE = 0.0F; private static final String POSTAL_CODE = "00000"; private static final String QUALIFIER = "Home"; private static final String ID = "1"; @Test public void getId() { Person p = new FieldRestrictingPerson(getTestPerson(), null); assertThat(p.getId(), is(equalTo(USERNAME))); } @Test public void getDisplayName() { Person p = new FieldRestrictingPerson(getTestPerson(), null); assertThat(p.getDisplayName(), is(equalTo(DISPLAY_NAME))); } @Test public void getUsername_null() { Person p = new FieldRestrictingPerson(getTestPerson(), null); assertThat(p.getPreferredUsername(), is(equalTo(USERNAME))); } @Test public void getUsername_empty() { Person p = new FieldRestrictingPerson(getTestPerson(), new HashSet<String>()); assertThat(p.getPreferredUsername(), is(equalTo(USERNAME))); } @Test public void getUsername_valid() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PREFERRED_USERNAME)); assertThat(p.getPreferredUsername(), is(equalTo(USERNAME))); } @Test public void getAboutMe_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.ABOUT_ME)); assertThat(p.getAboutMe(), is(equalTo(ABOUT_ME))); } @Test public void getAboutMe_notset() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.BIRTHDAY, Person.Field.ACTIVITIES)); assertThat(p.getAboutMe(), is(nullValue())); } @Test public void getAge_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.AGE)); assertThat(p.getAge(), is(equalTo(AGE))); } @Test public void getAge_notset() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.BIRTHDAY, Person.Field.ACTIVITIES)); assertThat(p.getAge(), is(nullValue())); } @Test public void getBirthday_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.BIRTHDAY)); assertThat(p.getBirthday(), is(equalTo(BIRTHDAY))); } @Test public void getBirthday_notset() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.AGE, Person.Field.ACTIVITIES)); assertThat(p.getBirthday(), is(nullValue())); } @Test public void getActvities_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.ACTIVITIES)); List<String> activities = p.getActivities(); assertThat(activities.size(), is(equalTo(2))); assertThat(activities.contains(ACTIVITY_1), is(true)); assertThat(activities.contains(ACTIVITY_2), is(true)); } @Test public void getActivities_notset() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.AGE, Person.Field.BOOKS)); assertThat(p.getActivities(), is(nullValue())); } @Test public void getBooks_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.BOOKS, Person.Field.ACTIVITIES)); assertThat(p.getBooks().isEmpty(), is(true)); } @Test public void getCars_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.CARS, Person.Field.ACTIVITIES)); assertThat(p.getCars().isEmpty(), is(true)); } @Test public void getBodyType_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.BODY_TYPE)); assertThat(p.getBodyType().getBuild(), is(equalTo(BODY_BUILD))); assertThat(p.getBodyType().getEyeColor(), is(equalTo(BODY_EYE_COLOR))); } @Test public void getBodyType_notset() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.AGE, Person.Field.ACTIVITIES)); assertThat(p.getBodyType(), is(nullValue())); } @Test public void getChildren_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.ABOUT_ME)); assertThat(p.getChildren(), is(nullValue())); } @Test public void getDrinker_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.DRINKER)); assertThat(p.getDrinker().getValue(), is(equalTo(Drinker.HEAVILY))); } @Test public void getDrinker_notset() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.ABOUT_ME)); assertThat(p.getDrinker(), is(nullValue())); } @Test public void getEmails_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.EMAILS)); assertThat(p.getEmails().size(), is(equalTo(3))); int primaryCount = 0; for(ListField field : p.getEmails()) { assertThat(isValidEmailField(field), is(true)); primaryCount += field.getPrimary() != null && field.getPrimary() ? 1 : 0; } assertThat(primaryCount, is(equalTo(1))); } @Test public void getEthnicity_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.ETHNICITY, Person.Field.ACTIVITIES)); assertThat(p.getEthnicity(), is(nullValue())); } @Test public void getFashion_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.FASHION, Person.Field.ACTIVITIES)); assertThat(p.getFashion(), is(nullValue())); } @Test public void getFood_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.FOOD, Person.Field.ACTIVITIES)); assertThat(p.getFood().isEmpty(), is(true)); } @Test public void getGender_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.GENDER)); assertThat(p.getGender(), is(equalTo(Person.Gender.female))); } @Test public void getHappiestWhen_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.HAPPIEST_WHEN)); assertThat(p.getHappiestWhen(), is(nullValue())); } @Test public void getHumor_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.HUMOR)); assertThat(p.getHumor(), is(nullValue())); } @Test public void getGender_null() { org.apache.rave.model.Person testPerson = getTestPerson(); testPerson.setProperties(new ArrayList<PersonProperty>()); Person p = new FieldRestrictingPerson(testPerson, getFieldSet(Person.Field.GENDER)); assertThat(p.getGender(), is(nullValue())); } @Test public void getIms_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.IMS)); assertThat(p.getIms().size(), is(equalTo(2))); for(ListField field : p.getIms()) { if(IM_PROVIDER_1.equals(field.getType())) { assertThat(field.getValue(), is(equalTo(IM_1))); } else if(IM_PROVIDER_2.equals(field.getType())) { assertThat(field.getValue(), is(equalTo(IM_2))); } else { fail(); } } } @Test public void getInterests_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.INTERESTS)); assertThat(p.getInterests().isEmpty(), is(true)); } @Test public void getJobInterests_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.JOB_INTERESTS)); assertThat(p.getJobInterests(), is(nullValue())); } @Test public void getLanguagesSpoken_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.LANGUAGES_SPOKEN)); assertThat(p.getLanguagesSpoken().isEmpty(), is(true)); } @Test public void getUpdated_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.LAST_UPDATED)); assertThat(p.getUpdated(), is(nullValue())); } @Test public void getLivingArrangement_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.LIVING_ARRANGEMENT)); assertThat(p.getLivingArrangement(), is(nullValue())); } @Test public void getLookingFor_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.LOOKING_FOR)); assertThat(p.getLookingFor().size(), is(equalTo(1))); } @Test public void getMovies_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.MOVIES)); assertThat(p.getMovies().isEmpty(), is(true)); } @Test public void getMusic_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.MUSIC)); assertThat(p.getMusic().isEmpty(), is(true)); } @Test public void getNetworkPresence_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.NETWORKPRESENCE)); assertThat(p.getNetworkPresence(), is(nullValue())); } @Test public void getNickname_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.NICKNAME)); assertThat(p.getNickname(), is(equalTo(PREFERRED_NAME))); } @Test public void getPets_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PETS)); assertThat(p.getPets(), is(nullValue())); } @Test public void getPhoneNumbers_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PHONE_NUMBERS)); assertThat(p.getPhoneNumbers().isEmpty(), is(true)); } @Test public void getPhotos_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PHOTOS)); assertThat(p.getPhotos().isEmpty(), is(true)); } @Test public void getPoliticalViews_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.POLITICAL_VIEWS)); assertThat(p.getPoliticalViews(), is(nullValue())); } @Test public void getProfileSong_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PROFILE_SONG)); assertThat(p.getProfileSong().getValue(), is(equalTo(LINK_VALUE))); assertThat(p.getProfileSong().getLinkText(), is(equalTo(LINK_TEXT))); } @Test public void getProfileSong_notset() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.BOOKS)); assertThat(p.getProfileSong(), is(nullValue())); } @Test public void getProfileVideo_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.PROFILE_VIDEO)); assertThat(p.getProfileVideo(), is(nullValue())); } @Test public void getQuotes_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.QUOTES)); assertThat(p.getQuotes().isEmpty(), is(true)); } @Test public void getRelationshipStatus_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.RELATIONSHIP_STATUS)); assertThat(p.getRelationshipStatus(), is(nullValue())); } @Test public void getStatus_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.STATUS)); assertThat(p.getStatus(), is(equalTo(STATUS))); } @Test public void getAddresses_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.ADDRESSES)); assertThat(p.getAddresses().size(), is(equalTo(2))); assertThat(p.getAddresses().get(1).getStreetAddress(), is(equalTo(STREET))); assertThat(p.getAddresses().get(1).getLocality(), is(equalTo(CITY))); assertThat(p.getAddresses().get(1).getRegion(), is(equalTo(STATE))); assertThat(p.getAddresses().get(1).getCountry(), is(equalTo(COUNTRY))); assertThat(p.getAddresses().get(1).getLatitude(), is(equalTo(LATITUDE))); assertThat(p.getAddresses().get(1).getLongitude(), is(equalTo(LONGITUDE))); assertThat(p.getAddresses().get(1).getPostalCode(), is(equalTo(POSTAL_CODE))); assertThat(p.getAddresses().get(1).getType(), is(equalTo(QUALIFIER))); } @Test public void getCurrentLocation_set() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.CURRENT_LOCATION)); assertThat(p.getCurrentLocation().getStreetAddress(), is(equalTo(STREET))); } @Test public void getCurrentLocation_notset() { Person p = new FieldRestrictingPerson(getTestPerson(), getFieldSet(Person.Field.ADDRESSES)); assertThat(p.getCurrentLocation(), is(nullValue())); } @Test(expected = NotSupportedException.class) public void setStatus() { new FieldRestrictingPerson(null, null).setStatus(SUFFIX); } @Test(expected = NotSupportedException.class) public void setRelationshipStatus() { new FieldRestrictingPerson(null, null).setRelationshipStatus(SUFFIX); } @Test(expected = NotSupportedException.class) public void setQuotes() { new FieldRestrictingPerson(null, null).setQuotes(new ArrayList<String>()); } @Test(expected = NotSupportedException.class) public void setProfileVideo() { new FieldRestrictingPerson(null, null).setProfileVideo(new UrlImpl()); } @Test(expected = NotSupportedException.class) public void setProfileSong() { new FieldRestrictingPerson(null, null).setProfileSong(new UrlImpl()); } @Test(expected = NotSupportedException.class) public void setPoliticalViews() { new FieldRestrictingPerson(null, null).setPoliticalViews(SUFFIX); } @Test(expected = NotSupportedException.class) public void setPhotos() { new FieldRestrictingPerson(null, null).setPhotos(new ArrayList<ListField>()); } @Test(expected = NotSupportedException.class) public void setPhoneNumbers() { new FieldRestrictingPerson(null, null).setPhoneNumbers(new ArrayList<ListField>()); } @Test(expected = NotSupportedException.class) public void setPets() { new FieldRestrictingPerson(null, null).setPets(PREFERRED_NAME); } @Test(expected = NotSupportedException.class) public void setNickname() { new FieldRestrictingPerson(null, null).setNickname(PREFERRED_NAME); } @Test(expected = NotSupportedException.class) public void setNetworkPresence() { new FieldRestrictingPerson(null, null).setNetworkPresence(new EnumImpl<NetworkPresence>(NetworkPresence.AWAY)); } @Test(expected = NotSupportedException.class) public void setMusic() { new FieldRestrictingPerson(null, null).setMusic(new ArrayList<String>()); } @Test(expected = NotSupportedException.class) public void setMovies() { new FieldRestrictingPerson(null, null).setMovies(new ArrayList<String>()); } @Test(expected = NotSupportedException.class) public void setLookingFor() { new FieldRestrictingPerson(null, null).setLookingFor(new ArrayList<org.apache.shindig.protocol.model.Enum<LookingFor>>()); } @Test(expected = NotSupportedException.class) public void setLivingArrangement() { new FieldRestrictingPerson(null, null).setLivingArrangement(SUFFIX); } @Test(expected = NotSupportedException.class) public void setUpdated() { new FieldRestrictingPerson(null, null).setUpdated(new Date()); } @Test(expected = NotSupportedException.class) public void setLanguagesSpoken() { new FieldRestrictingPerson(null, null).setLanguagesSpoken(new ArrayList<String>()); } @Test(expected = NotSupportedException.class) public void setJobInterests() { new FieldRestrictingPerson(null, null).setJobInterests(SUFFIX); } @Test(expected = NotSupportedException.class) public void setInterests() { new FieldRestrictingPerson(null, null).setInterests(new ArrayList<String>()); } @Test(expected = NotSupportedException.class) public void setIms() { new FieldRestrictingPerson(null, null).setIms(new ArrayList<ListField>()); } @Test(expected = NotSupportedException.class) public void setHumor() { new FieldRestrictingPerson(null, null).setHumor(DISPLAY_NAME); } @Test(expected = NotSupportedException.class) public void setDisplayName() { new FieldRestrictingPerson(null, null).setDisplayName(DISPLAY_NAME); } @Test(expected = NotSupportedException.class) public void setAboutMe() { new FieldRestrictingPerson(null, null).setAboutMe(DISPLAY_NAME); } @Test(expected = NotSupportedException.class) public void setActivities() { new FieldRestrictingPerson(null, null).setActivities(new ArrayList<String>()); } @Test(expected = NotSupportedException.class) public void setAge() { new FieldRestrictingPerson(null, null).setAge(AGE); } @Test(expected = NotSupportedException.class) public void setAccounts() { new FieldRestrictingPerson(null, null).setAccounts(new ArrayList<Account>()); } @Test(expected = NotSupportedException.class) public void setAddresses() { new FieldRestrictingPerson(null, null).setAddresses(new ArrayList<Address>()); } @Test(expected = NotSupportedException.class) public void setBirthday() { new FieldRestrictingPerson(null, null).setBirthday(new Date()); } @Test(expected = NotSupportedException.class) public void setBodyType() { new FieldRestrictingPerson(null, null).setBodyType(new BodyTypeImpl()); } @Test(expected = NotSupportedException.class) public void setBooks() { new FieldRestrictingPerson(null, null).setBooks(new ArrayList<String>()); } @Test(expected = NotSupportedException.class) public void setCars() { new FieldRestrictingPerson(null, null).setCars(new ArrayList<String>()); } @Test(expected = NotSupportedException.class) public void setChildren() { new FieldRestrictingPerson(null, null).setChildren(DISPLAY_NAME); } @Test(expected = NotSupportedException.class) public void setCurrentLocation() { new FieldRestrictingPerson(null, null).setCurrentLocation(new org.apache.shindig.social.core.model.AddressImpl()); } @Test(expected = NotSupportedException.class) public void setDrinker() { new FieldRestrictingPerson(null, null).setDrinker(new EnumImpl<Drinker>(Drinker.QUIT)); } @Test(expected = NotSupportedException.class) public void setEthnicity() { new FieldRestrictingPerson(null, null).setEthnicity(SUFFIX); } @Test(expected = NotSupportedException.class) public void setFashion() { new FieldRestrictingPerson(null, null).setFashion(SUFFIX); } @Test(expected = NotSupportedException.class) public void setFood() { new FieldRestrictingPerson(null, null).setFood(new ArrayList<String>()); } @Test(expected = NotSupportedException.class) public void setEmails() { new FieldRestrictingPerson(null, null).setEmails(new ArrayList<ListField>()); } @Test(expected = NotSupportedException.class) public void setGender() { new FieldRestrictingPerson(null, null).setGender(Person.Gender.male); } @Test(expected = NotSupportedException.class) public void setHappiestWhen() { new FieldRestrictingPerson(null, null).setHappiestWhen(SUFFIX); } private org.apache.rave.model.Person getTestPerson() { org.apache.rave.model.Person person = new PersonImpl(); person.setUsername(USERNAME); person.setAboutMe(ABOUT_ME); person.setAdditionalName(ADDITIONAL_NAME); person.setDisplayName(DISPLAY_NAME); person.setEmail(E_MAIL_ADDRESS); person.setFamilyName(FIRST_NAME); person.setGivenName(GIVEN_NAME); person.setHonorificPrefix(PREFIX); person.setHonorificSuffix(SUFFIX); person.setPreferredName(PREFERRED_NAME); person.setStatus(STATUS); List<PersonProperty> properties = new ArrayList<PersonProperty>(); properties.add(new PersonPropertyImpl("1", "gender", Person.Gender.female.toString(), null, "", false)); properties.add(new PersonPropertyImpl("1", "drinker", Drinker.HEAVILY.toString(), null, "", false)); properties.add(new PersonPropertyImpl("1", "age", AGE.toString(), null, "", false)); properties.add(new PersonPropertyImpl("1", "birthday", BIRTHDAY_STRING, null, "", false)); properties.add(new PersonPropertyImpl("1", "bodyType", BODY_BUILD, null, "build", false)); properties.add(new PersonPropertyImpl("1", "bodyType", BODY_EYE_COLOR, null, "eyeColor", false)); properties.add(new PersonPropertyImpl("1", "bodyType", "25.24", null, "height", false)); properties.add(new PersonPropertyImpl("1", "ims", IM_1, null, IM_PROVIDER_1, true)); properties.add(new PersonPropertyImpl("1", "ims", IM_2, null, IM_PROVIDER_2, false)); properties.add(new PersonPropertyImpl("1", "emails", E_MAIL_ADDRESS_2, null, "personal", false)); properties.add(new PersonPropertyImpl("1", "emails", E_MAIL_ADDRESS_3, null, "junk", true)); properties.add(new PersonPropertyImpl("1", "activities", ACTIVITY_1, null, "", false)); properties.add(new PersonPropertyImpl("1", "activities", ACTIVITY_2, null, "", false)); properties.add(new PersonPropertyImpl("1", "profileSong", LINK_VALUE, LINK_TEXT, null, false)); properties.add(new PersonPropertyImpl("1", "lookingFor", LookingFor.FRIENDS.toString(), null, null, false)); properties.add(new PersonPropertyImpl("1", "currentLocation", QUALIFIER, null, null, null)); properties.add(new PersonPropertyImpl("1", "account", IM_1, "1", IM_PROVIDER_1, false)); person.setProperties(properties); org.apache.rave.model.Address address = new AddressImpl(); address.setCountry(COUNTRY); address.setLatitude(LATITUDE); address.setLongitude(LONGITUDE); address.setLocality(CITY); address.setRegion(STATE); address.setPostalCode(POSTAL_CODE); address.setStreetAddress(STREET); address.setQualifier(QUALIFIER); List<org.apache.rave.model.Address> addresses = new ArrayList<org.apache.rave.model.Address>(); addresses.add(new AddressImpl()); addresses.add(address); person.setAddresses(addresses); return person; } private Set<String> getFieldSet(Person.Field... fields) { Set<String> set = new HashSet<String>(); for(Person.Field field : fields) { set.add(field.toString()); } return set; } private static Date parseDate(String birthdayString) { try { return new SimpleDateFormat(ModelUtils.STANDARD_DATE_FORMAT).parse(birthdayString); } catch (ParseException e) { throw new RuntimeException("Parse Exception...",e); } } private Boolean isValidEmailField(ListField field) { boolean valid; if(E_MAIL_ADDRESS.equals(field.getValue())) { valid = "Registered".equals(field.getType()); valid &= field.getPrimary(); } else if(E_MAIL_ADDRESS_2.equals(field.getValue())) { valid = "personal".equals(field.getType()); valid &= !field.getPrimary(); } else if(E_MAIL_ADDRESS_3.equals(field.getValue())) { valid = "junk".equals(field.getType()); valid &= !field.getPrimary(); } else { valid = false; } return valid; } }
deeuu/supriya
supriya/ugens/HPZ1.py
<reponame>deeuu/supriya import collections from supriya import CalculationRate from supriya.ugens.LPZ1 import LPZ1 class HPZ1(LPZ1): """ A two point difference filter. :: >>> source = supriya.ugens.In.ar(bus=0) >>> hpz_1 = supriya.ugens.HPZ1.ar( ... source=source, ... ) >>> hpz_1 HPZ1.ar() """ ### CLASS VARIABLES ### __documentation_section__ = "Filter UGens" _ordered_input_names = collections.OrderedDict([("source", None)]) _valid_calculation_rates = (CalculationRate.AUDIO, CalculationRate.CONTROL)
xiongraorao/FaceCluster
src/main/java/com/oceanai/util/DistanceUtil.java
package com.oceanai.util; import com.oceanai.cluster.bean.Cluster; import com.oceanai.cluster.bean.DataPoint; import java.util.List; /** * 距离计算方式. * * @author <NAME> * @since 2018-09-30-10:58 */ public class DistanceUtil { /** * 闵可夫斯基距离,Lp范数 * * @param dp1 point 1 * @param dp2 point 2 * @return distance */ public static double minkowski(DataPoint dp1, DataPoint dp2, int p) { if (dp1.getDim() != dp1.getDim()) { return -1; } else { double sum = 0; double[] v1 = dp1.getVector(); double[] v2 = dp2.getVector(); for (int i = 0; i < dp1.getDim(); i++) { sum += Math.pow(Math.abs(v1[i] - v2[i]), p); } return Math.pow(sum, 1 / p); } } /** * 欧式距离 * * @param dp1 point 1 * @param dp2 point 2 * @return distance */ public static double euclidean(DataPoint dp1, DataPoint dp2) { return minkowski(dp1, dp2, 2); } /** * 曼哈顿距离 * * @param dp1 point 1 * @param dp2 point 2 * @return distance */ public static double manhattan(DataPoint dp1, DataPoint dp2) { return minkowski(dp1, dp2, 1); } /** * 余弦距离(归一化到0-1之间,值越大,表示距离越近) * * @param dp1 point 1 * @param dp2 point 2 * @return similarity */ public static double cosine(DataPoint dp1, DataPoint dp2) { if (dp1.getDim() != dp2.getDim()) { return -1; } else { double distance = 0; double[] dimA = dp1.getVector(); double[] dimB = dp2.getVector(); if (dimA.length == dimB.length) { double mdimA = 0;// dimA的莫 double mdimB = 0;// dimB的莫 double proAB = 0;// dimA和dimB的向量积 for (int i = 0; i < dimA.length; i++) { proAB = proAB + dimA[i] * dimB[i]; mdimA = mdimA + dimA[i] * dimA[i]; mdimB = mdimB + dimB[i] * dimB[i]; } distance = proAB / (Math.sqrt(mdimA) * Math.sqrt(mdimB)); } distance = (1 + distance) / 2; // 归一化到0-1之间 return distance; } } public static double[] clusterDistance(Cluster c1, Cluster c2) { double center; double min = Double.MAX_VALUE; List<DataPoint> dps1 = c1.getDataPoints(); List<DataPoint> dps2 = c2.getDataPoints(); for (int i = 0; i < dps1.size(); i++) { for (int j = 0; j < dps2.size(); j++) { double dist = DistanceUtil.euclidean(dps1.get(i), dps2.get(j)); if (dist < min) { min = dist; } } } center = DistanceUtil.euclidean(c1.getMid(), c2.getMid()); double[] ret = new double[2]; ret[0] = center; ret[1] = min; return ret; } }
ashfaqnisar/popcorn-native-app
app/modules/PlayerManager/index.js
<filename>app/modules/PlayerManager/index.js export { default } from './PlayerManager'