content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
esult: Result<(), crate::errors::ErrorKind>,
call_count: Arc<AtomicU64>,
}
impl FakeUpdateApplier {
pub fn new_success() -> Self {
Self { result: Ok(()), call_count: Arc::new(AtomicU64::new(0)) }
}
pub fn new_error() -> Self {
Self {
result... | Rust |
mcp->gc->label = "mcp2221_gpio";
mcp->gc->direction_input = mcp_gpio_direction_input;
mcp->gc->direction_output = mcp_gpio_direction_output;
mcp->gc->get_direction = mcp_gpio_get_direction;
mcp->gc->set = mcp_gpio_set;
mcp->gc->get = mcp_gpio_get;
mcp->gc->ngpio = MCP_NGPIO;
mcp->gc->base = -1;
mcp->gc->can_sle... | C |
using System.Collections.Generic;
using System.Linq;
using NHibernate.Cfg.MappingSchema;
using NHibernate.Mapping.ByCode;
using NHibernate.Transform;
using NHibernate.Util;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.GH3134
{
[TestFixture]
public class ManyToManyChildFetchByCodeFixture : TestCas... | C# |
shared_ptr<OpenGLRenderer> renderer;
// signals are protected, emitting them is therefore wrapped with such funcs
void emitResizeView(int id, int wd, int ht){ emit resizeView(id,wd,ht); }
void emitCreateView(){ emit createView(); }
void emitStartTimer(){ emit startTimerSignal(); }
void emitCloseView(int id){ ... | C++ |
using System.Threading;
using System.Threading.Tasks;
using Convey.CQRS.Commands;
using Convey.CQRS.Events;
using Convey.CQRS.Queries;
namespace Convey.WebApi.CQRS;
public class InMemoryDispatcher : IDispatcher
{
private readonly ICommandDispatcher _commandDispatcher;
private readonly IEventDispatcher _eventD... | C# |
merged_conf = rel.clone().parsed_config().unwrap();
rt.eval(
"<app config>",
&format!(
"window.fly.app = {{ config: {}, version: {} }};",
merged_conf, rel.version
),
);
// load external libraries... | Rust |
》](http://www.cs.virginia.edu/~zaher/classes/CS656/levy.pdf)
介绍:分布式文件系统概念与应用
* [《CSE 221: Graduate Operating Systems》](http://cseweb.ucsd.edu/classes/wi08/cse221/)
介绍:加利福尼亚大学的研究生操作系统课程主页,论文很值得阅读
* [《S4: Distributed Stream Computing Platform》](http://cs.brown.edu/~debrabant/cis570-website/papers/s4.pdf)
介绍:Yahoo出品的... | Markdown |
f (other !is RedactedCycleB) return false
if (unknownFields != other.unknownFields) return false
if (a != other.a) return false
return true
}
override fun hashCode(): Int {
var result = super.hashCode
if (result == 0) {
result = unknownFields.hashCode()
result = result * 37 + (a?.ha... | Kotlin |
using DntSite.Web.Features.Searches.Models;
using DntSite.Web.Features.Searches.RoutingConstants;
using DntSite.Web.Features.Searches.Services.Contracts;
namespace DntSite.Web.Features.Searches.Components;
public partial class ShowMoreLikeThis
{
private IEnumerable<LuceneSearchResult>? _posts;
private int _t... | C# |
/////////////////////////////////////////////////////////////////////////////
// Name: control.h
// Purpose: wxControl class
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id: control.h 38829 2006-04-19 06:39:43Z SC $
// Copyright: (c) Stefan Csomor
// Licence: ... | C |
.values_of(cli::ARG_BA_ARG)
.unwrap_or_default()
.map(str::to_string)
.collect();
let block_assembler_hash_type = matches
.value_of(cli::ARG_BA_HASH_TYPE)
.and_then(|hash_type| serde_plain::from_str::<ScriptHashType>(hash_type).ok())
... | Rust |
-780
5013 YP-60
5015 yepp upgrade
501b MP3 Player
5021 Yepp YP-ST5
5026 YP-MT6V
5027 YP-T7
502b YP-F1
5032 YP-J70
503b YP-U1 MP3 Player
503d YP-T7F
5041 YP-Z5
5050 YP-U2 MP3 Player
5051 YP-F2R
5055 YP-T9
507d YP-U3 (mtp)
507f YP-T9J
5080 Yepp YP-K3 (msc)
5081 Yepp YP-K3 (mtp)
5082 ... | Go |
::class)
private fun readJournalLine(line: String) {
val firstSpace = line.indexOf(' ')
if (firstSpace == -1) throw IOException("unexpected journal line: $line")
val keyBegin = firstSpace + 1
val secondSpace = line.indexOf(' ', keyBegin)
val key: String
if (secondSpace == -1) {
key = li... | Kotlin |
; alternate implementation by Oliver Schmidt
; from https://github.com/cc65/cc65/blob/master/libsrc/apple2/waitvsync.s
wait_vblank_iic:
; sei ; disables interrupts
sta IOUDISOFF
lda RDVBLMSK
bit ENVBL
bit PTRIG ; Reset VBL interrupt fl... | Assembly |
Examples of usage
**codegen.yml**
```yaml
overwrite: true
schema: schema.graphql
generates:
src/generated-types.ts:
plugins:
- 'typescript'
src/mocks/generated-mocks.ts:
plugins:
- typescript-mock-data:
typesFile: '../generated-types.ts'
enumValues: upper-case#upperCase
... | Markdown |
AbelADE abelADE = new AbelADE() {
@Override
public String adios() {
return "adios";
}
};
//Imprimimos la variable global
System.out.println(abelADE.nombre);
//Sacamos por pantalla el valor de los métodos an... | Java |
glm::equal(E, glm::vec4(4.f, 3.f, 2.f, 1.f), 0.01f)) ? 0 : 1;
return Error;
}
static int test_inversesqrt()
{
int Error = 0;
float A = glm::inversesqrt(16.f) * glm::sqrt(16.f);
Error += glm::equal(A, 1.f, 0.01f) ? 0 : 1;
glm::vec1 B = glm::inversesqrt(glm::vec1(16.f)) * glm::sqrt(16.f);;
Error += glm::all(glm... | C++ |
return this;
}
/**
* **required:false**
*
* **maps:** `ManagedPolicyArns`
* @param arns One or more managed policy ARNs to attach to this
* resource.
*/
managedPolicies(...arns:Attr<ManagedPolicy>[]){
this._.managedPolicies.push(...arns.map(a=>Attr.get(a,"Arn")));
... | Typescript |
'''
Função J
Considere a seguinte função f(x):
⎧ −1
⎪ ________ , se −1000 ≤ x < −2
⎪ (x + 2)
⎪
f(x) =⎨
⎪ 1
⎪ ________ , se 2 <x ≤ 1000
⎪ (X - 2)
⎩
Faça um programa que leia o valor de x e retorne o valor de f(x) baseado na definição acima.
Imprima ... | Python |
_tree,
};
serde_json::to_writer(&mut writer, &raw)?;
writeln!(&mut writer)?;
}
Ok(())
}
pub fn write(accession_file: &Path, metadata_file: &Path, output_file: &Path) -> Result<()> {
let mut writer = rnc_utils::buf_writer(output_file)?;
let metadata = JsonlIterator::from_path(... | Rust |
ryptedStorage(
strongBoxMigrationRetryChecker,
createEncryptedVenueStorageAction,
createEncryptedSharedPreferencesAction,
retryMechanism
)
}
verify(exactly = 1) { strongBoxMigrationRetryChecker.increment() }
assertEqual... | Kotlin |
thompson.png")
.withApply((a, i) -> {
i.setRecoil(i.getWeapon().getRecoil());
}).withFirstPersonModelPositioning(model -> {
if (model instanceof com.paneedah.mwc.models.M1A1Grip) {
GL11.glTranslatef(0.7F, -1.2F, 0.5F);
... | Java |
top: 73%;
left: 36.5%;
transform: rotate(180deg)
}
#soul5{
position: absolute;
height: 1%;
width: 27%;
top: 61.5%;
left: 16.3%;
transform: rotate(240deg)
}
#soul0{
position: absolute;
height: 1%;
width: 27%;
top: 38%;
left: 16.5%;
transform: rotate(300deg)
}
#allDown{
position: absolut... | CSS |
dOut, nBurnSoundLen);
}
if (pBurnDraw) {
DrvDraw();
}
return 0;
}
static INT32 DrvScan(INT32 nAction, INT32 *pnMin)
{
struct BurnArea ba;
if (pnMin) {
*pnMin = 0x029735;
}
if (nAction & ACB_VOLATILE) {
memset(&ba, 0, sizeof(ba));
ba.Data = AllRam;
ba.nLen = RamEnd - AllRam;
ba.szName = "All... | C++ |
Scope.launch {
// saveClearCacheBeforeConnectValue(this@AppSettingsActivity, isChecked)
// }
// }package net.satka.bleManager.ble.wrappers
open class SInt32Wrapper : CharacteristicValueWrapper<Int> {
companion object {
const val MIN_VALUE = Int.MIN_VALUE
const val M... | Kotlin |
r2 = await cache.get('test-key-3');
expect(r2, equals('hello-again'));
});
test('purge key', () async {
await cache.set('test-key-4', 'hello-once');
final r = await cache.get('test-key-4');
expect(r, equals('hello-once'));
await cache.purge('test-key-4');
fi... | Dart |
.hideClass.backdrop),nn(e,t,n),true})(this);this.isAwaitingPromise()?e.isDismissed||(tn(this),t(e)):n&&t(e)}const tn=e=>{e.isAwaitingPromise()&&(b.awaitingPromise.delete(e),b.innerParams.get(e)||e._destroy())},nn=(e,t,n)=>{var o,i,a,r=m(),s=Be&&de(t);"function"==typeof n.willClose&&n.willClose(t),s?(s=e,o=t,t=r,i=n.ret... | JavaScript |
EXPECT_EQ(ToDlISize(sk_s), dl_s);
sk_s = SkISize::Make(1.0f, 2.0f);
dl_s = DlISize(1.0f, 3.0f);
EXPECT_NE(sk_s, ToSkISize(dl_s));
EXPECT_NE(ToDlISize(sk_s), dl_s);
}
TEST(DisplayListGeometryTypes, VectorToSizeConversion) {
SkVector sk_v = SkVector::Make(1.0f, 2.0f);
DlSize dl_s = DlSize(1.0f, 2.0f);
E... | C++ |
sample-01>{p.SomeStringArr}</sample-01>
<sample-02>{p.SomeStringPtrArr}</sample-02>
<sample-03>{p.PtrArr}</sample-03>
<sample-04>{p.PtrArrPtr}</sample-04>
<sample-05>{p.AliasToString}</sample-05>
<sample-05a>
{typeof p.AliasToString} - type ali... | JavaScript |
rivate.Corelib.dll
var coreSdkAssemblyDirectory = Path.GetDirectoryName( typeof( object ).Assembly.Location );
// .NET Standard 2.0 library should refer netstandard.dll
yield return Path.Combine( coreSdkAssemblyDirectory, "netstandard.dll" );
yield return typeof( object ).Assembly.Location; // System.Privat... | C# |
hes the last leaf with contract code in it,
// we don't include the last leaf of code in the AccessWitness. The
// reason that we do not need the last leaf is the account's code size
// is already in the AccessWitness so a stateless verifier can see that
// the code from the last leaf is not needed.
if (codeLen =... | Go |
60 - Invalidate JTAG result register"]
pub set_invalidate_jtag: crate::Reg<set_invalidate_jtag::SET_INVALIDATE_JTAG_SPEC>,
#[doc = "0x64 - Invalidate digital signature result register"]
pub set_invalidate_ds: crate::Reg<set_invalidate_ds::SET_INVALIDATE_DS_SPEC>,
#[doc = "0x68 - The matching result betw... | Rust |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_CANVAS_OFFSCREENCANVAS_OFFSCREEN_CANVAS_MODULE_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_CANVAS_OFFSCREENCA... | C |
l way, forwarding on to the Base class
template<class T>
void load_override(T& x, int version, mpl::false_)
{
archive::detail::common_iarchive<packed_iarchive>::load_override(x,version);
}
// Load it directly using the primnivites
template<class T>
void load_override(T& x, int /*version*/, mpl::true_... | C++ |
local config = function()
local ls = require("luasnip")
ls.config.set_config({
history = true,
update_events = "TextChanged,TextChangedI",
enable_autosnippets = true,
ext_opts = {
[require("luasnip.util.types").choiceNode] = {
active = {
virt_text = {
{
"🔀",
},
},
},
... | Lua |
ontainerNameFromEnv(t *testing.T) {
tt := []struct {
name string
env []string
expectedName string
}{{
name: "Basic metadata",
env: []string{
"CONTAINER_NAME=test-container",
},
expectedName: "test-container",
}, {
name: "Hostname as container name",
env: []string{
"HOSTNAME=t... | Go |
operator+=(const duration& d);
time_point& operator-=(const duration& d);
static constexpr time_point min();
static constexpr time_point max();
};
```
### std::chrono::time_point 默认构造函数
构造time_point代表着,使用相关的Clock,记录从epoch到现在的时间;其内部计时使用Duration::zero()进行初始化。
**声明**
```
time_point();
```
**后验条件**<br>
对于使用默... | Markdown |
人身邊…請原諒我的僭越…|這樣的裝扮似乎不太利於戰鬥…不過既然是主人的願望,天狼星一定會全力配合|項鍊很適合我…?謝謝您的誇獎,我驕傲的主人",
voice_key_2 = -1,
profile = "",
mission_complete = "",
headtouch = "",
feeling2 = "",
feeling4 = "",
unlock = "貴安,遵從您的指示,天狼星換上了新的衣裝。若是能得到您的讚美,我會萬分感激的,主人",
battle = "",
login = "",
vote = "",
detail = "無論身著什麼樣的服飾,我都是您的女僕,全力實現您... | Lua |
baseDelay = _config.retryBaseDelay.inMilliseconds;
final delay = baseDelay * (1 << (retryCount - 1)); // 2^(retryCount-1)
final maxDelay = _config.retryMaxDelay.inMilliseconds;
return Duration(milliseconds: delay.clamp(baseDelay, maxDelay));
}
/// 检查请求是否过期
bool _isRequestExpired(QueuedRequest ... | Dart |
/*
* Copyright 2008-2015 Arsen Chaloyan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | C |
ati" },
],
participants: [
{ id: 52560, name: "Turner Schuppe" },
{ id: 16577119, name: "Chasity Reinger" },
{ id: 116, name: "Victor Padberg" },
],
initiated_at: "1995-05-26T12:28:06.000000Z",
completed_at: "1995-12-13T11:27:23.000000Z",
},
{
case_num... | JavaScript |
g 0x00C
Exception_Bus_Error_Instruction_Fetch:
rjmp $
.org 0x010
Exception_NMI:
rjmp $
.org 0x014
Exception_Instruction_Address:
rjmp $
.org 0x018
Exception_ITLB_Protection:
rjmp $
.org 0x01C
Exception_OCD_Breakpoint:
rjmp $
.org 0x020
Exception_Illegal_Opcode:
rjmp $
.org 0x024
Exception_Unimplemented_Ins... | Assembly |
from datetime import datetime, timezone, timedelta
import json
import os
from googletrans import Translator
import asyncio
class MarkdownReporter:
def __init__(self, items):
self.items = items
self.timezone = timezone(timedelta(hours=8)) # UTC+8 for Shanghai
self.now = datetime.now(self.ti... | Python |
enario: StandardScenario) => {
const result = await contacts()
expect(result.length).toEqual(Object.keys(scenario.contact).length)
})
scenario('returns a single contact', async (scenario: StandardScenario) => {
const result = await contact({ id: scenario.contact.one.id })
expect(result).toEqual(s... | Typescript |
curveTo(14.2246f, 29.0156f, 15.2676f, 29.6367f, 16.4161f, 29.6367f)
close()
moveTo(16.4161f, 28.125f)
curveTo(15.5137f, 28.125f, 14.6817f, 27.5625f, 14.7286f, 26.5078f)
curveTo(13.5332f, 26.8828f, 12.3145f, 26.2617f, 12.3145f, 25.0078f)
... | Kotlin |
tree: Tree = new Tree();
tree.load().then(() => showTree(0)); // начальная загрузка и отрисовка дерева
/* Строит дерево, начиная с узла с номером rootId */
const showTree = (rootId: number): void => {
if (admin) {
// узлы в режиме администратора
showButtonCreateItem();
let count = 0;
const stack: treeItem[]... | Typescript |
: [/color]He counts towards your kill count as well.|
C Ashes to Ashes|QID|26010|M|61.42,64.88|N|Use the flamethrower on the tents.|U|56473|US|
l Mechanized Air|ACTIVE|26026|M|59.95,64.24|QO|4|N|Inside the goblin hut.|
l Mechanized Fire|ACTIVE|26026|M|63.05,56.77|QO|2|N|On top of the huge logging machine.|
l Mechanized... | Lua |
m_filters.reserve(num_filters);
m_filter_ids.reserve(num_filters);
for(int i=num_filters-1; i>=0; --i)
{
std::auto_ptr<ISeqStreamOutputControl> new_filter;
switch (filters[i])
{
case STREAM_FILTER_FLATE:
new_filter.reset(new ZLibSt... | C++ |
it % 2 === 0 ? "red" : "black";
}
private getBack() {
let base = cc.instantiate(this.pokerModel)
let baseFront = base.getChildByName("front")
let baseBack = base.getChildByName("back")
baseFront.active = false
baseBack.active = true
return base
}
private... | Typescript |
FOLDER("lsf-folder", '\ue04c'),
FORWARD("lsf-forward", '\ue04e'),
FOURSQUARE("lsf-foursquare", '\ue04d'),
FRIEND("lsf-friend", '\ue051'),
FRUSTRATE("lsf-frustrate", '\ue052'),
FULL("lsf-full", '\ue053'),
GAME("lsf-game", '\ue054'),
GEO("lsf-geo", '\ue056'),
GITHUB("lsf-github", '\ue057')... | Java |
}
TreeNode node = new TreeNode(arr[IDX[0]++]);
node.left = createTree(arr, IDX);
node.right = createTree(arr, IDX);
return node;
}
public static void solve() {
int n = scn.nextInt();
int[] arr = new int[n];
for (int i = 0; i < n; i++)
... | Java |
inalizers,
),
)
}
}
func TestRemoveFinalizers(t *testing.T) {
testCases := []struct {
obj metav1.Object
finalizers sets.Set[string]
isUpdated bool
newFinalizers []string
}{
{
newObj([]string{}),
sets.New[string](),
false,
[]string{},
},
{
newObj([]string{}),
set... | Go |
: (context) {
if (provider.searchTerm == "") {
return EnterSearchTermScreen(message: t.bookmarks.search.inputSearchTerm);
}
if (provider.inialLoadStatus == LoadStatus.loading) {
return const Center(
child: CircularProgressIndicator(),
);
... | Dart |
Id { get; set; }
/// <summary>
/// Идентификатор владельца фотографии
/// </summary>
[JsonProperty("owner_id")]
public long? OwnerId { get; set; }
/// <summary>
/// Идентификатор автора комментария
/// </summary>
[JsonProperty("user_id")]
public long? UserId { get; set; }
/// <summary>
/// Идентификатор ... | C# |
b8-20ba, U+20bd, U+20dd, U+20e3, U+2105, U+2109, U+2112-2113, U+2115-2117, U+2120-2121, U+2126, U+212b;
}
/* [92] */
@font-face {
font-family: 'Noto Sans TC';
font-style: normal;
font-weight: 400;
src: local('Noto Sans TC Regular'), local('NotoSansTC-Regular'), url(https://fonts.gstatic.com/s/noto... | CSS |
.namespace)?"namespace: string expected":null},A.fromObject=function(A){if(A instanceof ra.dcv.main.ChannelNotification.ChannelInfo)return A;let e=new ra.dcv.main.ChannelNotification.ChannelInfo;return null!=A.name&&(e.name=String(A.name)),null!=A.authenticationToken&&(e.authenticationToken=String(A.authenticationToken... | JavaScript |
// Kind is the kind of TrafficSpec to allow
Kind string `json:"kind"`
// Name of the TrafficSpec to use
Name string `json:"name"`
// Matches is a list of TrafficSpec routes to allow traffic for
// +optional
Matches []string `json:"matches,omitempty"`
}
// IdentityBindingSubject is a service which shou... | Go |
#include <stdlib.h>
#include <gmodule.h>
#include <clutter/clutter.h>
int
test_stage_sizing_main (int argc, char *argv[]);
const char *
test_stage_sizing_describe (void);
static gboolean
shrink_clicked_cb (ClutterActor *stage)
{
gfloat width, height;
clutter_actor_get_size (stage, &width, &height);
clutter_act... | C |
",
is_open = 0
},
[1462] = {
mask = "bg/bg_memory",
subtitle = "",
type = 1,
title = "히퍼는 침착해",
condition = "「행복의 패러다임」 임무2 해제",
story = "XIPEIER2",
id = 1462,
icon = "memory_xipeier",
is_open = 0
},
[1463] = {
mask = "bg/bg_memory",
subtitle = "",
type = 1,
title = "실마리가 있는 곳",
condit... | Lua |
":[512,512,[],"f411","M256 8C119.3 8 8 119.2 8 256c0 136.7 111.3 248 248 248s248-111.3 248-248C504 119.2 392.7 8 256 8zM33 256c0-32.3 6.9-63 19.3-90.7l106.4 291.4C84.3 420.5 33 344.2 33 256zm223 223c-21.9 0-43-3.2-63-9.1l66.9-194.4 68.5 187.8c.5 1.1 1 2.1 1.6 3.1-23.1 8.1-48 12.6-74 12.6zm30.7-327.5c13.4-.7 25.5-2.1 25... | JavaScript |
_action_mock
fc.services = create_fc_services(fc_services_capabilities["HostNumberOfEntries"])
# Act 1
fd = FritzDevice(FritzCredentials("somehost", "someuser", "password"), "FritzMock", host_info=False)
donate_data(fd, upload=True)
# Check 1
assert (
"Data ... | Python |
-N", "--no-color", }, "Disable colored output"),
(new List<string>{ "-E", "--no-extended-chars", }, "Disable extended characters"),
(new List<string>{ "-p", "--parallel", }, "Run targets in parallel"),
(new List<string>{ "-s", "--skip-dependencies", }, "Do not run targets' depe... | C# |
t\t\theight: 40%;\n\t\t\t\tright: 0;\n\t\t\t\ttop: 0;\n\t\t\t}\n\n\t\t\t/* Speaker controls */\n\t\t\t#speaker-controls {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 40%;\n\t\t\t\tright: 0;\n\t\t\t\twidth: 40%;\n\t\t\t\theight: 60%;\n\t\t\t\toverflow: auto;\n\t\t\t\tfont-size: 18px;\n\t\t\t}\n\n\t\t\t\t.speaker-controls... | JavaScript |
ast"),
resource.TestCheckResourceAttr("aci_relation_from_vrf_to_eigrp_address_family_context.allow_test_2", "address_family", "ipv4-ucast"),
resource.TestCheckResourceAttr("aci_relation_from_vrf_to_eigrp_address_family_context.allow_test", "annotation", "orchestrator:terraform"),
resource.TestCheckResour... | Go |
// Copyright 2021 ETH Zurich and University of Bologna.
// Solderpad Hardware License, Version 0.51, see LICENSE for details.
// SPDX-License-Identifier: SHL-0.51
//
// Author: Matheus Cavalcante <matheusd@iis.ee.ethz.ch>
// Basile Bougenot <bbougenot@student.ethz.ch>
#include "vector_macros.h"
void TEST_CASE... | C |
}
}
},
load: function load(pdfDocument, scale) {
var _this6 = this;
scale = scale || _ui_utils.UNKNOWN_SCALE;
this.pdfDocument = pdfDocument;
pdfDocument.getDownloadInfo().then(function () {
_this6.downloadComplete = true;
_this6.loadingBar.hide();
firstPagePromise.then(functio... | JavaScript |
Literal);
if ((CharTypes[char] & 0b00000000000000000000000000000011) > 0) {
report(parser, Errors.IDStartAfterNumber);
}
parser.tokenValue = value;
parser.flags |= Flags.Octals;
return Token.NumericLiteral;
}
export function scanOctalDigits(parser: ParserState, source: string): Token {
let value = ... | Typescript |
(
grafs,
|_| false,
|ef| {
!util::is_workspace(ef.source)
&& (ef.kind == krates::DepKind::Build || ef.kind == krates::DepKind::Dev)
},
);
}
// Just workspace crates
{
let mut kb = krates::Builder::new();
... | Rust |
ial;
pub use self::cd::cd;
pub use self::echo::echo;
pub use self::pwd::pwd;
pub use self::shift::shift;
pub use self::trivial::{colon, false_cmd, true_cmd};
pub(crate) async fn generate_and_print_output<E, F, ERR>(
builtin_name: &str,
env: &mut E,
generate_bytes: F,
) -> BoxFuture<'static, ExitStatus>
wh... | Rust |
(*bind.WatchOpts, chan<- *fee_quoter.FeeQuoterAuthorizedCallerAdded) (event.Subscription, error)) *FeeQuoterInterface_WatchAuthorizedCallerAdded_Call {
_c.Call.Return(run)
return _c
}
// WatchAuthorizedCallerRemoved provides a mock function with given fields: opts, sink
func (_m *FeeQuoterInterface) WatchAuthorizedC... | Go |
osed.
* */
@Throws(IOException::class)
public actual fun write(buf: ByteArray) { write(buf, 0, buf.size) }
/**
* Flushes any buffered data.
*
* @throws [IOException] If an I/O error occurs, or the stream is closed.
* */
@Throws(IOException::class)
public actual open fun flu... | Kotlin |
sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;... | CSS |
hiir_Upsampler2xSseOld_CODEHEADER_INCLUDED
#undef hiir_Upsampler2xSseOld_CURRENT_CODEHEADER
/*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*****************************************************************************
Upsampler2xF64Sse2.hpp
Author: Laurent de Soras,... | C++ |
Žádná ze společností nenazvala toto rozhodnutí jako stažení.
Evropští výrobci automobilů propagovali velkou měrou používání dieselových atuomobilů v Evropě a Spojených státech, aby splnili nařízení o emisích oxidu uhličitého.
Oxid dusíku, který vypouštějí dieselové motory, je však považován za karcinogen a může způsobi... | C# |
for a stream that doesn't exist (and this session descriptor has not been used before):
ourClientConnection->handleCmd_notFound();
} else {
// The client asked for a stream that doesn't exist, but using a stream id for a stream that does exist. Bad request:
ourClientConnection->handleCmd_bad();
}
... | C++ |
uto isSender = get<3>(account);
state.setBalance(Address(address), balance);
if (isSender) sender = address;
}
blockNumber = get<1>(block);
timestamp = get<2>(block);
}
void TargetProgram::rollback(size_t savepoint) {
state.rollback(savepoint);
}
size_t TargetProgram::savepoint() {... | C++ |
.getOrPut(it) { ASMLabel() } }
)
}
is KBVariableOP -> {
methodVisitor.visitVarInsn(operation.instruction.opcode, operation.variableIndex)
}
is KBAsmOp -> operation.apply { methodVisitor.visit() }
is KBJumpOP -> methodVisitor.v... | Kotlin |
l n = nums.size
val isPrime = sieve(n)
var sumA: Long = 0
var sumB: Long = 0
for (i in 0..<n) {
if (isPrime[i]) {
sumA += nums[i].toLong()
} else {
sumB += nums[i].toLong()
}
}
return abs(sumA - sumB)
... | Kotlin |
loop_get_data(const uv_loop_t*);
UV_EXTERN void uv_loop_set_data(uv_loop_t*, void* data);
/* Don't export the private CPP symbols. */
#undef UV_HANDLE_TYPE_PRIVATE
#undef UV_REQ_TYPE_PRIVATE
#undef UV_REQ_PRIVATE_FIELDS
#undef UV_STREAM_PRIVATE_FIELDS
#undef UV_TCP_PRIVATE_FIELDS
#undef UV_PREPARE_PRIVATE_FIELDS
#unde... | C |
F80@ha
/* 800B48FC 000B055C 54 00 10 3A */ slwi r0, r0, 2
/* 800B4900 000B0560 38 63 4F 80 */ addi r3, r3, lbl_80414F80@l
/* 800B4904 000B0564 7C 63 00 2E */ lwzx r3, r3, r0
/* 800B4908 000B0568 7C 69 03 A6 */ mtctr r3
/* 800B490C 000B056C 4E 80 04 20 */ bctr
/* 800B4910 000B0570 3B E0 00 00 */ li r31, 0
/* 800B4... | Assembly |
OP.SET_INCLUDES,
args = {
"",
},
},
{
"global_context",
"player_voice_profiles",
OP.SET_INTERSECTS,
args = {
"ogryn_a",
"ogryn_b",
"ogryn_c",
"psyker_female_a",
"psyker_female_b",
"psyker_female_c",
"psyker_male_a",
"psyker_male_b",
"psyker... | Lua |
width: $authentication-1-inner-max-width;
position: relative;
&:before {
width: 148px;
height: 148px;
content: ' ';
position: absolute;
top: -40px;
right: -40px;
background-image: url(light.str-replace(
light.str-replace($auth-basic-top-svg, 'currentColor', ligh... | CSS |
em .21em 0 -.477em;box-shadow:-.11em -.83em 0 -.4em,-.51em -.66em 0 -.42em,-.75em -.36em 0 -.44em,-.83em -.03em 0 -.46em,-.81em .21em 0 -.477em}55%{-webkit-box-shadow:-.11em -.83em 0 -.4em,-.29em -.78em 0 -.42em,-.43em -.72em 0 -.44em,-.52em -.65em 0 -.46em,-.57em -.61em 0 -.477em;box-shadow:-.11em -.83em 0 -.4em,-.29e... | CSS |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
--------... | C |
cardsFinder.first,
credentialName: 'Demo iDIN',
issuerName: 'Demo iDIN',
attributes: {
'Address': 'Meander 501',
'City': 'Arnhem',
},
style: IrmaCardStyle.normal,
);
await evaluateCredentialCard(
tester,
cardsFinder.at(1),
credentialName: 'Demo Email address',
is... | Dart |
() {
It("returns nil if no kots app is found", func() {
dir, err := os.MkdirTemp("", "kotsutil-test")
Expect(err).ToNot(HaveOccurred())
defer os.RemoveAll(dir)
err = os.WriteFile(filepath.Join(dir, "foo.yaml"), []byte("apiVersion: custom.io/v1beta1\nkind: Foo\nmetadata:\n name: foo"), 0644)
Expect(er... | Go |
?) = Args(args)
@Suppress("NOTHING_TO_INLINE")
inline fun argTypes(vararg argTypes: Class<*>) = ArgTypes(argTypes)
typealias MethodCondition = Method.() -> Boolean
/**
* 扩展函数 通过类或者对象获取单个属性
* @param fieldName 属性名
* @param isStatic 是否静态类型
* @param fieldType 属性类型
* @return 符合条件的属性
* @throws IllegalArgumentExcepti... | Kotlin |
ic;
}
pre.espresso_libre .MarkupTag {
color: #43A8ED;
}
pre.espresso_libre .JsOperator {
color: #687687;
}
pre.espresso_libre .InheritedClassName {
font-style: italic;
}
pre.espresso_libre .StringInterpolation {
color: #2FE420;
}
pre.espresso_libre .MarkupNameOfTag {
font-weight: bold;
}
pre.espresso_lib... | CSS |
"bạn đồng hành bị kẹt ở một chỗ và không thể di chuyển"}, -- Duct Tape
{"110", "Silver Dollar", "{{Shop}} Cửa hàng xuất hiện trong Tử Cung"}, -- Silver Dollar
{"111", "Bloody Crown", "{{TreasureRoom}} Phòng Kho Báu xuất hiện trong Tử Cung"}, -- Bloody Crown
{"112", "Pay To Win", "{{RestockMachine}} Hộp tái cung cấp ... | Lua |
const int GL_COMPRESSED_RGBA_ASTC_10x5_KHR = 37816;
const int GL_COMPRESSED_RGBA_ASTC_10x6_KHR = 37817;
const int GL_COMPRESSED_RGBA_ASTC_10x8_KHR = 37818;
const int GL_COMPRESSED_RGBA_ASTC_10x10_KHR = 37819;
const int GL_COMPRESSED_RGBA_ASTC_12x10_KHR = 37820;
const int GL_COMPRESSED_RGBA_ASTC_12x12_KHR = 37821;... | Dart |
uto_ctx(a, log);
String sn;
uint64_t tc_storage = 0;
const char *tc_str = mkbindump::get_target_str(cwr.getTarget(), tc_storage);
DataBlock lodsBlk;
const DataBlock &a_props = a.getProfileTargetProps(cwr.getTarget(), cwr.getProfile());
lodsBlk.setFrom(&a_props);
if (!lodsBlk.blockExists("lo... | C++ |
}
func TestLess(t *testing.T) {
t.Parallel()
t.Run("float", func(t *testing.T) {
t.Parallel()
check.LessThan(t, 1.0, 2.0)
check.LessThanOrEqual(t, 1.0, 2.0)
check.LessThanOrEqual(t, 1.0, 1.0)
mt := &common.MockT{}
check.LessThan(mt, 1.0, 1.0)
check.True(t, mt.Failed())
check.False(t, mt.FailedNow())... | Go |
报道,请问如何使用GPT-3.5来生成一份简要且准确的摘要? |
| 图像标注 | 如何使用GPT-3.5对一张图片进行自动描述? ... | Markdown |
egionalCommunity = default(string))
{
VirtualNetworkCommunity = virtualNetworkCommunity;
RegionalCommunity = regionalCommunity;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
//... | C# |
,
campoNaoObrigatorio?: string,
}
const DadoSchema = new Schema({
campo: String,
corpo: String
}, {
timestamps: true
})
DadoSchema.methods.fullName = function ():string {
return this.firstName + ' ' + this.lastName
}
export default model<DadoInterface>('Dado', DadoSchema)
import { IStartIndex } from './son... | Typescript |
`json:"httpRetry"` // HTTP 请求失败后的重试次数
HTTPProxy string `json:"httpProxy"` // HTTP 代理
OSSProxy string `json:"ossProxy"` // OSS 上传代理
PartsNum uint `json:"partsNum"` // 断点续传的分片数量
}
// 上传结果数据
type resultData struct {
Success []string `json:"success"` // 上传成功的文件
Failed []string `json:"failed"` // 上传失败的文件
Save... | Go |
x;
line-height: 17px;
}
.commento-moderator::after {
content: "Moderator";
text-transform: uppercase;
font-size: 10px;
background: $green-7;
color: white;
margin-left: 8px;
padding: 2px 6px 2px 6px;
border-radius: 100px;
line-height: 17px;
}
.commento-anonymous::after {... | CSS |
chars[0xD6 ]=0x00D6;
chars[0xD7 ]=0x0168;
chars[0xD8 ]=0x00D8;
chars[0xD9 ]=0x0172;
chars[0xDA ]=0x00DA;
chars[0xDB ]=0x00DB;
chars[0xDC ]=0x00DC;
chars[0xDD ]=0x00DD;
chars[0xDE ]=0x00DE;
chars[0xDF ]=0x00DF;
chars[0xE0 ]=0x0101;
... | Java |
*/ mul.s $f18, $f16, $f2
/* 0E9AD8 80189098 E5920014 */ swc1 $f18, 0x14($t4)
/* 0E9ADC 8018909C 8C580020 */ lw $t8, 0x20($v0)
/* 0E9AE0 801890A0 C4640044 */ lwc1 $f4, 0x44($v1)
/* 0E9AE4 801890A4 3C0C800E */ lui $t4, %hi(D_800DFBD0)
/* 0E9AE8 801890A8 E7040018 */ swc1 $f4, 0x18($t8)
/* 0E9AEC 801890AC 8C4F0... | Assembly |
P | %t):%p\n"),
ACE_TEXT ("pthread_sigmask")));
#endif
reactor_.owner (ACE_Thread::self ());
reactor_.run_reactor_event_loop ();
return 0;
}
int
ACE_Asynch_Pseudo_Task::register_io_handler (ACE_HANDLE handle,
ACE_Event_Handler *handler,
... | C++ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.