text
stringlengths
1
1.05M
package projectsol.worldsofsol.common.statuseffect; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.damage.DamageSource; import net.minecraft.entity.effect.StatusEffect; import net.minecraft.entity.effect.StatusEffectType; public class RadiationStatusEffect extends StatusEffect { public RadiationStatusEffect() { super(StatusEffectType.HARMFUL, 0xA9A01C); } @Override public boolean canApplyUpdateEffect(int duration, int amplifier) { return true; } @Override public void applyUpdateEffect(LivingEntity entity, int amplifier) { entity.damage(DamageSource.MAGIC, 1.0F * 1 + amplifier); } }
#!/bin/bash # make-all-logs.sh # # Create the file all-logs.html, which lists links to all of the individual log # days. logdir=$1; htmldir=$2; if [ "a$logdir" = "a" ]; then echo "First parameter must be the log directory."; exit fi if [ "a$htmldir" = "a" ]; then echo "Second parameter must be output html directory."; exit fi # For each log entry, make a link. Iterate in reverse, so that newest logs are # on top. echo "<div class=\"irclogchatlines\">" >> $htmldir/all-logs.tmp; files=($logdir/#mlpack.*.log); for ((index=${#files[@]}-1; index >= 0; index--)); do i="${files[$index]}"; filename=`basename $i .log | sed 's/#//'`; date=`echo $filename | sed 's/mlpack\.//'`; displaydate=`date --date=${date} '+%B %d, %Y (%A)'`; lines=`grep '^[0-9][0-9]:[0-9][0-9] < ' $i | wc -l`; echo "<a href=\"${filename}.html\">$displaydate</a><div class=\"lines\">" >> $htmldir/all-logs.tmp; if [ "$lines" -gt "300" ]; then echo "<font class=\"irclotsoflines3\">" >> $htmldir/all-logs.tmp; elif [ "$lines" -gt "150" ]; then echo "<font class=\"irclotsoflines2\">" >> $htmldir/all-logs.tmp; elif [ "$lines" -gt "25" ]; then echo "<font class=\"irclotsoflines\">" >> $htmldir/all-logs.tmp; fi echo "[$lines lines of chat]" >> $htmldir/all-logs.tmp; if [ "$lines" -gt "25" ]; then echo "</font>" >> $htmldir/all-logs.tmp; fi echo "</div><br>" >> $htmldir/all-logs.tmp; done echo "</div>" >> $htmldir/all-logs.tmp; cat $htmldir/templates/header-all.html $htmldir/all-logs.tmp $htmldir/templates/footer.html > $htmldir/logs-all.html; rm -f $htmldir/all-logs.tmp; # Now generate mlpack.log, which has every bit of log in it. cat $logdir/#mlpack.*.log > $htmldir/mlpack.log
<filename>rpcserver/jsonresult/getmempoolresult.go package jsonresult import "github.com/incognitochain/incognito-chain/metadata" type GetMempoolInfo struct { Size int `json:"Size"` Bytes uint64 `json:"Bytes"` Usage uint64 `json:"Usage"` MaxMempool uint64 `json:"MaxMempool"` MempoolMinFee uint64 `json:"MempoolMinFee"` MempoolMaxFee uint64 `json:"MempoolMaxFee"` ListTxs []GetMempoolInfoTx `json:"ListTxs"` } type GetMempoolInfoTx struct { TxID string `json:"TxID"` LockTime int64 `json:"LockTime"` } type GetRawMempoolResult struct { TxHashes []string } type GetMempoolEntryResult struct { Tx metadata.Transaction }
package com.netcracker.ncstore.service.web.company; import com.netcracker.ncstore.dto.request.CompanyDetailedInfoRequest; import com.netcracker.ncstore.dto.request.CompanyUpdateRequest; import com.netcracker.ncstore.dto.response.CompanyDetailedInfoResponse; import com.netcracker.ncstore.dto.response.CompanyInfoResponse; import com.netcracker.ncstore.dto.response.CompanyUpdateResponse; import java.util.UUID; /** * Interface for all WEB services related to Company entity operations. */ public interface ICompanyWebService { CompanyDetailedInfoResponse getDetailedCompanyInfo(CompanyDetailedInfoRequest request); CompanyInfoResponse getPublicCompanyInfo(UUID companyId); CompanyUpdateResponse updateCompanyInfo(CompanyUpdateRequest request); }
<reponame>jsigee87/onnx-tensorflow from onnx_tf.handlers.frontend_handler import FrontendHandler from onnx_tf.handlers.handler import onnx_op from onnx_tf.handlers.handler import tf_op from .pool_mixin import PoolMixin @onnx_op("MaxPool") @tf_op("MaxPoolWithArgmax") class MaxPoolWithArgmax(PoolMixin, FrontendHandler): @classmethod def version_8(cls, node, **kwargs): return cls.pool_op(node, data_format="NHWC", **kwargs)
#!/usr/bin/env bash export WORKING_DIR=`pwd` # server stack sudo apt-get update -y -q sudo apt-get install nginx # enable php-fpm echo "cgi.fix_pathinfo = 0;" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm # configure nginx sudo sed -i -e"s/user www-data;/user root;/" /etc/nginx/nginx.conf sudo sed -i -e"s/keepalive_timeout\s*65/keepalive_timeout 2/" /etc/nginx/nginx.conf sudo sed -i -e"s/keepalive_timeout 2/keepalive_timeout 2;\n\tclient_max_body_size 3m/" /etc/nginx/nginx.conf cat ./.travis/nginx.conf | sed -e "s,%TRAVIS_BUILD_DIR%,$WORKING_DIR,g" | sudo tee /etc/nginx/sites-available/default > /dev/null # apply server permissions mkdir -p $WORKING_DIR/shared touch $WORKING_DIR/shared/logs.txt sudo chown -R www-data $WORKING_DIR/shared sudo chown -R www-data $WORKING_DIR/public/storage sudo service nginx restart # Configure custom domain echo "127.0.0.1 hook.dev" | sudo tee --append /etc/hosts # output trying to create an app to check if API is responding curl -XPOST http://hook.dev/index.php/apps --data '{"app":{"name":"testing"}}' # then create default app curl -XPOST http://hook.dev/index.php/apps --data '{"app":{"name":"travis"}}' > tests/app.json cat tests/app.json
<gh_stars>1-10 #include "../src/font_private.h" #include "../src/text.h" #include "utest.h" /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// UTEST(Text, test_utf8_decode_ascii) { u8 temp_buffer[256]; LinearAllocator alloc; LinearAllocator_create(&alloc, "temp", temp_buffer, sizeof(temp_buffer)); Utf8Result res = Utf8_to_codepoints_u32(&alloc, (u8*)"abcd", strlen("abcd")); ASSERT_EQ(res.error, FlError_None); ASSERT_NE(NULL, res.codepoints); ASSERT_EQ(4, res.len); ASSERT_EQ('a', res.codepoints[0]); ASSERT_EQ('b', res.codepoints[1]); ASSERT_EQ('c', res.codepoints[2]); ASSERT_EQ('d', res.codepoints[3]); } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// UTEST(Text, test_utf8_decode_illegal) { u8 temp_buffer[8192]; LinearAllocator alloc; LinearAllocator_create(&alloc, "temp", temp_buffer, sizeof(temp_buffer)); // Taken from https://www.w3.org/2001/06/utf-8-wrong/UTF-8-test.html // TODO: Add the whole set ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xff", 1).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xc0\xaf", 2).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xe0\x80\xaf", 3).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xe0\x80\x80\xaf", 4).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xe0\x80\x80\x80\xaf", 5).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xed\xa0\x80", 3).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xed\xad\xbf", 3).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xed\xae\x80", 3).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xed\xaf\xbf", 3).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xed\xb0\x80", 3).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xed\xbe\x80", 3).error); ASSERT_EQ(FlError_Utf8Malformed, Utf8_to_codepoints_u32(&alloc, (u8*)"\xed\xbf\xbf", 3).error); }
<filename>src/main/java/com/baidu/xuper/pb/XendorserOuterClass.java // Generated by the protocol buffer compiler. DO NOT EDIT! // source: xendorser.proto package com.baidu.xuper.pb; public final class XendorserOuterClass { private XendorserOuterClass() { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public interface EndorserRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:pb.EndorserRequest) com.google.protobuf.MessageLiteOrBuilder { /** * <code>optional .pb.Header header = 1;</code> */ boolean hasHeader(); /** * <code>optional .pb.Header header = 1;</code> */ com.baidu.xuper.pb.XchainOuterClass.Header getHeader(); /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ java.lang.String getRequestName(); /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ com.google.protobuf.ByteString getRequestNameBytes(); /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ java.lang.String getBcName(); /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ com.google.protobuf.ByteString getBcNameBytes(); /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ boolean hasFee(); /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ com.baidu.xuper.pb.XchainOuterClass.Transaction getFee(); /** * <pre> * Json打包的数据 * </pre> * * <code>optional bytes RequestData = 5;</code> */ com.google.protobuf.ByteString getRequestData(); } /** * <pre> * 请求参数 * </pre> * <p> * Protobuf type {@code pb.EndorserRequest} */ public static final class EndorserRequest extends com.google.protobuf.GeneratedMessageLite< EndorserRequest, EndorserRequest.Builder> implements // @@protoc_insertion_point(message_implements:pb.EndorserRequest) EndorserRequestOrBuilder { private EndorserRequest() { requestName_ = ""; bcName_ = ""; requestData_ = com.google.protobuf.ByteString.EMPTY; } public static final int HEADER_FIELD_NUMBER = 1; private com.baidu.xuper.pb.XchainOuterClass.Header header_; /** * <code>optional .pb.Header header = 1;</code> */ public boolean hasHeader() { return header_ != null; } /** * <code>optional .pb.Header header = 1;</code> */ public com.baidu.xuper.pb.XchainOuterClass.Header getHeader() { return header_ == null ? com.baidu.xuper.pb.XchainOuterClass.Header.getDefaultInstance() : header_; } /** * <code>optional .pb.Header header = 1;</code> */ private void setHeader(com.baidu.xuper.pb.XchainOuterClass.Header value) { if (value == null) { throw new NullPointerException(); } header_ = value; } /** * <code>optional .pb.Header header = 1;</code> */ private void setHeader( com.baidu.xuper.pb.XchainOuterClass.Header.Builder builderForValue) { header_ = builderForValue.build(); } /** * <code>optional .pb.Header header = 1;</code> */ private void mergeHeader(com.baidu.xuper.pb.XchainOuterClass.Header value) { if (header_ != null && header_ != com.baidu.xuper.pb.XchainOuterClass.Header.getDefaultInstance()) { header_ = com.baidu.xuper.pb.XchainOuterClass.Header.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } } /** * <code>optional .pb.Header header = 1;</code> */ private void clearHeader() { header_ = null; } public static final int REQUESTNAME_FIELD_NUMBER = 2; private java.lang.String requestName_; /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ public java.lang.String getRequestName() { return requestName_; } /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ public com.google.protobuf.ByteString getRequestNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(requestName_); } /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ private void setRequestName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } requestName_ = value; } /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ private void clearRequestName() { requestName_ = getDefaultInstance().getRequestName(); } /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ private void setRequestNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestName_ = value.toStringUtf8(); } public static final int BCNAME_FIELD_NUMBER = 3; private java.lang.String bcName_; /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ public java.lang.String getBcName() { return bcName_; } /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ public com.google.protobuf.ByteString getBcNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(bcName_); } /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ private void setBcName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bcName_ = value; } /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ private void clearBcName() { bcName_ = getDefaultInstance().getBcName(); } /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ private void setBcNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bcName_ = value.toStringUtf8(); } public static final int FEE_FIELD_NUMBER = 4; private com.baidu.xuper.pb.XchainOuterClass.Transaction fee_; /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ public boolean hasFee() { return fee_ != null; } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ public com.baidu.xuper.pb.XchainOuterClass.Transaction getFee() { return fee_ == null ? com.baidu.xuper.pb.XchainOuterClass.Transaction.getDefaultInstance() : fee_; } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ private void setFee(com.baidu.xuper.pb.XchainOuterClass.Transaction value) { if (value == null) { throw new NullPointerException(); } fee_ = value; } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ private void setFee( com.baidu.xuper.pb.XchainOuterClass.Transaction.Builder builderForValue) { fee_ = builderForValue.build(); } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ private void mergeFee(com.baidu.xuper.pb.XchainOuterClass.Transaction value) { if (fee_ != null && fee_ != com.baidu.xuper.pb.XchainOuterClass.Transaction.getDefaultInstance()) { fee_ = com.baidu.xuper.pb.XchainOuterClass.Transaction.newBuilder(fee_).mergeFrom(value).buildPartial(); } else { fee_ = value; } } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ private void clearFee() { fee_ = null; } public static final int REQUESTDATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString requestData_; /** * <pre> * Json打包的数据 * </pre> * * <code>optional bytes RequestData = 5;</code> */ public com.google.protobuf.ByteString getRequestData() { return requestData_; } /** * <pre> * Json打包的数据 * </pre> * * <code>optional bytes RequestData = 5;</code> */ private void setRequestData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } requestData_ = value; } /** * <pre> * Json打包的数据 * </pre> * * <code>optional bytes RequestData = 5;</code> */ private void clearRequestData() { requestData_ = getDefaultInstance().getRequestData(); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (!requestName_.isEmpty()) { output.writeString(2, getRequestName()); } if (!bcName_.isEmpty()) { output.writeString(3, getBcName()); } if (fee_ != null) { output.writeMessage(4, getFee()); } if (!requestData_.isEmpty()) { output.writeBytes(5, requestData_); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!requestName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getRequestName()); } if (!bcName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(3, getBcName()); } if (fee_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getFee()); } if (!requestData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, requestData_); } memoizedSerializedSize = size; return size; } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * <pre> * 请求参数 * </pre> * <p> * Protobuf type {@code pb.EndorserRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest, Builder> implements // @@protoc_insertion_point(builder_implements:pb.EndorserRequest) com.baidu.xuper.pb.XendorserOuterClass.EndorserRequestOrBuilder { // Construct using com.baidu.xuperunion.pb.XendorserOuterClass.EndorserRequest.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * <code>optional .pb.Header header = 1;</code> */ public boolean hasHeader() { return instance.hasHeader(); } /** * <code>optional .pb.Header header = 1;</code> */ public com.baidu.xuper.pb.XchainOuterClass.Header getHeader() { return instance.getHeader(); } /** * <code>optional .pb.Header header = 1;</code> */ public Builder setHeader(com.baidu.xuper.pb.XchainOuterClass.Header value) { copyOnWrite(); instance.setHeader(value); return this; } /** * <code>optional .pb.Header header = 1;</code> */ public Builder setHeader( com.baidu.xuper.pb.XchainOuterClass.Header.Builder builderForValue) { copyOnWrite(); instance.setHeader(builderForValue); return this; } /** * <code>optional .pb.Header header = 1;</code> */ public Builder mergeHeader(com.baidu.xuper.pb.XchainOuterClass.Header value) { copyOnWrite(); instance.mergeHeader(value); return this; } /** * <code>optional .pb.Header header = 1;</code> */ public Builder clearHeader() { copyOnWrite(); instance.clearHeader(); return this; } /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ public java.lang.String getRequestName() { return instance.getRequestName(); } /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ public com.google.protobuf.ByteString getRequestNameBytes() { return instance.getRequestNameBytes(); } /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ public Builder setRequestName( java.lang.String value) { copyOnWrite(); instance.setRequestName(value); return this; } /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ public Builder clearRequestName() { copyOnWrite(); instance.clearRequestName(); return this; } /** * <pre> * 请求名(类型) * </pre> * * <code>optional string RequestName = 2;</code> */ public Builder setRequestNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setRequestNameBytes(value); return this; } /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ public java.lang.String getBcName() { return instance.getBcName(); } /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ public com.google.protobuf.ByteString getBcNameBytes() { return instance.getBcNameBytes(); } /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ public Builder setBcName( java.lang.String value) { copyOnWrite(); instance.setBcName(value); return this; } /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ public Builder clearBcName() { copyOnWrite(); instance.clearBcName(); return this; } /** * <pre> * 请求链名 * </pre> * * <code>optional string BcName = 3;</code> */ public Builder setBcNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setBcNameBytes(value); return this; } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ public boolean hasFee() { return instance.hasFee(); } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ public com.baidu.xuper.pb.XchainOuterClass.Transaction getFee() { return instance.getFee(); } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ public Builder setFee(com.baidu.xuper.pb.XchainOuterClass.Transaction value) { copyOnWrite(); instance.setFee(value); return this; } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ public Builder setFee( com.baidu.xuper.pb.XchainOuterClass.Transaction.Builder builderForValue) { copyOnWrite(); instance.setFee(builderForValue); return this; } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ public Builder mergeFee(com.baidu.xuper.pb.XchainOuterClass.Transaction value) { copyOnWrite(); instance.mergeFee(value); return this; } /** * <pre> * 带签名的交易费Tx * </pre> * * <code>optional .pb.Transaction Fee = 4;</code> */ public Builder clearFee() { copyOnWrite(); instance.clearFee(); return this; } /** * <pre> * Json打包的数据 * </pre> * * <code>optional bytes RequestData = 5;</code> */ public com.google.protobuf.ByteString getRequestData() { return instance.getRequestData(); } /** * <pre> * Json打包的数据 * </pre> * * <code>optional bytes RequestData = 5;</code> */ public Builder setRequestData(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setRequestData(value); return this; } /** * <pre> * Json打包的数据 * </pre> * * <code>optional bytes RequestData = 5;</code> */ public Builder clearRequestData() { copyOnWrite(); instance.clearRequestData(); return this; } // @@protoc_insertion_point(builder_scope:pb.EndorserRequest) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest other = (com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest) arg1; header_ = visitor.visitMessage(header_, other.header_); requestName_ = visitor.visitString(!requestName_.isEmpty(), requestName_, !other.requestName_.isEmpty(), other.requestName_); bcName_ = visitor.visitString(!bcName_.isEmpty(), bcName_, !other.bcName_.isEmpty(), other.bcName_); fee_ = visitor.visitMessage(fee_, other.fee_); requestData_ = visitor.visitByteString(requestData_ != com.google.protobuf.ByteString.EMPTY, requestData_, other.requestData_ != com.google.protobuf.ByteString.EMPTY, other.requestData_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { com.baidu.xuper.pb.XchainOuterClass.Header.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(com.baidu.xuper.pb.XchainOuterClass.Header.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { String s = input.readStringRequireUtf8(); requestName_ = s; break; } case 26: { String s = input.readStringRequireUtf8(); bcName_ = s; break; } case 34: { com.baidu.xuper.pb.XchainOuterClass.Transaction.Builder subBuilder = null; if (fee_ != null) { subBuilder = fee_.toBuilder(); } fee_ = input.readMessage(com.baidu.xuper.pb.XchainOuterClass.Transaction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fee_); fee_ = subBuilder.buildPartial(); } break; } case 42: { requestData_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:pb.EndorserRequest) private static final com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new EndorserRequest(); DEFAULT_INSTANCE.makeImmutable(); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser<EndorserRequest> PARSER; public static com.google.protobuf.Parser<EndorserRequest> parser() { return DEFAULT_INSTANCE.getParserForType(); } } public interface EndorserResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:pb.EndorserResponse) com.google.protobuf.MessageLiteOrBuilder { /** * <code>optional .pb.Header header = 1;</code> */ boolean hasHeader(); /** * <code>optional .pb.Header header = 1;</code> */ com.baidu.xuper.pb.XchainOuterClass.Header getHeader(); /** * <code>optional string ResponseName = 2;</code> */ java.lang.String getResponseName(); /** * <code>optional string ResponseName = 2;</code> */ com.google.protobuf.ByteString getResponseNameBytes(); /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ java.lang.String getEndorserAddress(); /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ com.google.protobuf.ByteString getEndorserAddressBytes(); /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ boolean hasEndorserSign(); /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ com.baidu.xuper.pb.XchainOuterClass.SignatureInfo getEndorserSign(); /** * <code>optional bytes ResponseData = 5;</code> */ com.google.protobuf.ByteString getResponseData(); } /** * Protobuf type {@code pb.EndorserResponse} */ public static final class EndorserResponse extends com.google.protobuf.GeneratedMessageLite< EndorserResponse, EndorserResponse.Builder> implements // @@protoc_insertion_point(message_implements:pb.EndorserResponse) EndorserResponseOrBuilder { private EndorserResponse() { responseName_ = ""; endorserAddress_ = ""; responseData_ = com.google.protobuf.ByteString.EMPTY; } public static final int HEADER_FIELD_NUMBER = 1; private com.baidu.xuper.pb.XchainOuterClass.Header header_; /** * <code>optional .pb.Header header = 1;</code> */ public boolean hasHeader() { return header_ != null; } /** * <code>optional .pb.Header header = 1;</code> */ public com.baidu.xuper.pb.XchainOuterClass.Header getHeader() { return header_ == null ? com.baidu.xuper.pb.XchainOuterClass.Header.getDefaultInstance() : header_; } /** * <code>optional .pb.Header header = 1;</code> */ private void setHeader(com.baidu.xuper.pb.XchainOuterClass.Header value) { if (value == null) { throw new NullPointerException(); } header_ = value; } /** * <code>optional .pb.Header header = 1;</code> */ private void setHeader( com.baidu.xuper.pb.XchainOuterClass.Header.Builder builderForValue) { header_ = builderForValue.build(); } /** * <code>optional .pb.Header header = 1;</code> */ private void mergeHeader(com.baidu.xuper.pb.XchainOuterClass.Header value) { if (header_ != null && header_ != com.baidu.xuper.pb.XchainOuterClass.Header.getDefaultInstance()) { header_ = com.baidu.xuper.pb.XchainOuterClass.Header.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } } /** * <code>optional .pb.Header header = 1;</code> */ private void clearHeader() { header_ = null; } public static final int RESPONSENAME_FIELD_NUMBER = 2; private java.lang.String responseName_; /** * <code>optional string ResponseName = 2;</code> */ public java.lang.String getResponseName() { return responseName_; } /** * <code>optional string ResponseName = 2;</code> */ public com.google.protobuf.ByteString getResponseNameBytes() { return com.google.protobuf.ByteString.copyFromUtf8(responseName_); } /** * <code>optional string ResponseName = 2;</code> */ private void setResponseName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } responseName_ = value; } /** * <code>optional string ResponseName = 2;</code> */ private void clearResponseName() { responseName_ = getDefaultInstance().getResponseName(); } /** * <code>optional string ResponseName = 2;</code> */ private void setResponseNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); responseName_ = value.toStringUtf8(); } public static final int ENDORSERADDRESS_FIELD_NUMBER = 3; private java.lang.String endorserAddress_; /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ public java.lang.String getEndorserAddress() { return endorserAddress_; } /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ public com.google.protobuf.ByteString getEndorserAddressBytes() { return com.google.protobuf.ByteString.copyFromUtf8(endorserAddress_); } /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ private void setEndorserAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endorserAddress_ = value; } /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ private void clearEndorserAddress() { endorserAddress_ = getDefaultInstance().getEndorserAddress(); } /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ private void setEndorserAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endorserAddress_ = value.toStringUtf8(); } public static final int ENDORSERSIGN_FIELD_NUMBER = 4; private com.baidu.xuper.pb.XchainOuterClass.SignatureInfo endorserSign_; /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ public boolean hasEndorserSign() { return endorserSign_ != null; } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ public com.baidu.xuper.pb.XchainOuterClass.SignatureInfo getEndorserSign() { return endorserSign_ == null ? com.baidu.xuper.pb.XchainOuterClass.SignatureInfo.getDefaultInstance() : endorserSign_; } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ private void setEndorserSign(com.baidu.xuper.pb.XchainOuterClass.SignatureInfo value) { if (value == null) { throw new NullPointerException(); } endorserSign_ = value; } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ private void setEndorserSign( com.baidu.xuper.pb.XchainOuterClass.SignatureInfo.Builder builderForValue) { endorserSign_ = builderForValue.build(); } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ private void mergeEndorserSign(com.baidu.xuper.pb.XchainOuterClass.SignatureInfo value) { if (endorserSign_ != null && endorserSign_ != com.baidu.xuper.pb.XchainOuterClass.SignatureInfo.getDefaultInstance()) { endorserSign_ = com.baidu.xuper.pb.XchainOuterClass.SignatureInfo.newBuilder(endorserSign_).mergeFrom(value).buildPartial(); } else { endorserSign_ = value; } } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ private void clearEndorserSign() { endorserSign_ = null; } public static final int RESPONSEDATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString responseData_; /** * <code>optional bytes ResponseData = 5;</code> */ public com.google.protobuf.ByteString getResponseData() { return responseData_; } /** * <code>optional bytes ResponseData = 5;</code> */ private void setResponseData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } responseData_ = value; } /** * <code>optional bytes ResponseData = 5;</code> */ private void clearResponseData() { responseData_ = getDefaultInstance().getResponseData(); } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } if (!responseName_.isEmpty()) { output.writeString(2, getResponseName()); } if (!endorserAddress_.isEmpty()) { output.writeString(3, getEndorserAddress()); } if (endorserSign_ != null) { output.writeMessage(4, getEndorserSign()); } if (!responseData_.isEmpty()) { output.writeBytes(5, responseData_); } } public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (!responseName_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(2, getResponseName()); } if (!endorserAddress_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeStringSize(3, getEndorserAddress()); } if (endorserSign_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getEndorserSign()); } if (!responseData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, responseData_); } memoizedSerializedSize = size; return size; } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } /** * Protobuf type {@code pb.EndorserResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse, Builder> implements // @@protoc_insertion_point(builder_implements:pb.EndorserResponse) com.baidu.xuper.pb.XendorserOuterClass.EndorserResponseOrBuilder { // Construct using com.baidu.xuperunion.pb.XendorserOuterClass.EndorserResponse.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * <code>optional .pb.Header header = 1;</code> */ public boolean hasHeader() { return instance.hasHeader(); } /** * <code>optional .pb.Header header = 1;</code> */ public com.baidu.xuper.pb.XchainOuterClass.Header getHeader() { return instance.getHeader(); } /** * <code>optional .pb.Header header = 1;</code> */ public Builder setHeader(com.baidu.xuper.pb.XchainOuterClass.Header value) { copyOnWrite(); instance.setHeader(value); return this; } /** * <code>optional .pb.Header header = 1;</code> */ public Builder setHeader( com.baidu.xuper.pb.XchainOuterClass.Header.Builder builderForValue) { copyOnWrite(); instance.setHeader(builderForValue); return this; } /** * <code>optional .pb.Header header = 1;</code> */ public Builder mergeHeader(com.baidu.xuper.pb.XchainOuterClass.Header value) { copyOnWrite(); instance.mergeHeader(value); return this; } /** * <code>optional .pb.Header header = 1;</code> */ public Builder clearHeader() { copyOnWrite(); instance.clearHeader(); return this; } /** * <code>optional string ResponseName = 2;</code> */ public java.lang.String getResponseName() { return instance.getResponseName(); } /** * <code>optional string ResponseName = 2;</code> */ public com.google.protobuf.ByteString getResponseNameBytes() { return instance.getResponseNameBytes(); } /** * <code>optional string ResponseName = 2;</code> */ public Builder setResponseName( java.lang.String value) { copyOnWrite(); instance.setResponseName(value); return this; } /** * <code>optional string ResponseName = 2;</code> */ public Builder clearResponseName() { copyOnWrite(); instance.clearResponseName(); return this; } /** * <code>optional string ResponseName = 2;</code> */ public Builder setResponseNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setResponseNameBytes(value); return this; } /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ public java.lang.String getEndorserAddress() { return instance.getEndorserAddress(); } /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ public com.google.protobuf.ByteString getEndorserAddressBytes() { return instance.getEndorserAddressBytes(); } /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ public Builder setEndorserAddress( java.lang.String value) { copyOnWrite(); instance.setEndorserAddress(value); return this; } /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ public Builder clearEndorserAddress() { copyOnWrite(); instance.clearEndorserAddress(); return this; } /** * <pre> * 背书服务地址 * </pre> * * <code>optional string EndorserAddress = 3;</code> */ public Builder setEndorserAddressBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setEndorserAddressBytes(value); return this; } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ public boolean hasEndorserSign() { return instance.hasEndorserSign(); } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ public com.baidu.xuper.pb.XchainOuterClass.SignatureInfo getEndorserSign() { return instance.getEndorserSign(); } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ public Builder setEndorserSign(com.baidu.xuper.pb.XchainOuterClass.SignatureInfo value) { copyOnWrite(); instance.setEndorserSign(value); return this; } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ public Builder setEndorserSign( com.baidu.xuper.pb.XchainOuterClass.SignatureInfo.Builder builderForValue) { copyOnWrite(); instance.setEndorserSign(builderForValue); return this; } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ public Builder mergeEndorserSign(com.baidu.xuper.pb.XchainOuterClass.SignatureInfo value) { copyOnWrite(); instance.mergeEndorserSign(value); return this; } /** * <pre> * 背书服务签名 * </pre> * * <code>optional .pb.SignatureInfo EndorserSign = 4;</code> */ public Builder clearEndorserSign() { copyOnWrite(); instance.clearEndorserSign(); return this; } /** * <code>optional bytes ResponseData = 5;</code> */ public com.google.protobuf.ByteString getResponseData() { return instance.getResponseData(); } /** * <code>optional bytes ResponseData = 5;</code> */ public Builder setResponseData(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setResponseData(value); return this; } /** * <code>optional bytes ResponseData = 5;</code> */ public Builder clearResponseData() { copyOnWrite(); instance.clearResponseData(); return this; } // @@protoc_insertion_point(builder_scope:pb.EndorserResponse) } protected final Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; } case MAKE_IMMUTABLE: { return null; } case NEW_BUILDER: { return new Builder(); } case VISIT: { Visitor visitor = (Visitor) arg0; com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse other = (com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse) arg1; header_ = visitor.visitMessage(header_, other.header_); responseName_ = visitor.visitString(!responseName_.isEmpty(), responseName_, !other.responseName_.isEmpty(), other.responseName_); endorserAddress_ = visitor.visitString(!endorserAddress_.isEmpty(), endorserAddress_, !other.endorserAddress_.isEmpty(), other.endorserAddress_); endorserSign_ = visitor.visitMessage(endorserSign_, other.endorserSign_); responseData_ = visitor.visitByteString(responseData_ != com.google.protobuf.ByteString.EMPTY, responseData_, other.responseData_ != com.google.protobuf.ByteString.EMPTY, other.responseData_); if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor .INSTANCE) { } return this; } case MERGE_FROM_STREAM: { com.google.protobuf.CodedInputStream input = (com.google.protobuf.CodedInputStream) arg0; com.google.protobuf.ExtensionRegistryLite extensionRegistry = (com.google.protobuf.ExtensionRegistryLite) arg1; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { com.baidu.xuper.pb.XchainOuterClass.Header.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(com.baidu.xuper.pb.XchainOuterClass.Header.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { String s = input.readStringRequireUtf8(); responseName_ = s; break; } case 26: { String s = input.readStringRequireUtf8(); endorserAddress_ = s; break; } case 34: { com.baidu.xuper.pb.XchainOuterClass.SignatureInfo.Builder subBuilder = null; if (endorserSign_ != null) { subBuilder = endorserSign_.toBuilder(); } endorserSign_ = input.readMessage(com.baidu.xuper.pb.XchainOuterClass.SignatureInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(endorserSign_); endorserSign_ = subBuilder.buildPartial(); } break; } case 42: { responseData_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { } } case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { if (PARSER == null) { synchronized (com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } } } return PARSER; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:pb.EndorserResponse) private static final com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new EndorserResponse(); DEFAULT_INSTANCE.makeImmutable(); } public static com.baidu.xuper.pb.XendorserOuterClass.EndorserResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser<EndorserResponse> PARSER; public static com.google.protobuf.Parser<EndorserResponse> parser() { return DEFAULT_INSTANCE.getParserForType(); } } static { } // @@protoc_insertion_point(outer_class_scope) }
#include <iostream> using namespace std; // Fibonacci function int fib(int n) { if (n <= 1) return n; return fib(n-1) + fib(n-2); } int main() { int n = 5; cout << "Fibonacci number is " << fib(n) << endl; return 0; }
export interface ITableProps { ssmCounts: {}; downloadable?: boolean; totalCases: number; totalFiles: number; endpoint?: string; hits: { edges: Array<{ node: { id: string; }; }>; total: number; }; relay: { route: { params: {}; }; }; canAddToCart?: boolean; tableHeader?: string; projects: { total: number; edges: Array<{ node: { project_id: string; summary: { file_count: number; data_categories: Array<{}>; }; }; }>; }; query: {}; }
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // 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 ETH Zurich, Wyss Zurich, Zurich Eye 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 ETH Zurich, Wyss Zurich, Zurich Eye 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. #include <imp/cu_imgproc/image_pyramid.hpp> #include <glog/logging.h> #include <imp/core/pixel_enums.hpp> namespace ze { //------------------------------------------------------------------------------ template<typename Pixel> ImagePyramid<Pixel>::ImagePyramid( Size2u size, float scale_factor, uint32_t size_bound, uint32_t max_num_levels) : scale_factor_(scale_factor) , size_bound_(size_bound) , max_num_levels_(max_num_levels) { this->init(size); } //------------------------------------------------------------------------------ template<typename Pixel> void ImagePyramid<Pixel>::clear() noexcept { levels_.clear(); scale_factors_.clear(); } //------------------------------------------------------------------------------ template<typename Pixel> void ImagePyramid<Pixel>::init(const ze::Size2u& size) { CHECK_GT(scale_factor_, 0.0f); CHECK_LT(scale_factor_, 1.0f); if (!levels_.empty() || scale_factors_.empty()) { this->clear(); } uint32_t shorter_side = std::min(size.width(), size.height()); // calculate the maximum number of levels float ratio = static_cast<float>(shorter_side)/static_cast<float>(size_bound_); // +1 because the original size is level 0 size_t possible_num_levels = static_cast<int>(-std::log(ratio)/std::log(scale_factor_)) + 1; num_levels_ = std::min(max_num_levels_, possible_num_levels); // init rate for each level for (size_t i = 0; i<num_levels_; ++i) { scale_factors_.push_back(std::pow(scale_factor_, static_cast<float>(i))); } } //============================================================================= // Explicitely instantiate the desired classes // (sync with typedefs at the end of the hpp file) template class ImagePyramid<ze::Pixel8uC1>; template class ImagePyramid<ze::Pixel8uC2>; //template class ImagePyramid<imp::Pixel8uC3>; template class ImagePyramid<ze::Pixel8uC4>; template class ImagePyramid<ze::Pixel16uC1>; template class ImagePyramid<ze::Pixel16uC2>; //template class ImagePyramid<imp::Pixel16uC3>; template class ImagePyramid<ze::Pixel16uC4>; template class ImagePyramid<ze::Pixel32sC1>; template class ImagePyramid<ze::Pixel32sC2>; //template class ImagePyramid<imp::Pixel32sC3>; template class ImagePyramid<ze::Pixel32sC4>; template class ImagePyramid<ze::Pixel32fC1>; template class ImagePyramid<ze::Pixel32fC2>; //template class ImagePyramid<imp::Pixel32fC3>; template class ImagePyramid<ze::Pixel32fC4>; } // namespace ze
#!/bin/bash -l ############################# # example for an OpenMP job # ############################# #SBATCH --job-name=example # we ask for 1 task with 20 cores #SBATCH --nodes=1 #SBATCH --ntasks-per-node=1 #SBATCH --cpus-per-task=20 # exclusive makes all memory available #SBATCH --exclusive # run for five minutes # d-hh:mm:ss #SBATCH --time=0-00:05:00 # turn on all mail notification #SBATCH --mail-type=ALL # you may not place bash commands before the last SBATCH directive # define and create a unique scratch directory SCRATCH_DIRECTORY=/global/work/${USER}/example/${SLURM_JOBID} mkdir -p ${SCRATCH_DIRECTORY} cd ${SCRATCH_DIRECTORY} # we copy everything we need to the scratch directory # ${SLURM_SUBMIT_DIR} points to the path where this script was submitted from cp ${SLURM_SUBMIT_DIR}/my_binary.x ${SCRATCH_DIRECTORY} # we set OMP_NUM_THREADS to the number of available cores export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK} # we execute the job and time it time ./my_binary.x > my_output # after the job is done we copy our output back to $SLURM_SUBMIT_DIR cp ${SCRATCH_DIRECTORY}/my_output ${SLURM_SUBMIT_DIR} # we step out of the scratch directory and remove it cd ${SLURM_SUBMIT_DIR} rm -rf ${SCRATCH_DIRECTORY} # happy end exit 0
#include <iostream> namespace volume { class GridHierarchyTree { private: int _VolumeWidth; int _VolumeHeight; int _VolumeDepth; int _FixedRefinementLevel; int _HierarchicalRefinementLevel; public: GridHierarchyTree(int fixedRefinementLevel, int hierarchicalRefinementLevel, int w, int h, int d) { _VolumeWidth = w; _VolumeHeight = h; _VolumeDepth = d; _FixedRefinementLevel = fixedRefinementLevel; _HierarchicalRefinementLevel = hierarchicalRefinementLevel; } // Other methods and members can be added as per the requirements of the grid hierarchy tree management. }; } // namespace volume int main() { // Example usage volume::GridHierarchyTree tree(2, 3, 100, 100, 50); // The constructor initializes the tree with the specified refinement levels and volume dimensions. return 0; }
<reponame>Magicking/pam-eth package main import ( "context" "math/big" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" ) // PametteHandler is a wrapper to pamette contract type PametteHandler struct { pamette *PametteCallerSession password string blockValidity *big.Int } func NewPametteHandler(pc *PametteCaller, password string) *PametteHandler { ctx := context.TODO() return &PametteHandler{ pamette: &PametteCallerSession{ Contract: pc, CallOpts: bind.CallOpts{ Context: ctx, }, }, password: password, } } func (ph *PametteHandler) GetOTP(uid int64, username string) (string, *big.Int, error) { hashToSign, bNum, err := ph.pamette.GenerateOTP(big.NewInt(uid), username, ph.password) if err != nil { return "", nil, err } ph.blockValidity = bNum return common.Bytes2Hex(hashToSign[:]), bNum, nil } func (ph *PametteHandler) VerifyAuth(uid int64, username, signature string) (bool, error) { //TODO check sig length v, r, s := extractSignature(signature) ret, err := ph.pamette.IsAuthorized(big.NewInt(uid), username, ph.password, ph.blockValidity, v, r, s) if err != nil { return false, err } if big.NewInt(0).Cmp(ret) != 0 { pamLog(ret.String()) return false, err } return true, nil } func extractSignature(signature string) (v uint8, r, s [32]byte) { sig := common.FromHex(signature) v = uint8(sig[64]) copy(r[:], sig[0:32]) copy(s[:], sig[32:64]) return v, r, s }
TERMUX_PKG_HOMEPAGE=https://tinyproxy.github.io/ TERMUX_PKG_DESCRIPTION="Light-weight HTTP proxy daemon for POSIX operating systems" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=1.11.1 TERMUX_PKG_SRCURL=https://github.com/tinyproxy/tinyproxy/releases/download/${TERMUX_PKG_VERSION}/tinyproxy-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=d66388448215d0aeb90d0afdd58ed00386fb81abc23ebac9d80e194fceb40f7c TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-regexcheck" termux_step_pre_configure() { CPPFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX" } termux_step_post_massage() { mkdir -p "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/var/log/${TERMUX_PKG_NAME}" mkdir -p "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/var/run/${TERMUX_PKG_NAME}" }
<gh_stars>0 package com.common.biz.app; /** * app模块, 路由跳转的常量类 * </br> * Date: 2018/8/18 15:57 * * @author hemin */ public class AppArouterConstant { private static final String BIZ_GROUP = "/app/"; public static final String APP_WELCOME = BIZ_GROUP + "welcome"; public static final String APP_MAIN = BIZ_GROUP + "main"; public static final String APP_GUIDE = BIZ_GROUP + "guide"; }
#!/bin/bash # # # echo "Test binary compilation" go build -o p2cli . if [ $? -ne 0 ]; then echo "=> Failed" exit 1 fi # # # echo "Test with YAML file" EXPECTED=$(cat <<-END address: localhost:5000 no_registration: true database_path: "" secret_key: verystrongsecret-jwt session: secret: verystrongsecret-paseto access_token_ttl: 440h refresh_token_ttl: 8760h brokers: - localhost:6000 - localhost:6001 - localhost:6002 END ) ACTUAL=$(./p2cli -v example.varsfile.yml example.yml.j2) if [[ $EXPECTED != $ACTUAL ]]; then echo "=> Failed" diff <(echo "$EXPECTED" ) <(echo "$ACTUAL") exit 1 fi # # # echo "Test with ENV" # # echo "- Without variables defined" echo " - STDOUT" ACTUAL=$(./p2cli -p STANDARDFILE_ example.yml.j2 2> /dev/null) if [[ -n $ACTUAL ]]; then echo "=> Failed" echo "$ACTUAL" exit 1 fi echo " - STDERR" ACTUAL=$(./p2cli -p STANDARDFILE_ example.yml.j2 2>&1 > /dev/null) if [[ $ACTUAL != "Error: no value found for key(s) [address, jwt_secret_key]" ]]; then echo "=> Failed" echo "$ACTUAL" exit 1 fi # # echo "- With all variables defined" export STANDARDFILE_ADDRESS="localhost:5000" export STANDARDFILE_NO_REGISTRATION=true export STANDARDFILE_JWT_SECRET_KEY=verystrongsecret-jwt-env export STANDARDFILE_SESSION__SECRET_KEY=verystrongsecret-paseto-env export STANDARDFILE_BROKERS='["localhost:6000","localhost:6001","localhost:6002"]' EXPECTED=$(cat <<-END address: localhost:5000 no_registration: true database_path: "" secret_key: verystrongsecret-jwt-env session: secret: verystrongsecret-paseto-env access_token_ttl: 1440h refresh_token_ttl: 8760h brokers: - localhost:6000 - localhost:6001 - localhost:6002 END ) ACTUAL=$(./p2cli -p STANDARDFILE_ example.yml.j2) if [[ $EXPECTED != $ACTUAL ]]; then echo "=> Failed" diff <(echo "$EXPECTED" ) <(echo "$ACTUAL") exit 1 fi
<filename>cgfy-cloud/cgfy-gateway/src/main/java/com/cgfy/gateway/config/GatewayLoginLimitProperties.java package com.cgfy.gateway.config; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * 共同属性获取类 * */ @Component @ConfigurationProperties(prefix="cgfy.gateway.login-limit") public class GatewayLoginLimitProperties{ public static String LOGIN_FAIL_COUNT_REDIS_KEY_NAMESPACE = "lonin_fail_count"; // 是否启用登录次数限制 private Boolean enable = false; // 单位时间内允许失败次数 private Integer numberOfAllowableFail = 5; // 单位时间,单位分钟 private Integer refreshInterval = 24*60; // 登录限制时间,单位分钟, 如果不设置,将使用refreshInterval private Integer limitTime; // 登录失败次数Redis key 命名空间 private String loginFailCountRedisKeyNamespace; public Boolean getEnable() { return enable; } public void setEnable(Boolean enable) { this.enable = enable; } public Integer getNumberOfAllowableFail() { return numberOfAllowableFail; } public void setNumberOfAllowableFail(Integer numberOfAllowableFail) { if(numberOfAllowableFail!=null && numberOfAllowableFail<=0) { throw new RuntimeException("[numberOfAllowableFail] must greater than 0 "); } this.numberOfAllowableFail = numberOfAllowableFail; } public Integer getRefreshInterval() { return refreshInterval; } public void setRefreshInterval(Integer refreshInterval) { this.refreshInterval = refreshInterval; } public Integer getLimitTime() { return limitTime; } public void setLimitTime(Integer limitTime) { this.limitTime = limitTime; } public String getLoginFailCountRedisKeyNamespace() { String namespace = loginFailCountRedisKeyNamespace; if(namespace==null || namespace.isEmpty()) { namespace = LOGIN_FAIL_COUNT_REDIS_KEY_NAMESPACE; } if(!namespace.endsWith(":")) { namespace += ":" ; } return namespace; } public void setLoginFailCountRedisKeyNamespace(String loginFailCountRedisKeyNamespace) { this.loginFailCountRedisKeyNamespace = loginFailCountRedisKeyNamespace; } }
import os import argparse import shutil from datetime import datetime def file_exists(fname): if not os.path.isfile(fname): raise argparse.ArgumentTypeError("%r is not a valid file" % (fname,)) return fname def create_output_directories(fname): file_name, file_extension = os.path.splitext(fname) output_dir = "output" archive_dir = "archive" if not os.path.exists(output_dir): os.makedirs(output_dir) if not os.path.exists(archive_dir): os.makedirs(archive_dir) output_subdir = os.path.join(output_dir, os.path.splitext(fname)[0]) archive_subdir = os.path.join(archive_dir, f"{file_name}_{datetime.now().strftime('%Y-%m-%d')}") if not os.path.exists(output_subdir): os.makedirs(output_subdir) if not os.path.exists(archive_subdir): os.makedirs(archive_subdir) print(f"Output directories created: {output_subdir}, {archive_subdir}") if __name__ == "__main__": parser = argparse.ArgumentParser(description='Check file existence and create output directories') parser.add_argument('filename', type=file_exists, help='Input file name') args = parser.parse_args() create_output_directories(args.filename)
<filename>pirates/piratesgui/HighSeasScoreboard.py # File: H (Python 2.4) from direct.gui.DirectGui import * from pandac.PandaModules import * from direct.distributed.ClockDelta import * from pirates.piratesbase import PiratesGlobals from pirates.piratesbase import PLocalizer from pirates.piratesbase import Freebooter from pirates.piratesgui import PiratesGuiGlobals from pirates.piratesgui import GuiPanel from pirates.piratesgui import Scoreboard from pirates.piratesgui import DialogButton from pirates.piratesgui import GuiButton from pirates.ai import HolidayGlobals from pirates.uberdog.UberDogGlobals import * from pirates.economy import EconomyGlobals from pirates.ship import ShipGlobals from pirates.inventory.InventoryUIGlobals import * from pirates.inventory import InventoryUIPlunderGridContainer from pirates.battle import WeaponGlobals from pirates.uberdog.UberDogGlobals import InventoryType import time from pirates.piratesgui import MessageGlobals class HighSeasScoreboard(GuiPanel.GuiPanel): width = PiratesGuiGlobals.PortPanelWidth height = PiratesGuiGlobals.PortPanelHeight titleHeight = PiratesGuiGlobals.PortTitleHeight buffer = 0.050000000000000003 def __init__(self, name, stats, playerStats, ship): GuiPanel.GuiPanel.__init__(self, '', self.width, self.height, showClose = False) self.ship = ship self.stats = stats self.playerStats = playerStats self.plunderHeight = 1.6499999999999999 self.initialiseoptions(HighSeasScoreboard) self.leftPanel = None self.rightPanel = None self.addedLootInfoText = 0 self.autoPlundered = 0 self.preAutoPlundered = 0 self.displayedGold = 0 titleTxt = PLocalizer.ScoreboardTitle if self.ship.shipClass == ShipGlobals.BLACK_PEARL: titleTxt = PLocalizer.BlackPearlScoreboard else: titleTxt = PLocalizer.LootScoreboard self.title = DirectLabel(parent = self, relief = None, text = titleTxt, text_align = TextNode.ALeft, text_scale = self.titleHeight, text_fg = PiratesGuiGlobals.TextFG10, text_shadow = PiratesGuiGlobals.TextShadow, pos = (0.029999999999999999, 0, self.height - self.titleHeight - 0.029999999999999999), text_font = PiratesGlobals.getPirateOutlineFont(), textMayChange = 1) self.closeButton = DialogButton.DialogButton(parent = self, buttonStyle = DialogButton.DialogButton.NO, text = PLocalizer.lClose, pos = (1.05, 0, 0.074999999999999997), command = self.closePanel) self.labels = [] self.grids = { } self.manager = base.localAvatar.guiMgr.inventoryUIManager self.buttonSize = self.manager.standardButtonSize main_gui = loader.loadModel('models/gui/gui_main') generic_x = main_gui.find('**/x2') generic_box = main_gui.find('**/exit_button') generic_box_over = main_gui.find('**/exit_button_over') main_gui.removeNode() self.newCloseButton = GuiButton.GuiButton(parent = self, relief = None, pos = (2.2999999999999998, 0, 1.0800000000000001), image = (generic_box, generic_box, generic_box_over, generic_box), image_scale = 0.40000000000000002, command = self.closePanel) xButton = OnscreenImage(parent = self.newCloseButton, image = generic_x, scale = 0.20000000000000001, pos = (-0.25600000000000001, 0, 0.76600000000000001)) gui = loader.loadModel('models/gui/toplevel_gui') buttonImage = (gui.find('**/generic_button'), gui.find('**/generic_button_down'), gui.find('**/generic_button_over'), gui.find('**/generic_button_disabled')) gui.removeNode() self.takeAllButton = DirectButton(parent = self, relief = None, image = buttonImage, image_scale = (0.34999999999999998, 1.0, 0.22), image0_color = VBase4(0.65000000000000002, 0.65000000000000002, 0.65000000000000002, 1), image1_color = VBase4(0.40000000000000002, 0.40000000000000002, 0.40000000000000002, 1), image2_color = VBase4(0.90000000000000002, 0.90000000000000002, 0.90000000000000002, 1), image3_color = VBase4(0.40999999999999998, 0.40000000000000002, 0.40000000000000002, 1), text = PLocalizer.InventoryPlunderTakeAll, text_font = PiratesGlobals.getPirateBoldOutlineFont(), text_align = TextNode.ACenter, text_pos = (0, -0.01), text_scale = PiratesGuiGlobals.TextScaleLarge, text_fg = PiratesGuiGlobals.TextFG2, text_shadow = PiratesGuiGlobals.TextShadow, pos = (1.3, 0, 0.074999999999999997), command = self.takeAllLoot) self.takeAllIncidentalsButton = DirectButton(parent = self, relief = None, image = buttonImage, image_scale = (0.34999999999999998, 1.0, 0.22), image0_color = VBase4(0.65000000000000002, 0.65000000000000002, 0.65000000000000002, 1), image1_color = VBase4(0.40000000000000002, 0.40000000000000002, 0.40000000000000002, 1), image2_color = VBase4(0.90000000000000002, 0.90000000000000002, 0.90000000000000002, 1), image3_color = VBase4(0.40999999999999998, 0.40000000000000002, 0.40000000000000002, 1), text = PLocalizer.InventoryPlunderTakeAllSundries, text_font = PiratesGlobals.getPirateBoldOutlineFont(), text_align = TextNode.ACenter, text_pos = (0, -0.01), text_scale = PiratesGuiGlobals.TextScaleLarge, text_fg = PiratesGuiGlobals.TextFG2, text_shadow = PiratesGuiGlobals.TextShadow, pos = (0.80000000000000004, 0, 0.074999999999999997), command = self.requestAllIncidentals) self.setBin('gui-fixed', -1) self.autoLootList = [ InventoryType.ItemTypeMoney, InventoryCategory.MONEY] self.incidentalsList = [ InventoryType.ItemTypeMoney, InventoryType.ItemTypeConsumable, InventoryType.TreasureCollection, InventoryCategory.CARDS, InventoryCategory.MONEY, InventoryCategory.WEAPON_PISTOL_AMMO, InventoryCategory.WEAPON_GRENADE_AMMO, InventoryCategory.WEAPON_CANNON_AMMO, InventoryCategory.WEAPON_DAGGER_AMMO] self.incidentalsDict = { } base.hss = self self.initFlag = 0 self.initPlunder() def startInitTask(self): taskMgr.add(self.startHHPlunderTask, 'startHHPlunderTask') def startHHPlunderTask(self, task = None): if self.isHidden(): return task.cont elif self.initFlag == 0: self.initPlunder() taskMgr.remove('startHHPlunderTask') return task.done def initPlunder(self): self.createScoreboard() self.requestAutoLoot() self.arrangeGrids() self.accept('lootsystem-plunderContainer-Empty', self.onEmptyContainer, [ False]) self.accept('Scoreboard-Loot-Timed-Out', self.onLootTimeout, [ False]) self.acceptOnce('Scoreboard-Loot-Timed-Out-Warning', self.warnLootTimeout, [ False]) self.initFlag = 1 def destroy(self): self.ignore('lootsystem-plunderContainer-Empty') taskMgr.remove('prePlunderHighSeasLootPanel') self.labels = [] if self.leftPanel: self.leftPanel.destroy() self.leftPanel = None if self.rightPanel: self.rightPanel.destroy() self.rightPanel = None for grid in self.grids.values(): grid.destroy() self.grids = { } if self.manager: self.manager.removeScoreboard() self.manager = None GuiPanel.GuiPanel.destroy(self) def getMissionResults(self): (missionTime, shipDamage, skeletonKills, navyKills, creatureKills, seamonsterKills, pirateKills, townfolkKills, shipKills, repairCost, exp, gold, cargo, numCrew) = self.stats (pMissionTime, pShipDamage, pSkeletonKills, pNavyKills, pCreatureKills, pSeamonsterKills, pPirateKills, pTownfolkKills, pShipKills, pRepairCost, pExp, pGold, pCargo, pLootBoxes, dummyCrew) = self.playerStats inventory = base.localAvatar.getInventory() if inventory: currentGold = inventory.getGoldInPocket() t = time.gmtime(missionTime) totalTime = str(t[3]) + '"' + str(t[4]) + "'" + str(t[5]) self.cargo = cargo cargoValue = EconomyGlobals.getCargoTotalValue(cargo) totalGold = max(cargoValue + gold - repairCost, 0) self.results = [] self.results.append({ 'Type': 'Title', 'Text': PLocalizer.PlunderedLootContainers, 'Value1': '' }) if len(pLootBoxes) == 0: self.results.append({ 'Type': 'Entry', 'Text': PLocalizer.NoLootContainersPlundered, 'Value1': '', 'UnwrapMode': 1 }) else: gold = 0 height = self.plunderHeight for lootBox in pLootBoxes: plunderList = lootBox[1] gridText = self.getLootLabel(lootBox[2]) self.makeLootLabel(gridText, self.plunderHeight) grid = self.setupPlunderGrid(plunderList, height, lootBox[0]) grid.gridText = gridText self.manager.addScoreboard(self) return self.results def arrangeGrids(self): for label in self.labels: label.destroy() height = self.plunderHeight headingHeight = 0.029999999999999999 marginHeight = 0.10000000000000001 containerCount = 0 for grid in self.grids.values(): gridHasStuff = 0 for cell in grid.cellList: if cell.inventoryItem: gridHasStuff = 1 continue if gridHasStuff: self.makeLootLabel(grid.gridText, height) height -= headingHeight gridHeight = grid.plunderRows / 2 zPos = height - self.buttonSize * float(gridHeight) grid.setPos(0.10000000000000001, 0, zPos) plunderLength = len(grid.cellList) plunderHeight = (int(len(grid.cellList)) / 2 + len(grid.cellList) % 2) * self.buttonSize height -= plunderHeight height -= marginHeight continue if not grid.isEmpty(): continue def getCargoResults(self): (missionTime, shipDamage, skeletonKills, navyKills, creatureKills, seamonsterKills, pirateKills, townfolkKills, shipKills, repairCost, exp, gold, cargo, numCrew) = self.stats (pMissionTime, pShipDamage, pSkeletonKills, pNavyKills, pCreatureKills, pSeamonsterKills, pPirateKills, pTownfolkKills, pShipKills, pRepairCost, pExp, pGold, pCargo, pLootBoxes, dummyCrew) = self.playerStats inventory = base.localAvatar.getInventory() if inventory: currentGold = inventory.getGoldInPocket() avId = base.localAvatar.getDoId() cargoValue = EconomyGlobals.getCargoTotalValue(pCargo) totalGold = cargoValue + pGold bonusGold = 0 if base.localAvatar.ship: if base.localAvatar.ship.getOwnerId() == avId and len(base.localAvatar.ship.getCrew()) > 1: bonusGold = int(totalGold * EconomyGlobals.CAPTAIN_LOOT_MULTIPLIER) totalGold += bonusGold if base.cr.newsManager: if base.cr.newsManager.getHoliday(HolidayGlobals.DOUBLEGOLDHOLIDAYPAID) or Freebooter.getPaidStatus(avId) or base.cr.newsManager.getHoliday(HolidayGlobals.DOUBLEGOLDHOLIDAY): totalGold *= 2 netGold = totalGold - pRepairCost self.results = [] self.results.append({ 'Type': 'Title', 'Text': PLocalizer.CargoPlunder, 'Value1': '' }) if pGold: self.results.append({ 'Type': 'Entry', 'Text': PLocalizer.GoldLooted, 'Value1': pGold, 'Value2': gold }) if len(pCargo) == 0: self.results.append({ 'Type': 'Entry', 'Text': PLocalizer.NoCargoLooted, 'Value1': '', 'UnwrapMode': 1 }) else: cargoDict = { } for itemId in pCargo: cargoCount = cargoDict.get(itemId, None) if cargoCount == None: cargoDict[itemId] = 0 cargoDict[itemId] += 1 for cargoKey in cargoDict: amount = cargoDict[cargoKey] self.results.append({ 'Type': 'Cargo', 'Text': '', 'Value1': cargoKey, 'UnwrapMode': 1, 'Amount': amount }) if bonusGold > 0: self.results.append({ 'Type': 'Space', 'Text': '', 'Value1': '', 'UnwrapMode': 1 }) self.results.append({ 'Type': 'Entry', 'Text': PLocalizer.CaptainsBonus, 'Value1': str(bonusGold) + ' ' + PLocalizer.MoneyName, 'UnwrapMode': 1 }) if base.cr.newsManager: if base.cr.newsManager.getHoliday(HolidayGlobals.DOUBLEGOLDHOLIDAYPAID) or Freebooter.getPaidStatus(avId) or base.cr.newsManager.getHoliday(HolidayGlobals.DOUBLEGOLDHOLIDAY): self.results.append({ 'Type': 'Space', 'Text': '', 'Value1': '', 'UnwrapMode': 1 }) self.results.append({ 'Type': 'Entry', 'Text': PLocalizer.DoubleGoldBonus, 'Value1': str(totalGold / 2) + ' ' + PLocalizer.MoneyName, 'UnwrapMode': 1 }) self.results.append({ 'Type': 'Space', 'Text': '', 'Value1': '', 'UnwrapMode': 1 }) self.results.append({ 'Type': 'Title', 'Text': PLocalizer.PlunderShare, 'Value1': str(netGold) + ' ' + PLocalizer.MoneyName, 'UnwrapMode': 1 }) return self.results def createScoreboard(self): (pMissionTime, pShipDamage, pSkeletonKills, pNavyKills, pCreatureKills, pSeamonsterKills, pPirateKills, pTownfolkKills, pShipKills, pRepairCost, pExp, pGold, pCargo, pLootBoxes, dummyCrew) = self.playerStats missionResults = self.getMissionResults() self.leftPanel = Scoreboard.Scoreboard('', (self.width - self.buffer * 2) / 2.0, self.height - 0.10000000000000001, missionResults, self.titleHeight) self.leftPanel.reparentTo(self) self.leftPanel.setPos(self.buffer, 0, 0.20000000000000001) cargoResults = self.getCargoResults() self.rightPanel = Scoreboard.Scoreboard('', (self.width - self.buffer * 2) / 2.0, self.height - 0.10000000000000001, cargoResults, self.titleHeight) self.rightPanel.reparentTo(self) self.rightPanel.setPos((self.width + self.buffer) / 2.0, 0, 0.20000000000000001) if len(pLootBoxes) == 0: self.leftPanel.hide() self.configure(frameSize = (self.width / 4.0, self.width * 3.0 / 4.0, 0, self.height)) self.title.setX(self.width / 4.0 + 0.029999999999999999) self.rightPanel.setX(self.width / 4.0 + self.buffer) if len(pLootBoxes) == 0 and len(pCargo) == 0: self.takeAllButton.hide() self.newCloseButton.hide() elif len(pLootBoxes) == 0: self.closeButton.hide() self.newCloseButton.setX(1.77) else: self.closeButton.hide() def getListFinishedMessage(self): return 'listFinished' def setupPlunderGrid(self, plunderList, height, containerId): if hasattr(base, 'localAvatar') and base.localAvatar.guiMgr: plunderLength = len(plunderList) odd = plunderLength % 2 if odd: plunderLength += 1 gridHeight = plunderLength / 2 grid = InventoryUIPlunderGridContainer.InventoryUIPlunderGridContainer(self.manager, self.buttonSize * 6.5, self.buttonSize * float(gridHeight), 2, gridHeight) grid.reparentTo(self) zPos = height - self.buttonSize * float(gridHeight) grid.setupPlunder(plunderList) grid.plunderRows = plunderLength self.grids[containerId] = grid return grid def getLootLabel(self, lootType): gridText = 'Error Loot' if lootType == PiratesGlobals.ITEM_SAC: gridText = PLocalizer.LootContainerItemSac elif lootType == PiratesGlobals.TREASURE_CHEST: gridText = PLocalizer.LootContainerTreasureChest elif lootType == PiratesGlobals.RARE_CHEST: gridText = PLocalizer.LootContainerRareChest elif lootType == PiratesGlobals.UPGRADE_CHEST: gridText = PLocalizer.LootContainerUpgradeChest elif lootType == PiratesGlobals.RARE_UPGRADE_CHEST: gridText = PLocalizer.LootContainerRareUpgradeChest return gridText def onEmptyContainer(self, event = None): self.checkAllContainers() def onLootTimeout(self, thing, containerId): if containerId in self.grids: base.localAvatar.guiMgr.queueInstructionMessageFront(PLocalizer.LootTimeoutSorry, [], None, 1.0, messageCategory = MessageGlobals.MSG_CAT_LOOT_WARNING) self.closePanel() def warnLootTimeout(self, thing, containerId): if containerId in self.grids: base.localAvatar.guiMgr.queueInstructionMessageFront(PLocalizer.LootTimeoutWarning, [], None, 1.0, messageCategory = MessageGlobals.MSG_CAT_LOOT_WARNING) def checkAllContainers(self, event = None): self.arrangeGrids() panelHasStuff = 0 for grid in self.grids.values(): for cell in grid.cellList: if cell.inventoryItem: panelHasStuff = 1 continue if not panelHasStuff: if not self.isEmpty(): self.closePanel() def takeAllLoot(self, playSound = True): if not self.grids: if not self.isEmpty(): self.closePanel() return None self.manager.takeAllLoot(self.grids.values(), playSound = playSound) self.checkAllContainers() def makeLootLabel(self, text, height): label = DirectLabel(parent = self, relief = None, text = text, text_align = TextNode.ALeft, text_scale = PiratesGuiGlobals.TextScaleExtraLarge, text_fg = PiratesGuiGlobals.TextFG2, text_shadow = PiratesGuiGlobals.TextShadow, pos = (0.10000000000000001, 0, height)) self.labels.append(label) def payForShipRepairs(self): self.ship.requestRepairAll() def getShowNextItemMessage(self): return 'showNextHighSeaStat' def closePanel(self): GuiPanel.GuiPanel.closePanel(self) self.destroy() messenger.send('highSeasScoreBoardClose') def removeLootContainer(self, containerId): grid = self.grids.pop(containerId, None) if grid: grid.destroy() def handleAutoPlunderCell(self, cell, task = None): self.requestAutoLoot() def requestAutoLoot(self): self.requestAllIncidentals(stackOnly = True, autoLoot = 1) if not (self.displayedGold) and self.rightPanel: goldAmount = self.incidentalsDict.get((InventoryType.ItemTypeMoney, InventoryType.GoldInPocket), 0) if goldAmount: newItem = { 'Type': 'Title', 'Text': PLocalizer.PlunderGold, 'Value1': str(goldAmount) + ' ' + PLocalizer.MoneyName, 'UnwrapMode': 1 } self.rightPanel.addNewResult(newItem) self.displayedGold = 1 for lootKey in self.incidentalsDict: lootAmount = self.incidentalsDict[lootKey] if lootKey[0] == InventoryCategory.MONEY: self.checkForAddLootInfoText() moneyName = PLocalizer.InventoryTypeNames.get(lootKey[1], 'No Name') newItem = { 'Type': 'ShipMaterial', 'Text': '', 'Value1': lootKey[1], 'UnwrapMode': 1, 'Amount': lootAmount } self.rightPanel.addNewResult(newItem) continue if self.rightPanel: self.rightPanel.list.redraw() self.rightPanel.fixHeight() def checkForAddLootInfoText(self): if not (self.addedLootInfoText) and self.rightPanel: self.addedLootInfoText = 1 newItem = { 'Type': 'MaterialText', 'Text': '', 'Value1': 0, 'UnwrapMode': 1, 'Amount': 0 } self.rightPanel.addNewResult(newItem) else: return None def requestAllIncidentals(self, stackOnly = False, autoLoot = 0): (pMissionTime, pShipDamage, pSkeletonKills, pNavyKills, pCreatureKills, pSeamonsterKills, pPirateKills, pTownfolkKills, pShipKills, pRepairCost, pExp, pGold, pCargo, pLootBoxes, dummyCrew) = self.playerStats checkList = self.incidentalsList if autoLoot: checkList = self.autoLootList for gridId in self.grids: grid = self.grids.get(gridId) if grid: for cell in grid.cellList: if cell.inventoryItem: if cell.inventoryItem.itemTuple[0] in checkList: if not stackOnly or cell.inventoryItem.canStack: itemInfo = cell.inventoryItem.itemTuple lootKey = self.getLootKey(cell.inventoryItem) itemEntry = self.incidentalsDict.get(lootKey, None) if not itemEntry: self.incidentalsDict[lootKey] = 0 self.incidentalsDict[lootKey] += cell.inventoryItem.amount self.manager.takePlunderItemFromCell(cell) continue def getLootKey(self, item): return (item.getCategory(), item.getId()) def printIncidentalsTaken(self): for itemKey in self.incidentalsDict: pass def requestItem(self, item): (pMissionTime, pShipDamage, pSkeletonKills, pNavyKills, pCreatureKills, pSeamonsterKills, pPirateKills, pTownfolkKills, pShipKills, pRepairCost, pExp, pGold, pCargo, pLootBoxes, dummyCrew) = self.playerStats for lootBox in pLootBoxes: for lootInfo in lootBox[1]: if item[0] == lootInfo[0] and item[1] == lootInfo[1] and item[2] == lootInfo[2]: base.cr.lootMgr.d_requestItemFromContainer(lootBox[0], item) return None continue def requestItems(self, items): (pMissionTime, pShipDamage, pSkeletonKills, pNavyKills, pCreatureKills, pSeamonsterKills, pPirateKills, pTownfolkKills, pShipKills, pRepairCost, pExp, pGold, pCargo, pLootBoxes, dummyCrew) = self.playerStats containers = { } for item in items: for lootBox in pLootBoxes: for lootInfo in lootBox[1]: if item[0] == lootInfo[0] and item[1] == lootInfo[1] and item[2] == lootInfo[2]: if lootBox[0] in containers: containers[lootBox[0]].append(item) continue containers[lootBox[0]] = [ item] continue continue if base.cr.lootMgr and containers: base.cr.lootMgr.d_requestItems(list(containers.iteritems()))
#!/usr/bin/python3 ''' Semelhante ao exemplo anterior Porem sem usar uma funcao anonima usando lampada E sim usando uma funcao comum ''' compras = ( {'quantidade': 2, 'preco': 10}, {'quantidade': 3, 'preco': 20}, {'quantidade': 5, 'preco': 14}, ) def calc_preco_total(compra): return compra['quantidade'] * compra['preco'] totais = tuple(map(calc_preco_total, compras)) print('Preços totais:', totais) print('Total geral:', sum(totais)) # Fontes: # Curso Python 3 - Curso Completo do Básico ao Avançado Udemy Aula 175 # https://github.com/cod3rcursos/curso-python/tree/master/programacao_funcional # https://is.gd/JHvlrb Python Lambda
<gh_stars>0 import React, { useState, useContext } from 'react'
<gh_stars>0 export { default as FormWithValidation } from './FormWithValidation.vue'
<filename>src/dynamic_programming/Boj2176.java<gh_stars>1-10 package dynamic_programming; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.PriorityQueue; import java.util.StringTokenizer; /** * * @author exponential-e * 백준 2176번: 합리적인 이동경로 * * @see https://www.acmicpc.net/problem/2176/ * */ public class Boj2176 { private static ArrayList<Node>[] path; private static int[] dp; private static int[][] dist; private static final int INF = 1_000_000_000; public static class Node implements Comparable<Node>{ int node; int cost; public Node(int node, int cost) { this.node = node; this.cost = cost; } @Override public int compareTo(Node n) { return this.cost < n.cost ? -1: 1; } } public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int N = Integer.parseInt(st.nextToken()); int M = Integer.parseInt(st.nextToken()); dp = new int[N + 1]; path = new ArrayList[N + 1]; for(int i = 0; i < N + 1; i++) { path[i] = new ArrayList<>(); } while(M-- > 0) { st = new StringTokenizer(br.readLine()); int u = Integer.parseInt(st.nextToken()); int v = Integer.parseInt(st.nextToken()); int c = Integer.parseInt(st.nextToken()); path[u].add(new Node(v, c)); path[v].add(new Node(u, c)); } dijkstra(N); System.out.println(recursion(1)); } private static int recursion(int current) { // find all cases if (current == 2) return 1; if(dp[current] != 0) return dp[current]; int result = 0; for(Node next: path[current]) { if(dist[current][2] <= dist[next.node][2]) continue; result += recursion(next.node); } return dp[current] = result; } private static void dijkstra(int n) { dist = new int[n + 1][n + 1]; for(int start = 1; start <= n; start++) { // make path from 1 ~ to 2 PriorityQueue<Node> pq = new PriorityQueue<>(); Arrays.fill(dist[start], INF); dist[start][start] = 0; pq.offer(new Node(start, 0)); while(!pq.isEmpty()) { Node current = pq.poll(); if (current.cost > dist[start][current.node]) continue; for(Node next: path[current.node]) { if(dist[start][next.node] <= dist[start][current.node] + next.cost) continue; dist[start][next.node] = dist[start][current.node] + next.cost; pq.offer(new Node(next.node, dist[start][next.node])); } } } } }
<filename>main/utils/logger.ts import logger from "electron-log"; logger.transports.file.level = "info"; export { logger };
<reponame>yieldly-finance/yieldly-deterministic-account-generator import { generateAccountMnemonic, generateAccountList } from "./utils/account"; import { derivationToMaster, masterToDerivation } from "./utils/wallet"; import readline from "readline"; const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); const main = (): void => { console.log("\n****************************************************"); console.log("Welcome to Yieldlys Deterministic Account Generator!"); console.log("****************************************************\n"); console.log("Please choose carefully:"); console.log("1) Mnemonic-to-derivation key"); console.log("2) Derivation key-to-Mnemonic key"); console.log("3) Generate Accounts"); console.log("4) Get Account Mnemonic"); rl.question("\nChoose your option: ", (i) => { switch (i) { case "1": rl.question("\nEnter your Mnemonic: ", (mnemonic) => { console.log( "\n" + Buffer.from(masterToDerivation(mnemonic)).toString("base64") ); }); case "2": rl.question("\nEnter your derivation key: ", (key) => { console.log("\n" + derivationToMaster(key)); }); case "3": rl.question( "\nEnter your seed (mnemonic or derivation key): ", (key) => { rl.question( "\nEnter the index of the account list (max 2^63-1): ", (index) => { rl.question( "\nEnter the amount of addresses you would like after the index (max 2^63-1 - index): ", (amount) => { console.log( generateAccountList(key, Number(index), Number(amount)) ); } ); } ); } ); case "4": rl.question( "\nEnter your seed (mnemonic or derivation key): ", (key) => { rl.question( "\nEnter the index of the account list (max 2^63-1): ", (index) => { console.log(generateAccountMnemonic(key, Number(index))); } ); } ); } return; }); }; main();
public class Entity { private int value; private String name; public int getValue() { return value; } public void setValue(int value) { this.value = value; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
<reponame>ChargeIn/SPDF import r from 'restructure'; const KernPair = new r.Struct({ left: r.uint16, right: r.uint16, value: r.int16, }); const ClassTable = new r.Struct({ firstGlyph: r.uint16, nGlyphs: r.uint16, offsets: new r.Array(r.uint16, 'nGlyphs'), max: (t) => t.offsets.length && Math.max.apply(Math, t.offsets), }); const Kern2Array = new r.Struct({ off: (t) => t._startOffset - t.parent.parent._startOffset, len: (t) => ((t.parent.leftTable.max - t.off) / t.parent.rowWidth + 1) * (t.parent.rowWidth / 2), values: new r.LazyArray(r.int16, 'len'), }); const KernSubtable = new r.VersionedStruct('format', { 0: { nPairs: r.uint16, searchRange: r.uint16, entrySelector: r.uint16, rangeShift: r.uint16, pairs: new r.Array(KernPair, 'nPairs'), }, 2: { rowWidth: r.uint16, leftTable: new r.Pointer(r.uint16, ClassTable, { type: 'parent' }), rightTable: new r.Pointer(r.uint16, ClassTable, { type: 'parent' }), array: new r.Pointer(r.uint16, Kern2Array, { type: 'parent' }), }, 3: { glyphCount: r.uint16, kernValueCount: r.uint8, leftClassCount: r.uint8, rightClassCount: r.uint8, flags: r.uint8, kernValue: new r.Array(r.int16, 'kernValueCount'), leftClass: new r.Array(r.uint8, 'glyphCount'), rightClass: new r.Array(r.uint8, 'glyphCount'), kernIndex: new r.Array( r.uint8, (t) => t.leftClassCount * t.rightClassCount ), }, }); const KernTable = new r.VersionedStruct('version', { 0: { // Microsoft uses this format subVersion: r.uint16, // Microsoft has an extra sub-table version number length: r.uint16, // Length of the subtable, in bytes format: r.uint8, // Format of subtable coverage: new r.Bitfield(r.uint8, [ 'horizontal', // 1 if table has horizontal data, 0 if vertical 'minimum', // If set to 1, the table has minimum values. If set to 0, the table has kerning values. 'crossStream', // If set to 1, kerning is perpendicular to the flow of the text 'override', // If set to 1 the value in this table replaces the accumulated value ]), subtable: KernSubtable, padding: new r.Reserved(r.uint8, (t) => t.length - t._currentOffset), }, 1: { // Apple uses this format length: r.uint32, coverage: new r.Bitfield(r.uint8, [ null, null, null, null, null, 'variation', // Set if table has variation kerning values 'crossStream', // Set if table has cross-stream kerning values 'vertical', // Set if table has vertical kerning values ]), format: r.uint8, tupleIndex: r.uint16, subtable: KernSubtable, padding: new r.Reserved(r.uint8, (t) => t.length - t._currentOffset), }, }); export default new r.VersionedStruct(r.uint16, { 0: { // Microsoft Version nTables: r.uint16, tables: new r.Array(KernTable, 'nTables'), }, 1: { // Apple Version reserved: new r.Reserved(r.uint16), // the other half of the version number nTables: r.uint32, tables: new r.Array(KernTable, 'nTables'), }, });
<reponame>bitbrain/braingdx package de.bitbrain.braingdx.graphics.pipeline.layers; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.scenes.scene2d.Stage; import de.bitbrain.braingdx.graphics.pipeline.RenderLayer2D; public class StageRenderLayer extends RenderLayer2D { private final Stage stage; public StageRenderLayer(Stage stage) { this.stage = stage; } @Override public void render(Batch batch, float delta) { stage.draw(); } }
<filename>611-valid-triangle-number/valid-triangle-number.js // Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we take them as side lengths of a triangle. // // Example 1: // // Input: [2,2,3,4] // Output: 3 // Explanation: // Valid combinations are: // 2,3,4 (using the first 2) // 2,3,4 (using the second 2) // 2,2,3 // // // // Note: // // The length of the given array won't exceed 1000. // The integers in the given array are in the range of [0, 1000]. /** * @param {number[]} nums * @return {number} */ var triangleNumber = function(nums) { nums.sort((a,b) => { return a-b; }) var result = 0; for(let i = nums.length-1; i >= 2; i--){ var j = 0; var k = i-1; while(j < k){ if(nums[j] + nums[k] > nums[i]){ result = result + k - j; k--; }else{ j++; } } } return result; };
#!/bin/bash # SPDX-License-Identifier: Apache-2.0 # The model name is passed as an argument -n name source $(dirname $0)/globals.sh name="" height_in_mm=100 while getopts "n:h:" opt; do case "$opt" in n) name=$OPTARG ;; h) height_in_mm=$OPTARG esac done if [ "$name" = "" ] then printf "ERROR: Model Name Required, run ./"$(basename "$0")" -n Model_Name -h {height in mm}\n" else if [ "$height_in_mm" = "" ] then printf "ERROR: Model Height Required, run ./"$(basename "$0")" -n Model_Name -h {height in mm}\n" else printf "Creating model from scan for ${name} with model in ${MODEL_DIR} with height ${height_in_mm}\n" blender --background --python "${BLENDER_3XR_DIR}/create_model_from_scan.py" -- $MODEL_DIR $name $height_in_mm fi fi
package com.codebind; import com.company.libUtp; import org.json.JSONArray; import org.json.JSONObject; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class App { private JTextField tokenField; private JTextField portField; private JLabel amountLabel; private JLabel balanceLabel; private JButton updateButton; private JPanel panelMain; private JLabel pkLabel; private JTextField pkField; private JTextField muchField; private JButton sendButton; public App() { updateButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { libUtp kek = new libUtp(); String PORTIO = portField.getText(); String TOKENIO = tokenField.getText(); // kek.port = "20000"; // kek.token = "2<PASSWORD>"; kek.port = PORTIO; kek.token = TOKENIO; String RESOLT = null; //last contact PK JSONObject PKeyJO = null; //full json string try { PKeyJO = new JSONObject(kek.getOwnContact()); } catch (IOException ioException) { ioException.printStackTrace(); } System.out.println(PKeyJO); //CHECK FULL JSONObject PKeyOut; // result string PKeyOut = PKeyJO.getJSONObject("result"); System.out.println(PKeyOut); // chek result // :))) //SONObject PKFinal = new JSONObject(PKeyOut); String PKey = PKeyOut.getString("pk"); System.out.println(PKey); pkLabel.setText(PKey); //balance } }); sendButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { libUtp kek = new libUtp(); String PORTIO = portField.getText(); String TOKENIO = tokenField.getText(); // kek.port = "20000"; // kek.token = "2<PASSWORD>4<PASSWORD>186D6<PASSWORD>"; kek.port = PORTIO; kek.token = <PASSWORD>IO; String RESOLT = null; try { getPKArray(); } catch (IOException ioException) { ioException.printStackTrace(); } } }); } public static void main(String[] args) throws IOException { JFrame frame = new JFrame("App"); frame.setContentPane(new App().panelMain); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //frame.pack(); frame.setSize(1080,170); frame.setVisible(true); } private void createUIComponents() { // TODO: place custom component creation code here } public void getPKArray() throws IOException { String balancio ="finished"; System.out.println(balancio); amountLabel.setText(balancio); System.out.println("puk" ); String outJs = null; libUtp kek = new libUtp(); String PORTIO = portField.getText(); String TOKENIO = tokenField.getText(); String toMass = pkField.getText(); kek.port = PORTIO; kek.token = TOKENIO; //kek.port = "20000"; // kek.token = "2<PASSWORD>3<PASSWORD>1<PASSWORD>64<PASSWORD>"; JSONObject pkArr = null; JSONArray pkArrO = new JSONArray(); try { pkArr = new JSONObject(kek.getContacts(null)); } catch (IOException ioException) { ioException.printStackTrace(); } System.out.println("THIS IS SPARTA"); System.out.println(pkArr); outJs = pkArr.get("result").toString(); System.out.println( outJs ); // pkArrO.put(pkArr.getJSONArray("result")); System.out.println( pkArr.getJSONArray("result").get(1)); //System.out.println( pkArrO.get(0)); Boolean XX = true; int n = 1; while (XX) { System.out.println( n); JSONObject TWP = new JSONObject(pkArr.getJSONArray("result").get(n).toString()); System.out.println("good"); System.out.println(TWP); String lPK = TWP.getString("pk"); kek.sendInstantMessage(lPK, toMass); n++; System.out.println( n); } } }
<filename>lottery-runner/src/main/java/org/thebund1st/hankou/winning/lottery/domain/LotteryDrawerFinder.java package org.thebund1st.hankou.winning.lottery.domain; public interface LotteryDrawerFinder { LotteryDrawer findWith(String campaign); }
#1/bin/bash php listingscraper.php supermoney_auto php listingscraper.php supermoney_business php listingscraper.php supermoney_home php listingscraper.php supermoney_payday php listingscraper.php supermoney_personal php listingscraper.php supermoney_student
<filename>solr-hadoop-testbase/src/main/java/com/lucidworks/hadoop/utils/MockMapReduceOutputFormat.java package com.lucidworks.hadoop.utils; import com.lucidworks.hadoop.io.LWDocumentWritable; import java.io.IOException; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.JobContext; import org.apache.hadoop.mapreduce.OutputCommitter; import org.apache.hadoop.mapreduce.OutputFormat; import org.apache.hadoop.mapreduce.RecordWriter; import org.apache.hadoop.mapreduce.TaskAttemptContext; /** * * **/ public class MockMapReduceOutputFormat extends OutputFormat<Text, LWDocumentWritable> { public MockRecordWriter writer; @Override public RecordWriter<Text, LWDocumentWritable> getRecordWriter( TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException { writer = new MockRecordWriter(); return new RecordWriter<Text, LWDocumentWritable>() { @Override public void write(Text text, LWDocumentWritable doc) throws IOException, InterruptedException { writer.write(text, doc); } @Override public void close(TaskAttemptContext context) throws IOException, InterruptedException { } }; } @Override public void checkOutputSpecs(JobContext jobContext) throws IOException, InterruptedException { } @Override public OutputCommitter getOutputCommitter(TaskAttemptContext taskAttemptContext) throws IOException, InterruptedException { return new OutputCommitter() { @Override public void setupJob(JobContext jobContext) throws IOException { } @Override public void setupTask(TaskAttemptContext taskAttemptContext) throws IOException { } @Override public boolean needsTaskCommit(TaskAttemptContext taskAttemptContext) throws IOException { boolean result = false; return result; } @Override public void commitTask(TaskAttemptContext taskAttemptContext) throws IOException { } @Override public void abortTask(TaskAttemptContext taskAttemptContext) throws IOException { } }; } }
package util import ( "context" "fmt" "io" "io/ioutil" "net/http" "net/http/httptest" "os" "os/exec" "path/filepath" "sort" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestRestoreData(t *testing.T) { type testCase struct { description string url string errExpected bool destPath string expectedFiles []string } tempDir, err := ioutil.TempDir("", "data") require.Nil(t, err) defer os.RemoveAll(tempDir) textInputsDir := filepath.Join(tempDir, "text_inputs") textOutputsDir := filepath.Join(tempDir, "text_outputs") WriteFiles( t, textInputsDir, map[string]string{ "dir1/file1.txt": "file1 contents", "dir1/file2.txt": "file2 contents", "dir2/file3.txt": "file3 contents", }, ) tarInput := filepath.Join(tempDir, "tar_inputs.tar.gz") tarOutputDir := filepath.Join(tempDir, "tar_outputs") require.Nil(t, os.MkdirAll(tarOutputDir, 0755)) cmd := exec.Command("tar", "-czvf", tarInput, "text_inputs") cmd.Dir = tempDir require.Nil(t, cmd.Run()) testServer := httptest.NewServer( http.HandlerFunc( func(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/test-file.tar.gz" { http.Error(w, "Not found", 404) return } input, err := os.Open(tarInput) defer input.Close() if err != nil { http.Error(w, "Can't open file", 500) return } info, err := input.Stat() if err != nil { http.Error(w, "Error stat'ing file", 500) return } w.Header().Set("Content-Disposition", "attachment; filename=tar_inputs.tar.gz") w.Header().Set("Content-Type", "application/octet-stream") w.Header().Set("Content-Length", fmt.Sprintf("%d", info.Size())) input.Seek(0, 0) io.Copy(w, input) }, ), ) defer testServer.Close() httpOutputDir := filepath.Join(tempDir, "http_outputs") require.Nil(t, os.MkdirAll(httpOutputDir, 0755)) testCases := []testCase{ { description: "basic files", url: textInputsDir, destPath: textOutputsDir, expectedFiles: []string{ "dir1/file1.txt", "dir1/file2.txt", "dir2/file3.txt", }, }, { description: "tar archive", url: fmt.Sprintf("file://%s", tarInput), destPath: tarOutputDir, expectedFiles: []string{ "text_inputs/dir1/file1.txt", "text_inputs/dir1/file2.txt", "text_inputs/dir2/file3.txt", }, }, { description: "http archive", url: fmt.Sprintf("%s/test-file.tar.gz", testServer.URL), destPath: httpOutputDir, expectedFiles: []string{ "text_inputs/dir1/file1.txt", "text_inputs/dir1/file2.txt", "text_inputs/dir2/file3.txt", }, }, } ctx := context.Background() for _, testCase := range testCases { err := RestoreData(ctx, ".", testCase.url, testCase.destPath) if testCase.errExpected { assert.NotNil(t, err, testCase.description) } else { require.Nil(t, err, testCase.description) require.Equal( t, testCase.expectedFiles, allSubpaths(t, testCase.destPath), ) } } } func allSubpaths(t *testing.T, root string) []string { paths := []string{} err := filepath.Walk( root, func(path string, info os.FileInfo, err error) error { if err != nil { return err } if info.IsDir() { return nil } relPath, err := filepath.Rel(root, path) if err != nil { return err } paths = append(paths, relPath) return nil }, ) require.Nil(t, err) sort.Slice(paths, func(a, b int) bool { return paths[a] < paths[b] }) return paths }
import json def extract_dataset_info(json_data): extracted_data = { "Dataset Name": json_data["Dataset Name"], "Description": json_data["Description"], "Lists": json_data["Lists"][:2] } return extracted_data # Test the function with the given example json_data = { "Dataset Name": "W1BS", "Description": "Baseline Stereo Benchmark", "Lists": [ ['amos1','bdom','brugge_square', 'GC2','light','madrid', 'notredame15','paintedladies','rushmore','trevi','vatican'], ['map1', 'map2', 'map3', 'map4', 'map5', 'map6'], ['angiogram','brain1','EO-IR-2', 'maunaloa','mms68','mms75','treebranch'] ] } print(extract_dataset_info(json_data))
#!/bin/bash #SBATCH --account=def-dkulic #SBATCH --mem=8000M # memory per node #SBATCH --time=10:00:00 # time (DD-HH:MM) #SBATCH --output=/project/6001934/lingheng/Double_DDPG_Job_output/discrete_Acrobot-v1_doule_ddpg_hardcopy_epsilon_greedy_seed1_run4_%N-%j.out # %N for node name, %j for jobID module load qt/5.9.6 python/3.6.3 nixpkgs/16.09 gcc/7.3.0 boost/1.68.0 cuda cudnn source ~/tf_cpu/bin/activate python ./ddpg_discrete_action.py --env Acrobot-v1 --random-seed 1 --exploration-strategy epsilon_greedy --summary-dir ../Double_DDPG_Results_no_monitor/discrete/Acrobot-v1/doule_ddpg_hardcopy_epsilon_greedy_seed1_run4 --target-hard-copy-flag
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, // and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef _H_WEIGHTSCALEOPTIMIZER #define _H_WEIGHTSCALEOPTIMIZER #include "OPOptimizer.hpp" class WeightScaleOptimizer : public OPOptimizer { bool optimize(ModelSpec *spec) override { bool hasOptimized = false; hasOptimized |= optimize_power(spec); hasOptimized |= optimize_scale(spec); return hasOptimized; } bool optimize_power(ModelSpec *spec) { bool hasOptimized = false; for (int i = 0; i < spec->num_operator_specs - 1; i++) { if (OT_Conv == spec->ops[i].type || OT_FC == spec->ops[i].type || OT_Scale == spec->ops[i].type) { int prevOpIndex = i; if (OT_Conv == spec->ops[prevOpIndex].type) { if (ACTIVATION_NULL != spec->ops[prevOpIndex].ps.conv_spec.dw_activation_type || ACTIVATION_NULL != spec->ops[prevOpIndex].ps.conv_spec.pw_activation_type) { continue; } } std::vector<std::pair<int, int>> nextOpIndexes = searchOperatorIndexByInput(spec, spec->ops[prevOpIndex].output_tensors_name[0], prevOpIndex + 1, spec->num_operator_specs); if (nextOpIndexes.size() != 1 || OT_Power != spec->ops[nextOpIndexes[0].first].type) { continue; } int powerOpIndex = nextOpIndexes[0].first; if (spec->ops[powerOpIndex].ps.power_spec.power != 1) { UNI_WARNING_LOG( "encounter unoptimize Power layer(pow > 1): %s\n", spec->ops[i].name); continue; } int convWeightIndex = searchWeightIndex(spec, spec->ops[prevOpIndex].name); CHECK_REQUIREMENT(convWeightIndex >= 0); if (spec->ws[convWeightIndex].mdt == DT_BIN01 || spec->ws[convWeightIndex].mdt == DT_BIN11) { continue; } if (spec->ws[convWeightIndex].weight == nullptr || spec->ws[convWeightIndex].bytes_of_weight == 0) { spec->ws[convWeightIndex].bytes_of_weight = spec->ws[convWeightIndex].bytes_of_vec; spec->ws[convWeightIndex].weight = (U8 *)mt_new_storage(spec->ws[convWeightIndex].bytes_of_weight); F32 *ptr = (F32 *)spec->ws[convWeightIndex].weight; for (U32 m = 0; m < spec->ws[convWeightIndex].bytes_of_weight / bytesOf(spec->ws[convWeightIndex].mdt); m++) { ptr[m] = 1; } } F32 *weightTemp = (F32 *)mt_new_storage(spec->ws[convWeightIndex].bytes_of_weight); memcpy(weightTemp, spec->ws[convWeightIndex].weight, spec->ws[convWeightIndex].bytes_of_weight); if (spec->ws[convWeightIndex].vec == nullptr || spec->ws[convWeightIndex].bytes_of_vec == 0) { if (OT_Conv == spec->ops[i].type) { spec->ws[convWeightIndex].bytes_of_vec = spec->ops[i].ps.conv_spec.num_outputs * sizeof(F32); } else if (OT_FC == spec->ops[i].type) { spec->ws[convWeightIndex].bytes_of_vec = spec->ops[i].ps.fc_spec.num_outputs * sizeof(F32); } else if (OT_Scale == spec->ops[i].type) { spec->ws[convWeightIndex].bytes_of_vec = spec->ws[convWeightIndex].bytes_of_weight; } else { continue; } spec->ws[convWeightIndex].vec = (U8 *)mt_new_storage(spec->ws[convWeightIndex].bytes_of_vec); memset(spec->ws[convWeightIndex].vec, 0, spec->ws[convWeightIndex].bytes_of_vec); } F32 *vecTemp = (F32 *)mt_new_storage(spec->ws[convWeightIndex].bytes_of_vec); memcpy( vecTemp, spec->ws[convWeightIndex].vec, spec->ws[convWeightIndex].bytes_of_vec); for (U32 m = 0; m < spec->ws[convWeightIndex].bytes_of_weight / bytesOf(spec->ws[convWeightIndex].mdt); m++) { weightTemp[m] *= spec->ops[powerOpIndex].ps.power_spec.scale; } for (U32 m = 0; m < spec->ws[convWeightIndex].bytes_of_vec / bytesOf(spec->ws[convWeightIndex].mdt); m++) { vecTemp[m] = vecTemp[m] * spec->ops[powerOpIndex].ps.power_spec.scale + spec->ops[powerOpIndex].ps.power_spec.shift; } // free origin spec->ws[convWeightIndex] memory if (spec->ws[convWeightIndex].vec != nullptr) { if (outOfFileMapRange(spec->ws[convWeightIndex].vec, spec->mfd)) { delete spec->ws[convWeightIndex].vec; } } if (spec->ws[convWeightIndex].weight != nullptr) { if (outOfFileMapRange(spec->ws[convWeightIndex].weight, spec->mfd)) { delete spec->ws[convWeightIndex].weight; } } spec->ws[convWeightIndex].vec = (U8 *)vecTemp; spec->ws[convWeightIndex].weight = (U8 *)weightTemp; setOperatorInvalid(spec, powerOpIndex, true); hasOptimized = true; i--; } } return hasOptimized; } bool optimize_scale(ModelSpec *spec) { bool hasOptimized = false; for (int i = 0; i < spec->num_operator_specs - 1; i++) { if (OT_Conv == spec->ops[i].type || OT_FC == spec->ops[i].type || OT_Scale == spec->ops[i].type) { int prevOpIndex = i; if (OT_Conv == spec->ops[prevOpIndex].type) { if (ACTIVATION_NULL != spec->ops[prevOpIndex].ps.conv_spec.dw_activation_type || ACTIVATION_NULL != spec->ops[prevOpIndex].ps.conv_spec.pw_activation_type) { continue; } } std::vector<std::pair<int, int>> nextOpIndexes = searchOperatorIndexByInput(spec, spec->ops[prevOpIndex].output_tensors_name[0], prevOpIndex + 1, spec->num_operator_specs); if (nextOpIndexes.size() != 1 || OT_Scale != spec->ops[nextOpIndexes[0].first].type) { continue; } int scaleOpIndex = nextOpIndexes[0].first; if (spec->ops[scaleOpIndex].num_inputs > 1) { UNI_WARNING_LOG( "encounter unoptimize Scale layer(multi-inputs): %s\n", spec->ops[i].name); continue; } // scale int scaleWeightIndex = searchWeightIndex(spec, spec->ops[scaleOpIndex].name); CHECK_REQUIREMENT(scaleWeightIndex >= 0); CHECK_REQUIREMENT(spec->ws[scaleWeightIndex].mdt == DT_F32); U32 channelAlpha = spec->ws[scaleWeightIndex].bytes_of_weight / bytesOf(spec->ws[scaleWeightIndex].mdt); U32 channelBeta = spec->ws[scaleWeightIndex].bytes_of_vec / bytesOf(spec->ws[scaleWeightIndex].mdt); U32 channelCur = UNI_MAX(channelAlpha, channelBeta); F32 *alphaPtr = (F32 *)spec->ws[scaleWeightIndex].weight; F32 *betaPtr = (F32 *)spec->ws[scaleWeightIndex].vec; if (spec->ws[scaleWeightIndex].bytes_of_weight == 4 || spec->ws[scaleWeightIndex].bytes_of_vec == 4) { continue; } int convWeightIndex = searchWeightIndex(spec, spec->ops[prevOpIndex].name); CHECK_REQUIREMENT(convWeightIndex >= 0); // mdt can now be DT_BIN01 or DT_BIN11 U32 isBNN = 0; if (spec->ws[convWeightIndex].mdt == DT_BIN01 || spec->ws[convWeightIndex].mdt == DT_BIN11) { isBNN = 1; } // scale + scale if (spec->ws[convWeightIndex].weight == nullptr || spec->ws[convWeightIndex].bytes_of_weight == 0) { spec->ws[convWeightIndex].bytes_of_weight = channelCur * sizeof(F32); spec->ws[convWeightIndex].weight = (U8 *)mt_new_storage(spec->ws[convWeightIndex].bytes_of_weight); F32 *ptr = (F32 *)spec->ws[convWeightIndex].weight; for (U32 m = 0; m < channelCur; m++) { ptr[m] = 1; } } F32 *weightTemp = (F32 *)mt_new_storage(spec->ws[convWeightIndex].bytes_of_weight); memcpy(weightTemp, spec->ws[convWeightIndex].weight, spec->ws[convWeightIndex].bytes_of_weight); if (spec->ws[convWeightIndex].vec == nullptr) { spec->ws[convWeightIndex].bytes_of_vec = channelCur * sizeof(F32); if (isBNN == 1) { spec->ws[convWeightIndex].bytes_of_vec *= 2; } spec->ws[convWeightIndex].vec = (U8 *)mt_new_storage(spec->ws[convWeightIndex].bytes_of_vec); if (isBNN == 1) { F32 *scale = (F32 *)spec->ws[convWeightIndex].vec; F32 *bias = scale + channelCur; for (U32 m = 0; m < channelCur; m++) { scale[m] = 1; bias[m] = 0; } } else { memset(spec->ws[convWeightIndex].vec, 0, spec->ws[convWeightIndex].bytes_of_vec); } } F32 *vecTemp = (F32 *)mt_new_storage(spec->ws[convWeightIndex].bytes_of_vec); memcpy( vecTemp, spec->ws[convWeightIndex].vec, spec->ws[convWeightIndex].bytes_of_vec); if (isBNN == 1) { F32 *scale = vecTemp; F32 *bias = vecTemp + channelCur; for (U32 m = 0; m < channelCur; m++) { if (alphaPtr != nullptr) { scale[m] *= alphaPtr[m]; bias[m] *= alphaPtr[m]; } if (betaPtr != nullptr) { bias[m] += betaPtr[m]; } } } else { int weightDataSize = spec->ws[convWeightIndex].bytes_of_weight / bytesOf(spec->ws[convWeightIndex].mdt); int weightPerChannel = weightDataSize / channelCur; // NCHW for (U32 m = 0; m < channelCur; m++) { F32 *convWeightPerChannel = weightTemp + weightPerChannel * m; if (alphaPtr != nullptr) { for (int n = 0; n < weightPerChannel; n++) { convWeightPerChannel[n] *= alphaPtr[m]; } vecTemp[m] = alphaPtr[m] * vecTemp[m]; } if (betaPtr != nullptr) { vecTemp[m] += betaPtr[m]; } } } // free origin spec->ws[convWeightIndex] memory if (spec->ws[convWeightIndex].vec != nullptr) { if (outOfFileMapRange(spec->ws[convWeightIndex].vec, spec->mfd)) { delete spec->ws[convWeightIndex].vec; } } if (spec->ws[convWeightIndex].weight != nullptr) { if (outOfFileMapRange(spec->ws[convWeightIndex].weight, spec->mfd)) { delete spec->ws[convWeightIndex].weight; } } spec->ws[convWeightIndex].vec = (U8 *)vecTemp; spec->ws[convWeightIndex].weight = (U8 *)weightTemp; // free scale memory if (spec->ws[scaleWeightIndex].weight != nullptr) { spec->ws[scaleWeightIndex].bytes_of_weight = 0; if (outOfFileMapRange(spec->ws[scaleWeightIndex].weight, spec->mfd)) { delete spec->ws[scaleWeightIndex].weight; } spec->ws[scaleWeightIndex].weight = nullptr; } if (spec->ws[scaleWeightIndex].vec != nullptr) { spec->ws[scaleWeightIndex].bytes_of_vec = 0; if (outOfFileMapRange(spec->ws[scaleWeightIndex].vec, spec->mfd)) { delete spec->ws[scaleWeightIndex].vec; } spec->ws[scaleWeightIndex].vec = nullptr; } setOperatorInvalid(spec, scaleOpIndex, true); hasOptimized = true; i--; } } return hasOptimized; } }; #endif
<filename>gulimall-order/src/main/java/com/atguigu/gulimall/order/GulimallOrderApplication.java package com.atguigu.gulimall.order; import org.mybatis.spring.annotation.MapperScan; import org.springframework.amqp.rabbit.annotation.EnableRabbit; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession; /** * 同一个对象内事务方法互调默认失效, 原因 绕过了代理对象 事务使用代理对象来控制的 * 解决:使用代理对象来调用事务方法 * 1. 引入 spring-boot-starter-aop 它帮我们引入了aspectj * 2. @EnableAspectJAutoProxy(exposeProxy = true) [对外暴露代理对象] 开启动态代理功能 而不是jdk默认的动态代理 即使没有接口也可以创建动态代理 * 3. 本类互调用代理对象 AopContext * * seata * */ @EnableAspectJAutoProxy(exposeProxy = true) @EnableFeignClients @EnableRedisHttpSession @EnableDiscoveryClient @EnableRabbit @MapperScan("com.atguigu.gulimall.order.dao") @SpringBootApplication public class GulimallOrderApplication { public static void main(String[] args) { SpringApplication.run(GulimallOrderApplication.class, args); } }
docker run --rm -it -v "$(pwd)":/src -p 1313:1313 klakegg/hugo:latest servedocker run --rm -it -v "$(pwd)":/src -p 1313:1313 klakegg/hugo:latest serverr
<reponame>c-sp/AGE<gh_stars>1-10 // // Copyright 2020 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #ifndef AGE_GB_SOUND_LENGTH_COUNTER_HPP #define AGE_GB_SOUND_LENGTH_COUNTER_HPP //! //! \file //! #include <age_types.hpp> namespace age { constexpr uint8_t gb_nrX4_initialize = 0x80; constexpr uint8_t gb_nrX4_length_counter = 0x40; template<typename BaseClass> class gb_length_counter : public BaseClass { public: explicit gb_length_counter(uint8_t counter_mask, const gb_sound_logger* logger) : BaseClass(logger), m_counter_mask(counter_mask) { AGE_ASSERT(m_counter_mask >= 0x3F) } void write_nrX1(uint8_t nrX1) { uint8_t invNrX1 = ~nrX1; m_counter = (invNrX1 & m_counter_mask) + 1; BaseClass::log() << "set length counter = " << m_counter; } void init_length_counter(uint8_t nrX4, bool immediate_decrement) { int8_t decrement = 0; bool new_counter_enabled = (nrX4 & gb_nrX4_length_counter) > 0; if (new_counter_enabled) { decrement = immediate_decrement ? 1 : 0; if (!m_counter_enabled && (m_counter > 0)) { m_counter -= decrement; if (m_counter == 0) { BaseClass::deactivate(); } } } m_counter_enabled = new_counter_enabled; // store max-length counter on channel init, if current counter is zero if (((nrX4 & gb_nrX4_initialize) > 0) && (m_counter == 0)) { m_counter = m_counter_mask + 1 - decrement; } } void decrement_length_counter() { if (m_counter_enabled) { if (m_counter > 0) { --m_counter; BaseClass::log() << "decrement length counter (" << (m_counter + 1) << " => " << m_counter << ")"; if (m_counter == 0) { BaseClass::deactivate(); } } } } private: uint8_t m_counter_mask; int16_t m_counter = 0; bool m_counter_enabled = false; }; } // namespace age #endif // AGE_GB_SOUND_LENGTH_COUNTER_HPP
<gh_stars>0 package com.zhanggouzi.widgetdemo; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.widget.RatingBar; import me.zhanghai.android.materialratingbar.MaterialRatingBar; /** * 1. https://github.com/snowdream/awesome-android * Widget.md: https://github.com/zhanghai/MaterialRatingBar * 2. https://github.com/opendigg/awesome-github-android-ui * SimpleRatingBar: https://github.com/FlyingPumba/SimpleRatingBar * * 3. https://github.com/hedge-hog/RatingBar * 4. https://github.com/xingliuhua/XLHRatingBar * 5. android 原生的RatingBar, 感觉功能足够了,xml、代码设置都可以。空星星是否显示 * 6. https://blog.csdn.net/zxc514257857/article/details/68670712 */ public class RatingBarActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_rating_bar); MaterialRatingBar materialRatingBar = findViewById(R.id.dynamic_material_rating_bar); materialRatingBar.setNumStars(5); materialRatingBar.setRating(3.5f); materialRatingBar.setMinimumHeight(38); materialRatingBar.setMinimumWidth(38); materialRatingBar.setStepSize(0.5f); float rating =2.3f; float stepSize = 0.5f; { RatingBar rawRatingBar = findViewById(R.id.raw_rating_bar); rawRatingBar.setIsIndicator(true); rawRatingBar.setRating(rating); rawRatingBar.setStepSize(stepSize); } { RatingBar rawRatingBarNoEmpty = findViewById(R.id.raw_rating_bar_noempty); rawRatingBarNoEmpty.setIsIndicator(true); rawRatingBarNoEmpty.setNumStars((int) Math.ceil(rating)); //注意顺序,这个必须先设置,否则显示不对 rawRatingBarNoEmpty.setStepSize(stepSize); rawRatingBarNoEmpty.setRating(rating); } } }
from .extractors import AlexNet class FeatureExtractor: def __init__(self): # Initialize the AlexNet model for feature extraction self.model = AlexNet() def extract_features(self, image): # Extract features from the input image using the AlexNet model features = self.model.extract_features(image) return features
# # Copyright (C) 2022 Beru Shinsetsu # # 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. # # Use Spicetify-CLI to configure and apply the theme. echo "Almost there. Now doing some configurations, and Spotify will" echo "relaunch." echo "" echo "Configuring extensions to Fluent..." echo "" spicetify config extensions fluent.js echo "" echo "Configuring current theme to Fluent Dark..." echo "" spicetify config current_theme Fluent color_scheme dark echo "" echo "Spice-ing some stuff - Enabling CSS injection, color" echo "replacement and asset overwriting..." echo "" spicetify config inject_css 1 replace_colors 1 overwrite_assets 1 echo "" echo "Backing up current style first so you don't lose it... ;3" echo "" spicetify backup apply echo "" echo "Time to apply!" echo "" spicetify apply echo "" if [ "$?" == "0" ]; then echo "Installation complete! Spotify should relaunch!" echo "" echo "\"Look at my hands. I'm shaking. All my body is shaking.\"" echo "\"It was only a dream, mommy.\"" echo "\"It was there. I couldn't move my head but I was watching him" echo "in the mirror. I KNEW he was looking at me, with TWO INVISIBLE" echo "EYES! TWO INVISIBLE MONSTROUS EYES!\"" echo "~ \"13\" by Astronaut" else echo "Applying theme failed. You apparently need to follow" echo "Spicetify-CLI wiki yourself... :/" fi
#!/bin/sh set -e apt-get update -y # install docker ce apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ software-properties-common curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add - add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ $(lsb_release -cs) \ stable" apt-get update apt-get install -y docker-ce # install docker compose curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
#!/bin/bash -eu # Copyright 2019 Google 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. # ################################################################################ $CC $CFLAGS -Iinc -c $SRC/libldac_encode_fuzzer.cc -o libldac_encode_fuzzer.o $CC $CFLAGS -Iinc -c src/ldaclib.c -o src/ldaclib.o $CC $CFLAGS -Iinc -c src/ldacBT.c -o src/ldacBT.o $CXX $CXXFLAGS -lFuzzingEngine \ libldac_encode_fuzzer.o \ src/ldaclib.o \ src/ldacBT.o \ -o $OUT/libldac_encode_fuzzer zip -q $OUT/libldac_encode_fuzzer_seed_corpus.zip $SRC/corpora/*
#!/bin/bash # Generates configurations for 4 nodes. # We can't pack several nodes without having `--home` flag working # so reducing nodes count to 1 for now and creating follow up ticket. set -euox pipefail # sed in macos requires extra argument if [[ "$OSTYPE" == "linux-gnu"* ]]; then sed_extension='' elif [[ "$OSTYPE" == "darwin"* ]]; then sed_extension='.orig' fi function info() { printf "[info] %s\n" "${1}" } CHAIN_ID="cheqd" NODES_COUNT="4" for ((i=0 ; i<$NODES_COUNT ; i++)) do cheqd-noded init "node$i" --chain-id $CHAIN_ID --home "node$i" cheqd-noded keys add "operator$i" --keyring-backend test done # NODE_0_ID=$(cheqd-noded tendermint show-node-id) # NODE_0_VAL_PUBKEY=$(cheqd-noded tendermint show-validator) # Operator 0 GENESIS="node0/config/genesis.json" sed -i $sed_extension 's/"stake"/"ncheq"/' $GENESIS cheqd-noded add-genesis-account "operator0" 20000000000000000ncheq --home "node0" --keyring-backend test cheqd-noded gentx alice 1000000000000000ncheq --chain-id $CHAIN_ID --node-id "$NODE_0_ID" --pubkey "$NODE_0_VAL_PUBKEY" --home "node0" --keyring-backend test BASE_ACCOUNT_1="cheqd1rnr5jrt4exl0samwj0yegv99jeskl0hsxmcz96" # Mnemonic: sketch mountain erode window enact net enrich smoke claim kangaroo another visual write meat latin bacon pulp similar forum guilt father state erase bright cat <<< "$(jq '.app_state.bank.balances += [{"address": "'${BASE_ACCOUNT_1}'", "coins": [{"denom": "ncheq", "amount": "100001000000000000"}] }]' "$GENESIS")" > "$GENESIS" cat <<< "$(jq '.app_state.auth.accounts += [{"@type": "/cosmos.auth.v1beta1.BaseAccount","address": "'${BASE_ACCOUNT_1}'", "pub_key": null,"account_number": "0","sequence": "0"}]' "$GENESIS")" > "$GENESIS" BASE_ACCOUNT_2="cheqd1l9sq0se0jd3vklyrrtjchx4ua47awug5vsyeeh" # Mnemonic: ugly dirt sorry girl prepare argue door man that manual glow scout bomb pigeon matter library transfer flower clown cat miss pluck drama dizzy cat <<< "$(jq '.app_state.bank.balances += [{"address": "'${BASE_ACCOUNT_2}'", "coins": [{"denom": "ncheq", "amount": "100001000000000000"}] }]' "$GENESIS")" > $GENESIS cat <<< "$(jq '.app_state.auth.accounts += [{"@type": "/cosmos.auth.v1beta1.BaseAccount","address": "'${BASE_ACCOUNT_2}'", "pub_key": null,"account_number": "0","sequence": "0"}]' "$GENESIS")" > "$GENESIS" BASE_VESTING_ACCOUNT="cheqd1lkqddnapqvz2hujx2trpj7xj6c9hmuq7uhl0md" # Mnemonic: coach index fence broken very cricket someone casino dial truth fitness stay habit such three jump exotic spawn planet fragile walk enact angry great BASE_VESTING_COIN="{\"denom\":\"ncheq\",\"amount\":\"10001000000000000\"}" cat <<< "$(jq '.app_state.bank.balances += [{"address": "'${BASE_VESTING_ACCOUNT}'", "coins": [{"denom": "ncheq", "amount": "5000000000000000"}] }]' "$GENESIS")" > "$GENESIS" cat <<< "$(jq '.app_state.auth.accounts += [{"@type": "/cosmos.vesting.v1beta1.BaseVestingAccount", "base_account": {"address": "'${BASE_VESTING_ACCOUNT}'","pub_key": null,"account_number": "0","sequence": "0"}, "original_vesting": ['${BASE_VESTING_COIN}'], "delegated_free": [], "delegated_vesting": [], "end_time": "1630362459"}]' "$GENESIS")" > "$GENESIS" CONTINOUS_VESTING_ACCOUNT="cheqd1353p46macvn444rupg2jstmx3tmz657yt9gl4l" # Mnemonic: phone worry flame safe panther dirt picture pepper purchase tiny search theme issue genre orange merit stove spoil surface color garment mind chuckle image cat <<< "$(jq '.app_state.bank.balances += [{"address": "'${CONTINOUS_VESTING_ACCOUNT}'", "coins": [{"denom": "ncheq", "amount": "5000000000000000"}] }]' "$GENESIS")" > "$GENESIS" cat <<< "$(jq '.app_state.auth.accounts += [{"@type": "/cosmos.vesting.v1beta1.ContinuousVestingAccount", "base_vesting_account": { "base_account": {"address": "'${CONTINOUS_VESTING_ACCOUNT}'","pub_key": null,"account_number": "0","sequence": "0"}, "original_vesting": ['${BASE_VESTING_COIN}'], "delegated_free": [], "delegated_vesting": [], "end_time": "1630362459"}, "start_time": "1630352459"}]' "$GENESIS")" > "$GENESIS" DELAYED_VESTING_ACCOUNT="cheqd1njwu33lek5jt4kzlmljkp366ny4qpqusahpyrj" # Mnemonic: pilot text keen deal economy donkey use artist divide foster walk pink breeze proud dish brown icon shaft infant level labor lift will tomorrow cat <<< "$(jq '.app_state.bank.balances += [{"address": "'${DELAYED_VESTING_ACCOUNT}'", "coins": [{"denom": "ncheq", "amount": "5000000000000000"}] }]' "$GENESIS")" > "$GENESIS" cat <<< "$(jq '.app_state.auth.accounts += [{"@type": "/cosmos.vesting.v1beta1.DelayedVestingAccount", "base_vesting_account": { "base_account": {"address": "'${DELAYED_VESTING_ACCOUNT}'","pub_key": null,"account_number": "0","sequence": "0"}, "original_vesting": ['${BASE_VESTING_COIN}'], "delegated_free": [], "delegated_vesting": [], "end_time": "1630362459"}}]' "$GENESIS")" > "$GENESIS" PERIODIC_VESTING_ACCOUNT="cheqd1uyngr0l3xtyj07js9sdew9mk50tqeq8lghhcfr" # Mnemonic: want merge flame plate trouble moral submit wing whale sick meat lonely yellow lens enable oyster slight health vast weird radar mesh grab olive cat <<< "$(jq '.app_state.bank.balances += [{"address": "'${PERIODIC_VESTING_ACCOUNT}'", "coins": [{"denom": "ncheq", "amount": "5000000000000000"}] }]' "$GENESIS")" > "$GENESIS" cat <<< "$(jq '.app_state.auth.accounts += [{"@type": "/cosmos.vesting.v1beta1.PeriodicVestingAccount", "base_vesting_account": { "base_account": {"address": "'${PERIODIC_VESTING_ACCOUNT}'","pub_key": null,"account_number": "0","sequence": "0"}, "original_vesting": ['${BASE_VESTING_COIN}'], "delegated_free": [], "delegated_vesting": [], "end_time": "1630362459"}, "start_time": "1630362439", "vesting_periods": [{"length": "20", "amount": ['${BASE_VESTING_COIN}']}]}]' "$GENESIS")" > "$GENESIS" # Operators 1..N for ((i=1 ; i<$VALIDATORS_COUNT ; i++)) do cp "node$((i-1))/config/genesis.json" "node$i/config/genesis.json" cp "node$((i-1))/config/genesis.json" "node$i/config/genesis.json" cheqd-noded add-genesis-account "operator$i" 20000000000000000ncheq --home "node$i" --keyring-backend test cheqd-noded gentx alice 1000000000000000ncheq --chain-id $CHAIN_ID --node-id "$NODE_0_ID" --pubkey "$NODE_0_VAL_PUBKEY" --home "node$i" --keyring-backend test done echo "##### [Validator operator] Collect gentxs" cheqd-noded collect-gentxs cheqd-noded validate-genesis
-------------------------------------------------------------------------------- -- Up -------------------------------------------------------------------------------- create table sys ( key varchar(255) primary key, value text not null ); create table plans ( id varchar(128) primary key, name varchar(255) not null, version integer not null default 0, deleted boolean not null default false ); create table words ( plan_id varchar(128) not null, word varchar(128), time integer not null, paraphrase text not null default '', show_paraphrase bool, color varchar(32), status integer not null default 0, version integer not null default 0, deleted boolean not null default false, primary key (plan_id, word) ); create index words_plan_id on words(plan_id); create table settings ( key varchar(255) primary key, value text not null ); create table sync ( plan_id varchar(128) primary key, version varchar(255), sequence integer not null ); -------------------------------------------------------------------------------- -- Down -------------------------------------------------------------------------------- drop table sys; drop table plans; drop table words; drop table settings; drop table sync;
# clean out zipkin database, as we aren't feeding it continuous live data #mysql -h docker-vm -u zipkin -pzipkin -D zipkin -e 'delete from zipkin_spans; delete from zipkin_annotations' # post newly created flows, timestamps must be less than one day old to be accepted curl -vs localhost:9411/api/v1/spans -X POST --data @json_metrics/$1_flow.json -H "Content-Type: application/json"
#!/bin/bash -xe # Release packages to PyPI if [ "$RELEASE_DIR" = "" ]; then echo Please run this script through the tools/release.sh wrapper script or set the environment echo variable RELEASE_DIR to the directory where the release should be built. exit 1 fi ExitWarning() { exit_status="$?" if [ "$exit_status" != 0 ]; then # Don't print each command before executing it because it will disrupt # the desired output. set +x echo '******************************' echo '* *' echo '* THE RELEASE SCRIPT FAILED! *' echo '* *' echo '******************************' set -x fi exit "$exit_status" } trap ExitWarning EXIT version="$1" echo Releasing production version "$version"... nextversion="$2" RELEASE_BRANCH="candidate-$version" if [ "$RELEASE_OPENSSL_PUBKEY" = "" ] ; then RELEASE_OPENSSL_PUBKEY="`realpath \`dirname $0\``/eff-pubkey.pem" fi RELEASE_GPG_KEY=${RELEASE_GPG_KEY:-A2CFB51FA275A7286234E7B24D17C995CD9775F2} # Needed to fix problems with git signatures and pinentry export GPG_TTY=$(tty) # port for a local Python Package Index (used in testing) PORT=${PORT:-1234} # subpackages to be released (the way developers think about them) SUBPKGS_IN_AUTO_NO_CERTBOT="acme certbot-apache certbot-nginx" SUBPKGS_NOT_IN_AUTO="certbot-dns-cloudflare certbot-dns-cloudxns certbot-dns-digitalocean certbot-dns-dnsimple certbot-dns-dnsmadeeasy certbot-dns-gehirn certbot-dns-google certbot-dns-linode certbot-dns-luadns certbot-dns-nsone certbot-dns-ovh certbot-dns-rfc2136 certbot-dns-route53 certbot-dns-sakuracloud" # subpackages to be released (the way the script thinks about them) SUBPKGS_IN_AUTO="certbot $SUBPKGS_IN_AUTO_NO_CERTBOT" SUBPKGS_NO_CERTBOT="$SUBPKGS_IN_AUTO_NO_CERTBOT $SUBPKGS_NOT_IN_AUTO" SUBPKGS="$SUBPKGS_IN_AUTO $SUBPKGS_NOT_IN_AUTO" # certbot_compatibility_test is not packaged because: # - it is not meant to be used by anyone else than Certbot devs # - it causes problems when running pytest - the latter tries to # run everything that matches test*, while there are no unittests # there tag="v$version" mv "dist.$version" "dist.$version.$(date +%s).bak" || true git tag --delete "$tag" || true tmpvenv=$(mktemp -d) VIRTUALENV_NO_DOWNLOAD=1 virtualenv --no-site-packages -p python2 $tmpvenv . $tmpvenv/bin/activate # update setuptools/pip just like in other places in the repo pip install -U setuptools pip install -U pip # latest pip => no --pre for dev releases pip install -U wheel # setup.py bdist_wheel # newer versions of virtualenv inherit setuptools/pip/wheel versions # from current env when creating a child env pip install -U virtualenv root_without_le="$version.$$" root="$RELEASE_DIR/le.$root_without_le" echo "Cloning into fresh copy at $root" # clean repo = no artifacts git clone . $root git rev-parse HEAD cd $root if [ "$RELEASE_BRANCH" != "candidate-$version" ] ; then git branch -f "$RELEASE_BRANCH" fi git checkout "$RELEASE_BRANCH" # Update changelog sed -i "s/master/$(date +'%Y-%m-%d')/" certbot/CHANGELOG.md git add certbot/CHANGELOG.md git commit -m "Update changelog for $version release" for pkg_dir in $SUBPKGS certbot-compatibility-test do sed -i 's/\.dev0//' "$pkg_dir/setup.py" git add "$pkg_dir/setup.py" if [ -f "$pkg_dir/local-oldest-requirements.txt" ]; then sed -i "s/-e acme\[dev\]/acme[dev]==$version/" "$pkg_dir/local-oldest-requirements.txt" sed -i "s/-e acme/acme[dev]==$version/" "$pkg_dir/local-oldest-requirements.txt" sed -i "s/-e certbot\[dev\]/certbot[dev]==$version/" "$pkg_dir/local-oldest-requirements.txt" sed -i "s/-e certbot/certbot[dev]==$version/" "$pkg_dir/local-oldest-requirements.txt" git add "$pkg_dir/local-oldest-requirements.txt" fi done SetVersion() { ver="$1" # bumping Certbot's version number is done differently for pkg_dir in $SUBPKGS_NO_CERTBOT certbot-compatibility-test do setup_file="$pkg_dir/setup.py" if [ $(grep -c '^version' "$setup_file") != 1 ]; then echo "Unexpected count of version variables in $setup_file" exit 1 fi sed -i "s/^version.*/version = '$ver'/" $pkg_dir/setup.py done init_file="certbot/certbot/__init__.py" if [ $(grep -c '^__version' "$init_file") != 1 ]; then echo "Unexpected count of __version variables in $init_file" exit 1 fi sed -i "s/^__version.*/__version__ = '$ver'/" "$init_file" git add $SUBPKGS certbot-compatibility-test } SetVersion "$version" # Unset CERTBOT_OLDEST to prevent wheels from being built improperly due to # conditionals like the one found in certbot-dns-dnsimple's setup.py file. unset CERTBOT_OLDEST echo "Preparing sdists and wheels" for pkg_dir in $SUBPKGS do cd $pkg_dir python setup.py clean rm -rf build dist python setup.py sdist python setup.py bdist_wheel echo "Signing ($pkg_dir)" for x in dist/*.tar.gz dist/*.whl do gpg2 -u "$RELEASE_GPG_KEY" --detach-sign --armor --sign --digest-algo sha256 $x done cd - done mkdir "dist.$version" for pkg_dir in $SUBPKGS do mv $pkg_dir/dist "dist.$version/$pkg_dir/" done echo "Testing packages" cd "dist.$version" # start local PyPI python -m SimpleHTTPServer $PORT & # cd .. is NOT done on purpose: we make sure that all subpackages are # installed from local PyPI rather than current directory (repo root) VIRTUALENV_NO_DOWNLOAD=1 virtualenv --no-site-packages ../venv . ../venv/bin/activate pip install -U setuptools pip install -U pip # Now, use our local PyPI. Disable cache so we get the correct KGS even if we # (or our dependencies) have conditional dependencies implemented with if # statements in setup.py and we have cached wheels lying around that would # cause those ifs to not be evaluated. python ../tools/pip_install.py \ --no-cache-dir \ --extra-index-url http://localhost:$PORT \ $SUBPKGS # stop local PyPI kill $! cd ~- # get a snapshot of the CLI help for the docs # We set CERTBOT_DOCS to use dummy values in example user-agent string. CERTBOT_DOCS=1 certbot --help all > certbot/docs/cli-help.txt jws --help > acme/docs/jws-help.txt cd .. # freeze before installing anything else, so that we know end-user KGS # make sure "twine upload" doesn't catch "kgs" if [ -d kgs ] ; then echo Deleting old kgs... rm -rf kgs fi mkdir kgs kgs="kgs/$version" pip freeze | tee $kgs python ../tools/pip_install.py pytest cd ~- for module in $SUBPKGS ; do echo testing $module # use an empty configuration file rather than the one in the repo root pytest -c <(echo '') $module done # pin pip hashes of the things we just built for pkg in $SUBPKGS_IN_AUTO ; do echo $pkg==$version \\ pip hash dist."$version/$pkg"/*.{whl,gz} | grep "^--hash" | python2 -c 'from sys import stdin; input = stdin.read(); print " ", input.replace("\n--hash", " \\\n --hash"),' done > letsencrypt-auto-source/pieces/certbot-requirements.txt deactivate # there should be one requirement specifier and two hashes for each subpackage expected_count=$(expr $(echo $SUBPKGS_IN_AUTO | wc -w) \* 3) if ! wc -l letsencrypt-auto-source/pieces/certbot-requirements.txt | grep -qE "^\s*$expected_count " ; then echo Unexpected pip hash output exit 1 fi # ensure we have the latest built version of leauto letsencrypt-auto-source/build.py # and that it's signed correctly tools/offline-sigrequest.sh || true while ! openssl dgst -sha256 -verify $RELEASE_OPENSSL_PUBKEY -signature \ letsencrypt-auto-source/letsencrypt-auto.sig \ letsencrypt-auto-source/letsencrypt-auto ; do echo "The signature on letsencrypt-auto is not correct." read -p "Would you like this script to try and sign it again [Y/n]?" response case $response in [yY][eE][sS]|[yY]|"") tools/offline-sigrequest.sh || true;; *) ;; esac done # This signature is not quite as strong, but easier for people to verify out of band while ! gpg2 -u "$RELEASE_GPG_KEY" --detach-sign --armor --sign --digest-algo sha256 letsencrypt-auto-source/letsencrypt-auto; do echo "Unable to sign letsencrypt-auto using $RELEASE_KEY." echo "Make sure your OpenPGP card is in your computer if you are using one." echo "You may need to take the card out and put it back in again." read -p "Press enter to try signing again." done # We can't rename the openssl letsencrypt-auto.sig for compatibility reasons, # but we can use the right name for certbot-auto.asc from day one mv letsencrypt-auto-source/letsencrypt-auto.asc letsencrypt-auto-source/certbot-auto.asc # copy leauto to the root, overwriting the previous release version cp -p letsencrypt-auto-source/letsencrypt-auto certbot-auto cp -p letsencrypt-auto-source/letsencrypt-auto letsencrypt-auto git add certbot-auto letsencrypt-auto letsencrypt-auto-source certbot/docs/cli-help.txt while ! git commit --gpg-sign="$RELEASE_GPG_KEY" -m "Release $version"; do echo "Unable to sign the release commit using git." echo "You may have to configure git to use gpg2 by running:" echo 'git config --global gpg.program $(command -v gpg2)' read -p "Press enter to try signing again." done git tag --local-user "$RELEASE_GPG_KEY" --sign --message "Release $version" "$tag" cd .. echo Now in $PWD name=${root_without_le%.*} ext="${root_without_le##*.}" rev="$(git rev-parse --short HEAD)" echo tar cJvf $name.$rev.tar.xz $name.$rev echo gpg2 -U $RELEASE_GPG_KEY --detach-sign --armor $name.$rev.tar.xz cd ~- # Add master section to CHANGELOG.md header=$(head -n 4 certbot/CHANGELOG.md) body=$(sed s/nextversion/$nextversion/ tools/_changelog_top.txt) footer=$(tail -n +5 certbot/CHANGELOG.md) echo "$header $body $footer" > certbot/CHANGELOG.md git add certbot/CHANGELOG.md git commit -m "Add contents to certbot/CHANGELOG.md for next version" echo "New root: $root" echo "Test commands (in the letstest repo):" echo 'python multitester.py targets.yaml $AWS_KEY $USERNAME scripts/test_leauto_upgrades.sh --alt_pip $YOUR_PIP_REPO --branch public-beta' echo 'python multitester.py targets.yaml $AWK_KEY $USERNAME scripts/test_letsencrypt_auto_certonly_standalone.sh --branch candidate-0.1.1' echo 'python multitester.py --saveinstances targets.yaml $AWS_KEY $USERNAME scripts/test_apache2.sh' echo "In order to upload packages run the following command:" echo twine upload "$root/dist.$version/*/*" if [ "$RELEASE_BRANCH" = candidate-"$version" ] ; then SetVersion "$nextversion".dev0 letsencrypt-auto-source/build.py git add letsencrypt-auto-source/letsencrypt-auto git commit -m "Bump version to $nextversion" fi
#!/bin/sh # Corrects the ACLs and downloads latest image database # Campaign 1 linode-cli obj setacl --acl-public streetwise campaigns/safety/ch-data-safety.csv --cluster eu-central-1 wget http://streetwise.eu-central-1.linodeobjects.com/campaigns/safety/ch-data-safety.csv # Campaign 2 linode-cli obj setacl --acl-public streetwise campaigns/atmos/ch-data-atmos.csv --cluster eu-central-1 wget http://streetwise.eu-central-1.linodeobjects.com/campaigns/atmos/ch-data-atmos.csv
<reponame>fairix/kerkow2<gh_stars>0 import Plugin from "src/plugin-system/plugin.class"; import DomAccess from "src/helper/dom-access.helper"; import DeviceDetection from "src/helper/device-detection.helper"; export default class CheckoutCheckAlternative extends Plugin { static options = { /** * Selector for the link to check the alternative */ checkAlternativeLinkSelector: ".js_check_alternative_zip", /** * ID for the modal */ modalSelector: "#kerkowZipModal", }; init() { try { this._link = DomAccess.querySelector( this.el, this.options.checkAlternativeLinkSelector ); this._modal = DomAccess.querySelector( document, this.options.modalSelector ); } catch (e) { console.log("catch", e); return; } this._registerEventListeners(); } /** * Register events to handle opening the zip check modal * by clicking a defined trigger selector * @private */ _registerEventListeners() { const event = DeviceDetection.isTouchDevice() ? "touchstart" : "click"; this._link.addEventListener( event, this._onClickCheckAlternativeZip.bind(this) ); } /** * Function to open the modal * @private */ _onClickCheckAlternativeZip(e) { if (e.cancelable) { e.preventDefault(); } // Show the modal $("#kerkowZipModal").modal("show"); } }
from sage.misc.lazy_import import lazy_import lazy_import('sage.manifolds.manifold', 'Manifold') lazy_import('sage.manifolds.differentiable.examples.real_line', 'OpenInterval') lazy_import('sage.manifolds.differentiable.examples.real_line', 'RealLine') lazy_import('sage.manifolds.differentiable.examples.euclidean', 'EuclideanSpace') lazy_import('sage.manifolds', 'catalog', 'manifolds') # Define a manifold M = Manifold(1, 'M') # Create an open interval on the manifold I = OpenInterval('I', left_open=True, right_open=True) # Perform operations on the real line and Euclidean space using the defined manifold R = RealLine() E = EuclideanSpace(3) print("Manifold M:", M) print("Open Interval I:", I) print("Real Line R:", R) print("Euclidean Space E:", E)
make tidy && make builds
#!/bin/sh source_dir="$1" project_build_dir="$2" target_build_dir="$3" base_name="$4" XML_PATH=$(cat "$source_dir/protocols/$base_name") wayland-scanner private-code < "$XML_PATH" > "$target_build_dir/$base_name-protocol.c" wayland-scanner client-header < "$XML_PATH" > "$target_build_dir/$base_name-client-protocol.h" mkdir -p "$project_build_dir/include" cp "$target_build_dir/$base_name-client-protocol.h" "$project_build_dir/include/"
<gh_stars>1-10 package musiccase.ru.musiccase; import android.widget.ImageView; class Banner { private String nameFile; private String url; Banner(String nameFile, String url) { this.nameFile = nameFile; this.url = url; } Banner(){} String getNameFile() {return nameFile;} void setNameFile(String nameFile) {this.nameFile = nameFile;} String getUrl() {return url;} String getUrlUmage(){return Const.URL_BANNERS + nameFile;} void setUrl(String url) {this.url = url;} void setImageView(ImageView imageView) { new DownloadImageTask(imageView).execute(getUrlUmage()); } }
#!/bin/sh # CYBERWATCH SAS - 2016 # # Security fix for RHSA-2014:0898 # # Security announcement date: 2014-07-16 18:28:51 UTC # Script generation date: 2016-05-12 18:12:06 UTC # # Operating System: Red Hat 6 # Architecture: x86_64 # # Vulnerable packages fix on version: # - picketlink-federation.noarch:2.1.5-3_patch_01.el6_5 # # Last versions recommanded by security team: # - picketlink-federation.noarch:2.5.4-8.SP7_redhat_1.1.ep6.el6 # # CVE List: # - CVE-2014-3530 # # More details: # - https://www.cyberwatch.fr/vulnerabilites # # Licence: Released under The MIT License (MIT), See LICENSE FILE sudo yum install picketlink-federation.noarch-2.5.4 -y
<reponame>bitbrain/braingdx /* Copyright 2017 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package de.bitbrain.braingdx.tweens; import aurelienribon.tweenengine.TweenAccessor; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.ui.Label; /** * Tween facility for actors * * @author <NAME> <<EMAIL>> * @version 1.0.0 * @since 1.0.0 */ public class ActorTween implements TweenAccessor<Actor> { public static final int ALPHA = 1; public static final int SCALE = 2; public static final int SIZE = 3; public static final int ROTATION = 4; public static final int X = 5; public static final int Y = 6; @Override public int getValues(Actor target, int tweenType, float[] returnValues) { switch (tweenType) { case ALPHA: returnValues[0] = target.getColor().a; return 1; case SCALE: returnValues[0] = target.getScaleX(); returnValues[1] = target.getScaleY(); return 1; case SIZE: returnValues[0] = target.getWidth(); returnValues[1] = target.getHeight(); return 1; case ROTATION: returnValues[0] = target.getRotation(); return 1; case X: returnValues[0] = target.getX(); return 1; case Y: returnValues[0] = target.getY(); return 1; default: return 0; } } @Override public void setValues(Actor target, int tweenType, float[] newValues) { switch (tweenType) { case ALPHA: target.setColor(target.getColor().r, target.getColor().g, target.getColor().b, newValues[0]); break; case ROTATION: target.setRotation(newValues[0]); break; case SCALE: if (target instanceof Label) ((Label) target).setFontScale(newValues[0]); target.setScaleX(newValues[0]); target.setScaleY(newValues[1]); break; case SIZE: target.setWidth(newValues[0]); target.setHeight(newValues[1]); break; case X: target.setX(newValues[0]); break; case Y: target.setY(newValues[0]); break; } } }
const path = require('path'); const fs = require('fs'); const loaderUtils = require('loader-utils'); module.exports = function(source){ let options = loaderUtils.getOptions(this); let copyright = options.copyright; let async = this.async(); // path.resolve(this.context, copyright); this.resolve(this.context, copyright, (err, url)=>{ fs.readFile(url,'utf8',(err,data)=>{ async(err,data+'\n\n'+source); }); }) }
import { OcRatingComponent, OCReviewDetails, OcReviewListComponent, } from '@openchannel/angular-common-components/src/lib/market-components'; import { OcButtonComponent } from '@openchannel/angular-common-components/src/lib/common-components'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { AngularSvgIconModule } from 'angular-svg-icon'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { NgxSpinnerModule } from 'ngx-spinner'; import { moduleMetadata } from '@storybook/angular'; const modules = { imports: [NgbModule, AngularSvgIconModule.forRoot(), HttpClientTestingModule, NgxSpinnerModule], declarations: [OcRatingComponent, OcButtonComponent], }; const appReview1 = new OCReviewDetails(); appReview1.rating = 5; appReview1.review = 'We love this app. very useful and easy to use!'; appReview1.reviewOwnerName = 'Jon from Sales CRM'; const appReview2 = new OCReviewDetails(); appReview2.rating = 3; appReview2.review = 'Great Support, had a few problem first but they took ' + 'care of everything and the whole team is running smuthly.'; appReview2.reviewOwnerName = 'Best Accounting'; const appReview3 = new OCReviewDetails(); appReview3.rating = 4; appReview3.review = 'I have tried a lot of App. and this one has helped me communicate faster with my' + ' entire team. I would definitely recommend it.'; appReview3.reviewOwnerName = '<NAME>.'; const appReview4 = new OCReviewDetails(); appReview4.rating = 2; appReview4.review = 'I tried app. The app is good. But not recommended'; appReview4.reviewOwnerName = '<NAME>.'; export default { title: 'Review List [BEM]', component: OcReviewListComponent, decorators: [moduleMetadata(modules)], argTypes: { writeAReview: { action: 'New Review button has been clicked' } }, }; const ReviewListComponent = (args: OcReviewListComponent) => ({ component: OcReviewListComponent, moduleMetadata: modules, props: args, }); export const Empty = ReviewListComponent.bind({}); Empty.args = { reviewListTitle: 'Most recent reviews', reviewsList: [], noReviewMessage: 'No Review for this app', }; export const SomeReviews = ReviewListComponent.bind({}); SomeReviews.args = { reviewsList: [appReview1], totalReview: 1, maxReviewDisplay: 3, }; export const All = ReviewListComponent.bind({}); All.args = { reviewsList: [appReview1, appReview2, appReview3, appReview4, appReview1, appReview2], totalReview: 7, maxReviewDisplay: 4, }; export const CanNotWriteANewReview = ReviewListComponent.bind({}); CanNotWriteANewReview.args = { reviewsList: [appReview1], totalReview: 7, maxReviewDisplay: 4, allowWriteReview: false, };
import 'twin.macro'; import React from 'react'; import { withFormik } from 'formik'; import * as Yup from 'yup'; import PropTypes from 'prop-types'; import Button from '../atoms/Button'; import TextInputGroup from '../elements/TextInputGroup'; const formId = 'LoginForm'; const LoginForm = ({ values, touched, errors, isSubmitting, handleSubmit, handleChange, handleBlur, }) => { return ( <form tw="flex flex-wrap" onSubmit={handleSubmit} id={formId}> <div tw="p-2 w-full"> <TextInputGroup label="Your Email" name="email" type="email" value={values.email} onChange={handleChange} onBlur={handleBlur} error={errors.email && touched.email ? errors.email : undefined} /> </div> <div tw="p-2 w-full"> <TextInputGroup label="Password" name="password" type="password" value={values.password} onChange={handleChange} onBlur={handleBlur} error={ errors.password && touched.password ? errors.password : undefined } /> </div> <div tw="p-2 w-full"> <Button type="submit" form={formId} isLoading={isSubmitting}> Submit </Button> </div> </form> ); }; LoginForm.defaultProps = { enableReinitialize: true, initialValues: {}, onSubmit: () => {}, }; LoginForm.propTypes = { enableReinitialize: PropTypes.bool, initialValues: PropTypes.object, onSubmit: PropTypes.func, }; export default withFormik({ mapPropsToValues: () => ({ email: '', password: '', }), validationSchema: Yup.object().shape({ email: Yup.string() .email('Invalid email address') .required('Email is required!'), password: Yup.string().required('Password is <PASSWORD>!').min(6), }), handleSubmit: (values, { setSubmitting, props }) => { props.onSubmit(values).finally(() => { setSubmitting(false); }); }, displayName: formId, // helps with React DevTools })(LoginForm);
import os import subprocess import re def simulate_pkg_config(package_name): # Create a copy of the current environment my_env = os.environ.copy() # Set the PKG_CONFIG_PATH environment variable for Windows variant if variant == 'windows': my_env['PKG_CONFIG_PATH'] = '/tmp/gtk_download_test/lib/pkgconfig' # Construct the pkg-config command to retrieve library flags for the specified package cmd = ['pkg-config', package_name, '--libs'] # Execute the pkg-config command and capture the output p = subprocess.Popen(cmd, env=my_env, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() # Process the output to extract and return the library flags as a list return list(map(lambda x: str(x, 'utf8'), filter(len, re.compile(b'\s+').split(out))))
import {Hooks} from '@roots/bud-hooks' import {Bud, factory} from '@repo/test-kit/bud' describe('@roots/bud-hooks', function () { let bud: Bud let hooks: Hooks beforeAll(async () => { bud = await factory() hooks = new Hooks(bud) }) it('has an on method', () => { expect(hooks.on).toBeInstanceOf(Function) }) it('has a filter method', () => { expect(hooks.filter).toBeInstanceOf(Function) }) it('registers a hook', () => { const cb = () => 'bar' // @ts-ignore hooks.on('build', cb) expect(hooks.repository.build).toStrictEqual([cb]) }) it('returns expected value when filtering hook', () => { expect(hooks.filter('build')).toBe('bar') }) it('hooks repository matches snapshot', () => { expect(hooks.repository).toMatchSnapshot() }) })
#!/bin/sh # file: scripts/flashp.sh # use the int6kfp to initialize an INT6300 device having a blank or # corrupted NVRAM; the Bootloader must be running for this script to # work properly; # ==================================================================== # host symbols; # -------------------------------------------------------------------- . ${SCRIPTS}/hardware.sh . ${SCRIPTS}/firmware.sh # ==================================================================== # confirm connection; # -------------------------------------------------------------------- echo -n "Interface [${ETH}]: "; read if [ ! -z ${REPLY} ]; then ETH=${REPLY} fi # ==================================================================== # check connection; # -------------------------------------------------------------------- int6kwait -xqsi ${ETH} if [ ${?} != 0 ]; then echo "Device is not connected" exit 1 fi # ==================================================================== # randomize identity; # -------------------------------------------------------------------- MAC=auto DAK=$(rkey secret.key -D) NMK=$(rkey secret.key -M) # ==================================================================== # confirm address; # -------------------------------------------------------------------- echo -n "MAC [${MAC}]: "; read if [ ! -z ${REPLY} ]; then MAC="${REPLY}" fi echo -n "DAK [${DAK}]: "; read if [ ! -z ${REPLY} ]; then DAK="${REPLY}" fi echo -n "NMK [${NMK}]: "; read if [ ! -z ${REPLY} ]; then NMK="${REPLY}" fi # ==================================================================== # modify PIB; # -------------------------------------------------------------------- modpib -M ${MAC} -D ${DAK} -N ${NMK} ${PIB} -v if [ ${?} != 0 ]; then exit 1 fi # ==================================================================== # flash NVRAM with firmware and factory PIB; # -------------------------------------------------------------------- int6kfp -i ${ETH} -C ${CFG} -P ${PIB} -N ${NVM} -D ${DAK} -FF if [ ${?} != 0 ]; then exit 1 fi # ==================================================================== # confirm identity; # -------------------------------------------------------------------- int6k -i ${ETH} -I # ==================================================================== # return success; # -------------------------------------------------------------------- exit 0
def sort_ascending(arr): for x in range(len(arr)-1): for y in range(x+1, len(arr)): if arr[x] > arr[y]: arr[x], arr[y] = arr[y], arr[x] return arr arr = [1, 3, 5, 2, 6] print(sort_ascending(arr)) # Output: [1, 2, 3, 5, 6]
/* * Copyright 2017-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.onosproject.drivers.lisp.extensions.codec; import com.fasterxml.jackson.databind.JsonNode; import org.hamcrest.Description; import org.hamcrest.TypeSafeDiagnosingMatcher; import org.onosproject.drivers.lisp.extensions.LispTeAddress; import org.onosproject.mapping.codec.MappingAddressJsonMatcher; /** * Hamcrest matcher for TeRecord. */ public final class LispTeRecordJsonMatcher extends TypeSafeDiagnosingMatcher<JsonNode> { private final LispTeAddress.TeRecord record; /** * Default constructor. * * @param record TeRecord object */ private LispTeRecordJsonMatcher(LispTeAddress.TeRecord record) { this.record = record; } @Override protected boolean matchesSafely(JsonNode jsonNode, Description description) { // check isLookup boolean jsonLookup = jsonNode.get(LispTeRecordCodec.LOOKUP).asBoolean(); boolean lookup = record.isLookup(); if (jsonLookup != lookup) { description.appendText("IsLookup was " + jsonLookup); return false; } // check isRlocProbe boolean jsonRlocProbe = jsonNode.get(LispTeRecordCodec.RLOC_PROBE).asBoolean(); boolean rlocProbe = record.isRlocProbe(); if (jsonRlocProbe != rlocProbe) { description.appendText("IsRlocProbe was " + jsonRlocProbe); return false; } // check isStrict boolean jsonStrict = jsonNode.get(LispTeRecordCodec.STRICT).asBoolean(); boolean strict = record.isStrict(); if (jsonStrict != strict) { description.appendText("IsStrict was " + jsonStrict); return false; } // check address MappingAddressJsonMatcher addressMatcher = MappingAddressJsonMatcher.matchesMappingAddress(record.getAddress()); return addressMatcher.matches(jsonNode.get(LispTeRecordCodec.ADDRESS)); } @Override public void describeTo(Description description) { description.appendText(record.toString()); } /** * Factory to allocate a TeRecord matcher. * * @param record TeRecord object we are looking for * @return matcher */ public static LispTeRecordJsonMatcher matchesTeRecord(LispTeAddress.TeRecord record) { return new LispTeRecordJsonMatcher(record); } }
<reponame>PeterWolf93/PupilLabs_VR_Calibration<gh_stars>0 # -*- coding: utf-8 -*- """ Created on Fri Jul 27 07:26:07 2018 @author: <NAME> title: start_calib """ #%% Imports import numpy as np from calib_main import calib_main from load_pickle import load_pickle #%% Version number version_num = 'V9' #%% data path directory = 'F:\\Arbeit und Uni\\MasterArbeit\\' # path to the pupil capture data data_directory = directory + 'Pupil_VR_Recordings\\' # path to the calibration data from the stimulus script time_directory = directory + 'HTC_Vive_Recs\\Data\\' #%% Configurations disp_plots = 1 # 1. uncalibrated data; 2. GT after calibration disp_what = [1, 1, 0] # atm calculated data can't be saved save_data = 0 # forst check the save directory for the plots save_plots = 0 #%% choose data set choose_dataset = 0 if choose_dataset == 0: # specify the recording you want to calibrate subj_name = 'olbe' file_date = '2018_11_20' file_num = '001' # capture frequency in Hz set_fps = 120 # left; right; both use_eye = 'both' #%% load calibration times from pickle file mask_ind_cal,mask_ind_val = load_pickle(time_directory,subj_name,file_date,file_num) #%% extract calibration grid gt_px = mask_ind_cal[:,3:5] #%% specify dots for calibration and validation cal_dots = np.linspace(1,np.size(gt_px,0),np.size(gt_px,0)); val_dots = np.linspace(1,np.size(gt_px,0),np.size(gt_px,0)); #%% choose coefficents for design matrix choose_coeff = 1 if choose_coeff == 1: coeff_num_all = 6 cal_form_all_x = [['1','x','y','x^2','y^2','x*y']] cal_form_all_y = [['1','x','y','x^2','y^2','x*y']] cal_form_all = [cal_form_all_x, cal_form_all_y] #%% screen resolutions screen_width = np.nan screen_height = np.nan screen_dist = 1 #%% shorten input data and configs class CalibConfig(object): def __init__(self, disp_plots, disp_what, save_data, save_plots): self.disp_plots = disp_plots self.disp_what = disp_what self.save_data = save_data self.save_plots = save_plots fct_cfg = CalibConfig(disp_plots, disp_what, save_data, save_plots) class CalibInputValue(object): def __init__(self, coeff_num_all, cal_form_all, version_num, data_directory, time_directory, subj_name, file_date, file_num, mask_ind_cal, mask_ind_val, cal_dots, val_dots, gt_px, set_fps, use_eye): self.coeff_num_all = coeff_num_all self.cal_form_all = cal_form_all self.version_num = version_num self.data_directory = data_directory self.time_directory = time_directory self.subj_name = subj_name self.file_date = file_date self.file_num = file_num self.mask_ind_cal = mask_ind_cal self.mask_ind_val = mask_ind_val self.cal_dots = cal_dots self.val_dots = val_dots self.gt_px = gt_px self.set_fps = set_fps self.use_eye = use_eye fct_in = CalibInputValue(coeff_num_all, cal_form_all, version_num, data_directory, time_directory, subj_name, file_date, file_num, mask_ind_cal, mask_ind_val, cal_dots, val_dots, gt_px, set_fps, use_eye) class ScreenConfig(object): def __init__(self, screen_width, screen_height, screen_dist): self.screen_width = screen_width self.screen_height = screen_height self.screen_dist = screen_dist screen_cfg = ScreenConfig(screen_width, screen_height, screen_dist) #%% Output fct_out = calib_main(fct_cfg,fct_in,screen_cfg)
# frozen_string_literal: true require 'avro/builder/namespaceable' require 'avro/builder/aliasable' require 'avro/builder/types/named_error_handling' module Avro module Builder module Types # This is an abstract class that represents a type that can be defined # with a name, outside a record. class NamedType < Type include Avro::Builder::Types::ComplexType include Avro::Builder::Namespaceable include Avro::Builder::Aliasable dsl_option :name, dsl_name: :type_name dsl_option :namespace, dsl_name: :type_namespace dsl_attribute_alias :type_aliases, :aliases # This module must be included after options are defined include Avro::Builder::Types::NamedErrorHandling def name(value = nil) if value.nil? @name || "__#{name_fragment}_#{avro_type_name}" else type_name_instead_of_name_error! end end def namespace(value = nil) if value.nil? @namespace else type_namespace_instead_of_namespace_error! end end def validate! required_attribute_error!(:name) if field.nil? && @name.nil? end def cache! cache.add_schema_object(self) end # Named types that do not have an explicit name are assigned # a named based on the field and its nesting. def name_fragment [field && field.name_fragment, @name || (field && field.name)].compact.join('_') end # As a type for a field # Subclasses may call super with additional overrides to be added # to the serialized value. def serialize(reference_state, overrides: {}) reference_state.definition_or_reference(fullname) do serialized_attribute_hash.merge(overrides).reject { |_, v| v.nil? } end end # As a top-level, named type # Subclasses may call super with additional overrides to be added # to the hash representation. def to_h(_reference_state, overrides: {}) serialized_attribute_hash .merge(aliases: aliases) .merge(overrides) .reject { |_, v| v.nil? } end private def serialized_attribute_hash { name: name, type: avro_type_name, namespace: namespace, logicalType: logical_type } end end end end end
#!/usr/bin/env bash # Test: # Set up local repos, run the install and skip installing hooks into existing directories TEST_DIR=$(cd "$(dirname "$0")" && pwd) # shellcheck disable=SC1091 . "$TEST_DIR/general.sh" acceptAllTrustPrompts || exit 1 if echo "$EXTRA_INSTALL_ARGS" | grep -q "use-core-hookspath"; then echo "Using core.hooksPath" exit 249 fi mkdir -p ~/test100/p001 ~/test100/p002 && cd ~/test100/p001 && git init && cd ~/test100/p002 && git init || exit 1 if grep -r 'github.com/gabyx/githooks' ~/test100/; then echo "! Hooks were installed ahead of time" exit 1 fi # run the install, and skip installing the hooks into existing repos echo 'n y ' | "$GH_TEST_BIN/cli" installer --stdin --skip-install-into-existing || exit 1 if grep -r 'github.com/gabyx/githooks' ~/test100/; then echo "! Hooks were installed but shouldn't have" exit 1 fi # run the install, and let it install into existing repos echo 'n y ' | "$GH_TEST_BIN/cli" installer --stdin if ! grep -r 'github.com/gabyx/githooks' ~/test100/p001/.git/hooks; then echo "! Hooks were not installed successfully" exit 1 fi if ! grep -r 'github.com/gabyx/githooks' ~/test100/p002/.git/hooks; then echo "! Hooks were not installed successfully" exit 1 fi rm -rf ~/test100
<filename>dist/fesm2015/agm-overlays.js<gh_stars>10-100 import { __decorate } from 'tslib'; import { EventEmitter, QueryList, Input, Output, ContentChildren, ViewChild, ElementRef, Component, NgModule } from '@angular/core'; import { GoogleMapsAPIWrapper, MarkerManager, AgmInfoWindow } from '@agm/core'; import { CommonModule } from '@angular/common'; let AgmOverlay = class AgmOverlay { constructor(_mapsWrapper, _markerManager //rename to fight the private declaration of parent ) { this._mapsWrapper = _mapsWrapper; this._markerManager = _markerManager; this.visible = true; //possibly doesn't work and just left over from agm-core marker replication this.zIndex = 1; //TIP: Do NOT use this... Just put (click) on your html overlay element this.markerClick = new EventEmitter(); this.openInfoWindow = true; this.infoWindow = new QueryList(); //TODO, implement this this.draggable = false; //elmGuts:any this._observableSubscriptions = []; } ngAfterViewInit() { //remove reference of info windows const iWins = this.template.nativeElement.getElementsByTagName('agm-info-window'); for (let x = iWins.length - 1; x >= 0; --x) { iWins[x].parentNode.removeChild(iWins[x]); } this.load().then(() => { this.onChanges = this.onChangesOverride; }); } ngAfterContentInit() { this.infoWindow.changes.subscribe(() => this.handleInfoWindowUpdate()); } ngOnChanges(changes) { this.onChanges(changes); } onChanges(changes) { } onChangesOverride(changes) { if (changes.latitude || changes.longitude || changes.zIndex) { this.overlayView.latitude = this.latitude; this.overlayView.longitude = this.longitude; this.overlayView.zIndex = this.zIndex; this.destroy().then(() => this.load()); } } ngOnDestroy() { this.destroy(); } destroy() { this.destroyed = true; const promise = this._markerManager.deleteMarker(this.overlayView); if (this.overlayView) { if (this.overlayView.div) { this.overlayView.remove(); } this.overlayView.setMap(null); } this._observableSubscriptions.forEach((s) => s.unsubscribe()); delete this.overlayView; //delete this.elmGuts return promise; } handleInfoWindowUpdate() { if (this.infoWindow.length > 1) { throw new Error('Expected no more than one info window.'); } this.infoWindow.forEach(iWin => { iWin.hostMarker = this.overlayView; }); } load() { return this._mapsWrapper.getNativeMap() .then(map => { const overlay = this.getOverlay(map); this._markerManager.addMarker(overlay); this._addEventListeners(); return this._markerManager.getNativeMarker(overlay); }) .then(nativeMarker => { const setMap = nativeMarker.setMap; if (nativeMarker['map']) { this.overlayView.setMap(nativeMarker['map']); } nativeMarker.setMap = (map) => { setMap.call(nativeMarker, map); if (this.overlayView) { this.overlayView.setMap(map); } }; }); } getOverlay(map) { this.overlayView = this.overlayView || new google.maps.OverlayView(); /* make into foo marker that AGM likes */ this.overlayView.iconUrl = " "; this.overlayView.latitude = this.latitude; this.overlayView.longitude = this.longitude; this.overlayView.visible = false; //hide 40x40 transparent placeholder that prevents hover events /* end */ if (this.bounds) { this.overlayView.bounds_ = new google.maps.LatLngBounds(new google.maps.LatLng(this.latitude + this.bounds.x.latitude, this.longitude + this.bounds.x.longitude), new google.maps.LatLng(this.latitude + this.bounds.y.latitude, this.longitude + this.bounds.y.longitude)); } // js-marker-clusterer does not support updating positions. We are forced to delete/add and compensate for .removeChild calls const elm = this.template.nativeElement.children[0]; //const elm = this.elmGuts || this.template.nativeElement.children[0] //we must always be sure to steal our stolen element back incase we are just in middle of changes and will redraw const restore = (div) => { this.template.nativeElement.appendChild(div); }; this.overlayView.remove = function () { if (!this.div) return; this.div.parentNode.removeChild(this.div); restore(this.div); delete this.div; }; this.overlayView.getDiv = function () { return this.div; }; this.overlayView.draw = function () { if (!this.div) { this.div = elm; const panes = this.getPanes(); // if no panes then assumed not on map if (!panes || !panes.overlayImage) return; panes.overlayImage.appendChild(elm); } const latlng = new google.maps.LatLng(this.latitude, this.longitude); const proj = this.getProjection(); if (!proj) return; const point = proj.fromLatLngToDivPixel(latlng); if (point) { elm.style.left = (point.x - 10) + 'px'; elm.style.top = (point.y - 20) + 'px'; } if (this.bounds_) { // stretch content between two points leftbottom and righttop and resize const proj = this.getProjection(); const sw = proj.fromLatLngToDivPixel(this.bounds_.getSouthWest()); const ne = proj.fromLatLngToDivPixel(this.bounds_.getNorthEast()); this.div.style.left = sw.x + 'px'; this.div.style.top = ne.y + 'px'; this.div.children[0].style.width = ne.x - sw.x + 'px'; this.div.children[0].style.height = sw.y - ne.y + 'px'; } }; elm.addEventListener("click", event => { this.handleTap(); event.stopPropagation(); }); this.handleInfoWindowUpdate(); return this.overlayView; } handleTap() { if (this.openInfoWindow) { this.infoWindow.forEach(infoWindow => { infoWindow.open(); }); } this.markerClick.emit(null); } _addEventListeners() { const eo = this._markerManager.createEventObservable('click', this.overlayView); const cs = eo.subscribe(() => this.handleTap()); this._observableSubscriptions.push(cs); } }; AgmOverlay.ctorParameters = () => [ { type: GoogleMapsAPIWrapper }, { type: MarkerManager //rename to fight the private declaration of parent } ]; __decorate([ Input() ], AgmOverlay.prototype, "latitude", void 0); __decorate([ Input() ], AgmOverlay.prototype, "longitude", void 0); __decorate([ Input() ], AgmOverlay.prototype, "visible", void 0); __decorate([ Input() ], AgmOverlay.prototype, "zIndex", void 0); __decorate([ Input() ], AgmOverlay.prototype, "bounds", void 0); __decorate([ Output() ], AgmOverlay.prototype, "markerClick", void 0); __decorate([ Input() ], AgmOverlay.prototype, "openInfoWindow", void 0); __decorate([ ContentChildren(AgmInfoWindow) ], AgmOverlay.prototype, "infoWindow", void 0); __decorate([ Input('markerDraggable') ], AgmOverlay.prototype, "draggable", void 0); __decorate([ ViewChild('content', { read: ElementRef }) ], AgmOverlay.prototype, "template", void 0); AgmOverlay = __decorate([ Component({ selector: "agm-overlay", template: '<div #content><div style="position:absolute"><ng-content></ng-content></div></div>' }) ], AgmOverlay); let AgmOverlays = class AgmOverlays { }; AgmOverlays = __decorate([ NgModule({ imports: [ CommonModule ], declarations: [AgmOverlay], exports: [AgmOverlay], }) ], AgmOverlays); /** * Generated bundle index. Do not edit. */ export { AgmOverlay, AgmOverlays }; //# sourceMappingURL=agm-overlays.js.map
<filename>gulimall-auth-server/src/main/java/com/atguigu/gulimall/auth/feign/MemberFeignService.java package com.atguigu.gulimall.auth.feign; import com.atguigu.common.utils.R; import com.atguigu.gulimall.auth.vo.SocialUser; import com.atguigu.gulimall.auth.vo.UserLoginVo; import com.atguigu.gulimall.auth.vo.UserRegisterVo; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; /** * <p>Title: MemberFeignService</p> * Description: * date:2020/6/25 20:31 */ @FeignClient("gulimall-member") public interface MemberFeignService { @PostMapping("/member/member/register") R register(@RequestBody UserRegisterVo userRegisterVo); @PostMapping("/member/member/login") R login(@RequestBody UserLoginVo vo); @PostMapping("/member/member/oauth2/login") R socialLogin(@RequestBody SocialUser socialUser); }
<reponame>tosin2013/microshift package components import ( "github.com/openshift/microshift/pkg/config" "github.com/sirupsen/logrus" ) func StartComponents(cfg *config.MicroshiftConfig) error { if err := startServiceCAController(cfg, cfg.DataDir+"/resources/kubeadmin/kubeconfig"); err != nil { logrus.Warningf("failed to start service-ca controller: %v", err) return err } if err := startHostpathProvisioner(cfg.DataDir + "/resources/kubeadmin/kubeconfig"); err != nil { logrus.Warningf("failed to start hostpath provisioner: %v", err) return err } if err := startIngressController(cfg, cfg.DataDir+"/resources/kubeadmin/kubeconfig"); err != nil { logrus.Warningf("failed to start ingress router controller: %v", err) return err } if err := startDNSController(cfg, cfg.DataDir+"/resources/kubeadmin/kubeconfig"); err != nil { logrus.Warningf("failed to start DNS controller: %v", err) return err } if err := startFlannel(cfg.DataDir + "/resources/kubeadmin/kubeconfig"); err != nil { logrus.Warningf("failed to start Flannel: %v", err) return err } return nil }
#create tmp directory if missing if [ ! -d /data/tmp ]; then mkdir -p /data/tmp chmod a=rwx,o+t /data/tmp fi # clear default ssl.conf FILE=/etc/httpd/conf.d/ssl.conf if [ -f "$FILE" ]; then echo "$FILE exists" rm -f $FILE fi # clear any stale httpd.pid files FILE=/var/run/httpd/httpd.pid if [ -f "$FILE" ]; then echo "$FILE exists" rm -f $FILE fi # check to see of PathDB MySQL defaults file exists if [ ! -f "/config/pathdbmysql.cnf" ]; then cp /build/pathdbmysql.cnf /config/pathdbmysql.cnf fi # clear out other stale processes rm -rf /run/httpd/* # make sure default drupal settings.php file is there if [ ! -f /quip/web/sites/default/settings.php ]; then cp /build/settings.php /quip/web/sites/default echo "\$settings['hash_salt'] = '`uuidgen`';" >> /quip/web/sites/default/settings.php fi cp /config/pathdb/w3-theme-custom.css /quip/web/themes/contrib/d8w3css/css/w3-css-theme-custom # make sure permissions of pathdb folder are correct chown -R apache:apache /quip/web/sites/default chmod -R 770 /quip/web/sites/default #create pathdb directory if missing if [ ! -d /data/pathdb ]; then mkdir -p /data/pathdb fi # make sure sync folder exists and set permissions if [ ! -d /data/pathdb/config/sync ]; then mkdir -p /data/pathdb/config/sync chown -R apache:apache /data/pathdb/config/sync chmod -R 770 /data/pathdb/config/sync fi #create files directory if missing if [ ! -d /data/pathdb/files ]; then mkdir -p /data/pathdb/files fi #create files/wsi directory if missing if [ ! -d /data/pathdb/files/wsi ]; then mkdir -p /data/pathdb/files/wsi fi # check security chown apache:apache /data/pathdb chown -R apache:apache /data/pathdb/config chown apache:apache /data/pathdb/files chown apache:apache /data/pathdb/wsi #create logs directory if missing if [ ! -d /data/pathdb/logs ]; then mkdir -p /data/pathdb/logs chown -R apache:apache /data/pathdb/logs fi if [ ! -d /data/pathdb/mysql ]; then mysql_install_db --force --defaults-file=/config/pathdbmysql.cnf /usr/bin/mysqld_safe --defaults-file=/config/pathdbmysql.cnf & until mysqladmin status do sleep 3 done cd /build tar xvfz mysql.tgz mysql -u root -e "create database QuIP" mysql QuIP < mysql fi /usr/bin/mysqld_safe --defaults-file=/config/pathdbmysql.cnf & until mysqladmin status do sleep 3 done #if [ ! -d /quip/config-local ]; then # mkdir /quip/config-local # chown -R apache:apache /quip/config-local #fi #/quip/vendor/bin/drush -y config:export --destination /quip/config-local httpd -f /config/httpd.conf cd /quip/web /quip/vendor/bin/drush -y theme:install bootstrap /quip/vendor/bin/drush -y pm:enable css_editor /quip/vendor/bin/drush -y pm:enable user_current_paths /quip/vendor/bin/drush -y pm:uninstall restrict_by_ip /quip/vendor/bin/drush -y config-set system.theme admin bootstrap /quip/vendor/bin/drush -y config-set system.theme default bootstrap /quip/vendor/bin/drush config-delete block.block.bartik_branding /quip/vendor/bin/drush config-delete block.block.bartik_account_menu /quip/vendor/bin/drush config-delete block.block.bartik_breadcrumbs /quip/vendor/bin/drush config-delete block.block.bartik_content /quip/vendor/bin/drush config-delete block.block.bartik_footer /quip/vendor/bin/drush config-delete block.block.bartik_help /quip/vendor/bin/drush config-delete block.block.bartik_local_actions /quip/vendor/bin/drush config-delete block.block.bartik_local_tasks /quip/vendor/bin/drush config-delete block.block.bartik_main_menu /quip/vendor/bin/drush config-delete block.block.bartik_messages /quip/vendor/bin/drush config-delete block.block.bartik_page_title /quip/vendor/bin/drush config-delete block.block.bartik_powered /quip/vendor/bin/drush config-delete block.block.bartik_tools /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_account_menu /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_branding /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_breadcrumbs /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_content /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_help /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_local_actions /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_local_tasks /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_main_menu /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_messages /quip/vendor/bin/drush config-delete block.block.drupal8_w3css_theme_page_title /quip/vendor/bin/drush -y theme:uninstall drupal8_w3css_theme /quip/vendor/bin/drush -y theme:uninstall bartik #/quip/vendor/bin/drush -y theme:uninstall seven /quip/vendor/bin/drush -y pm:uninstall ds_extras ds_switch_view_mode ds /quip/vendor/bin/drush config-delete field.storage.node.field_map_type mkdir /data/tmp2 cp -f /quip/config-update/field.storage.node.field_map_type.yml /data/tmp2 /quip/vendor/bin/drush -y config:import --partial --source /data/tmp2 /quip/vendor/bin/drush -y config:import --partial --source /quip/config-update/ /quip/vendor/bin/drush -y pm:enable moderated_content_bulk_publish /quip/vendor/bin/drush -y updatedb /quip/vendor/bin/drush -y cache-rebuild /quip/vendor/bin/drush -y user:cancel archon while true; do sleep 1000; done
<gh_stars>0 # Copyright (C) 2019-2022, Pyronear. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. import unittest import tempfile import pandas as pd from pyrodataset.check_annotations import AnnotationChecker from test_parse_annotations import setupTester def setUpChecker(cls): """ Setup tester for AnnotationChecker """ setupTester(cls) cls.tmpdir = tempfile.TemporaryDirectory() cls.parser.writeCsv(cls.tmpdir.name) cls.parser.writeFrames(cls.tmpdir.name, nFrames=2, random=False) cls.checker = AnnotationChecker(cls.tmpdir.name) class TestCheckAnnotations(unittest.TestCase): """ Test the functional part of checkAnnotations, cannot test the graphical part. Relies on parseAnnotations for the setup """ @classmethod def setUpClass(cls): "Setup only once for all tests" setUpChecker(cls) @classmethod def tearDown(cls): "Clear temporary directory" cls.tmpdir.cleanup() def test_updateValues_withoutChange(self): """ Test if updateValues reads back the same info as in the original labels DOES NOT WORK for loc_confidence because location 0 (N/A) is being converted to 1 """ labels = self.checker.labels.copy() self.checker.updateValues() pd.testing.assert_frame_equal(labels.drop(columns='loc_confidence'), self.checker.labels.drop(columns='loc_confidence')) if __name__ == '__main__': unittest.main()
<filename>client/knowledgebase/components/BackButton.tsx<gh_stars>0 import * as React from "react"; import { __ } from "../../utils"; type Props = { text: React.ReactNode; onClickHandler: () => void; }; function BackButton({ onClickHandler, text }: Props) { return ( <button onClick={onClickHandler} className="back"> <i className="icon-leftarrow-2" /> {text} </button> ); } export default BackButton;
<gh_stars>0 #include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <limits> #include <stdint.h> template <typename R> struct VirtFuncInvoker0 { typedef R (*Func)(void*, const RuntimeMethod*); static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); return ((Func)invokeData.methodPtr)(obj, invokeData.method); } }; // System.Collections.Generic.HashSet`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource> struct HashSet_1_tA041F36FB3C3242D919652844C1C7580D00CCEAA; // System.Collections.Generic.List`1<System.Tuple`2<System.Int32,Microsoft.MixedReality.Toolkit.UI.InteractableThemeBase>> struct List_1_tC6F44A647F97453F3C2C08F707805D2114B68FF0; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.IInteractableHandler> struct List_1_t8FA174FDF6BBE370A3FFDB5FCCFB9C3C34D4BB60; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer> struct List_1_t535309B4CEA15437136325EEBD510D7C9EBC860A; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.InteractableEvent> struct List_1_t5E46C9B9686F8509B82283521F52E2B6963F75FF; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.InteractableProfileItem> struct List_1_tDB5BAA52428F5A4B2470D397BB4D2247A156AEB2; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.InteractableThemeBase> struct List_1_t9A012BF2114F0E83D2F0BCE9946FDBC1CFFA02FF; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.State> struct List_1_t1B085E9A1885DEBD2A6DF0A87079BA47FE06193E; // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // System.IntPtr[] struct IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6; // System.Object[] struct ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE; // System.Diagnostics.StackTrace[] struct StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971; // Microsoft.MixedReality.Toolkit.UI.State[] struct StateU5BU5D_t851E90BB5644255F65D6C8D0217DC4F544C544FE; // System.String[] struct StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A; // UnityEngine.Component struct Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684; // UnityEngine.Coroutine struct Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7; // Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver struct CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6; // System.Collections.IDictionary struct IDictionary_t99871C56B8EC2452AC5C4CF3831695E617B89D3A; // System.Collections.IEnumerator struct IEnumerator_t5956F3AFB7ECF1117E3BC5890E7FC7B7F7A04105; // Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer struct IMixedRealityPointer_tF6CC763A793FD3C0F29BBAA0EE6780064868118C; // Microsoft.MixedReality.Toolkit.UI.Interactable struct Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C; // Microsoft.MixedReality.Toolkit.UI.InteractableStates struct InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1; // UnityEngine.Events.InvokableCallList struct InvokableCallList_tB7C66AA0C00F9C102C8BDC17A144E569AC7527A9; // UnityEngine.MonoBehaviour struct MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A; // System.NotSupportedException struct NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339; // UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A; // UnityEngine.Events.PersistentCallGroup struct PersistentCallGroup_t9A1D83DA2BA3118C103FA87D93CE92557A956FDC; // Microsoft.MixedReality.Toolkit.UI.ReceiverBase struct ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA; // System.Runtime.Serialization.SafeSerializationManager struct SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F; // Microsoft.MixedReality.Toolkit.UI.State struct State_t343F851C8900985B580F9FCDD946FA8FF232ECD5; // Microsoft.MixedReality.Toolkit.UI.States struct States_t53165FC337BCC2D3927CD874804F1BB14D0AE441; // System.String struct String_t; // UnityEngine.TextMesh struct TextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273; // UnityEngine.Events.UnityEvent struct UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5; // UnityEngine.WaitForSeconds struct WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013; // Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14 struct U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76; // Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15 struct U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5; IL2CPP_EXTERN_C RuntimeClass* NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C String_t* _stringLiteral00B28FF06B788B9B67C6B259800F404F9F3761FD; IL2CPP_EXTERN_C String_t* _stringLiteral244D3D0615E1ABC5A99449717159D66E82E2C34A; IL2CPP_EXTERN_C String_t* _stringLiteral29902F5CA78BFEDCD32C035E61FCBAB3339DA796; IL2CPP_EXTERN_C String_t* _stringLiteral652441018A932575C56896F206DEEDB03D3980C3; IL2CPP_EXTERN_C String_t* _stringLiteral8EBB83AE944B8C0710DCA4C06CE160F234C15D5F; IL2CPP_EXTERN_C String_t* _stringLiteral9E5F9835A152F2BA019EBD6CEFB449507FEB9523; IL2CPP_EXTERN_C String_t* _stringLiteralA3DFC0C77ACADE0EE48DCC73E795A597D0270A73; IL2CPP_EXTERN_C String_t* _stringLiteralB39056DF5195F8425E7AFD2AC641BCFD2625C289; IL2CPP_EXTERN_C String_t* _stringLiteralB3F14BF976EFD974E34846B742502C802FABAE9D; IL2CPP_EXTERN_C String_t* _stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709; IL2CPP_EXTERN_C const RuntimeMethod* Component_GetComponentInChildren_TisTextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273_m2D77FB6767D154CF6F2A02BA243EB063A54DF17F_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* CustomInteractablesReceiver_ClickTimer_m6CD4E6CD9042E4A0A5259809A6D5DDE64CD3ADF8_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* CustomInteractablesReceiver_OnClick_m50EA2F5BE6A9AF76929C0C9C952BB19BB5EC947E_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* CustomInteractablesReceiver_OnUpdate_m97E300AD21527B4BCBF02E911B2C1E5E3A24933F_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* CustomInteractablesReceiver_OnVoiceCommand_m8728CCC25E4BE70E2AD739CA57BA5530F253A670_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* CustomInteractablesReceiver_SetOutput_m3ACAB9B0F0EDD7DD77799F2931C0951FD70BA36B_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* CustomInteractablesReceiver_VoiceTimer_mB01064FEEA111CD861857E3148D4D3E73F004BEC_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* CustomInteractablesReceiver__ctor_m4ADE694EB16730B8BC380E6C02B24E520BA37D6A_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* CustomInteractablesReceiver_get_HideUnityEvents_m4B2A9581D4D30F4AAA9A2BBEC7CD9632DADAB008_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CClickTimerU3Ed__14_MoveNext_mC53AF8B0C1049ADF20671FB6165A60D01E7D5300_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CClickTimerU3Ed__14_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m4ADBB25C2BFAA514902BED112ACDD1CBF1708196_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CClickTimerU3Ed__14_System_Collections_IEnumerator_Reset_mA63DD2FA600907AF6A37AF3E1657B18FF4367528_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CClickTimerU3Ed__14_System_Collections_IEnumerator_get_Current_mDEFE71150F0CD6DCBB5A9ECBA79C571F15357E43_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CClickTimerU3Ed__14_System_IDisposable_Dispose_m5D6A91885FF6449818D0D9B9F48FC352CBF424DC_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CClickTimerU3Ed__14__ctor_mDB50E8625B6171732ECBF6EE2C943E2D7C702608_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CVoiceTimerU3Ed__15_MoveNext_m0200E624B04CF5C95118F07870582D6215F78339_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CVoiceTimerU3Ed__15_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m804CA22E54628E96D5C782E7877116E0A30F48F3_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_Reset_m0388D53B06D2F89C23E965CE905DB82E80FC9C57_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_get_Current_m45C7C7BF0E42210F49668890952F57DB7D73FE8A_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CVoiceTimerU3Ed__15_System_IDisposable_Dispose_m7638E4CBC6995C6AFED3573CEB33CA0995151A92_RuntimeMethod_var; IL2CPP_EXTERN_C const RuntimeMethod* U3CVoiceTimerU3Ed__15__ctor_m20F597F47B7284308B585E577A8D470C887FF710_RuntimeMethod_var; struct Exception_t_marshaled_com; struct Exception_t_marshaled_pinvoke; struct StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A; IL2CPP_EXTERN_C_BEGIN IL2CPP_EXTERN_C_END #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t4D684451667C635128883A808CEF5DA95DD953C6 { public: public: }; // System.Object struct Il2CppArrayBounds; // System.Array // Microsoft.MixedReality.Toolkit.UI.BaseStateModel struct BaseStateModel_tE323BCBEE242B8722BADB915D54586E10E94857F : public RuntimeObject { public: // Microsoft.MixedReality.Toolkit.UI.State Microsoft.MixedReality.Toolkit.UI.BaseStateModel::currentState State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * ___currentState_0; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.State> Microsoft.MixedReality.Toolkit.UI.BaseStateModel::stateList List_1_t1B085E9A1885DEBD2A6DF0A87079BA47FE06193E * ___stateList_1; // Microsoft.MixedReality.Toolkit.UI.State[] Microsoft.MixedReality.Toolkit.UI.BaseStateModel::allStates StateU5BU5D_t851E90BB5644255F65D6C8D0217DC4F544C544FE* ___allStates_2; public: inline static int32_t get_offset_of_currentState_0() { return static_cast<int32_t>(offsetof(BaseStateModel_tE323BCBEE242B8722BADB915D54586E10E94857F, ___currentState_0)); } inline State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * get_currentState_0() const { return ___currentState_0; } inline State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 ** get_address_of_currentState_0() { return &___currentState_0; } inline void set_currentState_0(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * value) { ___currentState_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___currentState_0), (void*)value); } inline static int32_t get_offset_of_stateList_1() { return static_cast<int32_t>(offsetof(BaseStateModel_tE323BCBEE242B8722BADB915D54586E10E94857F, ___stateList_1)); } inline List_1_t1B085E9A1885DEBD2A6DF0A87079BA47FE06193E * get_stateList_1() const { return ___stateList_1; } inline List_1_t1B085E9A1885DEBD2A6DF0A87079BA47FE06193E ** get_address_of_stateList_1() { return &___stateList_1; } inline void set_stateList_1(List_1_t1B085E9A1885DEBD2A6DF0A87079BA47FE06193E * value) { ___stateList_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___stateList_1), (void*)value); } inline static int32_t get_offset_of_allStates_2() { return static_cast<int32_t>(offsetof(BaseStateModel_tE323BCBEE242B8722BADB915D54586E10E94857F, ___allStates_2)); } inline StateU5BU5D_t851E90BB5644255F65D6C8D0217DC4F544C544FE* get_allStates_2() const { return ___allStates_2; } inline StateU5BU5D_t851E90BB5644255F65D6C8D0217DC4F544C544FE** get_address_of_allStates_2() { return &___allStates_2; } inline void set_allStates_2(StateU5BU5D_t851E90BB5644255F65D6C8D0217DC4F544C544FE* value) { ___allStates_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___allStates_2), (void*)value); } }; // Microsoft.MixedReality.Toolkit.UI.ReceiverBase struct ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA : public RuntimeObject { public: // System.String Microsoft.MixedReality.Toolkit.UI.ReceiverBase::<Name>k__BackingField String_t* ___U3CNameU3Ek__BackingField_0; // UnityEngine.Events.UnityEvent Microsoft.MixedReality.Toolkit.UI.ReceiverBase::uEvent UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * ___uEvent_1; // UnityEngine.MonoBehaviour Microsoft.MixedReality.Toolkit.UI.ReceiverBase::<Host>k__BackingField MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * ___U3CHostU3Ek__BackingField_2; public: inline static int32_t get_offset_of_U3CNameU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA, ___U3CNameU3Ek__BackingField_0)); } inline String_t* get_U3CNameU3Ek__BackingField_0() const { return ___U3CNameU3Ek__BackingField_0; } inline String_t** get_address_of_U3CNameU3Ek__BackingField_0() { return &___U3CNameU3Ek__BackingField_0; } inline void set_U3CNameU3Ek__BackingField_0(String_t* value) { ___U3CNameU3Ek__BackingField_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CNameU3Ek__BackingField_0), (void*)value); } inline static int32_t get_offset_of_uEvent_1() { return static_cast<int32_t>(offsetof(ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA, ___uEvent_1)); } inline UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * get_uEvent_1() const { return ___uEvent_1; } inline UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 ** get_address_of_uEvent_1() { return &___uEvent_1; } inline void set_uEvent_1(UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * value) { ___uEvent_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___uEvent_1), (void*)value); } inline static int32_t get_offset_of_U3CHostU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA, ___U3CHostU3Ek__BackingField_2)); } inline MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * get_U3CHostU3Ek__BackingField_2() const { return ___U3CHostU3Ek__BackingField_2; } inline MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A ** get_address_of_U3CHostU3Ek__BackingField_2() { return &___U3CHostU3Ek__BackingField_2; } inline void set_U3CHostU3Ek__BackingField_2(MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * value) { ___U3CHostU3Ek__BackingField_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CHostU3Ek__BackingField_2), (void*)value); } }; // Microsoft.MixedReality.Toolkit.UI.State struct State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 : public RuntimeObject { public: // System.String Microsoft.MixedReality.Toolkit.UI.State::Name String_t* ___Name_0; // System.Int32 Microsoft.MixedReality.Toolkit.UI.State::Index int32_t ___Index_1; // System.Int32 Microsoft.MixedReality.Toolkit.UI.State::Bit int32_t ___Bit_2; // System.Int32 Microsoft.MixedReality.Toolkit.UI.State::Value int32_t ___Value_3; // System.Int32 Microsoft.MixedReality.Toolkit.UI.State::ActiveIndex int32_t ___ActiveIndex_4; public: inline static int32_t get_offset_of_Name_0() { return static_cast<int32_t>(offsetof(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5, ___Name_0)); } inline String_t* get_Name_0() const { return ___Name_0; } inline String_t** get_address_of_Name_0() { return &___Name_0; } inline void set_Name_0(String_t* value) { ___Name_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___Name_0), (void*)value); } inline static int32_t get_offset_of_Index_1() { return static_cast<int32_t>(offsetof(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5, ___Index_1)); } inline int32_t get_Index_1() const { return ___Index_1; } inline int32_t* get_address_of_Index_1() { return &___Index_1; } inline void set_Index_1(int32_t value) { ___Index_1 = value; } inline static int32_t get_offset_of_Bit_2() { return static_cast<int32_t>(offsetof(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5, ___Bit_2)); } inline int32_t get_Bit_2() const { return ___Bit_2; } inline int32_t* get_address_of_Bit_2() { return &___Bit_2; } inline void set_Bit_2(int32_t value) { ___Bit_2 = value; } inline static int32_t get_offset_of_Value_3() { return static_cast<int32_t>(offsetof(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5, ___Value_3)); } inline int32_t get_Value_3() const { return ___Value_3; } inline int32_t* get_address_of_Value_3() { return &___Value_3; } inline void set_Value_3(int32_t value) { ___Value_3 = value; } inline static int32_t get_offset_of_ActiveIndex_4() { return static_cast<int32_t>(offsetof(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5, ___ActiveIndex_4)); } inline int32_t get_ActiveIndex_4() const { return ___ActiveIndex_4; } inline int32_t* get_address_of_ActiveIndex_4() { return &___ActiveIndex_4; } inline void set_ActiveIndex_4(int32_t value) { ___ActiveIndex_4 = value; } }; // System.String struct String_t : public RuntimeObject { public: // System.Int32 System.String::m_stringLength int32_t ___m_stringLength_0; // System.Char System.String::m_firstChar Il2CppChar ___m_firstChar_1; public: inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); } inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; } inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; } inline void set_m_stringLength_0(int32_t value) { ___m_stringLength_0 = value; } inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); } inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; } inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; } inline void set_m_firstChar_1(Il2CppChar value) { ___m_firstChar_1 = value; } }; struct String_t_StaticFields { public: // System.String System.String::Empty String_t* ___Empty_5; public: inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); } inline String_t* get_Empty_5() const { return ___Empty_5; } inline String_t** get_address_of_Empty_5() { return &___Empty_5; } inline void set_Empty_5(String_t* value) { ___Empty_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value); } }; // UnityEngine.Events.UnityEventBase struct UnityEventBase_tBB43047292084BA63C5CBB1A379A8BB88611C6FB : public RuntimeObject { public: // UnityEngine.Events.InvokableCallList UnityEngine.Events.UnityEventBase::m_Calls InvokableCallList_tB7C66AA0C00F9C102C8BDC17A144E569AC7527A9 * ___m_Calls_0; // UnityEngine.Events.PersistentCallGroup UnityEngine.Events.UnityEventBase::m_PersistentCalls PersistentCallGroup_t9A1D83DA2BA3118C103FA87D93CE92557A956FDC * ___m_PersistentCalls_1; // System.Boolean UnityEngine.Events.UnityEventBase::m_CallsDirty bool ___m_CallsDirty_2; public: inline static int32_t get_offset_of_m_Calls_0() { return static_cast<int32_t>(offsetof(UnityEventBase_tBB43047292084BA63C5CBB1A379A8BB88611C6FB, ___m_Calls_0)); } inline InvokableCallList_tB7C66AA0C00F9C102C8BDC17A144E569AC7527A9 * get_m_Calls_0() const { return ___m_Calls_0; } inline InvokableCallList_tB7C66AA0C00F9C102C8BDC17A144E569AC7527A9 ** get_address_of_m_Calls_0() { return &___m_Calls_0; } inline void set_m_Calls_0(InvokableCallList_tB7C66AA0C00F9C102C8BDC17A144E569AC7527A9 * value) { ___m_Calls_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_Calls_0), (void*)value); } inline static int32_t get_offset_of_m_PersistentCalls_1() { return static_cast<int32_t>(offsetof(UnityEventBase_tBB43047292084BA63C5CBB1A379A8BB88611C6FB, ___m_PersistentCalls_1)); } inline PersistentCallGroup_t9A1D83DA2BA3118C103FA87D93CE92557A956FDC * get_m_PersistentCalls_1() const { return ___m_PersistentCalls_1; } inline PersistentCallGroup_t9A1D83DA2BA3118C103FA87D93CE92557A956FDC ** get_address_of_m_PersistentCalls_1() { return &___m_PersistentCalls_1; } inline void set_m_PersistentCalls_1(PersistentCallGroup_t9A1D83DA2BA3118C103FA87D93CE92557A956FDC * value) { ___m_PersistentCalls_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_PersistentCalls_1), (void*)value); } inline static int32_t get_offset_of_m_CallsDirty_2() { return static_cast<int32_t>(offsetof(UnityEventBase_tBB43047292084BA63C5CBB1A379A8BB88611C6FB, ___m_CallsDirty_2)); } inline bool get_m_CallsDirty_2() const { return ___m_CallsDirty_2; } inline bool* get_address_of_m_CallsDirty_2() { return &___m_CallsDirty_2; } inline void set_m_CallsDirty_2(bool value) { ___m_CallsDirty_2 = value; } }; // System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject { public: public: }; // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com { }; // UnityEngine.YieldInstruction struct YieldInstruction_tB0B4E05316710E51ECCC1E57174C27FE6DEBBEAF : public RuntimeObject { public: public: }; // Native definition for P/Invoke marshalling of UnityEngine.YieldInstruction struct YieldInstruction_tB0B4E05316710E51ECCC1E57174C27FE6DEBBEAF_marshaled_pinvoke { }; // Native definition for COM marshalling of UnityEngine.YieldInstruction struct YieldInstruction_tB0B4E05316710E51ECCC1E57174C27FE6DEBBEAF_marshaled_com { }; // Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14 struct U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 : public RuntimeObject { public: // System.Int32 Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::<>1__state int32_t ___U3CU3E1__state_0; // System.Object Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::<>2__current RuntimeObject * ___U3CU3E2__current_1; // System.Single Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::time float ___time_2; // Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::<>4__this CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * ___U3CU3E4__this_3; public: inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76, ___U3CU3E1__state_0)); } inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; } inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; } inline void set_U3CU3E1__state_0(int32_t value) { ___U3CU3E1__state_0 = value; } inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76, ___U3CU3E2__current_1)); } inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; } inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; } inline void set_U3CU3E2__current_1(RuntimeObject * value) { ___U3CU3E2__current_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CU3E2__current_1), (void*)value); } inline static int32_t get_offset_of_time_2() { return static_cast<int32_t>(offsetof(U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76, ___time_2)); } inline float get_time_2() const { return ___time_2; } inline float* get_address_of_time_2() { return &___time_2; } inline void set_time_2(float value) { ___time_2 = value; } inline static int32_t get_offset_of_U3CU3E4__this_3() { return static_cast<int32_t>(offsetof(U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76, ___U3CU3E4__this_3)); } inline CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * get_U3CU3E4__this_3() const { return ___U3CU3E4__this_3; } inline CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 ** get_address_of_U3CU3E4__this_3() { return &___U3CU3E4__this_3; } inline void set_U3CU3E4__this_3(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * value) { ___U3CU3E4__this_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CU3E4__this_3), (void*)value); } }; // Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15 struct U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 : public RuntimeObject { public: // System.Int32 Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::<>1__state int32_t ___U3CU3E1__state_0; // System.Object Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::<>2__current RuntimeObject * ___U3CU3E2__current_1; // System.Single Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::time float ___time_2; // Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::<>4__this CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * ___U3CU3E4__this_3; public: inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5, ___U3CU3E1__state_0)); } inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; } inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; } inline void set_U3CU3E1__state_0(int32_t value) { ___U3CU3E1__state_0 = value; } inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5, ___U3CU3E2__current_1)); } inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; } inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; } inline void set_U3CU3E2__current_1(RuntimeObject * value) { ___U3CU3E2__current_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CU3E2__current_1), (void*)value); } inline static int32_t get_offset_of_time_2() { return static_cast<int32_t>(offsetof(U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5, ___time_2)); } inline float get_time_2() const { return ___time_2; } inline float* get_address_of_time_2() { return &___time_2; } inline void set_time_2(float value) { ___time_2 = value; } inline static int32_t get_offset_of_U3CU3E4__this_3() { return static_cast<int32_t>(offsetof(U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5, ___U3CU3E4__this_3)); } inline CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * get_U3CU3E4__this_3() const { return ___U3CU3E4__this_3; } inline CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 ** get_address_of_U3CU3E4__this_3() { return &___U3CU3E4__this_3; } inline void set_U3CU3E4__this_3(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * value) { ___U3CU3E4__this_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CU3E4__this_3), (void*)value); } }; // System.Boolean struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37 { public: // System.Boolean System.Boolean::m_value bool ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37, ___m_value_0)); } inline bool get_m_value_0() const { return ___m_value_0; } inline bool* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(bool value) { ___m_value_0 = value; } }; struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields { public: // System.String System.Boolean::TrueString String_t* ___TrueString_5; // System.String System.Boolean::FalseString String_t* ___FalseString_6; public: inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___TrueString_5)); } inline String_t* get_TrueString_5() const { return ___TrueString_5; } inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; } inline void set_TrueString_5(String_t* value) { ___TrueString_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value); } inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___FalseString_6)); } inline String_t* get_FalseString_6() const { return ___FalseString_6; } inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; } inline void set_FalseString_6(String_t* value) { ___FalseString_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value); } }; // Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver struct CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 : public ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA { public: // Microsoft.MixedReality.Toolkit.UI.State Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::lastState State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * ___lastState_3; // System.String Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::statusString String_t* ___statusString_4; // System.String Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::clickString String_t* ___clickString_5; // System.String Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::voiceString String_t* ___voiceString_6; // System.String Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::outputString String_t* ___outputString_7; // System.String Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::lastVoiceCommand String_t* ___lastVoiceCommand_8; // System.Single Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::clickTime float ___clickTime_9; // UnityEngine.Coroutine Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::showClicked Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * ___showClicked_10; // UnityEngine.Coroutine Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::showVoice Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * ___showVoice_11; // System.Int32 Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::clickCount int32_t ___clickCount_12; public: inline static int32_t get_offset_of_lastState_3() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___lastState_3)); } inline State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * get_lastState_3() const { return ___lastState_3; } inline State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 ** get_address_of_lastState_3() { return &___lastState_3; } inline void set_lastState_3(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * value) { ___lastState_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___lastState_3), (void*)value); } inline static int32_t get_offset_of_statusString_4() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___statusString_4)); } inline String_t* get_statusString_4() const { return ___statusString_4; } inline String_t** get_address_of_statusString_4() { return &___statusString_4; } inline void set_statusString_4(String_t* value) { ___statusString_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___statusString_4), (void*)value); } inline static int32_t get_offset_of_clickString_5() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___clickString_5)); } inline String_t* get_clickString_5() const { return ___clickString_5; } inline String_t** get_address_of_clickString_5() { return &___clickString_5; } inline void set_clickString_5(String_t* value) { ___clickString_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___clickString_5), (void*)value); } inline static int32_t get_offset_of_voiceString_6() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___voiceString_6)); } inline String_t* get_voiceString_6() const { return ___voiceString_6; } inline String_t** get_address_of_voiceString_6() { return &___voiceString_6; } inline void set_voiceString_6(String_t* value) { ___voiceString_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___voiceString_6), (void*)value); } inline static int32_t get_offset_of_outputString_7() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___outputString_7)); } inline String_t* get_outputString_7() const { return ___outputString_7; } inline String_t** get_address_of_outputString_7() { return &___outputString_7; } inline void set_outputString_7(String_t* value) { ___outputString_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___outputString_7), (void*)value); } inline static int32_t get_offset_of_lastVoiceCommand_8() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___lastVoiceCommand_8)); } inline String_t* get_lastVoiceCommand_8() const { return ___lastVoiceCommand_8; } inline String_t** get_address_of_lastVoiceCommand_8() { return &___lastVoiceCommand_8; } inline void set_lastVoiceCommand_8(String_t* value) { ___lastVoiceCommand_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___lastVoiceCommand_8), (void*)value); } inline static int32_t get_offset_of_clickTime_9() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___clickTime_9)); } inline float get_clickTime_9() const { return ___clickTime_9; } inline float* get_address_of_clickTime_9() { return &___clickTime_9; } inline void set_clickTime_9(float value) { ___clickTime_9 = value; } inline static int32_t get_offset_of_showClicked_10() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___showClicked_10)); } inline Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * get_showClicked_10() const { return ___showClicked_10; } inline Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 ** get_address_of_showClicked_10() { return &___showClicked_10; } inline void set_showClicked_10(Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * value) { ___showClicked_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___showClicked_10), (void*)value); } inline static int32_t get_offset_of_showVoice_11() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___showVoice_11)); } inline Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * get_showVoice_11() const { return ___showVoice_11; } inline Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 ** get_address_of_showVoice_11() { return &___showVoice_11; } inline void set_showVoice_11(Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * value) { ___showVoice_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___showVoice_11), (void*)value); } inline static int32_t get_offset_of_clickCount_12() { return static_cast<int32_t>(offsetof(CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6, ___clickCount_12)); } inline int32_t get_clickCount_12() const { return ___clickCount_12; } inline int32_t* get_address_of_clickCount_12() { return &___clickCount_12; } inline void set_clickCount_12(int32_t value) { ___clickCount_12 = value; } }; // System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 { public: public: }; struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields { public: // System.Char[] System.Enum::enumSeperatorCharArray CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0; public: inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; } inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value) { ___enumSeperatorCharArray_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com { }; // System.Int32 struct Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046 { public: // System.Int32 System.Int32::m_value int32_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046, ___m_value_0)); } inline int32_t get_m_value_0() const { return ___m_value_0; } inline int32_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int32_t value) { ___m_value_0 = value; } }; // System.IntPtr struct IntPtr_t { public: // System.Void* System.IntPtr::m_value void* ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); } inline void* get_m_value_0() const { return ___m_value_0; } inline void** get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(void* value) { ___m_value_0 = value; } }; struct IntPtr_t_StaticFields { public: // System.IntPtr System.IntPtr::Zero intptr_t ___Zero_1; public: inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); } inline intptr_t get_Zero_1() const { return ___Zero_1; } inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; } inline void set_Zero_1(intptr_t value) { ___Zero_1 = value; } }; // Microsoft.MixedReality.Toolkit.UI.InteractableStates struct InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 : public BaseStateModel_tE323BCBEE242B8722BADB915D54586E10E94857F { public: // Microsoft.MixedReality.Toolkit.UI.State[] Microsoft.MixedReality.Toolkit.UI.InteractableStates::allStates StateU5BU5D_t851E90BB5644255F65D6C8D0217DC4F544C544FE* ___allStates_3; public: inline static int32_t get_offset_of_allStates_3() { return static_cast<int32_t>(offsetof(InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1, ___allStates_3)); } inline StateU5BU5D_t851E90BB5644255F65D6C8D0217DC4F544C544FE* get_allStates_3() const { return ___allStates_3; } inline StateU5BU5D_t851E90BB5644255F65D6C8D0217DC4F544C544FE** get_address_of_allStates_3() { return &___allStates_3; } inline void set_allStates_3(StateU5BU5D_t851E90BB5644255F65D6C8D0217DC4F544C544FE* value) { ___allStates_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___allStates_3), (void*)value); } }; // System.Single struct Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E { public: // System.Single System.Single::m_value float ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E, ___m_value_0)); } inline float get_m_value_0() const { return ___m_value_0; } inline float* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(float value) { ___m_value_0 = value; } }; // UnityEngine.Events.UnityEvent struct UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 : public UnityEventBase_tBB43047292084BA63C5CBB1A379A8BB88611C6FB { public: // System.Object[] UnityEngine.Events.UnityEvent::m_InvokeArray ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* ___m_InvokeArray_3; public: inline static int32_t get_offset_of_m_InvokeArray_3() { return static_cast<int32_t>(offsetof(UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4, ___m_InvokeArray_3)); } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* get_m_InvokeArray_3() const { return ___m_InvokeArray_3; } inline ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE** get_address_of_m_InvokeArray_3() { return &___m_InvokeArray_3; } inline void set_m_InvokeArray_3(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* value) { ___m_InvokeArray_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_InvokeArray_3), (void*)value); } }; // UnityEngine.Vector3 struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E { public: // System.Single UnityEngine.Vector3::x float ___x_2; // System.Single UnityEngine.Vector3::y float ___y_3; // System.Single UnityEngine.Vector3::z float ___z_4; public: inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___x_2)); } inline float get_x_2() const { return ___x_2; } inline float* get_address_of_x_2() { return &___x_2; } inline void set_x_2(float value) { ___x_2 = value; } inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___y_3)); } inline float get_y_3() const { return ___y_3; } inline float* get_address_of_y_3() { return &___y_3; } inline void set_y_3(float value) { ___y_3 = value; } inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E, ___z_4)); } inline float get_z_4() const { return ___z_4; } inline float* get_address_of_z_4() { return &___z_4; } inline void set_z_4(float value) { ___z_4 = value; } }; struct Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields { public: // UnityEngine.Vector3 UnityEngine.Vector3::zeroVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___zeroVector_5; // UnityEngine.Vector3 UnityEngine.Vector3::oneVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___oneVector_6; // UnityEngine.Vector3 UnityEngine.Vector3::upVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___upVector_7; // UnityEngine.Vector3 UnityEngine.Vector3::downVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___downVector_8; // UnityEngine.Vector3 UnityEngine.Vector3::leftVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___leftVector_9; // UnityEngine.Vector3 UnityEngine.Vector3::rightVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___rightVector_10; // UnityEngine.Vector3 UnityEngine.Vector3::forwardVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___forwardVector_11; // UnityEngine.Vector3 UnityEngine.Vector3::backVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___backVector_12; // UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___positiveInfinityVector_13; // UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___negativeInfinityVector_14; public: inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___zeroVector_5)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_zeroVector_5() const { return ___zeroVector_5; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_zeroVector_5() { return &___zeroVector_5; } inline void set_zeroVector_5(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___zeroVector_5 = value; } inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___oneVector_6)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_oneVector_6() const { return ___oneVector_6; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_oneVector_6() { return &___oneVector_6; } inline void set_oneVector_6(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___oneVector_6 = value; } inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___upVector_7)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_upVector_7() const { return ___upVector_7; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_upVector_7() { return &___upVector_7; } inline void set_upVector_7(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___upVector_7 = value; } inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___downVector_8)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_downVector_8() const { return ___downVector_8; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_downVector_8() { return &___downVector_8; } inline void set_downVector_8(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___downVector_8 = value; } inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___leftVector_9)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_leftVector_9() const { return ___leftVector_9; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_leftVector_9() { return &___leftVector_9; } inline void set_leftVector_9(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___leftVector_9 = value; } inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___rightVector_10)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_rightVector_10() const { return ___rightVector_10; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_rightVector_10() { return &___rightVector_10; } inline void set_rightVector_10(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___rightVector_10 = value; } inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___forwardVector_11)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_forwardVector_11() const { return ___forwardVector_11; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_forwardVector_11() { return &___forwardVector_11; } inline void set_forwardVector_11(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___forwardVector_11 = value; } inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___backVector_12)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_backVector_12() const { return ___backVector_12; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_backVector_12() { return &___backVector_12; } inline void set_backVector_12(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___backVector_12 = value; } inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___positiveInfinityVector_13)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; } inline void set_positiveInfinityVector_13(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___positiveInfinityVector_13 = value; } inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E_StaticFields, ___negativeInfinityVector_14)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; } inline void set_negativeInfinityVector_14(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___negativeInfinityVector_14 = value; } }; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5 { public: union { struct { }; uint8_t Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5__padding[1]; }; public: }; // UnityEngine.WaitForSeconds struct WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013 : public YieldInstruction_tB0B4E05316710E51ECCC1E57174C27FE6DEBBEAF { public: // System.Single UnityEngine.WaitForSeconds::m_Seconds float ___m_Seconds_0; public: inline static int32_t get_offset_of_m_Seconds_0() { return static_cast<int32_t>(offsetof(WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013, ___m_Seconds_0)); } inline float get_m_Seconds_0() const { return ___m_Seconds_0; } inline float* get_address_of_m_Seconds_0() { return &___m_Seconds_0; } inline void set_m_Seconds_0(float value) { ___m_Seconds_0 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.WaitForSeconds struct WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013_marshaled_pinvoke : public YieldInstruction_tB0B4E05316710E51ECCC1E57174C27FE6DEBBEAF_marshaled_pinvoke { float ___m_Seconds_0; }; // Native definition for COM marshalling of UnityEngine.WaitForSeconds struct WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013_marshaled_com : public YieldInstruction_tB0B4E05316710E51ECCC1E57174C27FE6DEBBEAF_marshaled_com { float ___m_Seconds_0; }; // System.Nullable`1<UnityEngine.Vector3> struct Nullable_1_t1829213F3538788DF79B4659AFC9D6A9C90C3258 { public: // T System.Nullable`1::value Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E ___value_0; // System.Boolean System.Nullable`1::has_value bool ___has_value_1; public: inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(Nullable_1_t1829213F3538788DF79B4659AFC9D6A9C90C3258, ___value_0)); } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E get_value_0() const { return ___value_0; } inline Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E * get_address_of_value_0() { return &___value_0; } inline void set_value_0(Vector3_t65B972D6A585A0A5B63153CF1177A90D3C90D65E value) { ___value_0 = value; } inline static int32_t get_offset_of_has_value_1() { return static_cast<int32_t>(offsetof(Nullable_1_t1829213F3538788DF79B4659AFC9D6A9C90C3258, ___has_value_1)); } inline bool get_has_value_1() const { return ___has_value_1; } inline bool* get_address_of_has_value_1() { return &___has_value_1; } inline void set_has_value_1(bool value) { ___has_value_1 = value; } }; // Microsoft.MixedReality.Toolkit.Utilities.AxisType struct AxisType_tB606C85BE8C41F8EDB09DBC39718C91E7CA874D1 { public: // System.Int32 Microsoft.MixedReality.Toolkit.Utilities.AxisType::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(AxisType_tB606C85BE8C41F8EDB09DBC39718C91E7CA874D1, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // UnityEngine.Coroutine struct Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 : public YieldInstruction_tB0B4E05316710E51ECCC1E57174C27FE6DEBBEAF { public: // System.IntPtr UnityEngine.Coroutine::m_Ptr intptr_t ___m_Ptr_0; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7, ___m_Ptr_0)); } inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; } inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; } inline void set_m_Ptr_0(intptr_t value) { ___m_Ptr_0 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.Coroutine struct Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7_marshaled_pinvoke : public YieldInstruction_tB0B4E05316710E51ECCC1E57174C27FE6DEBBEAF_marshaled_pinvoke { intptr_t ___m_Ptr_0; }; // Native definition for COM marshalling of UnityEngine.Coroutine struct Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7_marshaled_com : public YieldInstruction_tB0B4E05316710E51ECCC1E57174C27FE6DEBBEAF_marshaled_com { intptr_t ___m_Ptr_0; }; // System.Exception struct Exception_t : public RuntimeObject { public: // System.String System.Exception::_className String_t* ____className_1; // System.String System.Exception::_message String_t* ____message_2; // System.Collections.IDictionary System.Exception::_data RuntimeObject* ____data_3; // System.Exception System.Exception::_innerException Exception_t * ____innerException_4; // System.String System.Exception::_helpURL String_t* ____helpURL_5; // System.Object System.Exception::_stackTrace RuntimeObject * ____stackTrace_6; // System.String System.Exception::_stackTraceString String_t* ____stackTraceString_7; // System.String System.Exception::_remoteStackTraceString String_t* ____remoteStackTraceString_8; // System.Int32 System.Exception::_remoteStackIndex int32_t ____remoteStackIndex_9; // System.Object System.Exception::_dynamicMethods RuntimeObject * ____dynamicMethods_10; // System.Int32 System.Exception::_HResult int32_t ____HResult_11; // System.String System.Exception::_source String_t* ____source_12; // System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * ____safeSerializationManager_13; // System.Diagnostics.StackTrace[] System.Exception::captured_traces StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* ___captured_traces_14; // System.IntPtr[] System.Exception::native_trace_ips IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6* ___native_trace_ips_15; public: inline static int32_t get_offset_of__className_1() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); } inline String_t* get__className_1() const { return ____className_1; } inline String_t** get_address_of__className_1() { return &____className_1; } inline void set__className_1(String_t* value) { ____className_1 = value; Il2CppCodeGenWriteBarrier((void**)(&____className_1), (void*)value); } inline static int32_t get_offset_of__message_2() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); } inline String_t* get__message_2() const { return ____message_2; } inline String_t** get_address_of__message_2() { return &____message_2; } inline void set__message_2(String_t* value) { ____message_2 = value; Il2CppCodeGenWriteBarrier((void**)(&____message_2), (void*)value); } inline static int32_t get_offset_of__data_3() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); } inline RuntimeObject* get__data_3() const { return ____data_3; } inline RuntimeObject** get_address_of__data_3() { return &____data_3; } inline void set__data_3(RuntimeObject* value) { ____data_3 = value; Il2CppCodeGenWriteBarrier((void**)(&____data_3), (void*)value); } inline static int32_t get_offset_of__innerException_4() { return static_cast<int32_t>(offsetof(Exception_t, ____innerException_4)); } inline Exception_t * get__innerException_4() const { return ____innerException_4; } inline Exception_t ** get_address_of__innerException_4() { return &____innerException_4; } inline void set__innerException_4(Exception_t * value) { ____innerException_4 = value; Il2CppCodeGenWriteBarrier((void**)(&____innerException_4), (void*)value); } inline static int32_t get_offset_of__helpURL_5() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); } inline String_t* get__helpURL_5() const { return ____helpURL_5; } inline String_t** get_address_of__helpURL_5() { return &____helpURL_5; } inline void set__helpURL_5(String_t* value) { ____helpURL_5 = value; Il2CppCodeGenWriteBarrier((void**)(&____helpURL_5), (void*)value); } inline static int32_t get_offset_of__stackTrace_6() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); } inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; } inline RuntimeObject ** get_address_of__stackTrace_6() { return &____stackTrace_6; } inline void set__stackTrace_6(RuntimeObject * value) { ____stackTrace_6 = value; Il2CppCodeGenWriteBarrier((void**)(&____stackTrace_6), (void*)value); } inline static int32_t get_offset_of__stackTraceString_7() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTraceString_7)); } inline String_t* get__stackTraceString_7() const { return ____stackTraceString_7; } inline String_t** get_address_of__stackTraceString_7() { return &____stackTraceString_7; } inline void set__stackTraceString_7(String_t* value) { ____stackTraceString_7 = value; Il2CppCodeGenWriteBarrier((void**)(&____stackTraceString_7), (void*)value); } inline static int32_t get_offset_of__remoteStackTraceString_8() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_8)); } inline String_t* get__remoteStackTraceString_8() const { return ____remoteStackTraceString_8; } inline String_t** get_address_of__remoteStackTraceString_8() { return &____remoteStackTraceString_8; } inline void set__remoteStackTraceString_8(String_t* value) { ____remoteStackTraceString_8 = value; Il2CppCodeGenWriteBarrier((void**)(&____remoteStackTraceString_8), (void*)value); } inline static int32_t get_offset_of__remoteStackIndex_9() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackIndex_9)); } inline int32_t get__remoteStackIndex_9() const { return ____remoteStackIndex_9; } inline int32_t* get_address_of__remoteStackIndex_9() { return &____remoteStackIndex_9; } inline void set__remoteStackIndex_9(int32_t value) { ____remoteStackIndex_9 = value; } inline static int32_t get_offset_of__dynamicMethods_10() { return static_cast<int32_t>(offsetof(Exception_t, ____dynamicMethods_10)); } inline RuntimeObject * get__dynamicMethods_10() const { return ____dynamicMethods_10; } inline RuntimeObject ** get_address_of__dynamicMethods_10() { return &____dynamicMethods_10; } inline void set__dynamicMethods_10(RuntimeObject * value) { ____dynamicMethods_10 = value; Il2CppCodeGenWriteBarrier((void**)(&____dynamicMethods_10), (void*)value); } inline static int32_t get_offset_of__HResult_11() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); } inline int32_t get__HResult_11() const { return ____HResult_11; } inline int32_t* get_address_of__HResult_11() { return &____HResult_11; } inline void set__HResult_11(int32_t value) { ____HResult_11 = value; } inline static int32_t get_offset_of__source_12() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); } inline String_t* get__source_12() const { return ____source_12; } inline String_t** get_address_of__source_12() { return &____source_12; } inline void set__source_12(String_t* value) { ____source_12 = value; Il2CppCodeGenWriteBarrier((void**)(&____source_12), (void*)value); } inline static int32_t get_offset_of__safeSerializationManager_13() { return static_cast<int32_t>(offsetof(Exception_t, ____safeSerializationManager_13)); } inline SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * get__safeSerializationManager_13() const { return ____safeSerializationManager_13; } inline SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F ** get_address_of__safeSerializationManager_13() { return &____safeSerializationManager_13; } inline void set__safeSerializationManager_13(SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * value) { ____safeSerializationManager_13 = value; Il2CppCodeGenWriteBarrier((void**)(&____safeSerializationManager_13), (void*)value); } inline static int32_t get_offset_of_captured_traces_14() { return static_cast<int32_t>(offsetof(Exception_t, ___captured_traces_14)); } inline StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* get_captured_traces_14() const { return ___captured_traces_14; } inline StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971** get_address_of_captured_traces_14() { return &___captured_traces_14; } inline void set_captured_traces_14(StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* value) { ___captured_traces_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___captured_traces_14), (void*)value); } inline static int32_t get_offset_of_native_trace_ips_15() { return static_cast<int32_t>(offsetof(Exception_t, ___native_trace_ips_15)); } inline IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6* get_native_trace_ips_15() const { return ___native_trace_ips_15; } inline IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6** get_address_of_native_trace_ips_15() { return &___native_trace_ips_15; } inline void set_native_trace_ips_15(IntPtrU5BU5D_t27FC72B0409D75AAF33EC42498E8094E95FEE9A6* value) { ___native_trace_ips_15 = value; Il2CppCodeGenWriteBarrier((void**)(&___native_trace_ips_15), (void*)value); } }; struct Exception_t_StaticFields { public: // System.Object System.Exception::s_EDILock RuntimeObject * ___s_EDILock_0; public: inline static int32_t get_offset_of_s_EDILock_0() { return static_cast<int32_t>(offsetof(Exception_t_StaticFields, ___s_EDILock_0)); } inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; } inline RuntimeObject ** get_address_of_s_EDILock_0() { return &___s_EDILock_0; } inline void set_s_EDILock_0(RuntimeObject * value) { ___s_EDILock_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_EDILock_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Exception struct Exception_t_marshaled_pinvoke { char* ____className_1; char* ____message_2; RuntimeObject* ____data_3; Exception_t_marshaled_pinvoke* ____innerException_4; char* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; char* ____stackTraceString_7; char* ____remoteStackTraceString_8; int32_t ____remoteStackIndex_9; Il2CppIUnknown* ____dynamicMethods_10; int32_t ____HResult_11; char* ____source_12; SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * ____safeSerializationManager_13; StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* ___captured_traces_14; Il2CppSafeArray/*NONE*/* ___native_trace_ips_15; }; // Native definition for COM marshalling of System.Exception struct Exception_t_marshaled_com { Il2CppChar* ____className_1; Il2CppChar* ____message_2; RuntimeObject* ____data_3; Exception_t_marshaled_com* ____innerException_4; Il2CppChar* ____helpURL_5; Il2CppIUnknown* ____stackTrace_6; Il2CppChar* ____stackTraceString_7; Il2CppChar* ____remoteStackTraceString_8; int32_t ____remoteStackIndex_9; Il2CppIUnknown* ____dynamicMethods_10; int32_t ____HResult_11; Il2CppChar* ____source_12; SafeSerializationManager_tDE44F029589A028F8A3053C5C06153FAB4AAE29F * ____safeSerializationManager_13; StackTraceU5BU5D_t4AD999C288CB6D1F38A299D12B1598D606588971* ___captured_traces_14; Il2CppSafeArray/*NONE*/* ___native_trace_ips_15; }; // UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A : public RuntimeObject { public: // System.IntPtr UnityEngine.Object::m_CachedPtr intptr_t ___m_CachedPtr_0; public: inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A, ___m_CachedPtr_0)); } inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; } inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; } inline void set_m_CachedPtr_0(intptr_t value) { ___m_CachedPtr_0 = value; } }; struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_StaticFields { public: // System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1; public: inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); } inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; } inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; } inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value) { ___OffsetOfInstanceIDInCPlusPlusObject_1 = value; } }; // Native definition for P/Invoke marshalling of UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_pinvoke { intptr_t ___m_CachedPtr_0; }; // Native definition for COM marshalling of UnityEngine.Object struct Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_marshaled_com { intptr_t ___m_CachedPtr_0; }; // UnityEngine.Component struct Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 : public Object_tF2F3778131EFF286AF62B7B013A170F95A91571A { public: public: }; // Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction struct MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A { public: // System.UInt32 Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction::id uint32_t ___id_1; // System.String Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction::description String_t* ___description_2; // Microsoft.MixedReality.Toolkit.Utilities.AxisType Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction::axisConstraint int32_t ___axisConstraint_3; public: inline static int32_t get_offset_of_id_1() { return static_cast<int32_t>(offsetof(MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A, ___id_1)); } inline uint32_t get_id_1() const { return ___id_1; } inline uint32_t* get_address_of_id_1() { return &___id_1; } inline void set_id_1(uint32_t value) { ___id_1 = value; } inline static int32_t get_offset_of_description_2() { return static_cast<int32_t>(offsetof(MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A, ___description_2)); } inline String_t* get_description_2() const { return ___description_2; } inline String_t** get_address_of_description_2() { return &___description_2; } inline void set_description_2(String_t* value) { ___description_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___description_2), (void*)value); } inline static int32_t get_offset_of_axisConstraint_3() { return static_cast<int32_t>(offsetof(MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A, ___axisConstraint_3)); } inline int32_t get_axisConstraint_3() const { return ___axisConstraint_3; } inline int32_t* get_address_of_axisConstraint_3() { return &___axisConstraint_3; } inline void set_axisConstraint_3(int32_t value) { ___axisConstraint_3 = value; } }; struct MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A_StaticFields { public: // Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction::<None>k__BackingField MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A ___U3CNoneU3Ek__BackingField_0; public: inline static int32_t get_offset_of_U3CNoneU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A_StaticFields, ___U3CNoneU3Ek__BackingField_0)); } inline MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A get_U3CNoneU3Ek__BackingField_0() const { return ___U3CNoneU3Ek__BackingField_0; } inline MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A * get_address_of_U3CNoneU3Ek__BackingField_0() { return &___U3CNoneU3Ek__BackingField_0; } inline void set_U3CNoneU3Ek__BackingField_0(MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A value) { ___U3CNoneU3Ek__BackingField_0 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___U3CNoneU3Ek__BackingField_0))->___description_2), (void*)NULL); } }; // Native definition for P/Invoke marshalling of Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction struct MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A_marshaled_pinvoke { uint32_t ___id_1; char* ___description_2; int32_t ___axisConstraint_3; }; // Native definition for COM marshalling of Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction struct MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A_marshaled_com { uint32_t ___id_1; Il2CppChar* ___description_2; int32_t ___axisConstraint_3; }; // System.SystemException struct SystemException_tC551B4D6EE3772B5F32C71EE8C719F4B43ECCC62 : public Exception_t { public: public: }; // UnityEngine.Behaviour struct Behaviour_t1A3DDDCF73B4627928FBFE02ED52B7251777DBD9 : public Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 { public: public: }; // System.NotSupportedException struct NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339 : public SystemException_tC551B4D6EE3772B5F32C71EE8C719F4B43ECCC62 { public: public: }; // UnityEngine.TextMesh struct TextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273 : public Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 { public: public: }; // UnityEngine.MonoBehaviour struct MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A : public Behaviour_t1A3DDDCF73B4627928FBFE02ED52B7251777DBD9 { public: public: }; // Microsoft.MixedReality.Toolkit.UI.Interactable struct Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C : public MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A { public: // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer> Microsoft.MixedReality.Toolkit.UI.Interactable::focusingPointers List_1_t535309B4CEA15437136325EEBD510D7C9EBC860A * ___focusingPointers_4; // System.Collections.Generic.HashSet`1<Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource> Microsoft.MixedReality.Toolkit.UI.Interactable::pressingInputSources HashSet_1_tA041F36FB3C3242D919652844C1C7580D00CCEAA * ___pressingInputSources_5; // Microsoft.MixedReality.Toolkit.UI.States Microsoft.MixedReality.Toolkit.UI.Interactable::states States_t53165FC337BCC2D3927CD874804F1BB14D0AE441 * ___states_6; // Microsoft.MixedReality.Toolkit.UI.InteractableStates Microsoft.MixedReality.Toolkit.UI.Interactable::<StateManager>k__BackingField InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * ___U3CStateManagerU3Ek__BackingField_7; // Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction Microsoft.MixedReality.Toolkit.UI.Interactable::<InputAction>k__BackingField MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A ___U3CInputActionU3Ek__BackingField_8; // System.Int32 Microsoft.MixedReality.Toolkit.UI.Interactable::InputActionId int32_t ___InputActionId_9; // System.Boolean Microsoft.MixedReality.Toolkit.UI.Interactable::isGlobal bool ___isGlobal_10; // System.Int32 Microsoft.MixedReality.Toolkit.UI.Interactable::Dimensions int32_t ___Dimensions_11; // System.Int32 Microsoft.MixedReality.Toolkit.UI.Interactable::dimensionIndex int32_t ___dimensionIndex_12; // System.Int32 Microsoft.MixedReality.Toolkit.UI.Interactable::startDimensionIndex int32_t ___startDimensionIndex_13; // System.Boolean Microsoft.MixedReality.Toolkit.UI.Interactable::CanSelect bool ___CanSelect_14; // System.Boolean Microsoft.MixedReality.Toolkit.UI.Interactable::CanDeselect bool ___CanDeselect_15; // System.String Microsoft.MixedReality.Toolkit.UI.Interactable::voiceCommand String_t* ___voiceCommand_16; // System.Boolean Microsoft.MixedReality.Toolkit.UI.Interactable::voiceRequiresFocus bool ___voiceRequiresFocus_17; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.InteractableProfileItem> Microsoft.MixedReality.Toolkit.UI.Interactable::profiles List_1_tDB5BAA52428F5A4B2470D397BB4D2247A156AEB2 * ___profiles_18; // UnityEngine.Events.UnityEvent Microsoft.MixedReality.Toolkit.UI.Interactable::OnClick UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * ___OnClick_19; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.InteractableEvent> Microsoft.MixedReality.Toolkit.UI.Interactable::Events List_1_t5E46C9B9686F8509B82283521F52E2B6963F75FF * ___Events_20; // System.Boolean Microsoft.MixedReality.Toolkit.UI.Interactable::resetOnDestroy bool ___resetOnDestroy_21; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.InteractableThemeBase> Microsoft.MixedReality.Toolkit.UI.Interactable::activeThemes List_1_t9A012BF2114F0E83D2F0BCE9946FDBC1CFFA02FF * ___activeThemes_22; // System.Collections.Generic.List`1<System.Tuple`2<System.Int32,Microsoft.MixedReality.Toolkit.UI.InteractableThemeBase>> Microsoft.MixedReality.Toolkit.UI.Interactable::allThemeDimensionPairs List_1_tC6F44A647F97453F3C2C08F707805D2114B68FF0 * ___allThemeDimensionPairs_23; // System.Int32 Microsoft.MixedReality.Toolkit.UI.Interactable::<ClickCount>k__BackingField int32_t ___U3CClickCountU3Ek__BackingField_24; // System.Boolean Microsoft.MixedReality.Toolkit.UI.Interactable::enabledOnStart bool ___enabledOnStart_25; // Microsoft.MixedReality.Toolkit.UI.State Microsoft.MixedReality.Toolkit.UI.Interactable::lastState State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * ___lastState_26; // System.Boolean Microsoft.MixedReality.Toolkit.UI.Interactable::forceUpdate bool ___forceUpdate_27; // System.Single Microsoft.MixedReality.Toolkit.UI.Interactable::<RollOffTime>k__BackingField float ___U3CRollOffTimeU3Ek__BackingField_28; // System.Single Microsoft.MixedReality.Toolkit.UI.Interactable::rollOffTimer float ___rollOffTimer_29; // System.Collections.Generic.List`1<Microsoft.MixedReality.Toolkit.UI.IInteractableHandler> Microsoft.MixedReality.Toolkit.UI.Interactable::handlers List_1_t8FA174FDF6BBE370A3FFDB5FCCFB9C3C34D4BB60 * ___handlers_30; // System.Single Microsoft.MixedReality.Toolkit.UI.Interactable::clickTime float ___clickTime_31; // UnityEngine.Coroutine Microsoft.MixedReality.Toolkit.UI.Interactable::clickValidTimer Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * ___clickValidTimer_32; // UnityEngine.Coroutine Microsoft.MixedReality.Toolkit.UI.Interactable::globalTimer Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * ___globalTimer_34; // System.Nullable`1<UnityEngine.Vector3> Microsoft.MixedReality.Toolkit.UI.Interactable::dragStartPosition Nullable_1_t1829213F3538788DF79B4659AFC9D6A9C90C3258 ___dragStartPosition_35; // System.Boolean Microsoft.MixedReality.Toolkit.UI.Interactable::isInitialized bool ___isInitialized_39; public: inline static int32_t get_offset_of_focusingPointers_4() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___focusingPointers_4)); } inline List_1_t535309B4CEA15437136325EEBD510D7C9EBC860A * get_focusingPointers_4() const { return ___focusingPointers_4; } inline List_1_t535309B4CEA15437136325EEBD510D7C9EBC860A ** get_address_of_focusingPointers_4() { return &___focusingPointers_4; } inline void set_focusingPointers_4(List_1_t535309B4CEA15437136325EEBD510D7C9EBC860A * value) { ___focusingPointers_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___focusingPointers_4), (void*)value); } inline static int32_t get_offset_of_pressingInputSources_5() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___pressingInputSources_5)); } inline HashSet_1_tA041F36FB3C3242D919652844C1C7580D00CCEAA * get_pressingInputSources_5() const { return ___pressingInputSources_5; } inline HashSet_1_tA041F36FB3C3242D919652844C1C7580D00CCEAA ** get_address_of_pressingInputSources_5() { return &___pressingInputSources_5; } inline void set_pressingInputSources_5(HashSet_1_tA041F36FB3C3242D919652844C1C7580D00CCEAA * value) { ___pressingInputSources_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___pressingInputSources_5), (void*)value); } inline static int32_t get_offset_of_states_6() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___states_6)); } inline States_t53165FC337BCC2D3927CD874804F1BB14D0AE441 * get_states_6() const { return ___states_6; } inline States_t53165FC337BCC2D3927CD874804F1BB14D0AE441 ** get_address_of_states_6() { return &___states_6; } inline void set_states_6(States_t53165FC337BCC2D3927CD874804F1BB14D0AE441 * value) { ___states_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___states_6), (void*)value); } inline static int32_t get_offset_of_U3CStateManagerU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___U3CStateManagerU3Ek__BackingField_7)); } inline InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * get_U3CStateManagerU3Ek__BackingField_7() const { return ___U3CStateManagerU3Ek__BackingField_7; } inline InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 ** get_address_of_U3CStateManagerU3Ek__BackingField_7() { return &___U3CStateManagerU3Ek__BackingField_7; } inline void set_U3CStateManagerU3Ek__BackingField_7(InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * value) { ___U3CStateManagerU3Ek__BackingField_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___U3CStateManagerU3Ek__BackingField_7), (void*)value); } inline static int32_t get_offset_of_U3CInputActionU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___U3CInputActionU3Ek__BackingField_8)); } inline MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A get_U3CInputActionU3Ek__BackingField_8() const { return ___U3CInputActionU3Ek__BackingField_8; } inline MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A * get_address_of_U3CInputActionU3Ek__BackingField_8() { return &___U3CInputActionU3Ek__BackingField_8; } inline void set_U3CInputActionU3Ek__BackingField_8(MixedRealityInputAction_tBA06471AA738A1132A3FFEF7494C5AE06EFFF54A value) { ___U3CInputActionU3Ek__BackingField_8 = value; Il2CppCodeGenWriteBarrier((void**)&(((&___U3CInputActionU3Ek__BackingField_8))->___description_2), (void*)NULL); } inline static int32_t get_offset_of_InputActionId_9() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___InputActionId_9)); } inline int32_t get_InputActionId_9() const { return ___InputActionId_9; } inline int32_t* get_address_of_InputActionId_9() { return &___InputActionId_9; } inline void set_InputActionId_9(int32_t value) { ___InputActionId_9 = value; } inline static int32_t get_offset_of_isGlobal_10() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___isGlobal_10)); } inline bool get_isGlobal_10() const { return ___isGlobal_10; } inline bool* get_address_of_isGlobal_10() { return &___isGlobal_10; } inline void set_isGlobal_10(bool value) { ___isGlobal_10 = value; } inline static int32_t get_offset_of_Dimensions_11() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___Dimensions_11)); } inline int32_t get_Dimensions_11() const { return ___Dimensions_11; } inline int32_t* get_address_of_Dimensions_11() { return &___Dimensions_11; } inline void set_Dimensions_11(int32_t value) { ___Dimensions_11 = value; } inline static int32_t get_offset_of_dimensionIndex_12() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___dimensionIndex_12)); } inline int32_t get_dimensionIndex_12() const { return ___dimensionIndex_12; } inline int32_t* get_address_of_dimensionIndex_12() { return &___dimensionIndex_12; } inline void set_dimensionIndex_12(int32_t value) { ___dimensionIndex_12 = value; } inline static int32_t get_offset_of_startDimensionIndex_13() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___startDimensionIndex_13)); } inline int32_t get_startDimensionIndex_13() const { return ___startDimensionIndex_13; } inline int32_t* get_address_of_startDimensionIndex_13() { return &___startDimensionIndex_13; } inline void set_startDimensionIndex_13(int32_t value) { ___startDimensionIndex_13 = value; } inline static int32_t get_offset_of_CanSelect_14() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___CanSelect_14)); } inline bool get_CanSelect_14() const { return ___CanSelect_14; } inline bool* get_address_of_CanSelect_14() { return &___CanSelect_14; } inline void set_CanSelect_14(bool value) { ___CanSelect_14 = value; } inline static int32_t get_offset_of_CanDeselect_15() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___CanDeselect_15)); } inline bool get_CanDeselect_15() const { return ___CanDeselect_15; } inline bool* get_address_of_CanDeselect_15() { return &___CanDeselect_15; } inline void set_CanDeselect_15(bool value) { ___CanDeselect_15 = value; } inline static int32_t get_offset_of_voiceCommand_16() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___voiceCommand_16)); } inline String_t* get_voiceCommand_16() const { return ___voiceCommand_16; } inline String_t** get_address_of_voiceCommand_16() { return &___voiceCommand_16; } inline void set_voiceCommand_16(String_t* value) { ___voiceCommand_16 = value; Il2CppCodeGenWriteBarrier((void**)(&___voiceCommand_16), (void*)value); } inline static int32_t get_offset_of_voiceRequiresFocus_17() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___voiceRequiresFocus_17)); } inline bool get_voiceRequiresFocus_17() const { return ___voiceRequiresFocus_17; } inline bool* get_address_of_voiceRequiresFocus_17() { return &___voiceRequiresFocus_17; } inline void set_voiceRequiresFocus_17(bool value) { ___voiceRequiresFocus_17 = value; } inline static int32_t get_offset_of_profiles_18() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___profiles_18)); } inline List_1_tDB5BAA52428F5A4B2470D397BB4D2247A156AEB2 * get_profiles_18() const { return ___profiles_18; } inline List_1_tDB5BAA52428F5A4B2470D397BB4D2247A156AEB2 ** get_address_of_profiles_18() { return &___profiles_18; } inline void set_profiles_18(List_1_tDB5BAA52428F5A4B2470D397BB4D2247A156AEB2 * value) { ___profiles_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___profiles_18), (void*)value); } inline static int32_t get_offset_of_OnClick_19() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___OnClick_19)); } inline UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * get_OnClick_19() const { return ___OnClick_19; } inline UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 ** get_address_of_OnClick_19() { return &___OnClick_19; } inline void set_OnClick_19(UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * value) { ___OnClick_19 = value; Il2CppCodeGenWriteBarrier((void**)(&___OnClick_19), (void*)value); } inline static int32_t get_offset_of_Events_20() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___Events_20)); } inline List_1_t5E46C9B9686F8509B82283521F52E2B6963F75FF * get_Events_20() const { return ___Events_20; } inline List_1_t5E46C9B9686F8509B82283521F52E2B6963F75FF ** get_address_of_Events_20() { return &___Events_20; } inline void set_Events_20(List_1_t5E46C9B9686F8509B82283521F52E2B6963F75FF * value) { ___Events_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___Events_20), (void*)value); } inline static int32_t get_offset_of_resetOnDestroy_21() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___resetOnDestroy_21)); } inline bool get_resetOnDestroy_21() const { return ___resetOnDestroy_21; } inline bool* get_address_of_resetOnDestroy_21() { return &___resetOnDestroy_21; } inline void set_resetOnDestroy_21(bool value) { ___resetOnDestroy_21 = value; } inline static int32_t get_offset_of_activeThemes_22() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___activeThemes_22)); } inline List_1_t9A012BF2114F0E83D2F0BCE9946FDBC1CFFA02FF * get_activeThemes_22() const { return ___activeThemes_22; } inline List_1_t9A012BF2114F0E83D2F0BCE9946FDBC1CFFA02FF ** get_address_of_activeThemes_22() { return &___activeThemes_22; } inline void set_activeThemes_22(List_1_t9A012BF2114F0E83D2F0BCE9946FDBC1CFFA02FF * value) { ___activeThemes_22 = value; Il2CppCodeGenWriteBarrier((void**)(&___activeThemes_22), (void*)value); } inline static int32_t get_offset_of_allThemeDimensionPairs_23() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___allThemeDimensionPairs_23)); } inline List_1_tC6F44A647F97453F3C2C08F707805D2114B68FF0 * get_allThemeDimensionPairs_23() const { return ___allThemeDimensionPairs_23; } inline List_1_tC6F44A647F97453F3C2C08F707805D2114B68FF0 ** get_address_of_allThemeDimensionPairs_23() { return &___allThemeDimensionPairs_23; } inline void set_allThemeDimensionPairs_23(List_1_tC6F44A647F97453F3C2C08F707805D2114B68FF0 * value) { ___allThemeDimensionPairs_23 = value; Il2CppCodeGenWriteBarrier((void**)(&___allThemeDimensionPairs_23), (void*)value); } inline static int32_t get_offset_of_U3CClickCountU3Ek__BackingField_24() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___U3CClickCountU3Ek__BackingField_24)); } inline int32_t get_U3CClickCountU3Ek__BackingField_24() const { return ___U3CClickCountU3Ek__BackingField_24; } inline int32_t* get_address_of_U3CClickCountU3Ek__BackingField_24() { return &___U3CClickCountU3Ek__BackingField_24; } inline void set_U3CClickCountU3Ek__BackingField_24(int32_t value) { ___U3CClickCountU3Ek__BackingField_24 = value; } inline static int32_t get_offset_of_enabledOnStart_25() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___enabledOnStart_25)); } inline bool get_enabledOnStart_25() const { return ___enabledOnStart_25; } inline bool* get_address_of_enabledOnStart_25() { return &___enabledOnStart_25; } inline void set_enabledOnStart_25(bool value) { ___enabledOnStart_25 = value; } inline static int32_t get_offset_of_lastState_26() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___lastState_26)); } inline State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * get_lastState_26() const { return ___lastState_26; } inline State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 ** get_address_of_lastState_26() { return &___lastState_26; } inline void set_lastState_26(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * value) { ___lastState_26 = value; Il2CppCodeGenWriteBarrier((void**)(&___lastState_26), (void*)value); } inline static int32_t get_offset_of_forceUpdate_27() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___forceUpdate_27)); } inline bool get_forceUpdate_27() const { return ___forceUpdate_27; } inline bool* get_address_of_forceUpdate_27() { return &___forceUpdate_27; } inline void set_forceUpdate_27(bool value) { ___forceUpdate_27 = value; } inline static int32_t get_offset_of_U3CRollOffTimeU3Ek__BackingField_28() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___U3CRollOffTimeU3Ek__BackingField_28)); } inline float get_U3CRollOffTimeU3Ek__BackingField_28() const { return ___U3CRollOffTimeU3Ek__BackingField_28; } inline float* get_address_of_U3CRollOffTimeU3Ek__BackingField_28() { return &___U3CRollOffTimeU3Ek__BackingField_28; } inline void set_U3CRollOffTimeU3Ek__BackingField_28(float value) { ___U3CRollOffTimeU3Ek__BackingField_28 = value; } inline static int32_t get_offset_of_rollOffTimer_29() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___rollOffTimer_29)); } inline float get_rollOffTimer_29() const { return ___rollOffTimer_29; } inline float* get_address_of_rollOffTimer_29() { return &___rollOffTimer_29; } inline void set_rollOffTimer_29(float value) { ___rollOffTimer_29 = value; } inline static int32_t get_offset_of_handlers_30() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___handlers_30)); } inline List_1_t8FA174FDF6BBE370A3FFDB5FCCFB9C3C34D4BB60 * get_handlers_30() const { return ___handlers_30; } inline List_1_t8FA174FDF6BBE370A3FFDB5FCCFB9C3C34D4BB60 ** get_address_of_handlers_30() { return &___handlers_30; } inline void set_handlers_30(List_1_t8FA174FDF6BBE370A3FFDB5FCCFB9C3C34D4BB60 * value) { ___handlers_30 = value; Il2CppCodeGenWriteBarrier((void**)(&___handlers_30), (void*)value); } inline static int32_t get_offset_of_clickTime_31() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___clickTime_31)); } inline float get_clickTime_31() const { return ___clickTime_31; } inline float* get_address_of_clickTime_31() { return &___clickTime_31; } inline void set_clickTime_31(float value) { ___clickTime_31 = value; } inline static int32_t get_offset_of_clickValidTimer_32() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___clickValidTimer_32)); } inline Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * get_clickValidTimer_32() const { return ___clickValidTimer_32; } inline Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 ** get_address_of_clickValidTimer_32() { return &___clickValidTimer_32; } inline void set_clickValidTimer_32(Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * value) { ___clickValidTimer_32 = value; Il2CppCodeGenWriteBarrier((void**)(&___clickValidTimer_32), (void*)value); } inline static int32_t get_offset_of_globalTimer_34() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___globalTimer_34)); } inline Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * get_globalTimer_34() const { return ___globalTimer_34; } inline Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 ** get_address_of_globalTimer_34() { return &___globalTimer_34; } inline void set_globalTimer_34(Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * value) { ___globalTimer_34 = value; Il2CppCodeGenWriteBarrier((void**)(&___globalTimer_34), (void*)value); } inline static int32_t get_offset_of_dragStartPosition_35() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___dragStartPosition_35)); } inline Nullable_1_t1829213F3538788DF79B4659AFC9D6A9C90C3258 get_dragStartPosition_35() const { return ___dragStartPosition_35; } inline Nullable_1_t1829213F3538788DF79B4659AFC9D6A9C90C3258 * get_address_of_dragStartPosition_35() { return &___dragStartPosition_35; } inline void set_dragStartPosition_35(Nullable_1_t1829213F3538788DF79B4659AFC9D6A9C90C3258 value) { ___dragStartPosition_35 = value; } inline static int32_t get_offset_of_isInitialized_39() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C, ___isInitialized_39)); } inline bool get_isInitialized_39() const { return ___isInitialized_39; } inline bool* get_address_of_isInitialized_39() { return &___isInitialized_39; } inline void set_isInitialized_39(bool value) { ___isInitialized_39 = value; } }; struct Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C_StaticFields { public: // System.Single Microsoft.MixedReality.Toolkit.UI.Interactable::gestureStartThresholdVector2 float ___gestureStartThresholdVector2_36; // System.Single Microsoft.MixedReality.Toolkit.UI.Interactable::gestureStartThresholdVector3 float ___gestureStartThresholdVector3_37; // System.Single Microsoft.MixedReality.Toolkit.UI.Interactable::gestureStartThresholdMixedRealityPose float ___gestureStartThresholdMixedRealityPose_38; public: inline static int32_t get_offset_of_gestureStartThresholdVector2_36() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C_StaticFields, ___gestureStartThresholdVector2_36)); } inline float get_gestureStartThresholdVector2_36() const { return ___gestureStartThresholdVector2_36; } inline float* get_address_of_gestureStartThresholdVector2_36() { return &___gestureStartThresholdVector2_36; } inline void set_gestureStartThresholdVector2_36(float value) { ___gestureStartThresholdVector2_36 = value; } inline static int32_t get_offset_of_gestureStartThresholdVector3_37() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C_StaticFields, ___gestureStartThresholdVector3_37)); } inline float get_gestureStartThresholdVector3_37() const { return ___gestureStartThresholdVector3_37; } inline float* get_address_of_gestureStartThresholdVector3_37() { return &___gestureStartThresholdVector3_37; } inline void set_gestureStartThresholdVector3_37(float value) { ___gestureStartThresholdVector3_37 = value; } inline static int32_t get_offset_of_gestureStartThresholdMixedRealityPose_38() { return static_cast<int32_t>(offsetof(Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C_StaticFields, ___gestureStartThresholdMixedRealityPose_38)); } inline float get_gestureStartThresholdMixedRealityPose_38() const { return ___gestureStartThresholdMixedRealityPose_38; } inline float* get_address_of_gestureStartThresholdMixedRealityPose_38() { return &___gestureStartThresholdMixedRealityPose_38; } inline void set_gestureStartThresholdMixedRealityPose_38(float value) { ___gestureStartThresholdMixedRealityPose_38 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // System.String[] struct StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A : public RuntimeArray { public: ALIGN_FIELD (8) String_t* m_Items[1]; public: inline String_t* GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline String_t** GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, String_t* value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } inline String_t* GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline String_t** GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, String_t* value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } }; // !!0 UnityEngine.Component::GetComponentInChildren<System.Object>() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Component_GetComponentInChildren_TisRuntimeObject_mB377B32275A969E0D1A738DBC693DE8EB3593642_gshared (Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 * __this, const RuntimeMethod* method); // System.Void Microsoft.MixedReality.Toolkit.UI.ReceiverBase::.ctor(UnityEngine.Events.UnityEvent,System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ReceiverBase__ctor_m2DB6835A5DA026606B602B18F7B46A851C1F70BD (ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA * __this, UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * ___ev0, String_t* ___name1, const RuntimeMethod* method); // UnityEngine.MonoBehaviour Microsoft.MixedReality.Toolkit.UI.ReceiverBase::get_Host() IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline (ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA * __this, const RuntimeMethod* method); // System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90 (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A * ___x0, Object_tF2F3778131EFF286AF62B7B013A170F95A91571A * ___y1, const RuntimeMethod* method); // !!0 UnityEngine.Component::GetComponentInChildren<UnityEngine.TextMesh>() inline TextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273 * Component_GetComponentInChildren_TisTextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273_m2D77FB6767D154CF6F2A02BA243EB063A54DF17F (Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 * __this, const RuntimeMethod* method) { return (( TextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273 * (*) (Component_t62FBC8D2420DA4BE9037AFE430740F6B3EECA684 *, const RuntimeMethod*))Component_GetComponentInChildren_TisRuntimeObject_mB377B32275A969E0D1A738DBC693DE8EB3593642_gshared)(__this, method); } // System.String System.String::Replace(System.String,System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Replace_m98184150DC4E2FBDF13E723BF5B7353D9602AC4D (String_t* __this, String_t* ___oldValue0, String_t* ___newValue1, const RuntimeMethod* method); // System.String System.Int32::ToString() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Int32_ToString_m340C0A14D16799421EFDF8A81C8A16FA76D48411 (int32_t* __this, const RuntimeMethod* method); // System.String System.String::Concat(System.String[]) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mFEA7EFA1A6E75B96B1B7BC4526AAC864BFF83CC9 (StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* ___values0, const RuntimeMethod* method); // System.String System.String::Concat(System.String,System.String,System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_m89EAB4C6A96B0E5C3F87300D6BE78D386B9EFC44 (String_t* ___str00, String_t* ___str11, String_t* ___str22, const RuntimeMethod* method); // System.Void UnityEngine.TextMesh::set_text(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TextMesh_set_text_m5879B13F5C9E4A1D05155839B89CCDB85BE28A04 (TextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273 * __this, String_t* ___value0, const RuntimeMethod* method); // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::.ctor(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CClickTimerU3Ed__14__ctor_mDB50E8625B6171732ECBF6EE2C943E2D7C702608 (U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * __this, int32_t ___U3CU3E1__state0, const RuntimeMethod* method); // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::.ctor(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CVoiceTimerU3Ed__15__ctor_m20F597F47B7284308B585E577A8D470C887FF710 (U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * __this, int32_t ___U3CU3E1__state0, const RuntimeMethod* method); // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::SetOutput() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CustomInteractablesReceiver_SetOutput_m3ACAB9B0F0EDD7DD77799F2931C0951FD70BA36B (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, const RuntimeMethod* method); // System.Void Microsoft.MixedReality.Toolkit.UI.ReceiverBase::OnClick(Microsoft.MixedReality.Toolkit.UI.InteractableStates,Microsoft.MixedReality.Toolkit.UI.Interactable,Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ReceiverBase_OnClick_mE8A09D449FA9FC0731D6FF9C7126B9E9B8EF6177 (ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA * __this, InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * ___state0, Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C * ___source1, RuntimeObject* ___pointer2, const RuntimeMethod* method); // System.Void UnityEngine.MonoBehaviour::StopCoroutine(UnityEngine.Coroutine) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoBehaviour_StopCoroutine_m5FF0476C9886FD8A3E6BA82BBE34B896CA279413 (MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * __this, Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * ___routine0, const RuntimeMethod* method); // System.Collections.IEnumerator Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::ClickTimer(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* CustomInteractablesReceiver_ClickTimer_m6CD4E6CD9042E4A0A5259809A6D5DDE64CD3ADF8 (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, float ___time0, const RuntimeMethod* method); // UnityEngine.Coroutine UnityEngine.MonoBehaviour::StartCoroutine(System.Collections.IEnumerator) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * MonoBehaviour_StartCoroutine_m3E33706D38B23CDD179E99BAD61E32303E9CC719 (MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * __this, RuntimeObject* ___routine0, const RuntimeMethod* method); // System.Void Microsoft.MixedReality.Toolkit.UI.ReceiverBase::OnVoiceCommand(Microsoft.MixedReality.Toolkit.UI.InteractableStates,Microsoft.MixedReality.Toolkit.UI.Interactable,System.String,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ReceiverBase_OnVoiceCommand_mF62EF87F164CC30DB68D1D8ADD71678D65E704B2 (ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA * __this, InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * ___state0, Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C * ___source1, String_t* ___command2, int32_t ___index3, int32_t ___length4, const RuntimeMethod* method); // System.Collections.IEnumerator Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::VoiceTimer(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* CustomInteractablesReceiver_VoiceTimer_mB01064FEEA111CD861857E3148D4D3E73F004BEC (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, float ___time0, const RuntimeMethod* method); // System.Void System.Object::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_m88880E0413421D13FD95325EDCE231707CE1F405 (RuntimeObject * __this, const RuntimeMethod* method); // System.Void UnityEngine.WaitForSeconds::.ctor(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WaitForSeconds__ctor_mD298C4CB9532BBBDE172FC40F3397E30504038D4 (WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013 * __this, float ___seconds0, const RuntimeMethod* method); // System.Void System.NotSupportedException::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NotSupportedException__ctor_m3EA81A5B209A87C3ADA47443F2AFFF735E5256EE (NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339 * __this, const RuntimeMethod* method); #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Boolean Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::get_HideUnityEvents() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool CustomInteractablesReceiver_get_HideUnityEvents_m4B2A9581D4D30F4AAA9A2BBEC7CD9632DADAB008 (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CustomInteractablesReceiver_get_HideUnityEvents_m4B2A9581D4D30F4AAA9A2BBEC7CD9632DADAB008_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(CustomInteractablesReceiver_get_HideUnityEvents_m4B2A9581D4D30F4AAA9A2BBEC7CD9632DADAB008_RuntimeMethod_var); { // public override bool HideUnityEvents => true; return (bool)1; } } // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::.ctor(UnityEngine.Events.UnityEvent) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CustomInteractablesReceiver__ctor_m4ADE694EB16730B8BC380E6C02B24E520BA37D6A (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * ___ev0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CustomInteractablesReceiver__ctor_m4ADE694EB16730B8BC380E6C02B24E520BA37D6A_RuntimeMethod_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral29902F5CA78BFEDCD32C035E61FCBAB3339DA796); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral8EBB83AE944B8C0710DCA4C06CE160F234C15D5F); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral9E5F9835A152F2BA019EBD6CEFB449507FEB9523); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralB39056DF5195F8425E7AFD2AC641BCFD2625C289); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(CustomInteractablesReceiver__ctor_m4ADE694EB16730B8BC380E6C02B24E520BA37D6A_RuntimeMethod_var); { // private string statusString = "State: %state%"; __this->set_statusString_4(_stringLiteral8EBB83AE944B8C0710DCA4C06CE160F234C15D5F); // private string clickString = "Clicked!"; __this->set_clickString_5(_stringLiteral9E5F9835A152F2BA019EBD6CEFB449507FEB9523); // private string voiceString = "VoiceCommand: %voiceCommand%"; __this->set_voiceString_6(_stringLiteralB39056DF5195F8425E7AFD2AC641BCFD2625C289); // private string lastVoiceCommand = ""; __this->set_lastVoiceCommand_8(_stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709); // private float clickTime = 2; __this->set_clickTime_9((2.0f)); // public CustomInteractablesReceiver(UnityEvent ev) : base(ev, "CustomEvent") UnityEvent_tA0EA9BC49FD7D5185E7A238EF2E0E6F5D0EE27F4 * L_0 = ___ev0; ReceiverBase__ctor_m2DB6835A5DA026606B602B18F7B46A851C1F70BD(__this, L_0, _stringLiteral29902F5CA78BFEDCD32C035E61FCBAB3339DA796, /*hidden argument*/NULL); // } return; } } // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::SetOutput() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CustomInteractablesReceiver_SetOutput_m3ACAB9B0F0EDD7DD77799F2931C0951FD70BA36B (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Component_GetComponentInChildren_TisTextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273_m2D77FB6767D154CF6F2A02BA243EB063A54DF17F_RuntimeMethod_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CustomInteractablesReceiver_SetOutput_m3ACAB9B0F0EDD7DD77799F2931C0951FD70BA36B_RuntimeMethod_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral00B28FF06B788B9B67C6B259800F404F9F3761FD); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral244D3D0615E1ABC5A99449717159D66E82E2C34A); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral652441018A932575C56896F206DEEDB03D3980C3); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralA3DFC0C77ACADE0EE48DCC73E795A597D0270A73); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralB3F14BF976EFD974E34846B742502C802FABAE9D); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(CustomInteractablesReceiver_SetOutput_m3ACAB9B0F0EDD7DD77799F2931C0951FD70BA36B_RuntimeMethod_var); TextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273 * V_0 = NULL; { // if (Host != null) MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * L_0; L_0 = ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline(__this, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_1; L_1 = Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90(L_0, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); if (!L_1) { goto IL_00db; } } { // TextMesh mesh = Host.GetComponentInChildren<TextMesh>(); MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * L_2; L_2 = ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline(__this, /*hidden argument*/NULL); NullCheck(L_2); TextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273 * L_3; L_3 = Component_GetComponentInChildren_TisTextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273_m2D77FB6767D154CF6F2A02BA243EB063A54DF17F(L_2, /*hidden argument*/Component_GetComponentInChildren_TisTextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273_m2D77FB6767D154CF6F2A02BA243EB063A54DF17F_RuntimeMethod_var); V_0 = L_3; // if (mesh != null) TextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273 * L_4 = V_0; IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_5; L_5 = Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90(L_4, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); if (!L_5) { goto IL_00db; } } { // outputString = statusString.Replace("%state%", lastState.Name); String_t* L_6 = __this->get_statusString_4(); State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * L_7 = __this->get_lastState_3(); NullCheck(L_7); String_t* L_8 = L_7->get_Name_0(); NullCheck(L_6); String_t* L_9; L_9 = String_Replace_m98184150DC4E2FBDF13E723BF5B7353D9602AC4D(L_6, _stringLiteral244D3D0615E1ABC5A99449717159D66E82E2C34A, L_8, /*hidden argument*/NULL); __this->set_outputString_7(L_9); // if (showClicked != null) Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * L_10 = __this->get_showClicked_10(); if (!L_10) { goto IL_009b; } } { // outputString += "\n" + clickString + "(" + clickCount + ")"; StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* L_11 = (StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A*)(StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A*)SZArrayNew(StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A_il2cpp_TypeInfo_var, (uint32_t)6); StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* L_12 = L_11; String_t* L_13 = __this->get_outputString_7(); NullCheck(L_12); ArrayElementTypeCheck (L_12, L_13); (L_12)->SetAt(static_cast<il2cpp_array_size_t>(0), (String_t*)L_13); StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* L_14 = L_12; NullCheck(L_14); ArrayElementTypeCheck (L_14, _stringLiteral00B28FF06B788B9B67C6B259800F404F9F3761FD); (L_14)->SetAt(static_cast<il2cpp_array_size_t>(1), (String_t*)_stringLiteral00B28FF06B788B9B67C6B259800F404F9F3761FD); StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* L_15 = L_14; String_t* L_16 = __this->get_clickString_5(); NullCheck(L_15); ArrayElementTypeCheck (L_15, L_16); (L_15)->SetAt(static_cast<il2cpp_array_size_t>(2), (String_t*)L_16); StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* L_17 = L_15; NullCheck(L_17); ArrayElementTypeCheck (L_17, _stringLiteralA3DFC0C77ACADE0EE48DCC73E795A597D0270A73); (L_17)->SetAt(static_cast<il2cpp_array_size_t>(3), (String_t*)_stringLiteralA3DFC0C77ACADE0EE48DCC73E795A597D0270A73); StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* L_18 = L_17; int32_t* L_19 = __this->get_address_of_clickCount_12(); String_t* L_20; L_20 = Int32_ToString_m340C0A14D16799421EFDF8A81C8A16FA76D48411((int32_t*)L_19, /*hidden argument*/NULL); NullCheck(L_18); ArrayElementTypeCheck (L_18, L_20); (L_18)->SetAt(static_cast<il2cpp_array_size_t>(4), (String_t*)L_20); StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* L_21 = L_18; NullCheck(L_21); ArrayElementTypeCheck (L_21, _stringLiteralB3F14BF976EFD974E34846B742502C802FABAE9D); (L_21)->SetAt(static_cast<il2cpp_array_size_t>(5), (String_t*)_stringLiteralB3F14BF976EFD974E34846B742502C802FABAE9D); String_t* L_22; L_22 = String_Concat_mFEA7EFA1A6E75B96B1B7BC4526AAC864BFF83CC9(L_21, /*hidden argument*/NULL); __this->set_outputString_7(L_22); } IL_009b: { // if (showVoice != null) Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * L_23 = __this->get_showVoice_11(); if (!L_23) { goto IL_00cf; } } { // outputString += "\n" + voiceString.Replace("%voiceCommand%", lastVoiceCommand); String_t* L_24 = __this->get_outputString_7(); String_t* L_25 = __this->get_voiceString_6(); String_t* L_26 = __this->get_lastVoiceCommand_8(); NullCheck(L_25); String_t* L_27; L_27 = String_Replace_m98184150DC4E2FBDF13E723BF5B7353D9602AC4D(L_25, _stringLiteral652441018A932575C56896F206DEEDB03D3980C3, L_26, /*hidden argument*/NULL); String_t* L_28; L_28 = String_Concat_m89EAB4C6A96B0E5C3F87300D6BE78D386B9EFC44(L_24, _stringLiteral00B28FF06B788B9B67C6B259800F404F9F3761FD, L_27, /*hidden argument*/NULL); __this->set_outputString_7(L_28); } IL_00cf: { // mesh.text = outputString; TextMesh_t830C2452CE189A0D35CD9ED26B6B74D506B01273 * L_29 = V_0; String_t* L_30 = __this->get_outputString_7(); NullCheck(L_29); TextMesh_set_text_m5879B13F5C9E4A1D05155839B89CCDB85BE28A04(L_29, L_30, /*hidden argument*/NULL); } IL_00db: { // } return; } } // System.Collections.IEnumerator Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::ClickTimer(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* CustomInteractablesReceiver_ClickTimer_m6CD4E6CD9042E4A0A5259809A6D5DDE64CD3ADF8 (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, float ___time0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CustomInteractablesReceiver_ClickTimer_m6CD4E6CD9042E4A0A5259809A6D5DDE64CD3ADF8_RuntimeMethod_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(CustomInteractablesReceiver_ClickTimer_m6CD4E6CD9042E4A0A5259809A6D5DDE64CD3ADF8_RuntimeMethod_var); { U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * L_0 = (U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 *)il2cpp_codegen_object_new(U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76_il2cpp_TypeInfo_var); U3CClickTimerU3Ed__14__ctor_mDB50E8625B6171732ECBF6EE2C943E2D7C702608(L_0, 0, /*hidden argument*/NULL); U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * L_1 = L_0; NullCheck(L_1); L_1->set_U3CU3E4__this_3(__this); U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * L_2 = L_1; float L_3 = ___time0; NullCheck(L_2); L_2->set_time_2(L_3); return L_2; } } // System.Collections.IEnumerator Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::VoiceTimer(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* CustomInteractablesReceiver_VoiceTimer_mB01064FEEA111CD861857E3148D4D3E73F004BEC (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, float ___time0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CustomInteractablesReceiver_VoiceTimer_mB01064FEEA111CD861857E3148D4D3E73F004BEC_RuntimeMethod_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(CustomInteractablesReceiver_VoiceTimer_mB01064FEEA111CD861857E3148D4D3E73F004BEC_RuntimeMethod_var); { U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * L_0 = (U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 *)il2cpp_codegen_object_new(U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5_il2cpp_TypeInfo_var); U3CVoiceTimerU3Ed__15__ctor_m20F597F47B7284308B585E577A8D470C887FF710(L_0, 0, /*hidden argument*/NULL); U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * L_1 = L_0; NullCheck(L_1); L_1->set_U3CU3E4__this_3(__this); U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * L_2 = L_1; float L_3 = ___time0; NullCheck(L_2); L_2->set_time_2(L_3); return L_2; } } // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::OnUpdate(Microsoft.MixedReality.Toolkit.UI.InteractableStates,Microsoft.MixedReality.Toolkit.UI.Interactable) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CustomInteractablesReceiver_OnUpdate_m97E300AD21527B4BCBF02E911B2C1E5E3A24933F (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * ___state0, Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C * ___source1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CustomInteractablesReceiver_OnUpdate_m97E300AD21527B4BCBF02E911B2C1E5E3A24933F_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(CustomInteractablesReceiver_OnUpdate_m97E300AD21527B4BCBF02E911B2C1E5E3A24933F_RuntimeMethod_var); { // if (state.CurrentState() != lastState) InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * L_0 = ___state0; NullCheck(L_0); State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * L_1; L_1 = VirtFuncInvoker0< State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * >::Invoke(9 /* Microsoft.MixedReality.Toolkit.UI.State Microsoft.MixedReality.Toolkit.UI.BaseStateModel::CurrentState() */, L_0); State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * L_2 = __this->get_lastState_3(); if ((((RuntimeObject*)(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 *)L_1) == ((RuntimeObject*)(State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 *)L_2))) { goto IL_0020; } } { // lastState = state.CurrentState(); InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * L_3 = ___state0; NullCheck(L_3); State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * L_4; L_4 = VirtFuncInvoker0< State_t343F851C8900985B580F9FCDD946FA8FF232ECD5 * >::Invoke(9 /* Microsoft.MixedReality.Toolkit.UI.State Microsoft.MixedReality.Toolkit.UI.BaseStateModel::CurrentState() */, L_3); __this->set_lastState_3(L_4); // SetOutput(); CustomInteractablesReceiver_SetOutput_m3ACAB9B0F0EDD7DD77799F2931C0951FD70BA36B(__this, /*hidden argument*/NULL); } IL_0020: { // } return; } } // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::OnClick(Microsoft.MixedReality.Toolkit.UI.InteractableStates,Microsoft.MixedReality.Toolkit.UI.Interactable,Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CustomInteractablesReceiver_OnClick_m50EA2F5BE6A9AF76929C0C9C952BB19BB5EC947E (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * ___state0, Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C * ___source1, RuntimeObject* ___pointer2, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CustomInteractablesReceiver_OnClick_m50EA2F5BE6A9AF76929C0C9C952BB19BB5EC947E_RuntimeMethod_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(CustomInteractablesReceiver_OnClick_m50EA2F5BE6A9AF76929C0C9C952BB19BB5EC947E_RuntimeMethod_var); { // base.OnClick(state, source); InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * L_0 = ___state0; Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C * L_1 = ___source1; ReceiverBase_OnClick_mE8A09D449FA9FC0731D6FF9C7126B9E9B8EF6177(__this, L_0, L_1, (RuntimeObject*)NULL, /*hidden argument*/NULL); // if (Host != null) MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * L_2; L_2 = ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline(__this, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_3; L_3 = Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90(L_2, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); if (!L_3) { goto IL_0054; } } { // if (showClicked != null) Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * L_4 = __this->get_showClicked_10(); if (!L_4) { goto IL_0037; } } { // Host.StopCoroutine(showClicked); MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * L_5; L_5 = ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline(__this, /*hidden argument*/NULL); Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * L_6 = __this->get_showClicked_10(); NullCheck(L_5); MonoBehaviour_StopCoroutine_m5FF0476C9886FD8A3E6BA82BBE34B896CA279413(L_5, L_6, /*hidden argument*/NULL); // showClicked = null; __this->set_showClicked_10((Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 *)NULL); } IL_0037: { // showClicked = Host.StartCoroutine(ClickTimer(clickTime)); MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * L_7; L_7 = ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline(__this, /*hidden argument*/NULL); float L_8 = __this->get_clickTime_9(); RuntimeObject* L_9; L_9 = CustomInteractablesReceiver_ClickTimer_m6CD4E6CD9042E4A0A5259809A6D5DDE64CD3ADF8(__this, L_8, /*hidden argument*/NULL); NullCheck(L_7); Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * L_10; L_10 = MonoBehaviour_StartCoroutine_m3E33706D38B23CDD179E99BAD61E32303E9CC719(L_7, L_9, /*hidden argument*/NULL); __this->set_showClicked_10(L_10); } IL_0054: { // clickCount++; int32_t L_11 = __this->get_clickCount_12(); __this->set_clickCount_12(((int32_t)il2cpp_codegen_add((int32_t)L_11, (int32_t)1))); // SetOutput(); CustomInteractablesReceiver_SetOutput_m3ACAB9B0F0EDD7DD77799F2931C0951FD70BA36B(__this, /*hidden argument*/NULL); // } return; } } // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver::OnVoiceCommand(Microsoft.MixedReality.Toolkit.UI.InteractableStates,Microsoft.MixedReality.Toolkit.UI.Interactable,System.String,System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CustomInteractablesReceiver_OnVoiceCommand_m8728CCC25E4BE70E2AD739CA57BA5530F253A670 (CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * __this, InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * ___state0, Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C * ___source1, String_t* ___command2, int32_t ___index3, int32_t ___length4, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CustomInteractablesReceiver_OnVoiceCommand_m8728CCC25E4BE70E2AD739CA57BA5530F253A670_RuntimeMethod_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(CustomInteractablesReceiver_OnVoiceCommand_m8728CCC25E4BE70E2AD739CA57BA5530F253A670_RuntimeMethod_var); { // base.OnVoiceCommand(state, source, command, index, length); InteractableStates_t82DC83D236EE15291372A88EFD248661B1B858B1 * L_0 = ___state0; Interactable_t9254BFC469816BE97E2A155BAB97E180B6DCBA8C * L_1 = ___source1; String_t* L_2 = ___command2; int32_t L_3 = ___index3; int32_t L_4 = ___length4; ReceiverBase_OnVoiceCommand_mF62EF87F164CC30DB68D1D8ADD71678D65E704B2(__this, L_0, L_1, L_2, L_3, L_4, /*hidden argument*/NULL); // lastVoiceCommand = command; String_t* L_5 = ___command2; __this->set_lastVoiceCommand_8(L_5); // if (Host != null) MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * L_6; L_6 = ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline(__this, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Object_tF2F3778131EFF286AF62B7B013A170F95A91571A_il2cpp_TypeInfo_var); bool L_7; L_7 = Object_op_Inequality_mE1F187520BD83FB7D86A6D850710C4D42B864E90(L_6, (Object_tF2F3778131EFF286AF62B7B013A170F95A91571A *)NULL, /*hidden argument*/NULL); if (!L_7) { goto IL_005f; } } { // if (showVoice != null) Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * L_8 = __this->get_showVoice_11(); if (!L_8) { goto IL_0042; } } { // Host.StopCoroutine(showVoice); MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * L_9; L_9 = ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline(__this, /*hidden argument*/NULL); Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * L_10 = __this->get_showVoice_11(); NullCheck(L_9); MonoBehaviour_StopCoroutine_m5FF0476C9886FD8A3E6BA82BBE34B896CA279413(L_9, L_10, /*hidden argument*/NULL); // showVoice = null; __this->set_showVoice_11((Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 *)NULL); } IL_0042: { // showVoice = Host.StartCoroutine(VoiceTimer(clickTime)); MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * L_11; L_11 = ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline(__this, /*hidden argument*/NULL); float L_12 = __this->get_clickTime_9(); RuntimeObject* L_13; L_13 = CustomInteractablesReceiver_VoiceTimer_mB01064FEEA111CD861857E3148D4D3E73F004BEC(__this, L_12, /*hidden argument*/NULL); NullCheck(L_11); Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 * L_14; L_14 = MonoBehaviour_StartCoroutine_m3E33706D38B23CDD179E99BAD61E32303E9CC719(L_11, L_13, /*hidden argument*/NULL); __this->set_showVoice_11(L_14); } IL_005f: { // SetOutput(); CustomInteractablesReceiver_SetOutput_m3ACAB9B0F0EDD7DD77799F2931C0951FD70BA36B(__this, /*hidden argument*/NULL); // } return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::.ctor(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CClickTimerU3Ed__14__ctor_mDB50E8625B6171732ECBF6EE2C943E2D7C702608 (U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * __this, int32_t ___U3CU3E1__state0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CClickTimerU3Ed__14__ctor_mDB50E8625B6171732ECBF6EE2C943E2D7C702608_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CClickTimerU3Ed__14__ctor_mDB50E8625B6171732ECBF6EE2C943E2D7C702608_RuntimeMethod_var); { Object__ctor_m88880E0413421D13FD95325EDCE231707CE1F405(__this, /*hidden argument*/NULL); int32_t L_0 = ___U3CU3E1__state0; __this->set_U3CU3E1__state_0(L_0); return; } } // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::System.IDisposable.Dispose() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CClickTimerU3Ed__14_System_IDisposable_Dispose_m5D6A91885FF6449818D0D9B9F48FC352CBF424DC (U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CClickTimerU3Ed__14_System_IDisposable_Dispose_m5D6A91885FF6449818D0D9B9F48FC352CBF424DC_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CClickTimerU3Ed__14_System_IDisposable_Dispose_m5D6A91885FF6449818D0D9B9F48FC352CBF424DC_RuntimeMethod_var); { return; } } // System.Boolean Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::MoveNext() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool U3CClickTimerU3Ed__14_MoveNext_mC53AF8B0C1049ADF20671FB6165A60D01E7D5300 (U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CClickTimerU3Ed__14_MoveNext_mC53AF8B0C1049ADF20671FB6165A60D01E7D5300_RuntimeMethod_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CClickTimerU3Ed__14_MoveNext_mC53AF8B0C1049ADF20671FB6165A60D01E7D5300_RuntimeMethod_var); int32_t V_0 = 0; CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * V_1 = NULL; { int32_t L_0 = __this->get_U3CU3E1__state_0(); V_0 = L_0; CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * L_1 = __this->get_U3CU3E4__this_3(); V_1 = L_1; int32_t L_2 = V_0; if (!L_2) { goto IL_0017; } } { int32_t L_3 = V_0; if ((((int32_t)L_3) == ((int32_t)1))) { goto IL_0038; } } { return (bool)0; } IL_0017: { __this->set_U3CU3E1__state_0((-1)); // yield return new WaitForSeconds(time); float L_4 = __this->get_time_2(); WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013 * L_5 = (WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013 *)il2cpp_codegen_object_new(WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013_il2cpp_TypeInfo_var); WaitForSeconds__ctor_mD298C4CB9532BBBDE172FC40F3397E30504038D4(L_5, L_4, /*hidden argument*/NULL); __this->set_U3CU3E2__current_1(L_5); __this->set_U3CU3E1__state_0(1); return (bool)1; } IL_0038: { __this->set_U3CU3E1__state_0((-1)); // showClicked = null; CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * L_6 = V_1; NullCheck(L_6); L_6->set_showClicked_10((Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 *)NULL); // } return (bool)0; } } // System.Object Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::System.Collections.Generic.IEnumerator<System.Object>.get_Current() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * U3CClickTimerU3Ed__14_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m4ADBB25C2BFAA514902BED112ACDD1CBF1708196 (U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CClickTimerU3Ed__14_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m4ADBB25C2BFAA514902BED112ACDD1CBF1708196_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CClickTimerU3Ed__14_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m4ADBB25C2BFAA514902BED112ACDD1CBF1708196_RuntimeMethod_var); { RuntimeObject * L_0 = __this->get_U3CU3E2__current_1(); return L_0; } } // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::System.Collections.IEnumerator.Reset() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CClickTimerU3Ed__14_System_Collections_IEnumerator_Reset_mA63DD2FA600907AF6A37AF3E1657B18FF4367528 (U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CClickTimerU3Ed__14_System_Collections_IEnumerator_Reset_mA63DD2FA600907AF6A37AF3E1657B18FF4367528_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CClickTimerU3Ed__14_System_Collections_IEnumerator_Reset_mA63DD2FA600907AF6A37AF3E1657B18FF4367528_RuntimeMethod_var); { NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339 * L_0 = (NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339 *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339_il2cpp_TypeInfo_var))); NotSupportedException__ctor_m3EA81A5B209A87C3ADA47443F2AFFF735E5256EE(L_0, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_0, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&U3CClickTimerU3Ed__14_System_Collections_IEnumerator_Reset_mA63DD2FA600907AF6A37AF3E1657B18FF4367528_RuntimeMethod_var))); } } // System.Object Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<ClickTimer>d__14::System.Collections.IEnumerator.get_Current() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * U3CClickTimerU3Ed__14_System_Collections_IEnumerator_get_Current_mDEFE71150F0CD6DCBB5A9ECBA79C571F15357E43 (U3CClickTimerU3Ed__14_tEE17F23196797F9488E01F830D59FA9CD0FFEE76 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CClickTimerU3Ed__14_System_Collections_IEnumerator_get_Current_mDEFE71150F0CD6DCBB5A9ECBA79C571F15357E43_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CClickTimerU3Ed__14_System_Collections_IEnumerator_get_Current_mDEFE71150F0CD6DCBB5A9ECBA79C571F15357E43_RuntimeMethod_var); { RuntimeObject * L_0 = __this->get_U3CU3E2__current_1(); return L_0; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::.ctor(System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CVoiceTimerU3Ed__15__ctor_m20F597F47B7284308B585E577A8D470C887FF710 (U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * __this, int32_t ___U3CU3E1__state0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CVoiceTimerU3Ed__15__ctor_m20F597F47B7284308B585E577A8D470C887FF710_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CVoiceTimerU3Ed__15__ctor_m20F597F47B7284308B585E577A8D470C887FF710_RuntimeMethod_var); { Object__ctor_m88880E0413421D13FD95325EDCE231707CE1F405(__this, /*hidden argument*/NULL); int32_t L_0 = ___U3CU3E1__state0; __this->set_U3CU3E1__state_0(L_0); return; } } // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::System.IDisposable.Dispose() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CVoiceTimerU3Ed__15_System_IDisposable_Dispose_m7638E4CBC6995C6AFED3573CEB33CA0995151A92 (U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CVoiceTimerU3Ed__15_System_IDisposable_Dispose_m7638E4CBC6995C6AFED3573CEB33CA0995151A92_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CVoiceTimerU3Ed__15_System_IDisposable_Dispose_m7638E4CBC6995C6AFED3573CEB33CA0995151A92_RuntimeMethod_var); { return; } } // System.Boolean Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::MoveNext() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool U3CVoiceTimerU3Ed__15_MoveNext_m0200E624B04CF5C95118F07870582D6215F78339 (U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CVoiceTimerU3Ed__15_MoveNext_m0200E624B04CF5C95118F07870582D6215F78339_RuntimeMethod_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CVoiceTimerU3Ed__15_MoveNext_m0200E624B04CF5C95118F07870582D6215F78339_RuntimeMethod_var); int32_t V_0 = 0; CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * V_1 = NULL; { int32_t L_0 = __this->get_U3CU3E1__state_0(); V_0 = L_0; CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * L_1 = __this->get_U3CU3E4__this_3(); V_1 = L_1; int32_t L_2 = V_0; if (!L_2) { goto IL_0017; } } { int32_t L_3 = V_0; if ((((int32_t)L_3) == ((int32_t)1))) { goto IL_0038; } } { return (bool)0; } IL_0017: { __this->set_U3CU3E1__state_0((-1)); // yield return new WaitForSeconds(time); float L_4 = __this->get_time_2(); WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013 * L_5 = (WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013 *)il2cpp_codegen_object_new(WaitForSeconds_t8F9189BE6E467C98C99177038881F8982E0E4013_il2cpp_TypeInfo_var); WaitForSeconds__ctor_mD298C4CB9532BBBDE172FC40F3397E30504038D4(L_5, L_4, /*hidden argument*/NULL); __this->set_U3CU3E2__current_1(L_5); __this->set_U3CU3E1__state_0(1); return (bool)1; } IL_0038: { __this->set_U3CU3E1__state_0((-1)); // showVoice = null; CustomInteractablesReceiver_t77423DDE2C42025153A88953C31A4CFA3EDA35A6 * L_6 = V_1; NullCheck(L_6); L_6->set_showVoice_11((Coroutine_t899D5232EF542CB8BA70AF9ECEECA494FAA9CCB7 *)NULL); // } return (bool)0; } } // System.Object Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::System.Collections.Generic.IEnumerator<System.Object>.get_Current() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * U3CVoiceTimerU3Ed__15_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m804CA22E54628E96D5C782E7877116E0A30F48F3 (U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CVoiceTimerU3Ed__15_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m804CA22E54628E96D5C782E7877116E0A30F48F3_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CVoiceTimerU3Ed__15_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m804CA22E54628E96D5C782E7877116E0A30F48F3_RuntimeMethod_var); { RuntimeObject * L_0 = __this->get_U3CU3E2__current_1(); return L_0; } } // System.Void Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::System.Collections.IEnumerator.Reset() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_Reset_m0388D53B06D2F89C23E965CE905DB82E80FC9C57 (U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_Reset_m0388D53B06D2F89C23E965CE905DB82E80FC9C57_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_Reset_m0388D53B06D2F89C23E965CE905DB82E80FC9C57_RuntimeMethod_var); { NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339 * L_0 = (NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339 *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&NotSupportedException_tB9D89F0E9470A2C423D239D7C68EE0CFD77F9339_il2cpp_TypeInfo_var))); NotSupportedException__ctor_m3EA81A5B209A87C3ADA47443F2AFFF735E5256EE(L_0, /*hidden argument*/NULL); IL2CPP_RAISE_MANAGED_EXCEPTION(L_0, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_Reset_m0388D53B06D2F89C23E965CE905DB82E80FC9C57_RuntimeMethod_var))); } } // System.Object Microsoft.MixedReality.Toolkit.UI.CustomInteractablesReceiver/<VoiceTimer>d__15::System.Collections.IEnumerator.get_Current() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_get_Current_m45C7C7BF0E42210F49668890952F57DB7D73FE8A (U3CVoiceTimerU3Ed__15_t2A4468F02A0C53B74CDBCDC66C96DE2E28CA47F5 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_get_Current_m45C7C7BF0E42210F49668890952F57DB7D73FE8A_RuntimeMethod_var); s_Il2CppMethodInitialized = true; } StackTraceSentry _stackTraceSentry(U3CVoiceTimerU3Ed__15_System_Collections_IEnumerator_get_Current_m45C7C7BF0E42210F49668890952F57DB7D73FE8A_RuntimeMethod_var); { RuntimeObject * L_0 = __this->get_U3CU3E2__current_1(); return L_0; } } #ifdef __clang__ #pragma clang diagnostic pop #endif IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * ReceiverBase_get_Host_m5BB37B26F438951406BF1E14559216C2474AA1C8_inline (ReceiverBase_tCF5F5BE01EFD1042783898EC6906A614194474CA * __this, const RuntimeMethod* method) { { // public MonoBehaviour Host { get; set; } MonoBehaviour_t37A501200D970A8257124B0EAE00A0FF3DDC354A * L_0 = __this->get_U3CHostU3Ek__BackingField_2(); return L_0; } }
// Extension lib defines #define EXTENSION_NAME fuior_compiler #define LIB_NAME "fuior_compiler" #define MODULE_NAME LIB_NAME #include <dmsdk/sdk.h> #include "fuior.h" #include <stdlib.h> #include <stdio.h> #include <string.h> static int compile(lua_State *L) { const char *input = luaL_checkstring(L, 1); const char *filename = NULL; if (!lua_isnoneornil(L, 2)) { filename = luaL_checkstring(L, 2); } fuior_results * results = fuior_compile(input, lua_strlen(L, 1), filename); for (size_t i = 0; i < results->warning_count; i++) { fuior_message *msg = results->warnings[i]; dmLogWarning("%s:%u:%u %s", msg->filename, msg->start_row + 1, msg->start_column + 1, msg->message); } for (size_t i = 0; i < results->error_count; i++) { fuior_message *msg = results->errors[i]; dmLogError("%s:%u:%u %s", msg->filename, msg->start_row + 1, msg->start_column + 1, msg->message); } if (!results->output) { lua_pushstring(L, "fuior produced no output"); fuior_results_free(results); lua_error(L); return 0; } if (results->error_count != 0) { fuior_message *msg = results->errors[0]; size_t msg_size = sprintf(NULL, "%s:%u:%u %s", msg->filename, msg->start_row + 1, msg->start_column + 1, msg->message); char *msg_str = (char*)malloc(msg_size + 1); sprintf(msg_str, "%s:%u:%u %s", msg->filename, msg->start_row + 1, msg->start_column + 1, msg->message); lua_pushstring(L, msg_str); free(msg_str); fuior_results_free(results); lua_error(L); return 0; } lua_pushstring(L, results->output); fuior_results_free(results); return 1; } static const luaL_reg Module_methods[] = { {"compile", compile}, {0, 0} }; static void LuaInit(lua_State* L) { int top = lua_gettop(L); // Register lua names luaL_register(L, MODULE_NAME, Module_methods); lua_pop(L, 1); assert(top == lua_gettop(L)); } static dmExtension::Result AppInitializeExtension(dmExtension::AppParams* params) { return dmExtension::RESULT_OK; } static dmExtension::Result InitializeExtension(dmExtension::Params* params) { LuaInit(params->m_L); return dmExtension::RESULT_OK; } static dmExtension::Result AppFinalizeExtension(dmExtension::AppParams* params) { return dmExtension::RESULT_OK; } static dmExtension::Result FinalizeExtension(dmExtension::Params* params) { return dmExtension::RESULT_OK; } DM_DECLARE_EXTENSION(EXTENSION_NAME, LIB_NAME, AppInitializeExtension, AppFinalizeExtension, InitializeExtension, 0, 0, FinalizeExtension)
<reponame>Pharma-Go/back-end<gh_stars>0 import { Body, Controller, Get, Param, Post, Put } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { OAuthActionsScope } from 'src/lib/decorators/oauth.decorator'; import { SanitizePipe } from 'src/lib/pipes/sanitize.pipe'; import { AddressDto } from './address.dto'; import { Address } from './address.entity'; import { AddressService } from './address.service'; @ApiTags('Address') @Controller('addresses') @OAuthActionsScope({ 'Create-Many': ['admin'], 'Create-One': ['admin', 'employee', 'default'], 'Update-One': ['admin', 'employee', 'default'], 'Delete-All': ['admin'], 'Delete-One': ['admin', 'employee', 'default'], 'Read-All': ['admin', 'employee', 'default'], 'Read-One': ['admin', 'employee', 'default'], 'Replace-One': ['admin', 'employee', 'default'], }) export class AddressController { constructor(private addressService: AddressService) {} @Post() public createAddress(@Body(new SanitizePipe(AddressDto)) dto: AddressDto) { return this.addressService.createOne(dto); } @Put(':id') public updateAddress(@Param('id') id: string, @Body() address: Address) { return this.addressService.updateAddress(id, address); } @Get(':cep') public getCep(@Param('cep') cep: string) { return this.addressService.getCep(cep); } }
package at.technikum.wien.mse.swe.exception; public class ConnectorException extends RuntimeException { public ConnectorException(String e) { super(ConnectorException.class + e); } }
import {bindable} from 'aurelia-framework'; import {EventAggregator} from 'aurelia-event-aggregator'; import {Uploaddir} from '../components/messages'; export class Pickerclient { static inject = [EventAggregator]; @bindable mode; constructor(ea) { this.ea=ea; this.href="https://portal.west-life.eu/virtualfolder/filepickercomponent.html"; this.href2="https://portal.west-life.eu/virtualfolder/uploaddirpickercomponent.html"; this.vfurl=""; //receives message from popup window, fills target element with the data received let th2= this this.receiveMessage = e => { console.log("received event"); console.log(e); th2.vfurl=e.data; console.log("publishing event"); th2.ea.publish(new Uploaddir(th2.vfurl)) } console.log("Pickerclient()"); console.log(this.mode) } attached() { //registers itself to receive message from popup window window.addEventListener("message", this.receiveMessage); console.log("Pickerclient attached()"); console.log(this.mode); this.filepicker = (this.mode === "file") } detached() { window.removeEventListener("message", this.receiveMessage) } //opens popup window in defined location, sets the target element id. openfilewindow() { this.popup=window.open(this.href, 'newwindow', 'width=640, height=480'); } opendirwindow() { this.popup=window.open(this.href2, 'newwindow', 'width=640, height=480'); } }
import requests def download_css_file(url, destination): try: response = requests.get(url) if response.status_code == 200: with open(destination, 'wb') as file: file.write(response.content) return "Download successful" else: return "Download failed" except requests.exceptions.RequestException as e: return "Download failed: " + str(e) result = download_css_file("https://unpkg.com/tailwindcss@1.8.10/dist/tailwind.min.css", "static/tailwind.min.css") print(result) # Output: "Download successful"
// 14500. 테트로미노 // 2019.05.22 // 브루트 포스 #include<iostream> using namespace std; int n,m; int map[501][501]; int visit[501][501]; int dx[4]={0,0,1,-1}; int dy[4]={1,-1,0,0}; int ans; const int blocks = 4; // ㅗ 모양은 따로 처리 void go2(int x, int y) { int min = 1001; int sum = map[x][y]; int cnt = 0; for(int i=0;i<4;i++) { int xx = x+dx[i]; int yy = y+dy[i]; if(xx<0 || yy<0 || xx>=n || yy>=m) { continue; } min = min>map[xx][yy]?map[xx][yy]:min; sum += map[xx][yy]; cnt++; } if(cnt==4) { sum-=min; } if(sum>ans) { ans=sum; } } // ㅗ 모양을 제외한 나머지 재귀로 구함. void go(int x, int y, int value, int cnt) { if(cnt==blocks) { if(value>ans) { ans=value; } return; } for(int i=0;i<4;i++) { int xx = x+dx[i]; int yy = y+dy[i]; if(xx<0 || yy<0 || xx>=n || yy>=m) { continue; } if(!visit[xx][yy]) { visit[xx][yy]=1; go(xx,yy,value+map[xx][yy],cnt+1); visit[xx][yy]=0; } } } int main() { cin>>n>>m; for(int i=0;i<n;i++) { for(int j=0;j<m;j++) { cin>>map[i][j]; } } for(int i=0;i<n;i++) { for(int j=0;j<m;j++) { go(i,j,0,0); go2(i,j); } } cout<<ans<<endl; return 0; }
import * as core from '@actions/core' import axios, { AxiosError, AxiosResponse } from 'axios' import { writeFileSync } from 'fs' import * as artifact from '@actions/artifact' export interface Vulnerability { Owner: string, ProjectKey: string, ItemKey: string, CheckerKey: string, VulnerabilityName: string, Severity: string, ticketUrls: string, URL: string, SourceName: string, SourceType: string, CodeLocation: string, StackTrace: string, VerificationTag: string, DetectionCount: string, FirstDetectionTime: string, LastDetectionTime: string, Status: string, OWASP2013: string, "PCI-DSS": string, "CWE-SANS": string, OWASP2017: string, GDPR: string, CAPEC: string, LastDetectionURL: string, SeekerServerLink: string, CustomTags: string, LatestVersion: string } export function getInputOrEnvironmentVariable( inputName: string, envVar: string, required = true ): string { const result = core.getInput(inputName) || process.env[envVar] || "" if (required && !result) { core.setFailed(`You must provide either the input parameter ${inputName} or environment variable ${envVar}`) } return result } export function getInputOrEnvironmentVariableBoolean( inputName: string, envVar: string ): boolean { const value = core.getInput(inputName) || process.env[envVar] || "" return value.toUpperCase() === 'TRUE' } export function handleAxiosError(error: AxiosError): void { if (error.response) { core.error(`Seeker Server responded with error code: ${error.response.status}`) core.error(`Error message: ${error.response.data.message}`) } else { core.error("No response from Seeker Server") core.error(error) } } interface Status { projectStatus: { compliant: boolean } } export interface getComplianceStatusParameters { seekerServerURL: string, seekerProjectKey: string, seekerAPIToken: string, failBuildIfNotInCompliance: boolean } export async function checkComplianceStatus({ seekerServerURL, seekerProjectKey, seekerAPIToken, failBuildIfNotInCompliance }: getComplianceStatusParameters): Promise<boolean> { const url = `${seekerServerURL}/rest/api/latest/projects/${seekerProjectKey}/status` let res: AxiosResponse<Status> try { res = await axios.get(url, { headers: { Authorization: seekerAPIToken } }) } catch(error) { if (error.response) { core.error(`Seeker Server responded with error code: ${error.response.status}`) core.error(`Error message: ${error.response.data.message}`) } else { core.error("No response from Seeker Server") core.error(error) } return false } if (failBuildIfNotInCompliance && res.data.projectStatus.compliant === false) { const message = `❌ Seeker Project ${seekerProjectKey} is not in compliance. Please see Compliance Report for more details.` if (failBuildIfNotInCompliance) { core.setFailed(message) } else { core.warning(message) } } else { core.info(`✔️ Seeker Project ${seekerProjectKey} is in compliance.`) } return res.data.projectStatus.compliant } export interface generateSeekerComplianceReportPDFParameters { seekerServerURL: string, seekerProjectKey: string, seekerAPIToken: string } export async function generateSeekerComplianceReportPDF({ seekerServerURL, seekerProjectKey, seekerAPIToken, }: generateSeekerComplianceReportPDFParameters): Promise<void> { let res: AxiosResponse const url = `${seekerServerURL}/rest/api/latest/reports/compliances/export?projectKeys=${seekerProjectKey}` try { res = await axios.get(url, { responseType: 'arraybuffer', headers: { Authorization: seekerAPIToken, Accept: 'application/pdf' } }) } catch(error) { if (error.response) { core.error(`Seeker Server responded with error code: ${error.response.status}`) core.error(`Error message: ${error.response.data.message}`) } else { core.error("No response from Seeker Server") core.error(error) } return } writeFileSync('seeker-compliance-report.pdf', res.data) } export interface getSeekerVulnerabilitiesParameters { seekerServerURL: string, seekerProjectKey: string, seekerAPIToken: string, seekerProjectVersion?: string onlySeekerVerified?: boolean, minSeverity?: string, statuses?: string } export async function getSeekerVulnerabilities({ seekerServerURL, seekerProjectKey, seekerProjectVersion, seekerAPIToken, onlySeekerVerified, minSeverity, statuses }: getSeekerVulnerabilitiesParameters): Promise<Vulnerability[]> { // Every request to the Vulnerabilities API needs the Seeker Server URL, the Project key, and the API token let url = `${seekerServerURL}/rest/api/latest/vulnerabilities?format=JSON&language=en&projectKeys=${seekerProjectKey}&includeHttpHeaders=false&includeHttpParams=false&includeDescription=false&includeRemediation=false&includeSummary=false&includeVerificationProof=false&includeTriageEvents=false&includeComments=false` // Only add these filters to the URL if they are actually specified if (onlySeekerVerified === true) { url += '&onlySeekerVerified=true' } if (minSeverity) { url += `&minSeverity=${minSeverity}` } if (statuses) { url += `&statuses=${statuses}` } if (seekerProjectVersion) { url += `&projectVersions=${seekerProjectVersion}` } let res: AxiosResponse<Vulnerability[]> try { res = await axios.get(url, { headers: { Authorization: seekerAPIToken } }) } catch(error) { handleAxiosError(error as AxiosError) return [] } return res.data } export async function uploadSeekerComplianceReport(): Promise<void> { core.info('⬆️ Uploading the Seeker Compliance Report PDF as a build artefact') const artifactClient = artifact.create() const artifactName = 'seeker-compliance-report' const files = [ 'seeker-compliance-report.pdf' ] const rootDirectory = process.cwd() const options = { continueOnError: true } await artifactClient.uploadArtifact(artifactName, files, rootDirectory, options) }
#--------------------------------------------------------# ###-------- Create the Application Load Balancer -----## ##------------------------------------------------------# if [ -z $loadbalancerArn ]; then res=$(aws elbv2 create-load-balancer --name $alb \ --scheme internet-facing \ --subnets $public_subnet1 $public_subnet2 \ --security-groups $sg --region $region --profile ${profile_name}) export loadbalancerArn=$(echo $res | jq -r '.LoadBalancers[0].LoadBalancerArn') fi if [ -z $targetGroupArn ]; then res=$(aws elbv2 create-target-group \ --name ecs-${root_name}-https-target \ --protocol HTTPS \ --port 443 \ --health-check-protocol HTTP \ --health-check-port 80 \ --health-check-timeout-seconds 5 \ --health-check-interval-seconds 60 \ --health-check-path / \ --target-type instance \ --vpc-id $vpcId \ --region $region --profile ${profile_name}) export targetGroupArn=$(echo $res | jq -r '.TargetGroups[0].TargetGroupArn') fi echo "--------------ALB setup finished-----------" echo "loadbalancerArn=$loadbalancerArn" echo "targetGroupArn=$targetGroupArn" echo "-----------------------------------------------------" aws elbv2 create-listener --load-balancer-arn $loadbalancerArn \ --protocol HTTPS --port 443 \ --certificates CertificateArn=$certificateArn \ --default-actions Type=forward,TargetGroupArn=$targetGroupArn \ --region $region --profile ${profile_name}
import java.io.File; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.Scanner; /* Class for inserting unique publisher information for the first 500 entries in book_metadata.csv into the Publisher table. */ public class InsertPublishers { static Connection con = null; static Scanner reader = null; static { try { con = DriverManager.getConnection("jdbc:mysql://localhost:3306/LibraryDatabase?serverTimezone=UTC", dbInfo.getUsername(), dbInfo.getPassword()); System.out.println("Connection successful!"); } catch (Exception e) { System.out.println(e.getMessage()); } } public static void main(String[] args) throws SQLException { /* Record creation*/ //Insert publishing house and id File myObj = new File("lib/publishers.txt"); String query = "INSERT INTO Publisher VALUES (?, ?)"; try { reader = new Scanner(myObj); PreparedStatement preparedStmt = con.prepareStatement(query); while (reader.hasNextLine()) { String data = reader.nextLine(); preparedStmt.setInt(1, 0); preparedStmt.setString(2, data); preparedStmt.execute(); } } catch (Exception e) { System.out.println("An error occurred."); e.printStackTrace(); } finally { reader.close(); con.close(); if (con.isClosed()) { System.out.println("Connection is closed!"); } System.out.println("--------------Insertions complete--------------"); } } }
#!/bin/bash # remediation = none yum install -y jq kube_apipath="/kubernetes-api-resources" # Create infra file for CPE to pass mkdir -p "$kube_apipath/apis/apps/v1/namespaces/openshift-ingress/deployments" deployment_apipath="/apis/apps/v1/namespaces/openshift-ingress/deployments/router-default" cat <<EOF > "$kube_apipath/apis/apps/v1/namespaces/openshift-ingress/deployments/router-default" { "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "annotations": { "deployment.kubernetes.io/revision": "1" }, "creationTimestamp": "2021-10-14T03:50:03Z", "generation": 1, "labels": { "ingresscontroller.operator.openshift.io/owning-ingresscontroller": "default" }, "name": "router-default", "namespace": "openshift-ingress", "resourceVersion": "1824323", "uid": "2c62de4d-5352-4c48-a582-981352e8e6d2" }, "spec": { "minReadySeconds": 30, "progressDeadlineSeconds": 600, "replicas": 1, "revisionHistoryLimit": 10, "selector": { "matchLabels": { "ingresscontroller.operator.openshift.io/deployment-ingresscontroller": "default" } }, "strategy": { "rollingUpdate": { "maxSurge": 0, "maxUnavailable": "25%" }, "type": "RollingUpdate" }, "template": { "metadata": { "annotations": { "target.workload.openshift.io/management": "{\"effect\": \"PreferredDuringScheduling\"}", "unsupported.do-not-use.openshift.io/override-liveness-grace-period-seconds": "10" }, "creationTimestamp": null, "labels": { "ingresscontroller.operator.openshift.io/deployment-ingresscontroller": "default", "ingresscontroller.operator.openshift.io/hash": "5c7fb4f96" } }, "spec": { "containers": [ { "env": [ { "name": "DEFAULT_CERTIFICATE_DIR", "value": "/etc/pki/tls/private" }, { "name": "DEFAULT_DESTINATION_CA_PATH", "value": "/var/run/configmaps/service-ca/service-ca.crt" }, { "name": "RELOAD_INTERVAL", "value": "5s" }, { "name": "ROUTER_ALLOW_WILDCARD_ROUTES", "value": "false" }, { "name": "ROUTER_CANONICAL_HOSTNAME", "value": "router-default.apps-crc.testing" }, { "name": "ROUTER_CIPHERS", "value": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384" }, { "name": "ROUTER_CIPHERSUITES", "value": "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256" }, { "name": "ROUTER_DISABLE_HTTP2", "value": "true" }, { "name": "ROUTER_DISABLE_NAMESPACE_OWNERSHIP_CHECK", "value": "false" }, { "name": "ROUTER_LOAD_BALANCE_ALGORITHM", "value": "random" }, { "name": "ROUTER_METRICS_TLS_CERT_FILE", "value": "/etc/pki/tls/metrics-certs/tls.crt" }, { "name": "ROUTER_METRICS_TLS_KEY_FILE", "value": "/etc/pki/tls/metrics-certs/tls.key" }, { "name": "ROUTER_METRICS_TYPE", "value": "haproxy" }, { "name": "ROUTER_SERVICE_NAME", "value": "default" }, { "name": "ROUTER_SERVICE_NAMESPACE", "value": "openshift-ingress" }, { "name": "ROUTER_SET_FORWARDED_HEADERS", "value": "append" }, { "name": "ROUTER_TCP_BALANCE_SCHEME", "value": "source" }, { "name": "ROUTER_THREADS", "value": "4" }, { "name": "SSL_MIN_VERSION", "value": "TLSv1.2" }, { "name": "STATS_PASSWORD_FILE", "value": "/var/lib/haproxy/conf/metrics-auth/statsPassword" }, { "name": "STATS_PORT", "value": "1936" }, { "name": "STATS_USERNAME_FILE", "value": "/var/lib/haproxy/conf/metrics-auth/statsUsername" } ], "image": "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:31f370b687d8adf5b9d2b6f8aebbf7bdef8bc8c7adb1012c03ae3bbea1efdc36", "imagePullPolicy": "IfNotPresent", "livenessProbe": { "failureThreshold": 3, "httpGet": { "host": "localhost", "path": "/healthz", "port": 1936, "scheme": "HTTP" }, "periodSeconds": 10, "successThreshold": 1, "timeoutSeconds": 1 }, "name": "router", "ports": [ { "containerPort": 80, "hostPort": 80, "name": "http", "protocol": "TCP" }, { "containerPort": 443, "hostPort": 443, "name": "https", "protocol": "TCP" }, { "containerPort": 1936, "hostPort": 1936, "name": "metrics", "protocol": "TCP" } ], "readinessProbe": { "failureThreshold": 3, "httpGet": { "host": "localhost", "path": "/healthz/ready", "port": 1936, "scheme": "HTTP" }, "periodSeconds": 10, "successThreshold": 1, "timeoutSeconds": 1 }, "resources": { "requests": { "cpu": "100m", "memory": "256Mi" } }, "startupProbe": { "failureThreshold": 120, "httpGet": { "host": "localhost", "path": "/healthz/ready", "port": 1936, "scheme": "HTTP" }, "periodSeconds": 1, "successThreshold": 1, "timeoutSeconds": 1 }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "FallbackToLogsOnError", "volumeMounts": [ { "mountPath": "/etc/pki/tls/private", "name": "default-certificate", "readOnly": true }, { "mountPath": "/var/run/configmaps/service-ca", "name": "service-ca-bundle", "readOnly": true }, { "mountPath": "/var/lib/haproxy/conf/metrics-auth", "name": "stats-auth", "readOnly": true }, { "mountPath": "/etc/pki/tls/metrics-certs", "name": "metrics-certs", "readOnly": true } ] } ], "dnsPolicy": "ClusterFirstWithHostNet", "hostNetwork": true, "nodeSelector": { "kubernetes.io/os": "linux", "node-role.kubernetes.io/worker": "" }, "priorityClassName": "system-cluster-critical", "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": {}, "serviceAccount": "router", "serviceAccountName": "router", "terminationGracePeriodSeconds": 3600, "topologySpreadConstraints": [ { "labelSelector": { "matchExpressions": [ { "key": "ingresscontroller.operator.openshift.io/hash", "operator": "In", "values": [ "5c7fb4f96" ] } ] }, "maxSkew": 1, "topologyKey": "topology.kubernetes.io/zone", "whenUnsatisfiable": "ScheduleAnyway" } ], "volumes": [ { "name": "default-certificate", "secret": { "defaultMode": 420, "secretName": "router-certs-default" } }, { "configMap": { "defaultMode": 420, "items": [ { "key": "service-ca.crt", "path": "service-ca.crt" } ], "name": "service-ca-bundle", "optional": false }, "name": "service-ca-bundle" }, { "name": "stats-auth", "secret": { "defaultMode": 420, "secretName": "router-stats-default" } }, { "name": "metrics-certs", "secret": { "defaultMode": 420, "secretName": "router-metrics-certs-default" } } ] } } }, "status": { "availableReplicas": 1, "conditions": [ { "lastTransitionTime": "2021-10-14T03:50:09Z", "lastUpdateTime": "2021-10-14T03:50:09Z", "message": "Deployment has minimum availability.", "reason": "MinimumReplicasAvailable", "status": "True", "type": "Available" }, { "lastTransitionTime": "2021-10-14T03:50:09Z", "lastUpdateTime": "2021-10-14T03:53:12Z", "message": "ReplicaSet \"router-default-7c99985dcd\" has successfully progressed.", "reason": "NewReplicaSetAvailable", "status": "True", "type": "Progressing" } ], "observedGeneration": 1, "readyReplicas": 1, "replicas": 1, "updatedReplicas": 1 } } EOF jq_filter='.spec.template.spec.containers[0].env[] | select(.name == "SSL_MIN_VERSION")' # Get filtered path. This will actually be read by the scan filteredpath="$kube_apipath$deployment_apipath#$(echo -n "$deployment_apipath$jq_filter" | sha256sum | awk '{print $1}')" # populate filtered path with jq-filtered result jq "$jq_filter" "$kube_apipath$deployment_apipath" > "$filteredpath"
<reponame>guilhermedacsilva/tsiracing package br.utfpr.gp.tsi.racing; public class Debug { public static final boolean ON = false; public static void print(String msg) { if (ON) { System.out.println(msg); } } }
<gh_stars>1-10 package api import ( "cf" "cf/models" "cf/net" ) type FakeBuildpackRepository struct { Buildpacks []models.Buildpack FindByNameNotFound bool FindByNameName string FindByNameBuildpack models.Buildpack FindByNameApiResponse net.ApiResponse CreateBuildpackExists bool CreateBuildpack models.Buildpack CreateApiResponse net.ApiResponse DeleteBuildpackGuid string DeleteApiResponse net.ApiResponse UpdateBuildpack models.Buildpack } func (repo *FakeBuildpackRepository) ListBuildpacks(cb func(models.Buildpack) bool) net.ApiResponse { for _, b := range repo.Buildpacks { cb(b) } return net.NewApiResponseWithStatusCode(200) } func (repo *FakeBuildpackRepository) FindByName(name string) (buildpack models.Buildpack, apiResponse net.ApiResponse) { repo.FindByNameName = name buildpack = repo.FindByNameBuildpack if repo.FindByNameNotFound { apiResponse = net.NewNotFoundApiResponse("Buildpack %s not found", name) } return } func (repo *FakeBuildpackRepository) Create(name string, position *int, enabled *bool, locked *bool) (createdBuildpack models.Buildpack, apiResponse net.ApiResponse) { if repo.CreateBuildpackExists { return repo.CreateBuildpack, net.NewApiResponse("Buildpack already exists", cf.BUILDPACK_EXISTS, 400) } repo.CreateBuildpack = models.Buildpack{Name: name, Position: position, Enabled: enabled, Locked: locked} return repo.CreateBuildpack, repo.CreateApiResponse } func (repo *FakeBuildpackRepository) Delete(buildpackGuid string) (apiResponse net.ApiResponse) { repo.DeleteBuildpackGuid = buildpackGuid apiResponse = repo.DeleteApiResponse return } func (repo *FakeBuildpackRepository) Update(buildpack models.Buildpack) (updatedBuildpack models.Buildpack, apiResponse net.ApiResponse) { repo.UpdateBuildpack = buildpack return }
import React from 'react'; const heading = { fontSize: '72px', color: 'blue', } export default function Inline(){ return( <div> <h1 className="error">Error</h1> <h1 style={heading}>Inline</h1> </div> ) }
<reponame>Hedlen/faceframe import torch.utils.data as data from PIL import Image, ImageFile import os import random ImageFile.LOAD_TRUNCATED_IAMGES = True class RandomCenterCropAugment(object): """docstring for RandomCenterCropAugment""" def __init__(self, scale_arg=0.02, trans_arg=0.02, crop_size=110, final_size=128, crop_center_y_offset=25): self.scale_arg = scale_arg self.trans_arg = trans_arg self.crop_size = crop_size self.final_size = final_size self.crop_center_y_offset = crop_center_y_offset def __call__(self, image): scale_factor = (random.randint(1000,1000)*1.0/500.0 - 1)*self.scale_arg; centerx_factor = (random.randint(1000,1000)*1.0/500.0 - 1)*self.trans_arg; centery_factor = (random.randint(1000,1000)*1.0/500.0 - 1)*self.trans_arg; width,height=image.size crop_size_aug = self.crop_size*(1+scale_factor); #110 center_x=width/2.*(1+centerx_factor) center_y=(height/2. + self.crop_center_y_offset)*(1+centery_factor) if(center_x < crop_size_aug/2): crop_size_aug = center_x*2-0.5 if(center_y < crop_size_aug/2): crop_size_aug = center_y*2-0.5 if(center_x + crop_size_aug/2 >= width): crop_size_aug = (width-center_x)*2 - 0.5 if(center_y + crop_size_aug/2 >= height): crop_size_aug = (height-center_y)*2 - 0.5 side=crop_size_aug/2 rect = (int(center_x-side), int(center_y-side), int(center_x+side), int(center_y+side)) cropped = image.crop(rect) cropped = cropped.resize((self.final_size,self.final_size)) return cropped def PIL_loader(path): try: img = Image.open(path).convert('RGB') except IOError: print('Cannot load image ' + path) else: return img def default_reader(fileList): imgList = [] with open(fileList, 'r') as file: for line in file.readlines(): imgPath, label = line.strip().split(' ') imgList.append((imgPath, int(label))) return imgList def default_reader_2(filedict): imgList = [] for root,listfile in filedict.items(): with open(listfile,'r') as f: lines = f.readlines() for line in lines: imgPath, label = line.strip().split(' ') #imgPath, label = line.strip().split(' ') imgList.append((root+'/'+imgPath, int(label))) return imgList class ImageList(data.Dataset): ''' Args: root (string): Root directory path. fileList (string): Image list file path transform (callable, optional): A function/transform that takes in an PIL image and returns a transformed version. E.g, ``transforms.RandomCrop`` ''' def __init__(self,filedict, transform=None, list_reader=default_reader_2, loader=PIL_loader): #self.root = root self.imgList = list_reader(filedict) self.transform = transform self.loader = loader self.crop = RandomCenterCropAugment() def __getitem__(self, index): imgPath, target = self.imgList[index] #img = self.loader(os.path.join(self.root, imgPath)) #img = self.crop(img) img = self.loader(imgPath) if self.transform is not None: img = self.transform(img) return img, target def __len__(self): return len(self.imgList)
<?hh // strict namespace Waffle\Lib; class Shape { public static function create<Tk as string, Tv>(KeyedContainer<Tk, Tv> $container = dict[]): shape(...) { $shape = shape(); foreach ($container as $key => $value) { /* HH_IGNORE_ERROR[4051] */ $shape[$key] = $value; } return $shape; } }
<reponame>youssef-sourour/web-poker<filename>backend/exchange/src/main/java/ar/com/tandilweb/exchange/serverRecording/SuccessDeposit.java package ar.com.tandilweb.exchange.serverRecording; import ar.com.tandilweb.exchange.ServerRecordingSchema; public class SuccessDeposit extends ServerRecordingSchema { public long userID; public SuccessDeposit() { super("successDeposit"); } }
function ascii_to_str(str) { let result = ""; for (let char of str) { result += char.charCodeAt(0) + " "; } return result.trim(); }
#!/bin/bash # this bash script takes avi files on the location from 'basedir' and extracts them into tiffs in subdirectories in 'outputdir' clear; basedir=${1} outputdir=${2} echo Input directory: $basedir; ordir=$(pwd); echo Working dir: $ordir; for thedir in $( find ${basedir} -type d -name 'DDMmovies*'); do detailsFile=${thedir}/Sequence.log cd ${thedir} for thefile in $( find -name 'Pos*'); do numbers=$(echo $thefile | egrep -o [0-9]+) p=$(echo ${numbers} | cut -d " " -f1); lookup=$(echo ${thefile} | cut -d "/" -f2); line=$(cat ${detailsFile} | grep ${lookup}) time=$(echo ${line} | cut -d " " -f2); time=$(echo $time | tr : -); out=${outputdir}Pos_${p}_time_${time}; mkdir -p ${out} st=$(ls -A ${out}/image0001.tif) #echo ${st} if [ "${st}" != "${out}/image0001.tif" ]; then echo '------------------------------------------------------------------------------------------------' echo File: ${thedir}/${lookup}, Pos: $p, Time: $time Destination: ${outputdir}Pos_${p}_time_${time} echo '------------------------------------------------------------------------------------------------' echo 'Making tif files..' echo '------------------------------------------------------------------------------------------------' echo processing file: ${thedir}/${thefile} avconv -i ${thefile} -q:v 4 ${out}/image%04d.tif; else echo skipping ${thedir}/${lookup} fi done done cd $ordir;
function calculateSum(arr) { let result = 0; for (let i = 0; i < arr.length; i++) { if (arr[i] > 0) { result += arr[i]; } } return result; }
from django.db import models from django.contrib.auth.models import User class Article(models.Model): title = models.CharField(max_length=200) user = models.ForeignKey(User)
<filename>externals/cmsis/CMSIS_5/docs/Core_A/html/search/enums_1.js var searchData= [ ['mmu_5faccess_5ftype',['mmu_access_Type',['../group__MMU__defs__gr.html#ga2ee598252f996e4f96640b096291d280',1,'core_ca.h']]], ['mmu_5fcacheability_5ftype',['mmu_cacheability_Type',['../group__MMU__defs__gr.html#ga11c86b7b193efb2c59b6a2179a02f584',1,'core_ca.h']]], ['mmu_5fecc_5fcheck_5ftype',['mmu_ecc_check_Type',['../group__MMU__defs__gr.html#ga06d94c0eaa22d713636acaff81485409',1,'core_ca.h']]], ['mmu_5fexecute_5ftype',['mmu_execute_Type',['../group__MMU__defs__gr.html#ga2fe1157deda82e66b9a1b19772309b63',1,'core_ca.h']]], ['mmu_5fglobal_5ftype',['mmu_global_Type',['../group__MMU__defs__gr.html#ga04160605fbe20914c8ef020430684a30',1,'core_ca.h']]], ['mmu_5fmemory_5ftype',['mmu_memory_Type',['../group__MMU__defs__gr.html#ga83ac8de9263f89879079da521e86d5f2',1,'core_ca.h']]], ['mmu_5fregion_5fsize_5ftype',['mmu_region_size_Type',['../group__MMU__defs__gr.html#gab184b824a6d7cb728bd46c6abcd0c21a',1,'core_ca.h']]], ['mmu_5fsecure_5ftype',['mmu_secure_Type',['../group__MMU__defs__gr.html#gac3d277641df9fb3bb3b555e2e79dd639',1,'core_ca.h']]], ['mmu_5fshared_5ftype',['mmu_shared_Type',['../group__MMU__defs__gr.html#gab884a11fa8d094573ab77fb1c0f8d8a7',1,'core_ca.h']]] ];
<reponame>worldwindearth/explorer<filename>root/js/model/globe/layers/EnhancedWmsLayer.js /* * Copyright (c) 2017 <NAME>. * The MIT License * http://www.opensource.org/licenses/mit-license */ /* global define, WorldWind */ /** * The EnhancedWmsLayer provides vendor parameters to the GeoServer WMS GetMap * requests. * * @exports EnhancedWmsLayer * @author <NAME> */ define(['WorldWindFixes', 'worldwind'], function (WorldWindFixes) { "use strict"; var EnhancedWmsLayer = function (config, timeString) { WorldWind.WmsLayer.call(this, config, timeString); // Extract the bbox out of the WMS layer configuration this.bbox = config.sector; // Override the default WmsLayer 36x36 level set with one that // matches the GeoServer EPSG:4326 Gridset this.levels = new WorldWind.LevelSet(WorldWind.Sector.FULL_SPHERE, config.levelZeroDelta || new WorldWind.Location(180, 180), config.numLevels || 22, config.size || 256, config.size || 256); // "tiled=true" is a hint for the GeoServer WMS to use the GeoWebCache this.vendorParms = '&tiled=true&tilesorigin=-180,-90'; // The WW tileCache is too small to accomodate large screen // full of tiles at an oblique view from the surface. // Increase the size to prevent trashing of the tileCache. this.tileCache = new WorldWind.MemoryCache( WorldWindFixes.TILE_CACHE_CAPACITY, WorldWindFixes.TILE_CACHE_LOW_WATER); }; // Inherit the WmsLayer methods EnhancedWmsLayer.prototype = Object.create(WorldWind.WmsLayer.prototype); /** * Returns the URL string for the resource. Overrides the TiledImageLayer * resourceUrlForTile method by appending the vendor paramerters to the URL. * @param {ImageTile} tile The tile whose image is returned * @param {String} imageFormat The mime type of the image format desired. * @returns {String} The URL string, or null if the string can not be formed. */ EnhancedWmsLayer.prototype.resourceUrlForTile = function (tile, imageFormat) { var url = WorldWind.TiledImageLayer.prototype.resourceUrlForTile.call(this, tile, imageFormat); if (url) { url = url + this.vendorParms; } return url; }; return EnhancedWmsLayer; } );
#!/usr/bin/env bash # Setup env vars and folders for the ctl script # This helps keep the ctl script as readable # as possible # Usage options: # source /var/vcap/jobs/foobar/helpers/ctl_setup.sh JOB_NAME OUTPUT_LABEL # source /var/vcap/jobs/foobar/helpers/ctl_setup.sh foobar # source /var/vcap/jobs/foobar/helpers/ctl_setup.sh foobar foobar # source /var/vcap/jobs/foobar/helpers/ctl_setup.sh foobar nginx #set -e # exit immediately if a simple command exits with a non-zero status set -u # report the usage of uninitialized variables JOB_NAME=$1 output_label=${2:-${JOB_NAME}} export JOB_DIR=/var/vcap/jobs/$JOB_NAME chmod 755 $JOB_DIR # to access file via symlink # Load some bosh deployment properties into env vars # Try to put all ERb into data/properties.sh.erb # incl $NAME, $JOB_INDEX, $WEBAPP_DIR source $JOB_DIR/data/properties.sh source $JOB_DIR/helpers/ctl_utils.sh redirect_output ${output_label} export HOME=${HOME:-/home/vcap} # Setup log, run and tmp folders export RUN_DIR=/var/vcap/sys/run/$JOB_NAME export LOG_DIR=/var/vcap/sys/log/$JOB_NAME export TMP_DIR=/var/vcap/sys/tmp/$JOB_NAME export STORE_DIR=/var/vcap/store/$JOB_NAME for dir in $RUN_DIR $LOG_DIR $TMP_DIR $STORE_DIR do mkdir -p ${dir} chown vcap:vcap ${dir} chmod 775 ${dir} done export TMPDIR=$TMP_DIR export C_INCLUDE_PATH=/var/vcap/packages/mysqlclient/include/mysql:/var/vcap/packages/sqlite/include:/var/vcap/packages/libpq/include export LIBRARY_PATH=/var/vcap/packages/mysqlclient/lib/mysql:/var/vcap/packages/sqlite/lib:/var/vcap/packages/libpq/lib # consistent place for vendoring python libraries within package if [[ -d ${WEBAPP_DIR:-/xxxx} ]] then export PYTHONPATH=$WEBAPP_DIR/vendor/lib/python fi if [[ -d /var/vcap/packages/java7 ]] then export JAVA_HOME="/var/vcap/packages/java7" fi PIDFILE=$RUN_DIR/$output_label.pid echo '$PATH' $PATH