content
stringlengths
2
6.21k
label
stringclasses
16 values
tEnv.(*testsetups.DeployedLocalDevEnvironment) if !ok { t.Fatal("expected tEnv to be a DeployedLocalDevEnvironment") } err = tLocalEnv.RestartChainlinkNodes(t) require.NoError(t, err) timeUntilTimeout := 10 * time.Minute if deadline, ok := t.Context().Deadline(); ok { timeUntilTimeout = time.Until(deadline)...
Go
= self.removed | other.removed return merged # Example: Collaborative playlist def collaborative_playlist_example(): # Two users building a playlist alice = ORSet("alice") bob = ORSet("bob") # Both add songs alice.add("Bohemian Rhapsody") alice.add("Stairway to Heaven") ...
Markdown
DateUtils.firstDayOfWeek(new DateTime(2018,4,2), DateTime.tuesday)); print(DateUtils.firstDayOfWeek(new DateTime(2018,4,3), DateTime.tuesday)); print(DateUtils.firstDayOfWeek(new DateTime(2018,4,4), DateTime.tuesday)); }); }); group("getDateFromWeekInfo()", () { test("returns dateFromWeek", ()...
Dart
/****************************************************************************** * Copyright (C) 2014-2020 Zhifeng Gong <gozfree@163.com> * * 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...
C
class Solution: def sortTransformedArray(self, nums: List[int], a: int, b: int, c: int) -> List[int]: ''' a,b,c f(x) = ax2 + bx + c num[i] nums = [-4,-2,2,4] a = 1, b = 3, c = 5 f(-4) = 1(-4)** 2 + 3(-4) + 5 = -16 + (-12) + 5 = -16 -12 + 5 = -23 ...
Python
pos_parent_body_ref = joint.m_parent_pos_parent_child_ref; rigid_body.m_body_T_parent_ref = joint.m_child_T_parent_ref; rigid_body.m_parent_pos_parent_body_ref = joint.m_parent_pos_parent_child_ref; rigid_body.m_joint_type = joint.m_type; // Set joint Jacobians. Note that the dimension is always 3x1 here to av...
C++
header args loadWebsocketConnections = (): void => { if (this.connection != null && (this.connection.OPEN || this.connection.CONNECTING)) { console.log('connection already open returning...'); this.resetIntervals(); return; } this.connection = this.socketargs !== undefined ? new WebSocket(this.url, ...
Typescript
TOREFAILURE22 = 4008 SI_STOREFAILURE23 = 4009 SI_STOREFAILURE24 = 4010 SI_STOREFAILURE29 = 4011 SI_STOREFAILURE31 = 4012 SI_STOREFAILURE32 = 4013 SI_STOREFAILURE33 = 4014 SI_STOREFAILURE34 = 4015 SI_NONSTR_ESOGAMEDATAENUMS_STORE_LAST_ENTRY = 4016 --Sync id for EsoGameDataEnums_Store last entry SI_NONSTR_ESOGAME...
Lua
&& G == other.G && B == other.B && A == other.A; } /// <inheritdoc /> public override int GetHashCode() { unchecked { int hashCode = R.GetHashCode(); hashCode = (hashCode * 397) ^ G.GetHashCode(); hashCode = (hashCo...
C#
ined(); trx.set("snooze", { name: "Hank" }) expect(trx.get("boring")).toEqual(data); expect(trx.get("snooze")["name"]).toBe("Hank"); expect(trx.labels()).toEqual(["boring", "snooze"]); }); it("serialize", function() { let data = { title: "All about cats!" } trx....
Typescript
`, () => { const randomFunction = jest.fn<() => number>(); const crossoverOperator = createUniformMutationOperator<TestGenotype>( 0.5, randomFunction, ); randomFunction.mockReturnValueOnce(0.5); randomFunction.mockReturnValueOnce(0.9); randomFunction.mockReturnValueOnce(0.4); r...
Typescript
Vote { return e.epochVote } func (e *payloadData) Payload() *Payload { return &e.payload } func CalcTxHash(txs types.Transactions) hash.Hash { return hash.Hash(types.DeriveSha(txs, trie.NewStackTrie(nil))) } func CalcMisbehaviourProofsHash(mps []MisbehaviourProof) hash.Hash { hasher := sha256.New() _ = rlp.Encod...
Go
/*/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (th...
C
: Text(t.misskey.save), ), ), ); } } import 'dart:async'; import 'package:misskey_dart/misskey_dart.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; import '../../model/account.dart'; import '../../model/pagination_state.dart'; import 'misskey_provider.dart'; part 'featured_g...
Dart
// // MD4Managed.cs - Message Digest 4 Managed Implementation // // Author: // Sebastien Pouliot (sebastien@ximian.com) // // (C) 2003 Motus Technologies Inc. (http://www.motus.com) // Copyright (C) 2004-2005,2010 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obt...
C#
private String tagletpath; /** * Enables the Javadoc tool to interpret multiple taglets. * <br/> * Example: * <pre> * &lt;taglets&gt; * &lt;taglet&gt; * &lt;tagletClass&gt;com.sun.tools.doclets.ToDoTaglet&lt;/tagletClass&gt; * &lt;!--&lt;tagletpath&gt;/home/tag...
Java
ed::to_owned) }) .unwrap_or_else(|| "target".to_owned()) ); Ok(branch.clone()) } fn git_prune_development( repo: &mut git_stack::git::GitRepo, branches: &[&str], dry_run: bool, ) -> eyre::Result<()> { if branches.is_empty() { return Ok(()); } let remote ...
Rust
fromlen); ssize_t recvfrom( int s, void* buf, int len, int flags, struct sockaddr* from, socklen_t* fromlen); ssize_t recvmsg(int s, struct msghdr* message, int fl); ssize_t send(int s, const char* buf, int len, int flags); ssize_t send(int s, const void* buf, int len, int flags); ssize_t sendt...
C
from . import ( register_cityscapes_panoptic, register_cityscapes_depth_panoptic, register_cityscapes_depth_panoptic_multi_pass, register_kitti, )
Python
zukuStatus() } setContent { NrfrTheme { if (showAbout) { AboutScreen(onBack = { showAbout = false }) } else if (isShizukuReady) { MainScreen(onShowAbout = { showAbout = true }) } else { ...
Kotlin
# CHECK: mfhc0 $20, $21, 0 # encoding: [0x02,0x95,0x00,0xf4] mfhc0 $1, $2, 1 # CHECK: mfhc0 $1, $2, 1 # encoding: [0x00,0x22,0x08,0xf4] mfhc1 $zero, $f6 # CHECK: mfhc1 $zero, $f6 # encoding: [0x54,0x06,0x30,0x3b] mfhc2 $23, $16 # CHECK: mfhc2 $23, $16 # ...
Assembly
if(coupletSummary.Contains("هوش مصنوعی")) { return new BadRequestObjectResult("لطفاً در صورت ویرایش خروجی‌های هوش مصنوعی عبارت هوش مصنوعی را از متن برگردان یا خلاصه حذف کنید."); } ...
C#
29A80 push {r4, lr} add r4, r0, #0 bne _02229A8A bl GF_AssertFail _02229A8A: add r4, #0x98 ldr r0, [r4] pop {r4, pc} thumb_func_start ov08_02229A90 ov08_02229A90: ; 0x02229A90 push {r4, lr} add r4, r0, #0 add r1, r4, #0 add r2, r4, #0 ldr r0, [r4, #0x30] add r1, #0xb8 add r2, #0xba bl sub_0200C7A0 add...
Assembly
#ifndef TBCHAIN_H #define TBCHAIN_H #include "tbchain.h" #include "backend.h" #include "../common/4s-datatypes.h" typedef struct _fs_tbchain fs_tbchain; typedef struct _fs_tbchain_it fs_tbchain_it; typedef enum { /* bit set on first block if chain is sparse */ FS_TBCHAIN_SPARSE = 1, /* bit set on first block if c...
C
: // //============================================================================= #include "toolutils/basepropertiescontainer.h" #include "tier1/KeyValues.h" CBasePropertiesContainer::CBasePropertiesContainer( vgui::Panel *parent, IDmNotify *pNotify, CDmeEditorTypeDictionary *pDict /*=NULL*/ ) : BaseClass( paren...
C++
cialMojangMappings()) modImplementation("net.fabricmc:fabric-loader:${rootProject.extra["fabricLoaderVersion"]}") modImplementation("net.fabricmc.fabric-api:fabric-api:${rootProject.extra["fabricVersion"]}") shadow(project(":common")) shadow(project(":mc2discord-core")) } loom { accessWidenerPath....
Kotlin
or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package qupath.lib.extension.monailabel.com...
Java
/* send saved byte and first input byte */ if (*state) { *result++ = table_com[(((*state) << 8) & 0xff00) | (*data++)]; len--; o++; } ii = len >> 1; while (i < ii) { *result++ = table_com[(data[0]<<8) | (data[1])]; data += 2; i++; o++; } /* if len has an odd number, we save byte for next call */...
C
newExact = removeTrailingZeroes(newExact) } return withCachedToString(toString, { base, exactPart: newExact, repeatingPart: newRepeating, }) } const fromArrays = (base: number, exactPart: number[], repeatingPart: number[]): Fraction => create(base, List(exactPart), List(repeatin...
Typescript
default-medium-focus-bg.gif); } /* line 512, ../../../ext-theme-neutral/sass/src/button/Button.scss */ .x-nlg .x-btn-default-medium-menu-active, .x-nlg .x-btn-default-medium-pressed { background-repeat: repeat-x; background-image: url(images/btn/btn-default-medium-pressed-bg.gif); } /* line 521, ../../../ext-them...
CSS
else { document.getElementById("sketchbooks")?.appendChild(containerArtikeln); } let titelArtikeln: HTMLHeadingElement = document.createElement("h3"); titelArtikeln.innerHTML = artikelnAll[index].name; containerArtikeln.appendChild(titelArtikeln); let beschreibungArtikeln: HTMLHeadingEl...
Typescript
y, "-", "+"); assertEquals(basicResult.length, 1); assertEquals(basicResult[0].xid, firstId); assertEquals(basicResult[0].field_values.get("f"), "v0"); const secondId = await client.xadd(key, "*", { f: "v1" }); const revResult = await client.xrevrange(key, "+", "-"); assertEquals(revResult.length, 2); a...
Typescript
size: contain; height: 50px; width: 152px; } @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { .AppInstallButtons .androidButton.NN { background-image: url(https://s.pinimg.com/webapp/style/images/NN-2x-85d7db2a.png); } } .AppInstallButtons .iosButton.NN { background: ur...
CSS
nc (this *QWindow) RequestActivate() { C.QWindow_requestActivate(this.h) } func (this *QWindow) SetVisible(visible bool) { C.QWindow_setVisible(this.h, (C.bool)(visible)) } func (this *QWindow) Show() { C.QWindow_show(this.h) } func (this *QWindow) Hide() { C.QWindow_hide(this.h) } func (this *QWindow) ShowMini...
Go
), i32x2_to_i32(0, YB_601FR - SHORT_HALF), FIX16_HALF, 1, ], [ i32x2_to_i32(XG_709FR - SHORT_HALF, XR_709FR), i32x2_to_i32(SHORT_HALF, XB_709FR), i32x2_to_i32(ZG_709FR, ZR_709FR - SHORT_HALF), i32x2_to_i32(YG_709FR, YR_709FR), i32x2_to_i32(0, ZB_70...
Rust
id] } // TODO : would this be better if each query type had its own method? static findAll(options: AllQueryOptions = {}) { // TODO : add offset to provide support for pagination // TODO : add query by string (substring of title or content) const limit = options.limit ? options.limit : 10 while (Ob...
Typescript
3AtY29sb3I6IzZBN0ZDRiIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjU1ZHSURfMV8pIiBkPSJNMTcyLjIzLDMwLjIxOGwtNS41Ny0xMi43OThMMTU0LjkwMywzLjIxMUwxNTQuNDU1LDBsMjIuMzk2LDEzLjUxbDguNTMyLDExLjI1N2wtNy4zNDctMTEuNzMxbDAuNzExLTEuNjZsLTAuNzExLTYuMjhsMTIuOTE2LDE0LjQ1N2wtMi4wM...
CSS
------------------------------------------------------- void MaterialSerializer::fireTextureUnitStateEvent(SerializeEvent event, bool& skip, const TextureUnitState* textureUnit) { ListenerListIterator it = mListeners.begin(); ListenerListIterator itEnd = mListeners.end(); while (it != itEnd) { (*it)-...
C++
eSpanStatus{ ID: replicaSet.ID.ToPB(), ComponentStatus: heartbeatpb.ComponentState_Stopped, CheckpointTs: 1500, } op.Check(nodeA, nonWorkingStatus) require.True(t, op.originNodeStopped.Load()) op.OnNodeRemove(nodeB) require.True(t, op.noPostFinishNeed) require.True(t, op.IsFinished()) re...
Go
-- chunkname: @scripts/managers/minion/minion_gibbing_templates/chaos_beast_of_nurgle_gibbing_template.lua local GibbingSettings = require("scripts/settings/gibbing/gibbing_settings") local GibbingThresholds = GibbingSettings.gibbing_thresholds local gibbing_template = { name = "chaos_beast_of_nurgle", torso = { ...
Lua
#pragma once #include "views/gamelist/IGameListView.h" #include "views/SystemView.h" class SystemData; // Used to smoothly transition the camera between multiple views (e.g. from system to system, from gamelist to gamelist). class ViewController : public GuiComponent { public: static void init(Window* window); sta...
C
require.Equal(t, int64(16*18)+32+180, m.ret0OffsetFromSP()) } func TestMachine_getVRegSpillSlotOffsetFromSP(t *testing.T) { m := &machine{spillSlots: make(map[regalloc.VRegID]int64)} id := regalloc.VRegID(1) offset := m.getVRegSpillSlotOffsetFromSP(id, 8) require.Equal(t, int64(16), offset) require.Equal(t, int64...
Go
out.println(i); i ++ ; System.out.println(i); i ++ ; System.out.println(i); ``` **Comparison of Method 1 and Method 2:** Both **Method 1** and **Method 2** output the numbers 1, 2, 3, 4, and 5 in order. The only difference between the two methods is the way the code is written. * Issues In **Method 1** : Since we are ...
Markdown
;bottom:20px}.lm_drop_tab_placeholder{float:left;width:100px;height:10px;visibility:hidden}.lm_header .lm_controls .lm_tabdropdown:before{content:'';width:0;height:0;vertical-align:middle;display:inline-block;border-top:5px dashed;border-right:5px solid transparent;border-left:5px solid transparent;color:white}.lm_head...
CSS
from app.models import db,environment,SCHEMA from app.models.parts.eye import Eye from sqlalchemy.sql import text def seed_eyes(): pink= Eye( type='pink', img_url='https://res.cloudinary.com/dmg8yuivs/image/upload/v1726714097/eyes1_he7ugr.png' ) yellow= Eye( type='yellow', i...
Python
let context = extract_context_with_account(&req)?; let id: String = req.match_info().get("id").unwrap().parse()?; if !BIOSFuns::reldb() .exists( &Query::select() .columns(vec![IamGroup::Id]) .from(IamGroup::Table) .and_where(Expr::col(IamG...
Rust
AG_START, this, this.onDragStart); this._uiIns.on(Event.DRAG_END, this, this.onDragEnd); } /** 修改属性值*/ setValue(key: string, value: any, isRecord: boolean = true, force: boolean = false): void { let keyItem: KeyItemCtrl = this.getParam(key); if (keyItem) { ...
Typescript
rt]# 和 #NoDataNotPrint[end]# 插入到模板中,代码之间的关联记录/子表没有数据则不会打印。": "6. 如需不打印沒有資料的關聯表/子表,請將代碼:#NoDataNotPrint[start]# 和 #NoDataNotPrint[end]# 插入到模板中,代碼之間的關聯資料/子表沒有資料則不會打印。", "请选择子表中的字段": "請選擇子表中的欄位", "子表正在导入,请稍后": "子表正在導入,請稍候", "选择子表或关联记录": "選擇子表或關聯資料", "计算名称为“工序”的子表数量(实际有7道工序)": "計算名稱為“工序”的子表數量(實際有7道工序)", "子表数量达到上限...
JavaScript
( ex->in_debugger_holdlist() ) ex->revive_debugged(); } destroy(); } void NPC::start_script() { passert( ex == nullptr ); passert( !script.get().empty() ); Core::ScriptDef sd( script, template_->pkg, "scripts/ai/" ); // Log( "NPC script starting: %s\n", sd.name().c_str() ); ref_ptr<Bscript::ESc...
C++
Scale = ObjectDataParser._getBoolean(rawData, ObjectDataParser.INHERIT_SCALE, true); bone.length = ObjectDataParser._getNumber(rawData, ObjectDataParser.LENGTH, 0) * this._armature.scale; bone.name = ObjectDataParser._getString(rawData, ObjectDataParser.NAME, null); if (ObjectDataPa...
Typescript
}, }; if (id) { condition.where['id'] = Not(id); } const found = await this.dbModel.findOne(condition); if (found) { throw new BadRequestException(`${key} already exists`); } } } private getModelName(): string { return this.dbModel.metadata.name...
Typescript
viding the svg */ .main-trackList-playingIcon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg id='playing-icon' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cstyle%3E %23playing-icon %7B fill: %2320BC54; %7D @keyframes play %7B 0%25 %7Btransform: scaleY(1);%7D 3.3%25 %7Btransform: scaleY(...
CSS
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using HarmonyLib; using RimWorld; using SmashTools.Patching; using UnityEngine.Assertions; using Vehicles.Config; using Verse; namespace Vehicles.Compatibility; internal class Compatibility_VanillaExpandedFishing : Conditiona...
C#
sk"] = { [32] = { [1] = 1867, [2] = 2930, [3] = 2329, [4] = 2198, ["inf1"] = "elite Beast Warrior", ["inf2"] = "Level 38", ["icon"] = 1, }, }, ["Greater Kraul Bat"] = { [52] = { [1] = 0, [2] = 0, [3] = 0, [4] = 0, ["inf1"] = "elite Beast Warrior", ["inf2"] = "Level 32", ...
Lua
de(unascii(message), secret) == data assert decode(encode(data, secret), secret) == data assert message2 == ascii(encode(data, secret2, salt)) assert decode(unascii(message2), secret2) == data assert decode(encode(data, secret2), secret2) == data test() def main(sys): progname = sy...
Python
// scale and zeroPoint should be zero for scalars and non-fixed point tensors // Quantized: // scale: a 32 bit floating point value greater than zero // zeroPoint: a 32 bit integer, in range [0, 255] if (type->type == ANEURALNETWORKS_TENSOR_QUANT8_ASYMM) { if (!(type->scale > 0.0f)) { VERBOS...
C++
.style('dominant-baseline').value; if (this.style('alignment-baseline').hasValue()) ctx.textBaseline = this.style('alignment-baseline').value; } this.getBoundingBox = function () { // TODO: implement return new svg.BoundingBox(this.attribute('x').toPixels('x'), this.attribute('y').toPixels('y'), 0...
JavaScript
okie('id',secret=secret) for key in param_keys: nid = request.forms.getunicode(key) cmstools.check_news(nid,uid,user_type) redirect('/ctxmgr/' + lid) @route('/delctx/<nid>') def delctx(nid): uid = request.get_cookie('id',secret=secret) if nid and uid: cmstools.del_news(nid,uid) ...
Python
ze: unset; color: var(--color-text-alternative); text-transform: uppercase; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .confirm-page-container-content__tab .dropdown__select { color: var(--color-text-alternative); text-transform: uppercase; } .confirm-page-contai...
CSS
.getBytes(), 0, id.getLength()); Key nextKey = new Key(pointer.getRow(), columnFamily, newColumnQualifier); Range r = new Range(nextKey, true, scanRange.getEndKey(), scanRange.isEndKeyInclusive()); if (log.isTraceEnabled()) { log.trace(this + " moving to: " + r); } ...
Java
/// emitted. /// /// For example, suppose you have entityA and entityB. You want entityA to be notified /// whenever entityB enters within 100 pixels of it. You can do this by calling /// addWatchedEntity(entityB, entityA, 100); /// @param range the range of the watching entity that the watched...
C
seasons: `http://static.developer.riotgames.com/docs/lol/seasons.json`, gameQueues: `http://static.developer.riotgames.com/docs/lol/queues.json`, maps: `http://static.developer.riotgames.com/docs/lol/maps.json`, gameTypes: `http://static.developer.riotgames.com/docs/lol/gameTypes.json`, gameModes: ...
Typescript
plingEntry(ItemStack aSapling, WoodEntry aWood) { if (ST.invalid(aSapling)) return; mSapling = ST.amount(1, aSapling); mCount = UT.Code.bindStack(ST.size(aSapling)); mWoodEntry = aWood; if (mWoodEntry != null) { mWoodEntry.mSaplingEntries.add(this); mMaterialSapling = mWoodEntry.mMaterialWood; } ...
Java
sion, resource_prefix, model_folder, copy_resources) def add_inertial(self, mass): """Initialize mass and moments of inertia for box model. > *Input arguments* * `mass` (*type:* `float`): Mass in kilograms """ assert isinstance(mass, float) or is...
Python
key, Some(faucet_addr)); let rpc_client = RpcClient::new_with_commitment(test_validator.rpc_url(), CommitmentConfig::processed()); let mut file = File::open(pathbuf.to_str().unwrap()).unwrap(); let mut program_data = Vec::new(); file.read_to_end(&mut program_data).unwrap(); let max_len = p...
Rust
", 2); // PREF: Require manual intervention to autofill known username/passwords sign-in forms // http://kb.mozillazine.org/Signon.autofillForms // https://www.torproject.org/projects/torbrowser/design/#identifier-linkability user_pref("signon.autofillForms", false); // PREF: Disable formless login capture // ht...
JavaScript
precision add %g0, 0x8, %g4 ldd [%l6+%g4], %f2 ! double precision add %g4, 0x8, %g4 ldd [%l6+%g4], %f4 ! double precision add %g4, 0x8, %g4 ldd [%l6+%g4], %f6 ! double precision add %g4, 0x8, %g4 ldd [%l6+%g4],...
Assembly
{line-height:28px;height:28px}.layoutLeft,.layoutRight,.leftNews{height:970px}.leftVideoNews .bd{padding:12px 0 7px}.rightXingzuoyunshi{height:auto;padding-bottom:6px}.rightXingzuoyunshi .ft{height:90px}.rightXingzuoyunshi .ft p{line-height:26px;height:82px;margin-top:10px}#productNav a{color:#294c7f;font-family:arial}...
CSS
Data.observe(this, Observer { it?.data?.let { loginRsp -> UserContext.instance.loginSuccess(loginRsp.username, loginRsp.collectIds) toast(getString(R.string.login_suc)) finish() } }) } override fun onBackPressed() = finish() } pac...
Kotlin
, GuessDelimiter) { const std::vector<std::string_view> example_1 = {"id,text", "4,Hello", "6,world", "3,!"}; EXPECT_EQ(CsvFormatReader::GuessDelimiter(example_1), ','); const std::vector<std::string_view> example_2 = { "1|2,5|hello", "2|3,5|world", }; EXPECT_EQ(CsvFormatReader::GuessDelimiter(e...
C++
CodeWriter.Write(content); using (var bitmap = new System.Drawing.Bitmap(pixelData.Width, pixelData.Height, System.Drawing.Imaging.PixelFormat.Format32bppRgb)) { var bitmapData = bitmap.LockBits(new System.Drawing.Rectangle(0, 0, pixelData.Wid...
C#
gin: 0; padding: 2px 5px; display: inline-table; border-radius: 5px; } .shj-numbers { padding-left: 5px; counter-reset: line; } .shj-numbers div { padding-right: 5px; } .shj-numbers div::before { color: #999; display: block; content: counter(line); opacity: 0.5; text-align: right; margin-right: 5px; count...
CSS
Name = proxyName.replace('.', '/'); int classNameIndex = org.mini.vm.ByteCodeConstantPool.addClass(pool, internalProxyName); int superClassIndex = org.mini.vm.ByteCodeConstantPool.addClass(pool, "java/lang/reflect/Proxy"); // 3. 添加实现的接口 int[] interfaceIndices = new int[i...
Java
_base_ = [ '../_base_/models/twins_pcpvt-s_upernet.py', '../_base_/datasets/ade20k.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py' ] checkpoint = 'https://download.openmmlab.com/mmsegmentation/v0.5/pretrain/twins/alt_gvt_small_20220308-7e1c3695.pth' # noqa model = dict( ba...
Python
syn(ISS_2, WindowSize::DEFAULT) => ListenOnSegmentDisposition::SendSynAckAndEnterSynRcvd( Segment::syn_ack(ISS_1, ISS_2 + 1, WindowSize::DEFAULT), SynRcvd { iss: ISS_1, irs: ISS_2, timestamp: Some(DummyInstant::default()), r...
Rust
// ModernTheme.h: interface for the CModernTheme class. // // This file is a part of the XTREME TOOLKIT PRO MFC class library. // 1998-2005 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED...
C
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
C
("x is over 10") } //还可以不带参数 when { x !is Int -> println("x is not Int") (x and 1) == 0 -> println("x is even") else -> println("x is odd") } //同样,还可以把when用作表达式 val isOdd = when { (x and 1) == 1 -> true else -> false } } fun testIterator(): Unit { ...
Kotlin
use crate::data::{Point, PointId, PointLocation, Polygon, TriangleView}; use crate::Orientation; use crate::PolygonScalar; // use rand::rngs::mock::StepRng; use rand::rngs::SmallRng; use rand::Rng; use rand::SeedableRng; /// $O(n^2)$ Polygon triangulation. Ears are selected in a pseudo-random manner. pub fn earclip<...
Rust
M()); m_ForwardEffect.SetProjMatrix(m_pLightCamera->GetProjMatrixXM(true)); m_SkyboxEffect.SetViewMatrix(m_pLightCamera->GetViewMatrixXM()); m_SkyboxEffect.SetProjMatrix(m_pLightCamera->GetProjMatrixXM(true)); } else { // 注意:反向Z XMMATRIX ShadowProjRZ = m_CSManager.Get...
C++
ad ?.javaClass}" } return this.payload as BesuMessageData } } private val log = LogManager.getLogger(this.javaClass) val emittedQbftMessages = CopyOnWriteArrayList<BftMessage<*>>() val emittedBlockMessages = CopyOnWriteArrayList<SealedBeaconBlock>() private fun decodedMessage(messa...
Kotlin
{ first = 0xabc0, last = 0xabff }, ["[韩文音节]"] = { first = 0xac00, last = 0xd7af }, ["[韩文字母扩展-B]"] = { first = 0xd7b0, last = 0xd7ff }, ["[高位替代区]"] = { first = 0xd800, last = 0xdb7f }, ["[高位专用替代]"] = { first = 0xdb80, last = 0xdbff }, ["[低位替代区]"] = { first = 0xdc00, last = 0xdfff }, ["[私用区]"] = { ...
Lua
30 多万公里高速公路的高精地图 经压缩处理之后也需要 6GB 到 20GB 不等的存储量。GB 级别的存储需求,不仅远远超出目前主流车载存储器方案的存储容量,而且影响产线效率,出产量产擦写数据可能每片需要半小时之久,这意味着必须考虑云存储方案。如果采用分布式云存储方案,通过云端存储部分高精地图,通过 5G 网络实现下载和更新,依然会存在影响车载存储器寿命的问题:车载存储器的反复擦写寿命一般在 1000 次左右,反复更新擦写对车载存储的寿命影响很大,如果不采取限制措施,可能不到 5 年,存储硬件就会达到设计寿命。 从以上问题可以看出,高精地图在自动驾驶汽车中的量产化应用, 必须基于车联网的架构,以实现地图的云存储、实时更新...
Markdown
Saiya Jin (1990-10-27)(Bandai)(JP)[tr pt RaphFS][100%].png", "Named_Titles/Dragon Ball Z - Kyoushuu! Saiya Jin (1990-10-27)(Bandai)(JP)[tr pt RaphFS][a][100%].png", "Named_Titles/Dragon Ball Z - Kyoushuu! Saiya Jin (1990-10-27)(Bandai)(JP)[tr pt Tradu-Roms][45%].png", "Named_Titles/Dragon Ball Z - Kyoushuu! Saiya...
Lua
me := range names { nullterm = append(nullterm, name...) nullterm = append(nullterm, 0) } return xprop.ChangeProp(xu, xu.RootWin(), 8, "_NET_DESKTOP_NAMES", "UTF8_STRING", nullterm) } // DesktopGeometry is a struct that houses the width and height of a // _NET_DESKTOP_GEOMETRY property reply. type DesktopGeome...
Go
/* Copyright (c) 2009-2016 Johan Lindh <johan@linkdata.se> This file is part of LCDHost. LCDHost 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 3 of the License, or (at your option) a...
C
selection forward</Keybinding> <Keybinding value="⇧+⇡" appleValue="⇧+⌃+P">extend selection upward</Keybinding> <Keybinding value="⇧+⇣" appleValue="⇧+⌃+N">extend selection downward</Keybinding> <Keybinding value="⇥">move to next placeholder</Keybinding> <Keybinding value="⇧+⇥">move to previous placeholder</Keybinding> <...
Markdown
< 0) { len = half; } else { from = mid + 1; len = len - half -1; } } return from; } // faster than lowerSaved when val is at the beginning of [from:to[ int lowerSaved3(int from, int to, int val) { int f = from, t = f + 1; while (t < to) { if (compareSave...
Java
); FT_LOCAL( void ) af_latin_metrics_scale( AF_LatinMetrics metrics, AF_Scaler scaler ); FT_LOCAL( void ) af_latin_metrics_init_widths( AF_LatinMetrics metrics, FT_Face face ); FT_LOCAL( void ) af_latin_metrics_check_digits( AF_L...
C
d.currentThread().setPriority(Thread.currentThread().getPriority() + 1); } isAnimation = false; Thread.currentThread().setPriority(Thread.currentThread().getPriority() - 1); bPaintBoardOnly = true; repaint(); Thread.currentThread().setPriority(Thread.currentThread().get...
Java
vileges(char *pPriv, BOOL add) { BOOL bRet = FALSE; TOKEN_PRIVILEGES tkp; HANDLE hToken; if (!fOpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY,&hToken)) return bRet; if (!fLookupPrivilegeValue(NULL, pPriv, &tkp.Privileges[0].Luid)) { CloseHandle(hToken); return bRet; } tkp.Pr...
C++
path), fromPrev, keepName))); } // OpenArchive.cpp #include "StdAfx.h" // #define SHOW_DEBUG_INFO #ifdef SHOW_DEBUG_INFO #include <stdio.h> #endif #include "../../../../C/CpuArch.h" #include "../../../Common/ComTry.h" #include "../../../Common/IntToString.h" #include "../../../Common/StringConvert.h" #include "../...
C++
018.13-.04.26-.04.396 0 1.654 1.346 3 3 3s3-1.346 3-3-1.346-3-3-3c-.794 0-1.512.315-2.049.82L8.96 12.397c.018-.131.04-.261.04-.397s-.022-.266-.04-.397l5.991-3.423c.537.505 1.255.82 2.049.82 1.654 0 3-1.346 3-3s-1.346-3-3-3-3 1.346-3 3c0 .136.022.266.04.397L8.049 9.82A2.982 2.982 0 006 9c-1.654 0-3 1.346-3 3z"/></svg>';...
Dart
_boot_setup /* plat_secondary_cold_boot_setup() is not supposed to return */ secondary_panic: b secondary_panic do_primary_cold_boot: .endif /* _secondary_cold_boot */ /* --------------------------------------------------------------------- * Perform any processor specific actions upon reset e.g. cache, TLB...
Assembly
el.setEnableActionListener { enableCheckBox -> element.isEnable = enableCheckBox.isSelected elementSize = if (enableCheckBox.isSelected) elementSize + 1 else elementSize - 1 mTitleName.isSelected = elementSize == elements.size } itemJPanel.setClick...
Kotlin
pub name: ast::Ident, /// The equals token. pub eq: T![=], /// The optional body of the module declaration. pub expr: ast::Expr, } impl ItemConst { /// Get the descriptive span of this item, e.g. `const ITEM` instead of the /// span for the whole expression. pub fn descriptive_span(&sel...
Rust
OM_SUCCESS_1 = 101, GST_FLOW_CUSTOM_SUCCESS = 100, /* core predefined */ GST_FLOW_RESEND = 1, GST_FLOW_OK = 0, /* expected failures */ GST_FLOW_NOT_LINKED = -1, GST_FLOW_WRONG_STATE = -2, /* error cases */ GST...
C#
ps +2 \\.. .de AU .ft 2 .if n .ul 0 .ce 100 .sp .NL \\.. .de AI .ft 1 .ce 100 .if n .ul 0 .if n .sp .if t .sp .5 .NL \\.. .RA .rm RA .rn FJ FS .rn FK FE .nf .ev 1 .ps \\n(PS-2 .vs \\n(.s+2p .ev .if !\\n(KG .nr FP 0 .if \\n(GA>1 .if \\n(KG=0 .nr GA 0 \" next UNIX must be flagged. .nr KG 0 .if \\n(FP \{\ . FS . FG . FE\}...
Assembly
0:n(832),400:n(11501),500:"#f44336",600:n(5968),700:n(7409),800:"#c62828",900:n(6723),A100:n(1550),A200:n(18748),A400:n(18620),A700:"#d50000"};r.default=i},{}],125:[function(e,t,r){"use strict";var n=_0x2a7f2f,i=e(n(14707)),a=e(n(17615));Object[n(3959)](r,n(11678),{value:!0}),r[n(20469)]=void 0;var o=a(e(n(16416))),s=(...
JavaScript
5.1-9.8-6.9-15.5-16.2-15.5z"],squarespace:[512,512,[],"f5be","M186.12 343.34c-9.65 9.65-9.65 25.29 0 34.94 9.65 9.65 25.29 9.65 34.94 0L378.24 221.1c19.29-19.29 50.57-19.29 69.86 0s19.29 50.57 0 69.86L293.95 445.1c19.27 19.29 50.53 19.31 69.82.04l.04-.04 119.25-119.24c38.59-38.59 38.59-101.14 0-139.72-38.59-38.59-101.1...
JavaScript