content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
assertTrue(
'Timer should be the goog.Timer namespace object',
goog.Timer === Timer);
// and its dependencies
assertNotUndefined(
'goog.events.EventTarget should be available',
/** @suppress {missingRequire} */ goog.events.EventTarget);
},
testRequireModule: function() {
... | JavaScript |
exclusiveTailSet.size());
assertEquals(0, exclusiveTailSet.size());
Set<E> inclusiveTailSet = sortedSet.tailSet(getKeys()[0], true);
assertEquals(1, inclusiveTailSet.size());
assertEquals(getKeys()[0], inclusiveTailSet.toArray()[0]);
}
/**
* Test method for 'java.util.SortedSet.tailSet(Object)... | Java |
000;color:var(--yb-black);text-shadow:.8px 0 0 #000;text-shadow:.8px 0 0 var(--yb-black)}.ybar-ytheme-crunch ._yb_1772h7s ._yb_h1s1bv ._yb_p1y64c:focus-visible,.ybar-ytheme-crunch ._yb_1772h7s ._yb_h1s1bv:hover ._yb_p1y64c{background-color:#f5f8fa;background-color:var(--yb-selected-item-background);color:#6001d2;color:... | HTML |
####################################################################################################
# Copyright (c) 2016 - 2024, EPFL / Blue Brain Project
# Author(s): Marwan Abdellah <marwan.abdellah@epfl.ch>
#
# This file is part of NeuroMorphoVis <https://github.com/BlueBrain/NeuroMorphoVis>
#
# This program is fre... | Python |
.FEE_RECEIVE_ADDRESS_ERROR);
}
BigInteger[] amounts = SwapUtils.getAmountsOut(chainId, iPairFactory, _amountIn, path);
if (amounts[amounts.length - 1].compareTo(amountOutMin) < 0) {
throw new NulsException(SwapErrorCode.INSUFFICIENT_OUTPUT_AMOUNT);
}
List<TradePairBu... | Java |
( retOutParams ) { // JMC - backport 4540
if ( inMsParamArray != NULL ) {
clearMsParamArray( inMsParamArray, 0 );
convertEnvToMsParamArray( inMsParamArray, env, &errmsgBuf, r );
}
}
/* deleteEnv(env, 3); */
if ( getNodeType( res ) == N_ERROR && !freeRei ) {
... | C++ |
ints.length == 1 ? width / 2 : 0), y(points.indexOf(maxValue)));
//line(this.options.averageLine, )
}
function minmax(a, b, c) {
return Math.max(a, Math.min(b, c));
}
return Sparkline;
}));
/*!
* dist/jquery.inputmask
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2021 Robin He... | JavaScript |
e820 call */
stc /* Force CF set if SMAP was missing */
addr32 leal 16(%esp), %esp /* avoid changing other flags */
ret
3: /* No error occurred */
movl %ebx, underlying_e820_ebx
movl %ecx, underlying_e820_cache_size
popl %edx
popl %ecx
popl %ebx
popl %eax
/* Mark cache as containing this result */
incw unde... | Assembly |
开关:"), cfg:enumView(onc), cfg:stLabel(string.format("期望音量 %2d", i)),
cfg:dspinView(c, com_vol_config.min_config_rdb,
com_vol_config.max_config_rdb,
1,
3),
cfg:stSpacer() };
all_com_vol_cfgs[k].com_vol_layouts[#all_com_vol_cfgs[k].com_vol_layouts+1] = l;
end
local group_list = {}
loc... | Lua |
null) {
throw Exception(localizations.unexpectedErrorOccurred);
}
// Capture the image
ui.Image image = await boundary.toImage(pixelRatio: 3.0);
ByteData? byteData =
await image.toByteData(format: ui.ImageByteFormat.png);
if (byteData == null) {
throw Exception(l... | Dart |
1QU
VO1RAF
VO1REC
VO1RYL
VO1SF
VO1SF/P
VO1SMC
VO1SO
VO1STE
VO1TTY
VO1TX
VO1VM
VO1WET
VO1YE
VO2/GM0TQJ
VO2NS
VO2VC
VO2ZT
vo3sf
VO5SF
VO7SF
VO9SF
VP2E/DK7UY
VP2E/N4BWS
VP2EAG
VP2EAQ
VP2EAR
VP2ECR
VP2EEB
VP2EH
VP2EJA
VP2EKT
VP2EMD
VP2ERT
VP2ETE
VP2ETL
VP2M/GM3YOR
VP2MBO
VP2MDD
VP2MKA
VP2MKK
VP2MNI
VP2MOM
VP2MPR
VP2MRD
VP2... | HTML |
ThreadStorage& tls = s(this);
tls.collectingOrphans = true;
tls.groupStart = -1;
if (tls.localNodes == nullptr || tls.localNodes->size() == 0)
return;
collectOrphans(*tls.localNodes);
tls.localNodes->clear();
}
void SortedNodeStore::finalize(size_t threadNum) {
for (const auto& buffer: workerBuffers) {
if ... | C++ |
ntercept.__cost(100);
Assert.assertTrue(intercept.__isAlive());
intercept.__raiseDirty();
intercept.__settle(null);
intercept.__invalidateUp();
parent.alive = false;
Assert.assertFalse(intercept.__isAlive());
}
}
/*
* Adama Platform and Language
* Copyright (C) 2021 - 2024 by Adama Platform En... | Java |
import math
num = int (input ("Enter a number: "))
factorial = math.factorial (num)
print (f"The factorial of that number is {factorial}") | Python |
rticle>
<pre class="prettyprint source linenums"><code>/**
* Built-in learning rate policies, which allow for a dynamic learning rate during neural network training.
*
* @namespace
*
* @see [Learning rates and how-to improve performance](https://towardsdatascience.com/understanding-learning-rates-and-how-it... | HTML |
179-C18B, U+C18F,
U+C191-C193, U+C195-C19B, U+C19E, U+C1A0, U+C1A2-C1A4, U+C1A6-C1A7, U+C1A9-C1AB, U+C1AD-C1BC,
U+C1BE-C1C3, U+C1C5-C1DF, U+C1E1-C1E3, U+C1E5-C1EC;
}
@font-face {
font-family: 'Fusion Pixel 12px M zh_hans';
src:
local('Fusion Pixel 12px M zh_hans'),
url('./63536d1678104348b7a2348496d... | CSS |
tConvert.Length > 0)
print (ti.PostConvert);
print (ti.ReturnFormat, "retval");
}
indent--;
print ("}");
print ("");
print ("internal static unsafe BlockLiteral CreateNullableBlock ({0}? callback)", ti.UserDelegate);
print ("{");
indent++;
print ("if (callback is null)");
indent++;
... | C# |
"C" fn(*mut GtkCellAccessibleParent, *mut GtkCellAccessible)>,
pub activate: Option<unsafe extern "C" fn(*mut GtkCellAccessibleParent, *mut GtkCellAccessible)>,
pub edit: Option<unsafe extern "C" fn(*mut GtkCellAccessibleParent, *mut GtkCellAccessible)>,
pub update_relationset: Option<unsafe extern "C" fn(... | Rust |
(API.COMPOSITIONS, {
params: {
page: pageNumber,
},
});
compositionCollection = response.data;
} catch (error) {
console.error(error);
}
return compositionCollection;
};
const fetchCompostionById = async (id: string): Promise<Composition> => {
let composition;
try {
const ... | Typescript |
?
x y z
[ VScript ]: Maxs: Vector 00000000002DB5A8 [288.000000 256.000000 96.000000]
[ VScript ]: Mins: Vector 00000000002DB540 [-288.000000 -256.000000 -96.000000]
]]
-- these can't be rotated........ | Lua |
thub.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
const (
BridgeVlanFileName = "bridge_vlan.yaml"
)
type BridgeVlanCmd struct {
*Command
fileName string
}
func NewBridgeVlanCmd() *BridgeVlanCmd {
return &BridgeVlanCmd{
Command: NewCommand(),
fileName: BridgeVlanFileName,
}
}
func (c *BridgeVlanCmd) se... | Go |
class="op">)</span></span>
<span><span class="op">)</span></span></code></pre></div>
</div>
<div id="arguments">
<h2>Arguments</h2>
<dl><dt>device_ids</dt>
<dd><p>Required. A character vector containing the ID of the device this on which playback should be started/transferred. Note: only a single devi... | HTML |
iD.osmWay({ id: '=', nodes: ['c', 'b'], tags: { highway: 'residential', oneway: 'yes' } }),
iD.osmWay({ id: '~', nodes: ['d', 'e'], tags: { highway: 'residential', oneway: 'yes' } }),
iD.osmWay({ id: '≈', nodes: ['e', 'f'], tags: { highway: 'residential', oneway: 'yes' } }),
... | JavaScript |
{
outline: 1px solid var(--text-color);
outline-offset: 2px;
}
input[role=switch]:checked {
background: var(--checked-bg-color);
}
input[role=switch]:before {
content: '';
display: block;
background: white;
height: 1rem;
border-radius: 100%;
width: 1rem;
border: none;
transition: transform 200ms;
transfo... | CSS |
val sqliteSuffix = namespace.replace("[^a-zA-Z0-9_]+".toRegex(), "-")
val dbName = DATABASE_NAME + "-" + sqliteSuffix + ".sqlite"
allowedDbFiles.add(dbName)
allowedDbFiles.add("$dbName-wal")
allowedDbFiles.add("$dbName-shm")
}
... | Kotlin |
0xe0]
vpshrdvd -536870910(%rcx,%r14,8), %ymm3, %ymm1
// CHECK: vpshrdvq (%rcx), %ymm3, %ymm1
// CHECK: encoding: [0x62,0xf2,0xe5,0x28,0x73,0x09]
vpshrdvq (%rcx), %ymm3, %ymm1
// CHECK: vpshrdvq -128(%rsp), %ymm3, %ymm1
// CHECK: encoding: [0x62,0xf2,0xe5,0x28,0x73,0x4c,0x24,0xfc]
vps... | Assembly |
lues's size: %lu",
(unsigned long) names.size(),
(unsigned long) values.size());
}
argc_ = names.size() * 2 + 3;
argv_space(argc_);
size_t i = 0;
argv_[i] = cmd;
argv_lens_[i] = strlen(cmd);
i++;
argv_[i] = key;
argv_lens_[i] = strlen(key);
i++;
argv_[i] = id;
argv_lens_[i] = strlen(id);
i++;
s... | C++ |
Subroutes(spec.Subroutes, fieldPath.Child("subroutes"), upstreamNames, vsPath, namespace)...)
return allErrs
}
func validateVirtualServerRouteHost(host string, virtualServerHost string, fieldPath *field.Path) field.ErrorList {
allErrs := validateHost(host, fieldPath)
if virtualServerHost != "" && host != virtualSe... | Go |
couldn't otherwise legally be included in
<a href="#syntax-text" title="syntax-text">text</a>.</p><p>Character references must start with a U+0026 AMPERSAND character
(&). Following this, there are three possible kinds of character
references:</p><dl><dt>Named character references</dt>
<dd>The ampersand ... | HTML |
roduct = Math.max(maxProduct, product);
}
}
return maxProduct;
}
// Opt
// AC
private static void dfs(List<List<Integer>> res, List<Integer> path, int segs, int start, int remain) {
if (segs == 0) {
if (remain == 0) {
res.add(new ArrayLis... | Java |
河排污口,并及时报告有关人民政府和通报本级环境保护主管部门。有关人民政府应当及时组织有关部门采取治理措施。
在水功能区内从事工程建设或者旅游、养殖、水上运动等开发利用活动的,不得影响本水功能区及相邻水功能区的使用功能,不得降低水功能区的水质标准。
第十六条 市、区县(自治县)环境保护主管部门对饮用水水源的水污染防治实施统一监督管理。
水利、农业等相关部门依据各自职责,负责有关的饮用水水源保护工作。
乡(镇)人民政府、街道办事处对本辖区内分散式饮用水水源的水污染防治实施监督管理。
第十七条 市、区县(自治县)水行政主管部门应当会同环境保护等主管部门提出饮用水水源地名录,报本级人民政府核准后向社会公布名录和管理单位。
集中式... | Markdown |
17 | c>>(32-17) + d
b += (((d ^ a) & c) ^ a) + X[15] + 1236535329
b = b<<22 | b>>(32-22) + c
// Round 2.
a += (((b ^ c) & d) ^ c) + X[(1+5*0)&15] + 4129170786
a = a<<5 | a>>(32-5) + b
d += (((a ^ b) & c) ^ b) + X[(1+5*1)&15] + 3225465664
d = d<<9 | d>>(32-9) + a
c += (((d ^ a) & b) ^ a) + X[(1+5*2)... | Go |
Max = 0,
distanceMaxForFCS = 5000,
distanceMin = 0,
name = "CMD_Periscope",
type = 103
} },
angles = { { 3.1415926535898, -3.1415926535898, -0.13962634015955, 0.5235987755983 } },
base = 1,
center = "CENTER_PANORAMA",
drawArgument1 = 25,
drawArgument2 = 26,
omegaY = 0.872664625... | Lua |
on, and jump to the new kernel..
*/
subl $16,%esp # place for structure on the stack
movl %esp,%eax
pushl %esi # real mode pointer as second arg
pushl %eax # address of structure as first arg
call SYMBOL_NAME(decompress_kernel)
orl %eax,%eax
jnz 3f
addl $8,%esp
xorl %ebx,%ebx
ljmp $(__KERNEL_CS), $0x10000... | Assembly |
bui-pagingbar .bui-pb-first .bui-button-disabled{background-position:3px -18px;}.bui-pagingbar .bui-pb-prev button{background-position:-57px 2px;}.bui-pagingbar .bui-pb-prev .bui-button-disabled{background-position:-57px -18px;}.bui-pagingbar .bui-pb-next button{background-position:-37px 2px;}.bui-pagingbar .bui-pb-nex... | CSS |
Handle';
import {expect} from 'chai';
describe("Get log",()=>{
it("Should return all info log",()=>{
LogHandle.instance.clearLog();
LogHandle.instance.pushLog(new LogEvent(LogType.Info,"Info 1"));
LogHandle.instance.pushLog(new LogEvent(LogType.Warning,"Warning 1"));
LogHan... | Typescript |
default:
d.nod ();
break;
}
}
return o
}
function _encode_sc_escort_info_update_request(self: sc_escort_info_update_request, st: Sproto.SprotoStream) {
let se = SprotoCore.GetSerialize(st, 5);
if (self.escortCount != undefined) {
se.wi (self.escortCount, 0);
}
if (self.robCount != und... | Typescript |
auf das Aktive Pokémon deines Gegners, bis seine verbleibenden KP 10 betragen."
},
},
],
weaknesses: [
{
type: "Fire",
value: "×2"
},
],
retreat: 0
}
export default card
export const stampToStr = function (time:Date|number, accuracy = 'second') {
if (!time) {
return '-'
}
... | Typescript |
(), GetTall() );
vgui::surface()->DrawSetColor( Color( 53, 86, 117, 255 * flAlpha ) );
//vgui::surface()->DrawFilledRect( 0, YRES( 4 ), wide, tall - YRES( 4 ) );
int nBarPosY = YRES( 4 );
int nBarHeight = tall - nBarPosY * 2;
vgui::surface()->DrawFilledRectFade( iHalfWide, nBarPosY, wide, nBarPosY + nBarHeight, ... | C++ |
ToNot(gomega.HaveOccurred())
g.Expect(res).To(gomega.Equal(controllerruntime.Result{}))
}
/*
* 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... | Go |
4688 WIN-4HO1USO2OUA$ C:\phpStudy\ms16-032.exe
2021-02-03 11:30:50 4688 WIN-4HO1USO2OUA$ C:\Windows\System32\net.exe
2021-02-03 11:30:50 4688 WIN-4HO1USO2OUA$ C:\Windows\System32\net1.exe
2021-02-03 11:30:56 4688 admin C:\Windows\System32\cmd.exe
2021-02-03 11:30:57 4688 admin C:\Win... | Markdown |
using UnityEngine;
public class PassTimeScript : MonoBehaviour
{
public InputManagerScript InputManager;
public ClockScript Clock;
public UILabel TimeDisplay;
public Transform Highlight;
public float[] MinimumDigits;
public float[] Digits;
public int TargetTime;
public int Selected = 1;
public string ... | C# |
# Copyright (C) 2018-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import numpy as np
from openvino.tools.mo.front.common.partial_infer.utils import compatible_shapes, shape_array, strict_compare_tensors
from openvino.tools.mo.graph.graph import Node, Graph
from openvino.tools.mo.ops.op import Op
cla... | Python |
TempReading()
{
if (_UseFans && (_Fan1Auto || _Fan2Auto))
{
if (DoDebug)
{
Log.Info("VLSYS_Mplay.GetTempReading(): called");
}
if (!_TempCmdSent)
{
if (_ProcessReceivedData)
{
commPort.Write(new byte[] {0xaf}, 0, 1);
... | C# |
/*
DelFEM (Finite Element Analysis)
Copyright (C) 2009 Nobuyuki Umetani n.umetani@gmail.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your o... | C |
self) -> Result<Vec<String>,DBError>;
}
pub mod mongodb;
pub mod couchdb;
#[macro_use]
extern crate criterion;
extern crate rand;
#[macro_use]
extern crate ult_algo;
use criterion::Criterion;
use rand::Rng;
use ult_algo::sequence;
include_sequence_search!();
fn sequence_benchmark(c: &mut Criterion) {
let seq... | Rust |
:则说明当前解已经很接近真实值了,将接收机三个方向上的速度存入到 sol->rr 中
// 否:进行下一次循环
if (norm(dx,4)<1E-6) {
matcpy(sol->rr+3,x,3,1);
sol->qv[0]=(float)Q[0]; /* xx */
sol->qv[1]=(float)Q[5]; /* yy */
sol->qv[2]=(float)Q[10]; /* zz */
sol->qv[3]=(float)Q[1]; /* xy */
... | Markdown |
MemberUiModel(hannah, InviteState.PARTICIPATING),
MemberUiModel(nana, InviteState.SELECTED),
),
)
val staccatoMembers = Members(listOf(bingti, hannah, hodu))
val participants = staccatoMembers.members.map { Participant(it, Role.GUEST) }
val category =
Category(
categoryId... | Kotlin |
-suite/tests/toRdf-manifest.jsonld#t0090">
Test 0090:
<span property="dc:title mf:name">Term definitions with prefix separate from prefix definitions</span>
</dt>
<dd resource="http://json-ld.org/test-suite/tests/toRdf-manifest.jsonld#t0090">
<p lang="en" property... | HTML |
ed var bodySize = 0
init {
header.messageLength = bodySize
header.timeStamp = timeStamp
header.messageStreamId = streamId
}
abstract fun getStreamId(): Int
abstract fun getDescription(): String
abstract fun getCode(): String
override fun getSize(): Int = bodySize
}/*
* Copyright (C) 2024 ped... | Kotlin |
,必须指定至少一个例如:
@Cacheable(value=”mycache”) 或者
@Cacheable(value={”cache1”,”cache2”}key缓存的 key,可以为空,如果指定要按照 SpEL 表达式编写,如果不指定,则缺省按照方法的所有参数进行组合例如:
@Cacheable(value=”testcache”,key=”#userName”)condition缓存的条件,可以为空,使用 SpEL 编写,返回 true 或者 false,只有为 true 才进行缓存例如:
@Cacheable(value=”testcache”,condition=”#userName.length()>2”)
... | Markdown |
imalValor.format(vendaCondicoesPagamento.faturamentoMaximo ?? 0)), onTap: () {
_detalharVendaCondicoesPagamento(vendaCondicoesPagamento, context);
}),
DataCell(Text(Constantes.formatoDecimalValor.format(vendaCondicoesPagamento.indiceCorrecao ?? 0)), onTap: () {
_detalharVendaCondicoe... | Dart |
",a:"0x8993f76e40ed605f930b13b860bfabdee0756858",d:18,n:"Bank Future Exchange",block:1},
{s:"BFF",a:"0xcabf96a41a4d98ee91d4fb1004dc4b3b8548cb53",d:8,n:"BffDoom"},
{s:"BFI",a:"0x0474d1d1f9fb6b6db80b150512dbf12f6564c49e",d:18,n:"BitFinTech",block:1,inactive:1},
{s:"BFI",a:"0xd83c82d9ead90cdd59be89b9a893bfce3826e2fd",d... | JavaScript |
if ( self:IsSelectable() ) then
local canvas = self:GetSelectionCanvas()
if ( IsValid( canvas ) && !self:IsSelected() ) then
canvas:UnselectAll()
end
end
end
function meta:OnStopDragging()
self.Dragging = false
end
function meta:DragMousePress( mcode )
if ( IsValid( dragndrop.m_DropMenu ) ) then re... | Lua |
encrypted_group_secret: &EncryptedGroupSecrets,
// FIXME: group_context: &GroupContext,
kp_secret: &KeyPackageSecret,
) -> GroupSecret {
match self {
CipherSuite::MLS10_128_DHKEMP256_AES128GCM_SHA256_P256 => {
// FIXME: errors instead of panicking
... | Rust |
octave=0; octave<octaves; ++octave)
{
nx = (x + offsets[octave][0]) % w; ny = (y + offsets[octave][1]) % h;
noiseSum += noise(layerFrequency*nx*ibx, layerFrequency*ny*iby) * layerWeight;
layerFrequency *= 2;
weightSum += layerWeight;
layerWeight *= roughness;
}
v = ~~... | JavaScript |
eaf(3));
assertThat(n110.left()).isEqualTo(newTestLeaf(4));
assertThat(n110.right()).isSameAs(LeafNode.EMPTY_LEAF);
assertThat(n111.left()).isSameAs(LeafNode.EMPTY_LEAF);
assertThat(n111.right()).isSameAs(LeafNode.EMPTY_LEAF);
assertThat(n1.get(0b1)).isSameAs(n1);
assertThat(n1.get(0b10)).isSam... | Java |
return 0;
}
}
return -1;
}
static int wpa_get_current_bssid(wlan_t *wlan, char *bssid, uint32_t bssid_len)
{
char reply[1024];
size_t reply_len;
char *saveptr;
char *token;
char *line_saveptr;
char line[512];
reply_len = sizeof(reply);
if (wpa_simple_cmd(wlan, r... | C++ |
user actions that affect the
* value will trigger updates to the element.
*
* If `value` is supplied (and not null/undefined), the rendered element will
* not trigger updates to the element. Instead, the `value` prop must change in
* order for the rendered element to be updated.
*
* The rendered element will be... | JavaScript |
stw r0, 0x178(r29)
.L_801A825C:
/* 801A825C 001A519C 80 01 00 24 */ lwz r0, 0x24(r1)
/* 801A8260 001A51A0 83 E1 00 1C */ lwz r31, 0x1c(r1)
/* 801A8264 001A51A4 83 C1 00 18 */ lwz r30, 0x18(r1)
/* 801A8268 001A51A8 83 A1 00 14 */ lwz r29, 0x14(r1)
/* 801A826C 001A51AC 7C 08 03 A6 */ mtlr r0
/* 801A8270 001A51B0 38... | Assembly |
OSSClient.init(config);
print('=== OSS 自定义查询参数示例 ===\n');
// 示例1:基础图片处理参数
print('1. 基础图片处理参数(V4签名)');
final String imageResizeUrl = client.signedUrl(
'images/photo.jpg',
queryParameters: <String, String>{
'x-oss-process': 'image/resize,l_100', // 限制长边为100像素
},
isV1Signature: false, // 使... | Dart |
ning the event data.</param>
protected void OnVendorDataGridViewDataError(object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e)
{
System.Diagnostics.Debug.WriteLine(string.Format( "{0}, {1}", e.ColumnIndex, e.RowIndex));
}
/// <summary>
/// Handles the CellValueNeeded event of the uxVend... | C# |
();
pe.stop();
}, 1);
},
refresh: function() {
if (this.state) {
ControlBtn.on(this.divOn);
ControlBtn.off(this.divOff);
}
else {
ControlBtn.off(this.divOn);
ControlBtn.on(this.divOff);
}
}
};
/**
* @class
**/
iseButtonsKey = Class.create();
iseButtonsKey.pr... | JavaScript |
Vulkan API`解码`1.mkv`,然后调用`hevc_qsv`解码器解码`2.mkv`,
使用`-map 0:v:0`将0号输入,即`1.mkv`中的v类型流,即video(视频)流中的0号流作为输出,
同时`-map 1:a:0`将1号输入,即`2.mkv`中的a类型流,即audio(音频)流中的0号流作为输出,
`-c:v libx264 -preset slower`将视频编码器设置为libx264,x264的preset选项设置为slower,
`-c:a libopus -b:a 128k`将音频编码器设置为libopus,音频码率设置为128k,
最终输出的`output.... | Markdown |
- this is very powerful!
spawnedItems.Add(item);
}
}
void Play_OnGUI()
{
float timeRemaining = roundTime - (Time.time - playStartTime);
GUI.Label(new Rect(20, 20, 300, 30), "Click items to find the target");
GUI.Label(new Rect(20, 50, 300, 30), $"Time Remaining: {timeRemaining:n3}");
}
void Play_Upda... | C# |
) => {
if (err) {
return cb(err);
}
try {
expect(result.statusCode).toBe(400); //, util.format('Expected HTTP status 400 for GET %s', uri));
} catch (e) {
return cb(e);
}
cb();
}
);
});
it("should respo... | Typescript |
provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ... | C++ |
"
<< setw(gp) << "Aper2[m] " << " "
<< setw(gp) << "Aper3[m] " << " "
<< setw(gp) << "Aper4[m] " << " "
<< setw(15) << "Aper_Type " << " "
<< setw(gp) << "Angle[rad] ";
for (auto const& key : magnetKeys)
{
const G4String unit = nullStrength->UnitName(key);
... | C++ |
a map of SWIR2.
</p>
</div>
<div class="figure" style="text-align: center"><span style="display:block;" id="fig:cLHSscat"></span>
<img src="SpatialSampling_files/figure-html/cLHSscat-1.png" alt="Conditioned Latin hypercube sample plotted in a biplot of precipitation in the dryest month against SWIR2. The vertical and ... | HTML |
d[1] == 1:
t_click = time.time()
elapsed_time = t_click - t_last_click
t_last_click = t_click
self.single_click_and_hold = True
# release left button
if d[1] == 0:
... | Python |
oolean {
val typeMobile = ConnectivityManager.TYPE_WIFI
return isNetworkConnected(context, typeMobile)
}
}package com.ruheng.suiyue.movie
import com.ruheng.suiyue.data.MovieModel
import com.ruheng.suiyue.data.bean.MovieListBean
import com.ruheng.suiyue.network.Callback
import com.ruheng.suiyue.net... | Kotlin |
,-4820]]`, `4196`,
`23`,
},
}
targetCaseNum := 0
if err := testutil.RunLeetCodeFuncWithExamples(t, numPoints, examples, targetCaseNum); err != nil {
t.Fatal(err)
}
}
// https://leetcode-cn.com/contest/weekly-contest-189/problems/maximum-number-of-darts-inside-of-a-circular-dartboard/
package main
/* 子集动态规划
... | Go |
.199.108.153
```
至此 wener.me 可以被访问。
因为 cloudflare 在国内访问速度较慢,且 .me 无法备案的原因,因此镜像了 wener.tech。
:::caution
微信会拦截所有没有备案的域名,提示用户是否前往,非常影响体验。
:::
wener.tech 使用 nginx 缓存实现。
~~wener.tech 使用阿里云 dcdn/全站加速 实现,添加域名 www.wener.tech ,指向 185.199.108.153 和 185.199.109.153。
添加完成后前往域名解析,将 www.wener.tech CNAME 到 www.wener.tech.w.kun... | Markdown |
groupDir = com.example.imageoverlay.util.ConfigPathUtil.getGroupDir(requireContext(), groupName ?: "default")
// 清空旧文件
groupDir.listFiles()?.forEach { it.delete() }
val destFile = java.io.File(groupDir, name + fileExtension)
try {
val ... | Kotlin |
#!/usr/bin/env lua
local gl = require("moongl")
local glfw = require("moonglfw")
local mi = require("moonimage")
local glmath = require("moonglmath")
local SCR_WIDTH, SCR_HEIGHT = 800, 600
-- glfw inits and window creation ---------------------------------------------
glfw.version_hint(3, 3, 'core')
local window = gl... | Lua |
, lsl 16
ldr w0, [x22]
stp w2, w1, [x29, 108]
ldr w1, [x22, 92]
str w0, [x29, 100]
cmp w1, 1
beq .L1670
cbz w0, .L1671
.L1640:
ldr w1, [x22, 88]
cmp w0, 16
str wzr, [x29, 128]
str w1, [x29, 136]
bne .L1672
ldr w0, [x22, 56]
.L1641:
str w0, [x29, 132]
mov w1, 0
mov x0, 0
.p2align 2
.L1643:
ldr x2, [x19... | Assembly |
.read(commentListProvider(worksId).notifier)
.handleSendOrReply(parentCommentId: parentCommentId, message: message)
.then((value) {
Fluttertoast.showToast(msg: l10n.sendSuccess);
}).catchError((err, __) {
Fluttertoast.showToast(msg: l10n.send... | Dart |
]);
}
};
nbor(center.x, center.y);
while (queue.length > 0) {
const i = Math.floor(Math.random() * queue.length);
const [x, y, px, py] = queue[i];
queue.splice(i, 1);
if (visited[y][x]) {
continue;
}
visited[y][x] = true;
mapdata[y][x] = false;
mapdata[(y + py) / 2][(x ... | Typescript |
l-second even-row-color"><code><a href="gov/nasa/larcfm/Util/Units.html#unspecified">unspecified</a></code></div>
<div class="col-last even-row-color"><code>1.0</code></div>
</div>
</li>
<li>
<div class="caption"><span>gov.nasa.larcfm.Util.<a href="gov/nasa/larcfm/Util/Util.html" title="class in gov.nasa.larcfm.Util">U... | HTML |
ead_code)]
pub struct Artist {
pub name: String,
albums: Vec<Weak<RefCell<Album>>>,
tracks: Vec<Weak<Track>>,
}
impl Artist {
fn new(name: String) -> Artist {
Artist {
name: name,
albums: Vec::new(),
tracks: Vec::new(),
}
}
fn add_track(&mut se... | Rust |
/*
* Copyright 2020 Nikolay Sivov for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
*... | C |
if (handler1 != null)
{
handler1.Removed(slot1, item1);
}
}
if (item2 != null)
{
item2.Slot = slot1;
if (handler2 != null)
{
handler2.Removed(slot2, item2);
}
}
// set new items, fields and tell the container about the change
cont1.m_Items[slot1] = it... | C# |
Int\u003cUTerm, B1\u003e;\r\n\r\n #[allow(non_camel_case_types)]\r\n type U1PowU4 = \u003c\u003cA as Pow\u003cB\u003e\u003e::Output as Same\u003cU1\u003e\u003e::Output;\r\n\r\n assert_eq!(\u003cU1PowU4 as Unsigned\u003e::to_u64(), \u003cU1 as Unsigned\u003e::to_u64());\r\n}\r\n#[test]\r\n#[allow(non_snake_case... | HTML |
__0");
static_assert(offsetof(MM_M061_EM1041_C_OnDestroyed______0, DestroyedActor) == 0x000000, "Member 'MM_M061_EM1041_C_OnDestroyed______0::DestroyedActor' has a wrong offset!");
// Function MM_M061_EM1041.MM_M061_EM1041_C.OnLoaded_1ECCDA7645D8C9BB0B3BF197A6478817
// 0x0008 (0x0008 - 0x0000)
struct MM_M061_EM1041_C_... | C++ |
_repository.UpdateAsync(role);
}
[EventHandler]
public async Task EditAsync(EditRoleCommand command)
{
var role = await _repository.FindAsync(command.RoleId);
if (role == null)
throw new UserFriendlyException("The current role does not exist");
role.Update(command.... | C# |
biorxiv.org/content/10.1101/696633v1.full name=citation_full_html_url><meta value=https://www.biorxiv.org/content/biorxiv/early/2019/07/11/696633.full.pdf name=citation_pdf_url><meta value=10.1101/696633 name=citation_doi><meta value=33 name=citation_num_pages><meta value=Article name=citation_article_type><meta value=... | HTML |
,通过「二进制优化」的方式,将算法的时间复杂度降低。
> **二进制优化**:简单来说,就是把物品的数量 $count[i]$ 拆分成「由 $1, 2, 4, …, 2^m$ 件单个物品组成的大物品」,以及「剩余不足 $2$ 的整数次幂数量的物品,由 $count[i] -2^{\lfloor \log_2(count[i] + 1) \rfloor - 1}$ 件单个物品组成大物品」。
举个例子,第 $i$ 件物品的数量为 $31$,采用「二进制优化」的方式,可以拆分成 $31 = 1 + 2 + 4 + 8 + 16$ 一共 $5$ 件物品。也将是将 $31$ 件物品分成了 $5$ 件大物品:
1. 第 $1$ 件大物品有... | Markdown |
NumEventsFnPtr) GetProcAddress(hMod, "cuGetNumEvents");
cuGetCounterValue = (cuGetCounterValueFnPtr) GetProcAddress(hMod, "cuGetCounterValue");
}
#endif
}
static void pmonEventCreate(pmonCudaEvent *cudaEventId)
{
#if AGPERFMON_USES_CUDART
cudaEventCreate(cudaEventId);
#else
cuEventCreate(cudaEventId, 0);... | C++ |
g** goes between to clip text encode and the sampler
- **coord_preview** is an optional preview of the coordinates and
bounding boxes.
**Module:** `ComfyUI-KJNodes`
#### Inputs
- `conditioning_to` (required): `CONDITIONING`
- `latents` (required): `LATENT`
- `clip` (required): `CLIP`
- `gligen_textbox_model` (... | Markdown |
>, <CODE>d</CODE> and the corresponding sequence of stream buffers is <CODE>buf<SUB>1</SUB></CODE>, <CODE>buf<SUB>2</SUB></CODE>, ..., <CODE>buf<SUB>n-1</SUB></CODE>, <CODE>buf<SUB>n</SUB></CODE>:<A CLASS='footnote_ref' NAME='note_1_ref' HREF="#note_1"><SUP>[1]</SUP></A>
<PRE CLASS="broken_ie"> <SPAN CLASS="key... | HTML |
rkspaceSize.x;
} else {
width = workspaceSize.width + workspaceSize.x;
}
var height = workspaceSize.height + doubleBorderWidth * 3;
if (this.workspace_.flyout_) {
var flyoutMetrics = this.workspace_.flyout_.getMetrics_();
height = Math.max(height, flyoutMetrics.contentHeight + 20);
}
width += do... | JavaScript |
BoundarySignature(currentExports))) {\n module.hot.invalidate();\n }\n else {\n self.$RefreshHelpers$.scheduleUpdate();\n }\n }\n }\n else {\n // Since we just execu... | JavaScript |
xy.x
}
pub fn y(&self) -> i32 {
self.xy.y
}
pub fn width(&self) -> u32 {
self.width
}
pub fn height(&self) -> u32 {
self.height
}
}
impl From<SdlRect> for IntRect {
fn from(sdl_rect: SdlRect) -> IntRect {
IntRect::new(sdl_rect.x(),
... | Rust |
if (csid == 2 and option == 1 ) then
player:setCharVar("PromathiaStatus", 0)
player:completeMission(COP, tpz.mission.id.cop.THE_ENDURING_TUMULT_OF_WAR)
player:addMission(COP, tpz.mission.id.cop.DESIRES_OF_EMPTINESS)
player:setPos(-14.744, 0.036, -119.736, 1, 22) -- To Floor 1 {R}
... | Lua |
rk properly with lat-long data when the **-bc**
flags are used.
When interpolation is done (i.e., the **-bc** flags are used), values
are assumed to be located at the centroid of grid cells. Therefore,
current resolution settings are important.
## EXAMPLE
Comparison of "elev_ned_30m" and "elev_srtm_30m" North Caroli... | Markdown |
, r5, pc}
_020111EC:
cmp r1, #0
ldr r0, _0201142C ; =0x04000004
bne _0201120C
ldrh r1, [r0]
mov r2, #2
tst r1, r2
beq _020112D8
add r0, #0x44
ldrh r3, [r0]
ldr r1, _0201143C ; =0xFFFFC0FF
and r3, r1
lsl r1, r2, #0xc
orr r3, r1
orr r1, r3
strh r1, [r0]
pop {r3, r4, r5, pc}
_0201120C:
ldrh r1, [r0]
mov ... | Assembly |
/v_nLhex
built by : FH 01-05-15 */
const UCHAR bookSbrNoiseBalanceL11T[25] = {
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
0x08, 0x05, 0x02, 0x01, 0x03, 0x06, 0x08, 0x08, 0x08,
0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08};
/*
tuningTable
*/
const sbrTuningTable_t sbrTuningTable[] = {
/* S... | C++ |
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF,
],
};
use std::io::{self, Write};
use std::vec::Vec;
fn get_input() -> String {
let mut input: String = String::new();
io::stdout().flush().unwrap();
io::stdin().read_line(&mut input)
... | Rust |
ct = self.ep_wait_act[:(index - fail_to_exe) * WAIT_SPACE] + self.ep_wait_act[(index + 1 - fail_to_exe) * WAIT_SPACE :]
self.ep_piece_act = self.ep_piece_act[:(index - fail_to_exe) * PIECE_SPACE] + self.ep_piece_act[(index + 1 - fail_to_exe) * PIECE_SPACE :]
self.ep_wait_info_act1 = self.ep_wait_info_ac... | Python |
/*
* FreeRTOS Kernel V10.4.3
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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, includ... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.