content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
void 0===a&&(a="NHWC");var s=t;3===t.rank&&(s=t.as4D(1,t.shape[0],t.shape[1],t.shape[2]));var u=e;3===u.rank&&(u=e.as4D(1,e.shape[0],e.shape[1],e.shape[2])),f(4===s.rank,function(){return"Error in conv2dDerFilter: input must be rank 4, but got shape "+s.shape+"."}),f(4===u.rank,function(){return"Error in conv2dDerFilte... | JavaScript |
el is cosmetic (nearest-neighbour fill)"; /*I18N*/
}
package org.bouncycastle.pqc.crypto.sphincsplus;
class HarakaSXof
extends HarakaSBase
{
public String getAlgorithmName()
{
return "Haraka-S";
}
public HarakaSXof(byte[] pkSeed)
{
byte[] buf = new byte[640];
update(pkS... | Java |
// add 2 triangles
indices[pidx + 0] = vbase + v00;
indices[pidx + 1] = vbase + v10;
indices[pidx + 2] = vbase + v01;
indices[pidx + 3] = vbase + v10;
indices[pidx + 4] = vbase + v... | Java |
$(
{
let $d = $d.bin($d.index(&coord.$dimnum).unwrap()).unwrap();
$d
},
)*
),
)
... | Rust |
==> faire en sorte que le cache des FillStroke / Filter soit associé au Display2D
-> creer un id unique par FillStroke/Filter
##>>>> créer un objet StyleStack associé à la renderStack
=> on recréé une renderStack qui contiendra une liste d'ob... | Typescript |
api.Empty);
});
unittest.test('method--get', () async {
final mock = HttpServerMock();
final res = api.CloudResourceManagerApi(mock).organizations;
final arg_name = 'foo';
final arg_$fields = 'foo';
mock.register(
unittest.expectAsync2((http.BaseRequest req, json) {
... | Dart |
-.667.328c-.468.593-.047 1.192.485 1.683.271.249 2.359 2.389 4.567 4.703a14.815 14.815 0 012.423-2.647C4.89 3.355 2.26 1.688 1.948 1.47c-.349-.251-.724-.453-1.079-.453zm6.808 4.067c2.463 1.532 5.047 3.111 6.255 3.787 1.959 1.095 5.011 3.579 5.459 5.912.713.62 2.907 2.557 3.459 3.219.932-.281 2.025.177 2.749 1.489 1.151... | Dart |
0 003.92 1.434zm10.321 0a1.575 1.575 0 101.575 1.575v-.001a1.58 1.58 0 00-1.575-1.57zM9.081 0H9.08a1.577 1.577 0 101.577 1.577v-.001C10.657.706 9.951 0 9.081 0z"/></svg>';
static const String joomla =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" pre... | Dart |
81, 0x0000_8080,
];
#[rustfmt::skip]
pub(crate) const RC400: [u16; 20] = [
0x0001, 0x8082, 0x808A, 0x8000,
0x808B, 0x0001, 0x8081, 0x8009,
0x008A, 0x0088, 0x8009, 0x000A,
0x808B, 0x008B, 0x8089, 0x8003,
0x8002, 0x0080, 0x800A, 0x000A,
];
#[rustfmt::skip]
pub(crate) const RC200: [u8; 18] = [
0x01... | Rust |
riant_type>, std::variant>
inline debug_stream_type<char_t> & operator<<(debug_stream_type<char_t> & s, variant_type && v)
{
if (!v.valueless_by_exception())
std::visit(
[&s](auto && arg)
{
s << arg;
},
v);
else
s << "<VALUELESS_VAR... | C++ |
次比较表中个结点数据域的值,等于给定值e,则返回该结点的指针;若整个单链表【遍历完】中没有数据域值为e的结点,则返回NULL;
- 时间复杂度为:O(n)
- 插入结点
- 定义:单链表中,将值为x的新结点插入到单链表的第i个位置上
- 基本步骤
- 第一步: 检查插入位置的合法性;
- 第二步: 找到待插入位置的前驱结点,即第(i-1)个结点;
- 第三部: 在前驱结点后插入新结点;
- 过程不能更换,避免后继指针不存在的问题
- 时间复杂度
- 插入结点的时间复杂度集中在查找第(i-1... | Markdown |
58\ub098 \ub610\ub294 \uc5ec\ub7ec \ucee8\ud14d\uc2a4\ud2b8\ub97c \uc124\uba85\ud569\ub2c8\ub2e4\x00kubeconfig\uc5d0 \uc815\uc758\ub41c \ud074\ub7ec\uc2a4\ud130\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4\x00\ubcd1\ud569\ub41c kubeconfig \uc124\uc815 \ub610\ub294 \uc9c0\uc815\ub41c kubeconfig \ud30c\uc77c\uc744 \ud45c\uc2dc\u... | Go |
0x1
// GFX11: [0x05,0x00,0xa5,0xd5,0xfa,0x00,0x00,0x08,0x01,0x5f,0x01,0x01]
v_exp_f32_e64_dpp v5, v1 mul:4 row_xmask:0 row_mask:0x1 bank_mask:0x3 bound_ctrl:1 fi:0
// GFX11: [0x05,0x00,0xa5,0xd5,0xfa,0x00,0x00,0x10,0x01,0x60,0x09,0x13]
v_exp_f32_e64_dpp v255, -|v255| clamp div:2 row_xmask:15 row_mask:0x3 bank_mask:0x... | Assembly |
# Pizza Order Verification System
# Follow these TODO steps to complete the exercise!
# Problem Description:
# You are working as a developer for "Python Pizza Palace". They need a system
# to verify customer orders against receipt numbers. The system should take two inputs
# from the customer (number of slices and pr... | Python |
private void destroyDragImageView() {
if (mDragImageView != null) {
mWindowManager.removeView(mDragImageView);
BitmapDrawable bitmapDrawable = (BitmapDrawable) mDragImageView.getDrawable();
if (bitmapDrawable != null) {
final Bitmap bitmap = bitmapDrawable.getBitmap();
if (bitmap != null && !bi... | Java |
ck::e_cryptoTokens))
return FALSE;
return OnReceiveInfoRequestAck(iack);
}
PBoolean H225_RAS::OnReceiveInfoRequestAck(const H225_InfoRequestAck & /*iack*/)
{
return TRUE;
}
void H225_RAS::OnSendInfoRequestNak(H323RasPDU & pdu, H225_InfoRequestNak & inak)
{
OnSendInfoRequestNak(inak);
pdu.Prepare(inak.m... | C++ |
Предвестник Вор'зукс",
[269973] = "Тенеликий колдун",
[185157] = "Связанный кровью оператор осадного орудия",
[225100] = "Голем-страж",
[294549] = "[*] Пламя горнила",
[122278] = 10,
[237388] = 5,
["Порча"] = 9,
[203592] = "Чумная крыса",
[216909] = "Око Бездны",
[253772] = 10,
[32235] = 12,
[32... | Lua |
&Config) -> Result<()> {
run_setup_or_teardown("teardown", config).await
}
fn get_stdio() -> Stdio {
match env::var("SIRUN_NO_STDIO") {
Ok(_) => Stdio::null(),
Err(_) => Stdio::inherit(),
}
}
pub(crate) async fn run_cmd(
command_arr: &[String],
env: &HashMap<String, String>,
) -> R... | Rust |
2", name : "second"}).appendTo(seconds2);
$(seconds2).append("周期 从");
$("<input/>",{type : "text", id : "secondStart_0", value : "1", style:"width:35px; height:20px; text-align: center; margin: 0 3px;"}).appendTo(seconds2);
$(seconds2).append("-");
$("<input/>",{type : "t... | JavaScript |
buf) & 0x000fffff) | s->syncword; // patch header
if (ff_mpa_check_header(header) < 0) // Bad header, discard block
break;
ff_mpegaudio_decode_header((MPADecodeHeader *)m, header);
out_size += mp_decode_frame(m, outptr, buf, fsize);
buf += fsize;
len -= fsize;
... | C |
const int EGL_OBJECT_IMAGE_KHR = 13236;
const int EGL_OBJECT_SYNC_KHR = 13237;
const int EGL_OBJECT_STREAM_KHR = 13238;
const int EGL_DEBUG_MSG_CRITICAL_KHR = 13241;
const int EGL_DEBUG_MSG_ERROR_KHR = 13242;
const int EGL_DEBUG_MSG_WARN_KHR = 13243;
const int EGL_DEBUG_MSG_INFO_KHR = 13244;
const int EGL_DEBU... | Dart |
ate>( new ProgramName( "Tales.Vesperia.Credits.Viewer", "ToVcredits" ), Tales.Vesperia.Credits.RunCreditsViewer.Execute ) );
HyoutaTools.Initialization.RegisterTool( new KeyValuePair<ProgramName, ExecuteProgramDelegate>( new ProgramName( "Tales.Vesperia.Font.Viewer", "ToVfont" ), Tales.Ve... | C# |
(36, 40), between(75, 80))
);
for (int i = 0; i < 10; i++)
{
push(KeyCode.ENTER);
sleep(150);
assertEquals(beforeEnterPoint + "\n ".repeat(i + 1) + afterEnterPoint, fx(() -> flowEditorPane.getDocument().getFullContent()));
// Scopes should s... | Java |
egl_context: EGLContext,
context_id: ContextID,
context_attributes: &ContextAttributes,
size: &Size2D<i32>)
-> EGLBackedSurface {
let egl_image_attribs = [
EGL... | Rust |
25)
labelText = labelText.Substring(0, 25) + " ... ";
label.Text = labelText;
label.GridTicks = GridTickTypes.TickMark;
label.FromPosition = position - 0.5;
label.ToPosition = position + 0.5;
axis.CustomLabels.Add(label);
position++;
}
... | C# |
";
@import "../../bslib/lib/bs5/scss/_tooltip.scss";
@import "../../bslib/lib/bs5/scss/_popover.scss";
@import "../../bslib/lib/bs5/scss/_carousel.scss";
@import "../../bslib/lib/bs5/scss/_spinners.scss";
@import "../../bslib/lib/bs5/scss/_offcanvas.scss";
@import "../../bslib/lib/bs5/scss/_placeholders.scss";
@import ... | CSS |
after() -> TimeSpecifier
= x:number() _ spec:(
minute_suffix() _ { AfterTimeSpecifier::with_minute(x, None) }
/ second_suffix() _ { AfterTimeSpecifier::Second(x) }
/ hour_suffix() _ m:(m:number() _ minute_suffix() _ { m })? { AfterTimeSpecifier::with_hour(x, m) }
) { TimeSpecif... | Rust |
1:6379[1]> expire login 60
(integer) 1
127.0.0.1:6379[1]> ttl login
(integer) 47
```
## tll 查看key有效期
```bash
ttl key
# 查询key的生命周期
# 大于0 :生命周期单位为秒,
# 等于-1:永久有效
# 等于-2:该key不存在
# pttl key表示毫秒为单位
# 示例
127.0.0.1:6379> ttl name
(integer) -1
127.0.0.1:6379> ttl title
(integer) -2
```
## rename 重命名key
```bash
rename key n... | Markdown |
const actor = new UserEntity({ id: '1', email: 'aaa@bb.com', roles: [RoleTypes.Anonymous] });
expect(() => denyWhenActorHasOnlyAnonymousRole(actor)).toThrow(UnauthorizedError);
});
test('失敗:actorが設定されていない', () => {
expect(() => denyWhenActorHasOnlyAnonymousRole(null)).toThrow(AuthenticationFail... | Typescript |
/`), n._pyodide.set_excepthook(), await n.packageIndexReady, n.initializeStreams(r.stdin, r.stdout, r.stderr), d2;
}
s($e, "loadPyodide");
// src/pyodide-proxy.ts
async function setupPythonEnv(pyodide2, callJS2) {
const repr = pyodide2.globals.get("repr");
pyodide2.globals.set("js_pyodide", pyodide2);
const pyco... | JavaScript |
d="M32 13.22v3.34a8.41 8.41 0 012 1.81v-6a7.45 7.45 0 01-2 .85Z" class="clr-i-outline--badged clr-i-outline-path-5--badged"/><path fill="currentColor" d="M4 28V8h18.78a7.49 7.49 0 01-.28-2H4a2 2 0 00-2 2v20a2 2 0 002 2h15l.57-.7.93-1.14-.09-.16Z" class="clr-i-outline--badged clr-i-outline-path-6--badged"/><circle cx="... | Dart |
IXamlILEmitter emitter,
IReadOnlyList<IXamlAstValueNode> arguments)
{
EmitSetValue(emitter);
}
private void EmitSetValue(IXamlILEmitter emitter)
{
// Ignore the instance and load one from the static field to avoid ex... | C# |
);
ctx.bindTexture(ctx.TEXTURE_2D, null);
mod.res.fbo[name] = this.fbo;
//Return final struct
return this.fbo;
}
//-------------------------------------------------
// COLOR BUFFERS
//-------------------------------------------------
texColorBuffer(name,cAttachNum){
//Up to 16 texture attachments 0 t... | JavaScript |
#include "trd_00.h"
extern EvtScript N(EVS_Main);
EntryList N(Entrances) = {
[trd_00_ENTRY_0] { -973.0, 0.0, 204.0, 90.0 },
[trd_00_ENTRY_1] { -525.0, 0.0, 130.0, 240.0 },
[trd_00_ENTRY_2] { 400.0, 0.0, 185.0, 180.0 },
[trd_00_ENTRY_3] { 587.0, 0.0, 6.0, 90.0 },
... | C |
CloudBoxRenderObject;
import {
cachedMapper,
combineLatestWithChanges,
combineLatestWithEmpty,
enqueue,
extend,
filterInstanceOf,
filterObservable,
flattenArray,
flattenObject,
lastOrEmpty,
paginate$,
pairFirst,
progressCount,
prolong,
promise$,
scan2,
swapMap,
takeDuring,
tapScan,... | Typescript |
og('其他方法可以不实现')
}
}
// var a=new Animal() /*错误的写法*/
class Dog extends Animal{
//抽象类的子类必须实现抽象类里面的抽象方法
constructor(name:any){
super(name)
}
eat(){
console.log(this.name+'吃粮食')
}
}
var d=new Dog('小花花');
d.eat();
class Cat extends Animal{
//抽象类的子类必须实现抽象类里面的抽象方法
... | Typescript |
0,r2),r0
mov.w r0,@(8,r5)
mov.w r0,@(10,r5)
mov.b @r4+,r0
mov.w @(r0,r2),r0
mov.w r0,@(12,r5)
mov.w r0,@(14,r5)
mov.b @r4+,r0
mov.w @(r0,r2),r0
mov.w r0,@(16,r5)
mov.b @r4+,r0
mov.w @(r0,r2),r0 | Assembly |
a timeout to ensure the function doesn't block indefinitely
req, cancel := newReqWithTimeout(model, "message", "request_id", 10*time.Millisecond)
defer cancel()
_, err = route(store, req, pods)
Expect(err).To(BeNil())
Expect(req.HasRouted()).To(BeTrue())
Expect(req.Algorithm).To(Equal(RouterLeastRequ... | Go |
a reader or valid buffer
* @throws {protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: (protobuf.Reader|Uint8Array), length?: number): gameProto.C2S_ACTIVITY_GET_TOTAL_PAY_INFO;
}
/** Properties of a S2C_ACTIVITY_GET_TOTAL_PAY_INFO. */
int... | Typescript |
console.log('Starting promises...');
const promesa = new Promise ( ( resolve, reject) => {
let contador = 0;
const intervalo = setInterval( () => {
// contador = + 1;
contador += 1;
// contador = contador + 1;
console.log('contador:', contador);
if (... | Typescript |
: [0x64,0x1e,0x00,0x00]
daddiu $fp, $zero, 0 # CHECK: encoding: [0x64,0x1e,0x00,0x00]
daddiu $ra, $zero, 0 # CHECK: encoding: [0x64,0x1f,0 | Assembly |
DC4 80A32734 8FBF002C */ lw $ra, 0x002C($sp)
/* 01DC8 80A32738 8FB00028 */ lw $s0, 0x0028($sp)
/* 01DCC 80A3273C 27BD0058 */ addiu $sp, $sp, 0x0058 ## $sp = 00000000
/* 01DD0 80A32740 03E00008 */ jr $ra
/* 01DD4 80A32744 00000000 */ nop
/* 01... | Assembly |
if (b != BigInteger.ZERO) {
val ab = a / b
assertTrue(verifyWasm {
val v = IntType.u256_div(a.toU256Object(), b.toU256Object())
certoraAssert(v eq_u256 ab)
})
} else {
// should trap
assertFalse(verifyWasm {
... | Kotlin |
not found');
this.responseHandler.response(true, HttpStatus.OK, 'Order details', order, res);
}
}
import { canvas } from "./main";
import { Camera } from "./camera";
import { Trampoline } from "./trampoline";
import { Ball } from "./ball";
import { Block } from "./block";
import { Stage } from "./stage";
import ... | Typescript |
= "DMA_ENACLR register accessor: an alias for `Reg<DMA_ENACLR_SPEC>`"]
pub type DMA_ENACLR = crate::Reg<dma_enaclr::DMA_ENACLR_SPEC>;
#[doc = "Channel Enable Clear Register"]
pub mod dma_enaclr;
#[doc = "DMA_ALTSET register accessor: an alias for `Reg<DMA_ALTSET_SPEC>`"]
pub type DMA_ALTSET = crate::Reg<dma_altset::DM... | Rust |
8015202C 0014EF6C 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 80152030 0014EF70 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 80152034 0014EF74 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 80152038 0014EF78 83 81 00 10 */ lwz r28, 0x10(r1)
/* 8015203C 0014EF7C 7C 08 03 A6 */ mtlr r0
/* 80152040 0014EF80 38 21 00 20 */ addi r1, r1, 0x20
/*... | Assembly |
"""
MLP regression on Kin40k data.
Attains about 0.14 RMSE within 150 epochs.
Reference: https://arxiv.org/abs/1511.02222
"""
from __future__ import print_function
import numpy as np
np.random.seed(42)
# Keras
from keras.models import Model
from keras.layers import Input, Dense, Dropout
from keras.optimizers import R... | Python |
HIGH-REVERSED-9 QUOTATION MARK
case 0xFF07: // FULLWIDTH APOSTROPHE
if (map_quote) {
code = '\'';
}
break;
default:
if (rm_di && utf8lite_isignorable(code)) {
continue;
}
break;
}
}
utf8lite_encode_utf8(code, &dst);
}
*dst = '\0'; // not necessary, but helps with debug... | C |
logger.trace(marker, format, argArray);
}
}
@Override
public void trace(Marker marker, String msg, Throwable t) {
if (shouldLog()) {
logger.trace(marker, msg, t);
}
}
}
/*
* Copyright 2012, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may... | Java |
action(turn);
match last_action {
Some(Action::GiveUp) => message!(name, "Give up"),
Some(Action::Pass) => message!(name, "Pass"),
Some(Action::Move(pos)) => message!(name, "Move {}", pos),
None => (),
}
}
fn operation_at(&self, board: &UiBoard, ... | Rust |
rem;
line-height: 1;
border: 2px solid #2563eb;
border-radius: 9999px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
cursor: pointer;
transition: background-color 0.2s ease;
position: absolute;
left: 55%; /* offset slightly to not overlap delete */
bottom: 100%;
transform: translate... | CSS |
(Ja=ab,te=!0);for(hc=1;hc<=Ua.b[Wa].j;++hc)de=Ua.b[Wa].p[hc],de!=pc[ic-1]&&(0==jc?jc=de:td=de);0<Mc[td]&&Mc[jc]>Mc[td]&&(se=jc,jc=td,td=se);Kd=jc;0==jc&&(Kd=td,zd=!0);kf=0<Jd?hK(Ua,TJ(Ua,Sc,Jd),Sc):0;me=0<ab?hK(Ua,TJ(Ua,Sc,ab),Sc):0;ue=0<jc?hK(Ua,TJ(Ua,Wa,jc),Wa):0;Td=0<td?hK(Ua,TJ(Ua,Wa,td),Wa):0;1<\n(0>kf+me?-(kf+me)... | JavaScript |
h184.219V92.094C1000.001 26.305 958.776 0 907.907 0H92.094zM1000 263.156V340.5h.656v-77.344H1000zM187.063 128.25c-37.803 0-78.429 18.936-101.719 48.094-24.697 30.632-28.5 69.919-28.5 107.906 0 97.618 51.285 242.063 176.219 242.063 36.289 0 73.512-9.219 97.406-36.469 27.263-31.224 37.938-72.331 37.938-93.344 0-104.987-6... | Dart |
ssage", "__core__/sound/console-message.ogg")
add_utility_sound("scenario_message", "__core__/sound/scenario-message.ogg")
add_utility_sound("game_lost", "__core__/sound/game-lost.ogg", 0.8)
add_utility_sound("game_won", "__core__/sound/game-won.ogg", 0.75)
add_utility_sound("research_completed", "__core__/sound/resear... | Lua |
continue;
XmlNode nameAttr = elementNode.SelectSingleNode("@name");
if (nameAttr == null)
continue;
sResultElementName = nameAttr.InnerText;
}
}
else
{
bool fIsRefVector;
string sFxtItemLabel;
fxtFieldNode =
GetFxtNodeAndFxtItemLabel(sClassName,... | C# |
>userlevel & PERM_VIOLATELAW))
mind = ANSI_COLOR(1;31) "HW";
snprintf(num, sizeof(num), "%d",
#ifdef SHOWUID
show_uid ? uentp->uid :
#endif
ch);
pager[0] = (friend & HRM) ? 'X' : pagerchar[uentp->pager % 5];
pager[1] = (uentp->invisible ? ')' : ' ');
pager[2] = 0;
/* color of userid, userid */
... | C |
0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;j=i;i=i+112|0;h=j;c[h>>2]=0;f=h+4|0;c[f>>2]=a;c[h+44>>2]=a;g=h+8|0;c[g>>2]=(a|0)<0?-1:a+2147483647|0;c[h+76>>2]=-1;he(h,0);d=fe(h,d,1,0,-2147483648)|0;e=D;if(!b){D=e;i=j;return d|0}c[b>>2]=a+((c[f>>2]|0)+(c[h+108>>2]|0)-(c[g>>2]|0));D=e;i=j;return d|0}function Zg(a,b,d){a=a|0;b=b|0... | JavaScript |
|| other.into_num_set(other_universe, universe).is_failed()
}
}
impl NumDomain for NumericSet {
fn new_gt<D: NumSet>(universe: &[u32],
min: D, min_universe: &D::Universe) -> Self {
let start = universe.binary_search(&min.min_value... | Rust |
# SPDX-FileCopyrightText: 2019 Dan Halbert for Adafruit Industries
# SPDX-FileCopyrightText: 2019 Scott Shawcroft for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_ble_berrymed_pulse_oximeter.adafruit_ble_transparent_uart`
===========================================================================... | Python |
'axios';
export interface ApiService extends AxiosInstance {}
let singletonInstance: ApiService;
/**
* Used during startup by Sprout to set the service so it is available
* via the {@link getApiService} to the rest of the application.
*
* @internal
*/
export function setApiService(instance: ApiService) {
sin... | Typescript |
# Copyright 2024 The Lynx Authors. All rights reserved.
# Licensed under the Apache License Version 2.0 that can be found in the
# LICENSE file in the root directory of this source tree.
from core.utils.log import Log
from plugins.android_ut_plugin import AndroidUTPlugin
from plugins.coverage_check_plugin import Covera... | Python |
"SELECT stanza, creationDate FROM ofOffline WHERE username=? ORDER BY creationDate ASC";
private static final String LOAD_OFFLINE_MESSAGE =
"SELECT stanza FROM ofOffline WHERE username=? AND creationDate=?";
private static final String SELECT_COUNT_OFFLINE =
"SELECT COUNT(*) FROM ofOffline W... | Java |
e,
func = function()
if not LoggingCombat() then
LoggingCombat(true)
DEFAULT_CHAT_FRAME:AddMessage(COMBATLOGENABLED, 1, 1, 0)
else
LoggingCombat(false)
DEFAULT_CHAT_FRAME:AddMessage(COMBATLOGDISABLED, 1, 1, 0)
end
end,
checked = funct... | Lua |
++) {
if (_.isEmpty(triggers[i])) {
continue
}
const keys = Object.keys(triggers[i])
const trigger = triggers[i][keys[0]]
const triggerName = keys[0]
trigger.Type = trigger.Type.toString().toLocaleLowerCase()
const oldEvent = _.find(oldEvents, (event) => {
if (... | JavaScript |
er=function() opts.mud = true end},
{'b', 'block', handler=function() opts.block = true end},
{'z', 'zlevel', handler=function() opts.zlevel = true end},
{'f', 'force', handler=function() opts.force = true end},
{'p', 'plant', hasArg=true, handler=function(optarg) plant_str = optarg end}... | Lua |
c/opts.rs
/// Options for creating `Engine`
#[derive(Debug, Copy, Clone)]
pub struct EngineOptions {
/// Delimiter of csv
pub delimiter: u8,
/// Indexing buffer, only used at creation. Number of bytes.
pub buf_capacity: usize,
}
impl Default for EngineOptions {
#[inline]
fn default() -> Self {
... | Rust |
/]*)/([^/]*)")
end
end
function manif.get_next_provider(item_type, item_name, repo)
local providers = get_providers(item_type, item_name, repo)
if providers and providers[2] then
return providers[2]:match("([^/]*)/([^/]*)")
end
end
--- Get all versions of a package listed in a manifest file.
-- @par... | Lua |
[-624092254] = 'v_med_apecrate',
[-1166401535] = 'v_med_apecratelrg',
[-1397853612] = 'v_med_barrel',
[-644915300] = 'v_med_beaker',
[1631638868] = 'v_med_bed1',
[2117668672] = 'v_med_bed2',
[-1405657799] = 'v_med_bedtable',
[2017762556] = 'v_med_bench1',
[-1087788335] = 'v_med_bench2',
[756754339] = 'v_med_be... | Lua |
nc (c *Client) GetControlByID(ctx context.Context, controlID string, interceptors ...clientv2.RequestInterceptor) (*GetControlByID, error) {
vars := map[string]any{
"controlId": controlID,
}
var res GetControlByID
if err := c.Client.Post(ctx, "GetControlByID", GetControlByIDDocument, &res, vars, interceptors...)... | Go |
ecSpace
constexpr int N = 374;
KernelArray arr(N);
// Modify array using lambda and ArrayView
KernelArrayView arr_view(arr);
axom::for_all<ExecSpace>(N, AXOM_LAMBDA(axom::IndexType idx) { arr_view[idx] = N - idx; });
// handles synchronization, if necessary
if(axom::execution_space<ExecSpace>::async())
... | C++ |
er::Seek(bool bPlus, bool bLargeStep, bool bChapterOverride)
{
if (!m_State.canseek)
return;
if (bLargeStep && bChapterOverride && GetChapter() > 0 && GetChapterCount() > 1)
{
if (!bPlus)
{
SeekChapter(GetChapter() - 1);
return;
}
else if (GetChapter() < GetChapterCount())
{
... | C++ |
node/fail_if_passed_param_is_wrong_type.rs
// This test checks that #[ockam_node_test_attribute::node] causes a compile time error
// if the function is passed a param that is not of type `ockam::Context`
#[ockam_node_test_attribute::node]
async fn main(ctx: std::string::String) {}
use std::io::Read;
use crate::{read... | Rust |
:last-of-type {
border-right-width: 0;
}
.column > a {
display: inline-block;
text-align: center;
text-decoration: none;
padding-bottom: 4px;
font-size: 24px;
font-weight: bold;
transition: all 0.8s;
}
.column > ul > li {
margin-bottom: 3px;
}
.column > ul > li > a {
text-decor... | CSS |
var a = 0; a < 4; a++) {
if (b * 8 + a * 6 > d.length * 32) {
f += b64pad
} else {
f += c.charAt((e >> 6 * (3 - a)) & 63)
}
}
}
return f
}
function getpwd(password){
return hex_md5(password)
}
/*
url: https://account.autohome.com.... | JavaScript |
r3e5c5b4b,'
// #4696: 5 fonts: HK 94₁₂₁, JP 68₂₀₄, KR 79₃₃₉, SC 85₄₆₉, TC 90₅₇₅.
'4r3e5e4z4b,'
// #4697: 5 fonts: HK 94₁₂₁, JP 68₂₀₄, KR 84₃₄₄, SC 86₄₇₀, TC 90₅₇₅.
'4r3e5j4v4a,'
// #4698: 5 fonts: HK 94₁₂₁, JP 70₂₀₆, KR 73₃₃₃, SC 84₄₆₈, TC 90₅₇₅.
'4r3g4w5e4c,'
// #4699: 5 fonts: HK 94₁₂₁, JP... | Dart |
!(specPolicy === SpecPolicy.DEFINE_MANY || specPolicy === SpecPolicy.DEFINE_MANY_MERGED) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.', name) : _prodInvariant('74', name) : void ... | JavaScript |
name = "example-controller"
concurrent_password_hash_workers = "5"
}`,
expConcurrentPasswordHashWorkers: 5,
expErr: false,
},
{
name: "Invalid value integer",
in: `
controller {
name = "example-controller"
concurrent_password_hash_workers = 0
}`,
exp... | Go |
;
}, function (data) {
Feng.error("添加失败!" + data.responseJSON.message + "!");
});
ajax.set(this.noticeInfoData);
ajax.start();
}
/**
* 提交修改
*/
NoticeInfoDlg.editSubmit = function () {
this.clearData();
this.collectData();
if (!this.validate()) {
return;
}
//提交信息... | JavaScript |
;
var uri = Uri(
scheme: uri0.scheme,
host: uri0.host,
path: uri0.path,
port: uri0.port,
queryParameters: {
'current': current.toString(),
'pageSize': pageSize.toString(),
'accessible': '',
'statu... | Dart |
0x00,0x50,0x71 = subs w3, w4, #1024, lsl #12
0x83,0x00,0x10,0xf1 = subs x3, x4, #1024
0x83,0x00,0x10,0xf1 = subs x3, x4, #1024
0x83,0x00,0x50,0xf1 = subs x3, x4, #1024, lsl #12
0xac,0x01,0x0e,0x0b = add w12, w13, w14
0xac,0x01,0x0e,0x8b = add x12, x13, x14
0xac,0x31,0x0e,0x0b = add w12, w13, w14, lsl #12
0xac,0x31,0x0e... | C# |
s.create(tId=int(user.get("player_id")))
new_player = True
print("[view.yata.login] update player")
player.addKey(p.get("key"))
# player.key = p.get('key')
player.active = True
player.lastActionTS = tsnow()
updatePlayer(player)
... | Python |
lit":"shalmôn","pron":"shal-mone'","derivation":"from H7999 (שָׁלַם);","strongs_def":"a bribe","kjv_def":"reward."},
"H8022":{"lemma":"שַׁלְמַנְאֶסֶר","xlit":"Shalmanʼeçer","pron":"shal-man-eh'-ser","derivation":"of foreign derivation;","strongs_def":"Shalmaneser, an Assyrian king","kjv_def":"Shalmaneser. Comp H8020 (ש... | JavaScript |
ger",
Pointer.fromFunction<ReturnStructNestedIrregularEvenBiggerType>(
returnStructNestedIrregularEvenBigger,
),
returnStructNestedIrregularEvenBiggerAfterCallback,
),
];
typedef PassStruct1ByteIntx10Type =
Void Function(
Struct1ByteInt,
Struct1ByteInt,
Struct1ByteInt,
St... | Dart |
new ChordType("Minor-Major 7th", ChordScaleFormula.parse("1 b3 (5) 7"), ["mM7"]);
public static Min7 = new ChordType("Minor 7th", ChordScaleFormula.parse("1 b3 (5) b7"), ["m7"]);
public static DimMaj7 = new ChordType("Diminished Major 7th", ChordScaleFormula.parse("1 b3 b5 7"), ["dimMaj7"]);
public static HalfDim... | Typescript |
ines_per_buf == 0) /* new block */
if (write(tifd, tibuf[0], tibuflen) !=
(ssize_t) tibuflen)
pfatal("can't write temp file");
if (fgets(p, maxlen + 1, ifp) == NULL) {
input_lines = i - 1;
if (i % lines_per_buf != 0)
if (write(tifd, tibuf[0], tibuflen) !=
(ssize_t) tibuflen)
pfata... | C |
}
// Informer returns the SharedIndexInformer.
func (f *genericInformer) Informer() cache.SharedIndexInformer {
return f.informer
}
// Lister returns the GenericLister.
func (f *genericInformer) Lister() cache.GenericLister {
return cache.NewGenericLister(f.Informer().GetIndexer(), f.resource)
}
// ForResource giv... | Go |
502095420843, -3.0029194105147424492e-02},
{0.24171793270710701896, 0.20412935229379993199, 0.38294211275726193779},
{0.96604818261509293619, 1.0, 0.0},
}
o.Ti = [][]float64{
{4.3255798900631553510, 0.33919925181580986954, 0.54177053993587487119},
{-4.1787185915519047273, -0.32768282076106238708, 0.476623554... | Go |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "ammodef.h"
#include "AI_Hint.h"
#include "AI_Navigator.h"
#include "npc_Assassin.h"
#include "game.h"
#include "... | C++ |
: this code fails if you ask for too many channels. The algorithm used
// here assumes that each FFT bin contributes to at most two channels: the
// right side of a triangle for channel i, and the left side of the triangle
// for channel i+1. If you ask for so many channels that some of the
// resulting mel triangle ... | C++ |
24508]
"ITEM_TOY_ONUSE", -- [24509]
"ITEM_UNIQUE", -- [24510]
"ITEM_UNIQUE_EQUIPPABLE", -- [24511]
"ITEM_UNIQUE_EQUIPPED", -- [24512]
"ITEM_UNIQUE_MULTIPLE", -- [24513]
"ITEM_UNSELLABLE", -- [24514]
"ITEM_UPGRADE", -- [24515]
"ITEM_UPGRADED_LABEL", -- [24516]
"ITEM_UPGRADE_BONUS_FORMAT", -- [24517]
"ITEM_UPGR... | Lua |
hTotal.elapsedMicroseconds;
avgTime = totalTime / TIMES;
times.sort((a, b) => a.compareTo(b));
if (!markdown) {
print(" MsgPack2:");
print(" Total Time: ${totalTime} microseconds (${totalTime / 1000}ms)");
print(" Average Time: ${avgTime} microseconds (${avgTime / 1000}ms)");
print(
... | Dart |
RR
function ChromaComposite({
Mask,
FrameA,
FrameB,
}: {
Mask: { data: boolean[]; width: number; height: number };
FrameA: ImageData;
FrameB: ImageData;
}): { Frame: ImageData } {
// Copia i pixel dell'immagine
const newData = new ImageData(FrameA.width, FrameA.height);
for (let i = 0; i < FrameA.da... | Typescript |
req.body.active
})
try {
const newAstronaut = await astronaut.save()
res.status(201).json(newAstronaut)
} catch (error) {
res.status(400).json({ message: error.message })
}
}
const updateOneAstronaut = async (req: Request, res: any, next: NextFunction) => {
await getAstron... | Typescript |
("clickedBlock");
const target = event.target;
const id:number = this.getTileId(parseInt(event.target.getAttribute('data-x')), parseInt(event.target.getAttribute('data-y')));
this.selectedTile = this.field[id];
if(this.mode === SEARCH){
// check if we clicked a mine..
... | Typescript |
afe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 1025-65535 # unregistered ports
acl CONNECT method CONNECT
http_access deny !Safe_p... | Markdown |
Call:(id)arg1;
- (void)sendIncomingCallMessageToClientForCall:(id)arg1 canBeRelayed:(_Bool)arg2;
- (void)service:(id)arg1 nearbyDevicesChanged:(id)arg2;
- (void)service:(id)arg1 devicesChanged:(id)arg2;
@property(readonly, nonatomic) NSSet *availableOutgoingRelayCallerIDs;
@property(readonly, nonatomic) _Bool pairedDev... | C |
decrypt(v, secretKey)
}
private object AES256{
private val encorder = Base64.getEncoder()
private val decorder = Base64.getDecoder()
private fun cipher(opmode:Int, secretKey:String):Cipher{
if(secretKey.length != 32) throw RuntimeException("SecretKey length is not 32 chars")
val c = Cipher.... | Kotlin |
/* Copyright (C) 2016-2018 Shengyu Zhang <i@silverrainz.me>
*
* This file is part of Srain.
*
* Srain 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 optio... | C |
else match = false;
matches[prop] = match;
});
return matches;
}
checkIfMatchCheckIsSet(matchCheck: ICardMatchCheck): boolean {
if (
matchCheck.color &&
matchCheck.count &&
matchCheck.shade &&
matchCheck.shape
)
return true;
else return false;
}
}
/... | Typescript |
就会在对应的环节执行。githook可以是shell或者python等脚本语言,我们需要操作git分支和文件等,使用python会更加方便。
更多的githook可以参考[git官方说明](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)
这里我们选用的是pre-commit hook,在commit之前对代码进行处理,这是个很熟悉的操作,idea在提交代码前,可以选择对代码进行reformat code,防止我们忘记格式化代码,实际上道理是一样的。
经过分析后,我们的流程变成了
![image](https://github.com/j... | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.