content
stringlengths
2
6.21k
label
stringclasses
16 values
import java.util.concurrent.Callable import java.util.concurrent.CountDownLatch import java.util.concurrent.Executors import java.util.concurrent.atomic.AtomicInteger import kotlin.test.assertFailsWith abstract class TransacterTest { @Inject @Movies lateinit var transacter: Transacter @Inject lateinit var queryFa...
Kotlin
}) import * as fromActions from './application.actions'; export interface ApplicationState { loading: boolean; } export const initialState: ApplicationState = { loading: false }; export function applicationReducerFn( state = initialState, action: fromActions.ApplicationActions ): ApplicationState { switch ...
Typescript
一个片段的丢失都将使接收端不能重组原始的数据包。由此产生的丢包乘数效应是我们希望避免的。 几乎所有情况下,音频包大小都落在网络一个 MTU 内。对于更大的视频帧,应用需要分包传输,让每个包都适配所在网络的 MTU。 #### 多播的影响 IP 多播允许发送端同时向多个接收端传输数据。它有一个有用的特性,即网络根据需要创建包的副本,这样只需要一个包的副本对应的一个链接。IP 多播提供了非常高效的组通信,前提是网络支持它,这使得向一组接收端发送数据的成本与该组的大小无关。 支持多播是 IP 网络的一个可选的、相对较新的特性。在撰写本文时,它比较广泛地部署在研究和教育环境以及网络主干中,但在许多商业环境和服务提供商中并不常见。 ...
Markdown
gs e) { SetPaused(true); } private void stopToolStripMenuItem_Click(object sender, EventArgs e) { DisposeBoard(); } private void SetPaused(bool paused) { Paused = paused; toolStripStatusLabelState.Text = paused ? "Paused" : "Running"; if (paused) { playToolStripMenuItem.Checked = f...
C#
.GetCustomAttribute<EnumMemberAttribute>(); if (attribute != null) parameters.Add("type", attribute.Value?.ToLower()); } if (this.OpenNow) { parameters.Add("opennow"); } if (this.Minprice.HasValu
C#
PACKET_KIND_T_STORAGE_ESTIMATE_COUNT, 0)?; } Packet::RStorageEstimateCount(ref v) => { let b = serde_bare::to_vec(v)?; send_hdr(w, PACKET_KIND_R_STORAGE_ESTIMATE_COUNT, b.len().try_into()?)?; write_to_remote(w, &b)?; } Packet::StorageBeginSweep(ref v)...
Rust
nning. Traditional-JDK: Shutting down DSS in the container (id = 11f22e6) 11f22e6 Traditional-JDK: DSS in the container (id = 11f22e6) has been shutdown. real 0m17.608s user 0m12.281s sys 0m2.113s ``` Control waits at the Graql prompt. Execution times at different stages are recorded and displayed. Other environm...
Markdown
ntHint() continue } limit, e := strconv.ParseInt(strings.TrimSpace(params[1]), 10, 64) if e != nil { fmt.Println("Unable to parse limit:", e) printHint() continue } search := strings.TrimSpace(params[2]) kvs := strings.Split(search, ",") searchTags := map[ehloader.TagK]map[ehloader.TagV]struct...
Go
a-Picker .a-Picker-value.is-disabled{pointer-events:none;opacity:var(--Button-onDisabled-opacity);}.amis-scope .a-Picker .a-Picker-valueIcon{color:#2468f2;cursor:pointer;border-right:0.0625rem solid #a19bd4;padding:1px 5px;}.amis-scope .a-Picker .a-Picker-valueIcon:hover{background:#b3d7ff;}.amis-scope .a-Picker .a-Pic...
CSS
byte) 79); spawn(244800, 552.9948f, 622.4288f, 326.2497f, (byte) 0); spawn(244800, 557.20746f, 616.5142f, 326.2497f, (byte) 0); spawn(244800, 558.10596f, 623.51215f, 326.3014f, (byte) 116); spawn(244800, 467.57324f, 477.38986f, 345.70047f, (byte) 84); spawn(244800, 482.65543f, 498.34192f, 34...
Java
Thu = 3, Fri = 4, Sat = 5, Sun = 6, } ``` だいたいMonthと同じようなメソッドやトレイトが実装されているが、曜日の場合月曜日から始まるのかそれとも日曜日から始まるのかなどの違いがあるので、それによる違いがいくつかある。 Weekdayには以下のメソッドが定義されている。 - succ: 次の曜日を返す - pred: 前の曜日を返す - number_from_monday -> u32: 月曜日を1とした月曜始まりの番号を返す - number_from_sunday -> u32: 日曜日を1とした日曜始まりの番号を返す - num_days_from...
Markdown
/****************************************************************************/ #if( defined _POSIX_SPIN_LOCKS && _POSIX_SPIN_LOCKS >= 0 && !defined KERNEL_MODE ) /* TRD : POSIX spin locks _POSIX_SPIN_LOCKS indicates POSIX spin locks - pthreads_spin_init requires POSIX ...
C
该UNDO LOG的rollptr和trx_id字段 // 这样才可以将所有的更新串成一个更新链 // ---------- ---------- ---------- ----------- // | UNDO-1 | <-- | UNDO-2 | <-- | UNDO-3 | <-- | row rec | // ---------- ---------- ---------- ----------- // 假如现在来了一次更新记录在UNDO-4中,那形成的历史链应该如下: // ---------- ---------- ---------- ---------- ----------- // | UNDO-1...
Markdown
// AUTHOR: Rob Tillaart // DATE: 2024-12-02 // PURPOSE: unit tests for the SD2405 RTC // https://github.com/RobTillaart/SD2405 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assertEqual(expected, actual) // asser...
C++
(mountLevel.getMap(), lakeConf, bbox); } else if (type === 'tree') { const forestConf = {ratio: 1, skipTypes, nForests: 10}; mapgen.addForest(mountLevel.getMap(), forestConf, bbox); } else if (type === 'cliffs') { ...
Typescript
r_buffer); // Serialize trailer into the circular buffer circular_buffer.serialize(frame_trailer, TCTrailer::SERIALIZED_SIZE); return total_frame_size; } TEST_F(CcsdsFrameDetectorTest, TestBufferTooSmall) { // Anything smaller than the size of header + trailer is invalid U32 minimum_valid_size = TC...
C++
s := struct { Model Unmarshalerhostresourcestatistics }{} err := json.Unmarshal(data, &s.Model) if err != nil { return err } m.Usage = s.Model.Usage m.Capacity = s.Model.Capacity m.UtilizationPercent = s.Model.UtilizationPercent m.UsageChangePercent = s.Model.UsageChangePercent m.ResourceName = s.Model.R...
Go
} } } impl fmt::Display for DecompressionCommand { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{} {}", self.cmd, self.args.join(" ")) } } lazy_static! { static ref DECOMPRESSION_COMMANDS: HashMap< &'static str, DecompressionCommand, > = { l...
Rust
tion(error_exc) else: sys.stderr.write("{0}\n".format(error_exc)) # Once the analysis is completed or terminated for any reason, we report # back to the agent, notifying that it can report back to the host. finally: try: # old agent server = xmlrpclib.Ser...
Python
(nil)) x[2] = int64(C.issue5603foo2(nil, nil)) x[3] = int64(C.issue5603foo3(nil, nil, nil)) x[4] = int64(C.issue5603foo4(nil, nil, nil, nil)) for i, v := range x { if v != exp { t.Errorf("issue5603foo%d() returns %v, expected %v", i, v, exp) } } } // issue 5337 func test5337(t *testing.T) { C.test5337() ...
Go
ultiplier).toBe(1); expect(pe.uom.dimensions.M.numer).toBe(1); expect(pe.uom.dimensions.L.numer).toBe(2); expect(pe.uom.dimensions.T.numer).toBe(-2); expect(pe.uom.dimensions.Q.numer).toBe(0); }); it("updateForces", function () { const forces = gravitationLaw.updateForces...
Typescript
err := tools.DownloadFile(dl.url, dl.downloadPath, env.GlobalDevEnvConfig.Proxy, nil) if key == consts.LiblclKey { if err != nil { // 失败尝试使用下个下载源 if downURL := getLibLCLDownUrl(); downURL != "" { term.Logger.Error("Download", term.Logger.Args("ERROR", err.Error(), "Auto switch download source", d...
Go
�视频为专属视频,仅提供试看', displayTime: const Duration(seconds: 3), ); videoUrl = data.durl!.first.url!; audioUrl = ''; defaultST = Duration.zero; firstVideo = VideoItem(); if (autoPlay.value) { await playerInit(); isShowCover.value = false; } ...
Dart
c_150539_c(p_150524_1_, p_150524_2_, p_150524_3_ - 1, p_150524_4_, p_150524_5_ - 1); this.func_150539_c(p_150524_1_, p_150524_2_, p_150524_3_ + 2, p_150524_4_, p_150524_5_ - 1); this.func_150539_c(p_150524_1_, p_150524_2_, p_150524_3_ - 1, p_150524_4_, p_150524_5_ + 2); this.func_150539_c(p_1505...
Java
/* * linux/arch/arm/mm/cache-v7.S * * Copyright (C) 2001 Deep Blue Solutions Ltd. * Copyright (C) 2005 ARM Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This...
Assembly
writer, " usage: kira [+-][percent] percent must be a number between 0 and 100. A prefix of either - oder + is allowed. Without a prefix, the brightness gets set to the given percentage. With the + prefix, the given percentage gets added to current brightness. With the - prefix, the given percentage ge...
Rust
X.Map(item); var open = Positions.Open.Map(item); var high = Positions.High.Map(item); var low = Positions.Low.Map(item); var close = Positions.Close.Map(item); if (close >= open) { Layer.Add(new Shapes.Line() { X1 = x - 0.45, X2 = x + 0.45, Y1 = close, Y2 = close, Aesthetic = Li...
C#
ler.sidesArgs.shift()).to.equal(4); expect(mockDieRoller.sidesArgs.shift()).to.equal(4); expect(mockDieRoller.sidesArgs.shift()).to.equal(4); }), it("rolls die with penalty ignoring whitespace", () => { const mockDieRoller = new MockDieRoller(); mockDieRoller.setMockValue(4, [2, 2, 2]); ...
Typescript
}); })); } } /// <summary> /// 重新计算支付金额 /// </summary> private void RecalcPaidPrice() { bool RoomPaidPriceChanged = false; // 如果跟订单上次保存的不一样,就提示未保存提示 if (oldList.All(ChangePaidPrice.PayModel.Contains)...
C#
torch.nn.LeakyReLU): da = derive_leakyrelu(x_, slope=module.negative_slope) elif isinstance(module, torch.nn.Identity): da = derive_identity(x_) else: ValueError(f"Please implement the derivative function of {module}") ...
Python
max-width: 100%;*/ /* height: auto;*/ /*}*/ /*.figure {*/ /* display: inline-block;*/ /*}*/ /*.figure-img {*/ /* margin-bottom: 0.5rem;*/ /* line-height: 1;*/ /*}*/ /*.figure-caption {*/ /* font-size: 90%;*/ /* color: var(--color-secondary);*/ /*}*/ /*pre code {*/ /* font-size: inhe...
CSS
ra Normalization}, author={Sam Shleifer and Jason Weston and Myle Ott}, year={2021}, eprint={2110.09456}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` # Reducing Transformer Depth on Demand with Structured Dropout (Fan et al., 2019) This page contains information for how to train mode...
Markdown
lazyAsJsDate(receiver)) : JS('int', r'(#.getFullYear() + 0)', lazyAsJsDate(receiver)); } @pragma('dart2js:noSideEffects') @pragma('dart2js:noThrows') @pragma('dart2js:noInline') static int getMonth(DateTime receiver) { return (receiver.isUtc) ? JS('JSUInt31', r'#.getUTCMonth() + 1', lazy...
Dart
" import {RoomToUser} from "../entity/RoomToUser" import {CreateRoomPayloadDto} from "../dto/CreateRoomPayloadDto" async function create(payload: CreateRoomPayloadDto) { try { const roomRepository = getRepository(Room) const roomToUserRepository = getRepository(RoomToUser) const room = new Room() a...
Typescript
buffer.p4(setting.id or (1 shl 30)) buffer.p8(setting.value) } is ClanSettingsFull.StringClanSetting -> { buffer.p4(setting.id or (2 shl 30)) buffer.pjstr(setting....
Kotlin
// INFO: Tested on Cortex-A53(odroid-c2), using gcc. // WARNING: These functions work only on little endian CPU with ARMv8a + NEON architecture // WARNING: State must be 512 bit (64 bytes) aligned. // WARNING: Don't use V8-V15 or X19-X28 since we aren't saving them // Note that byte order, same as the Keyakv2 Convecti...
Assembly
MemberList != null) { encoder.WriteInt(this.m_excludeMemberList.Size()); for (int i = 0; i < this.m_excludeMemberList.Size(); i++) { encoder.WriteLong(this.m_excludeMemberList[i]); } } } public ...
C#
"request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": // "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - // members: - user:mike@example.com - group:admins@example.com - // domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com // role: roles/resourcemanager....
Go
} //groupRevokeInvite public async Task<string> GroupRevokeInvite(string jid) { var result = await GroupQuery(jid, "set", [new BinaryNode() { tag = "invite", }]); var inviteNode = GetBinaryNodeChild(result, "invite"); return inviteNode?.getattr("code") ?? ""; ...
C#
let end_note_divisor = 10 // 10% let stacatto_divisor = 2 // 50% let bpm = 137 function fraction_to_ms(multiplier: number, divisor: number): number { // note this is sensitive to BPM changes, intentionally return ((60000 * 4 / bpm) * multiplier) / divisor } /** * Sets the te...
Typescript
ext.get(generationErrorMessageI18nKey), safe ) fun generateMessageOrFallbackIfInvalid( i18nContext: I18nContext, message: String, guild: Guild?, customTokens: List<RenderableMessagePlaceholder> = listOf(), generationErrorMessage: String, safe: Boolean = true ): MessageCreateData { return try { ge...
Kotlin
.ID, d.type, d.arguments); }; FromRawLineData[IFCFAILURECONNECTIONCONDITION] = (d) => { return IfcFailureConnectionCondition.FromTape(d.ID, d.type, d.arguments); }; FromRawLineData[IFCFAN] = (d) => { return IfcFan.FromTape(d.ID, d.type, d.arguments); }; FromRawLineData[IFCFANTYPE] = (d) => { return IfcFanType.Fro...
JavaScript
露的方式解决了这些问题。现在技嘉固件中再次发现了这些问题,据报道有数十款产品受到影响。 这些漏洞编号为 CVE-2025-7026、CVE-2025-7027、CVE-2025-7028 和 CVE-2025-7029,允许写入攻击者指定的内存、将任意内容写入系统管理 RAM (SMRAM) 以及控制关键闪存操作。 CERT/CC 指出:“具有本地或远程管理权限的攻击者可以利用这些漏洞在系统管理模式(Ring -2)下执行任意代码,绕过操作系统级保护。” 成功利用这些漏洞,攻击者可以禁用 UEFI 安全机制(包括安全启动),并部署固件后门或植入程序,从而获得对系统的持久控制权。由于 S...
Markdown
struct ss_node *head = 0, *tail = 0, *node; if(!(dir = opendir(path))) { fprintf(stderr, "failed to open directory: %s: %s\n", path, strerror(errno)); return -1; } while((dent = readdir(dir))) { int sz; if(strcmp(dent->d_name, ".") == 0 || strcmp(dent->d_name, "..") == 0) { continue; } sz = strle...
C
isters // Destination kept in GP registers // Full registers estimated 49 YMM used MOVQ n+80(FP), AX MOVQ matrix_base+0(FP), CX SHRQ $0x05, AX TESTQ AX, AX JZ mulAvxTwo_5x4Xor_end MOVQ in_base+24(FP), DX MOVQ (DX), BX MOVQ 24(DX), SI MOVQ 48(DX), DI MOVQ 72(DX), R8 MOVQ 96(DX), DX MOVQ out_ba...
Assembly
"Dragons glide like", "silent angels, circling", "around and around,", "then calling like", "banshees; keening" ), new BookPageInfo ( "cries of mourning.", "The dragons land", "heavily beside the", "peaceful bodies,", "bending necks and", "extending win...
C#
f` loops in JS, you use the `Iterator` itself, while in /// Dart, you use an `Iterable` (or `Stream` for `await for of`) /// /// Implementations converting an `Iterator` to both a Dart `Iterator` and /// `Iterable` are available @JS('Iterator') extension type JSIterator<T extends JSAny>._(JSObject _) implements JSObjec...
Dart
etTestName(), "FlatRenameExtract2Args", false, flatExtractionFlag: true); } [Fact] public void OverwriteExtract2Args() { var commandLine = "xo TestFiles\\MsiInput\\AppleMobileDeviceSupport64.msi OverwriteExtract2Args\\"; TestExtraction(commandLine, GetTestName(),...
C#
ark: .8; /* dim */ --brand-dim: hsl( var(--brand-hue) calc(var(--brand-saturation) / 1.25) calc(var(--brand-lightness) / 1.25)); --text1-dim: hsl(var(--brand-hue) 15% 75%); --text2-dim: hsl(var(--brand-hue) 10% 61%); --text3-dim: hsl(var(--brand-hue) 10% 50%); --tile1-dim: hsl(var(--brand-hue) 10% 20%); -...
CSS
// Copyright (c) DGP Studio. All rights reserved. // Licensed under the MIT license. using Microsoft.Win32; using Snap.Hutao.Core.ExceptionService; using Snap.Hutao.Model.Entity; using Snap.Hutao.Model.Entity.Primitive; using System.Runtime.InteropServices; using System.Text; namespace Snap.Hutao.Service.Game.Account...
C#
/* easyzlib.h header easyzlib release 1.0 Copyright (C) 2008 First Objective Software, Inc. All rights reserved This entire notice must be retained in this source code Redistributing this source code requires written permission This software is provided "as is", with no warranty. Latest fixes enhancements ...
C
(asn1Object.encode(), bytes); }); test('Test named constructor fromName', () { var asn1Object = ASN1ObjectIdentifier.fromName('commonName'); expect(asn1Object.objectIdentifierAsString, '2.5.4.3'); expect(asn1Object.readableName, 'commonName'); expect(asn1Object.objectIdentifier, [2, 5, 4, 3]); ...
Dart
reexport safe */ _effect_flip_mjs__WEBPACK_IMPORTED_MODULE_19__[\"default\"]),\n/* harmony export */ FreeMode: () => (/* reexport safe */ _free_mode_mjs__WEBPACK_IMPORTED_MODULE_14__[\"default\"]),\n/* harmony export */ Grid: () => (/* reexport safe */ _grid_mjs__WEBPACK_IMPORTED_MODULE_15__[\"default\"]),\n/* har...
JavaScript
_id': '0', 'staking_pool_status': 'DISABLED' }, { 'top': '58', 'address': 'kira1zh68g4empe497s7ywm2h5el20dqnd2fczd02cp', 'valkey': 'kiravaloper1zh68g4empe497s7ywm2h5el20dqnd2fc3tnfqd', 'pubkey': 'PubKeyEd25519{CBB30161485BEA07720520811A3349A085DCAFDFB58217E12F08E6C6A9...
Dart
锁等待,可以考虑采用InnoDB表来减少锁冲突。 为什么要有意向排它锁 比如删除某张表的时候,只需要检查表上是否有意向排他锁,不需要去检查每一行 对于InnoDB表,本文主要讨论了以下几项内容: (1)InnoDB的行锁是基于索引实现的,如果不通过索引访问数据,InnoDB会使用表锁。 (2)介绍了InnoDB间隙锁(Next-key)机制,以及InnoDB使用间隙锁的原因。 在不同的隔离级别下,InnoDB的锁机制和一致性读策略不同。 在了解InnoDB锁特性后,用户可以通过设计和SQL调整等措施减少锁冲突和死锁,包括: 尽量使用较低的隔离级别; 精心设计索引,并尽量使用索引访问数据,使加锁更精确,从而...
Markdown
.getAppearance(connectedSensorId); } } public String getAddress() { return spec.getInfo().getAddress(); } public String getConnectedSensorId() { return connectedSensorId; } @Override public String toString() { return "ConnectableSensor{" + "mSpec=" + spec + ", mC...
Java
var line = []; if (0 == j % 2) for (var k = 0; k < m.y * 4 + 1; k++) if (0 == k % 4) line[k] = "*"; else if (j > 0 && m.verti[j / 2 - 1][Math.floor(k / 4)]) line[k] = "S"; else line[k] = "J"; else for (var k = 0; k < m.y * 4 + 1; k++) if (0 == k % 4) if (k...
Typescript
军预备役军官,在军衔前分别冠以“海军”、“空军”。 第二十三条 预备役军官实行职务等级编制军衔。 预备役军事、政治、后勤、装备军官实行下列职务等级编制军衔: 正师职:预备役大校、少将; 副师职:预备役上校、大校; 正团职:预备役上校、中校; 副团职:预备役中校、少校; 正营职:预备役少校、中校; 副营职:预备役上尉、少校; 正连职:预备役上尉、中尉; 副连职:预备役中尉、上尉; 排职:预备役少尉、中尉。 预备役专业技术军官实行下列职务等级编制军衔: 高级专业技术职务:预备役专业技术少将、大校、上校、中校、少校; 中级专业技术职务:预备役专业技术大校、上校、中校、少校、上尉; 初级专业技术职务:预备役专业...
Markdown
nil } // Update update account bill config. func (a AccountBillConfigDao) Update(kt *kit.Kit, filterExpr *filter.Expression, model *tableawsbill.AccountBillConfigTable) error { if filterExpr == nil { return errf.New(errf.InvalidParameter, "filter expr is nil") } if err := model.UpdateValidate(); err != nil { ...
Go
: style.ForegroundGrey); } // Footer Render2D.FillRectangle(_footerRect, FooterColor); DrawChildren(); // Selection outline if (_isSelected) { var colorTop = Color.Orange; var colorBottom = Color.Orang...
C#
i_free_resource_list(&resources); return 0; } lba_bus->subordinate = pci_scan_child_bus(lba_bus); /* This is in lieu of calling pci_assign_unassigned_resources() */ if (is_pdc_pat()) { /* assign resources to un-initialized devices */ DBG_PAT("LBA pci_bus_size_bridges()\n"); pci_bus_size_bridges(lba_bus);...
C
ame: "images") Images images; OMDBMovie omdbMovie = null; List<TMDBReview> movieReviews = []; TMDBMovieBasic movieBasic = null; bool hasData = false; List<TMDBImage> get backdrops => images?.backdrops ?? []; List<TMDBImage> get posters => images?.posters ?? []; List<TMDBImage> get allImages => [back...
Dart
"<resource path segment>"); r = resource_path_segment_name(b, l + 1); if (!r) r = resource_path_segment_param(b, l + 1); exit_section_(b, l, m, r, false, null); return r; } /* ********************************************************** */ // identifier public static boolean resource_path_segmen...
Java
uckDB gateway duckdb_resource = SQLMeshResource( project_dir="tests/fixtures/sqlmesh_project", gateway="duckdb" ) assert duckdb_resource.gateway == "duckdb" # Test that we can get models with DuckDB models = duckdb_resource.get_models() assert len(models) > 0...
Python
e = this.trackBar.Value * this.trackBar.Maximum; this.Position = TimeSpan.FromSeconds(normalizedValue); this.shouldNormalizeTrackBarValue = false; } } } }
C#
#[inline] pub fn rw2<'a, T, U>( &'a mut self, tc1: &'a TCell<Q, T>, tc2: &'a TCell<Q, U>, ) -> (&'a mut T, &'a mut U) { assert!( tc1 as *const _ as usize != tc2 as *const _ as usize, "Illegal to borrow same TCell twice with rw2()" ); unsafe...
Rust
for (let i = nextImgIdx; i < nextImgIdx + MAX_IMG_INDEX; i++) { const compImg = imgs[i]; const compPixCoeff = (((MAX_IMG_INDEX - (i - nextImgIdx)) / MAX_IMG_INDEX) / 2 + 0.5); if (!compImg) continue; img.data[red] = shader(img.data[red], compImg.data[red] * compPixCoeff); ...
Typescript
/ // ROS_INFO("1"); // if (j - k >= 2) // { // flag_jk = 1; // } // else if(k - j >= 2) // { // flag_jk = 2; // } // } if(k >= j) { int m = 100; for(int i = 1; i < k; i++) { if(sqrt(po...
C++
tgroup_sh->title.ToStdString(), key); for (const std::string& opt_key : opt_keys) if (Field* field = optgroup_sh->get_fieldc(opt_key, 0); field != nullptr) { field->toggle(is_checked); if (is_checked) field->...
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Leetcode_661_Image_smoother { public class Solution { public int[,] ImageSmoother(int[,] M) { if (M == null || M.GetLength(0) == 0 || M.GetLength(1) == 0) ...
C#
ZI PYTHONU**. V části kódu syntakticky fungují > jen verze **3.12 a novější**. 4. ### Dále už jen Flask aplikaci spustíte a můžete se s mojí stránkou seznámit **Pokud máte adresář příkazového řádku ve složce projektu tak už stačí jen zadat tento příkaz**: ``` C:\cesta adresáře> python -m flask run ``` *Poznámka: ...
Markdown
ESDTtkn")) fmt.Println(ky) assert.Nil(t, err) assert.NotNil(t, e) } func TestNewESDTSmartContract_NilEEIShouldErr(t *testing.T) { t.Parallel() args := createMockArgumentsForESDT() args.Eei = nil e, err := NewESDTSmartContract(args) assert.Nil(t, e) assert.Equal(t, vm.ErrNilSystemEnvironmentInterface, err) ...
Go
client: wc, logger: l, p: ps, cs: cs, supportsFreeleechTokens: true, supportsFreeleechOnly: true, has2Fa: true) { } private TorznabCapabilities SetCapabilities() ...
C#
# pankaj developer account # PATH_TO_PRIVATE_KEY_FILE = "private.key" # Anil admin demo account PATH_TO_PRIVATE_KEY_FILE = "private-admin-demo.key" with open(PATH_TO_PRIVATE_KEY_FILE) as private_key_file: private_key = private_key_file.read() PRIVATE_KEY = private_key
Python
ontentTable(): Table? { return table } override fun getTabTitle(): String? { return "Aim".toLocale() } } fun updateDisableAim() { if (!opened) return aimTab.tAim.apply { val bool = !enableAim.isChecked var col = Color(255F, 255F, 255F, 1F) if (bool) { ...
Kotlin
-Table--autoFillHeight > .dark-Table-footToolbar{margin-bottom:0;}.amis-scope .dark-Table-SFToggler{color:#f7f8fa;font-size:12px;margin-left:0.5rem;display:inline-flex;cursor:pointer;}.amis-scope .dark-Table-SFToggler:hover{color:#2468f2;font-size:12px;}.amis-scope .dark-Table-SFToggler-arrow{width:1rem;text-align:cent...
CSS
#!/opt/vfw-web/bin/python # Eduardo S. Scarpellini <scarpellini@gmail.com> # Jun 25 2011 # from bottle import run, route, get, post, request, response, static_file, abort, template, debug from datetime import datetime from hashlib import md5 from simplejson import loads, dumps from re...
Python
账号:bdnyzyfhw密码:h527767 账号:mjvgkrflo密码:d033909 账号:nqbtdqgce密码:c445987 账号:dtti7djmmlr@163.com密码:u55433 账号:eozogyyay密码:jnhvheah 账号:bdnyzyfhw密码:h527767 5.3 账号ztxtyxmeq密码u110597 账号ievclkflz密码whzxrbog 账号njwdcrilr密码k298819 账号vgcydymsb密码pvxmsdhk 账号hajmujt...
Markdown
/* * 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 ...
C#
, 296, 258, 246, 238, 231, 237, 257, 226, 203, 214, 224, 251, 195, 190, 212, 236, 206, 183, 221, 211, 163, 188, 192, 207, 203, 194, 220, 167, 211, 198, 183, 217, 209, 259, 182, 233, 184, 225, 227, 228, 225, 226, 188, 217, 175, 1...
Dart
inps = [] # make a deepcopy since we are changing arguments request_args = copy.deepcopy(request_args) self._max_gen_toks = request_args.pop("max_gen_toks", self.max_gen_toks) for context, _ in chunk: # add context (prompts) to the list ...
Python
icon: "https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Speedtest.png", }, { ...groupBaseOption, name: "ChatGPT", type: "select", "include-all": true, filter: "^(?!(.*尼日)).*(美|日|JP|US|Chat|jp|us).*", icon: "https://www.clashverge.dev/a...
Markdown
ops::orbits_sort(&mut cycles); assert_eq!(starting_orbit, results.0); assert_eq!(cycles, results.1); } } #[test] fn test_mapping() { type ParamType1 = String; type ReturnType = (mapping_ops::VertexMapping, mapping_ops::BoundaryEdges); let test_data: V...
Rust
left margins of 24, square size of 32, * padding of 4, no mirroring, 8 files and ranks ('a'–'h', '1'–'8'), `white` light squares, * `gainsboro` dark squares, `nero` fill for the circles, which takes files, ranks, and counts from * `file`, `rank`, `count` properties of the data, respectively. * @returns {ChessboardS...
Typescript
B_ASN1_UTF8STRING), expected)) ok = 0; } return ok; } static int test_unicode_range(void) { const unsigned char univ_ok[] = "\0\0\0\0" "\0\0\xd7\xff" "\0\0\xe0\x00" ...
C
#------------------------------------------------------------------------------ # # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR> # # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. T...
Assembly
Join, roomUserLeave, roomChat, roomReaction, roomNowPlayingEnded, actions as roomActions, roomEmojiAnimation, roomTrackVoteSkip } from '../../../src/redux/modules/shared/room'; import { uniq, flatten, take, some } from 'lodash'; import shortid from 'shortid'; import moment from 'moment'; import Refill from './Re...
JavaScript
tpRequests(bidRequest); // then assertThat(result.getErrors()).isEmpty(); assertThat(result.getValue().getFirst().getHeaders()) .extracting(Map.Entry::getKey, Map.Entry::getValue) .containsOnly(tuple("Accept-Language", "EN"), tuple("User-A...
Java
_reflect.ReflectAdapter.get(target, prop, receiver);\n },\n has (target, prop) {\n if (typeof prop === \"string\") {\n (0, _dynamicrendering.trackDynamicDataAccessed)(store, \"searchParams.\" + prop);\n }\n return Reflect.has(target,...
JavaScript
RgbaInputFile::channels () const { return rgbaChannels (_inputFile->header().channels(), _channelNamePrefix); } int TiledRgbaInputFile::version () const { return _inputFile->version(); } bool TiledRgbaInputFile::isComplete () const { return _inputFile->isComplete(); } unsigned int TiledRgbaInputFile::...
C++
add r0, sp, #0x20 bne _022170B6 mov r1, #0x3b lsl r1, r1, #6 strh r1, [r0] mov r1, #0x21 lsl r1, r1, #6 strh r1, [r0, #2] mov r1, #0 strh r1, [r0, #4] b _022170F2 _022170B6: ldr r1, _02217118 ; =0xFFFFE890 strh r1, [r0] ldr r1, _0221711C ; =0xFFFFF768 strh r1, [r0, #2] mov r1, #0 strh r1, [r0, #4] b _0...
Assembly
else if ( ids.size() == 1 ) { //EntityLoader#loadByUniqueKey uses a null object and LockMode.NONE //there is only one element in the list, so get the first Tuple tuple = ids.get( ids.getKeys().iterator().next() ); final Serializable id = (Serializable) getGridIdentifierType().nullSafeGet( tuple, getIdent...
Java
ff !important}.ui-datepicker td .ui-state-active,.ui-datepicker td .ui-state-active:hover{background:#db1174 !important;border-color:#db1174 !important;color:#fff !important}.ui-datepicker button.ui-datepicker-current{background:#577b86 !important;border-color:#577b86 !important;font-size:1em}.ui-datepicker button.ui-d...
CSS
", "_") } /* Copyright The containerd Authors. 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...
Go
JObject<'a>, pub object_klass: JClass<'a>, pub size: jlong, } pub struct VmStartEvent<'a> { pub jvmti: &'a JVMTIFacadeEnv<'a>, pub jni: &'a JNIEnv<'a>, } use std::io; fn main(){ let mut input=String::new(); io::stdin().read_line(&mut input).unwrap(); let mut s=input.trim().split(' ')...
Rust
ertErr(col *model.ColumnInfo, val *types.Datum, rowIdx int, err error) error { var ( colTp byte colName string ) if col != nil { colTp = col.GetType() colName = col.Name.String() } if types.ErrDataTooLong.Equal(err) { err = resetErrDataTooLong(colName, rowIdx+1, err) } else if types.ErrOverflow.Equal...
Go
haractersLongAndIsThereforeAValidFieldNa, }) : super._( id: id, name: name, thisFieldIsExactly61CharactersLongAndIsThereforeAValidFieldNa: thisFieldIsExactly61CharactersLongAndIsThereforeAValidFieldNa, ); /// Returns a shallow copy of this [LongImplicitIdFieldCol...
Dart
edx push %ecx jmp .ffi_closure_STDCALL_internal .LFE1: # This assumes we are using gas. .balign 16 FFI_HIDDEN(ffi_closure_SYSV) #if defined(X86_WIN32) .globl USCORE_SYMBOL(ffi_closure_SYSV) #if defined(X86_WIN32) && !defined(__OS2__) .def _ffi_closure_SYSV; .scl 2; .type 32; .endef #endif USCORE_SY...
Assembly
); out[ out_offset + 4 * k ] = (short)out16; out[ out_offset + 4 * k + 1 ] = (short)out16; /* All-pass section for odd output sample */ Y = in32 - S[ S_offset + 1 ]; X = Macros.SKP_SMLAWB( Y, Y, ResamplerRom.SKP_Silk_resampler_up2_lq_1 ); ...
Java
v1.KubeVirtConfiguration{ ChangedBlockTrackingLabelSelectors: &v1.ChangedBlockTrackingSelectors{ VirtualMachineLabelSelector: vmLabelSelector, NamespaceLabelSelector: nsLabelSelector, }, }, }, } if enableFeatureGate { kv.Spec.Configuration.DeveloperConfiguration = &v1.DeveloperC...
Go