content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
code: 0xD6,
name: 'SET 2,(hl)',
execute: (cpu: CPU) => setBit(cpu, cpu.pointerHL8(), 2, 4)
},
{
code: 0xD7,
name: 'SET 2,a',
execute: (cpu: CPU) => setBit(cpu, cpu.registers.a, 2)
},
{
code: 0xD8,
name: 'SET 3,b',
execute: (cpu: CPU... | Typescript |
blocksize};
}
else if (modeType == "CRD")
{
shape0 = {N, C/(blocksize * blocksize), blocksize, blocksize, H, W};
perm = {0, 1, 4, 2, 5, 3};
shape1 = {N, C/(blocksize * blocksize), H * blocksize, W * blocksize};
}
else
CV_Error(Erro... | C++ |
The MIT License (MIT)
//
// Copyright (c) 2022 foxsofter
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, m... | Dart |
border: none; }
/* line 7, ../themes/stylesheets/ext4/default/util/_messagebox.scss */
.x-message-box .x-progress-wrap {
margin-top: 4px; }
/* line 11, ../themes/stylesheets/ext4/default/util/_messagebox.scss */
.x-message-box-icon {
width: 47px;
height: 32px; }
/* line 19, ../themes/stylesheets/ext4/default/u... | CSS |
/*
* Copyright (C) 2012 Michael Brown <mbrown@fensystems.co.uk>.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.... | Assembly |
const unsigned char data[] = {120,156,171,202,201,76,82,72,73,44,73,84,72,46,74,77,44,73,77,81,40,207,44,201,80,40,175,8,207,76,73,79,45,41,86,48,210,51,213,171,80,136,246,77,44,74,206,80,48,50,143,213,1,202,69,249,120,58,197,131,8,29,133,42,144,126,67,61,67,61,19,0,191,86,23,216};
const char *value = "zlib data cr... | C++ |
sut,
loadCitiesByUfServiceSpy
}
}
describe('ApiLoadCitiesByUf', () => {
test('should call LoadCitiesByUfService with correct value', async () => {
const { sut, loadCitiesByUfServiceSpy } = makeSut()
const ufValue = 'any_uf'
await sut.load(ufValue)
expect(loadCitiesByUfServiceSpy.data).toBe(... | Typescript |
;
; first_nes
; lib/isr/poweron_reset.s
;
; This Interrupt Service Routine is called when the NES is reset, including when it is turned on.
;
; Written by Greg M. Krsak <greg.krsak@gmail.com>, 2018
;
; Based on the NintendoAge "Nerdy Nights" tutorials, by bunnyboy:
; http://nintendoage.com/forum/messageview.cfm?catid... | Assembly |
f)
lineTo(15.0586f, 3.0469f)
curveTo(15.0586f, 1.2188f, 13.7812f, 0.0f, 11.8711f, 0.0f)
lineTo(3.1875f, 0.0f)
curveTo(1.2773f, 0.0f, 0.0f, 1.2188f, 0.0f, 3.0469f)
lineTo(0.0f, 21.7617f)
curveTo(0.0f, ... | Kotlin |
lastName: 'Hong Vinh',
username: 'lambiengcode99@gmail.com',
password: '123123',
token: '',
);
// assert
expect(result, false);
});
});
group('Get info user', () {
test('get info user success', () async {
String? token = await authRepository!.login(
... | Dart |
utElement>_event.target;
// console.log("Changed " + target.name + " to " + target.value);
// Baumart
if(target.name == "Baum"){
baum = Number(target.value);
}
// Höhe
if(target.name == "slider"){
height = Number(target.value)/100;
document.getElementById("bg-slider").innerHTM... | Typescript |
Require().True(ok, "should be outstanding")
s.Require().Equal(receiptHandle2, receiptHandleOut2)
// Ack with wrong receiptHandle
s.Require().Error(s.broker.Ack(eval.ID, "zip"))
// Ack finally
s.Require().NoError(s.broker.Ack(eval.ID, receiptHandle2))
_, ok = s.broker.Inflight(out.ID)
s.Require().False(ok, "sho... | Go |
) while performing the command or during a self test.
HardwareError =0x4,
/// Indicates that:
/// a) the command was addressed to an incorrect logical unit number (see SAM-4);
/// b) the command had an invalid task attribute (see SAM-4);
/// c) the command was addressed to a logical unit whose curre... | Rust |
, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
trans... | CSS |
11156(%rip),%rax # 422ec0 <_$SYSTEM$_Ld30>
411d6a: 48 8b 50 08 mov 0x8(%rax),%rdx
411d6e: 48 8d 4c 24 18 lea 0x18(%rsp),%rcx
411d73: 48 89 df mov %rbx,%rdi
411d76: e8 f5 0f 00 00 ... | Assembly |
@override
@BuiltValueField(serialize: false)
_i2.GAskChangePasswordData? Function(
_i2.GAskChangePasswordData?,
_i2.GAskChangePasswordData?,
)? get updateResult;
@override
_i2.GAskChangePasswordData? get optimisticResponse;
@override
String? get updateCacheHandlerKey;
@override
Map<String, ... | Dart |
.include "asm/macros.inc"
.include "global.inc"
.section .text
non_word_aligned_thumb_func_start SVC_SoftReset
SVC_SoftReset: ; 0x038010D4
swi 0
bx lr
non_word_aligned_thumb_func_start SVC_WaitByLoop
SVC_WaitByLoop: ; 0x038010D8
swi 3
bx lr
non_word_aligned_thumb_func_start SVC_WaitIntr
SVC_WaitIntr: ; 0x0... | Assembly |
wantValid: false,
}}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
env, err := cel.NewEnv(
Lib(),
)
assert.NoError(t, err)
impl := impl{env.CELTypeAdapter()}
out := impl.decode_string_string(tt.token, tt.key)
got, err := utils.ConvertToNative[Token](out)
assert.NoError(t, ... | Go |
apache.org/licenses/LICENSE-2.0>.
*/
package com.t8rin.imagetoolboxlite.core.filters.presentation.model
import android.graphics.Bitmap
import com.t8rin.imagetoolboxlite.core.filters.domain.model.Filter
import com.t8rin.imagetoolboxlite.core.resources.R
class UiEnhancedPixelationFilter(
override val value: Float... | Kotlin |
4e5af5d0b22a5e38b877f500711", "2.0-beta3");
log4j2RollingFileManagerDigests.put("167dfbf8e4da0fccc1145f841ac3d035", "2.0-beta4");
log4j2RollingFileManagerDigests.put("d02e41ca06e35a28dbda2e8721142a72", "2.0-beta9");
log4j2RollingFileManagerDigests.put("8e8beef8634c0aff2e5d63fcc87c6661", "2.0-rc1");
log4j2Rollin... | Java |
#!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import attr
import numba
import numpy as np
from numpy import ndarray
from habitat_sim.registry import registry
f... | Python |
this.attackAIR = this._fighter.y < this._target.gety();
_loc_4 = this._fighter.getCtrler().getMcCtrl().getCurAction();
if (_loc_4 == "砍1")
{
_loc_3 = 200; //优先级
}
}
else
{
... | Typescript |
.");
print(stats.duration);
print("Status >>>");
print(stats);
},
),
);
await engine.enableAudio();
await engine.setClientRole(role: ClientRoleType.clientRoleBroadcaster);
await engine.setAudioProfile(
profile: AudioProfileType.audioProfileDefault,
... | Dart |
.Should().Throw<XunitException>();
}
[Fact]
public void
When_a_string_is_negatively_matched_against_the_equivalent_of_null_pattern_it_should_throw_with_a_clear_explanation()
{
// Arrange
string subject = "hello world";
// Act
... | C# |
a) from t1 group by(b)",
// The final ones are b -> (b+1), b -> sum(a)
best: "DataScan(t1)->Aggr(sum(test.t1.a),firstrow(test.t1.b))->Projection",
fd: "{(1)-->(2,3), (2,3)~~>(1)} >>> {(1)-->(2,3), (2,3)~~>(1), (2)-->(4)} >>> {(2)-->(4,5)}",
},
// test for table x1 and x2
{
sql: "select a from x1 gr... | Go |
StageInfo stage = progress.nextStage(Asm2VecCloneDetectorIntegration.class, "Storing assembly objects...");
Iterable<Binary> bins = Iterables.concat(binaries);
// will skip if functions existed.
long count = 0;
for (Binary bin : bins) {
this.factory.addBinary(rid, bin);
count++;
stage.progress = coun... | Java |
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "IDetailCustomization.h"
#include "Blueprint/UserWidget.h"
class IDetailCategoryBuilder;
class IPropertyHandle;
/** Base helper for customizations on widget classes that dynamically generate entries of a given widget class */
class F... | C |
color: #f8f8f2;
}
.dark .makeup .hll {
background-color: #49483e;
}
.dark .makeup .bp {
color: #f8f8f2;
} /* :name_builtin_pseudo */
.dark .makeup .c {
color: var(--dark-comment-color);
} /* :comment */
.dark .makeup .c1 {
color: var(--dark-comment-color);
} /* :comment_single */
.dark .makeup .ch {
color... | CSS |
sp, #8
mov r3, #0
bl ov00_022F50E0
bl ov00_022F5594
str r0, [r4, #0xb0]
add sp, sp, #0x184
add sp, sp, #0x400
ldmia sp!, {r3, r4, pc}
arm_func_end ov00_02314158
arm_func_start ov00_023141B8
ov00_023141B8: ; 0x023141B8
stmdb sp!, {r4, r5, r6, r7, r8, sb, sl, fp, lr}
sub sp, sp, #0x31c
sub sp, sp, #0x800
m... | Assembly |
json e ativar os
//"strictPropertyInitialization": false -- "experimentalDecorators": true -- "emitDecoratorMetadata": true
//adicionar o yarn add uuid para nós criarmos o id no proprio código.
//yarn add @types/uuid -D
@Entity("surveys_users")
class SurveyUser{
//define como chave primaria
@PrimaryColumn()
... | Typescript |
string comparison here. If there are more definitive
// ways to check to see if the pin name was created and not read from iJack
// then we can improve this shared function with that
std::wstring generated(std::wstring(FilterName) + L" [" + std::to_wstring(PinId) + L"]");
std::wstring nameToCheck(Name... | C++ |
icmp sgt i32 [[TMP1444]], [[TMP1445]]
// SIMD-ONLY0-NEXT: br i1 [[CMP3065]], label [[IF_THEN3067:%.*]], label [[IF_END3068:%.*]]
// SIMD-ONLY0: if.then3067:
// SIMD-ONLY0-NEXT: [[TMP1446:%.*]] = load i32, ptr [[IE]], align 4
// SIMD-ONLY0-NEXT: store i32 [[TMP1446]], ptr [[IX]], align 4
// SIMD-ONLY0-NE... | C++ |
`:resource/:id/:relationship`](https://jsonapi.org/format/#document-resource-object-relationships) or [`:resource/:id/relationships/:relationship`](https://jsonapi.org/format/#document-resource-object-linkage)
* @param {Object|Object[]} body Data to send in the request
* @param {Object} [config] Additional co... | Typescript |
import torch
import torch.nn.functional as F
from kornia.color import lab_to_rgb, rgb_to_lab
from ..utils import compile_wrapper
@compile_wrapper
def find_pixel_luminance(chunk):
mid_idx = chunk.shape[2] // 2
mid = chunk[:, :, mid_idx].unsqueeze(2)
med = chunk.median(dim=2).values.unsqueeze(2)
mu = c... | Python |
[:n], nil
}
}
func (m *TokenomicsData) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenomicsData.Merge(m, src)
}
func (m *TokenomicsData) XXX_Size() int {
return m.Size()
}
func (m *TokenomicsData) XXX_DiscardUnknown() {
xxx_messageInfo_TokenomicsData.DiscardUnknown(m)
}
var xxx_messageInfo_TokenomicsData prot... | Go |
sy globalSeed':
value = prompt[node_id]['inputs']['value']
length = len(node['widgets_values'])
node['widgets_values'][length-1] = node['widgets_values'][0]
node['widgets_values'][0] = value
elif node_id in seed_widget_map:
widg... | Python |
must be non-nil.
func (in *KubeProxy) DeepCopyInto(out *KubeProxy) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kube... | Go |
)
})
t.Run("age drop", func(t *testing.T) {
resourceURLNotifier := newTestResourceNotifier(time.Minute, 10*time.Millisecond, 500)
defer resourceURLNotifier.Stop(true)
totalReceived := atomic.Int32{}
s.handler = func(w http.ResponseWriter, r *http.Request) {
time.Sleep(5 * time.Millisecond)
_, err := Re... | Go |
local parser = require("overseer.parser")
local ExtractMultiline = {
desc = "Extract a multiline string as a single field on an item",
doc_args = {
{
name = "opts",
type = "object",
desc = "Configuration options",
position_optional = true,
fields = {
{
name = "app... | Lua |
nchor++ < end) {
// current = LIST[(pointer = anchor)]
// while (
// pointer > start &&
// +(contrast((temp = LIST[pointer - 1]), current) as any) > 0
// ) {
// LIST[pointer--] = temp
// }
// pointer < anchor && (LIST[pointer] = current)
// }
// }
/** 合并原数组上连续的两个有序数组(比如:[1,3,5,7... | Typescript |
imports its values from
/// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods
static IoCertManagerAcmeV1OrderSpecIssuerRef? fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
// Ensure that the map contains the requi... | Dart |
: string,
): Promise<void> {
if (await this.store.getGenome(lotID) !== undefined) {
throw new Error("hexalot already claimed")
}
let lot: IHexalot
if (this.hexalots.length === 0) {
// GENESIS LOT
if (!coordsEquals(coords, ZERO)) {
t... | Typescript |
_type\":{\"tp\":252,\"flag\":0,\"flen\":-1,\"decimal\":-1,\"collate\":63,\"charset\":\"binary\"},\"has_distinct\":false}",
"{\"tp\":201,\"val\":\"gAAAAAAAABY=\",\"sig\":0,\"field_type\":{\"tp\":253,\"flag\":0,\"flen\":-1,\"decimal\":-1,\"collate\":46,\"charset\":\"utf8mb4\"},\"has_distinct\":false}",
"{\"tp\":201,\... | Go |
([In, MarshalAs(UnmanagedType.IDispatch)] object pj)
{
Delegate[] recipients = _eventBinding.GetEventRecipients("Change");
if( (true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0) )
{
Invoker.ReleaseParamsArray(pj);
return;
}
NetOffice.MSProjectApi.Project newpj = Factory.Cre... | C# |
array of dumps
std::vector<std::string> expectedDumps = LoadDumps(argv[1]);
for (int arg = 2; arg < argc; ++arg) files.push_back( argv[arg] );
mitk::TestDICOMLoading::ImageList images = loader.LoadFiles(files);
unsigned int imageCounter(0);
for ( mitk::TestDICOMLoading::ImageList::const_iterator imageIte... | C++ |
语人名+日耳曼语,含义是“权力+狼”(power+wolf)",
"rels":"abbr. release 释放,解除",
"relucent":"a. 光辉的, 明亮的",
"reluct":"v. 反抗, 反对",
"reluctance":"n. 不情愿, 勉强\\n[电] 磁阻",
"reluctance motor":"[电] 磁阻电动机",
"reluctancy":"n. 嫌恶, 不愿",
"reluctant":"a. 不情愿的, 勉强的\\n[法] 不愿的, 勉强的, 难以处理的",
"reluctantly":"adv. 不情愿地, 勉强地",
"reluctate":"vi. 向...反抗, 不同意, 表示勉... | Typescript |
if (property.NameEquals("value"u8))
{
List<VirtualMachineScaleSetSku> array = new List<VirtualMachineScaleSetSku>();
foreach (var item in property.Value.EnumerateArray())
{
array.Add(VirtualMachineScaleSetSku.Dese... | C# |
eMatrixF32Range only accepts column counts of 2, 3, and 4'
);
assert(
r === 2 || r === 3 || r === 4,
'sparseMatrixF32Range only accepts row counts of 2, 3, and 4'
);
return kSparseMatrixF32Values[c][r];
}
/** Short list of f16 values of interest to test against */
const kInterestingF16Values: number[] ... | Typescript |
/** @file
Copyright (c) 2019-2023, Intel Corporation. All rights reserved.<BR>
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 conditi... | C |
�垫",
[41112] = "机械雪地护目镜",
[41113] = "萨隆邪铁壁垒",
[41114] = "淬火萨隆邪铁护手",
[41115] = "怒鬃的鳍肢",
[41116] = "淬火萨隆邪铁护腕",
[41117] = "萨隆邪铁保护者",
[41118] = "氮气推进器",
[41119] = "萨隆邪铁炸弹",
[41120] = "设计图:强化钴质腿铠",
[41121] = "侏儒闪电发生器",
[41122] = "设计图:强化钴质胸甲",
[41123] = "设计图:强化钴质头盔",
[41124] = "设计图:强化钴质护肩",
[41125] = "zzOLD",
[41126] = "灿烂萨隆... | Lua |
* 跨账户设置安全组规则时,源端安全组所属的阿里云账户。
*
* - 如果SourceGroupOwnerAccount及SourceGroupOwnerID均未设置,则认为是设置您其他安全组的访问权限。
* - 如果已经设置参数SourceCidrIp,则参数SourceGroupOwnerAccount无效。
* @example `FinanceJoshua`
*/ "SourceGroupOwnerAccount"?: string;
/**
* 源端IP地址范围。支持CIDR格式和IPv4格式的I... | Typescript |
hecksum does not match" }
return entropy
}
fun MnemonicWords.toKey(path: String, saltPhrase: String = "") =
toSeed(saltPhrase).toKey(path)
/**
* Converts an entropy buffer to a list of words according to the BIP39 spec
*/
fun entropyToMnemonic(entropy: ByteArray, wordList: List<String>): String {
i... | Kotlin |
='40'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%232867B2' fill-rule='nonzero' d='M2.956 0h34.088C38.677 0 40 1.283 40 2.865v34.27C40 38.717 38.677 40 37.044 40H2.956C1.323 40 0 38.717 0 37.135V2.865C0 1.283 1.323 0 2.956 0z'/%3E%3Cpath fill='%23FFF' d='M12.146 34.5V15H6v19.5zM9.054 12.65c2.216 0 3.596-1.5... | CSS |
F-Droid.</li>\n<li>Pentru fiecare variație (flavor), am folosit o ramură separată (comanda <code>AutoUpdateMode: Version %v-fdroid-lm</code>). Asta deoarece Fastlane nu suportă variații cu Flutter.</li>\n<li>Prima dată adăugăm manual informațiile despre compilare, în viitor acestea vor fi adăugate automat de un bot, d... | Dart |
rubyblue .CodeMirror-line::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 86, 111, 0.99); }
.cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }
.cm-s-rubyblue .CodeMirro... | CSS |
എന്ന് അവിടെയുള്ള സുഖലോലുപന്മാര് പറയാതിരുന്നിട്ടില്ല."
},
{
"surah_number": 43,
"verse_number": 24,
"content":
"അദ്ദേഹം (താക്കീതുകാരന്) പറഞ്ഞു: നിങ്ങള് നിങ്ങളുടെ പിതാക്കളെ ഏതൊരു മാര്ഗത്തില് കണ്ടെത്തിയോ, അതിനെക്കാളും നല്ല മാര്ഗം കാണിച്ചുതരുന്ന ഒരു സന്ദേശവും കൊണ്ട് ഞാന് നിങ്ങളുടെ അടുത്ത് വന... | Dart |
65920105;
pub const HB_SCRIPT_LISU: ::libc::c_uint = 1281979253;
pub const HB_SCRIPT_MEETEI_MAYEK: ::libc::c_uint = 1299473769;
pub const HB_SCRIPT_OLD_SOUTH_ARABIAN: ::libc::c_uint = 1398895202;
pub const HB_SCRIPT_OLD_TURKIC: ::libc::c_uint = 1332898664;
pub const HB_SCRIPT_SAMARITAN: ::libc::c_uint = 1398893938;
pub... | Rust |
## $a0 = 00000000
/* 02690 80B16130 2B01000A */ slti $at, $t8, 0x000A
/* 02694 80B16134 1020000B */ beq $at, $zero, .L80B16164
/* 02698 80B16138 00000000 */ nop
/* 0269C 80B1613C 0C042DC8 */ jal func_8010B720
/* 026A0 80B16140 24050085 */ addiu $a1, $zero, 0x0085 ... | Assembly |
oster 2019-20|Smart Cruise Control (SCC)|[Upstream](#upstream)|
|Jeep|Grand Cherokee 2016-18|Adaptive Cruise Control (ACC)|[Upstream](#upstream)|
|Jeep|Grand Cherokee 2019-21|Adaptive Cruise Control (ACC)|[Upstream](#upstream)|
|Kia|Carnival 2022-24|Smart Cruise Control (SCC)|[Upstream](#upstream)|
|Kia|Carnival (China... | Markdown |
n=s[1];f.each(function(i){i[a]=i.x,i[n]=i.y})}e.DataSet.registerTransform("hierarchy.tree",g),e.DataSet.registerTransform("tree",g)},"./src/transform/hierarchy/treemap.ts":function(dt,lt,B){"use strict";Object.defineProperty(lt,"__esModule",{value:!0});var L=B("./node_modules/_tslib@2.1.0@tslib/tslib.js"),A=L.__importS... | JavaScript |
# train a miniature kleiner_astronaut model
out_dir = 'out-kleiner_astronaut'
eval_interval = 500 # keep frequent because we'll overfit
eval_iters = 500
log_interval = 20 # don't print too too often
# we expect to overfit on this small dataset, so only save when val improves
always_save_checkpoint = False
wandb_log ... | Python |
ress | salary
----+-------+-----+-----------+--------
1 | Paul | 32 | California| 20000
2 | Allen | 25 | Texas | 15000
3 | Teddy | 23 | Norway | 20000
4 | Mark | 25 | Rich-Mond | 65000
5 | David | 27 | Texas | 85000
6 | Kim | 22 | South-Hall| 45000
7 | James | 24 | Houston ... | Markdown |
20702": "甘州区",
"620721": "肃南裕固族自治县",
"620722": "民乐县",
"620723": "临泽县",
"620724": "高台县",
"620725": "山丹县",
"620802": "崆峒区",
"620821": "泾川县",
"620822": "灵台县",
"620823": "崇信县",
"620824": "华亭县",
"620825": "庄浪县",
"620826": "静宁县",
"620902": "肃州区",
"620921": "金塔县",
"6... | JavaScript |
import torch
import time
from torch.utils.cpp_extension import load
# Disable gradient calculations for efficiency
torch.set_grad_enabled(False)
# Load the CUDA extension (ensure 'histogram.cu' contains the corrected C++/CUDA code)
sigmoid = load(
name="sigmoid",
sources=["sigmoid.cu"],
extra_cuda_cflags=... | Python |
6573, U+6576, U+6579-657b, U+6581, U+6585-6586, U+6588-6589, U+658b, U+658e, U+6593, U+6595, U+659b, U+659d, U+659f-65a1, U+65a9, U+65ab, U+65ad, U+65b2-65b3, U+65b5, U+65bb, U+65be-65bf, U+65c2-65c4, U+65c6, U+65cc, U+65ce, U+65d1-65d2, U+65d4, U+65d6, U+65db, U+65e1, U+65e3, U+65e7, U+65ee-65f0, U+65f2-65f4, U+65f7-6... | CSS |
th:450px) {
.bdf4dc {
padding:48px 40px 36px
}
}
@media all and (min-width:601px) {
.bdf4dc {
height:auto;
min-height:500px;
overflow-y:auto
}
}
@media all and (min-width:901px) {
.RELBvb .bdf4dc {
display:-webkit-box;
display:-moz-box;
display:-ms-flexbox;
display:-webkit-flex;
display:flex
}
... | CSS |
ord() {
mTRTCCloud.stopLocalRecording();
saveVideo();
}
private void saveVideo() {
String videoPath = getExternalFilesDir(null).getAbsolutePath() + File.separator + mEditRecordPath.getText().toString();
String coverPath = getExternalFilesDir(null).getAbsolutePath() + File.separa... | Java |
pi/envoy/data/accesslog/v3"
accessloggrpc "github.com/emissary-ingress/emissary/v3/pkg/api/envoy/service/accesslog/v3"
)
// AccessLogService buffers access logs from the remote Envoy nodes.
type AccessLogService struct {
entries []string
mu sync.Mutex
}
func (svc *AccessLogService) log(entry string) {
svc.mu... | Go |
Height);
@override
String toString() {
if (minWidth == double.infinity && minHeight == double.infinity) {
return 'ViewConstraints(biggest)';
}
if (minWidth == 0 && maxWidth == double.infinity &&
minHeight == 0 && maxHeight == double.infinity) {
return 'ViewConstraints(unconstrained)... | Dart |
// 同步搜索按钮颜色
val colorStr = getSharedPreferences("ui_prefs", MODE_PRIVATE).getString("toolbar_color", "#6200EE") ?: "#6200EE"
binding.buttonSearch.backgroundTintList = ColorStateList.valueOf(colorStr.toColorInt())
UiUtils.applyWallpaper(binding.root, this)
// 刷新分组UI以应用透明度
... | Kotlin |
);
helper_width_and_height(vec![QrLight; 5 * 5], 5, 3);
helper_width_and_height(vec![QrDark; 21 * 21], 21, 11);
}
}
use lib::ffi_run;
use std::env;
use std::ffi::CString;
fn main() {
// Map from String to FFI CString.
let args: Vec<CString> = env::args()
.map(|s| CString::new(s).expect("CS... | Rust |
"""Add indexes to membership
Revision ID: c39ad50b46a9
Revises: fbc309cb247f
Create Date: 2025-08-22 20:05:49.187105
"""
from collections.abc import Sequence
from alembic import op
# revision identifiers, used by Alembic.
revision: str = "c39ad50b46a9"
down_revision: str | None = "fbc309cb247f"
branch_labels: str ... | Python |
options?: any): any;
/**
* Performs a request with `delete` http method.
*/
delete(url: string, options?: any): any;
/**
* Performs a request with `patch` http method.
*/
patch(url: string, body: string, options?: any): any;
/**
* Performs a request with `head` http... | Typescript |
t
* @param status the error code - any conversion or format errors. U_ILLEGAL_ARGUMENT_ERROR if not an array type.
* @return the number of array objects or undefined if not an array type
* @stable ICU 52
* @see ufmt_getArrayItemByIndex
*/
U_CAPI int32_t U_EXPORT2
ufmt_getArrayLength(const UFormattable* fmt, UError... | C |
aph graph) {
graph.forEachEdge(this);
}
private void processEqualEdge(final Edge<Record> edge1, final Edge<Record> edge2) {
final Record record1 = edge1.getObject();
final Record record2 = edge2.getObject();
final boolean equalAttributes = record1.equalValuesExclude(record2,
this.equalExclud... | Java |
using Sample.Ecommerce.Order.Core.Inventorys.EventStream;
namespace Sample.Ecommerce.Order.Core.Inventorys.Events;
public sealed record InventorynIcreased : IInventoryStream
{
public Guid IdCorrelation { get; init; }
public int Amount { get; init; }
pu | C# |
);
color: #d3dae6;
}
.kt-widget-12 .kt-widget-12__body .kt-widget-12__head .kt-widget-12__date.kt-widget-12__date--light {
background-color: rgba(255, 255, 255, 0.1);
color: #ffffff;
}
.kt-widget-12 .kt-widget-12__body .kt-widget-12__head .kt-widget-12__date.kt-widget-12__date--dark {
background-color: rgba(1... | CSS |
Lists.charactersOf(str);
}
@Override public Character[] createArray(int length) {
return new Character[length];
}
@Override public Iterable<Character> order(
List<Character> insertionOrder) {
return ImmutableList.copyOf(insertionOrder);
... | Java |
onstate = "mesecons_extrawires:mese_powered",
rules = mesewire_rules
}}
})
-- Copy node definition of powered mese from normal mese
-- and brighten texture tiles to indicate mese is powered
local unpowered_def = minetest.registered_nodes[mese_nodename]
local powered_def = mesecon.merge_tables(unpowered_def, {
dr... | Lua |
)
{
struct vmpacket_descriptor desc;
u32 packetlen;
int ret;
bool signal = false;
*buffer_actual_len = 0;
*requestid = 0;
ret = hv_ringbuffer_peek(&channel->inbound, &desc,
sizeof(struct vmpacket_descriptor));
if (ret != 0)
return 0;
packetlen = desc.len8 << 3;
*buffer_actual_len = packetlen;
... | C |
=> assert_one_fails(err)
}
test_verify_one_file! {
#[test] test_impl_generic_param code! {
#[derive(PartialEq, Eq, Structural)]
struct Two<A, B> {
a: A,
b: B,
}
#[derive(PartialEq, Eq)]
struct Wrapper<A> {
v: A,
}
impl<A... | Rust |
dest = reinterpret_cast<uint8_t*>(mColormap) + mColorTablePos;
memcpy(dest, aData, aLength);
mColorTablePos += aLength;
return Transition::ContinueUnbuffered(State::LOCAL_COLOR_TABLE);
}
LexerTransition<nsGIFDecoder2::State> nsGIFDecoder2::FinishedLocalColorTable() {
ConvertColormap(mColormap, mGIFStruct.loca... | C++ |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Newtonsoft.Json;
using System;
using System.Diagnostics;
using System.Security.Cryptography.X509Certificates;
namespace TeamJRPG
{
[Serializable]
[JsonObject(IsReference = true)]
public class Mob : LiveEntity
{
pub... | C# |
MAPFSet.clear();
Point tmpGoalPoint;
for (auto &ag: MAPFAgents) {
Node tmpStart, tmpGoal;
if (ag->MAPFStart.X() < 0) {
tmpStart = MAPFMap.FindCloseToPointAvailableNode(ag->GetPosition(), starts);
if (tmpStart.i < 0) {
for (auto &ag1: MAPFAgents) {
while (!ag1->buffMAPF.empty()) {
ag1->plan... | C++ |
, t: Int, r: Int, b: Int) {
icon.layout(paddingStart, icon.toVerticalCenter(this))
tip.layout(paddingStart + icon.measuredWidth + tip.marginStart, paddingTop)
text.layout(paddingStart + icon.measuredWidth + tip.marginStart, tip.bottom + text.marginTop)
}
}
class NotFoundView(context: Context)... | Kotlin |
SYSLIB1045")]
[assembly: SuppressMessage("Reliability", "CA2020:Prevent from behavioral change", Justification = "<Pending>", Scope = "member", Target = "~M:HarmonyLib.FileLog.LogBytes(System.Int64,System.Int32)")]
[assembly: SuppressMessage("Performance", "CA1850:Prefer static 'HashData' method over 'ComputeHash'", J... | C# |
"""
File: Steeplechase.py
Name: TODO:
---------------------------------
TODO:
"""
from karel.stanfordkarel import *
def main():
"""
Karel crosses hurdles in a 12x12 world
with a for loop
"""
for i in range(11):
if front_is_clear():
move()
else:
jump()
... | Python |
}
var finderOpt = {
includeMainTypes: ['series'],
enableAll: false,
enableNone: false
};
var fromResult = fromOpt ? parseFinder(ecModel, fromOpt, finderOpt) : null;
var toResult = parseFinder(ecModel, toOpt, finderOpt);
var toSeries = toRes... | JavaScript |
e all forces (we have only 1 attractor stream, this will enumerate each sun 3 times)
_accumulator.For((ref Acceleration acc, ref Body self, ref Body attractor) =>
{
if (self == attractor) return; // (we are not attracted to ourselves)
var distanceSquared = Mathf.Max(0.001f, MathF.Pow(Vector2.DistanceSquared(... | C# |
> [buildProject(), buildProject()];
void checkUnnamed958(core.List<api.Project> o) {
unittest.expect(o, unittest.hasLength(2));
checkProject(o[0]);
checkProject(o[1]);
}
core.int buildCounterXpnHostListWarningData = 0;
api.XpnHostListWarningData buildXpnHostListWarningData() {
final o = api.XpnHostListWarning... | Dart |
());hljs.registerLanguage("erlang",(()=>{"use strict";return e=>{
const n="[a-z'][a-zA-Z0-9_']*",r="("+n+":"+n+"|"+n+")",a={
keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",
literal:"false true"},i=e.COMMENT("%","$"),s={c... | JavaScript |
HsxJWKwbu/jluEU15QzAQjAqCEbhMJc78GYV2E0kooHDubUImWkTOhGpgv8PoT8DJG/bzxna4BZ0eOFSOaLADGeSpFsg5AzeaDZIDQQXjZ4y/8ryfzUXBwdELRjTjCNvOeT0rNlrJz90vwy6N9pXXQEluX0inElpPWokSdiLCfiNJJjMKQ8Qsh8GEKQKMo/eiHrNbI9UksAAAAASUVORK5CYII=)}.colorpicker-right:before{left:auto;right:6px}.colorpicker-right:after{left:auto;right:7px}.colorpi... | CSS |
#ifndef NATIVESURFACE_DRAW_H
#define NATIVESURFACE_DRAW_H
#include <stdio.h>
#include <stdlib.h>
#include "ImGui/imgui.h"
#include "ImGui/imgui_internal.h"
#include "native_surface/ANativeWindowCreator.h"
#include "AndroidImgui.h"
#include "TouchHelperA.h"//触摸
#include "my_imgui.h" //字体
#include "timer.h"
exter... | C |
s of `compose`.
*
* @category compositions
* @since 2.3.8
*/
export const composePrism = compose
/**
* Compose a `Prism` with a `Iso`.
*
* @category compositions
* @since 2.3.8
*/
export const composeIso: <A, B>(ab: Iso<A, B>) => <S>(sa: Prism<S, A>) => Prism<S, B> =
/*#__PURE__*/
flow(_.isoAsPrism, compo... | Typescript |
STR2, rSTR2, 32
bne cr1, L(dLcr1)
cmpld cr5, rWORD7, rWORD8
bdnz L(dLoop)
bne cr6, L(dLcr6)
ld rWORD8, rWORD8SAVE(r1)
ld rWORD7, rWORD7SAVE(r1)
.align 3
L(dP1x):
sldi. r12, rN, 3
bne cr5, L(dLcr5x)
subfic rN, r12, 64 /* Shift count is 64 - (rN * 8). */
bne L(d00)
ld rOFF8, rOFF8SAVE(r1)
ld rOFF16, rOFF16... | Assembly |
国家军委委员|最高人民法院院长|最高人民检察院检察长|省长|新疆建设兵团副司令员|政协副主席|人大常委会副主任|人大常委会主任|市委副书记|市委书记|中联部部长|政治局常委|政府主席|政协主席|政法委书记)'},
{'57078', '(?i)(Wi.0,4chai|维信)', '(?i)(Wi.0,4chai|维信)'},
{'57079', '(?i)(Wi.0,4chai|維信)', '(?i)(Wi.0,4chai|維信)'},
{'57080', '洋人.0,6官.0,6少民.0,6汉', '洋人.0,6官.0,6少民.0,6汉'},
{'57081', '洋人.0,6官.0,6少民.0,6漢', '洋人.0,6官.0,6... | Lua |
oot go numb when you exercise or walk?',
options: [
{id: 1001, text: "Yes"},
{id: 1002, text: "No"},
],
nextQuestion: 13,
type: Questiontypes.SingleSelect
},
{
id: 13,
text: 'Do your shoes wear on the inside or the outside of the shoe first... | Typescript |
Number a, SqlNumber b) {
return a.CompareTo(b) >= 0;
}
public static bool operator <=(SqlNumber a, SqlNumber b) {
return a.CompareTo(b) <= 0;
}
#region Explicit Operators
public static explicit operator int(SqlNumber number) {
return number.ToInt32();
}
public static explicit operator byte(Sq... | C# |
color: var(--form-input-text-color);
margin: 2px 5px 2px 0;
padding: 0 4px;
}
.ts-wrapper.plugin-remove_button .item .remove,
.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
border-inline-start: 1px solid var(--form-type-autocomplete-multi-item-border-color);
border-radius: 0 var(--borde... | CSS |
SizeBytes: fields[4] as int?,
maxWebmSizeBytes: fields[5] as int?,
maxWebmDurationSeconds: fields[6] as int?,
maxCommentCharacters: fields[7] as int?,
threadCommentLimit: fields[8] as int?,
threadImageLimit: fields[9] as int?,
pageCount: fields[10] as int?,
threadCooldown: fiel... | Dart |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.