content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
="0 0 1024 1024"><path fill="currentColor" d="M704 288h131.072a32 32 0 0131.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 11-64 0v-96H384v96a32 32 0 01-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 01-31.808-35.2l57.6-576a32 32 0 0131.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4... | Dart |
return;
var clsMrkrTargets = new HashSet<IConstChartRow>();
var myClsMrkrs = m_clauseMkrRepo.AllInstances().Where(mrkr =>
mrkr.Owner != null &&
mrkr.Owner.Owner != null &&
mrkr.Owner.Owner.Hvo == m_chart.Hvo);
foreach (var clsMrkr in myClsMrkrs)
clsMrkrTargets.UnionWith(clsMrkr.DependentClau... | C# |
{float:none;padding:17px 15px 17px;color:#fff;text-decoration:none;text-shadow:0 1px 0 #013435}.navbar .nav .dropdown-toggle .caret{margin-top:8px}.navbar .nav>li>a:focus,.navbar .nav>li>a:hover{color:#fff;text-decoration:none;background-color:#002425}.navbar .nav>.active>a,.navbar .nav>.active>a:hover,.navbar .nav>.ac... | CSS |
], a * b.vertices[2]])
});
impl_op_ex!(*|a: &Matrix4, b: &Triangle| -> Triangle {
Triangle::new([
a.transform_point(&b.vertices[0]),
a.transform_point(&b.vertices[1]),
a.transform_point(&b.vertices[2]),
])
});
#[allow(clippy::op_ref)]
#[cfg(test)]
mod tests {
use super::*;
use ... | Rust |
/**< This variable can be set using the control point. Must be true to be able to send navigation updates. */
bool is_ctrlpt_indication_enabled; /**< True if indication is enabled on the Control Point characteristic. */
bool is_nav_notification_enabled; /**< ... | C |
.length) {
return { value: { schema: _ds.schema, grouped: groups.length, level: 0, value: group(values, groups, _context, 1), all: values } };
}
if (Array.isArray(ds)) return values;
else return { schema: _ds.schema, value: values };
}
interface GroupCache {
[group: string]: any[];
}
function group(arr: ... | Typescript |
.DefaultChocoScheduler;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.ArrayList;
import java.util.List;
/**
* Unit tests for {@link CPreserve}.
*
* @author Fabien Hermenier
*/
public class CPreserveTest {
/**
* A preserve constraint asks for a minimum amount of resource... | Java |
i,s(o,"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44... | JavaScript |
nts
* @author Alok Deshwal
* @param {IHorseEvents} eventsData
* @description Instantiate the Model and create an entry in DB with the given data
*/
async insertEvents(eventsData: IHorseEvents): Promise<void> {
console.debug('Following data will be inserted into MongoDB ', eventsData)
... | Typescript |
3 = "/video3";
private static final String PATH_VIDEO_1 = GRID + VIDEO_1;
private static final String PATH_VIDEO_2 = GRID + VIDEO_2;
private static final String PATH_VIDEO_3 = GRID + VIDEO_3;
private final AemContext context = CoreComponentTestContext.newAemContext();
@Mock
private Style style... | Java |
base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIxMCUiIHN0b3AtY29sb3I9IiNlNmU2ZTYiL... | CSS |
0)+((r01*x14953))+(((-1.0)*r02*x14951))+(((-1.0)*gconst53*r00*x14952)));
evalcond[3]=(((r01*x14942*x14945))+((r00*x14949))+(((-1.0)*r00*x14947*x14951))+((r01*x14946))+((r02*x14954)));
evalcond[4]=(((r00*x14942*x14946))+(((-1.0)*r02*sj3*x14952))+(((-1.0)*r01*x14949*x14951))+((r00*x14945))+((r01*x14947)));
evalcond[5]=((... | C++ |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2017, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * R... | C |
��문자 e",igrave:"억음 부호가 있는 라틴 소문자 i",iacute:"양음 부호가 있는 라틴 소문자 i",icirc:"곡절 악센트 부호가 있는 라틴 소문자 i",iuml:"분음 기호가 있는 라틴 소문자 i",eth:"라틴 소문자 eth",ntilde:"틸데가 있는 라틴 소문자 n",ograve:"억음 부호가 있는 라틴 소문자 o",oacute:"양음 부호가 있는 라틴 소문자 o",ocirc:"곡절 악센트 부호가 있는 라틴 소문자 o",otilde:"틸데가 있는 라틴 소문자 o",ouml:"분음 기호가 있는 라틴 소문자 o",
divide:"나누기 기호",os... | JavaScript |
01] = {"Харлон Темный Узор","Товары для кожевников"},
[34602] = {"Калива","Госпожа цепей"},
[34603] = {"Убийца из Ясеневого леса",nil},
[34604] = {"Высокий Баобоб","Древо войны"},
[34605] = {"Скарабей из роя",nil},
[34606] = {"Морозная сфера",nil},
[34607] = {"Нерубский копатель",nil},
[34608] = {"Высокий Баобоб","Древ... | Lua |
nhanced PR Preview Demo\n")
content.WriteString("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n")
// Add the model view
content.WriteString(w.model.View())
// Add footer with quit instruction
content.WriteString("\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━... | Go |
import torch
__all__ = [
'query_ball_point',
'farthest_point_sample',
'NN3'
]
def square_distance(src, dst):
"""
Input:
src: source points, [B, N, C]
dst: target points, [B, M, C]
Output:
dist: per-point square distance, [B, N, M]
"""
B, N, _ = src.shape
_, ... | Python |
r: Usuarios[] = await this.usuariosRepository.find();
// Constantes que almacenan la informacion de las bases de datos -->
const foundRondas = await this.rondasRepository.find();
const rondas = new Rondas();
//<--
// Variable para la obtencion de los días de la semana -->
... | Typescript |
(
"return ${getHtmlRep(c.o)}",
Color.GREEN
)
is TACCmd.Simple.ReturnCmd -> colorText(
"return M@${b.getCallId()}[${getHtmlRep(c.o1)}:${getHtmlRep(c.o1)}+${getHtmlRep(c.o2)}]",
Color.GREEN
)
is TACCmd.Simple.... | Kotlin |
ro_cmdz, payload(offset, 4))
offset = offset + 4
subtree:add_le (f.ctrl_horiz_ang_vel_debug_gyro_fbkx, payload(offset, 4))
offset = offset + 4
subtree:add_le (f.ctrl_horiz_ang_vel_debug_gyro_fbky, payload(offset, 4))
offset = offset + 4
subtree:add_le (f.ctrl_horiz_ang_vel_debug_gyro_fbkz, pa... | Lua |
-style request URL format. For example,
/// https://bucket-name.s3.Region.amazonaws.com/key-name.
///
/// Before you can use <code>S3_SIGV4</code>, you must meet these requirements:
///
/// • You must allow MediaTailor to access your S3 bucket by granting
/// mediatailor.amazonaws.com principal access in IA... | Dart |
StartOffset: -1}}}},
ForgottenTopics: []FetchForgottenTopicsData{},
RackID: "",
}
decoder := decoder.NewPacketDecoder(input)
decoder.SetAPIInfo(KFetch, 4)
result, err := decoder.ExtractFetchReq()
assert.NoError(t, err)
assert.True(t, expectedResult.Equals(result))
}
func TestExtractFetchReqV11(t *t... | Go |
/** @file nim_rts.h
* @brief 实时会话(数据通道) 接口头文件,如果需要用到音视频功能请使用音视频设备相关接口
* @copyright (c) 2015-2017, NetEase Inc. All rights reserved
* @author gq
* @date 2015/6/30
*/
#ifndef NIM_SDK_DLL_API_NIM_RTS_H_
#define NIM_SDK_DLL_API_NIM_RTS_H_
#include "nim_sdk_dll.h"
#include "nim_rts_def.h"
#ifdef __cplusplus
ex... | C |
s")) {
return &s->parent;
}
fprintf(stderr, "%s not present in omap_i2c\n", interface);
g_assert_not_reached();
}
static void omap_i2c_start_hw(QOSGraphObject *object)
{
OMAPI2C *s = (OMAPI2C *) object;
uint16_t data;
/* verify the mmio address by looking for a known signature */
d... | C |
opacity: 1;
}
.items-3 .control-button:nth-of-type(2),
.items-3 .item:nth-of-type(2) {
animation-delay: 5s;
}
.items-3 .control-operator:nth-of-type(3):target ~ .item:nth-of-type(3) {
pointer-events: auto;
opacity: 1;
}
.items-3 .control-button:nth-of-type(3),
.items-3 .item:nth-of-type(3) {
animation-delay:... | CSS |
eURI, qualifiedName, typeExtension);
}
NodeIterator _createNodeIterator(Node root,
[int? whatToShow, NodeFilter? filter]) =>
JS('NodeIterator', '#.createNodeIterator(#, #, #, false)', this, root,
whatToShow, filter);
TreeWalker _createTreeWalker(Node root,
[int? whatToShow, N... | Dart |
xonSelectionModel().clearSelection();
});
var scrollPane = controller.getZoomableScrollPane();
scrollPane.setContent(hbox);
scrollPane.setFitToWidth(false);
var zoom = new SimpleDoubleProperty(1.0);
zoom.addListener((v, o, n) -> {
worldMap1.changeScale(o.doubleValue(), n.doubleValue());
worldMap2.ch... | Java |
onst component = new ChildComponent({ parent })
test('provides value', () => {
expect(component.one).toBe(value)
})
describe('when changed', () => {
const newValue = 'NEW VALUE'
beforeAll(() => {
parent.one = newValue
})
test('reflects updates', () => {
expe... | Typescript |
036A14: ; 0x02036A14
push {r3-r5, lr}
add r4, r0, #0x0
bl TaskManager_GetFieldSystem
add r5, r0, #0x0
add r0, r4, #0x0
bl TaskManager_GetEnvironment
add r4, r0, #0x0
mov r0, #0x7e
lsl r0, r0, #0x2
add r1, sp, #0x0
ldr r0, [r4, r0]
add r1, #0x1
add r2, sp, #0x0
bl sub_0208524C
add r0, r5, #0x0
add r3, sp... | Assembly |
defaultSfixed32 = 409
defaultSfixed64 = 410
defaultFloat = 411f
defaultDouble = 412.0
defaultBool = false
defaultString = "415"
defaultBytes = toBytes("416")
defaultNestedEnum = NestedEnum.FOO
defaultForeignEnum = ForeignEnumLite.FOREIGN... | Kotlin |
case 2401:
tencentCloud.CAMListUsers()
case 2402:
tencentCloud.CAMListRoles()
case 2403:
tencentCloud.CAMCreateUser()
case 2404:
tencentCloud.CAMAttachPolicyToUser()
case 2405:
tencentCloud.CAMCreateLoginProfile()
case 2406:
tencentCloud.CAMCreateAccessKey()
// 华为云
case 3201:
huawe... | Go |
for (int ny = Nyb - 2; ny >= 0; --ny) {
for (int nx = 0; nx < Nx; ++nx)
for (int nz = 0; nz < Nz; ++nz)
dfdy(nx, ny, nz, i) = dfdy(nx, ny + 2, nz, i) + scale * (ny + 1) * f(nx, ny + 1, nz, i);
}
for (int nx = 0; nx < Nx; ++n... | C++ |
from core import common_utils
from core.logger import logger
from core import image_utils
from conf import settings
import os
import time
import subprocess
import threading
from tkinter import messagebox as mBox
# 开启静默模式不弹cmd窗口
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags = subprocess.STARTF_USESHOWWINDOW... | Python |
r0, [r5]
b _02232CF4
_02232C36:
ldr r0, _02232D2C ; =0x00002BD4
ldr r1, [r4, r0]
sub r1, r1, #1
str r1, [r4, r0]
ldr r0, [r4, r0]
cmp r0, #0
bne _02232CF4
ldr r1, _02232D30 ; =0x00002D78
add r0, r4, #0
ldr r2, [r4]
add r0, #0x90
add r1, r4, r1
bl ov83_022392EC
ldr r0, _02232D30 ; =0x00002D78
mov r1, #0x... | Assembly |
/svg+xml,%3Csvg preserveAspectRatio='xMidYMid meet' height='1em' width='1em' fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' stroke='%239DAAB6'%3E%3Cg%3E%3Cline x1='21' y1='10' x2='7' y2='10'%3E%3C/line%3E%3Cline x1='21' y1='6' x2='3' y2... | CSS |
, h.b)).l, h.a, h.b) : new d3_hcl(h, c, l);
}
var d3_hclPrototype = d3_hcl.prototype = new d3_color();
d3_hclPrototype.brighter = function(k) {
return new d3_hcl(this.h, this.c, Math.min(100, this.l + d3_lab_K * (arguments.length ? k : 1)));
};
d3_hclPrototype.darker = function(k) {
return new d3_hcl(... | JavaScript |
using Content.Server.Research.Systems;
using Content.Server.Xenoarchaeology.Artifact;
using Content.Shared.Popups;
using Content.Shared.Xenoarchaeology.Equipment;
using Content.Shared.Xenoarchaeology.Equipment.Components;
using Robust.Shared.Audio.Systems;
namespace Content.Server.Xenoarchaeology.Equipment;
/// <inhe... | C# |
>,
) = serverUri.buildUpon().apply {
appendPath("rest")
appendPath(method)
getBaseParameters().forEach { (key, value) -> appendQueryParameter(key, value) }
queryParameters.forEach { (key, value) ->
value?.let { appendQueryParameter(key, it.toString()) }
}
}.bu... | Kotlin |
;
}
fn robot_movement(
keyboard_input: Res<Input<KeyCode>>,
// mut query: Query<&mut Transform, With<Robot>>,
mut camera_query: Query<&mut Transform, (With<Camera>, Without<Robot>)>,
mut velocities: Query<&mut RigidBodyVelocityComponent, With<Robot>>,
) {
// if let Ok(mut transform) = query.get_sin... | Rust |
namespace UnoPlatformSample.Services.Endpoints;
internal class DebugHttpHandler : DelegatingHandler
{
private readonly ILogger _logger;
public DebugHttpHandler(ILogger<DebugHttpHandler> logger, HttpMessageHandler? innerHandler = null)
: base(innerHandler ?? new HttpClientHandler())
{
_logg... | C# |
ger = manager;
entity.Salary = 2500;
}
protected override void AssertAreEqual(Employee expectedEntity, Employee actualEntity)
{
Assert.AreEqual(expectedEntity.Address, actualEntity.Address);
Assert.AreEqual(expectedEntity.BirthDate, actualEntity.BirthDate);
... | C# |
como programação de sistemas ou quando trabalhando em ambientes restritos onde dependências em bibliotecas grandes são inviáveis.
---
changelog:
- 2024-02-03, gpt-4-0125-preview, translated from English
date: 2024-02-03 18:12:57.820772-07:00
description: "Como fazer: C n\xE3o possui suporte embutido para XML, ent\xE3o... | Markdown |
if batchCount > 0 {
if err := executeUpsertBatch(psb.String(), pargs); err != nil {
return false, err
}
}
return updatedDB, nil
}
// mdmEntityTypeToDynamicNames tracks what names should be used in the
// templates for SQL statements based on the given entity type. The dynamic
// names are deliberately spelle... | Go |
struct {
u32 magic;
u32 node_size;
u32 max_depth;
u32 data_type;
befs_off_t root_node_ptr;
befs_off_t free_node_ptr;
befs_off_t max_size;
} PACKED befs_btree_super;
/*
* Header structure of each btree node
*/
typedef struct {
fs64 left;
fs64 right;
fs64 overflow;
fs16 all_key_count;
fs16 all_key_length;
... | C |
n.fromRotationVector(angles[1]*axisB.unit())
* is as close to rot as possible
*/
fun biAlign(rot: Quaternion, axisA: Vector3, axisB: Vector3): FloatArray {
val a = axisA.unit()
val b = axisB.unit()
val aQ = a.dot(rot.xyz)
val bQ = b.dot(rot.xyz)
val abQ = a.cross(b).dot(rot.xyz) - a.dot(b) * rot.w
va... | Kotlin |
t item of :attr:`release` or ``0`` if unavailable.
>>> Version("1.2.3").major
1
r
r lenr )rC s r. major
Version.major ' #&dll"3q"8t||A?a?r- c V [ U R 5 S: a U R S $ S$ )sThe second item of :attr:`release`... | Python |
板甲肩铠",
[16518] = "血卫士的锁甲重靴",
[16519] = "血卫士的锁甲护手",
[16521] = "勇士的锁甲盔帽",
[16522] = "军团士兵的锁甲护胸",
[16523] = "军团士兵的锁甲护腿",
[16524] = "勇士的锁甲护肩",
[16525] = "军团士兵的链甲",
[16526] = "勇士的链甲盔帽",
[16527] = "军团士兵的链甲腿铠",
[16528] = "勇士的链甲肩铠",
[16530] = "血卫士的链甲护手",
[16531] = "血卫士的链甲战靴",
[16532] = "一等军士长的锁甲护腕",
[16533] = "督军的丝质罩帽",
[16534... | Lua |
0x22039(%rip),%rax # 808df28 <_GLOBAL_OFFSET_TABLE_+0x2a8>
806beef: 8b 00 mov (%rax),%eax
806bef1: 83 f8 ff cmp $0xffffffff,%eax
806bef4: 0f 84 60 02 00 00 je 806c15a <func_decl_list+0x2b7>
806befa: 48 8b 05 27 20 02 00 mov 0x22027(%rip),%rax # 808df28 <_... | Assembly |
)
energy_scores = -temperature * torch.logsumexp(logits / temperature, dim=1)
# 不确定性分解
uncertainty_analysis = self._decompose_uncertainty(model, test_data, device)
return {
'calibrated_probabilities': calibrated_probs.cpu().numpy(),
'energy_scores': ... | Python |
rapMode.Loop;
TranslateX.postWrapMode = WrapMode.Loop;
TranslateY.postWrapMode = WrapMode.Loop;
TranslateZ.postWrapMode = WrapMode.Loop;
baseTransform = base.transform.localPosition;
}
private void Update()
{
base.transform.localPosition = baseTransform + new Vector3(TranslateX.Evaluate(myTimeX * rateX), ... | C# |
- REMOTECONTROL_KBDSHIFT_HOTKEY: SHIFT key
- REMOTECONTROL_KBDCTRL_HOTKEY: CTRL key
- REMOTECONTROL_KBDALT_HOTKEY: ALT key
* flags - flags to define behaviour of the shadowing session:
- REMOTECONTROL_FLAG_DISABLE_KEYBOARD: keyboard input disab... | Markdown |
_subgroup_assuming_on_curve());
// let point = Affine::get_point_from_x(Fq::from(335_u64), false);
assert_eq!(g.into_projective().mul(&[42_u64]).mul(&[2_u64]), g.into_projective().mul(&[84_u64]))
}<reponame>Jzow/rustlibrary
///
/// 字符串转换
/// 将任何类型转换为一个String就像实现ToString一样,不因该这样写
/// 应该实现fmt::Display自动字符串的特性
/... | Rust |
), MelodyOptions.Once); break;
case ExtBoardMusicIndex.ba_ding: music.beginMelody(music.builtInMelody(Melodies.BaDing), MelodyOptions.Once); break;
case ExtBoardMusicIndex.wawawawaa: music.beginMelody(music.builtInMelody(Melodies.Wawawawaa), MelodyOptions.Once); break;
case ExtBoardM... | Typescript |
,y,z vertex values and x,y,z normal values:
```
let cube_data: StaticArray<f32> = [
// X Y Z NX NY NZ
// Front
-0.5, -0.5, 0.5, 0.0, 0.0, 1.0,
0.5, -0.5, 0.5, 0.0, 0.0, 1.0,
-0.5, 0.5, 0.5, 0.0, 0.0, 1.0,
0.5, 0.5, 0.5, 0.0, 0.0, 1.0,
-0.5, 0.5, 0.5, 0.0, 0.0, 1.0,
0.5, -0.5, 0.... | Markdown |
n malloc races with the
// store that clears it but an atomic check in every malloc
// would be a performance hit.
// Instead we recheck it here on the non-preemptable system
// stack to determine if we should perform an assist.
// GC is done, so ignore any remaining debt.
gp.gcAssistBytes = 0
return
}
... | Go |
ied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
*/
#endregion
using HeuristicLab.Collections;... | C# |
/*
* Copyright (C) 2009 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | C |
;
generate_on_func!(on_emptied "emptied");
generate_on_func!(on_ended "ended");
generate_on_func!(on_error "error");
generate_on_func!(on_focus "focus" FocusEvent);
generate_on_func!(on_input "input" InputEvent);
generate_on_func!(on_invalid "invalid");
generate_on_func!(on_keydown "keydown"... | Rust |
import urllib.request,urllib.parse
import json,re
url = "https://fe-api.zhaopin.com/c/i/sou?"
kw_work = input("请输入您想查找的工作的关键字:")
city = input("请输入您想选择的城市:")
start_page = int(input("请输入开始爬取的页:"))
end_page = int(input("请输入结束爬取的页:"))
for page in range(start_page,end_page+1):
data = {
'start': page,
'p... | Python |
fault_dcos",
OrchestratorProfile{
OrchestratorType: DCOS,
},
Ubuntu,
},
}
for _, test := range tests {
mockAPI := getMockAPIProperties("1.0.0")
mockAPI.OrchestratorProfile = &test.orchestratorProfile
mockAPI.setMasterProfileDefaults(false)
mockAPI.setAgentProfileDefaults(false, false)
if moc... | Go |
�订单";
payTypeTitle = "隐藏";
organUrl = cusUrl;
amountNum = "XSDD";
}
else if(listTitle === "销售出库列表"){
listType = "出库";
listSubType = "销售";
payTypeTitle = "收款";
organUrl = cusUrl;
amountNum = "XSCK";
}
else if(listTitle === "采购退货列表"){
listType = "出库";
... | JavaScript |
s", func(t *testing.T) {
var amountToCommit interpreter.UFix64Value = 25000000000000
registerNode(t, b, env,
idTableAddress,
IDTableSigner,
adminID,
getNetworkingAddress(admin),
adminNetworkingKey,
adminStakingKey,
adminStakingPOP,
amountToCommit,
committed[adminID],
1,
false)
... | Go |
OrderStringPattern
.toCharArray();
this.logger.debug("for lower order (" + higherOrderStringPattern
+ ") for \"" + higherOrderSequence + "\" aggregate:");
// count skipped zeros to remove the correct word for the lower
// order sequence
int skippedZeros = 0;
for (int i = 0; i < higherOrderCharP... | Java |
, s, got, want)
if err := ptest.Run(p); err != nil {
t.Errorf("QuantilesPerKey with partitions in-memory=%t did not bound cross-partition contributions correctly: %v", tc.inMemory, err)
}
}
}
// Checks that QuantilePerKey does per-partition contribution bounding correctly.
func TestQuantilesPerKeyPerPartitionC... | Go |
ExecuteInterface<T>) {
this._executor = executor;
if (executor === noop) return;
doResolve(this._executor, this);
}
public then(onFulfilled?: Function, onRejected?: Function): TypedPromise<T> {
const ret = new TypedPromise(noop);
// deal it as deferred
handle(this, new Deferred(ret, onFulfi... | Typescript |
� + `-`와 `.`문자)을 가져야 한다.
### 2. 상응하는 런타임클래스 리소스 생성
1단계에서 셋업 한 설정은 연관된 `handler` 이름을 가져야 하며, 이를 통해서 설정을 식별할 수 있다.
각 런타임 핸들러(그리고 선택적으로 비어있는 `""` 핸들러)에 대해서, 상응하는 런타임클래스 오브젝트를 생성한다.
현재 런타임클래스 리소스는 런타임클래스 이름(`metadata.name`)과 런타임 핸들러
(`handler`)로 단 2개의 중요 필드만 가지고 있다. 오브젝트 정의는 다음과 같은 형태이다.
```yaml
# 런타임클래스는 node.k8s.io A... | Markdown |
onCode = 0x10
NFCNotSent NonfungibleConditionCode = 0x11
)
// AssetInfo contains token asset information
type AssetInfo struct {
Address address.StacksAddress
ContractName clarity_value.ClarityName
AssetName clarity_value.ClarityName
}
// Principal represents a transaction principal
type Principal struct ... | Go |
a
d4 @ s d Z ddlZddlZddlZddlmZ ddlmZ g dZG dd dZ dd
dZ
dd
Zedej
jZdd Zdd Zedkreejdkree n@ejd ZeeZee ee W d n1 s0 Y dS )8A lexical analyzer class for simple shell-like syntaxes. N)deque)... | Python |
_mono_depth = outputs['stage{}'.format(stage_idx + 1)]['mono_depth'][0]
mi = np.min(stage_mono_depth[stage_mono_depth > 0])
ma = np.max(stage_mono_depth)
depth = (stage_mono_depth - mi) / (ma - mi + 1e-8)
depth = (255 * dept... | Python |
/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... | C |
en: "Your opponent flips a coin for each of his or her Benched Pokémon. This attack does 40 damage times the number of tails. This attack’s damage isn’t affected by Weakness or Resistance.",
fr: "Votre adversaire lance une pièce pour chacun de ses Pokémon de Banc. Cette attaque inflige 40 dégâts multipliés par... | Typescript |
let { role.name = name }
description?.let { role.description = description }
roleRepository.save(role)
}
request.userIds?.map { it }?.let { idList ->
val users = userDao.findAllByRolesIn(listOf(id))
userService.removeUserFromRoleBat... | Kotlin |
/*============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center (DKFZ)
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.
... | C |
차순 정렬
lidar_2d_positions.sort(key=lambda x: (x[0], x[1]))
april_2d_positions.sort(key=lambda x: (x[0]))
# 맨 처음 좌표와 맨 끝 좌표를 기준으로 좌표를 나눔
divide_num = 30
divide_lidar_points = divide_points(lidar_2d_positions[0], lidar_2d_positions[-1], divi... | Python |
象(定义见cpp源码),然后将你定义的Lua函数用于其成员函数。
--注意,本游戏cpp源码部分使用了类的继承重载来实现不同的技能,而在lua的DIY技能里面我们都使用固定的类
--我们通过将会被用作技能成员函数的lua function,直接赋给技能的实例来实现不同的技能。
-- **程序细节部分结束
--视为技在创建时,需要以下方法|变量的定义:
--name, relate_to_place, response_pattern, guhuo_type, view_filter, view_as, enabled_at_play, enabled_at_response, enabled_at_nullification,... | Lua |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or module... | Python |
ght_padding
elseif type(last_element) == "table" and type(last_element[1]) == "string" then
last_element[1] = last_element[1] .. right_padding
end
return str
end
return str
end
end
M.add_highlight_name = function(str, highlight_name)
return #str > 0 and "%#" .. highlight_name .. "#" .. str .. "%*" ... | Lua |
erride
int get hashCode => Object.hash(runtimeType, field0);
/// Create a copy of AbcTwinSyncSse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$AbcTwinSyncSse_JustIntImplCopyWith<_$AbcTwi... | Dart |
8OobFgNfYXkk6R/K/fqJhJ/mV8gLur16XhgueXA
-----END PRIVATE KEY-----''';
var ecPrivateKey = '''-----BEGIN EC PRIVATE KEY-----
MHUCAQEEIQCNeTXcKDOh232Nh4/wXDYbAN4a/7zZt4kcIjTd+Fy5aKAHBgUrgQQA
CqFEA0IABHm+Zn753LusVaBilc6HCwcCm/zbLc4o2VnygVsW+BeYSDradyajxGVd
pPv8DhEIqP0XtEimhVQZnEfQj/sQ1Lg=
-----END EC PRIVATE KEY-----'''... | Dart |
style=";;"><div>BOSS</div></td><td style=";;" class="navbox-list navbox-even"><div><a href="./南宫蒂亚.md" title="南宫蒂亚">南宫蒂亚</a> • <a href="./端木忆.md" title="端木忆">端木忆</a> • <a href="./墨菊.md" title="墨菊">墨菊</a> • <a href="./凌司.md" title="凌司">凌司</a> • <a href="./洛炎.md" title="洛炎">洛炎</a> • <a href... | Markdown |
ality;
bool get isInitialized => _isInitialized;
Future<void> initialize() async {
if (_isInitialized) return;
try {
await _transcodeManager.initialize();
await _loadSettings();
_isInitialized = true;
} catch (e) {
debugPrint('EmbyTranscodeProvider 初始化失败: $e');
_isInitiali... | Dart |
}
}
}
}
fn load_event(path: &str, name_or_signature: &str) -> Result<Event, Error> {
let file = File::open(path)?;
let contract = Contract::load(file)?;
let params_start = name_or_signature.find('(');
match params_start {
// It's a signature.
Some(params_start) => {
let name = &name_or_signature[..p... | Rust |
right of a string
* @export
* @param {any} str
* @returns {string}
*/
export function trimRight(str): string {
return str.replace(/\s+$/, '');
}
/**
* Trim all tabs from a string
* @export
* @param {any} str
* @returns {string}
*/
export function trimTabs(str): string {
return str.replace(/\t+/g, '');
}
/**... | Typescript |
(short subcommand) {
this.subcommand = subcommand;
}
public int getReserved() {
return reserved;
}
public void setReserved(int reserved) {
this.reserved = reserved;
}
public String getDirectoryName() {
return directoryName;
}
public void setDirectoryName(String directoryName) {
this.directoryName = di... | Java |
/*
* linux/arch/arm/kernel/entry-common.S
*
* Copyright (C) 2000 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <asm/unistd.h>
#include <asm/ftra... | Assembly |
�大,嘉诚安全提醒广大Microsoft用户尽快下载补丁更新,避免引发漏洞相关的网络安全事件。
**漏洞详情**
经研判以下漏洞影响较大
1、CVE-2025-33053
Web分布式创作和版本控制(WEBDAV)远程代码执行漏洞,已发现被
在野利用
。该漏洞是由于WebDav链接中文件路径处理不当造成的。远程攻击者可以诱骗受害者点击特制链接,并在系统上执行任意代码。
2、CVE-2025-47167
Microsoft Office远程代码执行漏洞,该漏洞是由于Microsoft Office中的类型混淆错误而... | Markdown |
, (%rcx), %xmm0, %xmm0
// CHECK: encoding: [0xc4,0xe3,0x79,0x6d,0x01,0x10]
vfmsubpd %xmm1, (%rcx),%xmm0, %xmm0
// CHECK: vfmsubpd %xmm2, %xmm1, %xmm0, %xmm0
// CHECK: encoding: [0xc4,0xe3,0xf9,0x6d,0xc2,0x10]
vfmsubpd %xmm2, %xmm1, %xmm0, %xmm0
// CHECK: vfmsubps (%rcx), %ymm1, %ymm0, %ymm0... | Assembly |
.KEYCODE_ESCAPE),
// TODO: replace load/save icons with more intuitive
OscImageButton("weapon", R.drawable.broadsword1, 880, 95, KeyEvent.KEYCODE_F),
OscImageButton("jump", R.drawable.jump, 920, 195, KeyEvent.KEYCODE_E),
OscImageButton("fire", R.drawable.crossbow, 720, 300, 1, true, 90),... | Kotlin |
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ModifyPassword', createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'username')
..aOS(2, _omitFieldNames ? '' : 'oldPassword', protoName: 'oldPassword')
..aOS(3, _omitFieldNames ? '' : 'newPassword', protoName: 'newPasswor... | Dart |
E2;
eS12 = S12 / G12;
// By default, use Tsai-Wu modified to return a strength ratio
useTsaiWuCriterion = true;
useModifiedTsaiWu = true;
// Compute the coefficients for the Tsai-Wu failure criteria
F1 = (Xc - Xt) / (Xt * Xc);
F2 = (Yc - Yt) / (Yt * Yc);
F11 = 1.0 / (Xt * Xc);
F22 = 1.0 / (Yt * Yc);... | C++ |
----------------------------------------------------------------
-- MAGIC NUMBERS CALCULATOR
--------------------------------------------------------------------------------
-- Q:
-- Is 53-bit "double" math enough to calculate square roots and cube roots of primes with 64 correct bits after decimal point?
-- A:
-- ... | Lua |
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "module",
"description": "<p>模块名称</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false... | JavaScript |
/* Optimized memcmp implementation using LoongArch LASX instructions.
Copyright (C) 2023-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as pu... | Assembly |
2, INT dr)
{
check_load_stall (cpu, sr);
check_load_stall (cpu, sr2);
return idesc->timing->units[unit_num].done;
}
int
m32rbf_model_m32r_d_u_cmp (SIM_CPU *cpu, const IDESC *idesc,
int unit_num, int referenced,
INT src1, INT src2)
{
check_load_stall (cpu, src1);
check_load_stall (cpu, src2);
re... | C |
arg_iter),
Err(Error::UnacceptableRequestAtThisState)
));
}
#[test]
fn test_empty_resource() {
let session = Session::Authorized(Authorized {
username: TEST_USER.to_owned(),
user_storage: AsyncUserStorage::default(),
});
let args = [];
... | Rust |
/CordovaLib.build/Objects-normal/i386/CDVCommandDelegateImpl.o
CompileC build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVConfigParser.o Classes/CDVConfigParser.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/shiren1118/Workspace/github/ionic_ninja... | Markdown |
ROW.
TEST(ExpectTest, EXPECT_ANY_THROW) {
EXPECT_ANY_THROW(ThrowAnInteger());
EXPECT_NONFATAL_FAILURE(EXPECT_ANY_THROW(ThrowNothing()),
"Expected: ThrowNothing() throws an exception.\n"
" Actual: it doesn't.");
}
#endif // GTEST_HAS_EXCEPTIONS
// Make sure we ... | C++ |
a.push('">'),
(this.bottomImageDiv_.innerHTML = a.join('')),
// (this.infoWindowDiv_.style.zIndex = 100),
this.setShow(!0),
this.draw());
// };
},
// picasaInfoWindow$window.prototype.setShow = function (a) {
setShow: function (a) {
picasa.log('picasaInfoWindow$window.se... | JavaScript |
een = c.jade_green,
deep_lilac = c.deep_lilac,
drama_violet = c.drama_violet,
vista_blue = c.vista_blue,
ube = c.ube,
oni_violet = c.oni_violet,
puce = c.puce,
salmon = c.salmon,
infra_red = c.infra_red,
wave_red = c.wave_red,
peach_red = c.peach_red,
surimi_orange = c.surimi... | Lua |
,
fetchMore: () async =>
await categoryLivesFetchMore(ref, channelId: currentChannelId),
changeToAboveContents: () => changeOverlay(
ref,
overlayType: showGroupInNavigators
? LiveStreamOverlayType.group
: LiveStreamOverlayType.fol... | Dart |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.