content
stringlengths
2
6.21k
label
stringclasses
16 values
ss); generateTerrain(generatorProgressDelegate); } public void SmoothTerrain(int iterations, float blend) { generatorTypeInt = 3; generatorType = GeneratorType.Smooth; smoothIterations = iterations; smoothBlend = blend; GeneratorProgressDelegate generatorProgressDelegate = new GeneratorProgressDelegate(...
C#
er_framebuffer fails, then * we will be leaving hooks that could cause * oopsen laying around. */ if (unregister_framebuffer(info)) printk(KERN_WARNING "neofb: danger danger! Oopsen imminent!\n"); neo_unmap_video(info); fb_destroy_modedb(info->monspecs.modedb); neo_unmap_mmio(info); ne...
C
elle Größe des Deployments mysql 2 ist, skaliere mysql auf 3.\n" "\t\tkubectl scale --current-replicas=2 --replicas=3 deployment/mysql\n" "\n" "\t\t# Skaliere mehrere MultiplicationController.\n" "\t\tkubectl scale --replicas=5 rc/foo rc/bar rc/baz\n" "\n" "\t\t# Skaliere den Job cron auf 3.\n" "\t\tkubectl scale --rep...
Go
s not include a default value (using the "default:" property), however, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// int? leaseDurationSeconds; /// leaseTransitions is the number of transitio...
Dart
IORITY: u64 = 100; pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"demo"); pub mod crypto { use crate::KEY_TYPE; use sp_core::sr25519::Signature as Sr25519Signature; use sp_runtime::app_crypto::{app_crypto, sr25519}; use sp_runtime::{ traits::Verify, MultiSignature, MultiSigner, }; app_crypto!(sr25519, KEY_TYP...
Rust
#include <stdio.h> #include <stdlib.h> #if defined(PLATFORM_WIN) #include <windows.h> #elif defined(PLATFORM_MAC) || defined(PLATFORM_LINUX) #include <dlfcn.h> #include <libgen.h> #include <string.h> #include <sys/param.h> #define MAX_PATH PATH_MAX #endif #if defined(PLATFORM_WIN) #define MODULE_SUFFIX ".dll" #elif d...
C
using VGAudio.Codecs.CriHca; using Xunit; namespace VGAudio.Tests.Formats.CriHca { public class CriHcaTableTests { [Fact] public void GeneratedDequantizerScalingTableMatchesOriginal() { Assert.Equal(CriHcaTables.DequantizerScalingTable, GeneratedTables.DequantizerScalingTab...
C#
require.Panics(func() { _ = keeper.SendCoinsFromModuleToModule(ctx, authtypes.Burner, "", initCoins) }) authKeeper.EXPECT().GetModuleAddress("").Return(nil) require.Panics(func() { _ = keeper.SendCoinsFromModuleToAccount(ctx, "", baseAcc.GetAddress(), initCoins) }) authKeeper.EXPECT().GetModuleAddress(holder...
Go
IXLY_BELONG = "的"; ZhHans.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT1 = "如果文件可写则返回真,反之返回假"; ZhHans.MIXLY_MICROBIT_PY_STORAGE_GET_FILENAME = "获取文件名称"; ZhHans.MIXLY_MICROBIT_IMAGE = "图像"; ZhHans.MIXLY_MICROBIT_Reset_COMPASS = "恢复指南针初始设置"; ZhHans.blockpy_turtle_pencolor_hex = '设置画笔颜色为十六进制'; ZhHans.blockpy_turtle_fillcolor_...
JavaScript
(1),d2 | roxrl IMM (1),d3 | roxrl IMM (1),d6 | roxrl IMM (1),d7 | cmpw IMM (1),d4 | is the exponent 1 already? #else addl IMM (1),d4 | adjust the exponent lsrl IMM (1),d7 btst IMM (0),d6 beq 13f bset IMM (31),d7 13: lsrl IMM (1),d6 btst IMM (0),d3 beq 14f bset IMM (31),d6 14: lsrl IMM (1),d3 btst IMM (0),...
Assembly
// 创建新数据库 AppDatabase appDatabase = new AppDatabase(); appDatabase.Name = targetName; appDatabase.DataType = (DataType)vieModel.CurrentSideIdx; appDatabaseMapper.Insert(appDatabase); RefreshDatabase(); } public void RefreshDatabase() ...
C#
니다."}}, [898] = {"요새 탈출", {"아! 드디어 날 구하러 왔군!","저 수많은 경비병들을 따돌릴 수 있는 자는 없을 줄 알았소. 테라모어에서 온 저 광신도들은 정말 미치광이들이오. 우리 배를 침몰시키고 유일한 생존자인 나를 이곳에 가뒀지. 나를 얼라이언스를 위협하는 적으로 취급하면서 말이오.","톱니항과 무법항 간에 밀주를 실어 나르는 배의 선원일 뿐인 내가 얼라이언스에 위협이 된다고? 말도 안 되는 소리...","쓸데 없는 말을 너무 많이 한 것 같군. 톱니항으로 돌아가도록 도와주시오. 준비가 되면 함께 빠져나갑시다."}, {"길사레즈 파이어바우를 ...
Lua
erate synchronously const buffer = captcha.generateSync(); fs.writeFileSync("captcha.png", buffer); // Or generate asynchronously (required for background images) const asyncBuffer = await captcha.generate(); ``` #### Method Chaining Examples ```javascript // Complete customization const captcha = new CaptchaGenerat...
Markdown
1 = m.FSM_CHAR(); if (144 <= c1 && c1 <= 191) goto S3234; return m.FSM_HALT(c1); S2186: c1 = m.FSM_CHAR(); if (128 <= c1 && c1 <= 191) goto S3236; return m.FSM_HALT(c1); S2188: c1 = m.FSM_CHAR(); if (128 <= c1 && c1 <= 143) goto S3238; return m.FSM_HALT(c1); S2190: c1 = m.FSM_CHAR(); ...
C++
workName, DefaultNetworkControllerName) dynamicNeighRouters := "true" if config.OVNKubernetesFeature.EnableInterconnect { dynamicNeighRouters = "false" } logicalRouterOptions := map[string]string{ "dynamic_neigh_routers": dynamicNeighRouters, } fakeOvn.startWithDBSetup( libovsdbt...
Go
ivity(context: Context, uid: String) { if (!(uid.startsWith("u_") && uid.length == 24)) return try { startFriendChatHistory(context, uid, true) } catch (e: NumberFormatException) { return } } private fun startFriendChatHistory(context: Context, userUinOrU...
Kotlin
} public FeaturesSettingViewModel() : base("Features") { } public void Suspending() { // Ensure startup path exists if (System.IO.Path.GetDirectoryName(Path) is { } directory) { Directory.CreateDirectory(...
C#
thermo"], "edge"); EXPECT_DOUBLE_EQ(data["site-density"].asDouble(), 5e-18); } TEST_F(ThermoToYaml, CoverageDependentSurface) { setup("copt_covdepsurf_example.yaml", "covdep"); EXPECT_EQ(data["thermo"], "coverage-dependent-surface"); EXPECT_DOUBLE_EQ(data["site-density"].asDouble(), 2.72e-8); EXPEC...
C++
.6 or 1 if target_distance > (APPROACH_DISTANCE+50) * unit_factor then state = 'approach' end if state == 'approach' then self.ship.go_towards(target_position, true) if target_distance < APPROACH_DISTANCE * unit_factor then revise_approach() state = 'turn' e...
Lua
и и принять новый судебный акт - Изменить определение первой инстанции (по аналогии со ст.269, 272, п.36 Постановления Пленума ВАС от 28.05.2009 №36) - Отменить определение первой инстанции полностью или в части, разрешить вопрос по существу (ст.272 АПК РФ) - Направить дело в суд первой инстанции ### Апелляционная инс...
Markdown
.stb-image-small .stb-box { border-radius: 5px 0 0 5px; } .stb-corners.stb-ltr.stb-image-none .stb-box { border-radius: 5px; } .stb-corners.stb-rtl.stb-image-none .stb-box { border-radius: 5px; } .stb-corners.stb-visible .stb-caption-box { border-radius: 5px 5px 0 0; } .stb-corners.stb-hidden .stb-caption-b...
CSS
m/en/database/oracle/oracle-database/19/lnoci/oci-date-datetime-and-interval-functions.html#GUID-EA8FEB07-401C-477E-805B-CC9E89FB13F4 fn OCIDateFromText( err: *const OCIError, txt: *const u8, txt_len: u32, fmt: *const u8, fmt_len: u8, lang: ...
Rust
jackson.datatype:jackson-datatype-jsr310") aptCompile(project(":spring-auto-service")) testImplementation("io.projectreactor:reactor-test") testImplementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml") testImplementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml") } package com.liyu....
Kotlin
1,d1 144 octets par ligne initline2 move.l (a0),(a1)+ copie le cadre pour le scroll ds le 1er ecran move.l (a0),(a2)+ ds le 2eme move.l (a0),(a3)+ ds le 3eme move.l (a0)+,(a4)+ ds le 4eme dbf d1,initline2 lea 16(a0),a0 lea 16(a1),a1 lea 16(a2),a2 lea 16(a3),a3 lea 16(a4),a4 dbf d0,initline1 rts scrlline mo...
Assembly
() { // Test the != operator. Tokenizer tokenizer = new Tokenizer(r"$compiler == dart2js && $runtime != ie9"); tokenizer.tokenize(); ExpressionParser parser = new ExpressionParser(new Scanner(tokenizer.tokens)); BooleanExpression ast = parser.parseBooleanExpression(); Expect.equa...
Dart
-- Autocmds are automatically loaded on the VeryLazy event -- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua -- Add any additional autocmds here local create_augroup = vim.api.nvim_create_augroup local create_autocmd = vim.api.nvim_create_autocmd cre...
Lua
s"] GETTABLEKS R17 R18 K27 ["useFrameworkContext"] CALL R16 1 1 GETIMPORT R17 K4 [require] GETTABLEKS R20 R0 K18 ["Src"] GETTABLEKS R19 R20 K28 ["Resources"] GETTABLEKS R18 R19 K29 ["PluginStyles"] CALL R17 1 1 LOADK R20 K30 ["TooltipMaxWidth"] NAMECALL R18 R17 K31 ["GetAttribute"] CALL R18 2 1 GE...
Assembly
ation.id, XML_CONTENT1, self.user) assert self.fm.save_file(operation.id, XML_CONTENT2, self.user) all_changes = self.fm.get_all_changes(operation.id, self.user) # the newest change is on index 0, because it has a recent created_at time assert len(all_changes) == 2 ...
Python
source->ParamIndices["programConstants0"] = 4; source->ParamIndices["refineCenter"] = 5; source->ParamIndices["tileDist"] = 6; source->ParamIndices["fog"] = 10; source->ParamIndices["pzbModelPosition"] = 12; addSource(source); } // TODO_VP_GLSL { // .... } } void CVertexProgramLandscape::buildInfo() { ...
C++
or from a pointer. /// @see gtc_type_ptr template<typename T> GLM_FUNC_DECL vec<4, T, defaultp> make_vec4(T const * const ptr); /// Build a matrix from a pointer. /// @see gtc_type_ptr template<typename T> GLM_FUNC_DECL mat<2, 2, T, defaultp> make_mat2x2(T const * const ptr); /// Build a matrix from a pointer...
C++
gative, new MetroDialogSettings() { AffirmativeButtonText = "Switch to Beta", NegativeButtonText = "Remain on Stable", DefaultButtonFocus = MessageDialogResult.Affirmative }); ...
C#
= *loc; *loc = *locm; *locm = lt; } *ncand = par->n_cands - 1; /* leave room for the unvoiced hypothesis */ } } /* ----------------------------------------------------------------------- */ #if 0 float *downsample(input,samsin,state_idx,freq,samsout,decimate, first_time, last_time) double freq; ...
C++
s.MultiRegionAccessPointPolicyDocument, error) { input := &s3control.GetMultiRegionAccessPointPolicyInput{ AccountId: aws.String(accountID), Name: aws.String(name), } output, err := conn.GetMultiRegionAccessPointPolicy(ctx, input, func(o *s3control.Options) { // All Multi-Region Access Point actions are ...
Go
RM.Hammer .addRecipe1(T, 16, 16, aStone, aFourRocks); RM.Crusher .addRecipe1(T, 16, 16, aStone, aFourRocks); } if (ST.valid(aBricks)) { CR.shaped(ST.amount(4, aBricks), CR.DEF_REM, "XX", "XX", 'X', aStone ); } if (ST.valid(aChiseled)) { if (FL.Mana_TE.exists()) RM.Bath ...
Java
x) { cauto mask_pix = ext_mask(x, y); cont_if (mask_pix == Pal8::mask_invisible); #define set_white(x0, y0) if (ext_mask(x0, y0) == Pal8::mask_invisible) { \ ret.image().fast_set(x0, y0, Pal8::white, {}); \ ret.mask().fast_set(x0, y0, Pal8::mask_visible, {}); \ } set_white(x+1, y+0); ...
C++
%g0, 3, %i3 ! %i3 contains number of xwords to load/store sub %i3, 1, %i0 ! #of xwords to load to MAMEM minus 1 stxa %i0, [%g0+REG_MA_CTL_ADDR] %asi ! store to the MA_CTL register to load %i0 + 1 xwords to MAMEM ldxa [%g0+MASync_ADDR] %asi, %l7 stxa %l6, [%g0+REG_MPA_ADDR] %asi ! set spu_data_dest to MPA or %i...
Assembly
# Создайте универсальный декоратор, который можно будет применить к любой функции. # Декоратор должен делать следующее: он должен распечатывать слово "finished" # после выполнения декорированной функции. def finish_me(func): # Создаем функцию "finish_me" с аргументом "func" def wrapper(): # Создаем...
Python
ADD8 81 8C 00 40 */ lwz r12, 0x40(r12) /* 8040F89C 0040ADDC 7D 89 03 A6 */ mtctr r12 /* 8040F8A0 0040ADE0 4E 80 04 21 */ bctrl /* 8040F8A4 0040ADE4 48 00 00 08 */ b lbl_8040F8AC lbl_8040F8A8: /* 8040F8A8 0040ADE8 38 60 00 00 */ li r3, 0 lbl_8040F8AC: /* 8040F8AC 0040ADEC 80 01 00 14 */ lwz r0, 0x14(r1) /* 8040F8...
Assembly
()>; /// Get the battery voltage on the selected motor, in volts. fn get_voltage(&mut self, channel: usize) -> Result<f32>; /// Get the motor current in amperes. Positive current values mean energy is /// being drawn from the battery, and negative values indicate energy is /// being regenerated in...
Rust
u015bciowego pliku xml. Wykonaj t\u0119 komend\u0119 bez \u017cadnych opcji, aby zapozna\u0107 si\u0119 z informacjami o sk\u0142adni."}, { "xslProc_common_options", "-Wsp\u00f3lne opcje-"}, { "xslProc_xalan_options", "-Opcje dla Xalan-"}, { "xslProc_xsltc_options", "-Opcje dla XSLTC-"}, { "xslProc_return_to_co...
Java
toMap() for (index in 0 until map.size) { blackhole.consume(map[index].toString()) } } @Benchmark open fun stringMapJava(blackhole: Blackhole) { val jBuilder = com.google.flatbuffers.FlexBuffersBuilder( ArrayReadWriteBuf(initialCapacity), BUILDER_FLAG_SHARE_ALL, ) ...
Kotlin
* Gets client config from environment variables. * * @ignore * @param prefix is the prefix used in environment variables. * @returns the config. * * @example * getEnvValues("DB"); // DB_USER=user DB_CONNECTION_STRIN=abc -> { user: "user", connectionString: "abc" } */ export function getEnvValues(prefix: string...
Typescript
lected, QTreeView::branch:selected { background-color: #507098; color: #DDD; } QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings { border-image: none; image: url(icons/caret-right_ffffff_14.png); } QTreeView::branch:open:has-children:!has-siblings,...
CSS
count); count } #[cfg(test)] mod tests { use super::*; #[test] fn test_examples() { let first = vec![16, 10, 15, 5, 1, 11, 7, 19, 6, 12, 4]; let second = vec![ 28, 33, 18, 42, 31, 14, 46, 20, 48, 47, 24, 23, 49, 45, 19, 38, 39, 11, 1, 32, 25, 35, 8, 17, 7, 9, ...
Rust
orderType = OrderType.Limit }; _result.result.Add(_order); } } } _result.SetResult(_json_result); } else { ...
C#
public static Vector2 AmbientOcclusion(Vector3Int pos, BlockFace face, BlockFaceCorner corner, IWorldRAccessor accessor, bool fastMode) { if (fastMode) { float skyLight = MapLight01(accessor.GetSkyLight(pos.x, pos.y, pos.z)); float ambient = MapLigh...
C#
K(); kk++) { for (auto jj = 0; jj < fArea.NumJ(); jj++) { for (auto ii = 0; ii < fArea.NumI(); ii++) { // Calculate area for face by taking 1/2 of the cross product between // opposite diagonals // vectors from opposite corners of face auto xac = coords_(ii, jj, kk + 1) - coord...
C++
G_LED_OFF); // Disbale amoled power disableBLDO1(); disableALDO3(); // Don't turn off ALDO1 // disableALDO1(); // Keep touch reset to HIGH digitalWrite(boards->touch->rst, HIGH); gpio_hold_en((gpio_num_t )boards->touch->r...
C++
main // ======================================================================================== /// Start `pingrs`. /// /// Handle threads and respond to SIGINT signals to print final ping statistics. fn main() { /**************************** check loops synchronization ...
Rust
%rax, %r12 movq 0x88(%rsp), %r13 movq 0x28(%rbp), %rax cmoveq %rax, %r13 movq 0x90(%rsp), %r14 movq 0x30(%rbp), %rax cmoveq %rax, %r14 movq 0x98(%rsp), %r15 movq 0x38(%rbp), %rax cmoveq %rax, %r15 movq %r8, (%rdi) ...
Assembly
lock_params.sizes); // Explicitly use coefficient assignment to evaluate slice expression. using SliceAssign = TensorAssignOp<decltype(slice), const decltype(s_expr)>; using SliceExecutor = TensorExecutor<const SliceAssign, Device, false, internal::TiledEvaluation::Off>; ...
C++
"zzOLD[ph]", [46337] = "스타츠의 낚싯대", [46338] = "몬스터 - Mace2H, Draenei A02 Gold (Frost, Shaman)", [46339] = "미미론의 연발총", [46340] = "견고한 손보호대", [46341] = "주문술사의 외투", [46342] = "골렘심장 장궁", [46343] = "보호령의 열정", [46344] = "얼음절단 어깨덧옷", [46345] = "정의로운 개혁의 팔보호구", [46346] = "불안정한 희생물의 장화", [46347] = "잠재한 섬광의 망토", [46348] = "주문식: 무...
Lua
; line-height: 1; > a { color: $gray-pf; font-weight: $btn-font-weight; &:before { content: "\f107"; display: inline-block; font-family: $icon-font-name-fa; font-size: 13px; margin-right: 5px; text-align: center; vertical-align: 0; ...
CSS
Bool js_cocos2dx_CCRepeatForever_ctor(JSContext *cx, uint32_t argc, jsval *vp) { JSObject *obj = JS_THIS_OBJECT(cx, vp); cocos2d::CCRepeatForever *nobj = new cocos2d::CCRepeatForever(); js_proxy_t* p = jsb_new_proxy(nobj, obj); nobj->autorelease(); JS_AddNamedObjectRoot(cx, &p->obj, "cocos2d::CCRepeatF...
C++
x14] ldr r0, [sp, #0x164] str r0, [r4, #0x20] b _022E2474 _022E0484: mov r0, #6 b _022E2478 _022E048C: ; 0x022E048C ldr r0, [r4, #0x2c] cmp r0, #0 moveq r0, #0 beq _022E2478 add r0, r4, #0x24 add r5, r4, #0x14 ldmia r0, {r0, r1, r2, r3} stmia r5, {r0, r1, r2, r3} mov r0, #0 str r0, [r4, #0x2c] b _022E24...
Assembly
]) // CHECK-RV64-NEXT: ret <vscale x 1 x i64> [[TMP0]] // vint64m1_t test_vredmin_vs_i64m1_i64m1_tum(vbool64_t mask, vint64m1_t maskedoff, vint64m1_t vector, vint64m1_t scalar, size_t vl) { return __riscv_vredmin_tum(mask, maskedoff, vector, scalar, vl); } // CHECK-RV64-LABEL: define dso_local <vscale x 1 x i64> ...
C
/2000/svg\", d1) : document.createElement(d1, p3.is && p3), o7 = null, c2 = !1;\n }\n if (null === d1) y2 === p3 || c2 && l16.data === p3 || (l16.data = p3);\n else {\n if (o7 = o7 && $fb96b826c0c5f37a$var$n.call(l16.childNodes), a2 = (y2 = i10.props || $fb96b826c0c5f37a$var$e).dangerouslySetInnerHTML, ...
JavaScript
storeDestroyShard destroy shard by key DagstoreDestroyShard(ctx context.Context, key string) error //perm:admin MarkDealsAsPacking(ctx context.Context, miner address.Address, deals []abi.DealID) error //perm:write UpdateDealOnPacking(ctx context.Context, mine...
Go
GetTextDocumentIdentifier(DocumentDiagnosticParams diagnosticsParams) => diagnosticsParams.TextDocument; protected override DocumentDiagnosticPartialReport CreateReport(TextDocumentIdentifier identifier, Roslyn.LanguageServer.Protocol.Diagnostic[] diagnostics, string resultId) => new(new RelatedFu...
C#
Module?t:{default:t}};Object.defineProperty(f1,"__esModule",{value:!0});f1.Metadata=void 0;var Q4t=EK(),HFe=k4t(Ie("util")),u1=oy(),Kb=kA(),T4t=UK(),R4t=jK(),F4t=WK(),N4t=zK(),O4t=eJ(),tJ=Af(),rJ=class t{constructor(e,r,s){this.signed=e,this.signatures=r||{},this.unrecognizedFields=s||{}}sign(e,r=!0){let s=Buffer.from(...
JavaScript
rZoomWindow"; public const string SketcherDynamicZooming = "SketcherDynamicZooming"; public const string SketcherDynamicPanning = "SketcherDynamicPanning"; public const string SketcherGlobalPanning = "SketcherGlobalPanning"; public const string SketcherGridLines = "SketcherGridLines"; ...
C#
vd %f0, %f26 fmovd %f0, %f28 fmovd %f0, %f30 fmovd %f0, %f32 fmovd %f0, %f34 fmovd %f0, %f36 fmovd %f0, %f38 fmovd %f0, %f40 fmovd %f0, %f42 fmovd %f0, %f44 fmovd %f0, %f46 fmovd %f0, %f48 fmovd %f0, %f50 fmovd %f0, %f52 fmovd %f0, %f54 fmovd %f0, %f56 fmovd %f0, %f58 fmovd %f0, %f60 fmovd %f0, %f62 ! Signature for ex...
Assembly
Test void findSchedulesOfAttendee() { createAttendeeSchedule(attendee); RestAssured.given().log().all() .pathParam("uuid", meeting.getUuid()) .queryParam("attendeeName", attendee.name()) .when().get("/api/v1/meetings/{uuid}/schedules") ...
Java
.SpacePath = spaceCore.Path return infraProviderConfigEntity, nil } func (i infraProviderConfigStore) mapToInfraProviderConfigs( ctx context.Context, in []*infraProviderConfig, ) ([]*types.InfraProviderConfig, error) { var err error res := make([]*types.InfraProviderConfig, len(in)) for index := range in { res...
Go
obal_hint_dblink.reset(); global_hint_dblink.merge_query_timeout_hint(global_hint.query_timeout_); global_hint_dblink.merge_read_consistency_hint(global_hint.read_consistency_, global_hint.frozen_version_); global_hint_dblink.merge_log_level_hint(global_hint.log_level_); global_hint_dblink.force_trace_l...
C++
); accessLogMsgObj.setServerName(serverAndInstance[0].trim()); accessLogMsgObj.setInstance(serverAndInstance[1].trim()); accessLogMsgObj.setServerAndInstance(serverAndInstance[0].trim() + "_" + serverAndInstance[1].trim()); accessLogMsgObj.setHostName(splittedMsg[12].split(" " )[0].trim()); accessLo...
Java
: 0.2em; padding-right: 0.2em; } .vfb-builder { font-family: "Source Sans Pro", sans-serif; -webkit-font-smoothing: antialiased; } .vfb-builder * { -webkit-font-smoothing: antialiased; } .vfb-bottom-left-tools-container { @apply absolute bottom-4 -right-4 transform translate-x-full flex flex-col; } .vfb-bo...
CSS
case "lob": // led on-board 板载 5*5led ledOnBoard(arg); break; case "msc":// music playMusic(arg); break; default: // 未知的消息 break; } } let toneStartTime = 0; let tonebeat = 125; let current...
Typescript
} }package com.example.motionlayout import android.os.Bundle import android.transition.TransitionManager import android.view.View import android.widget.ImageView import android.widget.RatingBar import android.widget.TextView import androidx.appcompat.app.AppCompatActivity import androidx.constraintlayout.widget.Cons...
Kotlin
elif exposed_cases == 0: # relative risk is 0/nonzero rr = 0.0 elif control_cases == 0: # relative risk is nonzero/0. rr = np.inf else: p1 = exposed_cases / exposed_total p2 = control_cases / control_total rr = p1 / p2 return RelativeRiskResult(rel...
Python
* @see #waitForTestedEvent() */ public class clrallbreakp001 { // exit status constants static final int JCK_STATUS_BASE = 95; static final int PASSED = 0; static final int FAILED = 2; // package and classes names constants static final String PACKAGE_NAME = "nsk.jdwp.EventRequest.ClearAllBr...
Java
2; // 将Barcode的第4位数字压缩后的高2bit存入 v |= (((UInt32)text[3] - 0x30) & 0x0C) >> 2; byte[] compressed_1 = BitConverter.GetBytes(v); // 处理压缩后的低4字节 { UInt32 v1 = 0; v1 = ((UInt32)text[3] - 0x30) & 0x03; // 压缩第4位数字压缩后的低2bit存入 ...
C#
3, #64]! 4176e4: a9c4342c ldp x12, x13, [x1, #64]! 4176e8: f1010042 subs x2, x2, #0x40 4176ec: 54fffee8 b.hi 4176c8 <__memcpy_thunderx2+0x178> // b.pmore 4176f0: a97c0881 ldp x1, x2, [x4, #-64] 4176f4: a9011c66 stp x6, x7, [x3, #16] 4176f8: a97d1c86 ldp x6, x7, [x4, #-48] 4176fc: a9022468 stp x8, ...
Assembly
c >> 8); r[1] = (c & 0xff); return 2; } return RET_ILUNI; } return RET_TOOSMALL; } /* * Decomposition of JOHAB Hangul in one to three Johab Jamo elements. */ /* Decompose wc into r[0..2], and return the number of resulting Jamo elements. Return RET_ILUNI if decomposition is not possible. */ st...
C
; u8 flags; struct kref refcount; struct rcu_head rcu; }; /** * enum batadv_tvlv_handler_flags - tvlv handler flags definitions * @BATADV_TVLV_HANDLER_OGM_CIFNOTFND: tvlv ogm processing function will call * this handler even if its type was not found (with no data) * @BATADV_TVLV_HANDLER_OGM_CALLED: interval t...
C
boolean; /** * Configure if the service worker should be registered by the plugin. * Set to `false` if you want to register the service worker manually. * * @default true * * @see [Registering the service worker manually](https://github.com/shadowwalker/next-pwa/blob/master/register....
Typescript
CÁI MÉO GÌ!?{}'", }, cry_madness_2 = { "Tôi đã bỏ ra hàng tuần mất ngủ và nốc nhiều", "{C:green}Mountain Dew{} vl ra để đảm bảo rằng thiết lập này là", "{C:cry_ascendant}CỰC KÌ CÂN BẰNG{}, chỉ dành cho bạn thôi!", }, cry_madness_3 = { "Tất cả mọi thứ đều được mở khoá, vì thế hoàn toàn", ...
Lua
@ File generated by m4a2s Wave-Module .section .rodata .global wave_030 .align 2 wave_030: .hword 0x0000, 0x4000 .word 0xD48986 @ Mid-C pitch ~13602.380859375 Hz .word 3824 @ Loop Start .word 4189 @ Loop End .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 @ #----------------X---------------# .byte 0x0...
Assembly
r, the generated /// source code must fall back to having a nullable type. /// Consider adding a "default:" property in the specification file to hide this note. /// String? kind; /// /// Please note: This property should have been non-nullable! Since the specification file /// does not include a default...
Dart
/// <summary> /// Indicates that the exception must not leave the system and can be logged /// </summary> Protected, /// <summary> /// Indicates that the exception must not leave the system and can be logged /// </summary> Private }
C#
public void testImportConfigurations() throws IOException { Configuration temp = fac.createConfiguration(); temp.setName("temp"); temp.setTemplate(true); temp = dao.save(temp); tester.startPage(BulkOperationsPage.class); // WicketHierarchyPrinter.print(tester.getLast...
Java
for `assignment`. fn build_assumptions<A: StateAtom>( sat_state: &mut SolverState<A>, assignment: Vec<(A, bool)>, ) -> Vec<Lit> { let mut assumptions = Vec::with_capacity(assignment.len()); for (atom, value) in assignment { let (lit, fresh) = sat_state.ensure_var(VariableMeaning::Atom(atom)); ...
Rust
r = stream.generator() requests = ( speech.StreamingRecognizeRequest(audio_content=content) for content in audio_generator ) responses = speech_client.streaming_recognize( streaming_config, requests, timeout=300 # 5 minutes ti...
Python
`addItem()` использует метод массива `unshift()` чтобы добавить новый элемент в начало массива и, соответственно, начало списка. Вы можете использовать метод `push()`, который добавит новый элемент в конец массива и, соответственно, конец списка. Для того, чтобы использовать метод `addItem()`, отредактируйте HTML в ша...
Markdown
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "Ieee1609Dot2BaseTypes" * found in "build.asn1/ieee/IEEE1609dot2BaseTypes.asn" * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security2_ -R` */ #include "UnCountryId.h" int Vanetza_Security2_UnCountryId_...
C
gn<T> for Overflowing<T> { fn sub_assign(&mut self, rhs: T) { *self = *self - rhs } } impl<T: IsInteger> SubAssign<&T> for Overflowing<T> { fn sub_assign(&mut self, rhs: &T) { *self = *self - rhs } } impl<T: IsSigned> Neg for Overflowing<T> { type Output = Self; fn neg(self) -> Self::Output { self.apply(...
Rust
Chunk<S, I> where S: Storage, I: Indexer, { fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> { Some(self.start_time.cmp(&other.start_time)) } } impl<S, I> Ord for Chunk<S, I> where S: Storage, I: Indexer, { fn cmp(&self, other: &Self) -> std::cmp::Ordering { ...
Rust
full_url", "logo_icon_url"], help_text: i18n.t("agency.pdf_logo_option_help"), handleWatchedInputs: value => { const { logo_full: logoFull, logo_icon: logoIcon, logo_full_url: logoFullUrl, logo_icon_url: logoIconUrl } = ...
JavaScript
fee8d7; background-color: #fef1e3; } .sui-msg.msg-notice { color: #ee9f28; } .sui-msg.msg-notice > .msg-con { border: 1px solid #faf1d7; background-color: #fffff1; } .sui-msg.msg-tips { color: #ee9f28; } .sui-msg.msg-tips > .msg-con { border: 1px solid #faf1d7; background-color: #fffff1; } .sui-msg.msg-in...
CSS
return { misc = { dictionary = { -- ヘッダー -- tabs_mouse_page_1 = '機能', tabs_mouse_page_2 = '変更', tabs_gamepad = 'ゲームパッド', tabs_help = 'ヘルプ', -- マウスページ1(機能) -- right_mouse_button_click = '右クリック:カード選択解除', right_mou...
Lua
J("Benin", "BEN", 204, Assignment.OFFICIALLY_ASSIGNED), BL("Saint Barth\u00e9lemy", "BLM", 652, Assignment.OFFICIALLY_ASSIGNED), BM("Bermuda", "BMU", 60, Assignment.OFFICIALLY_ASSIGNED), BN("Brunei Darussalam", "BRN", 96, Assignment.OFFICIALLY_ASSIGNED), BO("Bolivia, Plurinational State of", "BOL", 68, ...
Java
sh_deg = gs.sh_deg; happly::PLYData plyIn(fpath.string()); if (!plyIn.hasElement("vertex")) { std::cerr << "No vertex element in the ply file" << std::endl; return false; } // x,y,z // f_dc_0,1,2 // f_rest 0,1,2... 45 // opacity // scale_0,1,2 // rotation_0,1,...
C++
ifiers.UsingDescendingModulusChain); Assert.IsTrue(context.FirstContextData.Qualifiers.UsingNTT); Assert.IsTrue(context.UsingKeyswitching); } [TestMethod] public void BFVParameterErrorTest() { SEALContext context = GlobalContext.BFVContext; ...
C#
AssertPreviewCount("e2f85c04-d992-41dd-8e0b-1def88f2c834", 4); var colorList = GetFlattenedPreviewValues("e2f85c04-d992-41dd-8e0b-1def88f2c834"); foreach (var ele in colorList) { Assert.IsNotNull(ele);...
C#
Int() } ) val rebuildDiffOnDemandVerticle = WorkerOnDemandVerticle( workerOnDemandType = workerOnDemandType, buildType = REBUILD_DIFF.toString(), delayBetweenJob = longProperty("tock_build_worker_on_demand_delay_in_minutes_between_job_rebuild_diff", 60), timeFrame = listProperty(...
Kotlin
64 = 700000000 // Minimum the gas limit may ever be. GenesisGasLimit uint64 = 800000000 // Gas limit of the Genesis block. MaximumExtraDataSize uint64 = 32 // Maximum size extra data may be after Genesis. ExpByteGas uint64 = 10 // Times ceil(log256(exponent)) for the EXP instruction. SloadGa...
Go
if (Random.Float() < talentChance) { Talent.onPotionUsed(curUser, curUser.pos, talentFactor); } } } }); } }); } } @Override public String prompt() { return Messages.get(PotionOfDragonsBreath.class, "prompt"); } }; } /* * Pixel Dun...
Java
# CREATE IMAGE import cv2 as cv import numpy as np path = "/Users/krtdnc/Desktop/Miuul/OpenCV/" img = cv.imread(path + "rocket.jpeg") cv.namedWindow("opencv_test", cv.WINDOW_AUTOSIZE) cv.imshow("opencv_test", img) cv.waitKey(1) m1 = np.copy(img) m2 = img type(img) img[100:200, 200:300, :] = 255 cv.imshow("m2", ...
Python
/* The goal is to have both compile tests which verify the desired instruction generation and to functionally test the builtins for correctness. This is done in separate test files, vsx-vector-6-func-cmp-all.c and vsx-vector-6-func-cmp-all-run.c. The vsx-vector-6-func-cmp-all.c test file only generates t...
C
.25 0 0 0 .48-.098.25.25 0 0 0-.05-.149l.016-.017a.25.25 0 0 0 .31-.005.25.25 0 0 0-.063-.424l.006-.022z" clip-rule="evenodd"></path><path fill="#000" fill-rule="evenodd" d="M16.3 6.175a.3.3 0 0 1-.096-.019.3.3 0 0 1-.081-.054.3.3 0 0 1-.054-.081.26.26 0 0 1 0-.192.26.26 0 0 1 .092-.112.3.3 0 0 1 .09-.037.26.26 0 0 1 ....
JavaScript