repo_name
stringlengths 6
101
| path
stringlengths 4
300
| text
stringlengths 7
1.31M
|
|---|---|---|
envomp/Lone-Player
|
core/src/ee/taltech/iti0202/gui/game/desktop/entities/projectile2/WeaponProjectileBuilder.java
|
package ee.taltech.iti0202.gui.game.desktop.entities.projectile2;
import com.badlogic.gdx.physics.box2d.Body;
import ee.taltech.iti0202.gui.game.desktop.entities.projectile2.bullet.Bullet;
public class WeaponProjectileBuilder {
private Body body;
private WeaponProjectile.Type type;
public WeaponProjectileBuilder setBody(Body body) {
this.body = body;
return this;
}
public WeaponProjectileBuilder setType(WeaponProjectile.Type type) {
this.type = type;
return this;
}
public WeaponProjectile createWeaponProjectile() {
switch (type) {
case BULLET:
return new Bullet(body);
}
return null; // Never get here
}
}
|
ravowlga123/hbase
|
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionOverAsyncConnection.java
|
<reponame>ravowlga123/hbase
/**
* 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.hadoop.hbase.client;
import java.io.IOException;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.DoNotRetryIOException;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.log.HBaseMarkers;
import org.apache.hadoop.hbase.util.ConcurrentMapUtils.IOExceptionSupplier;
import org.apache.hadoop.hbase.util.FutureUtils;
import org.apache.yetus.audience.InterfaceAudience;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.hbase.thirdparty.com.google.common.io.Closeables;
import org.apache.hbase.thirdparty.com.google.common.util.concurrent.ThreadFactoryBuilder;
/**
* The connection implementation based on {@link AsyncConnection}.
*/
@InterfaceAudience.Private
class ConnectionOverAsyncConnection implements Connection {
private static final Logger LOG = LoggerFactory.getLogger(ConnectionOverAsyncConnection.class);
private volatile boolean aborted = false;
// only used for executing coprocessor calls, as users may reference the methods in the
// BlockingInterface of the protobuf stub so we have to execute the call in a separated thread...
// Will be removed in 4.0.0 along with the deprecated coprocessor methods in Table and Admin
// interface.
private volatile ExecutorService batchPool = null;
private final AsyncConnectionImpl conn;
private final ConnectionConfiguration connConf;
ConnectionOverAsyncConnection(AsyncConnectionImpl conn) {
this.conn = conn;
this.connConf = new ConnectionConfiguration(conn.getConfiguration());
}
@Override
public void abort(String why, Throwable error) {
if (error != null) {
LOG.error(HBaseMarkers.FATAL, why, error);
} else {
LOG.error(HBaseMarkers.FATAL, why);
}
aborted = true;
try {
Closeables.close(this, true);
} catch (IOException e) {
throw new AssertionError(e);
}
}
@Override
public boolean isAborted() {
return aborted;
}
@Override
public Configuration getConfiguration() {
return conn.getConfiguration();
}
@Override
public BufferedMutator getBufferedMutator(BufferedMutatorParams params) throws IOException {
AsyncBufferedMutatorBuilder builder = conn.getBufferedMutatorBuilder(params.getTableName());
if (params.getRpcTimeout() != BufferedMutatorParams.UNSET) {
builder.setRpcTimeout(params.getRpcTimeout(), TimeUnit.MILLISECONDS);
}
if (params.getOperationTimeout() != BufferedMutatorParams.UNSET) {
builder.setOperationTimeout(params.getOperationTimeout(), TimeUnit.MILLISECONDS);
}
if (params.getWriteBufferSize() != BufferedMutatorParams.UNSET) {
builder.setWriteBufferSize(params.getWriteBufferSize());
}
if (params.getWriteBufferPeriodicFlushTimeoutMs() != BufferedMutatorParams.UNSET) {
builder.setWriteBufferPeriodicFlush(params.getWriteBufferPeriodicFlushTimeoutMs(),
TimeUnit.MILLISECONDS);
}
if (params.getMaxKeyValueSize() != BufferedMutatorParams.UNSET) {
builder.setMaxKeyValueSize(params.getMaxKeyValueSize());
}
return new BufferedMutatorOverAsyncBufferedMutator(builder.build(), params.getListener());
}
@Override
public RegionLocator getRegionLocator(TableName tableName) throws IOException {
return new RegionLocatorOverAsyncTableRegionLocator(conn.getRegionLocator(tableName));
}
@Override
public void clearRegionLocationCache() {
conn.clearRegionLocationCache();
}
@Override
public Admin getAdmin() throws IOException {
return new AdminOverAsyncAdmin(this, (RawAsyncHBaseAdmin) conn.getAdmin());
}
@Override
public void close() throws IOException {
conn.close();
}
// will be called from AsyncConnection, to avoid infinite loop as in the above method we will call
// AsyncConnection.close.
synchronized void closePool() {
ExecutorService batchPool = this.batchPool;
if (batchPool != null) {
ConnectionUtils.shutdownPool(batchPool);
this.batchPool = null;
}
}
@Override
public boolean isClosed() {
return conn.isClosed();
}
// only used for executing coprocessor calls, as users may reference the methods in the
// BlockingInterface of the protobuf stub so we have to execute the call in a separated thread...
// Will be removed in 4.0.0 along with the deprecated coprocessor methods in Table and Admin
// interface.
private ThreadPoolExecutor createThreadPool() {
Configuration conf = conn.getConfiguration();
int threads = conf.getInt("hbase.hconnection.threads.max", 256);
long keepAliveTime = conf.getLong("hbase.hconnection.threads.keepalivetime", 60);
BlockingQueue<Runnable> workQueue =
new LinkedBlockingQueue<>(threads * conf.getInt(HConstants.HBASE_CLIENT_MAX_TOTAL_TASKS,
HConstants.DEFAULT_HBASE_CLIENT_MAX_TOTAL_TASKS));
ThreadPoolExecutor tpe = new ThreadPoolExecutor(threads, threads, keepAliveTime,
TimeUnit.SECONDS, workQueue,
new ThreadFactoryBuilder().setDaemon(true).setNameFormat(toString() + "-shared-%d").build());
tpe.allowCoreThreadTimeOut(true);
return tpe;
}
// only used for executing coprocessor calls, as users may reference the methods in the
// BlockingInterface of the protobuf stub so we have to execute the call in a separated thread...
// Will be removed in 4.0.0 along with the deprecated coprocessor methods in Table and Admin
// interface.
private ExecutorService getBatchPool() throws IOException {
if (batchPool == null) {
synchronized (this) {
if (isClosed()) {
throw new DoNotRetryIOException("Connection is closed");
}
if (batchPool == null) {
this.batchPool = createThreadPool();
}
}
}
return this.batchPool;
}
@Override
public TableBuilder getTableBuilder(TableName tableName, ExecutorService pool) {
return new TableBuilderBase(tableName, connConf) {
@Override
public Table build() {
IOExceptionSupplier<ExecutorService> poolSupplier =
pool != null ? () -> pool : ConnectionOverAsyncConnection.this::getBatchPool;
return new TableOverAsyncTable(conn,
conn.getTableBuilder(tableName).setRpcTimeout(rpcTimeout, TimeUnit.MILLISECONDS)
.setReadRpcTimeout(readRpcTimeout, TimeUnit.MILLISECONDS)
.setWriteRpcTimeout(writeRpcTimeout, TimeUnit.MILLISECONDS)
.setOperationTimeout(operationTimeout, TimeUnit.MILLISECONDS).build(),
poolSupplier);
}
};
}
@Override
public AsyncConnection toAsyncConnection() {
return conn;
}
@Override
public Hbck getHbck() throws IOException {
return FutureUtils.get(conn.getHbck());
}
@Override
public Hbck getHbck(ServerName masterServer) throws IOException {
return conn.getHbck(masterServer);
}
/**
* An identifier that will remain the same for a given connection.
*/
@Override
public String toString() {
return "connection-over-async-connection-0x" + Integer.toHexString(hashCode());
}
}
|
chaos4ever/chaos-old
|
programs/quake/q1source/WinQuake/screen.h
|
/*
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// screen.h
void SCR_Init (void);
void SCR_UpdateScreen (void);
void SCR_SizeUp (void);
void SCR_SizeDown (void);
void SCR_BringDownConsole (void);
void SCR_CenterPrint (char *str);
void SCR_BeginLoadingPlaque (void);
void SCR_EndLoadingPlaque (void);
int SCR_ModalMessage (char *text);
extern float scr_con_current;
extern float scr_conlines; // lines of console to display
extern int scr_fullupdate; // set to 0 to force full redraw
extern int sb_lines;
extern int clearnotify; // set to 0 whenever notify text is drawn
extern qboolean scr_disabled_for_loading;
extern qboolean scr_skipupdate;
extern cvar_t scr_viewsize;
extern cvar_t scr_viewsize;
// only the refresh window will be updated unless these variables are flagged
extern int scr_copytop;
extern int scr_copyeverything;
extern qboolean block_drawing;
void SCR_UpdateWholeScreen (void);
|
harshp8l/deep-learning-lang-detection
|
data/train/java/08b8758968f318b66ca4b480e16153c60ddfab34MultiProcessManager.java
|
package com.shine.MultiProcess;
import com.shine.MultiProcess.utils.ProcessUtils;
public class MultiProcessManager {
private static MultiProcessManager manager = new MultiProcessManager();
private ProcessUtils processUtil=new ProcessUtils();
public static MultiProcessManager getManager() {
return manager;
}
public void init() {
}
public void init(String xmlPath) {
}
public void addProcess(String name, String jarPath) {
}
public void closeProcess(String name) {
}
public void close() {
}
public String operaProcess(String name, String commnd) {
return null;
}
}
|
cldrn/drools
|
drools-kiesession/src/main/java/org/drools/kiesession/factory/RuntimeComponentFactoryImpl.java
|
/*
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* 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 org.drools.kiesession.factory;
import java.io.Serializable;
import org.drools.core.SessionConfiguration;
import org.drools.core.base.FieldDataFactory;
import org.drools.core.base.FieldFactory;
import org.drools.core.common.AgendaFactory;
import org.drools.core.common.AgendaGroupFactory;
import org.drools.core.common.DefaultNamedEntryPointFactory;
import org.drools.core.common.InternalWorkingMemory;
import org.drools.core.common.NamedEntryPointFactory;
import org.drools.core.common.PhreakPropagationContextFactory;
import org.drools.core.common.PriorityQueueAgendaGroupFactory;
import org.drools.core.common.PropagationContextFactory;
import org.drools.core.common.ReteEvaluator;
import org.drools.core.factmodel.ClassBuilderFactory;
import org.drools.core.factmodel.traits.TraitFactory;
import org.drools.core.factmodel.traits.TraitRegistry;
import org.drools.core.impl.RuleBase;
import org.drools.core.management.DroolsManagementAgent;
import org.drools.core.reteoo.ReteooFactHandleFactory;
import org.drools.core.reteoo.RuntimeComponentFactory;
import org.drools.core.spi.FactHandleFactory;
import org.drools.core.spi.KnowledgeHelper;
import org.drools.kiesession.agenda.DefaultAgendaFactory;
import org.drools.kiesession.management.KieSessionMonitoringImpl;
import org.drools.kiesession.management.StatelessKieSessionMonitoringImpl;
import org.drools.kiesession.rulebase.InternalKnowledgeBase;
import org.drools.kiesession.session.KieSessionsPoolImpl;
import org.drools.kiesession.session.StatefulKnowledgeSessionImpl;
import org.drools.kiesession.session.StatelessKnowledgeSessionImpl;
import org.kie.api.runtime.Environment;
import org.kie.api.runtime.KieSessionConfiguration;
import org.kie.api.runtime.KieSessionsPool;
import org.kie.api.runtime.StatelessKieSession;
public class RuntimeComponentFactoryImpl implements Serializable, RuntimeComponentFactory {
public static final RuntimeComponentFactoryImpl DEFAULT = new RuntimeComponentFactoryImpl();
private final FactHandleFactory handleFactory = new ReteooFactHandleFactory();
private final PropagationContextFactory propagationFactory = PhreakPropagationContextFactory.getInstance();
private final WorkingMemoryFactory wmFactory = PhreakWorkingMemoryFactory.getInstance();
private final AgendaFactory agendaFactory = DefaultAgendaFactory.getInstance();
private final AgendaGroupFactory agendaGroupFactory = PriorityQueueAgendaGroupFactory.getInstance();
private final FieldDataFactory fieldFactory = FieldFactory.getInstance();
public FactHandleFactory getFactHandleFactoryService() {
return handleFactory;
}
public NamedEntryPointFactory getNamedEntryPointFactory() {
return new DefaultNamedEntryPointFactory();
}
public PropagationContextFactory getPropagationContextFactory() {
return propagationFactory;
}
public AgendaFactory getAgendaFactory() {
return agendaFactory;
}
public AgendaGroupFactory getAgendaGroupFactory() {
return agendaGroupFactory;
}
public FieldDataFactory getFieldFactory() {
return fieldFactory;
}
public TraitFactory getTraitFactory(RuleBase knowledgeBase) {
return null;
}
public TraitRegistry getTraitRegistry(RuleBase knowledgeBase) {
return null;
}
public ClassBuilderFactory getClassBuilderFactory() {
return ClassBuilderFactory.get();
}
public final KnowledgeHelper createKnowledgeHelper(ReteEvaluator reteEvaluator) {
return KnowledgeHelperFactory.get().createKnowledgeHelper(reteEvaluator);
}
public InternalWorkingMemory createStatefulSession(RuleBase ruleBase, Environment environment, SessionConfiguration sessionConfig, boolean fromPool) {
InternalKnowledgeBase kbase = (InternalKnowledgeBase) ruleBase;
if (fromPool || kbase.getSessionPool() == null) {
StatefulKnowledgeSessionImpl session = ( StatefulKnowledgeSessionImpl ) getWorkingMemoryFactory()
.createWorkingMemory( kbase.nextWorkingMemoryCounter(), kbase, sessionConfig, environment );
return internalInitSession( kbase, sessionConfig, session );
}
return (InternalWorkingMemory) kbase.getSessionPool().newKieSession( sessionConfig );
}
private StatefulKnowledgeSessionImpl internalInitSession( InternalKnowledgeBase kbase, SessionConfiguration sessionConfig, StatefulKnowledgeSessionImpl session ) {
if ( sessionConfig.isKeepReference() ) {
kbase.addStatefulSession(session);
}
return session;
}
public StatelessKieSession createStatelessSession(RuleBase ruleBase, KieSessionConfiguration conf) {
return new StatelessKnowledgeSessionImpl( (InternalKnowledgeBase) ruleBase, conf );
}
public KieSessionsPool createSessionsPool(RuleBase ruleBase, int initialSize) {
return new KieSessionsPoolImpl((InternalKnowledgeBase) ruleBase, initialSize);
}
public KieSessionMonitoringImpl createStatefulSessionMonitor(DroolsManagementAgent.CBSKey cbsKey) {
return new KieSessionMonitoringImpl( cbsKey.getKcontainerId(), cbsKey.getKbaseId(), cbsKey.getKsessionName() );
}
public StatelessKieSessionMonitoringImpl createStatelessSessionMonitor(DroolsManagementAgent.CBSKey cbsKey) {
return new StatelessKieSessionMonitoringImpl( cbsKey.getKcontainerId(), cbsKey.getKbaseId(), cbsKey.getKsessionName() );
}
protected WorkingMemoryFactory getWorkingMemoryFactory() {
return wmFactory;
}
}
|
Computer-history-Museum/MS-Word-for-Windows-v1.1
|
Opus/iconbar1.c
|
<reponame>Computer-history-Museum/MS-Word-for-Windows-v1.1
/* I C O N B A R 1 . C */
/* Core iconbar routines */
#define RSHDEFS
#include "word.h"
DEBUGASSERTSZ /* WIN - bogus macro for assert string */
#include "heap.h"
#include "disp.h"
#include "keys.h"
#include "help.h"
#include "screen.h"
#include "wininfo.h"
#include "resource.h"
#include "iconbar.h"
#include "sdmdefs.h"
#include "sdmver.h"
#include "sdm.h"
#include "sdmtmpl.h"
#include "sdmparse.h"
#include "debug.h"
#include "idle.h"
#ifdef WIN23
#include "dac.h" /* so we can hack sdm's internal colors */
#endif /* WIN23 */
extern HWND vhwndCBT;
extern int wwCur;
extern struct WWD **hwwdCur;
extern HCURSOR vhcArrow;
extern struct SCI vsci;
#ifdef WIN23
extern struct BMI *mpidrbbmi;
#else
extern struct BMI mpidrbbmi[];
#endif /* WIN23 */
extern struct PREF vpref;
extern BOOL vfHelp; /* whether we're in Help Mode */
extern long vcmsecHelp;
extern IDF vidf;
extern HWND vhwndStatLine;
extern HWND vhwndRibbon;
extern struct MERR vmerr;
extern int vdbmgDevice;
#ifdef WIN23
FARPROC lpfnSdmWndProc;
FARPROC lpfnIconDlgWndProc;
extern HBRUSH vhbrLtGray;
extern HBRUSH vhbrGray;
extern HBRUSH vhbrWhite;
#endif /* WIN23 */
HDLG HdlgHibsDlgCur(HIBS);
/* W R E F F R O M H W N D I B */
/* %%Function:WRefFromHwndIb %%Owner:peterj */
NATIVE WORD WRefFromHwndIb(hwnd)
HWND hwnd;
{
AssertH(HibsFromHwndIb(hwnd));
return (*HibsFromHwndIb(hwnd))->wRef;
}
/* P I B B F R O M H I B S I I B B */
/* %%Function:PibbFromHibsIibb %%Owner:peterj */
NATIVE struct IBB *PibbFromHibsIibb(hibs, iibb)
HIBS hibs;
int iibb;
{
AssertH(hibs);
Assert(iibb < (*hibs)->iibbMac);
return (*hibs)->rgibb + iibb;
}
/* F M O U S E H I T I I B B */
/* %%Function:FMouseHitIibb %%Owner:peterj */
FMouseHitIibb(hibs, iibb, ppibb)
HIBS hibs;
int iibb;
struct IBB **ppibb;
{
struct IBB *pibb;
if (iibb == iibbNil)
return fFalse;
*ppibb = pibb = PibbFromHibsIibb(hibs, iibb);
return mpibitgrpf[pibb->ibit].fMouseHit
&& !pibb->fHidden && !pibb->fDisabled;
}
/* I C O N B A R W N D P R O C */
/* NOTE: Messages bound for this WndProc are filtered in wprocn.asm */
/* %%Function:IconBarWndProc %%Owner:peterj */
EXPORT LONG FAR PASCAL IconBarWndProc(hwnd, wMessage, wParam, lParam)
HWND hwnd;
unsigned wMessage;
WORD wParam;
LONG lParam;
{
HIBS hibs;
WORD hdlg;
#ifdef DBGIB
ShowMsg(SzShared("ib"), hwnd, wMessage, wParam, lParam);
#endif /* DBGIB */
switch (wMessage)
{
#ifdef DEBUG
default:
Assert(fFalse);
goto LDefault;
#endif /* DEBUG */
#ifdef COMMENT
case WM_CREATE:
/* Notification to CBT of window creation has been moved
to HwndCreateIconBar */
#endif
case WM_NCDESTROY:
{
hibs = HibsFromHwndIb(hwnd);
Assert((*hibs)->hwnd == hwnd);
CallIbProc(hibs, ibmDestroy, iibbNil, 0, 0L);
(*hibs)->hwnd = NULL;
DestroyHibs(hibs);
break;
}
case WM_LBUTTONDOWN:
{
struct PT pt;
int iibb;
struct IBB *pibb;
long LparamCBTFromIbcIibb();
hibs = HibsFromHwndIb(hwnd);
if (vfHelp)
GetHelp(CxtFromIbcHwnd((*hibs)->ibc, hwnd));
else
{
EnsureFocusInPane();
#ifdef BRADCH
SpecialSelModeEnd();
#endif
if (vmerr.hrgwEmerg1 == hNil)
{
SetErrorMat(matMem);
break;
}
pt = MAKEPOINT(lParam);
iibb = IibbFromHibsPt(hibs, pt);
if (!FMouseHitIibb(hibs, iibb, &pibb))
CallIbProc(hibs, ibmClick, iibb, wParam, lParam);
else /* toggle */
{
struct RC rc;
BOOL fHilite;
BCM bcm = pibb->bcm;
Assert(mpibitgrpf[pibb->ibit].fToggle);
SetCapture(hwnd);
#ifdef WIN23
ToggleButton(hwnd, iibb, fHilite = fTrue);
#else
HiliteBorder(hwnd, iibb, fHilite = fTrue);
#endif /* WIN23 */
rc = pibb->rc;
while (FStillDownReplay(&pt,fFalse))
if (PtInRect((LPRECT)&rc, pt) != fHilite)
#ifdef WIN23
ToggleButton(hwnd, iibb, fHilite = !fHilite);
#else
HiliteBorder(hwnd, iibb, fHilite = !fHilite);
#endif /* WIN23 */
ReleaseCapture();
if (fHilite)
{
#ifdef WIN23
if (vsci.fWin3Visuals)
{ /* Heap may have moved */
pibb = PibbFromHibsIibb(hibs, iibb);
if (!pibb->fLatch)
ToggleButton(hwnd, iibb, fFalse);
else
{
/* if the button is already on, it won't get redraw
by the UpdateRuler code (since it thinks nothing
has changed), so we have to force it to redraw here.
Also, in some cases we won't redraw from the hilited
state back to the off state.
*/
pibb->fHilite = fFalse;
InvalidateRect(hwnd, &pibb->rc, fFalse);
}
}
else
ToggleButton(hwnd, iibb, fFalse);
#else
HiliteBorder(hwnd, iibb, fFalse);
#endif /* WIN23 */
NewCurWw(wwCur, fFalse /*fDoNotSelect*/);
/* Give CBT veto power over this action */
if (!vhwndCBT ||
SendMessage(vhwndCBT, WM_CBTSEMEV, SmvFromIbc((*hibs)->ibc),
LparamCBTFromIbcIibb((*hibs)->ibc, iibb)))
{
if (bcm != bcmNil)
ExecIconBarCmd(bcm, kcNil);
else
CallIbProc(hibs, ibmCommand, iibb, 0, 0L);
}
}
}
}
break;
}
case WM_LBUTTONDBLCLK:
{
int iibb;
struct IBB *pibb;
if (GetMessageTime() < vcmsecHelp) /* Abort if help mode */
return(fTrue);
EnsureFocusInPane();
if (vmerr.hrgwEmerg1 == hNil)
{
SetErrorMat(matMem);
break;
}
hibs = HibsFromHwndIb(hwnd);
if (!FMouseHitIibb(hibs,
iibb = IibbFromHibsPt(hibs, MAKEPOINT(lParam)), &pibb))
CallIbProc(hibs, ibmDblClk, iibb, wParam, lParam);
break;
}
case WM_SYSCOMMAND:
if ((wParam & 0xfff0) != SC_KEYMENU)
goto LDefault;
break;
case WM_SYSKEYDOWN:
case WM_KEYDOWN:
ExecIconBarCmd(bcmNil, wParam);
break;
case WM_PAINT:
/* paint each item */
PaintHwndIb(hwnd);
break;
case WM_SETVISIBLE:
hibs = HibsFromHwndIb(hwnd);
if (hibs != hNil && (*hibs)->iibbDlg != iibbNil)
{
hdlg = HdlgHibsDlgCur(hibs);
/* not trustworthy if dlg to come down */
if (!FIsDlgDying())
ShowDlg(wParam);
/* restore previous current dialog */
HdlgSetCurDlg(hdlg);
}
goto LDefault;
case WM_MOVE:
hibs = HibsFromHwndIb(hwnd);
hdlg = hNil;
if (hibs != hNil && (*hibs)->iibbDlg != iibbNil)
{
struct RC rc;
struct IBB *pibb;
hdlg = HdlgHibsDlgCur(hibs);
/* routine not trustworthy if dlg to come down */
if (!FIsDlgDying())
{
GetHwndParentRc(hwnd, &rc);
pibb = PibbFromHibsIibb(hibs, (*hibs)->iibbDlg);
MoveDlg(rc.xpLeft + pibb->xpDlg, rc.ypTop + pibb->ypDlg);
}
}
if (hwnd != vhwndRibbon)
CallIbProc(hibs, ibmMoveSize, iibbNil, 0, 0L);
/* restore previous current dialog */
if (hdlg != hNil)
HdlgSetCurDlg(hdlg);
goto LDefault;
case WM_SIZE:
if (hwnd != vhwndRibbon)
CallIbProc(HibsFromHwndIb(hwnd), ibmMoveSize, iibbNil, 0, 0L);
goto LDefault;
case WM_ENABLE:
hibs = HibsFromHwndIb(hwnd);
if (hibs != hNil && (*hibs)->iibbDlg != iibbNil)
{
struct RC rc;
struct IBB *pibb;
int iibb, iibbMac = (*hibs)->iibbMac;
hdlg = HdlgHibsDlgCur(hibs);
for (iibb = 0, pibb = (*hibs)->rgibb; iibb < iibbMac;
iibb++, pibb++)
if (pibb->ibit == ibitDlgItem)
{
EnableTmc(pibb->tmc, wParam);
pibb = PibbFromHibsIibb(hibs, iibb);
}
/* restore previous current dialog */
HdlgSetCurDlg(hdlg);
}
/* fall through */
LDefault:
return DefWindowProc(hwnd, wMessage, wParam, lParam);
}
return fTrue;
}
#ifdef WIN23
long EXPORT FAR PASCAL IconDlgWndProc(hwnd, message, wParam, lParam)
HWND hwnd;
unsigned message;
WORD wParam;
LONG lParam;
{
DWORD clrWindow;
LONG rval;
if (message == WM_ERASEBKGND || message == WM_PAINT)
{
clrWindow = dac.clrWindow;
dac.clrWindow = vdbmgDevice != dbmgEGA3 ? rgbLtGray : rgbGray;
}
rval = CallWindowProc(lpfnSdmWndProc, hwnd, message, wParam, lParam);
if (message == WM_ERASEBKGND || message == WM_PAINT)
{
dac.clrWindow = clrWindow;
}
return (rval);
}
#endif /* WIN23 */
/* F D L G I B */
/* %%Function:FdlgIb %%Owner:peterj */
BOOL FDlgIb(dlm, tmc, wNew, wOld, wParam)
DLM dlm;
TMC tmc;
WORD wOld, wNew, wParam;
{
HIBS hibs;
BOOL fRet = fTrue;
hibs = (HIBS)WRefDlgCur();
#ifdef DBGIB
CommSzNum(SzShared("FDlgIb: dlm = "), dlm);
CommSzNum(SzShared("\thibs = "), hibs);
#endif
switch (dlm)
{
case dlmDlgDblClick:
if (GetMessageTime() < vcmsecHelp)
{
fRet = fFalse;
goto LRet;
}
EnsureFocusInPane();
CallIbProc(hibs, ibmDblClk, iibbNil, 0, 0L);
fRet = fFalse;
goto LRet;
case dlmDlgClick:
/* SDM gets the focus, send it back to the pane */
#ifdef DBGIB
CommSz(SzShared("Iconbar refusing focus.\r\n"));
#endif /* DBGIB */
if (!vidf.fIBDlgMode)
SetFocus(hwwdCur == hNil ? NULL : (*hwwdCur)->hwnd);
else
TermCurIBDlg(fFalse); /* "escape" without applying */
fRet = fFalse;
goto LRet;
case dlmSetDlgFocus:
if (!vidf.fIBDlgMode)
{
#ifdef DBGIB
CommSz(SzShared("starting dialog\r\n"));
#endif /* DBGIB */
#ifdef RSH
LogUa(uaIBDlgGetFocus);
SetUatMode(uamCommand);
#endif /* RSH */
vidf.fIBDlgMode = fTrue;
if (vhwndStatLine != NULL)
DisplayHelpPrompt(fTrue);
CallIbProc(hibs, ibmInit, iibbNil, 0, 0L);
}
break;
case dlmKillDlgFocus:
if (vidf.fIBDlgMode)
/* verify dialog and apply to document */
{
#ifdef DBGIB
CommSz(SzShared("ending dialog\r\n"));
#endif /* DBGIB */
#ifdef RSH
LogUa(uaIBDlgLoseFocus);
#endif /* RSH */
vidf.fIBDlgMode = fFalse;
if (vhwndStatLine != NULL)
DisplayHelpPrompt(fFalse);
CallIbProc(hibs, ibmTerm, iibbNil, fTrue, 0L);
}
break;
case dlmChange:
CallIbProc(hibs, ibmChange, IibbFromHibsTmc(hibs, tmc), 0, 0L);
break;
case dlmSetItmFocus:
/* note we pass whether the old tmc was tmc or tmc + 1. This is
for the ribbon, who cares it it is from the list
box of a combo or from itself
*/
CallIbProc(hibs, ibmSetItmFocus, IibbFromHibsTmc(hibs, tmc),
wOld == tmc + 1 || wOld == tmc, 0L);
break;
case dlmDblClk:
/* note: the edit control is parsed, so it returns tmvWord,
not tmvString. The list should be NoType and that is the
only time we should do this
*/
if (TmvGetTmc(tmc) == tmvNoType) /* don't do it on edit control */
TermCurIBDlg(fTrue);
break;
case dlmKey:
if (wNew == kcReturn)
TermCurIBDlg(fTrue);
else if (wNew == kcEscape)
TermCurIBDlg(fFalse);
else
Beep();
break;
}
LRet:
return fRet;
}
/* C A L L I B P R O C */
/* %%Function:CallIbProc %%Owner:peterj */
CallIbProc(hibs, ibm, iibb, wParam, lParam)
HIBS hibs;
WORD ibm;
WORD iibb;
WORD wParam;
LONG lParam;
{
PFN pfn;
#ifdef DBGIB
int rgw[6];
rgw[0]=hibs;
rgw[1]=ibm;
rgw[2]=iibb;
rgw[3]=wParam;
rgw[4]=LOWORD(lParam);
rgw[5]=HIWORD(lParam);
CommSzRgNum(SzShared("CallIbProc: "),rgw,6);
#endif /* DBGIB */
Debug( if (vdbs.fShakeHeap) ShakeHeap(); )
Debug( if (vdbs.fCkHeap) CkHeap(); )
if (hibs)
{
AssertH(hibs);
if ((pfn = (*hibs)->pfn) != NULL)
(*pfn)((*hibs)->hwnd, ibm, iibb, wParam, lParam);
}
}
/* I I B B F R O M H I B S P T */
/* %%Function:IibbFromHibsPt %%Owner:peterj */
IibbFromHibsPt(hibs, pt)
HIBS hibs;
struct PT pt;
{
struct IBB *pibb = (*hibs)->rgibb;
int iibb, iibbMac = (*hibs)->iibbMinSys;
for (iibb = 0; iibb < iibbMac; iibb++, pibb++)
if (mpibitgrpf[pibb->ibit].fHasCoord)
if (PtInRect((LPRECT)&pibb->rc, pt))
return iibb;
return iibbNil;
}
/* I I B B F R O M H I B S T M C */
/* %%Function:IibbFromHibsTmc %%Owner:peterj */
IibbFromHibsTmc(hibs, tmc)
HIBS hibs;
TMC tmc;
{
int iibb, iibbMac = (*hibs)->iibbMac;
struct IBB *pibb = (*hibs)->rgibb;
for (iibb = 0; iibb < iibbMac; iibb++, pibb++)
if (pibb->ibit == ibitDlgItem &&
(pibb->tmc|ftmcGrouped) == (tmc|ftmcGrouped))
return iibb;
return iibbNil;
}
/* P A I N T H W N D I B */
/* %%Function:PaintHwndIb %%Owner:peterj */
PaintHwndIb(hwnd)
HWND hwnd;
{
HIBS hibs = HibsFromHwndIb(hwnd);
int iibb, iibbMac = (*hibs)->iibbMac;
int ibit;
struct IBB *pibb;
PAINTSTRUCT ps;
BeginPaint(hwnd, &ps);
#ifdef WIN23
FSetDcAttribs(ps.hdc, vsci.dccIconBar);
if (vsci.fWin3Visuals)
SetBkColor(ps.hdc, vdbmgDevice != dbmgEGA3 ? rgbLtGray : rgbGray);
#else
FSetDcAttribs(ps.hdc, dccIconBar);
#endif /* WIN23 */
#ifdef WIN23
if (vsci.fWin3Visuals)
DrawShadowLines(hwnd, ps.hdc, fTrue, fTrue);
#endif /* WIN23 */
FreezeHp();
for (iibb = 0, pibb = &(*hibs)->rgibb; iibb < iibbMac; iibb++, pibb++)
if (!pibb->fHidden && mpibitgrpf[ibit = pibb->ibit].fPaint)
{
int nSaveDc = 0;
struct RC rcInter;
if (mpibitgrpf[ibit].fHasCoord &&
!IntersectRect((LPRECT)&rcInter, (LPRECT)&pibb->rc,
(LPRECT)&ps.rcPaint))
/* nothing to draw for this item */
continue;
switch (ibit)
{
case ibitText:
#ifdef WIN23
/****
IbTextOut no longer blots out the background, so it
is now the caller's responsibility to erase it.
****/
ExtTextOut(ps.hdc, 0, 0, ETO_OPAQUE, &pibb->rc, NULL, 0, (LPINT)NULL);
#endif /* WIN23 */
if (pibb->hsz != hNil)
IbTextOut(ps.hdc, &pibb->rc, *pibb->hsz, fFalse,
pibb->fGray);
break;
case ibitToggleBmp:
case ibitToggleText:
PaintToggle(hwnd, ps.hdc, pibb);
break;
case ibitCustomWnd:
MeltHp();
UpdateWindow(pibb->hwndCus);
FreezeHp();
pibb = PibbFromHibsIibb(hibs, iibb);
break;
case ibitDialog:
MeltHp();
UpdateWindow(HwndFromDlg(pibb->hdlg));
FreezeHp();
pibb = PibbFromHibsIibb(hibs, iibb);
break;
#ifdef DEBUG
default:
Assert(fFalse);
break;
#endif /* DEBUG */
}
}
MeltHp();
EndPaint(hwnd, &ps);
}
/* U P D A T E I I B B */
/* %%Function:UpdateIibb %%Owner:peterj */
UpdateIibb(hibs, iibb, fErase)
HIBS hibs;
int iibb;
BOOL fErase;
{
InvalidateRect((*hibs)->hwnd,
(LPRECT)&PibbFromHibsIibb(hibs, iibb)->rc, fErase);
UpdateWindow((*hibs)->hwnd);
}
/* H D L G H I B S */
/* Returns hdlg assocuiated with hibs. */
/* %%Function:HdlgHibs %%Owner:bobz */
HDLG HdlgHibs(hibs)
HIBS hibs;
{
Assert(PibbFromHibsIibb(hibs, (*hibs)->iibbDlg)->ibit == ibitDialog);
return (PibbFromHibsIibb(hibs, (*hibs)->iibbDlg)->hdlg);
}
/* H D L G H I B S D L G C U R */
/* Set current dialog to be that of the hibs. Returns previous current hdlg */
/* %%Function:HdlgHibsDlgCur %%Owner:bobz */
HDLG HdlgHibsDlgCur(hibs)
HIBS hibs;
{
return (HdlgSetCurDlg(HdlgHibs(hibs)));
}
/* S E T I I B B T E X T H W N D I B */
/* %%Function:SetIibbTextHwndIb %%Owner:peterj */
SetIibbTextHwndIb(hwnd, iibb, sz)
HWND hwnd;
int iibb;
CHAR *sz;
{
HDLG hdlg;
HIBS hibs = HibsFromHwndIb(hwnd);
struct IBB *pibb = PibbFromHibsIibb(hibs, iibb);
switch (pibb->ibit)
{
case ibitToggleText:
case ibitText:
if (pibb->hsz != hNil)
{
AssertH(pibb->hsz);
FreeH(pibb->hsz);
}
/* ok to store hNil into hsz */
PibbFromHibsIibb(hibs, iibb)->hsz = HszCreate(sz); /* HM */
UpdateIibb(hibs, iibb, fFalse);
break;
case ibitDlgItem:
{
TMC tmc = pibb->tmc;
hdlg = HdlgHibsDlgCur(hibs);
SetTmcText(tmc, sz);
HdlgSetCurDlg(hdlg);
break;
}
#ifdef DEBUG
default:
Assert(fFalse);
break;
#endif /* DEBUG */
}
}
/* G R A Y I I B B H W N D I B */
/* %%Function:GrayIibbHwndIb %%Owner:peterj */
GrayIibbHwndIb(hwnd, iibb, fGray)
HWND hwnd;
int iibb;
BOOL fGray;
{
HIBS hibs = HibsFromHwndIb(hwnd);
struct IBB *pibb = PibbFromHibsIibb(hibs, iibb);
switch (pibb->ibit)
{
case ibitToggleText:
case ibitToggleBmp:
case ibitText:
if (pibb->fGray != fGray)
{
pibb->fGray = fGray;
UpdateIibb(hibs, iibb, fFalse);
}
break;
#ifdef DEBUG
default:
Assert(fFalse);
break;
#endif /* DEBUG */
}
}
/* S E T V A L I I B B H W N D I B */
/* %%Function:SetValIibbHwndIb %%Owner:peterj */
SetValIibbHwndIb(hwnd, iibb, val)
HWND hwnd;
int iibb;
int val; /* many things */
{
HIBS hibs = HibsFromHwndIb(hwnd);
struct IBB *pibb = PibbFromHibsIibb(hibs, iibb);
HDLG hdlg;
switch (pibb->ibit)
{
case ibitDlgItem:
{
TMC tmc = pibb->tmc;
hdlg = HdlgHibsDlgCur(hibs);
SetTmcVal(tmc,val);
HdlgSetCurDlg(hdlg);
break;
}
case ibitToggleText:
case ibitToggleBmp:
/* val: -1 - gray
0 - off
+1 - on */
{
int fOn = (val > 0);
int fGray = (val < 0);
if (fGray != pibb->fGray)
{
pibb->fGray = fGray;
pibb->fOn = fOn;
#ifdef WIN23
/* also done in TurnOnToggle. If fOn and fHilite,
the button won't get lit, so be sure to turn
off fHilite when not needed.
*/
if (vsci.fWin3Visuals)
pibb->fHilite = fFalse;
#endif /* WIN23 */
UpdateIibb(hibs, iibb, fFalse);
}
else
TurnOnToggle(hwnd, pibb, fOn);
break;
}
case ibitText:
/* val is pch to text */
SetIibbTextHwndIb(hwnd, iibb, val);
break;
#ifdef DEBUG
default:
Assert(fFalse);
break;
#endif /* DEBUG */
}
}
/* S E L E C T R A D I O I I B B */
/* %%Function:SelectRadioIibb %%Owner:peterj */
SelectRadioIibb(hwnd, iibbFirst, iibbLast, iibbSelect, fGray)
HWND hwnd;
int iibbFirst, iibbLast, iibbSelect;
BOOL fGray;
{
int val;
for (; iibbFirst <= iibbLast; iibbFirst++)
{
val = 0; /* default is off */
if (iibbSelect == iibbNil) /* all off or gray */
{
if (fGray)
val = -1;
}
else if (iibbSelect == iibbFirst)
{
if (fGray)
val = -1;
else
val = 1;
}
SetValIibbHwndIb(hwnd, iibbFirst, val);
}
}
/* Rounded toggle routines */
/* %%Function:GetToggleRc %%Owner:peterj */
NATIVE GetToggleRc(prc, prcInside)
struct RC *prc;
struct RC *prcInside;
{
int dxp = vsci.dxpBorder << 1;
int dyp = vsci.dypBorder << 1;
#ifdef WIN23
if (vsci.fWin3Visuals)
{
*prcInside = *prc;
return;
}
#endif /* WIN23 */
prcInside->xpLeft = prc->xpLeft + dxp;
prcInside->xpRight = prc->xpRight - dxp;
prcInside->ypTop = prc->ypTop + dyp;
prcInside->ypBottom = prc->ypBottom - dyp;
}
/* %%Function:SetRgRcs %%Owner:peterj */
NATIVE SetRgRcs(i, fVert, xp, yp, dzp, rgrc1, rgrc2)
int i;
BOOL fVert;
int xp, yp, dzp;
struct RC rgrc1[], rgrc2[];
{
struct DRC drc;
drc.xp = xp;
drc.yp = yp;
drc.dxp = fVert ? vsci.dxpBorder : dzp;
drc.dyp = fVert ? dzp : vsci.dypBorder;
if (rgrc1)
DrcToRc(&drc, rgrc1 + i);
if (fVert)
drc.xp += vsci.dxpBorder;
else
drc.yp += vsci.dypBorder;
if (rgrc2)
DrcToRc(&drc, rgrc2 + i);
}
#define crcNor 8
#define crcInv 4
/* if non-null, rgrcs must have crcNor/Inv elements */
/* %%Function:GetToggleBorderRcs %%Owner:peterj */
NATIVE GetToggleBorderRcs(prc, rgrcNor, rgrcInv)
struct RC *prc;
struct RC rgrcNor[];
struct RC rgrcInv[];
{
int dxp1 = vsci.dxpBorder;
int dxp2 = dxp1 << 1;
int dxp4 = dxp2 << 1;
int dyp1 = vsci.dypBorder;
int dyp2 = dyp1 << 1;
int dyp4 = dyp2 << 1;
int dxp, dyp;
struct RC rc;
if (rgrcNor != NULL)
SetBytes(rgrcNor, 0, sizeof(struct RC)*crcNor);
if (rgrcInv != NULL)
SetBytes(rgrcInv, 0, sizeof(struct RC)*crcInv);
rc = *prc;
dxp = rc.xpRight - rc.xpLeft;
dyp = rc.ypBottom - rc.ypTop;
if (dxp - dxp4 < dxp2 || dyp - dyp4 < dyp2)
/* if toggle too small, resort to rectangle */
{
#ifdef DEBUG
static BOOL fReported = fFalse;
if (!fReported)
{
fReported = fTrue;
ReportSz("res to low for round rect");
}
#endif /* DEBUG */
SetRgRcs(0, fTrue, rc.xpLeft, rc.ypTop, dyp, rgrcNor, NULL);
SetRgRcs(1, fTrue, rc.xpRight-dxp2, rc.ypTop, dyp, NULL, rgrcNor);
SetRgRcs(2, fFalse, rc.xpLeft, rc.ypTop, dxp, rgrcNor, NULL);
SetRgRcs(3, fFalse, rc.xpLeft, rc.ypBottom-dyp2, dxp, NULL, rgrcNor);
return;
}
/* left */
SetRgRcs(0, fTrue, rc.xpLeft, rc.ypTop+dyp2, dyp-dyp4,
rgrcNor, rgrcInv);
/* Right */
SetRgRcs(1, fTrue, rc.xpRight-dxp2, rc.ypTop+dyp2, dyp-dyp4,
rgrcInv, rgrcNor);
/* Top */
SetRgRcs(2, fFalse, rc.xpLeft+dxp2, rc.ypTop, dxp-dxp4,
rgrcNor, rgrcInv);
/* Bottom */
SetRgRcs(3, fFalse, rc.xpLeft+dxp2, rc.ypBottom-dyp2, dxp-dxp4,
rgrcInv, rgrcNor);
/* top left */
SetRgRcs(4, fFalse, rc.xpLeft+dxp1, rc.ypTop+dyp1, dxp1, rgrcNor, NULL);
/* top right */
SetRgRcs(5, fFalse, rc.xpRight-dxp2, rc.ypTop+dyp1, dxp1, rgrcNor, NULL);
/* bottom left */
SetRgRcs(6, fFalse, rc.xpLeft+dxp1, rc.ypBottom-dyp2, dxp1, rgrcNor, NULL);
/* bottom right */
SetRgRcs(7, fFalse, rc.xpRight-dxp2, rc.ypBottom-dyp2, dxp1, rgrcNor, NULL);
}
/* P A I N T B O R D E R S */
/* %%Function:PaintBorders %%Owner:peterj */
PaintBorders(hdc, pibb)
HDC hdc;
struct IBB *pibb;
{
int irc;
HBRUSH hbrSave = SelectObject(hdc, vsci.hbrBorder);
struct RC *prc, *prcMax;
struct RC rgrcNor[crcNor], rgrcInv[crcInv];
GetToggleBorderRcs(&pibb->rc, rgrcNor, rgrcInv);
for (prc = rgrcNor, prcMax = prc+crcNor; prc < prcMax; prc++)
PatBltRc(hdc, prc, PATCOPY);
if (pibb->fOn || !pibb->fHilite)
SelectObject(hdc, vsci.hbrBkgrnd);
for (prc = rgrcInv, prcMax = prc+crcInv; prc < prcMax; prc++)
{
PatBltRc(hdc, prc, PATCOPY);
if (pibb->fOn && !pibb->fHilite)
InvertRect(hdc, (LPRECT)prc);
}
if (hbrSave != NULL)
SelectObject(hdc, hbrSave);
}
/* H I L I T E B O R D E R */
/* %%Function:HiliteBorder %%Owner:peterj */
#ifdef WIN23
ToggleButton2(hwnd, iibb, fHilite)
#else
HiliteBorder(hwnd, iibb, fHilite)
#endif /* WIN23 */
HWND hwnd;
int iibb;
BOOL fHilite;
{
HIBS hibs = HibsFromHwndIb(hwnd);
struct IBB *pibb = PibbFromHibsIibb(hibs, iibb);
HDC hdc;
Assert(pibb->ibit == ibitToggleText || pibb->ibit == ibitToggleBmp);
if (fHilite == pibb->fHilite || (hdc = GetDC(hwnd)) == NULL)
return;
pibb->fHilite = fHilite;
PaintBorders(hdc, pibb);
ReleaseDC (hwnd, hdc);
}
/* T U R N O N T O G G L E */
/* %%Function:TurnOnToggle %%Owner:peterj */
TurnOnToggle(hwnd, pibb, fOn)
HWND hwnd;
struct IBB *pibb;
BOOL fOn;
{
HDC hdc;
struct RC rcInside;
#ifdef WIN23
if (fOn == pibb->fOn && !(vsci.fWin3Visuals && pibb->fHilite))
#else
if (fOn == pibb->fOn)
#endif /* WIN23 */
return;
pibb->fOn = fOn;
#ifdef WIN23
pibb->fHilite = fFalse;
#endif /* WIN23 */
if (!IsWindowVisible(hwnd))
return;
if ((hdc = GetDC(hwnd)) == NULL)
return;
#ifdef WIN23
if (vsci.fWin3Visuals)
{
FSetDcAttribs(hdc, vsci.dccIconBar);
SetBkColor( hdc, vdbmgDevice != dbmgEGA3 ? rgbLtGray : rgbGray);
PaintToggle3(hwnd, hdc, pibb);
}
else
{
GetToggleRc(&pibb->rc, &rcInside);
InvertRect(hdc, (LPRECT)&rcInside);
PaintBorders(hdc, pibb);
}
#else
GetToggleRc(&pibb->rc, &rcInside);
InvertRect(hdc, (LPRECT)&rcInside);
PaintBorders(hdc, pibb);
#endif /* WIN23 */
ReleaseDC (hwnd, hdc);
}
/* P A I N T T O G G L E */
/* %%Function:PaintToggle %%Owner:peterj */
#ifdef WIN23
PaintToggle2(hwnd, hdc, pibb)
#else
PaintToggle(hwnd, hdc, pibb)
#endif /* WIN23 */
HWND hwnd;
HDC hdc;
struct IBB *pibb;
{
struct RC rc;
if (!IsWindowVisible(hwnd))
return;
FreezeHp();
GetToggleRc(&pibb->rc, &rc);
if (pibb->ibit == ibitToggleBmp)
{
int idrb = pibb->idrb;
int idcb = pibb->idcb;
struct BMI *pbmi;
struct MDCD *pmdcd;
int xpSrc;
pmdcd = PmdcdCacheIdrb(idrb, hdc);
if (pmdcd != NULL)
{
pbmi = &mpidrbbmi[idrb];
xpSrc = idcb * pbmi->dxpEach;
if (pibb->fGray)
xpSrc += (pbmi->dxp>>1);
BitBlt(hdc, rc.xpLeft, rc.ypTop,
pbmi->dxpEach, pbmi->dyp,
pmdcd->hdc,
xpSrc, 0,
vsci.dcibScreen.ropBitBlt);
}
else
PatBltRc(hdc, &rc, vsci.ropErase);
}
else if /* ibitToggleText */
(pibb->hsz != hNil)
IbTextOut(hdc, &rc, *pibb->hsz, fTrue, pibb->fGray);
PaintBorders(hdc, pibb);
if (pibb->fOn)
InvertRect(hdc, (LPRECT)&rc);
MeltHp();
}
/* I B T E X T O U T */
/* %%Function:IbTextOut %%Owner:peterj */
#ifdef WIN23
IbTextOut2(hdc, prc, pch, fCenter, fGray)
#else
IbTextOut(hdc, prc, pch, fCenter, fGray)
#endif /* WIN23 */
HDC hdc;
struct RC *prc;
CHAR *pch;
BOOL fCenter, fGray;
{
int cch, ichAcc = -1;
int xp, yp, dxp, dyp;
CHAR *pchDest;
CHAR rgch[256];
/* copy string looking for accelerators */
for (pchDest = rgch; *pch; pch++)
if (*pch != '&')
*pchDest++ = *pch;
else
ichAcc = pchDest - rgch;
cch = pchDest - rgch;
Assert(cch < 256);
*pchDest = 0;
#ifdef WIN23
if (vsci.fWin3)
dxp = LOWORD(GetTextExtent(hdc, (LPSTR)rgch, cch));
else
#endif /* WIN23 */
dxp = vsci.dxpTmWidth * cch;
dyp = vsci.dypTmHeight;
if (fCenter)
{
xp = prc->xpLeft + (prc->xpRight - prc->xpLeft - dxp)/2;
yp = prc->ypTop + (prc->ypBottom - prc->ypTop - dyp)/2
- vsci.dypBorder + (vsci.dypTmInternalLeading < 2);
}
else
{
xp = prc->xpLeft;
yp = prc->ypTop;
}
if (fGray)
{
PatBltRc(hdc, prc, vsci.dcibScreen.ropErase);
/* Note: this is a work-around for a Windows bug. GrayString calls
BltColor, which sets the text and background colors to black and white
respectively. When that gets fixed, this code can be taken out. (LATER)
-mattb, 8/16/88
*/
{
DWORD dwBkColorSav, dwTextColorSav;
dwTextColorSav = GetTextColor(hdc);
dwBkColorSav = GetBkColor(hdc);
GrayString(hdc, NULL, (FARPROC)NULL, (LPSTR)rgch, cch,
xp, yp, dxp, dyp);
SetTextColor(hdc, dwTextColorSav);
SetBkColor(hdc, dwBkColorSav);
}
}
else
{
ExtTextOut(hdc, xp, yp, ETO_OPAQUE|ETO_CLIPPED, (LPRECT)prc,
(LPSTR)rgch, cch, NULL);
/* draw accelerators */
if (ichAcc >= 0 && ichAcc < cch)
{
HBRUSH hbrOld = SelectObject(hdc, vsci.hbrText);
PatBlt(hdc, xp+(ichAcc * vsci.dxpTmWidth),
yp+vsci.dypTmAscent+vsci.dypBorder, vsci.dxpTmWidth,
vsci.dypBorder, PATCOPY);
if (hbrOld != NULL)
SelectObject(hdc, hbrOld);
}
}
}
#ifdef WIN23
PaintToggle(hwnd, hdc, pibb)
HWND hwnd;
HDC hdc;
struct IBB *pibb;
{
if (vsci.fWin3Visuals)
PaintToggle3(hwnd, hdc, pibb);
else
PaintToggle2(hwnd, hdc, pibb);
}
/************************************************************************
Win2/3 visual layer routines
************************************************************************/
ToggleButton(hwnd, iibb, fDown)
HWND hwnd;
int iibb;
BOOL fDown;
{
if (vsci.fWin3Visuals)
ToggleButton3(hwnd, iibb, fDown);
else
ToggleButton2(hwnd, iibb, fDown);
}
IbTextOut(hdc, prc, pch, fCenter, fGray)
HDC hdc;
struct RC *prc;
CHAR *pch;
BOOL fCenter, fGray;
{
if (vsci.fWin3Visuals)
IbTextOut3(hdc, prc, pch, fCenter, fGray);
else
IbTextOut2(hdc, prc, pch, fCenter, fGray);
}
/*************************************************************************
Routine used only for the Win 3 Visuals
*************************************************************************/
DrawShadowLines(hwnd, hdc, fAbove, fBelow)
HWND hwnd;
HDC hdc;
BOOL fAbove, fBelow;
{ /* draw shadow lines */
struct RC rc;
HBRUSH hbrOld;
GetClientRect( hwnd, &rc );
hbrOld = SelectObject(hdc, vhbrWhite);
if (fAbove)
PatBlt(hdc, rc.xpLeft, rc.ypTop, rc.xpRight - rc.xpLeft,
1, PATCOPY);
SelectObject(hdc, vhbrGray);
if (fBelow)
PatBlt(hdc, rc.xpLeft, rc.ypBottom-1, rc.xpRight - rc.xpLeft,
1, PATCOPY);
if (hbrOld)
SelectObject(hdc, hbrOld);
}
ToggleButton3(hwnd, iibb, fDown)
HWND hwnd;
int iibb;
BOOL fDown;
{
HIBS hibs = HibsFromHwndIb(hwnd);
struct IBB *pibb = PibbFromHibsIibb(hibs, iibb);
HDC hdc;
Assert(pibb->ibit == ibitToggleText || pibb->ibit == ibitToggleBmp);
if (fDown == pibb->fHilite || (hdc = GetDC(hwnd)) == NULL)
return;
pibb->fHilite = fDown;
FSetDcAttribs(hdc, vsci.dccIconBar);
SetBkColor( hdc, vdbmgDevice != dbmgEGA3 ? rgbLtGray : rgbGray);
PaintToggle3(hwnd, hdc, pibb);
ReleaseDC (hwnd, hdc);
}
/* P A I N T T O G G L E */
/* %%Function:PaintToggle %%Owner:ricks */
PaintToggle3(hwnd, hdc, pibb)
HWND hwnd;
HDC hdc;
struct IBB *pibb;
{
struct RC rc;
struct RC rcInvert;
int fThickShadow = pibb->fHilite;
/* only use thick shadow when hilited */
int fLit = (pibb->fOn && !pibb->fGray) && !fThickShadow;
/* lit face if on and not gray and not hilited */
int fDown = fThickShadow || fLit; /* hilited, or on and not gray */
/* down if hilited or lit */
int dxp = vsci.dxpBorder;
int dyp = vsci.dypBorder;
if (!IsWindowVisible(hwnd))
return;
FreezeHp();
GetToggleRc(&pibb->rc, &rc);
/* do outer border */
DrawButtonBorder(hdc, vsci.rgbBorder, &rc, fDown, pibb->fDontEraseTopLine);
/* deflate by size of border */
rc.xpLeft += dxp;
rc.ypBottom -= dyp;
rc.xpRight -= dxp;
rc.ypTop += dyp;
/* fill inside with lt. grey or dithered white/grey */
if (fLit)
{
LONG clrSav = SetTextColor(hdc, rgbWhite);
HBRUSH hbrOld = SelectObject(hdc, vsci.hbrLitButton);
PatBltRc(hdc, &rc, ROP_DPo);
if (hbrOld)
SelectObject(hdc, hbrOld);
SetTextColor(hdc, clrSav);
}
else
{
LONG clrSav = SetBkColor(hdc, vsci.rgbButtonFace);
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
SetBkColor(hdc, clrSav);
}
/* use DrawButtonShadow to draw shadow */
DrawButtonShadow(hdc, &rc, fThickShadow, fDown);
if (pibb->ibit == ibitToggleBmp)
{
int idrb = pibb->idrb ;
int idcb = pibb->idcb;
struct BMI *pbmi;
struct MDCD *pmdcd;
int xpSrc;
/* do the inside */
idrb += pibb->fGray; /* gray set is 1 after regular set */
pmdcd = PmdcdCacheIdrb(idrb, hdc);
if (pmdcd != NULL)
{
pbmi = &mpidrbbmi[idrb];
xpSrc = idcb * pbmi->dxpEach;
/* review */
BitBlt(hdc, rc.xpLeft + (3 * dxp) + fDown,
rc.ypTop + (3 * dyp) + fDown - fLit - pibb->fAddOnePixel,
pbmi->dxpEach, pbmi->dyp,
pmdcd->hdc,
xpSrc, 0,
pibb->fGray ? SRCCOPY : SRCAND);
}
else
PatBltRc(hdc, &rc, vsci.ropErase);
}
else if (pibb->hsz != hNil)
{
REC rec;
/* ibitToggleText */
/* deflate by size of shadow and shift for down */
if (fDown)
{
rc.xpLeft += 2 * dxp;
/* rc.ypBottom -= dyp - fDown; */
/* rc.xpRight -= dxp - fDown; */
rc.ypTop += 2 * dyp;
}
else
{
rc.xpLeft += dxp;
rc.ypBottom -= 2 * dyp;
rc.xpRight -= 2 * dxp;
rc.ypTop += dyp + 1;
}
IbTextOut(hdc, &rc, *pibb->hsz, fTrue, pibb->fGray);
}
MeltHp();
}
DrawButtonBorder(hdc, clr, prc, fDown, fDontEraseTopLine)
HDC hdc;
DWORD clr;
struct RC *prc;
WORD fDontEraseTopLine;
{
struct RC rc;
DWORD clrSav;
if (fDown)
{ /* erase old top border */
if (fDontEraseTopLine)
prc->ypTop += 1; /* drop top line by one pixel */
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, prc, NULL, 0, (LPINT)NULL);
if (!fDontEraseTopLine)
prc->ypTop += 1; /* drop top line by one pixel */
}
clrSav = SetBkColor(hdc, clr);
// Bottom line.
rc.xpLeft = prc->xpLeft + vsci.dxpBorder;
rc.xpRight = prc->xpRight - vsci.dxpBorder;
rc.ypTop = prc->ypBottom - vsci.dypBorder;
rc.ypBottom = prc->ypBottom;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
// Top line.
rc.ypTop = prc->ypTop;
rc.ypBottom = prc->ypTop + vsci.dypBorder;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
// Left line.
rc.xpLeft = prc->xpLeft;
rc.xpRight = prc->xpLeft + vsci.dxpBorder;
rc.ypTop = prc->ypTop + vsci.dypBorder;
rc.ypBottom = prc->ypBottom - vsci.dypBorder;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
// Right line.
rc.xpLeft = prc->xpRight - vsci.dxpBorder;
rc.xpRight = prc->xpRight;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
SetBkColor(hdc, clrSav);
}
DrawButtonShadow(hdc, prc, fThickShadow, fPushed)
HDC hdc;
struct RC *prc;
BOOL fThickShadow;
BOOL fPushed;
{
struct RC rc;
DWORD clrSav;
if (fPushed)
{
clrSav = SetBkColor(hdc, vsci.rgbButtonShadow);
// Draw upper part of shadow.
rc.xpLeft = prc->xpLeft;
rc.xpRight = prc->xpRight;
rc.ypTop = prc->ypTop;
rc.ypBottom = prc->ypTop + vsci.dypBorder;
if (fThickShadow)
rc.ypBottom += vsci.dypBorder;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
// Draw lower part of shadow.
rc.xpRight = prc->xpLeft + vsci.dxpBorder;
if (fThickShadow)
rc.xpRight += vsci.dxpBorder;
rc.ypTop += vsci.dypBorder;
rc.ypBottom = prc->ypBottom;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
}
else
{
/****
in case we were down, we need to erase
leftover dark gray on line below
****/
clrSav = SetBkColor(hdc, vsci.rgbButtonFace);
rc.xpLeft = prc->xpLeft;
rc.xpRight = prc->xpRight - vsci.dxpBorder;
rc.ypTop = prc->ypTop + vsci.dypBorder;
rc.ypBottom = prc->ypTop + 2 * vsci.dypBorder;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
SetBkColor(hdc, rgbWhite);
// Draw top highlight:
rc.ypTop -= vsci.dypBorder;
rc.ypBottom -= vsci.dypBorder;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
rc.ypBottom = prc->ypBottom - (vsci.dypBorder << 1);
// Draw right highlight.
rc.ypTop += vsci.dypBorder;
rc.ypBottom += vsci.dypBorder;
rc.xpRight = rc.xpLeft + vsci.dxpBorder;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
// Draw bottom shadow.
SetBkColor(hdc, vsci.rgbButtonShadow);
rc.xpRight = prc->xpRight;
rc.ypTop = prc->ypBottom - vsci.dypBorder;
rc.ypBottom = rc.ypTop + vsci.dypBorder;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
rc.xpLeft += vsci.dxpBorder;
rc.ypTop -= vsci.dypBorder;
rc.ypBottom -= vsci.dypBorder;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
// Draw right shadow.
rc.ypBottom = prc->ypBottom - (vsci.dypBorder << 1);
rc.xpLeft = rc.xpRight - vsci.dxpBorder;
rc.ypTop = prc->ypTop;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
rc.xpLeft -= vsci.dxpBorder;
rc.xpRight -= vsci.dxpBorder;
rc.ypTop += vsci.dypBorder;
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, NULL, 0, (LPINT)NULL);
}
SetBkColor(hdc, clrSav);
}
/* I B T E X T O U T */
/* %%Function:IbTextOut3 %%Owner:ricks */
IbTextOut3(hdc, prc, pch, fCenter, fGray)
HDC hdc;
struct RC *prc;
CHAR *pch;
BOOL fCenter, fGray;
{
int cch, ichAcc = -1;
int xp, yp, dxp, dyp;
CHAR *pchDest;
CHAR rgch[256];
/* copy string looking for accelerators */
for (pchDest = rgch; *pch; pch++)
if (*pch != '&')
*pchDest++ = *pch;
else
ichAcc = pchDest - rgch;
cch = pchDest - rgch;
Assert(cch < 256);
*pchDest = 0;
dxp = LOWORD(GetTextExtent(hdc, (LPSTR)rgch, cch));
dyp = vsci.dypTmHeight;
if (fCenter)
{
xp = prc->xpLeft + (prc->xpRight - prc->xpLeft - dxp)/2;
yp = prc->ypTop + (prc->ypBottom - prc->ypTop - dyp)/2
- vsci.dypBorder + (vsci.dypTmInternalLeading < 2);
}
else
{
xp = prc->xpLeft;
yp = prc->ypTop;
}
if (fGray)
{
/* Note: this is a work-around for a Windows bug. GrayString calls
BltColor, which sets the text and background colors to black and white
respectively. When that gets fixed, this code can be taken out. (LATER)
-mattb, 8/16/88
*/
{
DWORD dwBkColorSav, dwTextColorSav;
dwTextColorSav = GetTextColor(hdc);
dwBkColorSav = GetBkColor(hdc);
GrayString(hdc, vsci.hbrButtonText, (FARPROC)NULL, (LPSTR)rgch, cch,
xp, yp, dxp, dyp);
SetTextColor(hdc, dwTextColorSav);
SetBkColor(hdc, dwBkColorSav);
}
}
else
{
short bkmode = SetBkMode(hdc, TRANSPARENT);
DWORD rgbSave = SetTextColor(hdc, vsci.rgbButtonText);
ExtTextOut(hdc, xp, yp, ETO_CLIPPED, (LPRECT)prc,
(LPSTR)rgch, cch, NULL);
/* draw accelerators */
if (ichAcc >= 0 && ichAcc < cch)
{
HBRUSH hbrOld = SelectObject(hdc, vsci.hbrButtonText);
PatBlt(hdc, xp+LOWORD(GetTextExtent(hdc, (LPSTR)rgch, ichAcc)),
yp+vsci.dypTmAscent+vsci.dypBorder,
LOWORD(GetTextExtent(hdc, (LPSTR)&rgch[ichAcc], 1)),
vsci.dypBorder, PATCOPY);
if (hbrOld != NULL)
SelectObject(hdc, hbrOld);
}
SetTextColor(hdc, rgbSave);
SetBkMode(hdc, bkmode);
}
}
#endif /* WIN23 */
|
adobe-uxp/devtools-cli
|
packages/uxp-devtools-core/src/core/service/PluginSessionMgr.js
|
/* eslint-disable camelcase */
/*
* Copyright 2020 Adobe Systems Incorporated. All rights reserved.
* This file is licensed 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 REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*
*/
class PluiginDetails {
constructor(pluginId, pluginPath, hostPlugInSessionId, appInfo) {
this.hostPlugInSessionId = hostPlugInSessionId;
this.appInfo = appInfo;
this.pluginPath = pluginPath;
this.pluginId = pluginId;
}
setCDTClient(cdtClient) {
this.cdtClient = cdtClient;
}
getCDTClient() {
return this.cdtClient;
}
}
function isAppSame(a1, a2) {
return a1.appId === a2.appId && a1.appVersion === a2.appVersion;
}
class PluginSessionMgr {
constructor() {
this._pluginSessions = new Map();
this._hostClientSessionIdMap = new Map();
}
getPluginFromHostSessionId(hostPluginSessionId) {
let plugin = null;
this._pluginSessions.forEach((ps) => {
if (ps.hostPlugInSessionId === hostPluginSessionId) {
plugin = ps;
}
});
return plugin;
}
getAppClientFromSessionId(clientsList, clientSessionId) {
const pluginSession = this.getPluginFromSessionId(clientSessionId);
if (!pluginSession) {
return null;
}
let appClient = null;
clientsList.forEach((client) => {
if (client.type === "app") {
if (isAppSame(client.appInfo, pluginSession.appInfo)) {
appClient = client;
}
}
});
return appClient;
}
getHostSessionIdFromClientId(clientSessionId) {
return this._hostClientSessionIdMap.get(clientSessionId);
}
getPluginFromSessionId(clientSessionId) {
const hostPluginSessionId = this.getHostSessionIdFromClientId(clientSessionId);
return this._pluginSessions.get(hostPluginSessionId);
}
addPlugin(pluginId, pluginPath, hostPlugInSessionId, appInfo, clientSessionId) {
const plugin = new PluiginDetails(pluginId, pluginPath, hostPlugInSessionId, appInfo);
if(clientSessionId !== null) {
this._clearHostSessionForClientSessionId(clientSessionId);
}
clientSessionId = clientSessionId != null ? clientSessionId : hostPlugInSessionId;
this._pluginSessions.set(hostPlugInSessionId, plugin);
this._hostClientSessionIdMap.set(clientSessionId, hostPlugInSessionId);
return clientSessionId;
}
_clearHostSessionForClientSessionId(clientSessionId) {
const hostSessionId = this._hostClientSessionIdMap.get(clientSessionId);
this._pluginSessions.delete(hostSessionId);
}
removePlugin(plugin) {
this._pluginSessions.delete(plugin.hostPlugInSessionId);
}
restorePluginSessionOfApp(appClient) {
const ainfo = appClient.appInfo;
const appPlugins = [];
this._pluginSessions.forEach((plugin) => {
if (isAppSame(plugin.appInfo, ainfo)) {
appPlugins.push(plugin);
}
});
for (const plugin of appPlugins) {
appClient.loadPlugin(plugin);
}
}
}
module.exports = PluginSessionMgr;
|
aronasorman/kolibri
|
kolibri/plugins/coach/hooks.py
|
from __future__ import absolute_import, print_function, unicode_literals
from kolibri.core.webpack import hooks as webpack_hooks
class CoachToolsSyncHook(webpack_hooks.WebpackInclusionHook):
"""
Inherit a hook defining assets to be loaded synchronously in coach/coach.html
"""
class Meta:
abstract = True
class CoachToolsAsyncHook(webpack_hooks.WebpackInclusionHook):
"""
Inherit a hook defining assets to be loaded asynchronously in coach/coach.html
"""
class Meta:
abstract = True
|
CamdenFoucht/ask-cli
|
test/unit/commands/skill/add-locales/index-test.js
|
<gh_stars>10-100
const { expect } = require('chai');
const sinon = require('sinon');
const AddLocalesCommand = require('@src/commands/skill/add-locales');
const helper = require('@src/commands/skill/add-locales/helper');
const optionModel = require('@src/commands/option-model');
const ui = require('@src/commands/skill/add-locales/ui');
const profileHelper = require('@src/utils/profile-helper');
const Messenger = require('@src/view/messenger');
describe('Commands add-locales test - command class test', () => {
const TEST_DEBUG = false;
let infoStub;
let errorStub;
let warnStub;
beforeEach(() => {
infoStub = sinon.stub();
errorStub = sinon.stub();
warnStub = sinon.stub();
sinon.stub(Messenger, 'getInstance').returns({
info: infoStub,
error: errorStub,
warn: warnStub
});
});
afterEach(() => {
sinon.restore();
});
it('| validate command information is set correctly', () => {
const instance = new AddLocalesCommand(optionModel);
expect(instance.name()).equal('add-locales');
expect(instance.description()).equal('add new locale(s) from existing locale or from the template');
expect(instance.requiredOptions()).deep.equal([]);
expect(instance.optionalOptions()).deep.equal(['profile', 'debug']);
});
describe('validate command handle', () => {
const TEST_ERROR = 'command error';
const TEST_PROFILE = 'profile';
const TEST_LOCALES_LIST = ['1', '2', '3'];
const TEST_LOCALES_SOURCE_MAP = new Map([
['1', 'file1'],
['2', 'file2'],
['3', 'file3'],
]);
let instance;
beforeEach(() => {
instance = new AddLocalesCommand(optionModel);
});
afterEach(() => {
sinon.restore();
});
it('| profile fails to get the runtime profile, expect error message error out', (done) => {
// setup
const TEST_CMD = {
debug: TEST_DEBUG
};
sinon.stub(profileHelper, 'runtimeProfile').throws(TEST_ERROR);
// call
instance.handle(TEST_CMD, (err) => {
// verify
expect(err.name).equal(TEST_ERROR);
expect(errorStub.args[0][0].name).equal(TEST_ERROR);
expect(infoStub.callCount).equal(0);
expect(warnStub.callCount).equal(0);
done();
});
});
it('| helper fails to initiate proj models, expect error message error out', (done) => {
// setup
const TEST_CMD = {
debug: TEST_DEBUG
};
sinon.stub(profileHelper, 'runtimeProfile').returns(TEST_PROFILE);
sinon.stub(helper, 'initiateModels').throws(TEST_ERROR);
// call
instance.handle(TEST_CMD, (err) => {
// verify
expect(err.name).equal(TEST_ERROR);
expect(errorStub.args[0][0].name).equal(TEST_ERROR);
expect(infoStub.callCount).equal(0);
expect(warnStub.callCount).equal(0);
done();
});
});
it('| select locales fails with error, expect error message error out', (done) => {
// setup
const TEST_CMD = {
debug: TEST_DEBUG
};
sinon.stub(profileHelper, 'runtimeProfile').returns(TEST_PROFILE);
sinon.stub(helper, 'initiateModels').returns(null);
sinon.stub(ui, 'selectLocales').callsArgWith(1, TEST_ERROR);
// call
instance.handle(TEST_CMD, (err) => {
// verify
expect(err).equal(TEST_ERROR);
expect(errorStub.args[0][0]).equal(TEST_ERROR);
expect(infoStub.callCount).equal(0);
expect(warnStub.callCount).equal(0);
done();
});
});
it('| add locales fails with error, expect error message error out', (done) => {
// setup
const TEST_CMD = {
debug: TEST_DEBUG
};
sinon.stub(profileHelper, 'runtimeProfile').returns(TEST_PROFILE);
sinon.stub(helper, 'initiateModels').returns(null);
sinon.stub(ui, 'selectLocales').callsArgWith(1, undefined, TEST_LOCALES_LIST);
sinon.stub(helper, 'addLocales').callsArgWith(3, TEST_ERROR);
// call
instance.handle(TEST_CMD, (err) => {
// verify
expect(err).equal(TEST_ERROR);
expect(errorStub.args[0][0]).equal(TEST_ERROR);
expect(infoStub.callCount).equal(0);
expect(warnStub.callCount).equal(0);
done();
});
});
it('| cmd executes without error, expect callback without error', (done) => {
// setup
const TEST_CMD = {
debug: TEST_DEBUG
};
sinon.stub(profileHelper, 'runtimeProfile').returns(TEST_PROFILE);
sinon.stub(helper, 'initiateModels').returns(null);
sinon.stub(ui, 'selectLocales').callsArgWith(1, undefined, TEST_LOCALES_LIST);
sinon.stub(helper, 'addLocales').callsArgWith(3, undefined, TEST_LOCALES_SOURCE_MAP);
sinon.stub(ui, 'displayAddLocalesResult').returns(null);
// call
instance.handle(TEST_CMD, (err) => {
// verify
expect(err).equal(undefined);
expect(errorStub.callCount).equal(0);
expect(infoStub.callCount).equal(0);
expect(warnStub.callCount).equal(0);
done();
});
});
});
});
|
kanishkan/tce
|
tce/src/procgen/MachInfo/MachInfo.cc
|
/*
Copyright (c) 2014 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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.
*/
/**
* @file MachInfo.cc
*
* MachInfo tool prints out information of a given processor design,
* for documentation purposes.
*
* @author <NAME> 2014
*/
#include "Machine.hh"
#include "ControlUnit.hh"
#include "MachInfoCmdLineOptions.hh"
#include "OperationPool.hh"
#include "HWOperation.hh"
#include "Operation.hh"
#include "Conversion.hh"
#include "FUPort.hh"
#include <iostream>
#include <fstream>
#include <stdlib.h>
static MachInfoCmdLineOptions options;
TCEString
operandBindingsString(TTAMachine::HWOperation& hwop) {
OperationPool OSAL;
Operation* osalOp = &OSAL.operation(hwop.name().c_str());
if (osalOp == &NullOperation::instance()) {
return TCEString("");
}
TCEString operandBindings = "";
for (int i = 1; i < osalOp->operandCount() + 1; i++) {
if (hwop.port(i) == NULL) {
std::cerr << "Warning: Operand " << i << " of " << hwop.name()
<< " was not bound to any port." << std::endl;
continue;
}
if (i > 1) {
operandBindings += ", ";
}
operandBindings += Conversion::toString(i) + ": "
+ hwop.port(i)->name();
}
return operandBindings;
}
void
printLatexFunctionUnitDescription(const TTAMachine::Machine& machine,
std::ofstream& output) {
OperationPool OSAL;
output << "\\begin{longtable}{|l|p{7cm}|p{3.5cm}|}" << std::endl;
TTAMachine::Machine::FunctionUnitNavigator nav = machine
.functionUnitNavigator();
for (int i = 0; i < nav.count(); ++i) {
TTAMachine::FunctionUnit& fu = *nav.item(i);
output << "\\hline" << std::endl;
// TODO: print description here
TCEString fuDescription;
if (fu.hasAddressSpace()) {
fuDescription << " Accesses address space \\textbf{"
<< fu.addressSpace()->name() << "}.\n";
}
output << fu.name() << "\t& \\multicolumn{2}{p{10cm}|}{"
<< fuDescription << "} \\\\" << std::endl;
output << "\\hline" << std::endl;
for (int op = 0; op < fu.operationCount(); ++op) {
TTAMachine::HWOperation& hwop = *fu.operation(op);
Operation* osalOp = NULL;
TCEString description;
TCEString operandBindings;
if (&OSAL.operation(hwop.name().c_str())
!= &NullOperation::instance()) {
osalOp = &OSAL.operation(hwop.name().c_str());
description = osalOp->description();
operandBindings = operandBindingsString(hwop);
} else {
std::cerr << "warning: Could not find OSAL data for operation '"
<< hwop.name() << "." << std::endl;
}
TCEString opname = hwop.name();
opname = opname.replaceString("_", "\\_");
operandBindings = operandBindings.replaceString("_", "\\_");
output << "\\footnotesize{" << opname << " (" << hwop.latency() - 1
<< ")} & \\footnotesize{" << description
<< "} & \\footnotesize{" << operandBindings << "}\\\\"
<< std::endl;
}
}
output << "\\hline" << std::endl;
output << "\\hline" << std::endl;
TTAMachine::FunctionUnit& fu = *machine.controlUnit();
output << fu.name() << "\t & control unit & \t \\\\" << std::endl;
output << "\\hline" << std::endl;
for (int op = 0; op < fu.operationCount(); ++op) {
TTAMachine::HWOperation& hwop = *fu.operation(op);
Operation* osalOp = NULL;
TCEString description;
if (&OSAL.operation(hwop.name().c_str())
!= &NullOperation::instance()) {
osalOp = &OSAL.operation(hwop.name().c_str());
description = osalOp->description();
} else {
std::cerr << "warning: Could not find OSAL data for operation '"
<< hwop.name() << "." << std::endl;
}
TCEString opname = hwop.name();
opname = opname.replaceString("_", "\\_");
output << opname << " (" << hwop.latency() - 1 << ") & \\small{"
<< description << "} & \\\\" << std::endl;
}
output << "\\hline" << std::endl;
output << "\\end{longtable}" << std::endl;
}
void
printLatexAddressSpaceDescription(const TTAMachine::Machine& machine,
std::ofstream& output) {
output << "\\begin{tabular}{|l|l|l|l|l|}" << std::endl;
output << "\\hline" << std::endl;
output << "name & start address & end address & width (b) & "
<< "numerical id(s) \\\\"
<< std::endl;
output << "\\hline" << std::endl;
TTAMachine::Machine::AddressSpaceNavigator nav =
machine.addressSpaceNavigator();
for (int i = 0; i < nav.count(); ++i) {
TTAMachine::AddressSpace& as = *nav.item(i);
if (&as == machine.controlUnit()->addressSpace())
continue;
output << as.name() << " & " << as.start() << " & " << as.end()
<< " & " << as.width() << " & ";
std::set<unsigned> ids = as.numericalIds();
for (std::set<unsigned>::iterator i = ids.begin(), e = ids.end();
i != e; ++i) {
output << *i << " ";
}
output << "\\\\" << std::endl;
}
output << "\\hline" << std::endl;
output << "\\hline" << std::endl;
TTAMachine::AddressSpace& as = *machine.controlUnit()->addressSpace();
output << as.name() << " & " << as.start() << " & " << as.end() << " & "
<< as.width() << " & ";
std::set<unsigned> ids = as.numericalIds();
for (std::set<unsigned>::iterator i = ids.begin(), e = ids.end(); i != e;
++i) {
output << *i << " ";
}
output << "\\\\" << std::endl;
output << "\\hline" << std::endl;
output << "\\end{tabular}" << std::endl;
}
int
main(int argc, char* argv[]) {
try {
options.parse(argv, argc);
} catch (const ParserStopRequest&) {
// In case --help was asked, or illegal command line parameters.
return EXIT_SUCCESS;
} catch (const IllegalCommandLine& exception) {
std::cerr << exception.errorMessage() << std::endl;
return EXIT_FAILURE;
}
if (options.numberOfArguments() != 1) {
std::cerr << "Single ADF file required." << std::endl;
return EXIT_FAILURE;
}
TCEString ADFFile = options.argument(1);
if (options.outputFormat() != "latex") {
std::cerr << "Unsupported output format." << std::endl;
return EXIT_FAILURE;
}
const TTAMachine::Machine* mach = NULL;
try {
mach = TTAMachine::Machine::loadFromADF(ADFFile);
} catch (const Exception& e) {
std::cerr << e.errorMessage() << std::endl;
return EXIT_FAILURE;
}
std::ofstream fuDescOutput;
std::ofstream asDescOutput;
try {
fuDescOutput.open(
(options.outputFileNameSuffix() + ".fu_table.tex").c_str(),
std::ios::trunc);
asDescOutput.open(
(options.outputFileNameSuffix() + ".as_table.tex").c_str(),
std::ios::trunc);
} catch (std::exception& e) {
std::cerr << e.what() << std::endl;
return EXIT_FAILURE;
}
if (options.outputFormat() == "latex") {
printLatexFunctionUnitDescription(*mach, fuDescOutput);
printLatexAddressSpaceDescription(*mach, asDescOutput);
}
fuDescOutput.close();
asDescOutput.close();
return EXIT_SUCCESS;
}
|
luxms/dremio-oss
|
dac/backend/src/main/java/com/dremio/dac/model/job/ResourceSchedulingUI.java
|
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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.dremio.dac.model.job;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* ResourceSchedulingUI
*/
public class ResourceSchedulingUI {
private final String queueId;
private final String queueName;
private final String ruleId;
private final String ruleName;
private final String ruleContent;
@JsonCreator
public ResourceSchedulingUI(
@JsonProperty("queueId") String queueId,
@JsonProperty("queueName")String queueName,
@JsonProperty("ruleId")String ruleId,
@JsonProperty("ruleName")String ruleName,
@JsonProperty("ruleContent")String ruleContent) {
this.queueId = queueId;
this.queueName = queueName;
this.ruleId = ruleId;
this.ruleName = ruleName;
this.ruleContent = ruleContent;
}
public String getQueueId() {
return queueId;
}
public String getQueueName() {
return queueName;
}
public String getRuleId() {
return ruleId;
}
public String getRuleName() {
return ruleName;
}
public String getRuleContent() {
return ruleContent;
}
}
|
onap/multicloud-openstack
|
newton/newton/requests/tests/test_flavor.py
|
<reponame>onap/multicloud-openstack<filename>newton/newton/requests/tests/test_flavor.py
# Copyright (c) 2017-2018 Intel Corporation, 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.
import json
import mock
import unittest
from rest_framework import status
from newton_base.tests import mock_info
from newton_base.tests import test_base
from newton_base.tests.test_base import AbstractTestResource
from newton_base.openoapi.flavor import Flavors
from newton_base.util import VimDriverUtils
class TestFlavorsNewton(unittest.TestCase, AbstractTestResource):
def setUp(self):
AbstractTestResource.__init__(self)
self.url += "flavors"
self.MOCK_GET_RESOURCES_RESPONSE = {
"flavors": [
{"id": "uuid_1", "name": "flavor_1"},
{"id": "uuid_2", "name": "flavor_2"}
]
}
self.MOCK_GET_RESOURCE_RESPONSE = {
"flavor": {
"id": "uuid_1",
"name": "flavor_1"
}
}
self.MOCK_GET_RESOURCE_RESPONSE_NOT_FOUND = {}
self.MOCK_POST_RESOURCE_REQUEST = {
"id": "uuid_3",
"name": "flavor_3"
}
self.MOCK_POST_RESOURCE_REQUEST_EXISTING = {
"id": "uuid_1",
"name": "flavor_1"
}
self.MOCK_POST_RESOURCE_RESPONSE = {
"flavor": {
"id": "uuid_3",
"name": "flavor_3"
}
}
self.MOCK_GET_EXTRA_SPECS = {
"extra_specs": {
"key": "test"
}
}
self.assert_keys = "flavors"
self.assert_key = "flavor"
self.HTTP_not_found = status.HTTP_404_NOT_FOUND
@mock.patch.object(Flavors, '_get_flavor_extra_specs')
@mock.patch.object(VimDriverUtils, 'get_session')
@mock.patch.object(VimDriverUtils, 'get_vim_info')
def test_get_flavors(self, mock_get_vim_info, mock_get_session,
mock_get_flavor_extra_specs):
mock_get_session.side_effect = [
test_base.get_mock_session(
["get"], {"get": {
"content": self.MOCK_GET_RESOURCES_RESPONSE}}),
]
mock_extra_specs = mock.Mock(spec=test_base.MockResponse)
mock_extra_specs.json.return_value = {"extra_specs": {}}
mock_get_flavor_extra_specs.return_value = mock_extra_specs
mock_get_vim_info.return_value = mock_info.MOCK_VIM_INFO
response = self.client.get(
("/api/%s/v0/windriver-hudson-dc_RegionOne"
"/fcca3cc49d5e42caae15459e27103efc/"
"flavors" % test_base.MULTIVIM_VERSION),
{}, HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)
context = response.json()
self.assertEquals(status.HTTP_200_OK, response.status_code)
self.assertIsNotNone(context['flavors'])
self.assertEqual(self.MOCK_GET_RESOURCES_RESPONSE["flavors"],
context['flavors'])
@mock.patch.object(Flavors, '_get_flavor_extra_specs')
@mock.patch.object(VimDriverUtils, 'get_session')
@mock.patch.object(VimDriverUtils, 'get_vim_info')
def test_get_flavor(self, mock_get_vim_info, mock_get_session,
mock_get_flavor_extra_specs):
mock_get_session.side_effect = [
test_base.get_mock_session(
["get"],
{"get": {
"content": self.MOCK_GET_RESOURCE_RESPONSE}}),
]
mock_extra_specs = mock.Mock(spec=test_base.MockResponse)
mock_extra_specs.json.return_value = {"extra_specs": {}}
mock_get_flavor_extra_specs.return_value = mock_extra_specs
mock_get_vim_info.return_value = mock_info.MOCK_VIM_INFO
response = self.client.get(
("/api/%s/v0/windriver-hudson-dc_RegionOne"
"/fcca3cc49d5e42caae15459e27103efc/flavors/"
"uuid_1" % test_base.MULTIVIM_VERSION),
{}, HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)
context = response.json()
self.assertEquals(status.HTTP_200_OK, response.status_code)
self.assertEqual(self.MOCK_GET_RESOURCE_RESPONSE["id"],
context["id"])
@mock.patch.object(Flavors, '_get_flavor_extra_specs')
@mock.patch.object(VimDriverUtils, 'get_session')
@mock.patch.object(VimDriverUtils, 'get_vim_info')
def test_get_flavor_not_found(
self, mock_get_vim_info, mock_get_session,
mock_get_flavor_extra_specs):
mock_get_session.side_effect = [
test_base.get_mock_session(
["get"],
{"get": {"status_code":status.HTTP_404_NOT_FOUND}}),
]
mock_extra_specs = mock.Mock(spec=test_base.MockResponse)
mock_extra_specs.json.return_value = {"extra_specs": {}}
mock_get_flavor_extra_specs.return_value = mock_extra_specs
mock_get_vim_info.return_value = mock_info.MOCK_VIM_INFO
response = self.client.get(
("/api/%s/v0/windriver-hudson-dc_RegionOne"
"/fcca3cc49d5e42caae15459e27103efc/flavors/"
"uuid_1" % test_base.MULTIVIM_VERSION),
{}, HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)
# TODO(sshank): 404 status is not possible.
self.assertEquals(status.HTTP_500_INTERNAL_SERVER_ERROR,
response.status_code)
self.assertIn('error', response.data)
@mock.patch.object(VimDriverUtils, 'get_session')
@mock.patch.object(VimDriverUtils, 'get_vim_info')
def test_create_flavor(
self, mock_get_vim_info, mock_get_session):
mock_get_session.side_effect = [
test_base.get_mock_session(
["get", "post"], {
"get": {
"content": self.MOCK_GET_RESOURCES_RESPONSE},
"post": {
"content": self.MOCK_POST_RESOURCE_RESPONSE,
"status_code": status.HTTP_200_OK,
}
}
),
]
mock_get_vim_info.return_value = mock_info.MOCK_VIM_INFO
response = self.client.post(
("/api/%s/v0/windriver-hudson-dc_RegionOne"
"/fcca3cc49d5e42caae15459e27103efc/"
"flavors" % test_base.MULTIVIM_VERSION),
data=json.dumps(self.MOCK_POST_RESOURCE_REQUEST),
content_type='application/json',
HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)
context = response.json()
self.assertEquals(status.HTTP_200_OK,
response.status_code)
self.assertIsNotNone(context['id'])
self.assertEqual(1, context['returnCode'])
@mock.patch.object(Flavors, '_get_flavor_extra_specs')
@mock.patch.object(VimDriverUtils, 'get_session')
@mock.patch.object(VimDriverUtils, 'get_vim_info')
def test_create_existing_flavor(
self, mock_get_vim_info, mock_get_session,
mock_get_flavor_extra_specs):
mock_get_session.side_effect = [
test_base.get_mock_session(
["get", "post"], {
"get": {
"content": self.MOCK_GET_RESOURCES_RESPONSE},
"post": {
"content": self.MOCK_POST_RESOURCE_RESPONSE,
"status_code": status.HTTP_202_ACCEPTED,
}
}),
]
mock_extra_specs = mock.Mock(spec=test_base.MockResponse)
mock_extra_specs.json.return_value = {"extra_specs": {}}
mock_get_flavor_extra_specs.return_value = mock_extra_specs
mock_get_vim_info.return_value = mock_info.MOCK_VIM_INFO
response = self.client.post(
("/api/%s/v0/windriver-hudson-dc_RegionOne/"
"fcca3cc49d5e42caae15459e27103efc/"
"flavors" % test_base.MULTIVIM_VERSION),
data=json.dumps(self.MOCK_POST_RESOURCE_REQUEST_EXISTING),
content_type='application/json',
HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)
context = response.json()
self.assertEquals(status.HTTP_200_OK, response.status_code)
self.assertIsNotNone(context['returnCode'])
self.assertEqual(0, context['returnCode'])
@mock.patch.object(VimDriverUtils, 'get_session')
@mock.patch.object(VimDriverUtils, 'get_vim_info')
def test_delete_flavor(
self, mock_get_vim_info, mock_get_session):
mock_get_vim_info.return_value = mock_info.MOCK_VIM_INFO
mock_get_session.side_effect = [
test_base.get_mock_session(
["get", "delete"],
{
"get": { "content": self.MOCK_GET_EXTRA_SPECS },
"delete": {
"status_code": status.HTTP_204_NO_CONTENT }
}),
]
response = self.client.delete(
("/api/%s/v0/windriver-hudson-dc_RegionOne/"
"fcca3cc49d5e42caae15459e27103efc/flavors/"
"uuid_1" % test_base.MULTIVIM_VERSION),
HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID)
self.assertEqual(status.HTTP_204_NO_CONTENT,
response.status_code)
self.assertIsNone(response.data)
# Overridden methods from test base to not make it run for current test case.
def test_get_resources_list(self):
pass
def test_get_resource_info(self):
pass
def test_get_resource_not_found(self):
pass
def test_post_resource(self):
pass
def test_post_resource_existing(self):
pass
def test_delete_resource(self):
pass
|
alexanderfefelov/userside-network-api
|
db/repository/src/main/scala/com/github/alexanderfefelov/userside/network/api/db/repository/PblTariffGroupInc.scala
|
<reponame>alexanderfefelov/userside-network-api
package com.github.alexanderfefelov.userside.network.api.db.repository
import scalikejdbc._
case class PblTariffGroupInc(
id: Int,
tariffGroupId: Option[Int] = None,
tariffId: Option[String] = None) {
def save()(implicit session: DBSession = PblTariffGroupInc.autoSession): PblTariffGroupInc = PblTariffGroupInc.save(this)(session)
def destroy()(implicit session: DBSession = PblTariffGroupInc.autoSession): Int = PblTariffGroupInc.destroy(this)(session)
}
object PblTariffGroupInc extends SQLSyntaxSupport[PblTariffGroupInc] {
override val schemaName = Some("userside3")
override val tableName = "pbl_tariff_group_inc"
override val columns = Seq("id", "tariff_group_id", "tariff_id")
def apply(ptgi: SyntaxProvider[PblTariffGroupInc])(rs: WrappedResultSet): PblTariffGroupInc = autoConstruct(rs, ptgi)
def apply(ptgi: ResultName[PblTariffGroupInc])(rs: WrappedResultSet): PblTariffGroupInc = autoConstruct(rs, ptgi)
val ptgi = PblTariffGroupInc.syntax("ptgi")
override val autoSession = AutoSession
def find(id: Int)(implicit session: DBSession = autoSession): Option[PblTariffGroupInc] = {
withSQL {
select.from(PblTariffGroupInc as ptgi).where.eq(ptgi.id, id)
}.map(PblTariffGroupInc(ptgi.resultName)).single.apply()
}
def findAll()(implicit session: DBSession = autoSession): List[PblTariffGroupInc] = {
withSQL(select.from(PblTariffGroupInc as ptgi)).map(PblTariffGroupInc(ptgi.resultName)).list.apply()
}
def countAll()(implicit session: DBSession = autoSession): Long = {
withSQL(select(sqls.count).from(PblTariffGroupInc as ptgi)).map(rs => rs.long(1)).single.apply().get
}
def findBy(where: SQLSyntax)(implicit session: DBSession = autoSession): Option[PblTariffGroupInc] = {
withSQL {
select.from(PblTariffGroupInc as ptgi).where.append(where)
}.map(PblTariffGroupInc(ptgi.resultName)).single.apply()
}
def findAllBy(where: SQLSyntax)(implicit session: DBSession = autoSession): List[PblTariffGroupInc] = {
withSQL {
select.from(PblTariffGroupInc as ptgi).where.append(where)
}.map(PblTariffGroupInc(ptgi.resultName)).list.apply()
}
def countBy(where: SQLSyntax)(implicit session: DBSession = autoSession): Long = {
withSQL {
select(sqls.count).from(PblTariffGroupInc as ptgi).where.append(where)
}.map(_.long(1)).single.apply().get
}
def create(
tariffGroupId: Option[Int] = None,
tariffId: Option[String] = None)(implicit session: DBSession = autoSession): PblTariffGroupInc = {
val generatedKey = withSQL {
insert.into(PblTariffGroupInc).namedValues(
column.tariffGroupId -> tariffGroupId,
column.tariffId -> tariffId
)
}.updateAndReturnGeneratedKey.apply()
PblTariffGroupInc(
id = generatedKey.toInt,
tariffGroupId = tariffGroupId,
tariffId = tariffId)
}
def batchInsert(entities: collection.Seq[PblTariffGroupInc])(implicit session: DBSession = autoSession): List[Int] = {
val params: collection.Seq[Seq[(Symbol, Any)]] = entities.map(entity =>
Seq(
'tariffGroupId -> entity.tariffGroupId,
'tariffId -> entity.tariffId))
SQL("""insert into pbl_tariff_group_inc(
tariff_group_id,
tariff_id
) values (
{tariffGroupId},
{tariffId}
)""").batchByName(params: _*).apply[List]()
}
def save(entity: PblTariffGroupInc)(implicit session: DBSession = autoSession): PblTariffGroupInc = {
withSQL {
update(PblTariffGroupInc).set(
column.id -> entity.id,
column.tariffGroupId -> entity.tariffGroupId,
column.tariffId -> entity.tariffId
).where.eq(column.id, entity.id)
}.update.apply()
entity
}
def destroy(entity: PblTariffGroupInc)(implicit session: DBSession = autoSession): Int = {
withSQL { delete.from(PblTariffGroupInc).where.eq(column.id, entity.id) }.update.apply()
}
}
|
DwayneJengSage/BridgeServer2
|
src/main/java/org/sagebionetworks/bridge/models/Metrics.java
|
<reponame>DwayneJengSage/BridgeServer2<filename>src/main/java/org/sagebionetworks/bridge/models/Metrics.java
package org.sagebionetworks.bridge.models;
import static com.google.common.base.Preconditions.checkArgument;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import com.google.common.collect.Multimap;
import org.joda.time.DateTime;
import org.sagebionetworks.bridge.time.DateUtils;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.sagebionetworks.bridge.json.JsonUtils;
/**
* Request-scoped metrics.
*/
public class Metrics {
/** The version of the metrics schema. */
private static final int VERSION = 1;
private static final ObjectMapper MAPPER = new ObjectMapper();
private final ObjectNode json;
public static String getCacheKey(String requestId) {
checkArgument(isNotBlank(requestId), "Request ID cannot be blank.");
return requestId + ":" + Metrics.class.getSimpleName();
}
public Metrics(final String requestId) {
json = MAPPER.createObjectNode();
json.put("version", VERSION);
start();
setRequestId(requestId);
}
public String getCacheKey() {
return Metrics.getCacheKey(json.get("request_id").asText());
}
/** The JSON node backing this metrics object. This is used primarily for testing. */
public ObjectNode getJson() {
return json;
}
public String toJsonString() {
return json.toString();
}
public void start() {
json.put("start", DateUtils.getCurrentISODateTime());
}
public void end() {
// Log endTime
DateTime endDateTime = DateUtils.getCurrentDateTime();
json.put("end", endDateTime.toString());
// Calculate elapsed time.
DateTime startDateTime = JsonUtils.asDateTime(json, "start");
if (startDateTime == null) {
// This should not be possible, but if it happens, don't throw an NPE.
return;
}
long elapsedMillis = endDateTime.getMillis() - startDateTime.getMillis();
json.put("elapsedMillis", elapsedMillis);
}
/** Record ID, used for synchronous health data submission API. */
public void setRecordId(String recordId) {
put("record_id", recordId);
}
public void setRequestId(String requestId) {
checkArgument(isNotBlank(requestId), "Request ID cannot be blank.");
json.put("request_id", requestId);
}
public void setRemoteAddress(String remoteAddress) {
put("remote_address", remoteAddress);
}
public void setMethod(String method) {
put("method", method);
}
public void setUri(String uri) {
put("uri", uri);
}
public void setProtocol(String protocol) {
put("protocol", protocol);
}
public void setUserAgent(String userAgent) {
put("user_agent", userAgent);
}
public void setStatus(int status) {
json.put("status", status);
}
public void setAppId(String appId) {
put("app_id", appId);
}
public void setUserId(String userId) {
put("user_id", userId);
}
public void setSessionId(String sessionId) {
put("session_id", sessionId);
}
public void setUploadId(String uploadId) {
put("upload_id", uploadId);
}
public void setUploadSize(long uploadSize) {
json.put("upload_size", uploadSize);
}
/**
* Set the query params from the url request to json.
*
* @param paramsMap The query parameters.
*/
public void setQueryParams(Multimap<String, String> paramsMap) {
if (paramsMap != null && !paramsMap.isEmpty()) {
ObjectNode paramsJson = MAPPER.valueToTree(paramsMap.asMap());
json.set("query_params", paramsJson);
}
}
private void put(final String field, final String value) {
if (isNotBlank(value)) {
json.put(field, value);
}
}
}
|
Kiubi/alpha
|
src/utils/forms.js
|
var Backbone = require('backbone');
var _ = require('underscore');
var serialize = require('form-serialize');
/**
* Extract fields values from a View form.
*
* @param {Array} fields
* @param {Marionette.View} view
* @param {Object} options
* @returns {Object}
* @see extractFieldsFromEl
*/
function extractFields(fields, view, options) {
options = _.defaults(options || {}, {
selector: 'form'
});
return extractFormFields(fields, Backbone.$(options.selector, view.el), options);
}
/**
* Extract fields values from a View form.
* Fields beginning with is_ are casted to boolean
*
* @param {Array} fields
* @param {jQuery} $forms
* @param {Object} options
* @returns {Object}
*/
function extractFormFields(fields, $forms, options) {
options = _.defaults(options || {}, {
autoCast: true
});
var all = _.reduce($forms, function(acc, form) {
return _.extend(acc, serialize(form, {
hash: true,
empty: true
}));
}, {});
var whitelist = _.pick(all, fields); // whitelist
return _.mapObject(whitelist, function(e, i) {
if (options.autoCast) {
if (i.substring(0, 3) === 'is_' && (e == '1' || e == '0')) {
e = (e == '1');
} else if (i.substring(i.length - 3) === '_id' && e !== '') {
e = parseInt(e);
}
}
// Filter out checkbox
if (_.isArray(e)) e = _.filter(e, function(val) {
if (_.isString(val))
return val.length > 0;
return true;
});
return e;
});
}
/**
* Hepler to display and format errors in a standard form
*
* @param {Object} error
* @param {jQuery} $errorEl
* @param {Node} el
* @param {Object} options
*/
function displayErrors(error, $errorEl, el, options) {
options = _.defaults(options || {}, {
showErrors: false
});
if (!error || !error.message) {
$errorEl.text('Erreur inattendue');
$errorEl.show();
return;
}
if (options.showErrors) {
var html = '<p>' + error.message + '</p>';
if (error.fields.length) {
html += '<ul>' + _.reduce(error.fields, function(acc, field) {
acc.push('<li>' + field.message + '</li>');
return acc;
}, []).join('') + '</ul>';
}
$errorEl.html(html);
} else {
$errorEl.text(error.message);
}
$errorEl.show();
if (error && error.fields) {
_(error.fields).each(function(f) {
Backbone.$("input[name='" + f.field + "'], textarea[name='" + f.field + "'], select[name='" + f.field + "']", el)
.parents(".form-group").addClass('has-error');
});
}
}
/**
* Helper to clear previous errors in a standard form
*
* @param {jQuery} $errorEl
* @param {Node} el
*/
function clearErrors($errorEl, el) {
$errorEl.hide();
Backbone.$("input, textarea, select", el).parents(".form-group").removeClass('has-error');
}
/**
* Generate a temporary slug : eight underscores followed by eight digits
*
* @returns {string}
*/
function tmpSlug() {
var min = 10000000;
var max = 99999999;
return '________' + (Math.floor(Math.random() * (max - min + 1)) + min);
}
/**
* Recognize a temporary slug
*
* @param slug
* @returns {boolean}
*/
function isTmpSlug(slug) {
// in case of rare collision, temporary slug may become ^_{8}[0-9]{8}-[0-9]{1,3}$
// so we only test the beginning of the slug
return (slug.match(/^_{8}[0-9]{8}/) !== null);
}
module.exports.extractFields = extractFields;
module.exports.extractFormFields = extractFormFields;
module.exports.displayErrors = displayErrors;
module.exports.clearErrors = clearErrors;
module.exports.tmpSlug = tmpSlug;
module.exports.isTmpSlug = isTmpSlug;
|
phil-mansfield/shellfish
|
cmd/env/nil_snapshot.go
|
<reponame>phil-mansfield/shellfish
package env
import (
"fmt"
)
func (cat *Catalogs) InitNil(info *ParticleInfo, validate bool) error {
cat.CatalogType = Nil
cat.names = make([][]string, info.SnapMax - info.SnapMin + 1)
for i := range cat.names { cat.names[i] = []string{fmt.Sprintf("%d", i)} }
if validate {
panic("File validation not yet implemented.")
}
return nil
}
|
qixiaobo/otter
|
manager/biz/src/main/java/com/alibaba/otter/manager/biz/statistics/delay/DelayStatService.java
|
<reponame>qixiaobo/otter
/*
* Copyright (C) 2010-2101 Alibaba Group Holding Limited.
*
* 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.alibaba.otter.manager.biz.statistics.delay;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.alibaba.otter.manager.biz.statistics.delay.param.DelayStatInfo;
import com.alibaba.otter.manager.biz.statistics.delay.param.TopDelayStat;
import com.alibaba.otter.shared.common.model.statistics.delay.DelayStat;
/**
* @author jianghang 2011-9-8 下午12:37:14
*/
public interface DelayStatService {
public void createDelayStat(DelayStat stat);
public DelayStat findRealtimeDelayStat(Long pipelineId);
public Map<Long, DelayStatInfo> listTimelineDelayStat(Long pipelineId, Date start, Date end);
public List<TopDelayStat> listTopDelayStat(String searchKey, int topN);
}
|
opdss/ManageApi
|
common/requests.js
|
/**
* Created by wuxin on 16/4/30.
*/
var http = require('http');
var qs = require('querystring');
var urlParse = require('url');
var EventProxy = require('eventproxy');
var requests = {};
requests.returnBody = {
request : {
'output' : '',
'method' : '',
'requestUrl' : '',
'headers' : {},
'body' : null,
},
response : {
'output' : '',
'status' : '200',
'time' : 55,
'headers' : {},
'body' : {}
}
}
var proxy = new EventProxy();
requests.get = function(url, headers, callback){
var startTime = Date.now();
var urlInfo = urlParse.parse(url);
var options = {
protocol : urlInfo.protocol,
hostname : urlInfo.hostname,
port : urlInfo.port,
path : urlInfo.path,
method : 'GET',
headers : headers,
}
proxy.assign('req', 'res', callback)
var req = http.request(options, function (res) {
//console.log(res)
res.setEncoding('utf8');
res.on('data', function (chunk) {
requests.returnBody.response = {
//'output' : req.output,
'output' : '',
'status' : res.statusCode,
'time' : Date.now()-startTime,
'headers' : res.headers,
'body' : chunk
}
proxy.trigger('res', requests.returnBody.response);
});
});
req.on('error', function (e) {
console.log('problem with request: ' + e.message);
});
req.end();
requests.returnBody.request = {
//'output' : req.output,
'output' : req._header,
'method' : req.method,
'requestUrl' : url,
'headers' : req._headers,
'body' : null,
}
proxy.trigger('req', requests.returnBody.request);
}
module.exports = requests
|
kevinmtian/pytorchvideo
|
projects/video_nerf/dataset.py
|
<filename>projects/video_nerf/dataset.py
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import os
from typing import Tuple
import numpy as np
import torch
import tqdm
# Imports from PyTorchVideo and PyTorch3D
from pytorch3d.renderer import PerspectiveCameras
from pytorchvideo.data.encoded_video import EncodedVideo
from torch.utils.data import Dataset
from .dataset_utils import (
generate_splits,
get_geometry_data,
objectron_to_pytorch3d,
resize_images,
)
from .nerf_dataset import ListDataset
DEFAULT_DATA_ROOT = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "..", "data", "objectron"
)
def trivial_collate(batch):
"""
A trivial collate function that merely returns the uncollated batch.
"""
return batch
def get_nerf_datasets(
dataset_name: str,
image_size: Tuple[int, int],
data_root: str = DEFAULT_DATA_ROOT,
**kwargs,
) -> Tuple[Dataset, Dataset, Dataset]:
"""
Obtains the training and validation dataset object for a dataset specified
with the `dataset_name` argument.
Args:
dataset_name: The name of the dataset to load.
image_size: A tuple (height, width) denoting the sizes of the loaded dataset images.
data_root: The root folder at which the data is stored.
Returns:
train_dataset: The training dataset object.
val_dataset: The validation dataset object.
test_dataset: The testing dataset object.
"""
print(f"Loading dataset {dataset_name}, image size={str(image_size)} ...")
if dataset_name != "objectron":
raise ValueError("This data loader is only for the objectron dataset")
# Use the bundle adjusted camera parameters
sequence_geometry = get_geometry_data(os.path.join(data_root, "sfm_arframe.pbdata"))
num_frames = len(sequence_geometry)
# Check if splits are present else generate them on the first instance:
splits_path = os.path.join(data_root, "splits.pt")
if os.path.exists(splits_path):
print("Loading splits...")
splits = torch.load(splits_path)
train_idx, val_idx, test_idx = splits
else:
print("Generating splits...")
index_options = np.arange(num_frames)
train_idx, val_idx, test_idx = generate_splits(index_options)
torch.save([train_idx, val_idx, test_idx], splits_path)
print("Loading video...")
video_path = os.path.join(data_root, "video.MOV")
# Load the video using the PyTorchVideo video class
video = EncodedVideo.from_path(video_path)
FPS = 30
print("Loading all images and cameras...")
# Load all the video frames
frame_data = video.get_clip(start_sec=0, end_sec=(num_frames - 1) * 1.0 / FPS)
frame_data = frame_data["video"].permute(1, 2, 3, 0)
images = resize_images(frame_data, image_size)
cameras = []
for frame_id in tqdm.tqdm(range(num_frames)):
I, P = sequence_geometry[frame_id]
R = P[0:3, 0:3]
T = P[0:3, 3]
# Convert conventions
R = R.transpose(0, 1)
R, T = objectron_to_pytorch3d(R, T)
# Get intrinsic parameters
fx = I[0, 0]
fy = I[1, 1]
px = I[0, 2]
py = I[1, 2]
# Initialize the Perspective Camera
scene_cam = PerspectiveCameras(
R=R[None, ...],
T=T[None, ...],
focal_length=((fx, fy),),
principal_point=((px, py),),
).to("cpu")
cameras.append(scene_cam)
train_dataset, val_dataset, test_dataset = [
ListDataset(
[
{"image": images[i], "camera": cameras[i], "camera_idx": int(i)}
for i in idx
]
)
for idx in [train_idx, val_idx, test_idx]
]
return train_dataset, val_dataset, test_dataset
|
Brianzchen/starfall
|
src/Form/index.spec.js
|
// @flow
import React from 'react';
import { render, screen } from '@testing-library/react';
import { lorem } from '@faker-js/faker';
import Form from '.';
describe('<Form />', () => {
it('passes random props into form', () => {
const props = {
[lorem.word()]: lorem.sentence(),
[lorem.word()]: lorem.sentence(),
[lorem.word()]: lorem.sentence(),
};
render(<Form data-testid="test" {...props} />);
Object.keys(props).forEach((key) => {
expect(screen.getByTestId('test').getAttribute(key)).toBe(props[key]);
});
});
it('has the right onSubmit form value struct', () => {
render(
<Form
onSubmit={(event, values) => {
console.info(values.test?.value);
}}
/>,
);
expect(true).toBe(true);
});
});
|
civodlu/trw
|
src/trw/datasets/medical_decathlon.py
|
<reponame>civodlu/trw
import collections
import functools
import os
from typing import Dict, Union, Callable, Optional, Mapping, MutableMapping
from ..basic_typing import Batch, Dataset, Datasets
from ..utils import optional_import
from .utils import download_and_extract_archive
import json
import numpy as np
import torch
from ..train import SequenceArray, SamplerSequential, SamplerRandom
from ..transforms import Transform
nib = optional_import('nibabel')
def load_nifti(
path: str,
dtype,
base_name: str,
remove_patient_transform: bool = False) -> Dict[str, Union[str, torch.Tensor]]:
"""
Load a nifti file and metadata.
Args:
path: the path to the nifti file
base_name: the name of this data
dtype: the type of the nifti image to be converted to
remove_patient_transform: if ``True``, remove the affine transformation attached to the voxels
Returns:
a dict of attributes
"""
data: Dict[str, Union[str, torch.Tensor]] = collections.OrderedDict()
img = nib.load(path)
if not remove_patient_transform:
data[base_name + 'affine'] = torch.from_numpy(img.affine).unsqueeze(0) # add the N component
voxels = np.array(img.get_fdata(dtype=np.float32))
if dtype != np.float32:
voxels = voxels.astype(dtype)
voxels = torch.from_numpy(voxels)
voxels = voxels.unsqueeze(0).unsqueeze(0)
data[base_name + 'voxels'] = voxels
_, case_name = os.path.split(path)
case_name = case_name.replace('.nii.gz', '')
data['case_name'] = case_name
return data
class MedicalDecathlonDataset:
resource = {
"Task01_BrainTumour": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task01_BrainTumour.tar",
"Task02_Heart": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task02_Heart.tar",
"Task03_Liver": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task03_Liver.tar",
"Task04_Hippocampus": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task04_Hippocampus.tar",
"Task05_Prostate": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task05_Prostate.tar",
"Task06_Lung": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task06_Lung.tar",
"Task07_Pancreas": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task07_Pancreas.tar",
"Task08_HepaticVessel": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task08_HepaticVessel.tar",
"Task09_Spleen": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task09_Spleen.tar",
"Task10_Colon": "https://msd-for-monai.s3-us-west-2.amazonaws.com/Task10_Colon.tar",
}
dataset_name = 'decathlon'
def __init__(self, task_name: str, root: str, collection: str = 'training', remove_patient_transform: bool = False):
task_resource = self.resource.get(task_name)
if task_resource is None:
raise RuntimeError(f'Task={task_name} does not exist!')
root_data = os.path.join(root, self.dataset_name, task_name)
download_and_extract_archive(task_resource, root_data)
dataset_metadata_path = os.path.join(root_data, task_name, 'dataset.json')
self.collection = collection
with open(dataset_metadata_path, 'r') as f:
self.metadata = json.load(f)
self.task_root = os.path.join(root_data, task_name)
self.remove_patient_transform = remove_patient_transform
def __call__(self, id: int) -> MutableMapping[str, Union[str, torch.Tensor]]:
data: Dict[str, Union[str, torch.Tensor]] = collections.OrderedDict()
data_path = self.metadata[self.collection][id]
for name, relative_path in data_path.items():
full_path = os.path.join(self.task_root, relative_path)
dtype = np.float32
if name == 'label':
dtype = np.long
attribute_data = load_nifti(
full_path,
dtype=dtype,
base_name=f'{name}_',
remove_patient_transform=self.remove_patient_transform)
data.update(**attribute_data)
return data
def __len__(self):
return len(self.metadata[self.collection])
def _load_case_adaptor(batch: Batch, dataset: MedicalDecathlonDataset, transform_fn: Optional[Transform]):
ids = batch['sample_uid']
assert len(ids) == 1, 'only load a single case at a time!'
data = dataset(ids[0])
data['sample_uid'] = ids
if transform_fn is not None:
data = transform_fn(data) # type: ignore
return data
def create_decathlon_dataset(
task_name: str,
root: str = None,
transform_train: Transform = None,
transform_valid: Transform = None,
nb_workers: int = 4,
valid_ratio: float = 0.2,
batch_size: int = 1,
remove_patient_transform: bool = False) -> Datasets:
"""
Create a task of the medical decathlon dataset.
The dataset is available here http://medicaldecathlon.com/ with accompanying
publication: https://arxiv.org/abs/1902.09063
Args:
task_name: the name of the task
root: the root folder where the data will be created and possibly downloaded
transform_train: a function that take a batch of training data and return a transformed batch
transform_valid: a function that take a batch of valid data and return a transformed batch
nb_workers: the number of workers used for the preprocessing
valid_ratio: the ratio of validation data
batch_size: the batch size
remove_patient_transform: if ``True``, remove the affine transformation attached to the voxels
Returns:
a dictionary of datasets
"""
if root is None:
# first, check if we have some environment variables configured
root = os.environ.get('TRW_DATA_ROOT')
if root is None:
# else default a standard folder
root = './data'
dataset = MedicalDecathlonDataset(task_name, root, remove_patient_transform=remove_patient_transform)
nb_samples = len(dataset)
nb_train = int(nb_samples * (1.0 - valid_ratio))
ids = np.arange(len(dataset))
np.random.shuffle(ids)
sampler_train = SamplerRandom(batch_size=batch_size)
data_train = collections.OrderedDict([
('sample_uid', ids[:nb_train])
])
load_data_train = functools.partial(_load_case_adaptor, dataset=dataset, transform_fn=transform_train)
sequence_train = SequenceArray(data_train, sampler=sampler_train, sample_uid_name='sample_uid')
sequence_train = sequence_train.map(
function_to_run=load_data_train,
nb_workers=nb_workers,
max_jobs_at_once=4
)
sequence_train = sequence_train.collate()
sampler_valid = SamplerSequential(batch_size=batch_size)
data_valid = collections.OrderedDict([
('sample_uid', ids[nb_train:])
])
load_data_valid = functools.partial(_load_case_adaptor, dataset=dataset, transform_fn=transform_valid)
sequence_valid = SequenceArray(data_valid, sampler=sampler_valid, sample_uid_name='sample_uid')
sequence_valid = sequence_valid.map(
functools.partial(load_data_valid, dataset=dataset),
nb_workers=nb_workers,
max_jobs_at_once=4
)
sequence_valid = sequence_valid.collate()
split = collections.OrderedDict([
('train', sequence_train),
('valid', sequence_valid),
])
return {
task_name: split
}
|
Miguel619/cs-sfsu
|
secret/node_modules/nyks/node_modules/mout/number/pad.js
|
<reponame>Miguel619/cs-sfsu
var lpad = require('../string/lpad');
var toNumber = require('../lang/toNumber');
/**
* Add padding zeros if n.length < minLength.
*/
function pad(n, minLength, char){
n = toNumber(n);
return lpad(''+ n, minLength, char || '0');
}
module.exports = pad;
|
andreasdr/tdme
|
src/net/drewke/tdme/tests/PhysicsTest1.java
|
package net.drewke.tdme.tests;
import java.awt.event.MouseMotionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.drewke.tdme.engine.Camera;
import net.drewke.tdme.engine.Engine;
import net.drewke.tdme.engine.Light;
import net.drewke.tdme.engine.Object3D;
import net.drewke.tdme.engine.Object3DModel;
import net.drewke.tdme.engine.Rotation;
import net.drewke.tdme.engine.fileio.models.DAEReader;
import net.drewke.tdme.engine.model.Model;
import net.drewke.tdme.engine.physics.RigidBody;
import net.drewke.tdme.engine.physics.World;
import net.drewke.tdme.engine.primitives.Capsule;
import net.drewke.tdme.engine.primitives.ConvexMesh;
import net.drewke.tdme.engine.primitives.OrientedBoundingBox;
import net.drewke.tdme.engine.primitives.PrimitiveModel;
import net.drewke.tdme.engine.primitives.Sphere;
import net.drewke.tdme.math.Vector3;
import net.drewke.tdme.utils.Console;
import com.jogamp.newt.event.KeyEvent;
import com.jogamp.newt.event.KeyListener;
import com.jogamp.newt.event.MouseEvent;
import com.jogamp.newt.event.MouseListener;
import com.jogamp.newt.event.WindowEvent;
import com.jogamp.newt.event.WindowListener;
import com.jogamp.newt.event.WindowUpdateEvent;
import com.jogamp.newt.opengl.GLWindow;
import com.jogamp.opengl.GLAutoDrawable;
import com.jogamp.opengl.GLCapabilities;
import com.jogamp.opengl.GLEventListener;
import com.jogamp.opengl.GLProfile;
import com.jogamp.opengl.util.FPSAnimator;
/**
* Engine with physics test 1
* @author andreas.drewke
* @version $Id$
*/
public final class PhysicsTest1 implements GLEventListener, MouseListener, MouseMotionListener, KeyListener, WindowListener {
private final static int RIGID_TYPEID_STANDARD = 1;
private final static int BOX_COUNT = 5;
private final static int BOXSTACK_COUNT = 2;
private final static int CAPSULE_COUNT = 10;
private final static int SPHERE_COUNT = 10;
private Engine engine;
private boolean keyLeft;
private boolean keyRight;
private boolean keyUp;
private boolean keyDown;
private boolean keyW;
private boolean keyA;
private boolean keyS;
private boolean keyD;
private World world;
/**
* @param args
*/
public static void main(String[] args) {
Logger.getLogger("").setLevel(Level.WARNING);
// create GL canvas
GLProfile glp = Engine.getProfile();
GLCapabilities caps = new GLCapabilities(glp);
// create GL window
GLWindow glWindow = GLWindow.create(caps);
glWindow.setTitle("PhysicsTest1");
// animator
FPSAnimator animator = new FPSAnimator(glWindow, 60);
// tdme level editor
PhysicsTest1 physicsTest1 = new PhysicsTest1();
// GL Window
glWindow.addGLEventListener(physicsTest1);
glWindow.setSize(800, 600);
glWindow.setVisible(true);
glWindow.addKeyListener(physicsTest1);
glWindow.addMouseListener(physicsTest1);
glWindow.addWindowListener(physicsTest1);
// start animator
animator.setUpdateFPSFrames(3, null);
animator.start();
}
/**
* Physics test
* @param gl window
* @param fps animator
*/
public PhysicsTest1() {
keyLeft = false;
keyRight = false;
keyUp = false;
keyDown = false;
engine = Engine.getInstance();
world = new World();
}
/*
* (non-Javadoc)
* @see com.jogamp.opengl.GLEventListener#display(com.jogamp.opengl.GLAutoDrawable)
*/
public void display(GLAutoDrawable drawable) {
// apply some manual damping on boxes on x and z axis
for (int i = 0; i < BOX_COUNT; i++) {
RigidBody body = world.getRigidBody("box" + i);
body.getLinearVelocity().setX(body.getLinearVelocity().getX() * (1f - 1f/10f));
body.getLinearVelocity().setZ(body.getLinearVelocity().getZ() * (1f - 1f/10f));
}
for (int i = 0; i < BOXSTACK_COUNT; i++) {
RigidBody body = world.getRigidBody("box" + (BOX_COUNT + i));
body.getLinearVelocity().setX(body.getLinearVelocity().getX() * (1f - 1f/10f));
body.getLinearVelocity().setZ(body.getLinearVelocity().getZ() * (1f - 1f/10f));
}
RigidBody capsuleBig1 = world.getRigidBody("capsulebig1");
if (keyLeft) capsuleBig1.getLinearVelocity().setX(8f); else
if (keyRight) capsuleBig1.getLinearVelocity().setX(-8f); else
capsuleBig1.getLinearVelocity().setX(0f);
if (keyUp) capsuleBig1.getLinearVelocity().setZ(8f); else
if (keyDown) capsuleBig1.getLinearVelocity().setZ(-8f); else
capsuleBig1.getLinearVelocity().setZ(0f);
RigidBody capsuleBig2 = world.getRigidBody("capsulebig2");
if (keyA) capsuleBig2.getLinearVelocity().setX(6f); else
if (keyD) capsuleBig2.getLinearVelocity().setX(-6f); else
capsuleBig2.getLinearVelocity().setX(0f);
if (keyW) capsuleBig2.getLinearVelocity().setZ(6f); else
if (keyS) capsuleBig2.getLinearVelocity().setZ(-6f); else
capsuleBig2.getLinearVelocity().setZ(0f);
long start = System.currentTimeMillis();
float fps = 60f; // animator.getLastFPS();
world.update(1f/fps);
world.synch(engine);
engine.display(drawable);
long end = System.currentTimeMillis();
Console.println("PhysicsTest::display::" + (end-start) + "ms");
}
/*
* (non-Javadoc)
* @see com.jogamp.opengl.GLEventListener#dispose(com.jogamp.opengl.GLAutoDrawable)
*/
public void dispose(GLAutoDrawable drawable) {
engine.dispose(drawable);
}
/*
* (non-Javadoc)
* @see com.jogamp.opengl.GLEventListener#init(com.jogamp.opengl.GLAutoDrawable)
*/
public void init(GLAutoDrawable drawable) {
drawable.getGL().setSwapInterval(0);
engine.initialize(drawable);
Object3D entity;
// cam
Camera cam = engine.getCamera();
cam.setZNear(0.10f);
cam.setZFar(50.00f);
cam.getLookFrom().set(0f, 4f * 2.5f, -6f * 2.5f);
cam.getLookAt().set(0f, 0.0f, 0f);
cam.computeUpVector(cam.getLookFrom(), cam.getLookAt(), cam.getUpVector());
// lights
Light light0 = engine.getLightAt(0);
light0.getAmbient().set(1.0f, 1.0f, 1.0f, 1.0f);
light0.getDiffuse().set(0.5f,0.5f,0.5f,1f);
light0.getSpecular().set(1f,1f,1f,1f);
light0.getPosition().set(
0f,
20000f,
0f,
1f
);
light0.getSpotDirection().set(0f,0f,0f).sub(new Vector3(light0.getPosition().getArray()));
light0.setConstantAttenuation(0.5f);
light0.setLinearAttenuation(0f);
light0.setQuadraticAttenuation(0f);
light0.setSpotExponent(0f);
light0.setSpotCutOff(180f);
light0.setEnabled(true);
// ground
OrientedBoundingBox ground = new OrientedBoundingBox(
new Vector3(0f,0f,0f),
OrientedBoundingBox.AABB_AXIS_X.clone(),
OrientedBoundingBox.AABB_AXIS_Y.clone(),
OrientedBoundingBox.AABB_AXIS_Z.clone(),
new Vector3(8f,1f,8f)
);
Model groundModel = PrimitiveModel.createModel(ground, "ground_model");
groundModel.getMaterials().get("tdme.primitive.material").getAmbientColor().set(0.8f, 0.8f, 0.8f, 1f);
groundModel.getMaterials().get("tdme.primitive.material").getDiffuseColor().set(1f,1f,1f,1f);
entity = new Object3D("ground", groundModel);
// entity.getRotations().add(new Rotation(10f, OrientedBoundingBox.AABB_AXIS_Z.clone()));
entity.update();
engine.addEntity(entity);
world.addStaticRigidBody("ground", true, RIGID_TYPEID_STANDARD, entity, ground, 0.5f);
// side
OrientedBoundingBox side = new OrientedBoundingBox(
new Vector3(0f,0f,0f),
OrientedBoundingBox.AABB_AXIS_X.clone(),
OrientedBoundingBox.AABB_AXIS_Y.clone(),
OrientedBoundingBox.AABB_AXIS_Z.clone(),
new Vector3(1f,16f,8f)
);
Model sideModel = PrimitiveModel.createModel(side, "side_model");
sideModel.getMaterials().get("tdme.primitive.material").getAmbientColor().set(0.8f,0.8f,0.8f,1f);
sideModel.getMaterials().get("tdme.primitive.material").getDiffuseColor().set(1f,1f,1f,1f);
// far
OrientedBoundingBox nearFar = new OrientedBoundingBox(
new Vector3(0f,0f,0f),
OrientedBoundingBox.AABB_AXIS_X.clone(),
OrientedBoundingBox.AABB_AXIS_Y.clone(),
OrientedBoundingBox.AABB_AXIS_Z.clone(),
new Vector3(8f,16f,1f)
);
Model nearFarModel = PrimitiveModel.createModel(nearFar, "far_model");
nearFarModel.getMaterials().get("tdme.primitive.material").getAmbientColor().set(0.8f,0.8f,0.8f,1f);
nearFarModel.getMaterials().get("tdme.primitive.material").getDiffuseColor().set(1f,1f,1f,1f);
// far
entity = new Object3D("far", nearFarModel);
entity.getTranslation().addZ(+9f);
entity.update();
engine.addEntity(entity);
world.addStaticRigidBody("far", true, RIGID_TYPEID_STANDARD, entity, nearFar, 0.5f);
// near
entity = new Object3D("near", nearFarModel);
entity.getTranslation().addZ(-9f);
entity.getEffectColorMul().set(1f,1f,1f,0f);
entity.update();
engine.addEntity(entity);
world.addStaticRigidBody("near", true, RIGID_TYPEID_STANDARD, entity, nearFar, 0.5f);
// side left
entity = new Object3D("sideright", sideModel);
entity.getTranslation().addX(-9f);
entity.update();
engine.addEntity(entity);
world.addStaticRigidBody("sideright", true, RIGID_TYPEID_STANDARD, entity, side, 0.5f);
// side right
entity = new Object3D("sideleft", sideModel);
entity.getTranslation().addX(9f);
entity.update();
engine.addEntity(entity);
world.addStaticRigidBody("sideleft", true, RIGID_TYPEID_STANDARD, entity, side, 0.5f);
// box
OrientedBoundingBox box = new OrientedBoundingBox(
new Vector3(0f,0f,0f),
OrientedBoundingBox.AABB_AXIS_X.clone(),
OrientedBoundingBox.AABB_AXIS_Y.clone(),
OrientedBoundingBox.AABB_AXIS_Z.clone(),
new Vector3(0.6f,0.6f,0.6f)
);
Model boxModel = PrimitiveModel.createModel(box, "box_model");
boxModel.getMaterials().get("tdme.primitive.material").getAmbientColor().set(0.8f,0.5f,0.5f,1f);
boxModel.getMaterials().get("tdme.primitive.material").getDiffuseColor().set(1f,0f,0f,1f);
// boxes
for (int i = 0; i < BOX_COUNT; i++) {
entity = new Object3D("box" + i, boxModel);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(10f + i * 3.0f);
entity.getTranslation().addX(-2f + i * 0.1f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("box" + i, true, RIGID_TYPEID_STANDARD, entity, box, 0f, 1f, 100f, RigidBody.computeInertiaMatrix(box, 100f, 1f, 1f, 1f));
}
// stack
for (int i = 0; i < BOXSTACK_COUNT; i++) {
entity = new Object3D("box" + (BOX_COUNT + i), boxModel);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(1.6f + (i * 1.2f));
entity.getTranslation().addX(+3f);
entity.getTranslation().addZ(-5f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("box" + (BOX_COUNT + i), true, RIGID_TYPEID_STANDARD, entity, box, 0f, 1f, 100f, RigidBody.computeInertiaMatrix(box, 100f, 1f, 1f, 1f));
}
// sphere
Sphere sphere = new Sphere(
new Vector3(0f,0f,0f),
0.4f
);
Model sphereModel = PrimitiveModel.createModel(sphere, "sphere_model");
sphereModel.getMaterials().get("tdme.primitive.material").getAmbientColor().set(0.5f,0.8f,0.8f,1f);
sphereModel.getMaterials().get("tdme.primitive.material").getDiffuseColor().set(0f,1f,1f,1f);
// spheres
for (int i = 0; i < SPHERE_COUNT; i++) {
entity = new Object3D("sphere" + i, sphereModel);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(12f + (i * 1f));
entity.getTranslation().addX(0.45f * i - 3f);
entity.getTranslation().addZ(0.1f * i - 3f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("sphere" + i, true, RIGID_TYPEID_STANDARD, entity, sphere, 0.75f, 0.4f, 10f, RigidBody.computeInertiaMatrix(sphere, 10f, 1f, 1f, 1f));
}
// sphere
Capsule capsule = new Capsule(
new Vector3(0f,0.5f,0f),
new Vector3(0f,-0.5f,0f),
0.25f
);
Model capsuleModel = PrimitiveModel.createModel(capsule, "capsule_model");
capsuleModel.getMaterials().get("tdme.primitive.material").getAmbientColor().set(0.8f,0.0f,0.8f,1f);
capsuleModel.getMaterials().get("tdme.primitive.material").getDiffuseColor().set(1f,0f,1f,1f);
//
for (int i = 0; i < CAPSULE_COUNT; i++) {
entity = new Object3D("capsule" + i, capsuleModel);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(14f + (i * 2f));
entity.getTranslation().addX((i * 0.5f));
// entity.getPivot().set(capsule.getCenter());
entity.update();
engine.addEntity(entity);
world.addRigidBody("capsule" + i, true, RIGID_TYPEID_STANDARD, entity, capsule, 0.0f, 0.4f, 3f, RigidBody.computeInertiaMatrix(capsule, 3f, 1f, 1f, 1f));
}
// sphere
//Capsule capsuleBig = new Capsule(
// new Vector3(0f,+1f,0f),
// new Vector3(0f,-1f,0f),
// 0.5f
//);
OrientedBoundingBox capsuleBig = new OrientedBoundingBox(
new Vector3(0f,0f,0f),
OrientedBoundingBox.AABB_AXIS_X.clone(),
OrientedBoundingBox.AABB_AXIS_Y.clone(),
OrientedBoundingBox.AABB_AXIS_Z.clone(),
new Vector3(0.5f,1f,0.5f)
);
Model capsuleBigModel = PrimitiveModel.createModel(capsuleBig, "capsulebig_model");
capsuleBigModel.getMaterials().get("tdme.primitive.material").getAmbientColor().set(1f,0.8f,0.8f,1f);
capsuleBigModel.getMaterials().get("tdme.primitive.material").getDiffuseColor().set(1f,0f,0f,1f);
Console.println(capsuleBig.getCenter());
//
entity = new Object3D("capsulebig1", capsuleBigModel);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(5f);
entity.getTranslation().addX(-2f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("capsulebig1", true, RIGID_TYPEID_STANDARD, entity, capsuleBig, 0f, 1f, 80f, RigidBody.getNoRotationInertiaMatrix());
//
entity = new Object3D("capsulebig2", capsuleBigModel);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(5f);
entity.getTranslation().addX(+2f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("capsulebig2", true, RIGID_TYPEID_STANDARD, entity, capsuleBig, 0f, 1f, 100f, RigidBody.getNoRotationInertiaMatrix());
try {
// load barrel, set up bounding volume
Model _barrel = DAEReader.read("resources/tests/models/barrel", "barrel.dae");
// _barrel.getImportTransformationsMatrix().scale(2f);
ConvexMesh barrelBoundingVolume = new ConvexMesh(new Object3DModel(_barrel));
// set up barrel 1 in 3d engine
entity = new Object3D("barrel1", _barrel);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(5f);
entity.getTranslation().addX(+4f);
entity.getScale().set(2f,2f,2f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("barrel1", true, RIGID_TYPEID_STANDARD, entity, barrelBoundingVolume, 0f, 1f, 100f, RigidBody.computeInertiaMatrix(barrelBoundingVolume, 100f, 1f, 1f, 1f));
// set up barrel 2 in 3d engine
entity = new Object3D("barrel2", _barrel);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(5f);
entity.getTranslation().addX(+6f);
entity.getScale().set(2f,2f,2f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("barrel2", true, RIGID_TYPEID_STANDARD, entity, barrelBoundingVolume, 0f, 1f, 100f, RigidBody.computeInertiaMatrix(barrelBoundingVolume, 100f, 1f, 1f, 1f));
// load cone, set up bounding volume
Model _cone = DAEReader.read("resources/tests/models/cone", "cone.dae");
// _barrel.getImportTransformationsMatrix().scale(2f);
ConvexMesh coneBoundingVolume = new ConvexMesh(new Object3DModel(_cone));
// set up cone 1 in 3d engine
entity = new Object3D("cone1", _cone);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(5f);
entity.getTranslation().addX(-4f);
entity.getScale().set(3f,3f,3f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("cone1", true, RIGID_TYPEID_STANDARD, entity, coneBoundingVolume, 0f, 1f, 100f, RigidBody.computeInertiaMatrix(coneBoundingVolume, 100f, 1f, 1f, 1f));
// set up cone 1 in 3d engine
entity = new Object3D("cone2", _cone);
entity.setDynamicShadowingEnabled(true);
entity.getTranslation().addY(5f);
entity.getTranslation().addX(-5f);
entity.getScale().set(3f,3f,3f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("cone2", true, RIGID_TYPEID_STANDARD, entity, coneBoundingVolume, 0f, 1f, 100f, RigidBody.computeInertiaMatrix(coneBoundingVolume, 100f, 1f, 1f, 1f));
// load cone, set up bounding volume
Model _tire = DAEReader.read("resources/tests/models/tire", "tire.dae");
// _barrel.getImportTransformationsMatrix().scale(2f);
ConvexMesh tireBoundingVolume = new ConvexMesh(new Object3DModel(_tire));
// set up tire 1 in 3d engine
entity = new Object3D("tire1", _tire);
entity.setDynamicShadowingEnabled(true);
entity.getRotations().add(new Rotation(90f, new Vector3(1f,0f,0f)));
entity.getTranslation().addY(5f);
entity.getTranslation().addX(-4f);
entity.getTranslation().addZ(-2f);
entity.getScale().set(2f,2f,2f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("tire1", true, RIGID_TYPEID_STANDARD, entity, tireBoundingVolume, 0f, 1f, 100f, RigidBody.computeInertiaMatrix(tireBoundingVolume, 100f, 1f, 1f, 1f));
// set up tire 1 in 3d engine
entity = new Object3D("tire2", _tire);
entity.setDynamicShadowingEnabled(true);
entity.getRotations().add(new Rotation(90f, new Vector3(1f,0f,0f)));
entity.getTranslation().addY(5f);
entity.getTranslation().addX(-6f);
entity.getTranslation().addZ(-2f);
entity.getScale().set(2f,2f,2f);
entity.update();
engine.addEntity(entity);
world.addRigidBody("tire2", true, RIGID_TYPEID_STANDARD, entity, tireBoundingVolume, 0f, 1f, 100f, RigidBody.computeInertiaMatrix(tireBoundingVolume, 100f, 1f, 1f, 1f));
} catch (Exception e) {
e.printStackTrace();
}
}
/*
* (non-Javadoc)
* @see com.jogamp.opengl.GLEventListener#reshape(com.jogamp.opengl.GLAutoDrawable, int, int, int, int)
*/
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
engine.reshape(drawable, x, y, width, height);
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mouseClicked(com.jogamp.newt.event.MouseEvent)
*/
public void mouseClicked(MouseEvent e) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mouseEntered(com.jogamp.newt.event.MouseEvent)
*/
public void mouseEntered(MouseEvent e) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mouseExited(com.jogamp.newt.event.MouseEvent)
*/
public void mouseExited(MouseEvent e) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mousePressed(com.jogamp.newt.event.MouseEvent)
*/
public void mousePressed(MouseEvent e) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mouseReleased(com.jogamp.newt.event.MouseEvent)
*/
public void mouseReleased(MouseEvent e) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mouseDragged(com.jogamp.newt.event.MouseEvent)
*/
public void mouseDragged(MouseEvent e) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mouseMoved(com.jogamp.newt.event.MouseEvent)
*/
public void mouseMoved(MouseEvent e) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.KeyListener#keyPressed(com.jogamp.newt.event.KeyEvent)
*/
public void keyPressed(KeyEvent e) {
int keyCode = e.getKeyCode();
if (keyCode == KeyEvent.VK_LEFT) keyLeft = true;
if (keyCode == KeyEvent.VK_RIGHT) keyRight = true;
if (keyCode == KeyEvent.VK_UP) keyUp = true;
if (keyCode == KeyEvent.VK_DOWN) keyDown = true;
if (keyCode == KeyEvent.VK_A) keyA = true;
if (keyCode == KeyEvent.VK_D) keyD = true;
if (keyCode == KeyEvent.VK_W) keyW = true;
if (keyCode == KeyEvent.VK_S) keyS = true;
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.KeyListener#keyReleased(com.jogamp.newt.event.KeyEvent)
*/
public void keyReleased(KeyEvent e) {
int keyCode = e.getKeyCode();
if (keyCode == KeyEvent.VK_LEFT) keyLeft = false;
if (keyCode == KeyEvent.VK_RIGHT) keyRight = false;
if (keyCode == KeyEvent.VK_UP) keyUp = false;
if (keyCode == KeyEvent.VK_DOWN) keyDown = false;
if (keyCode == KeyEvent.VK_A) keyA = false;
if (keyCode == KeyEvent.VK_D) keyD = false;
if (keyCode == KeyEvent.VK_W) keyW = false;
if (keyCode == KeyEvent.VK_S) keyS = false;
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mouseDragged(com.jogamp.newt.event.MouseEvent)
*/
public void mouseDragged(java.awt.event.MouseEvent e) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mouseMoved(com.jogamp.newt.event.MouseEvent)
*/
public void mouseMoved(java.awt.event.MouseEvent e) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.MouseListener#mouseWheelMoved(com.jogamp.newt.event.MouseEvent)
*/
public void mouseWheelMoved(MouseEvent arg0) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.WindowListener#windowDestroyNotify(com.jogamp.newt.event.WindowEvent)
*/
public void windowDestroyNotify(WindowEvent arg0) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.WindowListener#windowDestroyed(com.jogamp.newt.event.WindowEvent)
*/
public void windowDestroyed(WindowEvent arg0) {
System.exit(0);
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.WindowListener#windowGainedFocus(com.jogamp.newt.event.WindowEvent)
*/
public void windowGainedFocus(WindowEvent arg0) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.WindowListener#windowLostFocus(com.jogamp.newt.event.WindowEvent)
*/
public void windowLostFocus(WindowEvent arg0) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.WindowListener#windowMoved(com.jogamp.newt.event.WindowEvent)
*/
public void windowMoved(WindowEvent arg0) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.WindowListener#windowRepaint(com.jogamp.newt.event.WindowUpdateEvent)
*/
public void windowRepaint(WindowUpdateEvent arg0) {
}
/*
* (non-Javadoc)
* @see com.jogamp.newt.event.WindowListener#windowResized(com.jogamp.newt.event.WindowEvent)
*/
public void windowResized(WindowEvent arg0) {
}
}
|
pheinrich/euler
|
solved/problem_0079.rb
|
<reponame>pheinrich/euler<gh_stars>0
require 'projectEuler'
class Problem_0079
def title; 'Passcode derivation' end
def difficulty; 5 end
# A common security method used for online banking is to ask the user for
# three random characters from a passcode. For example, if the passcode was
# 531278, they may ask for the 2nd, 3rd, and 5th characters; the expected
# reply would be: 317.
#
# The text file, 0079_keylog.txt, contains fifty successful login attempts.
#
# Given that the three characters are always asked for in order, analyse the
# file so as to determine the shortest possible secret passcode of unknown
# length.
def solve
# Read lines and split into start-end pairs.
pairs = []
IO.read( 'resources/0079_keylog.txt' ).split.uniq.each do |line|
pairs << line[0, 2] << line[1, 2] << line[0] + line[2]
end
# Delete duplicates and compute weight based on start character frequency.
pairs.uniq!
weight = (0..9).map {|i| pairs.count {|p| p[0].to_i == i}}
# Order pairs according to most popular starting character, since we want
# to maximize how many numbers appear after each one.
pairs.sort_by! {|p| 10 * weight[p[0].to_i] + weight[p[1].to_i]}
# Concatenate characters as long as they haven't been seen before. This
# is not a general-purpose solution, but the problem (as stated) is not
# exceptionally challenging.
pwd = []
pairs.reverse.each do |p|
pwd << p[0] unless pwd.include?( p[0] )
pwd << p[1] unless pwd.include?( p[1] )
end
pwd.join.to_i
end
def solution; 'NzMxNjI4OTA=' end
def best_time; 0.0002661 end
def effort; 40 end
def completed_on; '2013-12-27' end
def ordinality; 23_596 end
def population; 381_015 end
def refs; [] end
end
|
ScalablyTyped/SlinkyTyped
|
w/wordpress__components/src/main/scala/typingsSlinky/wordpressComponents/components/ScrollLock.scala
|
<gh_stars>10-100
package typingsSlinky.wordpressComponents.components
import slinky.web.html.`*`.tag
import typingsSlinky.StBuildingComponent.Default
import typingsSlinky.wordpressComponents.scrollLockMod.ScrollLock.Props
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object ScrollLock {
@JSImport("@wordpress/components", "ScrollLock")
@js.native
val component: js.Object = js.native
implicit def make(companion: ScrollLock.type): Default[tag.type, js.Object] = new Default[tag.type, js.Object](js.Array(this.component, js.Dictionary.empty))()
def withProps(p: Props): Default[tag.type, js.Object] = new Default[tag.type, js.Object](js.Array(this.component, p.asInstanceOf[js.Any]))
}
|
newsuk/times-components-native
|
packages/edition-slices/src/tiles/tile-m/index.js
|
<filename>packages/edition-slices/src/tiles/tile-m/index.js<gh_stars>1-10
/* eslint-disable react/require-default-props */
import React from "react";
import PropTypes from "prop-types";
import { editionBreakpoints } from "@times-components-native/styleguide";
import {
getTileStrapline,
TileLink,
TileSummary,
withTileTracking,
} from "../shared";
import styleFactory from "./styles";
const TileM = ({ onPress, tile, breakpoint = editionBreakpoints.small }) => {
const {
article: { id, shortHeadline, url },
} = tile;
const tileWithoutLabelAndFlags = { article: { id, shortHeadline, url } };
const styles = styleFactory(breakpoint);
return (
<TileLink
onPress={onPress}
style={styles.container}
tile={tileWithoutLabelAndFlags}
>
<TileSummary
headlineStyle={styles.headline}
strapline={getTileStrapline(tile)}
straplineStyle={styles.strapline}
style={styles.summaryContainer}
tile={tileWithoutLabelAndFlags}
centeredStar
/>
</TileLink>
);
};
TileM.propTypes = {
onPress: PropTypes.func.isRequired,
tile: PropTypes.shape({}).isRequired,
breakpoint: PropTypes.string,
};
export default withTileTracking(TileM);
|
kaiso/lygeum
|
core/src/main/java/io/github/kaiso/lygeum/core/entities/Change.java
|
package io.github.kaiso.lygeum.core.entities;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class Change {
private String commit;
private String author;
private LocalDateTime date;
private List<ChangeRecord> changes = new ArrayList<>();
private Change(Builder builder) {
this.commit = builder.commit;
this.author = builder.author;
this.date = builder.date;
}
public String getCommit() {
return commit;
}
public String getAuthor() {
return author;
}
public LocalDateTime getDate() {
return date;}
public void addRecord(ChangeRecord r) {
this.changes.add(r);
}
public List<ChangeRecord> getChanges() {
return changes;
}
public static class ChangeRecord {
private String key;
private String value;
private ChangeType type;
private ChangeRecord(Builder builder) {
this.key = builder.key;
this.value = builder.value;
this.type = builder.type;
}
public String getKey() {
return key;
}
public String getValue() {
return value;
}
public ChangeType getType() {
return type;
}
/**
* Creates builder to build {@link ChangeRecord}.
*
* @return created builder
*/
public static Builder builder() {
return new Builder();
}
/** Builder to build {@link ChangeRecord}. */
public static final class Builder {
private String key;
private String value;
private ChangeType type;
private Builder() {}
public Builder withKey(String key) {
this.key = key;
return this;
}
public Builder withValue(String value) {
this.value = value;
return this;
}
public Builder withType(ChangeType type) {
this.type = type;
return this;
}
public ChangeRecord build() {
return new ChangeRecord(this);
}
}
@Override
public String toString() {
return "ChangeRecord [key=" + key + ", value=" + value + ", type=" + type + "]";
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((key == null) ? 0 : key.hashCode());
result = prime * result + ((type == null) ? 0 : type.hashCode());
result = prime * result + ((value == null) ? 0 : value.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
ChangeRecord other = (ChangeRecord) obj;
if (key == null) {
if (other.key != null) return false;
} else if (!key.equals(other.key)) return false;
if (type != other.type) return false;
if (value == null) {
if (other.value != null) return false;
} else if (!value.equals(other.value)) return false;
return true;
}
}
public static enum ChangeType {
ADDED,
DELETED,
UPDATED,
}
/**
* Creates builder to build {@link Change}.
*
* @return created builder
*/
public static Builder builder() {
return new Builder();
}
/** Builder to build {@link Change}. */
public static final class Builder {
private String commit;
private String author;
private LocalDateTime date;
private Builder() {}
public Builder withCommit(String commit) {
this.commit = commit;
return this;
}
public Builder withAuthor(String author) {
this.author = author;
return this;
}
public Builder withDate(LocalDateTime date) {
this.date = date;
return this;
}
public Change build() {
return new Change(this);
}
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("Commit ");
sb.append(commit);
sb.append(" by ");
sb.append(author);
sb.append(" at ");
sb.append(date);
if (changes != null) {
sb.append("\nchanges= {\n\t");
sb.append(changes.stream().map(Object::toString).collect(Collectors.joining("\n\t")));
sb.append("\n\t}");
}
;
return sb.toString();
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((author == null) ? 0 : author.hashCode());
result = prime * result + ((changes == null) ? 0 : changes.hashCode());
result = prime * result + ((commit == null) ? 0 : commit.hashCode());
result = prime * result + ((date == null) ? 0 : date.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
Change other = (Change) obj;
if (author == null) {
if (other.author != null) return false;
} else if (!author.equals(other.author)) return false;
if (changes == null) {
if (other.changes != null) return false;
} else if (!changes.equals(other.changes)) return false;
if (commit == null) {
if (other.commit != null) return false;
} else if (!commit.equals(other.commit)) return false;
if (date == null) {
if (other.date != null) return false;
} else if (!date.equals(other.date)) return false;
return true;
}
}
|
pymtl/pypy-pymtl3
|
pypy/module/pypyjit/test_pypy_c/test_misc.py
|
import py, sys
from pypy.module.pypyjit.test_pypy_c.test_00_model import BaseTestPyPyC
class TestMisc(BaseTestPyPyC):
def test_f1(self):
def f1(n):
"Arbitrary test function."
i = 0
x = 1
while i<n:
j = 0
while j<=i:
j = j + 1
x = x + (i&j)
i = i + 1
return x
log = self.run(f1, [2117])
assert log.result == 1083876708
# we get two loops: in the initial one "i" is only read and thus is
# not virtual, then "i" is written and thus we get a new loop where
# "i" is virtual. However, in this specific case the two loops happen
# to contain the very same operations
loop0, loop1 = log.loops_by_filename(self.filepath)
expected = """
i9 = int_le(i7, i8)
guard_true(i9, descr=...)
i11 = int_add_ovf(i7, 1)
guard_no_overflow(descr=...)
i12 = int_and(i8, i11)
i13 = int_add_ovf(i6, i12)
guard_no_overflow(descr=...)
--TICK--
jump(..., descr=...)
"""
assert loop0.match(expected)
# XXX: The retracing fails to form a loop since j
# becomes constant 0 after the bridge and constant 1 at the end of the
# loop. A bridge back to the peramble is produced instead.
#assert loop1.match(expected)
def test_factorial(self):
def fact(n):
r = 1
while n > 1:
r *= n
n -= 1
return r
log = self.run(fact, [7], threshold=4)
assert log.result == 5040
loop, = log.loops_by_filename(self.filepath)
assert loop.match("""
i7 = int_gt(i4, 1)
guard_true(i7, descr=...)
i8 = int_mul_ovf(i5, i4)
guard_no_overflow(descr=...)
i10 = int_sub(i4, 1)
--TICK--
jump(..., descr=...)
""")
#
log = self.run(fact, [25], threshold=20)
assert log.result == 15511210043330985984000000L
loop, = log.loops_by_filename(self.filepath)
assert loop.match("""
i7 = int_gt(i4, 1)
guard_true(i7, descr=...)
p11 = call_r(ConstClass(rbigint.int_mul), p5, i4, descr=...)
guard_no_exception(descr=...)
i13 = int_sub(i4, 1)
--TICK--
jump(..., descr=...)
""")
def test_mixed_type_loop(self):
def main(n):
i = 0.0
j = 2
while i < n:
i = j + i
return i
#
log = self.run(main, [1000])
assert log.result == 1000.0
loop, = log.loops_by_filename(self.filepath)
assert loop.match("""
i9 = float_lt(f5, f7)
guard_true(i9, descr=...)
f10 = float_add(f8, f5)
--TICK--
jump(..., descr=...)
""")
def test_cached_pure_func_of_equal_fields(self):
def main(n):
class A(object):
def __init__(self, val):
self.val1 = self.val2 = val
a = A(1)
b = A(1)
sa = 0
while n:
sa += 2*a.val1
sa += 2*b.val2
b.val2 = a.val1
n -= 1
return sa
#
log = self.run(main, [1000])
assert log.result == 4000
loop, = log.loops_by_filename(self.filepath)
assert loop.match("""
i12 = int_is_true(i4)
guard_true(i12, descr=...)
guard_not_invalidated(descr=...)
guard_nonnull_class(p10, ConstClass(W_IntObject), descr=...)
i10p = getfield_gc_i(p10, descr=...)
i10 = int_mul_ovf(2, i10p)
guard_no_overflow(descr=...)
i14 = int_add_ovf(i13, i10)
guard_no_overflow(descr=...)
i13 = int_add_ovf(i14, i9)
guard_no_overflow(descr=...)
setfield_gc(p17, p10, descr=...)
i17 = int_sub_ovf(i4, 1)
guard_no_overflow(descr=...)
--TICK--
jump(..., descr=...)
""")
def test_range_iter_simple(self):
def main(n):
def g(n):
return range(n)
s = 0
for i in range(n): # ID: for
tmp = g(n)
s += tmp[i] # ID: getitem
a = 0
return s
#
log = self.run(main, [1000])
assert log.result == 1000 * 999 / 2
loop, = log.loops_by_filename(self.filepath)
assert loop.match(self.RANGE_ITER_STEP_1)
RANGE_ITER_STEP_1 = """
guard_not_invalidated?
# W_IntRangeStepOneIterator.next()
i16 = int_lt(i11, i12)
guard_true(i16, descr=...)
i20 = int_add(i11, 1)
setfield_gc(p4, i20, descr=<.* .*W_IntRangeIterator.inst_current .*>)
guard_not_invalidated?
i21 = force_token()
i89 = int_lt(0, i9)
guard_true(i89, descr=...)
i88 = int_sub(i9, 1)
# Compared with pypy2, we get these two operations extra.
# I think the reason is that W_IntRangeStepOneIterator is used
# for any 'start' value, which might be negative.
i89 = int_lt(i11, 0)
guard_false(i89, descr=...)
i25 = int_ge(i11, i9)
guard_false(i25, descr=...)
i27 = int_add_ovf(i7, i11)
guard_no_overflow(descr=...)
--TICK--
jump(..., descr=...)
"""
def test_range_iter_normal(self):
# Difference: range(n) => range(1, n).
# This difference doesn't really change anything in pypy3.5,
# but it used to in pypy2.7.
def main(n):
def g(n):
return range(n)
s = 0
for i in range(1, n): # ID: for
tmp = g(n)
s += tmp[i] # ID: getitem
a = 0
return s
#
log = self.run(main, [1000])
assert log.result == 1000 * 999 / 2
loop, = log.loops_by_filename(self.filepath)
assert loop.match(self.RANGE_ITER_STEP_1)
def test_chain_of_guards(self):
src = """
class A(object):
def method_x(self):
return 3
l = ["x", "y"]
def main(arg):
sum = 0
a = A()
i = 0
while i < 500:
name = l[arg]
sum += getattr(a, 'method_' + name)()
i += 1
return sum
"""
log = self.run(src, [0])
assert log.result == 500*3
loops = log.loops_by_filename(self.filepath)
assert len(loops) == 1
def test_unpack_iterable_non_list_tuple(self):
def main(n):
import array
items = [array.array("i", [1])] * n
total = 0
for a, in items:
total += a
return total
log = self.run(main, [1000000])
assert log.result == 1000000
loop, = log.loops_by_filename(self.filepath)
assert loop.match("""
guard_not_invalidated?
i16 = uint_ge(i12, i14)
guard_false(i16, descr=...)
p17 = getarrayitem_gc_r(p16, i12, descr=<ArrayP .>)
i19 = int_add(i12, 1)
setfield_gc(p9, i19, descr=<FieldS .*W_AbstractSeqIterObject.inst_index .*>)
guard_nonnull_class(p17, ..., descr=...)
guard_not_invalidated?
i21 = getfield_gc_i(p17, descr=<FieldS .*W_Array.*.inst_len .*>)
i23 = int_lt(0, i21)
guard_true(i23, descr=...)
i24 = getfield_gc_i(p17, descr=<FieldU .*W_ArrayBase.inst__buffer .*>)
i25 = getarrayitem_raw_i(i24, 0, descr=<.*>)
i27 = int_lt(1, i21)
guard_false(i27, descr=...)
i28 = int_add_ovf(i10, i25)
guard_no_overflow(descr=...)
--TICK--
if00 = arraylen_gc(p16, descr=...)
jump(..., descr=...)
""")
def test_dont_trace_every_iteration(self):
def reference(a, b):
i = sa = 0
while i < 300:
sa += a % b
i += 1
return sa
#
def main(a, b):
i = sa = 0
while i < 300:
if a > 0:
pass
if 1 < b < 2:
pass
sa += a % b
i += 1
return sa
#
log_ref = self.run(reference, [10, 20])
assert log_ref.result == 300 * (10 % 20)
#
log = self.run(main, [10, 20])
assert log.result == 300 * (10 % 20)
assert log.jit_summary.tracing_no == log_ref.jit_summary.tracing_no
loop, = log.loops_by_filename(self.filepath)
assert loop.match("""
i11 = int_lt(i7, 300)
guard_true(i11, descr=...)
i12 = int_add_ovf(i8, i9)
guard_no_overflow(descr=...)
i14 = int_add(i7, 1)
--TICK--
jump(..., descr=...)
""")
#
log = self.run(main, [-10, -20])
assert log.result == 300 * (-10 % -20)
assert log.jit_summary.tracing_no == log_ref.jit_summary.tracing_no
def test_overflow_checking(self):
"""
This test only checks that we get the expected result, not that any
optimization has been applied.
"""
def main():
import sys
def f(a,b):
if a < 0:
return -1
return a-b
#
total = sys.maxsize - 2147483647
for i in range(100000):
total += f(i, 5)
#
return total
#
self.run_and_check(main, [])
def test_global(self):
# check that the global read is removed even from the entry bridge
log = self.run("""
i = 0
globalinc = 1
def main(n):
global i
while i < n:
l = globalinc # ID: globalread
i += l
""", [1000])
loop, = log.loops_by_id("globalread", is_entry_bridge=True)
assert loop.match_by_id("globalread", """
# only a dead read
dummy_get_utf8?
""")
def test_eval(self):
def main():
i = 1
a = compile('x+x+x+x+x+x', 'eval', 'eval')
b = {'x': 7}
while i < 1000:
y = eval(a, b, b) # ID: eval
i += 1
return y
log = self.run(main)
assert log.result == 42
# the following assertion fails if the loop was cancelled due
# to "abort: vable escape"
assert len(log.loops_by_id("eval")) == 1
def test_sys_exc_info(self):
def main():
i = 1
lst = [i]
while i < 1000:
try:
return lst[i]
except:
e = sys.exc_info()[1] # ID: exc_info
if not isinstance(e, IndexError):
raise
i += 1
return 42
log = self.run(main)
assert log.result == 42
# the following assertion fails if the loop was cancelled due
# to "abort: vable escape"
assert len(log.loops_by_id("exc_info")) == 1
def test_long_comparison(self):
def main(n):
while n:
x = 12345678901234567890123456
x > 1231231231231231231231231 # ID: long_op
n -= 1
log = self.run(main, [300])
loop, = log.loops_by_id("long_op")
assert len(loop.ops_by_id("long_op")) == 0
def test_settrace(self):
def main(n):
import sys
sys.settrace(lambda *args, **kwargs: None)
def f():
return 1
while n:
n -= f()
log = self.run(main, [300])
loops = log.loops_by_filename(self.filepath)
# the following assertion fails if the loop was cancelled due
# to "abort: vable escape"
assert len(loops) == 1
|
takezoe/metals
|
mtags/src/main/scala-2/scala/meta/internal/metals/EmptyResult.scala
|
package scala.meta.internal.metals
import scala.meta.Position
object EmptyResult {
case object Unchanged extends EmptyResult
case object NoMatch extends EmptyResult
def unchanged: Either[EmptyResult, Position] = Left(Unchanged)
def noMatch: Either[EmptyResult, Position] = Left(NoMatch)
}
sealed trait EmptyResult
|
KuKuXia/30-Days-Plan-for-Practicing-C-Plus-Plus-11-STL
|
day3_count_and_count_if.cpp
|
//
// Created by LongXiaJun on 2018/12/9 0009.
//
#include "day3_count_and_count_if.h"
#include <iostream>
#include <algorithm>
#include <vector>
namespace demo_count_and_count_if {
namespace definition_count_and_count_if {
// Possible Definition
template<typename InputIt, typename T>
typename __gnu_cxx::iterator_traits<InputIt>::difference_type
count(InputIt first, InputIt last, const T &value) {
typename __gnu_cxx::iterator_traits<InputIt>::difference_type ret = 0;
for (; first != last; ++first) {
if (*first == value) {
ret++;
}
}
return ret;
}
template<class InputIt, class UnaryPredicate>
typename __gnu_cxx::iterator_traits<InputIt>::difference_type
count_if(InputIt first, InputIt last, UnaryPredicate p) {
typename __gnu_cxx::iterator_traits<InputIt>::difference_type ret = 0;
for (; first != last; ++first) {
if (p(*first)) {
ret++;
}
}
return ret;
}
}
void stl_count_and_count_if() {
std::vector<int> v{1, 2, 3, 4, 5, 5, 6, 3, 3, 3, 6, 5, 5, 5, 5, 3, 3, 5, 7, 7, 3, 4,};
std::cout << "STL count_and_count_if usage demo: " << std::endl;
std::cout << "Source vector: ";
std::for_each(v.begin(), v.end(), [](auto const &a) { std::cout << a << " "; });
std::cout << "\n";
int target1 = 3;
int target2 = 5;
int num_target1 = std::count(v.begin(), v.end(), target1);
int num_target2 = std::count(v.begin(), v.end(), target2);
std::cout << "Num for " << target1 << " is: " << num_target1 << std::endl;
std::cout << "Num for " << target2 << " is: " << num_target2 << std::endl;
int num_item3 = std::count_if(v.begin(), v.end(), [](auto const &a) { return a % 3 == 0; });
std::cout << "Num of being divided by 3: " << num_item3 << std::endl;
}
}
|
Grosskopf/openoffice
|
main/sc/source/ui/inc/solveroptions.hxx
|
/**************************************************************
*
* 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.
*
*************************************************************/
#ifndef SC_SOLVEROPTIONS_HXX
#define SC_SOLVEROPTIONS_HXX
#include <vcl/dialog.hxx>
#ifndef _SV_BUTTON_HXX //autogen
#include <vcl/button.hxx>
#endif
#include <vcl/fixed.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/field.hxx>
#include <svx/checklbx.hxx>
#include <com/sun/star/uno/Sequence.hxx>
namespace com { namespace sun { namespace star {
namespace beans { struct PropertyValue; }
} } }
class ScSolverOptionsDialog : public ModalDialog
{
FixedText maFtEngine;
ListBox maLbEngine;
FixedText maFtSettings;
SvxCheckListBox maLbSettings;
PushButton maBtnEdit;
FixedLine maFlButtons;
HelpButton maBtnHelp;
OKButton maBtnOk;
CancelButton maBtnCancel;
SvLBoxButtonData* mpCheckButtonData;
com::sun::star::uno::Sequence<rtl::OUString> maImplNames;
com::sun::star::uno::Sequence<rtl::OUString> maDescriptions;
String maEngine;
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> maProperties;
DECL_LINK( EngineSelectHdl, ListBox* );
DECL_LINK( SettingsSelHdl, SvxCheckListBox* );
DECL_LINK( SettingsDoubleClickHdl, SvTreeListBox* );
DECL_LINK( ButtonHdl, PushButton* );
void ReadFromComponent();
void FillListBox();
void EditOption();
public:
ScSolverOptionsDialog( Window* pParent,
const com::sun::star::uno::Sequence<rtl::OUString>& rImplNames,
const com::sun::star::uno::Sequence<rtl::OUString>& rDescriptions,
const String& rEngine,
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rProperties );
~ScSolverOptionsDialog();
const String& GetEngine() const;
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& GetProperties();
};
class ScSolverIntegerDialog : public ModalDialog
{
FixedText maFtName;
NumericField maNfValue;
FixedLine maFlButtons;
OKButton maBtnOk;
CancelButton maBtnCancel;
public:
ScSolverIntegerDialog( Window * pParent );
~ScSolverIntegerDialog();
void SetOptionName( const String& rName );
void SetValue( sal_Int32 nValue );
sal_Int32 GetValue() const;
};
class ScSolverValueDialog : public ModalDialog
{
FixedText maFtName;
Edit maEdValue;
FixedLine maFlButtons;
OKButton maBtnOk;
CancelButton maBtnCancel;
public:
ScSolverValueDialog( Window * pParent );
~ScSolverValueDialog();
void SetOptionName( const String& rName );
void SetValue( double fValue );
double GetValue() const;
};
#endif
|
alvaropp/AdventOfCode2017
|
2017/day19-2.py
|
<reponame>alvaropp/AdventOfCode2017<filename>2017/day19-2.py<gh_stars>0
import numpy as np
with open("day19.txt") as f:
data = [x[:-1] for x in f.readlines()]
# Position
pos = 0
while data[0][pos] == " ":
pos += 1
pos = np.array([0, pos])
previousPos = pos
# Direction
dirs = {'u': np.array([-1, 0]),
'r': np.array([0, 1]),
'd': np.array([1, 0]),
'l': np.array([0, -1])}
markers = {'u': '|',
'r': '-',
'd': '|',
'l': '-'}
oposite = {'u': 'd',
'r': 'l',
'd': 'u',
'l': 'r'}
direction = "d"
collectedLetters = []
for i in range(100000):
newDirection = None
# Potentially collect letter
if data[pos[0]][pos[1]] not in ['-', '|', '+', '']:
collectedLetters.append(data[pos[0]][pos[1]])
# Update pos
newPos = pos + dirs[direction]
if data[newPos[0]][newPos[1]] != " ":
pos = newPos
# Update dir
if data[newPos[0]][newPos[1]] == "+":
for key in dirs:
if key != direction and key != oposite[direction]:
newPos = pos + dirs[key]
if data[newPos[0]][newPos[1]] != " ":
newDirection = key
break
if newDirection != direction and newDirection is not None:
direction = newDirection
# Check for movement
if any(newPos != pos) and newDirection is None:
print("Result =", i+1)
break
|
tdc22/JAwesomeEngine
|
JAwesomePhysics/src/objects/Ray2.java
|
<reponame>tdc22/JAwesomeEngine
package objects;
import vector.Vector2f;
public class Ray2 extends Ray<Vector2f> {
public Ray2(Vector2f pos, Vector2f dir) {
super(pos, dir);
}
@Override
public Vector2f pointOnRay(float lambda) {
return new Vector2f(pos.x + lambda * dir.x, pos.y + lambda * dir.y);
}
}
|
thufv/mastery
|
src/main/java/mastery/tree/Leaf.java
|
<gh_stars>0
package mastery.tree;
/**
* A leaf node, i.e. a token.
*/
public class Leaf extends Tree {
public final String code;
public Leaf(int label, String name, String code) {
super(label, name, code);
this.code = code;
}
@Override
public final boolean isLeaf() {
return true;
}
@Override
public final boolean isConstructor() {
return false;
}
@Override
public final boolean isOrderedList() {
return false;
}
@Override
public final boolean isUnorderedList() {
return false;
}
@Override
public final boolean isConflict() {
return false;
}
@Override
public final Tree deepCopy() {
Tree copiedLeaf = new Leaf(label, name, code);
copiedLeaf.assignment = assignment;
copiedLeaf.actionId = actionId;
copiedLeaf.dfsIndex = dfsIndex;
return copiedLeaf;
}
@Override
public boolean identicalTo(Tree that) {
if (that.isLeaf()) {
Leaf leaf = (Leaf) that;
return label == leaf.label && code.equals(leaf.code);
}
return false;
}
@Override
@SafeVarargs
public final <C> void accept(Visitor<C> visitor, C... ctx) {
visitor.visitLeaf(this, ctx);
}
@Override
public final <T> T accept(RichVisitor<T> visitor) {
return visitor.visitLeaf(this);
}
@Override
public String toString() {
return name + " '" + code + "'" + " assignment " + assignment;
}
}
|
eSignLive/spring-social-salesforce
|
src/main/java/org/springframework/social/salesforce/api/impl/SalesforceErrorHandler.java
|
package org.springframework.social.salesforce.api.impl;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.CollectionType;
import com.fasterxml.jackson.databind.type.TypeFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.social.*;
import org.springframework.social.salesforce.api.InvalidIDException;
import org.springframework.social.salesforce.api.Salesforce;
import org.springframework.web.client.DefaultResponseErrorHandler;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/**
* @author <NAME>
*/
public class SalesforceErrorHandler extends DefaultResponseErrorHandler {
@Override
public void handleError(ClientHttpResponse response) throws IOException {
Map<String, Object> errorDetails = extractErrorDetailsFromResponse(response);
if (errorDetails == null) {
handleUncategorizedError(response, errorDetails);
}
handleSalesforceError(response.getStatusCode(), errorDetails);
// if not otherwise handled, do default handling and wrap with UncategorizedApiException
handleUncategorizedError(response, errorDetails);
}
private void handleSalesforceError(HttpStatus statusCode, Map<String, Object> errorDetails) {
if (statusCode.equals(HttpStatus.NOT_FOUND)) {
throw new ResourceNotFoundException(Salesforce.PROVIDER_ID, generateMessage(errorDetails));
} else if (statusCode.equals(HttpStatus.SERVICE_UNAVAILABLE)) {
throw new RateLimitExceededException(Salesforce.PROVIDER_ID);
} else if (statusCode.equals(HttpStatus.INTERNAL_SERVER_ERROR)) {
throw new InternalServerErrorException(Salesforce.PROVIDER_ID, errorDetails == null ? "Contact Salesforce administrator." : generateMessage(errorDetails));
} else if (statusCode.equals(HttpStatus.BAD_REQUEST)) {
throw new InvalidIDException(generateMessage(errorDetails));
} else if (statusCode.equals(HttpStatus.UNAUTHORIZED)) {
throw new InvalidAuthorizationException(Salesforce.PROVIDER_ID, generateMessage(errorDetails));
} else if (statusCode.equals(HttpStatus.FORBIDDEN)) {
throw new InsufficientPermissionException(generateMessage(errorDetails));
}
}
private void handleUncategorizedError(ClientHttpResponse response, Map<String, Object> errorDetails) {
try {
super.handleError(response);
} catch (Exception e) {
if (errorDetails != null) {
throw new UncategorizedApiException(Salesforce.PROVIDER_ID, generateMessage(errorDetails), e);
} else {
throw new UncategorizedApiException(Salesforce.PROVIDER_ID, "No error details from Salesforce.", e);
}
}
}
@SuppressWarnings("unchecked")
private Map<String, Object> extractErrorDetailsFromResponse(ClientHttpResponse response) throws IOException {
ObjectMapper mapper = new ObjectMapper(new JsonFactory());
try {
CollectionType listType = TypeFactory.defaultInstance().constructCollectionType(List.class, Map.class);
List<Map<String, Object>> errorList = mapper.readValue(response.getBody(), listType);
if (errorList.size() > 0) {
return errorList.get(0);
}
} catch (JsonParseException e) {
}
return null;
}
private String generateMessage(Map<String, Object> errorDetails) {
return (String) errorDetails.get("message");
}
}
|
nicholaspai/lottery
|
node_modules/ethpm/lib/hosts/ipfshostwithlocalreader.js
|
var wget = require("wget-improved");
var inherits = require("util").inherits;
var IPFSHost = require("./ipfshost");
inherits(IPFSHostWithLocalReader, IPFSHost);
function IPFSHostWithLocalReader(host, port, protocol) {
IPFSHost.call(this, host, port, protocol);
}
IPFSHostWithLocalReader.prototype.get = function(uri) {
var self = this;
return new Promise(function(accept, reject) {
if (uri.indexOf("ipfs://") != 0) {
return reject(new Error("Don't know how to resolve URI " + uri));
}
var hash = uri.replace("ipfs://", "");
var multihash = hash;
var options = {
protocol: self.protocol,
host: self.host,
path: '/ipfs/' + hash,
method: 'GET'
};
var req = wget.request(options, function(res) {
var content = '';
if (res.statusCode === 200) {
res.on('error', reject);
res.on('data', function(chunk) {
content += chunk;
});
res.on('end', function() {
accept(content);
});
} else {
reject(new Error("Unknown server response " + res.statusCode + " when downloading hash " + hash));
}
});
req.end();
req.on('error', reject);
});
};
module.exports = IPFSHostWithLocalReader;
|
jnthn/intellij-community
|
java/java-tests/testData/refactoring/moveInner/scr13730/after/pack1/StaticInner.java
|
<reponame>jnthn/intellij-community<filename>java/java-tests/testData/refactoring/moveInner/scr13730/after/pack1/StaticInner.java
package pack1;
public class StaticInner {
public class NonStaticInnerInner {
private String name;
public NonStaticInnerInner(String name) {
this.name = name;
}
public String toString() {
return name;
}
}
}
|
TheAmeliaDeWitt/Limestone
|
projects/LimestoneClient/minecraft/Forge/src/main/java/net/minecraft/command/ICommand.java
|
<reponame>TheAmeliaDeWitt/Limestone
package net.minecraft.command;
import java.util.List;
import javax.annotation.Nullable;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.math.BlockPos;
public interface ICommand extends Comparable<ICommand>
{
String getName();
String getUsage(ICommandSender sender);
List<String> getAliases();
void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException;
boolean checkPermission(MinecraftServer server, ICommandSender sender);
List<String> getTabCompletions(MinecraftServer server, ICommandSender sender, String[] args, @Nullable BlockPos targetPos);
boolean isUsernameIndex(String[] args, int index);
}
|
kotabrog/CPP-module
|
module-02/ex02/Fixed.hpp
|
#ifndef FIXED_H
#define FIXED_H
#include <iostream>
#include <climits>
#include <cmath>
class Fixed
{
private:
static const int point = 8;
int raw;
public:
Fixed();
Fixed(int value);
Fixed(float value);
Fixed(const Fixed& a);
~Fixed();
Fixed& operator=(const Fixed& a);
bool operator==(const Fixed& a) const;
bool operator!=(const Fixed& a) const;
bool operator<(const Fixed& a) const;
bool operator>(const Fixed& a) const;
bool operator<=(const Fixed& a) const;
bool operator>=(const Fixed& a) const;
Fixed operator+(const Fixed& a) const;
Fixed operator-(const Fixed& a) const;
Fixed operator*(const Fixed& a) const;
Fixed operator/(const Fixed& a) const;
Fixed operator+() const;
Fixed operator-() const;
Fixed& operator++();
Fixed& operator--();
Fixed operator++(int);
Fixed operator--(int);
int getRawBits(void) const;
void setRawBits(const int raw);
float toFloat(void) const;
int toInt(void) const;
static Fixed& min(Fixed& a, Fixed& b);
static const Fixed& min(const Fixed& a, const Fixed& b);
static Fixed& max(Fixed& a, Fixed& b);
static const Fixed& max(const Fixed& a, const Fixed& b);
};
std::ostream& operator<<(std::ostream& os, const Fixed &a);
#endif
|
VickyZengg/MediaSDK
|
_studio/mfx_lib/genx/mctf/isa/genx_me_gen11lp_isa.cpp
|
// Copyright (c) 2020 Intel Corporation
//
// 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.
#include "genx_me_gen11lp_isa.h"
const unsigned char genx_me_gen11lp[32656] = {
0x43,0x49,0x53,0x41,0x03,0x06,0x05,0x00,0x0d,0x4d,0x65,0x50,0x31,0x36,0x5f,0x31,
0x4d,0x56,0x5f,0x4d,0x52,0x45,0xed,0x00,0x00,0x00,0xb7,0x0f,0x00,0x00,0x28,0x08,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x0a,0xa4,0x10,0x00,0x00,0x30,0x06,0x00,0x00,
0x11,0x4d,0x65,0x50,0x31,0x36,0x5f,0x31,0x4d,0x56,0x5f,0x4d,0x52,0x45,0x5f,0x38,
0x78,0x38,0xd4,0x16,0x00,0x00,0x8f,0x0e,0x00,0x00,0x95,0x1d,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0x0a,0x63,0x25,0x00,0x00,0xc0,0x05,0x00,0x00,0x10,0x4d,0x65,0x50,
0x31,0x36,0x62,0x69,0x5f,0x31,0x4d,0x56,0x32,0x5f,0x4d,0x52,0x45,0x23,0x2b,0x00,
0x00,0x56,0x14,0x00,0x00,0xc8,0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x0a,0x79,
0x3f,0x00,0x00,0x90,0x07,0x00,0x00,0x14,0x4d,0x65,0x50,0x31,0x36,0x62,0x69,0x5f,
0x31,0x4d,0x56,0x32,0x5f,0x4d,0x52,0x45,0x5f,0x38,0x78,0x38,0x09,0x47,0x00,0x00,
0xef,0x15,0x00,0x00,0x24,0x51,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x0a,0xf8,0x5c,
0x00,0x00,0x70,0x08,0x00,0x00,0x18,0x4d,0x65,0x50,0x31,0x36,0x5f,0x31,0x4d,0x45,
0x5f,0x32,0x42,0x69,0x52,0x65,0x66,0x5f,0x4d,0x52,0x45,0x5f,0x38,0x78,0x38,0x68,
0x65,0x00,0x00,0xd0,0x12,0x00,0x00,0x0f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x0a,0x38,0x78,0x00,0x00,0x58,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x76,0x00,0x00,
0x00,0x4d,0x65,0x50,0x31,0x36,0x5f,0x31,0x4d,0x56,0x5f,0x4d,0x52,0x45,0x00,0x6e,
0x75,0x6c,0x6c,0x00,0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x78,0x00,0x74,0x68,0x72,
0x65,0x61,0x64,0x5f,0x79,0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,0x78,
0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,0x79,0x00,0x67,0x72,0x6f,0x75,
0x70,0x5f,0x69,0x64,0x5f,0x7a,0x00,0x74,0x73,0x63,0x00,0x72,0x30,0x00,0x61,0x72,
0x67,0x00,0x72,0x65,0x74,0x76,0x61,0x6c,0x00,0x73,0x70,0x00,0x66,0x70,0x00,0x68,
0x77,0x5f,0x69,0x64,0x00,0x73,0x72,0x30,0x00,0x63,0x72,0x30,0x00,0x63,0x65,0x30,
0x00,0x64,0x62,0x67,0x30,0x00,0x63,0x6f,0x6c,0x6f,0x72,0x00,0x54,0x30,0x00,0x54,
0x31,0x00,0x54,0x32,0x00,0x54,0x53,0x53,0x00,0x54,0x32,0x35,0x32,0x00,0x54,0x32,
0x35,0x35,0x00,0x53,0x33,0x31,0x00,0x56,0x33,0x32,0x00,0x56,0x33,0x33,0x00,0x56,
0x33,0x34,0x00,0x56,0x33,0x35,0x00,0x56,0x33,0x36,0x00,0x56,0x33,0x37,0x00,0x56,
0x33,0x38,0x00,0x56,0x33,0x39,0x00,0x56,0x34,0x30,0x00,0x56,0x34,0x31,0x00,0x56,
0x34,0x32,0x00,0x56,0x34,0x33,0x00,0x56,0x34,0x34,0x00,0x56,0x34,0x35,0x00,0x56,
0x34,0x36,0x00,0x56,0x34,0x37,0x00,0x56,0x34,0x38,0x00,0x56,0x34,0x39,0x00,0x56,
0x35,0x30,0x00,0x56,0x35,0x31,0x00,0x56,0x35,0x32,0x00,0x56,0x35,0x33,0x00,0x56,
0x35,0x34,0x00,0x56,0x35,0x35,0x00,0x56,0x35,0x36,0x00,0x56,0x35,0x37,0x00,0x56,
0x35,0x38,0x00,0x56,0x35,0x39,0x00,0x56,0x36,0x30,0x00,0x56,0x36,0x31,0x00,0x56,
0x36,0x32,0x00,0x56,0x36,0x33,0x00,0x56,0x36,0x34,0x00,0x56,0x36,0x35,0x00,0x56,
0x36,0x36,0x00,0x56,0x36,0x37,0x00,0x56,0x36,0x38,0x00,0x56,0x36,0x39,0x00,0x56,
0x37,0x30,0x00,0x56,0x37,0x31,0x00,0x56,0x37,0x32,0x00,0x56,0x37,0x33,0x00,0x56,
0x37,0x34,0x00,0x56,0x37,0x35,0x00,0x56,0x37,0x36,0x00,0x56,0x37,0x37,0x00,0x56,
0x37,0x38,0x00,0x56,0x37,0x39,0x00,0x56,0x38,0x30,0x00,0x56,0x38,0x31,0x00,0x56,
0x38,0x32,0x00,0x56,0x38,0x33,0x00,0x56,0x38,0x34,0x00,0x56,0x38,0x35,0x00,0x56,
0x38,0x36,0x00,0x56,0x38,0x37,0x00,0x56,0x38,0x38,0x00,0x56,0x38,0x39,0x00,0x56,
0x39,0x30,0x00,0x56,0x39,0x31,0x00,0x56,0x39,0x32,0x00,0x56,0x39,0x33,0x00,0x56,
0x39,0x34,0x00,0x56,0x39,0x35,0x00,0x56,0x39,0x36,0x00,0x56,0x39,0x37,0x00,0x56,
0x39,0x38,0x00,0x56,0x39,0x39,0x00,0x56,0x31,0x30,0x30,0x00,0x56,0x31,0x30,0x31,
0x00,0x56,0x31,0x30,0x32,0x00,0x56,0x31,0x30,0x33,0x00,0x56,0x31,0x30,0x34,0x00,
0x56,0x31,0x30,0x35,0x00,0x56,0x31,0x30,0x36,0x00,0x56,0x31,0x30,0x37,0x00,0x56,
0x31,0x30,0x38,0x00,0x56,0x31,0x30,0x39,0x00,0x56,0x31,0x31,0x30,0x00,0x56,0x31,
0x31,0x31,0x00,0x56,0x31,0x31,0x32,0x00,0x50,0x31,0x00,0x50,0x32,0x00,0x50,0x33,
0x00,0x4d,0x65,0x50,0x31,0x36,0x5f,0x31,0x4d,0x56,0x5f,0x4d,0x52,0x45,0x5f,0x42,
0x42,0x5f,0x30,0x5f,0x36,0x38,0x00,0x42,0x42,0x5f,0x31,0x5f,0x31,0x31,0x30,0x00,
0x54,0x36,0x00,0x54,0x37,0x00,0x54,0x38,0x00,0x54,0x39,0x00,0x41,0x73,0x6d,0x4e,
0x61,0x6d,0x65,0x00,0x54,0x61,0x72,0x67,0x65,0x74,0x00,0x00,0x00,0x00,0x00,0x51,
0x00,0x00,0x00,0x1a,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1b,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1c,0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x1d,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1e,
0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,
0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,
0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x00,
0x23,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x00,0x13,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x23,0x00,0x00,0x00,0x23,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x53,0x20,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x25,0x00,0x00,0x00,0x13,0x02,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26,0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x27,0x00,0x00,0x00,0x55,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x2a,0x00,0x00,0x00,0x15,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x2b,0x00,0x00,0x00,0x05,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x2c,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x2d,0x00,0x00,0x00,0x55,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2e,
0x00,0x00,0x00,0x51,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2f,0x00,
0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,
0x00,0x53,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x00,0x00,0x00,
0x51,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x51,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,0x21,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x34,0x00,0x00,0x00,0x51,0x10,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x35,0x00,0x00,0x00,0x51,0x20,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x51,0x08,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x37,0x00,0x00,0x00,0x51,0x10,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x39,0x00,0x00,0x00,0x53,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3a,0x00,0x00,0x00,0x53,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x3b,0x00,0x00,0x00,0x53,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3c,0x00,0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x3d,0x00,0x00,0x00,0x01,0x01,0x00,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,
0x00,0x00,0x00,0x02,0x02,0x00,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0x00,
0x00,0x00,0x02,0x01,0x00,0x22,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,
0x00,0x01,0x01,0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x00,0x00,
0x02,0x01,0x00,0x25,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x00,0x00,0x00,0x01,
0x01,0x00,0x27,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x43,0x00,0x00,0x00,0x04,0x01,
0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x00,0x00,0x00,0x01,0x01,0x00,
0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x45,0x00,0x00,0x00,0x05,0x80,0x00,0x34,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x46,0x00,0x00,0x00,0x01,0x10,0x00,0x2a,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x47,0x00,0x00,0x00,0x05,0x40,0x00,0x2a,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x05,0x40,0x00,0x2a,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x49,0x00,0x00,0x00,0x03,0x02,0x00,0x2b,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x4a,0x00,0x00,0x00,0x03,0x02,0x00,0x2c,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x4b,0x00,0x00,0x00,0x03,0x20,0x00,0x2d,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x4c,0x00,0x00,0x00,0x03,0x20,0x00,0x2d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x4d,0x00,0x00,0x00,0x03,0x02,0x00,0x2e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4e,
0x00,0x00,0x00,0x05,0x40,0x00,0x2d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x00,
0x00,0x00,0x03,0x02,0x00,0x2f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,0x00,0x00,
0x00,0x03,0x20,0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x51,0x00,0x00,0x00,
0x03,0x20,0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x52,0x00,0x00,0x00,0x05,
0x40,0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x53,0x00,0x00,0x00,0x03,0x02,
0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x54,0x00,0x00,0x00,0x04,0x40,0x00,
0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x55,0x00,0x00,0x00,0x02,0x02,0x00,0x30,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x56,0x00,0x00,0x00,0x05,0x02,0x00,0x31,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x57,0x00,0x00,0x00,0x05,0x04,0x00,0x30,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x58,0x00,0x00,0x00,0x05,0x01,0x00,0x32,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x59,0x00,0x00,0x00,0x01,0x10,0x00,0x33,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x5a,0x00,0x00,0x00,0x01,0x30,0x00,0x36,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x5b,0x00,0x00,0x00,0x05,0xc0,0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x5c,0x00,0x00,0x00,0x01,0x01,0x00,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x5d,0x00,0x00,0x00,0x01,0x01,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5e,
0x00,0x00,0x00,0x00,0x01,0x00,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5f,0x00,
0x00,0x00,0x03,0x90,0x00,0x37,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,
0x00,0x02,0x90,0x00,0x37,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,
0x01,0x01,0x00,0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x62,0x00,0x00,0x00,0x00,
0x01,0x00,0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x00,0x00,0x00,0x00,0x01,
0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x03,0x40,0x00,
0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x65,0x00,0x00,0x00,0x01,0x40,0x00,0x3f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x00,0x00,0x00,0x01,0x10,0x00,0x3d,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x67,0x00,0x00,0x00,0x01,0x08,0x00,0x3c,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x68,0x00,0x00,0x00,0x05,0x00,0x01,0x3f,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x69,0x00,0x00,0x00,0x01,0x01,0x00,0x3e,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x6a,0x00,0x00,0x00,0x00,0x01,0x00,0x3e,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x03,0x00,0x6b,0x00,0x00,0x00,0x02,0x00,0x00,0x6c,0x00,0x00,
0x00,0x02,0x00,0x00,0x6d,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x6e,0x00,0x00,
0x00,0x01,0x00,0x6f,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x70,0x00,0x00,0x00,0x01,
0x00,0x00,0x71,0x00,0x00,0x00,0x01,0x00,0x00,0x72,0x00,0x00,0x00,0x01,0x00,0x00,
0x73,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x02,0x06,0x00,0x00,
0x00,0x20,0x00,0x04,0x00,0x02,0x07,0x00,0x00,0x00,0x24,0x00,0x04,0x00,0x02,0x08,
0x00,0x00,0x00,0x28,0x00,0x04,0x00,0x02,0x09,0x00,0x00,0x00,0x2c,0x00,0x04,0x00,
0x00,0x23,0x00,0x00,0x00,0x30,0x00,0x04,0x00,0x00,0x20,0x00,0x00,0x00,0x34,0x00,
0x01,0x00,0x20,0x08,0x00,0x00,0x97,0x07,0x00,0x00,0x02,0x00,0x74,0x00,0x00,0x00,
0x0d,0x67,0x65,0x6e,0x78,0x5f,0x6d,0x65,0x5f,0x30,0x2e,0x61,0x73,0x6d,0x75,0x00,
0x00,0x00,0x01,0x00,0x30,0x00,0x00,0x2d,0x00,0x00,0x42,0x00,0x00,0x00,0x00,0x00,
0x00,0x02,0x06,0x00,0x07,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x01,0x00,0x00,
0x00,0x00,0x43,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x44,0x00,0x00,0x00,0x00,
0x00,0x21,0x01,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,
0x00,0x25,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x00,0x00,0x00,0x00,
0x21,0x01,0x01,0x00,0x00,0x00,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x44,0x00,0x00,0x00,0x00,0x01,0x21,0x01,0x00,0x47,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x10,0x00,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x43,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x49,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x10,0x00,0x00,0x00,0x00,0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x46,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x49,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x35,
0x03,0x00,0x06,0x05,0x00,0x00,0x00,0x00,0x00,0x4b,0x00,0x00,0x00,0x00,0x00,0x29,
0x00,0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x00,0x00,
0x00,0x00,0x29,0x05,0x00,0x00,0x00,0x2a,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x28,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x2a,0x00,0x00,
0x00,0x00,0x04,0x00,0x02,0x00,0x27,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,
0x00,0x00,0x00,0x2a,0x00,0x00,0x00,0x00,0x05,0x00,0x02,0x00,0x29,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x4c,0x00,0x00,0x00,0x00,0x03,0x00,
0x02,0x05,0x01,0x00,0x00,0xa4,0x76,0x29,0x00,0x00,0x00,0x00,0x4d,0x00,0x00,0x00,
0x01,0x04,0x00,0x02,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x4d,
0x00,0x00,0x00,0x00,0x16,0x00,0x02,0x05,0x05,0x40,0x00,0x00,0x00,0x29,0x00,0x00,
0x00,0x00,0x4d,0x00,0x00,0x00,0x00,0x17,0x00,0x02,0x05,0x05,0x20,0x00,0x00,0x00,
0x21,0x00,0x00,0x00,0x00,0x4e,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x4e,0x00,
0x00,0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x20,0x00,0x00,0x00,0x01,0x01,0x00,0x00,
0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4e,0x00,0x00,0x00,0x00,0x16,
0x22,0x01,0x05,0x03,0xf0,0xff,0xff,0xff,0x26,0x01,0x00,0x00,0x00,0x50,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,
0x01,0x00,0x00,0x00,0x29,0x05,0x00,0x00,0x00,0x51,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x2a,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x01,0x00,0x00,0x00,0x51,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x00,0x00,0x00,0x00,0x20,0x00,0x00,
0x00,0x00,0x52,0x00,0x00,0x00,0x00,0x01,0x00,0x02,0x00,0x52,0x00,0x00,0x00,0x00,
0x01,0x21,0x01,0x05,0x03,0xfe,0xff,0xff,0xff,0x01,0x01,0x00,0x00,0x00,0x52,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x52,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x10,
0x50,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x2c,0x01,0x02,0x02,0x01,0x00,0x00,0x4f,
0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,0xff,0x3f,0x00,0x00,0x01,0x01,0x01,
0x00,0x00,0x52,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x0f,0x20,0x00,0x00,
0x10,0x4e,0x00,0x00,0x00,0x00,0x16,0x22,0x01,0x29,0x01,0x01,0x00,0x00,0x51,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x01,0xe0,0xff,0xff,0x29,0x00,0x00,0x00,
0x00,0x51,0x00,0x00,0x00,0x00,0x0b,0x00,0x02,0x00,0x2a,0x00,0x00,0x00,0x00,0x0b,
0x21,0x01,0x29,0x01,0x00,0x00,0x00,0x51,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,
0x2a,0x00,0x00,0x00,0x00,0x04,0x22,0x01,0x01,0x01,0x00,0x00,0x00,0x53,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x00,0x54,0x00,0x00,0x00,0x00,0x16,0x22,0x01,0x05,0x03,
0xf0,0xff,0xff,0xff,0x26,0x01,0x00,0x00,0x00,0x55,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x53,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,0x01,0x00,0x00,0x00,
0x29,0x05,0x00,0x00,0x00,0x56,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x51,0x00,
0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x01,0x00,0x00,0x00,0x56,0x00,0x00,0x00,0x00,
0x02,0x00,0x02,0x05,0x03,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x57,0x00,
0x00,0x00,0x00,0x03,0x00,0x02,0x00,0x57,0x00,0x00,0x00,0x00,0x03,0x21,0x01,0x05,
0x03,0xfe,0xff,0xff,0xff,0x01,0x01,0x00,0x00,0x00,0x57,0x00,0x00,0x00,0x00,0x02,
0x00,0x02,0x00,0x57,0x00,0x00,0x00,0x00,0x02,0x22,0x01,0x10,0x55,0x00,0x00,0x00,
0x00,0x00,0x22,0x01,0x2c,0x01,0x02,0x02,0x02,0x00,0x00,0x53,0x00,0x00,0x00,0x00,
0x00,0x22,0x01,0x05,0x03,0xff,0x3f,0x00,0x00,0x01,0x01,0x02,0x00,0x00,0x57,0x00,
0x00,0x00,0x00,0x02,0x00,0x02,0x05,0x03,0x0f,0x20,0x00,0x00,0x10,0x54,0x00,0x00,
0x00,0x00,0x16,0x22,0x01,0x29,0x01,0x02,0x00,0x00,0x56,0x00,0x00,0x00,0x00,0x02,
0x00,0x02,0x05,0x03,0x01,0xe0,0xff,0xff,0x29,0x00,0x00,0x00,0x00,0x56,0x00,0x00,
0x00,0x00,0x0b,0x00,0x02,0x00,0x51,0x00,0x00,0x00,0x00,0x0b,0x21,0x01,0x29,0x01,
0x00,0x00,0x00,0x56,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,0x51,0x00,0x00,0x00,
0x00,0x04,0x22,0x01,0x21,0x00,0x00,0x00,0x00,0x58,0x00,0x00,0x00,0x01,0x00,0x00,
0x02,0x00,0x58,0x00,0x00,0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x02,0x00,0x00,0x00,
0x21,0x00,0x00,0x00,0x00,0x58,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x58,0x00,
0x00,0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x80,0xff,0xff,0xff,0x29,0x00,0x00,0x00,
0x00,0x33,0x00,0x00,0x00,0x01,0x04,0x00,0x02,0x05,0x05,0x3f,0x00,0x00,0x00,0x29,
0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x00,0x4b,0x00,0x00,
0x00,0x01,0x18,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,0x01,0x08,
0x00,0x02,0x00,0x4b,0x00,0x00,0x00,0x01,0x19,0x21,0x01,0x01,0x01,0x00,0x00,0x00,
0x59,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5a,0x00,0x00,0x00,0x00,0x16,0x22,
0x01,0x05,0x03,0x70,0x00,0x00,0x00,0x25,0x01,0x00,0x00,0x00,0x5b,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x5b,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x02,0x03,
0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x5c,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x23,0x01,0x05,0x05,0x0f,0x00,0x00,0x00,0x24,
0x00,0x00,0x00,0x00,0x5e,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5c,0x00,0x00,
0x00,0x00,0x01,0x21,0x01,0x05,0x05,0x04,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,
0x58,0x00,0x00,0x00,0x01,0x0a,0x00,0x02,0x00,0x5e,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x00,0x5c,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x33,
0x00,0x00,0x00,0x01,0x06,0x00,0x02,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x00,0x00,
0x00,0x00,0x33,0x00,0x00,0x00,0x01,0x1f,0x00,0x02,0x05,0x05,0x01,0x00,0x00,0x00,
0x29,0x04,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5f,0x00,
0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x02,
0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x04,0x00,0x00,0x00,0x60,0x00,
0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x34,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x20,
0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x00,0x0d,0x00,0x02,0x00,0x61,0x00,0x00,
0x00,0x00,0x0d,0x21,0x01,0x05,0x05,0xf8,0xff,0xff,0xff,0x29,0x01,0x00,0x00,0x00,
0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x56,0x00,0x00,0x00,0x00,0x00,0x22,
0x01,0x29,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x01,0x00,0x02,0x05,0x01,
0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x03,0x00,0x00,
0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x62,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x63,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x00,
0xc0,0x98,0x0c,0x5d,0x00,0x04,0x00,0x00,0x08,0x00,0x00,0x00,0x06,0x09,0x00,0x64,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x36,0x00,0x00,0x00,0x00,0x00,0x65,0x00,0x00,
0x00,0x00,0x00,0x29,0x01,0x00,0x00,0x00,0x41,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x65,0x00,0x00,0x00,0x07,0x0a,0x22,0x01,0x29,0x00,0x00,0x00,0x00,0x38,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x66,0x00,0x00,0x00,0x07,0x08,0x21,0x01,0x24,
0x00,0x00,0x00,0x00,0x67,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x43,0x00,0x00,
0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x02,0x00,0x00,0x00,0x38,0x00,0x08,0x00,0x04,
0x01,0x00,0x68,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x69,0x00,0x00,0x00,0x00,
0x00,0x21,0x01,0x38,0x00,0x00,0x00,0x00,0x00,0x2c,0x00,0x00,0x02,0x03,0x00,0x00,
0x6a,0x00,0x00,0x00,0x02,0x04,0x21,0x01,0x05,0x03,0x00,0x00,0x00,0x00,0x32,0x00,
0x03,0x00,0x01,0x00,0x21,0x00,0x00,0x00,0x00,0x58,0x00,0x00,0x00,0x00,0x0d,0x00,
0x02,0x00,0x58,0x00,0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x05,0x30,0x00,0x00,0x00,
0x20,0x00,0x00,0x00,0x00,0x58,0x00,0x00,0x00,0x00,0x0e,0x00,0x02,0x00,0x58,0x00,
0x00,0x00,0x00,0x0e,0x21,0x01,0x05,0x05,0xfb,0xff,0xff,0xff,0x29,0x03,0x00,0x00,
0x00,0x3a,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x08,0x00,0x00,0x00,0x00,0x29,
0x03,0x00,0x00,0x00,0x3a,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x05,0x08,0x00,0x00,
0x00,0x00,0x29,0x04,0x00,0x00,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x3a,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x3b,0x00,0x00,
0x00,0x02,0x00,0x00,0x02,0x00,0x3a,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x03,
0x00,0x00,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x37,0x00,0x00,0x00,
0x07,0x05,0x21,0x01,0x29,0x03,0x00,0x00,0x00,0x3b,0x00,0x00,0x00,0x02,0x00,0x00,
0x03,0x00,0x37,0x00,0x00,0x00,0x07,0x05,0x21,0x01,0x29,0x04,0x00,0x00,0x00,0x6b,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5f,0x00,0x00,0x00,0x00,0x00,0x22,0x01,
0x29,0x03,0x00,0x00,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x08,0x00,
0x00,0x10,0x00,0x10,0x03,0x00,0x00,0x00,0x6c,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x6d,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x01,0x00,0x00,0x03,0x00,0x29,
0x03,0x00,0x00,0x00,0x3d,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x05,0x01,0x00,0x00,
0x00,0x00,0x29,0x04,0x00,0x00,0x00,0x6b,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x00,
0x3d,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x6b,0x00,0x00,
0x00,0x04,0x00,0x00,0x02,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,
0x00,0x00,0x00,0x6b,0x00,0x00,0x00,0x06,0x00,0x00,0x02,0x00,0x3b,0x00,0x00,0x00,
0x02,0x00,0x22,0x01,0x29,0x00,0x00,0x00,0x00,0x6e,0x00,0x00,0x00,0x02,0x14,0x00,
0x02,0x05,0x05,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x6e,0x00,0x00,0x00,
0x02,0x15,0x00,0x02,0x05,0x05,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x6e,
0x00,0x00,0x00,0x02,0x16,0x00,0x02,0x05,0x05,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
0x00,0x00,0x6f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x63,0x00,0x00,0x00,0x00,
0x00,0x21,0x01,0x05,0x01,0x00,0x60,0x78,0x10,0x5d,0x00,0x04,0x00,0x00,0x0d,0x00,
0x00,0x00,0x08,0x07,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x3f,0x00,0x00,
0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x29,0x01,0x00,0x00,0x00,0x41,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x40,0x00,0x00,0x00,0x01,0x00,0x22,0x01,0x31,
0x01,0x00,0x38,0x00,0x09,0x00,0x04,0x01,0x00,0x68,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x00,0x69,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x41,0x00,0x00,0x00,0x00,0x00,
0x34,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0x08,0x26,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,0x20,0x00,0x00,0x06,
0x00,0x04,0x48,0x02,0x08,0x00,0x00,0x00,0x4c,0x02,0x3c,0x40,0x04,0x00,0x00,0x16,
0x0c,0x00,0x0c,0x00,0x31,0x00,0x80,0x0a,0x6c,0x4a,0x40,0x21,0x00,0x06,0x00,0x00,
0x00,0x02,0x00,0x00,0x05,0x00,0x00,0x00,0x4c,0x02,0x38,0x40,0x04,0x00,0x00,0x16,
0xff,0x0f,0xff,0x0f,0x05,0x00,0x00,0x00,0x4c,0x12,0x3c,0x20,0x3c,0x00,0x00,0x16,
0xff,0x0f,0xff,0x0f,0x40,0x00,0x00,0x00,0x28,0x12,0x44,0x20,0x30,0x00,0x00,0x12,
0x38,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x6c,0x22,0x3a,0x20,0x34,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x28,0x12,0x48,0x20,0x32,0x00,0x00,0x12,
0x3c,0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0x08,0x47,0x60,0x20,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x41,0x00,0x00,0x00,0x28,0x0a,0x4c,0x20,0x44,0x00,0x00,0x1a,
0x3a,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0x6c,0x20,0x00,0x00,0x00,0x00,
0x00,0x00,0xa4,0x76,0x41,0x00,0x00,0x00,0x28,0x0a,0x50,0x20,0x48,0x00,0x00,0x1a,
0x3a,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x84,0x40,0x00,0x00,0x00,0x00,
0x20,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x76,0x40,0x00,0x00,0x00,0x00,
0x40,0x00,0x40,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0x80,0x40,0x80,0x00,0x00,0x1e,
0x20,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x77,0x40,0x00,0x00,0x00,0x00,
0x20,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0x68,0x20,0x4c,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0x54,0x20,0x76,0x00,0x45,0x1e,
0xf0,0xff,0xf0,0xff,0x01,0x00,0x00,0x00,0x08,0x43,0x6a,0x20,0x50,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0x58,0x20,0x54,0x00,0x45,0x1e,
0x01,0x00,0x01,0x00,0x01,0x00,0xa0,0x00,0x08,0x43,0xa0,0x20,0x60,0x00,0x8d,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x47,0xa0,0x20,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,0x20,0x54,0x00,0x45,0x1e,
0xff,0x3f,0xff,0x3f,0x05,0x00,0x00,0x00,0x68,0x1a,0xa2,0x20,0xa2,0x00,0x00,0x1e,
0xfe,0xff,0xfe,0xff,0x01,0x00,0x00,0x00,0x08,0x43,0xb6,0x20,0x76,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x43,0xa8,0x20,0x68,0x00,0x45,0x00,
0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0xe0,0x20,0xb6,0x00,0x45,0x1e,
0xf0,0xff,0xf0,0xff,0x40,0x00,0x20,0x00,0x68,0x1a,0xa0,0x20,0xa0,0x00,0x45,0x1a,
0x58,0x40,0x45,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0xe4,0x20,0xe0,0x00,0x45,0x1e,
0x01,0x00,0x01,0x00,0x40,0x00,0x21,0x00,0x68,0x2a,0xa0,0x20,0x76,0x40,0x45,0x1e,
0x0f,0x20,0x0f,0x20,0x01,0x00,0x00,0x00,0x28,0x4b,0x40,0x20,0x24,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x08,0x47,0xa0,0x20,0x00,0x00,0x00,0x00,
0x01,0xe0,0x01,0xe0,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,0x20,0xe0,0x00,0x45,0x1e,
0xff,0x3f,0xff,0x3f,0x01,0x00,0xa0,0x00,0x08,0x43,0x00,0x21,0xa0,0x00,0x8d,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0x16,0x21,0xb6,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0x20,0x41,0x20,0x01,0x00,0x1e,
0x02,0x00,0x02,0x00,0x40,0x00,0x20,0x00,0x68,0x22,0xe8,0x20,0x16,0x01,0x45,0x1e,
0x70,0x00,0x70,0x00,0x01,0x00,0x20,0x00,0x08,0x47,0x04,0x21,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x08,0x00,0x20,0x00,0x48,0x12,0xe8,0x20,0xe8,0x00,0x45,0x16,
0x03,0x00,0x03,0x00,0x05,0x00,0x00,0x00,0x68,0x1a,0x06,0x21,0x06,0x01,0x00,0x1e,
0xfe,0xff,0xfe,0xff,0x05,0x00,0x20,0x00,0xa8,0x2a,0xec,0x40,0xe8,0x00,0x40,0x1e,
0x0f,0x00,0x0f,0x00,0x01,0x00,0x20,0x00,0x08,0x43,0x08,0x21,0xa8,0x00,0x45,0x00,
0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0xa8,0x2a,0x36,0x40,0xee,0x00,0x00,0x1e,
0x04,0x00,0x04,0x00,0x01,0x00,0x00,0x00,0x6c,0x2a,0xf0,0x20,0xec,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x24,0x41,0x00,0x00,0x00,0x00,
0x3f,0x00,0x3f,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x26,0x41,0x00,0x00,0x00,0x00,
0x20,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x3f,0x41,0x00,0x00,0x00,0x00,
0x01,0x00,0x01,0x00,0x40,0x00,0x20,0x00,0x68,0x1a,0x04,0x21,0x04,0x01,0x45,0x1a,
0xe4,0x40,0x45,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0x20,0x41,0x20,0x01,0x00,0x1e,
0x80,0xff,0x80,0xff,0x40,0x00,0x21,0x00,0x68,0x2a,0x04,0x21,0xb6,0x40,0x45,0x1e,
0x0f,0x20,0x0f,0x20,0x06,0x00,0x00,0x00,0xa8,0x2a,0x2a,0x41,0x36,0x00,0x00,0x1a,
0xf0,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x2a,0x29,0x41,0x78,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x08,0x47,0x04,0x21,0x00,0x00,0x00,0x00,
0x01,0xe0,0x01,0xe0,0x01,0x00,0x00,0x00,0xa8,0x2a,0x28,0x41,0x79,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x80,0x00,0x28,0x4f,0x00,0x22,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x0e,0x08,0x00,0x40,0x00,0x00,0x00,
0x20,0x0a,0x00,0x22,0x40,0x00,0x00,0x0e,0x00,0xc0,0x98,0x0c,0x01,0x16,0x01,0x20,
0x07,0x12,0x0a,0x00,0x01,0x00,0x60,0x00,0x28,0x4f,0x20,0x22,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0xcd,0x41,0xcd,0x01,0x00,0x1e,
0xf8,0xff,0xf8,0xff,0x01,0x00,0x20,0x00,0x08,0x43,0xc0,0x21,0x00,0x01,0x45,0x00,
0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x28,0x0a,0x5c,0x20,0x44,0x00,0x00,0x1e,
0x02,0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0xc4,0x21,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x0d,0x01,0x20,0x07,0x31,0x00,0x00,0x31,0x00,0x80,0x08,
0x48,0x4a,0x80,0x22,0xc0,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x10,0x00,0x00,0x01,
0x60,0x1a,0x00,0x20,0x88,0x01,0x00,0x1e,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
0x2c,0x4f,0x28,0x26,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
0x2c,0x4b,0x20,0x26,0x5c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,
0x2c,0x4b,0x24,0x26,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,
0x04,0x02,0x00,0x22,0x28,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,0x01,0x00,0x00,0x00,
0x28,0x12,0xa0,0x23,0x70,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x20,0x00,
0x08,0x43,0xe0,0x25,0x74,0x03,0x45,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x60,0x0c,
0x14,0xd0,0x01,0x00,0x21,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x01,0x00,
0x04,0x00,0x00,0x34,0x00,0x14,0x00,0x0e,0x28,0x01,0x00,0x00,0x01,0x00,0x60,0x00,
0x68,0x2e,0xb0,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,
0xa8,0x2a,0x0d,0x41,0x0d,0x01,0x00,0x1e,0x30,0x00,0x30,0x00,0x01,0x00,0x60,0x00,
0x28,0x1a,0xc0,0x23,0xb0,0x03,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x60,0x00,
0x28,0x1a,0xe0,0x23,0xb0,0x03,0x8d,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,
0xa8,0x2a,0x0e,0x41,0x0e,0x01,0x00,0x1e,0xfb,0xff,0xfb,0xff,0x01,0x00,0x60,0x00,
0x68,0x2e,0xf0,0x25,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x00,0x00,0x00,
0x2c,0x4f,0xf4,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x01,0x16,0x01,0x20,
0x07,0x24,0x1e,0x00,0x01,0x16,0x01,0x20,0x07,0x26,0x1e,0x00,0x01,0x00,0x60,0x00,
0x28,0x4f,0x60,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,
0x20,0x0a,0x00,0x22,0x40,0x00,0x00,0x0e,0x00,0x60,0x78,0x10,0x01,0x16,0x01,0x20,
0x07,0x20,0x08,0x00,0x41,0x00,0x60,0x00,0x28,0x0a,0x40,0x24,0xf4,0x00,0x00,0x1a,
0xf0,0x05,0x8d,0x00,0x01,0x00,0x60,0x00,0x28,0x4b,0x80,0x44,0x74,0x03,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x60,0x00,0x28,0x4b,0xc0,0x44,0x74,0x03,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x54,0x44,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x55,0x44,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x56,0x44,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x31,0x00,0x80,0x0d,0x48,0x4a,0x00,0x25,0x00,0x04,0x00,0x00,
0x00,0x02,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x43,0xe0,0x25,0x20,0x05,0x45,0x00,
0x00,0x00,0x00,0x00,0x01,0x0d,0x01,0x20,0x07,0x32,0x00,0x00,0x40,0x00,0x00,0x00,
0x04,0x02,0x00,0x22,0x2c,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,0x01,0x0d,0x01,0x20,
0x07,0x7f,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0x48,0x26,0x00,0x00,0x00,0x00,
0x03,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0x40,0x26,0x5c,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0x44,0x26,0x48,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x33,0x00,0x60,0x0c,0x14,0xf0,0x02,0x00,0x41,0x26,0x00,0x00,
0x00,0x00,0x00,0x00,0x31,0x00,0x60,0x07,0x04,0x4a,0x00,0x20,0xe0,0x0f,0x00,0x06,
0x10,0x00,0x00,0x82,0x6f,0x00,0x00,0x00,0x4d,0x65,0x50,0x31,0x36,0x5f,0x31,0x4d,
0x56,0x5f,0x4d,0x52,0x45,0x5f,0x38,0x78,0x38,0x00,0x6e,0x75,0x6c,0x6c,0x00,0x74,
0x68,0x72,0x65,0x61,0x64,0x5f,0x78,0x00,0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x79,
0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,0x78,0x00,0x67,0x72,0x6f,0x75,
0x70,0x5f,0x69,0x64,0x5f,0x79,0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,
0x7a,0x00,0x74,0x73,0x63,0x00,0x72,0x30,0x00,0x61,0x72,0x67,0x00,0x72,0x65,0x74,
0x76,0x61,0x6c,0x00,0x73,0x70,0x00,0x66,0x70,0x00,0x68,0x77,0x5f,0x69,0x64,0x00,
0x73,0x72,0x30,0x00,0x63,0x72,0x30,0x00,0x63,0x65,0x30,0x00,0x64,0x62,0x67,0x30,
0x00,0x63,0x6f,0x6c,0x6f,0x72,0x00,0x54,0x30,0x00,0x54,0x31,0x00,0x54,0x32,0x00,
0x54,0x53,0x53,0x00,0x54,0x32,0x35,0x32,0x00,0x54,0x32,0x35,0x35,0x00,0x53,0x33,
0x31,0x00,0x56,0x33,0x32,0x00,0x56,0x33,0x33,0x00,0x56,0x33,0x34,0x00,0x56,0x33,
0x35,0x00,0x56,0x33,0x36,0x00,0x56,0x33,0x37,0x00,0x56,0x33,0x38,0x00,0x56,0x33,
0x39,0x00,0x56,0x34,0x30,0x00,0x56,0x34,0x31,0x00,0x56,0x34,0x32,0x00,0x56,0x34,
0x33,0x00,0x56,0x34,0x34,0x00,0x56,0x34,0x35,0x00,0x56,0x34,0x36,0x00,0x56,0x34,
0x37,0x00,0x56,0x34,0x38,0x00,0x56,0x34,0x39,0x00,0x56,0x35,0x30,0x00,0x56,0x35,
0x31,0x00,0x56,0x35,0x32,0x00,0x56,0x35,0x33,0x00,0x56,0x35,0x34,0x00,0x56,0x35,
0x35,0x00,0x56,0x35,0x36,0x00,0x56,0x35,0x37,0x00,0x56,0x35,0x38,0x00,0x56,0x35,
0x39,0x00,0x56,0x36,0x30,0x00,0x56,0x36,0x31,0x00,0x56,0x36,0x32,0x00,0x56,0x36,
0x33,0x00,0x56,0x36,0x34,0x00,0x56,0x36,0x35,0x00,0x56,0x36,0x36,0x00,0x56,0x36,
0x37,0x00,0x56,0x36,0x38,0x00,0x56,0x36,0x39,0x00,0x56,0x37,0x30,0x00,0x56,0x37,
0x31,0x00,0x56,0x37,0x32,0x00,0x56,0x37,0x33,0x00,0x56,0x37,0x34,0x00,0x56,0x37,
0x35,0x00,0x56,0x37,0x36,0x00,0x56,0x37,0x37,0x00,0x56,0x37,0x38,0x00,0x56,0x37,
0x39,0x00,0x56,0x38,0x30,0x00,0x56,0x38,0x31,0x00,0x56,0x38,0x32,0x00,0x56,0x38,
0x33,0x00,0x56,0x38,0x34,0x00,0x56,0x38,0x35,0x00,0x56,0x38,0x36,0x00,0x56,0x38,
0x37,0x00,0x56,0x38,0x38,0x00,0x56,0x38,0x39,0x00,0x56,0x39,0x30,0x00,0x56,0x39,
0x31,0x00,0x56,0x39,0x32,0x00,0x56,0x39,0x33,0x00,0x56,0x39,0x34,0x00,0x56,0x39,
0x35,0x00,0x56,0x39,0x36,0x00,0x56,0x39,0x37,0x00,0x56,0x39,0x38,0x00,0x56,0x39,
0x39,0x00,0x56,0x31,0x30,0x30,0x00,0x56,0x31,0x30,0x31,0x00,0x56,0x31,0x30,0x32,
0x00,0x56,0x31,0x30,0x33,0x00,0x56,0x31,0x30,0x34,0x00,0x56,0x31,0x30,0x35,0x00,
0x56,0x31,0x30,0x36,0x00,0x50,0x31,0x00,0x50,0x32,0x00,0x4d,0x65,0x50,0x31,0x36,
0x5f,0x31,0x4d,0x56,0x5f,0x4d,0x52,0x45,0x5f,0x38,0x78,0x38,0x5f,0x42,0x42,0x5f,
0x30,0x5f,0x36,0x35,0x00,0x42,0x42,0x5f,0x31,0x5f,0x31,0x30,0x33,0x00,0x54,0x36,
0x00,0x54,0x37,0x00,0x54,0x38,0x00,0x54,0x39,0x00,0x41,0x73,0x6d,0x4e,0x61,0x6d,
0x65,0x00,0x54,0x61,0x72,0x67,0x65,0x74,0x00,0x00,0x00,0x00,0x00,0x4b,0x00,0x00,
0x00,0x1a,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x1b,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1c,
0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1d,0x00,
0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1e,0x00,0x00,
0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,
0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x21,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x23,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x00,0x13,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x23,0x00,0x00,0x00,0x23,0x02,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x53,0x20,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x25,0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x26,0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x27,0x00,0x00,0x00,0x15,0x04,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x05,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x29,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x2a,0x00,0x00,0x00,0x55,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x2b,0x00,0x00,0x00,0x51,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2c,
0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2d,0x00,
0x00,0x00,0x53,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2e,0x00,0x00,
0x00,0x51,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2f,0x00,0x00,0x00,
0x51,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x21,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x00,0x00,0x00,0x21,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x51,0x10,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,0x51,0x20,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x34,0x00,0x00,0x00,0x51,0x08,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x35,0x00,0x00,0x00,0x51,0x10,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x37,0x00,0x00,0x00,0x53,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x53,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x39,0x00,0x00,0x00,0x53,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3a,0x00,0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x3b,0x00,0x00,0x00,0x01,0x01,0x00,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3c,
0x00,0x00,0x00,0x02,0x02,0x00,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3d,0x00,
0x00,0x00,0x02,0x01,0x00,0x22,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,
0x00,0x01,0x01,0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0x00,0x00,0x00,
0x02,0x01,0x00,0x25,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x01,
0x01,0x00,0x27,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x00,0x00,0x04,0x01,
0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x00,0x00,0x00,0x01,0x01,0x00,
0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x43,0x00,0x00,0x00,0x05,0x80,0x00,0x31,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x00,0x00,0x00,0x01,0x10,0x00,0x2a,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x45,0x00,0x00,0x00,0x05,0x40,0x00,0x2a,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x46,0x00,0x00,0x00,0x03,0x02,0x00,0x2b,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x47,0x00,0x00,0x00,0x05,0x40,0x00,0x2a,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x03,0x02,0x00,0x2c,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x49,0x00,0x00,0x00,0x03,0x20,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x4a,0x00,0x00,0x00,0x03,0x20,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x4b,0x00,0x00,0x00,0x05,0x40,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4c,
0x00,0x00,0x00,0x03,0x02,0x00,0x2d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4d,0x00,
0x00,0x00,0x04,0x40,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4e,0x00,0x00,
0x00,0x02,0x02,0x00,0x2d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x00,
0x05,0x02,0x00,0x2e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x05,
0x04,0x00,0x2d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x51,0x00,0x00,0x00,0x05,0x01,
0x00,0x2f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x52,0x00,0x00,0x00,0x01,0x10,0x00,
0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x53,0x00,0x00,0x00,0x01,0x30,0x00,0x33,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x54,0x00,0x00,0x00,0x05,0xc0,0x00,0x33,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x55,0x00,0x00,0x00,0x01,0x01,0x00,0x32,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x56,0x00,0x00,0x00,0x01,0x01,0x00,0x21,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x57,0x00,0x00,0x00,0x00,0x01,0x00,0x32,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x58,0x00,0x00,0x00,0x03,0x90,0x00,0x34,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x59,0x00,0x00,0x00,0x02,0x90,0x00,0x34,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x5a,0x00,0x00,0x00,0x01,0x01,0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x5b,0x00,0x00,0x00,0x01,0x01,0x00,0x37,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5c,
0x00,0x00,0x00,0x00,0x01,0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5d,0x00,
0x00,0x00,0x00,0x01,0x00,0x37,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5e,0x00,0x00,
0x00,0x03,0x40,0x00,0x31,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,
0x01,0x40,0x00,0x3d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x01,
0x10,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x01,0x08,
0x00,0x3a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x62,0x00,0x00,0x00,0x05,0x00,0x01,
0x3d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x00,0x00,0x00,0x01,0x01,0x00,0x3c,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x00,0x01,0x00,0x3c,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x65,0x00,0x00,0x00,0x02,0x00,
0x00,0x66,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x67,0x00,0x00,0x00,0x01,0x00,
0x68,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x69,0x00,0x00,0x00,0x01,0x00,0x00,0x6a,
0x00,0x00,0x00,0x01,0x00,0x00,0x6b,0x00,0x00,0x00,0x01,0x00,0x00,0x6c,0x00,0x00,
0x00,0x01,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x02,0x06,0x00,0x00,0x00,0x20,0x00,
0x04,0x00,0x02,0x07,0x00,0x00,0x00,0x24,0x00,0x04,0x00,0x02,0x08,0x00,0x00,0x00,
0x28,0x00,0x04,0x00,0x02,0x09,0x00,0x00,0x00,0x2c,0x00,0x04,0x00,0x00,0x23,0x00,
0x00,0x00,0x30,0x00,0x04,0x00,0x00,0x20,0x00,0x00,0x00,0x34,0x00,0x01,0x00,0x72,
0x07,0x00,0x00,0x1d,0x07,0x00,0x00,0x02,0x00,0x6d,0x00,0x00,0x00,0x0d,0x67,0x65,
0x6e,0x78,0x5f,0x6d,0x65,0x5f,0x31,0x2e,0x61,0x73,0x6d,0x6e,0x00,0x00,0x00,0x01,
0x00,0x30,0x00,0x00,0x2d,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x06,
0x00,0x07,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x01,0x00,0x00,0x00,0x00,0x41,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x00,0x43,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x25,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x01,
0x00,0x00,0x00,0x00,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x42,0x00,0x00,
0x00,0x00,0x01,0x21,0x01,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x10,0x00,
0x00,0x00,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x41,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x00,0x47,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x10,0x00,0x00,
0x00,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x44,0x00,0x00,0x00,0x00,
0x00,0x21,0x01,0x00,0x47,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x35,0x03,0x00,0x06,
0x05,0x00,0x00,0x00,0x00,0x00,0x49,0x00,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,
0x00,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x00,0x00,0x00,0x00,0x29,
0x05,0x00,0x00,0x00,0x2a,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x28,0x00,0x00,
0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x2a,0x00,0x00,0x00,0x00,0x04,
0x00,0x02,0x00,0x27,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,
0x2a,0x00,0x00,0x00,0x00,0x05,0x00,0x02,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x29,0x00,0x00,0x00,0x00,0x4a,0x00,0x00,0x00,0x00,0x03,0x00,0x02,0x05,0x01,
0x00,0x00,0xa0,0x77,0x29,0x00,0x00,0x00,0x00,0x4b,0x00,0x00,0x00,0x01,0x04,0x00,
0x02,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x4b,0x00,0x00,0x00,
0x00,0x16,0x00,0x02,0x05,0x05,0x40,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x4b,
0x00,0x00,0x00,0x00,0x17,0x00,0x02,0x05,0x05,0x20,0x00,0x00,0x00,0x01,0x01,0x00,
0x00,0x00,0x4c,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4d,0x00,0x00,0x00,0x00,
0x16,0x22,0x01,0x05,0x03,0xf0,0xff,0xff,0xff,0x26,0x01,0x00,0x00,0x00,0x4e,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4c,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,
0x03,0x01,0x00,0x00,0x00,0x29,0x05,0x00,0x00,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,
0x00,0x02,0x00,0x2a,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x01,0x00,0x00,0x00,
0x4f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x00,0x00,0x00,0x00,0x20,0x00,
0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x01,0x00,0x02,0x00,0x50,0x00,0x00,0x00,
0x00,0x01,0x21,0x01,0x05,0x03,0xfe,0xff,0xff,0xff,0x01,0x01,0x00,0x00,0x00,0x50,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x22,0x01,
0x10,0x4e,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x2c,0x01,0x02,0x02,0x01,0x00,0x00,
0x4c,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,0xff,0x3f,0x00,0x00,0x01,0x01,
0x01,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x0f,0x20,0x00,
0x00,0x10,0x4d,0x00,0x00,0x00,0x00,0x16,0x22,0x01,0x29,0x01,0x01,0x00,0x00,0x4f,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x01,0xe0,0xff,0xff,0x29,0x00,0x00,
0x00,0x00,0x4f,0x00,0x00,0x00,0x00,0x0b,0x00,0x02,0x00,0x2a,0x00,0x00,0x00,0x00,
0x0b,0x21,0x01,0x29,0x01,0x00,0x00,0x00,0x4f,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
0x00,0x2a,0x00,0x00,0x00,0x00,0x04,0x22,0x01,0x21,0x00,0x00,0x00,0x00,0x51,0x00,
0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x51,0x00,0x00,0x00,0x01,0x00,0x21,0x01,0x05,
0x05,0x02,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x51,0x00,0x00,0x00,0x01,0x00,
0x00,0x02,0x00,0x51,0x00,0x00,0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x80,0xff,0xff,
0xff,0x29,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x01,0x04,0x00,0x02,0x05,0x05,
0x3f,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x01,0x09,0x00,
0x02,0x00,0x49,0x00,0x00,0x00,0x01,0x18,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x30,
0x00,0x00,0x00,0x01,0x08,0x00,0x02,0x00,0x49,0x00,0x00,0x00,0x01,0x19,0x21,0x01,
0x01,0x01,0x00,0x00,0x00,0x52,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x53,0x00,
0x00,0x00,0x00,0x16,0x22,0x01,0x05,0x03,0x70,0x00,0x00,0x00,0x25,0x01,0x00,0x00,
0x00,0x54,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x54,0x00,0x00,0x00,0x00,0x00,
0x22,0x01,0x05,0x02,0x03,0x00,0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x55,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x00,0x56,0x00,0x00,0x00,0x00,0x00,0x23,0x01,0x05,0x05,
0x0f,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x00,0x57,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x55,0x00,0x00,0x00,0x00,0x01,0x21,0x01,0x05,0x05,0x04,0x00,0x00,0x00,
0x21,0x00,0x00,0x00,0x00,0x51,0x00,0x00,0x00,0x01,0x0a,0x00,0x02,0x00,0x57,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x55,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,
0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x01,0x06,0x00,0x02,0x05,0x05,0x20,0x00,
0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x01,0x1f,0x00,0x02,0x05,
0x05,0x01,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x51,0x00,0x00,0x00,0x01,0x00,
0x00,0x02,0x00,0x51,0x00,0x00,0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x20,0x00,0x00,
0x00,0x29,0x04,0x00,0x00,0x00,0x59,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x58,
0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x59,0x00,0x00,0x00,
0x02,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x04,0x00,0x00,0x00,0x59,
0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x31,0x00,0x00,0x00,0x00,0x00,0x22,0x01,
0x20,0x00,0x00,0x00,0x00,0x5a,0x00,0x00,0x00,0x00,0x0d,0x00,0x02,0x00,0x5a,0x00,
0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x05,0xf8,0xff,0xff,0xff,0x29,0x01,0x00,0x00,
0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,
0x22,0x01,0x29,0x00,0x00,0x00,0x00,0x59,0x00,0x00,0x00,0x00,0x01,0x00,0x02,0x05,
0x01,0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,0x00,0x59,0x00,0x00,0x00,0x03,0x00,
0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x5b,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x00,0x5c,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,
0x00,0xc0,0x98,0x0c,0x5d,0x00,0x04,0x00,0x00,0x08,0x00,0x00,0x00,0x06,0x09,0x00,
0x5d,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x33,0x00,0x00,0x00,0x00,0x00,0x5e,0x00,
0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,0x00,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x5e,0x00,0x00,0x00,0x08,0x08,0x22,0x01,0x29,0x02,0x00,0x00,0x00,0x35,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5f,0x00,0x00,0x00,0x07,0x04,0x22,0x01,
0x24,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x41,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x03,0x00,0x00,0x00,0x24,0x00,0x00,0x00,
0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x44,0x00,0x00,0x00,0x00,0x00,
0x21,0x01,0x05,0x01,0x01,0x00,0x00,0x00,0x38,0x00,0x08,0x00,0x08,0x02,0x00,0x62,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x63,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x35,0x00,0x00,0x00,0x00,0x00,0x2c,0x00,0x00,0x02,0x02,0x00,0x00,0x64,0x00,0x00,
0x00,0x02,0x04,0x21,0x01,0x05,0x03,0x00,0x00,0x00,0x00,0x32,0x00,0x02,0x00,0x01,
0x00,0x21,0x00,0x00,0x00,0x00,0x51,0x00,0x00,0x00,0x00,0x0d,0x00,0x02,0x00,0x51,
0x00,0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x05,0x30,0x00,0x00,0x00,0x20,0x00,0x00,
0x00,0x00,0x51,0x00,0x00,0x00,0x00,0x0e,0x00,0x02,0x00,0x51,0x00,0x00,0x00,0x00,
0x0e,0x21,0x01,0x05,0x05,0xfb,0xff,0xff,0xff,0x29,0x03,0x00,0x00,0x00,0x38,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x08,0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,
0x00,0x38,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x05,0x08,0x00,0x00,0x00,0x00,0x29,
0x04,0x00,0x00,0x00,0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x38,0x00,0x00,
0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x39,0x00,0x00,0x00,0x02,0x00,
0x00,0x02,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x02,0x00,0x00,0x00,
0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x34,0x00,0x00,0x00,0x08,0x04,0x21,
0x01,0x29,0x02,0x00,0x00,0x00,0x39,0x00,0x00,0x00,0x01,0x00,0x00,0x03,0x00,0x34,
0x00,0x00,0x00,0x08,0x05,0x21,0x01,0x29,0x02,0x00,0x00,0x00,0x39,0x00,0x00,0x00,
0x02,0x00,0x00,0x03,0x00,0x34,0x00,0x00,0x00,0x08,0x06,0x21,0x01,0x29,0x02,0x00,
0x00,0x00,0x39,0x00,0x00,0x00,0x03,0x00,0x00,0x03,0x00,0x34,0x00,0x00,0x00,0x08,
0x07,0x21,0x01,0x29,0x04,0x00,0x00,0x00,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x58,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x03,0x00,0x00,0x00,0x3a,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x08,0x00,0x00,0x10,0x00,0x10,0x03,0x00,0x00,
0x00,0x66,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x67,0x00,0x00,0x00,0x00,0x00,
0x22,0x01,0x05,0x01,0x03,0x00,0x03,0x00,0x29,0x03,0x00,0x00,0x00,0x3b,0x00,0x00,
0x00,0x01,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x04,0x00,0x00,0x00,
0x65,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x22,
0x01,0x29,0x04,0x00,0x00,0x00,0x65,0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x39,
0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x65,0x00,0x00,0x00,
0x06,0x00,0x00,0x02,0x00,0x39,0x00,0x00,0x00,0x02,0x00,0x22,0x01,0x29,0x00,0x00,
0x00,0x00,0x68,0x00,0x00,0x00,0x02,0x14,0x00,0x02,0x05,0x05,0x03,0x00,0x00,0x00,
0x29,0x00,0x00,0x00,0x00,0x68,0x00,0x00,0x00,0x02,0x15,0x00,0x02,0x05,0x05,0x00,
0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x68,0x00,0x00,0x00,0x02,0x16,0x00,0x02,
0x05,0x05,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x69,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x00,0x5c,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x00,0x60,
0x78,0x10,0x5d,0x00,0x04,0x00,0x00,0x0d,0x00,0x00,0x00,0x08,0x07,0x00,0x6a,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x3d,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,
0x00,0x00,0x29,0x02,0x00,0x00,0x00,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x3e,0x00,0x00,0x00,0x01,0x00,0x36,0x02,0x29,0x02,0x00,0x00,0x00,0x3f,0x00,0x00,
0x00,0x00,0x04,0x00,0x02,0x00,0x3e,0x00,0x00,0x00,0x03,0x00,0x36,0x02,0x31,0x01,
0x00,0x38,0x00,0x09,0x00,0x08,0x02,0x00,0x62,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x00,0x63,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x3f,0x00,0x00,0x00,0x00,0x00,0x34,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0xc8,0x25,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,0x20,0x00,0x00,0x06,0x00,
0x04,0x48,0x02,0x08,0x00,0x00,0x00,0x4c,0x02,0x3c,0x40,0x04,0x00,0x00,0x16,0x0c,
0x00,0x0c,0x00,0x31,0x00,0x80,0x0a,0x6c,0x4a,0x00,0x21,0xc0,0x05,0x00,0x00,0x00,
0x02,0x00,0x00,0x05,0x00,0x00,0x00,0x4c,0x02,0x38,0x40,0x04,0x00,0x00,0x16,0xff,
0x0f,0xff,0x0f,0x05,0x00,0x00,0x00,0x4c,0x12,0x3c,0x20,0x3c,0x00,0x00,0x16,0xff,
0x0f,0xff,0x0f,0x40,0x00,0x00,0x00,0x28,0x12,0x44,0x20,0x30,0x00,0x00,0x12,0x38,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x6c,0x22,0x3a,0x20,0x34,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x28,0x12,0x48,0x20,0x32,0x00,0x00,0x12,0x3c,
0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0x08,0x47,0x60,0x20,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x41,0x00,0x00,0x00,0x28,0x0a,0x4c,0x20,0x44,0x00,0x00,0x1a,0x3a,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0x6c,0x20,0x00,0x00,0x00,0x00,0x00,
0x00,0xa0,0x77,0x41,0x00,0x00,0x00,0x28,0x0a,0x50,0x20,0x48,0x00,0x00,0x1a,0x3a,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x84,0x40,0x00,0x00,0x00,0x00,0x20,
0x00,0x20,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x76,0x40,0x00,0x00,0x00,0x00,0x40,
0x00,0x40,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x77,0x40,0x00,0x00,0x00,0x00,0x20,
0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0x68,0x20,0x4c,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0x54,0x20,0x76,0x00,0x45,0x1e,0xf0,
0xff,0xf0,0xff,0x01,0x00,0x00,0x00,0x08,0x43,0x6a,0x20,0x50,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0x58,0x20,0x54,0x00,0x45,0x1e,0x01,
0x00,0x01,0x00,0x01,0x00,0xa0,0x00,0x08,0x43,0xc0,0x20,0x60,0x00,0x8d,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0xd6,0x20,0x76,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0xe0,0x40,0xe0,0x00,0x00,0x1e,0x02,
0x00,0x02,0x00,0x40,0x00,0x20,0x00,0x68,0x22,0xa0,0x20,0xd6,0x00,0x45,0x1e,0x70,
0x00,0x70,0x00,0x01,0x00,0x20,0x00,0x08,0x47,0xc0,0x20,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x08,0x00,0x20,0x00,0x48,0x12,0xa0,0x20,0xa0,0x00,0x45,0x16,0x03,
0x00,0x03,0x00,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,0x20,0x54,0x00,0x45,0x1e,0xff,
0x3f,0xff,0x3f,0x05,0x00,0x20,0x00,0xa8,0x2a,0xa4,0x40,0xa0,0x00,0x40,0x1e,0x0f,
0x00,0x0f,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0xe0,0x40,0xe0,0x00,0x00,0x1e,0x80,
0xff,0x80,0xff,0x05,0x00,0x00,0x00,0x68,0x1a,0xc2,0x20,0xc2,0x00,0x00,0x1e,0xfe,
0xff,0xfe,0xff,0x09,0x00,0x00,0x00,0xa8,0x2a,0x36,0x40,0xa6,0x00,0x00,0x1e,0x04,
0x00,0x04,0x00,0x01,0x00,0x00,0x00,0x6c,0x2a,0xac,0x20,0xa4,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x43,0xc8,0x20,0x68,0x00,0x45,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xe4,0x40,0x00,0x00,0x00,0x00,0x3f,
0x00,0x3f,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xe6,0x40,0x00,0x00,0x00,0x00,0x20,
0x00,0x20,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xff,0x40,0x00,0x00,0x00,0x00,0x01,
0x00,0x01,0x00,0x40,0x00,0x20,0x00,0x68,0x1a,0xc0,0x20,0xc0,0x00,0x45,0x1a,0x58,
0x40,0x45,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0xe0,0x40,0xe0,0x00,0x00,0x1e,0x20,
0x00,0x20,0x00,0x40,0x00,0x21,0x00,0x68,0x2a,0xc0,0x20,0x76,0x40,0x45,0x1e,0x0f,
0x20,0x0f,0x20,0x06,0x00,0x00,0x00,0xa8,0x2a,0xea,0x40,0x36,0x00,0x00,0x1a,0xac,
0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x08,0x47,0xc0,0x20,0x00,0x00,0x00,0x00,0x01,
0xe0,0x01,0xe0,0x01,0x00,0x00,0x00,0x28,0x4b,0x40,0x20,0x24,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x80,0x00,0x28,0x4f,0xc0,0x21,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x20,0x0a,0x00,0x22,0x40,0x00,0x00,0x0e,0x00,
0xc0,0x98,0x0c,0x01,0x00,0x60,0x00,0x28,0x4f,0xe0,0x21,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x28,0x0a,0x5c,0x20,0x44,0x00,0x00,0x1e,0x03,
0x00,0x03,0x00,0x09,0x00,0x00,0x00,0x28,0x0a,0xa8,0x20,0x48,0x00,0x00,0x1e,0x01,
0x00,0x01,0x00,0x01,0x0d,0x01,0x20,0x07,0x2f,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,
0x4f,0xe8,0x25,0x00,0x00,0x00,0x00,0x07,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x2c,
0x4b,0xe0,0x25,0x5c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,
0x4b,0xe4,0x25,0xa8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,
0x2a,0xe9,0x40,0x38,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,
0x10,0x08,0x00,0x01,0x00,0x00,0x00,0xa8,0x2a,0xe8,0x40,0x39,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x10,0x00,0x00,0x01,0x60,0x1a,0x00,0x20,0x48,0x01,0x00,0x1e,0x00,
0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x0c,0x06,0x00,0x05,0x00,0x00,0x00,0xa8,
0x2a,0x8d,0x41,0x8d,0x01,0x00,0x1e,0xf8,0xff,0xf8,0xff,0x01,0x00,0x20,0x00,0x08,
0x43,0x80,0x21,0xc0,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x28,
0x4f,0x84,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x00,0x80,0x08,0x48,
0x4a,0x40,0x22,0x80,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x40,0x00,0x00,0x00,0x04,
0x02,0x00,0x22,0x28,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,0x01,0x00,0x40,0x00,0x28,
0x12,0x60,0x23,0x28,0x03,0x69,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x60,0x00,0x08,
0x43,0xa0,0x25,0x50,0x03,0x8d,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x60,0x0c,0x14,
0xb0,0x01,0x00,0xe1,0x25,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x01,0x00,0x04,
0x00,0x00,0x34,0x00,0x14,0x00,0x0e,0x58,0x01,0x00,0x00,0x01,0x00,0x60,0x00,0x68,
0x2e,0xb0,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0xa8,
0x2a,0xcd,0x40,0xcd,0x00,0x00,0x1e,0x30,0x00,0x30,0x00,0x01,0x00,0x60,0x00,0x28,
0x1a,0x80,0x23,0xb0,0x00,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x60,0x00,0x28,
0x1a,0xa0,0x23,0xb0,0x00,0x8d,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0xa8,
0x2a,0xce,0x40,0xce,0x00,0x00,0x1e,0xfb,0xff,0xfb,0xff,0x01,0x00,0x60,0x00,0x68,
0x2e,0x70,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x00,0x00,0x00,0x2c,
0x4f,0xb0,0x25,0x00,0x00,0x00,0x00,0x03,0x00,0x03,0x00,0x01,0x16,0x01,0x20,0x07,
0x22,0x1c,0x00,0x01,0x16,0x01,0x20,0x07,0x24,0x1c,0x00,0x01,0x00,0x60,0x00,0x28,
0x4f,0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x20,
0x0a,0x00,0x22,0x40,0x00,0x00,0x0e,0x00,0x60,0x78,0x10,0x01,0x16,0x01,0x20,0x07,
0x1e,0x06,0x00,0x41,0x00,0x60,0x00,0x28,0x0a,0x00,0x24,0xb0,0x05,0x00,0x1a,0x70,
0x03,0x8d,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0x40,0x44,0x50,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0x60,0x44,0x54,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0x80,0x44,0x58,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0xa0,0x44,0x5c,0x03,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x14,0x44,0x00,0x00,0x00,0x00,0x03,
0x00,0x03,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x15,0x44,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x16,0x44,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x31,0x00,0x80,0x0d,0x48,0x4a,0xc0,0x24,0xc0,0x03,0x00,0x00,0x00,
0x02,0x00,0x00,0x01,0x00,0x40,0x00,0x08,0x43,0xa0,0x25,0xe0,0x04,0xa5,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x08,0x43,0xa8,0x25,0x20,0x05,0xa5,0x00,0x00,
0x00,0x00,0x00,0x01,0x0d,0x01,0x20,0x07,0x30,0x00,0x00,0x40,0x00,0x00,0x00,0x04,
0x02,0x00,0x22,0x2c,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,0x01,0x0d,0x01,0x20,0x07,
0x7f,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0x08,0x26,0x00,0x00,0x00,0x00,0x07,
0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0x00,0x26,0x5c,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0x04,0x26,0xa8,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x33,0x00,0x60,0x0c,0x14,0xd0,0x02,0x00,0x01,0x26,0x00,0x00,0x00,
0x00,0x00,0x00,0x31,0x00,0x60,0x07,0x04,0x4a,0x00,0x20,0xe0,0x0f,0x00,0x06,0x10,
0x00,0x00,0x82,0x96,0x00,0x00,0x00,0x4d,0x65,0x50,0x31,0x36,0x62,0x69,0x5f,0x31,
0x4d,0x56,0x32,0x5f,0x4d,0x52,0x45,0x00,0x6e,0x75,0x6c,0x6c,0x00,0x74,0x68,0x72,
0x65,0x61,0x64,0x5f,0x78,0x00,0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x79,0x00,0x67,
0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,0x78,0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,
0x69,0x64,0x5f,0x79,0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,0x7a,0x00,
0x74,0x73,0x63,0x00,0x72,0x30,0x00,0x61,0x72,0x67,0x00,0x72,0x65,0x74,0x76,0x61,
0x6c,0x00,0x73,0x70,0x00,0x66,0x70,0x00,0x68,0x77,0x5f,0x69,0x64,0x00,0x73,0x72,
0x30,0x00,0x63,0x72,0x30,0x00,0x63,0x65,0x30,0x00,0x64,0x62,0x67,0x30,0x00,0x63,
0x6f,0x6c,0x6f,0x72,0x00,0x54,0x30,0x00,0x54,0x31,0x00,0x54,0x32,0x00,0x54,0x53,
0x53,0x00,0x54,0x32,0x35,0x32,0x00,0x54,0x32,0x35,0x35,0x00,0x53,0x33,0x31,0x00,
0x56,0x33,0x32,0x00,0x56,0x33,0x33,0x00,0x56,0x33,0x34,0x00,0x56,0x33,0x35,0x00,
0x56,0x33,0x36,0x00,0x56,0x33,0x37,0x00,0x56,0x33,0x38,0x00,0x56,0x33,0x39,0x00,
0x56,0x34,0x30,0x00,0x56,0x34,0x31,0x00,0x56,0x34,0x32,0x00,0x56,0x34,0x33,0x00,
0x56,0x34,0x34,0x00,0x56,0x34,0x35,0x00,0x56,0x34,0x36,0x00,0x56,0x34,0x37,0x00,
0x56,0x34,0x38,0x00,0x56,0x34,0x39,0x00,0x56,0x35,0x30,0x00,0x56,0x35,0x31,0x00,
0x56,0x35,0x32,0x00,0x56,0x35,0x33,0x00,0x56,0x35,0x34,0x00,0x56,0x35,0x35,0x00,
0x56,0x35,0x36,0x00,0x56,0x35,0x37,0x00,0x56,0x35,0x38,0x00,0x56,0x35,0x39,0x00,
0x56,0x36,0x30,0x00,0x56,0x36,0x31,0x00,0x56,0x36,0x32,0x00,0x56,0x36,0x33,0x00,
0x56,0x36,0x34,0x00,0x56,0x36,0x35,0x00,0x56,0x36,0x36,0x00,0x56,0x36,0x37,0x00,
0x56,0x36,0x38,0x00,0x56,0x36,0x39,0x00,0x56,0x37,0x30,0x00,0x56,0x37,0x31,0x00,
0x56,0x37,0x32,0x00,0x56,0x37,0x33,0x00,0x56,0x37,0x34,0x00,0x56,0x37,0x35,0x00,
0x56,0x37,0x36,0x00,0x56,0x37,0x37,0x00,0x56,0x37,0x38,0x00,0x56,0x37,0x39,0x00,
0x56,0x38,0x30,0x00,0x56,0x38,0x31,0x00,0x56,0x38,0x32,0x00,0x56,0x38,0x33,0x00,
0x56,0x38,0x34,0x00,0x56,0x38,0x35,0x00,0x56,0x38,0x36,0x00,0x56,0x38,0x37,0x00,
0x56,0x38,0x38,0x00,0x56,0x38,0x39,0x00,0x56,0x39,0x30,0x00,0x56,0x39,0x31,0x00,
0x56,0x39,0x32,0x00,0x56,0x39,0x33,0x00,0x56,0x39,0x34,0x00,0x56,0x39,0x35,0x00,
0x56,0x39,0x36,0x00,0x56,0x39,0x37,0x00,0x56,0x39,0x38,0x00,0x56,0x39,0x39,0x00,
0x56,0x31,0x30,0x30,0x00,0x56,0x31,0x30,0x31,0x00,0x56,0x31,0x30,0x32,0x00,0x56,
0x31,0x30,0x33,0x00,0x56,0x31,0x30,0x34,0x00,0x56,0x31,0x30,0x35,0x00,0x56,0x31,
0x30,0x36,0x00,0x56,0x31,0x30,0x37,0x00,0x56,0x31,0x30,0x38,0x00,0x56,0x31,0x30,
0x39,0x00,0x56,0x31,0x31,0x30,0x00,0x56,0x31,0x31,0x31,0x00,0x56,0x31,0x31,0x32,
0x00,0x56,0x31,0x31,0x33,0x00,0x56,0x31,0x31,0x34,0x00,0x56,0x31,0x31,0x35,0x00,
0x56,0x31,0x31,0x36,0x00,0x56,0x31,0x31,0x37,0x00,0x56,0x31,0x31,0x38,0x00,0x56,
0x31,0x31,0x39,0x00,0x56,0x31,0x32,0x30,0x00,0x56,0x31,0x32,0x31,0x00,0x56,0x31,
0x32,0x32,0x00,0x56,0x31,0x32,0x33,0x00,0x56,0x31,0x32,0x34,0x00,0x56,0x31,0x32,
0x35,0x00,0x56,0x31,0x32,0x36,0x00,0x56,0x31,0x32,0x37,0x00,0x56,0x31,0x32,0x38,
0x00,0x56,0x31,0x32,0x39,0x00,0x56,0x31,0x33,0x30,0x00,0x56,0x31,0x33,0x31,0x00,
0x56,0x31,0x33,0x32,0x00,0x56,0x31,0x33,0x33,0x00,0x56,0x31,0x33,0x34,0x00,0x56,
0x31,0x33,0x35,0x00,0x56,0x31,0x33,0x36,0x00,0x56,0x31,0x33,0x37,0x00,0x56,0x31,
0x33,0x38,0x00,0x56,0x31,0x33,0x39,0x00,0x56,0x31,0x34,0x30,0x00,0x56,0x31,0x34,
0x31,0x00,0x50,0x31,0x00,0x50,0x32,0x00,0x50,0x33,0x00,0x50,0x34,0x00,0x4d,0x65,
0x50,0x31,0x36,0x62,0x69,0x5f,0x31,0x4d,0x56,0x32,0x5f,0x4d,0x52,0x45,0x5f,0x42,
0x42,0x5f,0x30,0x5f,0x38,0x32,0x00,0x42,0x42,0x5f,0x31,0x5f,0x31,0x34,0x34,0x00,
0x54,0x36,0x00,0x54,0x37,0x00,0x54,0x38,0x00,0x54,0x39,0x00,0x54,0x31,0x30,0x00,
0x54,0x31,0x31,0x00,0x41,0x73,0x6d,0x4e,0x61,0x6d,0x65,0x00,0x54,0x61,0x72,0x67,
0x65,0x74,0x00,0x00,0x00,0x00,0x00,0x6e,0x00,0x00,0x00,0x1a,0x00,0x00,0x00,0x05,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,0x00,0x00,0x21,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1c,0x00,0x00,0x00,0x21,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1d,0x00,0x00,0x00,0x13,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x22,0x00,0x00,0x00,0x23,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x23,0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x24,0x00,0x00,0x00,0x23,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x25,0x00,0x00,0x00,0x53,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26,
0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x27,0x00,
0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x00,0x00,
0x00,0x15,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,
0x05,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2a,0x00,0x00,0x00,0x05,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2b,0x00,0x00,0x00,0x51,0x10,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2c,0x00,0x00,0x00,0x51,0x20,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2d,0x00,0x00,0x00,0x21,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2e,0x00,0x00,0x00,0x53,0x60,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x2f,0x00,0x00,0x00,0x51,0x48,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x51,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x31,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x33,0x00,0x00,0x00,0x23,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x34,0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x35,0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x36,
0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x37,0x00,
0x00,0x00,0x53,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,
0x00,0x51,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0x00,0x00,0x00,
0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3a,0x00,0x00,0x00,0x13,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3b,0x00,0x00,0x00,0x15,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3c,0x00,0x00,0x00,0x05,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3d,0x00,0x00,0x00,0x51,0x08,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0x00,0x00,0x00,0x55,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x55,0x40,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x41,0x00,0x00,0x00,0x51,0x10,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x42,0x00,0x00,0x00,0x51,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x43,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x44,0x00,0x00,0x00,0x53,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x45,0x00,0x00,0x00,0x53,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x46,
0x00,0x00,0x00,0x53,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x47,0x00,
0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x48,0x00,0x00,
0x00,0x00,0x01,0x00,0x22,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x49,0x00,0x00,0x00,
0x01,0x01,0x00,0x25,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4a,0x00,0x00,0x00,0x02,
0x02,0x00,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4b,0x00,0x00,0x00,0x02,0x01,
0x00,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4c,0x00,0x00,0x00,0x01,0x01,0x00,
0x27,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4d,0x00,0x00,0x00,0x02,0x01,0x00,0x26,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4e,0x00,0x00,0x00,0x01,0x01,0x00,0x28,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x00,0x04,0x01,0x00,0x20,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x01,0x01,0x00,0x2a,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x51,0x00,0x00,0x00,0x05,0x80,0x00,0x32,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x52,0x00,0x00,0x00,0x01,0x10,0x00,0x2b,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x53,0x00,0x00,0x00,0x05,0x40,0x00,0x2b,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x54,0x00,0x00,0x00,0x03,0x02,0x00,0x2c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x55,0x00,0x00,0x00,0x05,0x40,0x00,0x2b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x56,
0x00,0x00,0x00,0x03,0x02,0x00,0x2d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x57,0x00,
0x00,0x00,0x03,0x20,0x00,0x31,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x00,0x00,
0x00,0x03,0x20,0x00,0x31,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x00,0x00,0x00,
0x05,0x40,0x00,0x31,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5a,0x00,0x00,0x00,0x05,
0x80,0x00,0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5b,0x00,0x00,0x00,0x03,0x02,
0x00,0x2e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5c,0x00,0x00,0x00,0x04,0x40,0x00,
0x31,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5d,0x00,0x00,0x00,0x02,0x02,0x00,0x2e,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5e,0x00,0x00,0x00,0x05,0x02,0x00,0x2f,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,0x05,0x04,0x00,0x2e,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x05,0x01,0x00,0x30,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x01,0x30,0x00,0x34,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x62,0x00,0x00,0x00,0x05,0xc0,0x00,0x34,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x63,0x00,0x00,0x00,0x01,0x01,0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x64,0x00,0x00,0x00,0x01,0x01,0x00,0x22,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x65,0x00,0x00,0x00,0x00,0x01,0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,
0x00,0x00,0x00,0x03,0x90,0x00,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x67,0x00,
0x00,0x00,0x02,0x90,0x00,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x68,0x00,0x00,
0x00,0x01,0x02,0x00,0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x69,0x00,0x00,0x00,
0x03,0x90,0x00,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6a,0x00,0x00,0x00,0x05,
0x01,0x00,0x37,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6b,0x00,0x00,0x00,0x05,0x01,
0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6c,0x00,0x00,0x00,0x03,0x02,0x00,
0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6d,0x00,0x00,0x00,0x03,0x02,0x00,0x3a,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6e,0x00,0x00,0x00,0x03,0x04,0x00,0x39,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x6f,0x00,0x00,0x00,0x03,0x20,0x00,0x48,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x03,0x20,0x00,0x48,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x71,0x00,0x00,0x00,0x01,0x30,0x00,0x3d,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x72,0x00,0x00,0x00,0x05,0xc0,0x00,0x3d,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x73,0x00,0x00,0x00,0x01,0x01,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x74,0x00,0x00,0x00,0x01,0x01,0x00,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x75,0x00,0x00,0x00,0x00,0x01,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x76,
0x00,0x00,0x00,0x03,0x90,0x00,0x3e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x77,0x00,
0x00,0x00,0x01,0x01,0x00,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00,
0x00,0x00,0x01,0x00,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x79,0x00,0x00,0x00,
0x00,0x01,0x00,0x27,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7a,0x00,0x00,0x00,0x03,
0x01,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7b,0x00,0x00,0x00,0x04,0x40,
0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7c,0x00,0x00,0x00,0x03,0x01,0x00,
0x41,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7d,0x00,0x00,0x00,0x03,0x40,0x00,0x32,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7e,0x00,0x00,0x00,0x04,0x02,0x00,0x41,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x00,0x00,0x00,0x05,0x01,0x00,0x42,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x05,0x40,0x00,0x48,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x81,0x00,0x00,0x00,0x01,0x10,0x00,0x46,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x82,0x00,0x00,0x00,0x01,0x08,0x00,0x43,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x83,0x00,0x00,0x00,0x01,0x10,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x84,0x00,0x00,0x00,0x01,0x40,0x00,0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x85,0x00,0x00,0x00,0x05,0x00,0x01,0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x86,
0x00,0x00,0x00,0x01,0x01,0x00,0x49,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x87,0x00,
0x00,0x00,0x00,0x01,0x00,0x49,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,
0x00,0x88,0x00,0x00,0x00,0x02,0x00,0x00,0x89,0x00,0x00,0x00,0x02,0x00,0x00,0x8a,
0x00,0x00,0x00,0x02,0x00,0x00,0x8b,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x8c,
0x00,0x00,0x00,0x01,0x00,0x8d,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x8e,0x00,0x00,
0x00,0x01,0x00,0x00,0x8f,0x00,0x00,0x00,0x01,0x00,0x00,0x90,0x00,0x00,0x00,0x01,
0x00,0x00,0x91,0x00,0x00,0x00,0x01,0x00,0x00,0x92,0x00,0x00,0x00,0x01,0x00,0x00,
0x93,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x02,0x06,0x00,0x00,
0x00,0x20,0x00,0x04,0x00,0x02,0x07,0x00,0x00,0x00,0x24,0x00,0x04,0x00,0x02,0x08,
0x00,0x00,0x00,0x28,0x00,0x04,0x00,0x02,0x09,0x00,0x00,0x00,0x2c,0x00,0x04,0x00,
0x02,0x0a,0x00,0x00,0x00,0x30,0x00,0x04,0x00,0x02,0x0b,0x00,0x00,0x00,0x34,0x00,
0x04,0x00,0x00,0x24,0x00,0x00,0x00,0x38,0x00,0x04,0x00,0x00,0x20,0x00,0x00,0x00,
0x3c,0x00,0x01,0x00,0x00,0x38,0x00,0x00,0x00,0x3d,0x00,0x01,0x00,0x00,0x37,0x00,
0x00,0x00,0x3e,0x00,0x01,0x00,0x31,0x0a,0x00,0x00,0x25,0x0a,0x00,0x00,0x02,0x00,
0x94,0x00,0x00,0x00,0x0d,0x67,0x65,0x6e,0x78,0x5f,0x6d,0x65,0x5f,0x32,0x2e,0x61,
0x73,0x6d,0x95,0x00,0x00,0x00,0x01,0x00,0x30,0x00,0x00,0x2d,0x00,0x00,0x4d,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x06,0x00,0x08,0x00,0x00,0x2d,0x00,0x00,0x4e,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x06,0x00,0x07,0x00,0x00,0x29,0x00,0x00,0x00,0x00,
0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x01,0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x50,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x51,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x29,0x00,0x00,0x00,0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x01,0x00,0x00,0x00,0x00,0x52,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x00,0x50,0x00,0x00,0x00,0x00,0x01,0x21,0x01,0x00,0x53,0x00,0x00,
0x00,0x00,0x00,0x21,0x01,0x10,0x00,0x00,0x00,0x00,0x54,0x00,0x00,0x00,0x00,0x00,
0x00,0x02,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x55,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x10,0x00,0x00,0x00,0x00,0x56,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x52,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x55,0x00,0x00,0x00,0x00,
0x00,0x21,0x01,0x35,0x03,0x00,0x06,0x05,0x00,0x00,0x00,0x00,0x00,0x57,0x00,0x00,
0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x05,0x03,0x00,0x00,0x00,0x00,0x29,0x05,0x00,0x00,0x00,0x2b,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,
0x00,0x2b,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,0x28,0x00,0x00,0x00,0x00,0x00,
0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x2b,0x00,0x00,0x00,0x00,0x05,0x00,0x02,0x00,
0x2a,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x58,0x00,0x00,
0x00,0x00,0x03,0x00,0x02,0x05,0x01,0x00,0x00,0xa4,0x76,0x29,0x00,0x00,0x00,0x00,
0x59,0x00,0x00,0x00,0x01,0x04,0x00,0x02,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x00,
0x00,0x00,0x00,0x59,0x00,0x00,0x00,0x00,0x16,0x00,0x02,0x05,0x05,0x40,0x00,0x00,
0x00,0x29,0x00,0x00,0x00,0x00,0x59,0x00,0x00,0x00,0x00,0x17,0x00,0x02,0x05,0x05,
0x20,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x5a,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x5b,0x00,0x00,0x00,0x00,0x16,0x22,0x01,0x05,0x03,0xf0,0xff,0xff,0xff,
0x26,0x01,0x00,0x00,0x00,0x5c,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5a,0x00,
0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,0x01,0x00,0x00,0x00,0x29,0x05,0x00,0x00,
0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x2b,0x00,0x00,0x00,0x00,0x00,
0x22,0x01,0x29,0x01,0x00,0x00,0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,
0x03,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x5e,0x00,0x00,0x00,0x00,0x01,
0x00,0x02,0x00,0x5e,0x00,0x00,0x00,0x00,0x01,0x21,0x01,0x05,0x03,0xfe,0xff,0xff,
0xff,0x01,0x01,0x00,0x00,0x00,0x5e,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5e,
0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x10,0x5c,0x00,0x00,0x00,0x00,0x00,0x22,0x01,
0x2c,0x01,0x02,0x02,0x01,0x00,0x00,0x5a,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,
0x03,0xff,0x3f,0x00,0x00,0x01,0x01,0x01,0x00,0x00,0x5e,0x00,0x00,0x00,0x00,0x00,
0x00,0x02,0x05,0x03,0x0f,0x20,0x00,0x00,0x10,0x5b,0x00,0x00,0x00,0x00,0x16,0x22,
0x01,0x29,0x01,0x01,0x00,0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,
0x01,0xe0,0xff,0xff,0x29,0x00,0x00,0x00,0x00,0x5d,0x00,0x00,0x00,0x00,0x0b,0x00,
0x02,0x00,0x2b,0x00,0x00,0x00,0x00,0x0b,0x21,0x01,0x29,0x01,0x00,0x00,0x00,0x5d,
0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,0x2b,0x00,0x00,0x00,0x00,0x04,0x22,0x01,
0x21,0x00,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x5f,0x00,
0x00,0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x02,0x00,0x00,0x00,0x21,0x00,0x00,0x00,
0x00,0x5f,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x5f,0x00,0x00,0x00,0x01,0x00,
0x21,0x01,0x05,0x05,0x80,0xff,0xff,0xff,0x29,0x00,0x00,0x00,0x00,0x5f,0x00,0x00,
0x00,0x01,0x04,0x00,0x02,0x05,0x05,0x3f,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,
0x5f,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x00,0x60,0x00,0x00,0x00,0x01,0x18,0x21,
0x01,0x29,0x00,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,0x01,0x08,0x00,0x02,0x00,0x60,
0x00,0x00,0x00,0x01,0x19,0x21,0x01,0x01,0x01,0x00,0x00,0x00,0x61,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x62,0x00,0x00,0x00,0x00,0x16,0x22,0x01,0x05,0x03,0x70,
0x00,0x00,0x00,0x25,0x01,0x00,0x00,0x00,0x63,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x63,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x02,0x03,0x00,0x00,0x00,0x20,
0x01,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x65,0x00,0x00,
0x00,0x00,0x00,0x23,0x01,0x05,0x05,0x0f,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x00,
0x66,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x64,0x00,0x00,0x00,0x00,0x01,0x21,
0x01,0x05,0x05,0x04,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,
0x01,0x0a,0x00,0x02,0x00,0x66,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x64,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,0x01,
0x06,0x00,0x02,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x5f,0x00,
0x00,0x00,0x01,0x1f,0x00,0x02,0x05,0x05,0x01,0x00,0x00,0x00,0x21,0x00,0x00,0x00,
0x00,0x5f,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x5f,0x00,0x00,0x00,0x01,0x00,
0x21,0x01,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x04,0x00,0x00,0x00,0x67,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x00,0x31,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,
0x00,0x00,0x00,0x67,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,
0x00,0x29,0x04,0x00,0x00,0x00,0x67,0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x32,
0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x20,0x00,0x00,0x00,0x00,0x68,0x00,0x00,0x00,
0x00,0x0d,0x00,0x02,0x00,0x68,0x00,0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x05,0xf8,
0xff,0xff,0xff,0x29,0x01,0x00,0x00,0x00,0x34,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x00,0x00,0x00,0x00,0x67,0x00,
0x00,0x00,0x00,0x01,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,
0x00,0x67,0x00,0x00,0x00,0x03,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x01,
0x00,0x00,0x00,0x00,0x69,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x6a,0x00,0x00,
0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x00,0xc0,0x98,0x0c,0x5d,0x00,0x04,0x00,0x00,
0x08,0x00,0x00,0x00,0x06,0x09,0x00,0x6b,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x34,
0x00,0x00,0x00,0x00,0x00,0x6c,0x00,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,
0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x6d,0x00,0x00,0x00,0x07,0x08,0x21,
0x01,0x10,0x01,0x00,0x00,0x00,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x6f,
0x00,0x00,0x00,0x07,0x0a,0x22,0x01,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x03,0x01,0x00,0x00,0x00,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x6e,0x00,
0x00,0x00,0x00,0x00,0x22,0x01,0x00,0x71,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x01,
0x01,0x00,0x00,0x00,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5f,0x00,0x00,
0x00,0x00,0x16,0x22,0x01,0x05,0x03,0xf0,0xff,0xff,0xff,0x26,0x01,0x00,0x00,0x00,
0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x72,0x00,0x00,0x00,0x00,0x00,0x22,
0x01,0x05,0x03,0x01,0x00,0x00,0x00,0x26,0x01,0x00,0x00,0x00,0x73,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x74,0x00,0x00,0x00,0x00,0x00,0x23,0x01,0x05,0x03,0x02,
0x00,0x00,0x00,0x29,0x05,0x00,0x00,0x00,0x75,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x26,0x01,0x00,0x00,0x00,0x76,0x00,
0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x74,0x00,0x00,0x00,0x00,0x00,0x23,0x01,0x05,
0x03,0x02,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x76,0x00,0x00,0x00,0x00,0x03,
0x00,0x02,0x00,0x76,0x00,0x00,0x00,0x00,0x03,0x21,0x01,0x05,0x03,0xfe,0xff,0xff,
0xff,0x01,0x01,0x00,0x00,0x00,0x76,0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x76,
0x00,0x00,0x00,0x00,0x02,0x22,0x01,0x10,0x72,0x00,0x00,0x00,0x00,0x00,0x22,0x01,
0x01,0x01,0x00,0x00,0x00,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0xff,
0x1f,0x00,0x00,0x10,0x72,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x2c,0x01,0x02,0x02,
0x02,0x00,0x00,0x73,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x00,0x72,0x00,0x00,0x00,
0x00,0x00,0x22,0x01,0x01,0x01,0x02,0x00,0x00,0x76,0x00,0x00,0x00,0x00,0x02,0x00,
0x02,0x05,0x03,0x0f,0x20,0x00,0x00,0x10,0x5f,0x00,0x00,0x00,0x00,0x16,0x22,0x01,
0x2c,0x01,0x04,0x02,0x03,0x00,0x00,0x73,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x10,
0x72,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x01,0x03,0x00,0x00,0x75,0x00,0x00,
0x00,0x00,0x02,0x00,0x02,0x05,0x03,0x01,0xe0,0xff,0xff,0x29,0x00,0x00,0x00,0x00,
0x75,0x00,0x00,0x00,0x00,0x0b,0x00,0x02,0x00,0x5d,0x00,0x00,0x00,0x00,0x0b,0x21,
0x01,0x29,0x01,0x00,0x00,0x00,0x75,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,0x5d,
0x00,0x00,0x00,0x00,0x04,0x22,0x01,0x29,0x05,0x00,0x00,0x00,0x3d,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x75,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x05,0x00,
0x00,0x00,0x3d,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x05,0x03,0x00,0x00,0x00,0x00,
0x29,0x04,0x00,0x00,0x00,0x77,0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x32,0x00,
0x00,0x00,0x00,0x00,0x22,0x01,0x20,0x00,0x00,0x00,0x00,0x78,0x00,0x00,0x00,0x00,
0x0d,0x00,0x02,0x00,0x78,0x00,0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x05,0xf8,0xff,
0xff,0xff,0x29,0x01,0x00,0x00,0x00,0x3d,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x75,0x00,0x00,0x00,0x00,0x02,0x22,0x01,0x29,0x00,0x00,0x00,0x00,0x77,0x00,0x00,
0x00,0x00,0x01,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,0x00,
0x77,0x00,0x00,0x00,0x03,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x01,0x00,
0x00,0x00,0x00,0x79,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x7a,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x05,0x01,0x00,0xc0,0x98,0x0c,0x5d,0x00,0x04,0x00,0x00,0x08,
0x00,0x00,0x00,0x06,0x09,0x00,0x7b,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x3d,0x00,
0x00,0x00,0x00,0x00,0x7c,0x00,0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x00,0x7d,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x05,0x01,0x02,0x00,0x00,0x00,0x38,0x00,0x09,0x00,0x04,0x01,0x00,0x7e,0x00,0x00,
0x00,0x00,0x00,0x21,0x01,0x00,0x7f,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x36,0x00,
0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x81,0x00,0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x03,0xcf,0x00,0x00,0x00,
0x21,0x00,0x00,0x00,0x00,0x82,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x81,0x00,
0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x03,0x30,0x00,0x00,0x00,0x2c,0x00,0x01,0x02,
0x04,0x00,0x00,0x83,0x00,0x00,0x00,0x02,0x04,0x21,0x01,0x05,0x03,0x00,0x00,0x00,
0x00,0x2a,0x00,0x04,0x00,0x00,0x82,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x82,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x29,0x00,0x00,0x00,0x00,0x81,0x00,0x00,0x00,0x00,0x0d,0x00,0x02,0x00,0x84,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x20,0x00,0x00,0x00,0x00,0x85,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x00,0x86,0x00,0x00,0x00,0x01,0x06,0x21,0x01,0x05,0x05,0xc0,0xff,
0xff,0xff,0x21,0x00,0x00,0x00,0x00,0x86,0x00,0x00,0x00,0x01,0x06,0x00,0x02,0x00,
0x85,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x05,0x20,0x00,0x00,0x00,0x20,0x00,
0x00,0x00,0x00,0x86,0x00,0x00,0x00,0x00,0x0e,0x00,0x02,0x00,0x86,0x00,0x00,0x00,
0x00,0x0e,0x21,0x01,0x05,0x05,0xfb,0xff,0xff,0xff,0x29,0x03,0x00,0x00,0x00,0x43,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x08,0x00,0x00,0x10,0x00,0x10,0x03,0x00,
0x00,0x00,0x87,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x88,0x00,0x00,0x00,0x00,
0x00,0x22,0x01,0x05,0x01,0x00,0x00,0x03,0x00,0x29,0x03,0x00,0x00,0x00,0x87,0x00,
0x00,0x00,0x01,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,
0x00,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,
0x04,0x00,0x00,0x00,0x89,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x44,0x00,0x00,
0x00,0x00,0x00,0x21,0x01,0x32,0x00,0x04,0x00,0x01,0x00,0x29,0x05,0x00,0x00,0x00,
0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x22,
0x01,0x29,0x05,0x00,0x00,0x00,0x46,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x45,
0x00,0x00,0x00,0x01,0x00,0x22,0x01,0x31,0x01,0x00,0x29,0x03,0x00,0x00,0x00,0x47,
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x35,0x00,0x00,0x00,0x07,0x05,0x21,0x01,
0x29,0x03,0x00,0x00,0x00,0x47,0x00,0x00,0x00,0x00,0x01,0x00,0x03,0x00,0x3e,0x00,
0x00,0x00,0x07,0x05,0x21,0x01,0x29,0x04,0x00,0x00,0x00,0x8a,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,
0x00,0x8a,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x87,0x00,0x00,0x00,0x00,0x00,
0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x8a,0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x00,
0x47,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x8a,0x00,0x00,
0x00,0x06,0x00,0x00,0x02,0x00,0x47,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x00,
0x00,0x00,0x00,0x8b,0x00,0x00,0x00,0x02,0x14,0x00,0x02,0x05,0x05,0x00,0x00,0x00,
0x00,0x29,0x00,0x00,0x00,0x00,0x8b,0x00,0x00,0x00,0x02,0x15,0x00,0x02,0x05,0x05,
0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x8b,0x00,0x00,0x00,0x02,0x16,0x00,
0x02,0x05,0x05,0xaa,0xff,0xff,0xff,0x01,0x00,0x00,0x00,0x00,0x8c,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x6a,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x00,
0x60,0x78,0x10,0x5d,0x00,0x04,0x00,0x00,0x0d,0x00,0x00,0x00,0x08,0x07,0x00,0x8d,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x4a,0x00,0x00,0x00,0x00,0x00,0x4b,0x00,0x00,
0x00,0x00,0x00,0x29,0x01,0x00,0x00,0x00,0x4c,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x4b,0x00,0x00,0x00,0x01,0x02,0x22,0x01,0x38,0x00,0x0a,0x00,0x04,0x01,0x00,
0x7e,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x7f,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x4b,0x00,0x00,0x00,0x20,0x00,0x38,0x00,0x0b,0x00,0x04,0x01,0x00,0x7e,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x7f,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x4c,
0x00,0x00,0x00,0x00,0x00,0x34,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0x88,
0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,
0x22,0x20,0x00,0x00,0x06,0x00,0x04,0x48,0x02,0x08,0x00,0x00,0x00,0x4c,0x02,0x44,
0x40,0x04,0x00,0x00,0x16,0x0c,0x00,0x0c,0x00,0x31,0x00,0x80,0x0a,0x6c,0x4a,0x00,
0x21,0x80,0x08,0x00,0x00,0x00,0x02,0x00,0x00,0x05,0x00,0x00,0x00,0x4c,0x02,0x40,
0x40,0x04,0x00,0x00,0x16,0xff,0x0f,0xff,0x0f,0x01,0x00,0x00,0x00,0x6c,0x22,0x64,
0x23,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x4c,0x12,0x44,
0x20,0x44,0x00,0x00,0x16,0xff,0x0f,0xff,0x0f,0x01,0x00,0xa0,0x00,0x08,0x47,0x60,
0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x28,0x12,0x4c,
0x20,0x38,0x00,0x00,0x12,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0x6c,
0x20,0x00,0x00,0x00,0x00,0x00,0x00,0xa4,0x76,0x40,0x00,0x00,0x00,0x28,0x12,0x50,
0x20,0x3a,0x00,0x00,0x12,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x84,
0x40,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x00,0x41,0x00,0x00,0x00,0x28,0x0a,0x54,
0x20,0x4c,0x00,0x00,0x1a,0x64,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x76,
0x40,0x00,0x00,0x00,0x00,0x40,0x00,0x40,0x00,0x41,0x00,0x00,0x00,0x28,0x0a,0x58,
0x20,0x50,0x00,0x00,0x1a,0x64,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x77,
0x40,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0x68,
0x20,0x54,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0xa0,
0x20,0x76,0x00,0x45,0x1e,0xf0,0xff,0xf0,0xff,0x01,0x00,0x00,0x00,0x08,0x43,0x6a,
0x20,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0xa4,
0x20,0xa0,0x00,0x45,0x1e,0x01,0x00,0x01,0x00,0x01,0x00,0xa0,0x00,0x08,0x43,0xc0,
0x20,0x60,0x00,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0xd6,
0x20,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0xe0,
0x40,0xe0,0x00,0x00,0x1e,0x02,0x00,0x02,0x00,0x40,0x00,0x20,0x00,0x68,0x22,0xa8,
0x20,0xd6,0x00,0x45,0x1e,0x70,0x00,0x70,0x00,0x01,0x00,0x20,0x00,0x08,0x47,0xc0,
0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x20,0x00,0x48,0x12,0xa8,
0x20,0xa8,0x00,0x45,0x16,0x03,0x00,0x03,0x00,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,
0x20,0xa0,0x00,0x45,0x1e,0xff,0x3f,0xff,0x3f,0x05,0x00,0x20,0x00,0xa8,0x2a,0xac,
0x40,0xa8,0x00,0x40,0x1e,0x0f,0x00,0x0f,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0xe0,
0x40,0xe0,0x00,0x00,0x1e,0x80,0xff,0x80,0xff,0x05,0x00,0x00,0x00,0x68,0x1a,0xc2,
0x20,0xc2,0x00,0x00,0x1e,0xfe,0xff,0xfe,0xff,0x09,0x00,0x00,0x00,0xa8,0x2a,0x42,
0x40,0xae,0x00,0x00,0x1e,0x04,0x00,0x04,0x00,0x01,0x00,0x00,0x00,0x6c,0x2a,0x66,
0x23,0xac,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x43,0xc8,
0x20,0x68,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xe4,
0x40,0x00,0x00,0x00,0x00,0x3f,0x00,0x3f,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xe6,
0x40,0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xff,
0x40,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x40,0x00,0x20,0x00,0x68,0x1a,0xc0,
0x20,0xc0,0x00,0x45,0x1a,0xa4,0x40,0x45,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0xe0,
0x40,0xe0,0x00,0x00,0x1e,0x20,0x00,0x20,0x00,0x40,0x00,0x21,0x00,0x68,0x2a,0xc0,
0x20,0x76,0x40,0x45,0x1e,0x0f,0x20,0x0f,0x20,0x06,0x00,0x00,0x00,0xa8,0x2a,0xea,
0x40,0x42,0x00,0x00,0x1a,0x66,0x03,0x00,0x00,0x01,0x00,0x21,0x00,0x08,0x47,0xc0,
0x20,0x00,0x00,0x00,0x00,0x01,0xe0,0x01,0xe0,0x01,0x00,0x00,0x00,0x28,0x4b,0x48,
0x20,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x80,0x00,0x28,0x4f,0xc0,
0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x20,0x0a,0x00,
0x22,0x48,0x00,0x00,0x0e,0x00,0xc0,0x98,0x0c,0x01,0x00,0x60,0x00,0x28,0x4f,0xe0,
0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x6c,0x2a,0x68,
0x23,0x3d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0xb4,
0x20,0xd6,0x00,0x45,0x1e,0xf0,0xff,0xf0,0xff,0x01,0x00,0x00,0x00,0x2c,0x1a,0x6c,
0x23,0x68,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0xb4,
0x20,0xb4,0x00,0x45,0x1e,0x01,0x00,0x01,0x00,0x01,0x00,0xa0,0x00,0x08,0x47,0xe0,
0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x2a,0xe9,
0x40,0x38,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x10,0x08,
0x00,0x01,0x00,0x00,0x00,0xa8,0x2a,0xe8,0x40,0x39,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x16,0x01,0x20,0x07,0x21,0x08,0x00,0x01,0x16,0x01,0x20,0x07,0x0c,0x06,
0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0x8d,0x41,0x8d,0x01,0x00,0x1e,0xf8,0xff,0xf8,
0xff,0x01,0x00,0x20,0x00,0x08,0x43,0x80,0x21,0xc0,0x00,0x45,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0xa0,0x00,0x08,0x43,0x40,0x26,0xc0,0x00,0x8d,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0x84,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x00,0x00,0x08,0x43,0x56,0x26,0xd6,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x31,0x00,0x80,0x08,0x48,0x4a,0x40,0x22,0x80,0x01,0x00,0x00,0x00,0x02,0x00,
0x00,0x01,0x00,0x20,0x00,0x08,0x43,0x48,0x26,0xc8,0x00,0x45,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x60,0x00,0x28,0x4f,0x00,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x40,0x00,0x00,0x00,0x20,0x0a,0x00,0x22,0x28,0x00,0x00,0x0e,0x00,0xc0,0x98,
0x0c,0x09,0x00,0x00,0x00,0x28,0x0a,0x5c,0x20,0x4c,0x00,0x00,0x1e,0x02,0x00,0x02,
0x00,0x01,0x0d,0x01,0x20,0x07,0x45,0x00,0x00,0x41,0x00,0x20,0x00,0x28,0x2a,0x80,
0x23,0x3e,0x00,0x00,0x1a,0x34,0x03,0x45,0x00,0x05,0x00,0x00,0x00,0x68,0x22,0x46,
0x20,0x4d,0x06,0x00,0x1e,0xcf,0x00,0xcf,0x00,0x38,0x00,0x20,0x0c,0x28,0x0a,0x80,
0x23,0x80,0x03,0x45,0x0a,0x6c,0x03,0x00,0x00,0x01,0x00,0x60,0x00,0x68,0x2e,0x70,
0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0x44,
0x26,0x80,0x03,0x40,0x1e,0x02,0x00,0x02,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0xb0,
0x20,0x80,0x03,0x40,0x1e,0x02,0x00,0x02,0x00,0x05,0x00,0x00,0x00,0x68,0x1a,0x46,
0x26,0x46,0x06,0x00,0x1e,0xfe,0xff,0xfe,0xff,0x01,0x00,0x00,0x00,0x2c,0x4f,0xbc,
0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x40,0x00,0x20,0x00,0x68,0x1a,0x44,
0x26,0x44,0x06,0x45,0x1a,0xb4,0x40,0x45,0x00,0x40,0x00,0x20,0x00,0x68,0x1a,0xb4,
0x20,0xb4,0x40,0x45,0x1e,0xff,0x1f,0xff,0x1f,0x06,0x00,0x00,0x00,0x68,0x22,0xb8,
0x20,0x4d,0x06,0x00,0x1e,0x30,0x00,0x30,0x00,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,
0x20,0xb0,0x00,0x45,0x1a,0xb4,0x00,0x45,0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0xba,
0x40,0x66,0x06,0x00,0x1e,0xc0,0xff,0xc0,0xff,0x40,0x00,0x21,0x00,0x68,0x2a,0x44,
0x26,0xd6,0x40,0x45,0x1e,0x0f,0x20,0x0f,0x20,0x10,0x00,0x20,0x05,0x60,0x1a,0x00,
0x20,0xb0,0x00,0x45,0x1a,0xb4,0x40,0x45,0x00,0x01,0x00,0x00,0x00,0x28,0x12,0x60,
0x23,0x30,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x08,0x47,0x44,
0x26,0x00,0x00,0x00,0x00,0x01,0xe0,0x01,0xe0,0x10,0x00,0x00,0x02,0x60,0x1a,0x00,
0x20,0x48,0x01,0x00,0x1e,0x00,0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0x08,0x43,0xa0,
0x23,0x40,0x06,0x8d,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0xad,
0x43,0xad,0x03,0x00,0x1e,0xf8,0xff,0xf8,0xff,0x01,0x00,0x20,0x00,0x08,0x43,0xa0,
0x23,0x44,0x06,0x45,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0xa8,
0x28,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0xa4,
0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0xa0,
0x28,0x5c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x00,0x80,0x08,0x48,0x4a,0x60,
0x24,0xa0,0x03,0x00,0x00,0x00,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0xa4,
0x28,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x11,0x00,0x08,0x43,0xb8,
0x20,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,
0x22,0x2c,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,0x01,0x00,0x80,0x00,0x28,0x4f,0x80,
0x25,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x60,0x0c,0x14,0xb0,0x01,
0x00,0xa1,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x60,0x00,0x28,0x4f,0xe0,
0x25,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x60,0x00,0x28,0x0a,0xc0,
0x25,0xbc,0x00,0x00,0x1a,0x70,0x03,0x8d,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0x66,
0x46,0xba,0x00,0x00,0x1e,0x20,0x00,0x20,0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0x4e,
0x46,0x4e,0x06,0x00,0x1e,0xfb,0xff,0xfb,0xff,0x01,0x00,0x00,0x00,0x88,0x22,0x4d,
0x46,0xb8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x01,0x00,0x04,0x00,0x00,
0x34,0x00,0x14,0x00,0x0e,0x20,0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0xa8,0x2a,0xc0,
0x25,0x80,0x05,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0xa8,0x2a,0xe0,
0x25,0xa0,0x05,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x60,0x00,0x28,0x4b,0x00,
0x46,0x34,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x36,0x2e,
0x00,0x01,0x00,0x60,0x00,0x28,0x4b,0x04,0x46,0x54,0x05,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x16,0x01,0x20,0x07,0x34,0x32,0x00,0x40,0x00,0x00,0x00,0x20,0x0a,0x00,
0x22,0x48,0x00,0x00,0x0e,0x00,0x60,0x78,0x10,0x01,0x00,0x00,0x00,0xa8,0x1e,0xd4,
0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xd5,
0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x38,0x30,
0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xd6,0x46,0x00,0x00,0x00,0x00,0xaa,0xff,0xaa,
0xff,0x01,0x16,0x01,0x20,0x07,0x3a,0x30,0x00,0x31,0x00,0x80,0x0d,0x48,0x4a,0x80,
0x27,0x80,0x06,0x00,0x00,0x00,0x02,0x00,0x00,0x01,0x0d,0x01,0x20,0x07,0x46,0x00,
0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,0x30,0x00,0x00,0x06,0x00,0x80,0x0a,
0x02,0x01,0x00,0x00,0x00,0x2c,0x4f,0xc8,0x28,0x00,0x00,0x00,0x00,0x03,0x00,0x00,
0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0xc0,0x28,0x5c,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0xc4,0x28,0x50,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x0d,0x01,0x20,0x07,0x7f,0x00,0x00,0x33,0x00,0x60,0x0c,0x14,0xd0,0x03,
0x00,0xc1,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x43,0x60,
0x28,0xa4,0x07,0x45,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,
0x22,0x34,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,0x33,0x00,0x60,0x0c,0x14,0x30,0x04,
0x00,0xc1,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x00,0x60,0x07,0x04,0x4a,0x00,
0x20,0xe0,0x0f,0x00,0x06,0x10,0x00,0x00,0x82,0x9c,0x00,0x00,0x00,0x4d,0x65,0x50,
0x31,0x36,0x62,0x69,0x5f,0x31,0x4d,0x56,0x32,0x5f,0x4d,0x52,0x45,0x5f,0x38,0x78,
0x38,0x00,0x6e,0x75,0x6c,0x6c,0x00,0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x78,0x00,
0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x79,0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,
0x64,0x5f,0x78,0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,0x79,0x00,0x67,
0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,0x7a,0x00,0x74,0x73,0x63,0x00,0x72,0x30,
0x00,0x61,0x72,0x67,0x00,0x72,0x65,0x74,0x76,0x61,0x6c,0x00,0x73,0x70,0x00,0x66,
0x70,0x00,0x68,0x77,0x5f,0x69,0x64,0x00,0x73,0x72,0x30,0x00,0x63,0x72,0x30,0x00,
0x63,0x65,0x30,0x00,0x64,0x62,0x67,0x30,0x00,0x63,0x6f,0x6c,0x6f,0x72,0x00,0x54,
0x30,0x00,0x54,0x31,0x00,0x54,0x32,0x00,0x54,0x53,0x53,0x00,0x54,0x32,0x35,0x32,
0x00,0x54,0x32,0x35,0x35,0x00,0x53,0x33,0x31,0x00,0x56,0x33,0x32,0x00,0x56,0x33,
0x33,0x00,0x56,0x33,0x34,0x00,0x56,0x33,0x35,0x00,0x56,0x33,0x36,0x00,0x56,0x33,
0x37,0x00,0x56,0x33,0x38,0x00,0x56,0x33,0x39,0x00,0x56,0x34,0x30,0x00,0x56,0x34,
0x31,0x00,0x56,0x34,0x32,0x00,0x56,0x34,0x33,0x00,0x56,0x34,0x34,0x00,0x56,0x34,
0x35,0x00,0x56,0x34,0x36,0x00,0x56,0x34,0x37,0x00,0x56,0x34,0x38,0x00,0x56,0x34,
0x39,0x00,0x56,0x35,0x30,0x00,0x56,0x35,0x31,0x00,0x56,0x35,0x32,0x00,0x56,0x35,
0x33,0x00,0x56,0x35,0x34,0x00,0x56,0x35,0x35,0x00,0x56,0x35,0x36,0x00,0x56,0x35,
0x37,0x00,0x56,0x35,0x38,0x00,0x56,0x35,0x39,0x00,0x56,0x36,0x30,0x00,0x56,0x36,
0x31,0x00,0x56,0x36,0x32,0x00,0x56,0x36,0x33,0x00,0x56,0x36,0x34,0x00,0x56,0x36,
0x35,0x00,0x56,0x36,0x36,0x00,0x56,0x36,0x37,0x00,0x56,0x36,0x38,0x00,0x56,0x36,
0x39,0x00,0x56,0x37,0x30,0x00,0x56,0x37,0x31,0x00,0x56,0x37,0x32,0x00,0x56,0x37,
0x33,0x00,0x56,0x37,0x34,0x00,0x56,0x37,0x35,0x00,0x56,0x37,0x36,0x00,0x56,0x37,
0x37,0x00,0x56,0x37,0x38,0x00,0x56,0x37,0x39,0x00,0x56,0x38,0x30,0x00,0x56,0x38,
0x31,0x00,0x56,0x38,0x32,0x00,0x56,0x38,0x33,0x00,0x56,0x38,0x34,0x00,0x56,0x38,
0x35,0x00,0x56,0x38,0x36,0x00,0x56,0x38,0x37,0x00,0x56,0x38,0x38,0x00,0x56,0x38,
0x39,0x00,0x56,0x39,0x30,0x00,0x56,0x39,0x31,0x00,0x56,0x39,0x32,0x00,0x56,0x39,
0x33,0x00,0x56,0x39,0x34,0x00,0x56,0x39,0x35,0x00,0x56,0x39,0x36,0x00,0x56,0x39,
0x37,0x00,0x56,0x39,0x38,0x00,0x56,0x39,0x39,0x00,0x56,0x31,0x30,0x30,0x00,0x56,
0x31,0x30,0x31,0x00,0x56,0x31,0x30,0x32,0x00,0x56,0x31,0x30,0x33,0x00,0x56,0x31,
0x30,0x34,0x00,0x56,0x31,0x30,0x35,0x00,0x56,0x31,0x30,0x36,0x00,0x56,0x31,0x30,
0x37,0x00,0x56,0x31,0x30,0x38,0x00,0x56,0x31,0x30,0x39,0x00,0x56,0x31,0x31,0x30,
0x00,0x56,0x31,0x31,0x31,0x00,0x56,0x31,0x31,0x32,0x00,0x56,0x31,0x31,0x33,0x00,
0x56,0x31,0x31,0x34,0x00,0x56,0x31,0x31,0x35,0x00,0x56,0x31,0x31,0x36,0x00,0x56,
0x31,0x31,0x37,0x00,0x56,0x31,0x31,0x38,0x00,0x56,0x31,0x31,0x39,0x00,0x56,0x31,
0x32,0x30,0x00,0x56,0x31,0x32,0x31,0x00,0x56,0x31,0x32,0x32,0x00,0x56,0x31,0x32,
0x33,0x00,0x56,0x31,0x32,0x34,0x00,0x56,0x31,0x32,0x35,0x00,0x56,0x31,0x32,0x36,
0x00,0x56,0x31,0x32,0x37,0x00,0x56,0x31,0x32,0x38,0x00,0x56,0x31,0x32,0x39,0x00,
0x56,0x31,0x33,0x30,0x00,0x56,0x31,0x33,0x31,0x00,0x56,0x31,0x33,0x32,0x00,0x56,
0x31,0x33,0x33,0x00,0x56,0x31,0x33,0x34,0x00,0x56,0x31,0x33,0x35,0x00,0x56,0x31,
0x33,0x36,0x00,0x56,0x31,0x33,0x37,0x00,0x56,0x31,0x33,0x38,0x00,0x56,0x31,0x33,
0x39,0x00,0x56,0x31,0x34,0x30,0x00,0x56,0x31,0x34,0x31,0x00,0x56,0x31,0x34,0x32,
0x00,0x56,0x31,0x34,0x33,0x00,0x56,0x31,0x34,0x34,0x00,0x56,0x31,0x34,0x35,0x00,
0x56,0x31,0x34,0x36,0x00,0x50,0x31,0x00,0x50,0x32,0x00,0x50,0x33,0x00,0x50,0x34,
0x00,0x50,0x35,0x00,0x4d,0x65,0x50,0x31,0x36,0x62,0x69,0x5f,0x31,0x4d,0x56,0x32,
0x5f,0x4d,0x52,0x45,0x5f,0x38,0x78,0x38,0x5f,0x42,0x42,0x5f,0x30,0x5f,0x38,0x36,
0x00,0x42,0x42,0x5f,0x31,0x5f,0x31,0x35,0x30,0x00,0x54,0x36,0x00,0x54,0x37,0x00,
0x54,0x38,0x00,0x54,0x39,0x00,0x54,0x31,0x30,0x00,0x54,0x31,0x31,0x00,0x41,0x73,
0x6d,0x4e,0x61,0x6d,0x65,0x00,0x54,0x61,0x72,0x67,0x65,0x74,0x00,0x00,0x00,0x00,
0x00,0x73,0x00,0x00,0x00,0x1a,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x1b,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x1c,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1d,0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1e,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x1f,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,
0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0x00,
0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,
0x00,0x23,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x23,0x00,0x00,0x00,
0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x23,
0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x25,0x00,0x00,0x00,0x53,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26,0x00,0x00,0x00,0x13,0x02,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x27,0x00,0x00,0x00,0x13,0x02,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x15,0x04,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x2a,0x00,0x00,0x00,0x05,0x02,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x2b,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x2c,0x00,0x00,0x00,0x51,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x2d,0x00,0x00,0x00,0x51,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x2e,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x2f,0x00,0x00,0x00,0x53,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,
0x00,0x00,0x00,0x51,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x00,
0x00,0x00,0x51,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x32,0x00,0x00,
0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x00,0x00,
0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x34,0x00,0x00,0x00,0x23,
0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x35,0x00,0x00,0x00,0x13,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x13,0x02,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x37,0x00,0x00,0x00,0x21,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x53,0x60,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x39,0x00,0x00,0x00,0x51,0x48,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x3a,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x3b,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x3c,0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x3d,0x00,0x00,0x00,0x15,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3e,0x00,0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x3f,0x00,0x00,0x00,0x51,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,
0x00,0x00,0x00,0x55,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,
0x00,0x00,0x55,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x00,0x00,
0x00,0x51,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x43,0x00,0x00,0x00,
0x51,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x00,0x00,0x00,0x51,
0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x45,0x00,0x00,0x00,0x21,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x46,0x00,0x00,0x00,0x53,0x80,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x47,0x00,0x00,0x00,0x53,0x70,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x53,0x08,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x49,0x00,0x00,0x00,0x53,0x08,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x4a,0x00,0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x4b,0x00,0x00,0x00,0x00,0x01,0x00,0x22,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x4c,0x00,0x00,0x00,0x01,0x01,0x00,0x25,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x4d,0x00,0x00,0x00,0x02,0x02,0x00,0x24,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x4e,0x00,0x00,0x00,0x02,0x01,0x00,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x4f,0x00,0x00,0x00,0x01,0x01,0x00,0x27,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,
0x00,0x00,0x00,0x02,0x01,0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x51,0x00,
0x00,0x00,0x01,0x01,0x00,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x52,0x00,0x00,
0x00,0x04,0x01,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x53,0x00,0x00,0x00,
0x01,0x01,0x00,0x2a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x54,0x00,0x00,0x00,0x05,
0x80,0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x55,0x00,0x00,0x00,0x01,0x10,
0x00,0x2b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x56,0x00,0x00,0x00,0x05,0x40,0x00,
0x2b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x57,0x00,0x00,0x00,0x03,0x02,0x00,0x2c,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x00,0x00,0x00,0x05,0x40,0x00,0x2b,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x00,0x00,0x00,0x03,0x02,0x00,0x2d,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x5a,0x00,0x00,0x00,0x03,0x20,0x00,0x32,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x5b,0x00,0x00,0x00,0x03,0x20,0x00,0x32,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x5c,0x00,0x00,0x00,0x03,0x02,0x00,0x2e,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x5d,0x00,0x00,0x00,0x05,0x40,0x00,0x32,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x5e,0x00,0x00,0x00,0x05,0x80,0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x5f,0x00,0x00,0x00,0x03,0x02,0x00,0x2f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,
0x00,0x00,0x00,0x04,0x40,0x00,0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0x00,
0x00,0x00,0x02,0x02,0x00,0x2f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x62,0x00,0x00,
0x00,0x05,0x02,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x00,0x00,0x00,
0x05,0x04,0x00,0x2f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x05,
0x01,0x00,0x31,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x65,0x00,0x00,0x00,0x01,0x30,
0x00,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x00,0x00,0x00,0x05,0xc0,0x00,
0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x67,0x00,0x00,0x00,0x01,0x01,0x00,0x34,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x68,0x00,0x00,0x00,0x01,0x01,0x00,0x22,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x69,0x00,0x00,0x00,0x00,0x01,0x00,0x34,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x6a,0x00,0x00,0x00,0x03,0x90,0x00,0x36,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x6b,0x00,0x00,0x00,0x02,0x90,0x00,0x36,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x6c,0x00,0x00,0x00,0x01,0x02,0x00,0x3a,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x6d,0x00,0x00,0x00,0x03,0x90,0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x6e,0x00,0x00,0x00,0x05,0x01,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x6f,0x00,0x00,0x00,0x05,0x01,0x00,0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,
0x00,0x00,0x00,0x03,0x02,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x71,0x00,
0x00,0x00,0x03,0x02,0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x72,0x00,0x00,
0x00,0x03,0x04,0x00,0x3a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x73,0x00,0x00,0x00,
0x03,0x20,0x00,0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x00,0x00,0x00,0x03,
0x20,0x00,0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x75,0x00,0x00,0x00,0x01,0x30,
0x00,0x3e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x76,0x00,0x00,0x00,0x05,0xc0,0x00,
0x3e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x77,0x00,0x00,0x00,0x01,0x01,0x00,0x3d,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00,0x00,0x01,0x01,0x00,0x21,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x79,0x00,0x00,0x00,0x00,0x01,0x00,0x3d,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x7a,0x00,0x00,0x00,0x03,0x90,0x00,0x3f,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x7b,0x00,0x00,0x00,0x01,0x01,0x00,0x40,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x7c,0x00,0x00,0x00,0x01,0x01,0x00,0x41,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x7d,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7e,0x00,0x00,0x00,0x00,0x01,0x00,0x41,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x7f,0x00,0x00,0x00,0x03,0x01,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x00,0x00,0x00,0x04,0x40,0x00,0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x81,0x00,
0x00,0x00,0x03,0x01,0x00,0x43,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x82,0x00,0x00,
0x00,0x03,0x40,0x00,0x33,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x83,0x00,0x00,0x00,
0x04,0x02,0x00,0x43,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x84,0x00,0x00,0x00,0x05,
0x01,0x00,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x85,0x00,0x00,0x00,0x05,0x40,
0x00,0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x86,0x00,0x00,0x00,0x01,0x10,0x00,
0x47,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x87,0x00,0x00,0x00,0x01,0x08,0x00,0x45,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x88,0x00,0x00,0x00,0x01,0x10,0x00,0x46,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x89,0x00,0x00,0x00,0x01,0x40,0x00,0x4c,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x8a,0x00,0x00,0x00,0x05,0x00,0x01,0x4c,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x8b,0x00,0x00,0x00,0x01,0x01,0x00,0x4b,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x8c,0x00,0x00,0x00,0x00,0x01,0x00,0x4b,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x05,0x00,0x8d,0x00,0x00,0x00,0x02,0x00,0x00,0x8e,0x00,0x00,
0x00,0x02,0x00,0x00,0x8f,0x00,0x00,0x00,0x02,0x00,0x00,0x90,0x00,0x00,0x00,0x02,
0x00,0x00,0x91,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x92,0x00,0x00,0x00,0x01,
0x00,0x93,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x94,0x00,0x00,0x00,0x01,0x00,0x00,
0x95,0x00,0x00,0x00,0x01,0x00,0x00,0x96,0x00,0x00,0x00,0x01,0x00,0x00,0x97,0x00,
0x00,0x00,0x01,0x00,0x00,0x98,0x00,0x00,0x00,0x01,0x00,0x00,0x99,0x00,0x00,0x00,
0x01,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x02,0x06,0x00,0x00,0x00,0x20,0x00,0x04,
0x00,0x02,0x07,0x00,0x00,0x00,0x24,0x00,0x04,0x00,0x02,0x08,0x00,0x00,0x00,0x28,
0x00,0x04,0x00,0x02,0x09,0x00,0x00,0x00,0x2c,0x00,0x04,0x00,0x02,0x0a,0x00,0x00,
0x00,0x30,0x00,0x04,0x00,0x02,0x0b,0x00,0x00,0x00,0x34,0x00,0x04,0x00,0x00,0x24,
0x00,0x00,0x00,0x38,0x00,0x04,0x00,0x00,0x20,0x00,0x00,0x00,0x3c,0x00,0x01,0x00,
0x00,0x39,0x00,0x00,0x00,0x3d,0x00,0x01,0x00,0x00,0x38,0x00,0x00,0x00,0x3e,0x00,
0x01,0x00,0x54,0x0b,0x00,0x00,0x9b,0x0a,0x00,0x00,0x02,0x00,0x9a,0x00,0x00,0x00,
0x0d,0x67,0x65,0x6e,0x78,0x5f,0x6d,0x65,0x5f,0x33,0x2e,0x61,0x73,0x6d,0x9b,0x00,
0x00,0x00,0x01,0x00,0x30,0x00,0x00,0x2d,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x00,
0x00,0x02,0x06,0x00,0x08,0x00,0x00,0x2d,0x00,0x00,0x51,0x00,0x00,0x00,0x00,0x00,
0x00,0x02,0x06,0x00,0x07,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x23,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x01,0x00,0x00,
0x00,0x00,0x52,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x53,0x00,0x00,0x00,0x00,
0x00,0x21,0x01,0x00,0x54,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,
0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x00,0x00,0x00,0x00,
0x21,0x01,0x01,0x00,0x00,0x00,0x00,0x55,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x53,0x00,0x00,0x00,0x00,0x01,0x21,0x01,0x00,0x56,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x10,0x00,0x00,0x00,0x00,0x57,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x52,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x58,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x10,0x00,0x00,0x00,0x00,0x59,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x55,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x58,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x35,
0x03,0x00,0x06,0x05,0x00,0x00,0x00,0x00,0x00,0x5a,0x00,0x00,0x00,0x00,0x00,0x29,
0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x00,0x00,
0x00,0x00,0x29,0x05,0x00,0x00,0x00,0x2b,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x29,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x2b,0x00,0x00,
0x00,0x00,0x04,0x00,0x02,0x00,0x28,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,
0x00,0x00,0x00,0x2b,0x00,0x00,0x00,0x00,0x05,0x00,0x02,0x00,0x2a,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x5b,0x00,0x00,0x00,0x00,0x03,0x00,
0x02,0x05,0x01,0x00,0x00,0xa0,0x76,0x29,0x00,0x00,0x00,0x00,0x5c,0x00,0x00,0x00,
0x01,0x04,0x00,0x02,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x5c,
0x00,0x00,0x00,0x00,0x16,0x00,0x02,0x05,0x05,0x30,0x00,0x00,0x00,0x29,0x00,0x00,
0x00,0x00,0x5c,0x00,0x00,0x00,0x00,0x17,0x00,0x02,0x05,0x05,0x28,0x00,0x00,0x00,
0x01,0x01,0x00,0x00,0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5e,0x00,
0x00,0x00,0x00,0x16,0x22,0x01,0x05,0x03,0xf0,0xff,0xff,0xff,0x26,0x01,0x00,0x00,
0x00,0x5f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5d,0x00,0x00,0x00,0x00,0x00,
0x22,0x01,0x05,0x03,0x01,0x00,0x00,0x00,0x29,0x05,0x00,0x00,0x00,0x60,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x00,0x2b,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x01,
0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x00,0x00,0x00,
0x00,0x20,0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x00,0x01,0x00,0x02,0x00,0x61,
0x00,0x00,0x00,0x00,0x01,0x21,0x01,0x05,0x03,0xfe,0xff,0xff,0xff,0x01,0x01,0x00,
0x00,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x61,0x00,0x00,0x00,0x00,
0x00,0x22,0x01,0x10,0x5f,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x2c,0x01,0x02,0x02,
0x01,0x00,0x00,0x5d,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,0xff,0x3f,0x00,
0x00,0x01,0x01,0x01,0x00,0x00,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,
0x0f,0x20,0x00,0x00,0x10,0x5e,0x00,0x00,0x00,0x00,0x16,0x22,0x01,0x29,0x01,0x01,
0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x01,0xe0,0xff,0xff,
0x29,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x0b,0x00,0x02,0x00,0x2b,0x00,
0x00,0x00,0x00,0x0b,0x21,0x01,0x29,0x01,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,
0x04,0x00,0x02,0x00,0x2b,0x00,0x00,0x00,0x00,0x04,0x22,0x01,0x01,0x01,0x00,0x00,
0x00,0x62,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x63,0x00,0x00,0x00,0x00,0x16,
0x22,0x01,0x05,0x03,0xf0,0xff,0xff,0xff,0x2c,0x01,0x02,0x02,0x02,0x00,0x00,0x62,
0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,0xff,0x3f,0x00,0x00,0x29,0x01,0x02,
0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x05,0x03,0x01,0xe0,0xff,0xff,
0x21,0x00,0x00,0x00,0x00,0x63,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x63,0x00,
0x00,0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x02,0x00,0x00,0x00,0x21,0x00,0x00,0x00,
0x00,0x63,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x63,0x00,0x00,0x00,0x01,0x00,
0x21,0x01,0x05,0x05,0x80,0xff,0xff,0xff,0x29,0x00,0x00,0x00,0x00,0x63,0x00,0x00,
0x00,0x01,0x04,0x00,0x02,0x05,0x05,0x3f,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,
0x63,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x00,0x64,0x00,0x00,0x00,0x01,0x18,0x21,
0x01,0x29,0x00,0x00,0x00,0x00,0x63,0x00,0x00,0x00,0x01,0x08,0x00,0x02,0x00,0x64,
0x00,0x00,0x00,0x01,0x19,0x21,0x01,0x01,0x01,0x00,0x00,0x00,0x65,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x66,0x00,0x00,0x00,0x00,0x16,0x22,0x01,0x05,0x03,0x70,
0x00,0x00,0x00,0x25,0x01,0x00,0x00,0x00,0x67,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x67,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x02,0x03,0x00,0x00,0x00,0x20,
0x01,0x00,0x00,0x00,0x68,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x69,0x00,0x00,
0x00,0x00,0x00,0x23,0x01,0x05,0x05,0x0f,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x00,
0x6a,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x68,0x00,0x00,0x00,0x00,0x01,0x21,
0x01,0x05,0x05,0x04,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x63,0x00,0x00,0x00,
0x01,0x0a,0x00,0x02,0x00,0x6a,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x68,0x00,
0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x63,0x00,0x00,0x00,0x01,
0x06,0x00,0x02,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x63,0x00,
0x00,0x00,0x01,0x1f,0x00,0x02,0x05,0x05,0x01,0x00,0x00,0x00,0x21,0x00,0x00,0x00,
0x00,0x63,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x63,0x00,0x00,0x00,0x01,0x00,
0x21,0x01,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x04,0x00,0x00,0x00,0x6b,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x00,0x32,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,
0x00,0x00,0x00,0x6b,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,
0x00,0x29,0x04,0x00,0x00,0x00,0x6b,0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x33,
0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x20,0x00,0x00,0x00,0x00,0x6c,0x00,0x00,0x00,
0x00,0x0d,0x00,0x02,0x00,0x6c,0x00,0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x05,0xf8,
0xff,0xff,0xff,0x29,0x01,0x00,0x00,0x00,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x00,0x00,0x00,0x00,0x6b,0x00,
0x00,0x00,0x00,0x01,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,
0x00,0x6b,0x00,0x00,0x00,0x03,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x01,
0x00,0x00,0x00,0x00,0x6d,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x6e,0x00,0x00,
0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x00,0xc0,0x98,0x0c,0x5d,0x00,0x04,0x00,0x00,
0x08,0x00,0x00,0x00,0x06,0x09,0x00,0x6f,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x35,
0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x29,0x02,0x00,0x00,0x00,
0x37,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x71,0x00,0x00,0x00,0x07,0x04,0x22,
0x01,0x10,0x01,0x00,0x00,0x00,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x73,
0x00,0x00,0x00,0x07,0x0a,0x22,0x01,0x00,0x74,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x03,0x01,0x00,0x00,0x00,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x72,0x00,
0x00,0x00,0x00,0x00,0x22,0x01,0x00,0x75,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x01,
0x01,0x00,0x00,0x00,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x63,0x00,0x00,
0x00,0x00,0x16,0x22,0x01,0x05,0x03,0xf0,0xff,0xff,0xff,0x26,0x01,0x00,0x00,0x00,
0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x76,0x00,0x00,0x00,0x00,0x00,0x22,
0x01,0x05,0x03,0x01,0x00,0x00,0x00,0x26,0x01,0x00,0x00,0x00,0x77,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x78,0x00,0x00,0x00,0x00,0x00,0x23,0x01,0x05,0x03,0x02,
0x00,0x00,0x00,0x29,0x05,0x00,0x00,0x00,0x79,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x26,0x01,0x00,0x00,0x00,0x7a,0x00,
0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x78,0x00,0x00,0x00,0x00,0x00,0x23,0x01,0x05,
0x03,0x02,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x7a,0x00,0x00,0x00,0x00,0x03,
0x00,0x02,0x00,0x7a,0x00,0x00,0x00,0x00,0x03,0x21,0x01,0x05,0x03,0xfe,0xff,0xff,
0xff,0x01,0x01,0x00,0x00,0x00,0x7a,0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x7a,
0x00,0x00,0x00,0x00,0x02,0x22,0x01,0x10,0x76,0x00,0x00,0x00,0x00,0x00,0x22,0x01,
0x01,0x01,0x00,0x00,0x00,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0xff,
0x1f,0x00,0x00,0x10,0x76,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x2c,0x01,0x02,0x02,
0x03,0x00,0x00,0x77,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x00,0x76,0x00,0x00,0x00,
0x00,0x00,0x22,0x01,0x01,0x01,0x03,0x00,0x00,0x7a,0x00,0x00,0x00,0x00,0x02,0x00,
0x02,0x05,0x03,0x0f,0x20,0x00,0x00,0x10,0x63,0x00,0x00,0x00,0x00,0x16,0x22,0x01,
0x2c,0x01,0x04,0x02,0x04,0x00,0x00,0x77,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x10,
0x76,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x01,0x04,0x00,0x00,0x79,0x00,0x00,
0x00,0x00,0x02,0x00,0x02,0x05,0x03,0x01,0xe0,0xff,0xff,0x29,0x00,0x00,0x00,0x00,
0x79,0x00,0x00,0x00,0x00,0x0b,0x00,0x02,0x00,0x60,0x00,0x00,0x00,0x00,0x0b,0x21,
0x01,0x29,0x01,0x00,0x00,0x00,0x79,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,0x60,
0x00,0x00,0x00,0x00,0x04,0x22,0x01,0x29,0x05,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x79,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x05,0x00,
0x00,0x00,0x3e,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x05,0x03,0x00,0x00,0x00,0x00,
0x29,0x04,0x00,0x00,0x00,0x7b,0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x33,0x00,
0x00,0x00,0x00,0x00,0x22,0x01,0x20,0x00,0x00,0x00,0x00,0x7c,0x00,0x00,0x00,0x00,
0x0d,0x00,0x02,0x00,0x7c,0x00,0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x05,0xf8,0xff,
0xff,0xff,0x29,0x01,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x79,0x00,0x00,0x00,0x00,0x02,0x22,0x01,0x29,0x00,0x00,0x00,0x00,0x7b,0x00,0x00,
0x00,0x00,0x01,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,0x00,
0x7b,0x00,0x00,0x00,0x03,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x01,0x00,
0x00,0x00,0x00,0x7d,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x7e,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x05,0x01,0x00,0xc0,0x98,0x0c,0x5d,0x00,0x04,0x00,0x00,0x08,
0x00,0x00,0x00,0x06,0x09,0x00,0x7f,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x3e,0x00,
0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x00,0x81,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x52,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x05,0x01,0x03,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x00,0x82,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x00,0x55,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x01,0x00,
0x00,0x00,0x38,0x00,0x09,0x00,0x08,0x02,0x00,0x83,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x00,0x84,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x37,0x00,0x00,0x00,0x00,0x00,
0x20,0x00,0x00,0x00,0x00,0x85,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x86,0x00,
0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x03,0xcf,0x00,0x00,0x00,0x21,0x00,0x00,0x00,
0x00,0x87,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x86,0x00,0x00,0x00,0x00,0x0d,
0x21,0x01,0x05,0x03,0x30,0x00,0x00,0x00,0x2c,0x00,0x01,0x02,0x05,0x00,0x00,0x88,
0x00,0x00,0x00,0x02,0x04,0x21,0x01,0x05,0x03,0x00,0x00,0x00,0x00,0x2a,0x00,0x05,
0x00,0x00,0x87,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x87,0x00,0x00,0x00,0x00,
0x00,0x21,0x01,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,
0x00,0x86,0x00,0x00,0x00,0x00,0x0d,0x00,0x02,0x00,0x89,0x00,0x00,0x00,0x00,0x00,
0x21,0x01,0x20,0x00,0x00,0x00,0x00,0x8a,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x8b,0x00,0x00,0x00,0x01,0x06,0x21,0x01,0x05,0x05,0xc0,0xff,0xff,0xff,0x21,0x00,
0x00,0x00,0x00,0x8b,0x00,0x00,0x00,0x01,0x06,0x00,0x02,0x00,0x8a,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x05,0x05,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x8b,
0x00,0x00,0x00,0x00,0x0e,0x00,0x02,0x00,0x8b,0x00,0x00,0x00,0x00,0x0e,0x21,0x01,
0x05,0x05,0xfb,0xff,0xff,0xff,0x29,0x03,0x00,0x00,0x00,0x45,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x05,0x08,0x00,0x00,0x10,0x00,0x10,0x03,0x00,0x00,0x00,0x8c,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x8d,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,
0x01,0x03,0x00,0x03,0x00,0x29,0x03,0x00,0x00,0x00,0x8c,0x00,0x00,0x00,0x01,0x00,
0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,0x00,0x8e,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x05,0x08,0x00,0x00,0x30,0x00,0x29,0x03,0x00,0x00,0x00,
0x8e,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x32,0x00,
0x05,0x00,0x01,0x00,0x29,0x05,0x00,0x00,0x00,0x47,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x05,0x00,0x00,0x00,0x47,
0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x46,0x00,0x00,0x00,0x01,0x00,0x22,0x01,
0x31,0x01,0x00,0x29,0x02,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x00,0x00,0x00,0x03,
0x00,0x36,0x00,0x00,0x00,0x08,0x04,0x21,0x01,0x29,0x02,0x00,0x00,0x00,0x48,0x00,
0x00,0x00,0x01,0x00,0x00,0x03,0x00,0x36,0x00,0x00,0x00,0x08,0x05,0x21,0x01,0x29,
0x02,0x00,0x00,0x00,0x49,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x36,0x00,0x00,
0x00,0x08,0x06,0x21,0x01,0x29,0x02,0x00,0x00,0x00,0x49,0x00,0x00,0x00,0x01,0x00,
0x00,0x03,0x00,0x36,0x00,0x00,0x00,0x08,0x07,0x21,0x01,0x29,0x02,0x00,0x00,0x00,
0x48,0x00,0x00,0x00,0x00,0x01,0x00,0x03,0x00,0x3f,0x00,0x00,0x00,0x08,0x04,0x21,
0x01,0x29,0x02,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x01,0x01,0x00,0x03,0x00,0x3f,
0x00,0x00,0x00,0x08,0x05,0x21,0x01,0x29,0x02,0x00,0x00,0x00,0x49,0x00,0x00,0x00,
0x00,0x01,0x00,0x03,0x00,0x3f,0x00,0x00,0x00,0x08,0x06,0x21,0x01,0x29,0x02,0x00,
0x00,0x00,0x49,0x00,0x00,0x00,0x01,0x01,0x00,0x03,0x00,0x3f,0x00,0x00,0x00,0x08,
0x07,0x21,0x01,0x29,0x04,0x00,0x00,0x00,0x8f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x4a,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x8f,0x00,
0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x8c,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,
0x04,0x00,0x00,0x00,0x8f,0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x48,0x00,0x00,
0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x8f,0x00,0x00,0x00,0x06,0x00,
0x00,0x02,0x00,0x49,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x00,0x00,0x00,0x00,
0x90,0x00,0x00,0x00,0x02,0x14,0x00,0x02,0x05,0x05,0x03,0x00,0x00,0x00,0x29,0x00,
0x00,0x00,0x00,0x90,0x00,0x00,0x00,0x02,0x15,0x00,0x02,0x05,0x05,0x00,0x00,0x00,
0x00,0x29,0x00,0x00,0x00,0x00,0x90,0x00,0x00,0x00,0x02,0x16,0x00,0x02,0x05,0x05,
0xaa,0xff,0xff,0xff,0x01,0x00,0x00,0x00,0x00,0x91,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x6e,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x00,0x60,0x78,0x10,
0x5d,0x00,0x04,0x00,0x00,0x0d,0x00,0x00,0x00,0x08,0x07,0x00,0x92,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x4c,0x00,0x00,0x00,0x00,0x00,0x4d,0x00,0x00,0x00,0x00,0x00,
0x29,0x02,0x00,0x00,0x00,0x4e,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4d,0x00,
0x00,0x00,0x01,0x00,0x36,0x02,0x29,0x02,0x00,0x00,0x00,0x4e,0x00,0x00,0x00,0x00,
0x04,0x00,0x02,0x00,0x4d,0x00,0x00,0x00,0x03,0x00,0x36,0x02,0x29,0x02,0x00,0x00,
0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4d,0x00,0x00,0x00,0x01,0x02,
0x36,0x02,0x29,0x02,0x00,0x00,0x00,0x4f,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,
0x4d,0x00,0x00,0x00,0x03,0x02,0x36,0x02,0x38,0x00,0x0a,0x00,0x08,0x02,0x00,0x83,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x84,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x4e,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x0b,0x00,0x08,0x02,0x00,0x83,0x00,0x00,
0x00,0x00,0x00,0x21,0x01,0x00,0x84,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x4f,0x00,
0x00,0x00,0x00,0x00,0x34,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0x68,0x28,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,
0x20,0x00,0x00,0x06,0x00,0x04,0x48,0x02,0x08,0x00,0x00,0x00,0x4c,0x02,0x44,0x40,
0x04,0x00,0x00,0x16,0x0c,0x00,0x0c,0x00,0x31,0x00,0x80,0x0a,0x6c,0x4a,0x00,0x21,
0x60,0x08,0x00,0x00,0x00,0x02,0x00,0x00,0x05,0x00,0x00,0x00,0x4c,0x02,0x40,0x40,
0x04,0x00,0x00,0x16,0xff,0x0f,0xff,0x0f,0x01,0x00,0x00,0x00,0x6c,0x22,0x78,0x23,
0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x4c,0x12,0x44,0x20,
0x44,0x00,0x00,0x16,0xff,0x0f,0xff,0x0f,0x01,0x00,0xa0,0x00,0x08,0x47,0x60,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x28,0x12,0x4c,0x20,
0x38,0x00,0x00,0x12,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0x6c,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0xa0,0x76,0x40,0x00,0x00,0x00,0x28,0x12,0x50,0x20,
0x3a,0x00,0x00,0x12,0x44,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x84,0x40,
0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x00,0x41,0x00,0x00,0x00,0x28,0x0a,0x54,0x20,
0x4c,0x00,0x00,0x1a,0x78,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x76,0x40,
0x00,0x00,0x00,0x00,0x30,0x00,0x30,0x00,0x41,0x00,0x00,0x00,0x28,0x0a,0x58,0x20,
0x50,0x00,0x00,0x1a,0x78,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x77,0x40,
0x00,0x00,0x00,0x00,0x28,0x00,0x28,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0x68,0x20,
0x54,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0xa0,0x20,
0x76,0x00,0x45,0x1e,0xf0,0xff,0xf0,0xff,0x01,0x00,0x00,0x00,0x08,0x43,0x6a,0x20,
0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0xa4,0x20,
0xa0,0x00,0x45,0x1e,0x01,0x00,0x01,0x00,0x01,0x00,0xa0,0x00,0x08,0x43,0xc0,0x20,
0x60,0x00,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0xd6,0x20,
0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,0x20,
0xa0,0x00,0x45,0x1e,0xff,0x3f,0xff,0x3f,0x40,0x00,0x20,0x00,0x68,0x22,0xac,0x20,
0xd6,0x00,0x45,0x1e,0x70,0x00,0x70,0x00,0x01,0x00,0x20,0x00,0x08,0x47,0xc0,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x20,0x00,0x48,0x12,0xac,0x20,
0xac,0x00,0x45,0x16,0x03,0x00,0x03,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0xe0,0x40,
0xe0,0x00,0x00,0x1e,0x02,0x00,0x02,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0xa8,0x20,
0xd6,0x00,0x45,0x1e,0xf0,0xff,0xf0,0xff,0x05,0x00,0x00,0x00,0x68,0x1a,0xc2,0x20,
0xc2,0x00,0x00,0x1e,0xfe,0xff,0xfe,0xff,0x05,0x00,0x20,0x00,0xa8,0x2a,0xb0,0x40,
0xac,0x00,0x40,0x1e,0x0f,0x00,0x0f,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0xe0,0x40,
0xe0,0x00,0x00,0x1e,0x80,0xff,0x80,0xff,0x40,0x00,0x20,0x00,0x68,0x1a,0xc0,0x20,
0xc0,0x00,0x45,0x1a,0xa4,0x40,0x45,0x00,0x09,0x00,0x00,0x00,0xa8,0x2a,0x42,0x40,
0xb2,0x00,0x00,0x1e,0x04,0x00,0x04,0x00,0x01,0x00,0x00,0x00,0x6c,0x2a,0x7a,0x23,
0xb0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x21,0x00,0x68,0x2a,0xc0,0x20,
0x76,0x40,0x45,0x1e,0x0f,0x20,0x0f,0x20,0x01,0x00,0x21,0x00,0x08,0x47,0xc0,0x20,
0x00,0x00,0x00,0x00,0x01,0xe0,0x01,0xe0,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,0x20,
0xa8,0x00,0x45,0x1e,0xff,0x3f,0xff,0x3f,0x01,0x00,0x20,0x00,0x08,0x43,0xc8,0x20,
0x68,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xe4,0x40,
0x00,0x00,0x00,0x00,0x3f,0x00,0x3f,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xe6,0x40,
0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0xff,0x40,
0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0xe0,0x40,
0xe0,0x00,0x00,0x1e,0x20,0x00,0x20,0x00,0x01,0x00,0x21,0x00,0x08,0x47,0xc4,0x20,
0x00,0x00,0x00,0x00,0x01,0xe0,0x01,0xe0,0x06,0x00,0x00,0x00,0xa8,0x2a,0xea,0x40,
0x42,0x00,0x00,0x1a,0x7a,0x03,0x00,0x00,0x01,0x00,0x00,0x00,0x28,0x4b,0x48,0x20,
0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x80,0x00,0x28,0x4f,0xc0,0x21,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x20,0x0a,0x00,0x22,
0x48,0x00,0x00,0x0e,0x00,0xc0,0x98,0x0c,0x01,0x00,0x60,0x00,0x28,0x4f,0xe0,0x21,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x6c,0x2a,0x7c,0x23,
0x3d,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0xb8,0x20,
0xd6,0x00,0x45,0x1e,0xf0,0xff,0xf0,0xff,0x01,0x00,0x00,0x00,0x2c,0x1a,0x88,0x23,
0x7c,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0xb8,0x20,
0xb8,0x00,0x45,0x1e,0x01,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0xa8,0x2a,0xe9,0x40,
0x38,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x10,0x08,0x00,
0x01,0x00,0x00,0x00,0xa8,0x2a,0xe8,0x40,0x39,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0xa0,0x00,0x08,0x47,0xe0,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x16,0x01,0x20,0x07,0x0c,0x06,0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0x8d,0x41,
0x8d,0x01,0x00,0x1e,0xf8,0xff,0xf8,0xff,0x01,0x00,0x20,0x00,0x08,0x43,0x80,0x21,
0xc0,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0x08,0x43,0x00,0x26,
0xc0,0x00,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0x84,0x21,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0x16,0x26,
0xd6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x00,0x80,0x08,0x48,0x4a,0x40,0x22,
0x80,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x43,0x08,0x26,
0xc8,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x21,0x08,0x00,
0x01,0x00,0x60,0x00,0x28,0x4f,0x00,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x40,0x00,0x00,0x00,0x20,0x0a,0x00,0x22,0x28,0x00,0x00,0x0e,0x00,0xc0,0x98,0x0c,
0x41,0x00,0x20,0x00,0x28,0x2a,0x80,0x23,0x3e,0x00,0x00,0x1a,0x34,0x03,0x45,0x00,
0x09,0x00,0x00,0x00,0x28,0x0a,0x5c,0x20,0x4c,0x00,0x00,0x1e,0x03,0x00,0x03,0x00,
0x38,0x00,0x20,0x0c,0x28,0x0a,0x80,0x23,0x80,0x03,0x45,0x0a,0x88,0x03,0x00,0x00,
0x09,0x00,0x00,0x00,0x28,0x0a,0xbc,0x20,0x50,0x00,0x00,0x1e,0x01,0x00,0x01,0x00,
0x0c,0x00,0x20,0x00,0x68,0x1a,0x04,0x26,0x80,0x03,0x40,0x1e,0x02,0x00,0x02,0x00,
0x0c,0x00,0x20,0x00,0x68,0x1a,0xb4,0x20,0x80,0x03,0x40,0x1e,0x02,0x00,0x02,0x00,
0x05,0x00,0x00,0x00,0x68,0x1a,0x06,0x26,0x06,0x06,0x00,0x1e,0xfe,0xff,0xfe,0xff,
0x05,0x00,0x00,0x00,0x68,0x22,0x46,0x20,0x0d,0x06,0x00,0x1e,0xcf,0x00,0xcf,0x00,
0x40,0x00,0x20,0x00,0x68,0x1a,0x04,0x26,0x04,0x06,0x45,0x1a,0xb8,0x40,0x45,0x00,
0x40,0x00,0x20,0x00,0x68,0x1a,0xb8,0x20,0xb8,0x40,0x45,0x1e,0xff,0x1f,0xff,0x1f,
0x01,0x0d,0x01,0x20,0x07,0x44,0x00,0x00,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,0x20,
0xb4,0x00,0x45,0x1a,0xb8,0x00,0x45,0x00,0x01,0x00,0x60,0x00,0x68,0x2e,0x90,0x23,
0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x40,0x00,0x21,0x00,0x68,0x2a,0x04,0x26,
0xd6,0x40,0x45,0x1e,0x0f,0x20,0x0f,0x20,0x10,0x00,0x20,0x05,0x60,0x1a,0x00,0x20,
0xb4,0x00,0x45,0x1a,0xb8,0x40,0x45,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0x74,0x23,
0x00,0x00,0x00,0x00,0x03,0x00,0x03,0x00,0x01,0x00,0x21,0x00,0x08,0x47,0x04,0x26,
0x00,0x00,0x00,0x00,0x01,0xe0,0x01,0xe0,0x10,0x00,0x00,0x02,0x60,0x1a,0x00,0x20,
0x48,0x01,0x00,0x1e,0x00,0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0x08,0x43,0xa0,0x23,
0x00,0x06,0x8d,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0xad,0x43,
0xad,0x03,0x00,0x1e,0xf8,0xff,0xf8,0xff,0x01,0x00,0x20,0x00,0x08,0x43,0xa0,0x23,
0x04,0x06,0x45,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x60,0x00,0x68,0x2e,0x30,0x28,
0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0xa4,0x23,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x68,0x22,0x70,0x23,
0x0d,0x06,0x00,0x1e,0x30,0x00,0x30,0x00,0x31,0x00,0x80,0x08,0x48,0x4a,0x60,0x24,
0xa0,0x03,0x00,0x00,0x00,0x02,0x00,0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0x72,0x43,
0x26,0x06,0x00,0x1e,0xc0,0xff,0xc0,0xff,0x01,0x00,0x00,0x00,0x2c,0x4f,0x88,0x28,
0x00,0x00,0x00,0x00,0x07,0x00,0x01,0x00,0x01,0x00,0x40,0x00,0x28,0x12,0x60,0x23,
0x28,0x03,0x69,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0x80,0x28,
0x5c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x11,0x00,0x08,0x43,0x70,0x23,
0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0x84,0x28,
0xbc,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,
0x2c,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,0x01,0x00,0x60,0x00,0x28,0x4f,0xe0,0x25,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x60,0x0c,0x14,0xb0,0x01,0x00,
0x81,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x60,0x00,0x28,0x4f,0xa0,0x25,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x60,0x00,0x28,0x0a,0xc0,0x25,
0x74,0x03,0x00,0x1a,0x90,0x03,0x8d,0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0x0e,0x46,
0x0e,0x06,0x00,0x1e,0xfb,0xff,0xfb,0xff,0x01,0x00,0x60,0x00,0x28,0x1a,0x80,0x25,
0x30,0x08,0x8d,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0x26,0x46,
0x72,0x03,0x00,0x1e,0x20,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0x88,0x22,0x0d,0x46,
0x70,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x01,0x00,0x04,0x00,0x00,0x34,
0x00,0x14,0x00,0x0e,0x20,0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0xa8,0x2a,0xc0,0x25,
0x80,0x05,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0xa8,0x2a,0xe0,0x25,
0xa0,0x05,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x34,0x2e,0x00,
0x01,0x00,0x40,0x00,0x28,0x4b,0xc0,0x46,0x50,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x28,0x4b,0xe0,0x46,0x54,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x28,0x4b,0x00,0x47,0x58,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x28,0x4b,0x20,0x47,0x5c,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x16,0x01,0x20,0x07,0x32,0x30,0x00,0x40,0x00,0x00,0x00,0x20,0x0a,0x00,0x22,
0x48,0x00,0x00,0x0e,0x00,0x60,0x78,0x10,0x01,0x00,0x00,0x00,0xa8,0x1e,0x94,0x46,
0x00,0x00,0x00,0x00,0x03,0x00,0x03,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x95,0x46,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0xc4,0x46,
0x70,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x96,0x46,
0x00,0x00,0x00,0x00,0xaa,0xff,0xaa,0xff,0x01,0x00,0x40,0x00,0x28,0x4b,0xe4,0x46,
0x74,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0x04,0x47,
0x78,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0x24,0x47,
0x7c,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x0d,0x01,0x20,0x07,0x45,0x00,0x00,
0x31,0x00,0x80,0x0d,0x48,0x4a,0x40,0x27,0x40,0x06,0x00,0x00,0x00,0x02,0x00,0x00,
0x01,0x00,0x00,0x00,0x2c,0x4f,0xa8,0x28,0x00,0x00,0x00,0x00,0x07,0x00,0x01,0x00,
0x01,0x00,0x00,0x00,0x2c,0x4b,0xa0,0x28,0x5c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,0x30,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,
0x01,0x00,0x00,0x00,0x2c,0x4b,0xa4,0x28,0xbc,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x0d,0x01,0x20,0x07,0x7f,0x00,0x00,0x01,0x00,0x40,0x00,0x08,0x43,0x20,0x28,
0x60,0x07,0xa5,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x08,0x43,0x40,0x28,
0x64,0x07,0xa5,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x08,0x43,0x28,0x28,
0xa0,0x07,0xa5,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x08,0x43,0x48,0x28,
0xa4,0x07,0xa5,0x00,0x00,0x00,0x00,0x00,0x33,0x00,0x60,0x0c,0x14,0x10,0x04,0x00,
0xa1,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,
0x34,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,0x33,0x00,0x60,0x0c,0x14,0x20,0x04,0x00,
0xa1,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x00,0x60,0x07,0x04,0x4a,0x00,0x20,
0xe0,0x0f,0x00,0x06,0x10,0x00,0x00,0x82,0x88,0x00,0x00,0x00,0x4d,0x65,0x50,0x31,
0x36,0x5f,0x31,0x4d,0x45,0x5f,0x32,0x42,0x69,0x52,0x65,0x66,0x5f,0x4d,0x52,0x45,
0x5f,0x38,0x78,0x38,0x00,0x6e,0x75,0x6c,0x6c,0x00,0x74,0x68,0x72,0x65,0x61,0x64,
0x5f,0x78,0x00,0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x79,0x00,0x67,0x72,0x6f,0x75,
0x70,0x5f,0x69,0x64,0x5f,0x78,0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,
0x79,0x00,0x67,0x72,0x6f,0x75,0x70,0x5f,0x69,0x64,0x5f,0x7a,0x00,0x74,0x73,0x63,
0x00,0x72,0x30,0x00,0x61,0x72,0x67,0x00,0x72,0x65,0x74,0x76,0x61,0x6c,0x00,0x73,
0x70,0x00,0x66,0x70,0x00,0x68,0x77,0x5f,0x69,0x64,0x00,0x73,0x72,0x30,0x00,0x63,
0x72,0x30,0x00,0x63,0x65,0x30,0x00,0x64,0x62,0x67,0x30,0x00,0x63,0x6f,0x6c,0x6f,
0x72,0x00,0x54,0x30,0x00,0x54,0x31,0x00,0x54,0x32,0x00,0x54,0x53,0x53,0x00,0x54,
0x32,0x35,0x32,0x00,0x54,0x32,0x35,0x35,0x00,0x53,0x33,0x31,0x00,0x56,0x33,0x32,
0x00,0x56,0x33,0x33,0x00,0x56,0x33,0x34,0x00,0x56,0x33,0x35,0x00,0x56,0x33,0x36,
0x00,0x56,0x33,0x37,0x00,0x56,0x33,0x38,0x00,0x56,0x33,0x39,0x00,0x56,0x34,0x30,
0x00,0x56,0x34,0x31,0x00,0x56,0x34,0x32,0x00,0x56,0x34,0x33,0x00,0x56,0x34,0x34,
0x00,0x56,0x34,0x35,0x00,0x56,0x34,0x36,0x00,0x56,0x34,0x37,0x00,0x56,0x34,0x38,
0x00,0x56,0x34,0x39,0x00,0x56,0x35,0x30,0x00,0x56,0x35,0x31,0x00,0x56,0x35,0x32,
0x00,0x56,0x35,0x33,0x00,0x56,0x35,0x34,0x00,0x56,0x35,0x35,0x00,0x56,0x35,0x36,
0x00,0x56,0x35,0x37,0x00,0x56,0x35,0x38,0x00,0x56,0x35,0x39,0x00,0x56,0x36,0x30,
0x00,0x56,0x36,0x31,0x00,0x56,0x36,0x32,0x00,0x56,0x36,0x33,0x00,0x56,0x36,0x34,
0x00,0x56,0x36,0x35,0x00,0x56,0x36,0x36,0x00,0x56,0x36,0x37,0x00,0x56,0x36,0x38,
0x00,0x56,0x36,0x39,0x00,0x56,0x37,0x30,0x00,0x56,0x37,0x31,0x00,0x56,0x37,0x32,
0x00,0x56,0x37,0x33,0x00,0x56,0x37,0x34,0x00,0x56,0x37,0x35,0x00,0x56,0x37,0x36,
0x00,0x56,0x37,0x37,0x00,0x56,0x37,0x38,0x00,0x56,0x37,0x39,0x00,0x56,0x38,0x30,
0x00,0x56,0x38,0x31,0x00,0x56,0x38,0x32,0x00,0x56,0x38,0x33,0x00,0x56,0x38,0x34,
0x00,0x56,0x38,0x35,0x00,0x56,0x38,0x36,0x00,0x56,0x38,0x37,0x00,0x56,0x38,0x38,
0x00,0x56,0x38,0x39,0x00,0x56,0x39,0x30,0x00,0x56,0x39,0x31,0x00,0x56,0x39,0x32,
0x00,0x56,0x39,0x33,0x00,0x56,0x39,0x34,0x00,0x56,0x39,0x35,0x00,0x56,0x39,0x36,
0x00,0x56,0x39,0x37,0x00,0x56,0x39,0x38,0x00,0x56,0x39,0x39,0x00,0x56,0x31,0x30,
0x30,0x00,0x56,0x31,0x30,0x31,0x00,0x56,0x31,0x30,0x32,0x00,0x56,0x31,0x30,0x33,
0x00,0x56,0x31,0x30,0x34,0x00,0x56,0x31,0x30,0x35,0x00,0x56,0x31,0x30,0x36,0x00,
0x56,0x31,0x30,0x37,0x00,0x56,0x31,0x30,0x38,0x00,0x56,0x31,0x30,0x39,0x00,0x56,
0x31,0x31,0x30,0x00,0x56,0x31,0x31,0x31,0x00,0x56,0x31,0x31,0x32,0x00,0x56,0x31,
0x31,0x33,0x00,0x56,0x31,0x31,0x34,0x00,0x56,0x31,0x31,0x35,0x00,0x56,0x31,0x31,
0x36,0x00,0x56,0x31,0x31,0x37,0x00,0x56,0x31,0x31,0x38,0x00,0x56,0x31,0x31,0x39,
0x00,0x56,0x31,0x32,0x30,0x00,0x56,0x31,0x32,0x31,0x00,0x56,0x31,0x32,0x32,0x00,
0x56,0x31,0x32,0x33,0x00,0x56,0x31,0x32,0x34,0x00,0x56,0x31,0x32,0x35,0x00,0x56,
0x31,0x32,0x36,0x00,0x56,0x31,0x32,0x37,0x00,0x56,0x31,0x32,0x38,0x00,0x50,0x31,
0x00,0x50,0x32,0x00,0x50,0x33,0x00,0x4d,0x65,0x50,0x31,0x36,0x5f,0x31,0x4d,0x45,
0x5f,0x32,0x42,0x69,0x52,0x65,0x66,0x5f,0x4d,0x52,0x45,0x5f,0x38,0x78,0x38,0x5f,
0x42,0x42,0x5f,0x30,0x5f,0x37,0x39,0x00,0x42,0x42,0x5f,0x31,0x5f,0x31,0x33,0x30,
0x00,0x54,0x36,0x00,0x54,0x37,0x00,0x54,0x38,0x00,0x54,0x39,0x00,0x54,0x31,0x30,
0x00,0x54,0x31,0x31,0x00,0x41,0x73,0x6d,0x4e,0x61,0x6d,0x65,0x00,0x54,0x61,0x72,
0x67,0x65,0x74,0x00,0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x1a,0x00,0x00,0x00,
0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,0x00,0x00,0x05,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1c,0x00,0x00,0x00,0x05,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1d,0x00,0x00,0x00,0x21,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x13,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x23,0x00,0x00,0x00,0x23,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x24,0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x25,0x00,0x00,0x00,0x23,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x26,0x00,0x00,0x00,0x53,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x27,
0x00,0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x00,
0x00,0x00,0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x29,0x00,0x00,
0x00,0x55,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2a,0x00,0x00,0x00,
0x13,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2b,0x00,0x00,0x00,0x13,
0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2c,0x00,0x00,0x00,0x15,0x04,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2d,0x00,0x00,0x00,0x05,0x02,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2e,0x00,0x00,0x00,0x05,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2f,0x00,0x00,0x00,0x51,0x20,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x31,0x00,0x00,0x00,0x53,0x60,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x51,0x48,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x33,0x00,0x00,0x00,0x51,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x34,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x35,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x36,0x00,0x00,0x00,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x37,
0x00,0x00,0x00,0x15,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,
0x00,0x00,0x05,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0x00,0x00,
0x00,0x51,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3a,0x00,0x00,0x00,
0x55,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3b,0x00,0x00,0x00,0x55,
0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3c,0x00,0x00,0x00,0x21,0x04,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3d,0x00,0x00,0x00,0x51,0x10,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3e,0x00,0x00,0x00,0x51,0x10,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0x00,0x00,0x00,0x51,0x10,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x21,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x00,0x00,0x53,0x80,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x42,0x00,0x00,0x00,0x53,0x70,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x43,0x00,0x00,0x00,0x53,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x44,0x00,0x00,0x00,0x53,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x45,0x00,0x00,0x00,0x00,0x01,0x00,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x46,0x00,0x00,0x00,0x01,0x01,0x00,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x47,
0x00,0x00,0x00,0x02,0x02,0x00,0x25,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x48,0x00,
0x00,0x00,0x02,0x01,0x00,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x49,0x00,0x00,
0x00,0x01,0x01,0x00,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4a,0x00,0x00,0x00,
0x02,0x01,0x00,0x27,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4b,0x00,0x00,0x00,0x01,
0x01,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4c,0x00,0x00,0x00,0x04,0x01,
0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4d,0x00,0x00,0x00,0x01,0x01,0x00,
0x2b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4e,0x00,0x00,0x00,0x05,0x80,0x00,0x35,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x4f,0x00,0x00,0x00,0x01,0x10,0x00,0x2c,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x05,0x40,0x00,0x2c,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x51,0x00,0x00,0x00,0x03,0x02,0x00,0x2d,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x52,0x00,0x00,0x00,0x05,0x40,0x00,0x2c,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x53,0x00,0x00,0x00,0x03,0x02,0x00,0x2e,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x54,0x00,0x00,0x00,0x03,0x20,0x00,0x2f,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x55,0x00,0x00,0x00,0x03,0x20,0x00,0x2f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x56,0x00,0x00,0x00,0x03,0x02,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x57,
0x00,0x00,0x00,0x05,0x40,0x00,0x2f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x00,
0x00,0x00,0x03,0x02,0x00,0x31,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x00,0x00,
0x00,0x03,0x20,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5a,0x00,0x00,0x00,
0x03,0x20,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5b,0x00,0x00,0x00,0x05,
0x40,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5c,0x00,0x00,0x00,0x05,0x80,
0x00,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5d,0x00,0x00,0x00,0x03,0x02,0x00,
0x32,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5e,0x00,0x00,0x00,0x04,0x40,0x00,0x45,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,0x02,0x02,0x00,0x32,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x05,0x02,0x00,0x33,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x05,0x04,0x00,0x32,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x62,0x00,0x00,0x00,0x05,0x01,0x00,0x34,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x63,0x00,0x00,0x00,0x01,0x30,0x00,0x37,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x64,0x00,0x00,0x00,0x05,0xc0,0x00,0x37,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x65,0x00,0x00,0x00,0x01,0x01,0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x66,0x00,0x00,0x00,0x01,0x01,0x00,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x67,
0x00,0x00,0x00,0x00,0x01,0x00,0x36,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x68,0x00,
0x00,0x00,0x03,0x90,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x69,0x00,0x00,
0x00,0x02,0x90,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6a,0x00,0x00,0x00,
0x03,0x08,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6b,0x00,0x00,0x00,0x01,
0x01,0x00,0x3a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6c,0x00,0x00,0x00,0x01,0x01,
0x00,0x3b,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6d,0x00,0x00,0x00,0x00,0x01,0x00,
0x3a,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6e,0x00,0x00,0x00,0x00,0x01,0x00,0x3b,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6f,0x00,0x00,0x00,0x03,0x01,0x00,0x3c,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x03,0x01,0x00,0x3d,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x71,0x00,0x00,0x00,0x03,0x40,0x00,0x35,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x72,0x00,0x00,0x00,0x05,0x02,0x00,0x3d,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x73,0x00,0x00,0x00,0x05,0x01,0x00,0x3e,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x74,0x00,0x00,0x00,0x01,0x10,0x00,0x41,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x75,0x00,0x00,0x00,0x01,0x08,0x00,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x76,0x00,0x00,0x00,0x01,0x10,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x77,
0x00,0x00,0x00,0x01,0x40,0x00,0x47,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,
0x00,0x00,0x05,0x00,0x01,0x47,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x79,0x00,0x00,
0x00,0x01,0x01,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7a,0x00,0x00,0x00,
0x00,0x01,0x00,0x46,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x7b,
0x00,0x00,0x00,0x02,0x00,0x00,0x7c,0x00,0x00,0x00,0x02,0x00,0x00,0x7d,0x00,0x00,
0x00,0x01,0x00,0x00,0x02,0x00,0x7e,0x00,0x00,0x00,0x01,0x00,0x7f,0x00,0x00,0x00,
0x00,0x00,0x00,0x06,0x80,0x00,0x00,0x00,0x01,0x00,0x00,0x81,0x00,0x00,0x00,0x01,
0x00,0x00,0x82,0x00,0x00,0x00,0x01,0x00,0x00,0x83,0x00,0x00,0x00,0x01,0x00,0x00,
0x84,0x00,0x00,0x00,0x01,0x00,0x00,0x85,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x0a,
0x00,0x00,0x00,0x02,0x06,0x00,0x00,0x00,0x20,0x00,0x04,0x00,0x02,0x07,0x00,0x00,
0x00,0x24,0x00,0x04,0x00,0x02,0x08,0x00,0x00,0x00,0x28,0x00,0x04,0x00,0x02,0x09,
0x00,0x00,0x00,0x2c,0x00,0x04,0x00,0x02,0x0a,0x00,0x00,0x00,0x30,0x00,0x04,0x00,
0x02,0x0b,0x00,0x00,0x00,0x34,0x00,0x04,0x00,0x00,0x25,0x00,0x00,0x00,0x38,0x00,
0x04,0x00,0x00,0x20,0x00,0x00,0x00,0x3c,0x00,0x01,0x00,0x00,0x21,0x00,0x00,0x00,
0x3d,0x00,0x01,0x00,0x00,0x22,0x00,0x00,0x00,0x3e,0x00,0x01,0x00,0xa9,0x09,0x00,
0x00,0x27,0x09,0x00,0x00,0x02,0x00,0x86,0x00,0x00,0x00,0x0d,0x67,0x65,0x6e,0x78,
0x5f,0x6d,0x65,0x5f,0x34,0x2e,0x61,0x73,0x6d,0x87,0x00,0x00,0x00,0x01,0x00,0x30,
0x00,0x00,0x2d,0x00,0x00,0x4b,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x06,0x00,0x07,
0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x01,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x01,0x00,0x00,0x00,0x00,0x4c,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x00,0x4d,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x4e,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x27,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x01,0x00,0x00,
0x00,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4d,0x00,0x00,0x00,0x00,
0x01,0x21,0x01,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x10,0x00,0x00,0x00,
0x00,0x51,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4c,0x00,0x00,0x00,0x00,0x00,
0x21,0x01,0x00,0x52,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x10,0x00,0x00,0x00,0x00,
0x53,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x00,0x52,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x35,0x03,0x00,0x06,0x05,0x00,
0x00,0x00,0x00,0x00,0x54,0x00,0x00,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x2a,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x00,0x00,0x00,0x00,0x29,0x05,0x00,
0x00,0x00,0x2c,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x2a,0x00,0x00,0x00,0x00,
0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x2c,0x00,0x00,0x00,0x00,0x04,0x00,0x02,
0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x2c,0x00,
0x00,0x00,0x00,0x05,0x00,0x02,0x00,0x2b,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,
0x00,0x00,0x00,0x00,0x55,0x00,0x00,0x00,0x00,0x03,0x00,0x02,0x05,0x01,0x00,0x00,
0xa0,0x76,0x29,0x00,0x00,0x00,0x00,0x56,0x00,0x00,0x00,0x01,0x04,0x00,0x02,0x05,
0x05,0x20,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x56,0x00,0x00,0x00,0x00,0x16,
0x00,0x02,0x05,0x05,0x30,0x00,0x00,0x00,0x29,0x00,0x00,0x00,0x00,0x56,0x00,0x00,
0x00,0x00,0x17,0x00,0x02,0x05,0x05,0x28,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,
0x57,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x58,0x00,0x00,0x00,0x00,0x16,0x22,
0x01,0x05,0x03,0xf0,0xff,0xff,0xff,0x26,0x01,0x00,0x00,0x00,0x59,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x57,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,0x01,
0x00,0x00,0x00,0x29,0x05,0x00,0x00,0x00,0x5a,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x2c,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x01,0x00,0x00,0x00,0x5a,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,
0x00,0x5b,0x00,0x00,0x00,0x00,0x01,0x00,0x02,0x00,0x5b,0x00,0x00,0x00,0x00,0x01,
0x21,0x01,0x05,0x03,0xfe,0xff,0xff,0xff,0x01,0x01,0x00,0x00,0x00,0x5b,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x00,0x5b,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x10,0x59,
0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x2c,0x01,0x02,0x02,0x01,0x00,0x00,0x57,0x00,
0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,0xff,0x3f,0x00,0x00,0x01,0x01,0x01,0x00,
0x00,0x5b,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x0f,0x20,0x00,0x00,0x10,
0x58,0x00,0x00,0x00,0x00,0x16,0x22,0x01,0x29,0x01,0x01,0x00,0x00,0x5a,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x05,0x03,0x01,0xe0,0xff,0xff,0x29,0x00,0x00,0x00,0x00,
0x5a,0x00,0x00,0x00,0x00,0x0b,0x00,0x02,0x00,0x2c,0x00,0x00,0x00,0x00,0x0b,0x21,
0x01,0x29,0x01,0x00,0x00,0x00,0x5a,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,0x2c,
0x00,0x00,0x00,0x00,0x04,0x22,0x01,0x01,0x01,0x00,0x00,0x00,0x5c,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x5d,0x00,0x00,0x00,0x00,0x16,0x22,0x01,0x05,0x03,0xf0,
0xff,0xff,0xff,0x26,0x01,0x00,0x00,0x00,0x5e,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x5c,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x03,0x01,0x00,0x00,0x00,0x29,
0x05,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x5a,0x00,0x00,
0x00,0x00,0x00,0x22,0x01,0x29,0x01,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,0x00,0x02,
0x00,0x02,0x05,0x03,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x60,0x00,0x00,
0x00,0x00,0x03,0x00,0x02,0x00,0x60,0x00,0x00,0x00,0x00,0x03,0x21,0x01,0x05,0x03,
0xfe,0xff,0xff,0xff,0x01,0x01,0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x02,0x00,
0x02,0x00,0x60,0x00,0x00,0x00,0x00,0x02,0x22,0x01,0x10,0x5e,0x00,0x00,0x00,0x00,
0x00,0x22,0x01,0x2c,0x01,0x02,0x02,0x02,0x00,0x00,0x5c,0x00,0x00,0x00,0x00,0x00,
0x22,0x01,0x05,0x03,0xff,0x3f,0x00,0x00,0x01,0x01,0x02,0x00,0x00,0x60,0x00,0x00,
0x00,0x00,0x02,0x00,0x02,0x05,0x03,0x0f,0x20,0x00,0x00,0x10,0x5d,0x00,0x00,0x00,
0x00,0x16,0x22,0x01,0x29,0x01,0x02,0x00,0x00,0x5f,0x00,0x00,0x00,0x00,0x02,0x00,
0x02,0x05,0x03,0x01,0xe0,0xff,0xff,0x29,0x00,0x00,0x00,0x00,0x5f,0x00,0x00,0x00,
0x00,0x0b,0x00,0x02,0x00,0x5a,0x00,0x00,0x00,0x00,0x0b,0x21,0x01,0x29,0x01,0x00,
0x00,0x00,0x5f,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,0x5a,0x00,0x00,0x00,0x00,
0x04,0x22,0x01,0x21,0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x01,0x00,0x00,0x02,
0x00,0x61,0x00,0x00,0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x02,0x00,0x00,0x00,0x21,
0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x61,0x00,0x00,
0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x80,0xff,0xff,0xff,0x29,0x00,0x00,0x00,0x00,
0x61,0x00,0x00,0x00,0x01,0x04,0x00,0x02,0x05,0x05,0x3f,0x00,0x00,0x00,0x29,0x00,
0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x01,0x09,0x00,0x02,0x00,0x62,0x00,0x00,0x00,
0x01,0x18,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x01,0x08,0x00,
0x02,0x00,0x62,0x00,0x00,0x00,0x01,0x19,0x21,0x01,0x01,0x01,0x00,0x00,0x00,0x63,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x64,0x00,0x00,0x00,0x00,0x16,0x22,0x01,
0x05,0x03,0x70,0x00,0x00,0x00,0x25,0x01,0x00,0x00,0x00,0x65,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x00,0x65,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,0x02,0x03,0x00,
0x00,0x00,0x20,0x01,0x00,0x00,0x00,0x66,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x67,0x00,0x00,0x00,0x00,0x00,0x23,0x01,0x05,0x05,0x0f,0x00,0x00,0x00,0x24,0x00,
0x00,0x00,0x00,0x68,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x66,0x00,0x00,0x00,
0x00,0x01,0x21,0x01,0x05,0x05,0x04,0x00,0x00,0x00,0x21,0x00,0x00,0x00,0x00,0x61,
0x00,0x00,0x00,0x01,0x0a,0x00,0x02,0x00,0x68,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x00,0x66,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,0x00,0x61,0x00,
0x00,0x00,0x01,0x06,0x00,0x02,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x00,0x00,0x00,
0x00,0x61,0x00,0x00,0x00,0x01,0x1f,0x00,0x02,0x05,0x05,0x01,0x00,0x00,0x00,0x21,
0x00,0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x61,0x00,0x00,
0x00,0x01,0x00,0x21,0x01,0x05,0x05,0x20,0x00,0x00,0x00,0x29,0x04,0x00,0x00,0x00,
0x69,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x22,
0x01,0x29,0x04,0x00,0x00,0x00,0x69,0x00,0x00,0x00,0x02,0x00,0x00,0x02,0x05,0x01,
0x00,0x00,0x00,0x00,0x29,0x04,0x00,0x00,0x00,0x69,0x00,0x00,0x00,0x04,0x00,0x00,
0x02,0x00,0x35,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x20,0x00,0x00,0x00,0x00,0x6a,
0x00,0x00,0x00,0x00,0x0d,0x00,0x02,0x00,0x6a,0x00,0x00,0x00,0x00,0x0d,0x21,0x01,
0x05,0x05,0xf8,0xff,0xff,0xff,0x29,0x01,0x00,0x00,0x00,0x37,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x00,0x5f,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x00,0x00,0x00,
0x00,0x69,0x00,0x00,0x00,0x00,0x01,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,
0x03,0x00,0x00,0x00,0x69,0x00,0x00,0x00,0x03,0x00,0x00,0x02,0x05,0x01,0x00,0x00,
0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x6b,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x6c,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x00,0xc0,0x98,0x0c,0x5d,0x00,
0x04,0x00,0x00,0x08,0x00,0x00,0x00,0x06,0x09,0x00,0x6d,0x00,0x00,0x00,0x00,0x00,
0x21,0x01,0x37,0x00,0x00,0x00,0x00,0x00,0x6e,0x00,0x00,0x00,0x00,0x00,0x29,0x02,
0x00,0x00,0x00,0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x6f,0x00,0x00,0x00,
0x07,0x04,0x22,0x01,0x29,0x03,0x00,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x10,0x6e,0x00,0x00,0x00,0x08,0x08,0x22,0x01,0x24,0x00,0x00,0x00,0x00,0x71,
0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x4c,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x05,0x01,0x03,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x00,0x72,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x00,0x4f,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x01,0x00,
0x00,0x00,0x38,0x00,0x09,0x00,0x08,0x02,0x00,0x73,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x00,0x74,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x39,0x00,0x00,0x00,0x00,0x00,
0x20,0x00,0x00,0x00,0x00,0x75,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x64,0x00,
0x00,0x00,0x00,0x0d,0x21,0x01,0x05,0x03,0xcf,0x00,0x00,0x00,0x21,0x00,0x00,0x00,
0x00,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x64,0x00,0x00,0x00,0x00,0x0d,
0x21,0x01,0x05,0x03,0x30,0x00,0x00,0x00,0x2c,0x00,0x01,0x02,0x03,0x00,0x00,0x77,
0x00,0x00,0x00,0x02,0x04,0x21,0x01,0x05,0x03,0x00,0x00,0x00,0x00,0x2a,0x00,0x03,
0x00,0x00,0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x76,0x00,0x00,0x00,0x00,
0x00,0x21,0x01,0x00,0x3c,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x29,0x00,0x00,0x00,
0x00,0x61,0x00,0x00,0x00,0x00,0x0d,0x00,0x02,0x00,0x78,0x00,0x00,0x00,0x00,0x00,
0x21,0x01,0x20,0x00,0x00,0x00,0x00,0x79,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,
0x61,0x00,0x00,0x00,0x01,0x06,0x21,0x01,0x05,0x05,0xc0,0xff,0xff,0xff,0x21,0x00,
0x00,0x00,0x00,0x61,0x00,0x00,0x00,0x01,0x06,0x00,0x02,0x00,0x79,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x05,0x05,0x20,0x00,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x61,
0x00,0x00,0x00,0x00,0x0e,0x00,0x02,0x00,0x61,0x00,0x00,0x00,0x00,0x0e,0x21,0x01,
0x05,0x05,0xfb,0xff,0xff,0xff,0x29,0x03,0x00,0x00,0x00,0x3f,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x05,0x08,0x00,0x00,0x10,0x00,0x10,0x03,0x00,0x00,0x00,0x7a,0x00,
0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x7b,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x05,
0x01,0x03,0x00,0x03,0x00,0x29,0x03,0x00,0x00,0x00,0x7a,0x00,0x00,0x00,0x01,0x00,
0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x29,0x03,0x00,0x00,0x00,0x7c,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x05,0x08,0x00,0x00,0x30,0x00,0x29,0x03,0x00,0x00,0x00,
0x7c,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x05,0x01,0x00,0x00,0x00,0x00,0x32,0x00,
0x03,0x00,0x01,0x00,0x29,0x05,0x00,0x00,0x00,0x41,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x05,0x00,0x00,0x00,0x41,
0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x00,0x40,0x00,0x00,0x00,0x01,0x00,0x22,0x01,
0x31,0x01,0x00,0x29,0x02,0x00,0x00,0x00,0x43,0x00,0x00,0x00,0x00,0x00,0x00,0x03,
0x00,0x38,0x00,0x00,0x00,0x08,0x04,0x21,0x01,0x29,0x02,0x00,0x00,0x00,0x43,0x00,
0x00,0x00,0x01,0x00,0x00,0x03,0x00,0x38,0x00,0x00,0x00,0x08,0x05,0x21,0x01,0x29,
0x02,0x00,0x00,0x00,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x38,0x00,0x00,
0x00,0x08,0x06,0x21,0x01,0x29,0x02,0x00,0x00,0x00,0x44,0x00,0x00,0x00,0x01,0x00,
0x00,0x03,0x00,0x38,0x00,0x00,0x00,0x08,0x07,0x21,0x01,0x29,0x02,0x00,0x00,0x00,
0x43,0x00,0x00,0x00,0x00,0x01,0x00,0x03,0x00,0x42,0x00,0x00,0x00,0x00,0x00,0x21,
0x01,0x29,0x02,0x00,0x00,0x00,0x43,0x00,0x00,0x00,0x01,0x01,0x00,0x03,0x00,0x42,
0x00,0x00,0x00,0x00,0x01,0x21,0x01,0x29,0x02,0x00,0x00,0x00,0x44,0x00,0x00,0x00,
0x00,0x01,0x00,0x03,0x00,0x42,0x00,0x00,0x00,0x00,0x02,0x21,0x01,0x29,0x02,0x00,
0x00,0x00,0x44,0x00,0x00,0x00,0x01,0x01,0x00,0x03,0x00,0x42,0x00,0x00,0x00,0x00,
0x03,0x21,0x01,0x29,0x04,0x00,0x00,0x00,0x7d,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x7d,0x00,
0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x7a,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,
0x04,0x00,0x00,0x00,0x7d,0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x00,0x43,0x00,0x00,
0x00,0x00,0x00,0x22,0x01,0x29,0x04,0x00,0x00,0x00,0x7d,0x00,0x00,0x00,0x06,0x00,
0x00,0x02,0x00,0x44,0x00,0x00,0x00,0x00,0x00,0x22,0x01,0x29,0x00,0x00,0x00,0x00,
0x7e,0x00,0x00,0x00,0x02,0x14,0x00,0x02,0x05,0x05,0x03,0x00,0x00,0x00,0x29,0x00,
0x00,0x00,0x00,0x7e,0x00,0x00,0x00,0x02,0x15,0x00,0x02,0x05,0x05,0x00,0x00,0x00,
0x00,0x29,0x00,0x00,0x00,0x00,0x7e,0x00,0x00,0x00,0x02,0x16,0x00,0x02,0x05,0x05,
0xaa,0xff,0xff,0xff,0x01,0x00,0x00,0x00,0x00,0x7f,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x6c,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x05,0x01,0x00,0x60,0x78,0x10,
0x5d,0x00,0x04,0x00,0x00,0x0d,0x00,0x00,0x00,0x08,0x07,0x00,0x80,0x00,0x00,0x00,
0x00,0x00,0x21,0x01,0x47,0x00,0x00,0x00,0x00,0x00,0x48,0x00,0x00,0x00,0x00,0x00,
0x29,0x02,0x00,0x00,0x00,0x49,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x48,0x00,
0x00,0x00,0x01,0x00,0x36,0x02,0x29,0x02,0x00,0x00,0x00,0x49,0x00,0x00,0x00,0x00,
0x04,0x00,0x02,0x00,0x48,0x00,0x00,0x00,0x03,0x00,0x36,0x02,0x29,0x02,0x00,0x00,
0x00,0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x48,0x00,0x00,0x00,0x01,0x02,
0x36,0x02,0x29,0x02,0x00,0x00,0x00,0x4a,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x00,
0x48,0x00,0x00,0x00,0x03,0x02,0x36,0x02,0x38,0x00,0x0a,0x00,0x08,0x02,0x00,0x73,
0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x00,0x74,0x00,0x00,0x00,0x00,0x00,0x21,0x01,
0x49,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x0b,0x00,0x08,0x02,0x00,0x73,0x00,0x00,
0x00,0x00,0x00,0x21,0x01,0x00,0x74,0x00,0x00,0x00,0x00,0x00,0x21,0x01,0x4a,0x00,
0x00,0x00,0x00,0x00,0x34,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0x68,0x26,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,
0x20,0x00,0x00,0x06,0x00,0x04,0x48,0x02,0x08,0x00,0x00,0x00,0x4c,0x02,0x40,0x40,
0x04,0x00,0x00,0x16,0x0c,0x00,0x0c,0x00,0x31,0x00,0x80,0x0a,0x6c,0x4a,0x00,0x21,
0x60,0x06,0x00,0x00,0x00,0x02,0x00,0x00,0x05,0x00,0x00,0x00,0x4c,0x02,0x28,0x40,
0x04,0x00,0x00,0x16,0xff,0x0f,0xff,0x0f,0x05,0x00,0x00,0x00,0x4c,0x12,0x40,0x20,
0x40,0x00,0x00,0x16,0xff,0x0f,0xff,0x0f,0x01,0x00,0x00,0x00,0x6c,0x22,0xc0,0x26,
0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x28,0x12,0x48,0x20,
0x38,0x00,0x00,0x12,0x28,0x00,0x00,0x00,0x01,0x00,0xa0,0x00,0x08,0x47,0x60,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x28,0x12,0x4c,0x20,
0x3a,0x00,0x00,0x12,0x40,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0x6c,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0xa0,0x76,0x41,0x00,0x00,0x00,0x28,0x0a,0x50,0x20,
0x48,0x00,0x00,0x1a,0xc0,0x06,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x84,0x40,
0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x00,0x41,0x00,0x00,0x00,0x28,0x0a,0x54,0x20,
0x4c,0x00,0x00,0x1a,0xc0,0x06,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x76,0x40,
0x00,0x00,0x00,0x00,0x30,0x00,0x30,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x77,0x40,
0x00,0x00,0x00,0x00,0x28,0x00,0x28,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0x68,0x20,
0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0x58,0x20,
0x76,0x00,0x45,0x1e,0xf0,0xff,0xf0,0xff,0x01,0x00,0x00,0x00,0x08,0x43,0x6a,0x20,
0x54,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0xa0,0x20,
0x58,0x00,0x45,0x1e,0x01,0x00,0x01,0x00,0x01,0x00,0xa0,0x00,0x08,0x43,0xc0,0x20,
0x60,0x00,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x47,0xc0,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,0x20,
0x58,0x00,0x45,0x1e,0xff,0x3f,0xff,0x3f,0x05,0x00,0x00,0x00,0x68,0x1a,0xc2,0x20,
0xc2,0x00,0x00,0x1e,0xfe,0xff,0xfe,0xff,0x01,0x00,0x00,0x00,0x08,0x43,0xd6,0x20,
0x76,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x43,0xc8,0x20,
0x68,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x20,0x00,0x68,0x2a,0xa4,0x20,
0xd6,0x00,0x45,0x1e,0xf0,0xff,0xf0,0xff,0x40,0x00,0x20,0x00,0x68,0x1a,0xc0,0x20,
0xc0,0x00,0x45,0x1a,0xa0,0x40,0x45,0x00,0x0c,0x00,0x20,0x00,0x68,0x1a,0xa8,0x20,
0xa4,0x00,0x45,0x1e,0x01,0x00,0x01,0x00,0x40,0x00,0x21,0x00,0x68,0x2a,0xc0,0x20,
0x76,0x40,0x45,0x1e,0x0f,0x20,0x0f,0x20,0x01,0x00,0x00,0x00,0x28,0x4b,0x44,0x20,
0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x08,0x47,0xc0,0x20,
0x00,0x00,0x00,0x00,0x01,0xe0,0x01,0xe0,0x10,0x00,0x20,0x03,0x60,0x1a,0x00,0x20,
0xa4,0x00,0x45,0x1e,0xff,0x3f,0xff,0x3f,0x01,0x00,0xa0,0x00,0x08,0x43,0x00,0x24,
0xc0,0x00,0x8d,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x08,0x43,0x16,0x24,
0xd6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0x20,0x44,
0x20,0x04,0x00,0x1e,0x02,0x00,0x02,0x00,0x40,0x00,0x20,0x00,0x68,0x22,0xac,0x20,
0x16,0x04,0x45,0x1e,0x70,0x00,0x70,0x00,0x01,0x00,0x20,0x00,0x08,0x47,0x04,0x24,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x20,0x00,0x48,0x12,0xac,0x20,
0xac,0x00,0x45,0x16,0x03,0x00,0x03,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0x20,0x44,
0x20,0x04,0x00,0x1e,0x80,0xff,0x80,0xff,0x05,0x00,0x20,0x00,0xa8,0x2a,0xb0,0x40,
0xac,0x00,0x40,0x1e,0x0f,0x00,0x0f,0x00,0x05,0x00,0x00,0x00,0x68,0x1a,0x06,0x24,
0x06,0x04,0x00,0x1e,0xfe,0xff,0xfe,0xff,0x09,0x00,0x00,0x00,0xa8,0x2a,0x2a,0x40,
0xb2,0x00,0x00,0x1e,0x04,0x00,0x04,0x00,0x01,0x00,0x00,0x00,0x6c,0x2a,0xc2,0x26,
0xb0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x20,0x00,0x08,0x43,0x08,0x24,
0xc8,0x00,0x45,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x24,0x44,
0x00,0x00,0x00,0x00,0x3f,0x00,0x3f,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x26,0x44,
0x00,0x00,0x00,0x00,0x20,0x00,0x20,0x00,0x01,0x00,0x00,0x00,0xa8,0x1e,0x3f,0x44,
0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x40,0x00,0x20,0x00,0x68,0x1a,0x04,0x24,
0x04,0x04,0x45,0x1a,0xa8,0x40,0x45,0x00,0x06,0x00,0x00,0x00,0xa8,0x2a,0x20,0x44,
0x20,0x04,0x00,0x1e,0x20,0x00,0x20,0x00,0x40,0x00,0x21,0x00,0x68,0x2a,0x04,0x24,
0xd6,0x40,0x45,0x1e,0x0f,0x20,0x0f,0x20,0x06,0x00,0x00,0x00,0xa8,0x2a,0x2a,0x44,
0x2a,0x00,0x00,0x1a,0xc2,0x06,0x00,0x00,0x01,0x00,0x00,0x00,0xa8,0x2a,0x29,0x44,
0x38,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x21,0x00,0x08,0x47,0x04,0x24,
0x00,0x00,0x00,0x00,0x01,0xe0,0x01,0xe0,0x01,0x00,0x00,0x00,0xa8,0x2a,0x28,0x44,
0x39,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x80,0x00,0x28,0x4f,0xc0,0x21,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x0c,0x20,0x00,
0x40,0x00,0x00,0x00,0x20,0x0a,0x00,0x22,0x44,0x00,0x00,0x0e,0x00,0xc0,0x98,0x0c,
0x01,0x16,0x01,0x20,0x07,0x10,0x08,0x00,0x01,0x00,0x60,0x00,0x28,0x4f,0xe0,0x21,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0xa8,0x2a,0x8d,0x41,
0x8d,0x01,0x00,0x1e,0xf8,0xff,0xf8,0xff,0x01,0x00,0x20,0x00,0x08,0x43,0x80,0x21,
0x00,0x04,0x45,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x28,0x0a,0x5c,0x20,
0x48,0x00,0x00,0x1e,0x03,0x00,0x03,0x00,0x01,0x00,0x00,0x00,0x28,0x4f,0x84,0x21,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x00,0x28,0x0a,0xb4,0x20,
0x4c,0x00,0x00,0x1e,0x01,0x00,0x01,0x00,0x31,0x00,0x80,0x08,0x48,0x4a,0x40,0x22,
0x80,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x05,0x00,0x00,0x00,0x68,0x22,0x42,0x20,
0x0d,0x04,0x00,0x1e,0xcf,0x00,0xcf,0x00,0x10,0x00,0x00,0x02,0x60,0x1a,0x00,0x20,
0x48,0x01,0x00,0x1e,0x00,0x00,0x00,0x00,0x01,0x0d,0x01,0x20,0x07,0x34,0x00,0x00,
0x01,0x00,0x60,0x00,0x68,0x2e,0x30,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,
0x01,0x00,0x00,0x00,0x2c,0x4f,0xbc,0x20,0x00,0x00,0x00,0x00,0x03,0x00,0x03,0x00,
0x01,0x00,0x60,0x00,0x68,0x2e,0x50,0x26,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,
0x06,0x00,0x00,0x00,0x68,0x22,0xb8,0x20,0x0d,0x04,0x00,0x1e,0x30,0x00,0x30,0x00,
0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,0x2c,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,
0x05,0x00,0x00,0x00,0xa8,0x2a,0xba,0x40,0x26,0x04,0x00,0x1e,0xc0,0xff,0xc0,0xff,
0x01,0x00,0x00,0x00,0x2c,0x4f,0x88,0x26,0x00,0x00,0x00,0x00,0x07,0x00,0x01,0x00,
0x01,0x00,0x00,0x00,0x2c,0x4b,0x80,0x26,0x5c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x28,0x12,0x60,0x23,0x28,0x03,0x69,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x00,0x00,0x2c,0x4b,0x84,0x26,0xb4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x11,0x00,0x08,0x43,0xb8,0x20,0x42,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x33,0x00,0x60,0x0c,0x14,0xb0,0x01,0x00,0x81,0x26,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x60,0x00,0x28,0x4f,0xe0,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x60,0x00,0x28,0x4f,0xa0,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x05,0x00,0x00,0x00,0xa8,0x2a,0x0e,0x44,0x0e,0x04,0x00,0x1e,0xfb,0xff,0xfb,0xff,
0x01,0x00,0x60,0x00,0x68,0x1a,0x70,0x23,0x50,0x43,0x8d,0x00,0x00,0x00,0x00,0x00,
0x41,0x00,0x60,0x00,0x28,0x0a,0xc0,0x23,0xbc,0x00,0x00,0x1a,0x30,0x06,0x8d,0x00,
0x01,0x00,0x60,0x00,0x28,0x1a,0x80,0x23,0x50,0x06,0x8d,0x00,0x00,0x00,0x00,0x00,
0x06,0x00,0x00,0x00,0xa8,0x2a,0x26,0x44,0xba,0x00,0x00,0x1e,0x20,0x00,0x20,0x00,
0x01,0x00,0x00,0x00,0xa8,0x2a,0x0d,0x44,0xb8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x20,0x00,0x01,0x00,0x04,0x00,0x00,0x34,0x00,0x14,0x00,0x0e,0x20,0x00,0x00,0x00,
0x01,0x00,0xa0,0x00,0xa8,0x2a,0xc0,0x23,0x80,0x03,0x8d,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0xa0,0x00,0xa8,0x2a,0xe0,0x23,0xa0,0x03,0x8d,0x00,0x00,0x00,0x00,0x00,
0x01,0x16,0x01,0x20,0x07,0x24,0x1e,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0xc0,0x44,
0x50,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0xe0,0x44,
0x54,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0x00,0x45,
0x58,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x40,0x00,0x28,0x4b,0x20,0x45,
0x5c,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x16,0x01,0x20,0x07,0x22,0x20,0x00,
0x40,0x00,0x00,0x00,0x20,0x0a,0x00,0x22,0x44,0x00,0x00,0x0e,0x00,0x60,0x78,0x10,
0x01,0x00,0x00,0x00,0xa8,0x1e,0x94,0x44,0x00,0x00,0x00,0x00,0x03,0x00,0x03,0x00,
0x01,0x00,0x00,0x00,0xa8,0x1e,0x95,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x28,0x4b,0xc4,0x44,0x70,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x00,0x00,0xa8,0x1e,0x96,0x44,0x00,0x00,0x00,0x00,0xaa,0xff,0xaa,0xff,
0x01,0x00,0x40,0x00,0x28,0x4b,0xe4,0x44,0x74,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x28,0x4b,0x04,0x45,0x78,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x28,0x4b,0x24,0x45,0x7c,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x0d,0x01,0x20,0x07,0x35,0x00,0x00,0x31,0x00,0x80,0x0d,0x48,0x4a,0x40,0x25,
0x40,0x04,0x00,0x00,0x00,0x02,0x00,0x00,0x01,0x00,0x00,0x00,0x2c,0x4f,0xa8,0x26,
0x00,0x00,0x00,0x00,0x07,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x2c,0x4b,0xa0,0x26,
0x5c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,
0x30,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,0x01,0x00,0x00,0x00,0x2c,0x4b,0xa4,0x26,
0xb4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x0d,0x01,0x20,0x07,0x7f,0x00,0x00,
0x01,0x00,0x40,0x00,0x08,0x43,0x20,0x26,0x60,0x05,0xa5,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x08,0x43,0x40,0x26,0x64,0x05,0xa5,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x08,0x43,0x28,0x26,0xa0,0x05,0xa5,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x40,0x00,0x08,0x43,0x48,0x26,0xa4,0x05,0xa5,0x00,0x00,0x00,0x00,0x00,
0x33,0x00,0x60,0x0c,0x14,0x10,0x03,0x00,0xa1,0x26,0x00,0x00,0x00,0x00,0x00,0x00,
0x40,0x00,0x00,0x00,0x04,0x02,0x00,0x22,0x34,0x00,0x00,0x06,0x00,0x80,0x0a,0x02,
0x33,0x00,0x60,0x0c,0x14,0x20,0x03,0x00,0xa1,0x26,0x00,0x00,0x00,0x00,0x00,0x00,
0x31,0x00,0x60,0x07,0x04,0x4a,0x00,0x20,0xe0,0x0f,0x00,0x06,0x10,0x00,0x00,0x82
};
|
yunionio/onecloud-resource-operator
|
vendor/yunion.io/x/onecloud/pkg/apis/cloudprovider/zz_generated.model.go
|
// 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.
// Code generated by model-api-gen. DO NOT EDIT.
package cloudprovider
// SGeographicInfo is an autogenerated struct via yunion.io/x/onecloud/pkg/cloudprovider.SGeographicInfo.
type SGeographicInfo struct {
// 纬度
// example: 26.647003
Latitude float32 `json:"latitude"`
// 经度
// example: 106.630211
Longitude float32 `json:"longitude"`
// 城市
// example: Guiyang
City string `json:"city"`
// 国家代码
// example: CN
CountryCode string `json:"country_code"`
}
|
LaurentPlagne/Legolas
|
Legolas/Matrix/tst/MatrixShapeTest/MatrixShapeTest.cxx
|
<filename>Legolas/Matrix/tst/MatrixShapeTest/MatrixShapeTest.cxx<gh_stars>0
/**
* project DESCARTES
*
* @file DenseMatrixTest.cxx
*
* @author <NAME>
* @date september 2005
*
* @par Modifications
* - author date object
*
* (c) Copyright EDF R&D - CEA 2001-2005
*/
# include <cstdlib>
# include <cmath>
# include <iostream>
# include "UTILITES.hxx"
# include "Legolas/Vector/Vector.hxx"
# include "Legolas/Matrix/MatrixOptions/InputMatrixOptions.hxx"
# include "Legolas/Matrix/RealElement/RealElementInterface.hxx"
# include "Legolas/Matrix/MatrixInterface/GenericMatrixInterface.hxx"
# include "Legolas/Matrix/MatrixVectorOperations.hxx"
# include "AMatrixDefinition.hxx"
# include <vector>
using namespace std; using namespace Legolas;
using namespace Legolas;
int main( int argc, char *argv[] )
{
Legolas::MatrixShape<2>::Shape rowShape(3,2);
Legolas::MatrixShape<2>::Shape colShape(2,3);
Legolas::MatrixShape<2> matrixShape(rowShape,colShape);
INFOS("matrixShape="<<matrixShape);
Legolas::VirtualMatrixShape & vms=matrixShape;
INFOS("vms.nrows()="<<vms.nrows());
INFOS("vms.ncols()="<<vms.ncols());
Legolas::VirtualMatrixShape * vms00Ptr=matrixShape.getSubMatrixShapePtr(0,0);
Legolas::VirtualMatrixShape & vms00=*vms00Ptr;
INFOS("vms00.nrows()="<<vms00.nrows());
INFOS("vms00.ncols()="<<vms00.ncols());
delete vms00Ptr ;
// const Legolas::MatrixShape<1> & ms00=static_cast<const Legolas::MatrixShape<1> &>(vms00);
// INFOS("ms00="<<ms00);
}
|
wkalt/puppet
|
acceptance/tests/resource/zpool/basic_tests.rb
|
<reponame>wkalt/puppet<filename>acceptance/tests/resource/zpool/basic_tests.rb
test_name "ZPool: configuration"
confine :to, :platform => 'solaris'
require 'puppet/acceptance/solaris_util'
extend Puppet::Acceptance::ZPoolUtils
teardown do
step "ZPool: cleanup"
agents.each do |agent|
clean agent
end
end
agents.each do |agent|
step "ZPool: setup"
setup agent
#-----------------------------------
step "ZPool: ensure create"
apply_manifest_on(agent, "zpool{ tstpool: ensure=>present, disk=>'/ztstpool/dsk1' }") do
assert_match( /ensure: created/, result.stdout, "err: #{agent}")
end
step "ZPool: idempotency - create"
apply_manifest_on(agent, "zpool{ tstpool: ensure=>present, disk=>'/ztstpool/dsk1' }") do
assert_no_match( /ensure: created/, result.stdout, "err: #{agent}")
end
step "ZPool: remove"
apply_manifest_on(agent, "zpool{ tstpool: ensure=>absent }") do
assert_match( /ensure: removed/ , result.stdout, "err: #{agent}")
end
step "ZPool: disk array"
apply_manifest_on(agent, "zpool{ tstpool: ensure=>present, disk=>['/ztstpool/dsk1','/ztstpool/dsk2'] }") do
assert_match( /ensure: created/ , result.stdout, "err: #{agent}")
end
step "ZPool: disk array: verify"
on agent, "zpool list -H" do
assert_match( /tstpool/ , result.stdout, "err: #{agent}")
end
step "ZPool: disk array: verify with puppet"
on agent, "puppet resource zpool tstpool" do
assert_match(/ensure => 'present'/, result.stdout, "err: #{agent}")
assert_match(/disk +=> .'.+dsk1 .+dsk2'./, result.stdout, "err: #{agent}")
end
step "ZPool: remove again for mirror tests"
apply_manifest_on(agent, "zpool{ tstpool: ensure=>absent }") do
assert_match( /ensure: removed/ , result.stdout, "err: #{agent}")
end
step "ZPool: mirror: ensure can create"
apply_manifest_on(agent, "zpool{ tstpool: ensure=>present, mirror=>['/ztstpool/dsk1','/ztstpool/dsk2', '/ztstpool/dsk3'] }") do
assert_match( /ensure: created/ , result.stdout, "err: #{agent}")
end
step "ZPool: mirror: ensure can create: verify"
on agent, "zpool status -v tstpool" do
assert_match( /tstpool/ , result.stdout, "err: #{agent}")
assert_match( /mirror/ , result.stdout, "err: #{agent}")
end
step "ZPool: mirror: ensure can create: vefify (puppet)"
on agent, "puppet resource zpool tstpool" do
assert_match(/ensure => 'present'/, result.stdout, "err: #{agent}")
assert_match(/mirror => .'.+dsk1 .+dsk2 .+dsk3'./, result.stdout, "err: #{agent}")
end
step "ZPool: remove for raidz test)"
apply_manifest_on(agent,"zpool{ tstpool: ensure=>absent }") do
assert_match(/ensure: removed/, result.stdout, "err: #{agent}")
end
step "ZPool: raidz: ensure can create"
apply_manifest_on(agent, "zpool{ tstpool: ensure=>present, raidz=>['/ztstpool/dsk1','/ztstpool/dsk2', '/ztstpool/dsk3'] }") do
assert_match( /ensure: created/ , result.stdout, "err: #{agent}")
end
step "ZPool: raidz: ensure can create: verify"
on agent, "zpool status -v tstpool" do
assert_match( /tstpool/ , result.stdout, "err: #{agent}")
assert_match( /raidz/ , result.stdout, "err: #{agent}")
end
step "ZPool: raidz: ensure can create: verify (puppet)"
on agent, "puppet resource zpool tstpool" do
assert_match(/ensure => 'present'/, result.stdout, "err: #{agent}")
assert_match(/raidz +=> .'.+dsk1 .+dsk2 .+dsk3'./, result.stdout, "err: #{agent}")
end
end
|
zbowling/mojo
|
mojo/skia/ganesh_framebuffer_surface.cc
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "mojo/skia/ganesh_framebuffer_surface.h"
#include <GLES2/gl2.h>
#include "base/logging.h"
namespace mojo {
namespace skia {
GaneshFramebufferSurface::GaneshFramebufferSurface(
const GaneshContext::Scope& scope) {
GLint samples = 0;
glGetIntegerv(GL_SAMPLES, &samples);
GLint stencil_bits = 0;
glGetIntegerv(GL_STENCIL_BITS, &stencil_bits);
GLint framebuffer_binding = 0;
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &framebuffer_binding);
GLint viewport[4] = {0, 0, 0, 0};
glGetIntegerv(GL_VIEWPORT, viewport);
DCHECK(viewport[2] > 0);
DCHECK(viewport[3] > 0);
GrBackendRenderTargetDesc desc;
desc.fWidth = viewport[2];
desc.fHeight = viewport[3];
desc.fConfig = kSkia8888_GrPixelConfig;
desc.fOrigin = kBottomLeft_GrSurfaceOrigin;
desc.fSampleCnt = samples;
desc.fStencilBits = stencil_bits;
desc.fRenderTargetHandle = framebuffer_binding;
surface_ = ::skia::AdoptRef(
SkSurface::NewFromBackendRenderTarget(scope.gr_context(), desc, nullptr));
DCHECK(surface_);
}
GaneshFramebufferSurface::~GaneshFramebufferSurface() {}
} // namespace skia
} // namespace mojo
|
depayapp/depay-widget
|
cypress/e2e/Donation/providers.js
|
import DePayWidgets from '../../../src'
import React from 'react'
import ReactDOM from 'react-dom'
import { provider } from '@depay/web3-client'
describe('Donation Widget: providers', () => {
it('allows to set RPC providers to use', ()=> {
cy.visit('cypress/test.html').then((contentWindow) => {
cy.document().then((document)=>{
DePayWidgets.Donation({ document,
providers: {
ethereum: ['http://localhost:8545'],
bsc: ['http://localhost:8545']
},
accept:[{
blockchain: 'ethereum',
token: '0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb',
receiver: '0x4e260bB2b25EC6F3A59B478fCDe5eD5B8D783B02'
}]
})
cy.wait(200).then(()=>{
expect(provider('ethereum').connection.url).to.equal('http://localhost:8545')
expect(provider('bsc').connection.url).to.equal('http://localhost:8545')
})
})
})
})
})
|
Akirix/akirix-suite
|
uber-app/app/models/commission-payment.js
|
import DS from 'ember-data';
var locale = new Globalize( navigator.language );
export default DS.Model.extend( {
affiliate_id: DS.attr(),
currency_id: DS.attr(),
uber_user_id: DS.attr(),
status: DS.attr(),
amount: DS.attr(),
payout_date: DS.attr(),
uberUser: DS.belongsTo( 'uber-user', { async: true } ),
affiliate: DS.belongsTo( 'company', { async: true } ),
commissionPaymentItems: DS.hasMany( 'commission-payment-items', { async: true } ),
currency: DS.belongsTo( 'currency', { async: true } ),
str_period_from: function(){
return moment( this.get( 'period_from' ) ).utc().format( 'MM/DD/YYYY' );
}.property( 'period_from' ),
str_period_to: function(){
return moment( this.get( 'period_to' ) ).utc().format( 'MM/DD/YYYY' );
}.property( 'period_to' ),
str_payout_date: function(){
return moment( this.get( 'payout_date' ) ).utc().format( 'MM/DD/YYYY' );
}.property( 'payout_date' ),
str_amount: function(){
return locale.format( Number( this.get( 'amount' ) ), 'n2' );
}.property( 'amount' )
} );
|
alexvonduar/gtec-demo-framework
|
.Config/FslBuildGen/Generator/CMakeGeneratorUtil.py
|
#!/usr/bin/env python3
#****************************************************************************************************************************************************
# Copyright (c) 2016 Freescale Semiconductor, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# * Neither the name of the Freescale Semiconductor, Inc. nor the names of
# its contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#****************************************************************************************************************************************************
from typing import Dict
from typing import List
from typing import Optional
from typing import Set
from typing import Tuple
from typing import Union
from enum import Enum
from FslBuildGen import IOUtil
from FslBuildGen import ToolSharedValues
from FslBuildGen import Util
from FslBuildGen.BuildContent.PathRecord import PathRecord
from FslBuildGen.Config import Config
from FslBuildGen.DataTypes import AccessType
from FslBuildGen.DataTypes import ExternalDependencyType
from FslBuildGen.DataTypes import PackageType
from FslBuildGen.DataTypes import SpecialFiles
from FslBuildGen.DataTypes import VariantType
from FslBuildGen.LibUtil import LibUtil
from FslBuildGen.Log import Log
from FslBuildGen.Packages.Package import Package
from FslBuildGen.Packages.Package import PackageDefine
from FslBuildGen.Packages.Package import PackageExternalDependency
from FslBuildGen.Packages.PackagePlatformExternalDependency import PackagePlatformExternalDependency
from FslBuildGen.Packages.PackageProjectContext import PackageProjectContext
from FslBuildGen.ToolConfigProjectContext import ToolConfigProjectContext
from FslBuildGen.ToolConfig import ToolConfig
class CMakeVariableType(Enum):
Normal = 0
Environment = 1
class CMakePathType(Enum):
LocalRelative = 0
# relative to a specific root
Relative = 1
# absolute path (not supported by cmake)
# Absolute = 2
# This file is used to make the executables dependent on the 'content' + 'content building' in a way that doesnt confuse cmake
# into thinking that content like the .obj mesh format is a object file
_CONTENT_DEP_FILENAME = "${CMAKE_CURRENT_BINARY_DIR}/content_deps.txt"
# Status
# - External libs with special debug libraries are not handled
# - Content is not located corectly in VS since the 'current work directory' is 'wrong'
# - Variants are not handled
# - Build content is not done
# - FslBuild things dont work
# - Using the 'root' CMakeLists.txt is kind of a 'work around' to allow us to re-use libraries
# It would have been better to have a unique build file for each package with its own 'build' dir
# However that would be more complex to implement and might make it impossible to have 'all'
# package dependencies added as sub-projects in the IDE.
# - Install target does not work due to the way external libs are handled :(
# - Android content sync is not implemented
# - Platform dependent defines can not be specified (its all or nothing at the moment)
# - Version tags and handling?
class CodeTemplateCMake(object):
def __init__(self, sdkConfigTemplatePath: str, strTemplatePath: str, overrideDirName: str, hasManifest: bool, overrideTemplateName: Optional[str]) -> None:
super().__init__()
self.TemplatePath = strTemplatePath
self.AbsoluteTemplatePath = IOUtil.Join(sdkConfigTemplatePath, strTemplatePath)
self.__OverrideDirName = overrideDirName
self.__OverrideTemplateName = IOUtil.Join(sdkConfigTemplatePath, overrideTemplateName) if overrideTemplateName is not None else None
self.Master = self.__ReadFile("CMakeLists.txt")
self.PackageCompilerConditional = self.__ReadOptionalFile("Package_CompilerConditional.txt", "")
self.PackageTargetIncludeDirectories = self.__ReadFile("Package_TargetIncludeDirectories.txt")
self.PackageTargetIncludeDirEntry = self.__ReadFile("Package_TargetIncludeDirEntry.txt")
self.PackageTargetIncludeDirVirtualEntry = self.__ReadFile("Package_TargetIncludeDirEntry_Virtual.txt")
self.PackageTargetSourceFiles = self.__ReadOptionalFile("Package_TargetSourceFiles.txt", "")
self.PackageTargetSpecialFileNatvis = self.__ReadOptionalFile("Package_TargetSpecialFile_Natvis.txt", "")
self.PackageDependencyAddSubdirectories = self.__ReadFile("PackageDependency_add_subdirectories.txt")
self.PackageDependencyTargetLinkLibraries = self.__ReadFile("PackageDependency_target_link_libraries.txt")
self.PackageDependencyTargetCompileDefinitions = self.__ReadFile("PackageDependency_target_compile_definitions.txt")
self.PackageDependencyFindPackage = self.__ReadFile("PackageDependency_find_package.txt")
self.SnippetTargetCompileOptionsDefault = self.__ReadFile("Snippet_TargetCompileOptions_Default.txt")
self.SnippetTargetCompileFeaturesDefault = self.__ReadFile("Snippet_TargetCompileFeatures_Default.txt")
self.SnippetTargetCompileFeaturesInterface = self.__ReadFile("Snippet_TargetCompileFeatures_Interface.txt")
self.AddImportedLibrary = self.__ReadFile("AddImportedLibrary.txt")
self.PackageInstall = self.__ReadFile("PackageInstall.txt")
self.PackageInstallAppInfo = self.__ReadOptionalFile("PackageInstall_AppInfo.txt", "")
self.PackageInstallContent = self.__ReadOptionalFile("PackageInstall_Content.txt", "")
self.PackageInstallDLL = self.__ReadOptionalFile("PackageInstall_DLL.txt", "")
self.PackageInstallHeaders = self.__ReadFile("PackageInstall_Headers.txt")
self.PackageInstallTargets = self.__ReadFile("PackageInstall_Targets.txt")
self.PackageTargetIncludeDirectories = self.__ReadFile("Package_TargetIncludeDirectories.txt")
self.PackageTargetCopyFile = self.__ReadOptionalFile("PackageDependency_target_copy_file.txt", "")
self.PackageTargetCopyFilePath = self.__ReadOptionalFile("PackageDependency_target_copy_file_path.txt", "")
self.PackageContentBuilder = self.__ReadOptionalFile("Package_ContentBuilder.txt", "")
self.PackageContent = self.__ReadOptionalFile("Package_Content.txt", "")
self.PackageContentFile = self.__ReadOptionalFile("Package_Content_File.txt", "")
self.PackageContentDep = self.__ReadOptionalFile("Package_ContentDep.txt", "")
self.PathEnvToVariable = self.__ReadOptionalFile("PathEnvToVariable.txt", "")
self.AddExtendedPackage = self.__ReadOptionalFile("AddExtendedPackage.txt", "")
self.PackageVariantSettings = self.__ReadOptionalFile("PackageVariantSettings.txt", "")
self.SnippetCommonHeader = self.__ReadOptionalFile("Snippet_CommonHeader.txt", "")
self.SnippetCommonModules = self.__ReadOptionalFile("Snippet_CommonModules.txt", "")
self.SnippetOptionsEXE = self.__ReadOptionalFile("Snippet_Options_EXE.txt", "")
self.SnippetOptionsLIB = self.__ReadOptionalFile("Snippet_Options_LIB.txt", "")
self.SnippetCacheVariant = self.__ReadOptionalFile("Snippet_Cache_Variant.txt", "")
self.SnippetProjectPreventSourceBuilds = self.__ReadOptionalFile("Snippet_ProjectPreventSourceBuilds.txt", "")
self.PackageCompilerFileDict = self.__BuildCompilerFileDict(IOUtil.Join(self.AbsoluteTemplatePath, overrideDirName))
def __ReadFile(self, filename: str) -> str:
if self.__OverrideTemplateName is not None:
res = self.__TryDoReadFile(self.__OverrideTemplateName, self.__OverrideDirName, filename)
if res is not None:
return res
return self.__DoReadFile(self.AbsoluteTemplatePath, self.__OverrideDirName, filename)
def __ReadOptionalFile(self, filename: str, defaultValue:str) -> str:
if self.__OverrideTemplateName is not None:
res = self.__TryDoReadFile(self.__OverrideTemplateName, self.__OverrideDirName, filename)
if res is not None:
return res
return self.__DoReadOptionalFile(self.AbsoluteTemplatePath, self.__OverrideDirName, filename, defaultValue)
def __DoReadOptionalFile(self, absoluteTemplatePath: str, overrideDirName: str, filename: str, defaultValue:str) -> str:
"""
Read a file, if not found return the defaultValue
"""
res = self.__TryDoReadFile(absoluteTemplatePath, overrideDirName, filename)
return res if res is not None else defaultValue
def __DoReadFile(self, absoluteTemplatePath: str, overrideDirName: str, filename: str) -> str:
templateFilename = IOUtil.Join(absoluteTemplatePath, "{0}/{1}".format(overrideDirName, filename))
res = IOUtil.TryReadFile(templateFilename)
if res is None:
templateFilename = IOUtil.Join(absoluteTemplatePath, filename)
res = IOUtil.ReadFile(templateFilename)
return res
def __TryDoReadFile(self, absoluteTemplatePath: str, overrideDirName: str, filename: str) -> Optional[str]:
"""
Try to read a file from the override path, if its not found there try to read it from the base path,
return None if not found
"""
templateFilename = IOUtil.Join(absoluteTemplatePath, "{0}/{1}".format(overrideDirName, filename))
res = IOUtil.TryReadFile(templateFilename)
if res is None:
templateFilename = IOUtil.Join(absoluteTemplatePath, filename)
res = IOUtil.TryReadFile(templateFilename)
return res
def __BuildCompilerFileDict(self, basePath: str) -> Dict[str, List[str]]:
compilerDependentFilePath = IOUtil.Join(basePath, "CompilerId")
if not IOUtil.IsDirectory(compilerDependentFilePath):
return dict()
foundDirs = IOUtil.GetDirectoriesAt(compilerDependentFilePath, False)
if len(foundDirs) <= 0:
return dict()
result = dict() # type: Dict[str, List[str]]
for dirName in foundDirs:
absDirName = IOUtil.Join(compilerDependentFilePath, dirName)
foundFiles = IOUtil.GetFilesAt(absDirName, True)
if len(foundFiles) > 0:
result[dirName] = foundFiles
return result
def GetSDKBasedPath(toolConfig: ToolConfig, path: str) -> str:
return Util.ChangeToCMakeEnvVariables(toolConfig.ToPath(path))
def GetSDKBasedPathUsingCMakeVariable(toolConfig: ToolConfig, path: str) -> str:
return Util.ChangeToCMakeVariables(toolConfig.ToPath(path))
def GetPackageSDKBasedPathUsingCMakeVariable(toolConfig: ToolConfig, package: Package, packageRelativeFilePath: str) -> str:
if package.AbsolutePath is None:
raise Exception("Invalid package")
return GetSDKBasedPathUsingCMakeVariable(toolConfig, IOUtil.Join(package.AbsolutePath, packageRelativeFilePath))
#def GetRelativePath(rootPath: str, path: str) -> str:
# if not rootPath or not path:
# raise Exception("rootPath or root can not be None")
# if not path.startswith(rootPath):
# raise Exception("Path not a part of the root path")
# return path[len(rootPath)+1:]
def GetAccessTypeString(package: Package, accessType: AccessType, allowPrivate: bool = True) -> str:
if not package.IsVirtual:
if accessType == AccessType.Public or not allowPrivate:
return "PUBLIC"
return "PRIVATE"
#return "INTERFACE" // unfortunately there don't seem to be a mapping that corresponds to "Link" in cmake
else:
if accessType == AccessType.Public:
return "INTERFACE"
#raise Exception("Not supported")
return "INTERFACE"
def GetPackageName(package: Package) -> str:
name = package.Name
if len(package.ResolvedVariantNameHint) > 0:
name += package.ResolvedVariantNameHint
return name if not package.IsVirtual or package.Type == PackageType.HeaderLibrary else ("_Virtual_{0}".format(name))
def GetPackageShortName(package: Package) -> str:
return package.NameInfo.ShortName.Value if not package.IsVirtual else ("_Virtual_{0}".format(package.NameInfo.ShortName.Value))
def GetAliasPackageName(package: Package) -> str:
return GetAliasName(GetPackageName(package), package.ProjectContext.ProjectName)
def GetAliasName(name: str, projectName: str) -> str:
return "{0}::{1}".format(projectName, name)
def GetFullyQualifiedPackageName(package: Package) -> str:
return GetAliasPackageName(package)
def BuildFindDirectExternalDependencies(log: Log, package: Package, templatePackageDependencyFindPackage: str) -> str:
externalDeps = [] # type: List[PackageExternalDependency]
for externalDep in package.ResolvedDirectExternalDependencies:
if externalDep.Type == ExternalDependencyType.CMakeFindLegacy or externalDep.Type == ExternalDependencyType.CMakeFindModern:
externalDeps.append(externalDep)
if len(externalDeps) <= 0:
return ""
snippet = templatePackageDependencyFindPackage
content = ""
for externalDep in externalDeps:
strVersion = " {0}".format(externalDep.Version) if externalDep.Version is not None else ""
findParams = "{0}{1} REQUIRED".format(externalDep.Name, strVersion)
contentEntry = snippet
contentEntry = contentEntry.replace("##FIND_PARAMS##", findParams)
content += contentEntry
return content
def GetVersion(package: Package) -> str:
return package.ProjectContext.ProjectVersion
def _FindPackageDirectDependencyPackage(package: Package, templatePackageDependencyFindPackage: str) -> str:
findParams = "{0} {1}".format(GetFullyQualifiedPackageName(package), GetVersion(package))
return templatePackageDependencyFindPackage.replace("##FIND_PARAMS##", findParams)
def __BuildTargetLinkLibrariesForDirectExternalDependencies(log: Log, package: Package,
resolvedDirectExternalDependencies: Union[List[PackageExternalDependency], List[PackagePlatformExternalDependency]],
ignoreLibs: Optional[List[str]] = None) -> str:
if ignoreLibs is None:
ignoreLibs = []
isExternalLibrary = package.Type == PackageType.ExternalLibrary
deps = ""
for entry in resolvedDirectExternalDependencies:
libraryName = LibUtil.ToUnixLibName(entry.Name)
if libraryName not in ignoreLibs:
if entry.Type == ExternalDependencyType.StaticLib or (entry.Type == ExternalDependencyType.DLL and entry.Name.lower().endswith(".so")):
location = entry.Location if entry.Location is not None and (entry.IsManaged or not isExternalLibrary) else ""
libraryName = libraryName if len(location) <= 0 else entry.Name
fullPathLinkDir = Util.ChangeToCMakeEnvVariables(IOUtil.Join(location, libraryName))
if entry.DebugName != entry.Name:
deps += "\n {0} optimized {1}".format(GetAccessTypeString(package, entry.Access, False), fullPathLinkDir)
libraryName = LibUtil.ToUnixLibName(entry.DebugName)
fullPathLinkDir = Util.ChangeToCMakeEnvVariables(IOUtil.Join(location, libraryName))
deps += "\n {0} debug {1}".format(GetAccessTypeString(package, entry.Access, False), fullPathLinkDir)
else:
deps += "\n {0} {1}".format(GetAccessTypeString(package, entry.Access, False), fullPathLinkDir)
if entry.Type == ExternalDependencyType.CMakeFindLegacy:
linkName = "${{{0}_LIBRARY}}".format(libraryName)
deps += "\n {0} {1}".format(GetAccessTypeString(package, entry.Access, False), linkName)
elif entry.Type == ExternalDependencyType.CMakeFindModern:
deps += "\n {0} {1}".format(GetAccessTypeString(package, entry.Access, False), entry.TargetName)
else:
log.LogPrintVerbose(2, "INFO: Force ignored '{0}'".format(libraryName))
return deps
def BuildTargetLinkLibrariesForDirectDependencies(log: Log,
package: Package,
templatePackageDependencyTargetLinkLibraries: str,
templatePackageDependencyFindPackage: str,
ignoreLibs: Optional[List[str]] = None) -> str:
if package.ResolvedDirectDependencies is None:
raise Exception("Invalid package")
deps = ""
findDeps = ""
for entry1 in package.ResolvedDirectDependencies:
if entry1.Package.Type != PackageType.ToolRecipe:
deps += "\n {0} {1}".format(GetAccessTypeString(package, entry1.Access, True), GetFullyQualifiedPackageName(entry1.Package))
# deps += "\n {0} {1}".format(GetAccessTypeString(package, entry1.Access), GetAliasPackageName(entry1.Package))
findDeps += "\n{0}".format(_FindPackageDirectDependencyPackage(entry1.Package, templatePackageDependencyFindPackage))
deps += __BuildTargetLinkLibrariesForDirectExternalDependencies(log, package, package.ResolvedDirectExternalDependencies, ignoreLibs)
if len(deps) <= 0:
return ""
content = templatePackageDependencyTargetLinkLibraries
content = content.replace("##PACKAGE_DIRECT_DEPENDENCIES##", deps)
content = content.replace("##PACKAGE_FINDDIRECT_DEPENDENCIES##", findDeps)
return content
def __BuildDefinitions(package: Package, directDefines: List[PackageDefine], templatePackageDependencyTargetCompileDefinitions: str) -> str:
if len(directDefines) <= 0:
return ""
snippet = templatePackageDependencyTargetCompileDefinitions
content = ""
for entry in directDefines:
content += "\n {0}\n {1}".format(GetAccessTypeString(package, entry.Access), entry.Name)
return snippet.replace("##PACKAGE_COMPILE_DEFINITIONS##", content)
def BuildDirectDefinitions(log: Log, package: Package, templatePackageDependencyTargetCompileDefinitions: str, extraDefines: Optional[List[PackageDefine]]=None) -> str:
if package.ResolvedBuildDirectDefines is None:
raise Exception("Invalid package")
directDefines = package.ResolvedBuildDirectDefines
if extraDefines is not None:
directDefines += extraDefines
return __BuildDefinitions(package, package.ResolvedBuildDirectDefines, templatePackageDependencyTargetCompileDefinitions)
def __GenerateDirEntryString(access: str, incPath: str, templatePackageTargetIncludeDirEntry: str) -> str:
content = templatePackageTargetIncludeDirEntry
content = content.replace("##DIR_ACCESS##", access)
content = content.replace("##DIR_PATH##", incPath)
return content
def __GetPackageIncludePath(toolConfig: ToolConfig, package: Package, absPathInsidePackage: str, pathType: CMakePathType) -> str:
if pathType == CMakePathType.LocalRelative:
#if package.AbsolutePath is None:
# raise Exception("Invalid package")
#if absPathInsidePackage.startswith(package.AbsolutePath + '/'):
# lenAbsPath = len(package.AbsolutePath)
# return absPathInsidePackage[lenAbsPath+1:]
#return IOUtil.RelativePath(absPathInsidePackage, package.AbsolutePath)
return GetSDKBasedPathUsingCMakeVariable(toolConfig, absPathInsidePackage)
elif pathType == CMakePathType.Relative:
return GetSDKBasedPathUsingCMakeVariable(toolConfig, absPathInsidePackage)
raise Exception("Unsupported path type")
def __TryTargetIncludeDirectoriesGetExternalDependencyString(toolConfig: ToolConfig, package: Package,
directExternalDeps: Union[PackageExternalDependency, PackagePlatformExternalDependency],
templatePackageTargetIncludeDirEntry: str,
templatePackageTargetIncludeDirVirtualEntry: str, pathType: CMakePathType) -> Optional[str]:
add = None # type: Optional[str]
relativeCurrentIncDir = None # type: Optional[str]
if directExternalDeps.Type != ExternalDependencyType.CMakeFindLegacy:
currentIncDir = directExternalDeps.Include
if currentIncDir is not None:
if package.AbsolutePath is None:
raise Exception("Invalid package")
packageRootPath = toolConfig.ToPath(package.AbsolutePath)
if currentIncDir.startswith(packageRootPath):
relativeCurrentIncDir = currentIncDir[len(packageRootPath)+1:] if pathType == CMakePathType.LocalRelative else Util.ChangeToCMakeVariables(currentIncDir)
add = "\n" + __GenerateDirEntryString(GetAccessTypeString(package, directExternalDeps.Access), relativeCurrentIncDir, templatePackageTargetIncludeDirEntry)
else:
currentTemplate = templatePackageTargetIncludeDirEntry
relativeCurrentIncDir = toolConfig.TryToPath(currentIncDir)
if relativeCurrentIncDir is None:
relativeCurrentIncDir = currentIncDir
if pathType != CMakePathType.LocalRelative:
relativeCurrentIncDir = Util.ChangeToCMakeVariables(relativeCurrentIncDir)
else:
relativeCurrentIncDir = Util.ChangeToCMakeEnvVariables(relativeCurrentIncDir)
currentTemplate = templatePackageTargetIncludeDirVirtualEntry
add = "\n" + __GenerateDirEntryString(GetAccessTypeString(package, directExternalDeps.Access), relativeCurrentIncDir, currentTemplate)
else:
add = "\n %s ${%s_INCLUDE_DIRS}" % (GetAccessTypeString(package, directExternalDeps.Access), directExternalDeps.Name)
return add
def BuildTargetIncludeDirectories(toolConfig: ToolConfig, package: Package,
templatePackageTargetIncludeDirectories: str,
templatePackageTargetIncludeDirEntry: str,
templatePackageTargetIncludeDirVirtualEntry: str,
pathType: CMakePathType) -> str:
#isExternalLibrary = package.Type == PackageType.ExternalLibrary
publicIncludeDir = ""
if package.AbsoluteIncludePath is not None:
pubIncPath = __GetPackageIncludePath(toolConfig, package, package.AbsoluteIncludePath, pathType)
accessString = "PUBLIC" if not package.IsVirtual else "INTERFACE"
publicIncludeDir = "\n" + __GenerateDirEntryString(accessString, pubIncPath, templatePackageTargetIncludeDirEntry)
privateIncludeDir = ""
if package.AbsoluteSourcePath is not None:
priIncPath = __GetPackageIncludePath(toolConfig, package, package.AbsoluteSourcePath, pathType)
accessString = "PRIVATE" if not package.IsVirtual else "INTERFACE"
privateIncludeDir = "\n" + __GenerateDirEntryString(accessString, priIncPath, templatePackageTargetIncludeDirEntry)
for privEntry in package.ResolvedBuildDirectPrivateIncludeDirs:
priIncPath = __GetPackageIncludePath(toolConfig, package, privEntry.ResolvedPath, pathType)
accessString = "PRIVATE" if not package.IsVirtual else "INTERFACE"
privateIncludeDir += "\n" + __GenerateDirEntryString(accessString, priIncPath, templatePackageTargetIncludeDirEntry)
for directExternalDeps in package.ResolvedDirectExternalDependencies:
add = __TryTargetIncludeDirectoriesGetExternalDependencyString(toolConfig, package, directExternalDeps,
templatePackageTargetIncludeDirEntry, templatePackageTargetIncludeDirVirtualEntry,
pathType)
if add is not None:
if directExternalDeps.Access == AccessType.Public:
publicIncludeDir += add
else:
privateIncludeDir += add
#for variant in package.ResolvedAllVariantDict
for variant in package.ResolvedDirectVariants:
if variant.Type == VariantType.Virtual:
if len(variant.Options) != 1:
raise Exception("VirtualVariant has unsupported amount of options")
for variantDirectExternalDeps in variant.Options[0].ExternalDependencies:
add = __TryTargetIncludeDirectoriesGetExternalDependencyString(toolConfig, package, variantDirectExternalDeps,
templatePackageTargetIncludeDirEntry,
templatePackageTargetIncludeDirVirtualEntry,
pathType)
if add is not None:
if variantDirectExternalDeps.Access == AccessType.Public:
publicIncludeDir += add
else:
privateIncludeDir += add
if len(publicIncludeDir) <= 0 and len(privateIncludeDir) <= 0:
return ""
content = templatePackageTargetIncludeDirectories
content = content.replace("##PACKAGE_PUBLIC_INCLUDE_DIRECTORIES##", publicIncludeDir)
content = content.replace("##PACKAGE_PRIVATE_INCLUDE_DIRECTORIES##", privateIncludeDir)
return content
def BuildInstallInstructions(log: Log, package: Package, templateInstallInstructions: str,
templateInstallInstructionsTargets: str,
templateInstallInstructionsHeaders: str,
templateInstallInstructionsContent: str,
templateInstallInstructionsDLL: str,
templateInstallInstructionsAppInfo: str) -> str:
hasIncludeDirectory = package.ResolvedBuildPublicIncludeFiles is not None and len(package.ResolvedBuildPublicIncludeFiles) > 0
installTargets = templateInstallInstructionsTargets
includeHeadersContent = ""
if (package.Type == PackageType.Library or package.Type == PackageType.HeaderLibrary) and hasIncludeDirectory:
includeHeadersContent = templateInstallInstructionsHeaders
includeHeadersContent = includeHeadersContent.replace("##PACKAGE_INCLUDE_DIRECTORY##", package.BaseIncludePath)
installContent = ""
installDLL = ""
installAppInfo = ""
targetInstallDir = ""
if (package.Type == PackageType.Executable):
# Content
if package.ContentPath is not None and (len(package.ResolvedContentFiles) > 0 or len(package.ResolvedContentBuilderAllOutputFiles) > 0):
packageContentFolderName = IOUtil.GetFileName(package.ContentPath.AbsoluteDirPath)
installContent = templateInstallInstructionsContent
installContent = installContent.replace("##PACKAGE_CONTENT_DIR##", packageContentFolderName)
installContent = "\n" + installContent
# Windows DLL's
files = _GetDLLFileList(package)
if len(files) > 0:
installDLL = templateInstallInstructionsDLL
installDLL = installDLL.replace("##FILES##", "\n " + "\n ".join(files))
installDLL = "\n" + installDLL
# App info
installAppInfo = templateInstallInstructionsAppInfo
installAppInfo = "\n" + installAppInfo
# target install dir
targetInstallDir = "/" + package.Name.replace('.', '/')
content = templateInstallInstructions
content = content.replace("##PACKAGE_INSTALL_TARGETS##", installTargets)
content = content.replace("##PACKAGE_INSTALL_HEADERS##", includeHeadersContent)
content = content.replace("##PACKAGE_INSTALL_CONTENT##", installContent)
content = content.replace("##PACKAGE_INSTALL_DLL##", installDLL)
content = content.replace("##PACKAGE_INSTALL_APPINFO##", installAppInfo)
content = content.replace("##PACKAGE_TARGET_INSTALL_PATH##", targetInstallDir)
return content
def BuildCompileFeatures(log: Log, package: Package, templateTargetCompileFeaturesDefault: str, templateTargetCompileFeaturesInterface: str) -> str:
if package.IsVirtual:
return templateTargetCompileFeaturesInterface if package.Type == PackageType.HeaderLibrary else ""
return templateTargetCompileFeaturesDefault
def BuildCompileOptions(log: Log, package: Package, templateTargetCompileOptionsDefault: str) -> str:
return templateTargetCompileOptionsDefault
def _BuildDLLDepsDict(package: Package) -> Dict[str, PackageExternalDependency]:
deps = dict() #type: Dict[str, PackageExternalDependency]
for depPackage in package.ResolvedBuildOrder:
for directExternalDeps in depPackage.ResolvedDirectExternalDependencies:
if directExternalDeps.Type == ExternalDependencyType.DLL and directExternalDeps.Location is not None:
if directExternalDeps.Name not in deps:
deps[directExternalDeps.Name] = directExternalDeps
return deps
def _GetDLLFileList(package: Package) -> List[str]:
dllFiles = []
deps = _BuildDLLDepsDict(package)
for dependency in deps.values():
if dependency.Location is not None:
fullPathToFile = Util.ChangeToCMakeVariables(IOUtil.Join(dependency.Location, dependency.Name))
srcFileCommand = fullPathToFile
if dependency.DebugName != dependency.Name:
fullPathToDebugFile = Util.ChangeToCMakeVariables(IOUtil.Join(dependency.Location, dependency.DebugName))
srcFileCommand = "$<$<CONFIG:debug>:{0}>$<$<CONFIG:release>:{1}>".format(fullPathToDebugFile, srcFileCommand)
dllFiles.append(srcFileCommand)
return dllFiles
def BuildFileCopy(log: Log, package: Package, templatePackageTargetCopyFile: str, templatePackageTargetCopyFilePath: str) -> str:
if package.Type != PackageType.Executable:
return ""
contentFiles = ""
dllFileList = _GetDLLFileList(package)
for srcFileCommand in dllFileList:
copyFiles = "{0} $<TARGET_FILE_DIR:{1}>".format(srcFileCommand, package.Name)
contentFile = templatePackageTargetCopyFilePath
contentFile = contentFile.replace("##COPY_PATHS##", copyFiles)
contentFiles += "\n{0}".format(contentFile)
if len(contentFiles) <= 0:
return ""
content = templatePackageTargetCopyFile
content = content.replace("##FILES##", contentFiles)
return content
def GetAllPackageNames(package: Package, projectContextFilter: Optional[PackageProjectContext]) -> List[str]:
""" Get a list of all package names used by the root cmake file """
names = [GetFullyQualifiedPackageName(package) for package in package.ResolvedBuildOrder
if (projectContextFilter is None or package.ProjectContext == projectContextFilter) and
package.Type != PackageType.ToolRecipe and package.Type != PackageType.TopLevel]
names.sort()
return names
def GetProjectContexts(package: Package) -> List[PackageProjectContext]:
contexts = set() # type: Set[PackageProjectContext]
for package in package.ResolvedBuildOrder:
if package.Type != PackageType.TopLevel and package.ProjectContext not in contexts:
contexts.add(package.ProjectContext)
return list(contexts)
def GetCacheVariants(package: Package, snippetCacheVariant: str) -> str:
res = [] # type: List[str]
for variant in package.ResolvedAllVariantDict.values():
if len(variant.Options) > 0:
variantOptions = " ".join([option.Name for option in variant.Options])
content = snippetCacheVariant
content = content.replace("##VARIANT_NAME##", variant.Name)
content = content.replace("##VARIANT_DEFAULT_OPTION##", variant.Options[0].Name)
content = content.replace("##VARIANT_OPTIONS##", variantOptions)
res.append(content)
return "\n".join(res)
def GetContentSectionOutputFileList(toolConfig: ToolConfig, package: Package, contentInBinaryDirectory: bool) -> List[str]:
if package.ResolvedPath is None or len(package.ResolvedContentFiles) <= 0:
return []
outputContentFiles = _ExtractRelativePaths(toolConfig, package.ResolvedPath.ResolvedPathEx, package.ResolvedContentFiles)
outputContentFiles.sort()
if contentInBinaryDirectory:
outputContentFiles = _MakeRelativeToCurrentBinaryDirectory(outputContentFiles)
return outputContentFiles
def GetContentBuilderOutputFileList(toolConfig: ToolConfig, package: Package, contentInBinaryDirectory: bool) -> List[str]:
if package.ResolvedPath is None or len(package.ResolvedContentBuilderAllOutputFiles) <= 0:
return []
outputContentFiles = _ExtractRelativePaths(toolConfig, package.ResolvedPath.ResolvedPathEx, package.ResolvedContentBuilderAllOutputFiles)
outputContentFiles.sort()
if contentInBinaryDirectory:
outputContentFiles = _MakeRelativeToCurrentBinaryDirectory(outputContentFiles)
return outputContentFiles
def GetContentDepOutputFile(log: Log, package: Package, contentInBinaryDirectory: bool) -> str:
if len(package.ResolvedContentFiles) <= 0 and len(package.ResolvedContentBuilderAllOutputFiles) <= 0:
return ""
return "\n " + _CONTENT_DEP_FILENAME
def _ExtractRelativePaths(toolConfig: ToolConfig, absoluteSourcePathEx: str, records: Union[List[PathRecord], List[str]], force: bool = False) -> List[str]:
res = [] # type: List[str]
for content in records:
strPath = content.ResolvedPath if isinstance(content, PathRecord) else content
if not force and strPath.startswith(absoluteSourcePathEx):
res.append(strPath[len(absoluteSourcePathEx):])
else:
res.append(GetSDKBasedPathUsingCMakeVariable(toolConfig, strPath))
return res
def _MakeRelativeToCurrentBinaryDirectory(files: List[str]) -> List[str]:
return ["${CMAKE_CURRENT_BINARY_DIR}/" + filename for filename in files]
def GetContentBuilder(toolConfig: ToolConfig, package: Package, platformName:str, snippetContentBuilder: str, contentInBinaryDirectory: bool) -> str:
if package.ResolvedContentBuilderAllInputFiles is None or len(package.ResolvedContentBuilderAllInputFiles) <= 0:
return ""
if package.ResolvedPath is None:
raise Exception("Package '{0}' is invalid as it is missing a path".format(package.Name))
targetName = package.Name
packagePath = package.ResolvedPath.ResolvedPath
featureList = ",".join([entry.Name for entry in package.ResolvedAllUsedFeatures])
inputContentFiles = _ExtractRelativePaths(toolConfig, package.ResolvedPath.ResolvedPathEx, package.ResolvedContentBuilderAllInputFiles, True)
outputContentFiles = _ExtractRelativePaths(toolConfig, package.ResolvedPath.ResolvedPathEx, package.ResolvedContentBuilderAllOutputFiles)
inputContentFiles.sort()
outputContentFiles.sort()
customArgs = ""
if contentInBinaryDirectory:
outputContentFiles = _MakeRelativeToCurrentBinaryDirectory(outputContentFiles)
customArgs = " --output ${CMAKE_CURRENT_BINARY_DIR}/" + ToolSharedValues.CONTENT_FOLDER_NAME
inputFiles = "\n ".join(inputContentFiles)
outputFiles = "\n ".join(outputContentFiles)
content = snippetContentBuilder
content = content.replace("##PLATFORM_NAME##", platformName)
content = content.replace("##PACKAGE_TARGET_NAME##", targetName)
content = content.replace("##FEATURE_LIST##", featureList)
content = content.replace("##PACKAGE_PATH##", packagePath)
content = content.replace("##PACKAGE_CONTENTBUILDER_INPUT_FILES##", inputFiles)
content = content.replace("##PACKAGE_CONTENTBUILDER_OUTPUT_FILES##", outputFiles)
content = content.replace("##CUSTOM_ARGS##", customArgs)
return "\n" + content
def GetContentSection(toolConfig: ToolConfig, package: Package, platformName:str, snippetContentSection: str, snippetContentFile: str, contentInBinaryDirectory: bool) -> str:
if not contentInBinaryDirectory or package.ResolvedContentFiles is None or len(package.ResolvedContentFiles) <= 0:
return ""
if package.ResolvedPath is None:
raise Exception("Package '{0}' is invalid as it is missing a path".format(package.Name))
targetName = package.Name
contentFiles = _ExtractRelativePaths(toolConfig, package.ResolvedPath.ResolvedPathEx, package.ResolvedContentFiles)
contentFiles.sort()
inputContentFiles = contentFiles
outputContentFiles = contentFiles
if contentInBinaryDirectory:
outputContentFiles = _MakeRelativeToCurrentBinaryDirectory(outputContentFiles)
contentCommands = [] # type: List[str]
for i in range(len(inputContentFiles)):
content = snippetContentFile
content = content.replace("##PLATFORM_NAME##", platformName)
content = content.replace("##PACKAGE_TARGET_NAME##", targetName)
content = content.replace("##RELATIVE_INPUT_FILE##", inputContentFiles[i])
content = content.replace("##INPUT_FILE##", "##PACKAGE_PATH##/{0}".format(inputContentFiles[i]))
content = content.replace("##OUTPUT_FILE##", outputContentFiles[i])
contentCommands.append(content)
contentSection = snippetContentSection
contentSection = contentSection.replace("##CONTENT_FILE_COMMANDS##", "\n".join(contentCommands))
return "\n" + contentSection
def GetContentDepSection(toolConfig: ToolConfig, package: Package, platformName:str, snippetContentSection: str, contentInBinaryDirectory: bool) -> str:
outputContentFileList = GetContentSectionOutputFileList(toolConfig, package, contentInBinaryDirectory)
outputContentBuildFileList = GetContentBuilderOutputFileList(toolConfig, package, contentInBinaryDirectory)
if len(outputContentFileList) <= 0 and len(outputContentBuildFileList) <= 0:
return ""
allContentFileList = outputContentFileList + outputContentBuildFileList
allContentFiles = "\n " + "\n ".join(allContentFileList)
content = snippetContentSection
content = content.replace("##OUTPUT_FILE##", _CONTENT_DEP_FILENAME)
content = content.replace("##INPUT_FILES##", allContentFiles)
return "\n" + content
def CompilerSpecificFileDependencies(toolConfig: ToolConfig, package: Package, snippetPackageCompilerConditional: str,
snippetPackageTargetSourceFiles: str,
packageCompilerFileDict: Dict[str, List[str]]) -> str:
if len(packageCompilerFileDict) <= 0:
return ""
targetName = package.Name
finalContent = ""
for key, conditionalFiles in packageCompilerFileDict.items():
content = [] # type: List[str]
files = [] # type: List[str]
for filename in conditionalFiles:
inputFilename = GetSDKBasedPathUsingCMakeVariable(toolConfig, filename)
outputFilename = IOUtil.GetFileName(filename)
outputFilename = outputFilename.replace("__PACKAGE_TARGET_NAME__", targetName)
content.append("configure_file({0} ${{CMAKE_CURRENT_BINARY_DIR}}/{1} COPYONLY)".format(inputFilename, outputFilename))
files.append(outputFilename)
contentTargetSource = snippetPackageTargetSourceFiles
contentTargetSource = contentTargetSource.replace("##PACKAGE_SOURCE_FILES##", "\n " + "\n ".join(files))
targetSource = contentTargetSource.split("\n")
content += targetSource
contentConfigureTargetSource = " " + "\n ".join(content)
conditionalContent = snippetPackageCompilerConditional
conditionalContent = conditionalContent.replace("##COMPILER_ID##", key)
conditionalContent = conditionalContent.replace("##CONDITIONAL_SECTION##", contentConfigureTargetSource)
finalContent += conditionalContent
return finalContent
def CreateDefineRootDirectoryEnvironmentAsVariables(toolConfig: ToolConfig, projectContext: ToolConfigProjectContext, includeParents: bool,
snippet: str, uniqueEnvironmentVariables: Set[str]) -> str:
allProjectContextRootDirs = [] # List[ToolConfigRootDirectory]
context = projectContext # type: Optional[ToolConfigProjectContext]
while context is not None:
rootDir = toolConfig.TryFindRootDirectory(context.Location.ResolvedPath)
if rootDir is None:
raise Exception("could not locate root directory")
allProjectContextRootDirs.append(rootDir)
context = context.ParentContext if includeParents else None
allUniqueEnv = set(uniqueEnvironmentVariables)
for entry in allProjectContextRootDirs:
envVarName = entry.GetEnvironmentVariableName()
if envVarName not in allUniqueEnv:
allUniqueEnv.add(envVarName)
for rootDir in toolConfig.RootDirectories:
if entry != rootDir and entry.ProjectId == rootDir.ProjectId:
envVarName = rootDir.GetEnvironmentVariableName()
if envVarName not in allUniqueEnv:
allUniqueEnv.add(envVarName)
allRootDirs = list(allUniqueEnv) # List[set]
allRootDirs.sort(key=lambda s: s.lower())
result = [] # List[str]
for envEntry in allRootDirs:
content = snippet
content = content.replace("##ENVIRONMENT_VARIABLE_NAME##", envEntry)
result.append(content)
return "\n\n".join(result)
def GetAddExtendedPackageParent(toolConfig: ToolConfig, projectContext: ToolConfigProjectContext, snippet: str) -> str:
parentContext = projectContext.ParentContext
if parentContext is None:
return ""
rootDir = toolConfig.TryFindRootDirectory(parentContext.Location.ResolvedPath)
if rootDir is None:
raise Exception("could not locate root directory")
content = snippet
content = content.replace("##PARENT_NAME##", parentContext.ProjectName)
content = content.replace("##PARENT_ROOT##", "${{{0}}}".format(rootDir.GetEnvironmentVariableName()))
return content
def GetVariantSettings(log: Log, package: Package, snippetPackageVariantSettings: str,
snippetDefine: str,
templatePackageDependencyTargetLinkLibraries: str) -> str:
if len(package.ResolvedDirectVariants) <= 0:
return ""
result = [] # type: List[str]
for variant in package.ResolvedDirectVariants:
for variantOption in variant.Options:
if len(variantOption.DirectDefines) > 0 or len(variantOption.ExternalDependencies) > 0:
variantDefines = __BuildDefinitions(package, variantOption.DirectDefines, snippetDefine)
if len(variantDefines) > 0:
variantDefines = "\n" + variantDefines
depContent = ""
variantStaticDeps = __BuildTargetLinkLibrariesForDirectExternalDependencies(log, package, variantOption.ExternalDependencies)
if len(variantStaticDeps) > 0:
findDeps = ""
depContent = templatePackageDependencyTargetLinkLibraries
depContent = depContent.replace("##PACKAGE_DIRECT_DEPENDENCIES##", variantStaticDeps)
depContent = depContent.replace("##PACKAGE_FINDDIRECT_DEPENDENCIES##", findDeps)
content = snippetPackageVariantSettings
content = content.replace("##VARIANT_NAME##", variant.Name)
content = content.replace("##VARIANT_OPTION##", variantOption.Name)
content = content.replace("##VARIANT_DEFINES##", variantDefines)
content = content.replace("##VARIANT_STATIC_DEPENDENCIES##", depContent)
result.append(content)
return "\n".join(result) + "\n"
#add_custom_command(TARGET ##PACKAGE_NAME POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy_directory
# ${CMAKE_SOURCE_DIR}/config $<TARGET_FILE_DIR:MyTarget>)
#add_custom_command(TARGET unitTests POST_BUILD
#COMMAND ${CMAKE_COMMAND} ARGS -E copy "$<$<CONFIG:debug>:${DEBUG_EXE_PATH}>$<$<CONFIG:release>:${RELEASE_EXE_PATH}>" "$<$<CONFIG:debug>:${DEBUG_NEW_EXE}>$<$<CONFIG:release>:${RELEASE_NEW_EXE}>")
def __ContainsNatvis(package: Package) -> bool:
for entry in package.ResolvedSpecialFiles:
if entry.SourcePath == SpecialFiles.Natvis:
return True
return False
def GetTargetSpecialFiles(log: Log, toolConfig: ToolConfig, package: Package, snippetPackageTargetSpecialFileNatvis: str) -> str:
if len(snippetPackageTargetSpecialFileNatvis) <= 0 or not __ContainsNatvis(package):
return ""
content = snippetPackageTargetSpecialFileNatvis
natvis = GetPackageSDKBasedPathUsingCMakeVariable(toolConfig, package, SpecialFiles.Natvis)
content = content.replace("##FULL_FILE_PATH##", natvis)
return content
def ExpandPathAndJoinList(toolConfig: ToolConfig, package: Package, srcList: Optional[List[str]]) -> List[str]:
if srcList is None or len(srcList) <= 0:
return []
if package.AbsolutePath is None:
raise Exception("Invalid package")
return [GetPackageSDKBasedPathUsingCMakeVariable(toolConfig, package, entry) for entry in srcList]
def ExpandPathAndJoin(toolConfig: ToolConfig, package: Package, srcList: Optional[List[str]]) -> str:
if srcList is None or len(srcList) <= 0:
return ""
expandedList = ExpandPathAndJoinList(toolConfig, package, srcList)
return "\n " + "\n ".join(expandedList)
def __TryExtractEnvironmentVariable(input: str) -> Optional[Tuple[str,CMakeVariableType]]:
index = input.find("$")
if index >= 0 and len(input) > (index + 3):
if input[index+1] == '{':
endIndex = input.find("}", index + 1)
if endIndex >= 0:
variableName = input[index+2:endIndex]
if len(variableName) > 0:
return (variableName, CMakeVariableType.Normal)
elif input[index+1] == '(':
endIndex = input.find(")", index + 1)
if endIndex >= 0:
variableName = input[index+2:endIndex]
if len(variableName) > 0:
return (variableName, CMakeVariableType.Environment)
return None
def ExtractUniqueVariables(packages: List[Package]) -> Tuple[Set[str], Set[str]]:
uniquePaths = set()
uniqueNormalVariables = set()
uniqueEnvironmentVariables = set()
for package in packages:
for directExternalDeps in package.ResolvedDirectExternalDependencies:
if directExternalDeps.Type == ExternalDependencyType.DLL and directExternalDeps.Location is not None:
if directExternalDeps.Location not in uniquePaths:
uniquePaths.add(directExternalDeps.Location)
extracted = __TryExtractEnvironmentVariable(directExternalDeps.Location)
if extracted is not None:
variableName, variableType = extracted
if variableType == CMakeVariableType.Normal:
if variableName not in uniqueNormalVariables:
uniqueNormalVariables.add(variableName)
elif variableType == CMakeVariableType.Environment:
if variableName not in uniqueEnvironmentVariables:
uniqueEnvironmentVariables.add(variableName)
return (uniqueNormalVariables, uniqueEnvironmentVariables)
|
JetXing/mtl-api
|
tinper-bee/bee-cascader/demo/demolist/Demo7.js
|
/**
*
* @title 不同尺寸的Cascader
* @description 通过设置`size`属性为 "lg" 和 "sm" 将输入框设置为大和小尺寸,不设置为默认(中)尺寸。
*
*/
import React, { Component } from 'react';
import { Row, Col } from 'bee-layout';
import Button from 'bee-button';
import Cascader from '../../src';
const options = [{
label: '基础组件',
value: 'jczj',
children: [{
label: '导航',
value: 'dh',
children: [{
label: '面包屑',
value: 'mbx'
},{
label: '分页',
value: 'fy'
},{
label: '标签',
value: 'bq'
},{
label: '菜单',
value: 'cd'
}]
},{
label: '反馈',
value: 'fk',
children: [{
label: '模态框',
value: 'mtk'
},{
label: '通知',
value: 'tz'
}]
},
{
label: '表单',
value: 'bd'
}]
},{
label: '应用组件',
value: 'yyzj',
children: [{
label: '参照',
value: 'ref',
children: [{
label: '树参照',
value: 'reftree'
},{
label: '表参照',
value: 'reftable'
},{
label: '穿梭参照',
value: 'reftransfer'
}]
}]
}
];
class Demo7 extends Component {
render(){
return (
<Row>
<Col md={4}>
<div className="height-150 demo7">
<Cascader size="sm" options={options} placeholder="请选择"/>
<Cascader options={options} placeholder="请选择"/>
<Cascader size="lg" options={options} placeholder="请选择"/>
</div>
</Col>
</Row>
)
}
}
export default Demo7;
|
Charmve/BLE-Security-Att-Def
|
tools/BladeRF/hdl/fpga/ip/analogdevicesinc/no_OS/include/thread.h
|
<reponame>Charmve/BLE-Security-Att-Def
#ifndef BLADERF_THREAD_H_
#define BLADERF_THREAD_H_
/* Stub out MUTEX, since we don't really use anything else pthread here */
#define MUTEX bool
#endif
|
GPUOpen-Tools/common-src-AMDTAPIClasses
|
Events/src/apTechnologyMonitorFailureEvent.cpp
|
<reponame>GPUOpen-Tools/common-src-AMDTAPIClasses
//==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file apTechnologyMonitorFailureEvent.cpp
///
//==================================================================================
//------------------------------ apTechnologyMonitorFailureEvent.cpp ------------------------------
// Infra:
#include <AMDTBaseTools/Include/gtAssert.h>
#include <AMDTOSWrappers/Include/osChannel.h>
#include <AMDTOSWrappers/Include/osChannelOperators.h>
// Local:
#include <AMDTAPIClasses/Include/Events/apTechnologyMonitorFailureEvent.h>
// ---------------------------------------------------------------------------
// Name: apTechnologyMonitorFailureEvent::apTechnologyMonitorFailureEvent
// Description: Constructor
// Author: AMD Developer Tools Team
// Date: 16/2/2014
// ---------------------------------------------------------------------------
apTechnologyMonitorFailureEvent::apTechnologyMonitorFailureEvent(const gtString& failInformation, osThreadId triggeringThreadID)
: apEvent(triggeringThreadID), m_failInformation(failInformation)
{
}
// ---------------------------------------------------------------------------
// Name: apTechnologyMonitorFailureEvent::~apTechnologyMonitorFailureEvent
// Description: Destructor
// Author: AMD Developer Tools Team
// Date: 16/2/2014
// ---------------------------------------------------------------------------
apTechnologyMonitorFailureEvent::~apTechnologyMonitorFailureEvent()
{
}
// ---------------------------------------------------------------------------
// Name: apTechnologyMonitorFailureEvent::type
// Description: Returns my transferable object type.
// Author: AMD Developer Tools Team
// Date: 16/2/2014
// ---------------------------------------------------------------------------
osTransferableObjectType apTechnologyMonitorFailureEvent::type() const
{
return OS_TOBJ_ID_TECHNOLOGY_MONITOR_FAILURE_EVENT;
}
// ---------------------------------------------------------------------------
// Name: apTechnologyMonitorFailureEvent::writeSelfIntoChannel
// Description: Writes this class data into a communication channel
// Return Val: bool - Success / failure.
// Author: AMD Developer Tools Team
// Date: 16/2/2014
// ---------------------------------------------------------------------------
bool apTechnologyMonitorFailureEvent::writeSelfIntoChannel(osChannel& ipcChannel) const
{
bool retVal = apEvent::writeSelfIntoChannel(ipcChannel);
ipcChannel << m_failInformation;
return retVal;
}
// ---------------------------------------------------------------------------
// Name: apTechnologyMonitorFailureEvent::readSelfFromChannel
// Description: Reads this class data from a communication channel
// Return Val: bool - Success / failure.
// Author: AMD Developer Tools Team
// Date: 16/2/2014
// ---------------------------------------------------------------------------
bool apTechnologyMonitorFailureEvent::readSelfFromChannel(osChannel& ipcChannel)
{
bool retVal = apEvent::readSelfFromChannel(ipcChannel);
ipcChannel >> m_failInformation;
return retVal;
}
// ---------------------------------------------------------------------------
// Name: apTechnologyMonitorFailureEvent::eventType
// Description: Returns my debugged process event type.
// Author: AMD Developer Tools Team
// Date: 16/2/2014
// ---------------------------------------------------------------------------
apEvent::EventType apTechnologyMonitorFailureEvent::eventType() const
{
return apEvent::AP_TECHNOLOGY_MONITOR_FAILURE_EVENT;
}
// ---------------------------------------------------------------------------
// Name: apTechnologyMonitorFailureEvent::clone
// Description: Creates a new copy of self, and returns it.
// It is the caller's responsibility to delete the created copy.
// Author: AMD Developer Tools Team
// Date: 16/2/2014
// ---------------------------------------------------------------------------
apEvent* apTechnologyMonitorFailureEvent::clone() const
{
apEvent* retVal = new apTechnologyMonitorFailureEvent(m_failInformation, triggeringThreadId());
return retVal;
}
|
techdev-solutions/trackr-frontend
|
src/modules/trackr/services/employeeService.js
|
define([], function() {
'use strict';
return ['base.services.user', 'Restangular', function(UserService, Restangular) {
var employee;
return {
loadEmployee: function () {
return Restangular.one('employees', UserService.getUser().id).get().then(function(_employee) {
employee = _employee;
return employee;
});
},
getEmployee: function() {
return employee;
},
getEmployeeHref: function() {
return employee._links.self.href;
}
};
}];
});
|
geqlong/DataService-Svnkit
|
dataservice-svnkit-framework/service-web-admin/src/main/scala/com/service/visual/web/admin/modules/system/controller/DictCodeController.scala
|
package com.service.visual.web.admin.modules.system.controller
import com.baomidou.mybatisplus.mapper.EntityWrapper
import com.service.framework.core.utils.CommUtil
import com.service.framework.web.controller.AjaxResult
import com.service.visual.web.admin.core.web.controller.BaseController
import com.service.visual.web.admin.modules.system.entity.DictCode
import com.service.visual.web.admin.modules.system.service.IDictCodeService
import org.apache.shiro.authz.annotation.RequiresPermissions
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Controller
import org.springframework.ui.ModelMap
import org.springframework.web.bind.annotation._
import scala.collection.JavaConversions._
@Controller
@RequestMapping(Array("/system/dict/code"))
class DictCodeController extends BaseController {
private val dictCodePrefix = "system/dict/code"
@Autowired private val dictCodeService: IDictCodeService = null
@RequiresPermissions(Array("system:dict:manage"))
@GetMapping()
def dictTypeIndex() = dictCodePrefix + "/list"
/**
* 获取字典列表
*/
@RequiresPermissions(Array("system:dict:list"))
@RequestMapping(value = Array("/list"))
@ResponseBody
def list(dictType: String, @RequestParam(required = false) codeText: String): Any = {
basePageQuery[DictCode](dictCodeService, List(("dict_type", "eq", dictType), ("code_text", "like", codeText)))
}
/**
* 新增字典类型
*/
@RequiresPermissions(Array("system:dict:add"))
@GetMapping(Array("/add/{dictType}"))
def add(@PathVariable("dictType") dictType: String, mm: ModelMap): String = {
mm.put("dictType", dictType)
dictCodePrefix + "/add"
}
/**
* 校验字典类型
*/
@PostMapping(Array("/checkDictCodeUnique"))
@ResponseBody
def checkDictCodeUnique(dictCode: DictCode): String = {
var result: String = null
if (CommUtil.isNotNull(dictCode)) {
val wrapper = new EntityWrapper[DictCode]().eq("dict_type", dictCode.dictType).eq("code_value", dictCode.codeValue)
if (CommUtil.isNotEmpty(dictCode.rowKey)) {
wrapper.ne("row_key", dictCode.rowKey)
}
result = s"${dictCodeService.selectCount(wrapper)}"
} else {
result = "0"
}
result
}
/**
* 新增保存字典类型
*/
@RequiresPermissions(Array("system:dict:add"))
@PostMapping(Array("/add"))
@ResponseBody
def addSave(dict: DictCode): AjaxResult = {
try {
dictCodeService.insert(dict)
success
} catch {
case ex: Exception => failure(ex.getMessage)
}
}
@RequiresPermissions(Array("system:dict:delete"))
@PostMapping(Array("/delete"))
@ResponseBody
def delete(ids: String): AjaxResult = {
try {
dictCodeService.deleteBatchIds(ids.split(",", -1).toList)
success
} catch {
case ex: Exception => failure(ex.getMessage)
}
}
@RequiresPermissions(Array("system:dict:edit"))
@GetMapping(Array("/edit/{id}"))
def edit(@PathVariable("id") id: String, mm: ModelMap): String = {
mm.put("dict", dictCodeService.selectById(id))
dictCodePrefix + "/edit"
}
@RequiresPermissions(Array("system:dict:edit"))
@PostMapping(Array("/edit"))
@ResponseBody
def editSave(dict: DictCode): AjaxResult = {
try {
dictCodeService.updateById(dict)
success
} catch {
case ex: Exception => failure(ex.getMessage)
}
}
}
|
weucode/COMFORT
|
artifact_evaluation/data/codeCoverage/codealchemist_generate/781.js
|
<filename>artifact_evaluation/data/codeCoverage/codealchemist_generate/781.js
var v0 = (function (v1){
return (v1) > (0);
});
(v0.match.Url) = v0.Util.extend(v0.match.Match, ({urlPrefixRegex : /^(https?:\/\/)?(www\.)?/i, protocolRelativeRegex : /^\/\//, protocolPrepended : false, getType : (function (){
return 'url';
}), getUrl : (function (){
var v1 = this.url;
if(((! this.protocolRelativeMatch) && (! this.protocolUrlMatch)) && (! this.protocolPrepended)){
(v1) = (this.url) = ('http://') + (v1);
(this.protocolPrepended) = true;
}
return v1;
}), getAnchorHref : (function (){
var v1 = this.getUrl();
return v1.replace(/&/g, '&');
}), getAnchorText : (function (){
var v2 = this.getUrl();
if(this.protocolRelativeMatch){
(v2) = this.stripProtocolRelativePrefix(v2);
}
if(this.stripPrefix){
(v2) = this.stripUrlPrefix(v2);
}
(v2) = this.removeTrailingSlash(v2);
return v2;
}), stripUrlPrefix : (function (v3){
return v3.replace(this.urlPrefixRegex, '');
}), stripProtocolRelativePrefix : (function (v3){
return v3.replace(this.protocolRelativeRegex, '');
}), removeTrailingSlash : (function (v2){
if((v2.charAt((v2.length) - (1))) === ('/')){
(v2) = v2.slice(0, - 1);
}
return v2;
})}));
var v1 = (function (v1){
this.behavior.createColumns();
});
// GenBlkBrick
for(;(v0) < (10);){
// GenBlkBrick
for(var v2 = 1;(v2) < (v1);v2++){
{
v2++;
}
}
var v3 = (function (v1, v2){
var v3 = v1.get('ariaLabel'), v4 = v1.get('ariaLabelledBy'), v5 = v1.get('ariaDescribedBy');
if(v3){
v2.attr('aria-label', v3);
}
if(v4){
v2.attr('aria-labelledby', v4);
}
if(v5){
v2.attr('aria-describedby', v5);
}
});
}
Array.prototype.reduce.call(v3, v0, v2);
Object.defineProperty(v3.prototype, "opaqueSortCompareFn", ({set : (function (v2){
(this._opaqueSortCompareFn) = v2;
if(v2){
(this._renderOpaque) = this.renderOpaqueSorted;
}else {
(this._renderOpaque) = v3.renderUnsorted;
}
}), enumerable : true, configurable : true}));
function v4(v1, v2, v3, v4, v5){
(v3) = v3(v3);
if(! v4){
(v4) = v7.base;
}
var v8;
(function v9(v1, v10, v11){
if((v1.start) > (v2)){
return;
}
var v12 = (v11) || (v1.type);
if((((v1.end) <= (v2)) && ((! v8) || ((v8.node.end) < (v1.end)))) && (v3(v12, v1))){
(v8) = new v1(v1, v10);
}
v4[v12](v1, v10, v9);
})(v1, v5);
return v8;
}
// GenBlkBrick
for(var v5 = 0;- 0;){
(v5) |= ((v5) >> (2)) & (1073741823);
var v6 = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (function (v1){
var v2 = (((v5) + ((Math.random()) * (16))) % (16)) | (0);
(v5) = Math.floor((v5) / (16));
return ((v1) == ('x')) ? (v2) : (((v2) & (0x3)) | (0x8)).toString(16);
}));
}
|
gxrwes/MCRPGSERVER
|
MinecraftServer/work/decompile-e0c6d16a/net/minecraft/network/protocol/game/PacketPlayOutStopSound.java
|
package net.minecraft.network.protocol.game;
import javax.annotation.Nullable;
import net.minecraft.network.PacketDataSerializer;
import net.minecraft.network.protocol.Packet;
import net.minecraft.resources.MinecraftKey;
import net.minecraft.sounds.SoundCategory;
public class PacketPlayOutStopSound implements Packet<PacketListenerPlayOut> {
private static final int HAS_SOURCE = 1;
private static final int HAS_SOUND = 2;
@Nullable
private final MinecraftKey name;
@Nullable
private final SoundCategory source;
public PacketPlayOutStopSound(@Nullable MinecraftKey minecraftkey, @Nullable SoundCategory soundcategory) {
this.name = minecraftkey;
this.source = soundcategory;
}
public PacketPlayOutStopSound(PacketDataSerializer packetdataserializer) {
byte b0 = packetdataserializer.readByte();
if ((b0 & 1) > 0) {
this.source = (SoundCategory) packetdataserializer.readEnum(SoundCategory.class);
} else {
this.source = null;
}
if ((b0 & 2) > 0) {
this.name = packetdataserializer.readResourceLocation();
} else {
this.name = null;
}
}
@Override
public void write(PacketDataSerializer packetdataserializer) {
if (this.source != null) {
if (this.name != null) {
packetdataserializer.writeByte(3);
packetdataserializer.writeEnum(this.source);
packetdataserializer.writeResourceLocation(this.name);
} else {
packetdataserializer.writeByte(1);
packetdataserializer.writeEnum(this.source);
}
} else if (this.name != null) {
packetdataserializer.writeByte(2);
packetdataserializer.writeResourceLocation(this.name);
} else {
packetdataserializer.writeByte(0);
}
}
@Nullable
public MinecraftKey getName() {
return this.name;
}
@Nullable
public SoundCategory getSource() {
return this.source;
}
public void handle(PacketListenerPlayOut packetlistenerplayout) {
packetlistenerplayout.handleStopSoundEvent(this);
}
}
|
asecord92/convectus
|
controllers/api/event-routes.js
|
const router = require('express').Router();
const sequelize = require('../../config/connection');
const { Event, User, Rsvp } = require('../../models');
const { Op } = require('sequelize');
// GET /api/events/week
router.get('/week', (req, res) => {
// Access our Event model and run .findAll() method)
const {fns,addDays, subDays} = require('date-fns');
const startDate = new Date();
const endDate = addDays(startDate, 7);
Event.findAll({
where: {
date: {
[Op.between]: [startDate, endDate]
}
}
})
.then(dbEventData => res.json(dbEventData))
.catch(err => {
console.log(err);
res.status(500).json(err);
});
});
// GET /api/events/today
router.get('/today', (req, res) => {
// Access our Event model and run .findAll() method)
const { startOfDay, endOfDay } = require('date-fns');
const today = new Date();
const { Op } = require('sequelize');
const startdate = startOfDay(today);
const enddate = endOfDay(today);
console.log(`${startdate}
${enddate} -----------`);
Event.findAll({
where: {
date: {
[Op.between]: [startOfDay(today), endOfDay(today)]
}
}
})
.then(dbEventData => res.json(dbEventData))
.catch(err => {
console.log(err);
res.status(500).json(err);
});
});
// GET /api/events/new
router.get('/new', (req, res) => {
// Access our Event model and run .findAll() method)
const {fns,subDays} = require('date-fns');
const endDate = new Date();
const startDate = subDays(endDate, 3);
const { Op } = require('sequelize');
Event.findAll({
where: {
created_at: {
[Op.between]: [startDate, endDate]
}
}
})
.then(dbEventData => res.json(dbEventData))
.catch(err => {
console.log(err);
res.status(500).json(err);
});
});
// GET /api/events/1
router.get('/:id', (req, res) => {
Event.findOne({
where: {
id: req.params.id
},
attributes: [
'id',
'name',
'description',
'date',
'location',
'creator_id',
'created_at'
],
include: [
{
model: Rsvp,
attributes: ['id', 'user_id', 'event_id'],
include: {
model: User,
attributes: ['username']
}
}
]
})
.then(dbEventData => {
if (!dbEventData) {
res.status(404).json({ message: 'No event found with this id' });
return;
}
res.json(dbEventData);
})
.catch(err => {
console.log(err);
res.status(500).json(err);
});
});
// GET /api/events
router.get('/', (req, res) => {
// Access our Event model and run .findAll() method)
Event.findAll()
.then(dbEventData => res.json(dbEventData))
.catch(err => {
console.log(err);
res.status(500).json(err);
});
});
// POST /api/events
router.post('/', (req, res) => {
// expects {name: 'Knitting meetup', description: 'Meetup with knitters for holiday crafting', date: '2008-11-11 13:23:44', location: "123 main st., small town ...", creator_id: 2}
Event.create({
name: req.body.name,
description: req.body.description,
date: req.body.date,
location: req.body.location,
//might need to use session id here?
creator_id: req.session.user_id
})
.then(dbEventData => res.json(dbEventData))
.catch(err => {
console.log(err);
res.status(500).json(err);
});
});
// PUT /api/events/1
router.put('/:id', (req, res) => {
// expects {username: 'Lernantino', email: '<EMAIL>', password: '<PASSWORD>'}
// if req.body has exact key/value pairs to match the model, you can just use `req.body` instead
Event.update(req.body, {
where: {
id: req.params.id
}
})
.then(dbEventData => {
if (!dbEventData[0]) {
res.status(404).json({ message: 'No event found with this id' });
return;
}
res.json(dbEventData);
})
.catch(err => {
console.log(err);
res.status(500).json(err);
});
});
// DELETE /api/events/1
router.delete('/:id', (req, res) => {
Event.destroy({
where: {
id: req.params.id
}
})
.then(dbEventData => {
if (!dbEventData) {
res.status(404).json({ message: 'No user found with this id' });
return;
}
res.json(dbEventData);
})
.catch(err => {
console.log(err);
res.status(500).json(err);
});
});
module.exports = router;
|
mushikago/CallSwiftFromUnity
|
Simulator/Libraries/external/baselib/Include/Cpp/CappedSemaphore.h
|
#pragma once
#include "../C/Baselib_CappedSemaphore.h"
#include "Time.h"
namespace baselib
{
BASELIB_CPP_INTERFACE
{
// In computer science, a semaphore is a variable or abstract data type used to control access to a common resource by multiple processes in a concurrent
// system such as a multitasking operating system. A semaphore is simply a variable. This variable is used to solve critical section problems and to achieve
// process synchronization in the multi processing environment. A trivial semaphore is a plain variable that is changed (for example, incremented or
// decremented, or toggled) depending on programmer-defined conditions.
//
// A useful way to think of a semaphore as used in the real-world system is as a record of how many units of a particular resource are available, coupled with
// operations to adjust that record safely (i.e. to avoid race conditions) as units are required or become free, and, if necessary, wait until a unit of the
// resource becomes available.
//
// "Semaphore (programming)", Wikipedia: The Free Encyclopedia
// https://en.wikipedia.org/w/index.php?title=Semaphore_(programming)&oldid=872408126
//
// For optimal performance, baselib::CappedSemaphore should be stored at a cache aligned memory location.
class CappedSemaphore
{
public:
// non-copyable
CappedSemaphore(const CappedSemaphore& other) = delete;
CappedSemaphore& operator=(const CappedSemaphore& other) = delete;
// non-movable (strictly speaking not needed but listed to signal intent)
CappedSemaphore(CappedSemaphore&& other) = delete;
CappedSemaphore& operator=(CappedSemaphore&& other) = delete;
// Creates a capped counting semaphore synchronization primitive.
// Cap is the number of tokens that can be held by the semaphore when there is no contention.
//
// If there are not enough system resources to create a semaphore, process abort is triggered.
CappedSemaphore(const uint16_t cap) : m_CappedSemaphoreData(Baselib_CappedSemaphore_Create(cap))
{
}
// Reclaim resources and memory held by the semaphore.
//
// If threads are waiting on the semaphore, destructor will trigger an assert and may cause process abort.
~CappedSemaphore()
{
Baselib_CappedSemaphore_Free(&m_CappedSemaphoreData);
}
// Wait for semaphore token to become available
//
// This function is guaranteed to emit an acquire barrier.
inline void Acquire()
{
return Baselib_CappedSemaphore_Acquire(&m_CappedSemaphoreData);
}
// Try to consume a token and return immediately.
//
// When successful this function is guaranteed to emit an acquire barrier.
//
// Return: true if token was consumed. false if not.
inline bool TryAcquire()
{
return Baselib_CappedSemaphore_TryAcquire(&m_CappedSemaphoreData);
}
// Wait for semaphore token to become available
//
// When successful this function is guaranteed to emit an acquire barrier.
//
// TryAcquire with a zero timeout differs from TryAcquire() in that TryAcquire() is guaranteed to be a user space operation
// while Acquire with a zero timeout may enter the kernel and cause a context switch.
//
// Timeout passed to this function may be subject to system clock resolution.
// If the system clock has a resolution of e.g. 16ms that means this function may exit with a timeout error 16ms earlier than originally scheduled.
//
// Arguments:
// - timeout: Time to wait for token to become available.
//
// Return: true if token was consumed. false if timeout was reached.
inline bool TryTimedAcquire(const timeout_ms timeoutInMilliseconds)
{
return Baselib_CappedSemaphore_TryTimedAcquire(&m_CappedSemaphoreData, timeoutInMilliseconds.count());
}
// Submit tokens to the semaphore.
// If threads are waiting an equal amount of tokens are consumed before this function return.
//
// When successful this function is guaranteed to emit a release barrier.
inline uint16_t Release(const uint16_t count)
{
return Baselib_CappedSemaphore_Release(&m_CappedSemaphoreData, count);
}
// Sets the semaphore token count to zero and release all waiting threads.
//
// When successful this function is guaranteed to emit a release barrier.
//
// Return: number of released threads.
inline uint32_t ResetAndReleaseWaitingThreads()
{
return Baselib_CappedSemaphore_ResetAndReleaseWaitingThreads(&m_CappedSemaphoreData);
}
private:
Baselib_CappedSemaphore m_CappedSemaphoreData;
};
}
}
|
JeffreyStocker/SpotifySmartPlaylists
|
src/store/actions/user.js
|
<filename>src/store/actions/user.js
export const SET_USER = "SET_USER";
export function setUser (userData) {
return {
type: SET_USER,
payload: userData
}
}
|
krishukr/cpp-code
|
src/LGR/LGR-(-13)/LGR-(-13)-A.cpp
|
#include <cstring>
#include <iostream>
int main() {
std::string ans =
"ACBABDADCCBAABD"
"TFTFDB"
"TTFFDC"
"TFFFAD"
"AAACB"
"BBDAB";
std::cout << ans << '\n';
return 0;
}
|
DanielParra159/EngineAndGame
|
Engine/src/Source/Win32/Input/MouseController.cpp
|
#include "Input\MouseController.h"
#include "Input\InputAction.h"
#include "SDL.h"
#include <assert.h>
namespace input
{
BOOL MouseController::Init()
{
return TRUE;
}
void MouseController::Release()
{
TActionsByKey::const_iterator lIterator = mActionsByKey.begin();
TActionsByKey::const_iterator lIteratorEnd = mActionsByKey.end();
for (; lIterator != lIteratorEnd; ++lIterator)
{
delete (*lIterator).second;
}
mActionsByKey.clear();
mKeysByActions.clear();
}
void MouseController::Update(SDL_Event& aEvent)
{
InputAction *lInputAction = NULL;
TActionsByKey::const_iterator iterator = mActionsByKey.find(TranslateButtonCode(aEvent.button.button));
switch (aEvent.type)
{
case SDL_MOUSEBUTTONDOWN:
if (iterator != mActionsByKey.end()) {
lInputAction = iterator->second;
if (lInputAction)
lInputAction->SetPressed(TRUE);
}
break;
case SDL_MOUSEBUTTONUP:
if (iterator != mActionsByKey.end()) {
lInputAction = iterator->second;
if (lInputAction)
lInputAction->SetPressed(FALSE);
}
break;
}
}
void MouseController::RegisterInputAction(uint32 aId, uint32 aKey)
{
InputAction *lInputAction = new InputAction();
lInputAction->Init(aId, aKey);
mActionsByKey[aKey] = lInputAction;
mKeysByActions[aId] = aKey;
}
BOOL MouseController::IsActionPressed(uint32 aActionId)
{
SDL_PumpEvents();
TKeyByAction::const_iterator iterator = mKeysByActions.find(aActionId);
if (iterator != mKeysByActions.end())
{
if (SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(iterator->second)) {
return TRUE;
}
}
return FALSE;
}
BOOL MouseController::IsButtonPressed(EButtonCode aButton)
{
SDL_PumpEvents();
if (SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(SDL_BUTTON_LEFT)) {
return TRUE;
}
return FALSE;
}
void MouseController::GetMousePos(Vector2D<int32>& aMousePos)
{
SDL_GetMouseState(&aMousePos.mX, &aMousePos.mY);
}
MouseController::EButtonCode MouseController::TranslateButtonCode(uint32 aKey)
{
switch (aKey)
{
case SDL_BUTTON_LEFT:
return EButtonCode::eLeftButton;
case SDL_BUTTON_MIDDLE:
return EButtonCode::eMiddleButton;
case SDL_BUTTON_RIGHT:
return EButtonCode::eRightButton;
}
return EButtonCode::eUnknown;
}
BOOL MouseController::IsActionDown(uint32 aActionId)
{
TKeyByAction::const_iterator iterator = mKeysByActions.find(aActionId);
if (iterator != mKeysByActions.end())
{
InputAction* lInputAction = mActionsByKey[iterator->second];
return lInputAction->GetPressed();
}
}
BOOL MouseController::IsActionUp(uint32 aActionId)
{
InputAction* lInputAction = mActionsByKey[mKeysByActions[aActionId]];
if (lInputAction != NULL)
return !lInputAction->GetPressed();
else
return FALSE;
}
void MouseController::ClearAllActionInput()
{
TActionsByKey::const_iterator lIterator = mActionsByKey.begin();
TActionsByKey::const_iterator lIteratorEnd = mActionsByKey.end();
for (; lIterator != lIteratorEnd; ++lIterator)
{
delete (*lIterator).second;
}
mActionsByKey.clear();
mKeysByActions.clear();
}
} // namespace input
|
ankushlt/testsigma
|
server/src/main/java/com/testsigma/controller/api/v1/TestSuiteResultController.java
|
package com.testsigma.controller.api.v1;
import com.testsigma.dto.api.APITestSuiteResultDTO;
import com.testsigma.mapper.TestSuiteResultMapper;
import com.testsigma.model.TestSuiteResult;
import com.testsigma.service.TestSuiteResultService;
import com.testsigma.specification.TestSuiteResultSpecificationsBuilder;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.web.PageableDefault;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Log4j2
@RestController(value = "apiTestSuiteResultController")
@RequestMapping(path = "/api/v1/test_suite_results")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TestSuiteResultController {
private final TestSuiteResultService testSuiteResultService;
private final TestSuiteResultMapper testSuiteResultMapper;
@GetMapping
public Page<APITestSuiteResultDTO> index(TestSuiteResultSpecificationsBuilder builder, @PageableDefault(size = 50) Pageable pageable) {
log.info("Request /test_suite_results/");
Specification<TestSuiteResult> spec = builder.build();
Page<TestSuiteResult> testSuiteResults = testSuiteResultService.findAll(spec, pageable);
List<APITestSuiteResultDTO> testSuiteResultDTOS =
testSuiteResultMapper.mapApiDTO(testSuiteResults.getContent());
return new PageImpl<>(testSuiteResultDTOS, pageable, testSuiteResults.getTotalElements());
}
}
|
Hochfrequenz/go-bo4e
|
com/geokoordinaten.go
|
<gh_stars>1-10
package com
import "github.com/shopspring/decimal"
// Geokoordinaten are GPS coordinates
type Geokoordinaten struct {
Breitengrad decimal.Decimal `json:"breitengrad" validate:"latitude"` // Breitengrad is the latitude
Laengengrad decimal.Decimal `json:"laengengrad" validate:"longitude"` // Laengengrad is the longitude
}
|
doziya/ansible
|
awx/ui/client/lib/components/input/label.directive.js
|
<reponame>doziya/ansible<gh_stars>1-10
function atInputLabel (pathService) {
return {
restrict: 'E',
replace: true,
templateUrl: pathService.getPartialPath('components/input/label')
};
}
atInputLabel.$inject = ['PathService'];
export default atInputLabel;
|
FateRevoked/mage
|
Mage.Tests/src/test/java/org/mage/test/lki/LastKnownInformationTest.java
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.mage.test.lki;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author noxx
*/
public class LastKnownInformationTest extends CardTestPlayerBase {
/**
* see here for more information
* http://www.slightlymagic.net/forum/viewtopic.php?f=116&t=14516
*
* Tests Safehold Elite with persist returns to battlefield with -1/-1
* counter Murder Investigation has to put 2 tokens onto battlefield because
* enchanted Safehold Elite was 2/2
*
* @author LevelX
*/
@Test
public void testPersistTriggersInTime() {
// Safehold Elite {1}{G/W}
// Creature - Elf Scout
// 2/2
// Persist
addCard(Zone.BATTLEFIELD, playerA, "Safehold Elite");
addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
// {1}{W}
// Enchant creature you control
// When enchanted creature dies, put X 1/1 white Soldier creature tokens onto the battlefield, where X is its power.
addCard(Zone.HAND, playerA, "Murder Investigation", 1);
addCard(Zone.HAND, playerB, "Lightning Bolt", 2);
addCard(Zone.BATTLEFIELD, playerB, "Mountain", 2);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Murder Investigation", "Safehold Elite");
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerB, "Lightning Bolt", "Safehold Elite");
// choose triggered ability order
setChoice(playerA, "When enchanted creature dies");
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerB, "Lightning Bolt", "Safehold Elite", "When enchanted creature dies");
setStopAt(1, PhaseStep.END_TURN);
execute();
assertGraveyardCount(playerA, "Murder Investigation", 1);
assertPermanentCount(playerA, "Safehold Elite", 0);
// because enchanted Safehold Elite's P/T was 2/2, Murder Investigation has to put 2 Soldier onto the battlefield
assertPermanentCount(playerA, "Soldier", 2);
assertGraveyardCount(playerB, "Lightning Bolt", 2);
assertActionsCount(playerB, 0);
}
/**
* Here we test that Trostani's first ability checks the toughness on
* resolve.
*
*/
@Test
public void testTrostaniSelesnyasVoice1() {
// Whenever another creature enters the battlefield under your control, you gain life equal to that creature's toughness.
// {1}{G}{W}, {T}: Populate. (Create a tokenonto the battlefield that's a copy of a creature token you control.)
addCard(Zone.BATTLEFIELD, playerA, "Trostani, Selesnya's Voice");
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
addCard(Zone.HAND, playerA, "Giant Growth", 1);
addCard(Zone.HAND, playerA, "Grizzly Bears", 1);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Grizzly Bears");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Giant Growth", "Grizzly Bears", "Grizzly Bears", StackClause.WHILE_NOT_ON_STACK);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertGraveyardCount(playerA, "Giant Growth", 1);
assertPermanentCount(playerA, "Grizzly Bears", 1);
assertLife(playerA, 25);
}
/**
* Here we test correct spell interaction by playing Cloudshift BEFORE Giant
* Growth resolves. Cloudshift will remove 2/2 creature and it will return
* as 2/2. Giant Growth will be fizzled. That means that player should gain
* 2 + 2 life.
*/
@Test
public void testTrostaniSelesnyasVoice2() {
addCard(Zone.BATTLEFIELD, playerA, "Trostani, Selesnya's Voice");
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
addCard(Zone.HAND, playerA, "Giant Growth", 1);
addCard(Zone.HAND, playerA, "Cloudshift", 1);
addCard(Zone.HAND, playerA, "Grizzly Bears", 1);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Grizzly Bears");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Giant Growth", "Grizzly Bears", "Grizzly Bears", StackClause.WHILE_NOT_ON_STACK);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cloudshift", "Grizzly Bears", "Giant Growth",
StackClause.WHILE_ON_STACK);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertPermanentCount(playerA, "Grizzly Bears", 1);
assertLife(playerA, 24);
}
/**
* Here we test actual use of LKI by playing Cloudshift AFTER Giant Growth
* resolves. Cloudshift will remove 5/5 creature and it will return as 2/2.
* That means that player should gain 5 + 2 life.
*
*/
@Test
public void testTrostaniSelesnyasVoice3() {
addCard(Zone.BATTLEFIELD, playerA, "Trostani, Selesnya's Voice");
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
addCard(Zone.HAND, playerA, "Giant Growth", 1);
addCard(Zone.HAND, playerA, "Cloudshift", 1);
addCard(Zone.HAND, playerA, "Grizzly Bears", 1);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Grizzly Bears");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Giant Growth", "Grizzly Bears", "Grizzly Bears", StackClause.WHILE_NOT_ON_STACK);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Cloudshift", "Grizzly Bears", "Giant Growth",
StackClause.WHILE_NOT_ON_STACK);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertPermanentCount(playerA, "Grizzly Bears", 1);
assertLife(playerA, 27);
}
}
|
seanbashaw/frozenlight
|
export/windows/obj/include/openfl/_internal/symbols/FontSymbol.h
|
<gh_stars>0
// Generated by Haxe 3.4.7
#ifndef INCLUDED_openfl__internal_symbols_FontSymbol
#define INCLUDED_openfl__internal_symbols_FontSymbol
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#ifndef INCLUDED_openfl__internal_symbols_SWFSymbol
#include <openfl/_internal/symbols/SWFSymbol.h>
#endif
HX_DECLARE_CLASS3(openfl,_internal,swf,ShapeCommand)
HX_DECLARE_CLASS3(openfl,_internal,symbols,FontSymbol)
HX_DECLARE_CLASS3(openfl,_internal,symbols,SWFSymbol)
namespace openfl{
namespace _internal{
namespace symbols{
class HXCPP_CLASS_ATTRIBUTES FontSymbol_obj : public ::openfl::_internal::symbols::SWFSymbol_obj
{
public:
typedef ::openfl::_internal::symbols::SWFSymbol_obj super;
typedef FontSymbol_obj OBJ_;
FontSymbol_obj();
public:
enum { _hx_ClassId = 0x12c7c776 };
void __construct();
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="openfl._internal.symbols.FontSymbol")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,true,"openfl._internal.symbols.FontSymbol"); }
static hx::ObjectPtr< FontSymbol_obj > __new();
static hx::ObjectPtr< FontSymbol_obj > __alloc(hx::Ctx *_hx_ctx);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~FontSymbol_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_HCSTRING("FontSymbol","\xa7","\x4a","\xe2","\x99"); }
::Array< int > advances;
int ascent;
bool bold;
::Array< int > codes;
int descent;
::Array< ::Dynamic> glyphs;
bool italic;
int leading;
::String name;
};
} // end namespace openfl
} // end namespace _internal
} // end namespace symbols
#endif /* INCLUDED_openfl__internal_symbols_FontSymbol */
|
henrylameck/school_management_system
|
students/migrations/0003_auto_20201204_1037.py
|
<reponame>henrylameck/school_management_system
# Generated by Django 3.1 on 2020-12-04 07:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('students', '0002_auto_20201204_1037'),
]
operations = [
migrations.AlterField(
model_name='personaldetails',
name='place_of_birth',
field=models.CharField(default='moro', max_length=200, verbose_name='Place of Birth'),
),
]
|
Neusoft-Technology-Solutions/aws-sdk-cpp
|
aws-cpp-sdk-config/source/model/GetAggregateConfigRuleComplianceSummaryResult.cpp
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/config/model/GetAggregateConfigRuleComplianceSummaryResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::ConfigService::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetAggregateConfigRuleComplianceSummaryResult::GetAggregateConfigRuleComplianceSummaryResult()
{
}
GetAggregateConfigRuleComplianceSummaryResult::GetAggregateConfigRuleComplianceSummaryResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetAggregateConfigRuleComplianceSummaryResult& GetAggregateConfigRuleComplianceSummaryResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("GroupByKey"))
{
m_groupByKey = jsonValue.GetString("GroupByKey");
}
if(jsonValue.ValueExists("AggregateComplianceCounts"))
{
Array<JsonView> aggregateComplianceCountsJsonList = jsonValue.GetArray("AggregateComplianceCounts");
for(unsigned aggregateComplianceCountsIndex = 0; aggregateComplianceCountsIndex < aggregateComplianceCountsJsonList.GetLength(); ++aggregateComplianceCountsIndex)
{
m_aggregateComplianceCounts.push_back(aggregateComplianceCountsJsonList[aggregateComplianceCountsIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
return *this;
}
|
SophiaLVP/playground
|
javascript/features/houses/house_database.js
|
<gh_stars>10-100
// Copyright 2016 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
import HouseSettings from 'features/houses/house_settings.js';
// Query to load the locations at which houses can be created from the database.
const LOAD_LOCATIONS_QUERY = `
SELECT
house_location_id,
entrance_x,
entrance_y,
entrance_z,
entrance_facing_angle,
entrance_interior_id
FROM
houses_locations
WHERE
location_removed IS NULL`;
// Query to load the parking lots associated with the house locations.
const LOAD_PARKING_LOTS_QUERY = `
SELECT
houses_parking_lots.house_parking_lot_id,
houses_parking_lots.house_location_id,
houses_parking_lots.position_x,
houses_parking_lots.position_y,
houses_parking_lots.position_z,
houses_parking_lots.rotation,
houses_parking_lots.interior_id
FROM
houses_parking_lots
LEFT JOIN
houses_locations ON houses_locations.house_location_id = houses_parking_lots.house_location_id
WHERE
houses_parking_lots.parking_lot_removed IS NULL AND
houses_locations.location_removed IS NULL`;
// Query to load the house details from the database.
const LOAD_HOUSES_QUERY = `
SELECT
houses_settings.house_id,
houses_settings.house_location_id,
houses_settings.house_user_id,
houses_settings.house_interior_id,
houses_settings.house_name,
houses_settings.house_access,
houses_settings.house_spawn_point,
houses_settings.house_welcome_message,
houses_settings.house_stream_url,
houses_settings.house_marker_color,
UNIX_TIMESTAMP(houses_settings.house_created) AS house_created,
users_gangs.gang_id,
users.username
FROM
houses_settings
LEFT JOIN
houses_locations ON houses_locations.house_location_id = houses_settings.house_location_id
LEFT JOIN
users_gangs ON users_gangs.user_id = houses_settings.house_user_id AND
users_gangs.left_gang IS NULL
LEFT JOIN
users ON users.user_id = houses_settings.house_user_id
WHERE
houses_settings.house_removed IS NULL AND
houses_locations.location_removed IS NULL AND
users.username IS NOT NULL`;
// Query to load the additional features that have been purchased for player houses.
const LOAD_HOUSE_FEATURES_QUERY = `
SELECT
houses_settings.house_location_id,
houses_features.house_feature_id,
houses_features.position_x,
houses_features.position_y,
houses_features.position_z,
houses_features.feature
FROM
houses_features
LEFT JOIN
houses_settings ON houses_settings.house_id = houses_features.house_id
LEFT JOIN
houses_locations ON houses_locations.house_location_id = houses_settings.house_location_id
WHERE
houses_features.feature_removed IS NULL AND
houses_settings.house_removed IS NULL AND
houses_locations.location_removed IS NULL`;
// Query to load the vehicles that have been associated with houses.
const LOAD_VEHICLES_QUERY = `
SELECT
houses_settings.house_location_id,
houses_vehicles.house_vehicle_id,
houses_vehicles.house_parking_lot_id,
houses_vehicles.model_id,
houses_vehicles.primary_color,
houses_vehicles.secondary_color,
houses_vehicles.paintjob,
houses_vehicles.components
FROM
houses_vehicles
LEFT JOIN
houses_settings ON houses_settings.house_id = houses_vehicles.house_id
LEFT JOIN
houses_locations ON houses_locations.house_location_id = houses_settings.house_location_id
LEFT JOIN
houses_parking_lots ON houses_parking_lots.house_parking_lot_id = houses_vehicles.house_parking_lot_id
WHERE
houses_vehicles.vehicle_removed IS NULL AND
houses_settings.house_removed IS NULL AND
houses_locations.location_removed IS NULL AND
houses_parking_lots.parking_lot_removed IS NULL`;
// Query to create a new house location in the database.
const CREATE_LOCATION_QUERY = `
INSERT INTO
houses_locations
(entrance_x, entrance_y, entrance_z, entrance_facing_angle, entrance_interior_id, location_creator_id, location_created)
VALUES
(?, ?, ?, ?, ?, ?, NOW())`;
// Query to create a new parking lot associated with a location in the database.
const CREATE_PARKING_LOT_QUERY = `
INSERT INTO
houses_parking_lots
(house_location_id, position_x, position_y, position_z, rotation, interior_id, parking_lot_creator_id, parking_lot_created)
VALUES
(?, ?, ?, ?, ?, ?, ?, NOW())`;
// Query to create a new set of house settings in the database.
const CREATE_HOUSE_QUERY = `
INSERT INTO
houses_settings
(house_location_id, house_user_id, house_interior_id, house_name, house_created)
VALUES
(?, ?, ?, ?, NOW())`;
// Query to create a new feature associated with a given house, at a given position.
const CREATE_HOUSE_FEATURE_QUERY = `
INSERT INTO
houses_features
(house_id, feature, position_x, position_y, position_z, feature_created)
VALUES
(?, ?, ?, ?, ?, NOW())`;
// Query to create a house visitor log in the database.
const CREATE_HOUSE_VISITOR_LOG = `
INSERT INTO
houses_visitor_logs
(house_id, user_id, visit_date)
VALUES
(?, ?, NOW())`;
// Query to create a vehicle in the database.
const CREATE_VEHICLE_QUERY = `
INSERT INTO
houses_vehicles
(house_parking_lot_id, house_id, model_id, primary_color, secondary_color, paintjob,
components, vehicle_created)
VALUES
(?, ?, ?, ?, ?, ?, ?, NOW())`;
// Query for updating a vehicle in the database.
const UPDATE_VEHICLE_QUERY = `
UPDATE
houses_vehicles
SET
houses_vehicles.model_id = ?,
houses_vehicles.primary_color = ?,
houses_vehicles.secondary_color = ?,
houses_vehicles.paintjob = ?,
houses_vehicles.components = ?
WHERE
houses_vehicles.house_vehicle_id = ?`;
// Query for reading the visitor logs for a given house.
const READ_VISITOR_LOGS_QUERY = `
SELECT
users.username,
UNIX_TIMESTAMP(houses_visitor_logs.visit_date) AS visit_time
FROM
houses_visitor_logs
LEFT JOIN
houses_settings ON houses_settings.house_id = houses_visitor_logs.house_id
LEFT JOIN
users ON users.user_id = houses_visitor_logs.user_id
WHERE
houses_visitor_logs.house_id = ? AND
(? = 0 OR houses_settings.house_user_id != houses_visitor_logs.user_id)
ORDER BY
houses_visitor_logs.visit_date DESC
LIMIT
?`;
// Query for updating the access requirements of a given house.
const UPDATE_ACCESS_SETTING_QUERY = `
UPDATE
houses_settings
SET
house_access = ?
WHERE
house_id = ?`;
// Query for updating the marker color of a given house.
const UPDATE_MARKER_COLOR_SETTING_QUERY = `
UPDATE
houses_settings
SET
house_marker_color = ?
WHERE
house_id = ?`;
// Query for updating the name of a given house.
const UPDATE_NAME_SETTING_QUERY = `
UPDATE
houses_settings
SET
house_name = ?
WHERE
house_id = ?`;
// Query for removing all existing spawn settings for a particular user.
const REMOVE_SPAWN_SETTINGS_FOR_USER_QUERY = `
UPDATE
houses_settings
SET
house_spawn_point = 0
WHERE
house_user_id = ? AND
house_removed IS NULL`;
// Query for updating the spawn setting for a given house.
const UPDATE_SPAWN_SETTING_QUERY = `
UPDATE
houses_settings
SET
house_spawn_point = ?
WHERE
house_id = ?`;
// Query for updating the welcome message of a given house.
const UPDATE_WELCOME_MESSAGE_SETTING_QUERY = `
UPDATE
houses_settings
SET
house_welcome_message = ?
WHERE
house_id = ?`;
// Query for updating the audio stream URL of a given house.
const UPDATE_STREAM_URL_SETTING_QUERY = `
UPDATE
houses_settings
SET
house_stream_url = ?
WHERE
house_id = ?`;
// Query to remove a previously created location from the database.
const REMOVE_LOCATION_QUERY = `
UPDATE
houses_locations
SET
location_removed = NOW()
WHERE
house_location_id = ?`;
// Query to remove a previously created parking lot from the database.
const REMOVE_PARKING_LOT_QUERY = `
UPDATE
houses_parking_lots
SET
parking_lot_removed = NOW()
WHERE
house_parking_lot_id = ?`;
// Query to remove a previously created house from the database.
const REMOVE_HOUSE_QUERY = `
UPDATE
houses_settings
SET
house_removed = NOW()
WHERE
house_id = ?`;
// Query to remove a given feature from a house in the database.
const REMOVE_HOUSE_FEATURE_QUERY = `
UPDATE
houses_features
SET
feature_removed = NOW()
WHERE
house_id = ? AND
feature = ?`;
// Query to remove one of the vehicles associated with a house.
const REMOVE_VEHICLE_QUERY = `
UPDATE
houses_vehicles
SET
vehicle_removed = NOW()
WHERE
house_vehicle_id = ?`;
// Defines the database interactions for houses that are used for loading, updating and removing
// persistent data associated with them.
class HouseDatabase {
// Loads the existing house locations from the database, and asynchronously returns them.
async loadLocations() {
let parkingLots = new Map();
let locations = [];
// (1) Load the parking lots from the database.
{
const data = await server.database.query(LOAD_PARKING_LOTS_QUERY);
data.rows.forEach(parkingLot => {
const locationId = parkingLot.house_location_id;
const position =
new Vector(parkingLot.position_x, parkingLot.position_y, parkingLot.position_z);
if (!parkingLots.has(locationId))
parkingLots.set(locationId, []);
parkingLots.get(locationId).push({
id: parkingLot.house_parking_lot_id,
position: position,
rotation: parkingLot.rotation,
interiorId: parkingLot.interior_id
});
});
}
// (2) Load the location information itself from the database.
{
const data = await server.database.query(LOAD_LOCATIONS_QUERY);
data.rows.forEach(location => {
const locationId = location.house_location_id;
const position =
new Vector(location.entrance_x, location.entrance_y, location.entrance_z);
locations.push([
locationId,
{
position: position,
facingAngle: location.entrance_facing_angle,
interiorId: location.entrance_interior_id,
parkingLots: parkingLots.get(locationId) || []
}
]);
});
}
return locations;
}
// Loads the existing houses, including their settings and interior details, from the database.
async loadHouses() {
const houses = new Map();
// (1) Load the houses from the database.
{
const data = await server.database.query(LOAD_HOUSES_QUERY);
data.rows.forEach(row => {
houses.set(row.house_location_id, {
id: row.house_id,
name: row.house_name,
ownerId: row.house_user_id,
ownerGangId: row.gang_id,
ownerName: row.username,
purchaseTime: row.house_created,
interiorId: row.house_interior_id,
access: HouseDatabase.toHouseAccessValue(row.house_access),
spawnPoint: !!row.house_spawn_point,
welcomeMessage: row.house_welcome_message,
streamUrl: row.house_stream_url,
markerColor: row.house_marker_color,
features: new Map(),
vehicles: []
});
});
}
// (2) Load the additional features from the database.
{
const data = await server.database.query(LOAD_HOUSE_FEATURES_QUERY);
data.rows.forEach(row => {
const locationId = row.house_location_id;
const house = houses.get(locationId);
if (!house) {
console.log('Warning: Feature #' + row.house_feature_id + ' is associated ' +
'with an invalid house (#' + row.house_id + '.');
return;
}
if (house.features.has(row.feature)) {
console.log('Warning: Feature #' + row.house_feature_id + ' is redundant ' +
'with a previously defined feature (house #' + row.house_id + '.');
return;
}
house.features.set(
row.feature, new Vector(row.position_x, row.position_y, row.position_z));
});
}
// (3) Load the vehicles from the database.
{
const data = await server.database.query(LOAD_VEHICLES_QUERY);
data.rows.forEach(row => {
const locationId = row.house_location_id;
if (!houses.has(locationId)) {
console.log('Warning: Vehicle #' + row.house_vehicle_id + ' is associated ' +
'with an invalid house (#' + row.house_id + '.');
return;
}
let components = [];
if (row.components.length) {
for (const component of row.components.split(','))
components.push(parseInt(component));
}
houses.get(locationId).vehicles.push({
id: row.house_vehicle_id,
modelId: row.model_id,
primaryColor: row.primary_color,
secondaryColor: row.secondary_color,
paintjob: row.paintjob,
components: components,
parkingLotId: row.house_parking_lot_id
});
});
}
return houses;
}
// Creates a new house location at |locationInfo| created by the |player|.
async createLocation(player, locationInfo) {
const { facingAngle, interiorId, position } = locationInfo;
const data = await server.database.query(
CREATE_LOCATION_QUERY, position.x, position.y, position.z, facingAngle, interiorId,
player.account.userId);
return data.insertId;
}
// Creates a new database entry for the |parkingLot| associated with the |location|.
async createLocationParkingLot(player, location, parkingLot) {
const position = parkingLot.position;
const data = await server.database.query(
CREATE_PARKING_LOT_QUERY, location.id, position.x, position.y, position.z,
parkingLot.rotation, parkingLot.interiorId, player.account.userId);
return data.insertId;
}
// Creates a new house in the database trying |interiorId| to |location|, owned by |player|.
async createHouse(player, location, interiorId) {
const name = player.name + '\'s house';
const data = await server.database.query(
CREATE_HOUSE_QUERY, location.id, player.account.userId, interiorId, name);
return {
id: data.insertId,
name: name,
ownerId: player.account.userId,
ownerGangId: player.gangId,
ownerName: player.name,
purchaseTime: Math.floor(Date.now() / 1000),
interiorId: interiorId,
access: HouseSettings.ACCESS_DEFAULT,
spawnPoint: false,
welcomeMessage: '',
streamUrl: '',
markerColor: 'yellow',
features: new Map(),
vehicles: []
};
}
// Creates a new |feature| for the given |location|, at |position|.
async createHouseFeature(location, feature, position) {
await server.database.query(CREATE_HOUSE_FEATURE_QUERY, location.settings.id, feature,
position.x, position.y, position.z);
}
// Creates a log entry noting that the |player| has visited the |location|.
async createHouseVisitorLog(location, player) {
await server.database.query(
CREATE_HOUSE_VISITOR_LOG, location.settings.id, player.account.userId);
}
// Creates a vehicle with |vehicleInfo| in the |parkingLot| associated with the house at
// |location|. The |vehicleInfo| must be an object having {modelId}.
async createVehicle(location, parkingLot, vehicleInfo) {
const components = vehicleInfo.components.length ? vehicleInfo.components.join(',')
: '';
const data = await server.database.query(
CREATE_VEHICLE_QUERY, parkingLot.id, location.settings.id, vehicleInfo.modelId,
vehicleInfo.primaryColor, vehicleInfo.secondaryColor, vehicleInfo.paintjob, components);
return data.insertId;
}
// Reads the |count| most recent entry logs for the given |location|, optionally |ignoreOwner|.
async readVisitorLogs(location, count = 20, ignoreOwner = false) {
const logs = [];
const data = await server.database.query(
READ_VISITOR_LOGS_QUERY, location.settings.id, ignoreOwner ? 1 : 0, count);
data.rows.forEach(row =>
logs.push({ name: row.username, date: row.visit_time }));
return logs;
}
// Updates the access requirements of the house at |location| to |value|.
async updateHouseAccess(location, value) {
await server.database.query(
UPDATE_ACCESS_SETTING_QUERY, HouseDatabase.toHouseAccessEnum(value),
location.settings.id);
}
// Updates the marker color of the |location| to |color|.
async updateHouseMarkerColor(location, color) {
await server.database.query(UPDATE_MARKER_COLOR_SETTING_QUERY, color, location.settings.id);
}
// Updates the name of the house at |location| to |name|.
async updateHouseName(location, name) {
await server.database.query(UPDATE_NAME_SETTING_QUERY, name, location.settings.id);
}
// Updates the spawn position choice of the houses owned by |location|'s owner. All previous
// settings will be removed first, then the |location| will be updated to |spawn|.
async updateHouseSpawn(location, spawn) {
await server.database.query(
REMOVE_SPAWN_SETTINGS_FOR_USER_QUERY, location.settings.ownerId);
await server.database.query(
UPDATE_SPAWN_SETTING_QUERY, spawn ? 1 : 0, location.settings.id);
}
// Updates the welcome message that will be shown to players once they enter the |location|. The
// |welcomeMessage| may be an empty string.
async updateHouseWelcomeMessage(location, welcomeMessage) {
await server.database.query(
UPDATE_WELCOME_MESSAGE_SETTING_QUERY, welcomeMessage, location.settings.id);
}
// Updates the audio stream URL for the |location|. The |streamUrl| may be an empty string.
async updateHouseStreamUrl(location, streamUrl) {
await server.database.query(
UPDATE_STREAM_URL_SETTING_QUERY, streamUrl, location.settings.id);
}
// Updates the |vehicle| in the database with the given |vehicleInfo|.
async updateVehicle(vehicle, vehicleInfo) {
const components = vehicleInfo.components.length ? vehicleInfo.components.join(',')
: '';
await server.database.query(
UPDATE_VEHICLE_QUERY, vehicleInfo.modelId, vehicleInfo.primaryColor,
vehicleInfo.secondaryColor, vehicleInfo.paintjob, components, vehicle.id);
}
// Removes the |location| from the database.
async removeLocation(location) {
await server.database.query(REMOVE_LOCATION_QUERY, location.id);
}
// Removes the |parkingLot| from the database.
async removeLocationParkingLot(parkingLot) {
await server.database.query(REMOVE_PARKING_LOT_QUERY, parkingLot.id);
}
// Removes the house tied to |location| from the database.
async removeHouse(location) {
await server.database.query(REMOVE_HOUSE_QUERY, location.settings.id);
}
// Removes the |feature| from the |location| in the database.
async removeHouseFeature(location, feature) {
await server.database.query(REMOVE_HOUSE_FEATURE_QUERY, location.settings.id, feature);
}
// Removes the |vehicle| associated with the |location| from the database.
async removeVehicle(vehicle) {
await server.database.query(REMOVE_VEHICLE_QUERY, vehicle.id);
}
// Converts the |value| to one of the house access enumeration values.
static toHouseAccessEnum(value) {
switch (value) {
case HouseSettings.ACCESS_EVERYBODY:
return 'Everybody';
case HouseSettings.ACCESS_FRIENDS_AND_GANG:
return 'FriendsAndGang';
case HouseSettings.ACCESS_FRIENDS:
return 'Friends';
case HouseSettings.ACCESS_PERSONAL:
return 'Personal';
default:
throw new Error('Invalid house access value: ' + value);
}
}
// Converts the |enum| to one of the house access values.
static toHouseAccessValue(enumeration) {
switch (enumeration) {
case 'Everybody':
return HouseSettings.ACCESS_EVERYBODY;
case 'FriendsAndGang':
return HouseSettings.ACCESS_FRIENDS_AND_GANG;
case 'Friends':
return HouseSettings.ACCESS_FRIENDS;
case 'Personal':
return HouseSettings.ACCESS_PERSONAL;
default:
throw new Error('Invalid house access enum: ' + enumeration);
}
}
}
export default HouseDatabase;
|
eugeneilyin/mdi-norm
|
lib/OutlineCamera.js
|
"use strict";
var _babelHelpers = require("./utils/babelHelpers.js");
exports.__esModule = true;
var _react = _babelHelpers.interopRequireDefault(require("react"));
var _Icon = require("./Icon");
var _fragments = require("./fragments");
var OutlineCamera =
/*#__PURE__*/
function OutlineCamera(props) {
return _react.default.createElement(_Icon.Icon, props, _react.default.createElement("path", {
d: "M14.25 2.26l-.08-.04-.01.02C13.46 2.09 12.74 2 12 2 6.48 2 2 6.48 2 12" + _fragments.h_ + "c0-4.75-3.31-8.72-7.75-9.74zM19.41 9h-7.99l2.71-4.7c2.4.66 4.35 2.42 5.28 4.7zM13.1 4.08L10.27 9l-1.15 2L6.4 6.3C7.84 4.88 9.82 4 12 4c.37 0 .74.03 1.1.08zM5.7 7.09L8.54 12l1.15 2H4.26C4.1 13.36 4 12.69 4 12c0-1.85.64-3.55 1.7-4.91zM4.59 15h7.98l-2.71 4.7c-2.4-.67-4.34-2.42-5.27-4.7zm6.31 4.91L14.89 13l2.72 4.7C16.16 19.12 14.18 20 12 20c-.38 0-.74-.04-1.1-.09zm7.4-3l-4-6.91h5.43c.17.64.27 1.31.27 2 0 1.85-.64 3.55-1.7 4.91z"
}));
};
exports.OutlineCamera = OutlineCamera;
|
YIMonge/Rev
|
PlatformLib/common/include/revFile.h
|
#ifndef __REVFILE_H__
#define __REVFILE_H__
#include "revTypedef.h"
#include "revString.h"
enum class FileMode : uint8
{
WriteBinary = 0,
ReadBinary,
WriteText,
ReadText,
};
class revFile
{
public:
virtual ~revFile(){}
virtual bool Open(const char* path, FileMode mode) = 0;
virtual void Close() = 0;
// if length is 0, can get all size of data.
virtual uint32 ReadData(void* data, uint32 length = 0, uint32 offset = 0) = 0;
virtual void WriteData(const void* data, uint32 length) = 0;
virtual uint32 GetFileSize() = 0;
};
#endif
|
the-h-team/ClansPro
|
ClansPro/src/main/java/com/github/sanctum/clans/bridge/ClanAddonLoader.java
|
package com.github.sanctum.clans.bridge;
import com.github.sanctum.labyrinth.library.Deployable;
import java.io.File;
import java.io.IOException;
public interface ClanAddonLoader {
ClanAddon loadAddon(File jar) throws IOException, InvalidAddonException;
Deployable<Void> enableAddon(ClanAddon addon);
Deployable<Void> disableAddon(ClanAddon addon);
}
|
ufz/ogs
|
MeshLib/IO/XDMF/HdfData.cpp
|
/**
* \file
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include "HdfData.h"
#include <hdf5.h>
#include <map>
#include "BaseLib/Error.h"
#include "BaseLib/Logging.h"
#include "partition.h"
namespace MeshLib::IO
{
static hid_t meshPropertyType2HdfType(MeshPropertyDataType const ogs_data_type)
{
std::map<MeshPropertyDataType const, hid_t> ogs_to_hdf_type = {
{MeshPropertyDataType::float64, H5T_NATIVE_DOUBLE},
{MeshPropertyDataType::float32, H5T_NATIVE_FLOAT},
{MeshPropertyDataType::int32, H5T_NATIVE_INT32},
{MeshPropertyDataType::int64, H5T_NATIVE_INT64},
{MeshPropertyDataType::uint32, H5T_NATIVE_UINT32},
{MeshPropertyDataType::uint64, H5T_NATIVE_UINT64},
{MeshPropertyDataType::int8, H5T_NATIVE_INT8},
{MeshPropertyDataType::uint8, H5T_NATIVE_UINT8}};
try
{
return ogs_to_hdf_type.at(ogs_data_type);
}
catch (std::exception const& e)
{
OGS_FATAL("No known HDF5 type for OGS type. {:s}", e.what());
}
}
HdfData::HdfData(void const* data_start, std::size_t const size_partitioned_dim,
std::size_t const size_tuple, std::string const& name,
MeshPropertyDataType const mesh_property_data_type,
unsigned int const n_files)
: data_start(data_start), name(name)
{
auto const& partition_info =
getPartitionInfo(size_partitioned_dim, n_files);
auto const& offset_partitioned_dim = partition_info.local_offset;
offsets = {offset_partitioned_dim, 0};
std::size_t unified_length = partition_info.local_length;
chunk_space =
(size_tuple > 1)
? std::vector<Hdf5DimType>{partition_info.longest_local_length,
size_tuple}
: std::vector<Hdf5DimType>{partition_info.longest_local_length};
data_space = (size_tuple > 1)
? std::vector<Hdf5DimType>{unified_length, size_tuple}
: std::vector<Hdf5DimType>{unified_length};
file_space =
(size_tuple > 1)
? std::vector<Hdf5DimType>{partition_info.global_length, size_tuple}
: std::vector<Hdf5DimType>{partition_info.global_length};
data_type = meshPropertyType2HdfType(mesh_property_data_type);
DBUG(
"HDF: dataset name: {:s}, offset: {:d}, data_space: {:d}, chunk_space "
"{:d}, file_space: {:d}, tuples: {:d}",
name, partition_info.local_offset, data_space[0], chunk_space[0],
file_space[0], size_tuple);
}
} // namespace MeshLib::IO
|
FauxFaux/dmnp
|
expr/src/main/java/com/goeswhere/dmnp/expr/Pred.java
|
<gh_stars>1-10
package com.goeswhere.dmnp.expr;
class Pred {
public static Pred of(Token pop) {
if (pop instanceof Const) {
Const c = (Const) pop;
if (c.val.equals(1))
return TRUE;
else if (c.val.equals(0))
return FALSE;
} else if (pop instanceof Pred)
return (Pred) pop;
throw new AssertionError("Can't pred of that: " + pop);
}
final static Pred TRUE = new Pred() {
@Override
public String toString() {
return "true";
}
};
final static Pred FALSE = new Pred() {
@Override
public String toString() {
return "false";
}
};
}
class PredCmp extends Pred implements Token {
private final Token left;
private final Op op;
private final Token right;
private PredCmp(Token left, Op op, Token right) {
this.left = left;
this.op = op;
this.right = right;
}
static PredCmp of(Token lw, Op ow, Token rw) {
final Token l, r;
final Op o;
if (lw instanceof Const) {
r = lw;
l = rw;
o = ow.switched();
} else {
l = lw;
r = rw;
o = ow;
}
if (l instanceof PredCmp
&& r instanceof Const) {
boolean rightIsTrue = ((Const) r).val.equals(1);
if (Op.EQ == o && rightIsTrue ||
Op.NE == o && !rightIsTrue)
return (PredCmp) l;
if (Op.EQ == o && !rightIsTrue ||
Op.NE == o && rightIsTrue) {
final PredCmp comp = (PredCmp) l;
return comp.inverted();
}
}
return new PredCmp(l, o, r);
}
public PredCmp inverted() {
return new PredCmp(left, op.inverted(), right);
}
@Override
public String toString() {
return left + " " + op.rep + " " + right;
}
@Override
public int hashCode() {
return left.hashCode() * 31 * 31
+ op.hashCode() * 31
+ right.hashCode();
}
@Override
public boolean equals(Object obj) {
PredCmp c = (PredCmp) obj;
return c.op == op && c.left.equals(left) && c.right.equals(right);
}
public boolean strongerThan(PredCmp p) {
return p.left.equals(left)
&& right instanceof Const
&& p.right instanceof Const
&& op == Op.EQ && p.op == Op.NE;
}
@Override
public int compareTo(Token other) {
if (!(other instanceof PredCmp))
return 0;
final PredCmp p = (PredCmp) other;
int lct = left.compareTo(p.left);
if (0 != lct)
return lct;
final int oct = op.compareTo(p.op);
if (0 != oct)
return oct;
return right.compareTo(p.right);
}
}
|
enfoTek/tomato.linksys.e2000.nvram-mod
|
tools-src/gnu/gcc/gcc/testsuite/gcc.dg/c90-longlong-1.c
|
<gh_stars>10-100
/* Test for long long: in C99 only. */
/* Origin: <NAME> <<EMAIL>> */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
long long foo; /* { dg-bogus "warning" "warning in place of error" } */
/* { dg-error "long long" "long long not in C90" { target *-*-* } 6 } */
|
Wwf9w0/Food-App
|
src/main/java/service/food/app/persistence/jpa/converter/RestaurantConverter.java
|
<reponame>Wwf9w0/Food-App<gh_stars>0
package service.food.app.persistence.jpa.converter;
import service.food.app.persistence.jpa.dto.RestaurantDto;
import service.food.app.persistence.jpa.entity.RestaurantEntity;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.stream.Collectors;
@Component
@RequiredArgsConstructor
public class RestaurantConverter {
public RestaurantDto toRestaurantDto(RestaurantEntity restaurant){
return RestaurantDto.builder()
.id(restaurant.getId())
.name(restaurant.getName())
.address(restaurant.getAddress())
.city(restaurant.getCity())
.build();
}
public List<RestaurantDto> toRestaurantDtoList(List<RestaurantEntity> restaurants){
return restaurants.stream().map(restaurantEntity -> RestaurantDto.builder()
.id(restaurantEntity.getId())
.name(restaurantEntity.getName())
.city(restaurantEntity.getCity())
.address(restaurantEntity.getAddress())
.build()).collect(Collectors.toList());
}
}
|
chenhaoaixuexi/cloudCourse
|
roncoo-education-system/roncoo-education-system-feign/src/main/java/com/roncoo/education/system/feign/interfaces/IFeignSysRoleUser.java
|
package com.roncoo.education.system.feign.interfaces;
import com.roncoo.education.system.feign.qo.SysRoleUserQO;
import com.roncoo.education.system.feign.vo.SysRoleUserVO;
import com.roncoo.education.util.base.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* 角色用户关联表
*
* @author wujing
*/
@FeignClient(value = "roncoo-education-system-service")
public interface IFeignSysRoleUser {
@RequestMapping(value = "/feign/system/sysRoleUser/listForPage")
Page<SysRoleUserVO> listForPage(@RequestBody SysRoleUserQO qo);
@RequestMapping(value = "/feign/system/sysRoleUser/save")
int save(@RequestBody SysRoleUserQO qo);
@RequestMapping(value = "/feign/system/sysRoleUser/deleteById")
int deleteById(@RequestBody Long id);
@RequestMapping(value = "/feign/system/sysRoleUser/updateById")
int updateById(@RequestBody SysRoleUserQO qo);
@RequestMapping(value = "/feign/system/sysRoleUser/getById")
SysRoleUserVO getById(@RequestBody Long id);
}
|
ErmirioABonfim/Exercicos-Python
|
Exercios Em Python/ex057.py
|
sexo = ''
while sexo != 'f' and sexo != 'm':
sexo = str(input(' Digite seu sexo: '))
print('Tks')
|
tomegorny/temp
|
java-benchmarking-with-jmh/src/main/java/de/rieckpil/blog/SerializationBenchmark.java
|
<gh_stars>1-10
/*
* Copyright (c) 2014, Oracle America, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Oracle nor the names of its contributors may be used
* to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
package de.rieckpil.blog;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.gson.Gson;
import org.openjdk.jmh.annotations.*;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public class SerializationBenchmark {
private static final ObjectMapper objectMapper = new ObjectMapper();
private static final Gson gson = new Gson();
@Benchmark
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@Warmup(iterations = 5)
@Measurement(iterations = 10)
@BenchmarkMode(Mode.AverageTime)
public User benchmarkSerializationWithJackson(SerializationDataProvider serializationDataProvider) throws IOException {
return objectMapper.readValue(serializationDataProvider.jsonString, User.class);
}
@Benchmark
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@Warmup(iterations = 5)
@Measurement(iterations = 10)
@BenchmarkMode(Mode.AverageTime)
public User benchmarkSerializationWithGSON(SerializationDataProvider serializationDataProvider) {
return gson.fromJson(serializationDataProvider.jsonString, User.class);
}
@State(Scope.Benchmark)
public static class SerializationDataProvider {
private String jsonString;
@Setup(Level.Invocation)
public void setup() {
this.jsonString = "{\"firstName\": \"Mike\", \"lastName\":\"Duke\", \"hobbies\": [{\"name\": \"Soccer\", " +
"\"tags\": [\"Teamsport\", \"Ball\", \"Outdoor\", \"Championship\"]}], \"address\":" +
" { \"street\": \"Mainstreet\", \"streetNumber\": \"1A\", \"city\": \"New York\", \"country\":\"USA\", " +
"\"postalCode\": 1337}}";
}
}
}
|
ava-project/ava-website
|
website/apps/user/tests/validate_token.py
|
import datetime
from django.test import TestCase, Client
from django.contrib.auth.models import User
from django.utils import timezone
from mock import patch
from ..models import EmailValidationToken
class ValidateTokenMixin(object):
def create_user(self):
form_data = {
'username': 'correct',
'email': '<EMAIL>',
'password': '<PASSWORD>',
}
response = self.client.post('/user/register', form_data)
self.assertEqual(response.status_code, 302)
return User.objects.get(username=form_data['username'])
def setUp(self):
self.client = Client()
self.user = self.create_user()
def get_tokens(self):
return EmailValidationToken.objects.filter(user=self.user)
class ValidateTokenTest(ValidateTokenMixin, TestCase):
def test_create_token(self):
tokens = self.get_tokens()
self.assertEqual(len(tokens), 1)
def test_validate_token(self):
token = self.get_tokens()[0]
self.assertFalse(token.consumed)
self.assertFalse(self.user.profile.validated)
url = '/user/validate_email?email={}&token={}'
self.client.get(url.format(self.user.email, token.token))
token.refresh_from_db()
self.user.profile.refresh_from_db()
self.assertTrue(token.consumed)
self.assertTrue(self.user.profile.validated)
class ErrorTokenConsumedTest(ValidateTokenMixin, TestCase):
def test_consume_twice(self):
token = self.get_tokens()[0]
self.assertTrue(token.is_valid(self.user.email))
token.consume()
self.assertFalse(token.is_valid(self.user.email))
class TokenOtherErrorTest(ValidateTokenMixin, TestCase):
def test_bad_email(self):
token = self.get_tokens()[0]
self.assertFalse(token.is_valid('<EMAIL>'))
def test_expire(self):
nb_day_expire = EmailValidationToken.NB_DAY_EXPIRE + 1
new_now = timezone.now() + datetime.timedelta(days=nb_day_expire)
token = self.get_tokens()[0]
self.assertFalse(token.is_expired())
with patch.object(timezone, 'now', return_value=new_now):
token = self.get_tokens()[0]
self.assertTrue(token.is_expired())
|
dreamsxin/ultimatepp
|
uppsrc/Updater/Updater.cpp
|
<reponame>dreamsxin/ultimatepp
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
const Vector<String>& cmdline = CommandLine();
SetDefaultCharset(CHARSET_WIN1250);
if(cmdline.IsEmpty())
{
Exclamation("[* UPDATER] should be run from another applications");
return;
}
String name = cmdline[0];
UpdateFile(name);
String exec = GetExeDirFile(name);
for(int i = 1; i < cmdline.GetCount(); i++)
if(cmdline[i].Find(' ') >= 0)
exec << " \"" << cmdline[i] << "\"";
else
exec << " " << cmdline[i];
WinExec(exec, SW_SHOWNORMAL);
}
|
benhunter/ctf
|
htb/fatty-10.10.10.174/fatty-client/org/springframework/web/servlet/view/AbstractCachingViewResolver.java
|
<gh_stars>0
/* */ package org.springframework.web.servlet.view;
/* */
/* */ import java.util.LinkedHashMap;
/* */ import java.util.Locale;
/* */ import java.util.Map;
/* */ import java.util.concurrent.ConcurrentHashMap;
/* */ import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletResponse;
/* */ import org.springframework.lang.Nullable;
/* */ import org.springframework.web.context.support.WebApplicationObjectSupport;
/* */ import org.springframework.web.servlet.View;
/* */ import org.springframework.web.servlet.ViewResolver;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public abstract class AbstractCachingViewResolver
/* */ extends WebApplicationObjectSupport
/* */ implements ViewResolver
/* */ {
/* */ public static final int DEFAULT_CACHE_LIMIT = 1024;
/* */
/* 50 */ private static final View UNRESOLVED_VIEW = new View()
/* */ {
/* */ @Nullable
/* */ public String getContentType() {
/* 54 */ return null;
/* */ }
/* */
/* */
/* */
/* */ public void render(@Nullable Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) {}
/* */ };
/* */
/* */
/* 63 */ private volatile int cacheLimit = 1024;
/* */
/* */
/* */ private boolean cacheUnresolved = true;
/* */
/* */
/* 69 */ private final Map<Object, View> viewAccessCache = new ConcurrentHashMap<>(1024);
/* */
/* */
/* 72 */ private final Map<Object, View> viewCreationCache = new LinkedHashMap<Object, View>(1024, 0.75F, true)
/* */ {
/* */
/* */ protected boolean removeEldestEntry(Map.Entry<Object, View> eldest)
/* */ {
/* 77 */ if (size() > AbstractCachingViewResolver.this.getCacheLimit()) {
/* 78 */ AbstractCachingViewResolver.this.viewAccessCache.remove(eldest.getKey());
/* 79 */ return true;
/* */ }
/* */
/* 82 */ return false;
/* */ }
/* */ };
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void setCacheLimit(int cacheLimit) {
/* 93 */ this.cacheLimit = cacheLimit;
/* */ }
/* */
/* */
/* */
/* */
/* */ public int getCacheLimit() {
/* 100 */ return this.cacheLimit;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void setCache(boolean cache) {
/* 111 */ this.cacheLimit = cache ? 1024 : 0;
/* */ }
/* */
/* */
/* */
/* */
/* */ public boolean isCache() {
/* 118 */ return (this.cacheLimit > 0);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void setCacheUnresolved(boolean cacheUnresolved) {
/* 134 */ this.cacheUnresolved = cacheUnresolved;
/* */ }
/* */
/* */
/* */
/* */
/* */ public boolean isCacheUnresolved() {
/* 141 */ return this.cacheUnresolved;
/* */ }
/* */
/* */
/* */
/* */ @Nullable
/* */ public View resolveViewName(String viewName, Locale locale) throws Exception {
/* 148 */ if (!isCache()) {
/* 149 */ return createView(viewName, locale);
/* */ }
/* */
/* 152 */ Object cacheKey = getCacheKey(viewName, locale);
/* 153 */ View view = this.viewAccessCache.get(cacheKey);
/* 154 */ if (view == null) {
/* 155 */ synchronized (this.viewCreationCache) {
/* 156 */ view = this.viewCreationCache.get(cacheKey);
/* 157 */ if (view == null)
/* */ {
/* 159 */ view = createView(viewName, locale);
/* 160 */ if (view == null && this.cacheUnresolved) {
/* 161 */ view = UNRESOLVED_VIEW;
/* */ }
/* 163 */ if (view != null) {
/* 164 */ this.viewAccessCache.put(cacheKey, view);
/* 165 */ this.viewCreationCache.put(cacheKey, view);
/* */ }
/* */
/* */ }
/* */
/* */ }
/* 171 */ } else if (this.logger.isTraceEnabled()) {
/* 172 */ this.logger.trace(formatKey(cacheKey) + "served from cache");
/* */ }
/* */
/* 175 */ return (view != UNRESOLVED_VIEW) ? view : null;
/* */ }
/* */
/* */
/* */ private static String formatKey(Object cacheKey) {
/* 180 */ return "View with key [" + cacheKey + "] ";
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ protected Object getCacheKey(String viewName, Locale locale) {
/* 191 */ return viewName + '_' + locale;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void removeFromCache(String viewName, Locale locale) {
/* 204 */ if (!isCache()) {
/* 205 */ this.logger.warn("Caching is OFF (removal not necessary)");
/* */ } else {
/* */
/* 208 */ Object cachedView, cacheKey = getCacheKey(viewName, locale);
/* */
/* 210 */ synchronized (this.viewCreationCache) {
/* 211 */ this.viewAccessCache.remove(cacheKey);
/* 212 */ cachedView = this.viewCreationCache.remove(cacheKey);
/* */ }
/* 214 */ if (this.logger.isDebugEnabled())
/* */ {
/* 216 */ this.logger.debug(formatKey(cacheKey) + ((cachedView != null) ? "cleared from cache" : "not found in the cache"));
/* */ }
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void clearCache() {
/* 227 */ this.logger.debug("Clearing all views from the cache");
/* 228 */ synchronized (this.viewCreationCache) {
/* 229 */ this.viewAccessCache.clear();
/* 230 */ this.viewCreationCache.clear();
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @Nullable
/* */ protected View createView(String viewName, Locale locale) throws Exception {
/* 250 */ return loadView(viewName, locale);
/* */ }
/* */
/* */ @Nullable
/* */ protected abstract View loadView(String paramString, Locale paramLocale) throws Exception;
/* */ }
/* Location: /home/kali/ctf/htb/fatty-10.10.10.174/ftp/fatty-client.jar!/org/springframework/web/servlet/view/AbstractCachingViewResolver.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
SCS-ASSE-FS21-Group2/tapas
|
tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/application/port/out/PlaceBidForAuctionCommandPort.java
|
<gh_stars>1-10
package ch.unisg.tapas.auctionhouse.application.port.out;
public interface PlaceBidForAuctionCommandPort {
void placeBid(PlaceBidForAuctionCommand command);
}
|
754340156/NQ_quanfu
|
allrichstore/Tools/QBClass/QBClassMethod/QBShowAlert.h
|
//
// QBShowAlert.h
// YunSuLive
//
// Created by 任强宾 on 16/7/7.
// Copyright © 2016年 22. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface QBShowAlert : NSObject
//展示一个AlertController
+ (void)showAlertControllerWithTitle:(NSString *)title message:(NSString *)message style:(UIAlertControllerStyle)style actions:(NSArray *)actions atViewController:(UIViewController *)viewController;
@end
|
LuckyP86H/My-Java-Course
|
week7-sql-advanced/db-source/src/main/java/domain/repository/impl/CustomerRepositoryImpl.java
|
package domain.repository.impl;
import domain.repository.CustomerRepository;
import domain.repository.JpaCustomerRepository;
import domain.entity.Customer;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
@Repository
public class CustomerRepositoryImpl implements CustomerRepository {
@Autowired
private JpaCustomerRepository customerRepository;
@Override
public void createCustomer(Customer customer) {
customerRepository.saveAndFlush(customer);
}
@Override
public Collection<String> listAllCustomerName() {
List<Customer> list = customerRepository.findAll();
Collection<String> result = new ArrayList<>();
list.forEach(item -> {
result.add(item.getName());
});
return result;
}
@Override
public void updateCustomerName(String id, String name) {
if (StringUtils.isAnyBlank(id, name)) {
return;
}
Optional<Customer> customer = customerRepository.findById(id);
customer.ifPresent(customer1 -> customer1.setName(name));
customerRepository.save(customer.get());
}
@Override
public void deleteCustomer(String id) {
if (StringUtils.isAnyBlank(id)) {
return;
}
customerRepository.deleteById(id);
}
}
|
sddsd2332/BetterWithMods
|
src/main/java/betterwithmods/module/gameplay/miniblocks/tiles/TileCorner.java
|
<filename>src/main/java/betterwithmods/module/gameplay/miniblocks/tiles/TileCorner.java
package betterwithmods.module.gameplay.miniblocks.tiles;
import betterwithmods.module.gameplay.miniblocks.orientations.BaseOrientation;
import betterwithmods.module.gameplay.miniblocks.orientations.CornerOrientation;
import net.minecraft.nbt.NBTTagCompound;
public class TileCorner extends TileMini {
@Override
public BaseOrientation deserializeOrientation(NBTTagCompound tag) {
int o = tag.getInteger("orientation");
return CornerOrientation.VALUES[o];
}
}
|
forestvoyager/smartsheet-java-sdk
|
src/main/java/com/smartsheet/api/internal/LengthEnforcingInputStream.java
|
package com.smartsheet.api.internal;
/*
* #[license]
* Smartsheet Java SDK
* %%
* Copyright (C) 2014 - 2017 Smartsheet
* %%
* 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.
* %[license]
*/
import java.io.EOFException;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
/**
* Compare the given expected content length with the actual number of bytes read.
* Throws an exception if more bytes are read than the expected length, or if the
* stream ends before reading the expected number of bytes.
*
* If reset is called the totalBytesRead property is reset to 0.
*/
public class LengthEnforcingInputStream extends FilterInputStream {
private long expectedLength;
private long totalBytesRead = 0L;
public LengthEnforcingInputStream(InputStream inputStream, long expectedLength) {
super(inputStream);
this.expectedLength = expectedLength;
}
@Override
public synchronized int read() throws IOException {
int bytesRead = in.read();
if (bytesRead == -1) {
checkLength();
} else {
totalBytesRead += bytesRead;
checkForTooManyBytes();
}
return bytesRead;
}
@Override
public synchronized int read (byte[] b, int off, int len) throws java.io.IOException {
int bytesRead = in.read(b, off, len);
if (bytesRead == -1) {
checkLength();
} else {
totalBytesRead += bytesRead;
checkForTooManyBytes();
}
return bytesRead;
}
private void checkForTooManyBytes() throws EOFException {
if (totalBytesRead > expectedLength) {
throw new EOFException("Incorrect stream length, expected: " + expectedLength + ", actual: " + totalBytesRead);
}
}
private void checkLength() throws EOFException {
if (totalBytesRead != expectedLength) {
throw new EOFException("Incorrect stream length, expected: " + expectedLength + ", actual: " + totalBytesRead);
}
}
/**
* When reset is called the total bytes read counter is set back to 0.
* @throws IOException
*/
@Override
public synchronized void reset() throws IOException {
totalBytesRead = 0;
super.reset();
}
}
|
metalefty/mackerel-agent
|
wix/replace/shell_windows_test.go
|
<reponame>metalefty/mackerel-agent
package main
import (
"os"
"path/filepath"
"runtime"
"testing"
)
func TestMakeFallbackEnv_386(t *testing.T) {
if runtime.GOARCH != "386" {
t.Skip()
}
wdir := filepath.Join(os.Getenv("PROGRAMFILES"), "Mackerel", "mackerel-agent")
dir := FallbackConfigDir(wdir)
if dir != "" {
t.Errorf("FallbackConfigDir(%q) = %q; want %q", wdir, dir, "")
}
}
func TestMakeFallbackEnv_amd64(t *testing.T) {
if runtime.GOARCH != "amd64" {
t.Skip()
}
wdir := filepath.Join(os.Getenv("PROGRAMFILES"), "Mackerel", "mackerel-agent")
dir := FallbackConfigDir(wdir)
want := filepath.Join(os.Getenv("PROGRAMFILES(X86)"), "Mackerel", "mackerel-agent")
if dir != want {
t.Errorf("makeFallbackEnv(%q) = %q; want %q", wdir, dir, want)
}
}
|
michel-pi/xenforo-documentation
|
docs/2-1-0/df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.js
|
var class_x_f_1_1_repository_1_1_abstract_prompt =
[
[ "findPromptGroups", "df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.html#ad2d460be18c2d11ca20bc39477b45087", null ],
[ "findPromptsForList", "df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.html#aae94fb1393652228de86c41f6a7df629", null ],
[ "getClassIdentifier", "df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.html#a44fc5fdcd3b2d7e53df48d158c56c220", null ],
[ "getDefaultGroup", "df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.html#a553ee2a3e68fa4391467e09dfd32c87e", null ],
[ "getPromptListData", "df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.html#ae32df1eda9253bc8d68e46cbc9bf3106", null ],
[ "rebuildPromptMaterializedOrder", "df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.html#a5dc9327e647a6b989bccf65eee3aef15", null ]
];
|
helmutkemper/iotmaker.santa_isabel_theater.platform.webbrowser
|
eventDrag/typeEvenetDrag.go
|
<gh_stars>0
package eventDrag
type EventDrag int
func (el EventDrag) String() string {
return eventDragString[el]
}
var eventDragString = [...]string{
"drag",
"dragend",
"dragenter",
"dragleave",
"dragover",
"dragstart",
"drop",
}
const (
// KDrag
// en: The event occurs when an element is being dragged
KDrag EventDrag = iota
// KDragEnd
// en: The event occurs when the user has finished dragging an element
KDragEnd
// KDragEnter
// en: The event occurs when the dragged element enters the drop target
KDragEnter
// KDragLeave
// en: The event occurs when the dragged element leaves the drop target
KDragLeave
// KDragOver
// en: The event occurs when the dragged element is over the drop target
KDragOver
// KDragStart
// en: The event occurs when the user starts to drag an element
KDragStart
// KDrop
// en: The event occurs when the dragged element is dropped on the drop target
KDrop
)
|
Devyani606/chatwoot
|
spec/listeners/notification_listener_spec.rb
|
<gh_stars>1000+
require 'rails_helper'
describe NotificationListener do
let(:listener) { described_class.instance }
let!(:account) { create(:account) }
let!(:user) { create(:user, account: account) }
let!(:first_agent) { create(:user, account: account) }
let!(:second_agent) { create(:user, account: account) }
let!(:agent_with_out_notification) { create(:user, account: account) }
let!(:inbox) { create(:inbox, account: account) }
let!(:conversation) { create(:conversation, account: account, inbox: inbox, assignee: user) }
describe 'conversation_created' do
let(:event_name) { :'conversation.created' }
context 'when conversation is created' do
it 'creates notifications for inbox members who have notifications turned on' do
notification_setting = first_agent.notification_settings.first
notification_setting.selected_email_flags = [:email_conversation_creation]
notification_setting.selected_push_flags = []
notification_setting.save!
create(:inbox_member, user: first_agent, inbox: inbox)
conversation.reload
event = Events::Base.new(event_name, Time.zone.now, conversation: conversation)
listener.conversation_created(event)
expect(notification_setting.user.notifications.count).to eq(1)
end
it 'does not create notification for inbox members who have notifications turned off' do
notification_setting = agent_with_out_notification.notification_settings.first
notification_setting.unselect_all_email_flags
notification_setting.unselect_all_push_flags
notification_setting.save!
create(:inbox_member, user: agent_with_out_notification, inbox: inbox)
conversation.reload
event = Events::Base.new(event_name, Time.zone.now, conversation: conversation)
listener.conversation_created(event)
expect(notification_setting.user.notifications.count).to eq(0)
end
end
end
describe 'message_created' do
let(:event_name) { :'message.created' }
before do
notification_setting = first_agent.notification_settings.find_by(account_id: account.id)
notification_setting.selected_email_flags = [:email_conversation_mention]
notification_setting.selected_push_flags = []
notification_setting.save!
end
context 'when message contains mention' do
it 'creates notifications for inbox member who was mentioned' do
builder = double
allow(NotificationBuilder).to receive(:new).and_return(builder)
allow(builder).to receive(:perform)
create(:inbox_member, user: first_agent, inbox: inbox)
conversation.reload
message = build(
:message,
conversation: conversation,
account: account,
content: "hi [#{first_agent.name}](mention://user/#{first_agent.id}/#{first_agent.name})",
private: true
)
event = Events::Base.new(event_name, Time.zone.now, message: message)
listener.message_created(event)
expect(NotificationBuilder).to have_received(:new).with(notification_type: 'conversation_mention',
user: first_agent,
account: account,
primary_actor: message)
end
end
context 'when message contains multiple mentions' do
it 'creates notifications for inbox member who was mentioned' do
builder = double
allow(NotificationBuilder).to receive(:new).and_return(builder)
allow(builder).to receive(:perform)
create(:inbox_member, user: first_agent, inbox: inbox)
create(:inbox_member, user: second_agent, inbox: inbox)
conversation.reload
message = build(
:message,
conversation: conversation,
account: account,
content: "hey [#{second_agent.name}](mention://user/#{second_agent.id}/#{second_agent.name})/
[#{first_agent.name}](mention://user/#{first_agent.id}/#{first_agent.name}),
please look in to this?",
private: true
)
event = Events::Base.new(event_name, Time.zone.now, message: message)
listener.message_created(event)
expect(NotificationBuilder).to have_received(:new).with(notification_type: 'conversation_mention',
user: second_agent,
account: account,
primary_actor: message)
expect(NotificationBuilder).to have_received(:new).with(notification_type: 'conversation_mention',
user: first_agent,
account: account,
primary_actor: message)
end
end
context 'when message content is empty' do
it 'creates notifications' do
builder = double
allow(NotificationBuilder).to receive(:new).and_return(builder)
allow(builder).to receive(:perform)
create(:inbox_member, user: first_agent, inbox: inbox)
conversation.reload
message = build(
:message,
conversation: conversation,
account: account,
content: nil,
private: true
)
event = Events::Base.new(event_name, Time.zone.now, message: message)
# want to validate message_created doesnt throw an error
expect(listener.message_created(event)).to eq nil
end
end
end
end
|
Ecotrust/crks-service
|
src/main/java/com/axiomalaska/crks/vo/AbstractVO.java
|
<reponame>Ecotrust/crks-service<filename>src/main/java/com/axiomalaska/crks/vo/AbstractVO.java
package com.axiomalaska.crks.vo;
import org.hibernate.Session;
import com.axiomalaska.crks.dto.AbstractDTO;
public class AbstractVO {
public AbstractDTO createDTO(){
return new AbstractDTO();
}
protected AbstractDTO createDTO( AbstractDTO dto ){
return dto;
}
public void ingestDTO( Session session, AbstractDTO abstractDto ){
//do nothing
}
}
|
mattwalstra/2019RobotCode
|
common/track3d.cpp
|
<reponame>mattwalstra/2019RobotCode
#include <iostream>
#include <limits>
#include "track3d.hpp"
#include "hungarian.hpp"
using namespace std;
using namespace cv;
// How many consecutive frames a track must be missing before
// it is erased
const int missedFrameCountMax = 10;
/*
static Point3f screenToWorldCoords(const Rect &screen_position, double avg_depth, const Point2f &fov_size, const Size &frame_size, float cameraElevation)
{
TODO COMMENT THIS
Method:
find the center of the rect
compute the distance from the center of the rect to center of image (pixels)
convert to degrees based on fov and image size
do a polar to cartesian cordinate conversion to find x,y,z of object
Equations:
x=rsin(inclination) * cos(azimuth)
y=rsin(inclination) * sin(azimuth)
z=rcos(inclination)
Notes:
Z is up, X is left-right, and Y is forward
(0,0,0) = (r,0,0) = right in front of you
Point2f rect_center(
screen_position.tl().x + (screen_position.width / 2.0),
screen_position.tl().y + (screen_position.height / 2.0));
Point2f dist_to_center(
rect_center.x - (frame_size.width / 2.0),
-rect_center.y + (frame_size.height / 2.0));
// This uses formula from http://www.chiefdelphi.com/forums/showpost.php?p=1571187&postcount=4
float azimuth = atan(dist_to_center.x / (.5 * frame_size.width / tan(fov_size.x / 2)));
float inclination = atan(dist_to_center.y / (.5 * frame_size.height / tan(fov_size.y / 2))) - cameraElevation;
Point3f retPt(
avg_depth * cosf(inclination) * sinf(azimuth),
avg_depth * cosf(inclination) * cosf(azimuth),
avg_depth * sinf(inclination));
//cout << "Distance to center: " << dist_to_center << endl;
//cout << "Actual Inclination: " << inclination << endl;
//cout << "Actual Azimuth: " << azimuth << endl;
//cout << "Actual location: " << retPt << endl;
return retPt;
}
static Rect worldToScreenCoords(const Point3f &_position, const ObjectType &_type, const Point2f &fov_size, const Size &frame_size, float cameraElevation)
{
// TODO : replace magic numbers with an object depth property
// This constant is half a ball diameter (9.75-ish inches), converted to meters
// For example, goals will have 0 depth since we're just shooting at
// a plane. 3d objects will have depth, though, so we track the center of the
// rather than the front.
float r = sqrtf(_position.x * _position.x + _position.y * _position.y + _position.z * _position.z); // - (4.572 * 25.4)/1000.0;
float azimuth = asinf(_position.x / sqrt(_position.x * _position.x + _position.y * _position.y));
float inclination = asinf( _position.z / r ) + cameraElevation;
//inverse of formula in screenToWorldCoords()
Point2f dist_to_center(
tan(azimuth) * (0.5 * frame_size.width / tan(fov_size.x / 2)),
tan(inclination) * (0.5 * frame_size.height / tan(fov_size.y / 2)));
//cout << "Distance to center: " << dist_to_center << endl;
Point2f rect_center(
dist_to_center.x + (frame_size.width / 2.0),
-dist_to_center.y + (frame_size.height / 2.0));
Point2f angular_size( 2.0 * atan2f(_type.width(), (2.0*r)), 2.0 * atan2f(_type.height(), (2.0*r)));
Point2f screen_size(
angular_size.x * (frame_size.width / fov_size.x),
angular_size.y * (frame_size.height / fov_size.y));
Point topLeft(
cvRound(rect_center.x - (screen_size.x / 2.0)),
cvRound(rect_center.y - (screen_size.y / 2.0)));
return Rect(topLeft.x, topLeft.y, cvRound(screen_size.x), cvRound(screen_size.y));
}
*/
TrackedObject::TrackedObject(int id,
const ObjectType &type_in,
const Rect &screen_position,
double avg_depth,
const Point2f &fov_size,
const Size &frame_size,
float camera_elevation,
float dt,
float accel_noise_mag,
size_t historyLength) :
type_(type_in),
detectHistory_(historyLength),
positionHistory_(historyLength),
KF_(type_.screenToWorldCoords(screen_position, avg_depth, fov_size, frame_size, camera_elevation),
dt, accel_noise_mag),
missedFrameCount_(0),
cameraElevation_(camera_elevation)
{
setPosition(screen_position, avg_depth, fov_size, frame_size);
setDetected();
// Label with base-26 letter ID (A, B, C .. Z, AA, AB, AC, etc)
do
{
id_ += (char)(id % 26 + 'A');
id /= 26;
}
while (id != 0);
reverse(id_.begin(), id_.end());
}
#if 0
TrackedObject::~TrackedObject()
{
}
#endif
// Set the position based on x,y,z coords
void TrackedObject::setPosition(const Point3f &new_position)
{
position_ = new_position;
addToPositionHistory(position_);
}
// Set the position based on a rect on the screen and depth info from the zed
void TrackedObject::setPosition(const Rect &screen_position, double avg_depth,
const Point2f &fov_size, const Size &frame_size)
{
setPosition(type_.screenToWorldCoords(screen_position, avg_depth, fov_size, frame_size, cameraElevation_));
}
#if 0
void TrackedObject::adjustPosition(const Eigen::Transform<double, 3, Eigen::Isometry> &delta_robot)
{
//Eigen::AngleAxisd rot(0.5*M_PI, Eigen::Vector3d::UnitZ());
Eigen::Vector3d old_pos_vec(_position.x, _position.y, _position.z);
Eigen::Vector3d new_pos_vec = delta_robot * old_pos_vec;
position_ = Point3f(new_pos_vec[0], new_pos_vec[1], new_pos_vec[2]);
for (auto it = positionHistory_.begin(); it != positionHistory_.end(); ++it)
{
Eigen::Vector3d old_pos_vector(it->x, it->y, it->z);
Eigen::Vector3d new_pos_vector = delta_robot * old_pos_vector;
*it = Point3f(new_pos_vector[0], new_pos_vector[1], new_pos_vector[2]);
}
}
#endif
void TrackedObject::adjustPosition(const Mat &transform_mat, float depth, const Point2f &fov_size, const Size &frame_size)
{
//get the position of the object on the screen
Rect screen_rect = getScreenPosition(fov_size,frame_size);
Point screen_pos(screen_rect.tl().x + screen_rect.width / 2, screen_rect.tl().y + screen_rect.height / 2);
//create a matrix to hold positon for matrix multiplication
Mat pos_mat(3,1,CV_64FC1);
pos_mat.at<double>(0,0) = screen_pos.x;
pos_mat.at<double>(0,1) = screen_pos.y;
pos_mat.at<double>(0,2) = 1.0;
//correct the position
Mat new_screen_pos_mat(3,1,CV_64FC1);
new_screen_pos_mat = transform_mat * pos_mat;
Point new_screen_pos(new_screen_pos_mat.at<double>(0),new_screen_pos_mat.at<double>(1));
//create a dummy bounding rect because setPosition requires a bounding rect as an input rather than a point
Rect new_screen_rect(new_screen_pos.x,new_screen_pos.y,0,0);
setPosition(new_screen_rect,depth,fov_size,frame_size);
//update the history
for (auto it = positionHistory_.begin(); it != positionHistory_.end(); ++it)
{
screen_rect = type_.worldToScreenCoords(*it,fov_size,frame_size, cameraElevation_);
screen_pos = Point(screen_rect.tl().x + screen_rect.width / 2, screen_rect.tl().y + screen_rect.height / 2);
pos_mat.at<double>(0,0) = screen_pos.x;
pos_mat.at<double>(0,1) = screen_pos.y;
pos_mat.at<double>(0,2) = 1.0;
Mat new_screen_pos_mat = transform_mat * pos_mat;
Point new_screen_pos(new_screen_pos_mat.at<double>(0),new_screen_pos_mat.at<double>(1));
Rect new_screen_rect(new_screen_pos.x,new_screen_pos.y,0,0);
*it = type_.screenToWorldCoords(new_screen_rect, depth, fov_size, frame_size, cameraElevation_);
}
}
// Mark the object as detected in this frame
void TrackedObject::setDetected(void)
{
detectHistory_.push_back(true);
missedFrameCount_ = 0;
}
// Clear the object detect flag for this frame.
// Probably should only happen when moving to a new
// frame, but may be useful in other cases
void TrackedObject::clearDetected(void)
{
detectHistory_.push_back(false);
missedFrameCount_ += 1;
}
bool TrackedObject::tooManyMissedFrames(void) const
{
// Hard limit on the number of consecutive missed
// frames before dropping a track
if (missedFrameCount_ > missedFrameCountMax)
return true;
// Be more aggressive about dropping tracks which
// haven't been around long - kill them off if
// they are seen in less than 33% of frames
if (detectHistory_.size() <= 10)
{
size_t detectCount = 0;
for (auto it = detectHistory_.begin(); it != detectHistory_.end(); ++it)
if (*it)
detectCount += 1;
if (((double)detectCount / detectHistory_.size()) <= 0.34)
return true;
}
return false;
}
// Keep a history of the most recent positions
// of the object in question
void TrackedObject::addToPositionHistory(const Point3f &pt)
{
positionHistory_.push_back(pt);
}
// Return a vector of points of the position history
// of the object (hopefully) relative to current screen location
vector <Point> TrackedObject::getScreenPositionHistory(const Point2f &fov_size, const Size &frame_size) const
{
vector <Point> ret;
for (auto it = positionHistory_.begin(); it != positionHistory_.end(); ++it)
{
Rect screen_rect(type_.worldToScreenCoords(*it,fov_size,frame_size, cameraElevation_));
ret.push_back(Point(cvRound(screen_rect.x + screen_rect.width / 2.),cvRound( screen_rect.y + screen_rect.height / 2.)));
}
return ret;
}
const double minDisplayRatio = 0.3;
// Return the percent of last detectHistory_.capacity() frames
// the object was seen
double TrackedObject::getDetectedRatio(void) const
{
// Need at least 2 frames to believe there's something real
if (detectHistory_.size() <= 1)
return 0.01;
// Don't display stuff which hasn't been detected recently.
if (missedFrameCount_ >= 3)
return 0.01;
size_t detectCount = 0;
for (auto it = detectHistory_.begin(); it != detectHistory_.end(); ++it)
if (*it)
detectCount += 1;
// For newly added tracks make sure only 1 frame is missed at most
// while the first quarter of the buffer is filled and at most
// two are missed while filling up to half the size of the buffer
if (detectHistory_.size() < (detectHistory_.capacity()/2))
{
if (detectCount < (detectHistory_.size() - 2))
return 0.01;
if ((detectHistory_.size() <= (detectHistory_.capacity()/4)) && (detectCount < (detectHistory_.size() - 1)))
return 0.01;
// Ramp up from minDisplayRatio so that at 10 hits it will
// end up at endRatio = 10/20 = 50% or 9/20 = 45%
// 2:2 = 32.5%
// 3:3 = 35%
// 4:4 = 37.5%
// 5:5 = 40%
// 6:6 = 42.5%
// 7:7 = 45%
// 8:8 = 47.5%
// 9:9 = 50%
double endRatio = (detectHistory_.capacity() / 2.0 - (detectHistory_.size() - detectCount)) / detectHistory_.capacity();
return minDisplayRatio + (detectHistory_.size() - 2.0) * (endRatio - minDisplayRatio) / (detectHistory_.capacity() / 2.0 - 2.0);
}
double detectRatio = (double)detectCount / detectHistory_.capacity();
return detectRatio;
}
Rect TrackedObject::getScreenPosition(const Point2f &fov_size, const Size &frame_size) const
{
return type_.worldToScreenCoords(position_, fov_size, frame_size, cameraElevation_);
}
//fit the contour of the object into the rect of it and return the area of that
//kinda gimmicky but pretty cool and might have uses in the future
double TrackedObject::contourArea(const Point2f &fov_size, const Size &frame_size) const
{
Rect screen_position = getScreenPosition(fov_size, frame_size);
float scale_factor_x = (float)screen_position.width / type_.width();
float scale_factor_y = (float)screen_position.height / type_.height();
float scale_factor = min(scale_factor_x, scale_factor_y);
vector<Point2f> scaled_contour;
for(size_t i = 0; i < type_.shape().size(); i++)
{
scaled_contour.push_back(type_.shape()[i] * scale_factor);
}
return cv::contourArea(scaled_contour);
}
Point3f TrackedObject::predictKF(void)
{
return KF_.GetPrediction();
}
Point3f TrackedObject::updateKF(Point3f pt)
{
return KF_.Update(pt);
}
#if 0
void TrackedObject::adjustKF(const Eigen::Transform<double, 3, Eigen::Isometry> &delta_robot)
{
KF_.adjustPrediction(delta_robot);
}
#endif
void TrackedObject::adjustKF(Point3f delta_pos)
{
KF_.adjustPrediction(delta_pos);
}
//Create a tracked object list
// those stay constant for the entire length of the run
TrackedObjectList::TrackedObjectList(const Size &imageSize, const Point2f &fovSize, float cameraElevation) :
detectCount_(0),
imageSize_(imageSize),
fovSize_(fovSize),
cameraElevation_(cameraElevation)
{
}
#if 0
// Adjust position for camera motion between frames using fovis
void TrackedObjectList::adjustLocation(const Eigen::Transform<double, 3, Eigen::Isometry> &delta_robot)
{
for (auto it = list_.begin(); it != list_.end(); ++it)
{
it->adjustPosition(delta_robot);
it->adjustKF(delta_robot);
}
}
#endif
// Adjust position for camera motion between frames using optical flow
void TrackedObjectList::adjustLocation(const Mat &transform_mat)
{
for (auto it = list_.begin(); it != list_.end(); ++it)
{
//measure the amount that the position changed and apply the same change to the kalman filter
Point3f old_pos = it->getPosition();
//compute r and use it for depth (assume depth doesn't change)
float r = sqrt(it->getPosition().x * it->getPosition().x + it->getPosition().y * it->getPosition().y + it->getPosition().z * it->getPosition().z);
it->adjustPosition(transform_mat, r, fovSize_, imageSize_);
Point3f delta_pos = it->getPosition() - old_pos;
it->adjustKF(delta_pos);
}
}
// Get position history for each tracked object
vector<vector<Point>> TrackedObjectList::getScreenPositionHistories(void) const
{
vector<vector<Point>> ret;
for (auto it = list_.begin(); it != list_.end(); ++it)
ret.push_back(it->getScreenPositionHistory(fovSize_, imageSize_));
return ret;
}
// Simple printout of list into stdout
void TrackedObjectList::print(void) const
{
for (auto it = list_.cbegin(); it != list_.cend(); ++it)
{
cout << it->getId() << " location ";
Point3f position = it->getPosition();
cout << "(" << position.x << "," << position.y << "," << position.z << ")" << endl;
}
}
// Return list of detect info for external processing
void TrackedObjectList::getDisplay(vector<TrackedObjectDisplay> &displayList) const
{
displayList.clear();
TrackedObjectDisplay tod;
for (auto it = list_.cbegin(); it != list_.cend(); ++it)
{
tod.id = it->getId();
tod.rect = it->getScreenPosition(fovSize_, imageSize_);
tod.ratio = it->getDetectedRatio();
tod.position = it->getPosition();
tod.name = it->getType().name();
displayList.push_back(tod);
}
}
const double dist_thresh_ = 1.0; // FIX ME!
//#define VERBOSE_TRACK
// Process a set of detected rectangles
// Each will either match a previously detected object or
// if not, be added as new object to the list
void TrackedObjectList::processDetect(const vector<Rect> &detectedRects,
const vector<float> &depths,
const vector<ObjectType> &types)
{
vector<Point3f> detectedPositions;
#ifdef VERBOSE_TRACK
if (detectedRects.size() || list_.size())
cout << "---------- Start of process detect --------------" << endl;
print();
if (detectedRects.size() > 0)
cout << detectedRects.size() << " detected objects" << endl;
#endif
for (size_t i = 0; i < detectedRects.size(); i++)
{
detectedPositions.push_back(
types[i].screenToWorldCoords(detectedRects[i], depths[i], fovSize_, imageSize_, cameraElevation_));
#ifdef VERBOSE_TRACK
cout << "Detected rect [" << i << "] = " << detectedRects[i] << " positions[" << detectedPositions.size() - 1 << "]:" << detectedPositions[detectedPositions.size()-1] << endl;
#endif
}
// TODO :: Combine overlapping detections into one?
// Maps tracks to the closest new detected object.
// assignment[track] = index of closest detection
vector<int> assignment;
if (list_.size())
{
size_t tracks = list_.size(); // number of tracked objects from prev frames
size_t detections = detectedPositions.size(); // number of detections this frame
//Cost[t][d] is the distance between old tracked location t
//and newly detected object d's position
vector< vector<double> > Cost(tracks,vector<double>(detections));
// Calculate cost for each track->pair combo
// The cost here is just the distance between them
// Also check to see if the types are the same, if they are not then set the cost extremely high so that it's never matched
auto it = list_.cbegin();
for(size_t t = 0; t < tracks; ++t, ++it)
{
// Point3f prediction=tracks[t]->prediction;
// cout << prediction << endl;
for(size_t d = 0; d < detections; d++)
{
const ObjectType it_type = it->getType();
if(types[d] == it_type) {
Point3f diff = it->getPosition() - detectedPositions[d];
Cost[t][d] = sqrtf(diff.x * diff.x + diff.y * diff.y + diff.z * diff.z);
} else {
Cost[t][d] = numeric_limits<double>::max();
}
}
}
// Solving assignment problem (find minimum-cost assignment
// between tracks and previously-predicted positions)
AssignmentProblemSolver APS;
APS.Solve(Cost, assignment, AssignmentProblemSolver::optimal);
#ifdef VERBOSE_TRACK
// assignment[i] holds the index of the detection assigned
// to track i. assignment[i] is -1 if no detection was
// matchedto that particular track
cout << "After APS : "<<endl;
for(size_t i = 0; i < assignment.size(); i++)
cout << i << ":" << assignment[i] << endl;
#endif
// clear assignment from pairs with large distance
for(size_t i = 0; i < assignment.size(); i++)
if ((assignment[i] != -1) && (Cost[i][assignment[i]] > dist_thresh_))
assignment[i] = -1;
}
// Search for unassigned detects and start new tracks for them.
// This will also handle the case where no tracks are present,
// since assignment will be empty in that case - everything gets added
for(size_t i = 0; i < detectedPositions.size(); i++)
{
if (find(assignment.begin(), assignment.end(), i) == assignment.end())
{
#ifdef VERBOSE_TRACK
cout << "New assignment created " << i << endl;
#endif
list_.push_back(TrackedObject(detectCount_++, types[i], detectedRects[i], depths[i], fovSize_, imageSize_, cameraElevation_));
#ifdef VERBOSE_TRACK
cout << "New assignment finished" << endl;
#endif
}
}
auto tr = list_.begin();
auto as = assignment.begin();
while ((tr != list_.end()) && (as != assignment.end()))
{
// If track updated less than one time, than filter state is not correct.
#ifdef VERBOSE_TRACK
cout << "Predict: " << endl;
#endif
Point3f prediction = tr->predictKF();
#ifdef VERBOSE_TRACK
cout << "prediction:" << prediction << endl;
#endif
if(*as != -1) // If we have assigned detect, then update using its coordinates
{
#ifdef VERBOSE_TRACK
cout << "Update match: " << endl;
#endif
tr->setPosition(tr->updateKF(detectedPositions[*as]));
#ifdef VERBOSE_TRACK
cout << tr->getScreenPosition(fovSize_, imageSize_) << endl;
#endif
tr->setDetected();
}
else // if not continue using predictions
{
#ifdef VERBOSE_TRACK
cout << "Update no match: " << endl;
#endif
tr->setPosition(tr->updateKF(prediction));
#ifdef VERBOSE_TRACK
cout << tr->getScreenPosition(fovSize_, imageSize_) << endl;
#endif
tr->clearDetected();
}
++tr;
++as;
}
// Remove tracks which haven't been seen in a while
for (auto it = list_.begin(); it != list_.end(); )
{
if (it->tooManyMissedFrames()) // For now just remove ones for
{ // which detectList is empty
#ifdef VERBOSE_TRACK
cout << "Dropping " << it->getId() << endl;
#endif
it = list_.erase(it);
}
else
{
++it;
}
}
#ifdef VERBOSE_TRACK
print();
if (detectedRects.size() || list_.size())
cout << "---------- End of process detect --------------" << endl;
#endif
}
|
hiya492/spring
|
persistence/simple-jpa/src/test/java/org/springbyexample/orm/jpa/inheritance/dao/PersonInheritanceDaoTest.java
|
/*
* Copyright 2007-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* 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.springbyexample.orm.jpa.inheritance.dao;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.sql.SQLException;
import java.util.Collection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springbyexample.orm.jpa.inheritance.bean.Address;
import org.springbyexample.orm.jpa.inheritance.bean.Person;
import org.springbyexample.orm.jpa.inheritance.bean.Professional;
import org.springbyexample.orm.jpa.inheritance.bean.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* Tests Person DAO.
*
* @author <NAME>
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class PersonInheritanceDaoTest {
final Logger logger = LoggerFactory.getLogger(PersonInheritanceDaoTest.class);
@Autowired
protected PersonInheritanceDao personDao = null;
@Test
@DirtiesContext // reset context so in memory DB re-inits
public void testHibernateTemplate() throws SQLException {
assertNotNull("Person DAO is null.", personDao);
Collection<Person> lPersons = personDao.findPersons();
int expected = 3;
assertNotNull("Person list is null.", lPersons);
assertEquals("Number of persons should be " + expected + ".", expected, lPersons.size());
Integer firstId = new Integer(1);
Integer secondId = new Integer(2);
for (Person person : lPersons) {
assertNotNull("Person is null.", person);
if (firstId.equals(person.getId())) {
String firstName = "Joe";
String lastName = "Smith";
String schoolName = "NYU";
int expectedAddresses = 1;
assertEquals("Person first name should be " + firstName + ".", firstName, person.getFirstName());
assertEquals("Person last name should be " + lastName + ".", lastName, person.getLastName());
assertNotNull("Person's address list is null.", person.getAddresses());
assertEquals("Number of person's address list should be " + expectedAddresses + ".", expectedAddresses, person.getAddresses().size());
assertTrue("Person should be an instance of student.", (person instanceof Student));
assertEquals("School name should be " + schoolName + ".", schoolName, ((Student)person).getSchoolName());
Integer addressId = new Integer(1);
String addr = "1060 West Addison St.";
String city = "Chicago";
String state = "IL";
String zipPostal = "60613";
for (Address address : person.getAddresses()) {
assertNotNull("Address is null.", address);
assertEquals("Address id should be '" + addressId + "'.", addressId, address.getId());
assertEquals("Address address should be '" + address + "'.", addr, address.getAddress());
assertEquals("Address city should be '" + city + "'.", city, address.getCity());
assertEquals("Address state should be '" + state + "'.", state, address.getState());
assertEquals("Address zip/postal should be '" + zipPostal + "'.", zipPostal, address.getZipPostal());
}
} else if (secondId.equals(person.getId())) {
String firstName = "John";
String lastName = "Wilson";
String companyName = "<NAME>";
int expectedAddresses = 2;
assertEquals("Person first name should be " + firstName + ".", firstName, person.getFirstName());
assertEquals("Person last name should be " + lastName + ".", lastName, person.getLastName());
assertNotNull("Person's address list is null.", person.getAddresses());
assertEquals("Number of person's address list should be " + expectedAddresses + ".", expectedAddresses, person.getAddresses().size());
assertTrue("Person should be an instance of professional.", (person instanceof Professional));
assertEquals("Company name should be " + companyName + ".", companyName, ((Professional)person).getCompanyName());
Integer addressId = new Integer(3);
String addr = "47 Howard St.";
String city = "San Francisco";
String state = "CA";
String zipPostal = "94103";
for (Address address : person.getAddresses()) {
assertNotNull("Address is null.", address);
if (addressId.equals(address.getId())) {
assertEquals("Address id should be '" + addressId + "'.", addressId, address.getId());
assertEquals("Address address should be '" + address + "'.", addr, address.getAddress());
assertEquals("Address city should be '" + city + "'.", city, address.getCity());
assertEquals("Address state should be '" + state + "'.", state, address.getState());
assertEquals("Address zip/postal should be '" + zipPostal + "'.", zipPostal, address.getZipPostal());
}
}
}
logger.debug(person.toString());
}
}
}
|
antopen/alipay-sdk-python-all
|
alipay/aop/api/response/AlipayTradeOverseasSettleResponse.py
|
<reponame>antopen/alipay-sdk-python-all
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayTradeOverseasSettleResponse(AlipayResponse):
def __init__(self):
super(AlipayTradeOverseasSettleResponse, self).__init__()
self._exchange_rate = None
self._foreign_settle_amount = None
self._foreign_settle_currency = None
self._out_request_no = None
self._settle_amount = None
self._trade_no = None
@property
def exchange_rate(self):
return self._exchange_rate
@exchange_rate.setter
def exchange_rate(self, value):
self._exchange_rate = value
@property
def foreign_settle_amount(self):
return self._foreign_settle_amount
@foreign_settle_amount.setter
def foreign_settle_amount(self, value):
self._foreign_settle_amount = value
@property
def foreign_settle_currency(self):
return self._foreign_settle_currency
@foreign_settle_currency.setter
def foreign_settle_currency(self, value):
self._foreign_settle_currency = value
@property
def out_request_no(self):
return self._out_request_no
@out_request_no.setter
def out_request_no(self, value):
self._out_request_no = value
@property
def settle_amount(self):
return self._settle_amount
@settle_amount.setter
def settle_amount(self, value):
self._settle_amount = value
@property
def trade_no(self):
return self._trade_no
@trade_no.setter
def trade_no(self, value):
self._trade_no = value
def parse_response_content(self, response_content):
response = super(AlipayTradeOverseasSettleResponse, self).parse_response_content(response_content)
if 'exchange_rate' in response:
self.exchange_rate = response['exchange_rate']
if 'foreign_settle_amount' in response:
self.foreign_settle_amount = response['foreign_settle_amount']
if 'foreign_settle_currency' in response:
self.foreign_settle_currency = response['foreign_settle_currency']
if 'out_request_no' in response:
self.out_request_no = response['out_request_no']
if 'settle_amount' in response:
self.settle_amount = response['settle_amount']
if 'trade_no' in response:
self.trade_no = response['trade_no']
|
angaza/nexus-embedded
|
nexus/test/test_nexus_keycode_pro_extended.c
|
<gh_stars>1-10
#include "include/nx_common.h"
#include "src/nexus_common_internal.h"
#include "src/nexus_keycode_core.h"
#include "src/nexus_keycode_mas.h"
#include "src/nexus_keycode_pro.h"
#include "src/nexus_keycode_pro_extended.h"
#include "src/nexus_nv.h"
#include "src/nexus_util.h"
#include "unity.h"
#include "utils/crc_ccitt.h"
#include "utils/siphash_24.h"
// Other support libraries
#include <mock_nxp_common.h>
#include <mock_nxp_keycode.h>
// we don't use channel, but some common init code imports it
#include <mock_nexus_channel_core.h>
#include <stdbool.h>
#include <string.h>
#pragma GCC diagnostic push
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
/********************************************************
* DEFINITIONS
*******************************************************/
/********************************************************
* PRIVATE TYPES
*******************************************************/
/********************************************************
* PRIVATE DATA
*******************************************************/
struct nx_common_check_key TEST_KEY = {{
0xFE,
0xFE,
0xFE,
0xFE,
0xFE,
0xFE,
0xFE,
0xFE,
0xA2,
0xA2,
0xA2,
0xA2,
0xA2,
0xA2,
0xA2,
0xA2,
}};
// All smallpad bit commands commands validated against TEST_KEY
uint8_t bitstream_bytes_set_wipe[4] = {0};
uint8_t bitstream_bytes_unsupported_cmd[4] = {0};
uint8_t bitstream_bytes_unsupported_action[4] = {0};
struct nexus_bitstream VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5;
struct nexus_bitstream VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE;
// test message which is populated in some tests
struct nexus_keycode_pro_extended_small_message message;
/********************************************************
* PRIVATE FUNCTIONS
*******************************************************/
// convenience function used to fill a smallpad keycode frame
struct nexus_keycode_frame small_nexus_keycode_frame_filled(const char* keys)
{
struct nexus_keycode_frame frame = {0};
for (uint32_t i = 0; keys[i] != '\0'; ++i)
{
NEXUS_ASSERT(i < NEXUS_KEYCODE_MAX_MESSAGE_LENGTH,
"too many keys for frame");
frame.keys[i] = keys[i];
++frame.length;
}
return frame;
}
// Used to initialize protocol for testing the 'small' alphabet protocol
static void _small_fixture_reinit(const char start_char, const char* alphabet)
{
const struct nexus_keycode_handling_config small_config = {
nexus_keycode_pro_small_parse_and_apply,
nexus_keycode_pro_small_init,
NEXUS_KEYCODE_PROTOCOL_NO_STOP_LENGTH,
start_char,
'~', // no end char for small protocol, pick something arbitrary
alphabet};
_nexus_keycode_core_internal_init(&small_config);
}
// Setup (called before any 'test_*' function is called, automatically)
void setUp(void)
{
// ignore NV read/writes
nxp_common_nv_read_IgnoreAndReturn(true);
nxp_common_nv_write_IgnoreAndReturn(true);
_small_fixture_reinit('*', "0123");
// ensure we overwrite all fields, ensure parsers do populate them
memset(&message, 0xBA, sizeof(message));
memset(&bitstream_bytes_set_wipe, 0x00, sizeof(bitstream_bytes_set_wipe));
memset(&bitstream_bytes_unsupported_cmd,
0x00,
sizeof(bitstream_bytes_unsupported_cmd));
memset(&bitstream_bytes_unsupported_action,
0x00,
sizeof(bitstream_bytes_unsupported_action));
nexus_bitstream_init(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5,
bitstream_bytes_set_wipe,
sizeof(bitstream_bytes_set_wipe) * 8,
0);
nexus_bitstream_init(&VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE,
bitstream_bytes_unsupported_cmd,
sizeof(bitstream_bytes_unsupported_cmd) * 8,
0);
// app type, 1 = NXC (1 bit)
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
// 0 = SET + WIPE RESTRICTED (3 bits)
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
// upper two bits 0b01 (for 5)
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
// interval ID 105 (0b01101001)
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
// 12 MAC bits for MSG ID 5 with the above
// 0b101101111110
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 0);
NEXUS_ASSERT(
VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5.length == 26,
"Invalid initialized bitstream length");
// app type, 1 = NXC (1 bit)
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE, 1);
// 0b101 = 5 = unknown command type (3 bits)
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE, 1);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE, 0);
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE, 1);
for (uint8_t i = 0; i < 22; i++)
{
// remaining bit contents dont matter
nexus_bitstream_push_bit(
&VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE, 1);
}
NEXUS_ASSERT(VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE.length ==
26,
"Invalid initialized bitstream length");
// skip first bit (passthrough app ID) as origin command functions expect
// this bit to already be evaluated
nexus_bitstream_set_bit_position(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, 1);
nexus_bitstream_set_bit_position(
&VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE, 1);
}
// Teardown (called after any 'test_*' function is called, automatically)
void tearDown(void)
{
}
void test_smallpad_bitstream_parse_message__valid_types__returns_true(void)
{
bool result = nexus_keycode_pro_extended_small_parse(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, &message);
TEST_ASSERT_TRUE(result);
}
void test_smallpad_bitstream_parse_message__unsupported_messages__returns_false(
void)
{
bool result = nexus_keycode_pro_extended_small_parse(
&VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE, &message);
TEST_ASSERT_FALSE(result);
}
void test_smallpad_bitstream_infer_fields_compute_auth__valid_messages__validate_ok(
void)
{
bool result = nexus_keycode_pro_extended_small_parse(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, &message);
TEST_ASSERT_TRUE(result);
// no keycode IDs consumed in the window initially
struct nexus_window keycode_window;
nexus_keycode_pro_get_current_message_id_window(&keycode_window);
result = nexus_keycode_pro_extended_small_infer_windowed_message_id(
&message, &keycode_window, &TEST_KEY);
TEST_ASSERT_TRUE(result);
TEST_ASSERT_EQUAL_UINT(5, message.inferred_message_id);
}
void test_smallpad_bitstream_infer_fields_compute_auth__invalid_messages__doesnt_validate(
void)
{
bool result = nexus_keycode_pro_extended_small_parse(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, &message);
TEST_ASSERT_TRUE(result);
struct nexus_keycode_pro_extended_small_message invalid_mac_message;
memcpy(&invalid_mac_message, &message, sizeof(message));
// change the MAC field of the parsed message before proceeding by 1
invalid_mac_message.check += 1;
// no keycode IDs consumed in the window initially
struct nexus_window keycode_window;
nexus_keycode_pro_get_current_message_id_window(&keycode_window);
result = nexus_keycode_pro_extended_small_infer_windowed_message_id(
&invalid_mac_message, &keycode_window, &TEST_KEY);
TEST_ASSERT_FALSE(result);
// try an unsupported origin command type
struct nexus_keycode_pro_extended_small_message unsupported_command_message;
memcpy(&unsupported_command_message, &message, sizeof(message));
unsupported_command_message.type_code =
NEXUS_CHANNEL_OM_COMMAND_TYPE_ACCESSORY_ACTION_UNLOCK;
result = nexus_keycode_pro_extended_small_infer_windowed_message_id(
&unsupported_command_message, &keycode_window, &TEST_KEY);
TEST_ASSERT_FALSE(result);
}
void test_smallpad_apply_message__valid_message__applied_feedback_correct(void)
{
bool result = nexus_keycode_pro_extended_small_parse(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5, &message);
TEST_ASSERT_TRUE(result);
uint32_t expected_seconds =
nexus_keycode_pro_small_get_set_credit_increment_days(
(uint8_t) message.body.set_credit_wipe_flag.increment_id) *
NEXUS_KEYCODE_PRO_SECONDS_IN_DAY;
nxp_keycode_get_secret_key_ExpectAndReturn(TEST_KEY);
nxp_keycode_payg_credit_set_ExpectAndReturn(expected_seconds, true);
nxp_common_nv_write_StopIgnore();
// once for set credit, once for restricted flag.
nxp_common_nv_write_ExpectAnyArgsAndReturn(true);
nxp_common_nv_write_ExpectAnyArgsAndReturn(true);
nxp_keycode_notify_custom_flag_changed_Expect(
NX_KEYCODE_CUSTOM_FLAG_RESTRICTED, false);
nxp_keycode_feedback_start_ExpectAndReturn(
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_APPLIED, true);
enum nexus_keycode_pro_response response =
nexus_keycode_pro_extended_small_apply(&message);
TEST_ASSERT_EQUAL_UINT(NEXUS_KEYCODE_PRO_RESPONSE_VALID_APPLIED, response);
nxp_keycode_get_secret_key_ExpectAndReturn(TEST_KEY);
// applying again fails, since the keycode message ID is already set.
nxp_keycode_feedback_start_ExpectAndReturn(
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_INVALID, true);
response = nexus_keycode_pro_extended_small_apply(&message);
TEST_ASSERT_EQUAL(NEXUS_KEYCODE_PRO_RESPONSE_INVALID, response);
}
void test_smallpad_apply_message_end_to_end__set_credit_wipe_restricted__interacts_correctly_with_set_credit(
void)
{
struct test_scenario
{
const char* frame_body;
uint8_t id;
uint32_t expected_credit_seconds;
enum nexus_keycode_pro_small_type_codes expected_type_code;
enum nexus_keycode_pro_response expected_response;
enum nxp_keycode_feedback_type expected_feedback;
bool is_wipe_flag_keycode; // only wipe code, not set + wipe
const char* alphabet;
};
nxp_common_nv_read_IgnoreAndReturn(true);
const struct test_scenario scenarios[] = {
{
// ExtendedSmallMessageType.SET_CREDIT_WIPE_RESTRICTED_FLAG,
// id_=0,
// days=915,
// secret_key=b'\xfe'*8 + b'\xa2' * 8).to_keycode()
// 155 222 234 423 344
"33000012201122",
0,
928 * 24 * 3600,
NEXUS_KEYCODE_PRO_SMALL_TYPE_PASSTHROUGH,
NEXUS_KEYCODE_PRO_RESPONSE_INVALID, // unused
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_APPLIED,
false,
"0123",
},
{
// In [21]: SetCreditSmallMessage(id_=13, days=5,
// secret_key=b'\xfe'*8 + b'\xa2' * 8).to_keycode() Out[21]: '124
// 555 332 453 453'
"02333110231231",
13,
5 * 24 * 3600,
NEXUS_KEYCODE_PRO_SMALL_ACTIVATION_SET_CREDIT_TYPE,
NEXUS_KEYCODE_PRO_RESPONSE_VALID_APPLIED,
NXP_KEYCODE_FEEDBACK_TYPE_NONE, // unused
false,
"0123",
},
{
// In [28]: code = ExtendedSmallMessage(id_=15, days=0,
// type_=ExtendedSmallMessageType.SET_CREDIT_WIPE_RESTRICTED_FLAG,
// secret_key=secret_key) In [29]: code.extended_message_id Out[29]:
// 15 In [30]: code.to_keycode() Out[30]: '153 324 434 455 545'
// 53324434455545
"31102212233323",
15,
0,
NEXUS_KEYCODE_PRO_SMALL_TYPE_PASSTHROUGH,
NEXUS_KEYCODE_PRO_RESPONSE_INVALID, // unused
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_APPLIED,
false,
"0123",
},
{
// same as above, should be 'invalid'
"31102212233323",
15,
0,
NEXUS_KEYCODE_PRO_SMALL_TYPE_PASSTHROUGH,
NEXUS_KEYCODE_PRO_RESPONSE_INVALID, // unused
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_INVALID,
false,
"0123",
},
{
// ExtendedSmallMessageType.SET_CREDIT_WIPE_RESTRICTED_FLAG,
// id_=60,
// days=SmallMessage.UNLOCK_FLAG,
// secret_key=b'\xfe'*8 + b'\xa2' * 8).to_keycode()
// "123 245 222 535 225"
"01023000313003",
60,
NEXUS_KEYCODE_PRO_SMALL_UNLOCK_INCREMENT,
NEXUS_KEYCODE_PRO_SMALL_TYPE_PASSTHROUGH,
NEXUS_KEYCODE_PRO_RESPONSE_INVALID, // unused
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_APPLIED,
false,
"0123",
},
{
// In [25]: SetCreditSmallMessage(id_=63, days=200,
// secret_key=b'\xfe'*8 + b'\xa2' * 8).to_keycode() Out[25]: '142
// 223 242 233 324'
"20001020011102",
63,
200 * 24 * 3600,
NEXUS_KEYCODE_PRO_SMALL_ACTIVATION_SET_CREDIT_TYPE,
NEXUS_KEYCODE_PRO_RESPONSE_VALID_APPLIED,
NXP_KEYCODE_FEEDBACK_TYPE_NONE, // unused
false,
"0123",
},
{
// In [30]: CustomCommandSmallMessage(78,
// CustomCommandSmallMessageType.WIPE_RESTRICTED_FLAG, b'\xfe' * 8 +
// b'\xa2' * 8).to_keycode() Out[30]: '143 455 425 525 232'
"21233203303010",
78,
0, // unused
NEXUS_KEYCODE_PRO_SMALL_ACTIVATION_SET_CREDIT_TYPE,
NEXUS_KEYCODE_PRO_RESPONSE_VALID_APPLIED,
NXP_KEYCODE_FEEDBACK_TYPE_NONE, // unused
true,
"0123",
},
{
// In [31]: SetCreditSmallMessage(id_=80, days=33,
// secret_key=b'\xfe'*8 + b'\xa2' * 8).to_keycode() Out[31]: '144
// 433 335 332 243'
"22211113110021",
80,
33 * 24 * 3600,
NEXUS_KEYCODE_PRO_SMALL_ACTIVATION_SET_CREDIT_TYPE,
NEXUS_KEYCODE_PRO_RESPONSE_VALID_APPLIED,
NXP_KEYCODE_FEEDBACK_TYPE_NONE, // unused
false,
"0123",
},
{
// In [18]: secret_key=b"\xfe" * 8 + b"\xa2" * 8
// In [19]: code = ExtendedSmallMessage(id_=90,
// days=365,
// type_=ExtendedSmallMessageType.SET_CREDIT_WIPE_RESTRICTED_FLAG,
// secret_key=secret_key).to_keycode()
// '132 223 555 342 554'
"10001333120332",
90,
368 * 24 * 3600,
NEXUS_KEYCODE_PRO_SMALL_TYPE_PASSTHROUGH,
NEXUS_KEYCODE_PRO_RESPONSE_INVALID, // unused
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_APPLIED,
false,
"0123",
},
{
// In [18]: secret_key=b"\xfe" * 8 + b"\xa2" * 8
// In [19]: code = ExtendedSmallMessage(id_=105,
// days=ExtendedSmallMessage.UNLOCK_FLAG,
// type_=ExtendedSmallMessageType.SET_CREDIT_WIPE_RESTRICTED_FLAG,
// secret_key=secret_key) In [20]: code.to_keycode() Out[20]: '134
// 542 222 342 444' In [21]: code.extended_message_id Out[21]: 105
// 34542222342444
"12320000120222",
105,
NEXUS_KEYCODE_PRO_SMALL_UNLOCK_INCREMENT,
NEXUS_KEYCODE_PRO_SMALL_TYPE_PASSTHROUGH,
NEXUS_KEYCODE_PRO_RESPONSE_INVALID, // unused
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_APPLIED,
false,
"0123",
},
{
// In [25]: code = ExtendedSmallMessage(id_=136, days=90,
// type_=ExtendedSmallMessageType.SET_CREDIT_WIPE_RESTRICTED_FLAG,
// secret_key=secret_key) In [26]: code.extended_message_id Out[26]:
// 136 In [27]: code.to_keycode() Out[27]: '144 433 453 232 344'
// 44433453232344
"22211231010122",
136,
90 * 24 * 3600,
NEXUS_KEYCODE_PRO_SMALL_TYPE_PASSTHROUGH,
NEXUS_KEYCODE_PRO_RESPONSE_INVALID, // unused
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_APPLIED,
false,
"0123",
},
};
// no IDs set before the messages are applied
for (uint8_t j = 0; j <= 200; j++)
{
TEST_ASSERT_EQUAL_UINT(nexus_keycode_pro_get_full_message_id_flag(j),
0);
}
for (uint8_t i = 0; i < sizeof(scenarios) / sizeof(scenarios[0]); ++i)
{
// initialize the scenario
const struct test_scenario scenario = scenarios[i];
// execute it and verify outcome
struct nexus_keycode_frame frame =
small_nexus_keycode_frame_filled(scenario.frame_body);
struct nexus_keycode_pro_small_message small_msg;
// b'\xfe' * 8 + b'\xa2' * 8
nxp_keycode_get_secret_key_ExpectAndReturn(TEST_KEY);
// SET CREDIT + WIPE RESTRICTED
if (scenario.expected_type_code ==
NEXUS_KEYCODE_PRO_SMALL_TYPE_PASSTHROUGH)
{
if (scenario.expected_feedback ==
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_APPLIED)
{
if (scenario.expected_credit_seconds ==
NEXUS_KEYCODE_PRO_SMALL_UNLOCK_INCREMENT)
{
nxp_keycode_payg_credit_unlock_ExpectAndReturn(true);
}
else
{
nxp_keycode_payg_credit_set_ExpectAndReturn(
scenario.expected_credit_seconds, true);
}
nxp_keycode_notify_custom_flag_changed_Expect(
NX_KEYCODE_CUSTOM_FLAG_RESTRICTED, false);
}
nxp_keycode_feedback_start_ExpectAndReturn(
scenario.expected_feedback, true);
}
// will automatically pass data to origin command handler if its
// an origin command
const bool parsed = nexus_keycode_pro_small_parse(&frame, &small_msg);
TEST_ASSERT_TRUE(parsed);
if (scenario.expected_type_code !=
NEXUS_KEYCODE_PRO_SMALL_TYPE_PASSTHROUGH)
{
if (!scenario.is_wipe_flag_keycode)
{
nxp_keycode_payg_credit_set_ExpectAndReturn(
scenario.expected_credit_seconds, true);
}
else
{
nxp_keycode_notify_custom_flag_changed_Expect(
NX_KEYCODE_CUSTOM_FLAG_RESTRICTED, false);
}
enum nexus_keycode_pro_response response =
nexus_keycode_pro_small_apply(&small_msg);
TEST_ASSERT_EQUAL_UINT(response, scenario.expected_response);
}
// as the window moves upwards, don't check below the minimum window ID
uint16_t min_window_id;
if (scenario.id >= 23)
{
min_window_id = scenario.id - 23;
}
else
{
min_window_id = 0;
}
for (uint16_t j = min_window_id; j <= scenario.id; j++)
{
TEST_ASSERT_EQUAL_UINT(
nexus_keycode_pro_get_full_message_id_flag(j), 1);
}
}
}
void test_extended_small_parse_and_apply__valid_command__handled_applied(void)
{
// assert that message IDs 0-5 are not set
for (uint8_t i = 0; i <= 5; i++)
{
TEST_ASSERT_FALSE(nexus_keycode_pro_get_full_message_id_flag(i));
}
nxp_keycode_get_secret_key_ExpectAndReturn(TEST_KEY);
// 122 days, fixed for SET_AND_WIPE_CREDIT_MSG_ID_5 bitstream
nxp_keycode_payg_credit_set_ExpectAndReturn(10540800, true);
nxp_keycode_notify_custom_flag_changed_Expect(
NX_KEYCODE_CUSTOM_FLAG_RESTRICTED, false);
nxp_keycode_feedback_start_ExpectAndReturn(
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_APPLIED, true);
bool result = nexus_keycode_pro_extended_small_parse_and_apply_keycode(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5);
TEST_ASSERT_TRUE(result);
// assert that message IDs 0-5 (inclusive) were set.
for (uint8_t i = 0; i <= 5; i++)
{
TEST_ASSERT_TRUE(nexus_keycode_pro_get_full_message_id_flag(i));
}
}
void test_extended_small_parse_and_apply__invalid_commands__trigger_invalid_feedback(
void)
{
nxp_keycode_feedback_start_ExpectAndReturn(
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_INVALID, true);
bool result = nexus_keycode_pro_extended_small_parse_and_apply_keycode(
&VALID_SMALLPAD_BITS_EXTENDED_UNSUPPORTED_COMMAND_TYPE);
TEST_ASSERT_FALSE(result);
// corrupt bits 17-24 of the SET_AND_WIPE_CREDIT_MSG_ID_5 bitstream,
// which should cause 'apply' to fail, and trigger keycode invalid feedback.
bitstream_bytes_set_wipe[3] = 0xcc;
nxp_keycode_get_secret_key_ExpectAndReturn(TEST_KEY);
// 122 days, fixed for SET_AND_WIPE_CREDIT_MSG_ID_5 bitstream
nxp_keycode_feedback_start_ExpectAndReturn(
NXP_KEYCODE_FEEDBACK_TYPE_MESSAGE_INVALID, true);
enum nexus_keycode_pro_response response =
nexus_keycode_pro_extended_small_parse_and_apply_keycode(
&VALID_SMALLPAD_BITS_EXTENDED_SET_AND_WIPE_CREDIT_MSG_5);
TEST_ASSERT_EQUAL_UINT(NEXUS_KEYCODE_PRO_RESPONSE_INVALID, response);
}
#pragma GCC diagnostic pop
|
AMOS-2020-Team-7/xs2a-adapter
|
xs2a-adapter-service-api/src/main/java/de/adorsys/xs2a/adapter/http/Request.java
|
package de.adorsys.xs2a.adapter.http;
import de.adorsys.xs2a.adapter.service.Response;
import java.util.Map;
import java.util.function.UnaryOperator;
public interface Request {
interface Builder {
String method();
String uri();
String body();
Builder jsonBody(String body);
boolean jsonBody();
Builder emptyBody(boolean empty);
boolean emptyBody();
Builder urlEncodedBody(Map<String, String> formData);
Map<String, String> urlEncodedBody();
Builder xmlBody(String body);
boolean xmlBody();
Builder headers(Map<String, String> headers);
Map<String, String> headers();
Builder header(String name, String value);
<T> Response<T> send(Interceptor interceptor, HttpClient.ResponseHandler<T> responseHandler);
default <T> Response<T> send(HttpClient.ResponseHandler<T> responseHandler) {
return send(x -> x, responseHandler);
}
String content();
@FunctionalInterface
interface Interceptor extends UnaryOperator<Builder> {
}
}
}
|
donech/pearl
|
internal/common/global.go
|
<gh_stars>0
package common
import (
"context"
"github.com/donech/pearl/internal/data"
"github.com/donech/pearl/pkg/ent/db"
"github.com/donech/pearl/pkg/log"
"github.com/donech/pearl/pkg/redis"
)
//InitGlobal init global vat and return a clean up func.
func InitGlobal() {
initLogger()
initRedis()
initDB()
}
func initLogger() {
_, err := log.New(cfg.Log)
if err != nil {
log.S(context.Background()).Panicf("can't init zap logger :", err)
}
log.S(context.Background()).Info("init logger done")
}
func initRedis() {
redis.New(cfg.Redis)
}
func initDB() {
if cfg.DB != nil {
for _, dbC := range cfg.DB {
db.New(dbC)
}
}
data.NewDB()
}
|
BOXFoundation/boxd
|
core/txlogic/tx_utils_test.go
|
<filename>core/txlogic/tx_utils_test.go
// Copyright (c) 2018 ContentBox Authors.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package txlogic
import (
"reflect"
"testing"
"github.com/BOXFoundation/boxd/core/types"
"github.com/BOXFoundation/boxd/crypto"
"github.com/BOXFoundation/boxd/script"
)
func TestNewIssueTokenUtxoWrap(t *testing.T) {
fromAddr, _ := types.NewAddress("b1ndoQmEd83y4Fza5PzbUQDYpT3mV772J5o")
name, sym, deci := "box token", "BOX", uint32(8)
tag := NewTokenTag(name, sym, deci, 10000)
uw := NewIssueTokenUtxoWrap(fromAddr.Hash160(), tag, 1)
sc := script.NewScriptFromBytes(uw.Script())
if !sc.IsTokenIssue() {
t.Fatal("expect token issue script")
}
param, _ := sc.GetIssueParams()
if param.Name != name || param.Symbol != sym || param.Decimals != uint8(deci) {
t.Fatalf("issue params want: %+v, got: %+v", tag, param)
}
}
func TestMakeSplitAddrVout(t *testing.T) {
toAddr1, _ := types.NewAddress("b1YMx5kufN2qELzKaoaBWzks2MZknYqqPnh")
toAddr2, _ := types.NewAddress("b1b1ncaV56DBPkSjhUVHePDErSESrBRUnyU")
toAddr3, _ := types.NewAddress("b1nfRQofEAHAkayCvwAfr4EVxhZEpQWhp8N")
toAddr4, _ := types.NewAddress("b1oKfcV9tsiBjaTT4DxwANsrPi6br76vjqc")
to := []*types.AddressHash{
toAddr1.Hash160(), toAddr2.Hash160(),
toAddr3.Hash160(), toAddr4.Hash160(),
}
weights := []uint32{1, 2, 3, 4}
out := MakeSplitAddrVout(to, weights)
sc := script.NewScriptFromBytes(out.ScriptPubKey)
if !sc.IsSplitAddrScript() {
t.Fatalf("vout should be split addr script")
}
as, ws, err := sc.ParseSplitAddrScript()
if err != nil {
t.Fatal(err)
}
if !reflect.DeepEqual(as, to) {
t.Fatalf("addrs want: %v, got %v", to, as)
}
if !reflect.DeepEqual(ws, weights) {
t.Fatalf("weights want: %v, got %v", weights, ws)
}
}
func TestEncodeDecodeOutPoint(t *testing.T) {
hashStr, index := "92755682dde3c99e1482391c5fb957d5415dd2083689fb55892194f8a93dab93", uint32(1)
hash := new(crypto.HashType)
hash.SetString(hashStr)
op := NewPbOutPoint(hash, index)
// encode
encodeStr := EncodeOutPoint(op)
wantEncodeOp := "5uhMzn4A3qdonGiEb9WpkqCFNNUX4tnCcnH3LcQX7pLqxGXzb6o"
if encodeStr != wantEncodeOp {
t.Fatalf("encode op, want: %s, got: %s", wantEncodeOp, encodeStr)
}
// decode
op2, err := DecodeOutPoint(encodeStr)
if err != nil {
t.Fatal(err)
}
hash.SetBytes(op2.Hash)
if hashStr != hash.String() || index != op2.Index {
t.Fatalf("decode op, want: %s:%d, got: %s:%d", hashStr, index, hash, op2.Index)
}
}
func TestMakeSplitAddress(t *testing.T) {
var tests = []struct {
addrs []string
weights []uint32
splitAddr string
}{
{
[]string{"<KEY>", "<KEY>"},
[]uint32{5, 5},
"<KEY>",
},
{
[]string{"<KEY>", "<KEY>"},
[]uint32{3, 7},
"<KEY>",
},
{
[]string{"<KEY>", "<KEY>"},
[]uint32{1, 2},
"<KEY>",
},
{
[]string{"<KEY>", "<KEY>",
"b1r7TPQS5MFe1wn65ZSuiy77e9fqaB2qvyt"},
[]uint32{1, 2, 3},
"b2SyjrVS<KEY>",
},
{
[]string{"<KEY>", "<KEY>",
"<KEY>"},
[]uint32{2, 3, 4},
"b2dz4ipBPpaUsFqFCVJqGPhCjijkvyCCN3s",
},
{
[]string{"<KEY>", "<KEY>",
"<KEY>"},
[]uint32{2, 2, 4},
"<KEY>",
},
{
[]string{"<KEY>", "<KEY>",
"<KEY>", "<KEY>"},
[]uint32{1, 2, 3},
"b2dDT8boDTZebiDzkKXpFjqb8FiFJMGS8D4",
},
}
txHash := new(crypto.HashType)
txHash.SetString("fc7de81e29e3bcb127d63f9576ec2fffd7bd560aac2dcbe31c119799e3f51b92")
for _, tc := range tests {
to := make([]*types.AddressHash, len(tc.addrs))
for i, addr := range tc.addrs {
address, _ := types.NewAddress(addr)
to[i] = address.Hash160()
}
splitAddr := MakeSplitAddress(txHash, 0, to, tc.weights)
if splitAddr.String() != tc.splitAddr {
t.Errorf("split addr for %v want: %s, got: %s", tc.addrs, tc.splitAddr, splitAddr)
}
}
}
|
pcicaz/mongo-java-driver
|
driver-core/src/main/com/mongodb/operation/OperationHelper.java
|
<reponame>pcicaz/mongo-java-driver
/*
* Copyright (c) 2008-2014 MongoDB, 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 com.mongodb.operation;
import com.mongodb.Function;
import com.mongodb.MongoNamespace;
import com.mongodb.ServerAddress;
import com.mongodb.async.AsyncBatchCursor;
import com.mongodb.async.SingleResultCallback;
import com.mongodb.binding.AsyncConnectionSource;
import com.mongodb.binding.AsyncReadBinding;
import com.mongodb.binding.AsyncWriteBinding;
import com.mongodb.binding.ConnectionSource;
import com.mongodb.binding.ReadBinding;
import com.mongodb.binding.WriteBinding;
import com.mongodb.connection.AsyncConnection;
import com.mongodb.connection.Connection;
import com.mongodb.connection.ConnectionDescription;
import com.mongodb.connection.QueryResult;
import com.mongodb.connection.ServerVersion;
import org.bson.BsonDocument;
import org.bson.BsonInt64;
import org.bson.codecs.Decoder;
import java.util.Collections;
import static com.mongodb.internal.async.ErrorHandlingResultCallback.errorHandlingCallback;
import static java.util.Arrays.asList;
final class OperationHelper {
interface CallableWithConnection<T> {
T call(Connection connection);
}
interface CallableWithConnectionAndSource<T> {
T call(ConnectionSource source, Connection connection);
}
interface AsyncCallableWithConnection {
void call(AsyncConnection connection, Throwable t);
}
interface AsyncCallableWithConnectionAndSource {
void call(AsyncConnectionSource source, AsyncConnection connection, Throwable t);
}
static class IdentityTransformer<T> implements Function<T, T> {
@Override
public T apply(final T t) {
return t;
}
}
static class VoidTransformer<T> implements Function<T, Void> {
@Override
public Void apply(final T t) {
return null;
}
}
static <T> QueryBatchCursor<T> createEmptyBatchCursor(final MongoNamespace namespace, final Decoder<T> decoder,
final ServerAddress serverAddress, final int batchSize) {
return new QueryBatchCursor<T>(new QueryResult<T>(namespace, Collections.<T>emptyList(), 0L,
serverAddress),
0, batchSize, decoder, serverAddress);
}
static <T> AsyncBatchCursor<T> createEmptyAsyncBatchCursor(final MongoNamespace namespace, final Decoder<T> decoder,
final ServerAddress serverAddress, final int batchSize) {
return new AsyncQueryBatchCursor<T>(new QueryResult<T>(namespace, Collections.<T>emptyList(), 0L, serverAddress), 0, batchSize,
decoder);
}
static <T> BatchCursor<T> cursorDocumentToBatchCursor(final BsonDocument cursorDocument, final Decoder<T> decoder,
final ConnectionSource source, final int batchSize) {
return new QueryBatchCursor<T>(OperationHelper.<T>cursorDocumentToQueryResult(cursorDocument,
source.getServerDescription().getAddress()),
0, batchSize, decoder, source);
}
static <T> AsyncBatchCursor<T> cursorDocumentToAsyncBatchCursor(final BsonDocument cursorDocument, final Decoder<T> decoder,
final AsyncConnectionSource source, final int batchSize) {
return new AsyncQueryBatchCursor<T>(OperationHelper.<T>cursorDocumentToQueryResult(cursorDocument,
source.getServerDescription().getAddress()),
0, batchSize, decoder, source);
}
static <T> QueryResult<T> cursorDocumentToQueryResult(final BsonDocument cursorDocument, final ServerAddress serverAddress) {
long cursorId = ((BsonInt64) cursorDocument.get("id")).getValue();
MongoNamespace queryResultNamespace = new MongoNamespace(cursorDocument.getString("ns").getValue());
return new QueryResult<T>(queryResultNamespace, BsonDocumentWrapperHelper.<T>toList(cursorDocument, "firstBatch"), cursorId,
serverAddress);
}
static <T> SingleResultCallback<T> releasingCallback(final SingleResultCallback<T> wrapped, final AsyncConnection connection) {
return new ConnectionReleasingWrappedCallback<T>(wrapped, null, connection);
}
static <T> SingleResultCallback<T> releasingCallback(final SingleResultCallback<T> wrapped, final AsyncConnectionSource source,
final AsyncConnection connection) {
return new ConnectionReleasingWrappedCallback<T>(wrapped, source, connection);
}
private static class ConnectionReleasingWrappedCallback<T> implements SingleResultCallback<T> {
private final SingleResultCallback<T> wrapped;
private final AsyncConnectionSource source;
private final AsyncConnection connection;
ConnectionReleasingWrappedCallback(final SingleResultCallback<T> wrapped, final AsyncConnectionSource source,
final AsyncConnection connection) {
this.wrapped = wrapped;
this.source = source;
this.connection = connection;
}
@Override
public void onResult(final T result, final Throwable t) {
if (connection != null) {
connection.release();
}
if (source != null) {
source.release();
}
wrapped.onResult(result, t);
}
}
static boolean serverIsAtLeastVersionTwoDotSix(final ConnectionDescription description) {
return serverIsAtLeastVersion(description, new ServerVersion(2, 6));
}
static boolean serverIsAtLeastVersionThreeDotZero(final ConnectionDescription description) {
return serverIsAtLeastVersion(description, new ServerVersion(asList(3, 0, 0)));
}
static boolean serverIsAtLeastVersion(final ConnectionDescription description, final ServerVersion serverVersion) {
return description.getServerVersion().compareTo(serverVersion) >= 0;
}
static <T> T withConnection(final ReadBinding binding, final CallableWithConnection<T> callable) {
ConnectionSource source = binding.getReadConnectionSource();
try {
return withConnectionSource(source, callable);
} finally {
source.release();
}
}
static <T> T withConnection(final ReadBinding binding, final CallableWithConnectionAndSource<T> callable) {
ConnectionSource source = binding.getReadConnectionSource();
try {
return withConnectionSource(source, callable);
} finally {
source.release();
}
}
static <T> T withConnection(final WriteBinding binding, final CallableWithConnection<T> callable) {
ConnectionSource source = binding.getWriteConnectionSource();
try {
return withConnectionSource(source, callable);
} finally {
source.release();
}
}
static <T> T withConnectionSource(final ConnectionSource source, final CallableWithConnection<T> callable) {
Connection connection = source.getConnection();
try {
return callable.call(connection);
} finally {
connection.release();
}
}
static <T> T withConnectionSource(final ConnectionSource source, final CallableWithConnectionAndSource<T> callable) {
Connection connection = source.getConnection();
try {
return callable.call(source, connection);
} finally {
connection.release();
}
}
static void withConnection(final AsyncWriteBinding binding, final AsyncCallableWithConnection callable) {
binding.getWriteConnectionSource(errorHandlingCallback(new AsyncCallableWithConnectionCallback(callable)));
}
static void withConnection(final AsyncReadBinding binding, final AsyncCallableWithConnection callable) {
binding.getReadConnectionSource(errorHandlingCallback(new AsyncCallableWithConnectionCallback(callable)));
}
static void withConnection(final AsyncReadBinding binding, final AsyncCallableWithConnectionAndSource callable) {
binding.getReadConnectionSource(errorHandlingCallback(new AsyncCallableWithConnectionAndSourceCallback(callable)));
}
private static class AsyncCallableWithConnectionCallback implements SingleResultCallback<AsyncConnectionSource> {
private final AsyncCallableWithConnection callable;
public AsyncCallableWithConnectionCallback(final AsyncCallableWithConnection callable) {
this.callable = callable;
}
@Override
public void onResult(final AsyncConnectionSource source, final Throwable t) {
if (t != null) {
callable.call(null, t);
} else {
withConnectionSource(source, callable);
}
}
}
private static <T> void withConnectionSource(final AsyncConnectionSource source, final AsyncCallableWithConnection callable) {
source.getConnection(new SingleResultCallback<AsyncConnection>() {
@Override
public void onResult(final AsyncConnection connection, final Throwable t) {
source.release();
if (t != null) {
callable.call(null, t);
} else {
callable.call(connection, null);
}
}
});
}
private static <T> void withConnectionSource(final AsyncConnectionSource source, final AsyncCallableWithConnectionAndSource callable) {
source.getConnection(new SingleResultCallback<AsyncConnection>() {
@Override
public void onResult(final AsyncConnection result, final Throwable t) {
callable.call(source, result, t);
}
});
}
private static class AsyncCallableWithConnectionAndSourceCallback implements SingleResultCallback<AsyncConnectionSource> {
private final AsyncCallableWithConnectionAndSource callable;
public AsyncCallableWithConnectionAndSourceCallback(final AsyncCallableWithConnectionAndSource callable) {
this.callable = callable;
}
@Override
public void onResult(final AsyncConnectionSource source, final Throwable t) {
if (t != null) {
callable.call(null, null, t);
} else {
withConnectionSource(source, callable);
}
}
}
private OperationHelper() {
}
}
|
jesperancinha/jeorg-spring-5-test-drives
|
jeorg-spring-5/jeorg-spring-app-old/jeorg-spring-5-test-drives-webapp/src/test/java/org/jesperancinha/std/old/webapp/service/DetailLayer2ServiceTest.java
|
package org.jesperancinha.std.old.webapp.service;
import org.jesperancinha.std.old.webapp.model.Detail;
import org.jesperancinha.std.old.webapp.model.DetailEntity;
import org.jesperancinha.std.old.webapp.repository.DetailRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
@SpringBootTest
@ActiveProfiles("test")
public class DetailLayer2ServiceTest {
private static final String NAME_1 = "Name1";
private static final String CITY_1 = "City1";
@Autowired
private DetailLayer2Service detailController;
@Autowired
private DetailRepository detailRepository;
@BeforeEach
public void setUp() {
detailRepository.deleteAll();
addOneElement();
}
private void addOneElement() {
final DetailEntity detailEntity = DetailEntity.builder().id(1).name(NAME_1).city(CITY_1).build();
detailRepository.save(detailEntity);
}
@Test
public void findDetailById() {
final Detail result = detailController.findDetailById(1);
assertThat(result.getName()).isEqualTo(NAME_1);
assertThat(result.getCity()).isNull();
detailRepository.deleteAll();
DetailEntity checkForNone = detailRepository.findById(1).orElse(null);
assertThat(checkForNone).isNull();
final Detail resultCached = detailController.findDetailById(1);
assertThat(resultCached.getName()).isEqualTo(NAME_1);
assertThat(resultCached.getCity()).isNull();
addOneElement();
DetailEntity result2 = detailRepository.findById(1).orElseThrow();
assertThat(result2.getName()).isEqualTo(NAME_1);
assertThat(result2.getCity()).isNull();
result2.setCity(CITY_1);
assertThat(result2.getCity()).isEqualTo(CITY_1);
DetailEntity result3 = detailRepository.findById(1).orElseThrow();
assertThat(result3.getName()).isEqualTo(NAME_1);
assertThat(result3.getCity()).isNull();
List<String> test = null;
}
}
|
lostnut/ojAlgo
|
test/org/ojalgo/matrix/BasicMatrixTest.java
|
<reponame>lostnut/ojAlgo
/*
* Copyright 1997-2018 Optimatika
*
* 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.
*/
package org.ojalgo.matrix;
import java.math.BigDecimal;
import java.util.List;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.ojalgo.TestUtils;
import org.ojalgo.array.Array1D;
import org.ojalgo.constant.PrimitiveMath;
import org.ojalgo.function.ComplexFunction;
import org.ojalgo.function.PrimitiveFunction;
import org.ojalgo.function.QuaternionFunction;
import org.ojalgo.function.RationalFunction;
import org.ojalgo.matrix.BasicMatrix.PhysicalReceiver;
import org.ojalgo.matrix.decomposition.Eigenvalue.Eigenpair;
import org.ojalgo.matrix.decomposition.MatrixDecompositionTests;
import org.ojalgo.matrix.decomposition.SingularValue;
import org.ojalgo.matrix.store.GenericDenseStore;
import org.ojalgo.matrix.store.PhysicalStore;
import org.ojalgo.matrix.store.PrimitiveDenseStore;
import org.ojalgo.random.Uniform;
import org.ojalgo.scalar.ComplexNumber;
import org.ojalgo.scalar.Quaternion;
import org.ojalgo.scalar.RationalNumber;
import org.ojalgo.scalar.Scalar;
import org.ojalgo.structure.ColumnView;
import org.ojalgo.structure.RowView;
import org.ojalgo.type.TypeUtils;
import org.ojalgo.type.context.NumberContext;
/**
* @author apete
*/
public abstract class BasicMatrixTest extends MatrixTests {
public static RationalMatrix getIdentity(final long rows, final long columns, final NumberContext context) {
final RationalMatrix tmpMtrx = RationalMatrix.FACTORY.makeEye(Math.toIntExact(rows), Math.toIntExact(columns));
return tmpMtrx.enforce(context);
}
public static RationalMatrix getSafe(final long rows, final long columns, final NumberContext context) {
final RationalMatrix tmpMtrx = RationalMatrix.FACTORY.makeFilled(rows, columns, new Uniform(PrimitiveMath.E, PrimitiveMath.PI));
return tmpMtrx.enforce(context);
}
protected NumberContext evaluation = NumberContext.getGeneral(9);
boolean actBoolean;
int actInt;
BasicMatrix<?, ?> actMtrx;
Number actNumber;
Scalar<?> actScalar;
double actValue;
BigDecimal bigNumber;
ComplexMatrix complexAA;
ComplexMatrix complexAB;
ComplexMatrix complexAX;
ComplexMatrix complexI;
ComplexMatrix complexSafe;
boolean expBoolean;
int expInt;
BasicMatrix<?, ?> expMtrx;
Number expNumber;
Scalar<?> expScalar;
double expValue;
PrimitiveMatrix primitiveAA;
PrimitiveMatrix primitiveAB;
PrimitiveMatrix primitiveAX;
PrimitiveMatrix primitiveI;
PrimitiveMatrix primitiveSafe;
QuaternionMatrix quaternionAA;
QuaternionMatrix quaternionAB;
QuaternionMatrix quaternionAX;
QuaternionMatrix quaternionI;
QuaternionMatrix quaternionSafe;
RationalMatrix rationalAA;
RationalMatrix rationalAB;
RationalMatrix rationalAX;
RationalMatrix rationalSafe;
RationalMatrix rationlI;
@BeforeEach
public void setUp() {
TestUtils.minimiseAllBranchLimits();
primitiveAA = PrimitiveMatrix.FACTORY.copy(rationalAA);
primitiveAX = PrimitiveMatrix.FACTORY.copy(rationalAX);
primitiveAB = PrimitiveMatrix.FACTORY.copy(rationalAB);
primitiveI = PrimitiveMatrix.FACTORY.copy(rationlI);
primitiveSafe = PrimitiveMatrix.FACTORY.copy(rationalSafe);
complexAA = ComplexMatrix.FACTORY.copy(rationalAA);
complexAX = ComplexMatrix.FACTORY.copy(rationalAX);
complexAB = ComplexMatrix.FACTORY.copy(rationalAB);
complexI = ComplexMatrix.FACTORY.copy(rationlI);
complexSafe = ComplexMatrix.FACTORY.copy(rationalSafe);
quaternionAA = QuaternionMatrix.FACTORY.copy(rationalAA);
quaternionAX = QuaternionMatrix.FACTORY.copy(rationalAX);
quaternionAB = QuaternionMatrix.FACTORY.copy(rationalAB);
quaternionI = QuaternionMatrix.FACTORY.copy(rationlI);
quaternionSafe = QuaternionMatrix.FACTORY.copy(rationalSafe);
bigNumber = new BigDecimal(Math.random());
}
@AfterEach
public void tearDown() {
evaluation = NumberContext.getGeneral(9);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#add(org.ojalgo.matrix.BasicMatrix)
*/
@Test
public void testAddBasicMatrix() {
expMtrx = rationalAA.add(rationalSafe);
actMtrx = complexAA.add(complexSafe);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.add(primitiveSafe);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see BasicMatrix.PhysicalReceiver#add(long, long, Number)
*/
@Test
public void testAddIntIntNumber() {
final int tmpRow = Uniform.randomInteger((int) rationalAA.countRows());
final int tmpCol = Uniform.randomInteger((int) rationalAA.countColumns());
final BasicMatrix.PhysicalReceiver<RationalNumber, RationalMatrix> tmpBigBuilder = rationalAA.copy();
tmpBigBuilder.add(tmpRow, tmpCol, bigNumber);
expMtrx = tmpBigBuilder.build();
final BasicMatrix.PhysicalReceiver<ComplexNumber, ComplexMatrix> tmpComplexBuilder = complexAA.copy();
tmpComplexBuilder.add(tmpRow, tmpCol, bigNumber);
actMtrx = tmpComplexBuilder.build();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
final BasicMatrix.PhysicalReceiver<Double, PrimitiveMatrix> tmpPrimitiveBuilder = primitiveAA.copy();
tmpPrimitiveBuilder.add(tmpRow, tmpCol, bigNumber);
actMtrx = tmpPrimitiveBuilder.build();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#add(java.lang.Number)
*/
@Test
public void testAddNumber() {
expMtrx = rationalAA.add(bigNumber);
actMtrx = complexAA.add(bigNumber);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.add(bigNumber);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#conjugate()
*/
@Test
public void testConjugate() {
expMtrx = rationalAA.conjugate();
actMtrx = complexAA.conjugate();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.conjugate();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
@Test
public void testDivideElementsBasicMatrix() {
PhysicalReceiver<RationalNumber, RationalMatrix> copyRational = rationalAA.copy();
copyRational.modifyMatching(RationalFunction.DIVIDE, rationalSafe);
expMtrx = copyRational.get();
PhysicalReceiver<Double, PrimitiveMatrix> copyPrimitive = primitiveAA.copy();
copyPrimitive.modifyMatching(PrimitiveFunction.DIVIDE, primitiveSafe);
actMtrx = copyPrimitive.get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
PhysicalReceiver<ComplexNumber, ComplexMatrix> copyComplex = complexAA.copy();
copyComplex.modifyMatching(ComplexFunction.DIVIDE, complexSafe);
actMtrx = copyComplex.get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
PhysicalReceiver<Quaternion, QuaternionMatrix> copyQuaternion = quaternionAA.copy();
copyQuaternion.modifyMatching(QuaternionFunction.DIVIDE, quaternionSafe);
actMtrx = copyQuaternion.get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#divide(java.lang.Number)
*/
@Test
public void testDivideNumber() {
expMtrx = rationalAA.divide(bigNumber);
actMtrx = complexAA.divide(bigNumber);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.divide(bigNumber);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
@Test
public void testDotAccess1D() {
final int[] tmpCol = new int[] { (int) Uniform.randomInteger(rationalAA.countColumns()) };
expNumber = rationalAA.logical().column(tmpCol).get().dot(rationalSafe.logical().column(tmpCol).get());
actNumber = complexAA.logical().column(tmpCol).get().dot(complexSafe.logical().column(tmpCol).get());
TestUtils.assertEquals(expNumber, actNumber, evaluation);
actNumber = primitiveAA.logical().column(tmpCol).get().dot(primitiveSafe.logical().column(tmpCol).get());
TestUtils.assertEquals(expNumber, actNumber, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#doubleValue(long, long)
*/
@Test
public void testDoubleValueIntInt() {
final int tmpRow = (int) Uniform.randomInteger(rationalAA.countRows());
final int tmpCol = (int) Uniform.randomInteger(rationalAA.countColumns());
expNumber = rationalAA.doubleValue(tmpRow, tmpCol);
actNumber = complexAA.doubleValue(tmpRow, tmpCol);
TestUtils.assertEquals(expNumber, actNumber, evaluation);
actNumber = primitiveAA.doubleValue(tmpRow, tmpCol);
TestUtils.assertEquals(expNumber, actNumber, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#countColumns()
*/
@Test
public void testGetColDim() {
expInt = (int) rationalAA.countColumns();
actInt = (int) complexAA.countColumns();
TestUtils.assertEquals(expBoolean, actBoolean);
actInt = (int) primitiveAA.countColumns();
TestUtils.assertEquals(expBoolean, actBoolean);
}
@Test
public void testGetColumnsIntArray() {
final int[] tmpArr = new int[(int) (1 + Uniform.randomInteger(rationalAA.countColumns()))];
for (int i = 0; i < tmpArr.length; i++) {
tmpArr[i] = (int) Uniform.randomInteger(rationalAA.countColumns());
}
expMtrx = rationalAA.logical().column(tmpArr).get();
actMtrx = complexAA.logical().column(tmpArr).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.logical().column(tmpArr).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#getCondition()
*/
@Test
public void testGetCondition() {
if (rationalAA.isFullRank()) {
// Difficult to test numerically
// Will only check that they are the same order of magnitude
final int tmpExpCondMag = (int) Math.round(PrimitiveFunction.LOG10.invoke(rationalAA.getCondition().doubleValue()));
int tmpActCondMag = (int) Math.round(PrimitiveFunction.LOG10.invoke(primitiveAA.getCondition().doubleValue()));
TestUtils.assertEquals(tmpExpCondMag, tmpActCondMag);
tmpActCondMag = (int) Math.round(PrimitiveFunction.LOG10.invoke(complexAA.getCondition().doubleValue()));
TestUtils.assertEquals(tmpExpCondMag, tmpActCondMag);
}
}
/**
* @see org.ojalgo.matrix.BasicMatrix#getDeterminant()
*/
@Test
public void testGetDeterminant() {
if (rationalAA.isSquare()) {
expNumber = rationalAA.getDeterminant().get();
actNumber = complexAA.getDeterminant().get();
TestUtils.assertEquals(expNumber, actNumber, evaluation);
actNumber = primitiveAA.getDeterminant().get();
TestUtils.assertEquals(expNumber, actNumber, evaluation);
}
}
@Test
public void testGetEigenvalues() {
if (rationalAA.isSquare() && MatrixUtils.isHermitian(rationalAA)) {
final List<Eigenpair> expected = primitiveAA.getEigenpairs();
List<Eigenpair> actual;
actual = rationalAA.getEigenpairs();
for (int i = 0; i < expected.size(); i++) {
TestUtils.assertEquals("Scalar<?> != Scalar<?>", expected.get(i).value, actual.get(i).value, evaluation);
}
actual = complexAA.getEigenpairs();
for (int i = 0; i < expected.size(); i++) {
TestUtils.assertEquals("Scalar<?> != Scalar<?>", expected.get(i).value, actual.get(i).value, evaluation);
}
}
}
@Test
public void testGetInfinityNorm() {
expValue = BasicMatrix.calculateInfinityNorm(rationalAA);
actValue = BasicMatrix.calculateInfinityNorm(complexAA);
TestUtils.assertEquals(expValue, actValue, evaluation);
actValue = BasicMatrix.calculateInfinityNorm(primitiveAA);
TestUtils.assertEquals(expValue, actValue, evaluation);
}
@Test
public void testGetOneNorm() {
expValue = BasicMatrix.calculateOneNorm(rationalAA);
actValue = BasicMatrix.calculateOneNorm(complexAA);
TestUtils.assertEquals(expValue, actValue, evaluation);
actValue = BasicMatrix.calculateOneNorm(primitiveAA);
TestUtils.assertEquals(expValue, actValue, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#getRank()
*/
@Test
public void testGetRank() {
expInt = rationalAA.getRank();
actInt = complexAA.getRank();
TestUtils.assertEquals(expInt, actInt);
actInt = primitiveAA.getRank();
TestUtils.assertEquals(expInt, actInt);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#countRows()
*/
@Test
public void testGetRowDim() {
expInt = (int) rationalAA.countRows();
actInt = (int) complexAA.countRows();
TestUtils.assertEquals(expBoolean, actBoolean);
actInt = (int) primitiveAA.countRows();
TestUtils.assertEquals(expBoolean, actBoolean);
}
@Test
public void testGetRowsIntArray() {
final int[] tmpArr = new int[(int) (1 + Uniform.randomInteger(rationalAA.countRows()))];
for (int i = 0; i < tmpArr.length; i++) {
tmpArr[i] = (int) Uniform.randomInteger(rationalAA.countRows());
}
expMtrx = rationalAA.logical().row(tmpArr).get();
actMtrx = complexAA.logical().row(tmpArr).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.logical().row(tmpArr).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
@Test
public void testGetSingularValues() {
SingularValue<RationalNumber> rationalSVD = SingularValue.RATIONAL.make(rationalAA);
rationalSVD.compute(rationalAA);
TestUtils.assertEquals(GenericDenseStore.RATIONAL.copy(rationalAA), rationalSVD, evaluation);
Array1D<Double> expected = rationalSVD.getSingularValues();
SingularValue<ComplexNumber> complexSVD = SingularValue.COMPLEX.make(complexAA);
complexSVD.compute(complexAA);
TestUtils.assertEquals(GenericDenseStore.COMPLEX.copy(complexAA), complexSVD, evaluation);
TestUtils.assertEquals(expected, complexSVD.getSingularValues(), evaluation);
SingularValue<Quaternion> quaternionSVD = SingularValue.QUATERNION.make(quaternionAA);
quaternionSVD.compute(quaternionAA);
TestUtils.assertEquals(GenericDenseStore.QUATERNION.copy(quaternionAA), quaternionSVD, evaluation);
TestUtils.assertEquals(expected, quaternionSVD.getSingularValues(), evaluation);
for (SingularValue<Double> primitiveSVD : MatrixDecompositionTests.getSingularValuePrimitive()) {
primitiveSVD.compute(primitiveAA);
TestUtils.assertEquals(PrimitiveDenseStore.FACTORY.copy(primitiveAA), primitiveSVD, evaluation);
TestUtils.assertEquals(expected, primitiveSVD.getSingularValues(), evaluation);
}
}
/**
* @see org.ojalgo.matrix.BasicMatrix#getTrace()
*/
@Test
public void testGetTrace() {
expNumber = rationalAA.getTrace().get();
actNumber = complexAA.getTrace().get();
TestUtils.assertEquals(expNumber, actNumber, evaluation);
actNumber = primitiveAA.getTrace().get();
TestUtils.assertEquals(expNumber, actNumber, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#invert()
*/
@Test
public void testInvert() {
if (rationalAA.isSquare() && (rationalAA.getRank() >= rationalAA.countColumns())) {
expMtrx = rationalAA.invert();
actMtrx = complexAA.invert();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.invert();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
}
/**
* @see org.ojalgo.matrix.BasicMatrix#isEmpty()
*/
@Test
public void testIsEmpty() {
expBoolean = rationalAA.isEmpty();
actBoolean = complexAA.isEmpty();
TestUtils.assertEquals(expBoolean, actBoolean);
actBoolean = primitiveAA.isEmpty();
TestUtils.assertEquals(expBoolean, actBoolean);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#isFat()
*/
@Test
public void testIsFat() {
expBoolean = rationalAA.isFat();
actBoolean = complexAA.isFat();
TestUtils.assertEquals(expBoolean, actBoolean);
actBoolean = primitiveAA.isFat();
TestUtils.assertEquals(expBoolean, actBoolean);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#isFullRank()
*/
@Test
public void testIsFullRank() {
expBoolean = rationalAA.isFullRank();
actBoolean = complexAA.isFullRank();
TestUtils.assertEquals(expBoolean, actBoolean);
actBoolean = primitiveAA.isFullRank();
TestUtils.assertEquals(expBoolean, actBoolean);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#isHermitian()
*/
@Test
public void testIsHermitian() {
expBoolean = rationalAA.isHermitian();
actBoolean = complexAA.isHermitian();
TestUtils.assertEquals(expBoolean, actBoolean);
actBoolean = primitiveAA.isHermitian();
TestUtils.assertEquals(expBoolean, actBoolean);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#isSquare()
*/
@Test
public void testIsSquare() {
expBoolean = rationalAA.isSquare();
actBoolean = complexAA.isSquare();
TestUtils.assertEquals(expBoolean, actBoolean);
actBoolean = primitiveAA.isSquare();
TestUtils.assertEquals(expBoolean, actBoolean);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#isSymmetric()
*/
@Test
public void testIsSymmetric() {
expBoolean = rationalAA.isSymmetric();
actBoolean = complexAA.isSymmetric();
TestUtils.assertEquals(expBoolean, actBoolean);
actBoolean = primitiveAA.isSymmetric();
TestUtils.assertEquals(expBoolean, actBoolean);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#isTall()
*/
@Test
public void testIsTall() {
expBoolean = rationalAA.isTall();
actBoolean = complexAA.isTall();
TestUtils.assertEquals(expBoolean, actBoolean);
actBoolean = primitiveAA.isTall();
TestUtils.assertEquals(expBoolean, actBoolean);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#isVector()
*/
@Test
public void testIsVector() {
expBoolean = rationalAA.isVector();
actBoolean = complexAA.isVector();
TestUtils.assertEquals(expBoolean, actBoolean);
actBoolean = primitiveAA.isVector();
TestUtils.assertEquals(expBoolean, actBoolean);
}
@Test
public void testMergeColumnsBasicMatrix() {
expMtrx = rationalAA.logical().below(rationalSafe).get();
actMtrx = primitiveAA.logical().below(primitiveSafe).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = complexAA.logical().below(complexSafe).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = quaternionAA.logical().below(quaternionSafe).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
@Test
public void testMergeRowsBasicMatrix() {
expMtrx = rationalAA.logical().right(rationalSafe).get();
actMtrx = primitiveAA.logical().right(primitiveSafe).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = complexAA.logical().right(complexSafe).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = quaternionAA.logical().right(quaternionSafe).get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#multiply(org.ojalgo.matrix.BasicMatrix)
*/
@Test
public void testMultiplyBasicMatrix() {
expMtrx = rationalAA.multiply(rationalAX);
actMtrx = complexAA.multiply(complexAX);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.multiply(primitiveAX);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
@Test
public void testMultiplyElementsBasicMatrix() {
PhysicalReceiver<RationalNumber, RationalMatrix> copyRational = rationalAA.copy();
copyRational.modifyMatching(RationalFunction.MULTIPLY, rationalSafe);
expMtrx = copyRational.get();
PhysicalReceiver<Double, PrimitiveMatrix> copyPrimitive = primitiveAA.copy();
copyPrimitive.modifyMatching(PrimitiveFunction.MULTIPLY, primitiveSafe);
actMtrx = copyPrimitive.get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
PhysicalReceiver<ComplexNumber, ComplexMatrix> copyComplex = complexAA.copy();
copyComplex.modifyMatching(ComplexFunction.MULTIPLY, complexSafe);
actMtrx = copyComplex.get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
PhysicalReceiver<Quaternion, QuaternionMatrix> copyQuaternion = quaternionAA.copy();
copyQuaternion.modifyMatching(QuaternionFunction.MULTIPLY, quaternionSafe);
actMtrx = copyQuaternion.get();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#multiply(java.lang.Number)
*/
@Test
public void testMultiplyNumber() {
expMtrx = rationalAA.multiply(bigNumber);
actMtrx = complexAA.multiply(bigNumber);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.multiply(bigNumber);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#negate()
*/
@Test
public void testNegate() {
expMtrx = rationalAA.negate();
actMtrx = complexAA.negate();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.negate();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#norm()
*/
@Test
public void testNorm() {
expValue = rationalAA.norm();
actValue = complexAA.norm();
TestUtils.assertEquals(expValue, actValue, evaluation);
actValue = primitiveAA.norm();
TestUtils.assertEquals(expValue, actValue, evaluation);
}
/**
* @see BasicMatrix.PhysicalReceiver#set(long, long, Number)
*/
@Test
public void testSetIntIntNumber() {
final int tmpRow = Uniform.randomInteger((int) rationalAA.countRows());
final int tmpCol = Uniform.randomInteger((int) rationalAA.countColumns());
final BasicMatrix.PhysicalReceiver<RationalNumber, RationalMatrix> tmpBigBuilder = rationalAA.copy();
tmpBigBuilder.set(tmpRow, tmpCol, bigNumber);
expMtrx = tmpBigBuilder.build();
final BasicMatrix.PhysicalReceiver<ComplexNumber, ComplexMatrix> tmpComplexBuilder = complexAA.copy();
tmpComplexBuilder.set(tmpRow, tmpCol, bigNumber);
actMtrx = tmpComplexBuilder.build();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
final BasicMatrix.PhysicalReceiver<Double, PrimitiveMatrix> tmpPrimitiveBuilder = primitiveAA.copy();
tmpPrimitiveBuilder.set(tmpRow, tmpCol, bigNumber);
actMtrx = tmpPrimitiveBuilder.build();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
@Test
public void testSize() {
expInt = (int) rationalAA.count();
actInt = (int) complexAA.count();
TestUtils.assertEquals(expBoolean, actBoolean);
actInt = (int) primitiveAA.count();
TestUtils.assertEquals(expBoolean, actBoolean);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#solve(org.ojalgo.structure.Access2D)
*/
@Test
public void testSolveBasicMatrix() {
if (rationalAA.isSquare() && (rationalAA.getRank() >= rationalAA.countColumns())) {
expMtrx = rationalAA.solve(rationalAB);
actMtrx = complexAA.solve(complexAB);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.solve(primitiveAB);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
}
/**
* @see org.ojalgo.matrix.BasicMatrix#subtract(org.ojalgo.matrix.BasicMatrix)
*/
@Test
public void testSubtractBasicMatrix() {
expMtrx = rationalAA.subtract(rationalSafe);
actMtrx = complexAA.subtract(complexSafe);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.subtract(primitiveSafe);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#subtract(java.lang.Number)
*/
@Test
public void testSubtractNumber() {
expMtrx = rationalAA.subtract(bigNumber);
actMtrx = complexAA.subtract(bigNumber);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.subtract(bigNumber);
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
@Test
public void testToBigDecimalIntInt() {
final int tmpRow = (int) Uniform.randomInteger(rationalAA.countRows());
final int tmpCol = (int) Uniform.randomInteger(rationalAA.countColumns());
expNumber = TypeUtils.toBigDecimal(rationalAA.get(tmpRow, tmpCol));
actNumber = TypeUtils.toBigDecimal(complexAA.get(tmpRow, tmpCol));
TestUtils.assertEquals(expNumber, actNumber, evaluation);
actNumber = TypeUtils.toBigDecimal(primitiveAA.get(tmpRow, tmpCol));
TestUtils.assertEquals(expNumber, actNumber, evaluation);
}
@Test
public void testToComplexNumberIntInt() {
final int tmpRow = (int) Uniform.randomInteger(rationalAA.countRows());
final int tmpCol = (int) Uniform.randomInteger(rationalAA.countColumns());
expNumber = ComplexNumber.valueOf(rationalAA.get(tmpRow, tmpCol));
actNumber = ComplexNumber.valueOf(complexAA.get(tmpRow, tmpCol));
TestUtils.assertEquals(expNumber, actNumber, evaluation);
actNumber = ComplexNumber.valueOf(primitiveAA.get(tmpRow, tmpCol));
TestUtils.assertEquals(expNumber, actNumber, evaluation);
}
@Test
public void testToComplexStore() {
final PhysicalStore<ComplexNumber> tmpExpStore = GenericDenseStore.COMPLEX.copy(rationalAA);
PhysicalStore<ComplexNumber> tmpActStore;
tmpActStore = GenericDenseStore.COMPLEX.copy(complexAA);
TestUtils.assertEquals(tmpExpStore, tmpActStore, evaluation);
tmpActStore = GenericDenseStore.COMPLEX.copy(primitiveAA);
TestUtils.assertEquals(tmpExpStore, tmpActStore, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#columns()
*/
@Test
public void testToListOfColumns() {
final Iterable<ColumnView<RationalNumber>> tmpColumns = rationalAA.columns();
for (final ColumnView<RationalNumber> tmpColumnView : tmpColumns) {
final long j = tmpColumnView.column();
for (long i = 0L; i < tmpColumnView.count(); i++) {
TestUtils.assertEquals(tmpColumnView.get(i), complexAA.get(i, j), evaluation);
TestUtils.assertEquals(tmpColumnView.get(i), primitiveAA.get(i, j), evaluation);
}
}
}
/**
* @see org.ojalgo.matrix.BasicMatrix#rows()
*/
@Test
public void testToListOfRows() {
final Iterable<RowView<RationalNumber>> tmpRows = rationalAA.rows();
for (final RowView<RationalNumber> tmpRowView : tmpRows) {
final long i = tmpRowView.row();
for (long j = 0L; j < tmpRowView.count(); j++) {
TestUtils.assertEquals(tmpRowView.get(j), complexAA.get(i, j), evaluation);
TestUtils.assertEquals(tmpRowView.get(j), primitiveAA.get(i, j), evaluation);
}
}
}
@Test
public void testToPrimitiveStore() {
final PhysicalStore<Double> tmpExpStore = PrimitiveDenseStore.FACTORY.copy(rationalAA);
PhysicalStore<Double> tmpActStore;
tmpActStore = PrimitiveDenseStore.FACTORY.copy(complexAA);
TestUtils.assertEquals(tmpExpStore, tmpActStore, evaluation);
tmpActStore = PrimitiveDenseStore.FACTORY.copy(primitiveAA);
TestUtils.assertEquals(tmpExpStore, tmpActStore, evaluation);
}
@Test
public void testToRationalStore() {
final PhysicalStore<RationalNumber> tmpExpStore = GenericDenseStore.RATIONAL.copy(rationalAA);
PhysicalStore<RationalNumber> tmpActStore;
tmpActStore = GenericDenseStore.RATIONAL.copy(complexAA);
TestUtils.assertEquals(tmpExpStore, tmpActStore, evaluation);
tmpActStore = GenericDenseStore.RATIONAL.copy(primitiveAA);
TestUtils.assertEquals(tmpExpStore, tmpActStore, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#toRawCopy1D()
*/
@Test
public void testToRawCopy1D() {
final double[] tmpExpStore = rationalAA.toRawCopy1D();
double[] tmpActStore;
final int tmpFirstIndex = 0;
final int tmpLastIndex = (int) (rationalAA.count() - 1);
tmpActStore = complexAA.toRawCopy1D();
TestUtils.assertEquals(tmpExpStore[tmpFirstIndex], tmpActStore[tmpFirstIndex], evaluation);
TestUtils.assertEquals(tmpExpStore[tmpLastIndex], tmpActStore[tmpLastIndex], evaluation);
if (rationalAA.isVector()) {
for (int i = 0; i < tmpExpStore.length; i++) {
TestUtils.assertEquals(tmpExpStore[i], tmpActStore[i], evaluation);
}
}
tmpActStore = primitiveAA.toRawCopy1D();
TestUtils.assertEquals(tmpExpStore[tmpFirstIndex], tmpActStore[tmpFirstIndex], evaluation);
TestUtils.assertEquals(tmpExpStore[tmpLastIndex], tmpActStore[tmpLastIndex], evaluation);
if (rationalAA.isVector()) {
for (int i = 0; i < tmpExpStore.length; i++) {
TestUtils.assertEquals(tmpExpStore[i], tmpActStore[i], evaluation);
}
}
}
/**
* @see org.ojalgo.matrix.BasicMatrix#toScalar(long, long)
*/
@Test
public void testToScalarIntInt() {
final int tmpRow = Uniform.randomInteger((int) rationalAA.countRows());
final int tmpCol = Uniform.randomInteger((int) rationalAA.countColumns());
expNumber = rationalAA.toScalar(tmpRow, tmpCol).get();
actNumber = complexAA.toScalar(tmpRow, tmpCol).get();
TestUtils.assertEquals(expNumber, actNumber, evaluation);
actNumber = primitiveAA.toScalar(tmpRow, tmpCol).get();
TestUtils.assertEquals(expNumber, actNumber, evaluation);
}
/**
* @see org.ojalgo.matrix.BasicMatrix#transpose()
*/
@Test
public void testTranspose() {
expMtrx = rationalAA.transpose();
actMtrx = complexAA.transpose();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
actMtrx = primitiveAA.transpose();
TestUtils.assertEquals(expMtrx, actMtrx, evaluation);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.