content
stringlengths
2
6.21k
label
stringclasses
16 values
lShape TRUNK_SHAPE_EAST = Block.box(4.0D, 4.0D, 4.0D, 16.0D, 12.0D, 12.0D); protected static final VoxelShape BASE_ENGINE_SHAPE_EAST = Shapes.or(TRUNK_SHAPE_EAST, BASE_SHAPE_EAST); protected static final VoxelShape BASE_SHAPE_WEST = Block.box(12.0D, 0.0D, 0.0D, 16.0D, 16.0D, 16.0D); protected static fi...
Java
^,]+]] // CK19-DAG: [[BP0:%.+]] = getelementptr inbounds {{.+}}[[BP]], i{{.+}} 0, i{{.+}} 0 // CK19-DAG: [[P0:%.+]] = getelementptr inbounds {{.+}}[[P]], i{{.+}} 0, i{{.+}} 0 // CK19-DAG: [[CBP0:%.+]] = bitcast i8** [[BP0]] to [100 x i32]** // CK19-DAG: [[CP0:%.+]] = bitcast i8** [[P0]] to i32** // CK19-DAG:...
C++
"The 'location' and 'branch' flags are mutually exclusive.") } if !isValidBranch(*branchFlag) { die("The 'branch' flag must be one of the following: [auto|stable|ptb|canary]") } if *installFlag || *updateFlag { if !<-GithubDoneChan { die("Not " + Ternary(*installFlag, "installing", "updating") + " as fetch...
Go
throw "item doesn't exist"; } const price = +(product.price * unit); if (this.products.length == 1) { this.store = ""; } this.products = this.products.filter((prod) => prod !== product); this.totalItem -= unit; this.totalPrice -= price; return true; }...
Typescript
%, hsla(0deg, 0%, 0%, 0.419) 84.5%, hsla(0deg, 0%, 0%, 0.434) 91.9%, hsla(0deg, 0%, 0%, 0.44) 100%);padding:0;touch-action:none;display:flex;justify-content:space-between;--carousel-button-svg-width: 20px;--carousel-button-svg-height: 20px;opacity:var(--fancybox-opacity, 1);text-shadow:var(--fancybox-toolbar-text-shado...
CSS
addEventListener('scroll', this._updateStickyHeaderOnScroll); // Use ResizeObserver where available. // TODO: there is an issue with incorrect position numbers and, as a result, performance // issues due to layout thrashing. // See https://github.com/GoogleChrome/lighthouse/pull/9023/files#r288...
JavaScript
"${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT} is valid: "+ "Error: %v", err)) } return kConfig } // MIT License // // Copyright (c) Microsoft Corporation. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated document...
Go
Definition> FactionsById => factionsById; public IReadOnlyDictionary<int, UnitInfoAI> UnitInfoAIById => unitInfoAIById; public IReadOnlyDictionary<ClassType, ClassInfo> ClassesByType => classesByType; public SpellInfoContainer Spells => definition.Spells; protected override void OnRegis...
C#
// This policy applies only when the domain of <code>ServerId</code> is /// Amazon S3. Amazon EFS does not use session policies. /// /// For session policies, Transfer Family stores the policy as a JSON blob, /// instead of the Amazon Resource Name (ARN) of the policy. You save the /// policy as a JSON blob a...
Dart
' " + " xmlns=\"http://www.opengis.net/wfs/2.0\" " + " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" />"; Document doc = postAsDOM("wfs", xml); assertEquals("wfs:WFS_Capabilities", doc.getDocumentElement().getNodeName()); assertEquals("2.0.0", doc.getDo...
Java
= {"\"Mr. Goldmine's Wild Ride\" Kill Credit",nil}, [46460] = {"Harpoon Chain Bunny",nil}, [46461] = {"Ramkahen Prisoner Credit",nil}, [46462] = {"Generic Trigger LAB (Uninteractible)",nil}, [46463] = {"Бадд",nil}, [46464] = {"Generic Bunny - PRK - Extra-Small",nil}, [46465] = {"Nar'shola Ward Bunny",nil}, [46466] = {"...
Lua
eref(), A_FEW); assert_eq!(Nbstr::from_str(A_FEW).deref(), A_FEW); assert_eq!(Nbstr::from(A_FEW.to_string()).deref(), A_FEW); } #[test] fn into() { let l1: &str = &Box::<str>::from(Nbstr::from("str".to_string().into_boxed_str())); assert_eq!(l1, "str"); let l2: &str = &String::from(Nbstr::from("str"...
Rust
c2, 0x12d1, 0x12dd, 0x12e9, 0x12f2, 0x12f2, 0x12fb, 0x1307, 0x1316, 0x1328, 0x1337, 0x1343, 0x134c, 0x1355, 0x135e, 0x1367, 0x1370, 0x137c, 0x1385, 0x1391, 0x139d, 0x13a9, 0x13b5, 0x13be, 0x13c7, 0x13d3, 0x13dc, 0x13e5, 0x13ee, 0x140c, 0x141e, 0x1427, 0x1430, 0x143f, 0x144e, 0x1457, 0x1466, 0x1472, 0x147...
Go
ContentFormat::YAML => serde_yaml::to_string(&json)?, ContentFormat::TEXT => String::from(content), } } ContentFormat::YAML => { let yaml: serde_yaml::Value = serde_yaml::from_str(content) .map_err(|e| Error::new(e).context("Unable to par...
Rust
box-sizing: inherit; } .ec-sliderRole img { width: 100%; } .ec-sliderRole ul { padding: 0; list-style: none; } .ec-sliderItemRole { margin: 0 auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; font-size: 16px; line-height: 1.4; color: #525263; -webkit-text-size-adjust: 100%;...
CSS
0093C */ lui $t1, %hi(D_8006CC78) /* 467E80C 8007F244 78CC2925 */ addiu $t1, $t1, %lo(D_8006CC78) /* 467E810 8007F248 40100200 */ sll $v0, $v0, 1 /* 467E814 8007F24C 21104900 */ addu $v0, $v0, $t1 /* 467E818 8007F250 00004294 */ lhu $v0, 0x0($v0) /* 467E81C 8007F254 11002392 */ lbu...
Assembly
kdirAll(testRaftGroupTwoFolder, 0700) if err != nil { panic(err) } testRaftGroupThreeFolder = path.Join(*jenkinsWorkspace, "data", "vdl3", caseName) err = os.MkdirAll(testRaftGroupThreeFolder, 0700) if err != nil { panic(err) } testRaftGroupFourFolder = path.Join(*jenkinsWorkspace, "data", "vdl4",...
Go
a) ShareFunc(key string, value interface{}) { i.sharedFuncMap[key] = value i.parsedTemplate = nil } // ShareViewData function. func (i *Inertia) ShareViewData(key string, value interface{}) { i.sharedViewData[key] = value } // WithProp function. func (i *Inertia) WithProp(ctx context.Context, key string, value int...
Go
final Graph<String> g = new Graph.Builder<String>().build(); assertEquals(g.size(), 0); assertEquals(g.vertices().size(), 0); assertEquals(g.sourcesCount(), 0); assertEquals(g.sinksCount(), 0); verifyGraph(g); } @Test public void emptyNamedGraph() { assertEquals("empty", new Graph.Buil...
Java
#if !defined(AFX_DYNSPLITVIEW2_H__76E949DA_9CAD_11D1_907F_00A024782894__INCLUDED_) #define AFX_DYNSPLITVIEW2_H__76E949DA_9CAD_11D1_907F_00A024782894__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 // DynSplitView2.h : header file // #include"DSplitDoc.h" ////////////////////////////////////////...
C
*/ lw $t1, 0xbc($s1) /* 02323C 8002263C 24C610E8 */ addiu $a2, %lo(D_800410E8) # addiu $a2, $a2, 0x10e8 /* 023240 80022640 2404001E */ li $a0, 30 /* 023244 80022644 24050078 */ li $a1, 120 /* 023248 80022648 0C0087E9 */ jal crash_screen_print /* 02324C 8002264C AFA90014 */ sw $t1, 0x14($sp) /* 023...
Assembly
if expression is not valid if (parentGet === noop && optional) break; destination[scopeName] = function(locals) { return parentGet(scope, locals); }; break; } }); function recordChanges(key, currentValue, previousValue) { if (is...
JavaScript
n share; } public static void AssertAreEqual(CloudFile expected, CloudFile actual) { if (expected == null) { Assert.IsNull(actual); } else { Assert.IsNotNull(actual); Assert.AreEqual(expe...
C#
""" Advanced Uncertainty Quantification Module Enhanced uncertainty analysis with epistemic/aleatoric decomposition, uncertainty-guided active learning, and automatic DFT validation workflow. Author: lunazhang Date: 2023 """ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from t...
Python
рцогу Николасу Зверенхоффу."}}, [5264] = {"Лорд Максвелл Тиросс", {"Тебе оказана большая честь, <имя>.","Лорд Максвелл хочет наградить тебя за твои заслуги перед Серебряным Рассветом!","Поверь мне, это большая честь – Максвелл уже много лет не удостаивал никого аудиенции."}, {"Поговорите с лордом Максвеллом Тироссом. В...
Lua
* The key for the dark mode [System.setProperty] [darkMode]. */ const val DARK_MODE_KEY = "darkMode" /** * An indicator of whether to show the user interface in dark (Darcula) * mode. */ val darkMode: Boolean = System.getProperty(DARK_MODE_KEY)?.equals("true") ?: true /** * The numeric ma...
Kotlin
/* * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or...
C
case JET_IdxInfoSortId: cbMin = sizeof(SORTID); break; case JET_IdxInfoSysTabCursor: case JET_IdxInfoOLC: case JET_IdxInfoResetOLC: FireWall( OSFormat( "FeatureNAGetIdxInfo:%d", (INT)InfoLevel ) ); Error( ErrERRCheck( JET_errFeatureNotAvai...
C++
} public static <K, V> Map.Entry<K, V> entry(@NotNull final K key, @NotNull final V value) { requireNonNull(key); requireNonNull(value); return new AbstractMap.SimpleImmutableEntry<>(key, value); } @SuppressWarnings("varargs") @SafeVarargs public static <K, V> Map<K, V...
Java
for each layer/level combination. for level in range.levels.clone() { for layer in range.layers.clone() { barrier.u.Subresource = target.calc_subresource(level as _, layer as _, 0); raw_barriers.push(bar...
Rust
maxTests, float startAngle, float drawingDeltaAngle, boolean shading, boolean safe){ forAvailableEndPoints(pixels, startX, startY, maxLength, maxTests, startAngle, drawingDeltaAngle, shading, safe, forEndPoints); } public void forAvailableEndPoints(IPixelData pixels, int startX, int startY, int maxLen...
Java
nsertCoin(insertedObject: string): void { const coinValueInserted = this.acceptableCoins[insertedObject]; if (coinValueInserted) { this.recalculateDisplay(coinValueInserted); } else { this.addCoinToCoinReturn(insertedObject); } } selectProduct(desiredProduct: string): void { const p...
Typescript
tStream(); sslOS.write(280); sslOS.flush(); sslIS.read(); } finally { sslSocket.close(); } } // get the ssl context private static SSLContext getSSLContext(boolean isServer) throws Exception { // generate certificate from cert string...
Java
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
Python
oFormulario.validarObrigatorioAlfanumerico, onChanged: (text) { _formFoiAlterado = true; }, ), ), ), Expanded( flex: 0, child: IconButton( tooltip: 'Importar Banco', icon: const Icon(Icons.search), onPre...
Dart
fn new(device: &wgpu::Device, mesh: &Mesh) -> Self { let index_buffer = device.create_buffer_init(&wgpu::util::BufferInitDescriptor { label: Some("Index Buffer"), contents: bytemuck::cast_slice(mesh.indices.as_slice()), usage: wgpu::BufferUsages::INDEX, }); l...
Rust
* * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the Lice...
Kotlin
Yellow, "Your team has recovered a silver seal, worth 20. You are a little closer to reaching your goal of 300."); elseif e.signal == 3 then -- Gold Seal of Subversion = 30 pts points = points + 30; eq.zone_emote(MT.Yellow, "Your team has recovered a gold seal, worth 30. You are a little closer to reaching y...
Lua
/* * SPDX-License-Identifier: GPL-3.0-only * MuseScore-CLA-applies * * MuseScore * Music Composition & Notation * * Copyright (C) 2021 MuseScore BVBA and others * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * publi...
C
P_PRECOND_END:%.*]] // CHECK9: omp.precond.then: // CHECK9-NEXT: store i32 0, ptr [[DOTOMP_LB]], align 4 // CHECK9-NEXT: [[TMP6:%.*]] = load i32, ptr [[DOTCAPTURE_EXPR_2]], align 4 // CHECK9-NEXT: store i32 [[TMP6]], ptr [[DOTOMP_UB]], align 4 // CHECK9-NEXT: [[TMP7:%.*]] = load i64, ptr [[DOTPREVIOUS...
C++
none; } .editormd-preview-theme-dark .editormd-preview-container .fa-emoji { color: #B4BF42; } .editormd-preview-theme-dark .editormd-preview-container .katex { color: #FEC93F; } .editormd-preview-theme-dark .editormd-toc-menu > .markdown-toc { background: #fff; border: none; } .editormd-preview-theme-dark .edi...
CSS
-col-sm-offset3 { margin-left: 12.5%; } .pear-col-sm-offset4 { margin-left: 16.66%; } .pear-col-sm-offset5 { margin-left: 20.83%; } .pear-col-sm-offset6 { margin-left: 25%; } .pear-col-sm-offset7 { margin-left: 29.16%; } .pear-col-sm-offset8 { margin-left: 33.33%; } .pear-col-sm-offset9 { ...
CSS
; +======================================================================+ ; | 4K 4-BITS MEGA SCROLLER, by DYNO SILLY VENTURE 2K17 | ; +======================================================================+ ; | Copyright (c) 2017 Frederic Poeydomenge <dyno@aldabase.com> | ; +-----------------...
Assembly
: remove it with native event support PollEvent::Waker => todo!(), } }); } } #[cfg(test)] mod tests { use super::*; use std::time::{Duration}; lazy_static::lazy_static! { static ref TIMEOUT: Duration = Duration::from_millis(1000); } #[test] fn c...
Rust
�跳动在“无服务器计算”领域的技术能力和布局。除此之外,字节跳动也在持续探索相关技术——比如它的数仓产品ByteHouse,就已经实现了和AWS(亚马逊云)的集成。 需要注意的是:目前这些产品(比如ByteGAP)可能更多是字节跳动内部使用,或者针对特定合作场景提供,还没有像AWS Lambda那样,作为一款“通用型无服务器工具”向所有外部用户开放使用。## GRIN-MoE:更高效的 AI 模型,擅长编程和数学 GRIN-MoE(梯度信息混合专家模型)是微软开发的一种新型 AI 模型,旨在提高 AI 在处理复杂任务(如编程和数学)时的效率和准确性。 简单来说,它就像一个拥有多个专家的团队,每个专家擅长不同的领域。 **核心...
Markdown
// UsagePercent() > high_encode_usage_threshold_percent => overuse. // UsagePercent() < low_encode_usage_threshold_percent => underuse. TEST_F(OveruseFrameDetectorTest, TriggerOveruse) { // usage > high => overuse overuse_detector_->SetOptions(options_); EXPECT_CALL(mock_observer_, AdaptDown()).Times(1); Trigg...
C++
ButtonStates(value: Int?) { binding.minusButton.isEnabled = value != null && value > 0 binding.plusButton.isEnabled = value == null || value < MAX_VALUE } override fun onCreateWidgetView( context: Context, prompt: FormEntryPrompt, answerFontSize: Int ): View { ...
Kotlin
After).toString()], if (creationTimeBefore != null) 'creationTimeBefore': [_s.iso8601ToJson(creationTimeBefore).toString()], if (maxResults != null) 'maxResults': [maxResults.toString()], if (nameContains != null) 'nameContains': [nameContains], if (nextToken != null) 'nextToken': [nextT...
Dart
, world!"); println!("Success!"); } ``` 4. 🌟🌟🌟 ```rust,editable // Fix all errors without adding newline fn main() { let s = String::from("hello"); s.push(','); s.push(" world"); s += "!".to_string(); println!("{}", s); } ``` 5. 🌟🌟 `replace` can be used to replace substring ```rust,edi...
Markdown
this.jump_img.visible = false; },this,100) } death(isLanding:boolean = false){ GameData.isAlive = false; if( !isLanding){ this.death_img.x = (this.width - this.jump_img.width)/2; this.death_img.y = - this.death_img.height; this.death_img.visible = true; egret.setTimeout(()=>{ this.death_img.vi...
Typescript
dayMinute = dayMinute / chargeTime; } else { dayMinute = (dayMinute / chargeTime) + 1; } BigDecimal bigDecimal = chargeByHours.getFirstHoursPrice().multiply(new BigDecimal(dayMinute)); price = price.add(bigDecimal); } //计算黑夜价格 ...
Java
{ Text(it.name) } ) } } } @Composable fun ShowingError(onRetry: () -> Unit) { Column { Text( text = stringResource(Res.string.error_occurred), color = MaterialTheme.colors.error ) Spacer(modifier = Modifier...
Kotlin
} matchedFiles := []processor.MatcherResult{ { Path: "spec.md", Type: processor.FileTypeSpec, RuleName: "test-rule", }, { Path: "spec2.md", Type: processor.FileTypeSpec, RuleName: "test-rule", }, { Path: "impl.go", Type: processor.FileTypeImpl, RuleName: "t...
Go
** 参数不确定性、模型结构不确定性、初始条件敏感性(混沌特性)以及未来排放情景的不确定性。 * **尺度问题:** 如何在全球模型中准确表示关键的局地过程(如云的形成),以及如何将全球预测降尺度到区域和地方层面。 * **反馈机制:** 识别和量化各种正负反馈回路(如冰雪反照率反馈、碳循环反馈)的强度和影响。 * **策略:** * 发展更高分辨率的地球系统模型 (Earth System Models, ESMs)。 * 利用模型比较计划 (e.g., CMIP) 进行多模型集成和不确定性评估。 * 结合古气候数据和观测数据进行模型校准和验证。 * 探索机器学习方法辅助参数化方...
Markdown
xf40e3585, 0x106aa070 .word 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5 .word 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3 .word 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208 .word 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 /* * void sha2_ce_transform(struct sha256_ce_state *sst, u8 const *src, ...
Assembly
you want to use sqlchiper // _db = await openDatabase(path, version: 1, onCreate: _createDb, password: _dbModel.password); // SQLChipher // uncomment line below if you want to use sqflite // _db = await openDatabase(path, version: 1, onCreate: _createDb); // SQFLite //} else { _db = awai...
Dart
" title="IOSYS ALL TIME TOHO BEST COLLECTION">断罪ヤマザナドゥ!</a></b><dl><dd><a href="./IOSYS_ALL_TIME_TOHO_BEST_COLLECTION.md" title="IOSYS ALL TIME TOHO BEST COLLECTION">IOSYS ALL TIME TOHO BEST COLLECTION</a> (2023-04-30)<br></dd></dl></td></tr></tbody></table> - 歌词语言:日文- 歌词翻译:中文 <table><tbody><tr class="tt-...
Markdown
order_id: order_id.into(), } } } #[derive(Deserialize, Serialize, Debug, Clone, Shrinkwrap)] #[shrinkwrap(mutable)] pub struct GetOrderStateResponse(pub Order); impl Request for GetOrderStateRequest { const METHOD: &'static str = "private/get_order_state"; type Response = GetOrderStateResponse; } ...
Rust
cli A ./cli B ./cli C ``` 一下子节省了很多不必要的输入。 ```go var( showVersion = kingpin.Flag("version", "show version information", ).Default("false").Bool() ) func main() { kingpin.HelpFlag.Short('h') kingpin.Parse() if *showVersion{ fmt.Println("1.0.0") os.Exit(0) } } ``` 最后,引入此包是 ``` BASH go get gopkg.in/alectho...
Markdown
>${player.getStatistic(Statistic.DEATHS)}".miniMsg(), "<light_purple>Time played: <aqua>${player.getStatistic(Statistic.PLAY_ONE_MINUTE) / 20 / 3600}h".miniMsg(), "<light_purple>Time since last death: <aqua>${player.getStatistic(Statistic.TIME_SINCE_DEATH) / 20 / 3600}h".miniMsg() ), mod...
Kotlin
ViewModel() vm:SendViewModelMatchingSequence( vm:LookupSequence( "fists_draw" ) ) vm:SetPlaybackRate( speed ) self:SetNextPrimaryFire( CurTime() + vm:SequenceDuration() / speed ) self:SetNextSecondaryFire( CurTime() + vm:SequenceDuration() / speed ) self:UpdateNextIdle() if ( SERVER ) then self:SetCombo( 0 ) ...
Lua
bels.push_tail(& (yyvsp[0].case_label)->link); (yyval.case_label_list) = labels; (yyval.case_label_list)->set_location((yylsp[0])); } #line 6160 "src/glsl/glsl_parser.cpp" break; case 348: #line 2284 "src/glsl/glsl_parser.yy" { (yyval.case_label_list) = (yyvsp[-1].case_label_list); ...
C++
으로 강조] - [세 번째 시장의 진입 전략을 키워드 형식으로 작성. 중요한 키워드는 <<키워드>> 형식으로 강조] 현지화 요구사항 (3-4개): - [첫 번째 현지화 요구사항을 키워드 형식으로 작성. 중요한 키워드는 <<키워드>> 형식으로 강조] - [두 번째 현지화 요구사항을 키워드 형식으로 작성. 중요한 키워드는 <<키워드>> 형식으로 강조] - [세 번째 현지화 요구사항을 키워드 형식으로 작성. 중요한 키워드는 <<키워드>> 형식으로 강조] ...
Kotlin
val localKeys = keys.first this.localKeysIv = localKeys.iv this.localKeysCipherKey = localKeys.cipherKey this.localKeysMacKey = localKeys.macKey val remoteKeys = keys.second this.remoteKeysIv = remoteKeys.iv this.remoteKeysCipherKey = ...
Kotlin
ckgroundColor3 = Color3.new(0.639216, 0.639216, 0.639216) DonationHelp.BorderColor3 = Color3.new(0, 0, 0) DonationHelp.Position = UDim2.new(0.441176474, 0, 0.883211672, 0) DonationHelp.Size = UDim2.new(0, 21, 0, 16) DonationHelp.Font = Enum.Font.SourceSans DonationHelp.Text = "?" DonationHelp.TextColor3 = Color3.new(0,...
Lua
WORD (&t [144]); PPU.MatrixC = READ_WORD (&t [146]); PPU.MatrixD = READ_WORD (&t [148]); PPU.CentreX = READ_WORD (&t [150]); PPU.CentreY = READ_WORD (&t [152]); PPU.M7HOFS = PPU.BG[0].HOffset; PPU.M7VOFS = PPU.BG[0].VOffset; // JoyAPos t[154] // JoyBPos t[155] Memory.Fill...
C++
- transform.position.y) / CollisionRadius; //Store the squash velocity. _squashVelocity = targetSquash - _squash; //Store the current squash value. _squash = targetSquash; } else { //Calculate the desired squash amount based on the c...
C#
border-right: 1px solid #dddddd; border-bottom: 1px solid #dddddd; border-left: 1px solid #dddddd; } [dir="rtl"] .toolbar .toolbar-tray-horizontal .menu-item:last-child { border-left: 1px solid #dddddd; border-right: 1px solid #dddddd; } [dir="rtl"] .toolbar .toolbar-tray-horizontal ul ul li.menu-item:first-...
CSS
--- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.0-dev.20230321(38731c726a2fba433a3291b9f7d50f22472f7f8a) * Released under the MIT license * https://github.com/microsoft/vscode/blob/main/LICENSE.txt *-----------------------------------------------------------*/define("vs/editor/edito...
JavaScript
up>.arrow:before{border-right-color:transparent!important;border-left-color:#1d2122!important}.rtl.skin-1 .nav-list li.pull_up.active>.arrow:after{border-right-color:transparent!important;border-left-color:#171E1F!important}.rtl.skin-1 .nav-list li.pull_up.active>.arrow:before{border-right-color:transparent!important;b...
CSS
ntent'); this.dom!.innerHTML = ` <div class="calendar-list-filter"> <div class="label-checkbox earned"> <input type="checkbox" id="calendar-list-earned-checkbox" checked /> <label for="calendar-list-earned-checkbox"><span>수입</span> <span id="calendar-filter-earned-amount">0 원</span></label> </div> ...
Typescript
assertArrayEquals(mapperResult.getParamList().toArray(), emptyObjs); } @Test void testGetGroupIdList() { MapperResult mapperResult = configInfoMapperByDerby.getGroupIdList(context); assertEquals(mapperResult.getSql(), "SELECT group_id FROM config_info WHERE tenant_id ='p...
Java
from rest_framework import generics, permissions, status from rest_framework.response import Response from rest_framework.authtoken.models import Token from rest_framework.permissions import AllowAny from rest_framework.views import APIView from django.contrib.auth.models import User from django.contrib.auth import aut...
Python
var oa *tests.OperatorActions var genericCli ctrlCli.Client var err error ginkgo.BeforeEach(func() { ocfg = e2econfig.NewDefaultOperatorConfig(cfg) oa = tests.NewOperatorActions(cli, c, asCli, aggrCli, apiExtCli, tests.DefaultPollInterval, ocfg, e2econfig.TestConfig, fw, f) oa.CleanCRDOrDie() oa.Crea...
Go
} } if (GlobalSettings.UsePokeSnipers) { channelInfos.Add(new Channel() { Server = PokeSnipersRarePokemonRepository.Channel }); } if (GlobalSettings.UsePokemonGoIVClub) { channelInfos.Add(new Channel() { S...
C#
down-editor .liopentask { -fx-fill: #283593; -fx-font-weight: bold; } .markdown-editor .dl { } .markdown-editor .dt { -fx-font-weight: bold; -fx-font-style: italic; } .markdown-editor .dd { -fx-fill: #444; } /*---- table ----*/ .markdown-editor .table.paragraph-text { -fx-background-color: -mwfx-inline-b...
CSS
callANumber('-551234'); expect(phone.phase()).toBe('incall'); expect(spy).toHaveBeenCalledWith('incall'); expect((<any>phone.instance().state).calledNumber).toBe('5555555'); }); }); import { JitsiParticipantConnectionStatus, JitsiTrackStreamingStatus } from '../base/lib-jitsi-meet'; import { IPartic...
Typescript
for (var listItem = 0; listItem < highestListCount; listItem++) { if (listItem >= MaxElementsToShow) { returnMessage.Append("..."); break; } returnMessage.Append(GetComparedItemString(actualList, expectedList, listItem)); ...
C#
table.insert(sslreplication, { uri = uri, params = params, }) end return sslreplication end return replication end return { validate = function(...) return e_config:pcall(validate, ...) end, expelled = expelled, disabled = dis...
Lua
tive: true }, () => { if (chrome.runtime.lastError) { console.error(`Error creating tab: ${chrome.runtime.lastError.message}`); } }); } }); }); // 在现有代码的末尾添加以下内容 chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { if...
JavaScript
""" Simulation of a logit model =========================== Example of simulation with a logit model :author: Michel Bierlaire, EPFL :date: Sun Apr 9 17:13:23 2023 """ import biogeme.biogeme as bio from biogeme import models from biogeme.expressions import Beta, Derive # %% # See the data processing script: :re...
Python
dma mask: %s bits\n", is_36bit ? "36" : "32"); return ret; } int ssusb_gadget_init(struct ssusb_mtk *ssusb) { struct device *dev = ssusb->dev; struct platform_device *pdev = to_platform_device(dev); struct mtu3 *mtu = NULL; struct resource *res; int ret = -ENOMEM; mtu = devm_kzalloc(dev, sizeof(struct mtu3), ...
C
left: 0; margin-right: 15px; } [dir="rtl"] .dashboard .module table td a { padding-left: 0; padding-right: 16px; } } /* MOBILE */ @media (max-width: 767px) { [dir="rtl"] .aligned .related-lookup, [dir="rtl"] .aligned .datetimeshortcuts { margin-left: 0; mar...
CSS
("Source Han Sans HK Regular"),local("SourceHanSansHK-Regular"),local("Source Han Sans HC Regular"),local("SourceHanSansHC-Regular"),local("Noto Sans CJK HK Regular"),local("NotoSansCJKHK-Regular"),local("Source Han Sans TC Regular"),local("SourceHanSansTC-Regular"),local("Noto Sans CJK TC Regular"),local("NotoSansCJKT...
CSS
pointycastle.test.modes.sic_test; import "dart:typed_data"; import "package:pointycastle/pointycastle.dart"; import 'package:pointycastle/src/registry/registry.dart'; import "package:test/test.dart"; import "../test/block_cipher_tests.dart"; import "../test/src/null_block_cipher.dart"; import "../test/stream_cipher_...
Dart
wordOption: json_['keywordOption'] as core.String?, ); core.Map<core.String, core.dynamic> toJson() => { if (additionalKeyValues != null) 'additionalKeyValues': additionalKeyValues!, if (includeClickThroughUrls != null) 'includeClickThroughUrls': includeClickThroughUrls!, if (includeCli...
Dart
{ private val lock = Object() var value: List<MetricsLogEntry> by listStorage(ANALYTICS_METRICS_LOG_KEY, default = emptyList()) fun add(metricsLogEntry: MetricsLogEntry) = synchronized(lock) { val updatedList = value.toMutableList().apply { add(metricsLogEntry) } valu...
Kotlin
IVisualGestureBuilderFrameArrivedEventArgs::get_FrameReference KeywordF : get_FrameReference KeywordF : Microsoft.Kinect.visualgesturebuilder.IVisualGestureBuilderFrameArrivedEventArgs.get_FrameReference(IVisualGestureBuilderFrameReference@) KeywordA : M:Microsoft.Kinect.visualgesturebuilder.IVisualGestureBuilderFrame...
Markdown
c.BufferInfo videoInfo) { if (status == Status.STARTED && videoFormat != null && (audioFormat != null || isOnlyVideo)) { if (videoInfo.flags == MediaCodec.BUFFER_FLAG_KEY_FRAME || isKeyFrame(videoBuffer)) { videoTrack = mediaMuxer.addTrack(videoFormat); init(); ...
Java
let socket = TcpSocket::bind("127.0.0.1:2000").unwrap(); let addr = socket.local_addr().unwrap(); drop(socket); let timeout = Duration::from_secs(1); let e = TcpSocket::connect_timeout(&addr, timeout).unwrap_err(); assert!(e.kind() == io::ErrorKind::ConnectionRefused || ...
Rust
图](https://mmbiz.qpic.cn/mmbiz_jpg/qq5rfBadR38JU34hMHPs0jdkgVvVGqDCjWTLUPMy4qkxjxYjLB9ONsa21NgabhX7jbHL7pLBqkRus9c3wFRGgA/640?wx_fmt=jpeg&from=appmsg "") Linux内核的nftables子系统(特别是net/netfilter模块)中发现一个高危漏洞,攻击者可利用nft_pipapo_destroy()函数中的双重释放(double-free)漏洞实现本地提权。该漏洞编号为CVE-2024-26809,影响内核版本6.1-rc1及以上以及5.15.54及以上的系统。...
Markdown
{ emitter.load_addr((uint64_t)get_gpr_addr(ee, old_int_reg), REG_64::RAX); emitter.MOV64_TO_MEM((REG_64)reg, REG_64::RAX); } break; case REG_TYPE::VI: emitter.load_addr((uint64_t)get_vi_addr(ee, old_int_reg)...
C++
ver enable detection ********************/ #define IS_UART_DRIVER_ENABLE_INSTANCE(INSTANCE) (((INSTANCE) == USART1) || \ ((INSTANCE) == USART2)) /****************************** WWDG Instances ********************************/ #define IS_WWDG_ALL_INSTANCE(INSTANCE) ((I...
C
),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,t...
JavaScript
private touchY: number = 0 //开始滑动点的Y值 public constructor(){ super() this.y = grid.interval.y this.x = grid.interval.x this.width = grid.interval.width this.height = grid.interval.height this.graphics.beginFill(0x000000, 0); this...
Typescript
Addresses[0], "Unexpected IPv4 address") } if ipv6Slice != nil { assert.Len(t, ipv6Slice.Endpoints, 2, "Expected 2 IPv6 endpoints") assert.Equal(t, "2001:db8::1", ipv6Slice.Endpoints[0].Addresses[0], "Unexpected IPv6 address") assert.Equal(t, "2001:db8::2", ipv6Slice.Endpoints[1].Addresses[0], "Unexpected...
Go
group_tree: GroupTree, } /// The message that is send by the list view. #[derive(Clone, Debug)] pub enum ListMessage { /// Change the search to the new value. SearchInput(String), /// Go pack to the parent group. Back, /// Edit the currently selected group. EditGroup, /// Message that is se...
Rust
etval->data[0]=0; retval->size=0; retval->set_remainder(0,0,t); } return gretval; } static uint32_t xUTF16toUCS4(uint16_t const *&s,void const * const eptr) { uint32_t U=0; uint16_t const * const r=s+1; if(r <= eptr) { uint32_t const W1=s[0]; if((W1<0xD800)||(W1>0xDFFF)) { i...
C++
abstractClasses' export class CustomerRepoStub implements CustomerRepo { private repo: Array<Customer> constructor() { this.repo = [] } save(c: Customer): void { this.repo.push(c) } getByID(id: string): Customer | null { const resp = this.repo.filter((customer) => customer.id === id) if ...
Typescript
ility; // use crate::spaceship::equipment::Beam; // pub struct SEE {} // impl SEE { // /// 葉で駒を取ったら、取り返されるのも考慮しないとな☆(^~^) // /// // /// 価値の低い駒から順に使って、取りに行けだぜ☆(^~^) // pub fn go(_game: &Game, _adr: &Square) -> Value { // // // この駒☆(^~^) // // let mut current_target_piece = game.position....
Rust