content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
#__advance.#__wrap_iter.p#variant.#shared_ptr.5Token~uL~~~.qr#__wrap_iter.p#variant.#shared_ptr.n0~uL~~i31@std@random_access_iterator_tag ; std::__advance<__wrap_iter<variant<shared_ptr<Token>, unsigned long long>*>>(__wrap_iter<variant<shared_ptr<Token>, unsigned long long>*>&, int, std::random_access_iterator_tag)
... | Assembly |
ted, and new random ones will replace the others.")]
public ModifyState InheritAbilitySetting { get; set; } = ModifyState.One;
/// <summary>Toggles inheriting abilities from the pre-evolution that evolves into this species/form.</summary>
[Category(Evolutions), Description("Toggles inheriting abilities fro... | C# |
{
if (buffer_length < UUID_STRING_BUFFER_LENGTH) return 0 ;
return snprintf(buffer, buffer_length, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x", uuid[0], uuid[1], uuid[2],
uuid[3], uuid[4], uuid[5], uuid[6], uuid[7], uuid[8], uuid[9], uuid[10], uuid[11], uuid[12], uuid[13], uuid[14],... | C++ |
he smallest chunk multiple that is >= s. */
#define CHUNK_CEILING(s) \
(((s) + chunksize_mask) & ~chunksize_mask)
/* Return the smallest cacheline multiple that is >= s. */
#define CACHELINE_CEILING(s) \
(((s) + (CACHELINE - 1)) & ~(CACHELINE - 1))
/* Return the smallest quantum multiple that is >= a. */
... | C |
*********************************/
#ifndef PALM_1
SOAP_FMAC1
int
SOAP_FMAC2
soap_send_raw(struct soap *soap, const char *s, size_t n)
{ if (!n)
return SOAP_OK;
#ifndef WITH_LEANER
if (soap->fpreparesend && (soap->mode & SOAP_IO) != SOAP_IO_STORE && (soap->mode & SOAP_IO_LENGTH) && (soap->error = soap->fpreparesen... | C++ |
onsequence of the trigger
// for now we assume to get the last one.
std::string lastDistributionTriggered();
bool atLeastADistTriggered();
int returnDimensionality(const std::string dist_alias);
int returnDimensionality(const char * dist_alias);
protected:
std::map < std::string, int > _vector_pos_map;
... | C |
.
class VectorSearchStatistics {
/// When `indexUsageMode` is `UNUSED` or `PARTIALLY_USED`, this field explains
/// why indexes were not used in all or part of the vector search query.
///
/// If `indexUsageMode` is `FULLY_USED`, this field is not populated.
core.List<IndexUnusedReason>? indexUnusedReasons;
... | Dart |
"]},54659:t=>{t.exports=["تغيير لون الإيقاف {title}"]},89182:t=>{t.exports=["تغيير مستوى الإيقاف {title}"]},82224:t=>{t.exports=["تغيير سعر الإيقاف {title}"]},88383:t=>{t.exports=["تغيير لون نص نجاح {title}"]},26967:t=>{t.exports=["تغيير لون خلفية نجاح {title}"]},62243:t=>{t.exports=["تغيير وضوح نسبة تغير {title}"]},45... | JavaScript |
ary>
public string ColorSquaresRgb { get; set; }
/// <summary>
/// Gets or sets the price adjustment
/// </summary>
public decimal PriceAdjustment { get; set; }
/// <summary>
/// Gets or sets the weight adjustment
/// </summary>
public decimal We... | C# |
canvas,
node1,
node2,
distance,
maxGroupDistance,
groupId,
1.0, // 강도 계수 (1.0 = 100% 강도)
);
}
}
}
}
});
// 2. 인접 그룹 간 노드 연결 - 약한 연결
for (int i = 0; i <... | Dart |
арым богам этой земли. Богам, давным-давно низвергнутым.$B$BМеч Властителя, что к югу отсюда, – место, где пал один из этих древних богов.$B$BПойди туда и поищи других служителей культа Сумеречного Молота.$B$BВозьми этот фиал виденья. Используй его для создания гадальной чаши, когда разведаешь все у Меча Властителя. По... | Lua |
# this python file will take in a csv file of scraped reviews and clean it so it can be used for modeling
import csv
import string
import nltk # pip install --user -U nltk [used for removing stop words and filtering stem words]
nltk.download('stopwords')
from nltk.corpus import stopwords
from nltk.stem.porter import ... | Python |
rust `bool` is undefined behavior.
///
/// We require `Copy` to also rule out anything that implements `Drop`.
///
/// References are inherently non-Pod, so we can require a 'static lifetime.
pub unsafe trait Pod: Copy + 'static {}
/// Convert to a slice of raw bytes.
pub fn to_u8_slice<T>(slice: &[T]) -> &[u8]
where... | Rust |
from collections import deque
# Time: O(n)
# Space: O(n)
# Step 1: Define the TreeNode class
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
# Step 2: Define the function
def largest_node_binary_tree(root):
# Initial... | Python |
6.92a1.73 1.73 0 00-1.73-1.73z"/></svg>';
static const String comment_quotes =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" preserveAspectRatio="xMidYMid meet" viewBox="0 0 100 100"><path fill="currentColor" d="M88.466 16.936a3.362 3.362 0 00-3.34-... | Dart |
de "ns3/socket-factory.h"
#include "ns3/ipv4-raw-socket-factory.h"
#include "ns3/udp-l4-protocol.h"
#include "ns3/udp-header.h"
#include "ns3/olsr-header.h"
#include "ns3/simple-net-device-helper.h"
#include "ns3/simple-net-device.h"
namespace ns3 {
namespace olsr {
TcRegressionTest::TcRegressionTest () :
TestCase ... | C++ |
lause
//fmt.Printf("end of clause\n")
if oSign == 0 {
//fmt.Printf("\tunit...\n")
// unit
if cdat[q] == m {
cdat[q], cdat[q+1] = cdat[q+1], m
}
t.Assign(cdat[q], q)
if j != i {
mWatches[j] = w
}
j++
break
}
// oSign == -1
// co... | Go |
;
for (var i = 0; i < numColors; ++i) {
final b = input.readByte();
final g = input.readByte();
final r = input.readByte();
final a = input.readByte(); // ignored
palette!.setRgba(i, r, g, b, a);
}
}
void decodePixel(
InputBuffer input, void Function(num r, num g, num b,... | Dart |
T=zn(u),O=hp(n)&&_o(p),H=O?.length?lf(Vo(O),p.thisType):void 0,J=Wr(p),de=a.parent?iW(a):Mr(a,16384);return LLe(n,T,J,H,p,h,de,B0(a),Ca(a),!1,fc(c))}function sA(n){return ac(n)&1?n.links.target:n}function Ytt(n){return Pr(n.declarations,a=>a.kind===260||a.kind===261)}function $tt(n,a){var c,u,p,h;let T=Jo(a);e:for(let ... | JavaScript |
f18, f22, f4
fmadd f5, f19, f23, f5
fmadd f6, f19, f22, f6
fmadd f7, f18, f23, f7
LFD f18, 6 * SIZE(AO)
LFD f19, 7 * SIZE(AO)
LFD f22, 6 * SIZE(BO)
LFD f23, 7 * SIZE(BO)
fmadd f0, f16, f20, f0
fmadd f1, f17, f21, f1
fmadd f2, f17, f20, f2
fmadd f3, f16, f21, f3
LFD f16, 8 * ... | Assembly |
0 万人。文化大革命中群众说诃南饿死 300 万,实际情况只会高于此数。曹树基先生用他的方法计算结果是,1959-1961 年,河南省非正常死亡人口为 293.9 万人,与我的分析相近。
河南饿死了这么多人,作为省委第一书记中吴芝圃却没有受到处分。中共中央对基层干部和高级干部采取了双重标准。
1961 年 1 月 30 日到 2 月 12 日,河南省委在郑州召开了省、地、县三级干部会议。这个会的内容是对河南省自 1958 年以来的问题进行揭露和批判,人们称之为所谓揭盖子会。这次会上除了揭露信阳问题以外,还揭露了河南省其它地区的饥荒问题,如豫东问题,密县问题,长葛县坡胡问题等。中共中南局第一书记陶铸、第二书记王任重参加了这次会议。... | Markdown |
loat a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfR... | JavaScript |
, 13
];
TABLE[s as usize]
}
#[macro_export]
macro_rules! println_err {
($($arg:tt)*) => {
match writeln!(&mut ::std::io::stderr(), $($arg)*) {
Ok(_) => (),
Err(e) => panic!("Unable to write to stderr: {}", e),
}
}
}
#[macro_export]
macro_rules! print_err {
... | Rust |
jne ca_epilogue
fstp st(0)
jmp ca_epilogue
ca_jumptable:
jmp [ca_jumpdata + 4 * ecx]
ca_jumpdata:
;; Do not insert anything here between label and jump table.
dd offset ca_epilogue ;; FFI_TYPE_VOID
dd offset ca_retint ;; FFI_TYPE_INT
dd o... | Assembly |
80A7D14C 96020314 */ lhu $v0, 0x0314($s0) ## 00000314
/* 01330 80A7D150 87B9004E */ lh $t9, 0x004E($sp)
/* 01334 80A7D154 24010002 */ addiu $at, $zero, 0x0002 ## $at = 00000002
/* 01338 80A7D158 304F0004 */ andi $t7, $v0, 0x0004 ## $t7 = 00000000
/* 0133C 80A7D15... | Assembly |
urple_active_SliderTrack, :root .t_sub_theme .t_dark .t_sub_theme .t_dark .t_purple_active_SliderTrack {--background:hsl(280, 41.2%, 20.0%);--backgroundHover:hsl(279, 43.8%, 23.3%);--backgroundPress:hsl(277, 46.4%, 27.5%);--backgroundFocus:hsl(280, 41.2%, 20.0%);--backgroundStrong:hsl(281, 37.5%, 16.5%);--backgroundTra... | CSS |
a KMS Key: <code>"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"</code> </p> </li> </ul>
*/
VolumeKmsKeyId?: string;
/**
* <p> Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more informat... | Typescript |
,
Err(e) => {
log::error!("[udp]failed to recvfrom remote: {}", e);
continue;
}
};
log::debug!("[udp]recvfrom remote {}", &raddr);
if let Err(e) = lis.send_to(&buf[..n], &laddr).await {
log::error!("[udp]failed to sendto clien... | Rust |
)
lwz r19, 192(SP)
lwz r18, 196(SP)
#endif
#endif
addi SP, SP, STACKSIZE
blr
EPILOGUE
#endif | Assembly |
tances.add(instance);
}
catch (Throwable ex) {
throw new IllegalArgumentException("Cannot instantiate " + type + " : " + name, ex);
}
}
return instances;
}
```
到这里spring.factories文件的定位、加载、部分类的实例化已经讲解完了,相信你已经对这一块有了一个清醒的认识。
GitHub源码:[https://github.com/mingyang66/spring-parent](https://github.com/ming... | Markdown |
_d_alt(struct ap_d *ap, float x, float y[])
{
float w0, wd, tmp, cc;
int d, idx;
tmp = -ap->c * x;
d = ap->d;
cc = ap->c;
while(d < ap->max_imp){
idx = (ap->idx - d) & MASK;
cc = cc * ap->c;
d = d + ap->d;
wd = ap->state[ idx ];
tmp += cc * wd;
... | C++ |
correct(bound);
mapper.add(bound);
mapper.map(bound, "fill-opacity:1.0;fill:rgb(255,255,255);stroke:rgb(0,0,0);"
"stroke-width:2"); // White
// Draw obstacles
for(const auto& it: obs) {
point_2d pt;
boost::geometry::assign_values(pt, it(0), it(1));
mapper.add(pt);
mapper.map... | C++ |
printf("%T write field 255 begin error: ", p), err)
WriteFieldEndError:
return thrift.PrependError(fmt.Sprintf("%T write field 255 end error: ", p), err)
}
func (p *CloneEvaluatorRequest) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("CloneEvaluatorRequest(%+v)", *p)
}
func (p *CloneEvalu... | Go |
(this => Tristate::Error);
(&**this).last().into()
}
#[no_mangle]
pub unsafe extern "C"
fn rs_bitvec_bs_b32_last(this: *const *const BitSlice<BigEndian, u32>) -> Tristate {
nullck!(this => Tristate::Error);
(&**this).last().into()
}
#[no_mangle]
pub unsafe extern "C"
fn rs_bitvec_bs_l32_last(this: *const *const BitS... | Rust |
*self == FULL_IE_A::FULL_IE_0
}
#[doc = "Checks if the value of the field is `FULL_IE_1`"]
#[inline(always)]
pub fn is_full_ie_1(&self) -> bool {
*self == FULL_IE_A::FULL_IE_1
}
}
#[doc = "Write proxy for field `FULL_IE`"]
pub struct FULL_IE_W<'a> {
w: &'a mut W,
}
impl<'a> FULL_IE_W<'a> {
#[doc = r"W... | Rust |
}
kotlin {
jvmToolchain(17)
}
/*******************************************************************************
* sora-editor - the awesome code editor for Android
* https://github.com/Rosemoe/sora-editor
* Copyright (C) 2020-2024 Rosemoe
*
* This library is free software; you can redistribute i... | Kotlin |
符,
11:TrustAsia 域名型多域名 SSL 证书,
12:TrustAsia 域名型(DV)通配符,
13:TrustAsia 企业型通配符(OV)SSL 证书(D3),
14:TrustAsia 企业型(OV)SSL 证书(D3),
15:TrustAsia 企业型多域名 (OV)SSL 证书(D3),
16:TrustAsia 增强型 (EV)SSL 证书(D3),
17:TrustAsia 增强型多域名(EV)SSL 证书(D3),
18:GlobalSign 企业型(OV)SSL 证书,
19:GlobalSign 企业型通配符 (OV)SSL 证书,
20:GlobalSign 增强型 (EV... | Java |
[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
self.w
}
}
#[doc = "Lock bit set by the TZ software for the CSI\n\nValue on reset: 0"]
#[derive(Clone, Copy, Deb... | Rust |
must be scipy or sklearn compatible
lower: only fetch lower case tokens
Returns:
An list of ([Embedding][whatlies.embedding.Embedding], score) tuples.
"""
if isinstance(emb, str):
emb = self[emb]
queries = self._prepare_queries(lower=lower)
d... | Python |
,
mob =
{
EURYTOS_PH =
{
[17420316] = 17420324, -- 27 -47 101
[17420321] = 17420324, -- 11 -47 99
},
POLYBOTES_PH =
{
[17420378] = 17420382, -- -59.370 -64.105 17.313
[17420381] = 17420382, -- -48.9... | Lua |
.length)),n=String(t);return Ou?Ou.call(e,n,r):e.slice(r,r+n.length)===n}}),re("String","startsWith");var Iu=function(t){return o(function(){return!!hn[t]()||"
"!="
"[t]()||hn[t].name!==t})},Tu=yn.start,ku=Iu("trimStart"),Lu=ku?function(){return Tu(this)}:"".trimStart;Lt({target:"String",proto:!0,forced:ku},{trimSt... | JavaScript |
collider)
toRemove.push(n)
}
// Spawn points
if (n.name.startsWith('Spawn')) {
this.spawns.push(n.position)
toRemove.push(n)
}
// Exits
if (n.name.startsWith('Exit')) {
const exit = this.world.createAt(Exit, n.position)
this.exits.push(exit)
toRemove.push(n)
}
// Set ... | Typescript |
1, "f1345rep8"},
{2, 95509}, -- Mantid Artifact Sonic Locator
{3, 87548}, -- Lorewalker's Lodestone
{4, 87549}, -- Lorewalker's Map
{6, 89795}, -- Lorewalkers Tabard
{17, 89363}, -- Disc of the Red Flying Cloud
},
},
... | Lua |
dhi_pi16(__m64 src)
{
return _mm_unpackhi_pi16(src, _mm_setzero_si64());
}
extern __inline __m64 FUNCTION_ATTRIBS
_mm_loadhi_pi16_f(__m64 src)
{
return _mm_unpackhi_pi16_f(_mm_setzero_si64(), src);
}
extern __inline __m64 FUNCTION_ATTRIBS
_mm_expand_alpha(__m64 pixel)
{
return _mm_shuffle_pi16(pixel, _MM_SHUFFL... | C |
=> {
describe('isXX', () => {
test('should validate Date', () => {
expect(isDate(new Date())).toBeTruthy()
expect(isDate(Date.now())).toBeFalsy()
})
test('should validate Object', () => {
expect(isObject({ name: 'test' })).toBeTruthy()
expect(isObject(null)).toBeFalsy()
})
... | Typescript |
_CUDA
# endif
// Visual C++
#elif defined(_MSC_VER)
# if _MSC_VER < 1600
# error "GLM requires Visual C++ 2010 or higher"
# elif _MSC_VER == 1600
# define GLM_COMPILER GLM_COMPILER_VC2010
# elif _MSC_VER == 1700
# define GLM_COMPILER GLM_COMPILER_VC2012
# elif _MSC_VER == 1800
# define GLM_COMPILER GLM_COMPILER_VC... | C++ |
in", "mnð", "nov", "okt", "sek", "sep", "sun", "tys", "utc", "am", "ar", "da", "nu", "pm", "vi", " ", "'", "+", ",", "-", ".", "/", ":", ";", "@", "[", "]", "d", "m", "s", "t", "v", "z", "|"},
})
fo_DK_Locale = merge(&fo_Locale, LocaleData{
Name: "fo-DK",
DateOrder: "DMY",
})
}
// Code is generated by scri... | Go |
d::Handle_CmdJumpThroughFleet");
call.Dump(SHIP__WARNING);
return PyStatic.NewNone();
}
PyResult BeyonceBound::Handle_CmdJumpThroughAlliance(PyCallArgs &call) {
//sm.StartService('sessionMgr').PerformSessionChange('jump', bp.CmdJumpThroughAlliance, otherShipID, beaconID, solarsystemID)
_log(SHIP__WARNI... | C++ |
: 2.0,
converged: true,
};
let an3 = Analyzed::<f64> {
mean: 3.0,
error: (0.1 * 0.1 + 0.2 * 0.2).sqrt(),
correlation_time: 2.0,
number_of_inputs: 1000,
converged: true,
};
let an4 = Analyzed::<f64> {
mean: 2.0,
error: (2.0 * 0.1 * 2.0 * 0.1... | Rust |
tiptext,
tooltipText);
}
if (!tooltipText.IsEmpty()) {
// specifying tooltiptext means we will always use the default tooltip
nsIPopupContainer* popupContainer =
nsIPopupContainer::GetPopupContainer(document->GetPresShell());
NS_ENSURE_STATE(popupContainer);
... | C++ |
ts[id] = &cloud.Price{
InstanceType: *insPrice.Instance.InstanceType,
ChargeType: *insPrice.Instance.InstanceChargeType,
VCpu: fmt.Sprintf("%v", *insPrice.Instance.CPU),
Memory: fmt.Sprintf("%v", *insPrice.Instance.Memory),
CvmPrice: &cloud.PriceItem{
UnitPrice: qPri... | Go |
rary(0.0, PARTICLE_SPEED_LIMIT),
},
ParticlePosition::RightBoundary => Particle {
x: canvas_width,
y: random_arbitrary(0.0, canvas_height),
size: random_arbitrary(1.0, PARTICLE_SIZE_LIMIT),
speed_x: random_arbitrary(-PARTICLE_SPEED_... | Rust |
a string")
}
// moves s in _s, but doesn't bind the value to _s
if let Some(_s) = s {
println!("Found another string")
}
// ignore values with .. in destructuring
struct Point {
x: i32,
y: i32,
z: i32,
}
... | Rust |
*/
cvt_s_d:
jal _C_LABEL(get_fs_d)
bne t1, DEXP_INF, 1f # is FS an infinity?
li t1, SEXP_INF # convert to single
sll t2, t2, 3 # convert D fraction to S
srl t8, t3, 32 - 3
or t2, t2, t8
b result_fs_s
1:
bne t1, zero, 2f # is FS zero?
bne t2, zero, 1f
beq t3, zero, result_fs_s # result=0
1:
jal _C_LAB... | Assembly |
// 2つ目以降の Binder インスタンス
tracked.register( binder );
}
}
}
}
/**
* 追跡されたバインダ
*
* @internal
*/
class Tracked {
private _updater: Updater;
private _curve: Curve;
private _binders: Set<Binder>;
private _invariance: Invariance;
private _listener: Curve.... | Typescript |
Repository/master/LLIconVersioning/Run-Error-1.jpg)](https://raw.githubusercontent.com/HDB-Li/HDBImageRepository/master/LLIconVersioning/Run-Error-1.jpg)
Search `asset catalog` in `Build settings`, double click and change the value to `appIcon`. Run again.
[) }
.also { println("Found ${it.size} minimal solutions using " +
"Probabilistic repair in ${clock.elapsedNow()}") }
println("Enumerative solver took ${clock.elapsedNow().inWholeMilliseconds}ms")
}
/*
./gradlew jvmTest --tests "ai.hypergraph.kaliningraph.parsing.BarHillelTest.t... | Kotlin |
= (
grid: Cell[][],
relativeX: number,
relativeY: number
) => {
let directions = [];
if (relativeY - 1 >= 0) directions.push("N");
if (relativeX + 1 < grid.length) directions.push("E");
if (relativeY + 1 < grid[0].length) directions.push("S");
if (relativeX - 1 >= 0) directions.push("W");
return dire... | Typescript |
"DisplayAttribute"}),"."]}),"\n",(0,r.jsxs)(n.li,{children:["Support for flag enums via the ",(0,r.jsx)(n.a,{href:"https://learn.microsoft.com/en-us/dotnet/api/system.flagsattribute?view=net-7.0",children:"FlagsAttribute"}),"."]}),"\n",(0,r.jsxs)(n.li,{children:["Support for skipping enum values completely with ",(0,r.... | JavaScript |
*
* <pre>
* Optional. Utilization thresholds pertaining to CPU utilization.
* </pre>
*
* <code>
* .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return The cpuThresholds.
*/... | Java |
using Machine.Fakes;
using Machine.Specifications.Runner.VisualStudio.Helpers;
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
namespace Machine.Specifications.Runner.VisualStudio.Specs.Execution
{
class WhenRunningAnAssemblyWithBehaviors : Wit... | C# |
#!/usr/bin/env python3
import rclpy
from rclpy.node import Node
from geometry_msgs.msg import Twist
from rclpy.duration import Duration
class KachakaFeedforwardControl(Node):
def __init__(self):
super().__init__('kachaka_feedforward_control')
# Create a Publisher that sends Twist type messages to ... | Python |
mainVerifier,
}, {
config: SelectorConfig{
Type: selectorTypeIterate,
Label: "iterate label",
Path: "iterate path",
Values: nil,
Min: fixedpoint.NewFromInt(0),
Max: fixedpoint.NewFromInt(-8),
Step: fixedpoint.NewFromInt(-1),
},
verify: stringDomainVerifier,
}, {
... | Go |
exoAudioLayout!!.visibility = VISIBLE
videoAudioPro.progress = currIndex
videoAudioImg.setImageResource(if (currIndex == 0) R.drawable.ic_volume_off_white_48px else R.drawable.ic_volume_up_white_48px)
}
/**
*
*/
private fun setBrightnessPosition(mMaxVolume: Int, currIndex: In... | Kotlin |
M);
}
str->q_append(SPIDER_ANSI_QUOTES_STR, SPIDER_ANSI_QUOTES_LEN);
str->q_append(SPIDER_SQL_COMMA_STR, SPIDER_SQL_COMMA_LEN);
}
#endif
#ifdef SPIDER_SQL_MODE_IGNORE_SPACE
if (sql_mode & MODE_IGNORE_SPACE)
{
if (str->reserve(SPIDER_IGNORE_SPACE_LEN + SPIDER_SQL_COMMA_LEN))
{
DBUG_RETURN... | C++ |
Limit{
ConnsInbound: 64,
ConnsOutbound: 128,
Conns: 128,
StreamsInbound: 512,
StreamsOutbound: 1024,
Streams: 1024,
Memory: 128 << 20,
FD: 256,
},
SystemLimitIncrease: BaseLimitIncrease{
ConnsInbound: 32,
ConnsOutbound: 64,
Conns: ... | Go |
on},
// Following tests come from MySQL doc.
{[]any{`["a", ["b", "c"], "d"]`, `$[1]`, 1}, `["a", ["b", "c", 1], "d"]`, nil},
{[]any{`["a", ["b", "c"], "d"]`, `$[0]`, 2}, `[["a", 2], ["b", "c"], "d"]`, nil},
{[]any{`["a", ["b", "c"], "d"]`, `$[1][0]`, 3}, `["a", [["b", 3], "c"], "d"]`, nil},
{[]any{`{"a": 1, "... | Go |
# coding=utf-8
import threading
from flask_babel import lazy_gettext
from mycodo.actions.base_action import AbstractFunctionAction
from mycodo.config import MYCODO_DB_PATH
from mycodo.config_translations import TRANSLATIONS
from mycodo.databases.models import Actions
from mycodo.databases.models import PID
from mycod... | Python |
0;
args->no_encode = 0;
args->noframe = 0;
args->jack_nports = 0;
args->jack_ringbuffer_secs = 3.0;
args->zerocompression = 1;
args->no_quick_subsample = 1;
args->cursor_color = 1;
args->have_dummy_cursor = 0;
args->xfixes_cursor ... | C |
#1871](https://github.com/NetApp/harvest/pull/1871))
- Bump Github.com/Docker/Docker From 23.0.1+Incompatible To 23.0.2+Incompatible In /Integration ([#1886](https://github.com/NetApp/harvest/pull/1886))
- Bump Github.com/Shirou/Gopsutil/V3 From 3.23.2 To 3.23.3 ([#1888](https://github.com/NetApp/harvest/pull/1888))
- ... | Markdown |
// Guess the script, language and direction from the buffer
hb_buffer_guess_segment_properties(hb_buffer);
}
Self { words, hb_buffer }
}
}
impl<'a> Drop for HbBuffer<'a> {
fn drop(&mut self) {
unsafe { hb_buffer_destroy(self.hb_buffer) };
}
}
// The glyph infos are all... | Rust |
.w3.org/2000/svg%22%20fill%3D%22none%22%20stroke%3D%22%23a6adc8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20width%3D%228%22%20height%3D%224%22%20x%3D%228%22%20y%3D%222%22%20rx%3D%221%22%20ry%3D%221%22/%3E%3Cpath%20d%3D%22M16%20... | CSS |
,
{ {"((a)a)"}, {}, { 2 } },
{ {"((?i)a)(?:a)"}, {}, { 1 } },
}
end
return function (libname)
local lib = require (libname)
local flags = lib.flags ()
local sets = {
set_f_internal_test (lib, flags),
set_f_match (lib, flags),
set_f_find... | Lua |
i == decimalPointPos) {
buf.append('.');
}
final int digit = (int)y.hi;
// System.out.println("printDump: [" + i + "] digit: " + digit + " y: " +
// y.dump() + " buf: " + buf);
/**
* This should never happen, due to heuristic checks on remainder below
*/
if (d... | Java |
SP, [R2] @ SP = OSTCBHighRdy->OSTCBStkPtr;
@ RESTORE NEW TASK'S CONTEXT:
LDMFD SP!, {R0} @ Pop new task's CPSR,
MSR SPSR_cxsf, R0
LDMFD SP!, {R0-... | Assembly |
_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,anti... | JavaScript |
let day = cap.get(3).unwrap().as_str();
Ok(Utc.ymd(
year.parse::<i32>().unwrap(),
month.parse::<u32>().unwrap(),
day.parse::<u32>().unwrap(),
))
}
/// Picks the correct "rustdoc.css" static file depending on which rustdoc version was used to
/// generate this version of this crate.... | Rust |
ED_MODULE_8__ChildrenUtils__ = __webpack_require__(503);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__AnimateChild__ = __webpack_require__(504);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__util__ = __webpack_require__(213);\n\n\n\n\n\n\n\n\n\n\nvar defaultKey = 'rc_animate_' + Date.now();\n\n\nfun... | JavaScript |
/error")
-- ATT.Free = true
-- ATT.Category = "stickers"
-- ATT.Folder = ARC9:GetPhrase("folder.arc9.dovesinternational")
-- ATT.NotForNPCs = true
-- ATT.StickerMaterial = "stickers/dovesinternational/error"
-- ARC9.LoadAttachment(ATT, "sticker_dovesinternational_error")
-- ATT = {}
-- ATT.PrintName = "Doves Inter... | Lua |
5.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31L23.31,12L20,8.69M10.85,12.65H13.15L12,9L10.85,12.65Z",mdiBrightnessPercent:"M20.04,8.71V4H15.34L12,0.69L8.71,4H4V8.71L0.69,12L4,15.34V20.04H8.71L12,23.35L15.34,20.04H20.04V15.34L23.35,12L20.04,8.71M8.83,7.05C9.81,7.05 10.6,7.84 10.6,8.83A1.77... | JavaScript |
implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package kubernetes
import (
"fmt"
"os/exec"
"strings"
"github.com/fatih/color"
)
var verboseMode = false
var verboseColor = color.New(color.FgWhite).Add(color.Bold).SprintFunc()
func getComma... | Go |
-- Big integer arithmetic for 168-bit (and 336-bit) numbers
-- Numbers are represented as little-endian tables of 24-bit integers
local twoPower = require(script.Parent.twoPower)
local function isEqual(a, b)
return a[1] == b[1]
and a[2] == b[2]
and a[3] == b[3]
and a[4] == b[4]
and a[5] == b[5]
and a[6] == ... | Lua |
) (((_) >> 24) & 0x01)
/**
* @brief SSE extensions support
*
* [Bit 25] The processor supports the SSE extensions.
*/
uint32_t sse_support : 1;
#define CPUID_FEATURE_INFORMATION_EDX_SSE_SUPPORT_BIT 25
#define CPUID_FEATURE_INFOR... | C++ |
ceive(4, m);
p8 = u.ReadEnum16();
return u.ReadUInt32();
}
public uint SebiCancelEvent(string p0, System.Guid p1)
{
_Marshal_Helper m = new _Marshal_Helper();
m.WriteReferent(p0, new System.Action<string>(m.WriteTerminatedString));
m.Wr... | C# |
TAXII在提供了安全传输的同时,还无需考虑拓朴结构、信任问题、授权管理等策略,留给更高级别的协议和约定去考虑。
* Common Weakness Enumeration (CWE) 定义了通用软件设计与实现的弱点,安全漏洞往往是由这些弱点而来的。
* Common Attack Pattern Enumeration and Classification (CAPEC) 提供了一个与跨事件攻击相似的功能。
* Malware Attribute Enumeration and Characterization (MAEC) 可用于描述恶意软件的信息,类似于CVE和漏洞之间的关系。
* Open Vulnerability A... | Markdown |
jit;
use jit::*;
#[test]
fn test_sqrt() {
let mut ctx = Context::<()>::new();
assert_eq!(ctx.functions().count(), 0);
jit_func!(&mut ctx, func, fn(num: usize) -> usize {
let num = func.insn_convert(num, &get::<f64>(), false);
let val = func.insn_sqrt(num);
func.insn_return(val);
... | Rust |
,
typeof(VortexHelperColorSwitchHandler).GetFieldInfo(nameof(switchRandom))!
);
}
public override void Reset() {
switchRandom = null;
}
public override void PreUpdate() {
if (NextSeed(out int seed)) {
switchRandom = new ... | C# |
ferent from adjusting replication properties and fine-tuning
the availability/consistency trade-off, as it sacrifices _all_ availability
guarantees when necessary. Therefore, you should consult the
<a href="/riak/kv/2.1.3/developing/app-guide/strong-consistency">Using Strong
Consistency</a> documentation, as this optio... | Markdown |
CURVE_PARAMS.getN(),
CURVE_PARAMS.getH());
HALF_CURVE_ORDER = CURVE_PARAMS.getN().shiftRight(1);
secureRandom = new SecureRandom();
}
// The two parts of the key. If "pub" is set but not "priv", we can only verify signatures, not make them.
protected final BigInteger priv;
... | Java |
yle, GreenStyle, BrownStyle, OrangeStyle);
range.SetStyle(MagentaStyle, @"(?<=def )(.*)(?=\()");
range.SetStyle(GrayStyle, @"(\[desc\])(.*?)(\[\/desc\])", RegexOptions.Singleline);
range.SetStyle(GreenStyle, @"#.*$", RegexOptions.Multiline);
range.SetStyle(GrayStyle, @"^\s*(?<range>\[.+?\])\s*$", RegexOpti... | C# |
CallResult callResult = _pipeConnector.ReceiveCallResponse();
CopyParameters(callResult, callData);
return callResult.Result;
}
private void CopyParameters(CallResult callResult, CallData callData)
{
string errorMessage = "Returned parameters differ in len... | C# |
// REQUIRES: x86_64-linux
// RUN: clang -o %t %s
// RUN: llvm-mctoll -d -I /usr/include/stdio.h %t
// RUN: clang -o %t-dis %t-dis.ll
// RUN: %t-dis 2>&1 | FileCheck %s
// CHECK: 4
// CHECK: 8
// CHECK: 12
.text
.file "raise-popcnt.s"
.globl _Z14countSetBits16s # -- Begin function _Z14countSetBits16s
.p... | Assembly |
-----------------------------------
-- Area: Rolanberry Fields
-- NPC: Saarlan
-- Legion NPC
-- !pos 242 24.395 468 110
-----------------------------------
local ID = require("scripts/zones/Rolanberry_Fields/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/npc_util")
require("scripts/globals/settings... | Lua |
.generate('_');
expect(expected).toEqual('a_b_c');
});
it('should generate random combinations', () => {
const adjectives = ['mockAdjective1', 'mockAdjective2', 'mockAdjective3'];
const mockColors = ['mockColor1', 'mockColor2', 'mockColor3'];
const mockAnimals = ['mockAnimal1', 'mockAnimal2', 'moc... | Typescript |
==0)
{
printf("%d\n",strlen(input));
}
else if(strcmp(instr,"strstr")==0)
{
scanf("%s",op);
char *loc=strstr(input,op);
if(loc==NULL)
{
printf("NULL\n");
}
else
{
printf("%d\n",loc-input);
}
}
else if(strcmp(instr,"strcpy")==0)
{
scanf("%s",op);
strcpy(input,op);
}
else if(strcmp(in... | Markdown |
.index = base.index;
this.display = this.thumbnail;
this.loaded = false;
}
/// Loads the full resolution image for the post.
///
/// Posts start with their display image set the thumbail so that the browser doesn't try to load
/// dozens of high resolution images at once. Once an image is selected to... | Typescript |
n->dbi_sparse == txn->env->txn->dbi_sparse);
#endif /* MDBX_ENABLE_DBI_SPARSE */
}
struct audit_ctx ctx = {0, alloca(done_bitmap_size)};
memset(ctx.done_bitmap, 0, done_bitmap_size);
ctx.used =
NUM_METAS + audit_db_used(dbi_dig(txn, FREE_DBI, nullptr)) + audit_db_used(dbi_dig(txn, MAIN_DBI, nullptr));
... | C |
是童话玄幻遐想的虚构故事,这里记录你的每个故事。',
'欢迎向我们投稿你的故事!',
'所投稿件必须是一个完整的故事,故事包括但不限于:小说、世间故事、叙事散文、以叙事为主的回忆录……',
'投稿前,请阅读简书史上最有趣的投稿指南:<br><a href="http://www.jianshu.com/p/9da8500a57f0" class="blue-link">http://www.jianshu.com/p/9da8500a57f0</a>',
'<p>投稿须知:<br>1.建议题材:有情节的小说、身边的故事、叙事游记、以叙事为主的回忆录、职业故事等。<br>... | JavaScript |
// Assemble
robot.stubSmsBroadcastReceiverSuccess()
// Act
// No action
// Assert
verify(mockSmsBroadcastReceiver, atLeastOnce()).observeServiceSms()
}
inner class Robot {
fun stubSmsBroadcastReceiverSuccess(message: String = "randomString"): String {
... | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.