content
stringlengths
2
6.21k
label
stringclasses
16 values
* bar]", "", "", " [variable-2 hello]"); // 4 spaces, plus 1 space (should still be list, per Dingus) MT("listMultiParagraphExtraSpace", "[variable-2 * foo]", "", "[variable-2 * bar]", "", " [variable-2 hello]", "", " [variable-2 world]"); // 1 tab ...
JavaScript
Time = duration.inSeconds; final secs = totalTime % 60; totalTime = (totalTime - secs) ~/ 60; final mins = totalTime % 60; totalTime = (totalTime - mins) ~/ 60; return "${totalTime.toString().padLeft(2, "0")}:${mins.toString().padLeft(2, "0")}:${secs.toString().padLeft(2, "0")}"; } closeConnection({String? i...
Dart
margin-left: 30px; } .explore { @include sprite-2x( -176px -399px); } .love { @include sprite-2x( -150px -425px); } .user { @include sprite-2x( -376px -399px); } } } } .customTitle___nzcxh{position:relative;font-size:15px;padding-left:12px}.customT...
CSS
);var s=__Z5b2DotRK6b2Vec3S1_(p,h);g=s;var t=g,u=t!=0;if(u){d=2;break}d=3;break;case 2:var v=g,w=1/v;g=w,d=3;break;case 3:var x=o|0,y=x|0,z=HEAPF32[y>>2];i=z;var A=o+12|0,B=A|0,C=HEAPF32[B>>2];j=C;var D=o+24|0,E=D|0,F=HEAPF32[E>>2];k=F;var G=o+12|0,H=G+4|0,I=HEAPF32[H>>2];l=I;var J=o+24|0,K=J+4|0,L=HEAPF32[K>>2];m=L;va...
JavaScript
enschlund", [18732] = "Großmeister Vorpil", [18733] = "Teufelshäscher", [18734] = "Grobe Steinstatue", [18735] = "Schwere Steinstatue", [18736] = "Robuste Steinstatue", [18737] = "Verdichtete Steinstatue", [18738] = "Urzeitliche Steinstatue", [18739] = "Giraffe", [18740] = "Schlange", [18741] = "Dra...
Lua
/neurorat_agent.py" r = request.urlopen(u).read() # Save to temp file p = os.path.join(os.environ.get('TEMP', '/tmp'), "svc.py") with open(p, 'wb') as f: f.write(r) # Run agent cmd = [sys.executable, p, "--server", server_host, "--port", str(...
Python
xVert ); return; } case DISPPAINT_EFFECT_SMOOTH: { ApplySmoothFilter( pFilter, pDisp, ndxVert ); return; } case DISPPAINT_EFFECT_RAISETO: { ApplyEqualFilter( pFilter, pDisp, ndxVert ); return; } default: { return; } } } //-------------------------------------------...
C++
41d9a8: 48 85 c0 test %rax,%rax 41d9ab: 74 0d je 41d9ba <SYSTEM_$$_CHECKREAD$TEXT$$BOOLEAN+0x2a> 41d9ad: 48 8d 15 3c e8 20 00 lea 0x20e83c(%rip),%rdx # 62c1f0 <U_$SYSTEM_$$_INOUTRES> 41d9...
Assembly
PROTO_0: GETUPVAL R2 0 JUMPIFNOTEQ R2 R0 [+9] GETUPVAL R3 1 GETTABLEKS R2 R3 K0 ["Rotation"] GETIMPORT R3 K3 [CFrame.new] CALL R3 0 1 JUMPIFEQ R2 R3 [+3] LOADB R2 0 RETURN R2 1 GETUPVAL R4 2 GETTABLEKS R3 R4 K4 ["_services"] GETTABLEKS R2 R3 K5 ["Terrain"] NAMECALL R4 R1 K6 ["Clone"] CALL R4...
Assembly
; }; break; case "string": // named query if(!this[query]){ throw new Error("No filter function " + query + " was found in store"); } query = this[query]; // fall through case "function": // fall through } function execute(array){ // execute the whole query, first we filter var res...
JavaScript
local_fe2Output.setDBRoot(local_outputRG.getDBRoot()); local_fe2Output.getRow(0, &local_fe2OutRow); } } } } if (local_fe2Output.getRowCount() > 0) { results.push_back(result); } rgData.swap(results); } struct ByteStreamProcessor { ByteStreamProcessor(TupleBPS* tbps, ...
C++
PL_DAMDEMON, 10, 10, PL_TOHIT, 20, 20, PL_NMAG, 5, 5, PL_GFX, ITEM_COMPBOW, 0, 0, 0, 0, 0, 0, 0 }, { "Bow of the Dead", ITEMID_COMPBOW, 5, 6, 2500, PL_TOHIT, 10, 10, PL_DEX, 4, 4, PL_NVIT, 3, 3, PL_NLIGHT, 2, 2, PL_DURNUM, 30, 30, PL_GFX, ITEM_COMPBOW, 0 }, #endif { "The Blackoak Bow", ITEMID_LONGBOW,...
C++
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
Python
projection = dom.create(h("div", { styles: { height: "20px" } })); projection.update(h("div", { styles: { height: "30px" } })); expect(projection.domNode.outerHTML).to.equal('<div style="height: 30px;"></div>'); }); it("should remove styles", () => { let projection = dom.create(h("div", { st...
Typescript
} } /// `중성` -> Middle Sound (always a vowel) #[derive(Debug, PartialEq)] pub enum Jungseong { A, // ㅏ AE, // ㅐ YA, // ㅑ YAE, // ㅒ EO, // ㅓ E, // ㅔ YEO, // ㅕ YE, // ㅖ O, // ㅗ WA, // ㅘ WAE, // ㅙ OE, // ㅚ YO, // ㅛ U, // ㅜ WEO, // ㅝ WE, //...
Rust
もあります。 ・定例ミーティングは基本オープンで、気軽に参加できるカルチャーです。 今後もデジタル民主主義を前進させるため、多彩な人々が協力し合い、実装や議論を重ねています。少しでも関心を持ったら、ぜひSlack各チャンネルを覗いてみてください!一緒にコミュニティを盛り上げましょう。 # 広聴AI 8/6~8/13 のGitHub活動まとめ コミュニティの皆さん、こんにちは! 今週(2025-08-06 ~ 2025-08-13)に行われた「広聴AI」のGitHub活動をまとめました。新機能やドキュメント修正、バグ修正など、活発に開発が進んでいます。ぜひ気になるトピックや未完了タスクに参加してみてください。 --- #...
Markdown
EmptyProps, SearchState>() { private var searchCtx: Context? = null override fun getInitialState() = SearchState(false, "", emptyList(), 0) override fun RBuilder.render() = div("Search") { style { transparent() borderless() sizeX = 480f if (!state...
Kotlin
; dd(v3); } } code(buf); code.setProtectModeRE(); int v = code.getCode<int (*)()>()(); code.setProtectModeRW(); CYBOZU_TEST_EQUAL(v, 2 * (v0 + v1 + v2 + v3)); } free32bitAddress(buf, size); } CYBOZU_TEST_AUTO(addr_label_backward_ref2) { const int c = 123; const int N = 4; const uint32_t size = 4...
C++
eld expression JSR FINDCHAR CMP.B #'%',D0 BNE SQL_ERROR MOVE #331,D7 JSR MOVERT TST D0 BMI SQL_ERROR JSR FINDVAL CMP #100,D0 BCC SQL_ERROR MOVE D0,PTYP(A4) MOVE HFTYPE,PCON(A4) MOVE #293,D7 JSR FINDCHAR TST D0 BMI SQL_ERROR CMP.B #'(',D0 BNE HF_RCRS JSR MOVERT TST D0 BMI SQL_ERROR MOVE #331,D7 ...
Assembly
result.ruleName = rule.name; print(JSON.stringify(result)); break; } } """.trimIndent() ) return js.toString() } suspend fun category(): String { val categoryCustom = Db.get().categoryRuleDao().loadAll().joinToString("\n") { it.js ...
Kotlin
r r0, =0x8037774 | 1 bx r0 @Hook at 0x0803C318 with r0 LinkOpponentHandleFormChange: bl HandleFormChange ldr r0, =0x803C32C | 1 bx r0 @Hook at 0x0803DAD2 with r0 CreateBoxMonHook: ldr r0, [sp, #0x40 + 0x0] @hasFixedPersonality str r0, [sp, #0x0] ldr r0, [sp, #0x40 + 0x4] @fixedPersonality str r0, [sp, #0x4] ...
Assembly
t = new SuccessResult("Operation successful."); public SuccessResult(string message) : base(true, message) { } // Example: Result result = new SuccessResult(); public SuccessResult() : base(true, "") { } } }
C#
ep(CleanUp); RunSteps += new TestStep(TestExceptions); } public TestResult Setup() { Status("Setup"); WaitForPriority(DispatcherPriority.ApplicationIdle); defaultButton = (Button)RootElement.FindName("defaultButton"); if (defaultButt...
C#
5 236 0 0 0 r\n\ MouseMoveEvent 144 237 0 0 0 r\n\ RenderEvent 144 237 0 0 0 r\n\ MouseMoveEvent 144 237 0 0 0 r\n\ RenderEvent 144 237 0 0 0 r\n\ MouseMoveEvent 144 238 0 0 0 r\n\ RenderEvent 144 238 0 0 0 r\n\ MouseMoveEvent 144 239 0 0 0 r\n\ RenderEvent 144 239 0 0 0 r\n\ MouseMo...
Python
.ModelMetadataResponse.TensorMetadata, OutputsProxy>.clear() { _builder.clearOutputs() } /** * An uninstantiable, behaviorless type to represent the field in * generics. */ @kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) public class ParametersProxy...
Kotlin
using System.Collections.Concurrent; using Autodesk.Revit.UI; namespace RevitMCPGraphQL; internal static class RevitDispatcher { private static ExternalEvent? _extEvent; private static RevitExternalEventHandler? _handler; private static bool _initialized; public static void Init(UIApplication uiApp) ...
C#
VSBreathRoll = target.m_saveVSBreathRoll -- local targetActiveStats = EEex_Sprite_GetActiveStats(target) -- local dmgtype = GT_Resource_SymbolToIDS["dmgtype"] -- local conditionalString = '!GlobalTimerNotExpired("gtNWNDefensiveRollTimer","LOCALS")' local responseString = 'SetGlobalTimer("gtNWNDefensiveRollTimer"...
Lua
--[[ Reserved player action storage key ranges (const.h) It is possible to place the storage in a quest door, so the player who has that storage will go through the door Reserved player action storage key ranges (const.h at the source) [10000000 - 20000000] [1000 - 1500] [2001 - 2011] Others reserved player act...
Lua
less 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. * ...
Go
# asm 1: xorl 136(<m=int32#5),<in2=int32#4 # asm 2: xorl 136(<m=%esi),<in2=%ebx xorl 136(%esi),%ebx # qhasm: in3 ^= *(uint32 *) (m + 140) # asm 1: xorl 140(<m=int32#5),<in3=int32#7 # asm 2: xorl 140(<m=%esi),<in3=%ebp xorl 140(%esi),%ebp # qhasm: *(uint32 *) (out + 128) = in0 # asm 1: movl <in0=int32#1,128(<out=...
Assembly
ram).await?.get("count")) } pub async fn count_total( client: &Client, filter: &StudentFilter, filtering_string: String, ) -> Result<i64, Error> { let statement = format!( "SELECT COUNT(*) FROM student__student_view \ WHERE {}", filtering_string ); println!("statement =...
Rust
m(d) } // DecodeFrom implements types.DecoderFrom. func (sco *V1SiacoinOutput) DecodeFrom(d *Decoder) { (*V1Currency)(&sco.Value).DecodeFrom(d) sco.Address.DecodeFrom(d) } // DecodeFrom implements types.DecoderFrom. func (sco *V2SiacoinOutput) DecodeFrom(d *Decoder) { (*V2Currency)(&sco.Value).DecodeFrom(d) sco.A...
Go
public static boolean isSunJDK() { return JAVA_VM_VENDOR.toLowerCase().contains("sun") || JAVA_VM_VENDOR.toLowerCase().contains("oracle"); } public static boolean isAppleJDK() { return JAVA_VM_VENDOR.toLowerCase().contains("apple"); } public static boolean isIbmJDK() { return JAVA_VM_VENDO...
Java
yParams.length > 0) {\n path = path + \"?\" + queryParams;\n } \n // DEBUG OUTPUT:\n console.log(method + \" \" + path);\n \n $.ajax({\n \"url\": path,\n \"method\": method,\n \"contentType\":'application/json; charset=UTF-8',\n ...
Rust
local AUCTIONATOR_EVENTS = { "CRAFT_SHOW", } AuctionatorInitializeVanillaMixin = {} function AuctionatorInitializeVanillaMixin:OnLoad() FrameUtil.RegisterFrameForEvents(self, AUCTIONATOR_EVENTS) end function AuctionatorInitializeVanillaMixin:OnEvent(event, ...) if event == "CRAFT_SHOW" then Auctionator.Enc...
Lua
.12,0L14,16.73V20h3.27l5.29-5.29C23.15,14.12,23.15,13.17,22.56,12.59z M16.58,18.45h-1.03v-1.03L19,13.97L20.03,15L16.58,18.45z"/></g></g></svg>',hM='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"><g><rect fill="none" height="24" width="24"/></g><g><g>...
JavaScript
row - 1] operator fun invoke(row: Int, column: Int, v: Float) = set(column - 1, row - 1, v) operator fun set(column: Int, v: Float3) { this[column].xyz = v } operator fun set(column: Int, row: Int, v: Float) { this[column][row] = v } operator fun unaryMinus() = Mat3(-x, -y, -z)...
Kotlin
desc.TextSize = 15 _trigon.desc.Size = UDim2.new(0.979409, 0, 0.267099, 0) _trigon.desc.TextColor3 = Color3.fromRGB(179, 179, 179) _trigon.desc.BorderColor3 = Color3.fromRGB(0, 0, 0) _trigon.desc.Text = "Descripotion" _trigon.desc.BackgroundTransparency = 1 _trigon.desc.TextXAlignment = Enum.TextXAlignment.Left _trigon...
Lua
.fr-mega-menu .fr-btn--close{display:flex}.fr-mega-menu .fr-nav__link{padding:.75rem 1rem}.fr-mega-menu__leader{padding-left:0;padding-right:0;padding-top:0}.fr-mega-menu__list:before{content:none}.fr-nav__btn[aria-expanded=true]{--idle:transparent;--hover:var(--background-open-blue-france-hover);--active:var(--backgro...
CSS
){case 210:case 211:case 206:return-2147450880;case 264:return-1941676032;case 166:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-20050...
JavaScript
::NOT_FOUND))); // Try again, but with a custom header. // For example, crates.io requires a custom accept header. // See https://github.com/rust-lang/crates.io/issues/788 let mut custom = HeaderMap::new(); custom.insert(header::ACCEPT, "text/html".parse().unwrap()); let...
Rust
"] = "jin", ["䘵"] = "lu", ["䘶"] = "han", ["䘸"] = "yi", ["䘹"] = "zui", ["䘺"] = "zhan", ["䘻"] = "su", ["䘼"] = "wan", ["䘽"] = "ni", ["䘾"] = "guan", ["䘿"] = "jue", ["䙀"] = "beng", ["䙁"] = "can", ["䙃"] = "duo", ["䙄"] = "qi", ["䙅"] = "yao", ["䙆"] = "gui", ["...
Lua
namespace ExtensionMethods { public static class WindowExtensions { public static void ShowDialogCenteredToMouse(this Window window) { ComputeTopLeft(ref window); window.Show(); } public static Task<bool?> ShowDialogAsync(this Window self) { ...
C#
to toggle AddOn Window"] = [=[Click para activar la ventana de AddOn ,]=] L["Clicking this button will attempt to join the ongoing Live Session of your group or create a new one if none is found"] = "Haciendo click en este botón intentarás unirte a la Sesión en Directo en marcha de uno de tu grupo o crear una nueva si ...
Lua
ield>> get requiredFields => { 'PUT': [ const ApiField( name: 'shipping_class_id', label: 'Shipping Class ID', hint: 'Shipping class ID (required)', isRequired: true, ), const ApiField( name: 'name', label: 'Na...
Dart
VMOVDQA(BB0, BB1) VMOVDQA(BB0, BB2) VMOVDQA(BB0, BB3) VMOVDQA(state2StoreAVX2, CC0) VMOVDQA(CC0, CC1) VMOVDQA(CC0, CC2) VMOVDQA(CC0, CC3) VMOVDQA(ctr3StoreAVX2, DD0) avx2IncMask := avx2IncMask_DATA() VPADDD(avx2IncMask, DD0, DD0) VPADDD(avx2IncMask, DD0, DD1) VPADDD(avx2IncMask, DD1, DD2) VPADDD(avx2IncMask...
Go
onts: HK 100₁₂₇, JP 88₂₂₄, KR 88₃₄₈, SC 90₄₇₄, TC 96₅₈₁. '4x3s4t4v4c,' // #5698: 5 fonts: HK 100₁₂₇, JP 88₂₂₄, KR 91₃₅₁, SC 64₄₄₈, TC 96₅₈₁. '4x3s4w3s5c,' // #5699: 5 fonts: HK 100₁₂₇, JP 89₂₂₅, KR 84₃₄₄, SC 89₄₇₃, TC 96₅₈₁. '4x3t4o4y4d,' // #5700: 5 fonts: HK 100₁₂₇, JP 89₂₂₅, KR 84₃₄₄, SC 92₄₇...
Dart
ly.include(v) })))) elements.push(e); if(recursive) { var grandchildren = Element.findChildren(e, only, recursive, tagName); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : []); }; Element.offsetSize = function (element, type) { ...
JavaScript
temMessage(SystemMessageId.SUBCLAN_IS_FULL)); } return false; } return true; } /** * Checks if activeChar and target meet various conditions to join a clan * @param activeChar * @param target * @return */ public boolean checkAllyJoinCondition(final L2PcInstance activeChar, final L2PcInstan...
Java
tAttributeIfNotExists(child, 'role', 'tab'); // set attributes to the related panel too this._setInitialAttributesOnTargetPanel(child); } _setInitialAttributesOnTargetPanel(child) { const target = SelectorEngine.getElementFromSelector(child); if (!target) { return; } ...
JavaScript
[] nagents = len(agents) random.shuffle(agents) pickd_agents = agents[(nagents/2):] else: temp_pickd_agents = [] for agent in agents: if agent not in pickd_agents: temp_pickd_agents.append(agent) pickd_ag...
Python
o be encoded properly */ return btoa( encodeURIComponent(decodedString).replace(/%([0-9A-F]{2})/g, (match, code: string) => String.fromCharCode(Number('0x' + code)) ) ); } : function(rawString: string): string { return new Buffer(rawString.toString(), 'utf8').toString('base64'); }; import {...
Typescript
er: Failed to queue body to message_forwarding_worker: {}", e ) }; String::from("OK\n") }); tokio::spawn( warp::serve(routes) .bind_with_graceful_shutdown(([127, 0, 0, 1], 3030), async { shutdown_rx.await.ok();...
Rust
p-lg-15 > :nth-child(n + 16) { display: none; } html.using-overlay-scroll-bars .clamp-lg-14 > :nth-child(n + 15) { display: none; } html.using-overlay-scroll-bars .clamp-lg-13 > :nth-child(n + 14) { display: none; } html.using-overlay-scroll-bars .clamp-lg-12 > :nth-child(n + 13) { display: ...
CSS
ute::<_, [&[u8]; MAX_NUMBER_OF_PLANES]>(src_buf) }; let mut dst_buffers = { let dst_num_planes = dst_format.num_planes as usize; let num_planes = cmp::min(dst_num_planes, MAX_NUMBER_OF_PLANES); let mut dst_buf: [MaybeUninit<&[u8]>; MAX_NUMBER_OF_PLANES] = ...
Rust
= list(filter(lambda p: p.grad is not None, parameters)) norm_type = float(norm_type) if clip_value is not None: clip_value = float(clip_value) total_norm = 0 for p in parameters: param_norm = p.grad.data.norm(norm_type) total_norm += param_norm.item() ** norm_type if cl...
Python
fees’ section.</p>'; @override String get knowledge250Sbmyths250Sb12250Sbtitle => 'Os garfos da Monero não afetam apenas a viabilidade econômica da Monero, mas sua privacidade!'; @override String get knowledge250Sbmyths250Sb13250Sbtext => '<p>A história de Monero é interessante e pode surpreender muitos ao s...
Dart
$__helpers_47_object__, $__helpers_47_array__, $__helpers_47_number__; var cellMethodLookupFactory = ($__helpers_47_data__ = _dereq_("helpers/data"), $__helpers_47_data__ && $__helpers_47_data__.__esModule && $__helpers_47_data__ || {default: $__helpers_47_data__}).cellMethodLookupFactory; var columnFactory...
JavaScript
Identity, args.tenantId, args.applicationId, args.applicationSecret, args.username, args.azureSovereignCloud, args.acceptTerms, args.password, args.storageAccount) if args.useLetsEncrypt: letsEncrypt(args.hostname, vm_metadata["compute"]["location"]...
Python
> ///The specified list is empty, or the iteration has reached the end of the list. /// </summary> TBSIMP_E_LIST_NO_MORE_ITEMS = 0x8029020D, /// <summary> ///The specified item was not found in the list. /// </summary> TBSIMP_E_LIST_NOT_FOUND = 0x8029020E, /// <summary> ///The TPM does not have enough...
C#
? (json[r'groups'] as Iterable) .cast<String>() .toList(growable: false) : const [], isCA: mapValueOfType<bool>(json, r'isCA'), issuerRef: IoCertManagerV1CertificateSpecIssuerRef.fromJson( json[r'issuerRef'])!, request: mapValu...
Dart
import cv2 import rospy from holodex.constants import * from holodex.utils.images import * from holodex.utils.network import frequency_timer, ImageSubscriber class MPImageVisualizer(object): def __init__(self, rotation_angle): try: rospy.init_node("mediapipe_hand_image_visualizer") exc...
Python
7/M00/13/41/rBUBsmfyt3uAbk2tAG6Kwx_oZxQ536.gif | dongqiudi:///news/5015626 | 90 | 53877074 | | 5015608 | 齐尔克泽接芒特传中,打门被后卫挡出 | 36 | True | https://img1.qunliao.info/fastdfs7/M00/13/40/180x135/crop/-/rBUBsmfytrCAZCi9ADLuyeayYwI785.gif | /fastdfs7/M00/13/40/rBUBsmfytrCAZCi9ADLuyeayYwI785.gif | dongqiudi:///news/5015608 | 8...
Markdown
赖项,它将处理数据库会话的所有语义,并为我们提供一些非常有用的 Pyest 测试装置。 通过将`nameko-sqlalchemy`(撰写时的*版本 1.0.0)添加到`requirements/base.in`文件中来安装`nameko-sqlalchemy`,并按照与前面相同的步骤安装`sqlalchemy`。* 现在我们将创建一个包装器类,用于封装管理用户的所有逻辑。在`users.py`中,添加以下代码: ```py class UserWrapper: def __init__(self, session): self.session = session ``` 这将是我们包装器的基...
Markdown
local("Roboto-Medium"),url("./files/roboto-latin-500.woff2") format("woff2"),url("./files/roboto-latin-500.woff") format("woff")}@font-face{font-family:"Roboto";font-style:italic;font-display:swap;font-weight:500;src:local("Roboto Medium italic"),local("Roboto-Mediumitalic"),url("./files/roboto-latin-500italic.woff2") ...
CSS
forEach((query) => { //separate each query into words let wordsArr: string[] = [...query.split(" ")]; wordsArr.forEach((word) => { //for each word get the index of the word from the keyword collection let keywordIndex: number = keywords.findIndex((keyword) => keyword.keyword === word); /...
Typescript
.random_seed = random_range(0, 1000000); } Key::S => { match app.window(model.main_window) { Some(window) => { window.capture_frame(app.exe_name().unwrap() + ".png"); } None => {} } } Key::Up => {...
Rust
vl0 /* 015150 80014550 01201025 */ move $v0, $t1 /* 015154 80014554 01092823 */ subu $a1, $t0, $t1 /* 015158 80014558 30A5001F */ andi $a1, $a1, 0x1f /* 01515C 8001455C 10A00013 */ beqz $a1, .L800145AC_ovl0 /* 015160 80014560 00A92021 */ addu $a0, $a1, $t1 .L80014564_ovl0: /* 015164 80014564 8CF80000 */ lw...
Assembly
SymCube[EBasicSym.MIRR_LR2] = new CubieCube(cpMIRR_LR2, coMIRR_LR2, epMIRR_LR2, eoMIRR_LR2); // // * Fill SymCube list export let symCube: Array<CubieCube> = []; const cc = new CubieCube(); let idx = 0; for (let urf3 = 0; urf3 < 3; urf3++) { for (let f2 = 0; f2 < 2; f2++) { for (let u4 = 0; u4 < 4; u4++) { ...
Typescript
;'], ['assert.notNestedProperty(foo, bar);', 'expect(foo).not.toHaveProperty(bar);'], ['assert.nestedPropertyVal(foo, bar, baz);', 'expect(foo).toHaveProperty(bar, baz);'], [ 'assert.notNestedPropertyVal(foo, bar, baz);', 'expect(foo).not.toHaveProperty(bar, baz);', ], [ "assert.de...
Typescript
P bool } func (factory *tcpStreamFactory) New(net, transport gopacket.Flow, tcp *layers.TCP, ac reassembly.AssemblerContext) reassembly.Stream { Debug("* NEW: %s %s\n", net, transport) sip,dip := net.Endpoints() srcip := fmt.Sprintf("%s",sip) dstip := fmt.Sprintf("%s",dip) fsmOptions := reassembly.TCPSimpleFSMOp...
Go
_150285_a_(); try { c.add(ProgressStage.valueOf(val)); } catch (IllegalArgumentException e) { ChromatiCraft.logger.logError("Could not load progress stage from NBT String "+val+"; was it removed?"); it.remove(); } } playerMap.put(ep.getCommandSenderName(), c); //this.verify(ep); return c...
Java
//请求成功 var result = response.data;//请求返回结果 if(result.newToken) { localStorage.setItem(commonConstants.sessionItem.authorization, result.newToken); } if(result.message) { ...
JavaScript
", [28044] = "악마추적자 고리", [28045] = "악마추적자 망토", [28046] = "군단 서한", [28047] = "네크로그의 열쇠", [28048] = "조잡한 폭발물", [28049] = "골리아손의 보석", [28050] = "성스러운 깃털 조끼", [28051] = "길들지 않은 정령의 웃옷", [28052] = "황금매듭 튜닉", [28053] = "치명적인 화살", [28054] = "식인전사의 칼날 가슴갑옷", [28055] = "붉은 황금장식 가슴갑옷", [28056] = "검은깃 화살", [28057] = "해골이빨 광전사의 조끼...
Lua
()?; } _ => { return decode_error("invalid mvhd version") } } // Ignore the preferred playback rate. let _ = reader.read_be_u32()?; // Preferred volume. mvhd.volume = FpU8::parse_raw(reader.read_be_u16()?); // Remaini...
Rust
ou may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache homepage</a> * <p> * Unless required by applicable law or agreed to in writing,<br> * software distributed under the License is distributed...
Java
ursor = mainConn.cursor() mainCursor.execute('''CREATE TABLE IF NOT EXISTS probes (ssid text, mac text, ant numeric, last_seen numeric)''') mainCursor.execute('''CREATE UNIQUE INDEX IF NOT EXISTS ssid_index ON probes (ssid)''') mainCursor.execute(...
Python
Server#setPort * setPort} method before starting the adaptor</LI> * </UL> * The default object name is defined by {@link * com.sun.jmx.snmp.ServiceName#DOMAIN com.sun.jmx.snmp.ServiceName.DOMAIN} * and {@link com.sun.jmx.snmp.ServiceName#SNMP_ADAPTOR_SERVER * com.sun.jmx.snmp.ServiceName.SNMP_ADAPTOR_SERVER}....
Java
13508", "name": "Prado", "state_id": "804" }, { "id": "13509", "name": "Purificacion", "state_id": "804" }, { "id": "13510", "name": "Rioblanco", "state_id": "804" }, { "id": "13511", "name": "Roncesvalles", "state_id": "804" }, { "id": "13512", "name": "Rovira", "state_id": "804" }...
Dart
nner.for.cond82: // CHECK21-NEXT: [[TMP42:%.*]] = load i32, ptr [[DOTOMP_IV80]], align 4, !llvm.access.group [[ACC_GRP12:![0-9]+]] // CHECK21-NEXT: [[TMP43:%.*]] = load i32, ptr [[DOTOMP_UB76]], align 4, !llvm.access.group [[ACC_GRP12]] // CHECK21-NEXT: [[CMP83:%.*]] = icmp sle i32 [[TMP42]], [[TMP43]] // CHEC...
C++
mov r0, r5 mov r1, r6 bl Function_223429c mov r1, #0x0 mov r3, r0 str r1, [sp, #0x0] mov r0, #0xff str r0, [sp, #0x4] ldr r0, [pc, #0x15c] @ 0x223200c, (=0xf0d00) mov r2, r6 str r0, [sp, #0x8] mov r0, r5 str r1, [sp, #0xc] bl Function_201d78c mov ...
Assembly
position(b"c"); assert_eq!(pos, 31); assert_eq!(prev_record.unwrap().key, b"b"); // Between two keys with both having a different prefix and the input key having a // different length let (pos, prev_record) = records.find_key_position(b"cabefg"); assert_eq!(pos, 31); ...
Rust
Size <= 0) { OUR_DEBUG((LM_INFO, "[CPostServerData::RecvData]Get Data(%d)(%s:%d) error.\n", u2CommandID, objServerIPInfo.m_szClientIP, objServerIPInfo.m_nPort)); } OUR_DEBUG((LM_INFO, "[CPostServerData::RecvData]Get Data(%d).\n", u4SendPacketSize)); if(NULL != m_pServerObje...
C
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 th...
C++
(timestamps[1].end >= timestamps[0].start && timestamps[1].end <= timestamps[0].end) { analysis[1] = timestamps[1].end - timestamps[0].start; } return analysis; } else { return true; } } else { if (root) { return analysis; } else { return false; } } } } import { Node } from ...
Typescript
move.l #label765,8(a0) ; jmp .cont ;.next1 ; cmp.w #$567,d0 ; bne .next2 ; move.l #label567,8(a0) ; jmp .cont ;.next2 ; cmp.w #$753,d0 ; bne .next3 ; move.l #label753,8(a0) ; jmp .cont ;.next3 ; cmp.w #$675,d0 ; bne .next4 ; move.l #label675,8(a0) ; jmp .cont ;.next4 ; cmp.w #$667,d0 ; bn...
Assembly
nArgv[pinArgc++] = "-pin_path"; pinArgv[pinArgc++] = KnobPinFullPath.Value().c_str(); pinArgv[pinArgc++] = "-tools_path"; pinArgv[pinArgc++] = KnobToolsFullPath.Value().c_str(); pinArgv[pinArgc++] = "--"; CHILD_PROCESS_SetPinCommandLine(childProcess, pinArgc, pinArgv); return TRUE; } int ma...
C++
ample);mask-image:var(--md-admonition-icon--example)}.md-typeset .example>.admonition-title:after,.md-typeset .example>summary:after{color:#7c4dff}.md-typeset .admonition.quote,.md-typeset details.quote{border-color:#9e9e9e}.md-typeset .admonition.quote:focus-within,.md-typeset details.quote:focus-within{box-shadow:0 0...
CSS
.hljs-tag .hljs-title, .xml .hljs-pi, .xml .hljs-doctype, .html .hljs-doctype, .css .hljs-id, .css .hljs-class, .css .hljs-pseudo { color: #c82829; } /* Tomorrow Orange */ .hljs-number, .hljs-preprocessor, .hljs-pragma, .hljs-built_in, .hljs-literal, .hljs-params, .hljs-constant { color: #f5871f; } /* Tomorrow Y...
CSS
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
Python
import { extractTriads, swapKeyPair } from "./utils"; describe("extractTriads", () => { it("returns output with triads count", () => { const triads = {} as Triads; extractTriads(triads, "abcdefg hij kl m bcde e e"); expect(triads["abc"]).toEqual(1); expect(triads["bcd"]).toEqual(2); expect(tria...
Typescript
} accumulate(item: any, isTreeParent = false) { const val = item?.hasOwnProperty(this._field) ? item[this._field] : null; // when dealing with Tree Data structure, we need keep only the new max (without doing any addition) if (!this._isTreeAggregator) { // not a Tree structure, we'll do a regul...
Typescript
rgs() with open(args.wavs,'r') as f: wav_list = [i.strip() for i in f.readlines()] wav_list.sort() if len(wav_list) <= rank: print("[WARNING]: The number of threads exceeds the number of files") sys.exit() os.makedirs(args.rttm_dir, exist_ok=True) print("[INFO] Start cluster...
Python
using OpenCvSharp; using Sdcb.OpenVINO.PaddleOCR.Models.Online; using System.Diagnostics; using Xunit.Abstractions; namespace Sdcb.OpenVINO.PaddleOCR.Tests; public class OnlineClsTest { private readonly ITestOutputHelper _console; public OnlineClsTest(ITestOutputHelper console) { _console = cons...
C#
/* ----------------------------------------------------------------------- unix64.S - Copyright (c) 2013 The Written Word, Inc. - Copyright (c) 2008 Red Hat, Inc - Copyright (c) 2002 Bo Thorsen <bo@suse.de> x86-64 Foreign Function Interface Permission is hereby granted, free of charge, to any p...
Assembly
ust have a unique value. // Interfaces without a boot order are not tried. // +optional BootOrder *uint `json:"bootOrder,omitempty"` // If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 // +optional PciAddress string `js...
Go
RAP_RETRY saved; retry; nop;nop;nop;nop;nop;nop; #else SPILL_TRAP(0x84) #endif #endif .align 128 T0_Window_Spill_2_Normal_0x88: #ifdef H_T0_Window_Spill_2_Normal_Trap #ifdef SUN_H_T0_Window_Spill_2_Normal_Trap SUN_H_T0_Window_Spill_2_Normal_Trap #else # ifdef My_T0_Window_Spill_2_Normal_Trap My_T0_Window_Spi...
Assembly
colliding = true; // surface.bounces++; // actualBounceOrder.push(i); // totalBounces++; // //new velocity from bounce // var bounceV = (new THREE.Vector3()).copy(surface.normal); // var bounceV = cloneObject(surface.normal); // multiply(bounceV, dot(vt, surface.normal)); // mu...
Typescript
19.1h39.7c8.5 0 16.6-3.4 22.6-9.4L160 448h128l54.6 54.6c6 6 14.1 9.4 22.6 9.4H405c10 0 15-12.1 7.9-19.1l-46-46c46-7.1 81.1-46.9 81.1-94.9V96c0-53-43-96-96-96H96zM64 128c0-17.7 14.3-32 32-32h80c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32v-96zm208-32h80c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32...
Dart
<M>, S: SetImpl<M>, { get_option_impl: G, get_or_default_impl: D, mut_or_default_impl: E, set_impl: S, _marker: marker::PhantomData<(M, V)>, } impl<M, V, G, D, E, S> SingularFieldAccessor for SingularFieldAccessorImpl<M, V, G, D, E, S> where M: Message, V: ProtobufValue, G: GetOptio...
Rust