content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
-- Description: basic selftest
-- Version: 0.1.0
-- Stealth: offline
-- Lic | Lua |
48873234)]
}
:return: ModelProto with quantization
:param nodes_to_quantize:
List of nodes names to quantize. When this list is not None only the nodes in this list
are quantized.
example:
[
'Conv__224',
'Conv__252'
]
:param nodes_t... | Python |
= 0;
let _z = 1 % y;
}
//! Generated file, do not edit by hand, see `xtask/codegen`
use crate::generated::FormatTsAnyTupleTypeElement;
use crate::prelude::*;
use rome_js_syntax::TsAnyTupleTypeElement;
impl FormatRule<TsAnyTupleTypeElement> for FormatTsAnyTupleTypeElement {
type Context = JsFormatContext;
... | Rust |
YxlVcF03QFlFLGzZFN7Fcv5JW
lYNeCOOz9NP9TTsR2EAZnacNk75/FYwJSJnSblCBre9xVA9pI5hxb4zu7CxRXuWc
QJs8Qrvdo9k4Jilx5U9X0dsiNH2swsTM6T1gyVKKQhf5XVCS4bPWYagXcfD9/xZE
eAhkFcAuJ9xz6XacT9j1pw50MEwZbwDneV93TqvHmgmSIFZow1aU5ACp+N/ksT6E
1wrWsaIJjsOHK5RZj/8/2HiBftjXscmL3K8k6MbDI8P9zvcMJSXbPpcYrffw9A6t
ka9skmLKKFCcsNJ0coLLB+mw9DVQGc2dPW... | HTML |
.mud-typography-h1{font-size:3.5rem}.try-mudblazor-index .mud-typography-h2{font-size:2.5rem}.try-mudblazor-index .mud-typography-h4{font-size:1.25rem}}@media(min-width: 768px)and (max-width: 1200px){.try-mudblazor-index .mud-typography-h1{font-size:4.6rem}}.mud-codeblock{height:100%;padding:0px;overflow:auto}.mud-cod... | CSS |
.nav-pills-btn-warning a.nav-link.active .nav-link-icon i{color:#111 !important}.nav-pills.nav-tabs-btn.nav-pills-btn-warning a.nav-link.active .nav-link-title{color:#111 !important}.nav-pills.nav-tabs-btn.nav-pills-btn-danger a.nav-link.active{background-color:#fd397a}.nav-pills.nav-tabs-btn.nav-pills-btn-danger a.nav... | CSS |
override fun invoke(self: O, p1: P1, p2: P2, p3: P3, p4: P4, p5: P5, p6: P6)
= method.invoke(self, p1, p2, p3, p4, p5, p6) as R
}
class MethodInvoker7<O, P1, P2, P3, P4, P5, P6, P7, R>(private val method: Method)
: (O, P1, P2, P3, P4, P5, P6, P7) -> R {
override fun invoke(self: O, p1: P1, p2: P2, p3: P3, p4:... | Kotlin |
span = span;
//setEnd(getStart() + span);
}
public void setQuality(int quality) {
this.quality = quality;
}
public void setScore(int score) {
this.score = score;
}
Color defaultColor = Color.blue;
static Map<String, Color> colorMap;
static {
colorMap =... | Java |
nd device:get_model() == fingerprint.model then
local subdriver = require("tuya-fingerbot")
return true, subdriver
end
end
return false
end
-- Send command to cluster EF00
local function SendCommand(device, DpId, Type, Value)
local addrh = messages.AddressHeader(
ZigbeeConstan... | Lua |
```
pact> (at "hash" (describe-module 'accounts))
"9d6f4d3acb2fd528206330d09a8926da6abdd9ac5e8c4b24cc35955203f234688c25f9545ead56f783c5269fe4be6a62aa89162caf811142572ac172dc2adb91"
```
### `use`를 통한 모듈 버전 고정
[use](#use)라는 특별 타입을 사용하면 종속 요소 버전을 고정하도록 모듈 해시를 지정할 수 있습니다. 모듈 선언 내에서 사용될 때는 이로 인해 모듈의 해시에 종속 요소 해시 값이 도입됩니다.... | Markdown |
{
if (string.IsNullOrEmpty(_sStartAuto))
{
_sStartAuto = "Start Auto";
}
return _sStartAuto;
}
}
private string _sStartAuto;
/// <summary>
/// <b>
/// <br>"Stop Auto";</b... | C# |
, %xmm25
// CHECK: vfixupimmps $123, 512(%rdx){1to4}, %xmm17, %xmm25
// CHECK: encoding: [0x62,0x63,0x75,0x10,0x54,0x8a,0x00,0x02,0x00,0x00,0x7b]
vfixupimmps $0x7b, 512(%rdx){1to4}, %xmm17, %xmm25
// CHECK: vfixupimmps $123, -512(%rdx){1to4}, %xmm17, %xmm25
// CHECK: encoding: [0x62,0x63,0x75,0x10,0x54,0x... | Assembly |
of the Capture/Compare register (CCR) for the Timer 2 output channels. The CCR
* determines the duty cycle or pulse width of the generated signal.
*
* @return none
*/
void TIM2_EncoderSignalGenerator_Init(uint16_t psc, uint16_t arr, uint16_t ccr)
{
GPIO_InitTypeDef GPIO_InitStructure = {0};
TIM_OC... | C |
- 2*A11*sumI*sumIy*w2 - sumIx*sumIx*w2*w2 + A22*dI*sumIx*sumIx + 2*sumIx*sumIy*w1*w2
- sumIy*sumIy*w1*w1 + A11*dI*sumIy*sumIy + A22*sumW*w1*w1 + A11*sumW*w2*w2 - A11*A22*dI*sumW;
float minEig = (A22 + A11 - std::sqrt((A11-A22)*(A11-A22) +
... | C++ |
-- ROBLOX upstream: https://github.com/facebook/jest/blob/v28.0.0/packages/expect/src/utils.ts
-- /**
-- * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
-- *
-- * This source code is licensed under the MIT license found in the
-- * LICENSE file in the root directory of this source tree.
-- *
-- ... | Lua |
浮层显隐 | boolean | - | 3.0 |
| options | 可选项数据源 | [Option](#option)\[] | - | |
| placeholder | 输入框占位文本 | string | '请选择' | |
| placement | 浮层预设位置 | `bottomLeft` \| `bottomRight` \| `topLeft` \| `topRight` | `bottomLeft` | 3.0 |
| showCheckedStrategy | 定义选中项回填的方式。`Cascader.SHOW_CHILD`: 只显示选中的子节点。`Cascader.SHOW_PARENT`: 只... | Markdown |
const toCall = this.pending;
this.pending = [];
toCall.forEach((pend) => pend(Err.NONE, data, eof));
}
read(cb: ReadCB) {
this.pending.push(cb);
}
write(data: string, cb: WriteCB) {
cb(Err.EUNWRITABLE);
}
ioctl(_, cb) {
cb(Err.NONE);
}
}
export default Keyboard;
/**
* Status attri... | Typescript |
00]
flat_atomic_cmpswap v0, v[1:2], v[3:4] offset:2047 glc slc
// GFX10: encoding: [0xff,0x07,0xc7,0xdc,0x01,0x03,0x7d,0x00]
flat_atomic_cmpswap v0, v[1:2], v[3:4] glc
// GFX10: encoding: [0x00,0x00,0xc5,0xdc,0x01,0x03,0x7d,0x00]
flat_atomic_cmpswap v0, v[1:2], v[3:4] glc slc
// GFX10: encoding: [0x00,0x00,0xc7,0xdc... | Assembly |
#
# Copyright(c) 2022 Intel Corporation
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
# SPDX-License-Identifier: BSD-3-Clause
#
import pytest
from api.cas.cache_config import (
CacheLineSize,
CacheMode,
KernelParameters,
UnalignedIo,
UseIoScheduler,
CacheModeTrait,
)
from api.cas.cli impor... | Python |
tbyUDDDeviceKeyVector, Serial )
{
bolt::cl::control ctl = bolt::cl::control::getDefault( );
ctl.setForceRunMode(bolt::cl::control::SerialCpu);
AddD4 ad4gt;
bolt::cl::device_vector< uddtD4 > boltValues(stdValues.begin(), stdValues.end());
bolt::cl::device_vector< uddtD4 > boltKeys(stdKeys.begin(), stdKeys.e... | C++ |
line: 0}
.xm-select-parent .xm-select-sj {display: inline-block;width: 0;height: 0;border-style: dashed;border-color: transparent;overflow: hidden;position: absolute;right: 10px;top: 50%;margin-top: -3px;cursor: pointer;border-width: 6px;border-top-color: #C2C2C2;border-top-style: solid;transition: all .3s;-webkit-tran... | CSS |
ue();
}
static SDValue
performScalarToVectorCombine(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
SelectionDAG &DAG) {
// Let's do below transform.
//
// t34: v4i32 = AArch64ISD::UADDLV t2
// t35: i32 = extract_vector_elt t34, Constant:i64<0>
// t7: i64 = zer... | C++ |
@ File generated by m4a2s Song-Module
.include "MPlayDef.s"
.equ seq_811_grp, bank_028
.equ seq_811_pri, 127
.equ seq_811_rev, 0
.equ seq_811_mvl, 127
.equ seq_811_key, 0
.section .rodata
.global seq_811
.align 2
@*********************** Track 01 ***********************@
seq_811_0:
.byte KEYSH , seq_811_k... | Assembly |
{ p0: P0 -> function(p0, p1, p2, p3, p4, p5, p6, p7) }
public fun bind(
p2: P2,
p3: P3,
p4: P4,
p5: P5,
p6: P6,
p7: P7,
) =
LambdaCallable2(variantConverter, p0Type, p1Type, onCancelCall) { p0: P0, p1: P1 -> function(p0, p1, p2, p3, p4, p5, p6, p7) }
public fun bind(
p3: P3,
... | Kotlin |
1-PCB"] = new Object();
DEV_LIST.push('HM-LC-Sw4-PCB');
DEV_DESCRIPTION["HM-LC-Sw4-PCB"] = "HM-LC-Sw4-PCB";
DEV_PATHS["HM-LC-Sw4-PCB"] = new Object();
DEV_PATHS["HM-LC-Sw4-PCB"]["50"] = "/config/img/devices/50/46_hm-lc-sw4-pcb_thumb.png";
DEV_PATHS["HM-LC-Sw4-PCB"]["250"] = "/config/img/devices/250/46_hm-lc-sw4-pcb.png... | JavaScript |
private val moonMesh = TextureMesh().apply {
isFrustumChecked = false
generate {
rect {
size.set(0.17f, 0.17f)
origin.set(0f, 0f, -1f)
}
}
shader = moonShader
}
private val starMesh = TriangulatedPointMesh(numVertices = ... | Kotlin |
}
var manager:IFocusManager = FocusManager.focusManagerFactory(root);
manager.isEnabled = true;
if(stack.length > 0)
{
var oldManager:IFocusManager = stack[stack.length - 1];
oldManager.isEnabled = false;
}
stack.push(manager);
return manager;
}
/**
* Removes the specified focus... | Typescript |
t-shadow:1px 1px 0 rgba(0,0,0,0.5);margin-top:2px}.skin-2 .menu-min .nav-list>li>a.dropdown-toggle>.menu-text{margin-top:0;background-color:#292929}.skin-2 .menu-min .nav-list>li>ul.submenu{box-shadow:none;border:0;background-color:#303030;margin-left:1px;margin-top:1px;border-left:1px solid #FFF}.skin-2 .nav-list>li>u... | CSS |
OutEvent.Init(_waveProvider);
_waveOutEvent.Play();
}
public void EnqueueForPlayback(BinaryData audioData)
{
byte[] buffer = audioData.ToArray();
_waveProvider.AddSamples(buffer, 0, buffer.Length);
}
public void ClearPlaybackIf(IObservable<bool> observable)
{
ob... | C# |
fun main() {
for (i in 1..37) {
System.out.printf("chowla(%2d) = %d\n", i, chowla(i))
}
println()
var count = 1
var limit = 10_000_000
val c = sieve(limit)
var power = 100
for (i in 3 until limit step 2) {
if (!c[i]) count++
if (i == power - 1) {
Sys... | Kotlin |
i);for(const l of o)s.push(n(l));return s}case o0:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case nk:return r(new Date(o),i);case ik:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case ak:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case ok:{const s=r(new Set,i);for(const l ... | HTML |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
#include "db_config.h"
#include "db_int.h"
#include "dbinc/db_page.h"
#include "dbinc/db_swap.h"
#include "dbinc/btree.h"
/*
* __bam_pgin --
* Convert host-s... | C |
"2i3ZhPSdnp8NswPsw2p9883cfm4zqUWkMFN",
"44uk8fU7k2gFqerwkAKTFzWvwPayWmjTCx",
"2gDeQvfwJnmeDVtQt516hUbxUK1xTZfraay",
"2GtoNJMcB3RBxvNq8qAo5xvZiFHSJ7dGKi",
"289R19783EYott6pMQAPCCA5MkKpDSrUBoN",
"BFP3PK4WWqfD24dLp45tvGWWg6RznWRF9X",
"2mPjq2MP3jDs9hfvjJPewuWui4GurBUmcGV",
"2Mfb2mini3tccBzstfLvbjXN8a32pv55Gjq... | Go |
f(buffer, "%s%s", cmd, intrinsics_filename) != (unsigned int) 2) {
RNFail("Error parsing line %d of configuration file\n", line_number);
return 0;
}
// Open intrinsics file
FILE *intrinsics_fp = fopen(intrinsics_filename, "r");
if (!intrinsics_fp) {
RNFail("Unable to ope... | C++ |
from r in tb
select new CteTable() { Id = r.Value4, Value1 = r.Value1, Value2 = r.Value2, Value3 = r.Value3, Value4 = r.Value4, Value5 = r.Value5 }
)
.Concat(
from c in cte2
join r in tb on c.Value2 equals r.Value3
select new CteTable() { Id = r.Id, Value1 = r.Value1, Value2 = r.Value2, Value... | C# |
movss xmm1, DWORD PTR [48+rsp]
mulss xmm5, xmm2
mulss xmm4, xmm1
addss xmm5, DWORD PTR [_2il0floatpacket_54]
mulss xmm2, xmm4
movss xmm3, DWORD PTR [imagerel(vscbrt_ha_cout_data)+132+r8+rbx]
mulss xmm3, xmm1
mulss xmm5, xmm2
... | Assembly |
8.T2.1.1.1.m1.1.1.1.1.2.cmml">B</mi><mo id="S8.T2.1.1.1.m1.1.1.1.1.1" xref="S8.T2.1.1.1.m1.1.1.1.1.1.cmml">−</mo><mi id="S8.T2.1.1.1.m1.1.1.1.1.3" xref="S8.T2.1.1.1.m1.1.1.1.1.3.cmml">V</mi></mrow><mo stretchy="false" id="S8.T2.1.1.1.m1.1.1.1.3" xref="S8.T2.1.1.1.m1.1.1.1.1.cmml">)</mo></mrow><annotation-xml encoding="... | HTML |
.btnRemoveExternalDependency.TabIndex = 15;
this.btnRemoveExternalDependency.Click += new DecentForms.EventHandler(this.btnRemoveExternalDependency_Click);
//
// listExternalDependencies
//
this.listExternalDependencies.FormattingEnabled = true;
this.listExternalDependencies.Locati... | C# |
then
L3_2 = L1_2
L2_2 = L1_2.FD014229B3B926D03
L2_2(L3_2)
end
L2_2 = A0_2[11]
L3_2 = EB4EF1AE9F9963746
L3_2 = L3_2.SELECT_TARGET
if L2_2 ~= L3_2 then
L2_2 = A0_2[11]
L3_2 = EB4EF1AE9F9963746
L3_2 = L3_2.DISP_STATE_INFO
if L2_2 ~= L3_2 then
goto lbl_38
end
end
L3_2 = A... | Lua |
S>,
PhantomData<&'a ()>,
)
where
Item: Scalar,
Layout: LayoutIdentifier,
RS: SizeIdentifier,
CS: SizeIdentifier,
Mat: MatrixTrait<'a, Item, Layout, RS, CS>;
impl<'a, Item, Mat, Layout, RS, CS> MatrixRef<'a, Item, Mat, Layout, RS, CS>
where
Item: Scalar,
Mat: MatrixTrait<'a, Item, Layout... | Rust |
// Copyright 2021 - Haga Rakotoharivelo - https://github.com/haga-rak
using System;
using System.Collections.Generic;
using System.Linq;
namespace Fluxzy.Clients.H2.Encoder.Huffman
{
internal class Node
{
private readonly int _baseByte;
private readonly int _column;
private readonly ... | C# |
import com.l24team.gameserver.model.entity.Duel;
import com.l24team.gameserver.network.serverpackets.ActionFailed;
import com.l24team.gameserver.skills.Formulas;
import com.l24team.gameserver.thread.ThreadPoolManager;
import com.l24team.util.random.Rnd;
public class CharStatus
{
/** The Constant LOGGER. */
protected... | Java |
href="https://www.w3.org/WAI/WCAG22/Understanding/language-of-parts.html">理解部分语言</a>
<span class="screenreader">|</span> <br><a
href="https://www.w3.org/WAI/WCAG22/quickref/#language-of-parts">如何满足部分语言</a>
</div>
<p cla... | HTML |
T> directive. For example:</P>
<DIV class="code">
<PRE>
%module example
%include "typemaps.i"
%apply int *OUTPUT { int *result };
%apply int *INPUT { int *x, int *y};
void add(int x, int y, int *result);
int sub(int *x, int *y);
</PRE>
</DIV>
<P> If a function mutates one of its parameters like this,</P>
... | HTML |
ficiency
- Resilient to multipath fading
- 64-point FFT with pilot equalization
- Cyclic prefix correlation
### Text Processing
#### Huffman Codec
- Canonical Huffman encoding
- Ham radio token support (Q-codes, callsigns, abbreviations)
- PUA sentinel markers for Unicode safety
- Optimal compression for amateur rad... | Markdown |
=edge"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"><link rel="icon" href="/SKHelper/favicon.ico"><link rel="mask-icon" href="/SKHelper/favicon.svg" color="#333333"><title>Documentation</title><script>var baseUrl = "/SKHelper/"</script><script defer="defer" src="/SKHelper/js/chu... | HTML |
0xff}
var ctrAESTests = []struct {
name string
key []byte
iv []byte
in []byte
out []byte
}{
// NIST SP 800-38A pp 55-58
{
"CTR-AES128",
commonKey128,
commonCounter,
commonInput,
[]byte{
0x87, 0x4d, 0x61, 0x91, 0xb6, 0x20, 0xe3, 0x26, 0x1b, 0xef, 0x68, 0x64, 0x99, 0x0d, 0xb6, 0xce,
0x98, 0... | Go |
de.parent <b>P</b>} where they did before. However, both of
* these nodes are <font color='red'>red</font>, so property 5 (all paths from any given node to its leaf
* nodes contain the same number of <font color='darkBlue'>black</font> nodes) is not violated by the
* rotation. </p>
*
* <p> After this ... | Typescript |
r > input[type="month"],
.has-error > input[type="time"],
.has-error > input[type="week"],
.has-error > input[type="number"],
.has-error > input[type="email"],
.has-error > input[type="url"],
.has-error > input[type="search"],
.has-error > input[type="tel"],
.has-error > input[type="color"],
.has-error > select,
.has-e... | CSS |
p->rq, qp, &cqe, &budget);
}
spin_unlock_irqrestore(&cq->flush_lock, flags);
return num_cqes - budget;
}
int bnxt_qplib_poll_cq(struct bnxt_qplib_cq *cq, struct bnxt_qplib_cqe *cqe,
int num_cqes, struct bnxt_qplib_qp **lib_qp)
{
struct cq_base *hw_cqe, **hw_cqe_ptr;
u32 sw_cons, raw_cons;
int budget, r... | C |
ellationToken.None;
} else if (this._token instanceof MutableToken) {
this._token.dispose();
}
}
};
// node_modules/monaco-editor/esm/vs/base/common/keyCodes.js
var KeyCodeStrMap = class {
constructor() {
this._keyCodeToStr = [];
this._strToKeyCode = /* @__PURE__ */ Object... | JavaScript |
@ Code kombiniert aus init.S (TI/system_config/armv5/gcc) und ExceptionHandler.S (TI/system_config/armv5/am1808/gcc)
@ SPDX-License-Identifier: MPL-1.0
@ Copyright (c) 2016 Tobias Schießl
#include "hw_aintc.h"
#include "soc_AM1808.h"
.global Entry
.global pbdrv_stack_end
.global _bss_start
... | Assembly |
in the current field.
*
* This operator will not match numerical values that cannot be represented as a signed 64-bit integer
* (e.g. `Decimal128`) nor ones that have a fractional component.
*
* ### Example
*
* ```kotlin
* class User(
* val name: String,
* val age: Int?,
* )
*
* colle... | Kotlin |
WVk 41559
IENhbnlvbg== 41560
IEpTT05BcnJheQ== 41561
IHp3ZWk= 41562
IFNTSA== 41563
IHNlcnZhbnQ= 41564
Y29hbA== 41565
IGRlbnlpbmc= 41566
IHNwbGl0cw== 41567
SW5jb3JyZWN0 41568
IHRveA== 41569
IEFuYWx5c3Q= 41570
IGFjY3JlZA== 41571
dWJsZQ== 41572
IHd0 41573
IFRyaWFs 41574
LmV4dGVuc2lvbg== 41575
IENhcmVlcg== 41576
IHNlY3VyaW5... | Kotlin |
if applicable, otherwise -1
*/
private int getOffsetIndex(String theValueString) {
int plusIndex = theValueString.indexOf('+', 16);
int spaceIndex = theValueString.indexOf(' ', 16);
int minusIndex = theValueString.indexOf('-', 16);
int zIndex = theValueString.indexOf('Z', 16);
int maxIndexPlusAndMinus = M... | Java |
q;C v=q.2l(A.2e,p);z(v>0){v=q.2l(A.2o,p);z(v<0){v=0}}J v},5p:B(q,p){q=q||$q;z(q.2l(A.3M,p,"2I")<0){J-1}G{z(q.2l(A.3R,p,"2I")>0){J 1}}J 0},1G:B(q,p,k){p=p||$x.O.4k;C v=A.4c(q,p);z(v==0){v=1;z(p=="d"&&k==18){k=1s.78((Q 1p(q.y,q.M-1,q.d).20()-$x.4Q+7)%7)}v=!A.7j(k)&&!A.7e(q,p);z("2I".1d(p)>=0){v=A.5p(q,p)==0}}G{v=0}J v},7... | JavaScript |
Rlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+VU513gAAADVJREFUeNrs0DENACAQBDBIWLGBJQby/mUcJn5sJXQmOQMAAAAAAJqt+2prAAAAAACg2xdgANk6BEVuJgyMAAAAAElFTkSuQmCC)}}/*!
* # Semantic UI 2.5.0 - Flag
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://open... | CSS |
trypoint: "mvn",
Args: []string{
"clean",
// TODO(#3126): If compile-test has to be done as a separate
// step, then we also need to fix this in the same way as we do
// for multiple repo support. Probably this would need to be
// done with multiple steps (but making sure to not clobber
// o... | Go |
const { email, password } = req.body;
const user = await UserModel.findOne({ email });
if (!user) {
return res.status(404).json({ message: 'User not found' });
}
const isPasswordValid = bcrypt.compareSync(password, user.password);
if (!isPasswordValid) {
return res.... | Typescript |
r2, #1
movs r0, #16
pop {r4, r5, r6, lr}
b FtlRead
.size StorageSysDataLoad, .-StorageSysDataLoad
.section .text.FlashBootVendorRead,"ax",%progbits
.align 1
.global FlashBootVendorRead
.syntax unified
.thumb
.thumb_func
.fpu softvfp
.type FlashBootVendorRead, %function
FlashBootVendorRead:
@ args = 0, pret... | Assembly |
function func15 ({ id }:User) {
console.log(id);
}
interface User {
id : string
}
const user: User = {
id: "51"
}
func15(user);
const array = [1, 2, 3];
// 仮引数が1つなので`()`を省略できる
// 関数の処理が1つの式なので`return`文を省略できる
const doubleArray = array.map(value => value * 2);
console.log(doubleArray); // => [2, 4, 6]/**
* True... | Typescript |
; Goldenrod Tunnel B2F
; Puzzle:
; When you hit a red, green, or blue switch, any gate bordering a room of that
; color will open if closed, or close if open.
; Gate diagram:
; - Each gate has an index
; - The room color is noted by a lowercase letter {r,g,b,p}
;
; [ ]--0--[ ]-----[ ]--1--[ ]
; | | ... | Assembly |
;
@define-color warning_bg_color #cd9309;
@define-color warning_fg_color rgba(0, 0, 0, 0.8);
@define-color warning_color @yellow_2;
@define-color error_bg_color @red_4;
@define-color error_fg_color white;
@define-color error_color #ff7b63;
@define-color window_bg_color #242424;
@define-color window_fg_color white;
@def... | CSS |
#endif
arm_func_end TryInflictLuckyChantStatus
arm_func_start TryInflictHealBlockStatus
TryInflictHealBlockStatus: ; 0x023185A8
stmdb sp!, {r3, r4, r5, r6, r7, lr}
mov r6, r0
mov r5, r1
mov r4, r2
mov r7, r3
bl EntityIsValid__02315118
cmp r0, #0
moveq r0, #0
ldmeqia sp!, {r3, r4, r5, r6, r7, pc}
mov r0, r5... | Assembly |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | C# |
S0t 10356
IElP 10357
IHJpY2g= 10358
RGF5 10359
4YOo4YOY 10360
RFI= 10361
YXdu 10362
IGxhYm9y 10363
IGRhbWFnZQ== 10364
4LSm 10365
IHNhdQ== 10366
w6Zy 10367
IOyD 10368
X3N0YXR1cw== 10369
IGFjdGlvbnM= 10370
SUxJVFk= 10371
44O744O7 10372
bGFz 10373
IHF1ZXI= 10374
IGN1YWw= 10375
MzY1 10376
IGJlZ2Fu 10377
Q29tbWVudA== 10378
... | Kotlin |
# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
# Copyright (c) 2009 The Hewlett-Packard Development Company
# Copyright (c) 2010 Advanced Micro Devices, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following ... | Python |
_floats[2];
}
let quat: UnitQuaternion<f64> = UnitQuaternion::from_matrix(&mat);
let idq = ImplicitDualQuaternion::new(quat, vec);
return (idq, scaling);
}
}
pub mod clearchat;
pub mod clearmsg;
pub mod globaluserstate;
pub mod hosttarget;
pub mod join;
pub mod notice;
pub mod par... | Rust |
nModel::DataTransfer::DragDrop::Core
{
}
namespace py::wrapper::Windows::ApplicationModel::DataTransfer::DragDrop::Core
{
using CoreDragDropManager = py::winrt_wrapper<winrt::Windows::ApplicationModel::DataTransfer::DragDrop::Core::CoreDragDropManager>;
using CoreDragInfo = py::winrt_wrapper<winrt::Windows::Ap... | C |
); }
f() {
final a = A();
print(a);
}
''');
}
}
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analysis_server/src/services/corre... | Dart |
a825, 0x0a826], // Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign
[0x0a82c, 0x0a82c], // (nil) ..(nil)
[0x0a8c4, 0x0a8c5], // Saurashtra Sign Virama ..Saurashtra Sign Candrabi
[0x0a8e0, 0x0a8f1], // Combining Devanagari Dig..Combining Devanagari Sig
[0x0a8ff, 0x0a8ff], // Devanagar... | Dart |
ore);
}
for blk in mock.blocks() {
chain_service
.process_block(Arc::new(blk.clone()), Switch::DISABLE_ALL)
.unwrap();
}
chain_service.truncate(&target.hash()).unwrap();
assert_eq!(shared.snapshot().tip_header(), &target);
}
mod cli;
mod inputs;
mod output;
use la... | Rust |
ocketPropulsion")
y.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
y.CartoonFactor = 1
y.MaxThrust = 200000
y.MaxSpeed = 1000
y.ThrustP = 50000
y.Name = "Animated"
for i,v in pairs(GetPlayer(TXTBOX_PlrName2.Text))do
game.Workspace.CurrentCamera.CameraSubject = game.Players[v.Name].Charact... | Lua |
rated
*/
TableExpression getTableExpr();
/**
* Sets the value of the '{@link org.eclipse.datatools.modelbase.sql.query.TableCorrelation#getTableExpr <em>Table Expr</em>}' container reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Table ... | Java |
"] = {
["enUS"] = true,
["deDE"] = "Keine Quests zum Auflisten vorhanden",
["esES"] = "No hay misiones que listar",
["esMX"] = "No hay misiones que listar",
["frFR"] = "Aucunes quêtes à lister",
["koKR"] = "표시할 퀘스트가 없습니다",
["ptBR"] = "Nenhuma missão para listar",
... | Lua |
] = "Lifetime",
[10] = "Necrotic",
[11] = "Physical",
[12] = "Psychic",
[13] = "Radiant",
[14] = "CinematicDeath",
[15] = "Cold",
[16] = "Disintegrate",
}
--- @enum StatsExpressionParamType
Ext_Enums.StatsExpressionParamType = {
StatsExpressionType = 0,
Type1 = 1,
StatsExpressionVariableDataType = 2,
StatsE... | Lua |
.get(5, SECONDS);
client.changeName(CustomerApi.ChangeNameRequest.newBuilder()
.setCustomerId(id)
.setNewName("Katarina")
.build())
.toCompletableFuture()
.get(5, SECONDS);
assertEquals("Katarina", getCustomer(id).g... | Java |
vp["gitBranch"] = self.branch
vp["gitCommit"] = self.commit
vp["system"] = f.rf.system
vp["fieldWidth"] = f.rf.SysParams["outlinelen"]
vp["sampleRate"] = f.rf.SysParams["outfreq"] * 1000000
vp["black16bIre"] = float(f.hz_to_output(f.rf.iretohz(self.blackIRE)))
... | Python |
, mkSizeExpr(sizeBits))
?: return@doWithCtx null
return@doWithCtx mkBvExtractExpr(high = sizeBits - 1, low = 0, shiftedData)
}
fun TvmStepScopeManager.slicePreloadDataBitsWithoutChecks(
slice: UHeapRef,
sizeBits: Int,
): UExpr<KBvSort>? {
val cell =
calcOnStateCtx {
... | Kotlin |
HANGE_NASID(nasid, ptc1);
pio_atomic_phys_write_mmrs(ptc0, data0, ptc1,
data1);
flushed = 1;
}
}
if (flushed
&& (wait_piowc() &
SH_PIO_WRITE_STATUS_WRITE_DEADLOCK_MASK)) {
sn2_ptc_deadlock_recovery(ptc0, data0, ptc1, data1);
}
start += (1UL << nbits);
} while (start < end);
... | C |
sNumbers) return;
badEncode(0x100000000);
badEncode(0x7000000000000000);
}
void testIssue25577() {
// Regression test for http://dartbug.com/25577.
StringConversionSink decodeSink =
base64.decoder.startChunkedConversion(TestSink<List<int>>());
ByteConversionSink encodeSink =
base64.encoder.startC... | Dart |
ical_user_, 32, 3
.data
.align 4
.global __kmp_unnamed_critical_addr
__kmp_unnamed_critical_addr:
.4byte .gomp_critical_user_
#ifdef __ELF__
.size __kmp_unnamed_critical_addr,4
#endif
#endif /* KMP_ARCH_ARM */
#if KMP_ARCH_PPC64 || KMP_ARCH_AARCH64 || KMP_ARCH_MIPS64 || KMP_ARCH_RISCV64 || KMP_ARCH... | Assembly |
3,0xc1]
kmovd r16d, k1
# CHECK: kmovq r16, k1
# CHECK: encoding: [0x62,0xe1,0xff,0x08,0x93,0xc1]
kmovq r16, k1
# CHECK: kmovb k1, byte ptr [r16 + r17]
# CHECK: encoding: [0x62,0xf9,0x79,0x08,0x90,0x0c,0x08]
kmovb k1, byte ptr [r16 + r17]
# CHECK: kmovw k1, word ptr [r16 + r17]
# CHECK: encod... | Assembly |
bookId);
public Book? Add(Book book)
{
if (_books.Any(x => x.BookId == book.BookId))
{
return null;
}
_books.Add(book);
return book;
}
public Book? UpdateById(Guid bookId, Book book)
{
var index = _books.FindIndex(x => x.BookId == bookI... | C# |
from fastapi import APIRouter, HTTPException, Depends
from typing import Optional, Dict
from utils.auth_utils import verify_admin_api_key
from utils.fufanmanus_default_agent_service import SunaDefaultAgentService
from utils.logger import logger
from utils.config import config, EnvMode
from dotenv import load_dotenv, se... | Python |
using Macad.Common;
using Macad.Common.Serialization;
using Macad.Occt;
namespace Macad.Core.Shapes;
[SerializeType]
public sealed class Sphere : Shape
{
#region Construction Properties
[SerializeMember]
public double Radius
{
get
{
return _Radius;
}
set
... | C# |
func printCatFold(name string, m map[string]map[rune]bool) {
if *test {
var pkgMap map[string]*unicode.RangeTable
if name == "FoldCategory" {
pkgMap = unicode.FoldCategory
} else {
pkgMap = unicode.FoldScript
}
if len(pkgMap) != len(m) {
fmt.Fprintf(os.Stderr, "unicode.%s has %d elements, want %d\n"... | Go |
then
self:ShowPurchaseVisuals(nodeID);
end
end
function RemixArtifactFrameMixin:ShowPurchaseVisuals(nodeID)
if not self.buttonPurchaseFXIDs then
return;
end
local buttonWithPurchase = self:GetTalentButtonByNodeID(nodeID);
if buttonWithPurchase and buttonWithPurchase.PlayPurchaseCompleteEffect then
buttonW... | Lua |
>
<span class="cs1-format">(PDF)</span> from the
original on September 21, 2013.</cite
><span
title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.... | HTML |
E6%9C%AC%E6%9B%B8%E7%8D%BB%E7%B5%A6%E5%B8%8C%E6%9C%9B%E5%8E%BB%E9%99%A4%E7%85%A9%E6%83%B1%E7%9A%84%E4%BA%BA%E5%80%91&rft.date=2015&rft.genre=book&rft.isbn=978-986-88212-5-5&rft.pages=185&rft.pub=%E8%87%BA%E7%81%A3%E5%8D%97%E5%82%B3%E4%B8%8A%E5%BA%A7%E9%83%A8%E4%BD%9B%E6%95%99%E5%AD%B8%E9%99%A2&r... | HTML |
blish status update
publishStatus();
}
void handleButtonLongPress() {
Serial.println("Button long-pressed");
// Toggle power
boolean currentPower = digitalRead(POWER_CONTROL_PIN) == HIGH;
digitalWrite(POWER_CONTROL_PIN, !currentPower ? HIGH : LOW);
// Update display
display.showPowerState(!currentP... | C++ |
r sliderPosition4 by remember { mutableFloatStateOf(36f) }
Title_Desc_Text(desc = "当前progress值:${sliderPosition4}")
//变动值是float的
Slider(
value = sliderPosition4,
onValueChange = { sliderPosition4 = it },
valueRange = 0f..100f,
onValueChangeFinished = {},
steps = 10,
... | Kotlin |
/*
* Copyright (C) 2016-2025 Red Hat, Inc. All rights reserved.
*
* Authors: Fabio M. Di Nitto <fabbione@kronosnet.org>
*
* This software licensed under GPL-2.0+
*/
#include "config.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "libknet.h"
#incl... | C |
3652942078] = "ch3_10_fence01",
[1531924256] = "cs4_07_salesigns",
[76642561] = "prop_rock_1_c",
[2690611460] = "fwy_03_fwysign_002",
[3433544827] = "prop_postbox_ss_01a",
[2825353482] = "ch3_04_sea_uwdecals09",
[4000545035] = "bh1_49_bushdec_06",
[503806220] = "sp1_12_decals14",
[1239108828] = "cs4_07_cloth_06... | Lua |
: store ptr %new, ptr [[NEW_ARG]], align 4
// CHECK: [[ADDR:%.*]] = load ptr, ptr [[ADDR_ARG]], align 4
// CHECK: [[DESIRED:%.*]] = load ptr, ptr [[DESIRED_ARG]], align 4
// CHECK: [[NEW:%.*]] = load ptr, ptr [[NEW_ARG]], align 4
// CHECK: call void @llvm.memcpy.p0.p0.i32(ptr align 2 [[NONATOMIC_TMP]]... | C |
iddle mol-post-header__close" title="Skrýt"><svg class="atm-close-content-button__icon" viewbox="0 0 20 20"><g fill="currentColor"><rect height="2.333" rx=".5" transform="scale(-1 1) rotate(45)" width="26" x="-13" y="12.708"></rect><rect height="2.333" rx=".5" transform="rotate(45)" width="26" x="1.375" y="-1.667"></re... | HTML |
46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#E17-MJMATHI-6A" x="0" y="0"></use><use xmlns:xl... | HTML |
Periodically wakes up and checks
/// if data needs to be written to disk.
void write_thread();
/// cross-thread-synchronization. write_thread() terminates after this is
/// set to true by exit_request().
std::atomic<bool> close_session;
/// The writer thread and the output file will only be c... | C++ |
the API. It is useful to set it to `0` for [forked repos](https://knapsackpro.com/faq/question/how-to-make-knapsack_pro-works-for-forked-repositories-of-my-project) when you want to rely on Fallback Mode.
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/124
https://github.com/KnapsackPro/knapsack_pro-ruby/c... | Markdown |
/**
* Copyright 2013-2023 Software Radio Systems Limited
*
* This file is part of srsRAN.
*
* srsRAN is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at you... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.