content
stringlengths
2
6.21k
label
stringclasses
16 values
* You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0.txt * * 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 i...
C++
get kCrateApiProtonWalletWalletFrbProtonWalletNewConstMeta => const TaskConstMeta( debugName: "FrbProtonWallet_new", argNames: [ "dbPath", "userKeyTore", "walletKeyStore", "walletMnemonicStore" ], ); @override BigInt crateApiBdkWalletPsbt...
Dart
"""empty message Revision ID: 295e44c2202b Revises: ec00fcbb3994 Create Date: 2020-12-10 05:14:25.106881 """ from alembic import op import sqlalchemy as sa import sqlalchemy_utils # revision identifiers, used by Alembic. revision = '295e44c2202b' down_revision = '447e39dd5fc2' def upgrade(): # ### commands a...
Python
blic TapTarget id(int id) { this.id = id; return this; } /** * Specify the target radius in dp. **/ public TapTarget targetRadius(int targetRadius) { this.targetRadius = targetRadius; return this; } /** * Return the id associated with this tap target...
Java
METADATA", () => { expect(METADATA).toHaveProperty("Gene") }) })const Web3 = require('web3') export class Address { address = '0x0000000000000000000000000000000000000000' constructor(address: string) { if (this.isValid(address)) { this.address = address } } toString() { return...
Typescript
ractor extends BaseYoutubeExtractor { PipedExtractor() { _dio.interceptors.add( PrettyDioLogger( requestHeader: true, requestBody: false, responseBody: false, responseHeader: false, error: true, compact: true, enabled: kDebugMode, ), ); } ...
Dart
e fs2 $09 duty $0f note fs2 $09 rest $0f duty $0e goto musicfb193 cmdff .define musSubrosiaChannel6 MUSIC_CHANNEL_FALLBACK EXPORT
Assembly
is a lag between when a peering request is initiated from AWS's end and when it // appears as an option in a space's list of peering connections. In testing, this is // usually in the 1-3 minute range. We retry for 5 minutes so plan/apply runs that // create the two resources at the same time don't result in an err...
Go
new Class3685<>(), new Class3714<HoglinEntity>(Class9069::method33802, MemoryModuleType.ATTACK_TARGET) ), MemoryModuleType.ATTACK_TARGET ); } private static void method33782(Brain<HoglinEntity> var0) { var0.method21426( Activity.field40232, ...
Java
: rgba(244, 67, 54,.4); color: rgba(244, 67, 54,.4); } .chartist-red .ct-grid { stroke: rgba(244, 67, 54,.2); } .chartist-red .ct-series-a .ct-bar, .chartist-red .ct-series-a .ct-line, .chartist-red .ct-series-a .ct-point, .chartist-red .ct-series-a .ct-slice-donut { stroke: rgba(244, 67, 54, 1); } .char...
CSS
dl ul,ol dl,ol ol,ol ul,ul dl,ul ol,ul ul{font-size:90%;margin:1.5rem 0 1.5rem 3.0rem}ol{list-style:decimal inside}ul{list-style:circle inside}.button,button,dd,dt,li{margin-bottom:1.0rem}fieldset,input,select,textarea{margin-bottom:1.5rem}blockquote,dl,figure,form,ol,p,pre,table,ul{margin-bottom:0}table{border-spacing...
CSS
d .-mr-20 { margin-right: -5rem; } .tailwind .mt-32 { margin-top: 8rem; } .tailwind .mr-3 { margin-right: 0.75rem; } .tailwind .-ml-1 { margin-left: -0.25rem; } .tailwind .mt-10 { margin-top: 2.5rem; } .tailwind .ml-16 { margin-left: 4rem; } .tailwind .mr-1\.5 { margin-right: 0.375rem; } .tailwind ...
CSS
con.png' }, rightCard: { name: 'Wendy', imagePath: 'wendy-icon.png' }, proverb: 'Team up. Get things done.' }]; class WelcomeController { private static chooseWelcomeCards(randomizer):WelcomeCardSet { var indexToUse = randomizer.next(candidates.length - 1); return c...
Typescript
geInsets.all(16.0), child: Text( 'You received your ticket to your e-mail after the purchase. In case of problems contact us at tickets@fluttereurope.dev or ask someone from the staff at the conference.', textAlign: TextAlign.center, style: TextStyle( color: Theme.of(co...
Dart
.rst-versions { width: 85%; display: none } .rst-versions.shift { display: block } } .rst-content img { max-width: 100%; height: auto } .rst-content div.figure { margin-bottom: 24px } .rst-content div.figure p.caption { font-style: italic }...
CSS
567890'; String getRandomString(int length) => String.fromCharCodes(Iterable.generate( length, (_) => alphanumerics.codeUnitAt(Random().nextInt(alphanumerics.length)))); class SettingsProvider with ChangeNotifier { SharedPreferences? prefs; // Not done in constructor as we want to be able to await it F...
Dart
x; box-sizing: border-box; } body > .ui.grid { margin-left: 0% !important; margin-right: 0% !important; } .ui.grid:after, .ui.row:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } /*------------------- Columns --------------------*/ /* Standard 16 column */ ...
CSS
"path to an image file. use with multimodal models. Specify multiple times for batching", [](common_params & params, const std::string & value) { params.image.emplace_back(value); } ).set_examples({LLAMA_EXAMPLE_LLAVA})); if (llama_supports_rpc()) { add_opt(common_arg( ...
C++
// weight : 4 x [2 x 8] : v0-3 // dst : 1 x 4 x [4] : v16-19 ld1 {v0.16b, v1.16b, v2.16b, v3.16b}, [x25], #64 // weight ld1 {v4.16b}, [x24], x15 // src .inst 0x4e80a490 // smmla v16.4s, v4.16b, v0.16b .inst 0x4e81a491 // smmla v17.4s, v4.16b, v1.16b .inst 0x4e82a492 // smmla v18.4s, v...
Assembly
describe("cookie module", function() local http_cookie = require "http.cookie" local http_headers = require "http.headers" describe(".parse_cookies", function() it("can parse a request with a single cookie headers", function() local h = http_headers.new() h:append("cookie", "foo=FOO; bar=BAR") assert.same...
Lua
resp) || (new Date().getTime()+'.csv') return resp.blob() }) .then(blob => { downloadContent(blob, filename) }) } export const download = (url, filename = '', { standaloneHTML = '' }={})=>{ // don't covert "data:..." urls (aka, from `canvas.toDataURL`) if( typeof url == 'strin...
JavaScript
ntIp ip * @return */ @Override public Map<String, String> unifiedRecharge(UserRecharge userRecharge, String clientIp) { if (ObjectUtil.isNull(userRecharge)) { throw new CrmebException("订单不存在"); } // 获取用户openId // 根据订单支付类型来判断获取公众号openId还是小程序openId ...
Java
* <table border="0" cellpadding="0"> * <tr><td>0 =&nbsp;</td><td>normal</td></tr> * <tr><td>1 =&nbsp;</td><td>soft</td></tr> * <tr><td>2 =&nbsp;</td><td>hard</td></tr> * </table> * </blockquote> * Type: Signed byte. */ int KODAK_SHARPNESS = ...
Java
subproperties that fully /// match the static type. String get asCorrection { StringBuffer sb = new StringBuffer(); witnessToText(sb, forCorrection: true); return sb.toString(); } @override String toString() => asWitness; } // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS...
Dart
ln("Typographic Descender:", os2.STypoDescender) fmt.Println("Win Ascent:", os2.UsWinAscent) fmt.Println("Win Descent:", os2.UsWinDescent) fmt.Println("Width Class", os2.USWidthClass) fmt.Println("Weight Class", os2.USWeightClass) fmt.Println("TODO: SHOW MORE METRICS") } return nil } package spotify impo...
Go
turn false; /* If concurrent readers of the event needs to be considered (where only one waiter wins), * this must be O_NONBLOCK. This is only used internally however, so it's okay to leave as-is. */ return (size_t) read(handle.fd, &dummy, sizeof(dummy)) == sizeof(dummy); #endif } else...
C
class Persona: def __init__(self, nombre, edad): self.nombre = nombre self.edad = edad def imprimir(self): print(f"Soy {self.nombre} y tengo {self.edad} años.") class Estudiante(Persona): def __init__(self, nombre, edad, grado): super ().__init__(nombre, edad) ...
Python
import time import board import busio from analogio import AnalogIn import adafruit_ds1841 # WIRING: # 1 Wire connecting VCC to RH to make a voltage divider using the # internal resistor between RH and RW # 2 Wire connecting RW to A0 def wiper_voltage(_wiper_pin): raw_value = _wiper_pin.value return raw_val...
Python
length; LatLon ll; if (AVKey.RHUMB_LINE.equalsIgnoreCase(pathType) || AVKey.LOXODROME.equalsIgnoreCase(pathType)) ll = LatLon.rhumbEndPosition(begin, azimuth, length); else // (AVKey.GREAT_CIRCLE.equalsIgnoreCase(pathType) ll = LatLon.greatCircleEndPo...
Java
") ilm.Metrics().EnsureCapacity(2) { m := ilm.Metrics().AppendEmpty() buildHistogram(m, "histogram_1", ts, 5) } { m := ilm.Metrics().AppendEmpty() buildHistogram(m, "histogram_2", ts, 1) } return out }, }, { name: "histograms_with_host_id", inMetricsFunc: func() ...
Go
Attr(resourceName, "health_check.0.healthy_threshold", "3"), resource.TestCheckResourceAttr(resourceName, "health_check.0.interval", "30"), resource.TestCheckResourceAttr(resourceName, "health_check.0.matcher", tc.expectedMatcher), resource.TestCheckResourceAttr(resourceName, "health_check.0.path",...
Go
化] 废液贮罐", "waste material":"[经] 废料", "waste matter":" 废物; 糟粕", "waste molasses":"[化] 废糖蜜", "waste of effort":"[网络] 得来全不费工夫", "waste of energy":" 能量消耗", "waste of material":"[网络] 浪费材料", "waste of money":"[经] 浪费金钱", "waste of time":"na. 浪费时间\\n[网络] 时间浪费;时间的浪费;徒然耗费时间", "waste oil":"[化] 废油; 用过的油", "waste one's breath":"白费口...
Typescript
embeddedDir / getApplicationManifestFileName( applicationName, ), ) { write(embeddedManifest.manifestBytes) } } suspend fun success( applicationName: String, seed: String, freshnessChecker: FreshnessChecker, ): String { val success = load(applicationName, ...
Kotlin
unsafe { alt_IVehicle_LoadScriptDataFromBase64( self.0.load(Ordering::Relaxed), Box::into_raw(Box::new(StringView::new(base64).into())), ) } } pub fn is_destroyed(&self) -> bool { unsafe { alt_IVehicle_IsDestroyed(self.0.load(Orde...
Rust
'2020-01-02', url: 'https://example.com', seller: { name: 'Seller', }, }; const offerTwo: Offers = { price: '900', priceCurrency: 'CAD', itemCondition: 'PreOwned', availability: 'OutOfStock', validFrom: '2020-01-01', url: 'https://who.com', seller: { name: 'SellerTwo', }, }; describe('s...
Typescript
642] = "英雄的救赎护肩", [39643] = "风暴精华", [39644] = "配方:甜果酒", [39645] = "伪装工具", [39646] = "血色信使的衣物", [39647] = "血色信使的信件", [39648] = "库塞尔的怒火", [39649] = "库塞尔的焦虑", [39650] = "库塞尔的作战指环", [39651] = "风险投资公司炸药", [39652] = "背叛者的狂暴项圈", [39653] = "背叛者的法术项圈", [39654] = "救赎之路", [39655] = "背叛者的防御项圈", [39656] = "泰瑞尔的剑柄", [39657] = "旋风束腕"...
Lua
import threading import time def func_1(): while True: print(f"[{threading.current_thread().name}] Printing this message every 2 seconds") time.sleep(2) # initiate the thread with daemon set to True daemon_thread = threading.Thread(target=func_1, name="daemon-thread", daemon=True) # or # daemon_th...
Python
L3_2 else L3_2 = A1_2.rareType L4_2 = A2_2.rareType if L3_2 > L4_2 then L3_2 = -1 return L3_2 end end L3_2 = 1 return L3_2 end L68_1 = _ENV["CE87854361B053ABE"]["
Lua
label': [0, 0, 204, 24], // 'track': [204, 0, 144, 24], // 'upper-label': [348, 0, 204, 24], // 'lower-fill': [204, 0, 72, 24], // 'upper-fill': [276, 0, 72, 24], // 'thumb': [204, 0, 144, 24], // }); //}); test('Spec Example 5', () { return verifyExample('5 Grid Lines', { 'it...
Dart
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved. import sys import inspect import speakeasy.winenv.arch as _arch from speakeasy.errors import ApiEmuError from speakeasy.winenv.api import api from speakeasy.winenv.api.kernelmode import * # noqa from speakeasy.winenv.api.usermode import * # noqa def autoload_a...
Python
num GuideAction { GuideAction = 0, GuidingAction = 1, EndAction = 2 } public enum Effect { GuideAction = 0, GuidingAction = 1, EndAction = 2, BeginEffect0 = 3, BeginEffect1 = 4, ...
C#
.. 'ssPlantingDistance="' .. self.treePlanterMinDistance .. '" ' end return attributes, "" end function ssVariableTreePlanter:readStream(streamId, connection) self.treePlanterMinDistance = streamReadFloat32(streamId) end function ssVariableTreePlanter:writeStream(streamId, connection) streamWriteFlo...
Lua
assertFalse( "domain name with invalid TLD shouldn't validate", validator.isValid("apache.rog")); assertFalse("URL shouldn't validate", validator.isValid("http://www.apache.org")); assertFalse("Empty string shouldn't validate as domain name", validator.isValid(" ")); ass...
Java
= Enum.Font.Fantasy BuyPetGo.TextColor3 = Color3.new(1, 1, 1) BuyPetGo.Text = "Buy Pets" BuyPetGo.TextSize = 17 BuyPetGo.TextWrapped = true BuyHatTitle2.Name = "BuyHatTitle2" BuyHatTitle2.Parent = BuyScreenFrame BuyHatTitle2.BackgroundTransparency = 1 BuyHatTitle2.BorderSizePixel = 0 BuyHatTitle2.Position = UDim2.new(...
Lua
#include "fixed_vec2.h" #include "utils/utils.h" bool vec2_equal(const vec2_t* v1, const vec2_t* v2) { return v1->x == v2->x && v1->y == v2->y; } void vec2_add(vec2_t* v, const vec2_t* v1, const vec2_t* v2) { v->x = add_f32(v1->x, v2->x); v->y = add_f32(v1->y, v2->y); } void vec2_sub(vec2_t* v, const v...
C
m name="gameId"></param> public SteamGameId(string input, ESteamGameIdType type, uint gameId) { Input = input; Type = type; Id = gameId; } /// <summary> /// /// </summary> /// <returns></returns> public override string ToString() { return $"{Type}/{I...
C#
/* Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com> <http://rt2x00.serialmonkey.com> 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 License, or (at your opti...
C
k--) { if (allowed.indexOf( possibleKiller.get(tempList.get(j).x).get(tempList.get(j).y).get(k)) == -1) { possibleKiller.get(tempList.get(j).x).get(tempList.get(j).y).remove(k); } } } } } break; case DIVISION: { List<Integer> allowed = generateAllowedValuesKil...
Java
','), state }; const endpoint = base + qs.stringify(queryParams); return endpoint; } import {createSlice, PayloadAction} from '@reduxjs/toolkit'; import type {RootState} from '../../app/store'; import {ProjetXUser, VisibilitySettings} from './usersTypes'; import {EventParticipation} from '../events/eventsType...
Typescript
.size) assertEquals(expected = 1, actual = subsampling.sampleSizeState.value) assertEquals( expected = "IntRectCompat.fromLTRB(127, 5871, 563, 6305)", actual = subsampling.imageLoadRectState.value.toString() ) assertEquals( ...
Kotlin
.rwmb-input .button:hover, #wpcd_server_wordpress-app_tab3 .rwmb-input .button a:hover { text-decoration: none; background-color: var(--wpcd-primary-brand-color); border-color: var(--wpcd-primary-brand-color); } /* Restyle metabox TOGGLE switches - note that we're doing this for the entire wp-admin area - not jus...
CSS
和调度机制、测试数据管理和结果收集、插件系统和扩展机制。 三、核心组件 (Core Components) 详细说明框架的核心组件,包括测试执行器、结果分析器、配置管理、报告生成等。对于每个组件,说明其功能描述、关键接口和API、实现细节,并提供相关的代码示例(控制在15行以内)。 四、测试用例管理 (Test Case Management) 说明测试用例的组织和管理,包括测试用例的分类和组织结构、测试数据的准备和管理方法、测试用例的编写规范、测试用例的维护和版本控制。 五、使用指南 (Usage Guide) 提供框架使用的详细指导,包括环境配置和依赖安装、测试执行的命令和参数、配置文件的编写和定制、测试结果的查看和分析。...
Markdown
CX LFD a7, 0 * SIZE(X) add X, X, INCX LFD a8, 0 * SIZE(X) add X, X, INCX STFD a1, 0 * SIZE(X1) STFD a2, 1 * SIZE(X1) STFD a3, 2 * SIZE(X1) STFD a4, 3 * SIZE(X1) STFD a5, 4 * SIZE(X1) STFD a6, 5 * SIZE(X1) STFD a7, 6 * SIZE(X1) STFD a8, 7 * SIZE(X1) addi X1, X1, 8 * SIZE bdnz+ LL(01) .align 4 LL(05): ...
Assembly
rning information in the Table. */ --intergalactic-table-td-cell-warning-active: #ffdca2; /* Primary brand color. */ --intergalactic-brand-primary: #dcb8ff; /* Secondary brand color. */ --intergalactic-brand-secondary: #421983; /* Pinterest brand color. */ --intergalactic-brand-pinterest: #bd081c; /* In...
CSS
6, 0x194F, prNumeric}, // Nd [10] LIMBU DIGIT ZERO..LIMBU DIGIT NINE {0x1950, 0x196D, prOLetter}, // Lo [30] TAI LE LETTER KA..TAI LE LETTER AI {0x1970, 0x1974, prOLetter}, // Lo [5] TAI LE LETTER TONE-2..TAI LE LETTER TONE-6 {0x1980, 0x19AB, prOLetter}, // Lo [44] NEW TAI LUE LETTER HIGH QA..NEW TAI LU...
Go
} /** Get whether a particular face should be rendered with a single uniform color. @param face the index of the triangle being rendered */ @Override public boolean isUniformFace(int face) { RenderingTriangle tri = mesh.triangle[face]; return (tri.n1 == tri.n2 && tri.n1 == tri.n3); } /...
Java
// ] // } // if (isTrue(isEqual(message, "pong"))) { this.handlePong(client as WebSocketClient, message); return; } object table = this.safeString(message, "table"); if (isTrue(isEqual(table, null))) { object ...
C#
# Copyright (c) ONNX Project Contributors # SPDX-License-Identifier: Apache-2.0 from onnx.reference.ops.op_pool_common import CommonPool class AveragePool_1(CommonPool): def _run( # type: ignore self, x, auto_pad=None, ceil_mode=None, kernel_shape=None, pads=Non...
Python
("""{"value":0.0}""") } @Test fun `serialize, maximum precision`(): Unit = runTest { val value = BigDecimal("0.8172843657189237") json.encodeToString(Wrapper(value)) .shouldBe("""{"value":0.8172843657189237}""") } @Test fun `serialize, exceeds maximum precision`(): Unit = r...
Kotlin
CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA...
Assembly
afe { cudaMemGetInfo(&mut free as *mut _, &mut total as *mut _) } { cudaSuccess => Ok(MemInfo{free, total}), e => Err(CudaError(e)), } } } #[derive(Debug)] pub struct CudaStream { ptr: cudaStream_t, } unsafe impl Send for CudaStream {} unsafe impl Sync for CudaStream {} impl Drop for CudaStream ...
Rust
// The MIT License // // Copyright (c) 2014 Gwendal Roué // // 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, ...
C
n.kt)| Medium | Array, Binary_Search | 170 | 96.30 | 0162 |[Find Peak Element](src/main/kotlin/g0101_0200/s0162_find_peak_element/Solution.kt)| Medium | Top_Interview_Questions, Array, Binary_Search, LeetCode_75_Binary_Search | 297 | 53.85 #### Day 13 | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> ...
Markdown
ctitle,.sidebarblock>.content>.title{font-size:1.6875em}h4{font-size:1.4375em}}table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede}table thead,table tfoot{background:#f7f8f7;font-weight:bold}table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inhe...
CSS
BBA0: /* 8039BBA0 00397800 38 BE 4D F8 */ addi r5, r30, 0x4df8 /* 8039BBA4 00397804 38 7A 00 1F */ addi r3, r26, 0x1f /* 8039BBA8 00397808 38 80 00 00 */ li r4, 0 /* 8039BBAC 0039780C 7E E9 03 A6 */ mtctr r23 lbl_8039BBB0: /* 8039BBB0 00397810 80 05 00 00 */ lwz r0, 0(r5) /* 8039BBB4 00397814 7C 03 00 00 */ cmpw ...
Assembly
rs // Std imports use num::traits::{Float, Signed, One}; // local imports use sralgebra::{CommutativeRingPartial}; use srmatrix::api::{Matrix}; use srmatrix::api::{Shape, Extraction, MatrixBuffer, Search}; use srmatrix::api::eo_traits::ECO; use srmatrix::api::SRError; #[doc="Returns the determinant of a matrix. # R...
Rust
OPENGL_FORWARD_COMPAT, GL_TRUE); #else // GL 3.0 + GLSL 130 const char* glsl_version = "#version 130"; glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); #endif GLFWwindow *window = glfwCreateWindow( 1000, 600, "NanoVG", nullptr, nullptr ); if( ...
C++
2 { stop-color: #ef473a; } .spinner-spiral.spinner-energized .stop2 { stop-color: #ffc900; } .spinner-spiral.spinner-royal .stop2 { stop-color: #886aea; } .spinner-spiral.spinner-dark .stop2 { stop-color: #444; } /** * Forms * -------------------------------------------------- */ form { margin: 0 0 1.4285...
CSS
{ Log.warn(e) { "Connection attempt failed" } peripheral.disconnect() } } suspend fun disconnect() { peripheral.disconnect() } private suspend fun monitorRssi() { try { while (coroutineContext.isActive) { _rssi.value = periphe...
Kotlin
{ resolve() this._e.removeEventListener(name, l as EventListener) } } this._e.addEventListener(name, l as EventListener) if (n <= this._n) { resolve() } return promise } async waitForCommit (n: number) { // console.log("waiting for finish:", n, this._o) const [promise, resolve] = ext...
Typescript
m-s-night div.CodeMirror-selected { background: #447; } .cm-s-night .CodeMirror-line::selection, .cm-s-night .CodeMirror-line > span::selection, .cm-s-night .CodeMirror-line > span > span::selection { background: rgba(68, 68, 119, .99); } .cm-s-night .CodeMirror-line::-moz-selection, .cm-s-night .CodeMirror-line > span...
CSS
; } .sidenav > li > a:hover { background-color: #F5F5F5; color: #222; } .sidenav a:hover .icon-chevron-right { opacity: .5; } .sidenav .ui-tabs-active .icon-chevron-right, .sidenav .ui-tabs-active a:hover .icon-chevron-right { opacity: 1; } /* ---------------------------------------------------------------- FAQ...
CSS
Name: "Bitcoin", // // callOutSideMainIsolate: false)) // // .thenAnswer((_) async => tx11Raw); // // // // // recover to fill data // // await btc?.recoverFromMnemonic( // // mnemonic: TEST_MNEMONIC, // // maxUnusedAddressGap: 2, // // maxNumberOfIn...
Dart
fd-mark from the rhs if (currentLhsAttr < 0) { this.removeFd(rhs); this.removeRhsAttribute(rhs); return true; } if ((this.children != null) && (this.children[currentLhsAttr] != null)) { // Move to the next child with the next lhs attribute if (!this.children[currentLhsAttr].removeRecursive(lhs,...
Java
// flushBuffer(); } else { g.setColor(colors.getBackgroundColor()); g.fillRect(0, 0, getBounds().width, getBounds().height); if (is3D()) { drawBoxGridsTicksLabels(g, true); } } interrupted = false; } private boo...
Java
0, 1 /* 8046D54C 00468A8C 48 00 00 90 */ b lbl_8046D5DC lbl_8046D550: /* 8046D550 00468A90 1C 88 00 38 */ mulli r4, r8, 0x38 /* 8046D554 00468A94 3C A0 80 62 */ lis r5, lbl_806247A0@ha /* 8046D558 00468A98 38 00 00 0D */ li r0, 0xd /* 8046D55C 00468A9C 38 A5 47 A0 */ addi r5, r5, lbl_806247A0@l /* 8046D560 00468AA...
Assembly
d ping check. Should return subnet config std::string valid_json_cfg = R"({ "ping-check": { "enable-ping-check" : true, "min-ping-requests" : 13 } })"; user_context = Element::fromJSON(valid_json_cfg); ...
C++
# Tipos de datos # string, integer, boolean, float, None cadena1 = "Cadena de texto" cadena2 = 'Cadena de texto' numero = 1 decimal = 1.0 vacio = None booleano = True booleano2 = False # Operadores de comparación # == != > < >= <= condicion = False # Es un solo bloque if condicion == True: ...
Python
(void *)"_RasteriseMMX565_Z_RGB_D_LR", (void *)"_RasteriseMMX565_Z_RGB_D_RL", (void *)"_RasteriseMMX565_Z_RGB_D_LR", #else RasteriseMMX565_Z_RGB_D_RL, RasteriseMMX565_Z_RGB_D_LR, RasteriseMMX565_Z_RGB_D_RL, RasteriseMMX565_Z_RGB_D_LR, #endif } }, { { /* Render function ...
C
PPED', [ 'NameNode on host {0} not found (namenode adresses = {1})'.format(host_name, ', '.join(nn_addresses))] upgrade_finalized_qry = "{0}://{1}/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo".format(scheme, uri) # start out assuming an OK status label = None result_code = "OK" try: if kerbe...
Python
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
Python
prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters, always_specify_types extension GetSettingCollection on Isar { IsarCollection<Setting> get settings => this.collection(); } const SettingSchema = CollectionSchema( name: r'Setting', id: 2542600759502230801, properties: { r'au...
Dart
RGET_PS2 // Add components vector3 DENOM0 = v3_Cross( pBody0->GetWorldInvInertia().RotateVector( v3_Cross( Active.m_RelPos0, N ) ), Active.m_RelPos0 ); vector3 DENOM1 = v3_Cross( pBody1->GetWorldInvInertia().RotateVector( v3_Cross( Active.m_RelPos1, N ) ), Active.m_RelPos1 ); Denominator += v3_...
C++
et the log level (e.g. `vim.log.levels.DEBUG`). Use `:ConformInfo` to see the location of the log file. ---@field notify_on_error? boolean Conform will notify you when a formatter errors (default true). ---@field notify_no_formatters? boolean Conform will notify you when no formatters are available for the buffer (defa...
Lua
space: nowrap; font: var(--cometchat-font-body-regular); font-style: normal; } .cometchat-groups__list-item .cometchat-avatar { width: 40px; height: 40px; } .cometchat-groups__list-item .cometchat-list-item__leading-view { width: 40px; height: 40px; } .cometchat-groups .co...
CSS
></td></tr><tr><td></td></tr><tr><td class="navbox-group" style=";;"><div>Ph游戏对话</div></td><td style=";;" class="navbox-list navbox-even"><div><a href="./東方幕華祭_春雪篇_~_Fantastic_Danmaku_Festival_Part_II-设定与剧情-博丽灵梦PH.md" title="東方幕華祭 春雪篇 ~ Fantastic Danmaku Festival Part II/设定与剧情/博丽灵梦PH">博丽灵梦</a> &#8226; <a href="./東方幕華祭_...
Markdown
terTlsFails() { val plan0 = routePlanner.addPlan() plan0.tcpConnectDelayNanos = 280.ms val plan1 = routePlanner.addPlan() plan1.tcpConnectDelayNanos = 10.ms // Connect at time = 260 ms. plan1.tlsConnectDelayNanos = 10.ms // Connect at time = 270 ms. plan1.tlsConnectThrowable = IOException("boom...
Kotlin
of the output\n\t\t\toutput.splice(i++, 0, n);\n\n\t\t}\n\n\t\treturn ucs2encode(output);\n\t}\n\n\t/**\n\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\n\t * Punycode string of ASCII-only symbols.\n\t * @memberOf punycode\n\t * @param {String} input The string of Unicode symbols.\n\t * @retu...
JavaScript
import torch # Load the original weights file original_weights = torch.load('/home/xteam/zhaohao/pycharmproject/YTMT/merge_stem_reg_014_00055524.pt') # Create a new weights dictionary # new_weights = {} # # Iterate through the original weights dictionary # for key, value in original_weights.items(): # # Check if...
Python
codec() { return CODEC; } @Nullable @Override public BlockState getStateForPlacement(BlockPlaceContext ctx) { return ctx instanceof SlopePlacementContext slopeCtx ? super.getStateForPlacement(ctx) .setValue(FACING, slopeCtx.getSlopeFacing()) ...
Java
ak; } } void DoMove() { Vector3 _dirVec = _goalPos - transform.position ; Vector3 _disVec = (Vector2)_goalPos - (Vector2)transform.position ; if( _disVec.sqrMagnitude < 0.1f ) { _prefabs.PlayAnimation(0); _playerState = PlayerState.idle; ...
C#
#!/usr/bin/env python # -*- coding: utf-8 -*- '''================================================= # copy and modify from mmcv.runner.hooks.optinizer.py # @Time : 2020/8/10 16:11 # @Author : wuzhihao # @email : 753993117@qq.com # @FileName: optinizer_hook.py # @Software: PyCharm # @github :https://github.com/wuz...
Python
rawJson, propertyClrType, new VersionedJsonConverter(), new NodaTimeInstantJsonConverter()); } } public Value ConvertToDatastoreValue( DatastoreValueConvertToContext context, string propertyName, Type propertyClrType, object? propertyClrValue,...
C#
endSysMessage(LANG_IS_TELEPORTED, target->GetName()); SetSentErrorMessage(true); return false; } // stop flight if need if (target->IsInFlight()) { target->GetMotionMaster()->MovementExpired(); target->m_taxi.ClearTaxiDestinations(); } target->TeleportTo(target-...
C++
4JJERafdO E+9CnGwCgYBz0WwBe2EZtGhGhBdnelTIBeo7PIsr0PzqxQj+dc8PBl8K9FfhRyOp U39stUvoUxE9vaIFrY1P5xENjLFnPf+hlcuf40GUWEssW9YWPOaBp8afa9hY5Sxs pvNR6eZFEFOJnx/ZgcA4g+vbrgGi5cM0W470mbGw2CkfJQUafdoIgAIUF+2I9kZe 2FTBuC9uacqczDlc+0k= -----END DSA PRIVATE KEY-----`, "ssh_host_rsa_key": `-----BEGIN RSA PRIVATE KEY----- MIIEowI...
Go
': '', 'appName': '', 'appVersion': '', 'platform': '', 'vendor': '', 'vendorSub': '', 'browserName': '', 'browserMajor': '', 'browserVersion': '', 'deviceModel': 'N73-1', 'deviceType': 'mobile', 'deviceVendor': 'Nokia', 'engineName': '', 'en...
Dart
" or "Spring"].new(SizeX, { frequency = 6 }), Y = Flipper[Instant and "Instant" or "Spring"].new(SizeY, { frequency = 6 }), }) Window.Size = UDim2.fromOffset(SizeX, SizeY) if not NoPos then PosMotor:setGoal({ X = Spring(Value and 0 or Window.Position.X.Offset, { frequency = 6 }), Y = Spring(Value a...
Lua
^= *(({0..255} + x) as *u8) a ^= *(*(({0..255} + x) as *u16) as *u8) a ^= *(*(({0..255} as *u16) + y) as *u8) a ^= *({0..65535} as *u8) a ^= *(({0..65535} + x) as *u8) a ^= *(({0..65535} + y) as *u8) {0..255} = a *({0..255} as *u8) = a *(({0..255} + x) as *u8) = a *(*(({0..255} + x) as *u16) as *u8) = a *(*(({0..255}...
Markdown
main() { let c = '中'; let r1 = &c; // fill the blank,dont change other code let ref r2 = c; assert_eq!(*r1, *r2); // check the equality of the two address strings assert_eq!(get_addr(r1),get_addr(r2)); } // get memory address string fn get_addr(r: &char) -> String { format!("{:p...
Markdown
; setup the correct BAUD_RATE divider for Clock-frequency F_CPU #define BAUD_DIV (((F_CPU / 4 / BAUD_RATE) - 1) / 2) #if BAUD_DIV > 255 #undef BAUD_DIV #define BAUD_DIV (((F_CPU / 8 / BAUD_RATE) - 1) / 2) #if BAUD_DIV > 4095 #error "Unachievable baud rate (too slow) BAUD_RATE" #endif // baud rate sl...
Assembly