content
stringlengths
2
6.21k
label
stringclasses
16 values
man,-dark-skin-tone,-medium-skin-tone", Character: "👨🏿‍❤‍💋‍👨🏽", UnicodeName: "E13.1 kiss: man, man, dark skin tone, medium skin tone", CodePoint: "1F468 1F3FF 200D 2764 200D 1F48B 200D 1F468 1F3FD", Group: "People & Body", SubGroup: "family", }, "👨🏿‍❤‍💋‍👨🏾": { Slug: ...
Go
enseMatrix`](api/java/org/apache/spark/mllib/linalg/DenseMatrix.html). We recommend using the factory methods implemented in [`Matrices`](api/java/org/apache/spark/mllib/linalg/Matrices.html) to create local matrices. {% highlight java %} import org.apache.spark.mllib.linalg.Matrix; import org.apache.spark.mllib.linal...
Markdown
Utils import ai.platon.pulsar.common.sleepSeconds import org.apache.commons.lang3.StringUtils import kotlin.test.* class PulsarWebDriverMockSiteTests : WebDriverTestBase() { override val webDriverService get() = FastWebDriverService(browserFactory) val text = "awesome AI enabled Browser4!" @Test fun...
Kotlin
(IS_NPC(d->character) && GET_MOB_VNUM(d->character) >= 50 && GET_MOB_VNUM(d->character) < 70) strlcat(buf1, " (morphed)", sizeof(buf1)); else strlcat(buf1, " (switched)", sizeof(buf1)); } } if (!quest && PRF_FLAGGED(tch, PRF_HIRED)) strlcat(b...
C++
), ), const Card( child: MongolListTile( title: MongolText('ᠨᠢᠭᠡ ᠬᠣᠶᠠᠷ ᠭᠤᠷᠪᠠ'), trailing: Icon(Icons.more_vert), ), ), const Card( child: MongolListTile( leadin...
Dart
@VaÆÇô@ÈaVX@xVJXUÞU‚aVLĸbXKl„V@šm°Vn_ny˜XX»mUk¥lK@a„_@yšInaVKVa°_@WXI@ƒ@K‚VnIlbnaV@„l„@‚a@_w@ƒlwUKm™Xa@UV@š»Vƒšw@kUKVUUm@w±VUXUKUwmJUUƒ@km@@±mXkmUI™@mm™KUwkbWakLWaUIkJmŽƒX@l@@VUX@JWbX@VbULWbƒlUVULknlV@bVJk„mb¯KknWmk@@nmVkx™@ƒVmU¯KUnUL™@ƒJUIV™maÅaUm¯X›l™kk@@lk@WI@yUUU@ƒb@aUaƒUmVk@ƒƒ`nxUXlb@lšLVxUbUbVbUll„k„VlÝVUnkVm...
JavaScript
const sym = Symbol('foo2'); const obj1 = {foo: 2, [sym]: 'one'}; const obj2 = {foo: 2, [sym]: 'two'}; const obj3 = {foo: 2, [sym]: 'one'}; expect(obj1).toEqual(obj3); expect(obj1).not.toEqual(obj2); }); test('should compare objects with different Symbol keys', () => { const sym = Symbo...
Typescript
Carrier) -> Self; /// Get the carrier. fn get(&self) -> GasCarrier; /// Map a function `f` of one argument over the underlying data. fn map<F: Fn(GasCarrier) -> GasCarrier>(self, f: F) -> Self { Self::new(f(self.get())) } /// Map a function `f` of two arguments over the underlying car...
Rust
# Copyright (c) 2025 Arne Deutsch, itemis AG, MIT License """Token generation helpers for the evaluation harness.""" from __future__ import annotations import re from hippo_eval.metrics.scoring import ( em_norm, em_raw, enforce_short_answer, enforce_udlr, f1, ) from .encode import encode_prompt ...
Python
c.004.013.009.026.012.04a.537.537 0 010 .222l.001-.004c-.003.014-.008.026-.012.039a.514.514 0 01-.021.069l.001-.004-.024.049a.387.387 0 01-.028.05l.001-.002a.558.558 0 01-.068.083l-2.695 2.695a.552.552 0 01-.786 0zm-3.31-9.134a2.908 2.908 0 002.904 2.905h9.692a1.62 1.62 0 10-1.048-2.856l.002-.002a.556.556 0 01-.719-.84...
Dart
网上网服务营业场所信息安全管理代码 第8部分:系统操作日志操作行为代码.pdf 71.11kb | | ├──GA 558.2-2005 互联网上网服务营业场所信息安全管理系统数据交换格式 第2部分 终端下载数据基本数据交换格式.pdf 93.42kb | | ├──GA 558.3-2005 互联网上网服务营业场所信息安全管理系统数据交换格式 第3部分:营业场所信息 基本数据交换格式.pdf 110.26kb | | ├──GA 558.4-2005 互联网上网服务营业场所信息安全管理系统数据交换格式 第4部分 营业场所处罚结果信息基本数据交换格式.pdf 94.74kb | | ├──GA 560-2005 互联...
Markdown
/****************************************************************************** * * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. * * Portions of this file are derived from the ipw3945 project, as well * as portions of the ieee80211 subsystem header files. * * This program is free software; yo...
C
var j = 0; j < undecidedNeighborRelations.Count; j++) { if (i == j) continue; var index2 = undecidedNeighborRelations[j].Item1; var poly2 = polys[index2]; var tri2 = poly2.GetTriangle(vertices); var sharedMask = tri.GetSharedEdgeMask(tri2); var edge = TerrainUtil.GetEdge(share...
C#
rverName).Must(g => !CustomValidationRules.IsValidServerNameB(g)) .WithMessage(CustomValidationRules.SERVER_NAME_IS_NOT_IN_THE_CORRECT_FORMAT); this.RuleFor(g => g.Protocol).NotEmpty(); this.RuleFor(g => g.Protocol).Must(this.IsKnownProtocol) .WithMessage(Validati...
C#
rt java.util.stream.Stream class StateDefinition<O, S : KryptonState<O, S>>( defaultGetter: Function<O, S>, val owner: O, factory: Factory<O, S>, propertiesByName: Map<String, KryptonProperty<*>> ) { private val propertiesByName = ImmutableSortedMap.copyOf(propertiesByName) val states: Immutab...
Kotlin
31.12621f, -23.791632f, 31.12621f, -23.78125f, 31.125f) cubicTo(-23.770868f, 31.12621f, -23.760382f, 31.12621f, -23.75f, 31.125f) lineTo(-17.65625f, 31.125f) cubicTo(-17.645868f, 31.12621f, -17.635382f, 31.12621f, -17.625f, 31.125f) cubicTo(-17.614618f, 31.12621f, -17.604132f, 31.12621f, -17.59375f, 31...
Kotlin
toKParameterSpec(functionTypeParams) } val typeParameterSpecs = originParameterSpecs.flapTypeParameterSpecTypes(typeVariableNames) //根据构造方法参数,获取toObservableXxx方法需要的参数 val parameterList = typeParameterSpecs.subList(typeCount, typeParameterSpecs.size) val modif...
Kotlin
this.elements = el; } public next() { return this.elements[this.index++]; } public hasNext() { return this.index < this.elements.length; } } const test = new Iterator2<number>([5, 6, 785, 34]); console.log(test.next()); console.log(test.next()); console.log(test.hasNext()); co...
Typescript
ow val chainEntry = chainEntries[indexEntry] val forwardEntry = forwardEntries[indexEntry] productSum -= chainEntry * forwardEntry } for (indexRow in 0 until numberRows) { val indexEntry = startColumn + indexRow val chainEntry = chainEntries...
Kotlin
GetNumMasterServers () { char log[1024]; sprintf(log,"GetNumMasterServers() " ); OutputDebugStringA(log); int ret = m_pWrapper->GetNumMasterServers(); sprintf(log," returned 0x%X",ret); OutputDebugStringA(log); OutputDebugStringA("\n"); return ret; } virtual int GetMasterServerAddress ( int iServ...
C++
-- Enable localization gettext.textdomain('webui-mobiled') local json = require("dkjson") local utils = require("web.lte-utils") local redirect_sim, status, no_device, radio_interface, bars, signal_quality local result = utils.getContent("rpc.mobiled.DeviceNumberOfEntries") local devices = tonumber(result.DeviceNumb...
Lua
not provided. * units = V */ @GeneratedMavField(type = "float") public val chargingMinimumVoltage: Float = 0F, /** * Minimum per-cell voltage when resting. 0: field not provided. * units = V */ @GeneratedMavField(type = "float") public val restingMinimumVoltage: Float = 0F, /** * Maximum ...
Kotlin
.93.18 1.83-.429 2.011-1.361l.165-.845Z"/><path d="M13.66 8.92c0-3-2.46-3.42-5.5-3.42s-5.43.38-5.49 3.31v11.11a4.5 4.5 0 108.18-2.58 3.59 3.59 0 01.81-4.16 5.49 5.49 0 002-4.26ZM8.67 3.43a1.13 1.13 0 00-2.26 0V4a1.13 1.13 0 102.26 0v-.57Zm-3.798-.57a1.028 1.028 0 011.136.907l.06.517a1.028 1.028 0 01-.902 1.14 1.028 1.0...
Dart
IGRlcHRo 6795 IEdPUA== 6796 IHdyaXRlcw== 6797 IGFzc2V0cw== 6798 IHNhdg== 6799 aW1lbnRz 6800 IHRyYW5zaXRpb24= 6801 IGFydGlzdA== 6802 IExvb2s= 6803 IGxvYg== 6804 IGNvbXBvbmVudHM= 6805 YXJpdHk= 6806 IHdhbGtlZA== 6807 IHJvb3Q= 6808 IHBhcnRpY2lwYW50cw== 6809 IG5vdGljZWQ= 6810 IHJlc2M= 6811 IG5hdg== 6812 IEFkbWluaXN0 6813 Z...
Kotlin
storeAmount = target:GetMaxHealth() * restorePercentage / 100 local newHealth = target:GetHealth() + restoreAmount -- Enforce max mana if newHealth > target:GetMaxHealth() then newHealth = target:GetMaxHealth() end -- Set the mana target:SetHealth(newHealth) -- Fire effects lo...
Lua
h method of graph', () => { graph.breadthFirstSearch(); }); })import { Color, IColor } from '../../core/color/built-in/default/class/color-class'; function createDummyElement(): HTMLDivElement { const element: HTMLDivElement = document.createElement('div'); element.style.width = '100px'; element.styl...
Typescript
public GLHistogram(int size) { this(new GLContext(1,1),size); } public GLHistogram() { this(new GLContext(1,1),256); } public GLHistogram(GLContext context) { this(context,256); } public GLHistogram(GLContext context, int size) { histSize = size; this....
Java
t public void consume_amrNbPacketWithInvalidFrameType_throwsIllegalArgumentException() { RtpAmrReader amrReader = createAmrReader(MimeTypes.AUDIO_AMR); amrReader.createTracks(extractorOutput, /* trackId= */ 0); amrReader.onReceivingFirstPacket(/* timestamp= */ 2599168056L, /* sequenceNumber= */ 40289); ...
Java
- BYTE_PROTOCOL_LENGTH - 1 local sumRes = makeSum(msgBytes, 1, msgLength - 1) if (sumRes ~= msgBytes[msgLength]) then end for i = 0, bodyLength do bodyBytes[i] = msgBytes[i + BYTE_PROTOCOL_LENGTH] end binToModel(bodyBytes) local streams = {} streams[KEY_VERSION] = VALUE_VERSION ...
Lua
oke() { if (stroke == null) { stroke = 1; } return stroke; } public void setStroke(int stroke) { this.stroke = stroke; } @EditableProperty public Orientation getOrientation() { if (orientation == null) orientation = Orientation.DEFAULT; return orientation; } pu...
Java
Days, plural, one {# day} other {# days}}"},monthsOfBenefit:{id:"ReferralInvite.monthsOfBenefit",defaultMessage:"{referralTrialDurationMonths, plural, one {free month} other {# free months}}"},daysOfBenefit:{id:"ReferralInvite.daysOfBenefit",defaultMessage:"{referralTrialDurationDays, plural, one {# free day} other {# ...
JavaScript
rchrun --nproc_per_node=8 main.py --model=RePaViT_Large --batch_size=512 --epochs=300 --dist_eval --channel_idle --idle_ratio=0.75 --feature_norm=BatchNorm --data_path=/path/to/imagenet --output_dir=/path/to/output --lr=1e-3 --min_lr=5e-5 --warmup_lr=1e-6 --warmup_epochs=20 --unscale_lr --weight_decay=0.05 --opt=lamb -...
Markdown
ToIsIdle(); await tester.pump(); expect(modelRM!.isIdle, isTrue); expect(modelRM!.hasError, isFalse); expect(modelRM!.hasData, isFalse); expect(find.text(('Error message')), findsNothing); }, ); testWidgets( 'ReactiveModel: reset to hasData', (tester) async { final w...
Dart
ar nonDigit = new Regex("[^\\d]"); var digits = nonDigit.Replace(number, ""); var invalid = "0000000000"; if (digits.Length == 10) { Number = digits; } else if (digits.Length == 11 && digits[0] == '1') { Number = digits.Substring(1, 10); ...
C#
word); Ok(Self { smtp_server: config.smtp_server, sender, contacts: contacts.into(), credentials, }) } } use std::mem; fn main() { let val = 14; let ptr = (&val as *const i32).wrapping_offset(1); let _x: &i32 = unsafe { mem::transmute(ptr...
Rust
index is different from 0), a // peering vertex is added based on (IA, Ingress, InIA, RemoteInIF) for up // segments, and on (InIA, RemoteInIF, IA, Ingress) for down segments. Note // that the AS number in the peering vertex is not pinnedIA, but the one // participating in the peering. The edge is annotated with the se...
Go
0,0 .long 4,0,0,0 .long 0,-1,-1,-1 .align 64 .byte 67,104,97,67,104,97,50,48,32,102,111,114,32,120,56,54 .byte 44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32 .b
Assembly
if (exists) cell_->setDontUse(dont_use); } } void LibertyReader::visitIsMacro(LibertyAttr *attr) { if (cell_) { bool is_macro, exists; getAttrBool(attr, is_macro, exists); if (exists) cell_->setIsMacro(is_macro); } } void LibertyReader::visitIsMemory(LibertyAttr *attr) { if (cell_) {...
C++
id String @id name String age Int } "#; let response = api .infer(dm2) .migration_id(Some("mig02")) .assume_applied_migrations(Some(vec![AppliedMigration { datamodel_steps: steps, migration_id: mig_1_id.to_owned(), ...
Rust
ty<A>()), Gen.throwable().map { Observable.error<A>(it) }, Gen.list(gen).map { Observable.fromIterable(it) } ).map { it.k() } private fun ObservableK.Companion.genk() = object : GenK<ForObservableK> { override fun <A> genK(gen: Gen<A>): Gen<Kind<ForObservableK, A>> = Gen.observableK(gen) as Gen<Kind<Fo...
Kotlin
=> Error::new(ErrorKind::Credential, e), crate::errors::Error::HttpPrepare(e) => e.into(), crate::errors::Error::Other(e) => Error::new(ErrorKind::Other, e), crate::errors::Error::AuthorizationPolicy(msg) => Error::with_message( ErrorKind::Credential, ...
Rust
ing xpath locators. These are considered IN ORDER. const UNIQUE_XPATH_ATTRIBUTES = ['name', 'content-desc', 'id', 'resource-id', 'accessibility-id']; // Attributes that we should recommend as a fallback but ideally only in conjunction with other // attributes const MAYBE_UNIQUE_XPATH_ATTRIBUTES = ['label', 'text', 'va...
JavaScript
(underlying)); }); SICBlockCipher(int blockSize, StreamCipher underlyingCipher) : super(blockSize, underlyingCipher); } // Copyright (c) 2013-present, the authors of the Pointy Castle project // This library is dually licensed under LGPL 3 and MPL 2.0. // See file LICENSE for more information. libra...
Dart
dDirective { @HostListener('input', ['$event']) @HostListener('keyup', ['$event']) @HostListener('keypress', ['$event']) @HostListener('blur', ['$event']) /** * Function to add space after 4 characters */ transForm(event: KeyboardEvent): void { const input = event.target as HTMLInputElement; l...
Typescript
* 예) '삼성그룹의 계열사인 삼성물산은 같은 그룹의 계열사인 삼성생명과 함께'라는 문장에서 * * '삼성그룹'과 '같은 그룹'을 찾아 묶는 것을 말합니다. * * **영형대용어 분석**은 문장에서 생략된 기능어를 찾아 문장 내 또는 문장 간에 언급되어 있는 어구와 묶는 분석과정입니다. * 예) '나는 밥을 먹었고, 영희도 먹었다'라는 문장에서, * * '먹었다'의 목적어인 '밥을'이 생략되어 있음을 찾는 것을 말합니다. * * 아래를 참고해보세요. * * [kr.bydelta.koala.pro...
Kotlin
//for testing the two closest points //std::cerr << "watch 5"<< "\n"; //contactNormal = p1 - p2; //contactNormal.normalize(); //cout<<"contact normal"<<contactNormal(0)<<" "<<contactNormal(1)<<" "<<contactNormal(2)<<endl; //Real norm=contactNormal.norm(); // normal is unit vector now ...
C++
re definicje '__dependency__'.","Now, let's try a new model.":"Teraz spróbujmy nowy model.","New Password:":"Nowe hasło:","Failed to find regression coefficients.":"Nie udało się znaleźć współczynników regresji.","We only plot inequalities of x and y, or r and θ.":"Tworzymy wykresy nierówności tylko z x i y lub r i θ."...
JavaScript
INTEL $0x6C65746E /* "AuthenticAMD" */ #define CV_AMD $0x444D4163 /* "CentaurHauls" */ #define CV_CENTAUR $0x736C7561 .text #if !DES_X2 #define cpuid \ .byte 0x0F; \ .byte 0xA2 #endif #ifdef CPU_NAME .globl CPU_req_name CPU_req_name: .asciz CPU_NAME #endif .globl CPU_detect CPU_detect: pushl %ebx #if BF_...
Assembly
/* Copyright (c) 2011 Xiph.Org Foundation Written by Jean-Marc Valin */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list ...
C
orm = 1.0 # population covariance to match Wang et. al. 2004 # compute (weighted) means ux = filter_func(im1, **filter_args) uy = filter_func(im2, **filter_args) # compute (weighted) variances and covariances uxx = filter_func(im1 * im1, **filter_args) uyy = filter_func(im2 * im2, **filter_ar...
Python
[1] v.reset(OpS390XANDW) v0 := b.NewValue0(v.Pos, OpS390XSLW, t) v0.AddArg(x) v0.AddArg(y) v.AddArg(v0) v1 := b.NewValue0(v.Pos, OpS390XSUBEWcarrymask, t) v2 := b.NewValue0(v.Pos, OpS390XCMPUconst, types.TypeFlags) v2.AuxInt = 31 v2.AddArg(y) v1.AddArg(v2) v.AddArg(v1) return true } } func rewr...
Go
oat_4::set_zxy|| |float_4::set_zxyw|| |float_4::set_zy|| |float_4::set_zyw|| |float_4::set_zywx|| |float_4::set_zyx|| |float_4::set_zyxw|| ### Public Operators |Name|Description| |----------|-----------------| |float_4::operator-|| |float_4::operator--|| |float_4::operator*=|| |float_4::operator/=|| |float_4::operato...
Markdown
ree (format: 2a) [!] Target : http://127.0.0.1:5000/ [+] Start. [+] GET repository/pack-names [+] GET README [+] GET checkout/dirstate [+] GET checkout/views [+] GET bra...
Markdown
1, a4, 16 EE.VLD.128.IP q6, a14, 16 EE.VSUBS.S16 q2, q0, q1 EE.VPRELU.S16 q2, q2, q6, a15 EE.VST.128.IP q2, a2, 16 1: EE.VLD.128.IP q0, a3, 16 EE.VLD.128.IP q1, a4, 16 EE.VLD.128.IP q6, a14, 16 EE.VSUBS.S16 q2, q0, q1 EE.VPRELU.S16 q2, q2, q6, a15 EE.VST.128.IP q2, a2, 16 5: ...
Assembly
the kernel's text pages") .and_then(|offset| kernel_text_pages.as_slice(offset, ap_startup_size_in_bytes))?; let dest_slice: &mut [u8] = ap_startup_mapped_pages.as_slice_mut(0, ap_startup_size_in_bytes)?; dest_slice.copy_from_slice(source_slice); } // Now, the AP startup code is at t...
Rust
, 100%, 67%, ${ALPHA})`, deep: `hsla(208, 100%, 47%, ${ALPHA})` }, // text ink: { DEFAULT: `hsla(${LIGHT_HUE}, 5%, 20%, ${ALPHA})`, dull: `hsla(${LIGHT_HUE}, 5%, 30%, ${ALPHA})`, faint: `hsla(${LIGHT_HUE}, 5%, 40%, ${ALPHA})`, // TODO: light: `hsla(${LIGHT_HUE}, 0%, 82%, ${ALPHA})` }, app: {...
JavaScript
/// Deallocate and rollback a transaction (transaction becomes invalid) @ffi.Native<ffi.Void Function(libsql_transaction_t)>() external void libsql_transaction_rollback(libsql_transaction_t self); /// Deallocate and close rows @ffi.Native<ffi.Void Function(libsql_rows_t)>() external void libsql_rows_deinit(libsql_row...
Dart
l net = testTiledFFT({}, nn.SpatialConvolutionFFTTiledIterated) reportAndFree(net) end end end g_mytester = torch.Tester() g_mytester:add(fb_test) g_mytester:run()
Lua
= "hei_cs2_30_sea", [2740644015] = "hei_cs2_railway", [3015636183] = "xm_lab_rug006", [993428072] = "hei_cs2_railway_long_0", [3244653098] = "v_40_sign018", [1784301290] = "hei_cs2_railwyc_long_0", [2477192411] = "jest4_tlite_l_3", [3155227868] = "hei_mpheist_yacht_bedhall_lamps", [2720534562] = "hei_cs2_roadsa...
Lua
riant1(__tok0), _ => unreachable!(), }, _ => unreachable!(), } } pub struct AtomParser { _priv: (), } impl AtomParser { pub fn new() -> AtomParser { AtomParser { _priv: (), } } #[all...
Rust
oint3 &az, E3DCOLOR color, size_t frames) { draw_debug_line_buffered(p0, p0 + ax, color, frames); draw_debug_line_buffered(p0, p0 + ay, color, frames); draw_debug_line_buffered(p0, p0 + az, color, frames); draw_debug_line_buffered(p0 + ax + ay, p0 + ax, color, frames); draw_debug_line_buffered(p0 + ax + ay, p...
C++
(map[uint64]*rpc.CelerMsg), } if sent < added { m.hasWork(cid) } m.addPeerCid(peer, cid) return nil } func (m *MsgQueue) addPeerCid(peer ctype.Addr, cid ctype.CidType) { m.peerCids[peer] = append(m.peerCids[peer], cid) } // A peer connected to this server, add its channels to the message queue and // start...
Go
/*************************************************************************** ** ** ** QCustomPlot, an easy to use, modern plotting widget for Qt ** ** Copyright (C) 2011-2021 Emanuel Eichhammer ** ** ...
C
(lsp_progress._has_client(1)) local cli = lsp_progress._get_client(1) assert_eq(type(cli), "table") assert_eq(cli.client_id, 1) assert_eq(cli.client_name, "lua_ls") assert_false(lsp_progress._has_client(2)) lsp_progress._remove_client(1) ...
Lua
], [10, 0.4], [14, 0.5], [20, 0.6], [35, 0.8], [45, 0.6], [60, 0.4], [80, 0.2], [100, 1]];/* [(age, probability to survive)] */ public tribes: Tribe[] = []; constructor() { this.tribes = []; } public heartbeat(log: Log): void { for (let tribe of this.tribes) { tribe.heartbeat(this, log); } } } class Tr...
Typescript
o->_failures) > 10; /* all packets need retry in average */ if (enough && nfo->_successes < nfo->_retries) stepdown = true; /* no error and less than 10% of packets need retry */ if (enough && nfo->_failures == 0 && nfo->_retries < (nfo->_successes * STEPUP_RETRY_THRESHOLD) / 100) stepup = true;...
C++
s-transform: translate(-$border-size, -$border-size); transform: translate(-$border-size, -$border-size); border-radius: 50%; border: $border-size solid $white; cursor: pointer; } & + label:after { @include center($inner-size); content: ""; border-rad...
CSS
16; rc++) bprintf(0, _T("%X, "), cchip_rom[rc]); bprintf(0, _T("\n")); #endif } void cchip_exit() { upd7810Exit(); BurnFree(cchip_ram); BurnFree(cchip_updram); cchip_active = 0; } INT32 cchip_scan(INT32 nAction) { if (nAction & ACB_VOLATILE) { upd7810Scan(nAction); ScanVar(cchip_updram, 0x100, "cchip_...
C++
made to a * '/v2/users/statistics/*' endpoint. * @example mockUserStatisticsAPI() */ mockUserStatisticsAPI(): void; /** * Instead of calling the SaintsXCTF Authentication API, return static JSON files defined in the fixtures * directory when an API call is ...
Typescript
// Get the first Mesh Observer available, generally we have only one registered var observer = CoreServices.GetSpatialAwarenessSystemDataProvider<IMixedRealitySpatialAwarenessMeshObserver>(); if (mode == true) { observer.Resume(); observer.D...
C#
/* mpfr_set_zero -- set a number to plus or minus zero. Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. Contributed by the AriC and Caramel projects, INRIA. This file is part of the GNU MPFR Library. The GNU MPFR Library is free software; you can redistribute it and/or modify it under the terms...
C
TexCoord4sv(const GLshort * v){ pushOp(125); pushBuf(v, sizeof(const GLshort) * 4); } //126 extern "C" void glVertex2d(GLdouble x, GLdouble y){ pushOp(126); pushParam(x); pushParam(y); } //127 extern "C" void glVertex2dv(const GLdouble * v){ pushOp(127); pushBuf(v, sizeof(const GLdouble) * 2); } //128 extern ...
C++
u') { indirectionLevelPtr[0]++; c2 = source.LA(nextIndexPtr[0] - index() + 3 + indirectionLevelPtr[0]); } int c3 = source.LA(nextIndexPtr[0] - index() + 4 + indirectionLevelPtr[0]); int c4 = source.LA(nextIndexPtr[0] - index() + 5 + indirectionLevelPtr[0]); int c5 = source.LA(nextIndexP...
Java
* * * DetectEVGAGP102GPUControllers * * * * Detect EVGA GP102 GPU controller...
C++
}; assert_eq!(actual, expected); } } use anyhow::Context; use chrono::{DateTime, FixedOffset, Utc}; use futures::stream::{FuturesUnordered, StreamExt}; use futures::{future::BoxFuture, FutureExt}; use hyper::header::HeaderValue; use once_cell::sync::OnceCell; use reqwest::header::{AUTHORIZATION, USER_AGENT}; use r...
Rust
+ classFile); } catch (Exception e) { e.printStackTrace(); } } } try { return jitClass.newInstance(); } catch (Exception e) { throw new RuntimeException("Could not invoke jitted computation", e); } } private void writeConstructor() { MethodVisitor mv...
Java
ServiceName string `query:"serviceName"` }) interface{} { // default get time: 1 hour. if params.EndTime == 0 { params.EndTime = time.Now().UnixNano() / 1e6 h, _ := time.ParseDuration("-1h") params.StartTime = time.Now().Add(h).UnixNano() / 1e6 } now := time.Now().UnixNano() / 1e6 before7dayMs := time.Now()...
Go
ue | Optionals<TType>, TContext, TFlags> { return this.test({ message, name: 'is-value', exclusive: true, params: { value: 'true' }, test(value) { return isAbsent(value) || value === true; }, }) as any; } isFalse( message = locale.isValue, ): BooleanSchema<...
Typescript
type MockHandler struct { *BaseHandler emitChan chan *LogRecord t *testing.T } func NewMockHandler(t *testing.T) *MockHandler { object := &MockHandler{ BaseHandler: NewBaseHandler("", LevelDebug), emitChan: make(chan *LogRecord, 100), } Closer.AddHandler(object) return object } func (self *MockH...
Go
ear ldr r4, [r0], #4 str r4, [r2], #4 cmp r0, r1 ldrlt r4, [r0], #4 strlt r4, [r2], #4 cmp r2, r3 blt 1b mov pc, lr ENTRY(vidc_fill_noaudio) mov r0, #0 mov r1, #0 2: mov r4, #0 mov r5, #0 1: cmp r2, r3 stmltia r2!, {r0, r1, r4, r5} blt 1b mov pc, lr ENTRY(vidc_clear) mov r0, #0 mov r...
Assembly
ird[1][5], 11); EXPECT_EQ(third[1][6], 18); EXPECT_EQ(third[1][7], 19); EXPECT_EQ(third[1][8], 20); EXPECT_EQ(third[2][0], 2); EXPECT_EQ(third[2][1], 5); EXPECT_EQ(third[2][2], 8); EXPECT_EQ(third[2][3], 11); EXPECT_EQ(third[2][4], 14); EXPECT_EQ(third[2][5], 17); EXPECT_EQ(third[2][6], 20); EXPE...
C
109001_3_0"] = -5858, ["1109001_8_0"] = -5859, ["1109001_25_0"] = -5860, ["1109001_27_0"] = -5861, ["1109001_29_0"] = -5862, [1109002] = -5863, ["1109002_1_0"] = -5864, ["1109002_2_0"] = -5865, ["1109002_3_0"] = -5866, ["1109002_8_0"] = -5867, ["1109002_25_0"] = -5868, ["1109002_27_0"] = -5869, ...
Lua
import torch def zero_module(module): for p in module.parameters(): p.detach().zero_() return module
Python
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
C
10, 31 # 12 bits left vand 21, 21, 25 # a1 vand 10, 10, 25 # a1 vspltisb 13, 12 vand 16, 15, 25 vsld 23, 16, 13 vor 22, 22, 23 vand 22, 22, 25 # a2 vand 16, 18, 25 vsld 12, 16, 13 vor 11, 11, 12 vand 11, 11, 25 # a2 vspltisb 13, 14 vsrd 23, 15, 13 # >> 14 vsrd 24, 23, 31 # >> 26, a4 vand 23, 23, 25 # a...
Assembly
in datos.items(): valor_str = str(value) # Verificar caracteres especiales if any(char in valor_str for char in ['&', '<', '>', '"', "'"]): problemas.append(f"Caracteres XML especiales en {key}: {value}") # Verificar caracteres de control import re if re.se...
Python
C_HandleTypeDef *hmmc) { /* Prevent unused argument(s) compilation warning */ UNUSED(hmmc); /* NOTE : This function should not be modified, when the callback is needed, the HAL_MMCEx_Read_DMALnkLstBufCpltCallback can be implemented in the user file */ } /** * @brief Read DMA Linked list node Tra...
C
"v1/etor/orders", "v1/auth/token", "", "two-legged", null, mapOf("mock-p1" to "value-p1", "mock-p2" to "value-p2"), headers = mapOf( "mock-h1" to "value-h1", "mock-h2" to "value-h2", "Content-Type" to "text/fhir+ndjson" ...
Kotlin
emptyList<Long>() val actual = underTest(" ") assertThat(actual).isEqualTo(expected) } @Test fun `test that fromJson handles single node handle correctly`() { val jsonString = "[123456789]" val expected = listOf(123456789L) val actual = underTest(jsonString) ...
Kotlin
static int test_gelu(const ncnn::Mat& a, bool fast_gelu) { ncnn::ParamDict pd; pd.set(0, fast_gelu ? 1 : 0); std::vector<ncnn::Mat> weights(0); int ret = test_layer("GELU", pd, weights, a); if (ret != 0) { fprintf(stderr, "test_gelu failed a.dims=%d a=(%d %d %d %d) fast_gelu=%s\n", a....
C++
se start the cli with: ```bash make cli ``` #### Running A Scenario Once in the [ADORe CLI docker context 🔗](../system_and_development/adore_cli.md#how-do-i-know-if-i-am-in-the-adore-cli-context) you can run a scenario with `roslaunch`: ```bash cd adore_scenarios roslaunch baseline_test.launch ``` #### I have errors...
Markdown
: https://app.pdf.co/signup // // API Documentation: https://developer.pdf.co/api/index.html // // // // Note: Replace placeholder values in the code wit...
JavaScript
s *const c_char } } pub fn from_string_slice(_rp: *mut Page, s: &str) -> String { String::create(_rp, s.as_ptr() as *const u8, s.len()) } pub fn append_character(&self, _rp: *mut Page, c: char) -> String { unsafe { let s = String::create(_rp, self.data, self.get_len...
Rust
, ErrCRCMismatch) } } func TestFailback(t *testing.T) { dir := filepath.Join(os.TempDir(), "snapshot") err := os.Mkdir(dir, 0700) if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) large := fmt.Sprintf("%016x-%016x-%016x.snap", 0xFFFF, 0xFFFF, 0xFFFF) err = ioutil.WriteFile(filepath.Join(dir, large), []...
Go
mJnCqaAMIBkGdDc8rR" + "RIpCpUktoRdFzBodMKjG1K865pNFr0q+DTbT9cKuI6noLmhbcIUQFHS5v377BVJTsRM38/k7bjVQ" + "/QsGFAWOwy4omnhwaQ4dir9UBWLBQtxIJqOc0kd+1gLNFJRamnepDQhCb0D22mGERkybwyhxbkvG" + "DfXrYw0hu4GOIYTDa3IR130b1DVq4FlBjTdyZZILa5cMBJorNMsfJKzYbIZibbkDp9eD+qcSCJ+Z" + "Aw6J6JiTwaKiMsCRrPJo/VKomqUUaNX77+KQwCQBk8d+WuyGzD...
Go
* 2)) { /* pbuf length less than the sum of IP header and minimal ICMP hdr. */ _hx_printf("%s:too short ICMP packet(len = %d)\r\n", pb->tot_len); return; } /* Locate ICMP header. */ pIcmpHdr = (struct icmp_echo_hdr*)((char*)pHdr + iph_len); /* Reset the original ICMP checksum value. */ pIcmpHdr->chksum = 0;...
C
(0,0,0,1), btVector3(0,0,0)), builtin_interfaces::msg::Time().fromNSec(1000), "parent", "b")); mTR.setTransform( StampedTransform (btTransform(tf2::Quaternion(0,0,0,1), btVector3(0,0,0)), builtin_interfaces::msg::Time().fromNSec(10000), "parent", "b")); mTR.setTransform( StampedTransform (btTransform(tf2::Quat...
C++
?他们普遍喜欢什么样的品牌形象? | | 量化投资 | 如何运用量化投资的方法,制定判断标准、选择股票并进行风险控制? | | 自然语言处理 | 如何通过自然语言处理实现中文文本分类? ...
Markdown
/***************************************************************************** * Open LiteSpeed is an open source HTTP server. * * Copyright (C) 2013 - 2022 LiteSpeed Technologies, Inc. * * * * ...
C
Name=threading.current_thread().name\n else :\n self.thread=None\n self.threadName=None\n if not logMultiprocessing:\n self.processName=None\n else :\n self.processName='MainProcess'\n mp=sys.modules.get('multiprocessing')\n if mp is not None :\n \n \n \n \n try :\n self.processName=mp.cur...
JavaScript