content
stringlengths
2
6.21k
label
stringclasses
16 values
ure this call always pushes an error level; BIO_socket_ioctl() does so, so we do too. */ BIOerr(BIO_F_BIO_SOCKET_NBIO, ERR_R_PASSED_INVALID_ARGUMENT); # endif return (ret == 0); } int BIO_sock_info(int sock, enum BIO_sock_info_type type, union BIO_sock_info_u *info) { switch (type) { ...
C
----------------------------------- -- Area: Port Windurst -- NPC: Erabu-Fumulubu -- Type: Fishing Synthesis Image Support -- !pos -178.900 -2.789 76.200 240 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/crafting"); local ID = require("scripts/zones/Port_Windurst/IDs")...
Lua
query_list); } if (moved_list.in_list()) { get_space()->area_remove_from_moved_list(&moved_list); } } monitored_bodies.clear(); monitored_areas.clear(); _set_space(p_space); } void GodotArea3D::set_monitor_callback(const Callable &p_callback) { _unregister_shapes(); monitor_callback = p_callback; m...
C++
Q=359;break}case 2:{j=351879;Q=359;break}case 3:{j=351876;Q=359;break}case 4:{j=351873;Q=359;break}case 5:{j=351870;Q=359;break}case 6:{j=351867;Q=359;break}case 7:{j=351864;Q=359;break}case 8:{j=351861;Q=359;break}case 9:{j=351858;Q=359;break}case 10:{j=351855;Q=359;break}case 11:{j=351852;Q=359;break}case 12:{j=35184...
JavaScript
the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed 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 speci...
Rust
["Collect the crate on the right."] = "", -- A_Classic_Fairytale:first_blood -- ["Collect the crates within the time limit!|If you fail, you'll have to try again."] = "", -- A_Classic_Fairytale:first_blood -- ["Collect the first crate to begin!"] = "", -- Basic_Training_-_Flying_Saucer -- ["Collect the f...
Lua
*/ getAll(name: string): string[]|null { return this.has(name) ? this._headers.get(name.toLowerCase()) || null : null; } /** * This method is not implemented. */ entries() { throw new Error('"entries" method is not implemented on Headers class'); } private mayBeSetNormalizedName(name: string): vo...
Typescript
id DecompressColor(Span<byte> rgba, ReadOnlySpan<byte> block, int blockIndex, bool isDxt1) { // Unpack Endpoints Span<byte> codes = stackalloc byte[16]; int a = Unpack565(block, blockIndex, 0, codes, 0); int b = Unpack565(block, blockIndex, 2, codes, 4); ...
C#
createview")) {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} int _cx = 0; int _cy = 0; RDebugUtils.currentLine=458752; //BA.debugLineNum = 458752;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; RDebugUtils.currentLine=458753; //BA.debugLineNum = 45...
Java
:query::Providers; use rustc_middle::ty::subst::SubstsRef; use rustc_middle::ty::{ self, Const, FloatTy, GeneratorSubsts, IntTy, ParamEnv, PolyFnSig, Ty, TyCtxt, TyKind, TypeAndMut, UintTy, }; use rustc_middle::{bug, span_bug}; use rustc_span::def_id::DefId; use rustc_span::Span; use rustc_span::DUMMY_SP; use r...
Rust
mompoints[pointnum].start; df.x += trg.mompoints[pointnum].delta.x * alpha; df.y += trg.mompoints[pointnum].delta.y * alpha; df.z += trg.mompoints[pointnum].delta.z * alpha; chan.diff[pointnum] = df; for ( int m = 0; m < mapping[p].indices.Length; m++ ) { int index =...
C#
panic(p.errorf(pos, "cannot use %s.%s in assignment", receiverID, methodName)) } p.parseArgs(op, methodName, args) return op } func (p *parser) tokenf(tok token.Token, lit string) string { if tok.IsLiteral() { return lit } return tok.String() } func (p *parser) errorf(pos token.Pos, format string, args .....
Go
비스 종류` ### Declaration ```java public enum DID_SERVICE_TYPE { linkedDomains("LinkedDomains"), credentialRegistry("CredentialRegistry"); } ``` <br> ## 3. PROOF_PURPOSE ### Description `Proof 목적` ### Declaration ```java public enum PROOF_PURPOSE { assertionMethod("assertionMethod"), authentication("...
Markdown
#ifndef SCHEDULEWID_H #define SCHEDULEWID_H #include <QWidget> #include <QListWidget> #include <QString> #include <QObject> #include <QStringLiteral> #include <QDesktopServices> #include <QUrl> #include <QListWidgetItem> #include <QTimer> #include <QMessageBox> #include <QFile> #include "TagList.h" #include "../../Se...
C
dw.dxfInt(172, 1); if (version==DL_VERSION_R12) { dw.dxfInt(173, 0); dw.dxfInt(174, 0); dw.dxfInt(175, 0); dw.dxfInt(176, 0); dw.dxfInt(177, 0); dw.dxfInt(178, 0); } if (version==DL_VERSION_2000) { dw.dxfInt(271, 2); dw.dxfInt(272, 2); ...
C++
)); console.log(veFPIS_table_4_years_PXY_TX_TO.toString()); // Disallow the proxy await veFPIS_instance.stakerSetProxy(ZERO_ADDRESS, { from: STAKING_OWNER }); await veFPIS_instance.adminSetProxy(ZERO_ADDRESS, { from: DEPLOYER_ADDRESS }); console.log(chalk.hex("#ff8b3d").bold("=====================QUICK 4 YE...
JavaScript
T__441 - 422)) | (1L << (T__442 - 422)) | (1L << (T__443 - 422)) | (1L << (T__444 - 422)))) != 0)) ) { ((Register8Context)_localctx).r = _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } ((Register8Context...
Java
//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #ifndef BUILDMODEDIALOG_H #define BUILDMODEDIALOG_H #ifdef _WIN32 #pragma once #endif #include "Frame.h" str...
C
007A5E; } .show > .btn.btn-default, .btn.btn-default.active, .btn.btn-default:active, .btn.btn-default:hover { color: #ffffff; background: #007A5E; border-color: #007A5E; } .show > .btn.btn-default i, .btn.btn-default.active i, .btn.btn-default:active i, .btn.btn-default:hover i { color: #ffffff; } .btn-seco...
CSS
color) / 1 - Error (red) / 2 - Warning (yellow) / 3 - Success (green))*/ criticality: string; date?: number; comment?: string; } export interface IRequestAttachment{ /** id вложения */ id?:string; /** Тип вложения */ attType?:string, /** Тип вложения (описание) */ attTypeText?:string, /** Имя файла...
Typescript
Db.LastInsertedUserId) }, resourceConfigs2.TestTimeout, resourceConfigs2.TestRetryInterval).Should(BeTrue()) } func (r *DataIsReplicatedTest) ThenPrimaryDbContainsExpectedNbreUsers(expectedNbreUsers int) { Eventually(func() bool { users := r.connectionPrimaryDb.GetUsers() r.connectionPrimaryDb.Close() if len...
Go
.should() .beInFolder('**/interfaces/**') .check(); // Match constant files (all uppercase) projectFiles() .withName(/^[A-Z_]+\.ts$/) .should() .beInFolder('**/constants/**') .check(); // Metrics for PascalCase controllers metrics() .withName(/^[A-Z][a-zA-Z]*Controller\.ts$/) .lcom() .lcom96b() ...
Markdown
where quotation marks are omitted. An /// example string that could be sent from device is /// "solution\0soln_freq\010\0". /// #[cfg_attr(feature = "sbp_serde", derive(Serialize, Deserialize))] #[derive(Debug, Clone)] #[allow(non_snake_case)] pub struct MsgSettingsReadResp { pub sender_id: Option<u16>, /// A ...
Rust
, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package certloader import ( "crypto/tls" "crypto/x509" "sync/atomic" "unsafe" ) type trustBundle struct { // Root CA bundle path caBundlePath string // Cached *x509.CertPoo...
Go
#pragma once #pragma pack(push,1) #pragma warning(disable : 4355) #define UTF8SQL ////////////////////////////////////////////////////////////////////////// //Ϣ #define DBTCP_DEF_FLAG 0xCCCCCC01 #define DB_PROCNAME_MAXLEN 64 // 洢 #ifdef UTF8SQL #define DB_SQL_MAXLEN 4096 // SQL #else #define DB_SQL_MAXLEN 2048 ...
C
:i\d+>> InvokeStaticOrDirect intrinsic:IntegerBitCount /// CHECK-DAG: Return [<<Result>>] private static int $noinline$BitCountBoolean(boolean x) { if (doThrow) { throw new Error(); } // Try defeating inlining. return Integer.bitCount(x ? 1 : 0); } /// CHECK-START: int Main.$noin...
Java
edit_heap proc push rbp mov rbp, rsp sub rsp, 20h mov rax, fs:28h mov [rbp+var_8], rax xor eax, eax mov edi, offset aIndex; "Index :" mov eax, 0 call _printf lea rax, [rbp+buf] mov edx, 4; nbytes mov rsi, rax; buf mov ...
Assembly
ManyToOne(type => grade_types) @JoinColumn({ name: "type_id" }) type: grade_types; @Column({ unique: true }) name: string; }import {CondStmtEntity, ExprStmtEntity, KEY, RawStmtEntity, SelectStmtEntity, StmtBuilder} from "../model/stmt-model"; export function isNumber(v:any):v is number{ retu...
Typescript
ata. */ GLOBAL(void) jpeg_mem_src(j_decompress_ptr cinfo, const unsigned char *inbuffer, unsigned long insize) { struct jpeg_source_mgr *src; if (inbuffer == NULL || insize == 0) /* Treat empty input as fatal error */ ERREXIT(cinfo, JERR_INPUT_EMPTY); /* The source object is made permanent s...
C
e: Exception, errorDrawable: Drawable?) { displayNoteNotification(hexPub, title, updatedText, nip32Bech32, avatar, null, event) } override fun onPrepareLoad(placeHolderDrawable: Drawable?) { } }) } else { ...
Kotlin
ing]interface{} { bodyParams := map[string]interface{}{ "rule_name": utils.ValueIgnoreEmpty(d.Get("name")), "desc": utils.ValueIgnoreEmpty(d.Get("description")), "type": utils.ValueIgnoreEmpty(d.Get("type")), "smn_topics": buildAlarmActionRuleRequestBody...
Go
Type { none, mini, m1k, m2k, m4k } // can't start with number... final gMifareClassicKeys = gMifareClassicKeysList .map((key) => Uint8List.fromList([ (key >> 40) & 0xFF, (key >> 32) & 0xFF, (key >> 24) & 0xFF, (key >> 16) & 0xFF, (key >> 8) & 0xFF, ...
Dart
{ return addInfoFrom(inits, false); } private FlowInfo addInfoFrom(FlowInfo inits, boolean handleInits) { if (this == DEAD_END) return this; if (inits == DEAD_END) return this; UnconditionalFlowInfo otherInits = inits.unconditionalInits(); if (handleInits) { // union of definitely assigned variables, this...
Java
/ .ent memset_loop .align 3 memset_loop: .frame sp, 0, ra, 0 .prologue 0 beq t3, $tail blbc t3, 0f # skip single store if count even stq_u a1, 0(a0) # e0 : store one word subq t3, 1, t3 # .. e1 : addq a0, 8, a0 # e0 : beq t3, $tail # .. e1 : 0: stq_u a1, 0(a0) # e0 : store two words subq t3, 2,...
Assembly
// SPDX-License-Identifier: GPL-2.0 // // Copyright (c) 2020 MediaTek Inc. // Author: Weiyi Lu <weiyi.lu@mediatek.com> #include <linux/clk-provider.h> #include <linux/module.h> #include <linux/platform_device.h> #include "clk-mtk.h" #include "clk-gate.h" #include <dt-bindings/clock/mt8192-clk.h> static const struct...
C
* @param i_IsSafe 是要安全?还是要性能 * @param io_RTotal 记录并防止重复合并单元格 */ public final static void addMergedRegions(Sheet i_Sheet ,int i_FirstRow ,int i_LastRow ,int i_FirstColumn ,int i_LastColumn ,boolean i_IsSafe ,RTotal io_RTotal) { if ( i_FirstRow == i_LastRow && i_FirstColumn == i_Last...
Java
{ nullptr }; wxButton *btn_export_gcode; wxButton *btn_reslice; ScalableButton *btn_send_gcode; //ScalableButton *btn_eject_device; ScalableButton* btn_export_gcode_removable; //exports to removable drives (appears only if removable drive is connected) Search::OptionsSearcher searcher; ...
C++
/* Processed by ecpg (regression mode) */ /* These include files are added by the preprocessor */ #include <ecpglib.h> #include <ecpgerrno.h> #include <sqlca.h> /* Needed for informix compatibility */ #include <ecpg_informix.h> /* End of automatic include section */ #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y)) #line ...
C
IZE) if string.startswith(block, '\0') then return {} end local ok, err = header_format_validation(block) if not ok then return nil, err end local header = {} header.name = read_header_block(block, HEADER_CONF.NAME) header.size = read_header_block(block, HEADER_CONF.SIZE...
Lua
.section .text .globl _start _start: .org 0x0 s1: ori $t1, $zero, 0x2 bl s2 ori $t1, $zero, 0xf ori $t1, $zero, 0xe ori $t1, $zero, 0xd .org 0x20 s2: ori $t1, $zero, 0x3 ori $t2, $zero, 0x4 beq $t1, $t2, s5 bne $t1, $t2, s3 ori $t1, $zero, 0xf ori $t1, $zero, 0xe ori $t1, $zero...
Assembly
while (DownloaderHandler._workerCount < this._maxWorkers) { BackgroundWorker backgroundWorker = new BackgroundWorker(); backgroundWorker.DoWork += new DoWorkEventHandler(this.BackgroundWorker_DoWork); backgroundWorker.RunWorkerCompleted += new ...
C#
isted_names = optional(list(string), [])<br/><br/> lambda_function_association = optional(list(object({<br/> event_type = string<br/> include_body = optional(bool, false)<br/> lambda_arn = string<br/> })), [])<br/><br/> function_association = optional(list(object({<br/> event_type = s...
Markdown
if sub_filter is None: # Ignore None filters continue ldap_filter = get_ldap_filter(sub_filter) if ldap_filter is not None: # Valid filter ldap_filters.append(ldap_filter) if not ldap_filters: # Do nothing return None elif len(lda...
Python
}}, }, Factory: &rest_datasource.Factory{ Client: testNetHttpClient(t, roundTripperTestCase{ expectedHost: "example.com", expectedPath: "/name/luke", expectedBody: "", sendResponseBody: `{"race": "Human"}`, sendStatusCode: 200, }), }, Cust...
Go
-3.84 1.34-.93 4.38-1.96 9.14-3.1V25.2c0-1.6-.26-2.72-.78-3.34s-1.43-.93-2.72-.93q-.735 0-1.44.15t-1.47.45v3.2h-2.63c-.46 0-.77-.08-.94-.25s-.25-.47-.25-.92c0-1.24.72-2.27 2.15-3.1A11.13 11.13 0 0 1 53 19.25c2 0 3.45.43 4.36 1.3.9.87 1.36 2.27 1.36 4.2V35.8l.65.61 2.01.19v1.38h-5.36l-.5-2.22zm9.43-13.85h-2.4v-1.2l2.51-...
CSS
nce) - 不要仅仅止步于言语和插图不冒犯用户。 - 拓展机遇(Expansion opportunities) ## How - 制定计划(Make a plan) - 制定下一个将要适配的国家和语言,可以参考 iTunes Connect 中的一些信息。 - 识别用户(Identify users) - 考虑交流(Think about communication) - 重要优先(Prioritize important localization work) ## 语言 - 替代语(Substitutions) - 部分翻译(Partial translation) - 头部,标题(Headings, ti...
Markdown
else { if (monitor == VGA) { wait_retrace(); /* wait until we are in retrace */ _asm { mov ah,12H /* step 1: go into 480 scan line mode */ mov al, 2H mov bl,30H int 10H mov ax,lastmode /* Get mode 2 or 3 */ or al,80H /* Change modes without erasing screen */ int 10H ...
C
exprtk_define_unary_function } template <typename T> inline T compute_pow10(T d, const int exponent) { static const double fract10[] = { 0.0, 1.0E+001, 1.0E+002, 1.0E+003, 1.0E+004, 1.0E+005, 1.0E+006, 1.0E+007, 1.0E+008, 1.0E+009, 1.0E+010, 1...
C++
安全性定理 4. **并发安全性理论** - 数据竞争免疫证明 5. **特质一致性保证** - 全局唯一性验证 6. **宏系统语义** - 编译时元编程理论 ### 🛡️ 安全性证明 - **内存安全性定理**: 无use-after-free、double-free保证 - **类型安全性定理**: Progress + Preservation证明 - **并发安全性**: 数据竞争免疫性证明 - **异常安全性**: 恐慌后状态一致性保证 ### 🎨 设计模式理论 - **10种行为模式**: Rust化的安全实现 - **零成本抽象验证**: 性能等价性证明 - **模式组合理论**: 模式间交互的安全性 ...
Markdown
relative relation between tones of roleA and roleB, as described above. * @param stayTogether Whether these two roles should stay on the same side of the "awkward zone" * (T50-59). This is necessary for certain cases where one role has two backgrounds. * @param constraint How to fulfill the tone delta pair constr...
Kotlin
debug调试 .isDebug(true) //设置debug打印Name .setDebugName("LiQi-NoHttpUtils") //设置全局连接超时时间。单位秒,默认30s。 .setConnectTimeout(40) //设置全局服务器响应超时时间,单位秒,默认30s。 .setReadTimeout(40) ...
Markdown
NonString = errors.New( "can't encode a map with non-string key type") errAnonNonStruct = errors.New( "can't encode an anonymous field that is not a struct") errArrayNoTable = errors.New( "TOML array element can't contain a table") errNoKey = errors.New( "top-level values must be a Go map or struct") errAny...
Go
Returns a new stopwatch that uses the current time as reported by `this`. Stopwatch stopwatch() => ClockStopwatch(this); /// Returns a new stopwatch that uses the current time as reported by `this`. @Deprecated('Use stopwatch() instead.') Stopwatch getStopwatch() => stopwatch(); } // Copyright (c) 2013, the D...
Dart
r1) /* 802DCF0C 002D8B6C 83 E1 00 0C */ lwz r31, 0xc(r1) /* 802DCF10 002D8B70 83 C1 00 08 */ lwz r30, 8(r1) /* 802DCF14 002D8B74 7C 08 03 A6 */ mtlr r0 /* 802DCF18 002D8B78 38 21 00 10 */ addi r1, r1, 0x10 /* 802DCF1C 002D8B7C 4E 80 00 20 */ blr .global port_release_port port_release_port: /* 802DCF20 002D8B80 9...
Assembly
26239 }, { "from": 765352961, "to": 765353983 }]}, { "name": "no.unifonas", "info": "Unifon AS", "data": [{ "from": 1540318209, "to": 1540318463 }]}, { "name": "no.uninett", "info": "UNINETT AS", "data": [{ "from": 3248226305, "to": 3248357375 }, { "from": 1314586625, "to": 1314652159 ...
JavaScript
Azure, Google Cloud, Oracle Cloud, IBM Cloud etc NOTE: This list will not cover any data breaches caused by misconfiguration Table of contents ================= <!--ts--> * [Contribute](#Contribute) * [Cloud Security Provider Vulnerabilites](#cloud-service-provider-vulnerabilites) * [Amazon Web Services (AWS)](#...
Markdown
along with this program. If not, see <https://www.gnu.org/licenses/>. */ package vc.data.lexpression import smt.solverscript.functionsymbols.FunctionSignature import smt.solverscript.functionsymbols.NrOfParameters import tac.* import utils.* import kotlin.contracts.ExperimentalContracts import kotlin.contracts.cont...
Kotlin
s.stdout = Tee._TeeStream(sys.stdout) sys.stderr = Tee._TeeStream(sys.stderr) Tee._TeeStreams = (sys.stdout, sys.stderr) self.file = open(file_name, 'w', buffering=1) Tee._files.append(self.file) _files = [] _TeeStreams = None def __del__(self): if ...
Python
a été utilisé. En fait, l\'utilisation d\'un service de mélange est susceptible d\'attirer l\'attention sur ces transactions.\n </p>'; @override String get knowledge250Sbwhy8722Sbmonero250Sbanalysis250Sbdash250Sbdecentralized250Sbtext => 'Tous les nœuds DASH ne sont pas égaux. Il existe une ...
Dart
AOFFSET ;; LDFPD f88, f89 = [AOFFSET] adds AOFFSET = - 2 * SIZE, AOFFSET ;; LDFPD f90, f91 = [AOFFSET] adds AOFFSET = - 2 * SIZE, AOFFSET ;; LDFPD f92, f93 = [AOFFSET] adds AOFFSET = - 6 * SIZE, AOFFSET ;; LDFPD f104, f105 = [AOFFSET] adds AOFFSET = - 2 * SIZE, AOFFSET ;; LDFPD f106, f107 = [AOFFSET] ad...
Assembly
LongScalarAsync(cancellationToken); return new SyncVersion(version, minVersion); } catch (Exception ex) { throw new InvalidOperationException($"Unable to get current/minimum version from store", ex); } } public async Task<...
C#
(stream_id: StreamId, valid: bool) { let (mut hconn, mut peer_conn) = connect(); // send a priority update let frame = HFrame::PriorityUpdateRequest { element_id: stream_id.as_u64(), priority: Priority::default(), }; let mut e = Encoder::default(); ...
Rust
/* Copyright (C) 2004 Jens Franke, Torsten Kleinjung This file is part of mpqs4linux, distributed under the terms of the GNU General Public Licence and WITHOUT ANY WARRANTY. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the...
C
(); qt != _outputFrameBuffer.end(); qt++) { int channel_in_source = _bufferMap[i]; if(channel_in_source>2) { // not dealt with yet (0,1,2 previously inserted) pointers[channel_in_source].resize(pixe...
C++
signal, child, command: fullCmd }); }); }); } /** * Clean directory recursively * @param directory Directory to clean */ async function cleanDirectory(directory: string): Promise<void> { const spinner = ora({ text: `Cleaning directory: ${chalk.blue(directory)}`, spinner: 'dots'...
JavaScript
{ print('getTouristSpots() 에러 발생 $statusCode'); } } on http.ClientException { print('인터넷 문제 발생'); } on TimeoutException { print('$_uriPath TimeoutException'); } return null; } }import 'package:withu/data/model/social_type.dart'; class Member { final int? id; final Strin...
Dart
clone(padre), None => { println!("Terminé!!"); return acciones }, } } } use gc::{GcWalker, GcWalk, GcFinalize, GcRootWalker, ptr_t}; use rt::{JsType, JsRegExp, JsObject}; use rt::{GC_ARRAY_STORE, GC_ENTRY, GC_HASH_STORE, GC_ITERATOR, GC_OBJECT, GC_REGE...
Rust
_case_globals)] pub const R8I: types::GLenum = 0x8231; #[allow(dead_code, non_upper_case_globals)] pub const R8UI: types::GLenum = 0x8232; #[allow(dead_code, non_upper_case_globals)] pub const R8_SNORM: types::GLenum = 0x8F94; #[allow(dead_code, non_upper_case_globals)] pub const RASTERIZER_DISCARD: types::GLenum = 0x8...
Rust
k.size(); i++) if (cur_key == k[i]) value_ptr = &(v[i]); if (Rand() % 2 == 0) { bool ans = sbr.HasKey(cur_key); KALDI_ASSERT(ans == true); } if (binary) { KALDI_ASSERT(value_ptr->ApproxEqual(sbr.Value(cur_key), 1.0e-10)); } else { KALDI_ASSERT(value_ptr->...
C++
inology.hl7.org/CodeSystem/v3-ObservationValue", "living situation"), Alone("ALONE", "http://terminology.hl7.org/CodeSystem/v3-ObservationValue", "alone"), Depchd( "DEPCHD", "http://terminology.hl7.org/CodeSystem/v3-ObservationValue", "dependent children", ), Depsps("DEPSPS", "http://terminology.hl7...
Kotlin
A = calculate_vector_pot(data_list, sim_geometry, sim_params) return A / ((ct.m_e * ct.c**2) / ct.e) norm_vector_pot = {'name': 'a', 'units': '', 'requirements': {'1d': ['Ez'], '2dcartesian': ['Ez', 'Ex'], ...
Python
Data_GetValue(i) end end end -- apply for i = 1, #DATA.points do if DATA.points[i] and DATA.points[i].isvalid then local value = VF_lim(DATA.points[i].OFS + DATA.points[i].val * DATA.points[i].SCL) if DATA.points[i].INV == 1 then value = 1-value end TrackFX_SetParamN...
Lua
x"..v.itemNum if k ~= #ItemInfo then strs = strs..Language.IDS_COMMA end end guideTaskStr = string.format(guideTaskStr, strs) end -- local bgSprite = CCSprite:create(P("common/list_4000_1.9.png")) bgSprite:setAnchorPoint(PT(0.5,0.5)) bgSprite:setPosition(PT(pWinSize.width/2,posY or pWinSize.height...
Lua
```sh npm run build:wasm:docker:dev # build lua npm run build # build the js code/bridge npm test # ensure everything it's working fine ``` ### Ubuntu / Debian / MacOS You need to install [emscripten](https://emscripten.org/) and ensure it is on your `PATH`. After cloned the repo, to build you just have to run the...
Markdown
n Rw(a,b,1)|0}if((c|0)==C[a+24>>2]){Pw(a);c=C[a+28>>2];if(!c){break a}C[b>>2]=C[a+24>>2];return c|0}d=Qw(a,b,1)}return d|0}function YM(a,b){a=a|0;b=b|0;var c=0,d=0;c=C[a+28>>2];a:{if((c|0)==-1){break a}if(!(!D[a+24|0]|(c|0)!=C[b>>2])){Mw(a);if(!D[a+24|0]){break a}c=C[a+32>>2];if(!c){break a}C[b>>2]=C[a+28>>2];return c|...
JavaScript
tPath.split('').map(numStr => parseInt(numStr)).concat(checkCardinals); drawMap(stateMachine, nextKey); } drawMap(stateMachine, '0,0'); for(let key of Object.keys(stateMachine)){ if (key === 'lastMoveResult' || key === 'moveQueue' || key === 'position' || ke...
Typescript
Coruu, al este del Área 52, y obtén el cristal de acceso de Coruu del sobrestante Seylanna. Úsalo en la consola de Forja de Maná Coruu para desactivarla y vuelve a hablar con la Anacoreta Karja.\n\nCompletar misiones para los Aldor hará que disminuya tu nivel de reputación con los Arúspices."}}, [10322] = {"El cierre d...
Lua
t iS = 0; iS < data._edgesOnShape.size(); ++iS ) { _EdgesOnShape& eos = data._edgesOnShape[ iS ]; if ( eos._edges.empty() || eos.ShapeType() != TopAbs_FACE ) continue; for ( size_t i = 0; i < eos.size(); ++i ) { SMESH_NodeXYZ p( eos[i]->_nodes[0] ); double radius = data._maxThicknes...
C++
may be passed to updateRecord() or removeRecord(). If {@link DNSSDRegistration#stop} is called, the DNSRecord is also invalidated and may not be used further. */ DNSRecord addRecord( int flags, int rrType, byte[] rData, int ttl) throws DNSSDException; } package us.ihmc.darpaRoboticsChallenge.environm...
Java
--[[ TranscriptImporter.lua - Import previously exported Transcript JSON ]]-- TranscriptImporter = Polo { TITLE = 'Import', WIDTH = 650, HEIGHT = 200, BUTTON_WIDTH = 120, INPUT_WIDTH = 120, FILE_WIDTH = 500, } function TranscriptImporter:init() ToolWindow.init(self, { title = self.TITLE, wid...
Lua
to_string(&mut contents) .unwrap(); let expected = Example { unquoted: "and you can quote me on that".to_owned(), single_quotes: "I can use \"double quotes\" here".to_owned(), line_breaks: "Look, Mom! No \\n's!".to_owned(), hexadecimal: 0xdecaf, leading_decimal_point...
Rust
题,使用绝对路径和正确的转义 ass_file_path = str(ass_file.absolute()) video_path_abs = str(Path(video_path).absolute()) output_path_abs = str(Path(output_path).absolute()) # 确保路径存在 if not ass_file.exists(): print(f"❌ 字幕文件不存在: {ass_file_path}") ...
Python
/* * Copyright (C) 2008 SOMA Networks, Inc. * Written By Ovidiu Sas (osas) * * This file is part of Kamailio, a free SIP server. * * SPDX-License-Identifier: GPL-2.0-or-later * * Kamailio is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published...
C
BinaryBit = "0" | "1"; type FloatingBit = "X"; type MaskBit = BinaryBit | FloatingBit; type MaskedBinaryRep = Array<MaskBit>; type BinaryRep = Array<BinaryBit>; type SetMaskInstruction = { cmd: "mask"; value: MaskedBinaryRep; original: string; }; type WriteMemoryInstruction = { cmd: "mem"; address: number...
Typescript
_size)); } } // Can't assert here - if it's a pinned plug it can be less. //assert (last_plug_size >= Align (min_obj_size)); count_plug (last_plug_size, last_plug); } last_plug = tree; if (node_right_child (tree)) { count_plugs_in_brick (tree + node...
C++
Test fun `convert from coordinates`() { val coords = CoordGrid(3200, 4800, 1) val key = ZoneKey.from(coords) assertEquals(400, key.x) assertEquals(600, key.z) assertEquals(1, key.level) } @Test fun `convert to coordinates`() { val key = ZoneKey(x = 400, z...
Kotlin
__label+.q-item__label{margin-top:4px}.q-item__section--main{flex:10000 1 0%;max-width:100%;min-width:0;width:auto}.q-item__section--main+.q-item__section--main{margin-left:8px}.q-item__section--main~.q-item__section--side{align-items:flex-end;padding-left:16px;padding-right:0}.q-item__section--main.q-item__section--th...
CSS
r_dtype) var_t = tf.where( sma_t >= sma_threshold, r_t * m_corr_t / (v_corr_t + epsilon_t), m_corr_t, ) else: var_t = m_corr_t / (v_corr_t + epsilon_t) if self._has_weight_decay: var_t += wd_t * var ...
Python
{ "AppearanceExpires", "Server", "MerchantName" }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropUniqueConstraint( name: "AK_MerchantGroups_AppearanceExpires_Server_MerchantName", table: "MerchantGroups"); ...
C#
return 0; ppcVar1 = vData.ini.FUN_2C17C(28, typeof(Ghost), 8) as Ghost; ppcVar1.screen = screen; ppcVar1.vr.x = 113; ppcVar1.flags = 0x184; ppcVar1.type = 8; ppcVar1.maxHalfHealth = 150; ppcVar1.FUN_3066C(); ppcVar1.DAT_8...
C#
7)) gen:set_particle_position_dist(gen:dist_param(gen:fixed_dist(0.0), gen:fixed_dist(-vx / 5.0)), gen:dist_param(gen:fixed_dist(0.0), gen:fixed_dist(-vy / 5.0))) gen:set_completion_callback(cb) gen:activate() ability:activate(parent) game:play_sfx("sfx/swish-7") end function create_smoke(parent, abil...
Lua
Err { t.Errorf("parseCLINumInsertionWorkersOption() error = %v, wantErr %v", err, tt.wantErr) return } if !reflect.DeepEqual(got, tt.want) { t.Errorf("parseCLINumInsertionWorkersOption() got = %v, want %v", got, tt.want) } }) } } package main import ( "reflect" "testing" "go.mongodb.org/mon...
Go
String { oneMegString[i] = '!' } s, sqlDB, kvDB := serverutils.StartServer(t, base.TestServerArgs{}) defer s.Stopper().Stop(ctx) tableName := "wide_table" sqlutils.CreateTable( t, sqlDB, tableName, "k INT PRIMARY KEY, v STRING", 10, func(i int) []tree.Datum { return []tree.Datum{ tree.NewDInt(tr...
Go
r=7, min=32}) } } local toml_string = toml.encode(table_data) print(toml_string) ``` サンプル出力: ``` TOML Example ``` ## 掘り下げ TOMLは、2013年にTom Preston-Wernerによって、XMLやYAMLなど他のデータシリアライゼーション言語に代わるものとして作成されました。これは、設定データを表現するためのより直截的なフォーマットを提供します。JSONが普及しているとはいえ、その構文は設定ファイルにとって煩雑であり得ます。TOMLは、.iniファイルに似ていますが、ネスティング能力とデータ型がある...
Markdown
; var resInfo; if (absId && !BUILDIN_MODULE[absId]) { // 如果依赖是一个资源,将其信息添加到module.depRs // // module.depRs中的项有可能是重复的。 // 在这个阶段,加载resource的module可能还未defined, // 导致此时resource id无法被normalize。 // ...
JavaScript
g.debug( digest + " : disconnect : XMPPWebSocket disconnect"); Log.debug( "Total websockets created : " + sockets.size() ); try { if (wsSession != null && wsSession.isOpen()) { wsSession.close(); } } catch ( Exception e ) { ...
Java
text, string expected) { var printer = new MyPrinter(); using var writer = new StringWriter(); var document = text.Parse(); await printer.PrintAsync(document, writer); var actual = writer.ToString(); actual.ShouldBe(expected, $"Test {number} failed"); ...
C#
{b:'""'}]},t=e.inherit(r,{i:/\n/}),n={cN:"subst",b:"{",e:"}",k:i},c=e.inherit(n,{i:/\n/}),a={cN:"string",b:/\$"/,e:'"',i:/\n/,c:[{b:"{{"},{b:"}}"},e.BE,c]},s={cN:"string",b:/\$@"/,e:'"',c:[{b:"{{"},{b:"}}"},{b:'""'},n]},o=e.inherit(s,{i:/\n/,c:[{b:"{{"},{b:"}}"},{b:'""'},c]});n.c=[s,a,r,e.ASM,e.QSM,e.CNM,e.CBCM],c.c=[o...
JavaScript
x30, x31, x30, ...] -> 80 bytes ``` This was a waste bc there are only 2 states. Instead I represented each cell as a single bit, which reduced the amount of data x8 times: ```rust // GRID = ["0", "0", "1", "0", "0", "0", "1", "0", ...] -> 80 elems // CGRID = [b00100010, ...] -> 10 bytes ``` ### Grid encoding ...
Markdown
0.06), _contrast(0.06), ], ), ColorFilterPreset( name: "Earlybird", option: [_colorOverlay(255, 165, 40, 0.2), _saturation(0.15)], ), ColorFilterPreset( name: "Brannan", option: [_contrast(0.2), _colorOverlay(140, 10, 185, 0.1...
Dart