content
stringlengths
2
6.21k
label
stringclasses
16 values
n') + // r(r'\grave o\acute o\hat o\tilde o\ddot o') + // r(r'\grave u\acute u\hat u\ddot u') + // r`([r'\acute y\ddot y', nonstrictSettings); // }); // test("should parse Latin-1 letters in text mode", () { // // TODO(edemaine): Unsupported Latin-1 letters in text:...
Dart
x : 50%; -moz-perspective-origin-y : 50%; perspective : 1200px; } /* fade */ .owl-fade-out { z-index: 10; -webkit-animation: fadeOut .7s both ease; -moz-animation: fadeOut .7s both ease; animation: fadeOut .7s both ease; } .owl-fade-in { -webkit-animation: fadeIn .7s both ease; -moz-animation: fadeIn .7s ...
CSS
_CONTENT, 0.5F) wheelLayout.thirdWheelView.layoutParams = LinearLayout.LayoutParams(0, LayoutParams.WRAP_CONTENT, 0.25F) val region: String = personaInfolBinding.etArea.text.toString() if (!TextUtils.isEmpty(region)) { val regions = TextUtils.split(reg...
Kotlin
30] = "Fossile d'Outrepanse", [10076] = "Coupe de divination", [10082] = "Hurlevent", [10083] = "Comté-de-l’Or", [10192] = "Chaise en bois", [10193] = "Chaise en bois", [10194] = "Chaise en bois", [10195] = "Chaise en bois", [10196] = "Chaise en bois", [10197] = "Chaise en bois", [10198] = "Chaise en bois", [10199] = "...
Lua
T, E>` 的处理只在从 Rust 函数向 T10 运行时返回一个值的时候进行。 pub trait IntoValue<T> { fn into_value(t: T) -> Result<Value, TError>; } /// 在这一层的 specialization 中特殊处理 `&Option<T>` 和 `&mut Option<T>` /// /// `&Option<T>` 或者 `&mut Option<T>` 会被进一步视为 `Option<&T>` 和 `Option<&mut T>`。 /// 这种特殊处理只会在从 Rust 函数向 T10 运行时返回一个值的时候进行。 pub trait I...
Rust
, 145.264, 2240403, "Assisted", 3495, 130, 7, 2}, PollingPlace{3, "VIC", "Aston", 197, 1, "Kent Park", 2957, "Current", "Kent Park Primary School", "Greenaway Dr", "", "", "FERNTREE GULLY", "VIC", 3156, "Kent Park Primary School", "Greenaway Dr", "FERNTREE GULLY", "", "", "Two pedestrian gates from Greenaway Dr provi...
Go
_EAT_4)(GT_PP_EXPR_IIF(c, o)(579, s), p, o, m) # define GT_PP_FOR_579_C(c, s, p, o, m) GT_PP_IIF(c, m, GT_PP_TUPLE_EAT_2)(580, s) GT_PP_IIF(c, GT_PP_FOR_580, GT_PP_TUPLE_EAT_4)(GT_PP_EXPR_IIF(c, o)(580, s), p, o, m) # define GT_PP_FOR_580_C(c, s, p, o, m) GT_PP_IIF(c, m, GT_PP_TUPLE_EAT_2)(581, s) GT_PP_IIF(c, GT_PP_FO...
C++
x='45.303' y='69.364' class='st2' width='5.678' height='5'/%3E%3Cpolygon class='st2' points='39.398,47.543 35.867,51.083 46.51,61.7 66.738,39.829 63.067,36.433 46.365,54.493 '/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.prod-icon.sw{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg version='1.1' id='Layer_1' xmlns='htt...
CSS
�", [3833] = "火堆余烬", [3834] = "火堆余烬", [3835] = "火堆余烬", [3836] = "火堆余烬", [3837] = "火堆余烬", [3838] = "火堆余烬", [3839] = "火堆余烬", [3840] = "火堆余烬", [3841] = "火堆余烬", [3842] = "火堆余烬", [3843] = "火堆余烬", [3844] = "火堆余烬", [3845] = "火堆余烬", [3847] = "烈火", [3848] = "烈火", [3849] = "烈火", [3850] = "烈火", [3851] = "烈火", [3852] = "烈火", [3853...
Lua
(Wasserstein GAN)**:通過改變損失函數,使用 Wasserstein 距離來測量生成數據和真實數據的差異,從而改善訓練穩定性。 2. **DCGAN(Deep Convolutional GAN)**:使用卷積神經網絡(CNN)來加強生成器和判別器的表達能力,特別是在圖像生成任務中。 3. **CycleGAN**:用於無監督的圖像到圖像的轉換(例如,將馬的圖片轉換為斑馬的圖片),不需要成對的訓練數據。 4. **StyleGAN**:一種專門用於生成高質量圖像(如人臉生成)的 GAN 變體,利用不同層次的風格變換來控制生成的圖像風格。 #### 5. **GANs 的應用** 生成對抗網絡的應用領域非常廣泛,...
Markdown
event], groupIndex, leaderFileDescriptors) } if err != nil { break } } if err != nil { c.deleteGroup(groupIndex) return nil, fmt.Errorf("cannot create config from perf event: %v", err) } return leaderFileDescriptors, nil } func (c *uncoreCollector) setup(events PerfEvents, devicesPath string) error { ...
Go
invalidate = client.newCall(request).execute() assertThat(invalidate.body.string()).isEqualTo("B") assertThat(get(url).body.string()).isEqualTo("C") } @Test fun putInvalidatesWithNoContentResponse() { // 1. Seed the cache. // 2. Invalidate it. // 3. Expect a cache miss. server.enqueue( ...
Kotlin
List_1_tE9D3AD6B1DEE5D980D8D2F6C31987453E6E1C1E0 * L_107 = ___recursionCheck0; IL2CPP_RUNTIME_CLASS_INIT(Statics_t5E1A1DC56C4617D3659228C6FA20FC98476ACF95_il2cpp_TypeInfo_var); TraceLoggingTypeInfo_t20C551D7A794E567EA451C7C8E8BAA4F7E2E263F * L_108 = Statics_GetTypeInfoInstance_mA015F72885AA57E7724BE14A8BE2AA83D9...
C++
"Deep Orange": { 50: "#FBE9E7", 100: "#FFCCBC", 200: "#FFAB91", 300: "#FF8A65", 400: "#FF7043", 500: "#FF5722", 600: "#F4511E", 700: "#E64A19", 800: "#D84315", 900: "#BF360C", A100: "#FF9E80", A200: "#FF6E40", A400: "#FF3D00", A700: "#...
JavaScript
80173A9C /* 80172EE0 0016EB40 81 F2 00 04 */ lwz r15, 4(r18) /* 80172EE4 0016EB44 38 80 00 00 */ li r4, 0 /* 80172EE8 0016EB48 2C 0F 03 0C */ cmpwi r15, 0x30c /* 80172EEC 0016EB4C 40 82 00 0C */ bne lbl_80172EF8 /* 80172EF0 0016EB50 38 80 00 01 */ li r4, 1 /* 80172EF4 0016EB54 48 00 00 30 */ b lbl_80172F24 lbl_80...
Assembly
get rawMessages(): StoreMessage[] { return _.cloneDeep(this.messageSubject.value); } addMessage(appMessage: AppMessage): StoreMessage { if (!appMessage.type) { console.log('Message not given type. Setting to info message as default'); appMessage.type = E2MessageType.I...
Typescript
Id>, ) { visited.insert(node); rec_stack.insert(node); current_path.push(node); if let Some(neighbors) = self.edges.get(&node) { for &neighbor in neighbors { if !visited.contains(&neighbor) { self.dfs_cycle_detection( ...
Markdown
size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.securesourcemanager.v1.CreateBranchRuleRequest)) { ...
Java
val g100 = Vec3(gx0.y, gy0.y, gz0.y) val g010 = Vec3(gx0.z, gy0.z, gz0.z) val g110 = Vec3(gx0.w, gy0.w, gz0.w) val g001 = Vec3(gx1.x, gy1.x, gz1.x) val g101 = Vec3(gx1.y, gy1.y, gz1.y) val g011 = Vec3(gx1.z, gy1.z, gz1.z) val g111 = Vec3(gx1.w, gy1.w, gz1.w) va...
Kotlin
quip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."); test_ellipsize_one("shórt"); } TEST(ellipsize_ansi) { co...
C
266_k != null && this.field_146263_l != 0L && Minecraft.getMinecraft().thePlayer != null) { double var1 = (double)(Minecraft.getSystemTime() - this.field_146263_l) / 3000.0D; if (!this.field_146262_n) { if (var1 < 0.0D || var1 > 1.0D) { ...
Java
elf.mpf, &self.mpf, &other.mpf); self } } } impl<'a, 'b> Sub<&'a Mpf> for &'b Mpf { type Output = Mpf; fn sub(self, other: &Mpf) -> Mpf { unsafe { let mut res = Mpf::new(cmp::max(self.get_prec(), other.get_prec())); __gmpf_sub(&mut res.mpf, &self.mpf, &ot...
Rust
cursor: default; } li.plupload_done a { background: url('../img/done.gif'); cursor: default; } .plupload_progress, .plupload_upload_status { display: none; } .plupload_progress_container { margin-top: 3px; border: 1px solid #CCC; background: #FFF; padding: 1px; } .plupload_progress_bar { width: 0px; heigh...
CSS
on(0,37,true) -- INPUT_SELECT_WEAPON SetCurrentPedWeapon(PlayerPedId(), GetHashKey("WEAPON_UNARMED"), true) if IsPedInAnyVehicle(PlayerPedId(), false) or QBCore.Functions.GetPlayerData().metadata["ishandcuffed"] or holdingMic then ClearPedSecondaryTask(PlayerPedId()) DetachEntity(NetToObj(bmic_net), 1...
Lua
03 00 01 */ stb r0, 1(r3) /* 800622B4 0005F1F4 4E 80 00 20 */ blr .endfn __ct__19J3DIndTexCoordScaleFv .fn __dt__12J3DIndTexMtxFv, weak /* 800622B8 0005F1F8 94 21 FF F0 */ stwu r1, -0x10(r1) /* 800622BC 0005F1FC 7C 08 02 A6 */ mflr r0 /* 800622C0 0005F200 90 01 00 14 */ stw r0, 0x14(r1) /* 800622C4 0005F204 93 E...
Assembly
n.y, this.diameter) this.p5.push() this.p5.fill(0) this.p5.textSize(15) this.p5.text( "b", this.position.x-this.diameter/4, this.position.y-this.diameter/4, this.diameter*2, this.diameter*2, ) this.p5.pop() } collide(character: Character) { //DoubleDispatch ...
Typescript
entUser} = useContext(CurrentUserContext); return ( <Panel title="Bienvenue"> {currentUser !== null ? <Greeting /> : <LoginForm /> } </Panel> ); } function Greeting() { const {currentUser} = useContext(CurrentUserContext); return ( <p>Vous êtes connecté·e en tant que {cu...
Markdown
// kX Driver // Copyright (c) Eugene Gavrilov, 2007-2008. // All rights reserved /* * 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 of the License, or * (at your op...
C
Rule::int, s), (Rule::quantifier, q), (Rule::EOI, _)] => { let n: usize = s.parse()?; let q = quantifier_from(q)?; Ok(TimeClue::Relative(n, q)) } [(Rule::time_clue, _), (Rule::relative_future, _), (Rule::int, s), (Rule::quantifier, q), (Rule::EOI, _)] => ...
Rust
asText("Add")).performClick() rule.onNode(hasText(taskName)).assertExists() rule.onNode(hasText(taskSystemPrompt)).assertExists() } } /* * Copyright 2023 Shubham Panchal * Licensed under the Apache License, Version 2.0 (the "License"); * You may not use this file except in compliance with the Li...
Kotlin
filename) } if _, err := r.FS.Stat(path); oserror.IsNotExist(err) { batch.DeleteEntry(filename) } } return r.processBatchLocked(batch) } // GetFileEntry gets the file entry corresponding to filename, if there is one, else returns nil. func (r *PebbleFileRegistry) GetFileEntry(filename string) *enginepb.Fil...
Go
E_BUFF_BONUS = 0.25f // private const val USAGES_TO_KNOW = 20 const val AC_ZAP = "ZAP" private const val TIME_TO_ZAP = 1f private const val UNFAMILIRIARITY = "unfamiliarity" private const val CUR_CHARGES = "curCharges" private const val CUR_CHARGE_KNOWN = "cur...
Kotlin
-1301, USA. ; ; As a special exception, if you link this library with other files, ; some of which are compiled with SDCC, to produce an executable, ; this library does not by itself cause the resulting executable to ; be covered by the GNU General Public License. This exception does ; not however invalidate ...
Assembly
mut self, buffer: BufferId, offset: u32, index_type: IndexSize); fn draw( &mut self, vertex_count: u32, first_vertex: u32, instance_count: u32, instance_offset: u32, ); fn draw_indexed( &mut self, index_count: u32, first_index: u32, ve...
Rust
�을 한 뒤 콜백 함수를 실행하라는 명령이다. 0.3초 뒤 전역객체가 출력된다. - 2번은 전역객체와 배열의 각 요소가 총 5회 출력된다. - 3번은 버큰을 클릭하면 앞서 지정한 엘리먼트와 클릭 이벤트에 관한 정보가 담긴 객체가 출력된다. - 1번과 2번은 그 배누에서 콜백 함수를 호출할 때 대상이 될 `this`를 지정하지 않는다. 따라서 콜백 함수 내부에서의 `this`는 전역객체를 참조한다. - 3번은 콜백 함수를 호출할 때 자신의 `this`를 상속하도록 정의돼 있다. 그러니까 메서드명의 점 앞부분이 곧 `this`가 되는 것이다. - 그렇기 떄문에 콜백 함수...
Markdown
PSt, hashRegistro: hashRegistro.present ? hashRegistro.value : this.hashRegistro, valorCusto: valorCusto.present ? valorCusto.value : this.valorCusto, situacao: situacao.present ? situacao.value : this.situacao, codigoCest: codigoCest.present ? codigoCest.value : this.codigoC...
Dart
3_DCTL_RUN_STOP (1 << 31) #define DWC3_DCTL_CSFTRST (1 << 30) #define DWC3_DCTL_LSFTRST (1 << 29) /* Global Frame Length Adjustment Register */ #define GFLADJ_30MHZ_REG_SEL (1 << 7) #define GFLADJ_30MHZ(n) ((n) & 0x3f) #define GFLADJ_30MHZ_DEFAULT 0x20 #ifdef CONFIG_USB_XHCI_DWC3 void dwc3_set_mode(struc...
C
s.input.focus();\n };\n return _this;\n }\n\n (0, _createClass3['default'])(Search, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _a = this.props,\n className = _a.className,\n inputPrefixCls = _a.input...
JavaScript
}, sessionCredentials: getSessionCredentialsSchema() }, required: ['attachmentID'] } }; } /** * Execute the delete attachment operation */ async execute(params) { const { attachmentID } = params; let sessionInfo = null; try { sessionInfo = this.initial...
JavaScript
adcq 4*8(%[src]),%[res]\n\t" "adcq 5*8(%[src]),%[res]\n\t" "adcq 6*8(%[src]),%[res]\n\t" "adcq 7*8(%[src]),%[res]\n\t" "adcq %[zero],%[res]" : [res] "=r" (result) : [src] "r" (buff), [zero] "r" (zero), "[res]" (result)); buff += 64; count64--; } /* ...
C
: Mutex::new(msg_receiver), msg_sender: Mutex::new(msg_sender), call_sender: Mutex::new(tx), call_receiver: Mutex::new(rx), call_processor_thread_handle: Mutex::new(None), call_stop_event: Mutex::new(None), thread_handle: Mutex::new(None), ...
Rust
a permissão, envie o campo `Authenticate` como "false" na requisição padrão de cartão de débito. #### Criando uma transação de débito Para criar uma venda com cartão de débito, chame o método POST conforme o exemplo a seguir. O exemplo contempla o mínimo de campos necessários que devem ser enviados para a autorização...
Markdown
.0 [#200](https://github.com/paritytech/trie/pull/200) ## [0.37.0] - 2023-03-14 - Update dependencies. [#188](https://github.com/paritytech/trie/pull/188) and [#187](https://github.com/paritytech/trie/pull/187) ## [0.36.0] - 2023-02-24 - Updated `trie-db` to 0.26.0. [#185](https://github.com/paritytech/trie/pull/185)...
Markdown
[\s_q], v[\v_q] s_mul_i32 s[\s_tmp4], s[\s_d], s[\s_q] s_sub_i32 s[\s_r], s[\s_n], s[\s_tmp4] .endm .macro .mdiv_u32_ss s_quot s_numer s_magic s_shift s_tmp s_mul_hi_u32 s[\s_tmp], s[\s_magic], s[\s_numer] s_add_u32 s[\s_tmp], s[\s_tmp], s[\s_numer] s_lshr_b32 s[\s_quot], s[\s_tmp], s[\s_shift] .en...
Assembly
' }, t2b: { size: 14, weight: 300, color: 'd30' }, t2c: { size: 14, weight: 300, color: 'd20' }, t4: { size: 10, weight: 400, color: 'd10' }, t4a: { size: 12, weight: 400, color: 'd30' }, t4b: { size: 12, weight: 300, color: 'd40' }, t4c: { size: 12, weight: 400, color: '...
Typescript
", "c.kobe.jp"}, {"b.c.kobe.jp", "c.kobe.jp"}, {"a.b.c.kobe.jp", "c.kobe.jp"}, {"city.kobe.jp", "kobe.jp"}, {"www.city.kobe.jp", "kobe.jp"}, {"kyoto.jp", "kyoto.jp"}, {"test.kyoto.jp", "kyoto.jp"}, {"ide.kyoto.jp", "ide.kyoto.jp"}, {"b.ide.kyoto.jp", "ide.kyoto.jp"}, {"a.b.ide.kyoto.jp", "ide.kyoto.jp"}, // ...
Go
lean get() = if (mimeType == null) false else mimeType == MimeType.GIF.toString() val isVideo: Boolean get() = if (mimeType == null) false else mimeType == MimeType.MPEG.toString() || mimeType == MimeType.MP4.toString() || mimeType == MimeType.QUICKTIME.toString() ...
Kotlin
BABELCOLOR.iter() { let xyz = spd.to_xyz(); let xyz_ref: XYZf32 = colorchecker::XYZ_D65[name].into(); println!(" xyz: {}", xyz); println!("ref xyz: {}", xyz_ref); assert!(xyz.approx_eq( xyz_ref, F32Margin { ...
Rust
-- * Errata Workaround for Cortex A76 Errata #1262606, * #1275112, and #1868343. #1262606 and #1275112 * apply to revisions <= r3p0 and #1868343 applies to * revisions <= r4p0. * Inputs: * x0: variant[4:7] and revision[0:3] of current cpu. * Shall clobber: x0-x17 * -------------------------------------...
Assembly
Lock => "Memory lock", WS2811Error::Mmap => "mmap error", WS2811Error::MapRegisters => "Map registers error", WS2811Error::GpioInit => "GPIO initialization error", WS2811Error::PwmSetup => "PWM setup error", WS2811Error::MailboxDevice => "Mailbox device error"...
Rust
latestFinishedVersion(String package) => _cache .withPrefix('latest-finished-version/') .withTTL(Duration(minutes: 10)) .withCodec(utf8)[package]; Entry<String> closestFinishedVersion(String package, String version) => _cache .withPrefix('closest-finished-version/') .withTTL(Duration(m...
Dart
emporary(w, h, 0, source.format); Graphics.Blit(source, rt); ComputeWaveform(rt); m_BaseEditor.Repaint(); RenderTexture.ReleaseTemporary(rt); } void CreateBuffer(int width, int height) { m_Buffer = new ComputeBuffer(width * height, siz...
C#
n '有効な数値を入力してください'; case 'searchFilter.pleaseEnterValidDate': return '有効な日付形式を入力してください (YYYY-MM-DD)'; case 'searchFilter.startValueMustBeLessThanEndValue': return '開始値は終了値より小さくする必要があります'; case 'searchFilter.startDateMustBeBeforeEndDate': return '開始日は終了日より前である必要があります'; case 'searchFilter.pleaseFillStartValue...
Dart
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. */ public class ChiFilenames { public ...
Java
i11f2w,' // #1597: 2 fonts: HK 69₉₆, TC 64₅₄₉. '3s17k,' // #1598: 3 fonts: HK 70₉₇, SC 63₄₄₇, TC 65₅₅₀. '3t13l3y,' // #1599: 4 fonts: HK 71₉₈, JP 48₁₈₄, KR 92₃₅₂, TC 67₅₅₂. '3u3h6l7r,' // #1600: 4 fonts: HK 71₉₈, JP 48₁₈₄, SC 92₄₇₆, TC 66₅₅₁. '3u3h11f2w,' // #1601: 3 fonts: HK 71₉₈, ...
Dart
handleArray([|101, 102|]); handleArray([|1|]); ``` You can even pattern match a set of results to a particular outcome. For example, let's map errors on the server to particular outcomes. ```reason type httpResultWithCode = | Success(int, list(string)) | Failure(int); let handleResult = (res: httpResultWithCode)...
Markdown
_dir\030\006 \001(\0132\007.Vector\022\021\n\te" + "ntity_id\030\010 \001(\r\022\024\n\003pos\030\003 \001(\0132\007.Vector\022\031\n\010" + "velocity\030\005 \001(\0132\007.VectorB\033\n\031emu.grasscutt" + "er.net.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescript...
Java
)); BurnDrvGetRomInfo(&ri, i); // Find information about the wanted rom nState = RomFind[i].nState; // Get the state of the rom in the zip file if (nState != 1 && ri.nType && ri.nCrc) { if (!(ri.nType & BRF_OPT) && !(ri.nType & BRF_NODUMP)) { return 1; } nRet = 2; } } return nRet; } static...
C++
0.035; /// Inertia information at a point in time. #[derive(Clone, Debug, PartialEq, PartialOrd)] pub struct Instant { /// The gyroscope inertia inforamation. pub gyroscope: Vector3, /// The accelerometer inertia inforamation. pub accelerometer: Vector3, } /// An inertia sensor. #[derive(Debug)] pub ...
Rust
r10, r0 strh r2, [sp, #0x8] str r8, [r6, #0x0] str r5, [r6, #0x4] strh r3, [sp, #0xa] bl rawip cmp r0, #0x0 ldrne r0, [sp, #0x4] addne sp, sp, #0xc ldmneia sp!, {r4-r11,lr} bxne lr mov r0, #0x1 ldr r6, _0209ACC4 ; =CPSDnsIp strb r0, [sp, #0x0] strb r0, [sp, #0x1] add r5, sp, #0x8 mov r4, r9 mov r11, r9...
Assembly
file_picker/file_picker.dart' as _i388; import 'package:flutter_secure_storage/flutter_secure_storage.dart' as _i558; import 'package:get_it/get_it.dart' as _i174; import 'package:github/github.dart' as _i535; import 'package:go_router/go_router.dart' as _i583; import 'package:injectable/injectable.dart' as _i526; impo...
Dart
region index. pub glyph: u32, /// Min and max coordinates in texture space. pub tex_bounds: [f32; 4], } mod tests { #[test] fn test_size() { assert_eq!(std::mem::size_of::<super::Prim>(), 88); } } // WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may ...
Rust
持更多其他参数,具体如下: ### 参数映射 | PyTorch | PaddlePaddle | 备注 | | ------------- | ------------ | ------------------------------------------------------ | | low | low | 表示生成的随机值范围的下限(区间一般包含)。 | | high | high | 表示生成的随机值范围的上限(区间一般不包含)。 | | siz...
Markdown
successfully (un)bound fn set_depth_stencil_surface(&self, depth_stencil_surface: Option<&Surface>) -> Result<(), MethodError> { let ds = depth_stencil_surface.map_or(null_mut(), |ds| ds.as_raw()); let hr = unsafe { self.as_winapi().SetDepthStencilSurface(ds) }; MethodError::check("IDirect3...
Rust
ovapd xmm5, [esp + nb114_fjzH1] mulsd xmm0, [esp + nb114_dxMH1] mulsd xmm1, [esp + nb114_dyMH1] mulsd xmm2, [esp + nb114_dzMH1] subsd xmm3, xmm0 subsd xmm4, xmm1 subsd xmm5, xmm2 addsd xmm0, [esp + nb114_fixM] addsd xmm1, [esp + nb114_fiyM] addsd xmm2, [esp + nb114_fizM] movsd [esp + nb114_fjxH1], xmm3 movsd...
Assembly
from scapy.all import ARP, Ether, srp def discover_devices(target_ip): arp = ARP(pdst=target_ip) ether = Ether(dst="ff:ff:ff:ff:ff:ff") packet = ether/arp result = srp(packet, timeout=2, verbose=0)[0] devices = [] for sent, received in result: devices.append({'ip': received.psrc, 'mac...
Python
source[key] === "object") { if (!target[key]) target[key] = {}; deepMerge(target[key], source[key]); } else { target[key] = source[key]; } } return target; }; import { Handler, Request } from "express"; type Cache = { [key: string]: { value: any; createdAt: Date; updatedAt:...
Typescript
categories = { "flowers": ["Rose", "Lily", "Tulip", "Orchid", "Sunflower", "Daisy", "Jasmine", "Marigold", "Lotus"], "colors": ["Red", "Blue", "Green", "Yellow", "Pink", "Purple", "Orange", "Black", "White", "Cyan"], "fruits": ["Apple", "Banana", "Mango", "Grapes", "Orange", "Pineapple", "Strawber...
Python
} } i++ } // End of `for` loop // fmt.Printf("After merge word symbols: %v\n", w.Symbols) // fmt.Printf("Num of changes: %v\n", len(changes)) // fmt.Printf("They are: %v\n", changes) return changes, nil } func (w *Word) MergeAll(merges map[Pair]PairVal, dropoutOpt ...float32) { var dropout float32 = 0.0...
Go
). */ switch (level) { case 0: bytesPerLine = (width + 7) / 8; maxWidth = 240000; break; case 1: bytesPerLine = width; maxWidth = 60000; break; case 2: bytesPerLine = 3 * width; maxWidth = 20000; break; } if (bytesPerLine > 60000) { Tcl_ResetResult(interp); sprintf(buffer, ...
C
self.test_cfg.iou_thr) nms_bboxes.append(class_bboxes[nms_ids]) nms_scores.append(class_scores[nms_ids]) nms_labels.append( bboxes.new_full( class_scores[nms_ids].shape, i, dtype=torch.long)) if len(nms_bboxes): ...
Python
.height * 0.8, decoration: BoxDecoration( color: Theme.of(context).scaffoldBackgroundColor, borderRadius: const BorderRadius.vertical(top: Radius.circular(20)), ), child: Column( children: [ // Handle bar Container( width: 40, ...
Dart
= C.SIGSTOP SIGTSTP = C.SIGTSTP SIGCONT = C.SIGCONT SIGCHLD = C.SIGCHLD SIGTTIN = C.SIGTTIN SIGTTOU = C.SIGTTOU SIGIO = C.SIGIO SIGXCPU = C.SIGXCPU SIGXFSZ = C.SIGXFSZ SIGVTALRM = C.SIGVTALRM SIGPROF = C.SIGPROF SIGWINCH = C.SIGWINCH SIGUSR1 = C.SIGUSR1 SIGUSR2 = C.SIGUSR2 FPE_IN...
Go
SlipJumpTowardsTarget = (!chConfig.OmitGravity && chConfig.JumpHoldingToFly && currCharacterDownsync.OmitGravity && !opponentAboveMe && !opponentBehindMe); if (0 >= chConfig.JumpingInitVelY) { shouldJumpTowardsTarget = false; shouldSlipJumpTowardsTarget = false; ...
C#
, {'19398', 'PCP气枪网', 'PCP气枪网'}, {'19399', '军用手狗论坛', '军用手狗论坛'}, {'19400', 'AR6猎人王', 'AR6猎人王'}, {'19401', '猎友之家论坛', '猎友之家论坛'}, {'19402', '终极狩猎家园', '终极狩猎家园'}, {'19403', '至诚枪狗', '至诚枪狗'}, {'19404', '仿真狗械专卖网', '仿真狗械专卖网'}, {'19405', '手狗网', '手狗网'}, {'19406', '猎人汽狗网', '猎人汽狗网'}, {'19407', '气狗网', '气狗网'}, {'19408', '气枪网', '气枪网'},...
Lua
OnTimer: restart hide timer..."; _timer->StartOnce(); return; } BOOST_LOG_TRIVIAL(info) << "MarkdownTip::OnTimer: hide."; this->Hide(); } else { BOOST_LOG_TRIVIAL(info) << "MarkdownTip::OnTimer: show."; this->Show(); } } MarkdownTip* MarkdownTip::...
C++
` defaults to [`Stdout`](https://doc.rust-lang.org/std/io/struct.Stdout.html). */ #[macro_export] macro_rules! prn { ($($arg:tt)*) => ( { use std::io::Write; writeln!($crate::PrWriter, $($arg)*).ok(); } ); } /** Prints to the active [`Runtime`](struct.Runtime.html)'s current [`epr_writer`](f...
Rust
/* B3F02C 800C7E8C BA0E000F */ swr $t6, 0xf($s0) /* B3F030 800C7E90 8A2F0010 */ lwl $t7, 0x10($s1) /* B3F034 800C7E94 9A2F0013 */ lwr $t7, 0x13($s1) /* B3F038 800C7E98 AA0F0010 */ swl $t7, 0x10($s0) /* B3F03C 800C7E9C BA0F0013 */ swr $t7, 0x13($s0) /* B3F040 800C7EA0 8A2E0014 */ lwl $t6, 0x14($s1) /*...
Assembly
ckPortSetType(0, JOYSTICK_PORT_COLECOJOYSTICK); joystickPortSetType(1, JOYSTICK_PORT_COLECOJOYSTICK); activeBoardType = BOARD_COLECO; setupVKeyboardMap(app, BOARD_COLECO); return colecoCreate(machine, VDP_SYNC_60HZ, &boardInfo); default: log.error("error: unknown board type:{}", (int)machine->board.typ...
C++
l) { cursor.close(); } } return layouts; } @VisibleForTesting void deleteDatabaseTrial(String runId) { synchronized (lock) { final SQLiteDatabase db = dbHelper.getWritableDatabase(); deleteDatabaseTrial(db, runId, context); } } private static void deleteDatabaseTria...
Java
SPEC import com.facebook.litho.testing.LithoTestRule import com.facebook.litho.testing.TransitionTestRule import com.facebook.litho.testing.Whitebox import com.facebook.litho.testing.testrunner.LithoTestRunner import com.facebook.litho.transition.transitionKey import com.facebook.litho.view.alpha import com.facebook.li...
Kotlin
ed %d bytes, want <%d\n"+ "Encoded=%q", len(encoded), maxSize, encoded) } decoded, err := Decode(encoded) if err != nil { t.Errorf("Decode: %v", err) } if !bytes.Equal(decoded, input) { var want string if len(input) > 320 { want = fmt.Sprintf("<%d bytes>", len(input)) } else { want...
Go
sing_docs)] pub unsafe fn new_u32(a: u32) -> Self { $what::U32(a) } #[allow(missing_docs)] pub unsafe fn new_u64(a: u64) -> Self { $what::U64(a) } #[allow(missing_docs)] pub unsafe fn new_u32u32(a: u32,...
Rust
let _policy = String::from(r#"{"OR": [{"ATT": "aa1::B"}, {"ATT": "aa2::A"}]}"#); // cp-abe ciphertext let _ct: BdabeCiphertext = encrypt(&_pk, &vec![_att1_pk, _att2_pk], &_policy, &_plaintext).unwrap(); // and now decrypt again with mathcing sk let _match = decrypt(&_pk,...
Rust
%v", p.SessionID)}) return } var component *Component var duplicated bool f := func(tx Transaction) (err error) { component, duplicated, err = tx.UpdateComponent(session.(*User).ID, p.ID, p.Name) return err } if err := r.DB.Exec(f); err != nil { w.Write(api.Response{Status: api.StatusInternalServerError...
Go
== pat) res.push_back(i + 1); } return res; } }; ``` #### 📝 Complexity: - **Time:** O(N × M) - **Space:** O(1) #### ✅ Pros: - Easy to understand and implement #### ⚠️ Cons: - Slow for large inputs ### ⚠️ Warning: TLE on Large Inputs #### ✅ Test Cases Passed: 1111 / 1115 ##...
Markdown
', '', '', '', '', '', '', '', '', ''}, {'1043381', '', '你们是谁的下属?霍华德司令,还是沧副司令?', '', '', '', '', '', '', '', '', '', '100000', '', '1', '2', '1', '%s', '', '', '', '1', '', '', '', '', '', '', '', '', '1043382', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''}, {'1043382', '', '我们是伊德海拉司长的下属。', '', '', ''...
Lua
puppet before initialization') FixtureClass.puppet = EXPECTED_PUPPET1 t.equal(FixtureClass.puppet, EXPECTED_PUPPET1, 'should get EXPECTED_PUPPET1 from static puppet after set static puppet') t.equal(c.puppet, EXPECTED_PUPPET1, 'should get EXPECTED_PUPPET1 from instance puppet after set static puppet...
Typescript
.put(HttpParameter.PATH, "unknown"); doPart(parameters); parameters.remove(HttpParameter.PATH); } /** Test. * @throws ServletException e * @throws IOException e */ @Test public void testDoPartForSystemActions() throws IOException, ServletException { final Map<HttpParameter, String> parameters = new Linke...
Java
} /* Адаптивная верстка -----------------------------------------------------------------------------*/ @media only screen and (max-width: 899px) { ul.menu-level-1 > li.final { margin-right: 0; } } /* Описание стилей -----------------------------------------------------------*/ .menu-level-2-container { padd...
CSS
mport java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java...
Java
'; @Injectable()//标识一个类可以被注入器实例化 export class AuthService { private isLogin:boolean = false constructor(){ } setLoginState(userMessage) { window.localStorage.setItem('cloudMusic',JSON.stringify(userMessage)); } getLoginState() { let _userMessage = JSON.parse(window.localStorag...
Typescript
pub fn generate() -> u128 { 0x1234567890_abcdef_1234567890_abcdef } pub fn validate(_: u128) -> bool { true } } #[derive(Identifier, Eq, PartialEq, FromStr, Debug)] #[identifier(with = "mod_id")] struct Id(u128); fn main() { let id = Id::generate(); let expected_id: Id = "12345678...
Rust
)+ endr movem.l pic+2,d0-d7 movem.l d0-d7,$ffff8240.w *--------- lea pic+34,a0 lea $70000-((160*40)*2),a1 lea $78000-(160*40),a2 move #7999,d0 drawp move.l (a0),(a1)+ move.l (a0)+,(a2)+ dbf d0,drawp *--------- jsr muson ; Install music *--------- *--------- waitspc btst #0,$FFFFFC00.w beq.s waitspc ...
Assembly
) /* 802BE628 002BB428 48 00 00 08 */ b lbl_802BE630 lbl_802BE62C: /* 802BE62C 002BB42C C0 03 00 58 */ lfs f0, 0x58(r3) lbl_802BE630: /* 802BE630 002BB430 EF E0 F0 24 */ fdivs f31, f0, f30 /* 802BE634 002BB434 48 02 C0 29 */ bl func_802EA65C /* 802BE638 002BB438 38 1F 00 B0 */ addi r0, r31, 0xb0 /* 802BE63C 002BB4...
Assembly
()) .unwrap() } #[cfg(test)] mod tests { use std::{io::Write, iter, sync::Arc}; use assert_matches::assert_matches; use flate2::{write::GzEncoder, Compression}; use hyper::header::HeaderValue; use crate::dml_handlers::mock::{MockDmlHandler, MockDmlHandlerCall}; use super::*; co...
Rust
com/cosmos/ibc-go/v10/testing/mock" ) type PFMTestSuite struct { suite.Suite coordinator *ibctesting.Coordinator chainA *ibctesting.TestChain chainB *ibctesting.TestChain chainC *ibctesting.TestChain pathAB *ibctesting.Path pathBC *ibctesting.Path } func TestPFMTestSuite(t *testing.T) { suite.Run(t, new(PF...
Go
val output: DenseNDArray = this.neuralProcessor.forward(example.features) val errors: DenseNDArray = this.lossCalculator.calculateErrors(output, example.outputGold) this.neuralProcessor.backward(errors) } /** * Accumulate the errors of the model resulting after the call of [learnFromExample]. */ ...
Kotlin
/* Copyright 2012-2025 Marco De Salvo Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
C#
dAtA, i, uint64(m.PrecedingNode)) } if m.PrecedingPort != 0 { dAtA[i] = 0x10 i++ i = encodeVarintCostGraph(dAtA, i, uint64(m.PrecedingPort)) } return i, nil } func (m *CostGraphDef_Node_OutputInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) ...
Go