content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
/**
* This file is part of Structure PLP-SLAM.
*
* Copyright 2022 DFKI (German Research Center for Artificial Intelligence)
* Developed by Fangwen Shu <Fangwen.Shu@dfki.de>
*
* If you use this code, please cite the respective publications as
* listed on the github repository.
*
* Structure PLP-SLAM is free sof... | C |
alueSet>;
effects?: Array<IEffect>;
imageSrc?: string;
}
export interface IToken extends IState {
key: string;
}
export interface ITokenCopy extends IToken {
refID: string;
}
export enum EGameState {
GS_Setup = "Setup",
GS_Manage = "Manage",
GS_Play = "Play",
GS_Event = "Event",
}
ex... | Typescript |
as name: <code>alias/ExampleAlias</code>
* </p>
* </li>
* <li>
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
* </p>
* </li>
* </ul>
* <p>To get the key ID and k... | Typescript |
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.DependencyInjection;
using TodoList.Core;
using TodoList.Core.Models;
namespace TodoList.Data
{
public class SeedData
{
public static async Task InitializeAsync(
I... | C# |
}
bottomStartX--
bottomEndX++
bottomY--
for y := leftStartY; y > leftEndY; y-- {
screen.SetContent(leftX, y, ' ', nil, style)
}
leftStartY--
leftEndY++
leftX++
screen.Show()
time.Sleep(sleepTime)
sleepTime += 4 * time.Millisecond
}
}
logger.Println("View ShowGameOverAnimati... | Go |
line.addOverlay(QFormatRange(tk.start, tk.length, environmentFormat));
addedOverlayEnvironment = true;
}
if ((tk.type == Token::package || tk.type == Token::beamertheme || tk.type == Token::documentclass) && config->inlinePackageChecking) {
// package
QString preambel;
if (tk.type == Toke... | C++ |
ayout(100);
OHOS::Rosen::SPText::Range<size_t> range = paragraphMiddleEllipsis_->GetEllipsisTextRange();
EXPECT_EQ(range.start, 2);
EXPECT_EQ(range.end, 23);
}
/*
* @tc.name: ParagraphTestMiddleEllipsis010
* @tc.desc: test for Middle Ellipsis 010, empty text
* @tc.type: FUNC
*/
HWTEST_F(ParagraphTest, ... | C++ |
collections::{HashMap, VecDeque},
io, mem,
path::{Path, PathBuf},
sync::Arc,
};
use abi_stable::{
external_types::crossbeam_channel::{self, RReceiver, RSender},
library::{lib_header_from_path, LibraryError, LibrarySuffix, RawLibrary},
sabi_trait::prelude::TD_Opaque,
std_types::{RErr, RO... | Rust |
ncStateThat().isEqualTo(SyncStatus.NOT_SYNCED_FROM_SERVER)
}
}
}
@Test
fun testLogFeatureFlags_correctNumberOfFeatureFlagsIsLogged() {
val expectedFeatureFlagCount = 14
featureFlagsLogger.logAllFeatureFlags(TEST_SESSION_ID)
testCoroutineDispatchers.runCurrent()
val eventLog = fakeAnal... | Kotlin |
) throw new Error(ERROR_MESSAGES.USER);
// Compares Password (Confirms New Password)
const isSame: boolean = await bcrypt.compare(password, user.password);
if (isSame) throw new Error(ERROR_MESSAGES.NEW_PASSWORD_IS_SAME);
// Updates Password
const hashedPassword: string = await bcrypt.hash(passwor... | Typescript |
All();
}
if (externalFrameListener != null) {
externalFrameListener.onFrameAvailable();
}
});
}
private void setupWatermarkTexture() {
watermarkBitmap = Bitmap.createBitmap(WATERMARK_BITMAP_WIDTH, WATERMARK_BITMAP_HEIGHT, Bitmap.Config.ARGB_88... | Java |
Manager(managerId: number, manager: Manager) {
return { type: BUY_MANAGER, managerId, manager };
}
export function buyBusiness(businessId: number, business: Business) {
return { type: BUY_BUSINESS, businessId, business };
}
export function upgradeBusiness(business: Business) {
return { type: UPGRADE_BUSINESS, b... | Typescript |
�열
### 제출 일자
2024년 4월 16일 13:37:34
### 문제 설명
<p>"OOXXOXXOOO"와 같은 OX퀴즈의 결과가 있다. O는 문제를 맞은 것이고, X는 문제를 틀린 것이다. 문제를 맞은 경우 그 문제의 점수는 그 문제까지 연속된 O의 개수가 된다. 예를 들어, 10번 문제의 점수는 3이 된다.</p>
<p>"OOXXOXXOOO"의 점수는 1+2+0+0+1+0+0+1+2+3 = 10점이다.</p>
<p>OX퀴즈의 결과가 주어졌을 때, 점수를 구하는 프로그램을 작성하시오.</p>
### 입력
<p>첫째 줄에 테스트 케이스의 개수가 ... | Markdown |
izeLatinSelf },
{ 0x00d8u, 0x00deu, 0x0000u, CanonicalizeLatinMask0x20 },
{ 0x00dfu, 0x00dfu, 0x0000u, CanonicalizeLatinSelf },
{ 0x00e0u, 0x00f6u, 0x0000u, CanonicalizeLatinMask0x20 },
{ 0x00f7u, 0x00f7u, 0x0000u, CanonicalizeLatinSelf },
{ 0x00f8u, 0x00feu, 0x0000u, CanonicalizeLatinMask0x20 },
... | C++ |
_customs:soundsync',table)
else
SendNUIMessage({
type = "playsound",
content = table
})
end
... | Lua |
pEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
}
if !testutil.CheckTestServer(t, baseURL) {
return
}
client := cloudflare.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
option.WithAPIEmail("user@example.com"),
)
_, err := client.Queues.New(context.TODO()... | Go |
= gain(denoised, 0.004, 'agc', 0.05, 1)
show(x,denoised,np.sqrt(sigma2),x_max)
# showsigma(sigma2)
# from seis_util.localsimi import localsimi
# simi = localsimi(x-denoised, denoised, rect=[5, 5, 1], niter=20, eps=0.0, verb=1)
# energy_simi = np.sum(simi ** 2)/simi.size
... | Python |
t.CreateSecret(0);
_temporaryPassword = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}
/// <summary>
/// The user pool ID for the user pool where the user will be created.
/// </summary>
[Input("userPoolId")]
pu... | C# |
// rdlogin.h
//
// The User Login/Logout Utility for Rivendell.
//
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// 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 ... | C |
256 256 0 1 0 0 512zM388.1 312.8c12.3-3.8 24.3 6.9 19.3 18.7C382.4 390.6 324.2 432 256.3 432s-126.2-41.4-151.1-100.5c-5-11.8 7-22.5 19.3-18.7c39.7 12.2 84.5 19 131.8 19s92.1-6.8 131.8-19zM199.3 129.1c17.8 4.8 28.4 23.1 23.6 40.8l-17.4 65c-2.3 8.5-11.1 13.6-19.6 11.3l-65.1-17.4c-17.8-4.8-28.4-23.1-23.6-40.8s23.1-28.4 40... | CSS |
running tests, so at least tests run in
// debug-mode won't spew output. NOTE: `cfg(test)` alone isn't sufficient: the
// crate is compiled normally for integration tests.
#[cfg(not(any(debug_assertions, test, doctest)))]
macro_rules! write_out {
($($arg:tt)*) => ({
use std::io::{Write, stdout, stderr};
... | Rust |
-snippet>
<related-ui search_key="background"></related-ui>
0.9.16 / 2013-06-06
===================
* transports: added tests for htmlfile escaping/unescaping
0.9.15 / 2013-06-06
===================
* transports: added escaping to htmlfile (fixes #1251)
0.9.14 / 2013-03-29
===================
* manager: fi... | Markdown |
nt: Int): Instant = deprecatedToError()
@Deprecated(
"Use fromSecondOfUnixEpoch() instead.",
ReplaceWith("Instant.fromSecondOfUnixEpoch(second, nanosecondAdjustment)"),
DeprecationLevel.ERROR
)
@Suppress("UNUSED_PARAMETER")
fun fromUnixEpochSecond(sec... | Kotlin |
null
**2024-04-23**|**Double Privacy Guard: Robust Traceable Adversarial Watermarking against Face Recognition**|双重隐私卫士:针对人脸识别的鲁棒可追溯对抗性水印|Yunming Zhang, Dengpan Ye, Sipeng Shen, Caiyun Xie, Ziyi Liu, Jiacheng Deng, Long Tang|<http://arxiv.org/pdf/2404.14693v1>|null
**2024-04-23**|**LaneCorrect: Self-supervised Lane Det... | Markdown |
5f92c: 6b
5f92d: 00 halt
5f92e: 00 halt
5f92f: 00 halt
5f930: 6b 00 00 cvtrdl $0x0 [d-float],$0x0
5f933: 00 halt
5f934: 6b 00 00 cvtrdl $0x0 [d-float],$0x0
5f937: 00 halt
5f938: 08 00 00 00 cvtps $0x0,$0x0,$0x0,(r10)
5f93c: 6a
5f... | Assembly |
hier maximaal {0} tekens in."),
minlength: $.validator.format("Vul hier minimaal {0} tekens in."),
rangelength: $.validator.format("Vul hier een waarde in van minimaal {0} en maximaal {1} tekens."),
range: $.validator.format("Vul hier een waarde in van minimaal {0} en maximaal {1}."),
max: $.validator.format("Vul ... | JavaScript |
........................................
even
header: dc.w 2,640,400,1,1,1
dc.w 1,640,200,2,1,3
dc.w 0,320,200,4,1,15
Vdi_0: dc.b 0,30,2,4,8,12,6,10,14,16,18,20,24,28,22,26
dc.b 0,6,2,4
dc.b 0,2
even
end
;------------------------------------------------------------------------- | Assembly |
Arb.int(0..100000).distinct().take(100).toList().shouldBeUnique().shouldHaveSize(100)
}
test("without enough entropy distinct should throw") {
shouldThrow<NoSuchElementException> {
Arb.int(1..9).distinct().take(10).toList().shouldHaveSize(10)
}
}
test("distinct should honour attem... | Kotlin |
Value(fakePaymentIdValue);
assertEquals(actual, false);
});
test("should return true if value matches pattern", () => {
const fakePaymentIdValue =
"cs_live_a1VHFUz7lYnXOL3PUus13VbktedDQDubwfew8E70EvnS1BTOfNTSUXqO0i";
const actual = isValidPaymentIdValue(fakePaymentIdValue);
assertEquals(actual... | Typescript |
lue-bg: var(--accent-8);
}
&.warn {
--rst-bg: var(--warn-8);
--rs-thumb-value-bg: var(--warn-8);
}
&.error {
--rst-bg: var(--error-8);
--rs-thumb-value-bg: var(--error-8);
}
&.success {
--rst-bg: var(--success-8);
--rs-thumb-value-bg... | CSS |
nk .previous {
background-repeat: no-repeat;
background-position: center;
background-color: transparent;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 9' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.06463 4.42111C1.96161 4.22088 1.... | CSS |
NTRL ;DELETE WINDOW
MOVE #1,CONTRL+2
MOVE #1,CONTRL+4
CLR CONTRL+6
CLR CONTRL+8
MOVE WIHANDLE,INTIN
JSR AES
DC $A009
CLOSEW2 RTS
CLS JSR NOCLIP ;CLEAR OPEN WINDOW
JSR TRANSOFF
CLR D0
JSR SETCOLOR
MOVE #1,D0
JSR SETFILL
CLR D0
JSR FILLPERI
MOVE WINDX,D0
MOVE WINDY,D1
MOVE WINDX,D2
MOVE WINDY,D3
ADD ... | Assembly |
import serial
import pandas as pd
import matplotlib.pyplot as plt
from datetime import datetime
from collections import deque
# Establish serial connection with Arduino
ser = serial.Serial('COM3', 9600) # Change 'COM3' to the correct serial port
ser.flushInput()
# Initialize empty lists to store data
timestamps = []... | Python |
=== Modifier) this else CombinedModifier(this, other)
/**
* A single element contained within a [Modifier] chain.
*/
interface Node<Self : Node<Self>> : Modifier {
override fun <R> foldIn(initial: R, operation: (R, Node<*>) -> R): R =
operation(initial, this)
override fu... | Kotlin |
ctEngineHttpCookieTest12",
DetectEngineHttpCookieTest12);
UtRegisterTest("DetectEngineHttpCookieTest13",
DetectEngineHttpCookieTest13);
UtRegisterTest("DetectEngineHttpCookieTest14",
DetectEngineHttpCookieTest14);
UtRegisterTest("DetectEngineHttpCooki... | C |
it->second->clean();
components_.erase(it);
}
}
// 关键循环函数
void update(float delta_time, engine::core::Context& context); ///< @brief 更新所有组件
void render(engine::core::Context& context); ///< @brief 渲染所有组件
void clean(); ... | C |
match decipher(CIPHERED_MESSAGE, TEST_KEY, TEST_CHARSET) {
Ok(deciphered_text) => {
assert_eq!(ORIGINAL_MESSAGE, deciphered_text, "Deciphered message was not the one we were expecting")
},
Err(E) => {
assert!(false, format!("Error happened: {}", E))
... | Rust |
file)
}};
(xml => $file:tt) => {{
embed!(@internal => "application/xml", "xml", $file)
}};
(match $param:expr => { $( [ $token:tt ] => $file:tt , )+ $rest:ident => $body:block, }) => {{
match $param {
$(
concat!($file, ".", stringify!($token)) => embed!($token... | Rust |
op: 0em;
}
.ui.table:last-child {
margin-bottom: 0em;
}
/*******************************
Parts
*******************************/
/* Table Content */
.ui.table th,
.ui.table td {
-webkit-transition: background 0.1s ease, color 0.1s ease;
transition: background 0.1s ease, color 0.1s ease;
}
/* Head... | CSS |
o conjunto de tres números, pero uno de ellos debe ser el número correcto. Te doy 54, 88 y 92. Ves que el número 88 aparece en ambos conjuntos, por lo que debe ser el número correcto y estarías en lo correcto.</p>\n<p>El ataque a la privacidad de Monero funciona de la misma manera. Monero se basa en firmas de anillo, q... | Dart |
�▀ ▀──▀ ▀▀▀▀ ▀▀▀", "Wizard Mileage", "https://raw.githubusercontent.com/CodeWizardsDev/wizard-mileage/refs/heads/main/version.txt", "https://raw.githubusercontent.com/CodeWizardsDev/wizard-mileage/refs/heads/main/changelog.txt", luaFileNames)
end
end)
---------------- Exports ----------------
--[[
Exports fo... | Lua |
Вуаль затмения",
[23018] = "Перстень Павшего Защитника",
[23019] = "Полный шлем ледяной погибели",
[23020] = "Снежный полный шлем",
[23021] = "Наручники Души Жнеца",
[23022] = "Откупные для скряги",
[23023] = "Ошейник садиста",
[23024] = "Готовые бумаги о полевых обязанностях",
[23025] = "Печать Проклятых",
[23027] = "... | Lua |
ABLE_STORAGE_IN_ISOLATED_FUNCTION, 268, 16);
Assert.assertEquals(result.getErrorCount(), i);
}
@Test(dataProvider = "functionsToTestIsolationInferenceWithStartAction")
public void testIsolationInferenceWithStartAction(String funcName) {
BRunUtil.invoke(isolationInference1, funcName);
}
... | Java |
dert","{0} Zeilen ge\xE4ndert","Unterschied {0} von {1}: urspr\xFCngliche Zeile {2}, {3}, ge\xE4nderte Zeile {4}, {5}","leer","{0}: unver\xE4nderte Zeile {1}","{0} urspr\xFCngliche Zeile {1} ge\xE4nderte Zeile {2}","+ {0} ge\xE4nderte Zeile(n) {1}","\u2013 {0} Originalzeile {1}"," verwenden Sie {0}, um die Hilfe zur Ba... | JavaScript |
chJa3FingerprintGetArgs>? Ja3Fingerprint { get; set; }
/// <summary>
/// Inspect the JA3 fingerprint. See `ja4_fingerprint` below for details.
/// </summary>
[Input("ja4Fingerprint")]
public Input<Inputs.WebAclRuleStatementRegexMatchStatementFieldToMatchJa4FingerprintGetArgs>? J... | C# |
import torch
import whisper
import numpy as np
import sounddevice as sd
from TTS.api import TTS
def get_stt_model(model_name: str = 'tiny'):
return whisper.load_model(model_name)
def get_tts_model(model_name: str = 'tts_models/multilingual/multi-dataset/xtts_v2'):
gpu_available = torch.cuda.is_available()... | Python |
name(name), m_options(false)
{
SetHelp(help);
}
BreakpointName(const ConstString &name,
BreakpointOptions &options,
const Permissions &permissions = Permissions(),
const char *help = nullptr) :
m_name(name), m_options(options),
m_permis... | C |
memset((&L_351), 0, sizeof(L_351));
Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_351), L_348, L_350, /*hidden argument*/NULL);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_352 = V_7;
float L_353 = L_352.get_x_0();
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_354 = V_7;
float L... | C++ |
2
// CHECK: [0x66,0x00,0xae,0xd0,0x01,0x05,0x02,0x00]
v_cmpsx_o_f32_e64 flat_scratch, v1, v2
// CHECK: [0x68,0x00,0xae,0xd0,0x01,0x05,0x02,0x00]
v_cmpsx_o_f32_e64 vcc, v1, v2
// CHECK: [0x6a,0x00,0xae,0xd0,0x01,0x05,0x02,0x00]
v_cmpsx_o_f32_e64 tba, v1, v2
// CHECK: [0x6c,0x00,0xae,0xd0,0x01,0x05,0x02,0x00]
v_cmpsx... | Assembly |
key_change", code = "f0307", char = "" },
{ name = "md-key_link", code = "f119f", char = "" },
{ name = "md-key_minus", code = "f0308", char = "" },
{ name = "md-key_outline", code = "f0dd6", char = "" },
{ name = "md-key_plus", code = "f0309", char = "" },
{ name = "md-key_remove", code =... | Lua |
e) {
// Tangani error saat login gagal
print('REGISTER failed: $e');
}
},
),
),
SizedBox(
height: 50,
),
Row(
children: <Widget>[
const Text... | Dart |
guage-"].duotone-theme-earth,
pre[class*="language-"].duotone-theme-earth {
font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
font-siz... | CSS |
/*
Copyright 2015 Google Inc. 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.
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 ... | C |
initial app generation skipped Action Cable, Active Record, etc.,
the update task honors those skips too.
([Pull Request](https://github.com/rails/rails/pull/29645))
* Allow passing a custom connection name to the `rails dbconsole`
command when using a 3-level database configuration.
Example: `bin/r... | Markdown |
and the dojo.Deferred
// for the request with the topic.
// done: String
// "/dojo/io/done" is sent whenever an IO request has completed,
// either by loading or by erroring. It passes the error and
// the dojo.Deferred for the request with the topic.
// stop: String
// "/dojo/io/stop" is sent when ... | JavaScript |
// already normalized
let cost = ray.d.dot(&normal);
trace(ray, scene, depth + 1, &mut tmp);
*clr += (tmp * obj.cl).scale(cost * 0.1 * rr_factor);
}
// Specular BRDF - this is a singularity in the rendering equation that follows
// delta distribution, therefo... | Rust |
On .mblSwitchInner {
left: -51px;
}
.mblSwRoundShape2 .mblSwitchBgRightRtl {
left: 0px;
}
.mblSwitchRtl.mblSwRoundShape2 .mblSwitchKnob {
left: 51px;
}
.mblSwRoundShape2 .mblSwitchTextRightRtl {
left: -42px;
}
.mblSwitchRtl.mblSwArcShape1.mblSwitchOff .mblSwitchInner {
left: 0px;
}
.mblSwArcShape1 .mblSwitchB... | CSS |
e.graphics
~~~~~~~~~~~~~
This module defines graphic-related constants, mostly taken from
:manpage:`console_codes(4)` and
http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html.
:copyright: (c) 2011-2013 by Selectel, see AUTHORS for details.
:license: LGPL, see ... | Python |
Huilier’s Theorem).
// consider the current line string as a polygon (a closed linear ring)
final polygon = lineString;
if (polygon.length < 4) {
throw const FormatException('Polygon must contain at least 4 points.');
}
final first = polygon.first;
final last = polygon.last;
if (first... | Dart |
uHT0BIRExCStY6dk+O5Qt2NaEuEGhCXchEuRpfFzNN0mrHkAkpTfdhHnXWSSOdvUGkOT3ngEjzfXJ3et4RnZCyUp986lNw6lOg+vDzywSMhJiaWBeyEA/xNbEuoiOmJtDFLMRG+UiARPnivT1dIo2MZnXGFp0QaVpnEpKa11lCMzpbIIWM5vScLTpppOcqZDT7pvP2oXXbguZ6umDnvufGngt6NziDawDFK1gzHgkK+ms9Iv7feNM5yqqYQen8ut68JAb9yWI93llZQNAU8PUmCbb6a+9/Nwn5AAAgmmIyttSC7elnw4S7qASJI4HiFb... | CSS |
from hyperot.events import GroupMessageEvent
from ModuleClass import ModuleInfo, ModuleRegister, Module
from hyperot.segments import *
from hyperot.common import Message
from hyperot.utils.logic import Downloader
from pyncm import apis
import os
import hashlib
def distance(s1: str, s2: str) -> int:
if s2 > s1:
... | Python |
。', '', '', 'Bg_9031.jpg', '', '', '0.5,0.25', '1', '', '6009001', '', '', '2', '', '卡提那', 'Courtain', '[{"id":6009001,"pos":2,"enter":2}]', '', '', '', '', '', '', '', '', 'Plot_Encounter', '', '2011202', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''},
{'2011202', '', '撤至外围,电荷水平逐渐下降,稍微空旷之地也能让人放心一点。', ... | Lua |
def count_vowels(str):
vowels="aeiouAEIOU"
return sum(1 for char in str if char in vowels)
word="AnkushSrivastava"
result=count_vowels(word)
print(result) | Python |
ase: true);
}
NSDictionary initWithObjects_forKeys_(NSArray objects, NSArray keys) {
final _ret = _lib._objc_msgSend_152(
_id,
_lib._sel_initWithObjects_forKeys_1,
objects._id,
keys._id,
);
return NSDictionary._(_ret, _lib, retain: true, release: true);
}
NSDictionary? init... | Dart |
r4
.L_gnp_nxtaddr:
adds r0, #8
subs r1, #1
bne .L_gnp_chkaddr
subs r0, r3, r2
blo .L_gnp_exit
cmp r0, #0x20 //check for the pma table overlap
.L_gnp_exit:
pop {r1, r3, r4, pc}
.size _get_next_pma, . - _get_next_pma
.thumb_func
.type _ep_con... | Assembly |
(weatherResponse.statusCode != 200) {
throw WeatherRequestFailure();
}
final bodyJson = jsonDecode(weatherResponse.body) as Map<String, dynamic>;
if (!bodyJson.containsKey('current_weather')) {
throw WeatherNotFoundFailure();
}
final weatherJson = bodyJson['current_weather'] as Map<St... | Dart |
None;
static FMouse *(*MouseFactory[])() =
{
CreateWin32Mouse,
CreateDInputMouse,
CreateRawMouse
};
// PUBLIC DATA DEFINITIONS -------------------------------------------------
FMouse *Mouse;
bool NativeMouse;
bool CursorState;
CVAR (Bool, use_mouse, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
CVAR (Bool, m_hidepoi... | C++ |
otPts[p][1] = -points[p][0] * orient.M[1][0]
- points[p][1] * orient.M[1][1]
- points[p][2] * orient.M[1][2];
}
for (p = nface; p < npoint; p++) {
rotPts[p][2] += z;
persp = (Zeye - rotPts[p][2]) / (scale * Zeye);
... | Java |
ComboBox-selectButton').withText('option 2'))
.expect(selectedItems.withText('option 1').exists)
.ok()
.expect(selectedItems.withText('option 2').exists)
.ok()
// リストボックスが表示されたままであること
.expect(listbox.visible)
.ok()
// 選択したアイテムを削除ボタンで選択解除できること
.click(selectedItems.withText('option 1')... | Typescript |
oddchen](https://github.com/Goddchen))
- Added a sentence about browser's back button to README
- Fixed and improved grammar in doc comments ([ggirotto](https://github.com/ggirotto))
### Examples
- Fixed analyzer warnings ([Goddchen](https://github.com/Goddchen))
- Updated [authentication_bloc example](https://github... | Markdown |
lgraph.NewFieldSpec(artifactreference.FieldID, field.TypeUint64),
},
}
for _, k := range nodes {
edge.Target.Nodes = append(edge.Target.Nodes, k)
}
_spec.Edges.Add = append(_spec.Edges.Add, edge)
}
if n, err = sqlgraph.UpdateNodes(ctx, dpu.driver, _spec); err != nil {
if _, ok := err.(*sqlgraph.NotFou... | Go |
(4, 4);
///The search button.
static const SEARCH = PdfToolbarItems._internal(1024, 1024);
///The zoom in button.
static const ZOOM_IN = PdfToolbarItems._internal(8, 8);
///The zoom out button.
static const ZOOM_OUT = PdfToolbarItems._internal(16, 16);
///Set of all values of [PdfToolbarItems].
stat... | Dart |
23.
*/
.extern artLookupResolvedMethod
.extern __atomic_load_16 # For __int128_t std::atomic::load(std::memory_order).
ENTRY art_quick_imt_conflict_trampoline
SETUP_SAVE_REFS_AND_ARGS_FRAME_INTERNAL /* save_s4_thru_s8 */ 0
ld $t1, FRAME_SIZE_SAVE_REFS_AND_ARGS($sp) # $t1 = referrer.
... | Assembly |
.api_token, channel, timestamp, "x")?;
self.help(user_id, channel, timestamp, false)?;
}
Some(name) => {
if self.hosts.iter().find(|&x| x == name).is_none() {
post_message(
&self.api_token,
... | Rust |
m;margin-bottom:0.5787em;}.kss-modifier h4 small,.kss-modifier .h4 small,.kss-modifier h5 small,.kss-modifier .h5 small,.kss-modifier h6 small,.kss-modifier .h6 small{font-size:75%;}.kss-modifier h1,.kss-modifier .h1{font-size:1.44em;line-height:1.1;}@media screen and (min-width: 50em) {.kss-modifier h1,.kss-modifier .... | CSS |
s = 0;
this._isActive = false;
this.particleCount = 0;
this.duration = 0;
this.life = 0;
this.lifeVar = 0;
this.angle = 0;
this.angleVar = 0;
this.startSize = 0;
this.startSizeVar = 0;
this.endSize = 0;
this.endSizeVar = 0;
... | Typescript |
v_mov_b32 v[v_tmp], v[v_gld_a+3]
ds_write_b128 v[v_sst_a_os], v[v_tmp:v_tmp+3] offset:1536
v_mov_b32 v[v_tmp+1], v[v_gld_a+7]
ds_write_b128 v[v_sst_a_os], v[v_tmp:v_tmp+3] offset:1536
v_mfma_f32_4x4x1f32 a[a_c+0:a_c+3], v[v_a+2], v[v_b+4], a[a_c+0:a_c+3] ; repeat:0x0, step:0x0, num_a_c:4
v_mov_... | Assembly |
struct midi_operations gus_midi_operations =
{
{"Gravis UltraSound", 0, 0, SNDCARD_GUS},
gus_midi_open,
gus_midi_close,
gus_midi_ioctl,
gus_midi_out,
gus_midi_start_read,
gus_midi_end_read,
gus_midi_kick,
NULL, /* command */
gus_midi_buffer_status
};
long
gus_midi_init (long mem_start)
{
OUTB... | C |
#!/usr/bin/env python
#
# Copyright 2017 Google Inc. 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | Python |
the same value, according to
/// `==`.
bool isAllTheSame(Iterable<Object?> iter) {
if (iter.isEmpty) return true;
final firstValue = iter.first;
for (var value in iter.skip(1)) {
if (value != firstValue) {
return false;
}
}
return true;
}
/// Returns whether [span] covers multiple lines.
bool ... | Dart |
this.pageConfig,
this.guideToast});
DiscoveryPageEntity.fromJson(Map<String, dynamic> json) {
cursor = json['cursor'];
if (json['blocks'] != null) {
//blocks = new List<Blocks>();
blocks = Map();
json['blocks'].forEach((v) {
//int index = json['blocks'].indexOf(v);
... | Dart |
{
val grid =
GridBuilder(2, 6)
.addCage(
2,
GridCageAction.ACTION_SUBTRACT,
GridCageType.DOUBLE_HORIZONTAL,
0,
).addCage(
1,
... | Kotlin |
;
/**
* 是否为框架合同,默认False
*/
@ApiField("is_frame_contract")
private Boolean isFrameContract;
/**
* 是否有限制我方业务范畴、业务地域的非竞争条款
*/
@ApiField("limit_business_area")
private Boolean limitBusinessArea;
/**
* 是否有限制我方业务范畴、业务地域的非竞争条款说明
*/
@ApiField("limit_business_area_explain")
private String limitBusinessAr... | Java |
细类型,int、string
*/
public void setSourceObjectDataTypeName(String SourceObjectDataTypeName) {
this.SourceObjectDataTypeName = SourceObjectDataTypeName;
}
/**
* Get 源字段名称
* @return SourceObjectValue 源字段名称
*/
public String getSourceObjectValue() {
return this.SourceObj... | Java |
3, y3);
endShape();
}
public void quad(float x1, float y1, float x2, float y2,
float x3, float y3, float x4, float y4) {
beginShape(QUADS);
vertex(x1, y1);
vertex(x2, y2);
vertex(x3, y3);
vertex(x4, y4);
endShape();
}
//////////////////////////////////////////... | Java |
= "INGAME_BLOCKS_3",
emitter_box = {
minVelX = -150,
maxVelX = 150,
minVelY = -450,
maxVelY = -150
},
minAngleVel = -8,
maxAngleVel = 8,
minScaleBegin = 0.5,
maxScaleBegin = 0.8,
minScaleEnd = 1.1,
maxScaleEnd = 1.3,
lifeTime = 3.5,
gravityX = 0,
gravi... | Lua |
tatic const struct qcom_cc_desc gpu_cc_scuba_desc = {
.config = &gpu_cc_scuba_regmap_config,
.clks = gpu_cc_scuba_clocks,
.num_clks = ARRAY_SIZE(gpu_cc_scuba_clocks),
};
static const struct of_device_id gpu_cc_scuba_match_table[] = {
{ .compatible = "qcom,scuba-gpucc" },
{ }
};
MODULE_DEVICE_TABLE(of, gpu_cc_scub... | C |
[6706] = {"巴瑞特·克罗斯","角鹰兽管理员"},
[6707] = {"法拉德","祖师级潜行者"},
[6726] = {"萨隆","双足飞龙管理员"},
[6727] = {"旅店老板布瑞安娜","旅店老板"},
[6728] = {"纳尔尼",nil},
[6729] = {"莫瑞杜恩",nil},
[6730] = {"金克·铁钩","工程学供应商"},
[6731] = {"哈鲁恩·暗纹","制皮供应商"},
[6732] = {"艾米·皮尔斯",nil},
[6733] = {"石窟猛击者",nil},
[6734] = {"旅店老板纳克罗·壁炉","旅店老板"},
[6735] = {"旅店老板塞琳尼","... | Lua |
KFJldHVybg== 88674
ZWdyYQ== 88675
dXRpdm8= 88676
IGFwcGVuZGl4 88677
IFJUVkY= 88678
IFNFQUw= 88679
IGd5cHN1bQ== 88680
X0FyZw== 88681
IGlsbHVtaW5hdGU= 88682
IFNjaGlmZg== 88683
cXVpbA== 88684
LkNvbWJvQm94U3R5bGU= 88685
J10pKQoK 88686
IGFsdGVycw== 88687
IHByYWN0aXNl 88688
IHVzdA== 88689
IERpbWl0 88690
LVJlZ3VsYXI= 88691
IG... | Kotlin |
)
BEQ.S L27FF0
MOVE.W -$24(A6),D0
NEG.W D0
SUB.W -$26(A6),D0
BRA.S L27FF8
L27FF0 MOVE.W -$24(A6),D0
SUB.W -$26(A6),D0
L27FF8 MOVE.W D0,-$26(A6)
MOVE.L -$2A(A6),-(A7)
MOVE.W -$26(A6),-(A7)
BSR.S L28040
ADDQ.L #2,A7
MOVE.L D0,-(A7)
JSR L28388
ADDQ.L #8,A7
MOVE.L D0,-$2E(A6)
MOVE.L -$2E(A6),(A7)
JSR L28116... | Assembly |
_ExecuteUbergraph_WBP_OverviewHealCartridge) == 0x000040, "Wrong size on WBP_OverviewHealCartridge_C_ExecuteUbergraph_WBP_OverviewHealCartridge");
static_assert(offsetof(WBP_OverviewHealCartridge_C_ExecuteUbergraph_WBP_OverviewHealCartridge, EntryPoint) == 0x000000, "Member 'WBP_OverviewHealCartridge_C_ExecuteUbergraph... | C++ |
// Copyright 2018 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.
// This file is separate from base/win/win_util.h to avoid pulling windows.h
// into too many translation units.
#ifndef BASE_WIN_WIN_CLIENT_METRICS_H_
#... | C |
;
const startPosition = containerRanges.reduce(
(min, textRange) => Math.min(min, textRange.pos),
Number.MAX_SAFE_INTEGER
);
const endPosition = containerRanges.reduce(
(max, textRange) => Math.max(max, textRange.end),
Number.MIN_SAFE_INTEGER
);
return {
pos: startPosition,
end: endP... | Typescript |
t, err)
})
t.Run("errors with unsupported scheme", func(t *testing.T) {
url := "gopher://myhost"
_, err := newConfluentSchemaRegistry(url, nil, nil)
require.Error(t, err)
})
t.Run("configure timeout", func(t *testing.T) {
regServer := cdctest.StartTestSchemaRegistry()
defer regServer.Close()
r, err := ... | Go |
i, 5, EastAsianMonth.valueOf(8), 6)));
assertThat(JapaneseCalendar.DAY_OF_MONTH.getDisplayName(Locale.ENGLISH), is("day"));
assertThat(JapaneseCalendar.DAY_OF_MONTH.getDisplayName(Locale.ROOT), is("DAY_OF_MONTH"));
assertThat(
jcal.with(JapaneseCalendar.DAY_OF_MONTH.maximized()),
... | Java |
from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'Collection/T1123-1'
self.controller_type = ''
self.external_id = 'T1123'
... | Python |
-- chunkname: @scripts/ui/views/inventory_background_view/inventory_background_view_settings.lua
local inventory_background_view = {
camera_time = 0.5,
default_slot = "slot_primary",
level_name = "content/levels/ui/inventory/inventory",
loadout_update_timeout = 3,
shading_environment = "content/shading_environme... | Lua |
/*
* 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 |
namespace Tvl.Java.DebugInterface.Client.Connect
{
using System;
using System.Collections.Generic;
using System.Linq;
using Tvl.Java.DebugInterface.Connect;
public sealed class LocalDebuggingAttachingConnector : IAttachingConnector
{
private readonly ITransport _transport = new NetName... | C# |
tROM_readFile;
romFile_seekFile = fileBrowser_libfat_seekFile;
romFile_init = fileBrowser_libfat_init;
romFile_deinit = fileBrowser_libfatROM_deinit;
// Make sure the romFile system is ready before we browse the filesystem
romFile_deinit( romFile_topLevel );
romFile_init( romFile_topLevel );
pMenuContext-... | C++ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.