content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
ensitivity) ||
footPosition.y > floorLevel + FLOOR_DISTANCE_CUTOFF ||
accelerationAboveThreshold
) {
UNLOCKED
} else {
LOCKED
}
}
return if (horizontalDifference > SKATING_DISTANCE_CUTOFF ||
(velocityMagnitude * timeStep > SKATING_VELOCITY_THRESHOLD * velocitySensitivity) ||
(angleDif... | Kotlin |
public static MetricType valueOf(int number) {
MetricType[] values = values();
return values.length <= number ? METRIC_TYPE_UNSPECIFIED : values[number];
}
}
}
@Data
@AllArgsConstructor
@NoArgsConstructor
public static class DeployPolicy {
// The maximum number of runnin... | Java |
import math
from collections import defaultdict
def load_triples(file_path):
"""Construct neighboring dictionaries containing isolated nodes (automatically includes all entities)"""
adj = defaultdict(set)
entities = set() # Record all occurrences of the entity
with open(file_path, 'r') as f:
... | Python |
on\big)$。
## 用随机元素命中目标集合
我们需要确定一个集合中的任意一个元素,为此我们随机选取元素,以期能够恰好命中这一集合。
### 例:[Gym 101550I](https://codeforces.com/gym/101550/attachments)
???+ note "简要题意"
有一张图形如:两条平行的链,加上连接两链的两条平行边。给定这张图上的若干条简单路径(每条路径表示一次通话),请你选择尽量少的边放置窃听器,以使得每条给定的路径上都有至少一个窃听器。
整张图可以拆分为一个环加上四条从环伸出去的链。对于这四条链中的任何一条(记作 $C$),考虑在这条链上如何放置窃听器,容易通过贪心算法... | Markdown |
player2WinsCounts += 1
Toast.makeText(this, "Player 2 win the game", Toast.LENGTH_LONG).show()
restartGame()
}
}
fun autoPlay(){
var emptyCells = ArrayList<Int>()
for( cellId in 1..9){
if( !(player1.contains(cellId) || playe... | Kotlin |
LOADK R10 K20 ["Collab8766_LogCollabSearchItemClickedEventV3"]
NAMECALL R8 R8 K21 ["GetFastFlag"]
CALL R8 2 1
GETIMPORT R9 K15 [game]
LOADK R11 K22 ["Collab8818_ShowSearchItemDisplayName"]
NAMECALL R9 R9 K21 ["GetFastFlag"]
CALL R9 2 1
OR R10 R8 R9
LOADNIL R11
JUMPIFNOT R10 [+7]
GETIMPORT R12 K15 [g... | Assembly |
uploads/2016/02/Sticking-dispensing-labels-featured-image-120x46.jpg 120w" sizes="(max-width: 300px) 100vw, 300px" /></div><div class="content-wrap"><h3>Newly launched FreeStyle Libre 3 Sensors enter the Drug Tariff and DND list from January 2024</h3><div class="excerpt"><p>The new FreeStyle Libre 3 Sensors recently la... | HTML |
_800878D0
/* 3D85E8C 800878C4 090022A2 */ sb $v0, 0x9($s1)
/* 3D85E90 800878C8 F8FF6224 */ addiu $v0, $v1, -0x8
/* 3D85E94 800878CC 0B0022A2 */ sb $v0, 0xB($s1)
.Llevel_43_800878D0:
/* 3D85E98 800878D0 0C002292 */ lbu $v0, 0xC($s1)
/* 3D85E9C 800878D4 00000000 */ nop
/* 3D85EA0 800878D8... | Assembly |
ing get chat250Sbmitm8722Sbcryptocurency8722Sbwarning => '경고: 이 거래 채팅 또는 이 거래 페이지의 결제 세부 정보 섹션에서만 판매자 주소를 얻고 이 거래 채팅 외부로 결제 거래 ID를 보내지 마십시오! 또한 이 거래 채팅에서 모든 커뮤니케이션을 유지하는 것이 좋습니다.';
@override
String get chat250Sbmitm8722Sbwarning250Sb0 => '⚠️ PSA: 중간에 남자 역할을 하는 새로운 사기꾼이 활동 중입니다. 사기꾼은 플랫폼 외부에서 판매자인 것처럼 가장하여 플랫폼 밖에서 ... | Dart |
Args[0]
y := v.Args[1]
v.reset(OpAMD64DIVQ)
v.AddArg(x)
v.AddArg(y)
return true
}
}
func rewriteValueAMD64_OpDiv64F(v *Value, config *Config) bool {
b := v.Block
_ = b
// match: (Div64F x y)
// cond:
// result: (DIVSD x y)
for {
x := v.Args[0]
y := v.Args[1]
v.reset(OpAMD64DIVSD)
v.AddArg(x)
... | Go |
});
test('testDecodeRow2string12', () {
assertCorrectImage2string('12.png', '(01)98898765432106(3103)001750');
});
test('testDecodeRow2string13', () {
assertCorrectImage2string('13.png', '(01)90012345678908(3922)795');
});
test('testDecodeRow2string14', () {
assertCorrectImage2string('14.png... | Dart |
file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
IoK8sApiPolicyV1PodDisruptionBudgetStatus? status;
@overrid... | Dart |
(a,s)}}},[t._v("\n "+t._s(s.name)+"\n ")])}),0)])])])]),t._v(" "),e("div",{staticClass:"space",staticStyle:{height:".5rem",background:"#f5f5f5"}}),t._v(" "),e("div",{staticClass:"company_list"},[e("div",{staticClass:"title"},[e("p",[t._v(t._s(t.lang.capital_name)+"信息")]),t._v(" "),e("p",{on:{cli... | JavaScript |
1
SETTABLEKS R20 R19 K74 ["CloseButton"]
CALL R16 3 1
SETTABLEKS R16 R15 K39 ["Buttons"]
CALL R12 3 1
SETTABLEKS R12 R11 K18 ["ActionsRow"]
CALL R8 3 -1
RETURN R8 -1
MAIN:
PREPVARARGS 0
GETIMPORT R0 K1 [script]
LOADK R2 K2 ["KnowledgeTutorials"]
NAMECALL R0 R0 K3 ["FindFirstAncestor"]
CALL R0 2... | Assembly |
::Timeout) => {
debug!("Flushing due to {}s timeout", flush_duration.as_secs());
(true, false)
}
Err(RecvTimeoutError::Disconnected) => {
warn!("SQLiteExporter channel disconnected, exiting worker");
(true, t... | Rust |
27crowley1-superJumbo.jpg", "sometimes__1530093587642_27crowley3NEW-superJumbo-v4.jpg"]
Yes
["sometimes__1525988911510_010006-MexAmerican.jpg", "sometimes__1525988911513_AndToThinkWeAllPlayedASma…t-NewYorkerCartoon-SlackScreenshot-2017-11-14.jpg"]
... | Typescript |
);
do {
pci_restore_state(pdev);
rc = pci_save_state(pdev);
netdev_dbg(priv->ndev, "pci_save_state = %d\n", rc);
bdx_mdio_set_speed(priv->pBdxRegs, priv->phy_ops.mdio_speed);
if (priv->phy_ops.mdio_reset(priv, priv->phy_mdio_port,
priv->phy_type) != 0) {
netdev_err(priv->ndev,
"bdx_resume... | C |
AbstractTransaction.fromEnvelopeXdrString(xdr);
Transaction t = transaction as Transaction;
TransactionPreconditions? tp = t.preconditions;
assert(tp != null);
assert(tp!.ledgerBounds!.minLedger == 892052);
assert(tp!.ledgerBounds!.maxLedger == 1892052);
assert(tp!.timeBounds!.minTime == 1652110... | Dart |
eader-section .section-content .section-item {
max-width: 100%;
margin: 0 0 60px;
}
}
/*! This file is auto-generated */
body{background:#f1f1f1}a{color:#0073aa}a:active,a:focus,a:hover{color:#0096dd}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,div.dashboard-widget-submit input:hove... | CSS |
# coding=utf-8
# *** WARNING: this file was generated by test. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import builtins as _builtins
import errno
from setuptools import setup, find_packages
from setuptools.command.install import install
from subprocess import check_call
VE... | Python |
class-toggle
default: false
-
id: h1-text-align-settings
title: H1 text-align
title.zh: H1 位置
type: class-select
allowEmpty: false
default: h1-text-align-start
options:
-
label: Default (Left/Start)
value: h1-text-align-start
-
label: Center
... | CSS |
local Plater = Plater
local addonId, platerInternal = ...
---@type detailsframework
local DF = DetailsFramework
local _
--> cvars just to make them easier to read
local CVAR_ENABLED = "1"
local CVAR_DISABLED = "0"
--> cache some common used member strings for better reading
local MEMBER_UNITID = "namePlateUnitToken"
... | Lua |
but include escape sequences in the formatted value so that the Plot class will draw the separators as small super-scripts.<br>
"d": Include a degrees field. Expressing the angle purely in degrees is also the default if none of "h", "m", "s" or "t" are given.<br>
"h": Express the angle as a time and include an hours fi... | HTML |
r29, 0x10(r1)
/* 80259B20 00255780 9B A5 0A 37 */ stb r29, 0xa37(r5)
/* 80259B24 00255784 80 A9 16 38 */ lwz r5, 0x1638(r9)
/* 80259B28 00255788 9B A5 0A 38 */ stb r29, 0xa38(r5)
/* 80259B2C 0025578C 81 09 16 38 */ lwz r8, 0x1638(r9)
/* 80259B30 00255790 80 A8 00 64 */ lwz r5, 0x64(r8)
/* 80259B34 00255794 60 A5 ... | Assembly |
expect(eventData[13].pitch[0]).toEqual("C");
expect(+eventData[13].pitch[1]).toEqual(3);
expect(eventData[13].velocity).toEqual(100);
// 3 + 133 do agogo = 116
expect(eventData[14].data[2]).toEqual(MidiInstrument.taikodrum);
// ,
expect(eventData[15].data[2]).toEqual(MidiInstrument["church-organ"]);
... | Typescript |
},
}
}
func resourceActiveStandbyPoolsRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
cfg := meta.(*config.Config)
region := cfg.GetRegion(d)
var mErr *multierror.Error
var (
listActiveStandbyPoolsUrl = "v3/{project_id}/elb/master-slave-pools"
listActiveStandbyPoolsP... | Go |
ND_TENSOR_EQUAL(float, cutlass::layout::ColumnMajor);
// double
BIND_TENSOR_EQUAL(double, cutlass::layout::RowMajor);
BIND_TENSOR_EQUAL(double, cutlass::layout::ColumnMajor);
// half_t
BIND_TENSOR_EQUAL(cutlass::half_t, cutlass::layout::RowMajor);
BIND_TENSOR_EQUAL(cutlass::half_t, cutlass::la... | C |
te()[i] }
const (
// Light, Neutral and Dark are three color tones used to fill in widgets
// such as buttons, menu bars and panels.
Light = PaletteIndex(0)
Neutral = PaletteIndex(1)
Dark = PaletteIndex(2)
// Accent is the color used to accentuate selections or suggestions.
Accent = PaletteIndex(3)
// F... | Go |
if (p.firstChild()) {
node.parentNode.insertBefore(p, node);
p = UE.uNode.createElement('p');
} else {
node.parentNode.insertBefore(tmpNode, node);
}
... | JavaScript |
ockpitButton == 0 && _hfChannelDCockpitButton == 0)
{
return _hfChannelACommand.GetIncCommand();
}
if (_hfChannelACockpitButton == 1)
{
return _hfChannelBCommand.GetIncCommand();
... | C# |
TURE_2D, gl.createTexture());
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.NEAREST);
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST);
// gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
// gl.texParameterf(gl.TEXTURE_2D, gl.TEXTURE_WR... | Typescript |
dex} className="profile-course-item">
{curso.nombre}
</li>
))}
</ul>
<h2 className="profile-section-title">Progreso</h2>
<div className="progress-bar">
<div
className="progress"
style={{ width: `${userInfo.pr... | JavaScript |
"terminate_plan_requests": [
{
"plan_id": "1"
},
{
"plan_id": "2"
}
]
}
`,
version.AppName,
),
),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
return err
}
depositStr, err := cmd.Flags().G... | Go |
List());
// 0xF0, ResponsePet P(0F 01)
// RequestFieldEnter
//session.Send("16 00 00 41 75 19 03 00 01 8A 42 0F 00 00 00 00 00 00 C0 28 C4 00 40 03 44 00 00 16 44 00 00 00 00 00 00 00 00 55 FF 33 42 E8 49 01 00".ToByteArray());
session.Send(FieldEnterPacket.RequestEnter(character));
... | C# |
/*
* Copyright 2006 Michael Ellerman, IBM Corporation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#inc... | C |
ackground-color: rgb(255, 115, 0);
}
form.answer input {
margin: 0 0 15px 0;
box-sizing: border-box;
width: 60%;
}
/* popup - new game */
.popup-new-game {
background: rgba(64, 64, 64, .9);
border-radius: 0px;
text-align: center;
}
.popup-new-game p {
color: #ececec;
text-align: cente... | CSS |
eNode,
"descendant::hy:exclude[@id=\"" + tcName
+ "\"]");
if (excludes.getLength() != 0) {
result = true;
}
}// end else
}// end if named type located
} catch (TransformerException e) {
// Carry on.
result = false;
}
}
return result;
}
/**
*/
private... | Java |
% Get the fracture tip nodes
fractiNodes = zeros(2);
fractiNodes(1,:) = elem.fracture{i}(1).node(1,:);
fractiNodes(2,:) = elem.fracture{i}(nfracSeg).node(2,:);
% Add to the element nodes
elemNodes = [elemNodes;frac... | HTML |
animals_nature_hexcodes = {
'1F435',
'1F412',
'1F98D',
'1F9A7',
'1F436',
'1F415',
'1F9AE',
'1F415-200D-1F9BA',
'1F429',
'1F43A',
'1F98A',
'1F99D',
'1F431',
'1F408',
'1F408-200D-2B1B',
'1F981',
'1F42F',
'1F405',
'1F406',
'1F434',
'1F40E',
'1F984',
'1F993',
'1F98C',
'1F42... | Lua |
see <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package com.t8rin.imagetoolboxlite.feature.draw.domain
sealed class DrawMode(open val ordinal: Int) {
data object Neon : DrawMode(2)
data object Highlighter : DrawMode(3)
data object Pen : DrawMode(0)
sealed class PathEffect(override val ordinal:... | Kotlin |
stom_allowedweaponnames" },
{ 0xF4D17E15B63FD592, "custom_ammo_function" },
{ 0x3342C3E7CEA65275, "custom_animscript" },
{ 0x7163C555D2CDDB27, "custom_arrival_animmode" },
{ 0x2B948E27A172ADB7, "custom_attach_00" },
{ 0x2B948D27A172AB84, "custom_attach_01" },
{ 0x2B949027A172B21D, "custom_attach... | C++ |
_co_u32 v8, s2, s6, v8
v_add_co_ci_u32_e64 v9, s2, s7, v9, s2
global_load_ushort v8, v[8:9], off
BB73_12:
s_or_b32 exec_lo, exec_lo, s3
v_or_b32_e32 v6, 1, v6
v_cmp_gt_u32_e64 s2, 0x177, v6
v_mov_b32_e32 v6, 0xfbff
s_and_b32 s1, s2, s1
s_and_saveexec_b32 s3, s1
s_cbranch_execz BB73_14
v_add_nc_u32_e32 v9, 0xc... | Assembly |
name,
json.damage_relations,
json.move_damage,
json.pokemon,
json.moves
);
}
}
import Schema, { DateType } from "../src";
it("should extend the Schema methods", () => {
const NewSchema = Schema.extend("something", () => new DateType());
const date = Date... | Typescript |
up * (2 + ctx.z * 0.3) + car.side * (ctx.x * -1), car.look + car.side * (ctx.x * 0.3), nil, 45)
end):bind({x = 0, z = 0})}, defaultCallbackExteriorCamera)
addDefaultView('Camera', 'Track camera', 64 + 128, nil,
{vec2(640, 640), function (shot, carIndex) shot:updateWithTrackCamera(carIndex) end}, defaultCallback... | Lua |
@LINE-1]]:{{[0-9]+}}: error: src1 immediate operand invalid for instruction
v_add3_u32_e64_dpp v5, v1, s2, v3 quad_perm:[3,2,1,0] row_mask:0xf bank_mask:0xf
// GFX11: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
v_add3_u32_e64_dpp v5, v1, 42, v3 quad_perm:[3,2,1,0] row_mask:0xf bank_mask:0xf
// GFX... | Assembly |
ResponseData = new ErrorResponseData<>(code, message);
ExceptionUtil.fillErrorResponseData(errorResponseData, throwable, ROOT_PACKAGE_NAME);
return errorResponseData;
} else {
return new ErrorResponseData<>(code, message);
}
}
/**
* 获取请求参数不正确的提示信息
*... | Java |
m_db);
query.prepare(QLatin1String("SELECT value FROM settings WHERE key = ?"));
query.addBindValue(effectiveKey);
query.exec();
if (query.next()) {
value = query.value(0);
if (debug_settings) {
qDebug() << "Retrieved:" << effectiveKey << "=" << v... | C++ |
14<br>Msps|Range 1, range 2 or range 3|
1. GPIO speed depends on V DD voltage. Refer to _Table 56: I/O AC characteristics_ for more information about
I/O speed.
2. CPU frequency changes from initial to final must respect "fcpu initial <4*fcpu final". It must also respect 5
μs delay between two changes. For example ... | Markdown |
ata);
Type = (SlotType5)data[2];
Version = version;
Slots = ReadSlots(data[4..]);
}
private EncounterSlot5[] ReadSlots(ReadOnlySpan<byte> data)
{
const int size = 4;
int count = data.Length / size;
var slots = new EncounterSlot5[count];
for (int i = ... | C# |
t checked). 8-byte
* alignment is guaranteed by normal malloc calls.
*
* Parameters:
* alignment - Requested alignment.
* size - Size (in bytes) of the memory region to be allocated.
*
* Return Value:
* Address of the allocated address. NULL, if allocation fails.
*
*******************************... | C |
0 1 0 288 0zm-76.7-43.3c6.2 6.2 6.2 16.4 0 22.6l-72 72c-6.2 6.2-16.4 6.2-22.6 0l-40-40c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L480 385.4l60.7-60.7c6.2-6.2 16.4-6.2 22.6 0z' /%3E %3C/svg%3E") }
.fa-house-circle-exclamation:before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 640 512' xmlns='http://ww... | CSS |
sidebar-height);
overflow: hidden;
padding: 0;
text-align: center;
top: 0;
width: 100%;
> .inner {
@include vendor('flex-direction', 'row');
@include vendor('align-items', 'stretch');
height: inherit;
line-height: inherit;
... | CSS |
GESA_UNSUPPORTED;
}
if (ChannelPtr->TechType != DDR3_TECHNOLOGY) {
return AGESA_UNSUPPORTED;
}
if ((ChannelPtr->RegDimmPresent != 0) || (ChannelPtr->SODimmPresent != 0)) {
return AGESA_UNSUPPORTED;
}
PsPtr->MemPDoPs = MemPDoPsUC32_3;
PsPtr->MemPGetPORFreqLimit = MemPGetPORFreqLimitUC32_3;
return... | C |
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Font data.
*
* Size: 8 Style: Normal
* Included characters:
* !"#$%&'()*+,-./0123456789:;<=>?\x0040ABCDEFGHIJ... | C |
释一下什么是随机森林,它在机器学习中有什么应用?|
|数据挖掘|如何使用聚类分析来发现数据集中的隐藏规律?|
|深度学习|如何使用递归神经网络来生成语言模型?|
|强化学习|解释一下什么是Q-learning算法,它在机器人控制中有什么应用?|
|图像处理|如何使用霍夫变换来检测图像中的直线和圆形?|
|自动驾驶|如何使用激光雷达来获得车辆周围环境的三维信息?|
|人工智能伦理|人工智能在医疗领域有哪些应用?这些应用可能带来哪些伦理问题?|
|大数据分析|如何使用Hadoop和Spark来处理海量数据?|
| 股票行情数据分析 | 给定一段时间内的股票行情数据,如何计算这段时间内股票的收益率和波动率? ... | Markdown |
o_alipay_dict'):
params['reject_reason'] = self.reject_reason.to_alipay_dict()
else:
params['reject_reason'] = self.reject_reason
return params
@staticmethod
def from_alipay_dict(d):
if not d:
return None
o = ServicePromoBaseVO()
... | Python |
related.length==0){
return 0
}
const all = related.map(v => minTime(v[0], roads) + v[2]);
const res = Math.min(...all);
dp[n] = res;
return res;
}
const min = minTime(n-1, roads);
console.log(min,'xxx')
}
const roads = [[0, 6, 7], [0, 1, 2], [1, 2, 3], [1, 3, 3], [6, 3, 3], [3, 5,... | Typescript |
SeekTable.html">FLAC::Metadata::SeekTable</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classFLAC_1_1Metadata_1_1SimpleIterator.html">FLAC::Metadata::SimpleIterator</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classFLAC_1_1Metadata_1... | HTML |
namespace FinalSuspect.Helpers;
public static class ColorHelper
{
private const float MarkerSat = 1f;
private const float MarkerVal = 1f;
private const float MarkerAlpha = 0.2f;
public const string AuthorColorHex = "#cdfffd";
public const string FSColorHex = "#cecdfd";
public static readonly... | C# |
nts[-1]:
if column not in indents:
raise IndentationError(
"unindent does not match any outer indentation level",
("<tokenize>", lnum, pos, line))
tag = tags[len(indents)-2]
indents = indents[:-1]
... | Python |
RLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$f = curl_exec($ch);
$header = curl_getinfo($ch);
if($f AND $header['http_code'] == 200){
return array(true,$f);
}else{
return false;
}
curl_close($c... | Markdown |
(t, envelope[0].Id, span1.Id)
assert.Equal(t, envelope[1].Id, span3.Id)
}
func TestSpanEnvelopeShouldAllowLargeSpans(t *testing.T) {
// a large span is 682 bytes long, in theory, it should not fit the envelope, however,
// we should allow 1 per envelope just to make sure ALL spans are sent.
spans := []*proto.Span{... | Go |
)
- [`contextmenu`](/zh-CN/docs/Web/API/Element/contextmenu_event)
---
title: 使用 WebRTC 数据通道
slug: Web/API/WebRTC_API/Using_data_channels
l10n:
sourceCommit: 6660c82bd2d0201039082895955d3a1d681dae72
---
{{DefaultAPISidebar("WebRTC")}}
在本指南中,我们将探讨如何向对等连接添加数据通道,然后可以使用该通道安全地交换任意数据;即,我们希望交换的任何类型和格式的数据。
> [!NOTE]
> 由于所... | Markdown |
] Status: {errorResponse.error.error_code}");
Trace.WriteLine(errorResponse.error.error_message);
// if (errorResponsePayload.TryGetValue("status", out string status))
// {
// if (errorResponsePayload.TryGetValue("error", out string errorPayloadString))
// {
... | C# |
ax % largeDivisor === 0) {
largeDivisors.unshift();
}
}
}
return divisors.concat(largeDivisors);
}
export function calculatePatchSize(patchSize: PatchSizeConfig, { x, y }: Point): Point {
const wideSide = Math.max(x | 0, y | 0) | 0;
const nrOfPatchesList = [8, 10, 1... | Typescript |
tInstance(UserIdentityCodec.class));
tokenManager1.startAndWait();
tokenManager2.startAndWait();
long now = System.currentTimeMillis();
UserIdentity ident1 = new UserIdentity("testuser", UserIdentity.IdentifierType.EXTERNAL,
Lists.newArrayList("users", "admins"), now,
now + 60 * 60 * 10... | Java |
move("down");
move("backward");
}
// TODO we should move backward when there's one bot too
// clean this code up
if (canMove("up") && y <= closestEnemyBot.y) {
move("up");
}
if (canMove("down") && y >= closestEnemyBot.y) {
move("down");
}
if (canMove("backwar... | Typescript |
np->fdp->device, inet_ntoa(bp->udpio->uih_src_addr));
printf("%s\n", inet_ntoa(bp->udpio->uih_dst_addr));
if (debug >= 2) printdhcp(bp->dhcp);
}
/* Can we do something with this DHCP packet? */
if ((r= servdhcp(np, bp, r)) > 0) {
/* Yes, we have something to send somewhere. */
if (send(np... | C |
icate: " + err.Error())
}
opts := x509.VerifyOptions{
DNSName: "mail.google.com",
Roots: roots,
}
if _, err := cert.Verify(opts); err != nil {
panic("failed to verify certificate: " + err.Error())
}
}
func ExampleParsePKIXPublicKey() {
const pubPEM = `
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQE... | Go |
Instant) -> Self {
Self { instant }
}
}
impl Sealed for InstantWrapperImpl {}
impl InstantWrapper for InstantWrapperImpl {
fn duration_since(&self, earlier: &dyn InstantWrapper) -> Duration {
self.instant.duration_since(earlier.to_inner())
}
fn elapsed(&self) -> Duration {
sel... | Rust |
're right.<br>
<br>
(Annoying wedding planner enters)<br>
<br>
WEDDING PLANNER: All rightie, everybody look at me. Good. All right, its time. Bridesmaids
and ushers let's see two lines, thank you.<br>
<br>
RACHEL: Okay, I'll see you after the thing.<br>
<br>
ROSS: Okay, good luck (kisses her and leaves)<br>
<br>
RACHEL... | HTML |
.align 3
.section .text.init
.globl _start
.globl _supervisor
.globl _mtrap
.globl clean_loop
.globl time_interupt
.globl encall_from_s
.globl exit
.globl is_int
.globl other_trap
.extern start_kernel
.extern stack_top
.extern trap_s
.extern bss_start
.extern bss_end
.extern _end
.extern paging_init
.extern init_stack_... | Assembly |
с помощью mapper'a, там все String. Поэтому если потом сделать restore,
// то для него будут объекты другие (int, long, enum), а для deserialize - все String.
// Чтобы в snapshot всегда хранились String в value необходимо сделать mapper.readValue(). Тогда
// десериализация для deser... | Kotlin |
/*
* Copyright (c) 2010-2015 Balabit
* Copyright (c) 2010-2015 Viktor Juhasz <viktor.juhasz@balabit.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 t... | C |
2-square_big-300x300.jpg 300w, /wp-content/uploads/2022/11/FLASH-HASH-2-square_big-1024x1024.jpg 1024w, /wp-content/uploads/2022/11/FLASH-HASH-2-square_big-150x150.jpg 150w, /wp-content/uploads/2022/11/FLASH-HASH-2-square_big-768x768.jpg 768w, /wp-content/uploads/2022/11/FLASH-HASH-2-square_big-610x610.jpg 610w, /wp-co... | HTML |
"rukkawa1481300140",
"VUzwfeDA4NgBwXDb",
"1ts2yjdr",
"TRAVIANMANIA_2001929394",
"Oe37bRBN8",
"qazwsxedc2846",
"granada21",
"khanh1375",
"Donovan6",
"zaqWSX12",
"zarery29",
"a123456789",
"alejor123",
"Techno2009",
"d2j21s32385",
"boubourse123",
"771401832ba",
"glfhdh12",
"amini2005... | JavaScript |
{
outputText("filling ");
if (player.cocks.length > 1) outputText("each of ");
outputText("your " + player.multiCockDescriptLight() + " with the desire to breed. You get a bit hornier when you realize your sex-drive has gotten a boost.");
}
//(COOCH)
else if (player.hasVagina()) outputText(... | Typescript |
ers in large paragraphs -- https://discord.com/channels/686053708261228577/702656734631821413/822257712825237524 */
/** ________ 2.3.8 Fix padding of transcluded blocks in lists */
/** ____ 2.4 Font Formatting */
/** ________ 2.4.1 Make Mathjax Font Larger */
/** ________ 2.4.2 Hyphenation & Justification -- https://fo... | CSS |
import os
from parglare import Grammar, Parser
this_folder = os.path.dirname(__file__)
model_str = '''
modelID 42
component myComponent {
in SomeInputSlot
out SomeOutputSlot
}
'''
def test_imported_actions_connect_by_symbol_name():
g = Grammar.from_file(os.path.join(this_folder, 'by_symbol_name/model.p... | Python |
split: sizes don't match");
assert!(
usize::checked_add(Y, Z).is_some(),
"Array cannot be split: length would overflow"
);
// Make doubly sure that nothing funky is going on with the memory representations
assert!(core::mem::size_of::<Wrapper<T, Y, Z>>() == core::mem::size_of::<[T; X]>()... | Rust |
, topDocs.scoreDocs[0].doc);
}
public void testMsmAndRanges_disjunction() throws Exception {
// Recreates a similar scenario that made testDuel() fail randomly:
// https://github.com/elastic/elasticsearch/issues/29393
List<LuceneDocument> docs = new ArrayList<>();
BooleanQuery.B... | Java |
return int(m.out - m.out_begin); }
inline int Spc_Dsp::read( int addr ) const
{
assert( (unsigned) addr < register_count );
return m.regs [addr];
}
inline void Spc_Dsp::update_voice_vol( int addr )
{
int l = (int8_t) m.regs [addr + v_voll];
int r = (int8_t) m.regs [addr + v_volr];
if ( l * r < m.surround_thre... | C |
X_set_rsa_oaep_md
#define EVP_PKEY_CTX_set0_rsa_oaep_label EVP_PKEY_CTX_set0_rsa_oaep_label
#endif
// Nodejs compatibility section (hidden).
//
// These defines exist for node.js, with the hope that we can eliminate the
// need for them over time.
#define EVPerr(function, reason) \
ERR_put_error(ERR_LIB_EVP, 0, re... | C |
adient(270deg,hsla(0,0%,100%,0),hsla(0,0%,100%,0) 20%,hsla(0,0%,50.2%,0.03) 0,hsla(0,0%,50.2%,0.08) 50%,hsla(0,0%,50.2%,0.03) 80%,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,0));background-size:50px 100%;background-size:var(--q-virtual-scroll-item-width,50px) var(--q-virtual-scroll-item-height,100%)}.q-ripple{width:100%;height:... | CSS |
akan disumbangkan kepada badan amal berdaftar).';
@override
String get githubButtonText => 'Sokong kami di GitHub';
@override
String get donateButtonText => 'Sokong kami di Ko-Fi';
@override
String get socialInstagramButtonText => 'Ikuti kami di Instagram';
@override
String get shareButtonText => '... | Dart |
/ARL để dùng cho ứng dụng khác.", "Copied": "Đã sao chép", "Log out": "Đăng xuất", "Due to plugin incompatibility, login using browser is unavailable without restart.": "Công cụ plugin không tương thích, cần khởi động lại để có thể đăng nhập bằng trình duyệt.", "(ARL ONLY) Continue": "(Chỉ dùng ARL) Tiếp tục", "Log out... | Dart |
ents)], nil, nil, nil)
}
}
})
}
}
}
func TestPriorityQueue_MoveAllToActiveOrBackoffQueueWithQueueingHint(t *testing.T) {
now := time.Now()
p := st.MakePod().Name("pod1").Namespace("ns1").UID("1").Obj()
tests := []struct {
name string
podInfo *framework.QueuedPodInfo
hint framework.Queuein... | Go |
CISION_ERROR:
ephems.append(TruthEphemeris.fromECIVector(**ex_ephem))
return ephems
@pytest.fixture(name="matched_epoch_db")
def createMatchedDB(
self,
epochs: list[Epoch],
agent: AgentModel,
matched_ephems: list[TruthEphemeris],
):
"""Create a DB... | Python |
Al4
dbra d5,Ed_Al2
Ed_Al3:
bsr Asc2Bin
cmp.w #0,Binary_Word
bcs Ed_Al4
cmp.w #9999,Binary_Word
bhi Ed_Al4
move.w Binary_Word,Accs_Cntr
Ed_Al4:
move.w #0,No_Edit
bsr CrLf
Ed_Al_Xit:
rts
Edt_Cnt_Msg:
dc.b Cr,Lf,"Enter New Access... | Assembly |
ETHODIMP SvgPreviewHandler::Unload()
{
TerminateProcess(m_process, 0);
return S_OK;
}
#pragma endregion
#pragma region IPreviewHandlerVisuals
IFACEMETHODIMP SvgPreviewHandler::SetBackgroundColor(COLORREF color)
{
HBRUSH brush = CreateSolidBrush(WindowsColors::is_dark_mode() ? powerpreviewConstants::DARK_... | C++ |
w (a2),d2
bgt.s .try_right\@
move.l lptr(a2),d1 ;empty left node?
bne.s .nextnode\@
move.l a1,lptr(a2)
bra.s .done\@
.empty\@ move.l a1,(a6) ;root=object is first entry
bra.s .done\@
.try_right\@ move.l rptr(a2),d1 ;empty right node?
bne.s .nextnode\@
move.l a1,rptr(a2)
.done\@
endm
insert_ptr ... | Assembly |
int("ConstantLocale")
val LOCAL_NAME = Locale.getDefault().toString()
val SCREEN_INFO = Info(0, 0, 1, 200)
data class Info(
var width: Int, var height: Int, var scale: Int, var dpi: Int
)
fun isSupportVoiceCall(): Boolean {
// https://developer.android.com/reference/android/media/MediaRecorder.AudioSource#VOI... | Kotlin |
a href="/cpp/constexpr.html#constexpr-variables" class="sidebar-link">constexpr variables</a></li><li class="sidebar-sub-header"><a href="/cpp/constexpr.html#static-if-statement" class="sidebar-link">Static if statement</a></li><li class="sidebar-sub-header"><a href="/cpp/constexpr.html#constexpr-functions" class="side... | HTML |
npx claude-flow hook session-end --session-id "dev-session-2024"
```
### With full export
```bash
npx claude-flow hook session-end -s "feature-auth" --export-metrics --generate-summary
```
### Quick close
```bash
npx claude-flow hook session-end -s "quick-fix" --save-state false --cleanup-temp
```
### Complete per... | Markdown |
Address {
b.addrs[change.addr] = struct{}{}
} else if change.opt == optDelBlackAddress {
delete(b.addrs, change.addr)
}
}
b.blacklistChanges = make([]blacklistChange, 0)
return nil
}
func (b *blacklist) GetBlackAddrs() []common.Address {
b.rwMu.RLock()
defer b.rwMu.RUnlock()
blacklist := make([]common... | Go |
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 writing, software
// distributed under the License is distrib... | Rust |
ekly schedule', () => {
const incomeExpenseSource = [ { 'amount': 100, 'schedule': IncomeExpenseSchedule.WEEK } ]
expect(CalculateMonthlyIncomeExpense
.calculateTotalAmount(incomeExpenseSource))
.to.equal(433.33)
})
it('should calculate total amount using biweekly schedule', () => {
const... | Typescript |
11',
},
-- Center buttons
['CP_X_LEFT'] = {
[''] = 'OPENALLBAGS',
['SHIFT-'] = 'TOGGLEWORLDMAP',
['CTRL-'] = 'CP_CAMZOOMOUT',
['CTRL-SHIFT-'] = 'CP_CAMZOOMIN',
},
['CP_X_CENTER'] = {
[''] = 'TOGGLECHARACTER0',
['SHIFT-'] = 'TOGGLESPELLBOOK',
['CTRL-'] = 'TOGGLETALENTS',
},... | Lua |
delta = calculateDelta(tickValue, ticks);
}
const logDelta = log10(Math.abs(delta));
const numDecimal = Math.max(Math.min(-1 * Math.floor(logDelta), 20), 0);
const options = {notation, minimumFractionDigits: numDecimal, maximumFractionDigits: numDecimal};
Object.assign(options, this.options.ticks.f... | JavaScript |
}
#[test]
fn it_calculates_basins_to_match_fixtures() {
let map = HeightMap {
points: vec![
vec![2, 1, 9, 9, 9, 4, 3, 2, 1, 0],
vec![3, 9, 8, 7, 8, 9, 4, 9, 2, 1],
vec![9, 8, 5, 6, 7, 8, 9, 8, 9, 2],
vec![8, 7, 6, 7, 8, 9, 6, 7... | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.