content
stringlengths
2
6.21k
label
stringclasses
16 values
utoBoxNinePiece(self.gui, self.tooltip_margin, 0, 0, false, 0, self.tooltip_img) self:SetTooltipCache(x, y, key) self.gui, self.gui_id, self.animation_id = orig_gui, orig_id, anim_id end --- Retrieves a tooltip data, drawing it off-screen if necessary --- @param x number --- @param y number --- @param ui_fn function...
Lua
icense for the specific language governing permissions and * limitations under the License. */ package app.cash.redwood.compose import androidx.compose.runtime.Composer import app.cash.redwood.RedwoodCodegenApi import app.cash.redwood.widget.WidgetFactoryOwner @PublishedApi @RedwoodCodegenApi @Suppress("NOTHING_TO_...
Kotlin
}, end: { character: 5, line: 0, offset: 5, }, }, { category: 1, code: 2451, messageText: "Cannot redeclare block-scoped variable 'x'.", start: { character: 15, line: 0, offset: 15, }, ...
Typescript
=\"C:\\Windows\\SysWOW64\\gdi32.GetCharacterPlacementW\"") #pragma comment(linker, "/export:GetClipBox=\"C:\\Windows\\SysWOW64\\gdi32.GetClipBox\"") #pragma comment(linker, "/export:GetClipRgn=\"C:\\Windows\\SysWOW64\\gdi32.GetClipRgn\"") #pragma comment(linker, "/export:GetColorAdjustment=\"C:\\Windows\\SysWOW64\\gdi3...
C++
* <!-- end-user-doc --> * @generated * @ordered */ int STRING_EVALUATOR__EXPR = ENTRY_FEATURE_COUNT + 1; /** * The number of structural features of the '<em>String Evaluator</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ int STRING_EVALUATOR_F...
Java
g_item(config_key) if not target_downloaders: return target_downloader_ids for target_downloader in target_downloaders: if target_downloader == 'default': target_downloader = settings.DEFAULT_DOWNLOADER if target_downloader and target_downloader not in...
Python
t_x, parent_y = 0, 0 if parent then parent_x, parent_y = parent.x, parent.y end if self.only_drag_horizontally or (not self.only_drag_horizontally and not self.only_drag_vertically) then self.drag_x = self.drag_x + dx if self.drag_min_limit_x then if (parent_x +...
Lua
KEY.trim_end().into(), }; let config = LoraConfig::new() .region(LoraRegion::EU868) .lora_mode(LoraMode::WAN) .spreading_factor(SpreadingFactor::SF9); defmt::info!("Configuring with config {:?}", config); static mut RADIO_BUFFER: [u8; 256] = [0; 256]; let lora = unsafe { ...
Rust
auto; } .media > .pull-left { float: right; margin-left: 10px; margin-right: 0; } .media > .pull-right { float: left; margin-right: 10px; margin-left: 0; } .widget-chat .media small.author { left: auto; right: 0; } .widget-chat .media.right small.author { left: 0; right: auto; } .breadcrumb li a.glyphicons { padd...
CSS
: live variables = %s, weak live variables = %s" % (index, sorted(yp.live_vars), sorted(yp.weak_live_vars)), file=file) def render_dot(self, filename_prefix="numba_ir", include_ir=True): """Render the CFG of the IR with GraphViz DOT via the ``graphviz`` python bi...
Python
.leetCode.minimumSizeSubarraySum209 import kotlin.math.min /* Given an array of positive integers nums and a positive integer target, return the minimal length of a whose sum is greater than or equal to target. If there is no such subarray, return 0 instead. Example 1: Input: target = 7, nums = [2,3,1,2,4,3] Out...
Kotlin
= 260)] internal string Tip; [MarshalAs(UnmanagedType.U4)] internal ThumbButtonOptions Flags; } #endregion; internal static class TaskbarNativeMethods { internal static class TaskbarGuids { internal static Guid IObjectArray = new Guid("92CA9DCD-5622-4...
C#
SketchEditorTool.Elements.ConstraintsVisible = true; SketchEditorTool.Elements.Activate(true, true, true); base.Cleanup(); } //-------------------------------------------------------------------------------------------------- #region Actions protected bool StartAction(ToolAction toolA...
C#
5%">这么晚了,要回神社了呢。 </td></tr> <tr> <td align="center" width="22.75%" height="50px" style="background:#58D3F7"><b>晚上好:</b></td> <td width="77.25%">那个,有什么事情找我吗?我尽量帮助你吧,这么晚还是不要惊扰到二位神灵了。 </td></tr></tbody></table> <table> <tbody><tr> <td class="mbox-image"><div style="width: 52px;"> <img alt="" src="https://upload.wikime...
Markdown
elow. /// </summary> [Input("launchParameters")] public Input<Inputs.PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersGetArgs>? LaunchParameters { get; set; } /// <summary> /// The regional endpoint to which to direct the request. /// </summary> [Inpu...
C#
03'/%3E%3Cpath class='cls-1' d='M24.1 5.39h-2.56a2 2 0 01-2 1.59h-1a2 2 0 01-2-1.59h-4.28a2 2 0 01-2 1.59h-1a2 2 0 01-2-1.59H4.75a2.07 2.07 0 00-2.08 2.07v14.75a2.07 2.07 0 002.07 2.07H24.1a2.07 2.07 0 002.07-2.07V7.46a2.07 2.07 0 00-2.07-2.07zm-.29 16.15H5.23V8.45h18.58z'/%3E%3Cpath class='cls-1' d='M7.18 11.71h2.5v2....
CSS
Set<'a' | 'b'>, Readonly<Partial<Record<'a' | 'b', true>>>>(identity); leibnizTest<PojoSet<string>, Readonly<Partial<Record<string, true>>>>(identity); leibnizTest<PojoSet<number>, Readonly<Partial<Record<number, true>>>>(identity); leibnizTest<PojoSet<MyHybridEnum>, Readonly<Partial<Record<MyHybridEnum, tr...
Typescript
;box-shadow:inset 0 1px 0 0 #606877}.x-resizable-over .x-resizable-handle-east,.x-resizable-over .x-resizable-handle-west,.x-resizable-pinned .x-resizable-handle-east,.x-resizable-pinned .x-resizable-handle-west{background-position:left}.x-resizable-over .x-resizable-handle-south,.x-resizable-over .x-resizable-handle-n...
CSS
? ' BINARY' : ''} (${w})`; } else { limit = ''; } resolve({ limit, values }); }) } insertSql(options: InsertOptions<T>) { return myPromiseCatch(async (resolve, reject) => { let { table, kv } = options; let keys: string[] = []; let values: myType[] = []; fo...
Typescript
import logging import spacy from spacy.matcher import PhraseMatcher log = logging.getLogger(__name__) nlp = spacy.blank("en") nlp.vocab.lex_attr_getters = {} def build_term_vocab(terms: list[str]): """Builds nlp vocabulary.""" for v in terms: texts = [v, v.lower(), v.upper(), v.title()] for...
Python
[51.634, 5.886], {} ).addTo(feature_group_sub_group_b9d7aa90a1b5b01981bb2e3f20e52aa1); var icon_76d7afad464e587aa99cca25a46d5066 = L.AwesomeMarkers.icon( {"description": "PM\u2082.\u2085, PM\u2081\u2080", "extraClasses": "fa-rotate-0...
HTML
[bits 32] section .text global switch_to switch_to: ; The return address is located here on the stack. push esi push edi push ebx push ebp mov eax, [esp + 20] ; Get the parameter `cur` from the stack, cur = [esp + 20]. mov [eax], esp ; Save the stack pointer (esp) into the `se...
Assembly
.Should().BeFalse(); } [Fact] public void WhenHasNoneAndSome_ThenReturnsFalse() { var roles = Roles.Empty; roles = roles.Add(PlatformRoles.Standard).Value; var result = roles.HasNone(); result.Should().BeFalse(); } [Fact] public void WhenHasNoneAndNone_The...
C#
e L Letter Ll Lower case letter Lm Modifier letter Lo Other letter Lt Title case letter Lu Upper case letter L& Ll, Lu, or Lt M Mark Mc Spacing mark Me Enclosing mark Mn Non-spacing mark N Numbe...
HTML
ll origin back to (x, y, z, w) space double Y0 = j - t; double Z0 = k - t; double W0 = l - t; double x0 = x - X0; // The x, y, z, w distances from the cell origin double y0 = y - Y0; double z0 = z - Z0; double w0 = w - W0; // For the 4D case, the simplex is a 4D shape I won't even try to...
Java
mov \irqnr, #4 mov \mask, \mask, lsl #16 and \stat, \stat, \mask, lsr #16 movs \stat, \stat, lsr #4 bne 1001f add \base, \base, #INTSR2 - INTSR1 ldr \stat, [\base, #INTSR1] ldr \mask, [\base, #INTMR1] mov \irqnr, #16 mov \mask, \mask, lsl #16 and \stat, \stat, \mask, lsr #16 1001: tst \stat, #255...
Assembly
0 45.3s32.8 12.5 45.3 0l160-160z"]},Qm={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M224 32L64 32C46.3 32 32 46.3 32 64l0 64c0 17.7 14.3 32 32 32l377.4 0c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7L288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32zM480 256c0-17...
JavaScript
qN(2,4))) ); VERIFY( is_same_eq(A.col(A.cols()-1), A(all,last)) ); const ArrayXXi& cA(A); VERIFY( is_same_eq(cA.col(0), cA(all,0)) ); VERIFY( is_same_eq(cA.row(0), cA(0,all)) ); VERIFY( is_same_eq(cA.block(0,0,2,2), cA(seqN(0,2),seq(0,1))) ); VERIFY( is_same_eq(cA.middleRows(2,4), cA(seqN(2,4)...
C++
`), ReqHeaders: map[string]string{"Authorization": "Bearer test"}, } router := &pdRouter{ prefixCacheIndexer: prefixcacheindexer.NewPrefixHashTable(), cache: cache.NewWithPodsForTest(prefillPods, "test-model"), tokenizer: tokenizer.NewCharacterTokenizer(), } _, err := router.doPrefil...
Go
kuchen-vom-Blech.jpg&description=Einfaches+Zitronenkuchen-Rezept%2C+das+auch+Anf%C3%A4nger+leicht+nachbacken+k%C3%B6nnen.+Der+Zitronenblechkuchen+ist+sehr+saftig+und+h%C3%A4lt+mehrere+Tage+frisch." title="Share on Facebook" onclick="essb.window(&#39;https://www.facebook.com/dialog/feed?app_id=407124762689398&amp;displa...
HTML
printf("pop: don't know where we get called from"); result = STATUS_FAILED; return; } } #ifdef STATIC_BUILD JNIEXPORT jint JNICALL Agent_OnLoad_popframe006(JavaVM *jvm, char *options, void *reserved) { return Agent_Initialize(jvm, options, reserved); } JNIEXPORT jint JNICALL Agent_OnAt...
C++
9 ! 9013: WRHPR_HPSTATE_I wrhpr %r0, 0x0f59, %hpstate setx data_start_4, %g1, %r22 ta T_CHANGE_HPRIV mov 0x38, %g1 stxa %r22, [%g1] 0x58 ta T_CHANGE_NONHPRIV .word 0xf44de1c9 ! 9017: LDSB_I ldsb [%r23 + 0x01c9], %r26 .word 0xf25d8000 ! 9023: LDX_R ldx [%r22 + %r0], %r25 .word 0x8794e156 ! 9024: WRPR_TT_I wr...
Assembly
ions/dropout/grid_dropout.py" target="_blank">/custom_nodes/comfyui_controlnet_aux/src/custom_albumentations/augmentations/dropout/grid_dropout.py</a><br> <b>Line number: </b>127<br> <b>More info: </b><a href="https://bandit.readthedocs.io/en/1.7.9/blacklists/blacklist_calls.html#b311-random" target="_blank">ht...
HTML
guibg = "NONE", gui = { "bold", "underline" }, }, ModeMsg = hlgroup { name = "ModeMsg", guifg = get { "DiffText", "guifg" }, guibg = get { "DiffText", "guibg" }, gui = "NONE", }, MoreMsg = hlgroup { name = "MoreMsg", guifg = get { "DiffText", "guifg" }, guibg = get { "DiffText", "guibg" ...
Lua
re + HOST1X_SYNC_CFPEEK_CTRL); writel(HOST1X_CREATE(SYNC_CFPEEK_CTRL, ENA, 1) | HOST1X_CREATE(SYNC_CFPEEK_CTRL, CHANNR, chid), m->sync_aperture + HOST1X_SYNC_CFPEEK_CTRL); val = readl(m->sync_aperture + HOST1X_SYNC_CFPEEK_PTRS); rd_ptr = HOST1X_VAL(SYNC_CFPEEK_PTRS, CF_RD_PTR, val); wr_ptr = HOST1X_VAL(SYNC_C...
C
Image = portalImage state.PortalSsoUrl = portalSsoUrl state.Qos = qos state.Radsec = radsec state.Rateset = rateset state.ReconnectClientsWhenRoamingMxcluster = reconnectClientsWhenRoamingMxcluster state.RoamMode = roamMode state.Schedule = schedule state.SiteId = siteId state.SleExcluded = sleExcluded state....
Go
// 현재 타입은 알고있음. if (type.Equals(Type.Canned_YELLOW)) // 번개 { // 현재 wayPoint : 시작할 때 Game_TypeWriterEffect 에서 초기화해서 쌓아둠 if (Game_TypeWriterEffect.instance.wayPoint == 1) { Game_TypeWriterEffect.instance.Show_EventStoryText(11); } // 공통 if (Game_TypeWriterEffec...
C#
master/LICENSE) *//*! * Bootstrap v4.3.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */:root{--blue:#4e73df;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#e74a3b;--...
CSS
Collection extends Array<ID3Frame> {} /** * ID3v2 metadata comes at the beginning of the MP3 file and starts off with a 10 byte header. */ const HEADER_SIZE = 10; /** * Possible values for encoding byte. For example, when encoding is set to * 0 we interpret the frame’s content as ascii. */ const ID3_ENCODINGS = ...
Typescript
⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟"], 'nurse': ["🧑‍⚕️","👩‍⚕️","👨‍⚕️","💉","🩸","🩹","🩺"], 'nursing': ["🤱","👩‍🍼","👨‍🍼","🧑‍🍼"], 'nut': ["🥜"], 'nut_and_bolt': ["🔩"], 'nz': ["🇳🇿"], 'o': ["⭕","🇴"], 'o2': ["🅾️"], 'oar': ["🚣‍♂️"], 'oatmeal': ["🥣"], 'obtain': ["�...
Dart
me here to me.</p> <p><b>Monica:</b> All right, hold on okay? First thing's first. (Gets her cleaning gloves on) Okay, now did Ross sit <b>anywhere </b>while he was naked?</p> <p align="center"><strong>Closing Credits</strong></p> <p>[Scene: Central Perk, Ross, Janine and Chandler are there]</p> <p><b>Ross:</b> So ...
HTML
1142309L, -3947191644612298897L, 1364225714229764884L, 2580394324892542249L, -3765315378396862242L, 6023794482194323576L, -662753714084561214L, 3080495347149127717L, 911710215008202776L, -803705685664586056L, -6101059689379533503L, -2122356322512227634L,...
Java
l); hb.Put(false); hb.Put((bool?)false); hb.Put((bool?)null); hb.Put("aaaa"); hb.Put((string)null); var w = hb.Writer; const string expected = "9AAD24025A0E2BD8AAFE4A8EF2DFADF8EA84DF28038E8921E2F1081E59410"; ...
C#
w,v*.w,r*):rnd:sat", hvx_width / 2, i16_sat((i64(i32_1) + 512) / 1024)); check("v*.uh = vasr(v*.uw,v*.uw,r*):rnd:sat", hvx_width / 2, u16_sat((u64(u32_1) + 1024) / 2048)); check("vshuff(v*,v*,r*)", hvx_width * 2, select((x % 2) == 0, in_u8(x / 2), in_u8((x + 16) / 2))); check("vshuff(v*,v*,r*)"...
C++
riveCommonMapper import org.asam.opendrive17.E_AccessRestrictionType import org.asam.opendrive17.E_LaneType import org.asam.opendrive17.E_RoadMarkColor import org.asam.opendrive17.E_RoadMarkRule import org.asam.opendrive17.E_RoadMarkType import org.asam.opendrive17.E_RoadMarkWeight import org.asam.opendrive17.E_Road_La...
Kotlin
(See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/sort/ for library home page. /* Some improvements suggested by: Phil Endecott and Frank Gennari Doxygen comments by Paul A. Bristow Jan 2015 */ #ifndef BOOST_INTEGER_SORT_HPP #de...
C++
4.1 24.1 0 0124-24h152a24.1 24.1 0 0124 24Zm-77.4 51.5a7.9 7.9 0 00-6.6-3.5h-20.2l11.6-29a8 8 0 10-14.8-6l-16 40a8 8 0 00.8 7.5 7.9 7.9 0 006.6 3.5h20.2l-11.6 29a7.9 7.9 0 004.4 10.4 8 8 0 003 .6 7.9 7.9 0 007.4-5l16-40a8 8 0 00-.8-7.5Z"/></svg>'; static const String battery_charging_light = '<svg xmlns="http:/...
Dart
---------------------------------------------------------------- -- Copyright (c) 2010-2017 Zipline Games, Inc. -- All Rights Reserved. -- http://getmoai.com ---------------------------------------------------------------- MOAISim.openWindow ( "test", 320, 480 ) viewport = MOAIViewport.new () viewport:setSize ( 320...
Lua
PNP_EVENT.NdisReserved", ndis_reserved, 0xc0, 0x0, true, 0x4c8ed69c9e6c6e08) #define _m04 _SDK_MAGIC_PROPERTY(_SDK_ESCAPE(sdk::array<uint64_t, 4>), "_NET_PNP_EVENT.TransportReserved", transport_reserved, 0x1c0, 0x0, true, 0x95de6ca6a0bd1c32) #define _m05 _SDK_MAGIC_PROPERTY(_SDK_ESCAPE(sdk::array<uint64_t, 4>), "_NET_P...
C++
} if (depth != 0) { fo << std::endl; } for (int i = 0; i < depth + 1; ++i) { fo << " "; } } else { for (int i = 0; i < depth; ++i) { fo << '\t'; } } if (tree[nid].IsLeaf()) { if (format == "json") { fo << "{ \"nodeid\": " << nid << ", \"leaf\": " << ...
C++
/* * ngtcp2 * * Copyright (c) 2020 ngtcp2 contributors * * 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, m...
C
@override final int typeId = 7; @override PostBaseData read(BinaryReader reader) { final numOfFields = reader.readByte(); final fields = <int, dynamic>{ for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), }; return PostBaseData( id: fields[0] as int, forumId...
Dart
-- -- This file is part of PCAPdroid. -- -- PCAPdroid is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- PCAPdroid is distr...
Lua
Item(fakeCustomDirectories[1])) } @Test fun insertTwoSameCustomDirectory_GetAllShouldReturnOne() { val fakeCustomDirectories = TestUtil.createCustomDirectories(1) db.customDirectoryDao().insert(fakeCustomDirectories[0]) db.customDirectoryDao().insert(fakeCustomDirectories[0]) ...
Kotlin
Continuation _c_, and performs the following steps: 1. Let _d_ be an internal Continuation closure that takes one State argument _y_ and performs the following steps: 1. Let _cap_ be a copy of _y_'s _captures_ List. 1. Let _xe_ be _x_'s _endIndex_. 1. Let _ye_ be _y_'s _endIndex_....
HTML
1,31.09},{49.0,28.35},{49.49,27.98}}},nil,12,nil,nil,26,nil,nil,0}, [82] = {'Crazy Leonetti',137,137,7,7,0,nil,nil,0,nil,nil,35,"AH",nil,0}, [87] = {'Forest Troll Berserker',55,86,2,4,0,nil,nil,0,nil,nil,14,nil,nil,0}, [89] = {'Infernal',3544,3544,50,50,0,nil,nil,0,nil,nil,954,nil,nil,0}, [90] = {'Sea Giant',1524,1524,...
Lua
this.wheelDelta = wheelDelta; } }import { Transport, LoadedProducts, CancelReason } from "./types"; import { Context } from "@azure/functions"; import moment from "moment"; export interface InputParameters { clientId: any; clientSecret: any; objectId: any; tenantId: any; environment: any; } export funct...
Typescript
= { name: 'lazy', params: { lazy: { enabled: false, loadPrevNext: false, loadPrevNextAmount: 1, loadOnTransitionStart: false, elementClass: 'swiper-lazy', loadingClass: 'swiper-lazy-loading', loadedClass: 'swiper-lazy-loaded', preloaderClas...
JavaScript
clared as deterministic and should be used whenever result\n caching is acceptable.</p>\n <p xmlns:xqdoc="http://www.xqdoc.org/1.0">The S3 object is specified through the $s3-object parameter. Either a string\n or a JSON object can be used. If a string is specified, it is interpreted as\n key for an object in the defau...
JavaScript
''' Ossim Action Responses Framework (Cisco) This script requires snmpset You need a list of valid devices/communities ''' import os import sys import commands import re device = '192.168.1.252' comm = 'private' #Close a specific tty def closeTTY(tty): os.system('snmpset -c %s -v 1 %s 1.3.6.1.4.1.9.2.9.10.0 integer...
Python
// CHECK: encoding: [0x62,0xf2,0x7d,0x48,0x42,0x4a,0x7f] vgetexpps zmm1, zmmword ptr [rdx + 8128] // CHECK: vgetexpps zmm1, zmmword ptr [rdx + 8192] // CHECK: encoding: [0x62,0xf2,0x7d,0x48,0x42,0x8a,0x00,0x20,0x00,0x00] vgetexpps zmm1, zmmword ptr [rdx + 8192] // CHECK: vgetexpps zmm1, zmmword ...
Assembly
��典)布兰克;(法)布朗克", "blancmange":"n. 牛奶冻", "blancmanger":" 制牛奶冻粉", "blancmanges":"n. 牛奶冻", "Blanco":"<英> ([复]-cos) n.布兰可擦白剂\\nvt.用布兰可擦白剂擦", "blancol":"英国军队用来刷白腰带或其它设备的物质", "Blancophor R":"[化] 布兰科漂白剂R", "blancos":"n. 布兰可擦白剂 (blanco的变形)", "blancs":"(blanc 的复数) n. 白", "bland":"a. 温和的, 乏味的, 冷漠的\\n[医] 温和的, 淡的", "bland bath":"[...
Typescript
B;C414;110A 116B 11AB; # (쐔; 쐔; 쐔; 쐔; 쐔; ) HANGUL SYLLABLE SSWAEN C415;C415;110A 116B 11AC;C415;110A 116B 11AC; # (쐕; 쐕; 쐕; 쐕; 쐕; ) HANGUL SYLLABLE SSWAENJ C416;C416;110A 116B 11AD;C416;110A 116B 11AD; # (쐖; 쐖; 쐖; 쐖; 쐖; ) HANGUL SYLLABLE SSWAENH C417;C417;110A 116B 11AE;C417;110A 116B 11AE; # (쐗; 쐗; 쐗; 쐗; 쐗; ) HANGUL S...
Kotlin
.toJson(dataKeyMap).getBytes())); //剪枝 if (dataKeyList.contains(dataKey)) { testCaseCutAI.getPrepareData().get(groupNum).get(dataType).get(detailNum).getData().remove(recordNum); if (testCaseCutAI.get...
Java
/* Copyright (c) 2016-2021, The Tor Project, Inc. */ /* See LICENSE for licensing information */ #include "orconfig.h" #include "test/test.h" #include "lib/container/handles.h" #include "lib/log/util_bug.h" #include <stdio.h> typedef struct demo_t { HANDLE_ENTRY(demo, demo_t); int val; } demo_t; HANDLE_DECL(de...
C
# -*- coding: utf-8 -*- """ .. _example_explore_database_vaex: ================================ Explore Line Database Parameters ================================ Database will be downloaded automatically and can be edited locally. The :ref:`Download HITRAN Database example <example_download_hitemp>` showed how to do...
Python
t'>Older Post</a> </span> <a class='home-link' href='https://www.luxuryhaven.co/'>Home</a> </div> <div class='clear'></div> </div><div class='widget HTML' data-version='1' id='HTML10'> <div class='widget-content'> <div id="novaly_media_ads_custom"></div> <script type="text/javascript"> var bodyObj = document.getEle...
HTML
",a.class),r}),"drawRect"),e=t(((t,a)=>{const r={x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,stroke:a.stroke,class:"rect"};s(t,r).lower()}),"drawBackgroundRect"),n=t(((t,r)=>{const s=r.text.replace(a," "),e=t.append("text");e.attr("x",r.x),e.attr("y",r.y),e.attr("class","legend"),e....
JavaScript
trace!(system_run_mode = "splinter"); let mut bindings = self.make_bindings_storage(inputs)?; let mut total_count = 0; let mut stopped = false; 'firing: for rule in &self.rules { total_count += runtime::splinter_rule(rule, tx, &mut bindings, |new_tx| { let re...
Rust
< 1024 } else { file.Size = 925 // 900 + 10 * 10 > 1024 } err := ctx.GetMetadataBackend().CreateUpload(upload) require.NoError(t, err) params := &common.Upload{User: ctx.user.ID} for i := 0; i < 10; i++ { file := &common.File{Name: "foo", Size: 10} params.Files = append(params.Files, file) } err = ctx...
Go
is empty, it means the user didn't specify a --scope-output // flag, so allow everything. if (isEmpty) return true; final scriptUri = Uri.parse(scriptUriString); if (scriptUri.scheme != 'package') return false; final scope = scriptUri.pathSegments.first; return contains(scope); } } // Copyr...
Dart
().unwrap().as_raw_fd()).reregister(poll, token, interest, opts) } fn deregister(&self, poll: &Poll) -> std::io::Result<()> { EventedFd(&self.read.lock().unwrap().as_raw_fd()).deregister(poll) } } #[cfg(target_os = "macos")] impl SpawnQueue { fn new_impl() -> Fallible<Self> { let spawn...
Rust
static Future<void> updateOtherModels() async { await Future.wait([ gFFI.abModel.pullAb(force: ForcePullAb.listAndCurrent, quiet: false), gFFI.groupModel.pull() ]); } Future<void> logOut({String? apiServer}) async { final tag = gFFI.dialogManager.showLoading(translate('Waiting')); tr...
Dart
IsolateTarget_WithRegexMatching_ReturnsTarget(t *testing.T) { target, err := GetIsolateTarget("android-pixel4_webview-perf", "benchmark") assert.Equal(t, target, "performance_webview_test_suite") assert.NoError(t, err) } func TestGetIsolateTarget_WithConfigUnlistedBot_ReturnsTarget(t *testing.T) { target, err := G...
Go
xff, 0xff}, // Incomplete expectedVal: 0, expectedN: 2, // Read 2 bytes before EOF expectError: true, errorMsg: "EOF", }, { name: "zero value", input: []byte{0x00}, expectedVal: 0, expectedN: 1, expectError: false, }, } for _, tt := range tests { t.Run(tt.name, ...
Go
import pytest from unittest.mock import patch, MagicMock import os from app.core.query_parser import QueryParser from app.core.llm_client import LLMClient from app.models.metadata import QueryMetadata def test_query_parsing_integration(): """测试查询解析的集成流程""" # 创建一个模拟的查询文本 sample_query_text = "寻找3年以上经验的Pyth...
Python
)) { chosenType.value = v; } } } return Column( children: [ TextButton( onPressed: () { onChanged(kbLayoutType); }, child: _KBImage( kbLayoutType: kbLayoutType, imageWidth: imageWidth, chosenType...
Dart
ose: 'true' ``` ## License This action is part of the OWASP Noir project and is licensed under the MIT License. ## Contributing Contributions are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file in the main repository. +++ title = "출력 형식" description = "Noir는 스캔 결과를 최대한 활용할 수 있도록 광범위한 출력 형식을 지원합니다. 이...
Markdown
_buf(), vim.api.nvim_get_current_win(), { 6, 0 } ) local siblings = symbols[1].siblings ---@type dropbar_symbol_t[] assert.is_truthy(siblings) assert.are.equal(4, #siblings) assert.is.same('s1',
Lua
} # AVX512{F,VL} vfmsubadd231pd (%ecx), %xmm5, %xmm6{%k7} # AVX512{F,VL} vfmsubadd231pd -123456(%esp,%esi,8), %xmm5, %xmm6{%k7} # AVX512{F,VL} vfmsubadd231pd (%eax){1to2}, %xmm5, %xmm6{%k7} # AVX512{F,VL} vfmsubadd231pd 2032(%edx), %xmm5, %xmm6{%k7} # AVX512{F,VL} Disp8 vfmsubadd231pd 2048(%edx), %xmm5, %xmm6...
Assembly
""") abstract fun unfoldDescendantsUnderId(bookId: Long, noteId: Long, lft: Long, rgt: Long) @Query("UPDATE notes SET lft = lft + :inc WHERE (book_id = :bookId AND $WHERE_EXISTING_NOTES) AND lft >= :value") abstract fun incrementLftForLftGe(bookId: Long, value: Long, inc: Int) @Query("UPDATE notes SET...
Kotlin
# flake8: noqa from pre_award.fund_store.config.fund_loader_config.cof.cof_r4 import ( APPLICATION_BASE_PATH_COF_R4_W1, ) from pre_award.fund_store.config.fund_loader_config.cof.cof_r4 import ( ASSESSMENT_BASE_PATH_COF_R4_W1, ) from pre_award.fund_store.config.fund_loader_config.cof.cof_r4 import COF_ROUND_4_WI...
Python
number { 1 => { ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.registration)?; }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; }, ...
Rust
<B>Spinner</B><br> </td> <td valign=top> </pre><H2>DESCRIPTION</H2><br> command<br> of<br> in<br> The<br> month,<br> spinner<br> The<br> a<br> whose<br> This<br> used<br> operations<br> It<br> general<br> option<br> </pre><br> <I>arg</I>s<br> behavior<br> The<br> possible<br> </pre><H2>WIDGET-SPECIFIC<br> <I>pathName<...
HTML
) @AccessApiOverload public inline fun <T, reified C : Comparable<C & Any>?> PivotGroupBy<T>.maxBy( column: KProperty<C>, skipNaN: Boolean = skipNaNDefault, ): ReducedPivotGroupBy<T> = maxBy(column.toColumnAccessor(), skipNaN) // endregion // region binary compatibility @Suppress("UNCHECKED_CAST") @Deprecate...
Kotlin
; } .ui.ribbon.label:after { position: absolute; content: ''; top: 100%; left: 0; background-color: transparent; border-style: solid; border-width: 0 @ribbonTriangleSize @ribbonTriangleSize 0; border-color: transparent; border-right-color: inherit; width: 0; height: 0...
CSS
/* ------------------------------------------------------------------------ * project: Surf * file: btree.h * begin: Feb 2004 * copyright: (c) 2004 by <david.eller@gmx.net> * ------------------------------------------------------------------------ * binary tree * ----------------------------------...
C
son: List of the labels for x_poison. :return: A pair of poisoned samples, B-score (cosine similarity of the gradients). """ self.backdoor_model.compile(loss=None, optimizer=self.optimizer) callbacks = [self.lr_schedule] if self.verbose > 0: from tqdm.keras import Tq...
Python
+ (shift % 26); if (index > 25) { index -= 26; } if (index < 0) { index += 26; } encodedLetterArr.push(alphabet[index]); } return encodedLetterArr.join(""); } const inputString = "abc"; const letterShift = 4; console.log(caesarCipher(inputString, letterShift)); import { createEffe...
Typescript
#[inline(always)] pub fn cfg(&mut self) -> CFG_W { CFG_W { w: self } } } <gh_stars>1-10 #![cfg(feature = "cloudformation")] extern crate rusoto_core; extern crate rusoto_cloudformation; use rusoto_cloudformation::{CloudFormation, CloudFormationClient, ListStacksInput}; use rusoto_core::{DefaultCredent...
Rust
00F "#; pub trait VecLike<T>: AsRef<[T]> { fn clear(&mut self); fn push(&mut self, item: T); } impl<T> VecLike<T> for Vec<T> { #[inline] fn clear(&mut self) { Vec::clear(self) } #[inline] fn push(&mut self, item: T) { Vec::push(self, item) } } impl<A: Array> VecLike<...
Rust
// // LBXScanView.h // // github:https://github.com/MxABC/LBXScan // Created by lbxia on 15/11/15. // Copyright © 2015年 lbxia. All rights reserved. // #import <UIKit/UIKit.h> #import "LBXScanLineAnimation.h" #import "LBXScanNetAnimation.h" #import "LBXScanViewStyle.h" /** 扫码区域显示效果 */ @interface LBXScanView :...
C
::{ Builder, Env }; use futures::{ prelude::*, select }; #[async_std::main] async fn main() -> Result<(), Box<dyn Error>> { Builder::from_env(Env::default().default_filter_or("info")).init(); println!("GOSSIP SUB"); let local_key = identity::Keypair::generate_ed25519(); let local_pe...
Rust
List<CommunitySpacePersonTimeDto> communitySpacePersonTimeDtos = communitySpacePersonTimeV1InnerServiceSMOImpl.queryCommunitySpacePersonTimes(communitySpaceOpenTimeDto); List<CommunitySpacePersonTimeDto> tmpCommunitySpaceOpenTimeDtos = null; for (CommunitySpacePersonDto communit...
Java
esc_pool; struct dma_pool *hw_desc_pool; }; /* Per job ring data structure */ struct fsl_re_chan { char name[16]; spinlock_t desc_lock; /* queue lock */ struct list_head ack_q; /* wait to acked queue */ struct list_head active_q; /* already issued on hw, not completed */ struct list_head submit_q; struct list_...
C
"""Сделайте сценарий для добавления нового товара (продукта) в учебном приложении litecart (в админке). Для добавления товара нужно открыть меню Catalog, в правом верхнем углу нажать кнопку "Add New Product", заполнить поля с информацией о товаре и сохранить. Достаточно заполнить только информацию на вкладках General, ...
Python
16v494zM472 744a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm16-104h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8z")),t.FileImageOutline=l("file-image",a,c(i,"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 0 0-12.6 0l-99.8 127.2a7.98 7.98 0 0 0 6.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 ...
JavaScript
,0x11,0x00,0x00] v_madmk_f16 v5, -1, 0x1121, v3 // CHECK: [0xc1,0x06,0x0a,0x48,0x21,0x11,0x00,0x00] v_madmk_f16 v5, 0.5, 0x1121, v3 // CHECK: [0xf0,0x06,0x0a,0x48,0x21,0x11,0x00,0x00] v_madmk_f16 v5, -4.0, 0x1121, v3 // CHECK: [0xf7,0x06,0x0a,0x48,0x21,0x11,0x00,0x00] v_madmk_f16 v5, v1, 0xa1b1, v3 // CHECK: [0x01,...
Assembly
implements ParticleT { radius: number radius_bubble?: number x: number vx: number y: number vy: number vs!: number opacity: number opacity_bubble?: number opacity_status!: boolean vo!: number size_status!: boolean vx_i: number vy_i: number shape: Shape = 'circle' static canvas: Canvas ...
Typescript
= ref_33266 # MOV operation ref_36732 = ref_33370 # MOV operation ref_37630 = ref_17346 # MOV operation ref_37714 = ref_36732 # MOV operation ref_37718 = ref_37630 # MOV operation ref_37720 = (ref_37718 | ref_37714) # OR operation ref_37821 = ref_37720 # MOV operation ref_37835 = (ref_37821 >> (0x1 & 0x3F)) # SHR oper...
Python