content
stringlengths
2
6.21k
label
stringclasses
16 values
pR=function ITb(a,b,c){vTb();wTb(this,a,b,c)};_.qR=function JTb(a){this.c=a};_.mA=function KTb(a,b,c,d,e){if(this.c){Pbb(this.b,UYe);return false}dUb(this.d,this);return false};_.a=false;_.c=false;var uTb;var _je=nHe(u4e,l6e,252,Lhe);Zte(134,252,{49:1,68:1,134:1,252:1},MTb,NTb,OTb,PTb,QTb,RTb);_.rR=function STb(a){LTb(...
JavaScript
Specifiers) { lstLinks.Add(linkFactory.CreateServerLink(serverSpecifier, action)); } return lstLinks.ToArray(); } public IAbsoluteLink[] CreateStyledBuildLinkList(IBuildSpecifier[] buildSpecifiers, IBuildSpecifier selectedBuildSpecifier, string action) { var displayableBuildLinkList = new List<I...
C#
import json from configparser import ConfigParser from operator import attrgetter from pathlib import Path from types import SimpleNamespace def _verify_lockfile(): """Assert that all the packages in Pipfile are in Pipfile.lock""" config = ConfigParser() config.read('Pipfile') pipfile_packages = set...
Python
// // NSStringPunycodeAdditions.h // Punycode // // Created by Wevah on 2005.11.02. // Copyright 2005-2012 Derailer. All rights reserved. // // Distributed under an MIT-style license; please // see the included LICENSE file for details. // /** This header is private to the Twitter Kit SDK and not exposed for pu...
C
fun modelCheckingTest() = ModelCheckingOptions().check(this::class) }/* * Lincheck * * Copyright (C) 2019 - 2025 JetBrains s.r.o. * * This Source Code Form is subject to the terms of the * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed * with this file, You can obtain one at http://...
Kotlin
ARGO_FEATURE_PI3").is_some() && target_arch == "aarch64" { let _ = fs::write( "./target/config.txt", r#"####################################################### # RPi3 configuration settings for baremetal bootloader ####################################################### # fix the core frequency dr...
Rust
| | 8 Channel PWM Breakout cable | ![8 Channel PWM Breakout cable](../../assets/flight_controller/pixhawk_mini/pixhawk_mini_8channel_pwm_breakout_cable_drawing.png) | | Монтажна піна ...
Markdown
_t*)&__BinaryParser_ReadArray_m9912D986537D00FB9961EDDF144BF104E87101A0_RuntimeMethod_var))); } IL_0303: { bool L_150 = V_5; if (L_150) { goto IL_0315; } } { SerStack_tF095DBA17E9C56FB512013B83F330194A4BB8AAC * L_151 = __this->get_stack_6(); ObjectProgress_t1D8BC0A0F776D511B4B3A29069356AD1B71D16DB *...
C++
ify.dart'; class com_amap_api_maps_model_HeatMapLayerOptions extends com_amap_api_maps_model_BaseOptions { //region constants static const String name__ = 'com.amap.api.maps.model.HeatMapLayerOptions'; @override final String tag__ = 'amap_map_fluttify'; static final int DEFAULT_RADIUS = 12; static final...
Dart
sel_subtitle); return _ret.address == 0 ? null : objc.NSString.castFromPointer(_ret, retain: true, release: true); } /// Returns a new instance of MLNPolyline constructed with the default `new` method. factory MLNPolyline() => new$(); } late final _class_MLNMultiPolyline = objc.getClass("MLNMultiPolyline");...
Dart
on prefix, suffix and denied characters parse.generateRegex() // Parses content and adds strings in found_strings with specific type parse.parseContent("text") } // closing tag <-> closing tag "(\<\/(.{0,10})\>)" text extraction func (parse *Parsehtml) ExtractTextCC() { // set affixes for simple strings extraction...
Go
= '' and translation ~= key then translationData[targetLanguage][key] = translation elseif targetLanguage ~= defaultLanguage then translationData[targetLanguage][key] = getLocalizedText(key, defaultLanguage) else translationData[targetLanguage][key] = key end ...
Lua
54E04 ldr r0, _02254E88 ; =0x040002A8 ldr r5, [r0] str r5, [r4, #0xc] mov r5, #1 strh r5, [r1] add r1, r0, #0 sub r1, #0x18 str r3, [r1] str r2, [r1, #4] mov r2, #0x3c sub r0, #0x10 str r2, [r0] mov r1, #0 ldr r2, _02254E80 ; =0x04000280 str r1, [r0, #4] lsr r0, r2, #0xb _02254E2A: ldrh r1, [r2] tst r...
Assembly
T_TIOCOUTQ TARGET_IOR('t', 115, int) //#define __TIOCGLTC _IOR('t', 116, struct ltchars) /* SunOS Specific */ //#define __TIOCSLTC _IOW('t', 117, struct ltchars) /* SunOS Specific */ /* 118 is the non-posix setpgrp tty ioctl */ /* 119 is the non-posix getpgrp tty ioctl */ //#define __TIOCCDTR TARGE...
C
. /// /// If the compatibility is COMPATIBLE, this metric can be successfully added /// to the report. /// Possible string values are: /// - "COMPATIBILITY_UNSPECIFIED" : Unspecified compatibility. /// - "COMPATIBLE" : The dimension or metric is compatible. This dimension or /// metric can be successfully...
Dart
using System; using System.Collections.Generic; namespace StackExchange.Redis; /// <summary> /// GeoRadius command options. /// </summary> [Flags] public enum GeoRadiusOptions { /// <summary> /// No Options. /// </summary> None = 0, /// <summary> /// Redis will return the coordinates of any ...
C#
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2012-2014 Cyril Hrubis chrubis@suse.cz * Copyright (c) 2021 Xie Ziyao <xieziyao@huawei.com> */ #include <stdio.h> #include <string.h> #include <errno.h> #include "test.h" #include "tst_process_state.h" int tst_process_state_wait(const char *file, con...
C
attributes != attributes) { point.attributes = attributes } pointsAnalyser?.onAnalysePoint(this, point, attributes) pointAttributes.add(attributes) } private fun updateBounds(point: WptPt) { if (left == 0.0 && right == 0.0) { left = point.getLongitude() right = point.getLongitude() top = point.ge...
Kotlin
); desc = followed.desc; value = followed.value; } if (desc === undefined && value === undefined) { continue; } replaceObserversAndListeners(obj, key, value); detectBinding(obj, key, value, m); defineProperty(obj, key, desc, value, m); } if (!partial) { // don't apply to prototype...
JavaScript
весины Болтую в Оплот Чести.", ["T"] = "Ничто не пропадет даром", }, [10056] = { ["D"] = "Орки из Цитадели Адского Пламени основали военную базу на руинах старого оркского поселения Зет\'Гор, и их число постоянно растет.$B$BСыны Лотара когда-то сражались с ними, но я бы никогда не поверил их рассказам, если...
Lua
AK I2C4_ER_IRQHandler SECTION .text:CODE:NOROOT:REORDER(1) I2C4_ER_IRQHandler B I2C4_ER_IRQHandler END
Assembly
rKzAddressHeader.addressesvs5 ?? "#$L$LLDOr#) r6rBrCrrrrr`rdrDrrKrrs@r!rrGs]I CC6" r#rceZdZdZy)UniqueAddressHeaderrP...
Python
in() + length.getSize() + length.value); } /////////////////////////////////////////////////////////////////////////////// // // class NetworkAddress implementation // NetworkAddress::NetworkAddress(uint32_t time, uint64_t services, unsigned char ipv6_bytes[], uint16_t port) { this->time = time; this->services...
C++
/installing.html)를 참고하여 설치한다. 참고: [KwangYoun Jung님 블로그](http://initialkommit.github.io/2015/04/27/django-newbie-adding-facebook-authentication-to-a-django-app/) ```shell pip install python-social-auth ``` 핍으로 설치해주고, 센스있게 `requirements.txt`에도 써준다. `Installed_apps`에도 써준다. ```python INSTALLED_APPS = [ ... 'soci...
Markdown
:广泛用于基础设施软件作为轮询和聚合引擎: * 应用程序部署/ PaaS:Parallec已集成在eBay主要生产应用程序部署系统(PaaS)中。 Parallec协调10+个API任务,每**个任务针对生产中超过1,000个应用程序池的10到1,000个服务器。 Parallec已经与工作流引擎Winder一起使用来处理复杂的部署工作流程。 * 数据提取/ ETL:Parallec已被eBay以色列的结构化大数据团队用于对单个第三方服务器执行10k-100k API并行调用,具有显着改进的性能和减少的资源。 * 主动探测进行网络故障排除:在eBay的网络/云团队中,Parallec有助于确保极低的错误警报率,从而准确检测交换机软...
Markdown
Item?.icon?.alpha = if (editor.canRedo()) 255 else 128 } /** * Get appropriate language type based on file name * 根据文件名获取适合的语言类型 * @param fileName File name * @return Corresponding language type (java, cpp, python or text) */ fun getLanguageForFile(fileName: String): String { ...
Kotlin
) && defined(PADDLE_WITH_HETERPS) && \ defined(PADDLE_WITH_PSCORE) #include "paddle/fluid/distributed/ps/service/simple_rpc/rpc_server.h" #include <arpa/inet.h> #include <net/if.h> #include <netinet/in.h> #include <sys/ioctl.h> #include <sys/socket.h> #include "paddle/fluid/distributed/ps/service/simple_rpc/baidu_r...
C++
1,0x00,0x00,0xb4,0xd6] vupl %v0, %v0, 0 vupl %v0, %v0, 15 vupl %v0, %v15, 0 vupl %v0, %v31, 0 vupl %v15, %v0, 0 vupl %v31, %v0, 0 vupl %v14, %v17, 11 #CHECK: vuplb %v0, %v0 # encoding: [0xe7,0x00,0x00,0x00,0x00,0xd6] #CHECK: vuplb %v0, %v15 # encoding: [0xe7,0x0f,0x00,0x00,0x00...
Assembly
' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' he...
CSS
ice.library.scene.element.display.ItemDisplay import ice.library.scene.element.display.LiquidDisplay import ice.library.scene.element.display.PowerDisplay import mindustry.Vars import mindustry.world.consumers.* object ConsumeTable { val renderers = HashMap<Class<*>, (Consume, Table) -> Unit>() init { ...
Kotlin
actionCannon(ResultSet set, Item baseItem) throws SQLException { super(set, baseItem); this.setExtradata("0"); } public InteractionCannon(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) { super(id, userId, item, extradata, limitedStack, limitedSells)...
Java
, %g2 stxa %g2, [%g1] 0x40 ta T_CHANGE_NONHPRIV .word 0xfe2de08a ! 5438: STB_I stb %r31, [%r23 + 0x008a] .word 0xf0252035 ! 5439: STW_I stw %r24, [%r20 + 0x0035] .word 0xf0358000 ! 5440: STH_R sth %r24, [%r22 + %r0] .word 0xf834e112 ! 5446: STH_I sth %r28, [%r19 + 0x0112] .word 0x8595a0a6 ! 5448: WRPR_TSTAT...
Assembly
た学習データや学習させたいモデル、バッチサイズやステップ数によっても変わってきます。一般的な値から初めて学習状態を見ながら増減してください。 デフォルトでは学習全体を通して学習率は固定です。スケジューラの指定で学習率をどう変化させるか決められますので、それらによっても結果は変わってきます。 ## エポック(epoch) 学習データが一通り学習されると(データが一周すると)1 epochです。繰り返し回数を指定した場合は、その繰り返し後のデータが一周すると1 epochです。 1 epochのステップ数は、基本的には `データ件数÷バッチサイズ` ですが、Aspect Ratio Bucketing を使うと微妙に増えます(異...
Markdown
import random from _context import simplemind as sm class InspirationPlugin(sm.BasePlugin): # Define inspirations as a class variable inspirations: list[str] = [ "The only limit to our realization of tomorrow is our doubts of today.", "Imagine beyond the edges of what you know.", "Wha...
Python
**A-2.** セッションIDをまたいだ情報の永続化と復元のテスト(もしサポートする場合) #### B. API エンドポイント (ローカル実行時 `uvicorn app.main:app`) * **B-1.** `/chat` (または同等の) エンドポイントへのリクエスト送信と正常なレスポンス受信テスト * **B-2.** 複数回のやり取りを通じた会話セッションの維持テスト * **B-3.** リクエストボディのバリデーションテスト(不正な形式のリクエストへのエラーレスポンス) --- ### IV. 異常系・境界値テスト (Error & Boundary Condition Tests) 予期しない状況...
Markdown
const logical = function Logical(app: App) { const db = app.database before(async () => { await db.remove('foo', {}) await db.create('foo', { id: 1, text: 'awesome foo', value: 3, list: [], date: new Date('2000-01-01') }) await db.create('foo', { id: 2, text: 'awesome bar', value: 4, list: [1...
Typescript
}, breakpoints: { 0: { slidesPerView: 1 }, 768: { slidesPerView: 2 }, 992: { slidesPerView: 3 } } })import { getAllCats } from "../services.js"; import imageUrls from '../index/imagesUrl.js' const menusContainer = document.q...
JavaScript
.BitmapFactory import androidx.test.ext.junit.runners.AndroidJUnit4 import jp.juggler.util.data.* import org.junit.Assert.fail import org.junit.Test import org.junit.runner.RunWith import java.io.ByteArrayOutputStream @RunWith(AndroidJUnit4::class) class TestBitmapSample { /** * BitmapFactory.Options.inSampl...
Kotlin
9))|0)!=0;if(!(N8)){F4=72;break $bb59$$bb57$174}sR(50,0);F4=72;break $bb59$$bb57$174}}while(0);$bb59$$bb64$179:do{if(F4==68){var Oy=MO;lw(0,1,Oy,KR);var Ow=uA[((UR)>>2)];uA[((UP)>>2)]=Ow;var Ou=uA[((UL)>>2)];uA[((UJ)>>2)]=Ou;var Os=L3;var Or=MO;var Oq=gP(Os,0,D3,Or,0);var On=MO;var Om=((On+4)&4294967295);var Ol=xV[((Om...
JavaScript
/* Generated by RuntimeBrowser. Image: /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary */ @class NSURL, NSString, NSData; @interface PLItem : NSObject { NSString *_title; NSString *_temporaryFileName; } @property(copy) NSString * title; @property(readonly) NSURL * URL; @property(re...
C
R> * an object of a VoidType. <BR> * <BR> * The case for testing is as follows. <BR> * <BR> * When a gebuggee is suspended at a breakpoint set up <BR> * by a debugger, the debugger invokes debuggee's method<...
Java
0x2C, 0x14, 0xA3, 0x8F, 0x8D, 0x99, 0x93, 0xE2 @ #--------X-----------------------# .byte 0x3B, 0x3A, 0x40, 0x36, 0x39, 0x30, 0x33, 0x2B @ #----------------------X---------# .byte 0x2F, 0x24, 0x2E, 0xD3, 0x8D, 0x8E, 0x92, 0x94 @ #----------X---------------------# .byte 0xB6, 0x2A, 0x39, 0x3E, 0x37, 0x38, 0x32, 0x...
Assembly
xc8200121a0 s is 0x0, &s is 0xc82002c008 a[0] is 0xc82002c018, &a[0] is 0xc82008a000 a[1] is 0xc82002c028, &a[1] is 0xc82008a008 a[2] is 0xc82002c030, &a[2] is 0xc82008a010 a[3] is 0xc82002c038, &a[3] is 0xc82008a018 s is 0xc82002c038, &s is 0xc82002c008 a[3].C is 0xc8200...
Go
: f32, pub sub_pixel_interpolation_offset_bits: u32, pub max_framebuffer_width: u32, pub max_framebuffer_height: u32, pub max_framebuffer_layers: u32, pub framebuffer_color_sample_counts: SampleCountFlags, pub framebuffer_depth_sample_counts: SampleCountFlags, pub framebuffer_stencil_sample_...
Rust
"] = "Take the Symbol of Life to Gazin Tenorm in Stormwind.", ["T"] = "The Tome of Divinity", }, [1782] = { ["D"] = "", ["O"] = "", ["T"] = "Furen\'s Armor", }, [1783] = { ["D"] = "We was spyin\' on some of the Dark Iron dwarves that\'ve bunkered down south of Helm\'s Bed Lake. We knew they ...
Lua
t.write("\n") def create_mk(target, data, platform): mk_copyright(target) mk_help(target, platform) create_params(target, data) add_host_flags(target, data, platform) add_kernel_flags(target, data, platform) mk_build_all(target, data, platform) mk_run(target, data, platform) mk_clean(t...
Python
port(priv, off, v) \ enetc_write_reg(enetc_port_regs((priv), (off)), v) /* BDR register accessors, see ENETC_BDR() */ #define enetc_bdr_read(priv, t, n, off) \ enetc_read(priv, ENETC_BDR(t, n, off)) #define enetc_bdr_write(priv, t, n, off, val) \ enetc_write(priv, ENETC_BDR(t, n, off), val) /* PCS / internal...
C
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # 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 appli...
Python
LEKS R9 R8 K18 ["name"] LOADK R9 K21 ["Example with 5 subcategories."] SETTABLEKS R9 R8 K14 ["summary"] DUPCLOSURE R9 K22 [PROTO_1] CAPTURE VAL R2 CAPTURE VAL R5 CAPTURE VAL R4 SETTABLEKS R9 R8 K19 ["story"] SETLIST R7 R8 1 [1] SETTABLEKS R7 R6 K15 ["stories"] RETURN R6 1
Assembly
wing; const context = { warn: ( warning, pos ) => { warning = augment( warning, pos, 'PLUGIN_WARNING' ); bundle.warn( warning ); }, error ( err, pos ) { err = augment( err, pos, 'PLUGIN_ERROR' ); throwing = true; error( err ); } }; let transformed; try { tran...
JavaScript
:not(.logged-in){position:relative}#page{position:relative}a,a:focus{text-decoration:none}.secondary a *,.site-footer a *,.site-header a *,a{transition:all .2s linear}.capitalize{text-transform:uppercase}img{vertical-align:middle}.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,...
CSS
raw.pawnshopDecode() override fun isIgnoreSpace() = false }, AsciiSum("asciiSum") { override fun encrypt(raw: String, params: Map<String, String>) = raw.asciiSum() override fun decrypt(raw: String, params: Map<String, String>): String = raw.asciiSumDecode() overrid...
Kotlin
true, }, }, }, "ValidInputNeedsUpdate": { args: args{ iam: &fake.MockAccessClient{ MockListAccessKeys: func(ctx context.Context, input *awsiam.ListAccessKeysInput, opts []func(*awsiam.Options)) (*awsiam.ListAccessKeysOutput, error) { return &awsiam.ListAccessKeysOutput{ AccessKeyMet...
Go
oteQuantums: big.NewInt(200_000), RevSharePpm: 100_000, }, }, AffiliateRevShare: nil, FeeSourceToQuoteQuantums: map[types.RevShareFeeSource]*big.Int{ types.REV_SHARE_FEE_SOURCE_TAKER_FEE: big.NewInt(0), // unconditional + market mapper rev shares fees types.REV_SHARE_FEE_...
Go
kKeyShowDisplaysAsIndividualWindows ), if (isDesktop && useTextureRender) ( 'Use all my displays for the remote session', kKeyUseAllMyDisplaysForTheRemoteSession ) ]; return v; } import 'package:demoafgr/demoafgr.dart'; import 'package:flutter_test/flutter_test.dart'; ...
Dart
c] fn test_clamp_min_greater_than_max() { let _ = 1.0f64.clamp(3.0, 1.0); } #[test] #[should_panic] fn test_clamp_min_is_nan() { let _ = 1.0f64.clamp(f64::NAN, 1.0); } #[test] #[should_panic] fn test_clamp_max_is_nan() { let _ = 1.0f64.clamp(3.0, f64::NAN); } #[test] fn test_total_cmp() { use core::c...
Rust
i5JbWFnZVIJZ2lmdEltYWdlEh4KCmFn' 'cmVlTXNnSWQYCyABKARSCmFncmVlTXNnSWQSJAoNcHJpb3JpdHlMZXZlbBgMIAEoDVINcHJpb3' 'JpdHlMZXZlbBJNChNsYW5kc2NhcGVBcmVhQ29tbW9uGA0gASgLMhsuZG91eWluLkxhbmRzY2Fw' 'ZUFyZWFDb21tb25SE2xhbmRzY2FwZUFyZWFDb21tb24SHAoJZXZlbnRUaW1lGA8gASgEUglldm' 'VudFRpbWUSHgoKc2VuZFJldmlldxgQIAEoCFIKc...
Dart
the QR code. Modules are arranged in left-to-right, then /// top-to-bottom order. modules: Vec<Module>, } impl Canvas { /// Constructs a new canvas big enough for a QR code of the given version. pub fn new(version: Version, ec_level: EcLevel) -> Self { let width = version.width(); Self...
Rust
seconds".format(avg_detection_latency)) print("Average Tracking Latency per Frame: {:.4f} seconds".format(avg_tracking_latency)) print("Average Total Latency per Frame: {:.4f} seconds".format(avg_total_latency)) # Paths to your video folder video_folder = r"C:\Users\akhil\Akhil_work\deep_sort\__MACOSX\test\Mi...
Python
const Value.absent(), this.codigoIbgeCidade = const Value.absent(), this.codigoIbgeUf = const Value.absent(), }); ContadorsCompanion.insert({ this.id = const Value.absent(), this.cpf = const Value.absent(), this.cnpj = const Value.absent(), this.nome = const Value.absent(), this.email =...
Dart
(..)` constructor, creating a new instance of `FontFace`."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] pub fn new_with_array_buffer_...
Rust
DayForYear(expectedDate.year) assertThat(expectedDate).isEqualTo(actualDate) } } private fun buildExpectedDates(): List<Date> = listOf(Date.on(9, 4, 2017), Date.on(1, 4, 2018), Date.on(21, 4, 2019), Date.on(12, 4, 2020)...
Kotlin
if (this._values instanceof Buffer) { this._byteCount = Math.min(this._values.length + 6, 0xF6) this._numberOfBytes = this._values.length this._quantity = Math.floor(this._values.length / 2) this._valuesAsBuffer = this._values this._valuesAsArray = [] for (let i = 0; i < this._values...
Typescript
apmode &= ~am_active; // lmpwatch.pl engine-side demo testing support // print "FINISHED: <mapname>" when the player exits the current map if (nodrawers && (demoplayback || timingdemo)) { if (gamemode == commercial) lprintf(LO_INFO, "FINISHED: MAP%02d\n", gamemap); else lprintf(LO_INFO, "FINI...
C
st rand_num = ():number => Math.random() * 100; const rand_point = ():Point => ({ x: rand_num(), y: rand_num(), z: rand_num(), }); const rand_quat= ():Quaternion => ({ x: rand_num(), y: rand_num(), z: rand_num(), w: rand_num(), }); const rand_mat4 = ():Matrix4=> Float64Array.from([ ran...
Typescript
ubKey, digest[:], r, s) assert.True(t, verified) }) t.Run("Test P-521 did:key", func(t *testing.T) { privKey, didKey, err := GenerateDIDKey(crypto.P521) assert.NoError(t, err) assert.NotNil(t, didKey) assert.NotEmpty(t, privKey) ecdsaPrivKey, ok := privKey.(ecdsa.PrivateKey) assert.True(t, ok) ecds...
Go
func constantTimeLessOrEq(a, b uint32) uint32 { return uint32((uint64(a) - uint64(b) - 1) >> 63) } // constantTimeGreater returns 1 if a > b or 0 otherwise in constant time. func constantTimeGreater(a, b uint32) uint32 { return constantTimeLess(b, a) } // constantTimeGreaterOrEq returns 1 if a >= b or 0 otherwise i...
Go
uint part2 = value2 << (32 - _rotateBitNum); return (int)(part1 | part2); } public override void GenerateEncryptCode(List<string> lines, string indent) { lines.Add(indent + $"uint part1 = (uint)value << {_rotateBitNum};"); lines.Add(indent + $"uint part2 =...
C#
B_BLE_GC2_R { pub(crate) fn new(bits: u8) -> Self { TX_DVGA_GAIN_QDB_BLE_GC2_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for TX_DVGA_GAIN_QDB_BLE_GC2_R { type Target = crate::FieldReader<u8, u8>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[do...
Rust
69,65,78,.25);box-shadow:0 1px 15px 1px rgba(69,65,78,.25)}.m-pricing-table-3 .m-pricing-table-3__items .m-pricing-table-3__item.m-pricing-table-3__item--focus .m-pricing-table-3__price{background-color:#756ecd}.m-pricing-table-3 .m-pricing-table-3__items .m-pricing-table-3__item.m-pricing-table-3__item--focus .m-prici...
CSS
&destination=" + address + "&travelmode=walking"; let content = "<b>" + address + "</b><p>" + location + "</p> <p><a href='" + directions +"'>Open in Google Maps</a></p>"; let infoWindow = new google.maps.InfoWindow({ content: content }); google.maps.event.addListener(marker, ...
Typescript
//上一首 btnPreSong?.setOnClickListener { StarrySky.with().skipToPrevious() } //播放&暂停 btnPlayState?.setOnClickListener { if (StarrySky.with().isPlaying()) { StarrySky.with().pauseMusic() } else { StarrySky.with().re...
Kotlin
x4E, 0x80, 0x00, 0x20 # 801d2ea4 __ct__Q214NrvEarthenPipe30EarthenPipeNrvTargetPipeShowUpFv: .byte 0x3C, 0x80, 0x80, 0x59 # 801d2ea8 .byte 0x38, 0x84, 0x37, 0x24 # 801d2eac .byte 0x90, 0x83, 0x00, 0x00 # 801d2eb0 .byte 0x4E, 0x80, 0x00, 0x20 # 801d2eb4 __ct__Q214NrvEarthenPipe23EarthenPipeNrvPlayerOutFv: .byte 0x3C, 0x...
Assembly
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using YeelightAPI; using Q42.HueApi.ColorConverters; using Microsoft.Extensions.Logging; namespace PresenceLight.Core { public interface IYeelightService { Task SetColor(string availability, string activit...
C#
.length - commonOffset); equality2 = commonString + equality2; } // Second, step character by character right, looking for the best fit. var bestEquality1 = equality1; var bestEdit = edit; var bestEquality2 = equality2; var bestScore = diffCleanupSemanticScore(equa...
Dart
41", "" + s_fM + sf_bM); test("-52.0null", "" + s_fM + sf_IN); test("-52.0T", "" + s_fM + s_c); test("-52.0-42.0", "" + s_fM + sf_fM); test("-52.025", "" + s_fM + s_b); test("-52.0null", "" + s_fM + f_oN); test("-52.0-1410065408", "" + s_fM + s_lM); test("-52.08.0...
Java
\\PY64_PROJECT\\CDLL_TEST\\h\\MBx_utility.h: 204 def MBxMasterErrorFullQ(pMBX): return (((((((pMBX.contents.Error).value).Head).value) + 1) % MBX_MASTER_ERROR_QUEUE_MAX) == ((((pMBX.contents.Error).value).Tail).value)) # E:\\PY64_PROJECT\\CDLL_TEST\\h\\MBx_utility.h: 210 def MBxMasterRequestEmptyQ(pMBX): retur...
Python
location.hash; if (hash) { this.$tabs.each((index, tab) => { if ($(tab).attr('href') === hash) { this.activeIndex = index; return false; } return true; }); } // 含 .mdui-tab-active 的元素默...
JavaScript
Q492 716 579 640T666 462Q666 407 642 347T579 222T529 126Q515 91 515 86Q517 85 528 85Q530 85 552 85T596 86H677V0H425V14Q429 79 465 168L492 228Q494 232 504 254T516 283T527 310T539 340T548 368T556 399T560 428T562 460Q562 531 510 585T361 639Q263 639 211 585T159 460Q159 422 170 378T192 309T229 228L256 168Q292 79 296 14V0H44...
JavaScript
decoration: BoxDecoration( image: DecorationImage( image: AssetImage( "assets/images/selectWallet_select${UI.isDarkTheme(context) ? "_dark" : ""}.png"), fit: BoxFit.fill))) ], ); } } class _CommunityPluginNote extends...
Dart
")) .willReturn(aResponse() .withHeader("Content-Type", "application/json") .withBodyFile("paper/v3/projects_paper_1_21_6_builds_46.json") ) ); stubFor(get(urlPathEqualTo("/v1/objects/bfca155b4a6b45644bfc1766f4e02a83c736e45fcc060e8788c71d6e7b3d56f...
Java
32Element(FLD_GDID, 1)); selector.Set(new BSONInt32Element(FLD_SEGMENT, 1)); selector.Set(new BSONInt32Element(FLD_CREATEUTC, 1)); selector.Set(new BSONInt32Element(FLD_ORIGIN, 1)); selector.Set(new BSONInt32Element(FLD_HEADERS, 1)); selector.Set(new BSONInt32Element(FLD_CONTENT_...
C#
NArray 否则返回空JSONArray */ fun JSONObject.getJSONArrayOrEmpty(key: String): JSONArray = try { this.getJSONArray(key) } catch (e: JSONException) { JSONArray() } /** * 扩展函数 获取JSONObject中的 JSONArray * @param key 键值 * @return 获取成功时返回JSONArray 否则返回null */ fun JSONObject.getJSONArrayOrNull(key: String): JSONArray...
Kotlin
<any> { return db.querySingle("SELECT * FROM booking WHERE person=? AND day>=? ORDER BY day DESC, person", [user.name, utils.removeTimeFromDate(day)]); } /** * Returns all bookings for the given project * @param projectId a project id * @param fromDay starting from this day * @return list of bookings */ /...
Typescript
change this property. pub options: Option<::Value<::json::Value>>, /// Property [`Tags`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewaymulticastdomain.html#cfn-ec2-transitgatewaymulticastdomain-tags). /// /// Update type: _Mutable_. /// AWS CloudFormat...
Rust
=> {ee.evaluate("1>>-1")}).to.throw("out of range shift value") expect(() => {ee.evaluate("1>>>32")}).to.throw("out of range shift value") expect(() => {ee.evaluate("1>>>-1")}).to.throw("out of range shift value") }) it("should detect divide by zero conditions in expressions and throw an error...
Typescript
e { res = autoTuning->StartOverclockGPU(&gpuAutoTuningCompleteEvents); WaitForSingleObject(g_ADLXEvent, 1000); ResetEvent(g_ADLXEvent); if (ADLX_SUCCEEDED(res)) std::cout << "\tStart overclock GPU successful" << std::endl; ...
C++
d_sql"] else "No SQL expected" ) # Display test checks st.markdown("**Test Checks**") checks_df = pd.DataFrame(test_data["results"]) checks_df = checks_df[["name", "passed", "notes"]] checks_df = checks_df.rename( columns={ ...
Python
{ _fCalcingSize = fState; } inline BOOL CLayout::DoFuzzyHitTest() { // BUGBUG (donmarsh) - we should also do fuzzy hit testing whenever the parent // layout is editable, but we don't have a cheap way to do that yet, and // this method is called during hit testing and cannot be too expensive. return ...
C++
_KEY, SQALE_RATING_KEY, EFFORT_TO_REACH_MAINTAINABILITY_RATING_A_KEY), arguments(SOFTWARE_QUALITY_MAINTAINABILITY_REMEDIATION_EFFORT_KEY, SOFTWARE_QUALITY_MAINTAINABILITY_DEBT_RATIO_KEY, SOFTWARE_QUALITY_MAINTAINABILITY_RATING_KEY, EFFORT_TO_REACH_SOFTWARE_QUALITY_MAINTAINABILITY_RATING_A_KEY)); } @P...
Java
|conda|*all envs* on linux-64| |libstdcxx-ng|hc0a3c3a_7|hc0a3c3a_9|false|conda|{build, lint} on linux-64| |vc|ha32ba9b_20|h8a93ad2_20|false|conda|*all envs* on win-64| </details> [^1]: **Bold** means explicit dependency. [^2]: Dependency got downgraded. |Dependency|Before|After|Change|Explicit|Environments| |-|-|-|-|...
Markdown
fo_1 91 //#define ICON_Power_On_Home_C 92 // ICON_Degree 92 //#define ICON_Card_Remove_C 93 // 拔卡中文提示 //#define ICON_Card_Remove_E 94 // 拔卡英文提示 #define ICON_HM_PID 95 #define ICON_Auto_PID 96 #define ICON_Feedback 97 #define ICON_Level_ERR...
C
```console $ apt-get source -qq --print-uris npth=1.6-3.1build1 'http://archive.ubuntu.com/ubuntu/pool/main/n/npth/npth_1.6-3.1build1.dsc' npth_1.6-3.1build1.dsc 2107 SHA512:83fc5c562da895742de6b46585a0707052e053804e3187525d290e0cc05938feb7681bb9a7dd053ed930a3774c7abc95a4d1a9e437930ca72c438e29cb7183d8 'http://archive....
Markdown
.abs() < 0.001); } #[test] fn test_translation (){ let i1 = Mat4x4::ident(); let t1 = Mat4x4::translation(0.1, 0.2, 0.3); let r = i1 * t1; assert!((r.m[0] - 1.0).abs() < 0.001); assert!((r.m[1] - 0.0).abs() < 0.001); assert!((r.m[2] - 0.0).abs() < 0.001); assert!((r.m[3] - 0.1).abs() < 0.001); as...
Rust
work: /// - It may require correct/in-range values for request initialization. /// - It may require specifying regional endpoints when creating the service client as shown in /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. /// </remarks> ...
C#
0, TeamName: teamName, Namespace: namespace, EntryKey: entryKey, EntryValue: string(cleartextSecret), } putRes, err := aliceHandler.PutKVEntry(ctx, putArg) require.NoError(t, err) require.Equal(t, 1, putRes.Revision) t.Logf("alice successfully wrote an entry at revision 1") // Bob can read it getAr...
Go
val horse = HolographicBase(EntityHorse(null)) val eisengolem = HolographicBase(EntityIronGolem(null)) val silverfish = HolographicBase(EntitySilverfish(null)) val witch = HolographicBase(EntityWitch(null)) val endermite = HolographicBase(EntityEndermite(null)) val snowman = HolographicBase(Ent...
Kotlin
the product (i.e., highpart = %o4 >> 20). */ rd %y, %o5 sll %o4, 12, %o0 ! shift middle bits left 12 srl %o5, 20, %o5 ! shift low bits right 20, zero fill at left or %o5, %o0, %o0 ! construct low part of result retl sra %o4, 20, %o1 ! ... and extract high part of result
Assembly
naviAdjust?.speed_nav_view?.clearLongClickWait() naviAdjust?.speed_nav_view?.updateCurValue(MMKVUtils.getSpeed()) view?.mapview?.map?.let { map -> SearchManager.INSTANCE.polylineList.let { if (it.isEmpty()) { ...
Kotlin
HashCode() => ID; #endregion #region Comparer Method /// <summary> /// Compares this system with another one. /// </summary> /// <param name="other"></param> /// <returns></returns> /// <exception cref="System.ArgumentNullException">other</exception> ...
C#