content
stringlengths
2
6.21k
label
stringclasses
16 values
* (ep - sar[i-1]) if lows[i] <= sar_value: position = "long" ep = lows[i] af = acceleration sar.append(sar_value) current_price = closes[-1] current_sar = sar[-1] # 信号判断 if current_price > current...
Python
} } fn build_command(namespace: String, index_name: String) -> String { return format!("sindex/{}/{}", namespace, index_name); } fn parse_response(response: &str) -> Result<Status> { match response.find(SUCCESS_PATTERN) { None => { if response.contains(FAI...
Rust
-upload a.wp-post-thumbnail{margin:0 20px}#media-upload .widefat{border-style:solid solid none}.sorthelper{height:37px;width:623px;display:block}#gallery-settings th.label{width:160px}#gallery-settings #basic th.label{padding:5px 0 5px 5px}#gallery-settings .title{clear:both;padding:0 0 3px;font-size:1.6em;border-botto...
CSS
x;white-space:nowrap;}.tsm .a a{padding:0 2px;background:#C00;color:#FFF;}.tip{position:absolute;padding:10px;width:260px;border:1px solid #B1B1B1;background:#FEFEE9;}.tip_1,.tip_2{margin-top:8px;}.tip_3,.tip_4{margin-top:-8px;}.tip_horn{position:absolute;width:11px;height:6px;overflow:hidden;}.tip_1 .tip_horn{left:5px...
CSS
10, this.y + 60); } public debugVec() { const dx: number = this.x + Math.sin(this.direction) * 5 * this.velocity; const dy: number = this.y + Math.cos(this.direction) * 5 * this.velocity; this.sketch.strokeWeight(1); this.sketch.stroke(0, 255, 255); this.sketch.line(th...
Typescript
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Ge...
Kotlin
s, ref name) => format!( "missing override of abstract method `{}` in class `{}`.", cls, name ), SemError::ModifierNotAllowedForStaticMethod(ref modifier) => { format!("modifier `{}` not allowed for static method.", modifier) } ...
Rust
c License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110...
Java
ror('Unknown mode') <BLANKLINE> ...sysexit(stat, mode) 9 10 def sysexit(stat, mode): ---> 11 raise SystemExit(stat, 'Mode = %s' % mode) 12 13 def bar(mode): <BLANKLINE> SystemExit: (2, 'Mode = exit') In [23]: %xmode verbose Exception reporting mode: Verbose In [24]: %tb --------------------...
Python
-char state in the native side to decide if we can do "fast hashing". //// //return nativeGetCaseInsHash(m_textInfoID, str, m_pNativeTextInfo); //// //// } //// //// // A thin wrapper to avoid us to mark ToTitleCase() as unsafe. //// internal unsafe void ChangeCaseSurrogate( char highSurrogate, char low...
C#
/** @file closefrom.h * @brief Implementation of closefrom() function. */ /* Copyright (C) 2010,2011 Olly Betts * * 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 Li...
C
since 2018 } @Override public void onUpdate() {} @Override public void onMove(MoveEvent event) {} } /* * LiquidBounce++ Hacked Client * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. * https://github.com/PlusPlusMC/LiquidBouncePlusPlus/ */ package n...
Java
VARTYPE vt = V_VT(pOle) & ~VT_BYREF; ExtractContentsFromByrefVariant(pOle, &vtmp); SafeVariantClear(&vtmp); if (vt == VT_VARIANT) { // Since variants can contain any VARTYPE we simply convert the object to // a variant and stuff it back into the byref va...
C++
i]['id'], description: maps[i]['description'], productId: maps[i]['productId'], rating: maps[i]['rating'], hasPhoto: (maps[i]['hasPhoto']).toString() == '1', date: maps[i]['date'], author: maps[i]['author'], thumb: maps[i]['thumb'], ); }); } @overri...
Dart
L_6x4.data[index++] = L_6x10.get(i, 0); L_6x4.data[index++] = L_6x10.get(i, 1); L_6x4.data[index++] = L_6x10.get(i, 3); L_6x4.data[index++] = L_6x10.get(i, 6); } } /** * Extracts the linear constraint matrix for case 2 from the full 6x10 constraint matrix. */ public static void constraintMatrix6x3( D...
Java
s, stdout, _) = (self.command_runner)(&vec!["ip", "tuntap", "list"])?; let caps = TUNTAP_RE.captures(&stdout); match &caps { Some(c) => self.ensure_is_same_user(&c[1]), None => Ok(Warning(format!( "{}. To resolve, {}", NO_TUNTAP_MESSAGE, NO_TUNTAP_...
Rust
nyAmbiguousType: null, ' 'anyAmbiguous: null, vectorOfEnums: null, signedEnum: Race{value: -1}, ' 'testrequirednestedflatbuffer: null, scalarKeySortedTables: null, ' 'nativeInline: null, ' 'longEnumNonEnumDefault: LongEnum{value: 0}, ' 'longEnumNormalDefault: LongEnum{value: 2}, ...
Dart
atus particlestatus = this.mc.gameSettings.particles; if (minimiseLevel && particlestatus == ParticleStatus.MINIMAL && this.world.rand.nextInt(10) == 0) { particlestatus = ParticleStatus.DECREASED; } if (particlestatus == ParticleStatus.DECREASED && this.world.rand.nextInt(3) == 0)...
Java
11, app/assets/stylesheets/documentation_v2.scss */ .sbr-banner { width: 100%; padding: 1em 0; text-align: center; background: #3b97d3; color: #fff; } /* line 6819, app/assets/stylesheets/documentation_v2.scss */ .sbr-get-involved .banner { text-align: center; padding: 20px 0 60px; font-weight: 400; ...
CSS
alpha0_R, alphaR fmov alpha0_I, alphaI mov pCRow1, pCRow0 ld2 {v0.4s, v1.4s}, [pCRow1] fmla v0.4s, v16.4s, alphaV0_R fmls v0.4s, v17.4s, alphaV0_I fmla v1.4s, v16.4s, alphaV0_I fmla v1.4s, v17.4s, alphaV0_R st2 {v0.4s, v1.4s}, [pCRow1] add pCRow1, pCRow1, #32 ld2 {v2.4s, v3.4s}, [pCRow1] fmla v2.4s, v18...
Assembly
{ SetMoveDone( &CMomentaryRotButton::ReturnMoveDone ); m_direction = -1; // Delay before autoreturn. SetMoveDoneTime( 0.1f ); } else { SetThink( NULL ); SetMoveDone( NULL ); } } //----------------------------------------------------------------------------- // Purpose: MoveDone function for rotatin...
C++
efinedExternally actual var loaded: JsNumber? /* = 0 */ get() = definedExternally set(value) = definedExternally actual var total: JsNumber? /* = 0 */ get() = definedExternally set(value) = definedExternally } @Suppress("UNUSED_PARAMETER") public actual fun ProgressEventInit(len...
Kotlin
# # Copyright (C) 2010-2017 Samuel Abels # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy,...
Python
(usage=CacheConcurrencyStrategy.READ_WRITE) @Entity @Table(name="shopping_partner") public class Partner extends IdEntity { //序列 private int sequence; private String url; //标题 private String title; //图片附件 @OneToOne(fetch=FetchType.LAZY) private Accessory image; public int getSequence(...
Java
readCycleCounter(t0); } else { uint32_t t1; readCycleCounter(t1); uint32_t deltaT = t1 - t0; if (deltaT >= timeBase) { printsnln((char*)label, count); count = by; t0 = t1; } else { count += by; } } #endif } void CountsPer::clear() { #if ENABLE_TEXT_OUTPUT active = false; count = 0; #end...
C++
1) /* 8005AED4 00056B34 41 82 00 30 */ beq lbl_8005AF04 /* 8005AED8 00056B38 90 A1 00 2C */ stw r5, 0x2c(r1) /* 8005AEDC 00056B3C C8 42 85 D8 */ lfd f2, lbl_80640BD8-_SDA2_BASE_(r2) /* 8005AEE0 00056B40 C8 01 00 28 */ lfd f0, 0x28(r1) /* 8005AEE4 00056B44 90 C1 00 34 */ stw r6, 0x34(r1) /* 8005AEE8 00056B48 EC 20...
Assembly
ldDownSimple(BuildContext context) { return TDDropdownMenu( direction: TDDropdownMenuDirection.down, onMenuOpened: (value) { print('打开第$value个菜单'); }, onMenuClosed: (value) { print('关闭第$value个菜单'); }, items: [ TDDropdownItem( options: [ TDDropdownItemOption(...
Dart
%v, want %v", msg.HashStop, hashStop) } // Ensure the command is expected value. wantCmd := "getblocks" if cmd := msg.Command(); cmd != wantCmd { t.Errorf("NewMsgGetBlocks: wrong command - got %v want %v", cmd, wantCmd) } // Ensure max payload is expected value for latest protocol version. // Protocol...
Go
taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8. */ DisplayName string `json:"displayName"` // +optional ParentPolicyTagRef *PolicyTagRef `json:"parentPolicyTagRef,omitempty"` /* Immutable. Option...
Go
. '4w4y4d4m3v,' // #417: 2 fonts: JP 26₁₆₂, SC 32₄₁₆. '6g9t,' // #418: 2 fonts: JP 50₁₈₆, SC 66₄₅₀. '7e10d,' // #419: 3 fonts: JP 57₁₉₃, KR 97₃₅₇, SC 71₄₅₅. '7l6h3t,' // #420: 1 font: KR 9₂₆₉. '10j,' // #421: 1 font: SC 21₄₀₅. '15p,' // #422: 1 font: SC 24₄₀₈. '15s,' ...
Dart
} // File generated by FlutterFire CLI. // ignore_for_file: type=lint import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; import 'package:flutter/foundation.dart' show defaultTargetPlatform, kIsWeb, TargetPlatform; /// Default [FirebaseOptions] for use with your Firebase apps. /// /// Example: ...
Dart
BLE 8 PER_DB 4 LINES STARTING BY 'ab'"}, {"INDEX ADVISE INFILE '/tmp/t.sql' MAX_MINUTES 3 MAX_IDXNUM PER_TABLE 8 PER_DB 4 LINES STARTING BY 'ab' TERMINATED BY 'cd'", true, "INDEX ADVISE INFILE '/tmp/t.sql' MAX_MINUTES 3 MAX_IDXNUM PER_TABLE 8 PER_DB 4 LINES STARTING BY 'ab' TERMINATED BY 'cd'"}, {"INDEX ADVISE INFI...
Go
> pivot) { j--; } if (i <= j) { this.swap(i, j); i++; j--; } } if (low < j) { this.quicksort(low, j); } if (i < high) { this.quicksort(i, high); } } } import { Component, OnInit } from "@angular/core"; import { FormControl } from "@...
Typescript
(); individ_trips.push(Some(IndividTrip::new( trip.orig.depart_at, trip.orig.purpose, trip.from, trip.to, trip.orig.mode, ))); trips_per_person.insert(trip.orig.person, (trip.orig.seq, idx)); } info!( "{} clipped trips, ...
Rust
erpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())...
C++
K8S cluster.mp4 25.37米的第一个k8s应用程序 第4章Kubernetes核资源管理的实际操作 Commands.mp4├─第1节Kubernetes公共资源管理简介42.39m file.mp4 kubernetes资源├—第2节yaml参数介绍30.39m └ ─第3节快速浏览Kubernetes 26.57m的常见资源类型和命令 第5章Kubernetes核资源的命名空间和Pod实践 Resources.mp4 18.55米├第1节Kubernetes命名空间介绍和实际操作 库伯内特斯的├—第二节豆荚资源解释实际combat.mp4 59.35米 ├—剖面3,库本内特斯28....
Markdown
response.getResponseBodyAsStream(); BufferedReader br = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8)); String respBody = br.lines().collect(Collectors.joining("\n")); System.out.println(response.getStatusCode()); System.out.println(respBody); ...
Dart
its registers) put32(AUX_MU_CNTL_REG,0); //Disable auto flow control and disable receiver and transmitter (for now) put32(AUX_MU_IER_REG,0); //Disable receive and transmit interrupts put32(AUX_MU_LCR_REG,3); //Enable 8 bit mode put32(AUX_MU_MCR_REG,0); ...
Markdown
, /* final pe? U+05E3 */ {"hebqoph", L'ק'}, /* qof U+05E7 */ {"hebresh", L'ר'}, /* resh U+05E8 */ {"hebshin", L'ש'}, /* shin U+05E9 */ {"hebtav", L'ת'}, /* tav U+05EA */ {"hebtsade", L'צ'}, /* tsadi U+05E6 */ {"hebwaw", L'ו'}, /* vav? U+05D5 */ {"hebyod", L'י'}, /* yod U+05D9 */ {"hebzayin", L'ז'}, /* ...
C
_meshCells.push_back(MeshCell(7,_n*((co&1)==0),0,_n ,_n,BRANCHINIT,BRANCHINIT)); //62 _meshCells.push_back(MeshCell(7,0 ,0,_n*((co&4)==0),_n,BRANCHINIT,BRANCHINIT)); //63 _meshCells.push_back(MeshCell(7,_n*((co&1)!=0),0,_n*((co&4)==0),_n,BRANCHINIT,BRANCHINIT)); //64 _meshCellIndicesBranch[...
C++
wnessComparisonContainer: "_2ejw1WQ-HeHoNNrhVdgmEq", GameNewnessDataCnt: "_2m0q8XyDe8nTwxl_9Ul-18", WheelChart: "_3uLghcqfoV24xund72YiwJ", WheelArc: "tX9oQNylde99eIJstMziv", Active: "_1lBtgjjcxIeyuuL8yekm6r", RightSideContainer: "_2xzsHCp8IUJ83mtdjODbd6", DataBoxesContain...
JavaScript
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. */ using System.Runtime.Serialization; using OpenSearch.Net.Utf8Json; namespace OpenSearch.Client { [InterfaceDataContract] [R...
C#
ing? authorPubkey; final String? eventReference; @override Widget build(BuildContext context, WidgetRef ref) { final normalizedPath = 'url $path'; final attachment = media?[normalizedPath]; if (attachment != null) { final mediaType = MediaType.fromMimeType(attachment.mimeType); if (medi...
Dart
, "reloadData"); vector<CTableViewCell*>::iterator itr = m_vCellsUsed.begin(); vector<CTableViewCell*>::iterator end = m_vCellsUsed.end(); for(; itr != end; ++itr ) { CTableViewCell* pCell = (*itr); m_vCellsFreed.pushBack(pCell); m_pContainer->removeChild(pCell, true); pCell->reset(); } m_vCellsUsed.cl...
C++
ffset.zero, radius: _frameDimension / 3, vertices: 3, ); final _hxp = Path() ..addRegularPolygon( center: Offset.zero, radius: _frameDimension / 3.5, vertices: 6, ); final _hrp = Path() ..moveTo(0, -_frameDimension / 5) ..cubicTo( _frameDimension / 8, -_...
Dart
ilities.L2R; } else { dir = Utilities.EQ; } mappings.add(new MappingObjectStr(elements[0], elements[1], Double.valueOf(elements[3]), dir)); line=reader.readLine(); } reader.closeBuffer(); return mappings; } private static String getHelpMessage(){ return ...
Java
on.isNotEmpty) { for (final row in json) { final value = Commit.fromJson(row); if (value != null) { result.add(value); } } } return result.toList(growable: growable); } static Map<String, Commit> mapFromJson(dynamic json) { final map = <String, Commit>{}; ...
Dart
_points.push_back(&m_pointData[0] + pointIndex); for(UINT d = 0; d < m_dimension; d++) m_pointData[pointIndex++] = p[d]; } } void kNearestInternal(const FloatType *query, UINT k, FloatType epsilon, std::vector<UINT> &result) const { m_queue.init(k, std::numeric_limits<FloatType>::max()); for(UINT po...
C
5.757 14.61a8.688 8.688 0 005.634-2.099l-.576-.587a7.767 7.767 0 01-5.058 1.847c-4.195 0-7.65-3.317-7.938-7.557h-.822c.288 4.744 4.113 8.396 8.76 8.396zm5.757-3.316.577.588c.205-.21.37-.42.534-.63l-.576-.588c-.164.21-.329.42-.535.63zM6.823 16c0-5.584 4.482-10.16 9.952-10.16 2.961 0 5.757 1.344 7.65 3.695L25 8.947C22.94...
Dart
2-0.9,2-2V5C21,3.9,20.1,3,19,3z M8.95,15H8.76 c-0.5,0-0.86-0.49-0.72-0.97l1.08-3.53H7.25c-0.41,0-0.75-0.34-0.75-0.75v0C6.5,9.34,6.84,9,7.25,9H10c0.67,0,1.15,0.65,0.96,1.29 l-1.3,4.18C9.57,14.79,9.28,15,8.95,15z M16.59,15L16.59,15c-0.22,0-0.42-0.1-0.55-0.27l-1.54-1.98v1.55c0,0.39-0.31,0.7-0.7,0.7 H13.7c-0.39,0-0.7-0.31-...
C#
,next) // { // db.tasks.remove({_id:mongojs.ObjectId(req.params.id)}, function (err,task) { // if(err) { // res.send(err) // } // res.json(task); // }) // }); // // //Update single task // // router.put('/tasks/:id',function(req,res,next) // { // var task = req.body; // ...
Typescript
0 }, rot = { x = 354.2, y = 193.3, z = 359.2 }, level = 24, drop_tag = "解谜低级璃月", state = GadgetState.ChestRock, isOneoff = true, persistent = true, type = GadgetType.GADGET_WORLD_CHECT }, { config_id = 54026, gadget_id = 70210063, pos = { x = -540.4, y = 181.7, z = 1216.3 }, rot = { x = 350.3, y = 145.9, z = 7.8 }, le...
Lua
6afb', endColorstr='#343c4a', GradientType=1); } .featured-boxes-modern-style-tertiary .featured-box { background: #262c36; background: linear-gradient(135deg, #262c36 0%, #343c4a 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#262c36', endColorstr='#343c4a', GradientType=1); } html .feat...
C#
Modifier.alt, HotKeyModifier.control]); Future<bool> getEnableVisibilityHotKey() async => await _prefs.getBool('enableVisibilityHotKey') ?? true; Future<bool> getEnableAutoHideHotKey() async => await _prefs.getBool('enableAutoHideHotKey') ?? true; Future<bool> getEnableToggleMoveHotKey() async => ...
Dart
'', '', '', '', '', '', '', ''}, {'1040170', '', '哈……这么多年了,你还是在外面一丝不苟,在家里乱七八糟。', '', '', '', '', '', '', '', '', '', '9942001', '', '', '2', '', '市长', 'mayor', '[{"id":9942001,"pos":2,"enter":2}]', '', '10', '', '', '', '', '', '', '', '', '1040171', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''}, {'10...
Lua
: winrt::Windows::Foundation::IInspectable, impl::consume_t<IRfcommServiceProvider2>, impl::require<winrt::Windows::Devices::Bluetooth::Rfcomm::IRfcommServiceProvider2, winrt::Windows::Devices::Bluetooth::Rfcomm::IRfcommServiceProvider> { IRfcommServiceProvider2(std::nullptr_t = null...
C
| | 婚恋关系 | 在婚姻或恋爱中,如何与伴侣建立良好的沟通和信任关系?有哪些方法可以解决夫妻/伴侣之间的矛盾和分歧? | | 人工智能 ...
Markdown
e_inversion.scheduler_inference = scheduler_class.from_config(pipe_inference.scheduler.config) config = RunConfig(num_inference_steps=4, num_inversion_steps=4, guidance_scale=0.0, inversion_max_step=0.6) input_image = "example_images/lion.jp...
Python
_lsn) { #ifdef ENABLE_FUNCTION_TIMING FunctionTiming functionTiming(const_cast<char *>(__func__)); #endif #ifdef DEBUG_TIMING struct timeval start, end; START_TIMING(&start); #endif #ifdef ENABLE_DEBUG_INFO printf("%s %s %d , spcID = %ld, dbID = %ld, tabID = %ld, fornum = %d, lsn = %ld ...
C++
to call) } override fun onError(exception: Throwable) { cont.resumeWithException(exception) } }) } }/* * Copyright 2020-2021 Giacomo Ferretti * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
Kotlin
def gcd(a, b): if b == 0: return a return gcd(b, a % b) num1 = 48 num2 = 18 print(f"GCD of {num1} and {num2} is:", gcd(num1, num2))
Python
:any[] = []; constructor() { } ngOnInit(): void { } /** * Método que se ejecuta cuando las entradas del componente cambian * @param changes */ ngOnChanges(changes:any) { if (changes.data) { this.dataSelect = this.data; } } changed(e:any){ this.Selected.emit...
Typescript
ct to decode the message contents into */ static inline void mavlink_msg_led_control_decode(const mavlink_message_t* msg, mavlink_led_control_t* led_control) { #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS led_control->target_system = mavlink_msg_led_control_get_target_system(msg); led_control->target_...
C
class for AD_ToolBarButton * @author hengsin */ public class MToolBarButton extends X_AD_ToolBarButton { /** * generated serial id */ private static final long serialVersionUID = -7909388573996489685L; /** * UUID based Constructor * @param ctx Context * @param AD_ToolBarButton_UU UUID ke...
Java
String ID_SCORE_ACTION = "value-action"; IModel<String> title; public RoleAnalysisIdentifyWidgetPanel(String id, IModel<String> title, IModel<List<IdentifyWidgetItem>> model) { super(id, model); this.title = title; } @Override protected void onInitialize() { super.onIniti...
Java
(); } } // No collisions false } } impl TypeInfo for Player<'_> { fn type_of(&self) -> &'static str { "Player" } } // Obstacles pub struct Wall<'a> { sprite: Surface<'a>, pub rect: Rect, collider: Rect, pub sx: i32, pub sy: i32, solid: bo...
Rust
}, { start: toTime(10, 43), end: toTime(11, 39), period: Period.PERIOD_3 }, { start: toTime(11, 39), end: toTime(12, 9), period: Period.LUNCH }, { start: toTime(12, 9), end: toTime(12, 14), period: Period.LUNCH_PASSING }, { start: toTime(12, 14), end: toTime(13, 10), period: Period.PERIOD_4 }, { start: toTim...
Typescript
Text object into formatMessage', () => { const valueSpy = jest.fn() const expectedValues = { hello: 'world', } expect(valueSpy).toHaveBeenCalledTimes(0) const formatMessageWithValueSpy: ( descriptor: StaticText, values?: unknown, ) => string = (descriptor, values) => { ...
Typescript
{ return this.mu; } public variance():number { return this.sigma*this.sigma; } public standarddeviation() { return this.sigma; } //this one can be a problem. The best way would be a table for the z ...
Typescript
} //export gio_onTextInputPreeditString func gio_onTextInputPreeditString(data unsafe.Pointer, im *C.struct_zwp_text_input_v3, ctxt *C.char, begin, end C.int32_t) { } //export gio_onTextInputCommitString func gio_onTextInputCommitString(data unsafe.Pointer, im *C.struct_zwp_text_input_v3, ctxt *C.char) { } //export ...
Go
esting minidumps //----------------------------------------------------------------------------- CON_COMMAND_F( crash, "Cause the engine to crash (Debug!!)", FCVAR_CHEAT ) { Msg( "forcing crash\n" ); #if defined( _X360 ) DmCrashDump( FALSE ); #else char *p = 0; *p = 0; #endif } CON_COMMAND_F( spincycle, "Cause th...
C++
const ZPOOL_CONFIG_REBUILD_TXG: &'static [u8; 12usize] = b"rebuild_txg\0"; pub const ZPOOL_CONFIG_COMMENT: &'static [u8; 8usize] = b"comment\0"; pub const ZPOOL_CONFIG_SUSPENDED: &'static [u8; 10usize] = b"suspended\0"; pub const ZPOOL_CONFIG_SUSPENDED_REASON: &'static [u8; 17usize] = b"suspended_reason\0"; pub const Z...
Rust
e, path, flags else: flags &= ~self.DODIR self._fill_lock("") return None, None, flags def next(self, ctx): flags = self.anchor.r_s("ap_Flags") org_flags = flags # check DODIR flag and add first level of dir entries if flags & self.DODIR ...
Python
(c) 2016 GitHub, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and...
CSS
import importlib import pkgutil from typing import Dict, Type REGISTRY: Dict[str, Type] = {} def discover_and_register( root_package: str, target_filename: str = "adaptor.py", class_name: str = "Adaptor", base_class: type | None = None, ) -> Dict[str, Type]: """ 在 root_package 下递归查找所有子模块,定位文件名...
Python
} return nil } func (x *ProbeDef) GetUserDefinedProbe() string { if x, ok := x.GetProbe().(*ProbeDef_UserDefinedProbe); ok { return x.UserDefinedProbe } return "" } func (x *ProbeDef) GetDebugOptions() *DebugOptions { if x != nil { return x.DebugOptions } return nil } type isProbeDef_SourceIpConfig inte...
Go
#[derive(Serialize, Deserialize, Debug, Clone)] pub struct SlimUser { pub email: String, } impl From<Claims> for SlimUser { fn from(claims: Claims) -> Self { SlimUser { email: claims.email, } } } impl From<User> for SlimUser { fn from(user: User) -> Self { SlimUser ...
Rust
{ if ss.len() == 0{ continue; } if ss.len() != 3{ panic!("This function changes 3 amino acid code to 1 amino acid letter. You provided {}",ss); } ret.push(AA_3_TO_1.lock().unwrap().get(ss).unwrap_or(&("X".to_string())).clone()); } return ret; } pub...
Rust
enumerate() { if value < smallest { smallest = value; smallest_index = index; } } smallest_index } /// 对数组进行排序 pub fn selection_sort<T: PartialOrd + Copy>(arr: &mut Vec<T>) -> Vec<T> { let mut new_arr: Vec<T> = Vec::new(); for _ in 0..arr.len() { // 找出数组...
Rust
_reg_spiller.generate_fill(_masm, spill_offset); } __ block_comment("} save thread local"); } ////////////////////////////////////////////////////////////////////////////// Label L_after_safepoint_poll; Label L_safepoint_poll_slow_path; Label L_reguard; Label L_after_reguard; if (_needs_transit...
C++
-content .has-drop-cap:lang(mn):not(:focus):first-letter, .entry .entry-content .wp-block-pullquote cite:lang(mn), .entry .entry-content .wp-block-cover-image .wp-block-cover-image-text:lang(mn), .entry .entry-content .wp-block-cover-image .wp-block-cover-text:lang(mn), .entry .entry-content .wp-block-cover-image h2:la...
CSS
ePct not present: ok1 %t, ok2 %t, ok3 %t", ok1, ok2, ok3) case v1 != 0 && (v1 <= v2 || v1 != v3): t.Errorf("BackplaneFacingCapacity AvailablePct are not valid: v1 %d, v2 %d, v3 %d", v1, v2, v3) } }) } } func getBackplaneCapacityCounters(t *testing.T, dut *ondatra.DUTDevice, ics []string) (map[string]uint6...
Go
catch (JsonException e) { throw new ApiException(e.Message, e); } } ///<summary> Event time. </summary> [JsonProperty("timestamp")] public string Timestamp { get; private set; } ///<summary> The unique SID identifier of the Call. </summary> ...
C#
lr} sub sp, #0x20 str r0, [sp, #0xc] mov r4, #0 add r5, sp, #0x18 add r3, sp, #0x14 ldr r2, _0223ED9C ; =0x00000ADA b _0223ED0E _0223ED00: ldr r1, [sp, #0xc] lsl r0, r4, #1 add r1, r1, r0 ldrsh r1, [r1, r2] strb r4, [r3, r4] add r4, r4, #1 strh r1, [r5, r0] _0223ED0E: cmp r4, #4 blt _0223ED00 mov r4, #...
Assembly
BMARINE\x04\x04\x04\x04"); assert_eq!(expected, text.bytes()); } #[test] fn PaddedText_12345_16() { let text = match PaddedBytes::from_text("12345", 16) { Ok(x) => x, Err(x) => panic!(x), }; let expected = ::byte_conversion::readable_text_to_bytes(&...
Rust
{ var text = @" namespace @if { public interface @break { } public class @int<@string> { } public class @float : @int<@break>, @if.@break { } }"; var comp = CreateCompilation(Parse(text)); NamespaceSymbol nif = (NamespaceSymbol)comp.SourceModule.GlobalNamespace.G...
C#
uery: { [key: string]: string | number } = {}, strict?: boolean, ) => { const query = strict ? {} : parseQueryString(history.location.search); history.push({ pathname: history.location.pathname, search: generateQueryString({ ...query, ...newQuery, }), }); }; public redirect( newPath: stri...
Typescript
2TV5iyvaZsxm4Y5vCw1xk06CL3CSLolJtZiT5S640kwK82qtcOWVq6dOnGhw4tCJnCsY8acojnR6Ue953CbmRncptn9jfsS+iuDP7bCvOMKqnyAX2Zo0nVmGAf5QNs+wbfr+3TKymY2q4yF4Op8/rOPA0xcs624qiPpOPupDcBEQHj1fCOQDmahHq5ELPvgXZ8v+IolSDDY9AGh3mXkMkjp1DJHbcwzjaeIxHAuV4ONEiGI/K7/6AOWa7Pj1GgXxUE2/SIOKzja5dU95hWqzdZMtWx+eIFKcMDULyfTdJCvpbfNtCzqbVl1D1rvXqaXh...
CSS
return value * * @throws {InternalServerError} on bodyParser internal error * @throws {HttpError} when endpointExecutor throws an internal * HttpError instance, the HttpError is rethrown */ export async function routeRequest( request: IncomingMessage, serviceInstances: StringMap<any>, endpoints: Endpoint[],...
Typescript
179, 140, 178, 90, 185, 25, 5, 189, 182, 14, 162, 115, 21, 113, 41, 54, 182, 109, 113, 210, 54, 163, 134, 200, 237, 116, 12, 174, 199, 222, 93, 217, 119, 70, 113, 193, 109, 35, 6, 104, 226, 245, 155, 133, 27, 63, 201, 156, 128, 187, 93, 210, 45, 119, 245, 52, 210, 127, 66, 9, 246, 192, 172, 75, 107, 167, 59, 26, 118, 9...
C#
int CreateProcessWithTokenW( ffi.Pointer<ffi.Void> hToken, int dwLogonFlags, ffi.Pointer<ffi.Uint16> lpApplicationName, ffi.Pointer<ffi.Uint16> lpCommandLine, int dwCreationFlags, ffi.Pointer<ffi.Void> lpEnvironment, ffi.Pointer<ffi.Uint16> lpCurrentDirectory, ffi.Pointer<LPSTARTUPINFO...
Dart
1688684636] = "ch1_09_hde_011", [3746252893] = "sm_25_fur_05", [1897220191] = "po1_sh1_gg005", [697124960] = "cs1_11b_decals72", [3974951537] = "cs5_1_cs5_01_ds10", [4276570220] = "ch3_13_sea_uw1_08", [280053870] = "ch2_12_railing18", [1969055136] = "cs6_01_motel_sign", [2567653500] = "cs5_3_pwrstfizrail30", [...
Lua
1D0 00525710 90 A1 00 18 */ stw r5, 0x18(r1) /* 8052A1D4 00525714 38 A0 00 40 */ li r5, 0x40 /* 8052A1D8 00525718 90 01 00 1C */ stw r0, 0x1c(r1) /* 8052A1DC 0052571C 4B FF D6 DD */ bl TRKAppendBuffer_ui8 /* 8052A1E0 00525720 80 01 00 64 */ lwz r0, 0x64(r1) /* 8052A1E4 00525724 83 E1 00 5C */ lwz r31, 0x5c(r1) /*...
Assembly
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Windows.Forms; using DarkUI.Controls; using DarkUI.Forms; namespace Keyboard_Inspector { public partial class TTRMPickerForm: DarkForm { static readonly Color leftColor = Color.FromArgb(25, 53, 95); ...
C#
ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Hatohol. If not, see * <http://www.gnu.org/licenses/>. ...
JavaScript
try a ping by listing tools quickly; else return if (_clients.containsKey(id)) { // Already connected; update status just in case _status[id] = McpStatus.connected; _errors.remove(id); notifyListeners(); return; } _status[id] = McpStatus.connecting; _errors.remove(id); ...
Dart
cept Exception as e: print(f" ❌ Summary slide error: {e}") print(f" 📊 Total slides created: {len(charts_created)}") return prs, charts_created async def create_robust_showcases(): """Create robust showcases for testing.""" print("\n🔧 Creating Robust Chart Showcases") pr...
Python
# @greyyvbss from userbot import CMD_HANDLER as cmd from userbot import CMD_HELP from userbot.utils import edit_or_reply, cilik_cmd @cilik_cmd(pattern="sponge(?: |$)(.*)") async def _(event): await edit_or_reply( event, "┈┈╱▔▔▔▔▔▔▔▔▔▔▔▏\n" "┈╱╭▏╮╭┻┻╮╭┻┻╮╭▏ \n" "▕╮╰▏╯┃╭╮┃┃╭╮┃╰▏ \n...
Python
", debug_pe.IMAGE_FILE_MACHINE_I386) _register("debug/pe.IMAGE_FILE_MACHINE_IA64", debug_pe.IMAGE_FILE_MACHINE_IA64) _register("debug/pe.IMAGE_FILE_MACHINE_LOONGARCH32", debug_pe.IMAGE_FILE_MACHINE_LOONGARCH32) _register("debug/pe.IMAGE_FILE_MACHINE_LOONGARCH64", debug_pe.IMAGE_FILE_MACHINE_LOONGARCH64) _register("...
Go
d.setMinimumRequiredScale(2).toPlainString()) // prefer scale of 15, which is too high bd = BigDecimal("0.000000123456") assertEquals("0.000000123456000", bd.setMinimumRequiredScale(15).toPlainString()) // prefer scale of 9, which will cut this value bd = BigDecimal("0.000000123456") assertEqu...
Kotlin