content
stringlengths
2
6.21k
label
stringclasses
16 values
val myPid = Process.myPid() val runningApps = activityManager.runningAppProcesses ?: return for (process in runningApps) { if (process.processName.startsWith(packageName)) { try { Process.killProcess(process.pid) } catch (e: Exce...
Kotlin
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT-0 // ---------------------------------------------------------------------------- // Square modulo p_256k1, z := (x^2) mod p_256k1 // Input x[4]; output z[4] // // extern void bignum_sqr_p256k1...
Assembly
} let cookie = m.value_of("cookie").map(|s| s.to_owned()); let electrum_banner = m.value_of("electrum_banner").map_or_else( || format!("Welcome to electrs-esplora {}", ELECTRS_VERSION), |s| s.into(), ); let electrum_public_hosts = m .value_of(...
Rust
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Drawing.Imaging; /// <summary> /// Specifies the methods available in a metafile to read and write graphic commands. /// </summary> public enum EmfPlusRecordType ...
C#
系统类型安全、零成本抽象,提升了代码复用性,但复杂的生命周期和 trait bound 学习曲线较高。 - 与 C++ 模板相比,Rust 泛型更安全,错误提示更友好,但表达能力略逊于 C++ 的模板元编程。 - 泛型与 trait 结合带来强大扩展性,但也可能导致编译时间增加和类型推断困难。 ## 典型案例 - Rust 标准库中的 Option、Result 等泛型类型广泛应用于错误处理和抽象。 - 使用泛型实现高性能容器(如 Vec、HashMap)。 - 结合 trait 泛型实现多态算法和通用接口。 ## 批判性分析(未来值值值展望) - Rust 泛型体系未来值值值可在自动化推断、跨平台集成、生态协作等方面持续优...
Markdown
Dma; /// See the [module documentation](super::board) pub trait Board { /// The type of Cartridge that this Game Boy can handle. type CMem: Cartridge; /// Cpu event logger for debugging purposes type CpuDbgEvtSrc: DbgEvtSrc<CpuEvt>; /// Ppu event logger for debugging purposes type PpuDbgEvtSr...
Rust
i::glfwJoystickIsGamepad(joystick as i32) }) } /// [GLFW Reference][glfw] /// /// [glfw]: http://www.glfw.org/docs/3.3/group__input.html#gaed5104612f2fa8e66aa6e846652ad00f pub fn update_gamepad_mappings(&self, mapping: &str) -> Result<()> { let cstr = CString::new(mapping).unwrap(); ...
Rust
n++) { lastNode = nodeArray[n]; nextNode = nodeArray[n + 1]; if (n + 1 == len) break; /**转换为世界坐标 再计算两坐标之间的直线距离 sub()向量减法 mag() 计算向量的长度*/ nextVector = nextNode.convertToWorldSpace(cc.v2(0, 0)) .sub(lastNode.convertToWorldSpace(cc.v2(0, 0))); ...
Typescript
#include "../../cpu-ns32k/kernel-ns32k.def" .globl _plt_switchout .globl _switchin .globl _dofork .globl forkout # For debug # # Switchout switches out the current process, finds another that is READY, # possibly the same process, and switches it in. When a process is # restarted after calling switchout, it th...
Assembly
an array containing the UUID to request /// `entry_handle`: Entry Handle (0x00 to access first entries in table) /// `buf`: A mutable buffer to store the request bytes. /// /// Returns the length of the query on success. pub fn resolve_uuid( &self, dest_addr: u8, uuid: &[u8;...
Rust
&spec=false&loose=false&code_lz=MYewdgzgLgBAEgUwIYBMECcYF4YAoAO6I-EAlNgHwwDeM6CUArumDADwWHEQB0wAFgEsANinpg2AeioBfANwAoBaEixxadAFkEYRgEkoCALbY8gw0fJYqbYYIrVzxmVLsVFK6DG27TBIiRWVLT0TCzsjMIOXCQ8Tka8Rkj4uOoYPvoWpC6SkbKKyuBewiAA5iCMsDi4QTCeIMIIPCWluADkLRVQAIRtpAWesPzIGgCijUY6VXgKMOyIqBgUs3PsGTDxEFjUANpt_CCTbQA0MG2MEBhtALoyM...
Markdown
a.verticalAlignment = GridData.CENTER; GridData keyTextGridData = new GridData(); keyTextGridData.horizontalSpan = 2; keyTextGridData.verticalAlignment = GridData.CENTER; keyTextGridData.grabExcessHorizontalSpace = true; keyTextGridData.horizontalAlignment = GridData.FILL; GridData keyDigitCountLabelGridD...
Java
tvaRi,%function b__MAX5skpeg18FgevatIvrjGrzcyngrVjR5ortvaRi: nop .text .globl b__M23SK_BhgBsZrzbelGrezvangri .type b__M23SK_BhgBsZrzbelGrezvangri,%function b__M23SK_BhgBsZrzbelGrezvangri: nop .text .globl b__MA14PCQS_QngnNinvy13CnefrQbphzragRCXp .type b__MA14PCQS_QngnNinvy13CnefrQbphzragRCXp,%function b__MA14PCQS_QngnN...
Assembly
, 'プロパンガス' , ItemCategory.Intermediate) public static readonly SulfuricAcid = Item.def('SulfuricAcid' , '硫酸' , ItemCategory.Intermediate) public static readonly SolidFuel = Item.def('SolidFuel' , '固形燃料' , ItemCategory.Intermediate) // ...
Typescript
} .sm\:focus\:to-primary-light:focus{ --tw-gradient-to: #ceeff4; } .sm\:focus\:to-primary:focus{ --tw-gradient-to: #26ada1; } .sm\:focus\:to-primary-dark:focus{ --tw-gradient-to: #1b927c; } .sm\:focus\:to-secondary-text:focus{ --tw-gradient-to: white; } .sm\:focus\:to-secondary-l...
CSS
TreeNode { kids: data.map_reference_array("Kids", pdf, NumberTreeNode::from) .unwrap_or(vec![]), nums, upper_limit, lower_limit, }) } } <filename>src/setting.rs //设置程序 use std::{cell::RefCell, env::current_exe, process::Command, rc::Rc}; ...
Rust
��⢻⣿⢸⡏⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠘⣿⣿⣿⣿⣿⣿⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⣸⡟⣰⣿⣿⣿⣿⣿⣿⣿⣿⣶⡌", "⣿⡏⣠⣾⣿⣿⣿⣿⣿⣿⣿⣿⡎⢿⣾⡇⣼⣿⣿⡿⠿⠟⠛⠛⠛⠋⠉⠙⠛⠀⠛⠛⠛⠛⠛⠛⠸⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠻⠿⣿⠇⣿⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧", "⡟⢱⣿⡿⠿⠿⠿⠿⠿⠿⣿⣿⣷⠸⠈⠐⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠉⠈⠛⠻⢿⣿⣿⣿⡿⠿⠿⠿", } M.zoro = { "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⣿⣿⣿⣿⣿⣿⡿⠟⠉⣹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿", "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠈⠼⢛⣩...
Lua
�٫|" local proj = convert_format(format1) return proj:apply(t) end local function extended_arabic_indic_number(t) if t == "" then return "" end local format1 = "xlit|0123456789.|۰۱۲۳۴۵۶۷۸۹٫|" local proj = convert_format(format1) return proj:apply(t) end local function devanagari_number(t) if t == "" the...
Lua
blt TILE_2 mov x24, x5 // dst_depth_quad mov x6, x0 // dst mov x12, x2 // weight mov x20, x9 // bias mov x15, x8 mov x21, x23 LoopDz_TILE_4: cmp x24, #2 mov x11, x1 // src mov x19, #0 blt LoopDz4_TILE_4 TILE4_BLOCKNUM: mov x13, x3 // src_depth_quad SET_0_4 v12, v13, v14...
Assembly
to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark part of 'types.dart'; // ************************************************************************** // FreezedGenerator // *****************************...
Dart
an', 'dudinka', 'e-burg', 'grozny', 'irkutsk', 'ivanovo', 'izhevsk', 'jar', 'joshkar-ola', 'kalmykia', 'kaluga', 'kamchatka', 'karelia', 'kazan', 'kchr', 'kemerovo', 'khabarovsk', 'khakassia', 'khv', 'kirov', 'koenig', 'komi', 'kost...
Dart
size += 1 + 4; } if (HasType) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (HasLeft) { size += 1 + 4; } if (HasBottom) { size += 1 + 4; } if (HasRight) { size += 1 + 4; } if (HasTop) { size += 1 ...
C#
Node, "Path")); //string value = GetAttribute(liNode, "Data"); //if (attribute.Name == "LocationFloat" || attribute.Name == "SizeF") //{ // if (value.Contains("E")) // attribute.Value = value.Substring(0, value...
C#
( '🕠', '17', ), Emoji( '🕕', '18', ), Emoji( '🕡', '18', ), Emoji( '🕖', '19', ), Emoji( '🕢', '19', ), Emoji( '🕗', '20', ), Emoji( '🕣', '20', ), Emoji( '🕘', '21', ...
Dart
ator.pinnedTileRepo.customTilesSize PREF_TOTAL_HOME_TILE_COUNT -> appContext.serviceLocator.pinnedTileRepo.customTilesSize + appContext.serviceLocator.pinnedTileRepo.bundledTilesSize APP_ID -> BuildConfig.APPLICATION_ID PREF_REMOTE_CONTROL_NAME -> appContext.getSharedPreferences(...
Kotlin
128) } else { None } } #[inline] fn from_i16(n: i16) -> Option<Self> { if n >= 0 { Some(n as u128) } else { None } } #[inline] fn from_i32(n: i32) -> Option<Self> {...
Rust
32-4f3d5850-7bba-4d1d-a4c0-5a23302a0495.png#averageHue=%23fdfdfd&clientId=u84dae985-42ee-4&from=paste&height=176&id=u147c57f6&originHeight=220&originWidth=534&originalType=binary&ratio=1.25&rotation=0&showTitle=false&size=35465&status=done&style=none&taskId=u1d56e11a-4ff8-4c1a-bddb-d617611258c&title=&width=427.2)<br />...
Markdown
XED_IFORM_VRSQRT28PD_ZMMf64_MASKmskw_ZMMf64_AVX512ER = 5764, XED_IFORM_VRSQRT28PS_ZMMf32_MASKmskw_MEMf32_AVX512ER = 5765, XED_IFORM_VRSQRT28PS_ZMMf32_MASKmskw_ZMMf32_AVX512ER = 5766, XED_IFORM_VRSQRT28SD_XMMf64_MASKmskw_XMMf64_MEMf64_AVX512ER = 5767, XED_IFORM_VRSQRT28SD_XMMf64_MASKmskw_XMMf64_XMMf...
Rust
o de Pigmeu", [40196] = "Guarda-pernas do Imperturbável", [40197] = "Luvas do Teurgo Caído", [40198] = "Embraces da Impureza", [40199] = "Rêmora Pigmeia", [40200] = "Cinto do Canto Retumbante", [40201] = "Perneiras dos Passos Colossais", [40202] = "Lombo de Urso-cinzento Grelhado", [40203] = "Peitoral da Raiva Atorment...
Lua
repeat}.dijitStretch{white-space:nowrap;background-repeat:repeat-x}.dijitRight{#display:inline;background-position:100% 0;background-repeat:no-repeat}.dj_gecko .dj_a11y .dijitButtonDisabled .dijitButtonNode{opacity:.5}.dijitButton,.dijitComboButton,.dijitDropDownButton,.dijitToggleButton{margin:.2em;vertical-align:midd...
CSS
, reference_id: new_record.reference_id, affected_service: new_record.affected_service, date: record_date, summary: new_record.summary, reporter: new_record.reporter, reporter_handle: new_record.reporter_handle }; formed_record.generate_anchor(); let encoded...
Rust
%v0 vpksg %v0, %v0, %v15 vpksg %v0, %v0, %v31 vpksg %v0, %v15, %v0 vpksg %v0, %v31, %v0 vpksg %v15, %v0, %v0 vpksg %v31, %v0, %v0 vpksg %v18, %v3, %v20 vpksgs %v5, %v22, %v7 #CHECK: vpksh %v0, %v0, %v0 # encoding: [0xe7,0x00,0x00,0x00,0x10,0x97] #CHECK: vpksh %v0, %v0, %v15 # encoding: [...
Assembly
model](https://download.openmmlab.com/mmclassification/v0/deit3/deit3-base-p16_3rdparty_in1k_20221008-60b8c8bf.pth) | | `deit3-base-p16_3rdparty_in1k-384px`\* | From scratch | 86.88 | 55.54 | 85.08 | 97.25 | [config](deit3-base-p16_64xb32_in1k-384px.py) | [model](https://download.openmmlab....
Markdown
PHP_EOL; SCo::scheduler(); ``` 执行: ```shell ~/codeDir/cppCode/study # php test.php before sleep main co ^C ~/codeDir/cppCode/study # ``` 我们发现,此时我们的进程不会退出了。但是,`1s`后协程并没有被唤醒。因为我们还没有去实现`PHPCoroutine::scheduler`的具体逻辑。 到了这里,可能就有小伙伴疑惑了。`Swoole`并没有`scheduler()`这样的方法呀,多么的方便啊。其实是这样的,`Swoole`的调度器功能实际上都被封装在了`Reactor`里面了。...
Markdown
op += constants.TWO_PI; } // p5 supports negative width and heights for ellipses w = Math.abs(w); h = Math.abs(h); this._renderer.arc(x, y, w, h, start, stop, mode); return this; }; /** * Draws an ellipse (oval) to the screen. An ellipse with equal width and * height is a circle. By default, the first tw...
JavaScript
/////////////////////////////////////////////////////////////////////////////// // / // 12/Apr/2011 14:17:07 / // IAR ANSI C/C++ Compiler V5.20.0.20892/W32 EVALUATION for ARM / ...
Assembly
return an expected error") } _, err = ns.Where(map[string]int{"a": 1, "b": 2}, "a", []byte("="), 1, 2) if err == nil { t.Errorf("Where called with more than two variable arguments didn't return an expected error") } _, err = ns.Where(map[string]int{"a": 1, "b": 2}, "a") if err == nil { t.Errorf("Where call...
Go
using Microsoft.AspNetCore.Components; namespace BlazorWebApp.Components.Pages; [StreamRendering(true)] public partial class WeatherWithCodeBehind { private WeatherForecast[]? forecasts; protected override async Task OnInitializedAsync() { // Simulate asynchronous loading to demonstrate streaming...
C#
值 font-size: $U20; * $strokeSize,笔触大小,也就是图标的线宽 */ .iconoo-locationArrow { width: 1.5em; height: 1.5em; &:before { position: absolute; left: 0.35em; top: 0.8em; border-width: 0.3em 0 0.3em 0.3em; border-style: solid; border-left-color: transparent; t...
CSS
c31643f7d9dd346bb116e767a573937d0c08ba1710db5345e3388ee3388ee3388ee3388ee3388ee3388ee3388ee3388ee3388e23") require.Equal(t, sa.value[:], expected[:]) require.Equal(t, nine.Mul(actual).(*ScalarEd448).value[:], ed448.Scalar.New(1).(*ScalarEd448).value[:]) } func TestScalarEd448Add(t *testing.T) { ed448 := ED448() ni...
Go
const event = { ...options, body: options.body ?? '', headers: { ...options.headers, }, httpMethod: method, rawUrl: 'https://example.netlify', } const result = (await execute({ event, lambdaFunc: func, verboseLevel: 0, })) as LambdaResponse return result } export cons...
Typescript
start ov15_021DAFF8 ov15_021DAFF8: ; 0x021DAFF8 push {r3, r4, r5, r6, r7, lr} sub sp, #0x20 add r5, r0, #0 mov r0, #2 mov r1, #0 bl sub_02002C50 ldr r1, _021DB0F8 ; =0x00000182 mov r0, #0x1a mov r2, #0xb mov r3, #0x23 bl ReadMsgData_NewNarc_NewString str r0, [sp, #4] ldr r1, _021DB0F8 ; =0x00000182 mov r0...
Assembly
width = 104 elements.add(largeOnline) elements.add(largeMods) elements.add(largeSingleplayer) elements.add(largeOptions) } override fun render(drawer: GuiDrawer) { parentLayer?.render(drawer) if (gui.topLayer === this && gui.client.configuration.getValue(LogPo...
Kotlin
, R> DoubleEndedIterator for UncertainChainIter<'a, Octets, R> where Octets: AsRef<[u8]>, R: ToLabelIter<'a>, { fn next_back(&mut self) -> Option<Self::Item> { match *self { UncertainChainIter::Absolute(ref mut inner) => inner.next_back(), UncertainChainIter::Relative(ref mut...
Rust
/* This code is derived from jgit (http://eclipse.org/jgit). Copyright owners are documented in jgit's IP log. This program and the accompanying materials are made available under the terms of the Eclipse Distribution License v1.0 which accompanies this distribution, is reproduced below, and is available at http://www...
C#
import pytest from ididi import Graph class B1: ... class B2: ... class B3: ... class B: def __init__(self, b1: B1, b2: B2, b3: B3): ... class C1: ... class C2: ... class C3: ... class C: def __init__(self, c1: C1, c2: C2, c3: C3): ... class D1: ......
Python
_af4 */ jump_ae8: /*0xae8*/ ldr r1, [r0, #8] /*0xaea*/ lsls r1, r1, #0x1a /*0xaec*/ bpl jump_ae8 /*0xaee*/ bx lr data_af0: /*0xaf0*/ .word 0x42d40000 data_af4: /*0xaf4*/ .word 0x40088000 .thumb_func call_af8: /*0xaf8*/ push.w {r4,...
Assembly
= IGRvbg== ICw= IDEw YXNlZA== IGFzcw== dWJsaWM= IHJlZw== IEFuZA== aXg= IHZlcnk= IGluY2x1ZA== b3RoZXI= IGltcA== b3Ro IHN1Yg== IOKAlA== IGJlaW5n YXJn IFdo PT0= aWJsZQ== IGRvZXM= YW5nZQ== cmFt IDk= ZXJ0 cHM= aXRlZA== YXRpb25hbA== IGJy IGRvd24= IG1hbnk= YWtpbmc= IGNhbGw= dXJpbmc= aXRpZXM= IHBo aWNz YWxz IGRlYw== YXRpdmU= Z...
JavaScript
] = "Purificando el Ojo", }, [294] = { ["D"] = "La situación es grave, eso es seguro. Cuando descubrimos estos huesos, atrajo a los Raptores. Estas bestias asquerosas mataron a mis hermanos y me atraparon a mí, a Merrin y al pobre Prospectador aquí arriba.$B$BAyuda a limpiar los Humedales de estos Raptores, $N....
Lua
| isLastRuleAndOdd ? 'full' : 'col' const titleWidth = position === 'full' ? this._opts.maxTitleLineWidth : this._opts.colTitleLineWidth const lineWidth = position === 'full' ? this._opts.maxLineWidth : this._opts.colLineWidth const noteLintWidth = position === 'full' ? this._opts.maxNoteLineWi...
Typescript
a restart of obsidian."}),t.createEl("h4",{text:"Task Format Settings"}),new ve.Setting(t).setName("Task Format").setDesc(Rt.createFragmentWithHTML('<p>The format that Tasks uses to read and write tasks.</p><p><b>Important:</b> Tasks currently only supports one format at a time. Selecting Dataview will currently <b>st...
JavaScript
len(uncompletedAWS), err) for _, uaw := range uncompletedAWS { fmt.Fprintf(GinkgoWriter, "[e2e] Generic 50 Deployment Only - 2 pods each - Uncompleted AW '%s/%s'\n", uaw.Namespace, uaw.Name) } } Expect(err).Should(Succeed(), "All app wrappers should have completed") fmt.Fprintf(os.Stdout, "[e2e] Generic...
Go
n_detail10clone_implINS0_19error_info_injectorINS_25promise_already_satisfiedEEEE7rethrowEv,"axG",@progbits,_ZNK5boost16exception_detail10clone_implINS0_19error_info_injectorINS_25promise_already_satisfiedEEEE7rethrowEv,comdat .size _ZTv0_n32_NK5boost16exception_detail10clone_implINS0_19error_info_injectorINS_25promis...
Assembly
// Modified by Princeton University on June 9th, 2015 /* * ========== Copyright Header Begin ========================================== * * OpenSPARC T1 Processor File: tlu_stb2b_trap_10.s * Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. * * The above named...
Assembly
/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * This Program 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 2, or (at your option) * any later version. * * This Pro...
C
CARE(%a6) | ...JUST IN CASE fmovel %d1,%FPCR |restore users exceptions fmovex X(%a6),%fp0 |last inst - possible exception set bra t_frcinx COSTINY: fmoves #0x3F800000,%fp0 fmovel %d1,%FPCR |restore users exceptions fsubs #0x00800000,%fp0 |last inst - possible exception set bra t_frcinx REDUCEX: |-...
Assembly
protocol:AA});if(x.isAbsolute(n))return n;let s=t.fetcher.getLocalPath(i,t);return s===null?null:x.resolve(s,n)}async fetch(e,t){var c;let{parentLocator:i,path:n}=P.parseFileStyleRange(e.reference,{protocol:AA}),s=x.isAbsolute(n)?{packageFs:new qt(Oe.root),prefixPath:Oe.dot,localPath:Oe.root}:await t.fetcher.fetch(i,t)...
JavaScript
69,0x80,0x91 = sel %d9, %d1, %d9, 6 0x02,0xf6 = mov %d6, %d15 0x3c,0x2c = j 0x58 0x3b,0x20,0x07,0x00 = mov %d0, 114 0xfe,0x08 = jne %d15, %d0, 0x30 0x6f,0x6a,0x08,0x00 = jz.t %d10, 6, 0x10 0x09,0xf0,0x3c,0xfa = ld.q %d0, [%a15]-4 0x8f,0x0a,0x02,0xf1 = and %d15, %d10, 32 0xea,0x69 ...
C#
indent: "", isLastChild: true, } res.Main, _ = res.flattenRecursively(p, initInfo, nil) flattenedCTEPlan := make(map[int]struct{}, len(res.ctesToFlatten)) // Note that ctesToFlatten may be modified during the loop, so we manually loop over it instead of using for...range. // nolint:intrange for i := 0; i...
Go
57b, U+8580, U+8585-8586, U+8588, U+858a, U+858f, U+8591, U+8594, U+8599, U+859c, U+85a2, U+85a4, U+85a6, U+85a8-85a9, U+85ab-85ac, U+85ae, U+85b7-85b9, U+85be, U+85c1, U+85c7, U+85cd, U+85d0, U+85d3, U+85d5, U+85dc-85dd, U+85df-85e0, U+85e5-85e6, U+85e8-85ea, U+85f4, U+85f9, U+85fe-85ff, U+8602, U+8605-8607, U+860a-86...
CSS
!$EV trig_pc_d(1,expr(@VA(.MAIN.iob_intr_1_319), 16, 16)) -> intp(1, 0, 3f) .word 0xbfa80820 ! 4054: FMOVN fmovs %fcc1, %f0, %f31 .word 0xb9a80420 ! 4057: FMOVRZ dis not found .word 0xb7a8c820 ! 4058: FMOVL fmovs %fcc1, %f0, %f27 .word 0xbda8c820 ! 4062: FMOVL fmovs %fcc1, %f0, %f30 cpu_intr_1_294: setx 0x3d...
Assembly
/* * Copyright (c) 2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once namespace Swift { class TLSContext; class Certificate; class TLSOptions { public: TLSOptions() : schannelTLS1_0Workaround(false) { } /** ...
C
"audio/dive.mp3" }, { word: "draw", translation: "рисовать", image: "img/draw.jpg", audioSrc: "audio/draw.mp3" }, { word: "fish", translation: "ловить рыбу", image: "img/fish.jpg", audioSrc: "audio/fish.mp3" }, { ...
Typescript
ivity.offsets) { neighbour_voxel_idx = voxel_idx + offset; // 若该scan的dynamic_level_map在这个位置已经有值了,这意味着已经遍历过了,因此跳过 auto it = dynamic_level_map.find(neighbour_voxel_idx); if(it != dynamic_level_map.end()) continue; ...
C++
imLeft = cv::imread(strNameFile, CV_LOAD_IMAGE_UNCHANGED); cv::cvtColor(imLeft, imLeft, CV_GRAY2BGR); vector<MapPoint*> vpMapPointsKF = pKF->GetMapPointMatches(); int num_MPs = 0; for(int i=0; i<vpMapPointsKF.size(); ++i) ...
C++
#include "ULUS10536_MYTHREAD-MAIN.BIN.h" undefined4 FUN_089ea914(char *param_1,byte *param_2) { byte bVar1; byte bVar2; bool bVar3; undefined4 uVar4; uint uVar5; int iVar6; int iVar7; int iVar8; char *pcVar9; bVar1 = *param_2; uVar4 = 0; iVar6 = 0; uVar5 = 0; iVar7 = 2; if ((-1 < (cha...
C
! 88: RDPR_GL <illegal instruction> .word 0xfc054000 ! 89: LDUW_R lduw [%r21 + %r0], %r30 setx 0x565336f00000295f, %g1, %r10 .word 0x839a8000 ! 91: WRHPR_HTSTATE_R wrhpr %r10, %r0, %htstate .word 0xb8bd4000 ! 92: XNORcc_R xnorcc %r21, %r0, %r28 .word 0xb09d8000 ! 93: XORcc_R xorcc %r22, %r0, %r24 setx data_...
Assembly
NullOrEmpty() && nodeMetadata.isNullOrEmpty()) { logger.info("Metadata is empty, skip saving") return } val fullPath = normalizeFullPath(fullPath) val node = nodeDao.findNode(projectId, repoName, fullPath) ?: throw ErrorCodeException(Ar...
Kotlin
4" ] for i, cmd in enumerate(commands): progress.update(task, description=f"Installing PostgreSQL... ({i+1}/{len(commands)})") self._run_command(cmd, f"PostgreSQL install step {i+1}") # Create Postg...
Python
,破坏交通工具和交通秩序; (五)不得诽谤、侮辱他人或者造谣生事,扰乱公共场所秩序; (六)不得发表、呼喊、散发违背许可内容的演说、口号、传单和举与许可内容不相符的旗帜、横幅、标语牌; (七)不得沿途刻画、涂写、张贴宣传品; (八)不得破坏文物和名胜古迹; (九)不得哄抢、侵占或者损毁公私财物和园林、绿地、花卉、草坪等公共设施; (十)不得冲击党政军领导机关和司法机关,干扰公务活动和外事活动。 第二十六条 举行集会、游行、示威,有下列情形之一的,人民警察应当予以制止,任何人不得阻碍或者抗拒人民警察依法执行职务: (一)未依照本规定的规定申请或者申请未获许可的; (二)未按照主管机关许可的目的、方式、标语、口号、起止...
Markdown
# 🤖 AI 챗봇 탭 - **문서 기반 QA**: 업로드된 문서를 바탕으로 질문 답변 - **실시간 대화**: 채팅 형태의 자연스러운 대화 - **참조 문서**: 답변 근거가 된 문서 표시 - **설정 옵션**: 검색 결과 수, 리랭킹 적용 등 ### 📈 시스템 통계 탭 - **저장소 통계**: 사용량, 파일 수, 평균 크기 - **성능 모니터링**: 응답 시간, 요청 수 추이 - **파일 분포**: 타입별 분포 차트 - **최근 활동**: 최근 업로드 파일 목록 ## ⚙️ 시스템 상태 모니터링 사이드바에서 실시간으로 확인 가능: - **API 서버**: F...
Markdown
Internals private void setupSurfaceView(Context context) { surfaceView = new GLSurfaceView(getContext()); cards = new FlipCards(this, flipOrientation == VERTICAL); renderer = new FlipRenderer(this, cards); surfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0); surfaceView.setZOrderOnTop(true); ...
Java
MediaType::ContentDescriptor => "application/vnd.oci.descriptor.v1+json", MediaType::OciLayout => "application/vnd.oci.layout.header.v1+json", MediaType::ImageIndex => "application/vnd.oci.image.index.v1+json", MediaType::ImageManifest => "application/vnd.oci.image.manifest.v1...
Rust
// // Generated by https://github.com/blacktop/ipsw (Version: , BuildCommit: ) // // - LC_BUILD_VERSION: Platform: macOS, MinOS: 14.4, SDK: 14.4, Tools: [ld (902.8), ld (854.1), ld (951.9)] // - LC_BUILD_VERSION: Platform: macCatalyst, MinOS: 17.4, SDK: 17.4, Tools: [ld (902.8), ld (854.1), ld (951.9)] // ...
C
(feature = "stm32f7xx")] type I2cBmeInstance = BlockingI2c< I2CInstance, <I2CInstance as I2cConfig<I2CInstance>>::SclPin, <I2CInstance as I2cConfig<I2CInstance>>::SdaPin, >; #[rtic::app(device = crate::device, peripherals = true, monotonic = rtic::cyccnt::CYCCNT)] const APP: () = { struct Resources { ...
Rust
n false; end function MountEquipmentButtonMixin:ApplyEquipmentAtCursor() if self:IsEnabled() and MountJournal_ApplyEquipment(MountJournal, C_Cursor.GetCursorItem()) then ClearCursor(); end end function MountJournal_ApplyEquipmentFromContainerClick(self, itemLocation) if MountJournal_ApplyEquipment(self, itemLoca...
Lua
/sagemaker/latest/dg/sms-custom-templates.html">custom /// tasks</a>, your label category configuration file must be a JSON file in /// the following format. Identify the labels you want to use by replacing /// <code>label_1</code>, /// <code>label_2</code>,<code>...</code>,<code>label_n</code> with your label ...
Dart
ILK, 0) .addAbility(IToolHarvestAbility.LUCK, 4) .addAbility(IWeaponAbility.STUN, 1).setUnlocalizedName("starmetal_shovel").setTextureName(RefStrings.MODID + ":starmetal_shovel"); starmetal_hoe = new ModHoe(matStarmetal).setUnlocalizedName("starmetal_hoe").setTextureName(RefStrings.MODID + ":starmetal_hoe"); ...
Java
static String createSimpleSpaces(int spaceCount) { if (spaceCount <= 0) { return ' '; // อย่างน้อย 1 space } return ' ' * spaceCount; } // ฟังก์ชันสร้างบรรทัดที่มี right alignment สำหรับ monospace font static String createMonospaceAlignedLine( String leftText, String rightText, { in...
Dart
77c780a6f1615aa7a12326738e269bb731f89e891622e577ea54420bf0ca46be6fc4f71cf2681ac0252aa885e13be672cd284590427dcd137cf311625e8bee3b08fdcaaf465b387ce7cb33816f2c14a6b99ac7d734318cfc59b7ed939bafef8790203010001</td></tr><tr><td><strong>0.0.9</strong></td><td>308201a2300d06092a864886f70d01010105000382018f003082018a0282018100c6...
Markdown
.append(stackElements[i].fileName + ":") .append(stackElements[i].lineNumber.toString() + ")") Log.e("ThreadDebug", stringBuilder.toString()) } Log.e("ThreadDebug", "\n\n-") } Log.e("ThreadDebug", "all end================================...
Kotlin
on to release a modified version without this exception; this exception also makes it possible to release a modified version which carries forward this exception. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHA...
Assembly
Builder.CreateEmpty().Build()); Assert.Single(request.ResourceMetrics); var resourceMetric = request.ResourceMetrics.First(); var otlpResource = resourceMetric.Resource; Assert.Single(resourceMetric.ScopeMetrics); var instrumentationLibraryMetrics = resourceMetric.ScopeMetrics....
C#
ption @VarArgs(2, numRequired = 1) inlineList: MyInlineList) { event.reply_("$inlineList", ephemeral = true).queue() } override fun declareGlobalApplicationCommands(manager: GlobalApplicationCommandManager) { manager.slashCommand("inline_class_vararg", function = ::onSlashAggregate) { ...
Kotlin
ADDQ CX, AX ADCQ $0, DX MOVQ AX, (0*8)(R10)(BX*8) MOVQ DX, CX MOVQ (1*8)(R8)(BX*8), AX MULQ R9 ADDQ CX, AX ADCQ $0, DX MOVQ AX, (1*8)(R10)(BX*8) MOVQ DX, CX MOVQ (2*8)(R8)(BX*8), AX MULQ R9 ADDQ CX, AX ADCQ $0, DX MOVQ AX, (2*8)(R10)(BX*8) MOVQ DX, CX MOVQ (3*8)(R8)(BX*8), AX MULQ R9 ADDQ CX, AX ADCQ...
Assembly
_rmwLocks[packet.addr] == index; final accessError = inRegion && ((ranges[region].isSecure && ((packet.prot.toInt() & Axi4ProtField.secure.value) == 0)) || (ranges[region].isPrivileged && ((packet.prot.toInt() & Axi4ProtField.privileged.value) == ...
Dart
response.data['data']; // // Below are test codes. // // rst = [ // { // "title": "南京大学本科生选课系统(beta)", // "pinyin": "nanjingdaxuebenke", // "description": "测试中,请确保APP版本>=3.1.0!", // "page_title": "选课系统登录", // "initialUrl": // ...
Dart
., n_k) batch_size = latent_embed.shape[0] # permute to (b, n_1, n_2, ...n_k, c) # then reshape to (b, n_1 * n_2 * ...n_k, out_channels) latent_embed = latent_embed.permute(0, *self.in_coord_dim_reverse_order, 1).reshape(batch_size, -1, self.fno_hidden_channels) if self....
Python
c-content-members-list { margin-bottom: 0; } } /* Special repos */ .special-repos-outer { padding: 40px 0; } .special-repos-outer .hs-page-width-normal * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } #special-repos { overflow: hidden; } .sp...
CSS
.4 22.4-30.1 34.7zm270.9-83l.2-.3h.2c.6-.4.5-.7.4-.9-.1-.1-4.5-9.3-45.1-7.4 35.3 13.9 43.5 9.1 44.3 8.6z"],[e,"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a...
JavaScript
:NO_FLAGS; row_format_flags |= KuduScanner::PAD_UNIXTIME_MICROS_TO_16_BYTES; return scanner->SetRowFormatFlags(row_format_flags); }; auto row_verifier = [&](const KuduScanBatch& batch, int num_tablet, int* total_rows_in_tablet) { // Timestamps are padded to 16 bytes. int kPaddedTimestampSize = 16; ...
C++
oldRoot.push(icol.oldRoot) oldKey.push(icol.oldKey) oldValue.push(icol.oldValue) siblings.push(icol.siblings) isOld0.push(icol.isOld0) oldRoot_db.push(idb.oldRoot) newRoot_db.push(idb.newRoot) oldKey_db.push(idb.oldKey) oldValue_db.push(idb.oldValue) siblings_...
JavaScript
s.svc:443", export.Status.ServiceName, match[2]) targetPath := "/" + match[4] certPool, err := app.caManager.GetCurrent() if err != nil { w.WriteHeader(http.StatusInternalServerError) return } p := &httputil.ReverseProxy{ Director: func(req *http.Request) { req.URL.Scheme = "https" req.URL.Host = hos...
Go
+ "|xn\\-\\-3e0b707e|xn\\-\\-3pxu8k|xn\\-\\-42c2d9a|xn\\-\\-45brj9c|xn\\-\\-45q11c|xn\\-\\-4gbrim" + "|xn\\-\\-55qw42g|xn\\-\\-55qx5d|xn\\-\\-6frz82g|xn\\-\\-6qq986b3xl|xn\\-\\-80adxhks" + "|xn\\-\\-80ao21a|xn\\-\\-80asehdb|xn\\-\\-80aswg|xn\\-\\-90a3ac|xn\\-\\-90ais|xn\\-\\-9dbq2a" + "|xn\\-\\...
Java
00F80 809B6080 A4690004 */ sh $t1, 0x0004($v1) ## 00000004 /* 00F84 809B6084 24010007 */ addiu $at, $zero, 0x0007 ## $at = 00000007 .L809B6088: /* 00F88 809B6088 54A10017 */ bnel $a1, $at, .L809B60E8 /* 00F8C 809B608C 00001025 */ or $v0, $zero, $zero ## $v0 = 0000000...
Assembly
tName } textColor?.let { textColor -> it.textColor = textColor } if (textFontSize != 0) it.textFontSize = textFontSize if (borderWidth != 0) it.borderWidth = borderWidth borderColor?.let { borderColor -> it.borderColor = borderColor } if (c...
Kotlin
{ Type: "image", Name: "nginx", Hash: "644a70516a26004c97d0d85c7fe1d0c3a67ea8ab7ddf4aff193d9f301670cf36", }, }, { name: "input is a SBOM", args: args{ doc: sbomDoc, userInput: "nginx", hash: "testhash", }, want: types.Source{ Type: "image", Name: "nginx", ...
Go
#!/usr/bin/env PYTHONHASHSEED=1234 python3 # ------------------------------------------------------------------------------ # animation with move and pause # ------------------------------------------------------------------------------ def move(period, speed): for _ in range(period): yield speed def pa...
Python
Q(13u, dst_pixels_c[2]); EXPECT_EQ(5u, dst_pixels_c[3]); EXPECT_EQ(0u, dst_pixels_c[4]); EXPECT_EQ(10u, dst_pixels_c[63]); // Test one pixel less, should skip the last pixel. memset(dst_pixels_c, 0, sizeof(dst_pixels_c)); ScaleRowDown2Box_Odd_C(orig_pixels, 128, dst_pixels_c, 63); EXPECT_E...
C++
#pragma once #include <array> #include <functional> #include <utility> #include <queue> #include "common_types.h" namespace Teakra { class Ahbm { public: enum class UnitSize : u16 { U8 = 0, U16 = 1, U32 = 2, }; enum class BurstSize : u16 { X1 = 0, X4 = 1, X...
C