content
stringlengths
2
6.21k
label
stringclasses
16 values
s, ); } } const carpetPalette = [ { "index": 0, "id": "black_carpet", "pathId": "wool_colored_black", "average": [20, 21, 25], "hasSemitransparentPixel": false, }, { "index": 1, "id": "blue_carpet", "pathId": "wool_colored_blue", "average": [53, 57, 157], "hasSemitran...
Dart
ec4f { result.x = this[0, col] result.y = this[1, col] result.z = this[2, col] result.w = this[3, col] return result } fun getOrigin(result: MutableVec3f): MutableVec3f { result.x = this[0, 3] result.y = this[1, 3] result.z = this[2, 3] re...
Kotlin
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-m-beta-xr_w32_bld-00000000/build/dom/interfaces/base/nsIIdleObserver.idl */ #ifndef __gen_nsIIdleObserver_h__ #define __gen_nsIIdleObserver_h__ #ifndef __gen_domstubs_h__ #include "domstubs.h" #endif /* For IDL files that don't want to includ...
C
A, 's' LD A, 't' LD A, 'u' LD A, 'v' LD A, 'w' LD A, 'x' LD A, 'y' LD A, 'z' LD A, '{' LD A, '|' LD A, '}' LD A, '~' ; Escaped characters DB '\a' DB '\b' DB '\e' DB '\f' DB '\n' DB '\r' DB '\t' DB '\v' DB '\\' DB '\'' DB '\"' DB...
Assembly
, 1] = (timeInterval * timeInterval) / 2f; singleArray1[3, 1] = timeInterval; singleArray1[4, 2] = (timeInterval * timeInterval) / 2f; singleArray1[5, 2] = timeInterval; float[,] matrix = singleArray1; float[,] b = MatrixF.Diagonal<float>(matrix.ColumnCount<float>(), acceleration...
C#
WsmAuto.??0AutoChainContext@@QAE@PBU_CERT_CHAIN_CONTEXT@@@Z\"") #pragma comment(linker, "/export:??0AutoChainContext@@QAE@XZ=\"C:\\Windows\\SysWOW64\\WsmAuto.??0AutoChainContext@@QAE@XZ\"") #pragma comment(linker, "/export:??0AutoCoTaskMemFree@@QAE@PAX@Z=\"C:\\Windows\\SysWOW64\\WsmAuto.??0AutoCoTaskMemFree@@QAE@PAX@Z\...
C++
a bitmap font description file from resource id. returns existed one if it is already loaded * * @param resId resource id of bitmap font description file * \else * 载入一个图片字体的描述文件, 如还没有创建,创建一个新font,否则返回之前创建的 * * @param resId 图片字体描述文件的资源ID * \endif */ public static BitmapFont loadFont(int resId) { retur...
Java
Log log) { this.program = p; listing = program.getListing(); refMgr = program.getReferenceManager(); equateTable = program.getEquateTable(); alustaReg = program.getRegister("ALUSTA"); pclathReg = program.getRegister("PCLATH"); pclReg = program.getRegister("PCL"); wReg = program.getRegister("WREG"); ...
Java
// component and the arc size of the component. The returned function returns // nil, 0 after returning all connected components. // // There are equivalent labeled and unlabeled versions of this method. // // See also ConnectedComponentBits, ConnectedComponentInts, and // ConnectedComponentReps. func (g Undirected) C...
Go
ubnode(getManager(), persistItems, deliverPayload); } @Override protected int getMaxConnections() { return 1; } } /* * 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:/...
Java
01,0x1b,0x00,0xff] v_cmpx_lt_f32_e64_dpp v1, v2 quad_perm:[0,1,2,3] // GFX12: [0x7e,0x00,0x91,0xd4,0xfa,0x04,0x02,0x00,0x01,0xe4,0x00,0xff] v_cmpx_lt_f32_e64_dpp v1, v2 row_mirror // GFX12: [0x7e,0x00,0x91,0xd4,0xfa,0x04,0x02,0x00,0x01,0x40,0x01,0xff] v_cmpx_lt_f32_e64_dpp v1, v2 row_half_mirror // GFX12: [0x7e,0x00...
Assembly
nuPadding, ScrollController? scrollController, required GetInitPeers getInitPeers}) : super( key: key, name: 'address book peer', loadEvent: LoadEvent.addressBook, peerFilter: (Peer peer) => _hitTag(gFFI.abModel.selectedTags, peer.tags), ...
Dart
/* { dg-do compile } */ /* { dg-options "-mavx512bw -mavx512vl -O2" } */ /* { dg-final { scan-assembler-times "vpcmpub\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\]*%k\[0-7\](?:\n|\[ \\t\]+#)" 1 } } */ /* { dg-final { scan-assembler-times "vpcmpub\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\]*%k\[0-7\](?:\n|\[ \\t\]+#)" 1 } } */ /* { ...
C
) matcherMap := make(map[string]*ammodels.Matcher) rules := strings.Join(param.Rules, alarmconstant.RegexOR) falseValue := false trueValue := true ruleName := alarmconstant.LabelRuleName ruleMatcher := &ammodels.Matcher{ IsEqual: &trueValue, IsRegex: &trueValue, Name: &ruleName, Value: &rules, } ma...
Go
!= 0 || hd[3] != 1e6/100 || hd[4] != 0 { t.Fatalf("unexpected header %#x", hd) } if tl[0] != 0 || tl[1] != 1 || tl[2] != 0 { t.Fatalf("malformed end-of-data marker %#x", tl) } for len(val) > 0 { if len(val) < 2 || val[0] < 1 || val[1] < 1 || uintptr(len(val)) < 2+val[1] { t.Fatalf("malformed profile. l...
Go
; commandbuf += sizeof(GLfloat); GLfloat *y1 = (GLfloat*)commandbuf; commandbuf += sizeof(GLfloat); GLfloat *x2 = (GLfloat*)commandbuf; commandbuf += sizeof(GLfloat); GLfloat *y2 = (GLfloat*)commandbuf; commandbuf += sizeof(GLfloat); glRectf(*x1, *y1, *x2, *y2); } //89 static void EXEC_glRectfv(byte *command...
C++
-row-font-size: rem-calc(14); // $table-row-font-color: #222; // $table-line-height: rem-calc(18); // These are for controlling the display and margin of tables // $table-display: table-cell; // $table-margin-bottom: rem-calc(20); // // TABS // // $include-html-tabs-classes: $include-html-classes; // $tabs-navigati...
CSS
拍卖结果或者考试成绩择优作出准予行政许可决定,未经招标、拍卖或者考试,或者不根据招标、拍卖结果或者考试成绩择优作出准予行政许可决定的。 第七十五条 行政机关实施行政许可,擅自收费或者不按照法定项目和标准收费的,由其上级行政机关或者监察机关责令退还非法收取的费用;对直接负责的主管人员和其他直接责任人员依法给予行政处分。 截留、挪用、私分或者变相私分实施行政许可依法收取的费用的,予以追缴;对直接负责的主管人员和其他直接责任人员依法给予行政处分;构成犯罪的,依法追究刑事责任。 第七十六条 行政机关违法实施行政许可,给当事人的合法权益造成损害的,应当依照国家赔偿法的规定给予赔偿。 第七十七条 行政机关不依法履行监督职责或者监督不力,...
Markdown
rt.That(s, Does.Match("create ((column|row) )?table Home_Export")); } [Test] public void SchemaExport_Update_CreatesUpdateScript() { Configuration configuration = GetConfiguration(); SchemaUpdate update = new SchemaUpdate(configuration); TextWriter tw = new StringWriter(); update.Execute(tw.WriteLi...
C#
rax push %rax movq %dr1, %rax push %rax movq %dr0, %rax push %rax ## FX_SAVE_STATE_X64 FxSaveState# subq $512, %rsp movq %rsp, %rdi fxsave (%rdi) ## UINT64 ExceptionData# push 2*8 (%rbp) ## call into exception handler ## Prepare parameter and call movq 1*8(%rbp), %rcx ...
Assembly
false) var _ = DescribeTable("IngressClassFiltering", func(ingressClasses []*netv1.IngressClass, expectedMatchingIngressesCount int) { iMatching := testutils.NewTestIngressV1WithClass("test1", "test", "ngrok") iNotMatching := testutils.NewTestIngressV1WithClass("test2", "test", "test") iNoClass := testutil...
Go
{ if ( body[shapeIndex].x0 < probeP.x && body[shapeIndex].x1 > probeP.x ) { // foundLeft = true; maxLeftScale = Math.max(incLeft, maxLeftScale); } if (body...
Typescript
-> "+ nombreHijo+";\n"; g.contador++; nombreHijo = "nodo"+g.contador; g.salida += " "+nombreHijo +"[label=\")\"];\n"; g.salida += " "+padre +" -> "+ nombreHijo+";\n"; g.contador++; nombreHijo = "nodo"+g.contador; g.salida += " "+nombreHijo +"[label=\"{\"];\n"...
Typescript
r3} stmia r8!, {r0, r1, r2, r3} ldr r7, [sp, #0x18] add r6, r4, #0x60 mov r5, #4 ldmia ip!, {r0, r1, r2, r3} stmia r8!, {r0, r1, r2, r3} ldmia ip, {r0, r1, r2, r3} stmia r8, {r0, r1, r2, r3} ldmia r7!, {r0, r1, r2, r3} stmia r6!, {r0, r1, r2, r3} ldmia r7!, {r0, r1, r2, r3} stmia r6!, {r0, r1, r2, r3} ldmi...
Assembly
may assign theta rate (=q if wings are leveled) double qbar = 0.5*FDMExec->GetAtmosphere()->GetDensity()*vtIC*vtIC; double qbarUW = 0.5*FDMExec->GetAtmosphere()->GetDensity()*(ua*ua + wa*wa); double qbarUV = 0.5*FDMExec->GetAtmosphere()->GetDensity()*(ua*ua + va*va); double Mach = vtIC / FDMExec-...
C++
rations.remove(remInd[i]); } theModel.nodesWereRemoved(declarations, remInd, remObj); //CONSTANTS ConstantList csts = parsedModel.getConstantList(); //If there is no constant tree, but we need to have constant, add the tre if (root.getIndex(constants) == -1 && csts.size() > 0) { root.add(constan...
Java
#!/usr/bin/env python3 import subprocess import re command = [ 'pdftotext', '-layout', '-f', '187', '-l', '191', '-enc', 'ASCII7', 'adsb-AN10_V3_cons.pdf', '-' ] main_line = re.compile(r' ([^*]+?)\s+\*\s+([01-]{4})\s+([01-]{2})\s+([01-]{3})\s+([01-]{3})\s+([01-]{2})\s+([-]{10})\s*') conti...
Python
slice(s![c, i_y..(i_y + k_n), i_x..(i_x + k_m)]) * &hp.kernel; output[[c, y, x]] = temp.sum(); } } } } <gh_stars>1-10 //! Top-level font file representation. use std::borrow::Cow; use crate::binary::read::{ReadBinary, ReadCtxt}; use crate::error::{ParseError, ReadWriteError}; u...
Rust
private fun findNode(prefix: String): TrieNode? { var current: TrieNode? = root prefix.asSequence() .takeWhile { current != null } .forEach { ch -> current = current!!.children[ch] } return current } private class TrieNode( ...
Kotlin
empty") return iconImg end else iconsCache[bundleID][imageName] = iconImg return iconImg end end local gameIcon local gameIconExists = false local fresh = gameIsFreshlyInstalled(bundleID,false) local customExists = fle.isdir(savePath.."Icons/"..bundleID.."/") if customExists then gameIcon = ...
Lua
d", service_id); service_id = 0xff; return service_id; } glc_racp.record_db.record_num = 0; glc_racp.record_db.head = 0; glc_racp.record_db.tail = 0; glc_racp.record_db.seq_num = GLC_RACP_INIT_SEQ_NBR_DEFAULT; pfn_gls_cb = (P_FUN_SERVER_GENERAL_CB)p_func; return service_id; } /** * @brief Abort RACP ...
C
ace<R>, }, /// A toplevel surface requested to stop being maximized UnMaximize { /// The surface surface: ToplevelSurface<R>, }, /// A toplevel surface requested to be set fullscreen Fullscreen { /// The surface surface: ToplevelSurface<R>, /// The output ...
Rust
85 .db <wLinkName+4 $08 ; 89 .db <wKidName+3 $08 ; 97 .db <wFileIsLinkedGame $01 ; 105 .db <wKidName+4 $08 ; 106 .db <wLinkName+5 $02 ; 114 (This is always 00) ; Totals to 96 bits ; (plus 20 from header, plus 4 for checksum = 120 bits = 20 6-bit characters) @entry2: ; Ring secret .db $09 .db <wRingsObtaine...
Assembly
.macro csr val csrr a0,\val csrw \val, a1 .endm # Supported privileged specs, 1.10, 1.11, 1.12 and 1.13. # User Counter/Timers csr cycle csr time csr instret csr hpmcounter3 csr hpmcounter4 csr hpmcounter5 csr hpmcounter6 csr hpmcounter7 csr hpmcounter8 csr hpmcounter9 csr hpmcounter10 csr hpmcounter...
Assembly
.0 // => True 2.0 <=. 1.0 // => False } "#, ); } #[test] fn wide_float_div() { assert_js!( r#" fn go() { 111111111111111111111111111111. /. 22222222222222222222222222222222222. } "#, ); } #[test] fn int_patterns() { assert_js!( r#" fn go(x) { let 4 = x } "#, ); } #[test] f...
Rust
} .width46{ width: 46%; } .width47{ width: 47%; } .width48{ width: 48%; } .width49{ width: 49%; } .width50{ width: 50%; } .width51{ width: 51%; } .width52{ width: 52%; } .width53{ width: 53%; } .width54{ width: 54%; } .width55{ width: 55%; } .width56{ width: 56%; } .width57{ width: ...
CSS
#[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bits(self, value: u8) -> &'a mut W { self.w.bits = (self.w.bits & !(0x03 << 12)) | (((value as u32) & 0x03) << 12); self.w } } #[doc = "\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] #[repr(u8)] pub enum OU...
Rust
try { _$failedField = 'metadata'; _metadata?.build(); _$failedField = 'tags'; _tags?.build(); _$failedField = 'episodes'; _episodes?.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'Podcast', _$failedField, e.toString()); } ...
Dart
','\ ¡Los caballos eran fuertes!\n\ ¡Los caballos eran ágiles!\n\ el caballo del beduino\n\ que se traga soledades\n\ el caballo milagroso de San Jorge,\n\ que tritura con sus cascos los dragones infernales\n\ el de César con las galias;\n\ el de Aníbal en los Alpes;\n\ el centauro de las clásicas leyendas;\n\ mitad p...
Typescript
results-table caption{border-right:0 none;border-left:0 none;}.ibm-container-body table.ibm-results-table{border-bottom:0 none;}table.ibm-results-table caption.ibm-access em,table.ibm-results-table thead.ibm-access th,table.ibm-results-table thead.ibm-access td{position:absolute;left:-3000px;width:500px;}table.ibm-resu...
CSS
urn val } export function computePoint(t, points):Point { return [bezierFn(t, points.map(function(p){ return p[0] })), bezierFn(t, points.map(function(p){ return p[1] }))] } export function splitSegment(points:[number, number][], t0:number):[Segment, Segment] { // split a segment into two at t0 while preservin...
Typescript
), const T *> as() const { return static_cast<const T *>(pointer); } template <typename T> bool autoQuery(T clb) { decRef(); clb(__uuidof(Base), reinterpret_cast<void **>(&pointer)); return pointer != nullptr; } template <typename T> eastl::enable_if_t<eastl::is_same_v<T, Base>> reset(...
C
assert(near(dv[i],i/4)) end sv=StructVector(4) for i=0,3 do sv[i]=Struct(i) end for i=0,3 do assert(swig_type(sv[i]) =='Struct *' and sv[i].num==i) end -- range checking idx=0 function test_set() iv[idx]=0 end function test_get() iv[idx]=0 end idx=0 --ok assert(pcall(test_get)==true) assert(pcall(test_set)==tr...
Lua
; encoding: [0x1d,0x93] ; CHECK: st Y+, r30 ; encoding: [0xe9,0x93] ; CHECK: st Y+, r19 ; encoding: [0x39,0x93] ; CHECK: st Z+, r10 ; encoding: [0xa1,0x92] ; CHECK: st Z+, r2 ; encoding: [0x21,0x92] ; Predecrement ; CHECK: st -X, r10 ...
Assembly
} if (Jitter != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Jitter); } if (Nacks != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Nacks); } if (Plis != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Plis); } if (Firs != ...
C#
中学习到这种 “问题-有害回答” 的关联**。 当模型接收到最终的 “目标问题 (Target Query)” 时,例如 "如何制造炸弹?", 它会 **将这个问题放在之前构建的 “有害回答” 的语境下进行解读**。 - 此时,模型不再认为这个问题是一个需要 **安全拒绝** 的有害请求,而是认为这是 **“头脑风暴会议” 中一个正常的 “挑战性问题”**, 按照上下文预设的 “游戏规则” ,它应该 **像之前的示例一样,给出 “有用” (即使有害) 的答案。** 3. **覆盖安全对齐机制 :** - 现代 LLM 通常都经过精细的安全对齐 (Alignment) 训练,以避免生成有害、歧视性或误导性内容。这些安全机制...
Markdown
{}.", index, ["totally awesome", "really fancy", "still going strong"][(index as usize) % 3]), path: format!("/Device{}", index).into(), index: index, online: Cell::new(index % 2 == 0), checking: Cell::new(false), check_complete_sender: s, ...
Rust
////////////////////////////////////////////////// // Author: LEAKYFINGERS // Date created: 27.10.19 // Date last edited: 27.10.19 ////////////////////////////////////////////////// using UnityEditor; using UnityEditor.Rendering.PostProcessing; using UnityEngine.Rendering.PostProcessing; [Post...
C#
个恐惧魔。"}}, [10390] = {"铸魔营地:暴虐", nil, {"萨尔玛的纳兹格雷尔命令你攻击铸魔营地:暴虐,杀死10个甘尔葛仆从,然后将剃刀电锯的徽记带回去交给纳兹格雷尔。"}}, [10391] = {"军团的火炮", nil, {"摧毁铸魔营地:狂乱中的3座邪能火炮I型,然后返回萨尔玛向纳兹格雷尔复命。"}}, [10392] = {"深渊之门", nil, {"杀掉阿利萨玛尔,找到燃烧军团传送门钥匙,利用它毁掉怨恨符文,然后返回萨尔玛向纳兹格雷尔复命。"}}, [10393] = {"邪恶的计划", nil, {"将燃烧军团信件交给交给萨尔玛的魔导师文森特·血鹰。"}}, [10394] = {"铸魔营地:暴虐"...
Lua
vate void howToUseWithUnrealEngineToolStripMenuItem_Click(object sender, EventArgs e) { // todo: System.Diagnostics.Process.Start("http://www.google.com"); } /* // http://stackoverflow.com/questions/19134062/encode-a-filestream-to-base64-with-c-sharp public string...
C#
x;m=m+1;q=p[m]a=q[2]e={}b=0;j=a+q[3]-1;for q=a+1,j do b=b+1;e[b]=n[q]end;n[a](i(e,1,j-a))o=a;m=m+1;q=p[m]a=q[2]n[a]={}m=m+1;q=p[m]a=q[2]n[a]=l[c[q[3]]]m=m+1;q=p[m]a=q[2]d=n[q[3]]n[a+1]=d;n[a]=d[c[q[5]]]m=m+1;q=p[m]a=q[2]e={}b=0;j=a+q[3]-1;for q=a+1,j do b=b+1;e[b]=n[q]end;w=function(...)return{...},h('#',...)end;k,j=w(...
Lua
.012 3.608a.5.5 0 0 1 .098-.42Zm12.574 6.288a2 2 0 0 0 .866-3.899l-.866 3.9Z"}}]})(a)}function BsCupHotFill(a){return(0,r.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M.5 6a.5.5 0 0 0-.488.608l1.652 7.434A2.5 2.5 0 0 0 4.104 16h5.792a2.5 2.5 0 0 0 2.44-1.9...
JavaScript
: 0; } html.colibri-wp-theme .gutters-col-sm-custom > .h-col, html.colibri-wp-theme .gutters-col-sm-custom > [class*='h-col-'] { padding-left: 0; padding-right: 0; } html.colibri-wp-theme .h-px-sm-custom { padding-left: 0; padding-right: 0; } html.colibri-wp-theme .h-px-sm-custom-remove...
CSS
02, 0}, {DRM_FORMAT_RGBA1010102, 0}, {DRM_FORMAT_RGBX1010102, 0}, {DRM_FORMAT_ABGR2101010, 0}, {DRM_FORMAT_ABGR2101010, DRM_FORMAT_MOD_QCOM_COMPRESSED}, {DRM_FORMAT_XBGR2101010, 0}, {DRM_FORMAT_XBGR2101010, DRM_FORMAT_MOD_QCOM_COMPRESSED}, {DRM_FORMAT_ARGB2101010, 0}, {DRM_FORMAT_XRGB2101010, 0}, }; static con...
C
0 = -1627, ui_petState_2_0 = -1628, notice_channelungoods_2_0 = -1629, ui_pageStamina_01_2_0 = -1630, ui_pageStamina_02_2_0 = -1631, notice_pageSpecialShopBuyTip_01_2_0 = -1632, notice_pageSpecialShopBuyTip_02_2_0 = -1633, notice_pageSpecialShopBuyTip_03_2_0 = -1634, notice_pageRuneCompose_2_0 = -1635, ...
Lua
arg)).isEqualTo("[f=0,w=-1,p=-1]"); assertThat(formatPrintf("%100s", arg)).isEqualTo("[f=0,w=100,p=-1]"); assertThat(formatPrintf("%.25s", arg)).isEqualTo("[f=0,w=-1,p=25]"); assertThat(formatPrintf("%100.25s", arg)).isEqualTo("[f=0,w=100,p=25]"); assertThat(formatPrintf("%-100s", arg)).isEqualTo("[f=1...
Java
+= 1; var last = i >= N; if (i % 10 == 0 || last) { print(pad(ns, last) + '\t:$i'); ns = 0; } if (last) break; a = a.subtract(d.multiply(t)).multiply(bigint_TEN); n = n.multiply(bigint_TEN); } } } } void main(List<String> arguments) { ...
Dart
backImageUrl = "", types = listOf(Type.WATER), generation = PokemonGeneration.ONE, baseStat = 314, hp = 44, attack = 48, defense = 65, specialAttack = 50, ...
Kotlin
2, #100] str r7, [sp, #156] @ 4-byte Spill ldr r7, [r2, #64] str r7, [sp, #144] @ 4-byte Spill ldr r7, [r2, #68] str r7, [sp, #148] @ 4-byte Spill ldr r7, [r2, #72] str r7, [sp, #152] @ 4-byte Spill ldr r7, [r2, #76] str r7, [sp, #160] @ 4-byte Spill ldr r7, [r2, #...
Assembly
ompiler::Recompiler::SpecExec_swc2() { const SpecValue addr = SpecExec_LoadStoreAddr(); if (addr.has_value()) SpecInvalidateMem(addr.value()); } void CPU::Recompiler::Recompiler::SpecExec_mfc0() { const Cop0Reg rd = static_cast<Cop0Reg>(inst->r.rd.GetValue()); if (rd != Cop0Reg::SR) { SpecInvalidateR...
C++
w List.from(_iterable.skip(start).take(end - start)) .forEach((el) => el.remove()); } void clear() { // Currently, ElementList#clear clears even non-element nodes, so we follow // that behavior. _childNodes.clear(); } Element removeLast() { final result = _iterable.last; if (result...
Dart
} [endOffset] 结束日期的偏移量 * @param {DateRangeOption} [option] * @param {string} [option.format] 格式化串,不指定时返回 Date 类型 * @param {boolean} [option.time=false] 是否附带时间串 * @return {Date[]|String[]} */ getDateRange(date: Date, beginOffset?: DateOffset | string, endOffset?: DateOffset | string, option?: DateRangeO...
Typescript
==- MCAsmInfoCOFF.cpp - COFF asm properties ----------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------------------------...
C++
} this.workerId = workerId; this.datacenterId = datacenterId; } /** * 获取 maxWorkerId */ protected long getMaxWorkerId(long datacenterId, long maxWorkerId) { StringBuilder mpid = new StringBuilder(); mpid.append(datacenterId); String name = ManagementFactory...
Java
rclass.setRunAttr.call(this, attr); } } }); var translateValues = function(val, start) { var pageXY = EXTLIB.Dom.getXY(this.el); return [val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1]]; }; })(); })();// Easing functions (func...
JavaScript
hen caster:EmitSound("troll_warlord_troll_beserker_0"..math.random(1,4)) caster.beserk_sound = true Timers:CreateTimer( 10, function() caster.beserk_sound = nil end) end caster:StartGesture(ACT_DOTA_CAST_ABILITY_1) if caster:HasModifier("modifier_imba_berserkers_rage_ranged") and self:GetToggleS...
Lua
initialDrawPoint = Projectile.Center; Vector2[] baseDrawPoints = new Vector2[8]; for (int i = 0; i < baseDrawPoints.Length; i++) baseDrawPoints[i] = Vector2.Lerp(initialDrawPoint, laserEnd, i / (float)(baseDrawPoints.Length - 1f)); Color brightColor = Color.Black; ...
C#
new FormControl(); subscription: Subscription; nickNameNotRegistered = false; // Randomly generated combination of nicknames will be added based on the nickname written // was taken or not. See updateAnswers() // public suggestions = []; // public suggestions = ['James T. Kirk', 'Benjamin Sisko', 'Jean-...
Typescript
HUDScene() SCENE_MANAGER:RestoreHUDUIScene() end function SiegeBar:OnControlledSiegeSocketsChanged() --Update Ammo Display end function SiegeBar:OnBeginSiegeUpgrade() --Start Siege Socketing end function SiegeBar:OnEnableSiegePackup() KEYBIND_STRIP:UpdateKeybindButtonGroup(self.keybindStripDescriptor...
Lua
Cursor::NwResize => "nw-resize", Cursor::SwResize => "sw-resize", Cursor::SeResize => "se-resize", Cursor::EwResize => "ew-resize", Cursor::NsResize => "ns-resize", Cursor::NeswResize => "nesw-resize", Cursor::NwseResize => "nwse-resize", ...
Rust
xportUtils { static Future<bool> exportToMarkdown( BuildContext context, Function(String) updateStatus) async { updateStatus("(1/2) 0%"); String? exportFolder; try { exportFolder = await FileLayer.pickDirectory(); } catch (e) { updateStatus("$e"); await Future.delayed(Duration...
Dart
.v); let select0: __m128 = _mm_and_ps(comp, x); let select1: __m128 = _mm_andnot_ps(comp, rflx); x = _mm_or_ps(select0, select1); let x2: __m128 = _mm_mul_ps(x, x); // Compute polynomial approximation const SC1: XMVECTOR = unsafe { g_XMSinCoefficients1.v }; let ...
Rust
igdesholm 57.15 18.46667 Sigdes 57.23333 18.51667 Sigdes 57.18333 18.45 Sigbäcken 60.38333 14.43333 Sigården 57.36667 12.55 Sifferbo 60.56667 15.21667 Siesjön 56.06667 14.55 Siene 58 12.75 Sielmatjåkka 68.05 18.38333 Siellatjåkko 68.23333 18.7 Sidvallen 61.58306 13 Sidskogsjön 61.58333 15.86667 Sidskogen 61.58333 15.86...
C#
"/><path d="M5.83733 17.7912C4.77744 18.0097 3.81846 18.1043 3.04701 18.0288C2.3208 17.9577 1.51151 17.7069 1.14704 16.9759C0.757762 16.1951 1.10781 15.3387 1.54249 14.6784C2.01041 13.9677 2.75773 13.1996 3.68638 12.4243L4.64771 13.5757C3.77169 14.3071 3.14866 14.9666 2.79537 15.5032C2.40884 16.0904 2.48682 16.3013 2.4...
CSS
#!/usr/bin/env python3 import pandas as pd import os import matplotlib.pyplot as plt import seaborn as sns IMAGE_TYPE = os.environ.get("IMAGE_TYPE", "png") DATASET = os.environ.get("DATASET", "output_single.csv") SHOW = bool(os.environ.get("SHOW", "")) N_QUBITS = os.environ.get("N_QUBITS", "") def plot( df, ...
Python
2680 LSR A 2690 BCC REDDIK 2700 LDA DVACIA+1 2710 RTS 2720 R$DDIK=* 2730 LDA #$12 2740 JMP ERROR 2750 ; 2760 TRKPSA=* ;PUT HEAD TO DESIRED TRACK 2770 ; 2780 LDX DIKCRT 2790 JSR D$KSEL 2800 BEQ TRKPSA 2810 LDA #$13 2820 JMP ERROR 2830 TRKPSA=* 2840 LDA TKNDER 2850 CMP TRKCRN 2860 BEQ TRKPSA 2870 BC...
Assembly
.Pos), v.LongString()) if pos := lv.livenessMap.Get(v); pos.Valid() { pcdata = pos.stackMapIndex } pos, effect := lv.valueEffects(v) regUevar, regKill := lv.regEffects(v) printed = false printed = lv.printeffect(printed, "uevar", pos, effect&uevar != 0, regUevar) printed = lv.printeffect(prin...
Go
24 = 0xF704, Prohibited16 = 0xF705, SpeakerOff24 = 0xF706, SpeakerOff28 = 0xF707, SpeakerSettings24 = 0xF708, SpinnerIos20 = 0xF709, RatioOneToOne20 = 0xF70A, RatioOneToOne24 = 0xF70B, ReceiptAdd20 = 0xF70C, Star12 = 0xF70D, Star16 = 0xF70E, Star20 = 0xF70F, Star24 = 0xF7...
C#
J351oQs1sk/PqdwSGQsDANBgkqhkiG9w0B AQsFAAOCAQEAbW+DFt7HvqFr8+kzoBfUQ7UW2SwXqH16UOfAK/GFFeu/0z19BtnF ChOW7j3wlfzO9TpnmLr/7yw7lL5UXJwXhsnzqf+BYQ2ULE0gPFK9/624WX/fxYEe SVBbEOpP6hsb1uNVrv6G8M98dXoUDP/zX+jCPXMQAmciH5T+LyTgrq/kw1E81HHh GJNIB43b4FcyJGcbFA8P24HTpwWaZwg5WqqoNFwdSkeav51wd1INQHFc3H8ulEyD ...
Dart
levatedDist - elevatedED))); if (IniFileData.Instance.logOut) { Logger.Log("[T] 頂上から下っている:" + calcDist + " > " + elevatedED); Logger.Log("[T] 加算する高さ:" + h); ...
C#
url('progress-bar-empty-dark.png') no-repeat center } #unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center } #unity-footer { position: relative } .unity-mobile #unity-footer { display: none } #unity-logo-title-footer { float:left; width: 1...
CSS
tmentList(Random randomIn, ItemStack itemStackIn, int p_77513_2_, boolean allowTreasure) { List<EnchantmentData> list = Lists.<EnchantmentData>newArrayList(); Item item = itemStackIn.getItem(); int i = item.getItemEnchantability(); if (i <= 0) { return list; ...
Java
ary:not(.uk-preserve-color) .tm-h5, .uk-tile-secondary:not(.uk-preserve-color) .tm-h6, .uk-card-primary.uk-card-body .tm-h4, .uk-card-primary.uk-card-body .tm-h5, .uk-card-primary.uk-card-body .tm-h6, .uk-card-primary>:not([class*='uk-card-media']) .tm-h4, .uk-card-primary>:not([class*='uk-card-media']) .tm-h5, .uk-car...
CSS
$t7, 0x812($v0) /* B00804 80089664 25EE0010 */ addiu $t6, $t7, 0x10 /* B00808 80089668 000EC880 */ sll $t9, $t6, 2 /* B0080C 8008966C 844E0810 */ lh $t6, 0x810($v0) /* B00810 80089670 33380FFF */ andi $t8, $t9, 0xfff /* B00814 80089674 03017825 */ or $t7, $t8, $at /* B00818 80089678 25D90010 */ addiu $...
Assembly
n record.id; } } async load(key: string) : Promise<T> { let snap = await this.ref.child(key).once('value'); let record = snap.val() as T; if (record === null) return null; record.id = key; record = this.sanitizeAfterRead(record); return re...
Typescript
µrëẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृนั้ढूँ]","typeVarVariance":"[1Dxdn][นั้TÿpëVær çæññøt þë þøth çøværïæñt æñð çøñtræværïæñtẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰนั้ढूँ]","typeVarWithDefaultFollowsVariadic":"[h1V5a][นั้TÿpëVær \\"{tÿpëVærÑæmë}\\" hæs æ ðëfæµlt vælµë æñð çæññøt følløw TÿpëVærTµplë \\"{værïæðïçÑæmë}\\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्त...
JavaScript
ec()).unwrap(); assert!(first_response_text.contains("world"), format!( "A request without name parameter should contain Hello World in the response. Got : \n {:?}", first_response_text ) ); // <- check name parameter assert!(first_respo...
Rust
M', '4.35.24.3': 'PRINZ KARL', '4.35.25.1': 'PRINZ ALBRECHT', '4.35.25.2': 'PRINZ AUGUST', '4.35.25.3': 'PRINZ FRIEDRICH', '4.35.34.1': 'PRINZESS', '4.35.34.2': 'HERZOG', '4.35.34.3': 'MINISTER', '4.35.35.1': 'PRÄSIDENT', '4.35.35.2': '', '4.35.35.3': '', '5.14.14.1': 'AUSRÜCKHEBEL', '5.14.14.2'...
Dart
S_FALSE; pPrev = pGroupName; pGroupName = pGroupName->_pNext; } return S_FALSE; } // Member: CInput::ChkRadioGroup(LPCTSTR lpstrGrpName); // Synopsis: Check to see if the radio group is already there // S_OK: yes // S_FALSE: no HRESULT CInput:...
C++
DocFromResponse(response: string): Document { let obj = JSON.parse(response); let responseHtml = obj.page; let parser = new DOMParser(); let doc = parser.parseFromString(responseHtml, 'text/html'); return doc; } function extractDocFromConversationResponse(response: stri...
Typescript
import shutil from Bio import SeqIO # GTF output # TODO: Perhaps fix the order of the - strand exons def write_rescue_gtf(input_gtf, ref_gtf, inclusion_list, prefix): output_gtf = f"{prefix}_rescued.gtf" shutil.copy(input_gtf, output_gtf) with open(ref_gtf, 'r') as infile, open(output_gtf, 'a') as outfile:...
Python
) .url(url) .useCacheIfFailed(true) .parser(new QuestionParser()) .flatMap(); } /** * 获取文章评论,json格式 * resultObject.result是ArrayList[UComment] * * @param id article ID * @param offset 从第几个开始加载 * @return ResponseObj...
Java
## Fixed - [Bugs fixed](https://github.com/microsoft/vscode-java-test/issues?q=is%3Aissue+is%3Aclosed+label%3Abug+milestone%3A0.32.0) ## 0.31.3 ### Fixed - [Bugs fixed](https://github.com/microsoft/vscode-java-test/issues?q=is%3Aissue+is%3Aclosed+label%3Abug+milestone%3A0.31.3) ## 0.31.2 ### Changed - Changed the ext...
Markdown
At(i >>> 1); P[1][i] = (byte)((i & 1) == 0 ? c >>> 8 : c); } // precompute the MDS matrix int[] m1 = new int[2]; int[] mX = new int[2]; int[] mY = new int[2]; int j; for (i = 0; i < 256; i++) { j = P[0][i] & 0xFF; // compute all the matrix elements...
Java
: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -User Specifies the user for whom to grant cluster access. ```yaml Type: StringCollection Parameter Sets: (All) Aliases: Required: True Position: 0 Default value: None Accept pipeline input: False Accept wildcard cha...
Markdown
ectedRecoScore( test_name='three different salaries and one outlier (score)', salaries=[17000 for x in range(2)] + [20000 for x in range(7)] + [50000], expected_reco=[ _RecoScore(from_salary=17000.0, gained_offers=0.0), _RecoScore(f...
Python
strong>白云机场口岸2025年出入境人员突破1000万人次</strong></p><p style="text-indent: 2em;">据广州边检总站统计,截至8月6日,广州白云机场口岸2025年出入境人员突破1000万人次。其中,外国旅客超382万人次,同比增长约37.4%;免签入境外国旅客超76万人次,同比增长约123.5%。</p><p style="text-indent: 2em;"><strong>安平桥修缮工程正式启动</strong></p><p style="text-indent: 2em;">今天(8月7日),我国现存最长的跨海梁式石桥——安平桥保护修缮工程正式启动。安平桥位于福建泉州,始建于南宋,...
Markdown
0, Serialized) * { * Name (AODS, Package (0x03) * { * Zero, * 0x12, * Zero // Audio Offload - 0: Disabled * 1: Enabled * }) * Return (AODS) * } */ acpigen_write_method_serialized("AOLD", 0); { acpigen_write_name("AODS"); acpigen_write_package(3); { acpigen_write_integer(0); a...
C
SUBCcc_R orncc %r8, %r9, %r2 .word 0x881a0009 ! 975: XOR_R xor %r8, %r9, %r4 .word 0x84ba0009 ! 975: XNORcc_R xnorcc %r8, %r9, %r2 .word 0x9a220009 ! 975: SUB_R sub %r8, %r9, %r13 .word 0x88820009 ! 975: ADDcc_R addcc %r8, %r9, %r4 .word 0x853a0009 ! 975: SRA_R sra %r8, %r9, %r2 .word 0x96b20009 ! 975...
Assembly
with the package.json version number (should match) */ try { output = child_process.execSync(`${genTypeFile} --version`, { shell: isWindows, encoding: "utf8", }); } catch (e) { throw new Error( `gentype --version caused an unexpected error: ${e.message}` ); } // For Unix / Wi...
JavaScript