content
stringlengths
2
6.21k
label
stringclasses
16 values
ion, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n return projection * view * m...
JavaScript
/************************************************************************* * arch/z16/src/z16f/z16f_lowuart.asm * Z16F UART management * * Copyright (C) 2008, 2012, 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or ...
Assembly
29757b6c6f90f05ca6c1eed169">LOS_OK</a>&nbsp;</td> <td>The event is successfully written. </td> </tr> </tbody> </table> </dd> </dl> <dl class="user" compact=""> <dt> <b>Dependency:</b> </dt> ...
HTML
r, UnitaryBuilder}; /// Apply the QFFT circuit to a given Register using the builder. pub fn qfft<B: UnitaryBuilder>(builder: &mut B, r: Register) -> Register { let mut rs = builder.split_all(r); rs.reverse(); let rs = rec_qfft(builder, vec![], rs); builder.merge(rs).unwrap() } fn rec_qfft<B: UnitaryB...
Rust
top, 3); expect(rrectMin.right, 5); expect(rrectMin.bottom, 7); expect(rrectMin.trRadius, equals(const Radius.circular(0))); expect(rrectMin.blRadius, equals(const Radius.circular(0))); final RRect rrectMax = RRect.fromLTRBR(1, 3, 5, 7, const Radius.circular(100).clampValues(maximumX: 10, max...
Dart
POST_NOTIFICATIONS) val notificationRationale = shouldShowRequestPermissionRationale(Manifest.permission.POST_NOTIFICATIONS) if (notificationPermission == PackageManager.PERMISSION_GRANTED) { // 既に通知許可済み MyLog.d("PreviewActivity: POST_NOTIFICATION: 通知許可済み") // TODO 続行すること } else { ...
Kotlin
], "tokens": [ "1", ",", "b" ], "opcodes": [ 203, 72 ], "isPseudo": false, "isAlias": false, "clr": { "opcodes": "CB48", "undocumented": false, "flags": "-0 1+ ", "byte_count": 2, "with_jump_clock_count": 8, "without_jump_clock_count": 8, "description": "...
Typescript
Save the binary data to the selected path await writeBinaryFile(savePath, binaryData); alert(`Saved: ${savePath}`); console.log("Image saved successfully to:", savePath); } catch (e) { console.error("Error saving the image:", e); } }); function sleep(ms) { return new Promise((resolve) => setTim...
JavaScript
| | `-- example.txt | |-- image_list.txt | `-- style_images | |-- 1.jpg | `-- 2.jpg |-- fonts // Font files. | |-- ch_standard.ttf | |-- en_standard.ttf | `-- ko_standard.ttf |-- tools // Program entrance. | |-- __init__.py | |-- synth_dataset.py...
Markdown
Attribution-NonCommercial-ShareAlike 3.0 Unported License" override val licenseUrl: String get() = "https://www.shadertoy.com/terms" override val speedModifier: Float get() = 0.3f override val sksl = """ uniform float uTime; uniform vec3 uResolution; vec4 main( vec2 fragCoord ) { vec...
Kotlin
d_text("## Demo 2: Agent Using File Search") add_text("") add_text("**Scenario:** Agent needs to find relevant files") add_text("") add_text("**Agent Request:** 'Find all Lua files in the project'") add_text("") -- Simulate agent calling agent_search_files local search_response = api.call_tool("agent_search_fi...
Lua
pmd_clk_mux_ck", "trace_pmd_clk_mux_ck"), DT_CLK(NULL, "stm_clk_div_ck", "stm_clk_div_ck"), DT_CLK(NULL, "trace_clk_div_ck", "trace_clk_div_ck"), DT_CLK(NULL, "clkout2_ck", "clkout2_ck"), DT_CLK("48300200.ehrpwm", "tbclk", "ehrpwm0_tbclk"), DT_CLK("48302200.ehrpwm", "tbclk", "ehrpwm1_tbclk"), DT_CLK("48304200.ehr...
C
Use defined TLB */ tlbre r0,r1,0x0002 /* Read contents */ ori r0,r0,0x0c00 /* Or in the inhibit, write through bit */ tlbwe r0,r1,0x0002 /* Save it out */ sync isync #endif /* defined(CONFIG_440) */ mr r1, r3 /* Set new stack pointer */ mr r9, r4 /* Save copy of Init Data pointer */ mr r10, r5 /* Save ...
Assembly
bout.printfile(GFILES_NOEXT); gfiles(); } void SystemInfo() { WWIVVersion(); if (bout.printfile(LOGON_NOEXT)) { // Only display the pause if the file is not empty and contains information bout.pausescr(); } if (bout.printfile(SYSTEM_NOEXT)) { bout.pausescr(); } } void JumpSubConf() { if (o...
C++
} } } } // MOTS altered int jkGuiMultiTally_ShowTeamScores(int a1) { int v3; // ecx int v7; // esi jkGuiElement* pElementIter; // esi wchar_t *v9; // ebx jkHudTeamScore *v10; // edi wchar_t *v11; // eax int v12; // esi int v13; // eax int v14; // edi wchar_t *v15...
C
#include "x86.inc" SECTION_TEXT GLOBAL_HIDDEN_FN_EXT blake2b_blocks_avx, 4, 16 pushq %rbp movq %rsp, %rbp andq $-64, %rsp pushq %r12 pushq %r13 pushq %r14 pushq %r15 pushq %rbx subq $344, %rsp LOAD_VAR_PIC 48+blake2b_constants, %r9 LOAD_VAR_PIC blake2b_constants_ssse3, %rax leaq 16(%rax), %r8 vmovdqu 80(%rdi), %xmm0 ...
Assembly
lsls r5, r3, #30 8009432: d506 bpl.n 8009442 <APP_init+0x282> 8009434: 4b49 ldr r3, [pc, #292] ; (800955c <APP_init+0x39c>) 8009436: 681b ldr r3, [r3, #0] 8009438: 2b01 cmp r3, #1 800943a: d802 bhi.n 8009442 <APP_init+0x282> 800943c: 484c ldr r0, [pc, #304] ; (8009570 <APP_init...
Assembly
word 0xbb7c2401 ! 3326: MOVR_I movre %r16, 0x1, %r29 .word 0xbb508000 ! 3328: RDPR_TSTATE <illegal instruction> .word 0xb7a40840 ! 3333: FADDd faddd %f16, %f0, %f58 .word 0xbfa84820 ! 3341: FMOVE fmovs %fcc1, %f0, %f31 hwintr_1_141: !$EV trig_pc_d(1,expr(@VA(.MAIN.hwintr_1_141), 16, 16)) -> intp(1, 0, 16) .word...
Assembly
Float.degrees: Float get() = this * RAD_TO_DEG.toFloat() public inline val Double.radians: Double get() = this * DEG_TO_RAD public inline val Double.degrees: Double get() = this * RAD_TO_DEG public infix fun Int.atMost(max: Int): Int = coerceAtMost(max) public infix fun Long.atMost(max: Long): Long = coerceAtMost(...
Kotlin
is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ .toggle_node_modules-\@docusaurus-theme-classic-src-theme-Toggle- { align-items: center; display: flex; height: 10px; justify-content: center; position: relative; width: 10px; } .toggle_node_m...
CSS
t74(bx_dvqgnepb: w271pen2ijj, t84_z8pk61b, x3yrhay3yiy: mz14ssu_n4n, s9l9qpvmdnb: qofmxmy9ee1, n2fzs84v4og, afi3_mo_ji1: r48c55hwusq, f8e8s9vtp4l, n4oagd3ta9u: inu0htyh1tl, en492biq6be): bj2jpn43qnl = '' '# hatchet_canister_header -> machines_battleships_unions' kht2fmcplbm.dar8d2pd9x1: False = erixmrv27ln ...
Python
9-7.585,0.29S140.828,475.566,142.349,474.378z"/> <path fill="#2D7E66" d="M152.168,475.686c0,1.93-2.16,3.494-4.825,3.494c-2.665,0-4.825-1.564-4.825-3.494 c0-1.93,4.825-6.156,4.825-6.156S152.168,473.757,152.168,475.686z"/> <g> <path fill="#4B9469" d="M147.816,469.96c0.373,0.733,2.856,5.726,2.207,7.39c-0...
HTML
甲。 <br><b>咒文:</b>没有咒文。 <br><b>理智值损失:</b>直视道罗斯的裂片不丧失理智;直视裂片眼瞳并目击其中那无垠宇宙的人将会丧失 0/1D6 点理智值。</p> </body> </html><!doctype html public "-//w3c//dtd html 4.01 transitional//en"> <html> <head> <title>典型实体化身:黑血</title> <meta name="generator" content="winchm"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> ...
HTML
Ordering) -> bool { ordering == Ordering::Equal } } pub struct CmpOpNullEQ; impl CmpOp for CmpOpNullEQ { #[inline] fn compare_null() -> Option<i64> { Some(1) } #[inline] fn compare_partial_null() -> Option<i64> { Some(0) } #[inline] fn compare_order(order...
Rust
AL_P1 = "부상을 입었습니다! 전투 중이 아닐 때 |cFF00FFFF만회|r로 생명력을 회복해야 합니다."; NPEV2_SELF_HEAL_P2 = "시전 중에는 가만히 있어야 합니다.\n\n회복되는 생명력을 주시하십시오."; NPEV2_SELL_GREY_ITEMS = "아이템을 |cFF00FFFF오른쪽 클릭|r하여 상인에게 판매하십시오"; NPEV2_SELL_ITEMS_TO_VENDOR = "상인에게 아이템을 판매하려면 |cFF00FFFF오른쪽 클릭|r하십시오."; NPEV2_SHAMAN_BUILDER = "|cFF00FFFF%s|r 키를 눌러 먼 거리에서 %s...
Lua
x6c] cmp r0, #0xff bne _0223387C mov r2, #0x26 str r2, [r4, #0xc] add r0, r4, #0 mov r1, #1 add r2, #0xf3 bl ov11_0223A434 b _02233888 _0223387C: ldr r2, _02233898 ; =0x00003044 add r0, r4, #0 ldr r2, [r4, r2] mov r1, #0 bl ov11_0223A434 _02233888: mov r0, #0 add sp, #8 pop {r3, r4, r5, pc} nop _02233...
Assembly
: DataFrame = spark.read.format("tfrecords").schema(videoSchema).option("recordType", "Example").load("file:///tmp/youtube-8m-videos/*.tfrecord") videoDf.show() videoDf.write.format("tfrecords").option("recordType", "Example").save("youtube-8m-video.tfrecord") val importedDf1: DataFrame = spark.read.format("tfrecords")...
Markdown
iv id="t3v_212" class="t s1_212">ÉÁ</div> <div id="t3w_212" class="t s1_212"><bdo dir='rtl'>ا</bdo></div> <div id="t3x_212" class="t s1_212">È</div> <div id="t3y_212" class="t s1_212"><bdo dir='rtl'>ی× ه</bdo></div> <div id="t3z_212" class="t s1_212">Á ø</div> <div id="t40_212" class="t s1_212"><bdo dir='rtl'>و</bdo></...
HTML
color:rgba(51,51,51,.9)}.vjs-default-skin .vjs-slider:focus{-webkit-box-shadow:0 0 2em #fff;-moz-box-shadow:0 0 2em #fff;box-shadow:0 0 2em #fff}.vjs-default-skin .vjs-slider-handle{position:absolute;left:0;top:0}.vjs-default-skin .vjs-slider-handle:before{content:"\e009";font-family:VideoJS;font-size:1em;line-height:1...
CSS
rc); cStateOutLen--; } output.writeByte(cStateOutCh); blockCrc = BZip2.updateCrc(cStateOutCh, blockCrc); } // Only caused by corrupt data stream? if (cNBlockUsed > sSaveNBlockPP) { return -1; //throw ArchiveException('Data error');...
Dart
4、分果实中的问题:土改末期由于结束较潦草,果实处理有三种情况:一种是因时间不及果实没分下去,仍封存在农会里。一种是按缺啥补啥满足了贫雇需要,照顾了中农, </p> <p> 群众一般满意。一种是虽分了果实但也出了问题,印江有的村采取了抽签贫雇农站队、果实站队等,搞得内部闹意见,影响了团结,复兴乡、洋溪乡有的群众闹到区里。还有的县个别行(政)村将果实抢了,致农民内部闹出很大意见。 </p> <p> (四)领导和干部的检查: </p> <p> 四期土改中各级领导及全体干部都是兢兢业业,积极工作,完成了任务,也提高了自己。不过仍有美中不足之处,各级领导上不能坚持重点,从重点取得经验,推动一般是主...
HTML
<mat-datepicker-toggle matIconSuffix [for]="picker" /> <mat-datepicker #picker /> </mat-form-field> } @default { <mat-form-field> <mat-label>Filter by {{ state().key! | uppercase }}</mat-labe...
HTML
(()) } pub mod error; use std::{ collections::HashMap, fs::{read, remove_file}, }; use uuid::Uuid; use xlsxwriter::Workbook; use self::error::ExcelError; /// Excel export util /// /// # Performance test /// ``` /// 100000 rows, 10 columns, 4.332097613s /// 100000 rows, 30 columns, 12.265614828s /// 100000 r...
Rust
_available = false; for (uint32_t i = 0; i < presentModeCount; i++) { if (presentModes[i] == requested_present_mode) { present_mode_available = true; } } // Set the windows present mode if it is available, otherwise FIFO is used (guaranteed supported). if (present_mode_available) { if (window->presentMode...
C++
Zoom: 19, attribution: 'Map data &copy; <a href="http://openweathermap.org">OpenWeatherMap</a>', apiKey:'<insert your api key here>', opacity: 0.5 }, variants: { Clouds: 'clouds', CloudsClassic: 'clouds_cls', Precipitation: 'precipitation', PrecipitationClassic: 'precipitation_cls', ...
HTML
, }, proto::envelope::{DhtMessageType, OriginMac}, version::DhtProtocolVersion, DhtConfig, }; use bytes::Bytes; use chrono::{DateTime, Utc}; use digest::Digest; use futures::{ future, future::BoxFuture, stream::{self, StreamExt}, task::Context, }; use log::*; use rand::rngs::OsRng; use s...
Rust
abled ~ .mbsc-progress-cont .mbsc-slider-handle { background: #5c5c5c; border-color: #5c5c5c; -webkit-box-shadow: 0 0 0 .3125em #303030; box-shadow: 0 0 0 .3125em #303030 } .mbsc-material-dark.mbsc-slider input:disabled ~ .mbsc-progress-cont .mbsc-slider-start .mbsc-slider-handle { border-color: #5c5c5c; backg...
CSS
List<String> referencedColumns, })>[ ( name: 'author', columns: ['authorId'], referencedTable: 'authors', referencedColumns: ['authorId'], ) ], readRow: _$Book._$fromDatabase, ); static Book? _$fromDatabase(RowReader row) { final bookId = row.readI...
Dart
fest.digitalocean.com) به امید روزی که برای هر ریپازیتوری پول ریکوئست فرستادیم یه تیشرتی ماگی پیکسلی چیزی برامون بفرسته. 😂 راستی یادتون نره به دوستاتونم درباره این جشنواره بگید یا لینک این پست رو براشون بفرستید. جامعه اوپن سورس هرچی فعال تر بهتر! 💻 --- layout: post title: با alias سریع‌تر کد بزنید! pdate: 1397-08-0...
Markdown
-- [xml]: UI/TacticFileS.xml return function(args) -- 1 local _ENV = Dora(args) -- 1 local node1 = Node() -- 2 node1.size = Size(356,458) -- 2 local sprite1 = Sprite("ai.clip|ai_small_1") -- 3 sprite1.x = node1.width*0.5 -- 3 sprite1.y = node1.height*0.5 + 100 -- 3 sprite1.visible = false -- 3 node1:addChild(sprite1) -...
Lua
c *resourceQuotas) Update(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error) { result = &api.ResourceQuota{} err = c.r.Put().Namespace(c.ns).Resource("resourceQuotas").Name(resourceQuota.Name).Body(resourceQuota).Do().Into(result) return } // Status takes the representation of a resourceQuota ...
Go
s1) /* 10BE78 80164A08 26100001 */ addiu $s0, $s0, 1 /* 10BE7C 80164A0C 26310010 */ addiu $s1, $s1, 0x10 /* 10BE80 80164A10 1613FFFA */ bne $s0, $s3, .L801649FC_ovl5 /* 10BE84 80164A14 26520001 */ addiu $s2, $s2, 1 /* 10BE88 80164A18 8FBF0024 */ lw $ra, 0x24($sp) /* 10BE8C 80164A1C 8FB00014 */ lw $s0, 0x...
Assembly
"spawns",10000); end end function event_trade(e) local item_lib = require("items"); if(item_lib.check_turn_in(e.trade, {item1 = 12376})) then e.self:Say("Good Work. Unfortunately, I must investigate other matters in the name of Ak'anon. Here. You deliver the tin box to Lord Jenork of the Gem Choppers. He shal...
Lua
ging) { private lateinit var task: FetchFahrplanTask private lateinit var onFetchScheduleResult: (fetchScheduleResult: FetchScheduleResult) -> Unit fun fetch(okHttpClient: OkHttpClient, url: String, httpHeader: HttpHeader) { task = FetchFahrplanTask(okHttpClient, logging, onFetchScheduleResult) ...
Kotlin
TED | 美剧 | 真人秀/科教 | 8.1 | 1984-02-23 周四 | TED | 其他 | 英语 | | | A 爆炸头田中 | 日剧 | 喜剧/生活 | 8.1 | 2019-07-05 周五 | Afro Tanaka | WOWOW | 日语 | | | A 东京♥大饭店~平古祥平摇摆的心~ | 日剧 | 生活/爱情 | 8.1 | 2019-10-20 周日 | Guragura Maison Tokyo Hirako Shohei no Yureru Omoi | 其他 | 日语 | | | A 无限火车 | 美剧 | 动画 | 8.1 | 2019-07-23 周二 | Infinity Tr...
Markdown
// <summary> /// Compares two values using the TargetType. /// </summary> /// <param name="compare">Our main value in our SwitchPresenter.</param> /// <param name="value">The value from the case to compare to.</param> /// <returns>true if the two values are equal</returns> internal static bool C...
C#
== "ssh+git" } var _ Fetcher = &gitFetcher{} package vfs_test import ( "errors" "io" "os" "testing" "time" "github.com/cozy/cozy-stack/model/vfs" "github.com/cozy/cozy-stack/pkg/config/config" "github.com/cozy/cozy-stack/pkg/consts" "github.com/cozy/cozy-stack/tests/testutils" "github.com/stretchr/testify...
Go
i r5, 1 /* 80040438 0003D378 38 C0 00 02 */ li r6, 2 /* 8004043C 0003D37C 38 E0 00 03 */ li r7, 3 /* 80040440 0003D380 48 0A 84 8D */ bl GXSetTevSwapModeTable /* 80040444 0003D384 3B FF 00 01 */ addi r31, r31, 1 /* 80040448 0003D388 2C 1F 00 04 */ cmpwi r31, 4 /* 8004044C 0003D38C 41 80 FF E0 */ blt .L_8004042C /...
Assembly
f several tiny needles is used to add semi-permanent pigment to the skin, and is used on eyebrows to create, enhance or reshape their appearance in terms of both shape and colour.', ko: '반영구 눈썹 화장은 작은 바늘로 만들어진 작은 도구로 피부에 염료를 넣어 원하는 모양과 색상으로 그려 눈썹 외관을 개선하거나 모양을 변경하기 위해사용됩니다. 일반적으로 반영구 화장은 눈썹문신이라고도 하며 최소 1년 이상 유지...
Typescript
#include "compiler.h" #include "bpf_enforcer.h" char _license[] __attribute__((section("license"), used)) = "Dual BSD/GPL"; FUNC_INLINE int do_enforcer(void *ctx) { __u64 id = get_current_pid_tgid(); struct enforcer_data *data; data = map_lookup_elem(&enforcer_data, &id); if (!data) return 0; if (data->signa...
C
bir başkasına, belki kendimize, belki de artık hiç dönemeyeceğimiz karanlık bilinmez bir yere. </p><br/> <p>Öyle ya da böyle birbirimizden gidiyoruz işte.</p><br/> <p>Geride ıslak, yapışkan, arsız izler bırakarak. </p><br/> <p>Taşıyacak kişinin etine rastgele işlediğimiz, kendisinden başka kimsenin göremeyeceği şeffaf...
Markdown
0, input.reduce((prevY: PocketY, valY, y) => { prevY.set(y, valY.reduce((prevX: PocketX, valX, x) => { prevX.set(x, valX); return prevX; }, new Map())); return prevY; }, new Map())); let nextRound: PocketZ = new Map(); let active = 0; let minZ = Math.min(...
Typescript
<P[K]['out']>((resolve, reject) => { let worker = new Worker(script) worker.onerror = reject worker.onmessage = event => resolve(event.data) worker.postMessage({command, args}) }) } let runWithMatrixProtocol = createProtocol<MatrixProtocol>('/Users/atabata/src/github.com/atsu0127/...
Typescript
/// <para/> /// This icon supports the following styles: Light (Pro), Regular (Pro), Solid, Duotone (Pro), Thin (Pro) /// <para/> /// Introduced in '6.1.0', Last Modified in '6.1.0'. /// <para/> /// See https://fontawesome.com/icons/money-bill-trend-up /// </summary> public const string MoneyBillTrendUp = "\ue...
C#
# Modified version of code from here: # https://github.com/tsuvihatu/openfermion-qiskit/blob/main/openfermionqiskit/qiskit_covertor.py from openfermion.ops import QubitOperator from qiskit.quantum_info import SparsePauliOp def qubitop_to_pauliop(qubit_operator): """Convert an openfermion QubitOperator to a Qisk...
Python
/*!The Treasure Box Library * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
C
libblecontroller/hci_util.o: file format elf32-littleriscv Disassembly of section .text.hci_util_read_array_size: 00000000 <hci_util_read_array_size>: 0: 411c lw a5,0(a0) 2: 4625 li a2,9 4: 45a9 li a1,10 6: 00178713 addi a4,a5,1 a: c118 ...
Assembly
RestoreGame *savefile) { head.Restore(savefile); } /* ================ idAFEntity_WithAttachedHead::SetupHead ================ */ void idAFEntity_WithAttachedHead::SetupHead(void) { idAFAttachment *headEnt; idStr jointName; const char *headModel; jointHandle_t joint; idVec3 origin; idMat3 axis; h...
C++
"The number of concurrent list requests in a shard running", }) metricShardsBatchReplaceDurationSeconds = promauto.NewHistogram(prometheus.HistogramOpts{ Name: "zoekt_shards_batch_replace_duration_seconds", Help: "The time it takes to replace a batch of Searchers.", Buckets: []float64{0.01, 0.02, 0.05, 0....
Go
speaker-controls-pace .label,\n\t\t\t\t.speaker-controls-notes .label {\n\t\t\t\t\ttext-transform: uppercase;\n\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\tfont-size: 0.66em;\n\t\t\t\t\tcolor: #666;\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time, .speaker-controls-pace {\n\t\t\t\t\tborder-bottom: 1px s...
HTML
}), ) require.NoError(t, err) } package tron_test import ( "testing" "github.com/fbsobreira/gotron-sdk/pkg/address" "github.com/stretchr/testify/require" chain_selectors "github.com/smartcontractkit/chain-selectors" cldf_tron "github.com/smartcontractkit/chainlink-deployments-framework/chain/tron" cldf "gi...
Go
balance: 2 ** 52, sequence: 0 } } try { module.onOutput({ amount: 2 ** 52, address: 'foo' }, state, {}) t.fail() } catch (err) { t.equals(err.message, 'Error adding to account balance') } t.end() }) t.test('invalid amount', (t) => { let...
JavaScript
tage).roundToInt().toFloat() val diameter = (max + padding * 2).toInt() val newBitmap = createBitmap(diameter, diameter, config ?: Bitmap.Config.ARGB_8888) val canvas = Canvas(newBitmap) newBitmap.applyCanvas { // canvas.drawColor(getCommonColor()) canvas.drawBitma...
Kotlin
LookupTableUk.ContainsKey(valToCheck)) { retVal = OddsFormatLookupTableUk[valToCheck]; return true; } retVal = null; return false; } /// <summary> /// If Culture property defines a valid <see cref="CultureInfo"/>,...
C#
UIDE VARIABLES------------------Declarations of Sass variables * -----Typography * -----Colors * -----Textfield * -----Switch * -----Spinner * -----Radio * -----Menu * -----List * -----Layout * -----Icon toggles * -----Footer * -----Column * -----Checkbox * -----Card * -----Button * -----Animation * --...
CSS
32f) curveTo(37.2028f, 27.0856f, 37.053f, 27.1267f, 36.873f, 27.1267f) curveTo(36.5884f, 27.1267f, 36.3777f, 27.0335f, 36.2409f, 26.8473f) curveTo(36.1329f, 26.6982f, 36.079f, 26.51f, 36.079f, 26.2824f) curveTo(36.079f, 26.0111f, 36.1501f, 25.7983f, 36.291...
Kotlin
he given bookmark. If this is a window bookmark, we only have to * tell the window client. If this is a bookmark from a more detailed client, * we need to tell the window manager client too if we don't already believe * the window is focused. (Or more specifically, we don't want to tell the * window mana...
Typescript
import pandas as pd import numpy as np import sklearn.metrics as skmetrics from typing import List def compute_metrics(y_true_list: List, y_pred_list: List, labels=['train', 'test']) -> pd.DataFrame: results = [] for y_true, y_pred, split in zip(y_true_list, y_pred_list, labels): fpr, tpr, thresholds...
Python
tarted"); console.log(" ✅");class A { public message : string; constructor() { this.message = "Hello!"; } } var a = new A(); console.log(a.message); var b = new A(); console.log(b.message); import { PrismaClient } from '@prisma/client' import { successMessage, failMessage, getCurrentUser } from './...
Typescript
Object3D.html" class="tsd-kind-class">DOMObject3D</a>.</p> </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">parameters</span>: <a href="../interfaces/curtains_objects3D_DOMObject3D.DOMObject3DParams.html" class="tsd-signature-type tsd-kind-interface">DOMObject3DParams<...
HTML
from enum import Enum from typing import Union from fastapi import FastAPI import uvicorn app = FastAPI() class ModelName(str, Enum): alexnet = 'alexnet' resnet = 'resnet' lenet = 'lenet' fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] # 路径参数:在路径中使用{}括起来的参数,需要与函数中的...
Python
tantiateParamSorts(paramSorts: List<Sort>): SmtIntpFunctionSymbol { check(paramSorts.size == 1) val mNew = paramSorts[0].getBitVecSortWidth() check(mNew > i && i >= j && j >= 0) { "Instantiated (_ extract ${i} ${j}) on BV${mNew} does not satisfy the SMT-LIB standard" } ...
Kotlin
്ന് നിങ്ങള്‍ രണ്ടുപേരും എന്നോട് വാഗ്ദാനം ചെയ്യുകയാണോ? എനിക്ക് മുമ്പ് തലമുറകള്‍ കഴിഞ്ഞുപോയിട്ടുണ്ട്‌. അവര്‍ (മാതാപിതാക്കള്‍) അല്ലാഹുവോട് സഹായം തേടിക്കൊണ്ട് പറയുന്നു: നിനക്ക് നാശം. തീര്‍ച്ചയായും അല്ലാഹുവിന്‍റെ വാഗ്ദാനം സത്യമാകുന്നു. അപ്പോള്‍ അവന്‍ പറയുന്നു. ഇതൊക്കെ പൂര്‍വ്വികന്‍മാരുടെ കെട്ടുകഥകള്‍ മാത്രമാകുന്നു." }, ...
Dart
type; typedef typename Details::param_type param_type; typedef swap_with_saved< Details > swapper; private: Details details; value_type value; // Non-copyable saved ( const saved& ); saved& operator=( const saved& ); public: saved( ) : details( ), va...
C++
name); this.pkgIndex = pkgIndex; this.uidIndex = uidIndex; } @Override public boolean beforeCall(Object who, Method method, Object... args) { if (pkgIndex != -1 && args.length > pkgIndex && args[pkgIndex] instanceof String) { args[pkgIndex] = ...
Java
| 数据科学 | 如何使用Python创建一个数据框(DataFrame)并向其中添加新的数据? | | 机器人技术 | 我该如何为我的机器人程序创建一个用户界面(User Interface)? | | 语义网 | 描述一下RDF是什么,以及它在语义网络中的作用。 | | 计算机视觉 | 如何在一张图片中检测出所有的人脸? | | 深度学习 | 我该如何训练一个图像分类器,来区分猫和狗的图片? | | 机器翻译 | 翻译句子时需要考虑哪些因素,你能列举几个例子吗? | | 数据库管理 | 如何在MySQL数据库中创建一个新表格(Table),并给其添加一些字段(Field)? | | 语音识别 | 如何使用Python识别一段录音...
Markdown
Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=the+Guardian&amp;rft.atitle=Qatar+v+Ecuador%3A+World+Cup+2022+kicks+off+with+opening+ceremony+%E2%80%93+live&amp;rft.date=2022-11-20&amp;rft_id=https%3A%2F%2Fwww.theguardian.com%2Ffootball%2Flive%2F2022%2Fnov%2F20%2Fqatar-v-ecuador-world-cup-2022-kicks-off...
HTML
NTRIBUTORS 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, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, ST...
Assembly
from test_login import * from features.ScheduleDelivery import ScheduleDeliveryPage class TestScheduleDelivery(TestLogin): def test_schedule_delivery(self, driver_setup): TestLogin.test_valid_login(self, driver_setup) schedule_delivery = ScheduleDeliveryPage(driver_setup) schedule_delivery.Schedule() ...
Python
match callback() { Ok(ret) => return Ok(ret), Err(ref e) if e.maybe_spurious() && remaining > 0 => { let msg = format!("spurious network error ({} tries \ remaining): {}", remaining, e); try!(config.shell().warn(msg)); ...
Rust
import random # Charge toutes les lignes with open("data/cleaned.txt", "r", encoding="utf-8") as f: lines = [l for l in f if l.strip()] random.shuffle(lines) n = len(lines) train, valid, test = ( lines[: int(0.8*n)], lines[int(0.8*n) : int(0.9*n)], lines[int(0.9*n) :], ) for name, chunk in [("train",...
Python
postscript("ten.ps",horizontal=F) par(mfrow=c(2,2)) ##Q(1) x <- geyser$waiting y <- geyser$duration y[y<4] <- 0 y[y>=4] <- 1 plot(x,y,pch=17) w <- sum(y)/length(y) x0 <- x[y==0] x1 <- x[y==1] n0 <- length(x0) n1 <- length(x1) n <- length(x) mu0 <- mean(x0) mu1 <- mean(x1) s0 <- sqrt(var(x0)) s1 <- sqrt(var(x1)) a <...
Assembly
7, 1], [10, 5] and [10, 5, 2, 7, 1, -10]. The length of the longest subarray with a sum of 15 is 6.</span></pre> <pre><span style="font-size: 14pt;"><strong>Input:</strong> arr[] = [-5, 8, -14, 2, 4, 12], k = -5 <strong>Output:</strong> 5 <strong>Explanation: </strong></span><span style="font-size: 18.6667px;">Only su...
Markdown
getVisibility() == VISIBLE) { valueTextView.setAlpha(value || !canDisable ? 1.0f : 0.5f); } if (valueImageView.getVisibility() == VISIBLE) { valueImageView.setAlpha(value || !canDisable ? 1.0f : 0.5f); } } @Override protected void dispatchDraw(Canvas canvas) ...
Java
$set_bool($container, "doctest", $target.doctest); $set_bool($container, "bench", $target.bench); $set_bool($container, "doc", $target.doc); $set_bool($container, "plugin", $target.plugin); $set_bool($container, "harness", $target.harness); ) } fn entry_kind(e: EntryRef) -> &'s...
Rust
0.0) } fun bedSlabJump() { val player = super.slabJump() player.assertPosition(5.0, 11.995200877005914, 5.0) player.assertVelocity(0.0, -0.3739040364667221, 0.0) } } /* * Minosoft * Copyright (C) 2020-2024 Moritz Zwerger * * This program is free software: you can redistribute i...
Kotlin
) ഭാഗിക്കുന്ന സന്ദര്‍ഭത്തില്‍ (മറ്റു) ബന്ധുക്കളോ, അനാഥകളോ പാവപ്പെട്ടവരോ ഹാജറുണ്ടായാല്‍ അതില്‍ നിന്ന് അവര്‍ക്ക് നിങ്ങള്‍ വല്ലതും നല്‍കുകയും, അവരോട് മര്യാദയുള്ള വാക്ക് പറയുകയും ചെയ്യേണ്ടതാകുന്നു." }, { "surah_number": 4, "verse_number": 9, "content": "തങ്ങളുടെ പിന്നില്‍ ദുര്‍ബലരായ സന്താനങ്ങളെ വിട്...
Dart
R PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GanttProject. If not, see <http://www.gnu.org/licenses/>. */ package biz.ganttproject.core.io import biz.ganttproject.core.io.XmlTasks.XmlCalculationSimpleSelect import com.fa...
Kotlin
.labs.subscaleview.decoder">ImageRegionDecoder</a>)</li> </ul> </li> </ul> <h2 title="Interface Hierarchy">Interface Hierarchy</h2> <ul> <li type="circle">com.davemorrissey.labs.subscaleview.decoder.<a href="../../../../../com/davemorrissey/labs/subscaleview/decoder/DecoderFactory.html" title="interface in com.davemorr...
HTML
fileName = BrowseForExe(); tbxInputAssembly.Text = fileName; } private static string BrowseForExe() { var openDialog = new OpenFileDialog {Filter = "Exe files (*.exe)|*.exe|All files (*.*)|*.*"}; var result = openDialog.ShowDialog(); var fileNam...
C#
obID)) return fmt.Errorf(msg) } container := core.GetSystemComponents().Container err = container.Invoke( func(t core.Transpiler) error { if p.Transpiler.TranspilerLib == nil { return nil // use no transpiler } if t.IsAcceptableTranspilerLib(*p.Transpiler.TranspilerLib) { return nil } ret...
Go
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | --------...
C
s will work best with images in black/white or grayscale. */ fun IntBuffer.invert(): IntBuffer { val output = copy() output.map { input -> val (r, g, b) = input.rgb() rgb(255 - r, 255 - g, 255 - b) } output.rewind() return output } fun Int.red() = (this shr 16) and 0xff fun Int.g...
Kotlin
09E0: ldrsh r1, [r4, #2] mov r0, #1 bl SetMessageLogPreprocessorArgsStringToName ldrsh r0, [r4, #2] bl SetMessageLogPreprocessorArgsSpeakerId _022F09F4: cmp r5, #0 beq _022F0A6C mov r1, #1 add r0, sp, #4 mov r2, r5 mov r3, r1 str r1, [sp] bl ov29_0234D860 ldrb r0, [sp, #0x30] cmp r0, #0 beq _022F0A28 l...
Assembly
om/736x/1a/b7/51/1ab75139f3b1e6ecc1f59ffc2a4b0f2e--mario-bros-mario-kart.jpg", filepath)) { print("Failed to download image!\n"); } else { display_image(filepath); } xSemaphoreGive(mutex_leds); show_leds(); ...
C++
, à Auberdine."; }; [990] = { ["name"] = "Voyage vers Orneval"; ["objective"] = "Trouver Raene Mène-loup dans Orneval."; }; [991] = { ["name"] = "Le nettoyage selon Raene"; ["objective"] = "Trouver Teronis dans Orneval."; }; [992] = { ["name"] = "Étude des eaux de Gadgetzan"; [...
Lua
(); writer.Write(ConstructorId); writer.Write(Nonce); writer.Write(TempAuthKeyId); writer.Write(PermAuthKeyId); writer.Write(TempSessionId); writer.Write(ExpiresAt); } public void Deserialize(ref ReadOnlyMemory<byte> buffer) { Nonce = buffer.ReadInt64...
C#
le.toString(), if (color != null) 'color': color.toString(), if (decoration != null && decoration != TextDecoration.none) 'decoration': decoration.toString(), if (backgroundColor != null) 'backgroundColor': backgroundColor.toString(), if (fontFeatures != null) ...
Dart
vné zařízení nebo složku</li> <li>nebo kliknutím na tlačítko <em>Vybrat</em>, které otevře dialogové okno pro pomoc s výběrem složky.</li> </ol> <p>Vybraná cesta se vždy objeví v zóně pro úpravy textu a aplikace tuto cestu použije pro značku.</p> <h3 class="anchor anchorWithStickyNavbar_LWe7" id="vyberte-existující-zna...
HTML
*: 数据库操作延迟 - **调度准确性**: 定时任务执行偏差 ### 🚨 告警机制 #### 错误自动检测 ```bash # 错误日志监控脚本 tail -f logs/sync_error.log | while read line; do echo "错误告警: $line" | mail -s "AI爬虫系统告警" admin@example.com done ``` #### 健康检查 ```python def health_check(): """系统健康状态检查""" checks = { "github_api": test_github_connection()...
Markdown