content
stringlengths
2
6.21k
label
stringclasses
16 values
/* * ModSharp * Copyright (C) 2023-2025 Kxnrl. All Rights Reserved. * * This file is part of ModSharp. * ModSharp is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * Licen...
C#
::RED, 1)); assert!(thick.into_iter().eq(thin.into_iter())); } #[test] fn mock_display() { let mut display: MockDisplay<BinaryColor> = MockDisplay::new(); Polyline::new(&SMALL) .into_styled(PrimitiveStyle::with_stroke(BinaryColor::On, 1)) .draw(&mut display...
Rust
Painter(this.offset, this.size, this.material); final Paint _paint = Paint(); @override void paint(Canvas canvas, Size size) { final src = Rect.fromLTWH(offset.dx, offset.dy, this.size.width, this.size.height); canvas.scale(size.width / this.size.width, size.height / this.size.height); canva...
Dart
lkaar hebben_. - Lijn en naai de kruisnaad. <Note> Het kan zijn dat je een opening in de voorste dwarsnaad moet laten zodat je jezelf kunt vastspelden. </Note> <Tip> If you are making adjustments you may wish to sew the seams wrong sides together to make them easier to adjust. </Tip> ### Stap 2: Probeer het uit ...
Markdown
.1-.4 0-.1 0-.1.1-.2 0-.1.1-.3.1-.4 0-.1 0-.2.1-.3 0-.1 0-.2.1-.3v-.6c0-3.3-2.7-6-6-6s-6 2.7-6 6c0 2 1 3.8 2.5 4.8-1.5.7-2.7 1.9-3.5 3.3-.8-1.4-2-2.6-3.5-3.3C13 14.8 14 13 14 11c0-3.3-2.7-6-6-6zm0 2c2.2 0 4 1.8 4 4s-1.8 4-4 4-4-1.8-4-4 1.8-4 4-4zm14 0c2.2 0 4 1.8 4 4s-1.8 4-4 4-4-1.8-4-4 1.8-4 4-4zm2.1 11v2.1c-.6.1-1.2...
Dart
エレファント', size: '超大型', type: '野獣', alignment: '無属性', ac: 12, maxHp: 76, mv: '40フィート', ability: [ 22, 9, 17, 3, 11, 6, ], exp: 1100, attributes: [ '感覚:受動〈知覚〉10', '言語:——', ], actions: [ '牙の突き刺し:近接武器攻撃...
Typescript
N_CODE, message = rex.errorMessage) } catch (ignore: Exception) { throw ignore } } companion object { val logger = LoggerFactory.getLogger(ApigwOauth2EndpointResourceV4Impl::class.java) private const val REMOTE_EXCEPTION_CODE = 500 } } /* * Tencent is pleased to...
Kotlin
,0x00] v_mul_f32_e64 v5, src_vccz, v2 // CHECK: [0x05,0x00,0x10,0xd2,0xfb,0x04,0x02,0x00] v_mul_f32_e64 v5, src_execz, v2 // CHECK: [0x05,0x00,0x10,0xd2,0xfc,0x04,0x02,0x00] v_mul_f32_e64 v5, src_scc, v2 // CHECK: [0x05,0x00,0x10,0xd2,0xfd,0x04,0x02,0x00] v_mul_f32_e64 v5, src_lds_direct, v2 // CHECK: [0x05,0x00,0x...
Assembly
al, dur = rs.perLocalityDecayingQPS() if expectedDur := replStatsRotateInterval * time.Duration(i+1); dur != expectedDur { t.Errorf("expected duration = %v, got %v", expectedDur, dur) } // We can't just use DeepEqual to compare these due to the float // multiplication inaccuracies. if !floatMapsEqual...
Go
<'a> { pub binary: &'a Path, pub firmware: &'a Path, pub app: &'a Path, pub console: UnixStream, pub comms: UnixStream, } impl Qemu { pub fn start(params: QemuParams) -> Result<Qemu> { let mut cmd = tokio::process::Command::new(params.binary); // There should not be any commun...
Rust
, parent); } } #[cfg(test)] mod tests { use super::*; use crate::test_util::*; #[test] fn it_passes_when_there_are_no_disallowed_keywords_in_the_finally_block() { assert_lint_ok::<NoUnsafeFinally>( r#" let foo = function() { try { return 1; } catch(err) { return 2; } finally { co...
Rust
by-scan is enabled, but will not work unless bluetooth_feature_sync_scanner component is added to the project.", validation.target_for_defines({"ESL_TAG_SYNC_SCAN_ENABLE, ESL_TAG_SCAN_TIMEOUT_SEC"}), "Please add the required 'Bluetooth LE Controller: Synchronization to periodic advertising trains by sc...
Lua
}` both: The scope claim is both a space delimited list and an array of strings named `scope` and `scp`: `{ \"scope\": [\"read\", \"write\"], \"scp\": \"read write\" }` list OAuth2JWTScopeClaimList string OAuth2JWTScopeClaimString both OAuth2JWTScopeClaimBoth @BuiltValueField(wireName: r'hydra_strategies_jwt_scope_c...
Dart
(!isset(self::$valueToName[$value])) {\n"); Indent(&printer); printer.Print("throw new UnexpectedValueException(sprintf(\n"); Indent(&printer); Indent(&printer); printer.Print("'Enum %s has no name defined for value %s', __CLASS__, $value));\n"); Outdent(&printer); Outdent(&printer); Outdent(&printer);...
C++
; farthest->viewheight = 32000; } } //========================================================================== /* ============== = = DrawPlayerWeapon = = Draw the player's hands = ============== */ int weaponscale[NUMWEAPONS] = {SPR_KNIFEREADY,SPR_PISTOLREADY ,SPR_MACHINEGUNREADY,SPR_CHAINREADY}; void DrawP...
C
umString = if (round) { getScaledAmount(transaction.transfers.sumByLong { it.amount }, decimals) } else { MoneyUtil.getScaledText( transaction.transfers.sumByLong { it.amount }, transaction.asset) .stripZeros() } if (sumString.isEmp...
Kotlin
'See https://github.com/google/protobuf.dart/issues/998.') AdditionMusic copyWith(void Function(AdditionMusic) updates) => super.copyWith((message) => updates(message as AdditionMusic)) as AdditionMusic; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') stati...
Dart
)) { // We're not doing an update, we're moving to a new solution entirely. Clear out the old one. This // is necessary so that we clear out any open document information this workspace is tracking. Note: // this seems suspect ...
C#
σο το κομμάτι που μετακινήθηκε όσο και το κομμάτι το οποίο αποκάλυψε απειλούν τον αντίπαλο βασιλιά.'; @override String get puzzleThemeEndgame => 'Φινάλε'; @override String get puzzleThemeEndgameDescription => 'Τακτικά στην τελευταία φάση της παρτίδας.'; @override String get puzzleThemeEnPassantDescriptio...
Dart
//saturation first_index_min_value = UINT32_MAX; } #endif } last_index_max_value = curr_elem_ind + initial_output_index; #ifdef OWN_SATURATION_ENABLED if (UINT32_MAX < last_index_max_value) { //satura...
C
lid() const { /* check whether both base classes are valid */ return DSRDocumentSubTree::isValid() && DSRTemplateCommon::isTemplateIdentificationValid(); } const DSRDocumentSubTree &DSRSubTemplate::getTree() { /* update the document tree for output (if needed) */ updateTreeForOutput(); return *thi...
C++
e == "loaded") { // We use a timer to insure that onLoad is always called in an async // manner even if the document is already loaded. Timer.run(onLoad); } else { window.onContentLoaded.listen( // TODO(sigmund): Consider eliminating the call to "wrap", for // instance, modi...
Dart
import { Contact } from 'src/app/models/Contact'; import { UserService } from '../src/app/services/user.service'; const contacts:Contact[] = [ { name:"Ravi", mobile:1234567890 }, { name:"abc", mobile:9876543210 }, { name:"xyz", mobile:7834210723 } ] describe('UserService', () ...
Typescript
Scl - s * 1.5f + Mathf.randomSeedRange(n - i, 3f)).add(x, y); Fill.circle(Tmp.v1.x, Tmp.v1.y, Math.min(radius, s)); } Draw.color(); } public static void lightningOrbOld(float x, float y, float r, Color color1, Color color2){ Draw.z(Layer.effect - 0.001f); Draw.color(...
Java
= "alpha" assert p1.info["status"] is True def test_package_ignored_file(self): with io.open(".DS_Store", "w", encoding="utf-8") as f: f.write("") p = Package(".DS_Store") assert p.info["status"] is False def test_package_bad_extension(self, shared_datadir): ...
Python
COLOR) val statusBarHidden = statusBarOptions != null && statusBarOptions.optBoolean( ExponentManifest.MANIFEST_STATUS_BAR_HIDDEN, false ) val statusBarTranslucent = statusBarOptions == null || statusBarOptions.optBoolean( ExponentManifest.MANIFEST_STATUS_BAR_TRANSLUCENT, true )...
Kotlin
); } } return false; } namespace NrvBattleShipElevator { INIT_NERVE(BattleShipElevatorNrvWait); INIT_NERVE(BattleShipElevatorNrvMove); INIT_NERVE(BattleShipElevatorNrvEnd); void BattleShipElevatorNrvWait::execute(Spine *pSpine) const { } void BattleShipElevatorNrvMove::execute(Spi...
C++
取决于质量设置 (Depends on quality setting) | | **典型用法 (Typical usage)** | 适用于所有情况,但最适合颜色纹理 (Works for everything, but best for color textures) | 高细节数据纹理:法线贴图、粗糙度、金属度等 (High-detail data textures: normal maps, roughness, metallic, etc.) | ETC1S 质量不足但 UASTC 过大的文件 (Files where ETC1S quality is not sufficient but UASTC is too lar...
Markdown
.busy_factor = 64, \ .imbalance_pct = 125, \ .cache_nice_tries = 1, \ .busy_idx = 2, \ .idle_idx = 1, \ .newidle_idx = 2, \ .wake_idx = 1, \ .forkexec_idx = 1, \ .flags = SD_LOAD_BALANCE \ | SD_BALANCE_NEWIDLE \ | SD_BALANCE_EXEC \ | SD_WAKE_AFFINE \ | BALANCE_FOR_PKG_P...
C
(i > 2) break } //初始化, 判断页面是否在首页. while (true) { sleep(2000), toast("判断是否在首页") if (text("通讯录").find().size() > 0) { break } else { 按键返回() } } } if (结束 == false) { 单击_向上("text = 发现"), sleep(2000) 单击...
JavaScript
} let new_size = (data.len() / self.dec_rate + 1) as usize; let mut data_dec = Vec::<T>::with_capacity(new_size); while ix < data.len() { data_dec.push(data[ix]); ix += self.dec_rate; } data_dec } } /// A simple node to upsample the input sig...
Rust
value The bytes for mdFeedType to set. * @return This builder for chaining. */ public Builder setMdFeedTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mdFeedType_ = v...
Java
/** * (C) 2010-2012 Alibaba Group Holding Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * * Version: $Id$ * * ob_multiple_merge.h * * Authors: * Junquan Chen...
C
_highlight[key_name_to_index("POS1")] = COLOR_MACRO_KEY color_map_highlight[key_name_to_index("PGUP")] = COLOR_MACRO_KEY color_map_highlight[key_name_to_index("DEL")] = COLOR_MACRO_KEY color_map_highlight[key_name_to_index("END")] = COLOR_MACRO_KEY color_map_highlight[key...
Lua
c!=null:d!==c d=c}}if(d){e=r.b if(e===r)A.aY(A.dI("")) J.kp(e,f.b) continue}d=r.b if(d===r)A.aY(A.dI("")) A.eL(d,e,f.b)}n=s.M() g=["id","class","style"] a1=a1?a0:a6.gC() if(a1!=null)B.a.T(g,a1) n.e1(g) if(s.M().a!==0)for(a1=s.M(),a1=A.lo(a1,a1.r,A.j(a1).c),n=a1.$ti.c;a1.l();){g=a1.d if(g==null)g=n.a(g) f=r.b if(f===r)A...
Dart
+ b; * const sumCurried = curry(sum); * sumCurried (1) (2); * // 3 */ // prettier-ignore export function curry<A, B, C, D, E, F>(fn: (a: A, b: B, c: C, d: D, e: E) => F): (a: A) => (b: B) => (c: C) => (d: D) => (e: E) => F; /** * Creates a curried version of the supplied function. * * Strict Functional Program...
Typescript
/* Startup code for ZPU Copyright (C) 2005 Free Software Foundation, Inc. This file 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. In addition to the ...
Assembly
.theme-dark .ddp-wrap-chart .ddp-ui-chart-side .ddp-wrap-page { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px 0; text-align: center; } .theme-dark .ddp-wrap-chart .ddp-ui-chart-side .ddp-wrap-page .ddp-ui-page { display: inline-block; } .theme-dark .ddp-wrap-chart .ddp-...
CSS
//assuming that first 32 is the data index as this is the raw data return new StringTypeDecoder().Decode(output.Skip(32).ToArray()); return new Bytes32TypeDecoder().Decode<string>(output); } } }
C#
Name: Base16 Default Light Author: Chris Kempson (http://chriskempson.com) CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-chrome-devtools) Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ .cm-s-base16-light.CodeMirror {background...
CSS
00.23-.123.234.234 0 00-.016-.262l-1.1-1.198A9.431 9.431 0 0021.526 12a9.523 9.523 0 00-8.815-9.498L12.218.947A.237.237 0 0012 .804zm-.003.25c.024 0 .048.02.056.043l1.02 3.354a1.2 1.2 0 00-.48.957c0 .389.19.734.48.952h-.004c.436.326.718.846.718 1.429v1.12l4.326-2.497.476.825-4.802 2.77v.965l.834.48 4.802-2.774.476.825...
Dart
- 1]</code> (note the <code>-1</code> due to <strong>0-indexing</strong>), or pipe in water from another well to it. The costs to lay pipes between houses are given by the array <code>pipes</code> where each <code>pipes[j] = [house1<sub>j</sub>, house2<sub>j</sub>, cost<sub>j</sub>]</code> represents the cost to conne...
Markdown
<K> extends ModuleItemContainer<K> { /// Tracks how often JS emitted field names appear. /// /// [keyToString] may resolve multiple unique keys to the same JS string. /// When this occurs, the resolved JS string will automatically be renamed. final Map<String, int> _nameFrequencies = {}; /// Transforms a [...
Dart
use = is_true(row['gsx$targethouse']['$t']) target_house_first = is_true(row['gsx$targethousefirst']['$t']) individual = row['gsx$optionaltargetindividualfirstlastname']['$t'] first_call_name = row['gsx$optionalextrafirstcallname']['$t'] first_call_number = row['gsx$optio...
Python
pattern, support); //! } //! ``` use std::{fmt::Debug, hash::Hash}; pub mod algorithm; pub mod tree; pub trait ItemType: Eq + Ord + Hash + Copy + Debug {} impl<T> ItemType for T where T: Eq + Ord + Hash + Copy + Debug {} #[cfg(test)] mod tests { use crate::algorithm::FPGrowth; use crate::tree::{Node, Tree}...
Rust
# def min_platforms(arr, dep): # if len(arr) == 0: # return 0 # plat_count = 1 # plat_schedule = {0: dep[0]} # for i in range(1, len(arr)): # vacant_plat_found = False # print('plat_no', plat_schedule) # for plat_no in range(plat_count): # if plat_schedule[p...
Python
count code (StateDB) or block // related data for Web3. // The EVM module should use a prefix store. StoreKey = ModuleName // TransientKey is the key to access the EVM transient store, that is reset // during the Commit phase. TransientKey = "transient_" + ModuleName // RouterKey uses module name for routing ...
Go
Bits 0:2 - 2:0\\] Internal. Only to be used through TI provided API."] #[inline] pub fn per_e(&mut self) -> _PER_EW { _PER_EW { w: self } } } <gh_stars>1-10 use slog::{o, Drain, Logger}; use std::{fs::OpenOptions, sync::Mutex}; /// Creates an asynchronous logger which outputs to both the terminal a...
Rust
. static const _alphaThreshold = 0.01; /// [RegExp] for matching start of rgb() or rgba() functional notation. static final _rgbRE = RegExp(r'^rgba?\((.*)\)$'); /// [RegExp for matching separator of rgb() or rgba() functional notation. static final _separatorRE = RegExp(r' *, *'); /// Color channels. /...
Dart
WindowID(uint64_t aWindowID) { AssertIsOnBackgroundThread(); MOZ_ASSERT(aWindowID); MaybeStartSharedWorkerOp(PendingSharedWorkerOp::eAddWindowID, aWindowID); } void RemoteWorkerController::RemoveWindowID(uint64_t aWindowID) { AssertIsOnBackgroundThread(); MOZ_ASSERT(aWindowID); MaybeStartSharedWorkerOp(P...
C++
/**************************************************************************** ** ** Copyright (C) 2014 Jolla Ltd, author: <giulio.camuffo@jollamobile.com> ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Lice...
C
test(){ console.log(arguments)//arguments就是类数组,有length,取第几项,但是没有数组上的方法 arguments.length; arguments[0]; } let user:[string,number] = ["viking",20]//元组:限制每一项,多一项少一项都会报错 import { Byte } from '@nextrobot/serialport-manager' const __byteDeErro = { 1: "Start byte invalido (stx)", 2: "Estrutura do pac...
Typescript
!= nil { return nil, err } ms := &MedService{ node: node, dispatcher: dispatcher, } return ms, nil } // Node return the peer host func (ms *MedService) Node() *Node { return ms.node } // Start start p2p manager. func (ms *MedService) Start(ctx context.Context) error { logging.Console().Info("Start...
Go
w().draw_string( ui, B2vec2::new(5.0, base.m_text_line as f32), "This tests various character collision shapes.", ); base.m_text_line += base.m_text_increment; base.g_debug_draw.borrow().draw_string( ui, B2vec2::new(5.0, base.m_text_line as f32), "Limitation: square and hexagon can snag...
Rust
using BenchmarkDotNet.Attributes; using Masuit.Tools.Models; namespace BenchmarkTest; [MemoryDiagnoser] public class TreeTest { public List<MyClass> Tree { get; set; } public List<MyClass> List { get; set; } public TreeTest() { List = new List<MyClass>() { new MyClass ...
C#
33_935_835, -0.504_400_557]; const Q: [f32; 2] = [0.560_363_004_e+1, -0.554_846_723_e+1]; const A: [f32; 2] = [0., f32::consts::FRAC_PI_4]; const B: [f32; 2] = [f32::consts::FRAC_PI_2, f32::consts::FRAC_PI_4]; /// Arcsine /// /// Input: /// x - floating point value /// acosine - indicates acos calculation /// /...
Rust
CHECK-INST: ptrues p7.s, #18 // CHECK-ENCODING: [0x47,0xe2,0x99,0x25] // CHECK-ERROR: instruction requires: sve // CHECK-UNKNOWN: 47 e2 99 25 <unknown> ptrues p7.s, #19 // CHECK-INST: ptrues p7.s, #19 // CHECK-ENCODING: [0x67,0xe2,0x99,0x25] // CHECK-ERROR: instruction requires: sve // CHECK-UNKNOWN: 67 e2 99 25...
Assembly
c);break;case"V":d=Nz(u,c,u,d[1]);break;case"Z":d=Nz(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function Nz(e,t,r,n){return["C",e,t,r,n,r,n]}function QDe(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var NX=ye((p...
JavaScript
ism(Hits hits, boolean selPreview) { polygonForPyramidBasis = false; if (hits.isEmpty()) { return null; } if (draggingOccurredBeforeRelease((pyramidBasis == null) && selPoints() == 0 && selPolygons() == 0)) { // don't select a first point on dragging return null; } if (pyramidBasis == null) ...
Java
x04\x00\x00\x00\x00\x00\xff\x06\x00\x42\x43" "\x02\x00\x1b\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x00", 28)) { DBG("complete EOF marker found"); break; } z_stream strm; memset(&strm, 0, sizeof strm); ...
C++
Fitting logistic regression on {len(train_features)} slides") print(f" Evaluating on {len(test_features)} slides") NUM_C = 2 COST = (train_features.shape[1] * NUM_C) / 100 clf = LogisticRegression(C=COST, max_iter=10000, verbose=0, ra...
Python
"如果你将1双被玷污的马靴、12块板甲碎片、2块奥金锭和3个熟化毛皮交给东瘟疫之地圣光之愿礼拜堂的科尔法克斯,他会为你制作一双无畏马靴。"}}, [9040] = {"无畏护手", {"在你与纳克萨玛斯宫殿中的天灾军团作战过程中,如果看到被玷污的护甲和板甲碎片,将它们带给我,我会为你打造一套适合英雄穿着的护甲。"}, {"如果你将1副被玷污的护手、8块板甲碎片、1块奥金锭和5个熟化毛皮交给东瘟疫之地圣光之愿礼拜堂的科尔法克斯,他会为你制作一副无畏护手。"}}, [9041] = {"无畏腰带", {"在你与纳克萨玛斯宫殿中的天灾军团作战过程中,如果看到被玷污的护甲和板甲碎片,将它们带给我,我会为你打造一套适合英雄穿着的护甲。"}, ...
Lua
ону#↑ +0.2 к скорости#Шанс напугать врагов#↓ Лишает вас красных сердец#+6 Черных Сердец"}, {"231", "Шар смолы", "Замедляющие слезы#Вы оставляете за собой на полу замедляющую слизь"}, {"232", "Остановившиеся часы", "При получении урона, враги в комнате перманентно замедляются#↑ +0.3 к скорости"}, {"233", "Крошечная п...
Lua
me(m, d, 0); } else { mj_resetData(m, d); while (d->time < 1) { mjtNum time = d->time; mj_step(m, d); ASSERT_GT(d->time, time) << "Divergence detected"; } } mj_forward(m, d); // get current J and Jdot for the tendon vector<mjtNum> ten...
C++
.GONE } override fun onError(message: String) { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun cancelAction() { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } ...
Kotlin
//------------------------------------------------------------------------ // genCodeForShiftLong: Generates the code sequence for a GenTree node that // represents a three operand bit shift or rotate operation (<<Hi, >>Lo). // // Arguments: // tree - the bit shift node (that specifies the type of bit shift to per...
C++
ual.Alignment) } if billboardSettings.Visual.Display != "" { visualFetched["display"] = string(billboardSettings.Visual.Display) } billboardSettingsFetched["visual"] = []interface{}{visualFetched} } // Handle grid options configuration if billboardSettings.GridOptions != nil { var gridOptionsFetched =...
Go
, x2 = motif.option_info.keymenu_boxcursor_coords[3] - motif.option_info.keymenu_boxcursor_coords[1] + 1, y2 = motif.option_info.keymenu_boxcursor_coords[4] - motif.option_info.keymenu_boxcursor_coords[2] + 1 + (#t - 1) * motif.option_info.keymenu_item_spacing[2], }) rect_boxbg:draw() end end --draw t...
Lua
ation service if not already created verifyTokenService = VerifyIdTokenService(auth: this); // Use direct token verification without additional parameters // since service account context is handled in VerifyIdTokenService return await verifyTokenService.verifyIdToken(idToken); } catch (e) ...
Dart
s StatelessWidget { const ManualEditorView({super.key}); Widget buildSliders(BuildContext context) { return Selector<ManualEditorViewModel, ({bool isInitialized, bool canChangeColor})>( selector: (context, vm) => (canChangeColor: vm.canChangeColor, isInitialized: vm.isInitialized), builder: (contex...
Dart
yerBaseInfo?.jerseyNum}', style: TextStyles.textDark16), height: 30.0, alignment: Alignment.centerLeft), flex: 3) ], ), Divider(), Row( children: <Widget>[ Expanded...
Dart
, shield2, num2, abnormalities = self:AddHpNoShield(num, killer, bNotDeathEvent,true) if num < 0 then -- 传给统计接口 local mgr = self.team.fightMgr if mgr.nTPCastRate then num = math.floor(num * mgr.nTPCastRate) end mgr:DamageStat(killer, -num) end return tis...
Lua
f: Function1<A, Kind<ForIO, B>>): IO<List<B>> = arrow.fx.IO.concurrent().run { this@parTraverse.parTraverse<A, B>(ctx, f) as arrow.fx.IO<kotlin.collections.List<B>> } @JvmName("parTraverse") @Suppress( "UNCHECKED_CAST", "USELESS_CAST", "EXTENSION_SHADOWED_BY_MEMBER", "UNUSED_PARAMETER" ) @Deprecated(I...
Kotlin
) ] ) # Dynamic ranges cannot overlap anything (no ranges or IPs). unused = await services.v3subnet_utilization.get_ipranges_available_for_dynamic_range( subnet_id=subnet.id, exclude_ip_range_id=existing_iprange_id ...
Python
* * All messages should be provided, so no errors should be thrown (e.g. from * network calls or subprocesses). */ interface IRule { (inputs: types.IActionInputs, condaConfig: types.ICondaConfig): | string | false; } const urlExt = (url: string) => path.posix.extname(new URL(url).pathname); /** * The ...
Typescript
DiffTable caption #compareToBundle { font-size: .6em; }/** * Copyright (C) 2015 Cambridge Systematics, Inc. * * 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.apac...
CSS
active')) $html .bootstrapCarousel('dispose') .attr('style', 'visibility: hidden;') .bootstrapCarousel() setTimeout(function () { assert.ok($firstItem.hasClass('active')) done() }, 80) }, 80) }) QUnit.test('Should not go to the next item when the paren...
JavaScript
spec freeze come end of Q2 * lots of simplifications done and coming for depositis, incentivization, crosslinks, serialization, abstraction, SSZ... * BLS standarization is moving forward - having fortnightly calls (Algorand, EF, Chia, Ledger) * looking at constant time hash functions * consensus on moving tran...
Markdown
<param name="amount">The amount with which to increment the counter.</param> void Decrement(string setItem, long amount); void Decrement(MetricSetItem setItem, long amount); /// <summary> /// Increment the counter value. /// </summary> void Increment(); //...
C#
/* *x window.h -x window handling functions header * * Copyright © 2007-2009 Julien Danjou <julien@danjou.info> * * 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 L...
C
AT_4)(o(61, s), p, o, m) # define BOOST_PP_FOR_61(s, p, o, m) BOOST_PP_IF(p(62, s), m, BOOST_PP_TUPLE_EAT_2)(62, s) BOOST_PP_IF(p(62, s), BOOST_PP_FOR_62, BOOST_PP_TUPLE_EAT_4)(o(62, s), p, o, m) # define BOOST_PP_FOR_62(s, p, o, m) BOOST_PP_IF(p(63, s), m, BOOST_PP_TUPLE_EAT_2)(63, s) BOOST_PP_IF(p(63, s), BOOST_PP_FO...
C++
N 0x00000001 #define PEX_OWAR_TYPE_CFG 0x00000000 #define PEX_OWAR_TYPE_IO 0x00000002 #define PEX_OWAR_TYPE_MEM 0x00000004 #define PEX_OWAR_RLXO 0x00000008 #define PEX_OWAR_NANP 0x00000010 #define PEX_OWAR_SIZE 0xFFFFF000 #define PEX_IWAR_EN 0x00000001 #define PEX_IWAR_TYPE_INT 0x00000000 #define PEX_IWAR_TYPE_PF...
C
def solve(grid): h, w = len(grid), len(grid[0]) vis = [[False]*w for _ in range(h)] comps = [] for i in range(h): for j in range(w): if grid[i][j] == 3 and not vis[i][j]: q = [(i,j)] vis[i][j] = True pts = [] for x,y in ...
Python
) # calculate the dimension at each scale dim_scales = [int(dim_out / (2 ** i)) for i in range(1, num_scales)] dim_scales = [*dim_scales, dim_out - sum(dim_scales)] self.convs = nn.ModuleList([]) for kernel, dim_scale in zip(kernel_sizes, dim_scales): self.convs.app...
Python
perf schema etc. func (s *Service) Collect(ctx context.Context, req *qanpb.CollectRequest) (*qanpb.CollectResponse, error) { logger.Get(ctx).Infof("Saving %d MetricsBucket(s).", len(req.MetricsBucket)) if err := s.mbm.Save(req); err != nil { return nil, err } return &qanpb.CollectResponse{}, nil } // Copyright (...
Go
-grayscale .hljs-type, .theme-grayscale .hljs-name { color: #333; font-weight: bold; } .theme-grayscale .hljs-tag { color: #333; } .theme-grayscale .hljs-regexp { color: #333; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAAPUlEQVQYV2NkQAN37979r6yszIgujiIAU4RNMVwhuiQ6H6wQl3XI4...
CSS
mov r3, ip add r1, r4, r5 add r3, r4, r3 sub r5, #0xec ldr r2, [sp, #0xc] ldr r3, [r3, r5] bl sub_02094C08 b _0209472A _020946E6: mov r0, #0x67 lsl r0, r0, #2 add r6, r4, r0 add r5, r7, #0 mov r1, #0x34 mul r5, r1 ldr r0, [sp, #0xc] add r3, r6, r5 mul r1, r0 str r1, [sp, #0x10] ldr r0, _02094744 ; =0x...
Assembly
ario .CodeMirror-line > span::-moz-selection, .cm-s-lucario .CodeMirror-line > span > span::-moz-selection { background: #243443; } .cm-s-lucario span.cm-comment { color: #5c98cd; } .cm-s-lucario span.cm-string, .cm-s-lucario span.cm-string-2 { color: #E6DB74; } .cm-s-lucario span.cm-number { color: #ca94ff; } .cm-s-lu...
CSS
KeyStroke ) )); assert_eq! (unsafe { & ( * ( 0 as * const _SIMPLE_INPUT_INTERFACE ) ) . WaitForKey as * const _ as usize } , 16usize , concat ! ( "Alignment of field: " , stringify ! ( _SIMPLE_INPUT_INTERFACE ) , "::" , stringify ! ( WaitForKey ) )); }...
Rust
RMQClient type nativeRMQClient interface { GetNameSrv() nativeNamesrvs } //skywalking:native github.com/apache/rocketmq-client-go/v2/internal Namesrvs type nativeNamesrvs interface { FindBrokerAddrByName(brokerName string) string AddrList() []string } // Licensed to Apache Software Foundation (ASF) under one or mo...
Go
a,b){var c=a.b.length;a=et(ft(),a,a.b.length,0,c);return $fa(hja(b),a).k()}function SC(a,b,c){a=ija(c);return b.indexOf(a)|0} function Fg(a,b,c,e){a=c+e|0;if(0>c||a<c||a>b.b.length)throw(new TC).a();for(e="";c!==a;)e=""+e+ba.String.fromCharCode(b.b[c]),c=1+c|0;return e}function ija(a){if(0===(-65536&a))return ba.String...
JavaScript
)}") } println("Retained values: $retainedValues") badValues.forEach { println("Checking no bad value was retained: $it") assertTrue(!retainedValues.contains(it)) } } @Test fun filterOutliers_ExponentialMovingAverageTest_PrimitiveDT() { val da...
Kotlin
11_DIRECTION title: DOT11_DIRECTION (windot11.h) description: The DOT11_DIRECTION enumeration is part of the Native 802.11 Wireless LAN interface, which is deprecated for Windows 10 and later. old-location: netvista\dot11_direction.htm tech.root: netvista ms.date: 02/16/2018 keywords: ["DOT11_DIRECTION enumeration"] ms...
Markdown
htat","colSpan":"Bashko Kolonat","wordWrap":"Fund i Fjalës","hAlign":"Bashkimi Horizontal","vAlign":"Bashkimi Vertikal","alignBaseline":"Baza","bgColor":"Ngjyra e Prapavijës","borderColor":"Ngjyra e Kornizave","data":"Të dhënat","header":"Koka","columnHeader":"Column Header","rowHeader":"Row Header","yes":"Po","no":"Jo...
JavaScript
Bitcoin Core-utvikler som er godt respektert i Bitcoin og andre kryptovalutamiljøer, erkjenner Bitcoin-fungibilitetsproblemet i en <a href=\"https://www.youtube.com/watch?v=ak1iojpiHpM&feature=youtu .be&t=33m9s\"> YouTube-video</a>.\n </li>\n <li>\n ...
Dart
2c, U+9f2f, U+9f31, U+9f34, U+9f37, U+9f39, U+9f3d-9f3e, U+9f41, U+9f4c-9f50, U+9f54, U+9f57, U+9f59, U+9f5c, U+9f5f-9f60, U+9f62-9f63, U+9f66-9f67, U+9f6a, U+9f6c, U+9f72, U+9f76-9f77, U+9f7f, U+9f84-9f85, U+9f88, U+9f8e, U+9f91, U+9f94-9f96, U+9f98, U+9f9a-9f9b, U+9f9f-9fa0, U+9fa2, U+9fa4, U+a1f4, U+a4b0-a4b1, U+a4b...
CSS
tension word # # in order to see how many control registers to fetch from memory. # # Fetch them using _imem_read_long(). If this fetch fails, exit through # # the special access error exit handler iea_iacc(). # # # # Instruction word decoding: # # # # fmovem.l #<data>, {FPIAR&|FPCR&|FPSR} # #...
Assembly
celFn = (cancelFn: () => void) => void; // Conditionally calling a function. type OnCompleteFn = (thenFn: () => void) => void; // Function for starting a task. type StartTaskFn = (cancelFn: CancelFn, onCompleteFn: OnCompleteFn) => void; export class Scheduler { private queue: CancelFn[] = []; private waiting...
Typescript
4", "Kalimantan Timur"); cc_reg_ID.Add("15", "Lampung"); cc_reg_ID.Add("16", "Maluku"); cc_reg_ID.Add("17", "Nusa Tenggara Barat"); cc_reg_ID.Add("18", "Nusa Tenggara Timur"); cc_reg_ID.Add("19", "Riau"); cc_reg_ID.Add("20", "Sulawesi Selatan"); cc_reg_ID.Add("21", "Sulawesi Tengah"); cc...
C#
and from:hasFlag("LuaJiangchiInvoke") then return 1000 else return 0 end end } --[[ 技能名:节命 相关武将:火·荀彧 描述:每当你受到1点伤害后,你可以令一名角色将手牌补至X张(X为该角色的体力上限且至多为5)。 引用:LuaJieming 状态:1217验证通过 ]]-- LuaJieming = sgs.CreateTriggerSkill{ name = "LuaJieming" , events = {sgs.Damaged} , on_trigger = function(self, event, p...
Lua