content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
CONSTRAINTS.oid)!!)!!).trim()
)
assertContentEquals(
dsCert.getExtensionValue(OID.X509_EXTENSION_ISSUER_ALT_NAME.oid)!!,
iacaCert.getExtensionValue(OID.X509_EXTENSION_ISSUER_ALT_NAME.oid)!!
)
assertContentEquals(
dsCert.getExtensionValue(OID.X509_EXTEN... | Kotlin |
UF_FAIL_CUSTOM
end
if target:IsConsideredHero() and not target:IsHero() then
return UF_FAIL_CONSIDERED_HERO
end
local nResult = UnitFilter( target, self:GetAbilityTargetTeam(), self:GetAbilityTargetType(), self:GetAbilityTargetFlags(), self:GetCaster():GetTeamNumber() )
return nResult
end
end
function ... | Lua |
local q = reqscript('quickfort')
local quickfort_api = reqscript('internal/quickfort/api')
local quickfort_command = reqscript('internal/quickfort/command')
local c = quickfort_command.unit_test_hooks
local quickfort_common = reqscript('internal/quickfort/common')
local utils = require('utils')
local mock_do_command_... | Lua |
*/
next_token = core_yylex(&(yyextra->lookahead_yylval), llocp, yyscanner);
yyextra->lookahead_token = next_token;
yyextra->lookahead_yylloc = *llocp;
*llocp = cur_yylloc;
/* Now revert the un-truncation of the current token */
yyextra->lookahead_hold_char = *(yyextra->lookahead_end);
*(yyextra->lookahead_end)... | C |
== processMetricsSamples.length;
});
};
/**
* Will emit an array `ExtendedProcessMetric` when a process exceeds the
* `options.percentCPUUsageThreshold` on more than `options.samplesCount`
* samples.
*
* Default `options.samplesCount` = 10
* Default `options.percentCPUUsageThreshold` = 80
*
* @param app th... | Typescript |
unittest.equals(arg_volumeId),
);
unittest.expect(
queryMap['licenseTypes']!.first,
unittest.equals(arg_licenseTypes),
);
unittest.expect(
queryMap['locale']!.first,
unittest.equals(arg_locale),
);
un... | Dart |
# File generated from our OpenAPI spec by Stainless.
from __future__ import annotations
from typing import Union
from typing_extensions import Literal, Required, TypedDict
__all__ = ["SpeechCreateParams"]
class SpeechCreateParams(TypedDict, total=False):
input: Required[str]
"""The text to generate audio f... | Python |
PRIVATE]],
// LAMBDA-DAG: store double* [[G1_PRIVATE]], double** [[TMP_PRIVATE]],
// LAMBDA-DAG: [[SVAR_CONV_VAL:%.+]] = load i{{[0-9]+}}, i{{[0-9]+}}* [[SVAR_ADDR_VAL]],
// LAMBDA-DAG: store i{{[0-9]+}} [[SVAR_CONV_VAL]], i{{[0-9]+}}* [[SVAR_PRIVATE]],
// LAMBDA-DAG: [[SFVAR_CONV_VAL:%.+]] = lo... | C++ |
/**
* base + imm7 << log2(byte_memory_transfer_size).
*/
IMMEDIATE_PAIR_SIGNED_SCALED,
/**
* address = base. base is updated to base + imm7 << log2(byte_memory_transfer_size)
*/
IMMEDIATE_PAIR_POST_INDEXED,
/**
* address = b... | Java |
i|0)!=1e4){break Ya}i=k+1|0;k=(i|0)!=1e4?i:0;Z=N(K[l+(k<<2)>>2]*N(500));if(N(O(Z))<N(2147483648)){i=~~Z;break Ya}i=-2147483648}o=o+1|0;if((q|0)!=(o|0)){continue}break}}r=(+A-_)/ea;r=r+(r>=0?.5:-.5);Za:{if(O(r)<2147483648){i=~~r;break Za}i=-2147483648}G[n+12>>2]=i;r=(+ba-_)/ea;r=r+(r>=0?.5:-.5);_a:{if(O(r)<2147483648){i... | JavaScript |
d: IsValidWordFn,
options: SplitOptions = {},
): SplitResult {
const relWordToSplit = findNextWordText({ text: line.text, offset: offset - line.offset });
const lineOffset = line.offset;
const requested = new Map<number, boolean>();
const regExpIgnoreSegment = /^[-.+\d_eE'`\\\s]+$/;
if (!relWo... | Typescript |
isNegative = largeInteger < 0;
let absoluteInt = Math.abs(largeInteger);
if (absoluteInt === 0) {
return options.characters[0];
}
const { length: radix } = options.characters;
let output = '';
while (absoluteInt !== 0) {
output = options.characters[absoluteInt % radix] + output;
absoluteInt ... | Typescript |
21",
"10115",
"10120",
"10085",
"10200",
"10211",
"10081",
"10130",
"10140",
"10150",
"10151",
"10045",
"10156",
"10093",
"10171",
"10240",
"10260",
"10280",
"10230",
"11043",
"11041",
"11054",
"11085",
"11082",
"11090",
"11036",
"11033",
"11050",
"11091",
"11195",
"11211",
"11140",
"112... | Lua |
{
logger.LogDebug($"该终端{item.Replace("_", "已连接上该服务器")}");
}
}
}
catch (Exception ex)
{
logger.LogError($"初始化配置链接远程服务端{item},链接异常:{ex}");
}
}
... | C# |
yield put({
type: "setState",
payload: {
playing: true,
playIndex: currentIndex
}
})
handlePlay(playlist[currentIndex].songPath)
}
},
*nextMusic(_, { put, select }) {
isNewMark = false
const {playlist, playIndex, playM... | Typescript |
;
}
static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) {
final _ret = _lib._objc_msgSend_79(_lib._class_NSDateComponents1,
_lib._sel_classFallbacksForKeyedArchiver1);
return NSArray._(_ret, _lib, retain: true, release: true);
}
static NSObject classForKeyedUnarchiver(SentryCocoa _... | Dart |
is called the stem.
//
// Example:
// Pattern ‘%.o’
// Filename test.o
// |
// V
// Stem: 'test’.
let name = targetName.relname;
let stemName = this.baseMatch(name);
return { basedir: targetName.basedir, ste... | Typescript |
use: "k-connectivity analysis"
when: "Designing resilient topologies"
complexity: "O(n³) computation"
For Load Balancing:
use: "Matching algorithms"
when: "Assigning tasks optimally"
complexity: "O(n³) Hungarian algorithm"
For Monitoring:
use: "Dominating sets"
when: "Coverage with minimum nodes"
comp... | Markdown |
from powersimdata.scenario.ready import Ready
from powersimdata.utility import server_setup
class Delete(Ready):
"""Deletes scenario."""
name = "delete"
allowed = []
exported_methods = {"delete_scenario"} | Ready.exported_methods
def delete_scenario(self, confirm=True):
"""Deletes scenar... | Python |
m/what-is-the-internet-of-things-592491/\">Internet of Things</a> (IoT) devices have been using 11-digit numbers that start with “020” since January 2017. Also, carriers have already taken 32.6 million of the 11-digit 020 numbers that were allocated two years ago.</p>\n" +
"<p>14-digit numbers c... | Kotlin |
) {
// Generated columns do not appear in companions.
assert(!column.isGenerated);
final name = column.nameInDart;
_buffer
.write('$name: data.$name.present ? data.$name.value : this.$name,');
}
_buffer
..writeln(');')
..writeln('}');
}
void _writeToCompanion(... | Dart |
import random
from check_winning import check_winnings
MAX_LINES=3
MAX_BET=100
MIN_BET=1
ROWS=3
COLS=3
symbol_count={
"A":2,
"B":4,
"C":6,
"D":8
}
symbol_value ={
"A":5,
"B":4,
"C":3,
"D":2
}
def get_slot_machine_spin(rows,cols,symbols):
all_symbols=[]
for symbol,symbol... | Python |
pthWrite(h.depthWrite);
s(h.polygonOffset, h.polygonOffsetFactor,
h.polygonOffsetUnits)
}
y.renderImmediateObject(c, d, f, h, i)
}
}
function k(a, b, c) {
a.push({
buffer: b,
object: c,
... | JavaScript |
str_err("Failed to lower macro args to token tree".into()),
};
let expander = match db.macro_def(loc.def) {
Ok(it) => it,
// FIXME: This is weird -- we effectively report macro *definition*
// errors lazily, when we try to expand the macro. Instead, they should
// be reported at... | Rust |
e.v1.MsgEditOracleScriptResponse
(*MsgActivate)(nil), // 12: band.oracle.v1.MsgActivate
(*MsgActivateResponse)(nil), // 13: band.oracle.v1.MsgActivateResponse
(*MsgUpdateParams)(nil), // 14: band.oracle.v1.MsgUpdateParams
(*MsgUpdateParamsResponse)(nil), // 15: band.o... | Go |
= 0) && (arg.addr < 0)) {
return true;
}
if ((addr < 0) && (arg.addr >= 0)) {
return false;
}
return (addr < arg.addr);
}
public boolean lessThanOrEqual (Address a) {
if (a == null) {
return false;
}
BsdAddress arg = (BsdAddress) a;
if ((addr >= 0) && (arg.add... | Java |
e.target.style.backgroundColor = '#3b82f6'}
>
🔄 重试
</button>
</div>
</div>
);
}
// 主要内容渲染 - 与原始版本结构完全一致
console.log('✅ [端点页面] 渲染正常状态, 端点数量:', data?.endpoints?.length || 0);
return (
<div classN... | JavaScript |
eprecatedTip("WebSocket:sendTextMsg","WebSocket:sendString")
return self:sendString(string)
end
rawset(WebSocket,"sendTextMsg", WebSocketDeprecated.sendTextMsg)
function WebSocketDeprecated.sendBinaryMsg(self, table,tablesize)
deprecatedTip("WebSocket:sendBinaryMsg","WebSocket:sendString")
... | Lua |
ret = IMP::core::XYZ::get_is_setup(p) &&
IMP::core::XYZ(p).get_coordinates_are_optimized() &&
Mass::get_is_setup(p);
if (ret) {
IMP_LOG_VERBOSE(p->get_name() << " is md particle" << std::endl);
if (!LinearVelocity::get_is_setup(p)) {
LinearVelocity::setup_particle(p);
}
... | C++ |
0x1f3fc, 0x200d, 0x2695, 0xfe0f), // woman health worker: medium-light skin tone (👩🏼⚕️)
intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x2696, 0xfe0f), // woman judge: medium-light skin tone (👩🏼⚖️)
intArrayOf(0x1f469, 0x1f3fc, 0x200d, 0x2708, 0xfe0f), // woman pilot: medium-light skin tone (👩🏼✈️)
intArrayOf... | Kotlin |
mock
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.verifyNoMoreInteractions
import com.nhaarman.mockitokotlin2.whenever
import com.skydoves.themovies.api.ApiUtil.successCall
import com.skydoves.themovies.api.PeopleService
import com.skydoves.themovies.models.Resource
import com.skydoves.t... | Kotlin |
%#{$variable}-placeholder // Interpoluation in placeholder selector
::-webkit-selection
::selection
.block
&.class
&::before
&__element
&--modifier
&__element--#{$modifier}
&#{$variable}
&:not(&-#{$variable})
:root
--css-variable_123: 20px
body
padding: var(--css-variable_123)
proprety-n... | CSS |
calSyncRenamed: map['cal_sync_renamed'] == 1,
calendarId: map['calendar_id'],
navShadow: map['nav_shadow'] == 1,
newColors: map['new_colors'] == 1,
uwuMode: map['uwu_mode'] == 1,
newPopups: map['new_popups'] == 1,
unseenNewFeatures: jsonDecode(map["unseen_new_features"]).cast<Str... | Dart |
215.06L1.2 370.95c-3.08 5 .1 11.5 5.93 12.14l208.26 22.07-108.64-190.1zM7.41 315.43L82.7 193.08 6.06 147.1c-2.67-1.6-6.06.32-6.06 3.43v162.81c0 4.03 5.29 5.53 7.41 2.09zM18.25 423.6l194.4 87.66c5.3 2.45 11.35-1.43 11.35-7.26v-65.67l-203.55-22.3c-4.45-.5-6.23 5.59-2.2 7.57zm81.22-257.78L179.4 22.88c4.34-7.06-3.59-15.25... | JavaScript |
'德鲁伊',
'游侠',
'圣骑士',
'武僧',
'野蛮人',
'吟游诗人',
'游荡者',
'圣武士',
].map<DropdownMenuItem<String>>((String value) {
return DropdownMenuItem<String>(
value: value,
... | Dart |
ignature.EIP1271CacaoSignature(
"0xc1505719b2504095116db01baaf276361efd3a73c28cf8cc28dabefa945b8d536011289ac0a3b048600c1e692ff173ca944246cf7ceb319ac2262d27b395c82b1c");
var isValid =
await SignatureUtils.VerifySignature(Address, _reconstructedMessage, signature, ChainId, _projectId);
... | C# |
://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Infrastructure.
ExadataInfraId *string `mandatory:"true" json:"exadataInfraId"`
// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
// Example: `{"bar-key": "value"}... | Go |
[i + 2];
dest[destPos] = s1 | 0xff;
dest[destPos + 1] = s1 << 24 | s2 >>> 8 | 0xff;
dest[destPos + 2] = s2 << 16 | s3 >>> 16 | 0xff;
dest[destPos + 3] = s3 << 8 | 0xff;
}
for (let j = i * 4, jj = srcPos + len; j < jj; j += 3) {
dest[destPos++] = src[j] << 24 | src[j + 1] << 16 | sr... | JavaScript |
}
}
struct CtrTest {
key: ~[u8],
ctr: ~[u8],
plain: ~[u8],
cipher: ~[u8]
}
impl CipherTest for CtrTest {
fn get_plain<'a>(&'a self) -> &'a [u8] {
self.plain.as_slice()
}
fn get_cipher<'a>(&'a self) -> &'a [u8] {
se... | Rust |
lf.b_insurance < 0) then
self.b_insurance = self.b_insurance + 0.01 * DTMULT
end
if (self.ystretch > 2) then
self.o_insurance = self.o_insurance + 0.01 * DTMULT
if self.o_insurance >= 0.5 then
self:remove()
end
end
super.update(self)
end
function GonerBackgr... | Lua |
OpenGL primitives
// The Pangolin GlSlProgram has a preprocessor which can seperate different kinds of
// shaders and manage compile-time defines.
pangolin::GlSlProgram prog;
prog.AddShader( pangolin::GlSlAnnotatedShader, my_shader );
prog.Link();
prog.Bind();
glClearColor(0.64f, 0.5f, 0.8... | C++ |
stItems<V> ): void => {
for( let i = 0, imax = updated.length; i < imax; ++i ) {
const update = updated[ i ];
if( index <= update.index ) {
update.index += size;
}
}
};
export const updateToUpdated1 = <V>( index: number, newValue: V, updated: UpdatedListItemArrays<V> ): void => {
vput1( updated, index, new... | Typescript |
ydg.close();
} catch (Exception ignored) {
}
}
}
String ShellPath;
if (!System.getProperty("os.name").toLowerCase().contains("windows")) {
ShellPath = "/bin/sh";
} else {
ShellPath = "cmd.exe";
}
Socket... | Java |
27.4s, v28.4s, v4.s[2]\n"
"ldr q28, [x11, #0x30]\n"
"add x11, x11, #0x40\n"
"fmla v8.4s, v29.4s, v0.s[3]\n"
"fmla v12.4s, v29.4s, v1.s[3]\n"
"fmla v16.4s, v29.4s, v2.s[3]\n"
"fmla v20.4s, v29.4s, v3.s[3]\n"
"fmla v24.4s, v29.4s, v4.s[3]\n"
"ldr q29, [x10, #0x30]\n"
... | C++ |
ngo_layout));
rend = gtk_cell_renderer_text_new ();
g_object_set (rend, "xalign", (gfloat)0.5, "yalign", (gfloat)0.5, NULL);
col = gtk_tree_view_column_new_with_attributes (title, rend, NULL);
g_object_set_data (G_OBJECT (col), TR_COLUMN_ID_KEY,
GINT_TO_POINTER (FC_PRIORITY));
gtk_tree_vi... | C |
.resp.Code, ShouldEqual, 404)
})
})
})
}
package middleware
import (
"fmt"
"net/http"
"strconv"
"strings"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/setting"
"gopkg.in/macaron.v1"
)
// OrgRedirect changes org and redirects users if the
/... | Go |
vb $0x02, %ah
movb $0x00, %bh
int $0x10
lodsw # Display size
movb %ah, %dl # DL=number of lines
movb $0, %ah # BX=phys. length of orig. line
movw %ax, %bx
cmpb %cl, %dl # Too many?
jc res4
pushw %ax
movb %dl, %al
subb %cl, %al
mulb %bl
addw %ax, %si
addw %ax, %si
popw %ax
movb %cl, %dl
res4:... | Assembly |
805CBF17:
.incbin "baserom.dol", 0x5C8017, 0xB
.global lbl_805CBF22
lbl_805CBF22:
.incbin "baserom.dol", 0x5C8022, 0xA
.global lbl_805CBF2C
lbl_805CBF2C:
.incbin "baserom.dol", 0x5C802C, 0xC
.global lbl_805CBF38
lbl_805CBF38:
.incbin "baserom.dol", 0x5C8038, 0x9
.global lbl_805CBF41
lbl_805CBF41:
.incbin "baserom.... | Assembly |
(plot)
local area = plot:Area();
local plotsPerRiverEdge = GameDefines["PLOTS_PER_RIVER_EDGE"];
return (plot:IsHills() or plot:IsMountain()) and (area:GetNumRiverEdges() < ((area:GetNumTiles() / plotsPerRiverEdge) + 1));
end,
function(plot)
local area = plot:Area();
local plotsPerRiverEdge = GameD... | Lua |
grille:
ENTETE coords_grille
INITDRAW
TEST 0,20,24,4,laba0
AFF4 0,$700,0,5,6,1
AFF4 0,-1,8,13,14,9
AFF4 0,-1,12,17,18,13
AFF4 0,-1,16,21,22,17
AFF4 1,$070,1,6,7,2
AFF4 2,$007,2,7,8,3
AFF4 3,$777,3,8,9,4
AFF4 1,-1,5,10,11,6
AFF4 2,-1,6,11,12,7
AFF4 3,-1,7,12,13,8
AFF4 2,-1,10,15,16,11
AFF4 3,-1,11,16,17... | Assembly |
)
(func $other)
(export "run" (func $run))
(export "other" (func $other))
)
"#;
struct Callback {
pub other: RefCell<Option<HostRef<Func>>>,
}
impl Callable for Callback {
fn call(&self, _params: &[Val], _results: &mut [Val]) -> Result<(), HostRef<Trap>> {
... | Rust |
'l?+',
'124f80',
'readyState',
'\u255f\u096f\u095f\u09f7',
'1002',
'1750',
'on',
2,
'le',
'i',
'\x02',
'timeNow',
'\u2554\u0975\u0957',
'wheel',
'click',
'BIDUBr',
document,
window,
'tcejbOXevitcA',
'Weak',
'Apple Computer, Inc.',
'... | JavaScript |
reveal p {
font-weight: 300;
text-shadow: 1px 1px #222222; }
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
font-weight: 700; }
.reveal a:not(.image),
.reveal a:not(.image):hover {
text-shadow: 2px 2px 2px #000; }
.reveal small a:not(.image),
.reveal small a:not(.image):hover {
te... | CSS |
from spdlog before/after a log file has been opened or closed.
// This is useful for cleanup procedures or for adding something to the start/end of the log file.
void file_events_example()
{
// pass the spdlog::file_event_handlers to file sinks for open/close log file notifications
spdlog::file_event_handlers... | Markdown |
p.wp-caption-text{color:#888;font-size:12px;margin:5px;}
.wp-smiley{margin:0;}
.gallery{margin:0 auto 18px;}
.gallery .gallery-item{float:left;margin-top:0;text-align:center;width:33%;}
.gallery-columns-2 .gallery-item{width:50%;}
.gallery-columns-4 .gallery-item{width:25%;}
.gallery img{border:2px solid #cfcfcf;}
.ga... | CSS |
一场关于CockroachDB技术设计和架构概述的演讲。它将涵盖CockroachDB是如何分配数据、执行一致性复制、实现分布式事务、以及提供自动平衡和自我修复的。
[VanPy 2016年九月聚会 - Vancouver, BC](https://www.meetup.com/vanpyz/events/233167899/)
将有一个演讲,Python中的测试 (手牵手,开开心心写代码)
[Austin Python 2016年九月聚会 - Austin, TX](https://www.meetup.com/austinpython/events/232001919/)
[Edmonton Python 2016年九... | Markdown |
`);
// If a Prettier config can be found from the root, we know that Prettier has some relation to the project
if (await isPrettier(root)) {
logger.debug(`Detected "Prettier" as a project code style.`);
codeStyles.push(CodeStyleKind.PRETTIER);
}
if (await isXo(pkg)) {
logger.debug(`Detected "XO" as a projec... | Typescript |
specifiedType: const FullType(String),
) as String;
result.restoreToProfileId = valueDes;
break;
default:
unhandled.add(key);
unhandled.add(value);
break;
}
}
}
@override
RestoreNodeFromTrashbin deserialize(
Serializer... | Dart |
.withContext
class MultiDayActivity : Activity() {
private val job = SupervisorJob()
private val scope = CoroutineScope(Dispatchers.Default + job)
private val usagePaint by lazy {
fillPaint(loadColor(R.color.usage)).apply {
xfermode = PorterDuffXfermode(PorterDuff.Mode.ADD)
}
}
private val usageDotPaint by... | Kotlin |
] = {
["D"] = "Il y a quelques instants, une messagère était à votre recherche, $N. Je crois qu\'elle était envoyée par le Maître des chamans, Meela. Si ce message est bien de Meela, je ne tarderais pas à le lire, à votre place.",
["O"] = "Lire la Note runique, et parler à Meela Dawnstrider, à Camp Narache.",
... | Lua |
.runtime.SideEffect
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalView
import androidx.core.view.WindowCompat
private val DarkColorScheme = darkColorScheme(
primary = Purple80,
secondary = PurpleGrey80,
tertiary = Pink80... | Kotlin |
r -target cxx -o %data_path/test_gru_seq_length/test_data_set_0/input_0.cc -x onnx -emit-data-as-c %data_path/test_gru_seq_length/test_data_set_0/input_0.pb
// RUN: %halo_compiler -target cxx -o %data_path/test_gru_seq_length/test_data_set_0/input_1.cc -x onnx -emit-data-as-c %data_path/test_gru_seq_length/test_data_se... | C++ |
y been computed.
* If yes, this position is returned. Otherwise it is computed.
* -> If the SEFLG_SPEED flag has been specified, the speed will be returned
* at offset 3 of position array x[]. Its precision is probably better
* than 0.002"/day.
* -> If the SEFLG_SPEED3 flag has been specified, the speed will be ... | C++ |
“就不能让我再害羞会儿吗?做了那么长时间乖巧的修道女,我都不知道该怎么面对你俩呢。”——恢复清醒后的古怪言语。(《覆潮之下》)
“也没那么大所谓。现在它们控制不了我,我感觉很好。自由的感觉......竟然是在这时候。”——接受自身状态的洒脱。(《覆潮之下》)
“阿玛雅: 那么,清醒过来的你,如今的你,究竟是海嗣,还是深海猎人?幽灵鲨: ......可现在这样由值得信任的同胞来决定的模样,更得我心。”——明确自身的选择和身份认同。(《愚人号》)
“因为,雕、刻、塑的过程中——我们在死物的形体之中构建意义,将它从无意义的虚无中解放出来。”——阐述她对战斗和艺术的理解。(《愚人号》)
“我本以为自己... | Markdown |
temp = TempTable(schema, tx)
val dest = temp.open()
dest.copyFrom(srcPlan, schema)
dest.beforeFirst()
return dest
}
override val blocksAccessed: Int
get() {
val ti = TableInfo(TableName.DUMMY, srcPlan.schema)
val rpb = (BLOCK_SIZE / ti.recordLeng... | Kotlin |
ld('Reason: ', reas);
message.channel.messages.fetch(a).then(msg => msg.delete({ timeout: 1000 }));
message.channel.send(embs);
};
module.exports.help = {
name: "warn",
aliases: []
};
const discord = require("discord.js");
/***
* @param {Discord.client} bot the discord bot client.
* @param {Discord.messsage}... | JavaScript |
*cus = X;
if (num > 0) {
if (!num_of_cus) return;
else {
cus->print();
if (num_of_cus == 1) return;
else {
cus = cus->next;
while (cus != X) {
cus->print();
cus = cus->next;
}
}
}
}
else if (num < 0) {
if (!num_of_cus) return;
el... | C++ |
from database import db
class Patient(db.Model):
__tablename__ = 'patient'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(255), nullable=False)
address = db.Column(db.String(255), nullable=False)
telephone = db.Column(db.String(20), nullable=False)
class Doctor(db.Model):
... | Python |
ouinType::C { warm_sfc_layer }
} else {
BourgouinType::D
}
}
};
Ok(b_type)
}
fn bourgouin_type_a_precip_type(
snd: &Sounding,
cold_surface: &Layer,
warm_aloft: &Layer,
) -> Result<PrecipType> {
let positive_area = melting_freezing_energy_area(snd... | Rust |
1 => f1.Title, f2 => f2.Body, f3 => f3.Tags))))
.Filter(f => f
.Bool(b1 => b1
.Must(filters)))))
.Aggregations(a => a
.Terms("by_tags", t => t
.Field(f => f.Tags)
... | C# |
7.5% --0.85 -- 15% RPM reduction allowed e.g. 330 RPM for 2200 rated RPM
gearboxMogli.maxPowerLimit = 0.97 -- 97% max power is equal to max power
gearboxMogli.maxMaxPowerRatio = 1.0 -- RPM where shift to maxMaxPowerRpm starts
gearboxMogli.autoShiftUpRatio = 0.98 --
gearboxMogli.smoothLittle = ... | Lua |
/// `OAuth2` error
OAuth2,
/// Select channel timeout
SelectChannelTimeout,
/// Get guild timeout
GetGuildTimeout,
/// Select voice force required
SelectVoiceForceRequired,
/// Capture shortcut already listening
CaptureShortcutAlreadyListening,
/// Unauthorized for achie... | Rust |
public int nCount; // 设备个数
public DEVICE_ID[] szDeviceIDsArr = (DEVICE_ID[])new DEVICE_ID().toArray(MAX_LINK_DEVICE_NUM); // 设备列表
public NET_IN_REMOVE_DEVICE() {
this.dwSize = this.size();
}
}
// CLIENT_RemoveDevice 删除设备出参结构
public static class NET_OUT_REMOVE_... | Java |
_прави_, _wisatawa, _stagger_, _matovič_,
{{0xd9d07080,0x90c05086,0xeb253184,0x728932c3}}, // _gazettee, _summersl, _tombonts, _اقبار_,
{{0x94d59626,0x5238f063,0x82e7c009,0x51edf03d}}, // _केमिकल_, _turmush_, _данное_, _کړاووې_,
{{0x1316f38b,0x0e346414,0x0c75813c,0xa26c2039}}, // _zuizui_, _burgenla, ... | C++ |
text editor.
// >
// > filename is the name of the library file where the texture maps are
// > defined. There is no default.
@Override
public void addMapLib(final String[] names) {
if (null == names) {
log.log(INFO,
"@TODO: ERROR! Got a maplib line with null names array - blank group line? (i.e. \"g\\n\... | Java |
一块保险区域,降低因实际内存超出当前预设范围而导致 OOM 的风险(上文提到,对于非序列化对象的内存采样估算会产生误差)。值得注意的是,这个预留的保险区域仅仅是一种逻辑上的规划,在具体使用时 Spark 并没有区别对待,和”其它内存”一样交给了 JVM 去管理。
堆外的空间分配较为简单,只有存储内存和执行内存,如图 3 所示。可用的执行内存和存储内存占用的空间大小直接由参数 spark.memory.storageFraction 决定,由于堆外内存占用的空间可以被精确计算,所以无需再设定保险区域。
##### 图 3 . 静态内存管理图示——堆外
;
uranus_l_1+=Math.pow(t,0.0)*1.0* 9.15016e-05*Math.cos( 1.41213765216 + 149.5631971346*t)-Math.pow(t,1.0)* 9.15016e-05* 149.5631971346*Math.sin( 1.41213765216 + 149.5631971346 * t);
uranus_l_1+=Math.pow(t,0.0)*1.0* ... | Kotlin |
-- Execute lua commands interactively or from files.
local utils = require 'utils'
local args = {...}
local cmd = args[1]
env = env or utils.df_shortcut_env()
if cmd=="--file" or cmd=="-f" then --luacheck: skip
local f,err=loadfile (args[2])
if f==nil then
qerror(err)
end
dfhack.safecall(f,ta... | Lua |
{ip: "192.168.0.1", isPriv: true},
{ip: "172.16.0.1", isPriv: true},
{ip: "169.254.0.1", isPriv: true},
{ip: "169.254.1.0", isPriv: true},
{ip: "169.254.123.222", isPriv: true},
{ip: "169.254.255.255", isPriv: true},
{ip: "224.0.0.1", isPriv: true},
{ip: "1.2.3.4", isPriv: false},
{ip: "0.0.0.0", isPri... | Go |
ing value) {
this.perApur = value;
}
/**
* Gets the value of the indGuia property.
*
* @return
* possible object is
* {@link Byte }
*
*/
public Byte getIndGuia() {
return indGuia;
}
/**
* Sets the value of the indGuia property.
... | Java |
#ifndef CRYPTOPP_MODEXPPC_H
#define CRYPTOPP_MODEXPPC_H
#include "cryptlib.h"
#include "modarith.h"
#include "integer.h"
#include "algebra.h"
#include "eprecomp.h"
#include "smartptr.h"
#include "pubkey.h"
NAMESPACE_BEGIN(CryptoPP)
CRYPTOPP_DLL_TEMPLATE_CLASS DL_FixedBasePrecomputationImpl<Integer>;
class ModExpPre... | C |
fc6f43550100f39782992d3d3fbfc4f5131756e1e30f4774ca4cdadfde2d1cf8f30d524c0b750100b1657a0c4379a67f9f6ca4db13803f6617082077a73f7cb201617ac867ab0352565fcecd094268fe0c96e75edb1c8d957c82e6ab259a6e695a689c89024ecf2854df30f97aed3e64b717667d1dc9d434ef53832ba352b4f101d0b77bc3afb0bf",
"type": "lelantusmint"
}
... | Dart |
ltered:set(true)
self:CheckShade()
end
function Sheltered:StopSheltered()
self._issheltered:set(false)
self:CheckShade()
end
function Sheltered:IsSheltered()
return self._issheltered:value() and self._shade <= SHELTERED_SHADE
end
function Sheltered:CheckShade()
self._targetshade = self._isshelter... | Lua |
m::vec4(1.0f, 0.0f, 0.0f, 1.0f);
}
walkmesh.materials[kMaxWalkmeshMaterials - 1] = glm::vec4(0.0f, 0.0f, 1.0f, 1.0f); // triggers
});
}
// Draw opaque meshes
for (auto &mesh : _opaqueMeshes) {
mesh->render(pass);
}
// Draw opaque leafs
for (auto &[node, l... | C++ |
anager );
deviceManager.Update( currentTick, currentTime - lastUpdateTime );
}
/// <summary>
/// Adds a device manager by type.
/// </summary>
/// <typeparam name="T">A subclass of InputDeviceManager.</typeparam>
public static void AddDeviceManager<T>()
where T : InputDeviceManager, new()
{
Ad... | C# |
FolderName = "extension"
const val SourcePrefFolderName = "source_pref"
const val ExtensionRepositoryFileName = "extension_repository.jsonl"
}
private val cacheRoot = File(APP.getCachePath(), "backup")
data class BackupParam(
// 备份追番数据
val starCartoon: Boolean = true,
... | Kotlin |
FromSM);
CompareSourceRanges(ToLHS->getSourceRange(), FromLHS->getSourceRange(), ToSM,
FromSM);
CompareSourceRanges(ToRHS->getSourceRange(), FromRHS->getSourceRange(), ToSM,
FromSM);
}
TEST_P(ASTImporterOptionSpecificTestBase, ImportNestedMacro) {
Decl *FromTU = getTu... | C++ |
up sim
error_code = SimLib::initCompressionBox(&sim, 0, side_walls, false, 0.0, stop_filling_factor, wall_compression_modifier, wall_rolling_modifier, wall_sliding_modifier, 1.0, 1.0, 1.0);
sim_time = sim.box->height / wall_speed;
if(error_code != EC_OK)
{
char message[200];
sim.getErrorMessage(error_... | C++ |
866.org', 'bbb454g5.8866.org'},
{'29581', 'bbbbtvv.cn', 'bbbbtvv.cn'},
{'29582', 'bbbddss1.3322.org', 'bbbddss1.3322.org'},
{'29583', 'bbbfffqqq.cn', 'bbbfffqqq.cn'},
{'29584', 'bbc.xnum.cn', 'bbc.xnum.cn'},
{'29585', 'bbdp.ihppefss.cn', 'bbdp.ihppefss.cn'},
{'29586', 'bbdu.3322.org', 'bbdu.3322.org'},
{'29587', 'bbg1.... | Lua |
c $2, r6 # set ra
j *(r1) # call c[i].op(c[i].a, c[i].b)
ld $8, r3 # r3 = 8 = (sizeof op's frame)
add r3, r5 # deallocate op's frame (caller)
ld (r5), r2 # load i from stack back onto r2
inca r5 ... | Assembly |
Disc of the Blue Flying Cloud
1700052, -- Disc of the Purple Flying Cloud
1700053, -- Disc of the Red Flying Cloud
1700054, -- Grimhowls Face Axe
1700055, -- Dark Phoenix
1700056, -- Shu-Zen, the Divine Sentinel
1700057, -- Dawnforge Ram
1700058, -- Darkforge Ram
1700059, -- Cloudwing Hi... | Lua |
C at {}:{}:{}\n {}", loc.file(), loc.line(), loc.column(), msg));
} else {
print_error(format_args!("PANIC at unknown\n {}", msg));
}
}
#[alloc_error_handler]
pub fn rust_alloc_error_handler(layout: Layout) -> ! {
panic!("OOM (request {:?})", layout);
}
#[allow(non_snake_case)]
#[no_mangle]
... | Rust |
"""
author: Anton Nilsson
testcase 1:
in:
2
6 6
6 a
5 aa
4 a*a
3 aaaa
2 aaaaa
1 aaaaaa
6 6
6 b
5 aa
4 a*a
3 aaaa
2 aaaaa
1 aaaaaa
out:
aaaaaa
IMPOSSIBLE
testcase 2:
in:
2
6 6
6 a
5 *a
4 *a
3 *a
2 *a
1 aaaaaa
6 2
2 bbbbb
1 a*
6 2
2 bbbbb
1 *a
out:
aaaaaa
abbbbb
IMPOSSIBLE
testcase 3:
in:
1
4 4
4 *
3 *
2 *aa
1 aaaa
... | Python |
atar-size;
line-height: $wm-avatar-size;
//margin-left: -10px;
}
}
.title {
@include mat-typography-level-to-styles($wm-typography, subheading-2);
cursor: pointer;
outline: none;
}
.author {
@include mat-typography-level-to-styles($wm-typography, caption);
opacity: 0.5;
}... | CSS |
ting Stone Button",
MiniMapMailFrame = "Mail Button",
MinimapZoomIn = "Zoom In Button",
MinimapZoomOut = "Zoom Out Button",
MiniMapBattlefieldFrame = "Battlefield Button",
--Addon Buttons
AtlasButton = "Atlas Button",
CT_RASets_Button = "CT Raid Assist Button",
Wardrobe_IconFrame = "Ward... | Lua |
time_t,
}
#[test]
fn bindgen_test_layout__cef_cookie_t() {
assert_eq!(
::std::mem::size_of::<_cef_cookie_t>(),
208usize,
concat!("Size of: ", stringify!(_cef_cookie_t))
);
assert_eq!(
::std::mem::align_of::<_cef_cookie_t>(),
8usize,
concat!("Alignment of ", st... | Rust |
, 56
/* B022E8 8008B148 50400015 */ beql $v0, $zero, .L8008B1A0
/* B022EC 8008B14C 3C010001 */ lui $at, 1
/* B022F0 8008B150 8E8702B0 */ lw $a3, 0x2b0($s4)
.L8008B154:
/* B022F4 8008B154 3C0CE700 */ lui $t4, 0xe700
/* B022F8 8008B158 3C10FC30 */ lui $s0, (0xFC309661 >> 16) # lui $s0, 0xfc30
/* B022FC 80... | Assembly |
0;
}
.md-typeset li {
margin: var(--medical-spacing-xs) 0;
line-height: 1.8;
}
/* Code blocks */
.md-typeset code {
background: var(--medical-light);
color: var(--medical-secondary);
padding: 0.2em 0.4em;
border-radius: 4px;
font-size: 0.9em;
}
/* Tables */
.md-typeset table {
border-radius: 8px;
... | CSS |
utf8.decode(bytes, allowMalformed: true);
} catch (e) {
// If base64 decode fails, treat as plain text
text = data;
}
} else if (data is List) {
// Handle if data comes as byte array
text = utf8.decode(List<int>.from(data), allowMalformed: true);
... | Dart |
(ctx: &mut Context, timestep: Timestep) {
ctx.time.ticks_per_second = match timestep {
Timestep::Fixed(tps) => Some(tps),
Timestep::Variable => None,
};
ctx.time.tick_rate = match timestep {
Timestep::Fixed(tps) => Some(Duration::from_secs_f64(1.0 / tps)),
Timestep::Variable... | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.