content
stringlengths
2
6.21k
label
stringclasses
16 values
readonly id: Maybe<Scalars["Long"]>; readonly isCool: Scalars["Boolean"]; readonly name: Maybe<Scalars["String"]>; }; export type CarInput = { /** A car's id */ readonly id: Maybe<Scalars["Long"]>; /** A car's name */ readonly name: Maybe<Scalars["String"]>; }; /** Mutation root */ export type Mutation = ...
Typescript
tab) { // Get the tab content var content = document.querySelector(tab.hash); if (!content) return; // Setup the tab destroyTab(tab, content, settings); }); // Remove role from wrapper tabWrapper.removeAttribute("role"); // Remove even...
JavaScript
rcx),%xmm6 pxor %xmm5,%xmm13 pxor %xmm5,%xmm14 movdqa %xmm12,64(%rax) movdqa %xmm13,80(%rax) movdqa %xmm14,96(%rax) movdqa %xmm15,112(%rax) leaq 128(%rax),%rax decl %r10d jnz .Lkey_loop movdqa 80(%r11),%xmm7 ...
Assembly
}; use um::winbase::LocalFree; use um::winnt::{HANDLE, LONG, LPSTR, LPWSTR, PVOID, SID}; #[inline] pub unsafe fn AccFree(p: PVOID) -> PVOID { LocalFree(p) } ENUM!{enum SE_OBJECT_TYPE { SE_UNKNOWN_OBJECT_TYPE = 0, SE_FILE_OBJECT, SE_SERVICE, SE_PRINTER, SE_REGISTRY_KEY, SE_LMSHARE, SE_KER...
Rust
nop.m 0 (p11) fms.s1 FR_poly_lo = FR_poly_lo, FR_rcub, FR_h//poly_lo=poly_lo*r^3+h nop.i 0 };; { .mfi nop.m 0 fadd.s0 FR_Y_lo = FR_poly_hi, FR_poly_lo // Y_lo=poly_hi+poly_lo nop.i 0 } { .mfi nop.m 0 (p11) fma.s0 FR_Y_hi = FR_Y_hi, FR_Neg_One, f0 // FR_Y_hi sign fo...
Assembly
wxEmptyString; const DONGLE_TYPE DEFAULT_DONGLE_TYPE = DT_DV3000; const wxString DEFAULT_DONGLE_DEVICE = wxEmptyString; const wxString DEFAULT_DONGLE_ADDRESS = wxT("127.0.0.1"); const unsigned int DEFAULT_DONGLE_PORT = 2460L; const bool DEFAULT_BLEEP = true; CDVToolReaderApp::CDVTool...
C++
ontent.REINFORCED_CRIMSON_STAIRS); addWoodenStairsRecipe(SCContent.REINFORCED_DARK_OAK_PLANKS, SCContent.REINFORCED_DARK_OAK_STAIRS); addWoodenStairsRecipe(SCContent.REINFORCED_JUNGLE_PLANKS, SCContent.REINFORCED_JUNGLE_STAIRS); addWoodenStairsRecipe(SCContent.REINFORCED_MANGROVE_PLANKS, SCContent.REINFORCED_MANG...
Java
LEVEL 0x7 struct hns_roce_wqe_atomic_seg { __le64 fetchadd_swap_data; __le64 cmp_data; }; struct hns_roce_sccc_clr { __le32 qpn; __le32 rsv[5]; }; struct hns_roce_sccc_clr_done { __le32 clr_done; __le32 rsv[5]; }; int hns_roce_v2_query_cqc_info(struct hns_roce_dev *hr_dev, u32 cqn, ...
C
{ errn += verify("test_2vi_scl: a1", i, a1[i], (byte)-1); } else if (i*SCALE < ARRLEN) { errn += verify("test_2vi_scl: a1", i*SCALE, a1[i*SCALE], (byte)123); } if (i%SCALE != 0) { errn += verify("test_2vi_scl: a2", i, a2[i], (byte)-1); } else if (i*SCALE < ...
Java
UpdateSourceExprListImpl * @see org.eclipse.datatools.modelbase.sql.query.impl.SQLQueryModelPackageImpl#getUpdateSourceExprList() * @generated */ int UPDATE_SOURCE_EXPR_LIST = 78; /** * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list. * <!-- begin-user-doc --...
Java
using UnityEngine; namespace UnityStandardAssets.Utility { public class SmoothFollow : MonoBehaviour { // The target we are following [SerializeField] private Transform target; // The distance in the x-z plane to the target [SerializeField] private float distance = 10.0f; // the height we want the ca...
C#
cdn.beekka.com/blogimg/asset/202211/bg2022112304.webp) 本次活动由字节跳动技术沙龙主办,现在就可以点击[这个链接](https://www.bagevent.com/event/8337204?bag_track=001),或扫描海报二维码,了解活动详情并报名。主办方为所有参会者准备了精美的礼品抽奖,不要错过。 ## 科技动态 1、[步枪射击纪录](https://cowboystatedaily.com/2022/09/20/at-4-4-miles-wyoming-team-sets-new-rifle-shot-world-record/) 美国怀俄明州的一群射击爱...
Markdown
override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {} override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {} } binding!!.etMinuteCyclicFrom.addTextChangedListener(minuteCyclicWatcher) binding!!.etMinuteCyclicTo.addTextC...
Kotlin
bin "baserom.gba", 0x3E59C0, 0x0000038 gUnk_083E59F8:: @ 083E59F8 .incbin "baserom.gba", 0x3E59F8, 0x00000F8 gUnk_083E5AF0:: @ 083E5AF0 .incbin "baserom.gba", 0x3E5AF0, 0x00000E4 gUnk_083E5BD4:: @ 083E5BD4 .incbin "baserom.gba", 0x3E5BD4, 0x000001C gUnk_083E5BF0:: @ 083E5BF0 .incbin "baserom.gba", 0x3E5BF0, 0x0...
Assembly
NEVER_MATCHES_VALUE_TYPE, 24, 5), ]); } test_ifCase_listLiteral() async { await assertNoDiagnostics(r''' void f() { if ([1] case [1]) { print(''); } } '''); } test_ifCase_mapLiteral() async { await assertNoDiagnostics(r''' void f() { if ({1:0} case {1:0}) { print(''); } } '''); }...
Dart
max2 = fabs(q1_0_p0_0); } if( (max2 < fabs(q1_1_p0_1)) ) { max2 = fabs(q1_1_p0_1); } if( (max2 < fabs(q2_0_p0_0)) ) { max2 = fabs(q2_0_p0_0); } if( (max2 < fabs(q2_1_p0_1)) ) { max2 = fabs(q2_1_p0_1); } double max3 = fabs(p1_0_p0_0); if( (...
C++
maxUInt32 return } for i._first <= limit && len(i.blob) > 0 { delta, sz := binary.Uvarint(i.blob) i._first += uint32(delta) i.blob = i.blob[sz:] } if i._first <= limit && len(i.blob) == 0 { i._first = maxUInt32 } } func (i *compressedPostingIterator) updateStats(s *Stats) { s.IndexBytesLoaded += int6...
Rust
.getElementById(e.trim().split("#")[1])],i=0;i<s.length;i+=1)s[i]&&a.push(s[i])}else if(e.nodeType||e===J||e===f)a.push(e);else if(0<e.length&&e[0].nodeType)for(i=0;i<e.length;i+=1)a.push(e[i]);return new l(a)}function r(e){for(var t=[],a=0;a<e.length;a+=1)-1===t.indexOf(e[a])&&t.push(e[a]);return t}L.fn=l.prototype,L....
JavaScript
spNode == theNodeTag) { // theSPTags[cnt] = theSP->getTag(); // cnt++; #ifdef MMTDEBUG opserr<<"identified SP_Constraint "<<theSP->getTag()<<" acting on node "<<spNode<<endln; #endif SP_Constraint *theSPConstraint = thePattern->removeSP_Constraint(theSP->getTag()); if (theSPConstraint != 0) { #ifdef MMTDEBUG ...
C++
ny later version and our eula as published * by QAuxiliary contributors. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Affero General Public License for mor...
Kotlin
local fio = require('fio') local msgpack = require('msgpack') local netbox = require('net.box') local server = require('luatest.server') local t = require('luatest') local g = t.group(nil, t.helpers.matrix{connection = {'connection', 'stream'}}) g.before_all(function(cg) cg.server = server:new() cg.server:sta...
Lua
) repo := NewGit(home, "caarlos0/ports") require.NoError(t, repo.Download()) alreadyClonedRepo := NewClonedGit(home, "https-COLON--SLASH--SLASH-github.com-SLASH-caarlos0-SLASH-ports") require.NoError(t, alreadyClonedRepo.Update()) } func TestUpdateNonExistentLocalRepo(t *testing.T) { home := home() repo := NewGi...
Go
of all named parameters of the <i>m<sub>1</sub>, &hellip;, * m<sub>k</sub></i>. Then let * * <i>h = max(numberOfPositionals(m<sub>i</sub>)),</i> * * <i>r = min(numberOfRequiredParams(m<sub>i</sub>)), for all <i>i</i>, 1 <= * i <= k.</i> If <i>r <= h</i> then <i>I</i> has a method named <i>n</i>, * ...
Dart
/* * This file is part of the Soletta (TM) Project * * Copyright (C) 2015 Intel Corporation. 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.a...
C
gq', 'hj9ll8spk3co.ml', 'hj9ll8spk3co.tk', 'hjdosage.com', 'hjfgyjhfyjfytujty.ml', 'hjgh545rghf5thfg.gq', 'hjios.us', 'hjirnbt56g.xyz', 'hjkcfa3o.com', 'hjkhgh6ghkjfg.ga', 'hk188188.com', 'hkd6ewtremdf88.cf', 'hkfs.ru', 'hkft7pttuc7hdbnu.cf', 'hkft7pttuc7hdbnu.ga', 'hkft7pttuc7hdbnu.ml', 'hkhangsen.ru',...
JavaScript
/* BAREOS® - Backup Archiving REcovery Open Sourced Copyright (C) 2000-2012 Free Software Foundation Europe e.V. Copyright (C) 2011-2012 Planets Communications B.V. Copyright (C) 2013-2023 Bareos GmbH & Co. KG This program is Free Software; you can redistribute it and/or modify it under the terms of...
C
/* * pomdp-solve * * Copyright © 1998-2003, Anthony R. Cassandra * Copyright © 1994-1997, Brown University * * Licensed under the Creative Commons Attribution-NonCommercial 4.0 * International License (CC BY-NC 4.0). * * See the LICENSE.txt file for details. */ #include <stdlib.h> #ifndef XALLOC_H #define ...
C
strippedDesc = policy.StripTagsPolicy.Sanitize(desc) } else { strippedDesc = policy.StripTagsPolicy.Sanitize(strippedDesc) } issue.DescriptionHtml = desc strippedDesc = strings.TrimSpace(strippedDesc) issue.DescriptionStripped = &strippedDesc issue.DescriptionHtml = policy.UgcPolicy.Sanitize...
Go
// This file is part of SymCC. // // SymCC is free software: you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the Free Software // Foundation, either version 3 of the License, or (at your option) any later // version. // // SymCC is distributed in the hope th...
C
Browser(It.Is<Uri>(uri => HasStateParam(uri, "appInstanceKey") && HasStateParam(uri, "taskId")))); } [Fact] public void Should_Open_Browser_With_State_On_Logout() { var mockAppInstance = new Mock<IAppInstanceProxy>(); var mockHelpers = new Mock<IHelpers>(); var mockTasksManager ...
C#
e Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ package ca.mcgill.sable.soot.editors; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.ITextDoubleClickStrategy; import org.eclipse.jface.text.ITextHover; import org.eclipse.jface.text.TextAttribute; im...
Java
r-layer .ace_selection {background: rgba(145, 153, 148, 0.40)}.ace-mono-industrial.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #222C28;border-radius: 2px}.ace-mono-industrial .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-mono-industrial .ace_marker-layer .ace_bracket {margin: -1px ...
JavaScript
fromUncompressedHex(bytes: Uint8Array) { if (bytes.length !== 65) { throw new TypeError(`Point.fromHex: uncompressed expects 130 bytes, not ${bytes.length * 2}`); } const x = bytesToNumber(bytes.slice(1, 33)); const y = bytesToNumber(bytes.slice(33)); const point = new Point(x, y); point.a...
Typescript
E_PRINTER_DISCOVERY_SESSION); } @Override public void destroyPrinterDiscoverySession() { mHandler.sendEmptyMessage(ServiceHandler.MSG_DESTROY_PRINTER_DISCOVERY_SESSION); } public void startPrinterDiscovery(List<PrinterId> priorityList) { ...
Java
/** ****************************************************************************** * @file hw_config.h * @author MCD Application Team * @version V4.0.0 * @date 21-January-2013 * @brief Hardware Configuration & Setup ****************************************************************************** ...
C
cfg_attr(feature = "v3_14", deprecated)] fn connect_property_rules_hint_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_search_column_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_show_expanders_notify<F: Fn(&Self) + 'static>(&self,...
Rust
// // Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57). // // Copyright (C) 1997-2019 Steve Nygard. // #import "Assistant.h" #import "MCActivityTarget-Protocol.h" @class MCActivityMonitor, MFPersistenceVersionUpgrader, NSButton, NSProgressIndicator, NSString, NSTextField, NST...
C
Ashenvale,11.22,31.04,50,0 .goto Ashenvale,10.38,29.60,50,0 .goto Ashenvale,11.01,28.57,50,0 .xp 21 >> Grind to level 21 step #label ZoramFP .goto Ashenvale,12.24,33.80 >>|Tinterface/worldmap/chatbubble_64grey.blp:20|tTalk to |cRXP_FRIENDLY_Andruk|r .fp Zoram'gar Outpost >> Get the Zoram'gar Outpost ...
Lua
res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logger_addHandler" "', argument " "1"" of type '" "logging::Logger *""'"); } arg1 = reinterpret_cast< logging::Logger * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__unique_ptrT_logging__Handler_t, 0 ); if (!SWIG_IsOK(res2))...
C++
Type.Net, 1085), ER_FILE_EXISTS_ERROR(ErrorType.Net, 1086), ER_LOAD_INFO(ErrorType.Net, 1087), ER_ALTER_INFO(ErrorType.Net, 1088), ER_WRONG_SUB_KEY(ErrorType.Net, 1089), ER_CANT_REMOVE_ALL_FIELDS(ErrorType.Net, 1090), ER_CANT_DROP_FIELD_OR_KEY(ErrorType.Net, 1091), ER_INSERT_INFO(ErrorType.N...
Java
CANCEL_OPTION</code> * </ul> * You aren't limited to this set of option buttons. You can provide any * buttons you want using the options parameter. * <dt>options<dd>A more detailed description of the set of option buttons * that will appear at the bottom of the dialog box. * The usual value for the options para...
Java
_0001_0000) >> 4; let b2 = (num & 0b0_0000_0000_1000) >> 3; let d2 = (num & 0b0_0000_0000_0100) >> 2; let b4 = (num & 0b0_0000_0000_0010) >> 1; let d4 = num & 0b0_0000_0000_0001; let a = a4 << 2 | a2 << 1 | a1; let b = b4 << 2 | b2 << 1 | b1; let c = c4 << 2 | c2...
Rust
*cognitoidentityprovider.ListIdentityProvidersOutput if rf, ok := ret.Get(1).(func(*cognitoidentityprovider.ListIdentityProvidersInput) *cognitoidentityprovider.ListIdentityProvidersOutput); ok { r1 = rf(_a0) } else { if ret.Get(1) != nil { r1 = ret.Get(1).(*cognitoidentityprovider.ListIdentityProvidersOutput...
Go
tBuffers[i].name == "$ThisPointer") { psInfo->psThisPointerConstBuffer = &psInfo->psConstantBuffers[i]; } } } } #include "internal_includes/HLSLCrossCompilerContext.h" #include "internal_includes/HLSLccToolkit.h" #include "internal_includes/Shader.h" #include "inter...
C++
= append(completions, path) } } return result, completions } // Add remote files to the completions being built up func addRemoteFiles(toComplete string, result cobra.ShellCompDirective, completions []string) (cobra.ShellCompDirective, []string) { ctx := context.Background() parent, _, err := fspath.Split(toComp...
Go
is set to the **DeviceType** member of the associated NET\_ROOT structure. If the **Type** member of the associated NET\_ROOT is NET\_ROOT\_PIPE, **Info.Buffer.DeviceType** member is set to FILE\_DEVICE\_NAMED\_PIPE. For an IRP\_MJ\_QUERY\_VOLUME\_INFORMATION request with the **Info.FsInformationClass** member set to...
Markdown
.long("band") .help("Sakoe Chiba band for DTW computation DEFAULT 1.0") .takes_value(true)) .arg(Arg::with_name("in1") .long("in1") .help("First input file") .required(true) .takes_value(true)) .arg(Arg::with_name("in2") .long("in2") .help("Second input file") ...
Rust
(cs); if (auto s = connections.find(aUploadToken); s != connections.end()) { return s->second; } return nullptr; } UploadBundlePtr UploadBundleInfoReceiver::findByBundleToken(const string& aBundleToken) const noexcept { RLock l(cs); if (auto s = bundles.find(aBundleToken); s != bundles.end()) { return s->sec...
C++
(&read.seq(), 5)); assert!(is_homo_polymer(&read.seq(), 4)); } #[test] fn test_log_likelihood() { /* use super::{Coverage, HaplotypeLogLikelihoods}; use ndarray::prelude::*; let count_a = vec![100 as u32, 0, 0, 100, 25]; let count_c = vec![0 as u32, 200, 0, 0...
Rust
using System.Collections.Generic; using Sledge.BspEditor.Tools.Vertex.Selection; namespace Sledge.BspEditor.Tools.Vertex.Errors { public class VertexError { public string Key { get; set; } public VertexSolid Solid { get; set; } public List<MutableFace> Faces { get; set; } publi...
C#
tipKey, limit) if (not starter) then return 0 end -- Need to know when this quest starts from an item, so we save it later ---@type string|nil local starterType if tooltipKey == "m_"..starter.id then -- filter hostile starters if playerFaction == "Alliance" and starter....
Lua
ff_by_one(x: &str, y: &str) -> Option<String> { // Compute String of common letters let candidate: String = x .chars() .zip(y.chars()) .filter_map(|(x, y)| if x == y { Some(x) } else { None }) .collect(); // Return the candidate if it is one shorter than the original if ...
Rust
return "org.opencontainers.image.enc.keys.pkcs11" } // NewKeyWrapper returns a new key wrapping interface using pkcs11 func NewKeyWrapper() keywrap.KeyWrapper { return &pkcs11KeyWrapper{} } // WrapKeys wraps the session key for recpients and encrypts the optsData, which // describe the symmetric key used for encry...
Go
5131a&chksm=fe79e35bc90e6a4d32699034dcf6c752d63eb31305f62c9a2ff63f852f69c24b89743c314aca&token=46374034&lang=zh_CN&scene=21#wechat_redirect) [【已复现】Nacos Derby 远程命令执行漏洞(QVD-2024-26473)安全风险通告](https://mp.weixin.qq.com/s?__biz=MzU5NDgxODU1MQ==&mid=2247501756&idx=1&sn=d2a6bccad06819cf70176bc02a7ee944&chksm=fe79e324c90e6a...
Markdown
g.Load5); err != nil { klog.Errorf("Failed to record cpu load 5m: %v", err) } } if cc.mCpuLoad15m != nil { if err := cc.mCpuLoad15m.Record(map[string]string{}, loadAvg.Load15); err != nil { klog.Errorf("Failed to record cpu load 15m: %v", err) } } } func (cc *cpuCollector) recordSystemStats() { // don'...
Go
3DC408 83 E1 00 0C */ lwz r31, 0xc(r1) /* 803DF60C 003DC40C 38 21 00 10 */ addi r1, r1, 0x10 /* 803DF610 003DC410 7C 08 03 A6 */ mtlr r0 /* 803DF614 003DC414 4E 80 00 20 */ blr .global func_803DF618 func_803DF618: /* 803DF618 003DC418 7C 08 02 A6 */ mflr r0 /* 803DF61C 003DC41C 90 01 00 04 */ stw r0, 4(r1) /* 8...
Assembly
let item: CartItems = req.body; item.id = id; // just to be safe, make sure id is correct // #1 - find the index (findIndex) const index: number = CartItems.findIndex(item => item.id === id); // #2 - replace at that index if (index !== -1) { // i.e. If it WAS found CartItems[index] =...
Typescript
ady rolled'); } else { if (opponentInitialDice < 0) { // Both players have rolled, so start the game game.gameState.gamePhase = PLAY; const msg0 = game.gameState.player0Turn ? "Your turn" : `${game.name1}'s turn`; const msg1 = game.gameState.player0Turn ...
Typescript
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __NETNS_XFRM_H #define __NETNS_XFRM_H #include <linux/list.h> #include <linux/wait.h> #include <linux/workqueue.h> #include <linux/xfrm.h> #include <net/dst_ops.h> struct ctl_table_header; struct xfrm_policy_hash { struct hlist_head __rcu *table; unsigned int hmask; ...
C
te fun checkInitialization() { if (!Initializer.isInitialized()) { throw RuntimeException("Platform library not initialized, check if you called Initializer.initialize()") } } override fun hashBlake2bMultipart(key: UByteArray?, hashLength: Int): Blake2bMultipart { checkIniti...
Kotlin
<stdlib.h> // define character size #define CHAR_SIZE 26 // A Trie node struct Trie { int isLeaf; // 1 when node is a leaf node struct Trie* character[CHAR_SIZE]; }; // Function that returns a new Trie node struct Trie* getNewTrieNode() { struct Trie* node = (struct Trie*)malloc(sizeof(struct Trie)); node->isLe...
C++
mBanner_2).FirstSpawnEntry; neutralAuraSpawn = GOMgr.GetEntry(GOEntryId.NeutralBannerAura).SpawnEntries[(int)ArathiBases.Farm]; allianceBannerSpawn = GOMgr.GetEntry(GOEntryId.AllianceBanner_10).SpawnEntries[(int)ArathiBases.Farm]; allianceAuraSpawn = GOMgr.GetEntry(GOEntryId.Allianc...
C#
val parameters = mapOf("last_names" to lastNames) return session.select(sql, parameters, options("findByLastNames"), table.rowMapper()) } fun findByFilmIds(ids: Collection<Int>): Map<Int, Collection<A>> { val filmActors = filmActorDao.findByFilmIds(ids) val films = findByIds(filmAct...
Kotlin
.Epoch) map[string]bool { inferenceServingNodeIds := make(map[string]bool) // Skip for first epoch if upcomingEpoch.Index <= 1 { return inferenceServingNodeIds } // Get current epoch group data currentEpochGroup, err := am.keeper.GetCurrentEpochGroup(ctx) if err != nil { am.LogError("getInferenceServingNod...
Go
>, void*>>>::__compressed_pair<bool=1, __hash_node_base<__hash_node<__hash_value_type<basic_string<char, char_traits<char>, allocator<char>>, vector<shared_ptr<Token>, allocator<shared_ptr<Token>>>>, void*>*>, >() @std@#__compressed_pair.#__hash_node_base.p#__hash_node.#__hash_value_type.#basic_string.c#char_traits.c~#...
Assembly
com/Piotr1215/", i(2, "Repository"), t "/master/diagrams/", i(3, "FileName"), t ".puml&fmt=png)", i(0), }), -- Quickly insert a diagram picture s("plant", { t "![", i(1, "DiagramName"), t "](diagrams/rendered/", i(2, "FileName"), t ".png)", i(0), }), -- Center cap...
Lua
dạng này cũng đòi hỏi công tác truyền thông rõ ràng để hành khách nắm bắt chính xác giá vé cho từng tuyến cụ thể. ### B. Các hình thức thanh toán được chấp nhận TP.HCM đang trong quá trình hiện đại hóa hệ thống thanh toán vé xe buýt, hướng tới sự tiện lợi và nhanh chóng cho hành khách. * **Tiền mặt:** Đây vẫn là ...
Markdown
1]]:{{[0-9]+}}: // --------------------------------------------------------------------------// // Invalid single register umin {z0.b, z1.b}, {z2.b-z3.b}, z31.b // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected z0.b..z15.b // CHECK-NEXT: umin {z0.b, z1.b}, {z2.b-z3.b}, z31.b // CHE...
Assembly
inCacheKey string, ext map[string]interface{}, ) (model.PluginSearchResult, error) { // 确保ext不为nil if ext == nil { ext = make(map[string]interface{}) } now := time.Now() // 修改缓存键,确保包含插件名称 pluginSpecificCacheKey := fmt.Sprintf("%s:%s", p.name, keyword) // 检查缓存 if cachedItems, ok := apiResponseCache.Load...
Go
60] cmp r3, #0 moveq r6, #6 beq .L1899 ldr r3, [r4, #3264] cmp r3, #0 moveq r6, #6 movne r6, #9 .L1899: mul r9, r5, r10 ldr r7, .L1948 mov r4, #0 .L1900: ldr r3, [r7, #3248] mov r1, r9 mov r0, #0 add r4, r4, #1 blx r3 ldr r3, [fp, #-124] add r9, r9, r5 cmp r3, r4 bhi .L1900 cmp r6, #9 movne r4, #0 ...
Assembly
}) t.Run("marshalGSM7WithUDHConcat", func(t *testing.T) { s, err := NewShortMessageWithEncoding("abc", data.GSM7BIT) require.NoError(t, err) s.SetUDH(UDH{NewIEConcatMessage(2, 1, 12)}) buf := NewBuffer(nil) s.Marshal(buf) require.Equal(t, "0000090500030c0201616263", toHex(buf.Bytes())) }) t.Run("unma...
Go
CubismBuiltinMaterials.UnlitMasked : CubismBuiltinMaterials.Unlit; } if (drawable.BlendAdditive) { return (drawable.IsMasked) ? (drawable.IsInverted) ? CubismBuiltinMaterials.UnlitAdditiveMaskedInvertedCulling ...
C#
CRIPTOR, new Object[]{"bit", "before2"}, new Object[]{"bit", "after2"} ) ); verifydocument( writer, newTermForChangeOrRemove( 3 ), expectedString3 ); } private void verifydocument( LuceneIndexWriter writer, Term eq, String documentString ) throws IOException { verify( writer ).updateDocumen...
Java
} let stops = this.stops.slice(0); stops = stops.concat(stop); stops = stops.filter((e, p, a) => a.indexOf(e) === p); stops.sort(); if (this.down) { stops.reverse(); } this.stops = stops; } /* Assign Shaft to Task @type public @param shaft [Shaft] @return voi...
Typescript
unc_800B64BC); INCLUDE_ASM("asm/us/main/nonmatchings/effect_objs", func_800B6660); void func_800B6A0C(struct EffectObj* arg0) { D_8010B45C[arg0->state](arg0); } void func_800B6A48(struct EffectObj* arg0) { arg0->ext.unk_effect.unk14 = 0; arg0->state++; if ((arg0->unk2 & 0xF) == engine_obj.checkpoint)...
C
sult<StoreCommentInfo?> { return storeCommentService.getStoreComment(userId, commentId) } override fun getStoreComments( userId: String, imageCode: String, page: Int, pageSize: Int ): Result<Page<StoreCommentInfo>?> { return storeCommentService.getStoreCommen...
Kotlin
0010($sp) /* 00B6C 809E633C 3C064080 */ lui $a2, 0x4080 ## $a2 = 40800000 /* 00B70 809E6340 AFA00014 */ sw $zero, 0x0014($sp) /* 00B74 809E6344 0C029468 */ jal SkelAnime_ChangeAnimation /* 00B78 809E6348 E7A80018 */ swc1 $f8, 0x0018($sp) /...
Assembly
.entries .sortedBy { it.key } .joinToString("\n", postfix = "\n") { (k, v) -> "$k=$v" } ) return this } /** * Helper function to _append_ [arguments] to any existing * [GradleRunner arguments][GradleRunner.getArguments]. */ fun GradleRunner.addArguments( vararg argu...
Kotlin
0 - 10, step, paint); } using (var paint = new SKPaint()) using (var effect = SKPathEffect.CreateDiscrete(10, 10)) { paint.IsStroke = true; paint.StrokeWidth = 4; paint.PathEffect = effect; canvas.DrawLine(10, step * 2, width - 10 - 10, step * 2, paint); } using (var paint = new SKPa...
C#
@Component({ selector: 'app-board', templateUrl: './board.component.html', styleUrls: ['./board.component.scss'] }) export class BoardComponent implements OnInit { squares: any[]; xIsNext: boolean; animating: boolean; winner: string; interval: any; constructor() { } ngOnInit() { this.newGame(...
Typescript
/* Copyright 2017 Toyota Research Institute 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 agre...
C
s256-114.6 256-256S397.4 0 256 0zM336 176c17.68 0 31.97 14.25 31.97 32s-14.29 32-31.97 32c-17.8 0-32.09-14.25-32.09-32S318.2 176 336 176zM175.1 176c17.8 0 32.09 14.25 32.09 32s-14.29 32-32.09 32c-17.68 0-31.97-14.25-31.97-32S158.3 176 175.1 176zM371.1 399.7C370.1 399.9 369 400 367.1 400c-7.469 0-14.12-5.25-15.66-12.88C...
JavaScript
orWhenNotFound then logError("MagicConfigTableMgr:GetRow key:{0} failed in scene:{1}", key, self.GetCurrentSceneId()) end return nil end return ret end function MagicConfigTableMgr:GetDatas() return super.GetDatas(self) end local wrapper return { __init = function(ptr, fields) wrapper = Mag...
Lua
dpr: ${dpr} _options: ${_options}'); renderer = three.WebGLRenderer(_options); renderer!.setPixelRatio(dpr); renderer!.setSize(width, height, false); renderer!.shadowMap.enabled = false; if (!kIsWeb) { var pars = three.WebGLRenderTargetOptions({"format": three.RGBAFormat}); renderTarg...
Dart
0xcc(r31) /* 802AF018 002ABE18 80 01 00 24 */ lwz r0, 0x24(r1) /* 802AF01C 002ABE1C 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 802AF020 002ABE20 7C 08 03 A6 */ mtlr r0 /* 802AF024 002ABE24 38 21 00 20 */ addi r1, r1, 0x20 /* 802AF028 002ABE28 4E 80 00 20 */ blr /* 802AF02C 002ABE2C 4E 80 00 20 */ blr /* 802AF030 002AB...
Assembly
x1EDA;\n t['Ohorndotbelow'] = 0x1EE2;\n t['Ohorngrave'] = 0x1EDC;\n t['Ohornhookabove'] = 0x1EDE;\n t['Ohorntilde'] = 0x1EE0;\n t['Ohungarumlaut'] = 0x0150;\n t['Oi'] = 0x01A2;\n t['Oinvertedbreve'] = 0x020E;\n t['Omacron'] = 0x014C;\n t['Omacronacute'] = 0x1E52;\n t['Omacrongrave'] = 0x1E50;\n t['Omega'] = 0x2126;\n t...
JavaScript
Type: String[] Parameter Sets: (All) Aliases: Required: False Position: 0 Default value: None Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` ### -ThrottleLimit Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omit...
Markdown
ults for AE2') print(string.format('forward: %.5f +/- %.5f ms per batch', 1000*torch.mean(forward_time_AE2), 1000*torch.std(forward_time_AE2))) print(string.format('gradient computation: %.5f +/- %.5f ms per batch', 1000*torch.mean(backward_time_AE2 + forward_time_AE2), 1000*torch.std(backward_time_AE2 + forward_time_A...
Lua
TRAP", "trace/breakpoint trap"}, {6, "SIGABRT", "aborted"}, {7, "SIGEMT", "EMT trap"}, {8, "SIGFPE", "floating point exception"}, {9, "SIGKILL", "killed"}, {10, "SIGBUS", "bus error"}, {11, "SIGSEGV", "segmentation fault"}, {12, "SIGSYS", "bad system call"}, {13, "SIGPIPE", "broken pipe"}, {14, "SIGALRM", "ala...
Go
arallelDashedLines = StyleType.CrosswalkParallelDashedLines, [Description(nameof(Localize.CrosswalkStyle_Ladder))] Ladder = StyleType.CrosswalkLadder, [Description(nameof(Localize.CrosswalkStyle_Solid))] Solid = StyleType.CrosswalkSolid, [Description(nameof...
C#
Text { .. } => {} } None } pub fn process_window_event(event: winit::event::WindowEvent) -> Option<InputEvent> { match event { WindowEvent::Resized(_) => None, WindowEvent::Moved(_) => None, WindowEvent::CloseRequested => None, WindowEvent::Destroyed => None, WindowE...
Rust
release" }; println!("{}", cmd); Command::new("bash") .arg("-c") .arg(format!( "{prefix}target/{build}/{cmd}", prefix = prefix.unwrap_or(""), cmd = cmd, build = build )) .spawn() .unwrap() .wait() .unwr...
Rust
data: { topics: ['bad-topic-v1.123', 'channel-bits-events-v2.123'] }, type: 'LISTEN', }, ] badData.forEach((data) => { ws.send(JSON.stringify(data)) }) ws.on('message', (response: string) => { const data = JSON.parse(response) expect(data).to.have.ownProperty('type').that.eq...
Typescript
EvalFilePaths(Paths.get("file6_accessEx.pdf.json"), getResourceAsFile("/test-dirs/extractsB/file6_accessEx.pdf.json").toPath()); comparer.compareFiles(fpsA, fpsB); for (TableInfo t : new TableInfo[]{ExtractComparer.EXCEPTION_TABLE_A, ExtractComparer.EXCEPTION_TABLE_B}) { List<Map<Cols, Stri...
Java
mit(cameraPosition.target.toCoordinates()) } override fun addTileOverlay(source: TileSource) = when (source) { is LocalTileSource -> addLocalTileOverlay(source.localFilePath, source.clipBounds) is RemoteMogTileSource -> addRemoteMogTileOverlay(source.remotePath) } private fun addLocalTileOve...
Kotlin
or string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` EpochIndex uint64 `protobuf:"varint,2,opt,name=epoch_index,json=epochIndex,proto3" json:"epoch_index,omitempty"` Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` } func (m *MsgSubmitSeed) Res...
Go
n gen) { int sizeSquared = size * size; for (int i = 0; i < gen.oreFrequency; i++) { if (random.nextInt(100) < gen.oreRarity) { int oreX = chunkCoord.getBlockXCenter() + random.nextInt(ChunkCoordinate.CHUNK_X_SIZE); int oreY = RandomHe...
Java
pend(ResizeShortestEdge(min_size, max_size, sample_style, clip_frame_cnt=clip_frame_cnt)) # Flip aug_list.append( # NOTE using RandomFlip modified for the support of flip maintenance RandomFlip( horizontal=(cfg.INPUT.RANDOM_FLIP == "horizontal...
Python
rint('After: $anotherList'); print('Popped value: $poppedValue'); final removedValue = anotherList.removeLast(); print('After: $anotherList'); print('Removed value: $removedValue'); final list2 = LinkedList<int>(null, null); list2.push(3); list2.push(2); list2.push(1); print('Before: $list2'); final...
Dart
v3_r101-d8_512x1024_40k_cityscapes_20200605_012241.log.json) | | DeepLabV3 | R-50-D8 | 769x769 | 40000 | 6.9 | 1.11 | 78.58 | 79.89 | [model](https://download.openmmlab.com/mmsegmentation/v0.5/deeplabv3/deeplabv3_r50-d8_769x769_40k_cityscapes/deeplabv3_r50-d8_769x769_40k_cityscapes_20200606_...
Markdown