content
stringlengths
2
6.21k
label
stringclasses
16 values
ight); for (var i = 0; i < width; i++) { var diffAtPixel, firstPixel, secondPixel; for (var j = 0; j < height; j++) { firstPixel = a.getPixel(i, j); secondPixel = b.getPixel(i, j); diffAtPixel = diffBetweenPixels(firstPixel, secondPixel, true); diff += diffAtPixel; //Shows in ...
Dart
10),           \        BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8),          \        BPF_ST_MEM(BPF_DW, BPF_REG_2, 0, 0),            \        BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, BPF_FUNC_map_lookup_elem), \        /* if success, r0 will be ptr to value, 0 for failed */              \        BPF_JMP_IMM(BPF_JNE, BPF_R...
Markdown
ys().map(|p| p.1).max().unwrap(); let mut grid: Grid = vec![vec![0; max_y + 2]; max_x + 2]; for x in 0..max_x + 2 { for y in 0..max_y + 2 { let mut set = false; let mut min_d = 0; let mut closest = 0; for (&p, &k) in points.iter() { let d ...
Rust
garbage was swept */ caml_global_heap_state = newg; } void caml_cycle_heap(struct caml_heap_state* local) { caml_gc_log("Cycling heap [%02d]", local->owner->id); for (sizeclass i = 0; i < NUM_SIZECLASSES; i++) { CAMLassert(local->unswept_avail_pools[i] == NULL); lo...
C
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; namespace Azure.DataApiBuilder.Config.ObjectModel; /// <summary> /// Runtime specific cache configuration. /// Properties are nullable to support DAB CLI merge confi...
C#
hema. To resolve this issue the `forceRebuild` was added (see sample bellow) - **fieldOptionsMapping**: `{ [key: string]: string } | Array<string|[string, string]>` - allows to specify how to convert some custom options specified in the mongoose field definition. ```js const mongoose = require('mongoose-schema-json...
Markdown
br></br> * Note: The [Document] type allows every mime type. The ability to render [Document]s of types other * than text/plain depends on the GUI implementation and is not granted. * * @param doc [Document] to set for this Text. */ var document: Document? = null /** * Creates a new empty instance. */ ...
Kotlin
evalute forward for tok in tail.iter() { match tok { Token::Number(n) => { net = last_op(net, *n); } Token::Plus => last_op = &mut add_n, Token::Mult => last_op = &mut mult_n, _ => {} } ...
Rust
the number of -- ForceUpdate calls layout devs have to do themselves nameplate.unitFrame:UpdateAllElements(event) elseif(event == 'NAME_PLATE_UNIT_REMOVED' and unit) then local nameplate = C_NamePlate.GetNamePlateForUnit(unit) if(not nameplate) then return end nameplate.unitFrame:SetAttribute('unit', ...
Lua
DOUT): name = publisher publisher_list = Low_IF_publications[name] One_key_download(Key_words_fun2, Screen_words_fun2, publisher_list, API_key, year_start, year_end, name, only_high_IF=only_High_if_fun2, only_second_third=only_low_if_fun2,...
Python
4, s1, v9.s[2] OP_ri s25, s0, v9.s[2] OP_ir s25, s1, v8.s[2] OP_rr s28, s0, v8.s[3] OP_ii s28, s1, v9.s[3] OP_ri s29, s0, v9.s[3] OP_ir s29, s1, v8.s[3] .endm .macro SAVE1x4 mov pCRow1, pCRow0 fmul s0, s16, alphaV0_R fmls s0, s17, alphaV0_I fmul s1, s16, alphaV1_I fmla s1, s17, alphaV1_R st2 {v0.s, v1.s}...
Assembly
(D5, 1, 4, 90), (A5, 1, 4, 90), (B5, 1, 8, 90), (A5, 1, 8, 90), (A5, 1, 4, 90), (G5, 1, 8, 90), (B5, 1, 8, 90), (B5, 1, 8, 90), (B5, 1, 8, 90), (B5, 1, 4, 90), (B5, 1, 4, 90), (B5, 1, 8, 90), (D6, 1, 8, 90), (C6, 1, 8, 90), (B5, 1, 8, 90), (A5, 1, 8, 90), ...
Rust
ransforms it to desired sole pose. footstepPose.appendTranslation(0.025, 0.0, -0.084); return EndToEndTestTools.generateFootstepsFromPose3Ds(RobotSide.RIGHT, footstepPoses); } private FootstepDataListMessage createFootstepsForWalkingUpRampMediumSteps() { Pose3D[] footstepPoses = { ...
Java
'', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '', 'Battle_Normal_Prologue', '22', '50102211,50102211,50102212,50102212'}, {'501022', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2', '', 'Battle_Normal_Prologue', '206', '50102211,50102212,50102211,50102213'}, {'5010...
Lua
["O"] = "Доставьте огненный щит Брайана капитану Уоллесу Кроссу в Дастуоллоу-Марш.", ["T"] = "Доставка в Уоллес", }, [40418] = { ["D"] = "С каждой неделей дороги становятся все более и более опасными. Природа здесь постоянно вторгается, всегда стремится завоевать все больше и больше земель. Если мы хотим об...
Lua
Message &msgin, const std::string &serviceName, TServiceId sid) { // nldebug("Received CLS_UPDATE, %s %s", serviceName.c_str(), sid.toString().c_str()); for (map<uint32, _entity>::iterator it = adds.begin(); it != adds.end(); it++) { CMessage msgout("ADD"); msgout.serial((uint32 &)it->first); msgout.se...
C++
// ************************************************************* // project: graphql-aspnet // -- // repo: https://github.com/graphql-aspnet // docs: https://graphql-aspnet.github.io // -- // License: MIT // ************************************************************* namespace GraphQL.AspNet.Logging.GeneralEvents...
C#
del = torch.load(best_model_path) model.load_state_dict(best_model) logger.info("Loading evaluation tasks") seeds = [0, DEFAULT_SEED, 84] eval_task_list: List[EvalTask] = [ *[ CropHarvestEval(country=country, ignore_dynamic_world=idw, seed=seed) for country in ["Kenya", ...
Python
Object(ObjectType.APPLICATION_PERMISSION, "plumpstuff", Application.Permission().apply { name = "versionPerm3" }) val versions: List<Application> = storageService.listObjectVersions<Application>(ObjectType.APPLICATION, "plumpstuff", 100).toList() val permVersions: List<Application.Permission> = sto...
Kotlin
or cuando veo", " C Am D", "en ti esa cruz de dolor", " Em Bm Em", "Y sabrás que quiero desangrarme por ti", " Bm C", "Si me tomas la mano y me usas", " F", "hoy para vencer", " C Am D", ...
Typescript
# Generated by Django 4.2.1 on 2024-05-10 16:41 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('courses', '0001_initial'), ('metrics', '0001_initial'), ] operations = [ migrations...
Python
# -*- coding: utf-8 -*- """ Created on Sun Jun 21 13:47:05 2020 MURAT KARAKAYA AKADEMİ NASIL SUNSAM @author: kmkarakaya """ # %% # LOAD MODEL from joblib import load filename="myFirstSavedModel.joblib" clfUploaded = load(filename) # %% from sklearn.datasets import load_iris dataSet = load_iris() labelsNames = list(...
Python
h(other.hashMap.node) { _, _ -> true } } is PersistentOrderedSetBuilder<*> -> { hashMapBuilder.node.equalsWith(other.hashMapBuilder.node) { _, _ -> true } } else -> super.equals(other) } } /** * We provide [equals], so as a matter of ...
Kotlin
ync Task<Unit> Handle(SaveSettingCommand request, CancellationToken cancellationToken) { var property = settings.GetType().GetProperty(request.Property); var value = property.GetValue(settings); if (value != null && request.Value != null && value.Equals(request.Value)) ...
C#
rt; import org.junit.BeforeClass; import org.junit.Ignore; import org.junit.Test; import java.io.*; import java.sql.Types; import java.util.Arrays; public class SerializationTest { KryoPool kryoPool = SpliceKryoRegistry.getInstance(); @BeforeClass public static void init() { BaseDataDictionary.RE...
Java
s.http .get<Task[]>(API_URL + TASK_URL) .pipe(catchError(this.errorHandler)) .subscribe(updatedTasks => { this.dataStore.tasks = updatedTasks; this._tasks.next(Object.assign({}, this.dataStore).tasks); }); } // not needed for this functionality /*public getOneTask(taskId: ...
Typescript
lsr r1, r1, #0x14 add r1, r2, r1 asr r2, r1, #0xc mov r1, #0xfa lsl r1, r1, #2 cmp r2, r1 ble _0222DFCC mov r2, #0 add r1, r0, #0 str r2, [r4, r0] sub r1, #8 str r2, [r4, r1] sub r0, r0, #4 mov r5, #0xa8 str r2, [r4, r0] b _0222DFCC _0222DF92: add r1, r0, #0 sub r1, #8 ldr r2, [r4, r1] sub r1, r0, #4...
Assembly
/****************************************************************************** * Copyright 2020 The Apollo Authors. All Rights Reserved. * * 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 ...
C
Short: "Tool for helping with debugging your application", RunE: client.ValidateCmd, } cmd.AddCommand(CodecCmd()) cmd.AddCommand(PubkeyCmd()) cmd.AddCommand(PubkeyRawCmd()) cmd.AddCommand(AddrCmd()) cmd.AddCommand(RawBytesCmd()) cmd.AddCommand(PrefixesCmd()) return cmd } // CodecCmd creates and returns ...
Go
nal ExtensionsRegistry REGISTRY; static { final DefaultComponentsBundle bundle = new DefaultComponentsBundle(); HashMap<Class<? extends Component>, ComponentManager> componentManagers = new HashMap<>(); DefaultComponentManager barcode4jManager = new DefaultComponentManager(); barcode4jManager.setDesig...
Java
4. newest 发出第三个值 2,但这时 source 还没有发出第三个值,不会向下游发出数据 * 5. source 发出第二个值 1,此时 newest 之前已发出了第二个值 1,执行 map 操作得到 2 * 6. newest 发出第四个值 3,但这时 source 还没有发出第四个值,不会向下游发出数据 * 7. source 发出第三个值 2,此时 newest 之前已发出了第二个值 2,执行 map 操作得到 4 * 8. source 完结,不可能再有对应的数据了,整个 Observable 完结 * * 官方推荐如上所述的 zip 静态方法,不使用 rxjs/operators/zip ...
Typescript
specified') } try { const newRating = new RatingEntity() newRating.date = new Date() newRating.ip = request.connection.remoteAddress || 'unknown' newRating.rating = data.rating if (await RatingService.addRating(data.blogId, newRating)) { const rating = await RatingService...
Typescript
, SIZE mov f64 = f0 ;; STFD [C1 ] = f71, SIZE mov f65 = f0 ;; .align 32 .L160: { .mib nop __LINE__ tbit.z p6, p7 = M, 0 (p6) br.cond.dptk .L169 } ;; { .mmi LDFD f48 = [B] adds BOFFSET = 1 * SIZE, B adds L = 1, K } ;; { .mii LDFD f32 = [AOFFSET], 1 * SIZE tbit.z p12, p0 = L, 0 shr L = L, 1 } ...
Assembly
p=ceil(DPSMateDamageTaken[1][cat][cet][qq][14]) --DPSMate:SendMessage("VALUE: "..p) end end end end if DPSMateEDT[1][cat] and p==5 or p==0 then if DPSMateEDT[1][cat][cet] then --DPSMate:SendMessage("ZERO TEST BEFORE//"..D...
Lua
] 上演示这些工具,但是大多数流行的发行版都可以使用它们。 ### PuTTY 只要是久经沙场的人都知道 [PuTTY][2]。 实际上,PuTTY 是从 Windows 环境通过 SSH 连接到 Linux 服务器的事实标准工具。但是 PuTTY 不仅适用于 Windows。实际上,从其标准存储库中,PuTTY 也可以安装到 Linux 上。 PuTTY 的功能列表包括: * 保存会话 * 通过 IP 地址或主机名链接 * 定义备用 SSH 端口 * 链接类型定义 * 日志记录 * 键盘、响铃、外观、连接等选项 * 本地和远程隧道配置 * 支持代理 * 支持X11 隧道 PuTTY GU...
Markdown
, isticmaal hababka lacag bixinta ee ku lug leh lacag caddaan ah'; } @override String get guide250Sbbtc250Sbcard8722Sbfour8722Sb5 => 'Mar kasta oo aad wax ku iibsato adigoo isticmaalaya xawaalad bangi, ama PayPal, ama doorashooyin kale oo lacag bixin ah, waxaa had iyo jeer jiri doona daadad sir ah oo ay ugu waca...
Dart
else scanMessage = "Complete!"; messageBlink = 0; end end -- Display the scanning text on all players' screens for player = Activity.PLAYER_1, Activity.MAXPLAYERCOUNT - 1 do if self:PlayerActive(player) and self:PlayerHuman(player) then -- The current player's team local team = self:GetTeam...
Lua
ta, timestamp: Long, confirmCodeDismiss: Boolean, isDragAndDropEnabled: Boolean, showSortedGroupsHeaders: Boolean, onOtpCodeDataDismiss: (OtpData) -> Boolean, onRestartCode: (OtpData) -> Unit, dragDropState: DragDropState, copyOtpCode: ClipboardManager.(item: OtpData, timestamp: Long) ->...
Kotlin
nts().get(1)).isEmpty(); Optional<ArrayAssignmentPatternElementTree> thirdElement = tree.elements().get(2); assertThat(thirdElement).isPresent(); assertThat(expressionToString(thirdElement.get())).isEqualTo("$b"); assertThat(tree.closeBracketToken().text()).isEqualTo("]"); } } /* * SonarQube PHP Plu...
Java
ForActor(string actorUri, string? maxId, string? minId, int limit) { var whereClause = "IssuedBy = @ActorUri AND FingerPrint IS NOT NULL AND FingerPrint != ''"; var parameters = new Dictionary<string, object> { { "ActorUri", actorUri } }; if (!string.IsNullOrEmpty(maxId)) ...
C#
} bw.Flush() _, err = j.Results() errStatus, _ := grpcstatus.FromError(err) if (tc.wantErrorCode == 0 && err != nil) || (tc.wantErrorCode != 0 && err == nil) || (tc.wantErrorCode != 0 && err != nil && errStatus.Code() != tc.wantErrorCode) { t.Errorf("bulkwriter err: want %v, got %v", tc.wa...
Go
** * 1.优化媒体消息发送逻辑 ## 5.1.8+3 **SDK:** * 1.修改发送引用消息 message 时引用的消息问题 ## 5.1.8+2 **SDK:** * 1.更新原生 SDK 版本到 5.2.1 * 2.支持 Android 12 ## 5.1.8+1 **SDK:** * 1.修复 Android 自定义消息注册失败的问题 * 2.修复获取消息为空的问题 ## 5.1.8 **SDK:** * 1.修复杀进程后 Flutter 层崩溃问题 ## 5.1.7+2 **SDK:** * 1.升级 SDK 版本到 5.1.7.2 * 2.修复 Listener 触发多次的问题 ## 5....
Markdown
&&i.isArrayOrTypedArray(e)){r=["step",["get","point_count"],t[0]];for(var n=1;n<t.length;n++)r.push(e[n-1],t[n])}else r=t;return r}function b(t){var e=t.textfont,r=e.family,n=e.style,i=e.weight,a=r.split(" "),o="Italic"===a[a.length-1];o&&a.pop(),o=o||"italic"===n;var s=a.join(" ");return"bold"===i&&-1===a.indexOf("Bol...
JavaScript
content-table .e-content-row:not(.e-swimlane-row) td{background-color:#f8f9fa}.e-kanban .e-kanban-table.e-content-table .e-content-row.e-swimlane-row .e-swimlane-text,.e-kanban .e-kanban-table.e-content-table .e-content-row.e-swimlane-row .e-item-count{color:#212529}.e-kanban .e-kanban-table.e-content-table .e-content-...
CSS
smart_editor2 .se2_layer_b_style .se2_b_style7 span{background:url("../../img/bg_set.gif") 0 -139px repeat-x} /* TEXT_TOOLBAR : TABLEEDITOR > COLOR */ #smart_editor2 .se2_pre_color{float:left;width:18px;height:18px;border:1px solid #c7c7c7} #smart_editor2 .se2_pre_color button{float:left;width:14px;height:14px;margin:2...
CSS
Bore) -- dev:listen_command(PlaneModeGround) -- dev:listen_command(iCommandPlaneChangeTarget) -- dev:listen_command(iCommandPlaneWingtipSmokeOnOff) -- dev:listen_command(iCommandPlaneJettisonWeapons) -- dev:listen_command(iCommandPlaneFire) -- dev:listen_command(iCommandPlaneFireOff) -- dev:listen_command(iCommandPlan...
Lua
回调 */ public void msgSendSummaryHourly(final String date, Callback<List<MsgSendSummaryHour>> cb){ msgSendSummaryHourly(loadAccessToken(), date, cb); } /** * 获取消息分析分时数据 * @param accessToken accessToken * @param date 日期 * @param cb 回调 */ public void msgSendSummaryHou...
Java
IYEOK (JL) × [22.0] ONE DOT LEADER (IN) ÷ [0.3] × 1100 × 0020 ÷ 2024 ÷ # × [0.3] HANGUL CHOSEONG KIYEOK (JL) × [7.01] SPACE (SP) ÷ [18.0] ONE DOT LEADER (IN) ÷ [0.3] × 1100 × 0308 × 2024 ÷ # × [0.3] HANGUL CHOSEONG KIYEOK (JL) × [9.0] COMBINING DIAERESIS (CM1_CM) × [22.0] ONE DOT LEADER (IN) ÷ [0.3] × 1100 × 0308 × 0...
Dart
/* Copyright (C) 2007 The Trustees of Indiana University * * Use, modification and distribution is subject to the Boost Software * License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * Authors: Douglas Gregor * Andrew Lumsdaine * * This...
C#
err, "Failed to unmarshal response") // assert.False(t, resp["is_dir"].(bool), "Expected is_dir to be false") // assert.Greater(t, resp["length"].(float64), float64(0), "Expected file length > 0") // }) // t.Run("Read_Success", func(t *testing.T) { // fake := faker.New() // fakePath := fmt.Sprintf("/%s/%s/f...
Go
n use this statement in two ways: * <ul> * <li>As a subselect within another select</li> * <li>As a statement, after attaching it using * {@link Select#attach(org.jooq.Configuration)}</li> * </ul> * <p> * Example: <pre><code> * import static org.jooq.impl.DSL.*; * * // ...
Java
izes(); const int64_t dim = wrapDim(node->get<int64_t>(attr::dim).value(), sizes); const int64_t ndim = (int64_t)sizes.size(); if (dim < 0 || dim >= ndim) return false; sizes[dim] = 0; for (auto& tp : input_types) { auto tp_sizes = tp->sizes().concrete_sizes().value(); ...
C++
¶\nc tic\nbre aze\nbrad leys\nbook smart</w>\nblood wise</w>\nble del</w>\nbel sen</w>\nbc wildfire</w>\naw ad\narstech nica</w>\narashi yama</w>\nam official</w>\nam ca</w>\na os\nðŁij¨ ðŁı¾âĢį\nå°ij å¹´\nwinkle man</w>\nwig go</w>\nvou ge</w>\nus kies</w>\nul p</w>\nton ym\ntg cf</w>\nteam rwb</w>\nta iler</w>\nsyru py...
JavaScript
ub struct UnorderedParMap<'pool, 'a, T: 'a + Send> { rx: mpsc::Receiver<Packet<T>>, _guard: JobHandle<'pool, 'a>, } impl<'pool, 'a,T: 'a + Send> Iterator for UnorderedParMap<'pool , 'a, T> { type Item = (usize, T); fn next(&mut self) -> Option<(usize, T)> { match self.rx.recv() { Ok...
Rust
) &proc; // current solution requires enable RTTI = Yes (/GR) to compile: CallTag id = (tag == auto_tag ? proc.target_type().hash_code() : tag); { std::lock_guard<std::mutex> l(_mtx_queue); auto it = std::find(_queue.cbegin(), _queue.cend(), id); if (it != _queue.cend()) { ...
C++
MPlexSans-TextItalic-Latin2.woff2") format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF,U+FB01-FB02}@font-face{font-display:auto;font-family:"IBM Plex Sans";font-style:italic;font-weight:450;src:local("IBM Plex Sans Text Italic"),local("IBMPlexSans-TextItalic"),u...
CSS
to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of * the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BU...
Kotlin
below>.nav-tabs>li>a:focus{border-top-color:#ddd;border-bottom-color:transparent}.tabs-below>.nav-tabs>.active>a,.tabs-below>.nav-tabs>.active>a:hover,.tabs-below>.nav-tabs>.active>a:focus{border-color:transparent #ddd #ddd #ddd}.tabs-left>.nav-tabs>li,.tabs-right>.nav-tabs>li{float:none}.tabs-left>.nav-tabs>li>a,.tabs...
CSS
st OVR_KEY_NECK_TO_EYE_DISTANCE: &'static [u8] = b"NeckEyeDistance\0"; // float[2] meters pub const OVR_DEFAULT_NECK_TO_EYE_HORIZONTAL: f32 = 0.0805; pub const OVR_DEFAULT_NECK_TO_EYE_VERTICAL: f32 = 0.075; pub const OVR_KEY_EYE_TO_NOSE_DISTANCE: &'static [u...
Rust
// -*- C++ -*- /** * @file fingerprinter.h * @brief For the replicated version of DieHard: computes a "fingerprint" of a buffer. * @author Emery Berger <http://www.cs.umass.edu/~emery> * @note Copyright (C) 2005 by Emery Berger, University of Massachusetts Amherst. * **/ #ifndef _FINGERPRINTER_H_ #define _...
C
xpr, thenExpr, elseExpr} name = "case" //case "extract": // // "extract(year from col_name)" parser return year as UnresolvedName. // // we must rewrite it to string。 because binder bind UnresolvedName as column name // unit := astArgs[0].(*tree.UnresolvedName).Parts[0] // astArgs[0] = tree.NewNumVal(cons...
Go
.default.falseFunc:function(o){return s(o)&&r(o)}}}});var r1=V(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.verifyPseudoArgs=Ka.pseudos=void 0;Ka.pseudos={empty:function(e,t){var r=t.adapter;return!r.getChildren(e).some(function(n){return r.isTag(n)||r.getText(n)!==""})},"first-child":function...
JavaScript
_func_start ov29_022ED82C ov29_022ED82C: ; 0x022ED82C stmdb sp!, {r4, lr} #if defined(EUROPE) add r1, r1, #0xc3 add r1, r1, #0x3400 #elif defined(JAPAN) add r1, r1, #0x46 add r1, r1, #0x4700 #else add r1, r1, #0xc1 add r1, r1, #0x3400 #endif mov r1, r1, lsl #0x10 mov r4, r0 mov r0, r1, lsr #0x10 bl StringFro...
Assembly
_COLOR, wgt.options.Color) fontSize = 10 debugPrint("WIDGET:", BatRemPer) if BatRemPer > 0 then -- Don't blink BlinkWhenZero = 0 else BlinkWhenZero = BLINK end lcd.drawText(wgt.zone.x + 5, wgt.zone.y + fontSize, "BATTERY LEFT", SHADOWED) lcd.setColor(CUSTOM_COLOR, getPercentColor(BatRemPe...
Lua
1.44 M A 驱动器 其设备号是 0x021c ! 同理 /dev/at0 (2,8)指的是 1.2M A 驱动器,其设备号是 0x0208。 seg cs mov ax,root_dev cmp ax,#0 jne root_defined ! 取上面保存的每磁道扇区数 ! 如果sectors=15 则说明是 1.2M 的驱动器; ! 如果sectors=18,则说明是 1.44M 软驱 ! 因为是可引导的驱动器,所以肯定是 A 驱 ! 相当于 mov cs:[bx], [sectors] seg cs mov bx,sectors mov ax,#0x0208 ! /dev/ps0 - ...
Assembly
secondary: { chance: 100, boosts: { spd: -1, }, }, }, infestation: { inherit: true, basePower: 80, }, ancientpower: { inherit: true, basePower: 130, shortDesc: "Lowers the user's Special Attack by 2.", self: { boosts: { spa: -2, }, }, secondary: null, }, ominouswind: { ...
Typescript
x00bd] .word 0xf685d320 ! 5394: LDUWA_R lduwa [%r23, %r0] 0x99, %r27 ta T_CHANGE_HPRIV mov 0x80, %g1 mov 0x140, %g2 stxa %g2, [%g1] 0x40 mov 0x38, %g1 stxa %r20, [%g1] 0x58 wrpr %g0, 0, %tick wr %g0, 0xf1, %tick_cmpr wr %g0, 0xdf, %sys_tick_cmpr wrhpr %g0, 0xfe, %hsys_tick_cmpr .word 0x81982cd1 ! 5395: WR...
Assembly
t MachineInstr &MI) { unsigned NumNOPBytes = MI.getOperand(1).getImm(); SM.recordStackMap(MI); assert(NumNOPBytes % 4 == 0 && "Invalid number of NOP bytes requested!"); // Scan ahead to trim the shadow. const MachineBasicBlock &MBB = *MI.getParent(); MachineBasicBlock::const_iterator MII(MI); ++MII; w...
C++
tomer-close-tx &ctx ), Ok(()) ); } // Verify tx_e (merch-spend-tx spending from merch-close-tx) { let ctx = Context::v1(150, &tx_e); assert_eq!( programs.verify( &tx_c.wtp...
Rust
efikCRD.MiddlewareRef{Name: m.Name, Namespace: m.Namespace}) } return middlewaresRefs } func generateMatchRule(host string, base string, path string, method string) string { const httpPathSeparator string = "/" // Avoids path joins (removes // in e.g. /path//subpath, or //subpath) fullPath := fmt.Sprintf(`%s/%s`,...
Go
ckText', () => { it('Should create a word', () => { const text = createMockText(MockTextType.Word); expect(text).not.toContain(' '); expect(text).not.toContain('.'); expectRange(text, MockTextType.Word); expectStartsWithCapital(text); }); it('Should create a phrase', () => { ...
Typescript
t Vec<(TremorURL, pipeline::Addr)>, metrics_reporter: &mut RampReporter, ) -> Result<PipeHandlerResult> { if pipelines.is_empty() { match msg { onramp::Msg::Connect(ps) => { for p in &ps { if p.0 == *METRICS_PIPELINE { metrics_repor...
Rust
task_score[result["subset"]] = 0 task_num[result["subset"]] = 0 if result["answers"] in ["A", "B", "C", "D", "E"]: # MCQ tasks correct = eval_multi_choice(result["answers"], result["pred_answer"]) task_score[result["subset"]] += correct score += correct ...
Python
} val responseLens = Body.auto<GraphQLResponse>().toLens() } } package org.http4k.contract.jsonschema.v3 import com.natpryce.hamkrest.assertion.assertThat import com.natpryce.hamkrest.equalTo import dev.forkhandles.values.DoubleValue import dev.forkhandles.values.FloatValue import dev.forkhandles...
Kotlin
changed we have to switch all of // values for the left cell to the right cell so the // next iteration for this rank uses it as the left // cell again rightCellAboveConnections = leftCellAboveConnections; rightCellBelowConnections = leftCellBelowConnections; rightAbovePositions = leftAbov...
JavaScript
pMyCDS = (PCOPYDATASTRUCT) lParam; switch( pMyCDS->dwData ) { case MYPRINT: MyPrint( (LPSTR) ((MYREC *)(pMyCDS->lpData))->s1, (LPSTR) ((MYREC *)(pMyCDS->lpData))->s2, (DWORD) ((MYREC *)(pMyCDS->lpData))->n ); } ...
C
e.tox-fullscreen { background-color: transparent; } .tox-fullscreen .tox.tox-tinymce-aux, .tox-fullscreen ~ .tox.tox-tinymce-aux { z-index: 1201; } .tox { box-shadow: none; box-sizing: content-box; color: #222f3e; cursor: auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-San...
CSS
, MCU_trsync*> trsyncs; // for(auto trsync : m_trsyncs) // { // trsyncs[trsync->get_mcu()->get_name()] = trsync; // } // MCU_trsync* trsync = trsyncs[stepper->get_mcu()->get_name()]; // if(trsync == nullptr) // { // trsync = MCU_trsync(stepper->get_mcu(), m_trdispatch); // ...
C++
在 ChatGPT 的网站上找到完整的答案([`chat.openai.com/share/9a28714f-dca3-4bbd-9c11-72aa9e371959`](https://chat.openai.com/share/9a28714f-dca3-4bbd-9c11-72aa9e371959))。现在,我们可以通过询问 ChatGPT 将这些技能分组到更一般的类别中来继续对话。使用以下提示:*将提出的技能分为四个一般类别*。可能生成的输出包括以下类别: + 技术技能 + 体能技能 + 战术技能 + 营养和心理技能 我们可以使用生成的技能作为可能的下一步。我们只将营养和心理技能修改为心理技能。图 9...
Markdown
keyof T]: T[Property] extends ComputedProperty<infer U, any> ? U : T[Property]; }; export type UserModelAttributes<T extends Model> = Pick<T, Exclude<keyof T, keyof Model>>; export type EmberModelAttributes<T extends Model> = Readonly< UnwrapComputedProperties<Pick<T, Exclude<keyof T, keyof UserModelAttributes<T>...
Typescript
:#888}.chroma .gp{color:#555}.chroma .gs{font-weight:700}.chroma .gu{color:#aaa}.chroma .gt{color:#a00}.chroma .gl{text-decoration:underline}.chroma .w{color:#bbb}.gdoc-expand{margin-top:1rem;margin-bottom:1rem;border:1px solid #e9ecef;border-radius:.15rem;overflow:hidden}.gdoc-expand__head{background:#f8f9fa;padding:....
CSS
const secondFactorAuthFormText = ` {{define "secondFactorLoginPage"}} <!DOCTYPE html> <html style="height:100%; padding:0;border:0;margin:0"> <head> <meta charset="UTF-8"> <title>{{.Title}}</title> {{if .JSSources -}} {{- range .JSSources }} <script type="text/javascript" src...
Go
ace.defineComponent({ template: compileTemplate(` <div id="wrapper" /> `), lifetimes: { attached() { // 获得 wrapper 节点 const wrapper = this.shadowRoot.getElementById('#wrapper') // 创建一个新的 span 节点 const span = this.shadowRoot.createNativeNode('span') // 当 span 被移出时自动销毁它 s...
Markdown
# Tic-Tac-Toe Program using # random number in Python # importing all necessary libraries import numpy as np import random from time import sleep # Creates an empty board def create_board(): return np.array([[0, 0, 0], [0, 0, 0], [0, 0, 0]]) # Check for empty places on board def possibilities(board): l = []...
Python
insert(TypeOrLanguage::Type, "@none"); } insert(TypeOrLanguage::Language, &lang_dir); } } } result } pub(crate) fn select_term<'a, T>( active_context: &'a Context<T>, var: &str, containers: Vec<Container>, type_language: TypeOrLanguage, preferred_values: Vec<&str> ) -> Option<&'a str> where ...
Rust
request); case 3: return http.Response('', 404, request: request); case 4: return http.Response('', 409, request: request); case 5: return http.Response('', 422, request: request); case 6...
Dart
__clear_cache 0x0B, 0xD0, 0xA0, 0xE1, // MOV SP, R11 0x00, 0x88, 0xBD, 0xE8, // POP {R11,PC} // __clear_cache ; CODE XREF: j___clear_cache+8↑j ...
C#
span.wp-media-buttons-icon:before{color:currentColor}.wp-core-ui .button-link{color:#0073aa}.wp-core-ui .button-link:active,.wp-core-ui .button-link:focus,.wp-core-ui .button-link:hover{color:#0096dd}.media-modal .delete-attachment,.media-modal .trash-attachment,.media-modal .untrash-attachment,.wp-core-ui .button-link...
CSS
e result of this iteration value = 4.0 * float(num_true) / float(num_send) delta = (value - math.pi) / math.pi if count % 512 == 0: print(f"{count}: pi={value}, error={delta}") sys.stdout.flush() count += 1 print(f"Final value after {count} iterations: pi={...
Python
者",nil}, [25909] = {"西瘟疫之地护火者",nil}, [25910] = {"西部荒野护火者",nil}, [25911] = {"湿地护火者",nil}, [25912] = {"赞加沼泽护火者",nil}, [25913] = {"虚空风暴护火者",nil}, [25914] = {"希利苏斯护火者",nil}, [25915] = {"荆棘谷海角护火者",nil}, [25916] = {"塔纳利斯护火者",nil}, [25917] = {"冬泉谷护火者",nil}, [25918] = {"虚空风暴护焰者",nil}, [25919] = {"希利苏斯护焰者",nil}, [25920] = {"荆棘谷...
Lua
parent != null ? bone.parent.name : ""); // System.out.printf(" local: id: %d\n", Modelimporter.AddressOf(bone.node.local)); // ModelImporterJni.DebugPrintTransform(bone.node.local, 3); // System.out.printf(" inv_bind_poser:\n"); // ModelImporter...
Java
, public posicao: number = 0, public codcc: number = 0, public pgr: number = 0 ) { this.CodTrafegusEstacaoDePara = codtrafestacao; this.CodEmpresaTrafegus = codtrafegus; this.CodEmbarcador = codembarcador; this.CodTransportador = codtransportador; this.Embarcador = embarcador; this...
Typescript
�一|金平日|金光燮'}, {'57924', '金硃愛|金漢率|金慶喜|金平壹|康磐石|康盤石|金萬壹|金英日|高京澤|金錦率|金輔鉉|李寶益|金成柱|洪壹天|金旾鬆|金敬珎|金英壹|金平日|金光燮', '金硃愛|金漢率|金慶喜|金平壹|康磐石|康盤石|金萬壹|金英日|高京澤|金錦率|金輔鉉|李寶益|金成柱|洪壹天|金旾鬆|金敬珎|金英壹|金平日|金光燮'}, {'57925', '(?i)(室無賄賂|室無賄luo|室無賄洛|室無賄lu)', '(?i)(室無賄賂|室無賄luo|室無賄洛|室無賄lu)'}, {'57926', '(?i)baos*pP*s*大人', '(?i)baos*pP*s*大人'}, {'57927', '...
Lua
addArg(totalAtoms); kernel3->addArg(cc.getVelm()); kernel3->addArg(integration.getPosDelta()); kernel3->addArg(oldDelta); kernel3->addArg(integration.getStepSize()); kernel4->addArg(totalAtoms); kernel4->addArg(cc.getPosq()); kernel4->addArg(cc.getVelm()); ...
C++
_SceauxCastle\images\sfm\matches\sfm_data.json" -o "...\ImageDataset_SceauxCastle\images\sfm\matches" -p "...\ImageDataset_SceauxCastle\images\sfm\matches\vlad_pairs.txt" $ python kornia_demo.py -i "...\ImageDataset_SceauxCastle\images\sfm\matches\sfm_data.json" -m "...\ImageDataset_SceauxCastle\images\sfm\matches" -p ...
Markdown
sOn("jacocoTestReport") violationRules { rule { limit { counter = "LINE" value = "COVEREDRATIO" minimum = "0.5".toBigDecimal() } } } } tasks.named("check") { dependsOn("jacocoTestCoverageVerification") } tasks.registe...
Kotlin
if (emailAddresses != null) 'emailAddresses': emailAddresses!, if (etag != null) 'etag': etag!, if (events != null) 'events': events!, if (externalIds != null) 'externalIds': externalIds!, if (fileAses != null) 'fileAses': fileAses!, if (genders != null) 'genders': genders!, if (imClients != nul...
Dart
return err } // Touch invokes the touch operation and traces it. func (c *Client) Touch(key string, seconds int32) error { s := c.startSpan(internal.OperationTouch, key) err := c.Client.Touch(key, seconds) endSpan(s, err) return err } // Copyright The OpenTelemetry Authors // // Licensed under the Apache License...
Go
local dev = GetSelf() dofile(LockOn_Options.common_script_path.."devices_defs.lua") dofile(LockOn_Options.script_path.."devices.lua") dofile(LockOn_Options.script_path.."Systems/stores_config.lua") dofile(LockOn_Options.script_path.."command_defs.lua") dofile(LockOn_Options.script_path.."Systems/electric_system_api.lua...
Lua
Button(label: *const c_char, size: ImVec2) -> u8; pub fn igSmallButton(label: *const c_char) -> u8; pub fn igInvisibleButton(str_id: *const c_char, size: ImVec2) -> u8; pub fn igImage(user_texture_id: ImTextureID, size: ImVec2, uv0: ImVec2, uv1: ImVec2, tint_col: ImVec4, border_col: ImVec4) -> (); pub f...
Rust