content
stringlengths
2
6.21k
label
stringclasses
16 values
MqFfAMLhW1U3a3Jf8qg8GgTWMNSRJkwsotP0EXgz8uSV//4sUe0vSUDFswRQ84gdqcFTiYFkesANx5AMfIFoNtmugNAfm4gMyhGIrA4FoIIFiQIHg8Hte0TfcQAMqZGwfMSQb5StjxgE8wzKGsgqqVQnYgDLp8Dhl8AiF9IJwEIN8kB8O5XzDsw9EZ3f8witfUmKMUEk1gFdIMF2DQAEh8HVHWEFgkRUJwIROIS+7wwszEwL0gGfy4woLQ1GT5xRkUCsf6DDj8hIABw4A+AdmSGMO8yXIpoYj1S5f4WLWNASe8B4yVFhNkUeH5BURFIi...
CSS
uint64 dialect.Driver } func (q *queryCount) reset() { atomic.StoreUint64(&q.n, 0) } func (q *queryCount) value() uint64 { return atomic.LoadUint64(&q.n) } func (q *queryCount) Query(ctx context.Context, query string, args, v interface{}) error { atomic.AddUint64(&q.n, 1) return q.Driver.Query(ctx, query, ...
Go
, &req), None => err.into(), } } #[cfg(test)] mod tests { use actix_web::test::{block_on, TestRequest}; use actix_web::FromRequest; use serde::Deserialize; use super::Query; #[derive(Deserialize, Debug, PartialEq)] struct Info { hello: String, world: NestedInfo, ...
Rust
/* Write the function itob(n,s,b) that converts the integer n into a base b character representation in the string s. In particular, itob(n,s,16) fromats n as a hexadecimal integer in s. */ #include <stdio.h> #include <string.h> #define MAXLEN 100 #define ANSI_COLOR_YELLOW "\x1b[33m" #define ANSI_COLOR_RED "\x1b[31m"...
C
("1", "2", "3"), listOf("4", "5", "6")) assertEquals( "<html><body><table>" + "<tr><td>1</td><td>2</td><td>3</td></tr>" + "<tr><td>4</td><td>5</td><td>6</td></tr>" + "</table></body></html>", data.convertToHtmlTableUsingKotlinxHtml().replac...
Kotlin
GetUpperBound(1) + 1; MapTileLayer layer2 = GetLayer(layer.Name); try { for (int i = 0; i < num; i++) { for (int j = 0; j < num2; j++) { System.Drawing.Image image = (!Embedded(layer2)) ? GetSnapshotTile(layer2, tileUrls[i, j]) : GetEmbeddedTile(layer2, tileUrls[i, j]); if (image ...
C#
throw new InvalidDataException($"Encountered an unknown key in the dumper transcript mapper object: {node.Key}"); } switch (node.Key) { case ImportKeys.CodingDnaCodingEnd: case ImportKeys.CodingDnaCodingStart: ...
C#
} protected override void LoadComplete() { base.LoadComplete(); metadata.BindValueChanged(_ => recreateDrawables(), true); } private void recreateDrawables() { yearsFlow.Clear(); if (metadata.Value == null) { Hide(); return; ...
C#
// Signals whether a recording is paused (true) or not (false). private var mIsPaused = false private var mRecorder: MediaRecorder? = null // Amplitude private var mMaxAmplitude = -160.0 // Recording config private var mConfig: RecordConfig? = null @Throws(Exception::class) override fun start(config...
Kotlin
if (target) { target.tweenjs_count--; } var i = tweens.length; while (i--) { if (tweens[i] == tween) { tweens.splice(i, 1); break; } } } tween._registered = value; }; // events: /** * Called whenever the tween's position changes. * @event change * @since 0.4.0 **/ // pu...
JavaScript
mport * as vscode from 'vscode'; // 一旦你的插件激活,vscode会立刻调用下述方法 export function activate(context: vscode.ExtensionContext) { // 用console输出诊断信息(console.log)和错误(console.error) // 下面的代码只会在你的插件激活时执行一次 console.log('Congratulations, your extension "my-first-extension" is now active!'); // 入口命令已经在package.json文...
Markdown
e)(length + 1) / 2) : 0; cgList.AddRounded(cg); var signal = GetCompareSignal(cg, prevCg); signalsList.Add(signal); } stockData.OutputValues = new Dictionary<string, List<double>> { { "Ecog", cgList } }; stockData.SignalsList = si...
C#
ctionSoundSequenceCoolDownTime = 20, audioDetection1= { audio = "TowerSearchLight_Detection1", delay = 0, }, audioDetection2= { audio = "TowerSearchLight_Detection2", delay = 1, }, audioDetection3= { audio = "TowerSearchLight_Detection3", delay = 1.5, },...
Lua
count: DamlInt64, //! # } //! let ping = Ping::new("Alice", "Bob", 0); //! ``` //! //! To create an instance of the `Ping` template on a Daml ledger a [`DamlCreateCommand`] specific to our `ping` data //! needs to be constructed. This can be done as follows: //! //! ```no_run //! # use daml::prelude::*; //! # #[DamlT...
Rust
(params.date);\n }\n if (params.millis === true) {\n this.withMillis = true;\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERGeneralizedTime, KJUR.asn1.DERAbstractTime);\n// ********************************************************************\n/**\n * c...
JavaScript
portChanged(); var view = vp.getGraphicsView(); if (RSettings.getAutoZoomOnLoad() || i>0) { view.autoZoom(-1, true); } else { // restore first viewport (zoom / pan): var di = vp.getDocumentInterface(); var doc = di.getDocument(); ...
JavaScript
earning to Estimate 3D Hand Pose from Single RGB Images}, institution={arXiv:1705.01389}, year={2017}, note="https://arxiv.org/abs/1705.01389", url="https://lmb.informatik.uni-freiburg.de/projects/hand3d/" } ``` </details> Results on RHD test set | Arch |...
Markdown
mport androidx.compose.ui.graphics.painter.BitmapPainter import androidx.compose.ui.graphics.painter.Painter import androidx.compose.ui.graphics.toComposeImageBitmap import com.slapps.cupertino.icons.CupertinoIcons import kotlinx.cinterop.ExperimentalForeignApi import kotlinx.cinterop.addressOf import kotlinx.cinterop....
Kotlin
164266,22.0733177 10.4649998,23.0113722 11.1352115,23.4983095 C11.8054231,23.9852467 12.7434776,23.8366735 13.2304148,23.1664619 C13.7173521,22.4962502 13.5687788,21.5581957 12.8985672,21.0712585 C12.2283556,20.5843212 11.2903011,20.7328945 10.8033639,21.4031061 Z" id="path-1"></path>%0A </defs>%0A <g id="Symbols...
CSS
بِيرُ', 12: 'إِنَّ بَطْشَ رَبِّكَ لَشَدِيدٌ', 13: 'إِنَّهُ هُوَ يُبْدِئُ وَيُعِيدُ', 14: 'وَهُوَ الْغَفُورُ الْوَدُودُ', 15: 'ذُو الْعَرْشِ الْمَجِيدُ', 16: 'فَعَّالٌ لِمَا يُرِيدُ', 17: 'هَلْ أَتَاكَ حَدِيثُ الْجُنُودِ', 18: 'فِرْعَوْنَ وَثَمُودَ', 19: 'بَلِ الَّذِينَ كَفَرُوا فِي تَكْذ...
Dart
import cv2 import time # Create a VideoCapture object cap = cv2.VideoCapture(0) # Check if camera opened successfully if not cap.isOpened(): print("Unable to read camera feed") frame_id = 0 while True: # Capture frame-by-frame ret, frame = cap.read() if ret: # Save the resulting frame ...
Python
.option norvc .altmacro .set NUM_G_REG, 32 .set REG_SIZE, 8 .macro SAVE_XN n, base sd x\n, (\n -1 )*REG_SIZE(\base) .endm .macro LOAD_XN n, base ld x\n , (\n -1 )*REG_SIZE(\base) .endm .macro PUTC n li t0, 0x04140000 li t1, \n sd t1, 0(t0) .endm .macro SAVE_G_REG base SAVE_X...
Assembly
ltercompositetypestmt(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof PostgreSQLParserListener ) ((PostgreSQLParserListener)listener).exitAltercompositetypestmt(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor i...
Java
tion:50% 50%}input[data-task=">"]:checked,li[data-task=">"]>input:checked,li[data-task=">"]>p>input:checked{color:var(--text-faint);transform:rotate(90deg);-webkit-mask-position:50% 100%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-5 w-5' viewBox='0 0 20 20' fill='curren...
CSS
mov r2, #1 bl DisplayMessage2 b _022F67C4 _022F67AC: bl ov29_022F6CAC b _022F67C4 _022F67B4: #ifdef JAPAN ldr r1, _022F7DB4 ; =0x00000B92 add r0, sp, #0 #else add r0, sp, #0 mov r1, #0xe50 #endif mov r2, #1 bl DisplayMessage2 _022F67C4: add sp, sp, #0x10 ldmia sp!, {r4, pc} .align 2, 0 #ifdef JAPAN _022F67...
Assembly
fill: 'freeze' } }; data.element.attr({ 'stroke-dashoffset': -pathLength + 'px' }); data.element.animate(animationDefinition, true); } }); ``` ## Needs to be styled ```css /*...
Markdown
d_content_Context_batch(List<android_content_Context> var1) async { if (false) { return Future.error('all args must have same length!'); } // invoke native method final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.APSService::onCreate__android_content_Con...
Dart
.rc-tooltip-placement-right .rc-tooltip-arrow { top: 50%; } .rc-tooltip-placement-rightTop .rc-tooltip-arrow { top: 15%; margin-top: 0; } .rc-tooltip-placement-rightBottom .rc-tooltip-arrow { bottom: 15%; } .rc-tooltip-placement-left .rc-tooltip-arrow, .rc-tooltip-placement-leftTop .rc-tooltip-arrow, .rc-to...
CSS
(msgType, 100, req.Allocs, req.Evals)) events := WaitForEvents(t, s, 100, 1, 1*time.Second) must.Len(t, 2, events) var allocs []structs.Event var evalEvents []structs.Event for _, e := range events { if e.Topic == structs.TopicEvaluation { evalEvents = append(evalEvents, e) } else if e.Topic == structs.To...
Go
= ''; patronymic: string = ''; post: string = ''; date: string = ''; salary: string = ''; valuta: string = ''; email: string = ''; phone: string = ''; house: string = ''; create(){ if(this.buttonState == false){ this.buttonName = "Добавить"; ...
Typescript
ayerRequest(0x101E), S2CLoginFirstPlayerAnswer(0x101F), C2SLoginAliveClient(0x100F), C2SRequestPlayerList(0x1009), S2CPlayerList(0x1005), S2CGameServerList(0x1010), C2SPlayerNameChangeOld(0x1020), S2CPlayerNameChangeAnswer(0x1021), C2SPlayerNameChange(0x1022), S2CPlayerNameChangeMess...
Java
* interested in the right half. */ public void subdivide(CubicCurve2D left, CubicCurve2D right) { // Use empty slots at end to share single array. double[] d = new double[] { getX1(), getY1(), getCtrlX1(), getCtrlY1(), getCtrlX2(), getCtrlY2(), ge...
Java
} }, vicegun = { { 1.23, 1.21, 0 } }, torpedo = { { 0.001, -0.001, 0 } }, antiaircraft = { { 1.245, 1.238, 0 } } }, smoke = { { 50, { { "smoke", { -0.641, 2.55, 0 } }...
Lua
Wrapper().registerNetworkContext(Network.mainnet); final spendNftBundle = nftWalletService.createSpendBundle( targetPuzzlehash: meera.firstPuzzlehash, nftCoin: nfts.single.toNft(nathan.keychain), keychain: nathan.keychain, ); BaseWalletService().validateSpendBundleSignature(spendNftBundl...
Dart
ortedPaymentTypes = 'ApplePay' | 'Contactless' | 'CardReader' export declare interface PaymentProcessor { type: SupportedPaymentTypes pay(order: PaymentRequest): void } export declare interface PaymentRequest { amount: number paymentType: SupportedPaymentTypes } export declare interface Repository { ...
Typescript
>.hasRight get() = contains(Key.DirectionRight) || contains(Key.D) val Set<Key>.hasDownRight get() = contains(Key.DirectionDownRight) || (contains(Key.DirectionDown) && contains(Key.DirectionRight)) || ((contains(Key.S) && contains(Key.D))) val Set<Key>.hasDown get() = contains(Key.DirectionDown) || contains(Key.S) ...
Kotlin
, cU) attempt = aA.Attempt(aM, teamID, false) require.Error(t, toErr(attempt), "team not rotated after puk rotate so attempt fails") attempt = aA.Attempt(aM, teamID, true) require.NoError(t, toErr(attempt), "rotate-before-attempt option works") t.Logf("check after reset") kbtest.ResetAccount(*cTc, cU) attempt =...
Go
.org 0x0 .set noat .set noreorder .set nomacro .global _start _start: lui $s0, 0xa000 # ans: $16=0xa0000000 ori $s0, $s0, 0x1000 # ans: $16=0xa0001000 lui $2, 0x1234 # ans: $2=0x12340000 ori $2, $2, 0x5678 # ans: $2=0x12345678 sb $2, 0($s0) # ans: [0x1000]=0x00000078 ...
Assembly
0 Accesses do not add or subtract DDC base from the * accessed address. * TGEN0 = 0 Generates a fault when loading a valid capability * from memory where the Block and Page descriptor * LC field is 0b11. */ mov x0, #0xB0...
Assembly
.w3.org/1999/xlink" width="256" height="256" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path fill="currentColor" d="m252.2 132.2-24 24a5.8 5.8 0 01-8.4 0l-24-24a5.9 5.9 0 018.4-8.4l13.8 13.7V128A90 90 0 0052.4 79.2a6 6 0 01-8.3 1.7 5.9 5.9 0 01-1.8-8.2A102 102 0 01230 128v9.5l13.8-13.7a5.9 5.9 0 018.4 8...
Dart
ctx) { IPC::RequestParser rp(ctx); const u8 unk_param1 = rp.Pop<u8>(); const u32 unk_param2 = rp.Pop<u32>(); const u16 unk_param3 = rp.Pop<u16>(); const u16 unk_param4 = rp.Pop<u16>(); IPC::RequestBuilder rb = rp.MakeBuilder(1, 0); rb.Push(ResultSuccess); LOG_WARNING(Service_BOSS, ...
C++
rdedExpr(const Expr *Ex, const Expr *L, const Expr *R, ExplodedNode *Pred, ExplodedNodeSet &Dst) { assert(L && R); StmtNodeBuilder B(Pred, Dst, *currBldrCtx); ProgramStateRef s...
C++
'\u{7a}', // \u{a762} -> z '\u{7a}', // \u{a763} -> z '\u{a765}', // \u{a764} -> ꝥ '\u{a765}', '\u{a767}', // \u{a766} -> ꝧ '\u{a767}', '\u{a769}', // \u{a768} -> ꝩ '\u{a769}', '\u{a76b}', // \u{a76a} -> ꝫ '\u{a76b}', '\u{a76d}', // \u{a76c} -> ꝭ '\u{a76d}', '\u{a76f}', // \u{a76e} -> ꝯ '\u{a76f}', '\u{...
Rust
_value_MAV_COMPONENT[string(text)]; ok { *e = value } else if value, err := strconv.Atoi(string(text)); err == nil { *e = MAV_COMPONENT(value) } else { return fmt.Errorf("invalid label '%s'", text) } return nil } // String implements the fmt.Stringer interface. func (e MAV_COMPONENT) String() string { val, ...
Go
className: "params", begin: "\\(", end: "\\)", excludeBegin: true, excludeEnd: true), Mode(ref: '~contains~9~contains~2') ]), C_NUMBER_MODE, Mode(ref: '~contains~9~contains~2') ]); // GENERATED CODE - D...
Dart
// // detail/compression.h // -------------------- // // Copyright (c) 2015 Daniel Joos // // Distributed under MIT license. (See file LICENSE) // #ifndef COMPRESSION_H_D5F6D8BB_5E7B_4A32_8684_2F69BF8D7AD1 #define COMPRESSION_H_D5F6D8BB_5E7B_4A32_8684_2F69BF8D7AD1 #include <libkafka_asio/constants.h> #include <libkaf...
C
namespace dymaptic.GeoBlazor.Core.Enums; /// <summary> /// The unit of the vertical coordinate system. /// <a target="_blank" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-HeightModelInfo.html#heightUnit">ArcGIS Maps SDK for JavaScript</a> /// </summary> [JsonConverter(typeo...
C#
of the /// input signal by an equal amount. /// </summary> FrequencyShifter = 0x0006, /// <summary> /// The Vocal morpher consists of a pair of 4-band formant filters, used to impose vocal tract effects upon the /// input signal. /// </summary> VocalMorp...
C#
} .payment-xl { height: 5rem; } .payment-2xl { height: 7rem; }/*! * Tabler v1.0.0-beta21 (https://tabler.io) * @version 1.0.0-beta21 * @link https://tabler.io * Copyright 2018-2024 The Tabler Authors * Copyright 2018-2024 codecalm.net Paweł Kuna * Licensed under MIT (https://github.com/tabler/tabler/blob/master/L...
CSS
); } else { throw ArgumentError( 'Unsupported object type for LineRenderer domain value: ' '${value.runtimeType}'); } } /// Extends the range to include value by casting as numbers. void _includePointAsNum(D value) { value as num; if (value < (_start as num)) { _st...
Dart
YW4= 55965 IGFsbw== 55966 INC80LXQvdGM 55967 IHJlc3Rh 55968 dXJhY3k= 55969 Y2FwdA== 55970 INit2YLZiNmC 55971 INeZ15M= 55972 IHZvZWQ= 55973 6ZWH 55974 IG11ZGE= 55975 IFVQUw== 55976 4pmA4pmA4pmA4pmA 55977 KFRydWU= 55978 IO2ZmA== 55979 w7hr 55980 INGF0L4= 55981 aWRoZQ== 55982 0LTQsNCy 55983 fgoK 55984 LnRyaWdnZXI= 55985 d...
Kotlin
tcTimingElement timingElement, ParsingLoadable.Parser<Long> parser) { startLoading( new ParsingLoadable<>( dataSource, Uri.parse(timingElement.value), C.DATA_TYPE_TIME_SYNCHRONIZATION, parser), new UtcTimestampCallback(), 1); } private void loadNtpTimeOffset() { SntpClie...
Java
tor2.hasNext()) { return 1; } Integer codePoint1 = iterator1.next(); Integer codePoint2 = iterator2.next(); int cmp = codePoint1.compareTo(codePoint2); if (cmp != 0) { return cmp; } } if (iterator2.h...
Java
(feature = "v3_20", feature = "dox"))] pub fn gtk_widget_path_iter_set_object_name(path: *mut GtkWidgetPath, pos: c_int, name: *const c_char); pub fn gtk_widget_path_iter_set_object_type(path: *mut GtkWidgetPath, pos: c_int, type_: GType); #[cfg(any(feature = "v3_14", feature = "dox"))] pub fn gtk_widge...
Rust
an} isFetching * @return {Promise<void>} * */ export const setFetching = (isFetching: boolean): ThunkType => async (dispatch) => { dispatch(actions.setFetching(isFetching)) } /** * Установка фильтра * @param {TaskFilterType} filter * @param {boolean} rewrite - Флаг предварительного сброса текущего значения пе...
Typescript
/// /// [SIMINOV FRAMEWORK - CORE] /// Copyright [2014-2016] [Siminov Software Solution LLP|support@siminov.com] /// /// 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...
C
707.707a1,1,0,0,0,1.414-1.414ZM6.707,5.293A1,1,0,0,0,5.293,6.707L6,7.414A1,1,0,0,0,7.414,6Z'/%3E%3C/svg%3E")}input[type=checkbox]:checked[data-task=p],li[data-task=p]>input:checked,li[data-task=p]>p>input:checked{background-color:rgba(0,0,0,0);border-color:transparent}input[type=checkbox]:checked[data-task=p]:after,li[...
CSS
cr0, LL(A0I1_Remain) .align 4 LL(A0I1_kernel): STFD FZERO, 0 * SIZE(X) STFD FZERO, 1 * SIZE(X) STFD FZERO, 2 * SIZE(X) STFD FZERO, 3 * SIZE(X) STFD FZERO, 4 * SIZE(X) STFD FZERO, 5 * SIZE(X) STFD FZERO, 6 * SIZE(X) STFD FZERO, 7 * SIZE(X) STFD FZERO, 8 * SIZE(X) STFD FZERO, 9 * SIZE(X) STFD FZER...
Assembly
import unittest from sglang.backend.runtime_endpoint import RuntimeEndpoint import sglang as sgl class TestBind(unittest.TestCase): backend = None def setUp(self): cls = type(self) if cls.backend is None: cls.backend = RuntimeEndpoint(base_url="http://localhost:30000") def...
Python
Printf("bucket %s not exists\n", bucketName) return nil, "", err } if !exists { fmt.Printf("Bucket not exist\n") return nil, "", errors.New("bucket not exists") } return minioClient, bucketName, nil } package states import ( "context" "fmt" "github.com/cockroachdb/errors" "github.com/milvus-io/birdwa...
Go
code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * ...
Java
open_pen: 100, } ), Ok(Alignment { query_aligned: "XX".to_string(), text_aligned: "YY".to_string(), score: 2, }) ); assert_eq!( wavefront_align( "XX", ...
Rust
100%; } 100% { background-position: 0%; } } .mindease-wave-flow { animation: 15s ease-in-out infinite waveFlow; } @keyframes waveFlow { 0%, 100% { d: path("M0,100 Q100,50 200,100 T400,100 L400,400 L0,400 Z"); } 50% { d: path("M0,120 Q100,80 200,120 T400,120 L40...
CSS
"type": "list", "member": {"shape": "TrustStoreAssociation"}, "flattened": false }, "TrustStoreName": {"type": "string", "flattened": false}, "TrustStoreNames": { "type": "list", "member": {"shape": "TrustStoreName"}, "flattened": false }, "TrustStoreRevocation": { "type": "structure",...
Dart
row = c(88L, 88L)), .Names = c('srcfile', 'frow', 'lrow'), row.names = 1:2, class = 'data.frame'));is.matrix(argv[[1]]);"); } @Test public void testismatrix12() { assertEval("argv <- list(structure(c(-15.8396536770559, 0.267020886067525, -10.0516337591148, 7.62751967585832), .Dim = c(2L, 2L), .Dimn...
Java
h, 'new_name': newName, 'is_remote': isRemote }) ])); } Future<void> sessionSelectFiles( {required UuidValue sessionId, dynamic hint}) { return Future(() => js.context.callMethod('setByName', ['select_files'])); } String? sessionGetConnToken({required UuidVa...
Dart
Date(); } /** * 将字符日期转成日期对象,可以指定日期格式。 * * 示例:STRTODATE('2021/12/6', 'YYYY/MM/DD') * * @param {string} value 日期字符 * @param {string} format 日期格式 * @namespace 日期函数 * @example STRTODATE(value[, format=""]) * @returns {date} 日期对象 */ fnSTRTODATE(value: any, format: string = '') { retu...
Typescript
; const &amp;y, C&lt; T &gt; const &amp;z, C&lt; T &gt; const &amp;w)']]], ['min',['min',['../a00241.html#ga6cf8098827054a270ee36b18e30d471d',1,'glm::min(genType x, genType y)'],['../a00241.html#gaa7d015eba1f9f48519251f4abe69b14d',1,'glm::min(vec&lt; L, T, Q &gt; const &amp;x, T y)'],['../a00241.html#ga31f49ef9e7d1be...
JavaScript
i14.$MemoryEntityTable(this); late final i15.$MemoryAssetEntityTable memoryAssetEntity = i15 .$MemoryAssetEntityTable(this); late final i16.$PersonEntityTable personEntity = i16.$PersonEntityTable(this); late final i17.$AssetFaceEntityTable assetFaceEntity = i17 .$AssetFaceEntityTable(this); late f...
Dart
reject(); }; } }); } public async drawPoint(design?: IGeometryDesign, token?: IActionToken): Promise<Point> { const coordinate: Coordinate = await this.samplePoint(token); return this.mapComponent.geometryBuilder.buildPoint(coordinate, design); } public async drawLine(design?: IGeometryDesign, token...
Typescript
.NoError(err) s := session.(*Session) a.Equal(s.AuthURL, "https://www.dropbox.com/oauth2/authorize") a.Equal(s.Token, "1234567890") } func Test_SessionToJSON(t *testing.T) { t.Parallel() a := assert.New(t) s := &Session{} data := s.Marshal() a.Equal(data, `{"AuthURL":"","Token":""}`) } func Test_GetAuthURL(...
Go
#include <stdio.h> #include <assert.h> #include <limits.h> #include "../src/util.h" #include "../src/portsentry.h" void TestGetLongValidNumbers(void); void TestGetLongNullInput(void); void TestGetLongInvalidInput(void); void TestGetLongBoundaryCases(void); void TestGetLongValidNumbers(void) { assert(GetLong("123") ...
C
Jump('loc_3B49') def _loc_37D7(): pass label('loc_37D7') If( ( (Expr.TestScenaFlags, ScenaFlag(0x0083, 3, 0x41B)), Expr.Return, ), 'loc_392E', ) If( ( (Expr.TestScenaFlags, ScenaFlag(0x0000, 6, 0x6)), Expr.Ez, ...
Python
pping is cleaned up when the // cache becomes unused. runtime.SetFinalizer(d, (*dataset).finalizer) // Try to load the file from disk and memory map it var err error d.dump, d.mmap, d.dataset, err = memoryMap(path) if err == nil { logger.Debug("Loaded old ethash dataset from disk") return } logge...
Go
pletely removed and replaced with their body. */ ctx = maybe_lookup_ctx (stmt); gcc_assert (ctx); lower_omp (gimple_omp_body_ptr (stmt), ctx); gsi_replace_with_seq (gsi_p, gimple_omp_body (stmt), true); break; case GIMPLE_OMP_MASTER: case GIMPLE_OMP_MASKED: ctx = maybe_looku...
C++
-legacy{--fa:"\e078"}.fa-slack,.fa-slack-hash{--fa:"\f198"}.fa-medrt{--fa:"\f3c8"}.fa-usb{--fa:"\f287"}.fa-tumblr{--fa:"\f173"}.fa-vaadin{--fa:"\f408"}.fa-quora{--fa:"\f2c4"}.fa-square-x-twitter{--fa:"\e61a"}.fa-reacteurope{--fa:"\f75d"}.fa-medium,.fa-medium-m{--fa:"\f23a"}.fa-amilia{--fa:"\f36d"}.fa-mixcloud{--fa:"\f2...
CSS
7L11 4V2a1 1 0 0 1 1-1m0 5c-.629 0-1.214.301-1.606.807l-2.908 3.748a2.395 2.395 0 0 0-.011 2.876l2.919 3.762c.39.505.977.807 1.606.807s1.214-.301 1.606-.807l2.908-3.748a2.395 2.395 0 0 0 .011-2.876l-2.919-3.762A2.03 2.03 0 0 0 12 6m0 13a1 1 0 0 1 .993.883L13 20v2a1 1 0 0 1-1.993.117L11 22v-2a1 1 0 0 1 1-1\\"/>"},"keyfr...
JavaScript
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true chan_agent = module:option(L...
Lua
arcTo( cr: Double, angle: Double, largeArcFlag: Boolean, sweepFlag: Boolean, end: Vector3 ) = arcTo(cr, angle, largeArcFlag, sweepFlag, end.x, end.y, end.z) } fun path3D(f: Path3DBuilder.() -> Unit): Path3D { val cb = Path3DBuilder() cb.f() return Path3...
Kotlin
Start) if (nl != -1) contentStart = nl + 1 } val end = message.indexOf(fence, contentStart) if (end == -1) return null return message.substring(contentStart, end).trim() } } private fun buildEditDiffHistory(project: Project?): String { if (project == null) return "" ...
Kotlin
A6),D7 CMPI #4,D7 BEQ.S L286 MOVE D7,D0 MULS #800,D0 LEA G407_s_Par+52(A4),A0 ADDA D0,A0 MOVE (A0),D0 BNE.S L286 BRA L285(PC) L286: MOVE G333_B_Pre(A4),D0 BNE.S L288 MOVE G331_B_Pre(A4),D0 BEQ.S L287 L288: BRA L285(PC) L287: MOVE #1,G321_B_Sto(A4) MOVE G423_i_Inv(A4),D6 MOVE D7,D0 ADDQ #1,D0 CMP D6,D...
Assembly
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NGAP-PDU-Contents" * found in "NGAP-PDU-Contents.asn" * `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps -no-gen-OER -gen-PER -no-gen-example -D ngap` */ #include "ASN_NGAP_PDUSessionResourceNotify.h" asn_TYPE_me...
C
with open(file, "rb") as f: transitions = pkl.load(f) for transition in transitions: replay_buffer.insert(transition) print( f"Loaded previous buffer data. Replay buffer size: {len(replay_buffer)}" ) if FLAGS.checkpoint_path is ...
Python
7505, U+7507, U+750c-750e, U+7511, U+7513, U+7515-7517, U+7519, U+751e, U+7521, U+7525, U+752a, U+752c-752f, U+7534, U+753e, U+7542, U+7545-7548, U+754a-754b, U+754d-754e, U+7551, U+7553, U+7555, U+755a-755b, U+755d, U+7560, U+7563-7564, U+7566-7568, U+756c-756f, U+7572-7575, U+7577-757a, U+757c, U+757e-757f, U+7583-75...
CSS
t_pointer(out_)); } void onDownloadDone() { if (--concurrent_ <= 0) { loop_->quit(); } } EventLoop* loop_; curl::Curl curl_; string url_; curl::RequestPtr req_; curl::RequestPtr req2_; bool found_; bool acceptRanges_; int64_t length_; FilePtr out_; boost::ptr_vector<Piece...
C++
end for slot6, slot7 in ipairs(slot0.fashionSkins) do slot8 = slot0.fashionSkins[slot6] if not slot0.fashionCellMap[slot0.styleContainer:GetChild(slot6 - 1)] then slot0.fashionCellMap[slot9] = ShipSkinCard.New(slot9.gameObject) end slot10:updateData(slot0.shipVO, slot8, slot0.shipVO:proposeSkinOwn...
Lua
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
C
/* * Copyright 2013 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <asm/mmu.h> #include <asm/immap_85xx.h> #include <asm/processor.h> #include <fsl_ddr_sdram.h> #include <fsl_ddr_dimm_params.h> #include <asm/io.h> #include <asm/fsl_law.h> DECLARE_GLOBAL_DATA_PT...
C
[stdio] [qmp] : [unix:/home/maritns3/core/vn/hack/qemu/x64-e1000/test.socket,server,nowait] ``` ### QEMUOption 组织结构 现在根据 `popt->index` 可以跳转到一个具体的处理操作上. 例如 -machine 会跳转到: ```c case QEMU_OPTION_kernel: qemu_opts_set(qemu_find_opts("machine"), 0, "kernel", optarg, ...
Markdown
oject.version, "jvmArgs" to extraJavaArgs.map { '"' + it + '"' }.joinToString(", ") ) ) } } val versionJsonPath = layout.buildDirectory.file("libs/version.json").get().asFile val versionJsonFile = tasks.register("versionJson") { group = taskGroup description = "Generate...
Kotlin
#include <arm/cpu_cache.h> #include <framework/mod/options.h> #define SRAM_NOCACHE_SIZE OPTION_GET(NUMBER, sram_nocache_section_size) SECTIONS { /* MPU region must be aligned to its own size */ .bss.sram_nocache : ALIGN(SRAM_NOCACHE_SIZE) { _sram_nocache_start = .; _sram_device_mem_start = .; *(.bss.sram_devi...
Assembly
ll []string) { flagSet := setupFlags() if err := flagSet.Parse(call[1:]); err != nil { log.Printf("Error parsing arguments: %s", err) os.Exit(1) } else { /* TODO: normalize flags for merging with config settings specifiedFlags := make(map[string]interface{}) flagSet.Visit(func(flg *flag.Flag) { specifiedFl...
Go
13.59 12a3.6 3.6 0 013.6-3.6H27V5a2 2 0 00-2-2H11a2 2 0 00-2 2v8.4h4.59Z" class="clr-i-solid clr-i-solid-path-1"/><path fill="currentColor" d="M30 10H17.19a2 2 0 00-2 2v1.4H20a3.6 3.6 0 013.6 3.6v8H22v-8a2 2 0 00-2-2H6a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-1.4h-4.81a3.6 3.6 0 01-3.6-3.6v-6h1.6v6a2 2 0 002 2H30a2 ...
Dart
apQuads.HOUSE04_L21, (x)*TILE_SIZE, (y)*TILE_SIZE) elseif map[x][y] == "PLAYGROUND" then -- playground shadowData:add( mapQuads.HOTSPOT_PLAYGROUND_SHADOW, (x)*TILE_SIZE, (y)*TILE_SIZE) objectData:add( mapQuads.HOTSPOT_PLAYGROUND, (x)*TILE_SIZE, (y)*TILE_SIZE) end end end -- Foilage if not NO_TREES t...
Lua
/// Implemented for `u8`, `u16`, `u32`, `i8`, `i16`, `i32`, `f32`, `bool`, and [`GLSLInt`]-wrapped /// integers. /// /// [`GLSLInt`]: ./struct.GLSLInt.html pub unsafe trait Scalar<N: Normalization>: ScalarBase { type ScalarType: ScalarType; const NORMALIZED: bool = N::NORMALIZED; } /// Marker trait that indica...
Rust
_Audio_Record_AEC_Thread, AUDIO_RECORD_FILE); if(ret != 0) { IMP_LOG_ERR(TAG, "[ERROR] %s: pthread_create Audio Record failed\n", __func__); return -1; } printf("[INFO] Start audio play test.\n"); printf("[INFO] Play the %s file.\n", AUDIO_RECORD_FILE_FOR_PLAY); printf("[INFO] Please input any key to contin...
C
this["KeyHexEditorExpandLeftSplitPanel"] = value; } } [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("Ctrl + Up|6_Hot Key|3_HexEditor|[...
C#
Equal(MessageType.MT_COMMAND, message.Header.MessageType); } public class SomeJustSayingCommand : JustSayingCommand { public string Name { get; set; } = string.Empty; } public class SomeJustSayingEvent : JustSayingEvent { public string Name { get; set; } = string.Empty;...
C#
} } .divider { animation-duration: 10s; animation-delay: 1s; animation-iteration-count: infinite; animation-timing-function: ease; animation-name: flow; background: linear-gradient(90deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); background-size: 400% 400%; height: 6px; } .button-gradi...
CSS
from '../actions/index'; import { ActionType } from '../action-types/index'; export const fetchDogList = () => async (dispatch: Dispatch<Action>) => { dispatch({ type: ActionType.GET_DOGS }); try { // eslint-disable-next-line new-cap const response = await axios({ method: 'GET', url: 'https:/...
Typescript