content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
@override
String get knowledge250Sbcritical250Sbdescription => 'Считается, что энтузиасты в криптовалютном пространстве должны мыслить критически и оценивать проекты на основе их ценности с точки зрения применимости в условиях реального мира. Но разве не должны и сами проекты отличаться своей «самокритичностью» и... | Dart |
/*
* Copyright 2020-2021 Telecom Paris
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 agreed to in... | C |
### 💡Main File Locations (Host) *Customizable
- Socket: `/opt/mirakurun/run/mirakurun.sock`
- Configuration: `/opt/mirakurun/config/`
- `server.yml`
- `tuners.yml`
- `channels.yml`
- Data: `/opt/mirakurun/data/`
- `services.json`
- `programs.json`
- Opt: `/opt/mirakurun/opt/`
- `bin/`
- `bin/startup` ... | Markdown |
er the name of the copyright holder nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
package proxy
import (
"github.com/stretchr/testify/assert"
"net/url"
"testing"
)
var dataProviderWindowsParseLpszProxy = []st... | Go |
%l6
add %i3, %l6, %l3
sethi %hi(0x10000), %l6
or %l6, %lo(0x10000), %l6
add %l3, %l6, %l3
ld [%l3], %l7
st %l7, [%l3]
add %l3, %l6, %l3
ld [%l3], %l7
st %l7, [%l3]
add %l3, %l6, %l3
ld [%l3], %l7
st %l7, [%l3]
add %l3, %l6, %l3
ld [%l3], %l7
st %l7, [%l3]
P4982: !SWAP [14] (maybe <- 0x840188) (Int)
mov %l4, %o3
swap ... | Assembly |
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
import pandas as... | Python |
apperProps,
{},
{ default: {} }
> {
STORAGE_KEY: string;
CONTEXT_KEY: string;
VARIABLE_PREFIX: string;
VALID_MODES: ["auto", "light", "dark"];
INVALID_THEMES_MESSAGE: string;
INVALID_PREFIX_MESSAGE: string;
INVALID_MODE_MESSAGE: undefined;
}
export interface OrderBy {
/**
* Sorting priority... | Typescript |
models/movie-run';
interface IMovieDetail {
title: string;
language: string;
subtitles: string | null;
times: Date[];
}
/**
* Removes whitespace from the start and end of an HTML element
* and also removes </br> tags.
*
* @param elem - The HTML element object to strip.
* @returns The `elem` object trimme... | Typescript |
import json
from pathlib import Path
from typing import Literal
from pydantic import BaseModel, Field
from .color_range import ColorRange
PREFERENCES_FILE = Path(__file__).parent / "color_squares_preferences.json"
"設定ファイルのパス"
type ColorName = Literal["Red", "Blue", "Yellow"]
COLORS: tuple[ColorName, ...] = ("Red",... | Python |
6-light .hljs-attr,
.theme-base16-harmonic16-light .hljs-variable.constant_,
.theme-base16-harmonic16-light .hljs-literal {
color: #bfbf56;
}
.theme-base16-harmonic16-light .hljs-title,
.theme-base16-harmonic16-light .hljs-class .hljs-title,
.theme-base16-harmonic16-light .hljs-title.class_ {
color: #8bbf56;
}
.theme... | CSS |
pand %xmm1, [_2be555_mask_r]
pand %xmm2, [_2be555_mask_g]
pand %xmm3, [_2be555_mask_b]
movdqa %xmm4, %xmm1
movdqa %xmm5, %xmm2
movdqa %xmm6, %xmm3
punpcklwd %xmm1, %xmm0
punpcklwd %xmm2, %xmm0
punpcklwd %xmm3, %xmm0
punpckhwd %xmm4, %xmm0
punpckhwd %xmm5, %xmm0
punpckhwd %xmm6, %xmm0
pslld %xmm1, 1... | Assembly |
(255, 255, 0, .4);
}
/* IE7 hack to prevent it from returning funny offsetTops on the spans */
.CodeMirror span { *vertical-align: text-bottom; }
/* Used to force a border model for a node */
.cm-force-border { padding-right: .1px; }
@media print {
/* Hide the cursor when printing */
.CodeMirror div.CodeMirror-c... | CSS |
s-compatibility with 22.2 prior to
// 22.2.3, see:
// https://github.com/cockroachdb/cockroach/issues/94834
var rStickyBit, otherStickyBit hlc.Timestamp
if r.StickyBit != nil {
rStickyBit = *r.StickyBit
}
if other.StickyBit != nil {
otherStickyBit = *other.StickyBit
}
if !rStickyBit.Equal(otherStickyBit) {
... | Go |
.com/neomatrix369/summarisercosineclass) | [Summariser_TFIDF_Class](https://www.kaggle.com/neomatrix369/summarisertfidfclass) | [Summariser_TFIDF_VariationClass](https://www.kaggle.com/neomatrix369/summarisertfidfvariationclass) | [Summariser_PyTextRank_Class](https://www.kaggle.com/neomatrix369/summariser-pytextrank-c... | Markdown |
d: Boolean = true
) {
header(AwesomeHeader()) {
this.title = title
this.round = round
isDarkHeader = isDark
}
}
/**
* # AwesomeHeader
*
* @author Vove
* 2019/7/11
*/
class AwesomeHeader : ContentBuilder(), StatusCallback {
override val layoutRes: Int
get() = R.layout.he... | Kotlin |
on, CFString, kAXDescriptionAttribute),
(element_busy, CFBoolean, kAXElementBusyAttribute),
(enabled, CFBoolean, kAXEnabledAttribute),
(focused, CFBoolean, kAXFocusedAttribute),
(help, CFString, kAXHelpAttribute),
(identifier, CFString, kAXIdentifierAttribute),
(label_value, CFString, kAXLabelVa... | Rust |
see <https://www.gnu.org/licenses/>.
*/
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ProtonVPN.Common.Legacy;
using ProtonVPN.EntityMapping.Contracts;
using ProtonVPN.ProcessCommunication.Contracts.Entities.Vpn;
using ProtonVPN.ProcessCommunication.EntityMapping.Tests.Common;
using ProtonVPN.ProcessCommu... | C# |
self.key_events.MoveDown = { { "Down" }, event = "Panning", args = {0, 1}, }
end
if (Device:hasDPad() and not Device:useDPadAsActionKeys()) or (Device:hasKeys() and not Device:useDPadAsActionKeys()) then
self.key_events.GotoNextView = { { { "RPgFwd", "LPgFwd", nextKey } }, event = "GotoViewRel", args =... | Lua |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rush04.c :+: :+: :+: ... | C |
ransform;
using Aliyun.Acs.VoiceNavigator.Model.V20180612;
namespace Aliyun.Acs.VoiceNavigator.Transform.V20180612
{
public class DescribeRecordingResponseUnmarshaller
{
public static DescribeRecordingResponse Unmarshall(UnmarshallerContext _ctx)
{
DescribeRecordingResponse describeRecording... | C# |
{
priority = "high",
draw_as_shadow = true,
scale = 0.27 * 0.85,
multiply_shift = 0.85,
}),
},
},
charge_animation_is_looped = true,
}),
surface_conditions = {
common.AMBIENT_RADIATION_MIN,
},
working_sound = {
max_sounds_per_prototype = 4,
main_sounds = {
{
... | Lua |
() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Ob... | JavaScript |
Fixups)) {
// Recognize the special convention:
Entry firstEntry = (Entry) prevFixups;
f = new Fixups(bytes);
f.add(SPECIAL_LOC, SPECIAL_FMT, firstEntry);
} else {
f = (Fixups) prevFixups;
assert(f.bytes == bytes);
}
f.add(... | Java |
ltDataClasses.STRING);
symbols.add(a1);
DynamicCommand obj = new DynamicCommand();
Expression sql = new Constant("SELECT a1 FROM g WHERE a2 = 5"); //$NON-NLS-1$
obj.setSql(sql);
obj.setAsColumns(symbols);
obj.setAsClauseSet(true);
obj.setIntoGroup(new GroupSymbo... | Java |
dx10_clamp 1
.amdhsa_ieee_mode 1
.amdhsa_fp16_overflow 0
.amdhsa_workgroup_processor_mode 1
.amdhsa_memory_ordered 1
.amdhsa_forward_progress 0
.amdhsa_exception_fp_ieee_invalid_op 0
.amdhsa_exception_fp_denorm_src 0
.amdhsa_exception_fp_ieee_div_zero 0
.amdhsa_exception_fp_ieee_overflow 0
.amdhsa_e... | Assembly |
timer
CMP #$01
BEQ bra_DEA6
LDY ram_004F_race_started_flag
BNE bra_DEA5_RTS
CMP #$60
BCS bra_DE4E
LDA ram_03A9
BEQ bra_DE4E
LDA ram_005C_obj
AND #$C0
BEQ bra_DE4E
LDA #$01
STA ram_00FE_flag
bra_DE4E
LDY #$F0
LDA ram_0024_timer
CMP #$10
BCS bra_DE5E
LDY #$F2
CMP #$08
BCS bra_DE5E
... | Assembly |
enterOuterAlt(_localctx, 1);
{
setState(2624);
match(DEALLOCATE);
setState(2625);
_la = _input.LA(1);
if ( !(_la==DATABASE || _la==DATABASES) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume()... | Java |
---------------------------------------------------------------------------------------------
--
-- LuaBrogueArchitect (GPLv3)
--
-- An attempted, approximate port of Brogue's wonderful dungeon generation from C to Lua
-- for the Zomia project @ https://github.com/globalcitizen/zomia
--
-- The original author was B... | Lua |
using ModernUO.Serialization;
using Server.Targeting;
namespace Server.Items
{
[SerializationGenerator(0, false)]
public partial class CupidsArrow : Item
{
[InternString]
[InvalidateProperties]
[SerializableField(0)]
[SerializedCommandProperty(AccessLevel.GameMaster)]
... | C# |
null
} catch (cause: Throwable) {
cause
}
outputBuffer.clear()
try {
sink.close()
} catch (cause: Throwable) {
if (thrown == null) thrown = cause
else thrown.addSuppressed(cause)
}
... | Kotlin |
/*
* Copyright 2009-2017 Alibaba Cloud 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.apache.org/licenses/LICENSE-2.0
*
* Unless required... | C |
y *= frequency;
/*
* --- Skew moved to TransformNoiseCoordinate method ---
* const FNfloat F2 = 0.5f * (SQRT3 - 1);
* FNfloat s = (x + y) * F2;
* x += s; y += s;
*/
int i = FastFloor(x);
int j = FastFloor(y);
float xi = (float)(x - i);
float yi = (float)(y - j);
float t = (xi + yi) * G2;
... | C# |
: -1}, diff)
log.Println("SS PP:")
log.Println("\tAim: ", ppResults.Aim)
log.Println("\tTap: ", ppResults.Speed)
if diff.CheckModActive(difficulty.Flashlight) {
log.Println("\tFlash:", star.Flashlight)
}
log.Println("\tAcc: ", ppResults.Acc)
log.Println("\tTotal:", ppResults.Total)
}
... | Go |
`.
final $typed_data.Uint8List ukey2ServerInitDescriptor = $convert.base64Decode(
'Cg9Va2V5MlNlcnZlckluaXQSGAoHdmVyc2lvbhgBIAEoBVIHdmVyc2lvbhIWCgZyYW5kb20YAi'
'ABKAxSBnJhbmRvbRJKChBoYW5kc2hha2VfY2lwaGVyGAMgASgOMh8uc2VjdXJlZ2NtLlVrZXky'
'SGFuZHNoYWtlQ2lwaGVyUg9oYW5kc2hha2VDaXBoZXISHQoKcHVibGljX2tleRgEIAEoDFI... | Dart |
ame":"[MEASURE:0]","colLabel":"Quantity","colType":"NUMERIC"}
],
"resultset":[
[{"v":"[Order Status].[Disputed]","f":"Disputed"},{"v":"[Time].[2005]","f":"2005"},{"v":597,"f":"597"}],
[{"v":"[Order Status].[In Process]","f":"In Process"},{"v":"[Time].[2005]","f":"2005"},{"v":1490,"f":"1,490"}],
... | JavaScript |
}
._1WMFrHAiPqvR9uLLvoV9jt .zZZiudhmL8WOcRbYyfkJ8 ._2QIBfZOax9yB8ogUl-Wmjz,
._1WMFrHAiPqvR9uLLvoV9jt .zZZiudhmL8WOcRbYyfkJ8 ._3FkF2tHGUsXjzVKolhpymG {
color: #888;
cursor: pointer;
}
._1WMFrHAiPqvR9uLLvoV9jt .zZZiudhmL8WOcRbYyfkJ8 ._2QIBfZOax9yB8ogUl-Wmjz:hover,
._1WMFrHAiPqvR9uLLvoV9jt .zZZiudhmL8WOcRbYyfkJ8 ._3F... | CSS |
withClue(
"Expected: ${bc.encoded.toHexString(HexFormat.UpperCase)}, actual: ${
own.derEncoded.toHexString(
HexFormat.UpperCase
)
}"
) {
own.derEncoded shouldBe bc.encoded
}
... | Kotlin |
"""
Classifies: CHEBI:84948 11,12-saturated fatty acyl-CoA(4-)
"""
"""
Classifies: CHEBI:84948 11,12-saturated fatty acyl-CoA(4-)
"""
from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit.Chem import rdMolDescriptors
def is_11_12_saturated_fatty_acyl_CoA_4__(smiles: str):
"""
Determines if a molecul... | Python |
if (ret == QDialog::Accepted) {
hexTableView->replaceSelectedBytes(dialog->getChar());
}
delete dialog;
} else {
QClipboard *clipboard = QApplication::clipboard();
QString input = clipboard->text();
if (action->text() == UTF8_STRING_ACTION) {
hexTable... | C++ |
ait.unwrap();
assert_eq!(result.as_ref(), Some(&value));
});
}
}
}
extern crate lapin_async as lapin;
extern crate amq_protocol;
use std::net::TcpStream;
use std::{thread,time};
use amq_protocol::types::*;
use lapin::connection::*;
use lapin::buffer::Buffer;
use lapin::generat... | Rust |
ao123.com/
43iii.2288.org
444.nyny1111.com
44411ffaa.cn
444mi.com
44559.cn
44aaaa.com
44fang.comhttp://www.hao123.com/
44ghe.cn
44ghe.cnhttp://www.hao123.com/
44hrhec.7766.org
44l.info
44uuu.com
44wen.com
4523er.cn
4534rr232323.cn
454126.8800.org
454126.8800.orghttp://www.hao123.com/
45476.com
455900.cn
456.as22456.cn
... | Lua |
size: size_of::<GstWebRTCFECType>(),
alignment: align_of::<GstWebRTCFECType>(),
},
),
(
"GstWebRTCICEComponent",
Layout {
size: size_of::<GstWebRTCICEComponent>(),
alignment: align_of::<GstWebRTCICEComponent>(),
},
),
(
... | Rust |
'5 code segment treat as an segment', () => {
// language=Markdown
const article = new TwoColArticle('```Python\ncode =1\n```\n```JavaScript\ncode =2\n```\n```JavaScript\ncode =3\n```\n\n```JavaScript\ncode =4\n```\n\n```JavaScript\ncode =5\n```')
expect(article.segments).to.have.length(3)
})
it('1 co... | Typescript |
/licenses/BSD-3-Clause-No-Nuclear-License"),
),
(
"BSD-3-Clause-No-Nuclear-License-2014",
include!("text/licenses/BSD-3-Clause-No-Nuclear-License-2014"),
),
(
"BSD-3-Clause-No-Nuclear-Warranty",
include!("text/licenses/BSD-3-Clause-No-Nuclear-Warranty"),
),
(
... | Rust |
ldr r0, [pc, #0x78] @ [0x21d93ec] (=0x221a504)
ldr r2, [r0]
ldr r1, [r2, #0x24]
cmp r1, #0x3
blt branch_21d9388
cmp r1, #0x4
bne branch_21d9394
.arm
branch_21d9388: @ 21d9388 :arm
add sp, sp, #0x10
mov r0, #0x0
ldmfd sp!, {r4-r6,pc}
@ 0x21d9394
.arm
branch_21d9394: @ 21d... | Assembly |
fana will be restarted.
- The following components will be restarted:
* `ebs-csi-plugin` in the `cloud-provider-aws` module;
* `azuredisk-csi` in the `cloud-provider-azure` module;
* `pd-csi-plugin` in the `cloud-provider-gcp` module;
* `kube-controller-manager` in the `control-plane-manager` module;
... | Markdown |
eSet* ColorTexture[ovrEye_Count];
ovrRecti Viewport[ovrEye_Count];
ovrFovPort Fov[ovrEye_Count];
ovrPosef RenderPose[ovrEye_Count];
} ovrLayerEyeFov;
typedef struct ovrLayerEyeFovDepth_
{
ovrLayerHeader Header;
ovrSwapTextureSet* ColorTexture[ovrEye_Count];
ovrRecti Viewport[ovrEye_Count];
ovrFovPort Fov[ovrEye_Count];... | Lua |
:"n",27:"n",28:"n",29:"n",30:"n",31:"n",32:"n",33:"n",34:"n",35:"y",36:"y",37:"y",38:"y",39:"y",40:"y",41:"y",42:"y",43:"y",44:"y"},safari:{3.1:"n",3.2:"n",4:"n",5:"n",5.1:"n",6:"n",6.1:"n",7:"n",7.1:"n",8:"n"},opera:{9:"n","9.5-9.6":"n","10.0-10.1":"n",10.5:"n",10.6:"n",11:"n",11.1:"n",11.5:"n",11.6:"n",12:"n",12.1:"n... | JavaScript |
ject_mask = get_segmentation(
segmented_img, idx, detections, img, label_detected, score, color=(255, 0, 0)
)
score_list.append(score)
object_masks_list.append(object_mask)
label_list.append(0)
elif label_detected in dino_l... | Python |
s for right click and middle click
e.Handled |= e.ChangedButton != sw.Input.MouseButton.Left;
};
#endif
base.AttachEvent(id);
break;
case Button.TextChangedEvent:
// text is never changed
break;
default:
base.AttachEvent(id);
break;
}
}
public override Color Text... | C# |
дентификатор","advisoryTitleInputLabel":"Киңәш исем","cssClassInputLabel":"Стильләр класслары","edit":"Edit Div","inlineStyleInputLabel":"Эчке стиль","langDirLTRLabel":"Сулдан уңга язылыш (LTR)","langDirLabel":"Язылыш юнəлеше","langDirRTLLabel":"Уңнан сулга язылыш (RTL)","languageCodeInputLabel":"Тел коды","remove":"Re... | JavaScript |
shed = true;
});
pm.publishFail.stream.listen((message) {
onPublishFail = true;
});
final msgId = pm.publish(
MqttPublicationTopic('A/rawTopic'),
MqttQos.atLeastOnce,
buff,
);
expect(msgId, 1);
pm.handlePublishAcknowledgement(
MqttPublish... | Dart |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstadd_back.c :+: :+: :+: ... | C |
// SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Xtensa specific flasher stub functions *
* Copyright (C) 2023 Espressif Systems Ltd. *
*****************************************... | C |
ry(), "Category", "C", "Category to query", GH_ParamAccess.item);
}
protected override void RegisterOutputParams(GH_OutputParamManager manager)
{
manager.AddParameter(new Parameters.GraphicsStyle(), "Projection", "P", string.Empty, GH_ParamAccess.item);
manager.AddParameter(new Parameters.Graph... | C# |
s reached which is in case of buying cover 7 for SC4', async function() {
// // after calling make cover begin for SC4, all UW's recived 50% (max) of their staked as commission so calling the funtion in the next line has no effect
// await tf.updateStakerCommissions(SC4, 400000000000000000000, {
// ... | JavaScript |
2-bodies-vb">Bodies</a> property or the <b>IFaxDocument::get_Body</b> property must be <b>NULL</b>. You must use <b>Bodies</b> if you will be submitting with either <a href="/previous-versions/windows/desktop/fax/-mfax-faxdocument2-connectedsubmit2-vb">ConnectedSubmit2</a> or <a href="/previous-versions/windows/desktop... | Markdown |
tp -p 127.0.0.1:38080 &`
2.在 vps 启动一个隧道
下载 shadowtunnel 程序,使用 root 权限在 vps 上执行下面的命令:
`wget https://github.com/snail007/shadowtunnel/releases/download/v1.1/shadowtunnel-linux-amd64.tar.gz && tar zxfv shadowtunnel-linux-amd64.tar.gz && rm shadowtunnel-linux-amd64.tar.gz && mv shadowtunnel /usr/bin/`
在 vps 上监听UDP :500... | Markdown |
// Copyright (c) 2022-present, Trail of Bits, Inc.
//
// This source code is licensed in accordance with the terms specified in
// the LICENSE file found in the root directory of this source tree.
// Auto-generated file; do not modify!
#pragma once
#include <multiplier/AST/InheritableAttr.h>
namespace mx {
class En... | C |
10001
},
grid = {
{
2,
2,
14,
14
}
},
slg_bufflist = {},
slg_buffnum = {},
deviation = {}
},
[11550205] = {
enemyicon = 0,
name = "「장기말」",
scale = 0,
visuality = 0,
is_scanevent = 3,
icontype = 2,
scan_desc = "세이렌이 함선 데이터을 모델로 제작한 양산형 장기말",
obstacle = 0,
event_sig... | Lua |
n**: If working in a team, communicate the new tooling setup
## 📋 REFERENCE DOCUMENTATION
# Repository Scaffolding Command
## Overview
This command scaffolds essential development scripts from the claude-commands repository into any target repository and provides intelligent adaptation instructions to the LLM.
##... | Markdown |
/* Title: WAP FOR SELECTION SORT WITH 1-D ARRAY
Programmer: Hitesh Patel Year/Div: FYBCA-1 RollNo: 999
Date: October 5, 2023
*/
#include<stdio.h>
#include<conio.h>
int main()
{
int n, i, j,k, array[50], sml,temp;
printf("\nEnter Size for an Array (< 50): ");
scanf("%d", &n);
for (i = 0; i < n; i++... | C |
/*
Bullet Continuous Collision Detection and Physics Library, http://bulletphysics.org
Copyright (C) 2006, 2007 Sony Computer Entertainment Inc.
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software... | C |
Both = <L, A>(defaultThat: A, ml: Option<L>): These<L, A> => {
return ml.isNone() ? right(defaultThat) : both(ml.value, defaultThat)
}
/**
* Use `getLeftOnly`
*
* @since 1.13.0
* @deprecated
*/
export const theseThis = <L, A>(fa: These<L, A>): Option<L> => {
return fa.isThis() ? some(fa.value) : none
}
/**
... | Typescript |
String,
pub cert: String,
// TODO: better security
pub priv_key: String,
#[serde(default)]
// https://github.com/alexcrichton/toml-rs/issues/258
#[serde(skip_serializing_if = "Vec::is_empty")]
pub peers: Vec<PeerConfig>,
}
// a wrapper
#[derive(Serialize, Deserialize, Debug, Clone)]
stru... | Rust |
[DataField, AutoNetworkedField]
public float Distance = 5f;
[DataField, AutoNetworkedField]
public bool IsActive = true;
[DataField]
public string BlinkDelay = "blink";
[DataField, AutoNetworkedField]
public TimeSpan KnockdownTime = TimeSpan.Zero;
[DataField, AutoNetworkedField]
... | C# |
Dib.bottom = DIBHeight(lpDIB);
rcDib.right = DIBWidth(lpDIB);
}
else
{
rcDib = *srcRect;
}
PaintDIB(
pDC->GetSafeHdc(),
&r,
hDib,
&rcDib,
NULL);
::GlobalUnlock((HGLOBAL) hDib);
}
void CAutorunApp::CheckRegistry()
{
//default settings:
bHLInstalled=false;
// Determine if we have already ... | C++ |
ross - (1.0 / crossProductMag**2) * np.dot(np.outer(crossProduct, crossProduct), hCross))
term2 = -(term21 + term22)
factor = -mu / hMag
dvde = factor * (term1 + term2)
return dvde
def dVelocityVectordTA(self, x, mu):
"""
derivatives of Velocity vector wrt true ano... | Python |
]
pub fn length(&self) -> f64 {
return self.length_sqr().sqrt();
}
#[inline]
pub fn distance(gp1: GPoint, gp2: GPoint) -> f64 {
return (gp1 - gp2).length();
}
#[inline]
pub fn distance_sqr(gp1: GPoint, gp2: GPoint) -> f64 {
return (gp1 - gp2).length_sqr();
}
}
... | Rust |
// 注册通用信号生成器 / Register generic signal generator
registerProcessor("signal", SignalGenerator.class, ProcessorCategory.GENERATOR, "Generic Signal Generator", "1.0.0");
}
/**
* 清空所有注册的处理器 / Clear all registered processors
*/
public void clearAllProcessors() {
re... | Java |
string) {
return (
target: any,
key: string,) => {
const defMeta = Reflect.defineMetadata
defMeta("api:method", method, target, key)
defMeta("api:path", path, target, key)
}
}
export function apiWith(
...middlewares: MiddlewareFunction[]) {
return (
target: any,
key: string,) => {
const defMe... | Typescript |
= inode->i_size;
if (ia->ia_size != size) {
ret = ramfs_nommu_resize(inode, ia->ia_size, size);
if (ret < 0 || ia->ia_valid == ATTR_SIZE)
goto out;
} else {
/* we skipped the truncate but must still update
* timestamps
*/
ia->ia_valid |= ATTR_MTIME|ATTR_CTIME;
}
}
setattr_copy(inode, i... | C |
= {
pieuwerOne: pieuwerOnePng,
pieuwerTwo: pieuwerTwoPng
};
export function preload(callback : () => void) {
if (pieuwerOnePng.complete &&
Object.keys(enemySprites).map(key => enemySprites[key].complete).indexOf(false) < 0) {
callback();
} else {
setTimeout(() => preload(callback), 1);
}
}
co... | Typescript |
pub fn new(fat_type: FatType, first_block: u32, block_count: u32, block_size: u32) -> Self {
FatTable { fat_type, first_block, block_count, block_size }
}
#[cfg(not(feature = "fat32_disable"))]
fn fat_32_get<T: StorageRead>(&self, io: &mut T, cluster: u32) -> Result<FatValue, bool> {
l... | Rust |
ppc_clone3
ppc_clone3:
SAVE_NVGPRS(r1)
lwz r0,_TRAP(r1)
rlwinm r0,r0,0,0,30 /* clear LSB to indicate full */
stw r0,_TRAP(r1) /* register set saved */
b sys_clone3
.globl ppc_swapcontext
ppc_swapcontext:
SAVE_NVGPRS(r1)
lwz r0,_TRAP(r1)
rlwinm r0,r0,0,0,30 /* clear LSB to indicate full */
stw r0,_TRAP(r1)... | Assembly |
ネルにユーザーが参加した際、すでに通常の楽曲を再生している場合には、何もしません。
---
sidebar_position: 11
---
# 再生コストについて
このボットは、再生に当たって音声データのデコードや変換などを内部的に行うため、その際にコストが発生します。
合計コストが高くなると、ボットサーバーの負荷が高くなったり負荷が遅延する可能性があります。
:::danger
このボットは、複数のサーバーでの同時再生には対応しているものの、シャーディングなどのシステムは実装されていないため、数千/数万ものサーバーに参加するような大規模なボットの運営には向いていません。
:::
[`システム情報`コマンド](../... | Markdown |
.section .data
str0:
.string "Hello. Welcome to Rock, Paper, Scissors!"
str1:
.string " - 1 for Rock"
str2:
.string " - 2 for Paper"
str3:
.string " - 3 for Scissors"
str4:
.string " - 4 to exit"
str5:
.string "The computer chooses Rock"
str6:
.string "The computer chooses Paper"
str7:
.string "... | Assembly |
Côtes de sanglier à la bière", nil, {"Ragnar Tonnebière à Kharanos veut 6 Côtes de sangliers des rochers et une Chope de bière au malt Rhapsody."}},
[385] = {"Chasse aux crocilisques", nil, {"Trouver 5 morceaux de Viande de crocilisque et 6 Peaux de crocilisque pour Marek Cœur-de-fer au pavillon des pérégrins."}},
[386... | Lua |
.Run(test.name, func(t *testing.T) {
ts, c, err := testServerFile(http.StatusOK, test.file)
if err != nil {
t.Fatal(err)
}
defer ts.Close()
date, err := c.PlatformVersionReleaseDates.Get(test.id, test.opts...)
if errors.Cause(err) != test.wantErr {
t.Errorf("got: <%v>, want: <%v>", errors.Cau... | Go |
turn '';
}
final pkgName = cutFromLast(target, '.')[1].toLowerCase();
// We always name imports with an underscore suffix, so that they can be
// never shadowed by a parameter or local variable.
var importedName = '$pkgName\$_';
var suffix = 0;
while (_importedNameToClass.containsKey(impor... | Dart |
is xml.XmlElement) {
xmppElement.addChild(parseElement(xmlChild));
} else if (xmlChild is xml.XmlText) {
xmppElement.textValue = xmlChild.text;
}
});
return xmppElement;
}
}
import 'dart:async';
import 'package:xmpp_stone/src/elements/XmppAttribute.dart';
import 'package:xmpp_sto... | Dart |
F.c.cmove(g.c, d)
d = ^(d - 1)
F.stype ^= (F.stype ^ g.stype) & d
}
/* Constant time select from pre-computed table */
func (F *FP24) selector(g []*FP24, b int32) {
m := b >> 31
babs := (b ^ m) - m
babs = (babs - 1) / 2
F.cmove(g[0], teq(babs, 0)) // conditional move
F.cmove(g[1], teq(babs, 1))
F.cmove(g[... | Go |
use std::path::PathBuf;
macro_rules! get(($name:expr) => (ok!(env::var($name))));
macro_rules! ok(($result:expr) => ($result.unwrap()));
fn main() {
if pkg_config::find_library("out123").is_ok() {
return;
}
let dynamic = env::var("CARGO_FEATURE_STATIC").is_err();
let output = PathBuf::from(ge... | Rust |
unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
part of models.k8s;
class IoK8sApiCoreV1ContainerStateWaiting {
/// Returns a new [IoK8sApiCoreV1ContainerStateWaiting] instance.
IoK8sApiCoreV... | Dart |
t.name, "constraint1")) {
if (currentClass == -1) {
currentClass = t.classification
} else if (t.classification != currentClass) {
console.logS("Invalid constraint1");
console.logI(t.x);
console.logI(t.y);
invalid.push(<Constraint>t)
}
}
}
}
return invalid;
}
p... | Typescript |
alid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/s... | CSS |
pace.
*
* copyoutstr(fromaddr, toaddr, maxlength, &lencopied)
* caddr_t fromaddr;
* caddr_t toaddr;
* u_int maxlength;
* u_int *lencopied;
*/
NON_LEAF(copyoutstr, STAND_FRAME_SIZE, ra)
subu sp, sp, STAND_FRAME_SIZE
.mask 0x80000000, (STAND_RA_OFFSET - STAND_FRAME_SIZE)
sw ra, STAND_RA_OFFSET(sp)
blt a1, ... | Assembly |
x:0,y:0},
type:0//类型为非用户自定义的
},
//第二关
{
mlevel:2,
map:[
[0, 1, 1, 13, 1, 1, 12, 0],
[0, 1, 0, 5, 0, 0, 1, 0],
[0, 1, 1, 9, 0, 0, 1, 0],
[0, 0, 0, 1, 0, 0, 1, 0],
[0, 0, 0, 1, 0, 0, 1, 0],
... | JavaScript |
(2008, 7, 28))
check(-4, LocalDateTime(2008, 8, 28))
check(-4, LocalDateTime(2008, 9, 28))
check(-4, LocalDateTime(2008, 10, 28))
check(-5, LocalDateTime(2008, 11, 28))
check(-5, LocalDateTime(2008, 12, 28))
}
// from 310bp
@Test
fun newYorkOffsetToDST() {
... | Kotlin |
(aResult, bResult);
if (printOnExit) print(outputTo);
return result;
}
List<String> stack = [];
int outputLines = 0;
void printDifference(String s) {
outputTo!.writeln("----------");
outputTo!.writeln(s);
outputTo!.writeln("'Stacktrace':");
stack.forEach(outputTo!.writeln);
output... | Dart |
fmt.Errorf("failed to retrieve subdomain results: %w", err)
}
return records, nil
}
// GetAvailableSources returns the list of available subfinder sources with metadata
func (s *SubfinderService) GetAvailableSources() []SourceInfo {
return []SourceInfo{
{Name: "alienvault", Description: "AlienVault OTX", Requir... | Go |
pp, Cb Y0 Y1 Cr Y2 Y3 */
UYYVYY411,
/** packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb) */
BGR8,
/** packed RGB 1:2:1 bitstream, 4bpp, (msb)1B 2G 1R(lsb), a byte contains two pixels, the first pixel in the byte is the one composed by the 4 msb bits */
BGR4,
/** packed RGB 1:2:1, 8bpp, (msb)1B 2G 1... | Java |
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 251, monster_id = 21010701, pos = { x = 2258.3, y = 270.4, z = -269.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 24, drop_tag = "丘丘人... | Lua |
目子 View 长按监听器 */
private val childLongClickListeners: SparseArray<OnChildLongClickListener?> by lazy { SparseArray() }
/** ViewHolder 位置偏移值 */
private var positionOffset: Int = 0
override fun onBindViewHolder(holder: VH, position: Int) {
// 根据 ViewHolder 绑定的位置和传入的位置进行对比
// 一般情况下这两个位置值是... | Kotlin |
proto3" json:"global_virtual_group_ids,omitempty"`
}
func (m *EventCreateGlobalVirtualGroupFamily) Reset() { *m = EventCreateGlobalVirtualGroupFamily{} }
func (m *EventCreateGlobalVirtualGroupFamily) String() string { return proto.CompactTextString(m) }
func (*EventCreateGlobalVirtualGroupFamily) ProtoMessage(... | Go |
116A 11B7; # (퇌; 퇌; 퇌; 퇌; 퇌; ) HANGUL SYLLABLE TWAM
D1CD;D1CD;1110 116A 11B8;D1CD;1110 116A 11B8; # (퇍; 퇍; 퇍; 퇍; 퇍; ) HANGUL SYLLABLE TWAB
D1CE;D1CE;1110 116A 11B9;D1CE;1110 116A 11B9; # (퇎; 퇎; 퇎; 퇎; 퇎; ) HANGUL SYLLABLE TWABS
D1CF;D1CF;1110 116A 11BA;D1CF;1110 116A 11BA; # (퇏; 퇏; 퇏; 퇏; 퇏; ) HANGUL SYLLABLE TWAS
D1D0;... | Kotlin |
`json:"data_id" bson:"dataID"`
BKLogConfigName string `json:"bk_log_config_name" bson:"bkLogConfigName"`
}
/*
* Tencent is pleased to support the open source community by making Blueking Container Service available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights res... | Go |
)) ([`71a86a8`](https://github.com/juspay/hyperswitch/commit/71a86a804e15e4d053f92cfddb36a15cf7b77f7a))
- **locker:** Fix double serialization for json request ([#3134](https://github.com/juspay/hyperswitch/pull/3134)) ([`70b86b7`](https://github.com/juspay/hyperswitch/commit/70b86b71e4809d2a47c6bc1214f72c37d3325c37))
... | Markdown |
/*
* QEMU PAM authorization driver
*
* Copyright (c) 2018 Red Hat, Inc.
*
* 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) ... | C |
.setSize(testSplitInfo.getSizeInBytes())
.setSplitExtendedProperty(ByteString.copyFromUtf8(testSplitInfo.getPath()));
ExecutionNodeMap executionNodeMap =
new ExecutionNodeMap(Arrays.asList(testSplitInfo.getNodeEndpoints()));
SplitWorkWithRuntimeAffinity splitWork =
new SplitWor... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.