content
stringlengths
2
6.21k
label
stringclasses
16 values
nordered_set> // Preprocessor Macros #ifdef REPORT_BASE #undef REPORT_BASE #endif #define REPORT_BASE 0 namespace transforms { ReadableLayoutPass::ReadableLayoutPass() : KernelPass({"DominatorTreeAnalysis"}, "ReadableLayoutPass") { } void ReadableLayoutPass::initialize(const ir::Module& m) { } void ReadableLay...
C++
} } // Collect dead phis. List<HPhi> deadPhis = []; for (final block in graph.blocks) { block.forEachPhi((phi) { if (!livePhis.contains(phi)) deadPhis.add(phi); }); } // Two-phase removal, phase 1: unlink all the input nodes. for (final phi in deadPhis) { f...
Dart
void onGameResize(Vector2 size) { if (isLoaded) { _confMap(size); } super.onGameResize(size); } @override void refreshMap() { for (final element in layersComponent) { element.refresh(); } } void _confMap(Vector2 sizeScreen, {bool calculateSize = false}) { lastSizeScreen =...
Dart
1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"/></svg>');--md-source-stars-icon:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http:...
CSS
import pybamm class VoltageModel(pybamm.BaseSubModel): """ Voltage model for use with equivalent circuits. This model is used to calculate the voltage and total overpotentials from the other elements in the circuit. Parameters ---------- param : parameter class The parameters ...
Python
public void dispose(){ if(null != mShareApis){ for(Map.Entry<String, IFShareApi> entry:mShareApis.entrySet()){ entry.getValue().dispose(); //mShareApis.remove(entry.getKey());//java.util.ConcurrentModificationException } } //mShareApis ...
Java
is mimicking how a human developer writes tests, // and is auto-generated from `attribute_test.dart` by frb_internal // Please do not modify manually, but modify the origin and re-run frb_internal generator // AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT import 'package:frb_example_pure_dart_pde/src/rust/ap...
Dart
.field("clone", &self.clone) .field("init_from_rc", &self.init_from_rc) .field("set_background", &self.set_background) .field("render_icon", &self.render_icon) .field("draw_hline", &self.draw_hline) .field("draw_vline", &self.draw_vline) .field("draw_shadow", &self....
Rust
. HCP Terraform 및 Enterprise에서 워크스페이스는 여전히 terraform 실행을 실행하는 곳이지만 접근 제어, 변수 암호화, 정책 관리와 같은 추가 기능이 있습니다. Terraform은 사용자가 제어하는 안전한 컨테이너(e.g. Docker)에서만 실행됩니다. (이에 대한 한 가지 예외가 있으며 terraform을 로컬에서 실행하지만 HCP Terraform에만 상태를 저장하는 경우입니다). 로컬 작업 공간 또는 git repo 사본은 일반적으로 terraform 작업 공간과 1 : 1로 매핑됩니다. 작업 공간에 무엇을 넣어야합니까? 하나의 단...
Markdown
using Hyperai.Messages.ConcreteModels; using Hyperai.Messages.ConcreteModels.FileSources; namespace Hyperai.Messages { public static class MessageChainBuilderExtensions { public static MessageChainBuilder AddPlain(this MessageChainBuilder builder, string text) { var plain = new Pla...
C#
73 0-.468-.21-.794-.537-1.073l-6.561-6.346c-.045-.045-.087-.064-.122-.064-.059 0-.097.055-.098.12 0 .035.01.073.034.107.584.84 1.12 1.89 1.12 3.15 0 1.329-.77 2.356-2.076 2.356-.95 0-1.982-.884-1.977-2.073.002-.622.288-1.328 1.018-2.033A.624.624 0 0015 5.69c-.004-.743-1.319-1.646-2.86-1.646m-5.043.537L.537 10.93C.209 1...
Dart
amount: 1 }, { value: "L'", family: 'L', amount: -1 }, { value: 'L2', family: 'L', amount: 2 }, { value: 'U', family: 'U', amount: 1 }, { value: "U'", family: 'U', amount: -1 }, { value: 'U2', family: 'U', amount: 2 }, { value: 'D', family: 'D', amount: 1 }, { value: "D'", family: 'D', amount: -1 }, { value: '...
Typescript
companion object { data class Input(val a: Boolean, val b: Boolean, val carryIn: Boolean) data class Expected(val carryOut: Boolean, val sum: Boolean) @JvmStatic @Parameterized.Parameters(name = "{index}: {0} = {1}") fun data() = listOf( arrayOf(Input(a=false, b=...
Kotlin
} addItem(item: ){ } public get inventaryArray(): Array<Stuff|Resource> { return this._inventaryArray; } public set inventaryArray(value: Array<Stuff|Resource>) { this._inventaryArray = value; } }import Guards from './guards' import { assert } from './internal/assert' /** * 型ア...
Typescript
erable = Enumerable.Repeat(new int[1], 1); Assert.AreEqual(false, enumerable.IsReadOnly()); } [Test] public static void SetElementAtArray() { var ints = new[] { 1, 2 }; ints.SetElementAt(0, 5); CollectionAssert.AreEqual(new[] { 5, 2 }, ints); } [Test] public...
C#
from typing import Tuple import torch from torch import nn, Tensor import torch.nn.functional as F __all__ = ["TrajGRUCell"] def _warp(input: Tensor, flow: Tensor) -> Tensor: """ 这个操作和可变形卷积类似 """ device = input.device B, C, H, W = input.size() # mesh grid # 这两行代码很像 broadcasting # sh...
Python
o the function */ #define THUNK_S_19(n) LEAF_EXIT(TearoffThunk##n) #define THUNK_S_20(n) // Define the thunks from 16 onwards (these are simple thunks) #include "..\thunks_s.h" // .set macro // .set reorder
Assembly
REG_R8 = 0x7 _REG_R9 = 0x6 _REG_R10 = 0x5 _REG_R11 = 0x4 _REG_R12 = 0x3 _REG_R13 = 0x2 _REG_R14 = 0x1 _REG_R15 = 0x0 _REG_RBP = 0xa _REG_RBX = 0xb _REG_RAX = 0xe _REG_GS = 0x17 _REG_FS = 0x16 _REG_ES = 0x18 _REG_DS = 0x19 _REG_TRAPNO = 0xf _REG_ERR =...
Go
tString(ctx.string_atom().text) ctx.bool_atom() != null -> if (java.lang.Boolean.parseBoolean(ctx.bool_atom().text)) 1 else 0 ctx.NAME() != null -> Type.getType("L" + ctx.NAME().text + ";") ctx.LITERAL_NAME() != null -> Type.getType("L" + Literal...
Kotlin
/markup"; @import "partials/quote"; @import "partials/similarChannels"; @import "partials/tooltip"; @import "partials/topbarSearch"; @import "partials/foldersSidebar"; @import "partials/limitLine"; @import "partials/animatedSuper"; @import "partials/sparkles"; @import "partials/starsBadge"; @import "partials/starGift";...
CSS
}; std::unique_ptr<Array3D<float>> actual = ReferenceUtil::ConvArray3D(input, weights, 1, Padding::kSame); Array3D<float> expected = {{{17, 28, 39, 20}}}; auto actual_literal = Literal::CreateR3FromArray3D(*actual); LiteralTestUtil::ExpectR3NearArray3D<float>(expected, *actual_literal, ...
C++
pg.On("GetSLOPlugin", mock.Anything, "test-plugin1").Once().Return(&pluginengineslo.Plugin{ ID: "test-plugin1", PluginV1Factory: func(config json.RawMessage, appUtils pluginslov1.AppUtils) (pluginslov1.Plugin, error) { return testPluginAlertRuleAppender{rule: rulefmt.Rule{Expr: "test1"}}, nil }, ...
Go
Args) < absArity { err = fmt.Errorf("'%s' cmdArgs len:%d not enough,need greater than or equal %d", cmdArgs[0], len(cmdArgs), absArity) return } last := m.LastKey if last < 0 { last = last + len(cmdArgs) } for i := m.FirstKey; i <= last; i = i + m.KeyStep { keys = append(keys, cmdArgs[i]) } return } var...
Go
:Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Sampler$Builder\0", "create\0", "()Landroid/renderscript/Sampler;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } ...
Rust
final Either<Failure, bool> result = await usecase( const Params(object: {}), ); // assert expect( result.isLeft(), true, ); verifyNever( mockAuthRepository.signIn( Params(object: fakeWrongSocialValue), ), ); }, ); } // Flutt...
Dart
ocValues", false, "uninvertible", true)), mapDiff.get("id")); assertNotNull(fieldsDiff.get("added")); Map<String, Object> fieldsAdded = (Map<String, Object>) fieldsDiff.get("added"); assertNotNull(fieldsAdded.get("keywords")); // field type assert...
Java
qdev_get_gpio_in(s->ih[1], OMAP_INT_McBSP1TX), qdev_get_gpio_in(s->ih[1], OMAP_INT_McBSP1RX), &s->drq[OMAP_DMA_MCBSP1_TX], omap_findclk(s, "dspxor_ck")); s->mcbsp2 = omap_mcbsp_init(system_memory, 0xfffb1000, ...
C
Db.ref(Config.getLeaguePrefix() + '/players').once('value', snapshot => { resolve(snapshot.val()); }, error => { reject(error); }); }); } } export interface DeviceInfo { isDroid: boolean isDroidPhone: boolean isDroidTablet: boolean isW...
Typescript
sistema antes de proceder. Aquí tienes un ejemplo básico que demuestra cómo enviar una solicitud GET con autenticación básica: ```c #include <stdio.h> #include <curl/curl.h> int main(void) { CURL *curl; CURLcode res; curl_global_init(CURL_GLOBAL_DEFAULT); curl = curl_easy_init(); if(curl) { ...
Markdown
6761081ECDF    propID = 17    SearchInfo       InInvertedIndex = false       IsColumn = false    typeInfo       type = Multivalue String       IsInnate = true ``` ## Remarks PKEY values are defined in Propkey.h. ## Related topics <dl> <dt> [propertyDescription](./propdesc-schema-propertydescription.md) </dt> <dt> ...
Markdown
none[data-v-270daa59]{display:flex;justify-content:center}.music_player_wrapper .current[data-v-270daa59]{color:red}.music_player_wrapper .time_display[data-v-270daa59]{display:flex;justify-content:space-between;width:80vw;margin:0 auto}.music_player_wrapper .volume[data-v-270daa59]{position:fixed;right:0;top:50%;z-ind...
CSS
ARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */ /* Lesser General Public License for more details. */ /* */ /* You should have received a co...
C++
ad<AppBloc>().add( UpdateMovieProgress( widget.tmdbId, progressSeconds, ), ); } else if (widget.mediaType == MediaType.tvShows) { context.read<AppBloc>().add( UpdateEpisodeProgress( widget.tmdbId, ...
Dart
); } /** * 向用户发送模版消息 * @param openId 用户openId * @param templateId 模版ID * @param fields 字段列表 * @param cb 回调 */ public void sendTemplate(final String openId, final String templateId, final List<TemplateField> fields, Callback<Long> cb){ sendTemplate(loadAccessToken(), op...
Java
w0 = np.random.uniform(0, 1, size=N) # w0 /= np.sum(w0) # # # setting contraints # constraints = [ # weight_constraint, # {'type': 'eq', 'fun': lambda w, target=target: np.dot(w, drift) - target} # actual portfolio return must equal fixed portf...
Python
return -4 always; } assert_eq!(12, mock.foo(5)); assert_eq!(-4, mock.boo()); } fn return_call_with_args() { let mock = new_mock!(A); given! { <mock as A>::foo(|_| true) then_return_from |&(x)| x + 1 always; } assert_eq!(6, mock.foo(5)); } ...
Rust
} T3<Long, Long, Long> t = m.get(name); if (t == null) { T3<Long, Long, Long> old = m.putIfAbsent(name, t = new T3<>()); if (old != null) t = old; } t.set1(System.currentTimeMillis()); t.set2(0L); } /** * @param name Timer...
Java
ptz} .forceVisibility=${a?.context?.ptzControls?.enabled} > </frigate-card-ptz>`:""} <div class="seek-warning"> <frigate-card-icon title="${P("media_viewer.unseekable")}" .icon=${{icon:"mdi:clock-remove"}} > </frigate-card-icon> </d...
JavaScript
2, height / 4 + 50 + 25 * 2, 98, 20, "Reset wallpaper")) buttonList.add(GuiButton(0, width / 2 - 100, height / 4 + 55 + 25 * 4 + 5, "Back")) } override fun actionPerformed(button: GuiButton) { when (button.id) { 1 -> { enabled = !enabled enabledButt...
Kotlin
/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up...
Go
import numpy from thinc.backends._param_server import ParamServer def test_param_server_init(): array = numpy.zeros((5,), dtype="f") params = {("a", 1): array, ("b", 2): array} grads = {("a", 1): array, ("c", 3): array} ps = ParamServer(params, grads) assert ps.param_keys == (("a", 1), ("b", 2)) ...
Python
str.length / 2) { if (str[i] != str[str.length - 1 - i]) { return false } } return true } } package g3401_3500.s3464_maximize_the_distance_between_points_on_a_square // #Hard #Array #Greedy #Binary_Search #2025_02_27_Time_24_ms_(100.00%)_Space_46.55_MB_(100....
Kotlin
# Just return having found a repo already in the dest path before = hg.get_revision() elif hg.at_revision: # no update needed, don't pull before = hg.get_revision() # but force and purge if desired cleaned = hg.cleanup(force, purge) else: # get the curre...
Python
/******************************************************************************* ** File: ** copilot_cfs_msg.h ** ** Purpose: ** Define COPILOT App Messages and info ** ** Notes: ** ** *******************************************************************************/ #ifndef _copilot_cfs_msg_h_ #define _copilot_cfs_m...
C
Visibility(View.VISIBLE); tinyBackImageView.setVisibility(View.INVISIBLE); batteryTimeLayout.setVisibility(View.VISIBLE); if (urlMap.size() == 1) { clarity.setVisibility(GONE); } else { clarity.setText(JZUtils.getKeyFromLinkedMap(urlMap, cu...
Java
raw(&self) -> CH2_ERR_INT_RAW_R { CH2_ERR_INT_RAW_R::new(((self.bits >> 8) & 0x01) != 0) } #[doc = "Bit 9 - The interrupt raw bit for channel 3 turns to high level when the transmit process is done."] #[inline(always)] pub fn ch3_tx_end_int_raw(&self) -> CH3_TX_END_INT_RAW_R { CH3_TX_END...
Rust
sys::ctypes::c_char = ptr::null_mut(); let graphics = Graphics::get(); pd_func_caller!( (*graphics.0).loadIntoBitmap, c_path.as_ptr(), self.raw_bitmap, &mut out_err )?; if out_err != ptr::null_mut() { let err_msg = unsafe { CStr...
Rust
in-page-framework-field .image_preview { max-width: 600px; } } @media only screen and ( max-width: 900px ) { .admin-page-framework-field .image_preview { max-width: 440px; } } @media only screen and ( max-width: 600px ) { .admin-page-framework-field .image_preview { max-width: 30...
CSS
#pragma once #include "PotStream.h" extern "C" { #include "libswscale/swscale.h" } void* create_module(const wchar_t*, const wchar_t*); void run_module(void* module, int w, int h, int c, const char* src, char* dst); void destroy_module(void* module); using create_module_t = decltype(&create_module); using run_module...
C
namespace MassTransit.UsageTracking; using System; using System.Collections.Generic; using System.Linq; using JobService; using UsageTelemetry; public class UsageTelemetryConfigurationObserver : IConsumerConfigurationObserver, ISagaConfigurationObserver, IActivityConfigurationObserver, IHandlerConfig...
C#
from_slice(&[term]).unwrap(); prop_assert_eq!(native(&arc_process, list), Err(badarg!().into())); Ok(()) }, ) .unwrap(); } #[test] fn with_two_element_tuple_list_returns_value() { TestRunner::new(Config::with_source_file(file!())) .run( ...
Rust
} public readData(key) { var data = sessionStorage.getItem(key), returnValue = { "key" : key, "meta" : "", "data" : "", }; if (data !== null) { for (var i = 0; i < META_SIZE; i++) { returnValue.meta += ...
Typescript
"; t=", t, "; sb=", sb, "\n") panic("res") } } // call ptr dynamic with ptr dynamic func testpdpd() { a := make([]int, 10, 100) if len(a) != 10 && cap(a) != 100 { print("len and cap from new: ", len(a), " ", cap(a), "\n") panic("fail") } a = a[0:100] setpd(a) a = a[0:10] res(sumpd(a), 0, 10) a ...
Go
a, v) print "Current tool pose is: ", rob.getl() rob.movel((0.1, 0, 0, 0, 0, 0), a, v, relative=true) # move relative to current pose rob.translate((0.1, 0, 0), a, v) #move tool and keep orientation rob.stopj(a) rob.movel(x, y, z, rx, ry, rz), wait=False) while True : sleep(0.1) #sleep first since the robot m...
Markdown
ld a6, 120(sp) ld a7, 128(sp) ld s2, 136(sp) ld s3, 144(sp) ld s4, 152(sp) ld s5, 160(sp) ld s6, 168(sp) ld s7, 176(sp) ld s8, 184(sp) ld s9, 192(sp) ld s10, 200(sp) ld s11, 208(sp) ld t3, 216(sp) ld t4, 224(sp) ...
Assembly
bl HEVC_ProcessVPS subs r8, r0, #0 bne .L1812 ldr r3, [r4, #2296] mov r2, #1 add r3, r3, r5 strb r2, [r3, #2] ldr r3, [r4, #2296] strb r2, [r3, r5] .L1806: mov r0, r8 ldmfd sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc} .L1811: ldr r9, .L1814 mov r0, r4 ldr r1, .L1814+4 str r6, [r9, #-1264] bl HEVC_ProcessVPS ...
Assembly
pub fn print(&mut self, string: String, x: i32, y: i32, col: i32) { let mut x = x; let y = y; for k in 0..string.len() { let value = string.as_bytes()[k] as usize; let data; if value >= 32 && value <= 126 { data = GLYPH[value - 32]; ...
Rust
serving-directives), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noimageindex`\n \n Requests this page not to appear as the referring page of an indexed image.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_...
JavaScript
ent=[65:23 - 65:47] // CHECK: 65:23: BinaryOperator=>= Extent=[65:23 - 65:33] // CHECK: 65:23: UnexposedExpr=c:2:14 Extent=[65:23 - 65:24] // CHECK: 65:23: DeclRefExpr=c:2:14 Extent=[65:23 - 65:24] // CHECK: 65:28: UnexposedExpr= Extent=[65:28 - 65:33] // CHECK: 65:28: IntegerLiteral= Extent=[65:28 - 65:33] // CHECK: 6...
C++
| 我计划在国庆节期间前往西安旅游,请问有哪些值得推荐的景点和美食? | | 健身运动 | 我希望能够减掉10斤体重,可以为我提供一份适合初学者的健身计划吗? | | 汽车品牌评测 | 您能给出几个性价比较高的SUV汽车品牌及其优缺点评测吗? | | 编程学习 | 对于零基础的计算机编程学习者来说,建议从哪些方面入手学习? | | 美食菜谱 ...
Markdown
val currentReadme = readme.readText() for (line in currentReadme.lines()) { if (line.startsWith("## Slug to Title")) { tableFound = true } if (!tableFound) { newReadme.appendln(line) continue } ...
Kotlin
re[i] == v2.pre[i]) continue; var isNum1 = v1.pre[i].match(numRegEx); var isNum2 = v2.pre[i].match(numRegEx); // numeric has lower precedence if (isNum1 && !isNum2) return -1; if (isNum2 && !isNum1) return 1; // compare parts if (isNum1 && isNum...
JavaScript
"remote", class_files, remote_command, _("\ Manipulate files on the remote system\n\ Transfer files to and from the remote target system."), &remote_cmdlist, "remote ", 0 /* allow-unknown */, &cmdlist); add_cmd ("put", class_files, remote_put_command, _("Copy a local file to the remote system."), &re...
C
d70a,60px 84px 0 .020em #e5d70a,66px 84px 0 .020em,72px 84px 0 .020em,78px 84px 0 .020em,84px 84px 0 .020em,90px 84px 0 .020em #000202,96px 84px 0 .020em #000202,36px 90px 0 .020em #000202,42px 90px 0 .020em #000202,48px 90px 0 .020em #000202,54px 90px 0 .020em #e5d70a,60px 90px 0 .020em #e5d70a,66px 90px 0 .020em,72px...
CSS
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program and library */ /* SCIP --- Solving Constraint Integer Programs */ ...
C
ZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=); } .mce-visualblocks pre { padding-top: 10px; border: 1px dashed #BBB; margin-left: 3px; background: transparent no-repeat url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==); }...
CSS
--- third_party/nasm/config/config-linux.h.orig 2021-01-07 00:39:33 UTC +++ third_party/nasm/config/config-linux.h @@ -139,7 +139,7 @@ #define HAVE_ACCESS 1 /* Define to 1 if you have the `canonicalize_file_name' function. */ -#define HAVE_CANONICALIZE_FILE_NAME 1 +/* #undef HAVE_CANONICALIZE_FILE_NAME */ /* Def...
C
requireForEachWithIndex = true, requirePaddingAtBottom = true, forEachCb = {}, ){idx, it-> //长按会更新curObjInPage为被长按的条目 SubmoduleItem(it, lastClickedItemKey, isItemInSelected, onLongClick = { i...
Kotlin
a "FileInfo" instance will be returned, // otherwise the "FileInfo" will be empty and an error will be returned. func (f *FileConnector) CheckFileInfo(ctx context.Context) (*ConnectorResponse, error) { wopiContext, err := middleware.WopiContextFromCtx(ctx) if err != nil { return nil, err } logger := zerolog.Ctx...
Go
Run = this.loopCheckRun(nodeProjectInfoModel, originalModel, false); return CommandOpResult.of(checkRun, checkRun ? "stop done" : "stop done,but unsuccessful") .appendMsg(status.getMsgs()) .appendMsg(webHook); } else { // ...
Java
292d2160c0066772ffa46bdbf5433", sha512) file.delete() } @Test fun `file empty sha`() { val file = getTempFile("test_file_empty_sha") file.appendText("") val sha256 = file.sha256() val sha512 = file.sha512() assertEquals("e3b0c44298fc1c149afbf4c8996fb92427ae41...
Kotlin
= ptr::null_mut(); let mut source_object = ptr::null_mut(); let res = ffi::g_socket_listener_accept_socket_finish(_source_object as *mut _, res, &mut source_object, &mut error); let result = if error.is_null() { Ok((from_glib_full(res), from_glib_none(source_object))) } else { Err(fr...
Rust
} status = ContactDetailsTable.syncSetNativeIds(detailIdList, writableDb); if (ServiceStatus.SUCCESS != status) { return false; } return true; } } LogUtils.logD("ContactDetailsTable.findNativ...
Java
ant} /*# sourceMappingURL=primer.css.map */ .theme-green, .theme-blue, .theme-dark-blue, .theme-dark-green { --unknown_color: var(--color-neutral-emphasis-plus); --low_color: var(--color-danger-emphasis); --low_color_fg: var(--color-danger-fg); --medium_color: var(--color-attention-emphasis); --medi...
CSS
ign) { cmdStr = "release"; } return new Promise((resolve, reject) => { let cmd = `npm${commandSuffix}`; let args = ["run", cmdStr]; let opts = { cwd: projDir, shell: true }; let cp = childProcess.spawn(cmd, args, opts); // let cp = childProcess.spawn(`npx${commandSuffix}`, ['-v']); cp.s...
JavaScript
// Copyright (c) 1997-2001 // ETH Zurich (Switzerland). All rights reserved. // // This file is part of CGAL (www.cgal.org). // 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 o...
C
// // VROControllerInputType.h // ViroRenderer // // Copyright © 2017 Viro Media. All rights reserved. // // 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 without restriction, includi...
C
AdvancedStateCreateInfoEXT.html) /// /// Struct Extends: [`VkPipelineColorBlendStateCreateInfo`] VkPipelineColorBlendAdvancedStateCreateInfoEXT { /// * **Values:** [`VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT`] sType: VkStructureType, /// * **Optional:** true pNext: *con...
Rust
SCAextra1"] = "23" e["overridden-chartA-B.SCBextra1"] = "13" e["overridden-chartA-B.SC1extra6"] = "77" // `exports` style e["SCBexported1B"] = "1965" e["SC1extra7"] = "true" e["SCBexported2A"] = "blaster" e["global.SC1exported2.all.SC1exported3"] = "SC1expstr" if err := processDependencyImportValues(c, false)...
Go
e == "lnum" then local featuret = find_feature_string(fonttable,"lnum") if featuret and #featuret > 0 then featuret = featuret[1] end for i=48,57 do local lookups = new_f.characters[i].lookups if ...
Lua
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
Python
DataArray = DummyDataItem[]; export const dummyData: DummyDataArray = [ { name: 'Raphael', subject: 'amet lorem semper auctor. Mauris vel turpis.', date: 'Sun, 17th, 2019', text: 'mollis dui, in sodales elit erat vitae risus. Duis a mi fringilla mi lacinia mattis. Integer eu lacus. Quisque imperdiet,...
Typescript
VirtualServiceObservation_2 `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true // +kubebuilder:subresource:status // VirtualService is the Schema for the VirtualServices API. Provides an AWS App Mesh virtual service resource. // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".sta...
Go
'padding': [/.*/], 'border': [/.*/], }, } }); } /** * Sanitize but convert everything just to plain text. */ export function toText(html: string) { return sanitizeHtml(html, { allowedTags: [], allowedAtt...
Typescript
"aaa.txt", Size: buflen, ContentType: "text/plain", } var u2 *graphql.Upload = nil want2 := (*file.File)(nil) tests := []struct { name string arg *graphql.Upload want *file.File }{ { name: "from file valid", arg: &u1, want: &want1, }, { name: "from file nil", arg: u2, ...
Go
= U64; type GenesisEpoch = U0; fn default_spec() -> ChainSpec { ChainSpec::mainnet() } } pub type FoundationBeaconState = BeaconState<MainnetEthSpec>; /// Ethereum Foundation minimal spec, as defined here: /// /// https://github.com/ethereum/eth2.0-specs/blob/v0.6.3/configs/constant_presets/mini...
Rust
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2022 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the...
C
'; // weex.init(Vue); // 2. src/router/index.js // import Vue from 'vue' const webEntry = getEntryFile(); const createLintingRule = () => ({ test: /\.(js|vue)$/, loader: 'eslint-loader', enforce: 'pre', include: [helper.rootNode('src'), helper.rootNode('test')], options: { formatter: require('eslint-fri...
JavaScript
Invalid ArgType 2", argType: fs.TypeFloat64 + 1, expected: "invalid", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { result := tt.argType.Common() assert.Equal(t, tt.expected, result) }) } } func TestArgTypeString(t *testing.T) { tests := []struct { name string argT...
Go
odified.compareTo(bModified); } catch (e) { // 如果获取修改时间失败,回退到文件名排序 result = p.basename(a.path).toLowerCase().compareTo(p.basename(b.path).toLowerCase()); } break; case 3: // 修改时间降序(新到旧) try { final aModified = a.statSync().modified; ...
Dart
icense // along with this program. If not, see http://www.gnu.org/licenses/. // </copyright> // <summary> // Url: https://github.com/Smurf-IV/Elucidate // Email: https://github.com/Smurf-IV // </summary> // -----------------------------------------------------------------------------------------------------------...
C#
TagNumber(2) set hiddenLocation($2.Location value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasHiddenLocation() => $_has(1); @$pb.TagNumber(2) void clearHiddenLocation() => $_clearField(2); @$pb.TagNumber(2) $2.Location ensureHiddenLocation() => $_ensure(1); } enum EventAttendance_Attendee {...
Dart
using System.Threading.Tasks; using AElf.Contracts.CrossChain; using AElf.CrossChain; using AElf.Kernel; using AElf.Kernel.Blockchain.Application; using Google.Protobuf.WellKnownTypes; using Shouldly; using Xunit; namespace AElf.ContractTestBase.Tests; public sealed class SideChainTests : SideChainTestBase { pri...
C#
.7 60 35.3 60 71c0 39.8-32.2 72-72 72H72c-39.8 0-72-32.2-72-72c0-35.7 25.9-65.3 60-71c-17-13.2-28-33.8-28-57c0-39.8 32.2-72 72-72h13.7C104.4 228.3 96 211.1 96 192c0-35.3 28.7-64 64-64h16.2c44.1-.1 79.8-35.9 79.8-80c0-9.2-1.5-17.9-4.3-26.1c-1.8-5.2-.8-11.1 2.8-15.4z", ], "location-pin": [ ...
JavaScript
export function ok<T>(data: T): Ok<T> { const base: BaseResult<T, never> = Object.create(BaseResult.prototype); return Object.assign(base, { data() {} }); } const a: Result<number, Error> = {} as Ok<number>; const b: Result<string, TypeError> = {} as any; if (a.isErr()) { console.log(a.error()); } a.data...
Typescript
require( "npx_scenario" ) require( "tasks/task_sequence" ) require( "tasks/task_move_to_location" ) require( "tasks/task_attack_enemy_tower" ) require( "tasks/task_drop_tower_aggro" ) -------------------------------------------------------------------- if CDotaNPXScenario_Tower == nil then CDotaNPXScenario_Tower = c...
Lua
* 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 agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres...
Java
*/ lbu $v0, 0xD($s1) /* 359A33C 80088D74 F8FF6324 */ addiu $v1, $v1, -0x8 /* 359A340 80088D78 0C0023A2 */ sb $v1, 0xC($s1) /* 359A344 80088D7C 0B002392 */ lbu $v1, 0xB($s1) /* 359A348 80088D80 F8FF4224 */ addiu $v0, $v0, -0x8 /* 359A34C 80088D84 36036010 */ beqz $v1, .Llevel_...
Assembly
{ "h": "蹌", "p": "qiāng", "sp": "qiang", "r": "足", "sc": 17, "l": 5, "f": 8544 }, {"h": "蹹", "p": "tá", "sp": "ta", "r": "足", "sc": 19, "l": 5, "f": 8545}, {"h": "鈰", "p": "shì", "sp": "shi", "r": "金", "sc": 13, "l": 5, "f": 8546}, {"h": "銑", "p": "xiǎn", "sp": "xian", "r": "金", "sc...
Dart
, [%r16 + 0x014f] .word 0xbe05c000 ! 311: ADD_R add %r23, %r0, %r31 .word 0xfe2d0000 ! 312: STB_R stb %r31, [%r20 + %r0] .word 0xfe750000 ! 314: STX_R stx %r31, [%r20 + %r0] .word 0xfa3c8000 ! 317: STD_R std %r29, [%r18 + %r0] .word 0xbf540000 ! 319: RDPR_GL <illegal instruction> .word 0x85952093 ! 321: WR...
Assembly