content
stringlengths
2
6.21k
label
stringclasses
16 values
struct { s, encoded string }{ {"", ""}, {"-", "--"}, {"-a", "-a-"}, {"-a-", "-a--"}, {"a", "a-"}, {"a-", "a--"}, {"a-b", "a-b-"}, {"books", "books-"}, {"bücher", "bcher-kva"}, {"Hello世界", "Hello-ck1hg65u"}, {"ü", "tda"}, {"üý", "tdac"}, // The test cases below come from RFC 3492 section 7.1 with Errata 3...
Go
import re from statistics import geometric_mean benchmark_text = """ k: 7168; m: 1024; n: 1536; seed: 8135 ⏱ 150 ± 0.2 µs ⚡ 149 µs 🐌 168 µs k: 1536; m: 1024; n: 3072; seed: 6251 ⏱ 49.1 ± 0.12 µs ⚡ 48.0 µs 🐌 57.9 µs k: 7168; m: 1024; n: 576; seed: 12346 ⏱ 146 ± 0.2 µs ⚡ 145 µs 🐌 160 µs k: 256; m: 1024; n: 7...
Python
.help("Path of your Rust crate root and Cargo.toml") .default_value("./"), ); let app = App::new("rust-i18n") .bin_name("cargo") .subcommand(extract_command) .get_matches(); let mut results = HashMap::new(); #[allow(clippy::single_match)] match app.subc...
Rust
Info &aInfo); static const char *MessageTypeToString(const otHistoryTrackerMessageInfo &aInfo); }; } // namespace Cli } // namespace ot #endif // OPENTHREAD_CONFIG_HISTORY_TRACKER_ENABLE #endif // CLI_HISTORY_HPP_ /* * Copyright (c) 2019, The OpenThread Authors. * All rights reserved. * * Redistribution a...
C++
: $error'); rethrow; } } factory WebDriverService.fromRuntime(Runtime runtime) { return _instances[runtime] ?? (throw ArgumentError.value(runtime, 'runtime', 'Service unavailable')); } } // Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file // for details. All rights ...
Dart
put.push_str(s); self.output.push('\n'); } } } fn fmt_add() -> String { colors::green_bold("+").to_string() } fn fmt_add_text(x: &str) -> String { colors::green(x).to_string() } fn fmt_add_text_highlight(x: &str) -> String { colors::black_on_green(x).to_string() } fn fmt_rem() -> String { colors...
Rust
/*************************************************************************\ * Copyright (C) Michael Kerrisk, 2020. * * * * This program is free software. You may use, modify, and redistribute it * * under the term...
C
ke in the case of general polycurve, for the sake of backwards * compatibility we have to keep an implementation of construction * from a range of points. DO NOT USE THIS CONSTRUCTION. */ template <typename InputIterator> X_monotone_polyline_2(InputIterator begin, InputIterator end) : Base(begin, end) ...
C
g *= 1e6 / ctx_handler ()->dbu (); } } if (m_sloppy) { if (dbu_units && ! ctx_handler ()) { n.reset (new ConstantExpressionNode (ex1, tl::Variant ())); } else { n.reset (new ConstantExpressionNode (ex1, tl::Variant (g))); } } else { if (dbu_units && ! ctx_ha...
C++
void DetectNARF() { #region # 验证 if (this.EffectivePointCloud == null) { MessageBox.Show("点云未加载!", "错误", MessageBoxButton.OK, MessageBoxImage.Error); return; } #endregion this.Busy(); //清理关键点 ...
C#
out_par.part_extended = false; std::unique_ptr<OutputInterface> osc2013final = create_oscar_output("Oscar2013", "Particles", testoutputpath, out_par); VERIFY(bool(osc2013final)); VERIFY(std::filesystem::exists(outputfilepath_unfinished)); /* Initial state output (note that this should not do an...
C++
s0, ks1, bc, &mut ib); // tab key for i in 0..13 { let x = ks1 + i * ks0; let y = ks0; let m = metric[i as usize + 14]; kf.draw_key_border(x, y, ks0, bc, &mut ib); if m != 0.01 { kf.draw_key_background(x, y, ks0, intensity((m + offset) ...
Rust
олимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+C).","cut":"Исеци","cutError":"Сигурносна подешавања Вашег претраживача не дозвољавају операције аутоматског исецања текста. Молимо Вас да користите пречицу са тастатуре (Ctrl/Cmd+X).","paste":"Залепи","pasteArea":"Залепи зону","pasteMsg":"Молимо Вас да залепите уну...
JavaScript
A, 0xCF, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x92, 0xCF, 0x00, 0x90, 0x90, 0x17, 0x00, 0x6A, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9A, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x92, 0x00, 0x00, 0x90, 0x90, 0x0F, 0x20, 0xE0, 0x83, 0x...
Rust
end local tab = {} for _, attrDes in ipairs(skillAttrDes) do if #attrDes ~= 2 then logError("SkillEffectTable \232\161\168 SkillAttrDes \233\133\141\231\189\174\233\148\153\232\175\175,ID\228\184\186:" .. skilleffectTableRow.Id) end local des = {} des.Dec = attrDes[1] local effect = attrDe...
Lua
llx %g1, 10, %g1 or %o0, %g1, %o0 #endif ta T_SEND_THRD_INTR .word 0xb1a94820 ! 2377: FMOVCS fmovs %fcc1, %f0, %f24 setx 0x2001b, %g1, %o0 #ifdef PORTABLE_CORE mov PORTABLE_CORE, %g1 sllx %g1, 10, %g1 or %o0, %g1, %o0 #endif ta T_SEND_THRD_INTR .word 0xb3a449e0 ! 2384: FDIVq dis not found .word 0xb3a8c820 ...
Assembly
:.25rem 0}body .ui-chips .ui-chips-container .ui-chips-input-token input{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;color:#495057;-webkit-appearance:none;appearance:...
CSS
import pandas as pd import os def log_summary(method_name: str, base_dir="results"): method_dir = os.path.join(base_dir, method_name, "Training") if not os.path.exists(method_dir): return f"[{method_name}] → Diretório não encontrado." all_rows = [] for filename in sorted(os.listdir(method_dir...
Python
/* Simple DirectMedia Layer Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
C
------------------- 储存数据 ------------------------------------ /** 储存路书 */ private _roadmap: Dictionary; /** 所有房间的数据 */ private _tables: Dictionary; // ------------------------------------ 检查数据 ------------------------------------ /** 检查房间快照数据是否合法 true - 合法 | false - 不...
Typescript
L12 ) type TopLevelConfigSource struct { OracleConfig OracleConfig } type MCMSConfig struct { MinDuration time.Duration } type OracleConfig struct { MaxQueryLengthBytes uint32 MaxObservationLengthBytes uint32 MaxReportLengthBytes uint32 MaxOutcomeLengthBytes uint32 MaxReportCount uin...
Go
qi", ["栗"] = "li", ["栘"] = "yi", ["栙"] = "xiang", ["栚"] = "zhen", ["栛"] = "li", ["栜"] = "se", ["栝"] = "gua", ["栞"] = "kan", ["栟"] = "ben", ["栠"] = "ren", ["校"] = "xiao", ["栢"] = "bai", ["栣"] = "ren", ["栤"] = "bing", ["栥"] = "zi", ["栦"] = "chou", ["栧"] ...
Lua
可以证明以下定理: **定理1**:在网络分区下,保持所有权唯一性和系统可用性是不可能的,除非牺牲分区耐受性。 证明:假设系统能够保持所有权唯一性和可用性,且能够容忍任意分区。考虑资源 \(r\) 和分区 \(P_1, P_2\),如果 \(r\) 的所有者在 \(P_1\) 中,则 \(P_2\) 中的节点无法获取或修改 \(r\),除非通过与 \(P_1\) 通信。这违反了系统在任意分区下的可用性。 在实践中,可以使用以下策略处理分区: 1. **租约机制**:所有权借用有明确的时间限制 2. **多数派仲裁**:只有包含多数节点的分区保留修改权 3. **版本化所有权**:跟踪所有权转移的版本,合并时解决冲突 ```...
Markdown
create(Ref ref) { return taskTracker(ref); } /// {@macro riverpod.override_with_value} Override overrideWithValue(TaskTrackerRepo value) { return $ProviderOverride( origin: this, providerOverride: $SyncValueProvider<TaskTrackerRepo>(value), ); } } String _$taskTrackerHash() => r'004d4...
Dart
n.UiSettingsMan.FlipView_MinimizeStoryHeader; m_takeChangeAction = true; } public void OnCleanupPanel() { // Ignore for now. } /// <summary> /// Fired when the panel should try to reduce memory if possible. This will only be called /// w...
C#
_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e...
JavaScript
form); } // Start is called before the first frame update void Start() { single_t = transform.GetChild(0); double_t = transform.GetChild(1); left_t = double_t.GetChild(0); right_t = double_t.GetChild(1); Update(); } // Update is called once per frame ...
C#
namespace Marco.Forms.UI.Client.Components.Forms; public enum FieldType { /// <summary> /// Used for single line text input, such as names, short answers, etc. /// </summary> Text = 0, /// <summary> /// Used for multi-line text input, such as paragraphs, descriptions, etc. /// </summary> ...
C#
ray(); _bag = [..randoms]; _bag2 = []; _list = [..randoms]; } [Benchmark] public void TakeOneBag() { _bag.TryTake(out var x); } [Benchmark] public void FillBag() { for (var i = 0; i < entityCount; i++) { _bag2.Add(new Vector3(...
C#
" }, ["@markup.italic.markdown_inline"] = { link = "markdownItalic" }, ["@markup.heading.markdown"] = { link = "markdownBold" }, ["@markup.link.label.markdown_inline"] = { link = "markdownLinkText" }, ["@markup.strikethrough.markdown_inline"] = { strikethrough = true }, -- Ruby rubyKeywordAsMethod = { fg =...
Lua
; /** * Copyright 2011 Google Inc. 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
JavaScript
----------------------------------------------------------------------------------- function DATA:Process_SetItemsEnvelopes() local attack_max = 0.1 -- at negative attack local linear_zero = WDL_DB2VAL(0) local pump_mid_pos = 0.1 if not DATA.items then return end for i = 1, #DATA.items do ...
Lua
; } host1x.GMMU().WriteBlock(output_surface_chroma_address, chroma_buffer.data(), chroma_buffer.size()); } } // namespace Host1x } // namespace Tegra // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #include <array> #in...
C++
droid.graphics.PixelFormat import android.net.Uri import android.os.Build import android.os.Bundle import android.util.Log import android.view.MenuItem import android.view.View import android.view.Window import android.view.WindowManager import android.widget.FrameLayout import android.widget.Toast import com.tencent.s...
Kotlin
In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of thi...
C++
non-null-assertion msg.metadata!.deltaPath = [10] // Check that it does not impact the cached message expect(getCachedMessage("Cacheable")?.delta?.newElement?.text.body).toEqual( "test" ) expect(getCachedMessage("Cacheable")?.metadata?.deltaPath).toEqual([2]) // It should not be equal to the changed me...
Typescript
only affect the 4th, 5th etc. item */ } .page-matches div.scores .item { width: 33%; float: left; text-align: center; } .page-matches div.scores .item:nth-child(n+4) { margin-top: 20px; } .page-matches div.scores .item img { max-width: 100%; } .page-matches div.scores .item span { display: block; } @media ...
CSS
ap_max_pool_percent = settings.get::<usize>("zswap_max_pool_percent"); // Reboot initial_reboot(&login)?; // Connect to host let mut ushell = connect_and_setup_host_only(&login)?; // Turn on SSDSWAP. turn_on_ssdswap(&ushell)?; // Collect timers on VM let mut timers = vec![]; // ...
Rust
9C5677E46D3A75C2* ___PathSeparatorChars_6; // System.Boolean System.IO.Path::dirEqualsVolume bool ___dirEqualsVolume_7; // System.Char[] System.IO.Path::trimEndCharsWindows CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___trimEndCharsWindows_8; // System.Char[] System.IO.Path::trimEndCharsUnix CharU5BU5D_...
C++
94A86C) ## $t7 = 80950000 /* 046BC 8093D38C A6200154 */ sh $zero, 0x0154($s1) ## 00000154 /* 046C0 8093D390 25EFA86C */ addiu $t7, $t7, %lo(D_8094A86C) ## $t7 = 8094A86C /* 046C4 8093D394 8DF90000 */ lw $t9, 0x0000($t7) ## 8094A86C /* 046C8 8093D398 02202025 */ or $a0, $s1,...
Assembly
automatyczne skalowanie"]},74724:e=>{e.exports=["przełącz stan zwiniętego panelu"]},98860:e=>{e.exports=["przełącz indeksowane do skali 100"]},21203:e=>{e.exports=["przełącz skalę blokady"]},60166:e=>{e.exports=["przełącz skalę logów"]},68642:e=>{e.exports=["Włącz skalę procentową"]},33714:e=>{e.exports=["przełącz zwy...
JavaScript
_name,omitempty"` YoutubeUsername *string `protobuf:"bytes,9,opt,name=youtube_username,json=youtubeUsername" json:"youtube_username,omitempty"` YoutubeVideoid *string `protobuf:"bytes,10,opt,name=youtube_videoid,json=youtubeVideoid" json:"youtube_videoid,omitempty"` Visibility *uint32 `protob...
Go
#include <sysdep.h> #define _ASM #define _SETJMP_H #include <bits/setjmp.h> #include <asm-syntax.h> #include "bp-sym.h" #include "bp-asm.h" #define PARMS LINKAGE /* no space for saved regs */ #define JMPBUF PARMS #define SIGMSK JMPBUF+PTR_SIZE ENTRY (BP_SYM (__sigsetjmp)) ENTER movl JMPBUF(%esp), %eax CHECK_BOU...
Assembly
rayAnyHitModule) { groups[groupCount].type = VK_RAY_TRACING_SHADER_GROUP_TYPE_TRIANGLES_HIT_GROUP_KHR; if (rayClosestHitModule) { stages[stageCount].module = rayClosestHitModule; stages[stageCount].stage = VK_SHADER_STAGE_CLOSEST_HIT_BIT_KHR; groups[grou...
C++
width).toBe(50); expect(newCanvas.height).toBe(100); }); it('creates thumbnails (cover: true)', async () => { const canvas = createCanvas(200, 400); const ctx = canvas.getContext('2d'); ctx.fillStyle = '#fff'; ctx.fillRect(0, 0, 200, 400); // @ts-ignore For testing purposes only. const...
Typescript
*/ package migrator import ( "github.com/cgrates/cgrates/engine" "github.com/cgrates/cgrates/utils" ) func (m *Migrator) migrateCurrentTPratingprofiles() (err error) { tpids, err := m.storDBIn.StorDB().GetTpIds(utils.TBLTPRatingProfiles) if err != nil { return err } for _, tpid := range tpids { ratingPro...
Go
寄存器传送模拟", "register window declaration":"[计] 寄存器窗口说明", "register with":"向…登记,给…留下印象", "register with the police":"[法] 在警察局登记", "register-quad":"[计] 四倍字寄存器", "register-to-register operation":"[计] 寄存器-寄存器操作", "registerable":"可登记的\\n可挂号的", "registered":"a. 注册的, 登记过的, 记名的, 挂号的\\n[法] 已注册的, 已登记的, 挂号的", "registered accountan...
Typescript
quick_play: rept (LEN2+1/2)-1 move.l #$00000900,$ffff8802.w move.w #$0000,$ffff8802.w move.w #$1234,$112.w rte move.l #$00000800,$ffff8802.w move.w #$0000,$ffff8802.w move.w #$1234,$112.w rte endr move.l #$00000900,$ffff8802.w move.w #$0000,$ffff8802.w move.w #$1234,$112.w rte move.l #$00000800,$ffff8802...
Assembly
0x36) /* 46410 80055C10 21082400 */ addu $at, $at, $a0 /* 46414 80055C14 3E5F22A4 */ sh $v0, %lo(g_Spu + 0x36)($at) /* 46418 80055C18 0780013C */ lui $at, %hi(g_Spu + 0x28) /* 4641C 80055C1C 21082400 */ addu $at, $at, $a0 /* 46420 80055C20 305F31AC */ sw $s1, %lo(g_Spu + 0x28)($a...
Assembly
ositoryHandler.(): MavenArtifactRepository? { val codeArtifactUrl: Provider<String> = providers.environmentVariable("CODEARTIFACT_URL") val codeArtifactToken: Provider<String> = providers.environmentVariable("CODEARTIFACT_AUTH_TOKEN") return if (codeArtifactUrl.isPresent && codeArtifactToken.isPresent) { ...
Kotlin
3v-3H4v3h3zm0-3h3v-3H7v3zm0-3v-3H4v3h3zm0-3h3v-3H7v3zm0-3V7H4v3h3zm3 3v3h3v-3h-3zm3 0h3v-3h-3v3zm3 0v3h3v-3h-3zm3 0h3v-3h-3v3zm0 3v3h3v-3h-3zm0 3h-3v3h3v-3zm-3 0v-3h-3v3h3zm-3 0h-3v3h3v-3z"/></svg>'; static const String chess_king_solid = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1...
Dart
override fun onCreateView(context: Context?, rootView: FrameLayout?): View { val view = LayoutInflater.from(context).inflate(R.layout.dk_dokitview_connect, rootView, false) return view } override fun onViewCreated(rootView: FrameLayout?) { textView = findViewById<TextView>(R.id.tv_...
Kotlin
from uuid import uuid4 import json from .common import InfoExtractor from ..utils import ( int_or_none, try_get, url_or_none, ExtractorError, ) class PolsatGoIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?polsat(?:box)?go\.pl/.+/(?P<id>[0-9a-fA-F]+)(?:[/#?]|$)' _TESTS = [{ 'url'...
Python
tance = result.distance; return distBear; } LatLng vincentyDirect(LatLng coord, double bearing, double distance, Ellipsoid ellipsoid) { _LLPoint result = _destVincenty(_LLPoint.fromLatLng(coord), degToRadian(bearing), distance, ellipsoid); return result.toLatLng(); }/* Dart port of C++ implementation of ...
Dart
> test:TestClass a rdfs:Class. test:Field a rdfs:Property; rdfs:domain rdfs:Literal; qcl:order 0; rdfs:range test:TestClass.` generated, err := parser.GenerateQCL(document) require.NoError(t, err) // Should generate with Literal type assert.Contains(t, generated, "Field Literal") }) }package tri...
Go
/* * Support for LGDT3305 - VSB/QAM * * Copyright (C) 2008, 2009 Michael Krufky <mkrufky@linuxtv.org> * * This program 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 2 of ...
C
big.NewRat(3, 1000)}, Tau: &common.GenesisRat{Rat: big.NewRat(2, 10)}, Decentralization: &common.GenesisRat{Rat: new(big.Rat).SetInt64(1)}, ExtraEntropy: common.Nonce{ Type: common.NonceTypeNeutral, }, ProtocolVersion: struct { Major uint `json:"major"` Minor uint `json:"minor"` }{...
Go
e); return;} else if (line==0 && (dipsw1 & 16)) { if (debug) fprintf(stderr,"Reverse line feed rolled over 77\n\n"); line=77; linepixel=iw_get_ypix(line); return;} else { linepixel-=(currentVCPI/currentVCPIdi...
C++
writes", rate}, } // Possibly from "SHOW GLOBAL VARIABLES;" variablesVars = map[string]metric.Field{ "Key_buffer_size": {"mysql.myisam.key_buffer_size", gauge}, "Key_cache_utilization": {"mysql.performance.key_cache_utilization", gauge}, "max_connections": {"mysql.net.max_connections_available", g...
Go
:= []struct { desc string expected string // expect f to be called twice f func(ArrayEncoder) }{ {"bool", `[true,true]`, func(e ArrayEncoder) { e.AppendBool(true) }}, {"byteString", `["k","k"]`, func(e ArrayEncoder) { e.AppendByteString([]byte("k")) }}, {"byteString", `["k\\","k\\"]`, func(e Ar...
Go
ur log file in PT-Feeder/Logs or via "),r("code",[e._v("pm2 logs")]),e._v(". See the "),r("a",{attrs:{href:"http://pm2.keymetrics.io/docs/usage/quick-start/",target:"_blank",rel:"noopener noreferrer"}},[e._v("PM2 manual"),r("OutboundLink")],1),e._v(" on more details about how pm2 works.")]),e._v(" "),e._m(14),e._v(" ")...
JavaScript
rt javax.swing.JComponent; import javax.swing.JFrame; import java.awt.BorderLayout; public class PhoneDialog { public static JFrame invoke(JComponent comp, String title, String description, ImageIcon icon) { final JFrame frame = new JFrame(); frame.setIconImage(SparkRes.getImageIcon(SparkRes.TEL...
Java
local XUiBabelTowerChildSupport = XLuaUiManager.Register(XLuaUi, "UiBabelTowerChildSupport") local XUiBabelMemberHead = require("XUi/XUiFubenBabelTower/XUiBabelMemberHead") local XUiBabelTowerSupportChoice = require("XUi/XUiFubenBabelTower/XUiBabelTowerSupportChoice") local XUiBabelTowerChallengeSelect = require("XUi/...
Lua
import numpy as np from scipy.signal import savgol_filter, medfilt from scipy.ndimage import gaussian_filter1d def smooth(data, window_size, method="savgol", padding_mode="same", **kwargs): """ Smooth the data using the specified method. Parameters: data: np.ndarray The data to smooth...
Python
using System.Runtime.InteropServices; using Microsoft.Samples.Debugging.CorDebug; using Mono.Debugging.Client; namespace Mono.Debugging.Win32 { public class CorValRef : CorValRef<CorValue> { public CorValRef (CorValue val) : base (val) { } public CorValRef (CorValue val, ValueLoader loader) : base (val, lo...
C#
C_STORE_U32(r28.u32 + r29.u32, r11.u32); // bl 0x825b8d08 sub_825B8D08(ctx, base); // addi r29,r29,20 r29.s64 = r29.s64 + 20; // cmplw cr6,r29,r30 cr6.compare<uint32_t>(r29.u32, r30.u32, xer); // bne cr6,0x825ae3b4 if (!cr6.eq) goto loc_825AE3B4; loc_825AE3D4: // lwz r29,8(r24) r29.u64 = PPC_LOAD_U32(r24.u32 ...
C++
182608: /* 80182608 0017E268 38 60 00 00 */ li r3, 0 lbl_8018260C: /* 8018260C 0017E26C 39 61 00 20 */ addi r11, r1, 0x20 /* 80182610 0017E270 48 04 4B 61 */ bl _restgpr_26 /* 80182614 0017E274 80 01 00 24 */ lwz r0, 0x24(r1) /* 80182618 0017E278 7C 08 03 A6 */ mtlr r0 /* 8018261C 0017E27C 38 21 00 20 */ addi r1,...
Assembly
Element of this._htmlElement.getElementsByClassName("dialog-accept-element")) { this.addAcceptElement(acceptElement as HTMLElement); } } protected _addRejectElements(): void { for (const rejectElement of this._htmlElement.getElementsByClassName("dialog-reject-element")) { this.addRejectElement(rejectElemen...
Typescript
8Bit(p ? (p + 1) : m_argv[0]); } return appName; } String CoreApplicationPrivate::getAppVersion() const { String applicationVersion; #ifdef PDK_OS_DARWIN applicationVersion = infoDictionaryStringProperty(StringLiteral("CFBundleVersion")); #endif return applicationVersion; } String *CoreApplicationPriva...
C++
WM_DESTROY - post a quit message and return // // LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG: return TRUE; case WM_COMMAND: if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) { EndDialog(hDlg, LOWORD(wPara...
C++
// instruction less. assert_eq!(seek_instruction(&cpu, 0xF005, -2), 0xF001); } #[test] fn seek_backward_impossible_1() { let cpu = cpu_with_code! { nop stx 0x2B }; // There's no way to land on 0xF003 (the last byte of the stx // instruction...
Rust
ino Sans CNS","Microsoft JhengHei","Helvetica Neue",sans-serif}:lang(ja){font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Hiragino Sans","Hiragino Kaku Gothic Pro","Yu Gothic",YuGothic,Meiryo,"Helvetica Neue",sans-serif}:lang(ko){font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI"...
CSS
_base_ = './encnet_r50-d8_769x769_40k_cityscapes.py' model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
Python
U+707c, U+70ac, U+70c1, U+7409, U+7422, U+7480, U+74a8, U+752b, U+7574, U+7656, U+7699, U+7737, U+785d, U+78be, U+79b9, U+7a3d, U+7a91, U+7a9f, U+7ae3, U+7b77, U+7c3f, U+7d1a, U+7d50, U+7d93, U+803f, U+8042, U+808b, U+8236, U+82b8-82b9, U+82ef, U+8309, U+836b, U+83ef, U+8431, U+85c9, U+865e, U+868c, U+8759, U+8760, U+...
CSS
rcall CR rcall TIB mov [W14++], [W14] ; dup rcall TIBSIZE mlit HOLD_SIZE ; Reserve for hold buffer rcall MINUS rcall ACCEPT rcall SPACE_ rcall INTERPRET .if WRITE_METHOD == 2 rcall SET_FLASH_W_TMO .endif ...
Assembly
SchedulerServer::new( config_backend.clone(), namespace.clone(), request.remote_addr().ip(), ); let scheduler_grpc_server = SchedulerGrpcServer::new(scheduler_server.clone()); let mut tonic = TonicServer::builder() .ad...
Rust
fferenceTo(target: Vec2): Vec2 { const dx = target.x - this.x const dy = target.y - this.y return new Vec2(dx, dy) } distanceTo(target: Vec2): number { return this.differenceTo(target).magnitude() } squareDistanceTo(target: Vec2): number { return this.differenceTo(target).squareMagnitude() ...
Typescript
é", ["Pygmy Venom Web Spider"] = "Araignée Tisse-venin pygmée", ["Venom Web Spider"] = "Araignée Tisse-venin", ["Dark Strand Cultist"] = "Sectateur de la Rive noire", ["Dark Strand Adept"] = "Adepte de la Rive noire", ["ANAYA DAWNRUNNER"] = "Anaya Coursaurore", ["Bailiff Conacher"] = "Bailli Con...
Lua
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 2>&1 < %s | FileCheck %s // --------------------------------------------------------------------------// // Invalid vector list ucvtf {z0.s-z3.s}, {z0.s-z4.s} // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid number of vectors // CHECK-NEXT: ucvtf {z0.s-z...
Assembly
OSReport mr r3, r31 mr r4, r30 lwzu r12, 0x18(r3) lwz r12, 0x18(r12) mtctr r12 bctrl lwz r31, 0xC(r1) lwz r30, 0x8(r1) lwz r0, 0x14(r1) mtlr r0 addi r1, r1, 0x10 blr .global DefaultSavefileInfo DefaultSavefileInfo: addi r4, r3, 0x6FC lis r5, DefaultSavefileInfoData@h ori r5, r5, DefaultSavefileInfoDat...
Assembly
ageBox> #include <QSettings> #include <QStandardPaths> #include <ranges> namespace str = std::ranges; SettingsDialog::SettingsDialog(QWidget* parent) : QDialog(parent), ui(new Ui::SettingsDialog) { ui->setupUi(this); ui->show_api_key_button->setIcon(show_icon); ui->show_api_key_button->setToolTip("Show API Key...
C++
from typing import List class Solution: def NextSmallestElement(self, nums: List[int]): n = len(nums) st=[] sme_map=[] for i in range(n): while st and st[-1]>=nums[i]: st.pop() if st: sme_map.append(st[-1]) else: ...
Python
this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&(-.5<=this.g&&this.g<255.5)&&(-.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_fo...
JavaScript
impl<T: Parse> Parse for Bracketed<T> { fn parse(input: ParseStream<'_>) -> SynResult<Self> { let content; bracketed!(content in input); Ok(Bracketed(content.parse_terminated(T::parse)?)) } } #[derive(Debug)] pub struct Braced<T>(pub Punctuated<T, Comma>); impl<T: Parse> Parse for B...
Rust
() && thumbnailBgColor.isNotEmpty()) { LessonThumbnail.newBuilder() .setThumbnailFilename(thumbnailFilename) .setBackgroundColorRgb(Color.parseColor(thumbnailBgColor)) .build() } else if (STORY_THUMBNAILS.containsKey(storyId)) { STORY_THUMBNAILS.getValue(storyId) } else { ...
Kotlin
function; } } INCHI_HEAPCHK if ( c < 0 ) { Line->str[Line->len] = '\0'; INCHI_HEAPCHK c = RI_ERR_SYNTAX; /* fatal error: wrong char */ goto exit_function; } if ( c && strchr( pszToken, c ) ) { Line->str[Line->len] = '\0'; INCHI_HEAPCHK ...
C
n\t\t\tbool earlyExit = max( max( max(\n\t\t\t\t\tcontrast( rgbaM, rgbaN ),\n\t\t\t\t\tcontrast( rgbaM, rgbaS ) ),\n\t\t\t\t\tcontrast( rgbaM, rgbaE ) ),\n\t\t\t\t\tcontrast( rgbaM, rgbaW ) )\n\t\t\t\t\t< fxaaQualityEdgeThreshold;\n\t\t\t// . 0 .\n\t\t\t// 0 0 0\n\t\t\t// . 0 .\n\n\t\t\t#if (FXAA_DISCARD == 1)\n\t\t\t\...
JavaScript
thi %hi(_countbase),CNTB_P !cell ptr not initialized ld [CNTB_P+%lo(_countbase)],CNTB tst CNTB !did we run monstartup? be,a $1 !exit st %g0,[PROF_P+%lo(_profiling)] !reset profiling if we branch sethi %hi(_cntrs),CNTRS_P ld [CNTRS_P+%lo(_cntrs)],CNTRS !get _cntrs ! ! we've just trashed our pointer to _pro...
Assembly
"telefonos": [365020], dimencion: { diseno: { usabilidad_web: 0, usabilidad_movil: 0 }, tiempo: { descarga: 0, tamanio: "Indeterminado" }, contenido:{ informacion: 0, help: 0, user_feedback: 0, ...
Typescript
using EngineeringUnits.Units; using System; namespace EngineeringUnits; public partial class ElectricCurrentGradient { /// <summary> /// Get ElectricCurrentGradient in AmperesPerMicrosecond. /// </summary> [Obsolete("Use without the 's' - AmperesPerMicrosecond->AmperePerMicrosecond")] public ...
C#
)}.submit-status_mood_success{border-color:#7a7;background-color:rgba(0,119,0,.2)}.submit-status .link{display:inline-block;vertical-align:text-bottom}.submit-status_size_small .link:not(.image){font-size:12px}.problem{display:inline-block;margin-bottom:14px;vertical-align:top}.problem__solution{margin-top:28px}.proble...
CSS
@/****************************************************************************** @ * @ * Copyright (C) 2018 The Android Open Source Project @ * @ * 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 Licens...
Assembly
test!(text_003); test!(text_004); test!(text_005); test!(text_006); test!(text_007); test!(text_008); test!(text_009); test!(text_010); test!(text_011); test!(tree_001); test!(tree_002); // test!(tree_003); // unsupported test!(tree_err_001); <filename>src/tools/rustfmt/tests/source/issue-2761.rs const DATA: &'static [...
Rust
= " .. tostring(attackerObjectId) .. " flag = " .. tostring(flag)) if (gameObjectId == OF_PLAYER_ID and svars.espt_df_ttd_pl ~= 0) or (gameObjectId == DF_PLAYER_ID and svars.espt_of_ttd_pl_done ) then Fox.Log("**** ThisPlayer Already PlayerTapRocketArm TacticalTakeDown!! ****") else thi...
Lua
01058 80971FA8 44811000 */ mtc1 $at, $f2 ## $f2 = 59.00 /* 0105C 80971FAC 3C050600 */ lui $a1, 0x0600 ## $a1 = 06000000 /* 01060 80971FB0 44060000 */ mfc1 $a2, $f0 /* 01064 80971FB4 44071000 */ mfc1 $a3, $f2 /* 01068 80971FB8 24A500...
Assembly
} internal inline fun withResult(result: FloatArray, block: InteropScope.(InteropPointer) -> Unit): FloatArray = interopScope { val handle = toInteropForResult(result) block(handle) handle.fromInterop(result) result } internal inline fun withNullableResult(result: FloatArray, block: InteropScope.(Inte...
Kotlin
r (foo 3)))", "(b (c 1) (d 2))", "(d 2)", "(2)"); runTest(pattern, "(a (b (c 1) (d 2)) (bar (baz 3) (foo 4)))", "(baz 3)", "(3)"); runTest(pattern, "(a (b (c 1) (d 2)) (bar (baz 2 3) (foo 4)))", "(baz 2 3)", "(3)"); // immediate follows pattern = TregexPattern.compil...
Java
C8: mov r1, #6 lsl r1, r1, #0xa str r1, [r0, #0x10] _022277CE: ldr r0, [r6, r4] bl sub_0200AE18 cmp r0, #0 bne _022277DC bl GF_AssertFail _022277DC: ldr r0, [r7, r4] bl sub_0200B00C cmp r0, #0 bne _022277EA bl GF_AssertFail _022277EA: ldr r0, [r5, #4] cmp r0, #0 beq _022277FA ldr r1, [r7, r4] add r0, ...
Assembly
�行对应的功能。 4. 获取专属的URL或代码示例 检查账号登录状态与服务开通情况,生成唯一URL 5. 去对应的Client的平台进行使用 点击快捷跳转按钮,前往方舟平台的体验中心进行对应MCP Server的体验 ## 产品截图/视频 - optional ### Cursor ## 部署 [示例如下] ### UVX ```json { "mcpServers": { "tos-mcp": { "command": "uvx", "args": [ "--from", "git+https://github.com/volcengine...
Markdown
domhandler_1$3.isText)(node)) return node.data; return ""; } stringify$1.textContent = textContent; /** * Get a node's inner text, ignoring `<script>` and `<style>` tags. Ignores comments. * * @category Stringify * @param node Node to get the inner text of. * @returns `node`'s inner text. * @see {@li...
JavaScript