content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
(json format). Required for dev set")
parser.add_argument("--num_workers", type=int, default=16,
help="number of parallel processes to binarize reader data")
def get_encoder_checkpoint_params_names():
return ['do_lower_case', 'pretrained_model_cfg', 'encoder_model_type',
'p... | Python |
put1 = program[program[i + 1]];
const input2 = program[program[i + 2]];
let destination = program[i + 3];
switch (opCode) {
case OpCode.Add:
program[destination] = input1 + input2;
i += 4;
continue;
case OpCode.Multiply:
program[destination] = input1 * input2;
... | Typescript |
$second (-1 * $first) 0 $hide $dot-color,
$second 0 0 $hide $dot-color,
$third (-1 * $second) 0 $hide $dot-color,
$third (-1 * $first) 0 $hide $dot-color,
$third 0 0 $hide $dot-color,
$third $first 0 $hide $dot-color,
$third $second 0 $hide $dot-color,
$fourth $first 0 0 $d... | CSS |
}.highlight .kr{color:#000000;font-weight:bold}.highlight .kt{color:#445588;font-weight:bold}.highlight .k,.highlight .kv{color:#000000;font-weight:bold}.highlight .mf{color:#009999}.highlight .mh{color:#009999}.highlight .il{color:#009999}.highlight .mi{color:#009999}.highlight .mo{color:#009999}.highlight .m,.highlig... | CSS |
local TOCNAME, GBB = GroupBulletinBoard_Loader.Main()
local ChannelIDs
local ChkBox_FilterDungeon
local TbcChkBox_FilterDungeon
--Options
-------------------------------------------------------------------------------------
local function CheckBox( Var, Init )
return GBB.Options.AddCheckBox( GBB.DB, Var, Init, GBB.L... | Lua |
f (!ignoreTagFilter.contains(tag)
&& qTagFilter.isEmpty() || containsTag(tag)) {
Log.i("XALog", "QTag: ${it.args[0]}, msg: ${it.args[2]}")
}
return@hookReplace Unit
}
}
@MethodHook("QLog Debug 日志打印")
fun hookDebug() {
findMethod(QLog) ... | Kotlin |
.include "atari7800.inc"
.include "extzp.inc"
.interruptor playsfx
.constructor silence
.export _playsfx0
.import _zonecounter
.include "extzp.inc"
.segment "EXTZP" : zeropage
ptr7800: .res 2
ptrtmp: .res 2
cursorzone: .res 2
sfxptr: .res 2
.bss
frames: .res 1
cnt: .... | Assembly |
q $0x96,%xmm0,%xmm5,%xmm14
jmp .L_small_initial_compute_done_218
.L_small_initial_partial_block_218:
movq %r8,(%rdx)
vmovdqu64 %xmm11,16(%rsi)
vpsrldq $8,%zmm26,%zmm0
vpslldq $8,%zmm26,%zmm3
vpxorq %zmm0,%zmm24,%zmm24
vpxorq %zmm3,%z... | Assembly |
direction = "v",
pageSize = CCSizeMake(6, 1),
oriPosition = ed.DGccp(240, 200),
itemSize = ed.DGSizeMake(102, 108),
initHandler = self:initItemHandler(),
useBar = true,
barPosition = "left",
barLenOffset = -10,
barPosOffset = ccp(0, 0),
barThick = 3,
heightOffset = 0,
doPress... | Lua |
cd, 0xef };
var timestamp = DateTime.FromFileTimeUtc (132737136905945346);
var updatedSingleHost = GenerateSingleHostData ();
var singleHost = GenerateSingleHostData ();
var targetInfo = new NtlmTargetInfo {
ServerName = "ServerName",
DomainName = "DomainName",
SingleHost = singleHost.Encode (),... | C# |
$_ZNK5boost16exception_detail25error_info_container_impl7add_refEv, %rdx
jne .L3497
.L3505:
addl $1, 88(%rbx)
jmp .L3495
.p2align 4,,10
.p2align 3
.L3496:
movq %rbx, 24(%rbp)
movl $_ZTVN5boost16exception_detail25error_info_container_implE+16, %eax
jmp .L3505
.p2align 4,,10
.p2align 3
.L3497:
movq %rbx, %rdi
... | Assembly |
LICENSE.txt for license information.
package config
import (
"encoding/json"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/mattermost/server/public/model"
"github.com/mattermost/mattermost/server/public/shared/mlog"
)
func TestMloggerConfigFromAud... | Go |
u8; 12usize],
#[doc = "0x20 - Length"]
pub len: LEN,
_reserved3: [u8; 12usize],
#[doc = "0x30 - CRC Seed/Result"]
pub result: RESULT,
_reserved4: [u8; 68usize],
#[doc = "0x78 - LOCK Control"]
pub lockctrl: LOCKCTRL,
#[doc = "0x7c - LOCK Status"]
pub lockstat: LOCKSTAT,
#[doc ... | Rust |
seSkillRspOuterClass.EffigyChallengeV2ChooseSkillRsp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override... | Java |
//ж_TOG_T_RESλSTALL״̬if
if( (R8_UEP3_CTRL & (RB_UEP_T_TOG | MASK_UEP_T_RES)) == UEP_T_RES_STALL )
{
pEP0_DataBuf[0] = 0x01; //D0Ϊ1ʾ˵㱻ֹͣˡλSET_FEATURECLEAR_FEATUREá
}
... | C |
}
.MatcToolbarResizePreview{
width: 50px;
height: 50px;
position: relative;
}
.MatcToolbarResizePin > div{
color:#555;
cursor: pointer;
}
.MatcToolbarResizePinLine{
background: #555;
}
.MatcToolbarResizeActive .MatcToolbarResizePinLine {
background: $primary_color;
}
.MatcToolbarResizeP... | CSS |
context.startActivity(Intent(context, MovieListActivity::class.java).apply {
putExtra(C.BundleKey.Key_1, his.getLinkItem())
putExtra(C.BundleKey.Key_2, true)/*from History*/
putExtra(LinkableListFragment.MENU_SHOW_ALL, his.isAll)
})
}
}... | Kotlin |
protocol_version: ProtocolVersion,
}
impl ChainInfo {
/// Create an instance of `ChainInfo` for testing.
#[cfg(test)]
pub fn create_for_testing() -> Self {
ChainInfo {
network_name: "rust-tests-network".to_string(),
maximum_net_message_size: 22 * 1024 * 1024, // Hardcoded a... | Rust |
::Output {
&mut self.0[idx]
}
}
impl Index<NamedColor> for List {
type Output = Rgb;
#[inline]
fn index(&self, idx: NamedColor) -> &Self::Output {
&self.0[idx as usize]
}
}
impl IndexMut<NamedColor> for List {
#[inline]
fn index_mut(&mut self, idx: NamedColor) -> &mut Self... | Rust |
tmp
s_bfe_u32 s[s_tmp+3], s[s_shift_pack_1], 0x00080008 ; offset:8, width:8
.mdiv_u32_rem_vs v_out_iwo,v_out_iho,v_tmp+4,s_magic_5,s_tmp+3,s_wi,v_tmp
; add in_in0, in_in1
v_lshl_or_b32 v[v_tmp+1], v[v_out_in0], 4, v[v_out_in1]
v_mul_lo_u32 v[v_out_os], s[s_out_stride_n], v[v_tmp+1]
; add i_k
... | Assembly |
>sc_hildev.sc_dev)), on);
}
void
hilkbd_cnbell(void *v, u_int pitch, u_int period, u_int volume)
{
struct hilkbd_softc *sc = v;
hilkbd_bell(device_private(device_parent(sc->sc_hildev.sc_dev)),
pitch, period, volume);
}
void
hilkbd_bell(struct hil_softc *sc, u_int pitch, u_int period, u_int volume)
{
uint8_t ... | C |
NAME_TYPE(offTag: 'protected_name_type'),
REBLOCHON(offTag: 'reblochon'),
SYNONYMS(offTag: 'synonyms'),
VEGAN(offTag: 'vegan'),
VEGETARIAN(offTag: 'vegetarian'),
WIKIDATA(offTag: 'wikidata'),
WIKTIONARY(offTag: 'wiktionary');
const TaxonomyIngredientField({
required this.offTag,
});
@override
... | Dart |
res) => {
httpGetForProxy(MONITOR_API_URL + "/executions/messages", req, res);
});
// Debug
router.get("/debug/metadata/**", (req, res) => {
let url = MONITOR_API_URL + "/debug" + req.originalUrl.replace("/api/v1/debug", "");
httpGetForProxy(url, req, res);
});
router.get("/debug/data/**", (req, res) => {
l... | JavaScript |
return Steedos.StandardObjects.Base.Actions.standard_delete_many.todo.apply(this, arguments)
}
},
standard_approve: {
label: "Initiate Approval",
visible: function (object_name, record_id, record_permissions) {
return Steedos.StandardO... | JavaScript |
child>a:active,.hidden-menu #hide-menu>:first-child>a:active{-webkit-box-shadow:inset 0 0 6px 1px rgba(0,0,0,.2);box-shadow:inset 0 0 6px 1px rgba(0,0,0,.2)}.ajax-dropdown>:first-child{margin:0 0 3px;padding:0 0 9px}.ajax-dropdown{position:absolute;display:none;z-index:905;top:48px;left:16px;width:344px;height:435px;bo... | CSS |
,\n.apexcharts-point-annotation-label,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line,\n.apexcharts-zoom-rect,\n.apexcharts-toolbar svg,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-s... | JavaScript |
PC-relative instruction (a) */
IF CC JUMP MY_LABEL1(bp);
IF CC JUMP MY_LABEL2(bp);
//IF !CC JUMP user_label ; /* user-defined absolute address label, resolved by the assembler/linker to the appropriate PC-relative instruction (a) */
IF !CC JUMP MY_LABEL1;
IF !CC JUMP MY_LABEL2;
//IF !CC JUMP user_label (bp) ; /* use... | Assembly |
}
}
}
[cam-tasklist-form] {
.form-actions {
margin-top: (@grid-gutter-width / 2);
}
}
@font-face {
font-family: 'open_sanslight';
src: url('~orqueio-commons-ui/vendor/fonts/opensans-light-webfont.eot');
src:
url('~orqueio-commons-ui/vendor/fonts/opensans-light-webfont.eot?#iefix') format('embe... | CSS |
-- chunkname: @scripts/settings/equipment/footstep/footstep_intervals_templates.lua
local footstep_intervals_templates = {}
footstep_intervals_templates.default = {
crouch_walking = 0.61,
crouch_walking_alternate_fire = 0.77,
sprinting = 0.37,
sprinting_overtime = 0.41,
walking = 0.4,
walking_alternate_fire = ... | Lua |
ATION_EXPRESSION = {
// computation expressions:
scope: 'computation-expression',
// BUG: might conflict with record deconstruction. e.g. let f { Name = name } = name // will highlight f
match: /\b[_a-z]\w*(?=\s*\{)/
};
const PREPROCESSOR = {
// preprocessor directives and fsi com... | JavaScript |
{
for (const auto& kv : node) {
fout << kv.first << ": " << kv.second << std::endl;
}
}
void Config::dumpCurrent(std::ostream& out) {
for (const auto& kv : node) {
out << kv.first << ": " << kv.second << std::endl;
}
}
#ifdef BUILD_WITH_TBB
#include <small_gicp/benchmark/benchmark_odom... | C++ |
g.node("value", [&] {
g.attribute("name", "sample_rate");
});
g.node("readonly_value", [&] {
g.attribute("name", "format");
});
g.node("value", [&] {
g.attribute("name", "enable_input");
});
g.node("value", [&] {
g.attribute("name", "enable_output");
... | C++ |
onent.is_zero() {
if !exponent.is_even() {
number = &number * &*self;
while number.len() > r {
let new = (number.len() - 1) % r;
let x = number.data.pop().unwrap();
number.data[new] += x;
}
... | Rust |
.WARNING) //
.text("Discharge Temperature High Alarm Level 1")), //
LEVEL1_TOTAL_VOLTAGE_DIFF_TOO_BIG(Doc.of(Level.WARNING) //
.text("Total Voltage Difference Too Big Alarm Level 1")), //
LEVEL1_INSULATION_VALUE(Doc.of(Level.WARNING) //
.text("Insulation Value Failure Alarm Level 1")), //
LEVEL1_CELL_... | Java |
aper.toString());
ExampaperEntity oldExampaperEntity = exampaperService.selectById(exampaper.getId());//查询原先数据
String role = String.valueOf(request.getSession().getAttribute("role"));
// if(false)
// return R.error(511,"永远不会进入");
exampaperService.updateById(exampaper);//根... | Java |
(i, value) in array.into_iter().enumerate() {
vm.store(self.address + i, Cell::Value(value))?;
}
Ok(())
}
}
use log::{trace, debug};
use std::io::Error;
use kf_protocol::api::{RequestMessage, ResponseMessage};
use sc_api::topic::{FlvFetchTopicsRequest, FlvFetchTopicsResponse};
use sc... | Rust |
"AS IS" BASIS,
* WITHOUT 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 org.apache.flink.runtime.checkpoint.savepoint;
import java.io.DataInputStream;
import java.io.DataOutputStrea... | Java |
先在少量前装车进行商用示范,到在中、高端车型上正式商用,到全面前装搭载的步骤,分步推进 C-V2X 的前装。**同时提车载产品在车辆的后装率**。
## 4、路侧设施产业路径
车联网在路侧端的产业化目标是,分阶段、分区域推进 C-V2X 道路基础设施建设、部署工作,促进交通基础设施(信 号灯、标志、标线等)的数字化升级,制定与 C-V2X 设备之间互联的设备和系统的接口规范。
统一通信接口和协议,实现道路设施与智能汽车、运营服务提供商、交通、交管系统等信息互联,提供多元化的应用场景,确定可行的商业运营模式。
目前,国内的 C-V2X 路侧设施实现产业化目标仍存在如下差距:
- 缺乏 C-V2X 路侧设施部署的总体规划,导致... | Markdown |
val keyFactory = SecretKeyFactory.getInstance(storedKey.getAlgorithm(), "AndroidKeyStore")
val keyInfo = keyFactory.getKeySpec(storedKey, KeyInfo::class.java) as KeyInfo
assertThat(keyInfo.isInsideSecureHardware, equalTo(true))
}
fun storedSecretKeyCanBeUsedForSigningWithHMACSHA256() {
... | Kotlin |
07FDC6A5F4E1F1C064699FCC9745D65* L_13 = ___array0;
int32_t L_14 = V_2;
NullCheck(L_13);
int32_t L_15 = L_14;
RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 L_16 = (L_13)->GetAt(static_cast<il2cpp_array_size_t>(L_15));
}
{
RaycastResultU5BU5D_t9A7AEDFED07FDC6A5F4E1F1C064699FCC9745D65* L_17 = ___arr... | C++ |
import org.simple.clinic.util.PagerFactory
import org.simple.clinic.util.PagingSourceFactory
import org.simple.clinic.util.scheduler.TestSchedulersProvider
import org.simple.clinic.util.toOptional
import org.simple.clinic.TestData
import java.util.UUID
class InstantSearchEffectHandlerTest {
private val pagingLoadSi... | Kotlin |
/*
* Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C |
wait_clock_cycle!(sim, clock, x);
x.core.trigger_start.trigger.next = 0_u32.into();
x = sim.watch(|x| x.slave.transfer_done.val(), x)?;
sim_assert!(sim, x.slave.data_inbound.val() == 0x12345678deadbeef_u64, x);
for sample in [0xcafe_u16, 0xbabe_u16, 0x5ea1_u16, 0x5e5e_u16] {
... | Rust |
/*********************************************************************/
/* */
/* Optimized BLAS libraries */
/* By Kazushige Goto <kgoto@tacc.utexas.edu> */
/* ... | Assembly |
"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-wrap:normal}.feed_ama_taking_questions_story .group_name{font-weight:bold;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue"... | CSS |
from typing import List, Optional
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
def print_linked_list(head):
current = head
while current:
print(current.val, end=" -> ")
current = current.next
class Solution:
def mergeKLists(self, ... | Python |
uminp z0.b, p0/m, z0.b, z1.h
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
// CHECK-NEXT: uminp z0.b, p0/m, z0.b, z1.h
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
// --------------------------------------------------------------------------//
// Invalid predicate
uminp z0.b, p0/z, z0.b, z1.b
// CHECK: [[... | Assembly |
= 1;
R6 += 1;
2: JUMP (P1);
fail
3: R7 += 1;
test_check 1, 1, 1, \lcend
.endm
test_jump_e 0, 0
test_jump_e 1, 0
test_jump_e 2, 1
test_jump_e 10, 9
test_call_s:
.macro test_call_s lc:req, exp5:req, exp6:req, exp7:req
test_prep \lc, __ret
1: CALL (P1);
R5 += 1;
2: R6 += 1;
3: R7 += 1;
test_check \exp5, \exp6... | Assembly |
ppCmd.substring(8, 10);
//
// String data_length = appCmd.substring(10, 14);
// totalMessageLength = 14 + Integer.valueOf(data_length, 16) * 2 + 2;//头+data+crc
//
// if (appCmd.length() < totalMessageLength) {
// Log.e(TAG, "receiveAppCmd isFullMessage=false");
//
// ... | Java |
n }\n }\n}\n:::\n\n:::vue\n@name:addZone([zone])\n---\n#method\n>method-desc\n新增一个热区,返回这个热区的`index`索引位置。\n>method-args\n|zone|YES|热区对象,包含:<br><br>`x` : 单个热区的X轴坐标(单位px),默认`0`<br>`y` : 热区的Y轴坐标(单位px),默认`0`<br>`w` : 热区的宽度(单位px),默认为最小宽度<br>`h` : 热区的高度(单位px),默认为最小高度<br>`i` : 热区的z-index层级(如果此属性为0,则取热区在`zones`中的`inde... | JavaScript |
"city": "铁力市",
"name": "双丰镇",
"id": "230781101000"
},
"230781102000": {
"city": "铁力市",
"name": "桃山镇",
"id": "230781102000"
},
"230781105000": {
"city": "铁力市",
"name": "神树镇",
"id": "230781105000"
},
"230781200000": ... | JavaScript |
a0 # [1120]
movl Dms_M2Mem(%esi),%esi
#;; move.w d5,d0 # [1121]
movw d5_w,%bx
#;; lsr.w #4,d0 # [1122]
shrw $4,%bx
#;; add.w d0,d0 # [1123]
addw %bx,%bx
#;; move.w (a0,d0.w),d3 # [1124]
movswl %bx,%ecx
movw ... | Assembly |
hZGpi4kAvcFIkzUYPWNB9KfTetH0zgRWjra0SF005gGACy+dfghLhLK8/klaAtcKaohIqAIJhn6IPIhQS46EnFOJoTBMrgYmrUkYK/RE3pD2P+joD7HE7ijw5msKxmlmPVegppVCx1leI6xp5BeDdmYGRr7fMayYj9eoJyWqZa84VPEIqsKYeElmNALumCe0MatnkkwBYRzvRqVBBgIKH2Br4mjcEXSGadpspgD2YLVlnyYoJDLF5jjugSY8VQIhcf0dQHwF1UUBlB5NBPUloR3JCyYlB2xKdPQBam0hI+CQJP3aBRG4F0AeG5ZXPAR1... | CSS |
bisaixiangmu_yuyue_yesno_text", bisaixiangmuYuyue.getBisaixiangmuYuyueYesnoText())
// .notIn("bisaixiangmu_yuyue_types", new Integer[]{102})
;
logger.info("sql语句:"+queryWrapper.getSqlSegment());
BisaixiangmuYuyueEntity bisaixiangmuYuyueEntity = bisaixiangmuYuyueService.selectOne(q... | Java |
x00B4949C
public RESULT getCurrentSound(out Sound sound); // 0x00B4949C-0x00B494A4
public RESULT getIndex(out int index); // 0x00B494A4-0x00B494AC
public RESULT getSystemObject(out FMOD.System system); // 0x00B494AC-0x00B494B4
public RESULT stop(); // 0x00B494B4-0x00B494BC
public RESULT setPaused(bool paused)... | C# |
der Rechtschaffenheit",
[7722] = "Triunenamulett",
[7723] = "Mograines Macht",
[7724] = "Stulpen der Offenbarung",
[7725] = "Tabard of the Scarlet Crusade DEPRECATED",
[7726] = "Aegis des Scharlachroten Kommandanten",
[7727] = "Wachmannschulterstücke",
[7728] = "Täuscherroben",
[7729] = "Chesterfallmuskete",
[7730] = "... | Lua |
/* (C) 2007-2008 Timothy Terriberry */
/*
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 conditions and the following d... | C |
/*
Copyright 2015-2020 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorge... | C |
"
#include "net/PasteUpload.h"
#include "pathmatcher/MultiMatcher.h"
#include "pathmatcher/SimplePrefixMatcher.h"
#include "tasks/Task.h"
#include "tools/GenericProfiler.h"
#include "ui/InstanceWindow.h"
#include "ui/MainWindow.h"
#include "ui/dialogs/ProgressDialog.h"
#include "ui/instanceview/AccessibleInstanceView.... | C++ |
'pretrained_models')
args = parser.parse_args()
taskname = args.task_name
av = get_available_models()
if taskname not in av.keys():
raise RuntimeError("Invalid task name. This pretrained model does not exist. To see available task names, "
... | Python |
{1}", new object[] { 1, Math.E } );
var s2 = new NonLocalizedString( "{0} {1}", new object[] { 1, Math.E } );
Assert.Equal( s1.GetHashCode(), s2.GetHashCode() );
Assert.Equal( s1, s2 );
}
[Fact]
public void NotEqual()
{
var s1 = new NonLo... | C# |
category:$category, item: $item, value: $value,
}
''';
}
}
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'video_generation_request.dart';
// **************************************************************************
// JsonSerializableGenerator
// ******************************************************... | Dart |
/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad
Copyright (C) 2015-2019 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad
Stockfish is free software: you can re... | C |
import torch
import numpy as np
def cast_rays(ori, dir, z_vals):
return ori[..., None, :] + z_vals[..., None] * dir[..., None, :]
def get_ray_directions(W, H, fx, fy, cx, cy, use_pixel_centers=True):
pixel_center = 0.5 if use_pixel_centers else 0
i, j = np.meshgrid(
np.arange(W, dtype=np.float32... | Python |
#0xdd
moveq r0, #0xc9
bxeq lr
cmp r0, #0xde
moveq r0, #0xc9
bxeq lr
cmp r0, #0xdf
moveq r0, #0xc9
bxeq lr
cmp r0, #0xe0
moveq r0, #0xc9
bxeq lr
cmp r0, #0xe1
moveq r0, #0xc9
bxeq lr
cmp r0, #0xe2
moveq r0, #0xc9
bxeq lr
cmp r0, #0xe3
moveq r0, #0xc9
bxeq lr
cmp r0, #0xe4
moveq r0, #0xc9
bxeq lr
... | Assembly |
Adult = function (this: UserDocument) {
return this.age >= 18;
}
/**
* send notification direct from the model instance
* just call like `user.notify(theNotifier)`
*
* important - if you don't have redis server then
* make sure to use Notification.sync() instead of queue
* and use async/await function -- look ... | Typescript |
progid:DXImageTransform.Microsoft.gradient(startColorStr='#EEEEEE',EndColorStr='#E0E0E0');
-webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
-moz-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
border: 1px solid #CCC;
color: #333;
}
.kd-button input[type=checkbox... | CSS |
import matplotlib.pyplot as plt
import numpy as np
from joblib import Parallel, delayed
import acoustotreams
k0 = 2 * np.pi * 50000 / 343
materials = [acoustotreams.AcousticMaterial(1050 + 100j, 2350 - 300j),
acoustotreams.AcousticMaterial(998, 1497)]
lmax = 3
radii = [0.0075, 0.0075]
positions = [[-0.0... | Python |
24, 11858, 39482, 57956, 55792, 59312, 33340, 23788, 49616, 31347, 47475, 10256, 15412, 51863, 20169, 36861, 22139, 44933, 3762, 488, 54885, 19702, 17817, 50982, 29320, 48681, 41714, 10243, 51964, 34819, 37926, 29594, 37522, 28362, 44442, 16836], 'chosen_samples_score': ['0.75871724', '0.7782122', '0.80007535', '0.7619... | Python |
class Solution:
def minimizeError(self, prices: List[str], target: int) -> str:
# A[i] := (costCeil - costFloor, costCeil, costFloor)
# The lower the costCeil - costFloor, the cheaper to ceil it
A = []
sumFloored = 0
sumCeiled = 0
for price in map(float, prices):
floored = math.floor(pr... | Python |
int loc = getElementLocation(refPh);
if ((loc & IN_SHARED_AREA) != 0) {
return refPh;
}
}
// Just return the first one
return elementRefs.get(0);
}
@Override
public <T extends MUIElement> void move(T element, MElementContainer<? super T> newParent) {
move(element, newParent, -1, false);
}
... | Java |
("diag.j", 36, th_1, 0x2);
!!# IJ_bind_thread_group("diag.j", 37, th_2, 0x4);
!!# IJ_bind_thread_group("diag.j", 38, th_3, 0x8);
!!# IJ_bind_thread_group("diag.j", 39, th_2_3, 0xc);
!!#
!!# IJ_set_default_rule_wt_rvar ( "diag.j", 41,"{16}" );
!!# IJ_set_rvar ("diag.j", 42, Rv_low_wt, "{1}");
!!# ... | Assembly |
",
p.url()
)),
);
}
#[test]
fn error_message_for_missing_manifest() {
let p = project("foo")
.file(
"Cargo.toml",
r#"
[project]
name = "foo"
version = "0.5.0"
authors = ["<EMAIL>"]
[dependencies.ba... | Rust |
= 60;
["name"] = "Dreadnaught Sabatons";
["req"] = 60;
};
[9071] = {
["type"] = "Raid";
["source"] = {
[1] = {
["id"] = 16134;
["type"] = "npc";
};
};
["repgain"] = {
[529] = 200;
};
["reward"] = {
[1] = 22467;
};
["objective"] = ... | Lua |
kind === "extends" && clause.declaration?.kind === "class") ||
declaration.heritageClauses.find(clause => clause.kind === "extends" && clause.declaration == null)
);
}
/**
* Returns mixin heritage clauses for the declaration
* @param declaration
*/
export function getMixinHeritageClauses(declaration: ComponentDe... | Typescript |
片",
"teletransmission":"[计] 远程传输",
"teletransmitter":"远程发送(传感)器",
"teletransportation":"n. 心灵运输",
"teletraph":"电报机,电信机,电报",
"teletrician":"电视工作者",
"teletron":"[计] 显象管",
"Teletubbies":"n. 天线宝宝(teletubby的复数)",
"teletubby":"n. 电视胖胖(指英国儿童电视节目中出现的小外星人)",
"teletube":"[电] 影像管",
"teletype":"n. 电传打字机, 电传打字设备, 电传打字通信\\nv. 用电传打字机... | Typescript |
tadata":{"country":"US","region":"west","score":100}}`,
}, false)
// Test row 2: Edge cases and null-like values
tableData.InsertRow("2", map[string]any{
"id": 2,
"name": "Jane Smith",
"age": 0, // edge case: zero age
"is_active": false,
"score": ... | Go |
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.64);
cursor: pointer;
min-width: 26px;
transform: translateY(18px) rotate(45deg) scale(0.01);
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.e-popup.e-tooltip-wrap.e-color-picker-tooltip .e-tip-content {
background: transparent url("data:image/svg+x... | CSS |
from fnmatch import fnmatch
for i in range(1203456009 - (1203456009%98591), 10**12+1, 98591):
if fnmatch(str(i), '12?3*456??9'):
print(i, i//98591)
| Python |
+ " AUTHORITY[\"EPSG\",\"5019\"]],\n"
+ " UNIT[\"m\",1.0],\n"
+ " AXIS[\"Ellipsoidal height\",UP]]]";
CoordinateReferenceSystem tcrs = cRSFactory.createFromPrj(prjString);
assertTrue(tcrs instanceof CompoundCRS);
CompoundCRS targetC... | Java |
n: none;
-ms-user-select: none;
-moz-user-select: none;
user-select: none;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.noUi-target {
position: relative;
}
.noUi-base,
.noUi-connects {
width: 100%;
height: 100%;
position: relative;
z-index: 1;
}
.noUi-connects {
overflow: hidden;
z-in... | CSS |
#pragma once
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <cmath>
#include <string>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <stack>
#include <chrono>
#define A_SIZE 26
using namespace std;
using namespace std... | C |
/ do without actually comparing bitmaps (which is too expensive).
if (previousBackground.constantState != nextBackground.constantState) {
return false
}
}
}
return true
}
override fun hashCode(): Int {
return inputBackground?.hashCode() ?: 0
}
}
/** A class that exis... | Kotlin |
4 4B FF FB 31 */ bl func_80417134
/* 80417608 00414408 FF 60 08 90 */ fmr f27, f1
/* 8041760C 0041440C C0 3D 00 00 */ lfs f1, 0(r29)
/* 80417610 00414410 4B FF ED 65 */ bl func_80416374
/* 80417614 00414414 FF 80 08 90 */ fmr f28, f1
/* 80417618 00414418 C0 3D 00 04 */ lfs f1, 4(r29)
/* 8041761C 0041441C 4B FF F... | Assembly |
void> deleteRemoteMessagesWithIds({
required String conversationId,
required EMConversationType type,
required List<String> msgIds,
}) async {
return Client.instance.chatManager.deleteRemoteMessagesWithIds(
conversationId: conversationId, type: type, msgIds: msgIds);
}
/// ~english
/// ... | Dart |
(samples, settings, false);
}
function getNotation(
notes: Note[],
settings: Settings,
displayLetters: boolean
): string {
const lettersNotationOrEmptyString = displayLetters
? notes
.map((note) => {
const nameNotation = nameStrings(
note.name,
settings.equivalence... | Typescript |
3=(gconst1*r00);
IkReal x9784=(r11*sj3);
IkReal x9785=((1.0)*gconst2);
IkReal x9786=(cj3*r12);
IkReal x9787=(cj3*r11);
IkReal x9788=(gconst2*r01);
IkReal x9789=(cj3*r10);
IkReal x9790=(r10*sj3);
CheckValue<IkReal> x9791=IKPowWithIntegerCheck(IKsign((((r02*r12*sj3))+(((-1.0)*gconst1*r01*x9785*x9790))+((r01*x9782*x9784))... | C++ |
es a new modified UTF7 codec
const ModifiedUtf7Codec();
static const String _utf7Alphabet =
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+,';
static const List<int> _utf7Rank = [
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
255,
... | Dart |
//qunshan.c 须弥山掌掌「群山叠影」
#include <ansi.h>
#include <combat.h>
inherit F_SSERVER;
int perform(object me, object target)
{
string msg;
int count;
int lvl;
int i;
if (! target) target = offensive_target(me);
if (! target || ! me->is_fighting(target))
ret... | C |
01-08T07:30:00.000Z',
}
const event2 = {
isAllDay: true,
startDate: '2018-01-07T06:00:00.000Z',
endDate: '2018-01-08T06:00:00.000Z',
title: 'allday'
}
const patch2 = { ...patch1, isAllDay: false }
const sampleData = [[event1, patch1], [event2, patch2]]
sampleData.forEach... | Typescript |
ngineering/docker-why-multi-arch-images-matters-927397a5be2e) image, updated automatically thanks to [GitHub Actions](https://github.com/features/actions).
Its purpose is to provide the [SurfShark VPN](https://surfshark.com/) to all your containers.
The link is established using the [OpenVPN](https://openvpn.net/) c... | Markdown |
#ifndef _IPX_H_
#define _IPX_H_
#include <linux/sockios.h>
#include <linux/socket.h>
#define IPX_NODE_LEN 6
#define IPX_MTU 576
struct sockaddr_ipx {
sa_family_t sipx_family;
__u16 sipx_port;
__u32 sipx_network;
unsigned char sipx_node[IPX_NODE_LEN];
__u8 sipx_type;
unsigned char sipx_zero; /* 16 byte fill ... | C |
MM : '%d månader',
y : 'ett år',
yy : '%d år'
},
ordinalParse: /\d{1,2}(e|a)/,
ordinal : function (number) {
var b = number % 10,
output = (~~(number % 100 / 10) === 1) ? 'e' :
(b === 1) ? 'a' :
(b === 2) ? 'a' :
(b === 3) ? 'e' : ... | JavaScript |
uxiliary models used during training, ex. for knowledge distillation.",
hint=FieldHint.feature,
)
def _validate(self) -> None:
self.training.export.setup(self.model)
for reference_model in self.reference_models.values():
self._add_reference_distributed_to_pretrained(referenc... | Python |
ps[page.key] or {}
pageOptions[page.key] = pageOptions[page.key] or {}
renderPage(page, pageOptions[page.key])
ui.registerSettingsPage(pageOptions[page.key])
end
updatePlayerGroups()
if menu.getState() == menu.STATE.Running then -- handle reloadlua correctly
updateGlobalGroups()
end
return {
inter... | Lua |
tionNestingLoop:
while (enlit.hasNext()) {
ExceptionNode en = (ExceptionNode) enlit.next();
Iterator cbit = cycle_body.iterator();
while (cbit.hasNext()) {
AugmentedStmt cbas = (AugmentedStmt) cbit.next();
if (en.get_TryBody().contains( cbas) == false) {
characterizing_stmt = n... | Java |
gDialog: true,
successCallback: (value) {
LoginEntity loginEntity = value!;
UserManager.instance.updateLoginEntity(loginEntity);
eventBus.fire(LoginEvent());
Get.back();
});
}
@override
void onClose() {
textEditingController.dispose();
super.onClos... | Dart |
}
}
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Li... | Java |
CBFE', '#5723FD', '#FE8C27', '#6CB859'];
private particlesCount = 60;
private fallParticlesCount = 30;
private particles: Particle[] = [];
private lastUpdateTime = 0;
private started = false;
private startedFall = false;
public speedCoef = 1.0;
public fallingDownCount = 0;
constructor(private contex... | Typescript |
g5oCuW+CHrlUy/CVy/IS7fvwAa/U/Sodg4pbHX/UKPSPBUCTeUIUDfiYyOBMbcL9WdgcdGFrHh7lnmzd+9reBDRk0aStl4klpe1WFDQ==", false},
{"REIiN2hDQUxIJVQzdk1zQSpXclRRelExVWd+YGQoOyx0KHduPzFmcU8zUWosWiA7aFloOWplclAxPCU=", newSha512(nil), "cSV8v78EUUxnV9Z69jmsffjGfmtY5xVQt2W5i2MHZSIM9MQWhPdPTRGT4FmgfeyJZLn2AFNfBA61eR40PeSOyuSLGgrUuUERZEoY... | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.