content
stringlengths
2
6.21k
label
stringclasses
16 values
化 */ data class InitialGame( val buildNumber: String, val gameType: String, val formatType: String, val scenarioID: Int, val player1: Pair<Int, String>, val player2: Pair<Int, String>, ) /** * 卡牌初始化 */ data class CreateGame( val pla...
Kotlin
addressSettings.jaroName4); AddNames(_addressSettings.jaroName5); AddNames(_addressSettings.jaroName6); AddNames(_addressSettings.jaroName7); } #endregion #region Chapman Deviation Tests [Fact] // [Category("Chapman Length Deviation Test")] ...
C#
etNestedValue(targetObj, docPath); if (isPrimitive(currentValue)) { return valuesToSet; } const Constructor: (new (obj: Object) => unknown) | null = typeof _Constructor === "function" ? _Constructor : getNestedConstructor(originalObj, docPath); ...
Typescript
/* Copy the input data to the input image */ cl::size<3> origin; origin[0] = 0; origin[1] = 0; origin[2] = 0; cl::size<3> region; region[0] = 0; region[1] = 0; region[2] = 0; queue.enqueueWriteImage(inputImage, CL_TRUE, origin, region, 0, 0, hInputImage); /* Copy the...
Markdown
port" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes"> <link rel="icon" href="../appicon.png" sizes="512x512" type="image/png"> <!-- Add iOS meta tags and icons --> <meta name="...
HTML
glabel func_808468E8 /* 146D8 808468E8 27BDFFD8 */ addiu $sp, $sp, 0xFFD8 ## $sp = FFFFFFD8 /* 146DC 808468EC AFB00020 */ sw $s0, 0x0020($sp) /* 146E0 808468F0 AFA40028 */ sw $a0, 0x0028($sp) /* 146E4 808468F4 00A08025 */ or $s0, $a1, $zero ## $s0 = 000000...
Assembly
e%3E-for-%5BT;+26%5D">[T; 26]</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-%5BT;+27%5D">[T; 27]</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-%5BT;+28%5D">[T; 28]</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-%5BT;+29%5D">[T; 29]</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-%5BT;+2%5D">[T; 2]<...
HTML
\\:\\."]') === jQuery('input[name="escaped-name\\:\\."]').get(0)); ok(K.query('input[name="escaped-name\\:\\."]', div) === jQuery('input[name="escaped-name\\:\\."]').get(0)); ok(K.query('img[border="0"]', div) === jQuery('img[border="0"]', div).get(0)); ok(K.query('img[border]', div) === jQuery('img[border]', div).g...
JavaScript
ではなく、複合語を形成することである。<div class="example"><pre><code class='html'><c- p>&lt;</c-><c- f>ruby</c-><c- p>></c->B<c- p>&lt;</c-><c- f>rt</c-><c- p>></c->annotation<c- p>&lt;/</c-><c- f>rt</c-><c- p>></c->B<c- p>&lt;</c-><c- f>rt</c-><c- p>></c->annotation<c- p>&lt;/</c-><c- f>ruby</c-><c- p>></c-></code></pre> </div> ...
HTML
S3.SSS4.p2.3.m3.1.1.1.1.1.2">𝑎</ci><ci id="S2.SS3.SSS4.p2.3.m3.1.1.1.1.1.3.cmml" xref="S2.SS3.SSS4.p2.3.m3.1.1.1.1.1.3">𝛾</ci></apply><apply id="S2.SS3.SSS4.p2.3.m3.2.2.2.2.2.cmml" xref="S2.SS3.SSS4.p2.3.m3.2.2.2.2.2"><csymbol cd="ambiguous" id="S2.SS3.SSS4.p2.3.m3.2.2.2.2.2.1.cmml" xref="S2.SS3.SSS4.p2.3.m3.2.2.2.2....
HTML
*/ AFN = 'AFN', /** * Albanian Lek (ALL) */ ALL = 'ALL', /** * Algerian Dinar (DZD) */ DZD = 'DZD', /** * Angolan Kwanza (AOA) */ AOA = 'AOA', /** * Argentine Pesos (ARS) */ ARS = 'ARS', /** * Armenian Dram (AMD) */ A...
Typescript
%7D,%22to%22:%7B%22l%22:0.12,%22c%22:0.45,%22h%22:132.7%7D,%22steps%22:12%7D,%7B%22from%22:%7B%22l%22:1,%22c%22:0.087,%22h%22:261.6%7D,%22to%22:%7B%22l%22:0.22,%22c%22:0.084,%22h%22:275.5%7D,%22steps%22:12,%22uuid%22:%227tpx9pf1zd6%22%7D,%7B%22from%22:%7B%22l%22:0.954,%22c%22:0.108,%22h%22:280.6%7D,%22to%22:%7B%22l%22:...
CSS
><tr class="tt-lyrics-sep" id="=-51" data-pos="&#91;&quot;=&quot;,51&#93;"><td class="tt-sep" lang="zh"><div class="poem">04:13.45<br></div></td><td class="tt-text" lang="zh"><div class="poem"></div></td><td class="tt-tran" lang="zh"><div class="poem"></div></td></tr><tr class="tt-main-ja" id="=-52" data-pos="&#91;&quo...
Markdown
MCSectionELF *Sec = Context.getELFSection( ".MIPS.abiflags", ELF::SHT_MIPS_ABIFLAGS, ELF::SHF_ALLOC, 24, ""); MCA.registerSection(*Sec); Sec->setAlignment(8); OS.SwitchSection(Sec); OS << ABIFlagsSection; } //===-- BPFMCTargetDesc.cpp - BPF Target Descriptions ---------------------===// // // ...
C++
kotlinx.rpc TeamCity build", "${TEAMCITY_URL}/buildConfiguration/${teamCityBuildTypeId}/${teamCityBuildNumber}" ) } if (gradle.rootProject.hasProperty(buildId)) { ge.buildScan.value("CI build id", gradle.rootProject.property(buildId) as String...
Kotlin
= 1; } if (dy > 0) { dy = -1; } else if (dy < 0) { dy = 1; } bind.sessionSendMouse( id: id, msg: '{"type": "wheel", "x": "$dx", "y": "$dy"}'); } } void handleMouse(Map<String, dynamic> evt) { double x = evt['x']; double y = max(0.0, evt['y']); ...
Dart
children: [ Icon(Icons.auto_awesome, color: Colors.blue), SizedBox(width: 8), Text('生成插图') ]), ), PopupMenuItem( enabled: true, onTap: () => _generateVideosFromImages(entry), child: const Row(children: [ Icon(Icons.v...
Dart
sn-Canonicalizations.html#Insn-Canonicalizations" rel="next" title="Insn Canonicalizations"> <link href="Jump-Patterns.html#Jump-Patterns" rel="prev" title="Jump Patterns"> <style type="text/css"> <!-- a.summary-letter {text-decoration: none} blockquote.indentedblock {margin-right: 0em} blockquote.smallindentedblock {m...
HTML
ight { text-align: right; } /* line 64, ../../../ext-theme-base/sass/src/button/Button.scss */ .x4-rtl.x4-btn-inner-right { text-align: left; } /* line 1, ../../../ext-theme-base/sass/src/layout/container/Box.scss */ .x4-box-layout-ct { overflow: hidden; zoom: 1; } /* line 6, ../../../ext-theme-base/sass/src...
CSS
::uwrite!(output, "{}", stuff).unwrap(); output } <reponame>leod/catchub<filename>serv/src/http.rs use std::{future::Future, net::SocketAddr, path::PathBuf, sync::Arc}; use log::{debug, info, warn}; use futures::TryStreamExt; use tokio::{fs::File, io::AsyncReadExt, stream::StreamExt, sync::oneshot}; use hyper::{...
Rust
////////////////////// // Deprecated: use the interface for direct cast func CastBACnetNotifyTypeTagged(structType any) BACnetNotifyTypeTagged { if casted, ok := structType.(BACnetNotifyTypeTagged); ok { return casted } if casted, ok := structType.(*BACnetNotifyTypeTagged); ok { return *casted } return nil } ...
Go
manager.mapList.currentBrailleEnd stateObj.nextStart = manager.mapList.nextBraille } fun setPageRange(start: Int, end: Int) { pageRanges.add(PageRange(start, end)) } fun clearPageRange() { pageRanges.clear() } fun updateCursor(tme: TextMapElement, offsetFromTMEStart: Int) { setListenerLoc...
Kotlin
error) { assert.Error(t, err) }, }, { name: "完成实验失败", args: args{ ctx: session.WithCtxUser(context.Background(), &session.User{ID: testUserID}), event: &entity.ExptScheduleEvent{ ExptID: 1, ExptRunID: 2, SpaceID: 3, ExptRunMode: 1, Session: &entity.Session{User...
Go
pk-input-group .pk-subscribe-submit, .oceangreen-skin .btn.search-btn-outline, .oceangreen-skin .btn.search-btn-outline:hover, .oceangreen-skin .btn.search-btn-outline:focus, .oceangreen-skin .single_property_style.property-1 .listing-detail-btn .more-btn, .oceangreen-skin .nav-tabs .nav-item.show .nav-link, .oceangree...
CSS
",nil}, [17710] = {"Пантера из ока ночи",nil}, [17711] = {"Судьболом",nil}, [17712] = {"Капитан Эдвард Хейнс",nil}, [17713] = {"Нага с острова Проклятой Крови",nil}, [17714] = {"Путешественник с острова Проклятой Крови",nil}, [17715] = {"Атоф Проклятая Кровь",nil}, [17716] = {"Сангриас Безмолвный Клинок","Рыцарь крови"...
Lua
's less accurate than QueryPerformanceCounter // https://msdn.microsoft.com/en-us/library/windows/desktop/ms724408%28v=vs.85%29.aspx DWORD WINAPI newGetTickCount() { std::lock_guard<std::recursive_mutex> gtc_lock(GTCMutex); return h_GetTickCount.get(originalGetTickCount()); ; // Return false tick count } // GetTic...
C++
const point = this.props.config.knobPoints[position]; return ( <Knob key={position} label={cornerNames[position]} x={point.x * width * k + x} y={point.y * height * k + y} onChange={newPoint => { c...
JavaScript
{ this.receivedGroupId = groupId; this.listenerInfo = listenerInfo; if (this.reposition1.compareAndSet(false, true)) { throw new RuntimeException("reposition"); } this.latch1.countDown(); } @KafkaListener(id = "fooBatch", topics = "annotated1", batch = "true") public void listen1Batch(List<Str...
Java
Rotation ? - 180 : 0))); return { minx: corners.reduce((a, v) => Math.min(a, v[0]), Infinity), miny: corners.reduce((a, v) => Math.min(a, v[1]), Infinity), maxx: corners.reduce((a, v) => Math.max(a, v[0]), -Infinity), maxy: corners.reduce((a, v) => Math.max(a, v[1]), -Infinity), } } function recalc...
HTML
4 3C08800F */ lui $t0, %hi(D_800E9020) # $t0, 0x800f /* 223188 801ECED8 E5860000 */ swc1 $f6, ($t4) /* 22318C 801ECEDC 8C4E0000 */ lw $t6, ($v0) /* 223190 801ECEE0 25089020 */ addiu $t0, %lo(D_800E9020) # addiu $t0, $t0, -0x6fe0 /* 223194 801ECEE4 01036821 */ addu $t5, $t0, $v1 /* 223198 801ECEE8 C5A80000 *...
Assembly
CapitalFund.getUsableFund(); BigDecimal money = record.getChargeNum().multiply(record.getPrice()); BigDecimal serviceFee = record.getServiceCharge().multiply(record.getChargeNum()); chargeTotalMoney = money.add(serviceFee); BigDecimal moneyB = money.add(serviceFee).multip...
Java
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
C
します。</li> <li>検証可能性 - ランダム出力は、drandのセットアップ中に計算された公開鍵の集合に対する第三者による検証が可能です。これは、文書化されたdrandノードのセットがプロトコルを実行して、無視できる確率を除いた唯一のランダム出力を生成した、失効しない構成証明として機能します。</li> </ul> <p><em>エントロピー</em>は、数値の予測不可能な性質を測定します。ランダム性にとってはエントロピーが高い方が良いということから、私たちはリーグオブエントロピー(エントロピーの同盟)という名前を取りました。</p> <p>創設メンバーは、公開された検証可能なランダム値を60秒間隔で生成する、より...
HTML
(_onPlayerVideoParams); final platformPlayer = player.platform; if (platformPlayer is NativePlayer) { await platformPlayer.setProperty('cache-on-disk', 'no'); for (final option in Settings.instance.mpvOptions.entries) { await platformPlayer.setProperty(option.key, option.value); } } _videoPlayerCon...
Dart
ction logic_restart(var) local LOG = var["-LOG"] local DEFAULT_DNS = api.get_cache_var("DEFAULT_DNS") if DEFAULT_DNS then backup_servers() --sys.call("sed -i '/list server/d' /etc/config/dhcp >/dev/null 2>&1") local dns_table = {} local dnsmasq_server = uci:get("dhcp", "@dnsmasq[0]", "server") if dnsmasq_s...
Lua
--fa: "\f2a5"; } .fa-linkedin { --fa: "\f08c"; } .fa-hubspot { --fa: "\f3b2"; } .fa-deploydog { --fa: "\f38e"; } .fa-twitch { --fa: "\f1e8"; } .fa-flutter { --fa: "\e694"; } .fa-ravelry { --fa: "\f2d9"; } .fa-mixer { --fa: "\e056"; } .fa-square-lastfm { --fa: "\f203"; } .fa-lastfm-square { ...
CSS
s para mim, você será recompensado por seus esforços. O que preciso são formações cristalizadas de energia das linhas Ley. Meus alunos conseguiram localizar dois, ao leste e ao sul daqui. Suspeito que os dracos azuis residentes e os depravados elfos sangrentos sejam nossas melhores pistas. Comece sua pesquisa aí.", ...
Lua
ROP USER|ALTER USER|DROP PROCEDURE|DROP FUNCTION|DROP TRIGGER|SET STATEMENT|CREATE EVENT|ALTER EVENT|DROP EVENT)`) func (rs *mysqlReplicationStream) handleQuery(ctx context.Context, parser *sqlparser.Parser, schema, query string) error { // There are basically three types of query events we might receive: // * An ...
Go
if (!worker) return; spin_lock_irq(&worker->lock); if (work->worker != worker) { spin_unlock_irq(&worker->lock); goto retry; } if (!list_empty(&work->node)) insert_kthread_work(worker, &fwork.work, work->node.next); else if (worker->current_work == work) insert_kthread_work(worker, &fwork.work, worker-...
C
local Gui = require("api.Gui") local Draw = require("api.Draw") local I18N = require("api.I18N") local Ui = require("api.Ui") local data = require("internal.data") local IUiLayer = require("api.gui.IUiLayer") local UiList = require("api.gui.UiList") local UiWindow = require("api.gui.UiWindow") local InputHandler = req...
Lua
]; const shortPage = [10, 10]; const top1 = 20 + SPACING + 40; const top2 = 20 + SPACING + 10; it("handles case 1", function () { const pages = makePages([[[10, 20], [10, 20], [10, 20], [10, 20]], [tallPage, shortPage, tallPage, shortPage], [[10, 50], [10, 50], [10, 50], [10, 50]], [[10,...
JavaScript
const PestoFavorites({super.key}); @override Widget build(BuildContext context) { return RecipeGridPage(recipes: _favoriteRecipes.toList()); } } class PestoStyle extends TextStyle { const PestoStyle({ double super.fontSize = 12.0, super.fontWeight, Color super.color = Colors.black87, su...
Dart
37 63.8-36.9 70.8 19c8.2 2.2 16.7-2.7 18.9-10.9l4-14.9c2.2-8.2-2.7-16.7-10.9-18.9l-26-7 33.8-19.5c7.4-4.3 9.9-13.7 5.7-21.1L430.4 119c-4.3-7.4-13.7-9.9-21.1-5.7l-33.8 19.5 7-26c2.2-8.2-2.7-16.7-10.9-18.9l-14.9-4c-8.2-2.2-16.7 2.7-18.9 10.9l-19 70.8-62.8 36.2v-77.5l53.7-53.7c6.2-6.2 6.2-16.4 0-22.6l-11.3-11.3c-6.2-6.2-1...
HTML
class Solution: def wordBreak(self, s: str, wordDict: list) -> list: def backtrack(start): if start in memo: # Check if the result for this start index is already memoized return memo[start] # Return the memoized result result = [] # Initialize the res...
Python
/* * Copyright 2020 Redpanda Data, Inc. * * Use of this software is governed by the Business Source License * included in the file licenses/BSL.md * * As of the Change Date specified in that file, in accordance with * the Business Source License, use of this software will be governed * by the Apache License, Ve...
C
0, 8(DI)(CX*8) VADDSD 16(DI)(CX*8), X0, X0 VMOVSD X0, 16(DI)(CX*8) VADDSD 24(DI)(CX*8), X0, X0 VMOVSD X0, 24(DI)(CX*8) ADDQ $0x04, CX CMPQ SI, CX JNE LBB2_4 LBB2_5: TESTQ AX, AX JE LBB2_8 LEAQ (DI)(CX*8), CX XORL DX, DX LBB2_7: VADDSD (CX)(DX*8), X0, X0 VMOVSD X0, (CX)(DX*8) ADDQ $0x01, DX...
Assembly
tion convertToObject(arr) { // return arr.reduce((acc, item) => ({...acc, [item.name]: item.value}), {}); // } // var i = 10; // var array = []; // // // while (i--) { // array.push(function() { // return i + i; // }); // } let i = 10; const array = []; // while (i--) { // ((i) => { // ...
Typescript
ction(Int8, Int16, Int8)>( symbol: 'ReturnStructAlignmentInt16', ) external StructAlignmentInt16 returnStructAlignmentInt16Native( int a0, int a1, int a2, ); /// Test alignment and padding of 16 byte int within struct. void testReturnStructAlignmentInt16Native() { int a0; int a1; int a2; a0 = -1; a1...
Dart
INDEX:XLY0-symbol-description"]={en:["Shanghai Composite Index"],ja:["上海総合指数"]},e.exports["#MOEX:MICEXINDEXCF-symbol-description"]={en:["MOEX Russia Index"],ja:["MOEXロシア指数"]},e.exports["#NYMEX:KT1!-symbol-description"]={en:["Coffee Futures"],ja:["コーヒー先物(当限つなぎ足)"]},e.exports["#OANDA:NATGASUSD-symbol-description"]={en:["...
JavaScript
} } ] } } } function ElUltimoRey(): IScenarioSpec { const SHROUD_OF_YOUR_LOCATION="Shroud of your location" return { name: "The Last King", translations: { "es": "El último rey", }, scenarioEffectSpec: commonTokenEf...
Typescript
func (e *extraKey) InfoKey(keys ...interface{}) string { return buntdb.YoutubeInfoKey(keys...) } func (e *extraKey) VideoKey(keys ...interface{}) string { return buntdb.YoutubeVideoKey(keys...) } func NewExtraKey() *extraKey { return &extraKey{} } package acfun import ( "context" "testing" "time" "github.co...
Go
功能</a></li> <li><a href="236.html">NumPy <code>identity()</code>函数</a></li> <li><a href="237.html">NumPy <code>rand()</code>函数</a></li> <li><a href="238.html">NumPy <code>empty()</code>函数</a></li> <li><a href="239.html">NumPy <code>ones()</code>函数</a></li> <li><a href="240.html">NumPy <code>zeros()</code>函数</a></li> <l...
HTML
// // SPUInstallerDriver.h // Sparkle // // Created by Mayur Pawashe on 3/17/16. // Copyright © 2016 Sparkle Project. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol SPUUpdaterDelegate; @class SUHost, SUAppcastItem, SPUDownloadedUpdate; @protocol SPUInstallerDriverDel...
C
ent to stdout. "; #[derive(Debug, Deserialize, Default, Clone)] pub struct Args { flag_verbose: usize, flag_quiet: bool, arg_url: String, flag_user_agent: Option<String>, flag_accept_lang: Option<String>, flag_timeout: Option<u64>, flag_redirect: Option<u8>, flag_metadata: bool, fla...
Rust
section .name() .map(|name| { section_name == name || (system_section && name.starts_with("__") && section_name[1..] == name[2..]) }) .unwrap_or(false) ...
Rust
en: '100 euros', fi: '100 euroa', se: '100 euro' }, index: 413, co2e: 446, multiplier: null, tips: null }, { title: { en: '200 euros or more', fi: '200 euroa tai enemmän', se: '200 euro eller...
Typescript
THE USE OR OTHER DEALINGS IN THE * SOFTWARE. *****************************************************************************/ /* * This file is a modified version of a file obtained from * CodeSourcery Inc. (now part of Mentor Graphics Corp.), in which the * following text appeared: * * The authors hereby grant ...
Assembly
); expect(size.shortestSide, equals(5.0)); expect(size.longestSide, equals(7.0)); }); test('rounded rect created from rect and radii', () { const Rect baseRect = Rect.fromLTWH(1.0, 3.0, 5.0, 7.0); final RRect r = RRect.fromRectXY(baseRect, 1.0, 1.0); expect(r.left, equals(1.0)); expect(r.to...
Dart
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } @keyframes fadeInMsg { 0% { opacity: 0; transform: translateY(20px) scale(0.95); filter: blur(3px); } 60% { opacity: 0.8; transform: translateY(5px) scale(0.98); filter: blur(1px); } 100% { opaci...
CSS
fest.usesSdk?.targetSdkVersion ?: -1, apk = version.file, src = version.src, features = version.manifest.features.map { it.name }, nativeCode = version.manifest.nativecode, permissions = version.manifest.usesPermission, permissionsSdk23 = version.m...
Kotlin
est('Infinite - Infinite', () => { expect(subtract(INFINITY, INFINITY)).toEqual(NAN); }); test('Value - Infinite', () => { expect(subtract(z, INFINITY)).toEqual(INFINITY); }); test('NaN - NaN', () => { expect(subtract(NAN, NAN)).toEqual(NAN); }); test('Valu...
Typescript
LogStringLimit+1) runtime.Dlog().S(longString).End() got := dlogCanonicalize(runtime.DumpDebugLog()) want := "[] " + strings.Repeat("a", runtime.DebugLogStringLimit) + " ..(1 more bytes)..\n" if got != want { t.Fatalf("want %q, got %q", want, got) } } // TestDebugLogBuild verifies that the runtime builds with -...
Go
tpch.tiny.orders", "SELECT count(*) from orders"); assertUpdate("DELETE FROM test_delete_unpartitioned"); MaterializedResult result = computeActual("SELECT * from test_delete_unpartitioned"); assertEquals(result.getRowCount(), 0); assertUpdate("DROP TABLE test_delete_unpartitioned");...
Java
#pragma once #include <err.h> #define likely(x) __builtin_expect(x, 1) #define unlikely(x) __builtin_expect(x, 0) typedef long ssize_t; typedef unsigned __int128 uint128_t; /* typedef uint128_t objid_t; #define IDFMT "%lx:%lx" #define IDPR(id) \ (uint64_t)((id) >> 64), (uint64_t)(id & 0xFFFFFFFFFFFFFFFF) */ s...
C
? IntPtr.Zero : stream.Handle, trans == null ? IntPtr.Zero : trans.Handle, __data); return __result; } } internal class RTSPStreamTransportFilterFuncWrapper { public int NativeCallback (IntPtr stream, IntPtr trans, IntPtr user_data) { try { Gst.RtspServer.RTSPFilterResult __ret = managed (GLib.Obje...
C#
76572 13.5419 9.55638 13.6741 9.39269L13.7055 9.35492C13.7055 9.35492 13.7181 9.34075 13.7229 9.33446C14.3147 8.6923 14.4563 7.96829 14.2879 7.58425C14.2533 7.50555 14.1494 7.26947 13.6914 7.26947H9.67786C9.45594 7.26947 9.24975 7.15142 9.13643 6.96098C9.02311 6.76896 9.01839 6.53287 9.12541 6.3377C9.50945 5.6373 10.06...
HTML
(divider) --------------------------------------- // -------------------------------------------------------------------- @function color-border($elem) { @return map-get($border--color, $elem); } // -------------------------------------------------------------------- // Output Bg Color -------------------------------...
CSS
(symbol, " walletnode manager did not load") // return nil // } // err := m.StopNodeFlow(symbol) // if err != nil { // log.Error("unexpected error: ", err) // } // return err //} // //func restartNode(c *cli.Context) error { // symbol := c.String("symbol") // if len(symbol) == 0 { // log.Error("Argument -s <symbol> ...
Go
2)); EXPECT_EQ(L"abc", fmt::format(L"{}", L"abc")); EXPECT_EQ(L"z", fmt::format(L"{}", L'z')); EXPECT_THROW(fmt::format(fmt::runtime(L"{:*\x343E}"), 42), fmt::format_error); EXPECT_EQ(L"true", fmt::format(L"{}", true)); EXPECT_EQ(L"a", fmt::format(L"{0}", L'a')); EXPECT_EQ(L"Cyrillic letter \x42e", ...
C++
ortName val name = typeName val data = if ((p_type != PT_NULL) && (p_memsz != 0uL)) elfFile.input.get(p_offset.requireInt, p_memsz.requireInt, p_filesz.requireInt) else ByteArray(p_memsz.requireInt) val access = p_flags.toElfAccessFrProg...
Kotlin
onScrollUp(first == 0 && top == 0) scrollToPosition(first) val adapter = recyclerView.adapter if (adapter is DataBoundAdapter<*, *>) { adapter.getData()[first]?.let { onFirstObject(it) } } // 判断是否滑动到了最后一个item,并且是向上滑动 if (lastItemPosition == itemCount - 1 &&...
Kotlin
aw 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 specific language governing permissions and * limitations under the License. */ import { ImageSetImpl, Image...
Typescript
.ab_eip, Timeout = TimeSpan.FromSeconds(5), }; //Initialize the tag to set up structures and prepare for read/write //This is optional as an optimization before using the tag //If omitted, the tag will initialize on the first Read() or Write() ...
C#
* @param signer a Signer (protobuf object) whose field values will be used * to construct an XrpSigner * @return an XrpSigner with its fields set via the analogous protobuf fields. * @see https://github.com/ripple/rippled/blob/develop/src/ripple/proto/org/xrpl/rpc/v1/transaction.proto#L90 ...
Typescript
left: 0px; top: 0px; color: #888; font-size: 10px; } video, audio, .tl-controls, .timeline { display: none; } background-color: white; } .state-processing .spinner { opacity: 1; background-image: url("/images/hourglass.gif"); } .state-uploading .spinner { opacity: 0.8; bac...
CSS
execute: op_invalid, skip: skip_none }, OpCode { name: "", display: disp_invalid, execute: op_invalid, skip: skip_none }, OpCode { name: "", display: disp_invalid, execute: op_invalid, skip: skip_none }, ...
Rust
rtex attribute w component * * @see <a target="_blank" href="http://docs.gl/gl4/glVertexAttrib">Reference Page</a> */ fun vertexAttribL(index: Int, x: Double, y: Double, z: Double, w: Double) = GL41C.glVertexAttribL4d(index, x, y, z, w) /** * Specifies the value of a generic vertex attribut...
Kotlin
ialiased;text-rendering:optimizeLegibility;font-feature-settings:liga}#back-to-top{display:block;position:fixed;bottom:24px;right:-41px;transition:background-color .18s cubic-bezier(.6,0,.1,1),box-shadow .18s cubic-bezier(.6,0,.1,1),transform .18s cubic-bezier(.6,0,.1,1);z-index:8}#back-to-top.btt-visible{transform:tra...
CSS
// Setup graphics pipeline for UI rendering val inputAssemblyState = vk.PipelineInputAssemblyStateCreateInfo(VkPrimitiveTopology.TRIANGLE_LIST) val rasterizationState = vk.PipelineRasterizationStateCreateInfo(VkPolygonMode.FILL, VkCullMode.NONE.i, VkFrontFace.COUNTER_CLOCKWISE) // Ena...
Kotlin
ai/switch/SaiVendorSwitchManager.h" #include "fboss/agent/hw/sai/store/SaiStore.h" #include "fboss/agent/platforms/sai/SaiPlatform.h" DEFINE_int32( vendor_switch_interrupt_log_throttle_timeout_secs, 60, "Vendor switch interrupt should be logged only once in this interval"); namespace facebook::fboss { Sa...
C++
... GetIterator ( obj [ , hint ] ) ... 3. If hint is async, a. Set method to ? GetMethod(obj, @@asyncIterator). i. Let syncMethod be ? GetMethod(obj, @@iterator). ii. Let syncIterator be ? Call(syncMethod, obj). iii. Return ? CreateAsyncFromSyncIterator(syncIterator). ...
JavaScript
ModelsCount = 0 totalModelsCount = 0 Citizen.CreateThread(function() local count = 0 for i = 1, #category do count = count + #category[i].model end totalModelsCount = count local vaild_category = {} for i = 1, #category do local hasVaildModelInThisList = false local current_category = nil for j = 1, #cat...
Lua
>Another example is that <code>all.equal()</code> is aware of the floating-point numbers problem described above, so it is a little lenient if two numbers are not exactly identical. As shown above, 1 - 0.9 - 0.1 is represented in R as -2.775557610^{-17}. But <code>all.equal()</code> realizes this is an insignificant di...
HTML
ng,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "libc";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html><!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta na...
HTML
x1f\x02I\ [p:\x9c=-hr\xb9\x5c\xbfP$\xa5j\xd7\ \x06\x0c\xb7\xd2D\xb0\xe1\x9a\x0dt\x9f\xa4\xb5\xe6!\x5c\ \x15\xcb\xb1\xcb\xc1P\x906\xc1\xaa\x88\xac\x9f6!k\ \xa6f\x05m~V\xb5\x00*C\xf6o\x8f\xd7s\x19\ \x84M\xa3\x85A\xe4A;x\xfe\xac\xd7\xe7}A.\ \x97;/\x10\x0c\xbe\x87\xce\x87\xa7\xb4\x15]n?\xf4\ K:>1\xd6\xd1~\xd3\x92\xcb\xa9\x...
Python
+e1vA9jk/+25er1+Rdgyj8gDFGj+8ma/5HwAVK21lweF6PEQ7kTA/7zZyTDzjZ7nyXnhjlesQB9RNpuVgiTZ4l3cTcoiBugDbF4nAthojHm0o/yiVOLbCUYTwLF4DuxEq83nQfUFgFfjaEz3AE8dawVwGwA5TCPnSUJdkZgD8/n85cz8fQB1Zr6ViG5vziK6rnux5L2JaKLdf+Y4HclIAGw6pRSwkD3vTgAvMfN1AD5LRLdWKpU7u604iwRAv0BgiyxPAFxARAPMLBEZOQe8P5lMPjI5OflyqDHb0igSAHsBE9YmBhiW1ALtYoAxwD4J...
HTML
onComplete(executed.value) } else { const exhaustive: never = executed throw new Error(exhaustive) } } rec(executed) } export function runAsPromise<Outer, Inner, Action>( operation: Operation<Outer, Inner, Action>, outer: Outer ) { return new Promise<Result<Outer, Inner, Action>>(resolve ...
Typescript
31021 */ addu $v0, $t6, $v1 /* 00820 8088D6E0 904F00D7 */ lbu $t7, 0x00D7($v0) ## 000000D7 /* 00824 8088D6E4 24630100 */ addiu $v1, $v1, 0x0100 ## $v1 = 00000140 /* 00828 8088D6E8 01E4C024 */ and $t8, $t7, $a0 /* 0082C 8088D6EC 1465FFD7 */ bne $v1, $...
Assembly
oks(cfg.lr_config, optimizer_config, cfg.checkpoint_config, cfg.log_config, cfg.get('momentum_config', None)) if distributed: if isinstance(runner, EpochBasedRunner): runner.register_hook(DistSamplerSeedHook()) # register...
Python
# %% """Test suite for logits.py""" import pytest import pandas as pd import numpy as np from transformer_lens import HookedTransformer from activation_additions import utils, logits utils.enable_ipython_reload() @pytest.fixture(name="model") def fixture_model() -> HookedTransformer: """Test fixture that retu...
Python
-- ~50 Minutes@60fps package.path = "./main/?.lua;" movement = loadfile('movement.lua') m = movement() local num = 9 press_b = { {'b', 60} } kickR = { {'r', 2}, {'w', 70}, } kickL = { {'l', 2}, {'w', 70}, } kickU = { {'u', 2}, {'w', 70}, } kickD = { {'d', 2}, {'w', 70}, } press_...
Lua
); plant.randomColor = color; plant.color = 'rgb(' + color.red + ', ' + color.green + ', ' + color.blue + ')'; plant.backgroundColor = 'rgb(' + color.red + ', ' + color.green + ', ' + color.blue + ')'; plant.textColor = textColor; }); } private scaleWidth...
Typescript
lookMap(); break; case 3: review(orders); break; case 4: delOrder(orders,map2); break; } } private void orderDetail(Orders orders) { log.info("查看订单"+orders.getOrder_id()); ...
Java
{ Player } from './Player'; import * as _ from 'lodash'; @Injectable({ providedIn: 'root' }) export class GameManagerService { private WIN_CONDITION: number = 5; constructor() { } private FirstPlayerCells: CellImp[] = []; private SecondPlayerCells: CellImp[] = []; private lastPlayer: Player; findW...
Typescript
-center.reveal(when="next-0")} `§d = log_2(197/88) ≈ 1.16` ::: --- > id: coastline-dimension-1 Nếu chúng ta lặp lại điều này với các lưới lớn hơn, chúng ta sẽ thấy rằng kích thước của bờ biển Anh Làn thực sự là khoảng 1,21. Mandelbrot nhận ra rằng kích thước fractal này cũng là thước đo độ __nhám__ của một hình dạn...
Markdown
ato: {:?}, etc: {:?}, etd: {:?}, is_bunkering: {:?}, bunkering_time: {:?}, logs: {}, ", self.name, self.sender, self.participant1, self.participant2, self.docking_type, self.eta, self.etb, self.ata, self.eto, se...
Rust
odel_name) results['load_time'] = time.time() - start_time # Test each case response_times = [] for test_case in self.test_cases: start_time = time.time() response = model.generate(test_case) response_time = time.time() - start_time ...
HTML
widdle_ptr, #14 .equ distance, distance/8 ### LAYER 4+3+2 movw tmp, #8 2: push {tmp} movw tmp, #2 3: push {tmp} load poly, poly0, poly1, poly2, poly3, #0, #distance/4, #2*distance/4, #3*distance/4 load poly, poly4, poly5, poly6, poly7, #distance, #5*distance/4, #6*distance/4, #...
Assembly
/ 串列容量 int _size = 0; // 串列長度(當前元素數量) int _extendRatio = 2; // 每次串列擴容的倍數 /* 建構子 */ MyList() { _arr = List.filled(_capacity, 0); } /* 獲取串列長度(當前元素數量)*/ int size() => _size; /* 獲取串列容量 */ int capacity() => _capacity; /* 訪問元素 */ int get(int index) { if (index >= _size) throw RangeError('索引越...
Dart
e_sidebar, .quantity-arrow-plus2.inner_page, .quantity-arrow-plus2.home_page_sidebar, .quantity-arrow-plus3.inner_page, .quantity-arrow-plus3.home_page_sidebar { border-radius: 50%; color: #041e42; font-size: 8px; top: 15px; /* -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); ...
CSS