content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
/* ResidualVM - A 3D game interpreter
*
* ResidualVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms ... | C |
/// <summary>
/// <para><strong>Display Name</strong>: Tiếng Mã Lai – Malaysia</para>
/// <para><strong>Value</strong>: 1,086</para>
/// </summary>
Tieng_Ma_Lai_Malaysia = 1_086,
/// <summary>
/// <para><strong>Display Name</strong>: Tiếng Na Uy (Bokmål) – Na Uy</para>
/// <para><strong>Value</strong>: 1,... | C# |
rier
As of v1.10, {func}`torch.distributed.monitored_barrier` exists as an alternative to {func}`torch.distributed.barrier` which fails with helpful information about which rank may be faulty
when crashing, i.e. not all ranks calling into {func}`torch.distributed.monitored_barrier` within the provided timeout. {func}`... | Markdown |
g->rigHeight = RigHeight;
lockedRig->liveValues.scaleMotion = Scale;
}
}
void UPoseAIMovementComponent::SetLiveCameraRotation(float pitch, float yaw, float roll){
TWeakPtr<PoseAIRig, ESPMode::ThreadSafe> rig = PoseAIRig::GetRigFromSubjectName(subjectName);
if (rig == nullptr)
return;
if... | C++ |
import sys
def to_octets(ip):
return [int(i) for i in ip.split('.')]
def dotless_decimal(ip):
octets = to_octets(ip)
result = octets[0] * 16777216 + octets[1] * \
65536 + octets[2] * 256 + octets[3]
return result
def dotted_hex(ip):
octets = to_octets(ip)
hex_octets = [hex(i) for i... | Python |
65-0.879-1.501-1.336-2.806-1.369c-1.802,0.057-2.985,0.667-3.55,1.832\n\t\t\tc-0.301,0.535-0.503,1.141-0.607,1.814c-0.139,0.707-0.207,1.432-0.207,2.174h-2.937c-0.091-2.208,0.407-4.114,1.493-5.719\n\t\t\tc1.062-1.64,2.855-2.481,5.378-2.527c2.16,0.023,3.874,0.608,5.141,1.758c1.278,1.16,1.929,2.764,1.95,4.811\n\t\t\tc0,1.1... | JavaScript |
/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "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... | CSS |
5-popover-target.bp5-popover-open>.bp5-menu-item[class*=bp5-intent-].bp5-intent-danger,.bp5-dark .bp5-submenu .bp5-popover-target.bp5-popover-open>.bp5-menu-item[class*=bp5-intent-]:hover.bp5-intent-danger,.bp5-dark .bp5-submenu .bp5-popover-target.bp5-popover-open>.bp5-menu-item[class*=bp5-intent-]:active.bp5-intent-d... | CSS |
[x5, 32]
add x5, x5, 64
# Multiply by weight's scale.
fmul v12.4s, v12.4s, v2.4s
fmul v13.4s, v13.4s, v3.4s
fmul v14.4s, v14.4s, v4.4s
fmul v15.4s, v15.4s, v5.4s
# Reconvert to int32.
fcvtns v12.4s, v12.4s
fcvtns v13.4s, v13.4s
fcvtns v14.4s, v14.4s
fcv... | Assembly |
/* This file is part of OpenMalaria.
*
* Copyright (C) 2005-2025 Swiss Tropical and Public Health Institute
* Copyright (C) 2005-2015 Liverpool School Of Tropical Medicine
* Copyright (C) 2020-2025 University of Basel
* Copyright (C) 2025 The Kids Research Institute Australia
*
* OpenMalaria is free software; y... | C |
regs
nop
.endm
/* ---------------------------------------------
* The below macro prints out relevant GIC
* registers whenever an unhandled exception is
* taken in BL31.
* ---------------------------------------------
*/
.macro plat_print_gic_regs
nop
/*TBD-STINGRAY*/
.endm
/* --------------------------------... | Assembly |
x = 0
y = (1080 - h / rate) / 2
# h / rate 真实视频的宽
else:
x = (1920 - w / rate) / 2
y = 0
margin_x = (1920 - w / rate) / 2
margin_y = (1080 - y - h/rate) + 24/(h/rate) * 1080
elif video_layout == 2: # 竖屏
rate1 = w / 1080
rate2 ... | Python |
continuous:
return HexmeshDGSerendipityBasisSpace(geo, degree=degree, family=family)
else:
return HexmeshSerendipityBasisSpace(geo, degree=degree, family=family)
if element_basis == ElementBasis.NONCONFORMING_POLYNOMIAL:
return HexmeshPolynomialBasisSpace... | Python |
(&panicCount, 1)
}
if atomic.AddInt32(&waited, -1) == 0 {
close(done)
}
}()
g.Do("key", fn)
}()
}
select {
case <-done:
if panicCount != n {
t.Errorf("Expect %d panic, but got %d", n, panicCount)
}
case <-time.After(time.Second):
t.Fatalf("Do hangs")
}
}
func TestGoexitDo(t *t... | Go |
ing test ${test.name}');
for (List<Impact> permutation in permutations(test.impacts)) {
print('------------------------------------------------------------------');
print('Permutation: $permutation');
await runTestPermutation(test, permutation);
}
}
Iterable<List<Impact>> permutations(List<Impact> impa... | Dart |
4 416 208c0-33.9-21.1-62.9-50.9-74.5c1.9-6.8 2.9-14 2.9-21.5c0-44.2-35.8-80-80-80c-27.3 0-51.5 13.7-65.9 34.6C216.3 46.6 197.9 32 176 32c-26.5 0-48 21.5-48 48c0 4 .5 7.9 1.4 11.6L439.7 401.9zM480 64a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM68.3 87C43.1 61.8 0 79.7 0 115.3V432c0 44.2 ... | CSS |
EC_G_BP_MISC_CTRL 0x1C84
#define VDEC_G_VCR_DET_CTRL 0x1C88
#define VDEC_G_NOISE_DET_CTRL 0x1C8C
#define VDEC_G_COMB_FLAT_NOISE_CTRL 0x1C90
#define VDEC_G_VERSION 0x1DF8
#define VDEC_G_SOFT_RST_CTRL 0x1DFC
/* Video Decoder H Registers */
#define VDEC_H_MODE_CTRL 0x1E00
#define VDEC_H_OUT_CTRL1 0x1E04
... | C |
[data-kt-stepper-action=next] {
display: inline-block;
}
.stepper [data-kt-stepper-action=submit] {
display: none;
}
.stepper.first [data-kt-stepper-action=previous] {
display: none;
}
.stepper.first [data-kt-stepper-action=next] {
display: inline-block;
}
.stepper.first [data-kt-stepper-action=submit] {
disp... | CSS |
fun setValue(thisRef: Any?, property: KProperty<*>, value: Boolean) {
checkBox.isSelected = value
}
}
protected inner class ComboBoxDelegate<V>(private val comboBox: JComboBox<Any>, entries: List<ComboBoxEntry<V>>) {
private val currentEntries = mutableListOf<ComboBoxEntry<V>>()
init {
up... | Kotlin |
消息发送成功后的回执
* @throws InternalInterceptionException 在拦截事件处理过程中产生的异常,
* 每一个具体的异常都会被收集在 [InternalInterceptionException.suppressedExceptions] 中。
* @throws Exception 可能产生任何异常
*/
public suspend fun reply(message: Message): MessageReceipt
/**
* 使用 [MessageContent] 作为消息发送。
* 不同的组件可能会根据 [... | Kotlin |
using System.IO;
using Microsoft.AspNetCore.Hosting;
using MrCMS.Entities.Multisite;
namespace MrCMS.Services.Sitemaps
{
public class GetSitemapPath : IGetSitemapPath
{
private readonly IWebHostEnvironment _hostingEnvironment;
public GetSitemapPath(IWebHostEnvironment hostingEnvironment)
... | C# |
json");
return { releases: cache.get() as Release[], headers };
}
const res = await fetch(
"https://api.github.com/repos/denoland/deno/git/refs/tags",
);
const tags: Tag[] = await res.json();
const releases = tags
.filter((v) => /^refs\/tags\/v?\d+\.\d+\.\d+/.test(v.ref))
.map((v) => {
... | Typescript |
bilah menu.</li>\n' +
' <li>membuka sub-menu di dalam menu.</li>\n' +
' <li>berpindah-pindah antar-tombol di dalam grup bilah alat.</li>\n' +
' <li>berpindah-pindah antar-item di dalam alur elemen footer.</li>\n' +
'</ul>\n' +
'\n' +
'<p>Tombol panah <strong>Bawah</strong> dan <strong>Atas</strong> untu... | JavaScript |
istingUiConfig
import shop.itbug.fluttercheckversionx.form.components.ApiListPanel
import shop.itbug.fluttercheckversionx.i18n.PluginBundle
import shop.itbug.fluttercheckversionx.model.isDioRequest
/**
* 自动滚动到最底部
*/
class DioWindowAutoScrollToMaxAction : MyToggleAction(PluginBundle.getLazyMessage("auto.scroll.to.the... | Kotlin |
spliceReq)
if err == nil {
t.Fatal("expected an error when the BlobDigest does not match (SizeBytes 0)")
}
invalidHelloWorldDigest.SizeBytes = -1
_, err = fixture.casClient.SpliceBlob(ctx, &spliceReq)
if err == nil {
t.Fatal("expected an error when the BlobDigest does not match (SizeBytes negative)")
}
in... | Go |
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 writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or imp... | Go |
tr>
<tr>
<td>regular</td>
</tr>
<tr>
<td rowspan="3">edge cases</td>
<td rowspan="3" style="text-align: center;">3</td>
<td>constant derivative</td>
</tr>
<tr>
<td>linear derivative</td>
</tr>
<tr>
<td>linear second derivative</td>
</tr>
... | Markdown |
F MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE... | Assembly |
.Avatar__PlayerOutline--Spectate .Avatar__CommonMargin,.Avatar__PlayerOutline--CT .Avatar__CommonMargin,.Avatar__PlayerOutline--T .Avatar__CommonMargin
{
margin: 0px;
}
.Avatar__PlayerOutline--White .Avatar__HealthMargin,.Avatar__PlayerOutline--Spectate .Avatar__HealthMargin,.Avatar__PlayerOutline--CT .Avatar__Health... | CSS |
3
LEAF(board_draminfo)
move t0,ra
/* First, figure out what type of SOC we're on. */
ld t3, PHYS_TO_K1(A_SCD_SYSTEM_REVISION)
SYS_SOC_TYPE(t3, t3)
/* t3 now contains "SOC type." */
/*
* Read the config bits to decide if we have staktek rams or not
*/
li t1,PHYS_TO_K1(A_SCD_SYSTEM_CFG)
l... | Assembly |
#ifndef __SOUND_AK4XXX_ADDA_H
#define __SOUND_AK4XXX_ADDA_H
/*
* ALSA driver for AK4524 / AK4528 / AK4529 / AK4355 / AK4381
* AD and DA converters
*
* Copyright (c) 2000 Jaroslav Kysela <perex@perex.cz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the ... | C |
ing, Baking and Casting (Converting) functions. However, when accessing data inside a `Param_Circle` parameter, you are not limited to the `GH_Circle` type, as we shall see.
The second parameter is of type `Param_Line` and it works very similar to the `Param_Circle` type discussed above.
## Output Parameters
Our co... | Markdown |
attributeName}*="#{$gl-colName}-"],
[#{$gl-attributeName}*="#{$grid}-7"] > [#{$gl-attributeName}*="#{$gl-colName}_"] {
flex-basis: $glp_col-7-12;
max-width: $glp_col-7-12;
}
[#{$gl-attributeName}*="#{$grid}-8"] > [#{$gl-attributeName}~="#{$gl-colName}"],
[#{$gl-attributeName}*="#{$grid}-8"] > [#{$gl-att... | CSS |
d0,m25_sector(a0)
move.b d1,m25_item(a0)
bsr mp_send_data
rts
;**************************************
;* mp_send_data
;**************************************
; uebertraegt das bei a0 liegende kommando in den
; midi-sendebuffer -> frei zur uebertragung
; benutzte register: d0-d2/a0-a2
; alle anderen sind zu ... | Assembly |
change')\" "
+ "onclick=\"log('onclick')\"";
String tag = StringUtils.replaceOnce(input, ">", events + ">");
if (onClickRetFalse) {
tag = StringUtils.replaceOnce(tag, "onclick')", "onclick');return false;");
}
final String html = DOCTYPE_HTML
... | Java |
Inputs(Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY)).resolves.toBe(false);
});
it('should return `false` when both the lhs and rhs inputs are negative infinity', async () => {
await expect(evaluateInputs(Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY)).resolves.toBe(false);
});
it('sh... | Typescript |
.0, 1.0, 0.0, 1.0, 0.0,
-0.5, 0.5, 0.5, 0.0, 1.0, 0.0, 0.0, 0.0,
-0.5, 0.5, -0.5, 0.0, 1.0, 0.0, 0.0, 1.0
}
-- positions all containers
local cube_positions = {
vec3( 0.0, 0.0, 0.0),
vec3( 2.0, 5.0, -15.0),
vec3(-1.5, -2.2, -2.5),
vec3(-3.8, -2.0, -12.3),
vec3( 2.4, -0.4, -3.5),
... | Lua |
FROM `my_project.dataset.orders`
WHERE order_date BETWEEN '2023-01-01' AND '2023-12-31'
GROUP BY user_id
),
user_activities AS (
SELECT
user_id,
COUNT(*) as activity_count,
COUNT(DISTINCT activity_type) as unique_activities
FR... | Python |
or_areas.O[11] = 4.8163618382412
tenor_areas.U = {}
tenor_areas.U[1] = 1
tenor_areas.U[2] = 0.039193849953601
tenor_areas.U[3] = 0.084214693821866
tenor_areas.U[4] = 0.033693892802856
tenor_areas.U[5] = 1.4161232357091
tenor_areas.U[6] = 0.72731031905778
tenor_areas.U[7] = 1.4170710838673
tenor_areas.U[8] = 0.138878860... | Lua |
=0,count,1 do
local curNum = i
for _, player in pairs(host.playerlist) do
if (tableHasValue(player, curNum) == false) then
pnum = i
break
end
end
end
end
local pnumFound = false
for _, player in pairs(host.playerlist) do
if (ta... | Lua |
ST_ASSERT_TRUE(actual);
}
void testWriteToSecondDeckPrimaryMemory() {
// // Fixture
stockPrimaryMemDef.write = mockWrite;
deckCount_ExpectAndReturn(2);
deckInfo_ExpectAndReturn(1, &stockInfo);
// Test
bool actual = handleMemWrite(DECK_MEM_MAP_SIZE * 3 + 100, 30, buffer);
// Assert
TE... | C |
r6, lr
eor lr, lr, r6, ror #31
eors r6, r0
add r6, r6, lr, ror #24
eor lr, lr, r6, ror #16
eors r6, r0
movw r0, #34283
movt r0, #47889
add r7, r7, r2, ror #31
eor r2, r2, r7, ror #24
eors r7, r0
add r7, r7, r2, ror #17
eor r2, r2, r7, ror #17
eors r7, r0
adds r7, r2
eor r2, r2, r7, ror #31
eors r7, r0
... | Assembly |
_trades.graphql",
response_derives = "Debug"
)]
pub struct ListAccountTrades;
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "src/graphql/schema.json",
query_path = "src/graphql/queries/list_candles.graphql",
response_derives = "Debug"
)]
pub struct ListCandles;
#[derive(GraphQLQuery)]
#[graphql(
... | Rust |
expect(Angle.fromXY(4.2, 5.3).radian).toBe(Math.atan2(5.3, 4.2));
});
test('formPoint', () => {
expect(Angle.fromPoint({ x: 4.2, y: 5.3 })).toBeInstanceOf(Angle);
expect(Angle.fromPoint({ x: 4.2, y: 5.3 }).radian).toBe(
Math.atan2(5.3, 4.2)
);
});
});
describe('properties', () => {
test(... | Typescript |
;; SPDX-License-Identifier: GPL-2.0-or-later
;; Copyright 2010 Free Software Foundation, Inc.
;; Contributed by Bernd Schmidt <bernds@codesourcery.com>.
;;
#include <linux/linkage.h>
.text
ENTRY(__c6xabi_strasgi)
;; This is essentially memcpy, with alignment known to be at least
;; 4, and the size a multiple o... | Assembly |
)
fun search(searchKey: String): List<ReadRecordShow>
@Query("select sum(readTime) from readRecord where bookName = :bookName")
fun getReadTime(bookName: String): Long?
@Query("select readTime from readRecord where deviceId = :androidId and bookName = :bookName")
fun getReadTime(androidId: Str... | Kotlin |
x,
..
}) => is_type_name(x, "GlobalsBuilder"),
_ => false,
}
}
<gh_stars>0
//! TOML file configuration options.
use super::options;
use super::AppSettings;
use commons::de::de_loglevel;
use commons::MergeOptions;
use failure::{Fallible, ResultExt};
use std::io::Read;
use std::{fs, io, p... | Rust |
[22241] = "Наплечье Темностража",
[22242] = "Поводок Верека",
[22243] = "Малая сума душ",
[22244] = "Коробка душ",
[22245] = "Покрытая золой обувь",
[22246] = "Зачарованный мешочек из магической ткани",
[22247] = "Сапоги целителя Веры",
[22248] = "Зачарованная сумка из рунической ткани",
[22249] = "Большая сумка наложе... | Lua |
LVL112:
mov w20, w0
cbz w0, .L75
.loc 1 124 0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
.LVL113:
.LBE125:
.LBE124:
.loc 1 171 0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
.L90:
.loc 1 165 0
bl printf
.LVL114:
.loc 1 166 0
mov w20, -1
b .L70
.LVL115:
.L72:
.LBB126:
.LBB123:
.loc 1 109 0
adrp x20, .LC1
ad... | Assembly |
= videoStreamDescriptor.MediaTypeHandler;
int mediaTypeCount = typeHandler.MediaTypeCount;
for (int mediaTypeId = 0; mediaTypeId < mediaTypeCount; mediaTypeId++)
using (var workingMediaType = typeHandler.GetMediaTypeByIndex(mediaTypeId))
... | C# |
这种毫无意义吵吵闹闹的事。<br />
(不能一味责备他们。)<br />
西蒙这么想。经历了长久的战争,人民与士兵都疲惫了。虽说和加贝拉的战争被打上了休止符,但以政治联姻的形式被拉上幕布并不是任何人都期望的。外加南部被加贝拉侵占的以阿普塔为中心的领土就那样放置着没有夺回,被迫进行这场和平交涉其实应该是梅菲乌斯这边。<br />
梅菲乌斯、加贝拉,在这两个国家中间,夹着一个恩德公国。虽然这个国家的领土并不怎么辽阔,但有着可以追溯到魔法王朝时代血统的他们,是一个历史悠久的国家。他们和被海洋围绕的湾岸诸国的交往十分密切,外加他们还和有着同样血统的东方强国阿里翁有着长久而密切的关系,所以一旦大陆中央区域开始了霸权之争,他们是个不容小觑的对... | Dart |
4200
YWlnbg== 4201
YXVy 4202
IFByZXM= 4203
IEV4Y2VwdGlvbg== 4204
IGFueXRoaW5n 4205
IE9mZg== 4206
IGhvdXJz 4207
IHdhcg== 4208
QXJncw== 4209
YWdpbmc= 4210
IG1vZGVscw== 4211
IFRpbWU= 4212
T2I= 4213
YW1z 4214
am95 4215
IGVhcmx5 4216
LnJlYWQ= 4217
ODY= 4218
IGNlbnRlcg== 4219
IEluaXRpYWw= 4220
IGxhbmd1YWdl 4221
bGVuZ3Ro 422... | Kotlin |
igen",
[31724] = "Wünschelrute der Arakkoa",
[31725] = "Band des Leidens",
[31726] = "Halskette der verfluchten Federn",
[31727] = "Halsreif aus blutigen Federn",
[31728] = "Siegelerbstück der Willenskraft",
[31729] = "Siegelerbstück der Erde",
[31730] = "Siegelerbstück der Genesung",
[31731] = "Mekedas Gabe",
[31732] ... | Lua |
; macOS ARM64: execve("/bin/zsh", ["-c", "touch /tmp/meow.txt"], NULL)
.global _start
.section __TEXT,__text
.align 2
_start:
; set up pointer to "/bin/zsh"
adrp x0, fname@page ; x0 = page address of fname
add x0, x0, fname@pageoff ; x0 = pointer to "/bin/zsh"
; prepare stack space for arg... | Assembly |
alloc::string::String;
use alloc::vec::Vec;
pub type size_t = usize;
pub type c_char = i8;
pub type c_short = i16;
pub type c_int = i32;
pub type c_long = i64;
pub type uint8_t = u8;
pub type uint16_t = u16;
pub type uint32_t = u32;
pub type uint64_t = u64;
pub type int8_t = i8;
pub type int16_t = i16;
pub t... | Rust |
ource *Source = C.getExternalSource();
assert(Impl.Decls.isLazy() && "getFromExternalSource for non-lazy set");
assert(Source && "getFromExternalSource with no external source");
for (ASTUnresolvedSet::iterator I = Impl.begin(); I != Impl.end(); ++I)
I.setDecl(cast<NamedDecl>(Source->GetExternalDecl(
... | C++ |
�升到老年代。
- **动态对象年龄判定**:如果Survivor空间中相同年龄所有对象大小的总和大于Survivor空间的一半,年龄大于或等于该年龄的对象就可以直接进入老年代。
- **空间分配担保**:在发生Minor GC之前,虚拟机会先检查老年代最大可用的连续空间是否大于新生代所有对象总空间,如果这个条件成立,那么Minor GC就是安全的。如果不成立,则虚拟机会先查看HandlePromotionFailure设置值是否允许担保失败。如果允许,那么会继续检查老年代最大可用的连续空间是否大于历次晋升到老年代对象的平均大小,如果大于,将会尝试进行一次Minor GC,尽管这次Minor GC是有风险的;如果小于,或者Handl... | Markdown |
ids.CRYOFLUID, 20)
.addPartOutput(INGOT, 1).addFluidOutput(MIFluids.ARGON, 13).addFluidOutput(MIFluids.HELIUM, 5);
new MIRecipeBuilder(ctx, MIMachineRecipeTypes.POLARIZER, "rod_magnetic", 8, 200).addTaggedPartInput(ROD, 1).addPartOutput(ROD_MAGNETIC, 1);
new MIRecipeBuilder(ctx, MIMachi... | Java |
{
t.Fatalf("error opening a stub database connection: %s", err)
}
defer db.Close()
sample := `
=====================================
2016-09-14 19:04:38 0x7fed21462700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 30 seconds
-----------------
BACKGROUND ... | Go |
% 96;
int idx = yy*96+xx;
int r = bitmapR[idx];
int g = bitmapG[idx];
int b = bitmapB[idx];
u8 dd = ((r & 0xe0) | ((g >> 3) & 0x1c) | ((b >> 6) & 0x03));
oled_write_data(dd);
}
}
}
void oled_draw_bitmap8_x(u8 c1, u8 r1, u8 c2, u8 r2, u8 *bitmapR, u8 *bitmapG, u8 *bitmapB, int sx, ... | C++ |
using BenchmarkDotNet.Attributes;
using Sentry.Internal;
using Sentry.Protocol.Envelopes;
namespace Sentry.Benchmarks;
public class ConcurrentQueueBenchmarks
{
[Params(1000)]
public int N;
[Benchmark]
public async Task ConcurrentQueueLiteAsync()
{
ConcurrentQueueLite<Envelope> queue = new... | C# |
tion('飞机大战')
while True:
#背景色填充
window_screen.fill(bg_color)
#得分更新
if hit_score >= 999:
hit_score = 999
if hit_score > hit_score_temp and hero:
hit_score_temp = hit_score
show_score_HP()
elif hit_score < hit_score_temp:
... | Python |
GridX - 1][i].length + this.grid[startGridX][i].length - 1;
}
}
var min = Integer.MAX_VALUE;
var minCount;
var minIndex;
for (var j = 0; j < controlRegions.length; j++) {
if (controlRegions[j] < min) {
min = controlRegions[j];
minCount = 1;
minIndex = j;
} e... | JavaScript |
!.color,
),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
),
),
const SizedBox(height: 5),
Hero(
tag: authorTag,
... | Dart |
-- Author: Rowan Gollan / Ingo Jahn / Peter Jacobs / Fabian Zander
-- Data: 2019-05-03
--
-- This particular UDF is a culmination of on-going work by all the
-- authors named above.
--
-- NOTES:
-- Within this script we are demonstrating the use of two significant
-- functions for UDF processing
--
-- atTimestepStart(s... | Lua |
ect. Under those fine red sands lay the intact hull of a rover."),
'text', T(5780, --[[Scenario Anomalies text]] "We immediately recognized it – Curiosity. A historic finding that stretched its hand in a welcoming gesture through the years back to the first missions on the Red Planet. It belonged in a museum, but on... | Lua |
eInfo.UTCDate[2] - '0') * 10 + (locateInfo.UTCDate[3] - '0');
int16_t year = (locateInfo.UTCDate[4] - '0') * 10 + (locateInfo.UTCDate[5] - '0');
dateAddSub(year, month, day, dayAdd);
String str = String(month) + "/" + String(day);
lv_label_set_text(label_share[7], str.c_str()); // 标签文本
}
// 更新电量
#if... | C |
) {
if (!error) {
next();
} else {
const parsedError = JSON.parse(
JSON.stringify(error, Object.getOwnPropertyNames(error))
);
response.status(status).jsonp(parsedError);
}
};
return middleware;
}
}
export class User {
public _id: string;
publi... | Typescript |
EnrollmentID: enrollment2ID,
}).Return(enrollmentDV2, nil).Once()
change := mockLetsEncryptChallenges()
m.On("GetChangeStatus", testutils.MockContext, cps.GetChangeStatusRequest{
ChangeID: changeID,
EnrollmentID: enrollment2ID,
}).Return(change, nil).Once()
m.On("GetChangeLetsEncry... | Go |
push ebx)
#else
#if _MSC_VER < 1300
const word64 *t = table;
AS2( mov edx, t)
#else
AS2( lea edx, [table])
#endif
AS2( mov eax, digest)
AS2( mov esi, X)
#endif
AS2( movq mm0, [eax])
AS2( movq mm1, [eax+1*8])
AS2( movq mm5, mm1)
AS2( movq mm2, [eax+2*8])
AS2( movq mm7, [edx+4*2048+0*8])
AS2(... | C++ |
using System.Collections.Generic;
using System.Linq;
using AcManager.Tools.Helpers;
using AcTools.Utils.Helpers;
using FirstFloor.ModernUI.Helpers;
using JetBrains.Annotations;
namespace AcManager.Tools.Managers.Online {
public partial class OnlineManager {
private static readonly Dictionary<string, IOnlin... | C# |
com/ethereum/go-ethereum/trie/utils"
"github.com/holiman/uint256"
)
// hookedStateDB represents a statedb which emits calls to tracing-hooks
// on state operations.
type hookedStateDB struct {
inner *StateDB
hooks *tracing.Hooks
}
// NewHookedState wraps the given stateDb with the given hooks
func NewHookedState(s... | Go |
255 !important;
}
/* contribution calendar */
.calendar-graph rect[fill="#c6e48b"], .calendar-graph rect[fill="#7bc96f"],
.calendar-graph rect[fill="#239a3b"], .calendar-graph rect[fill="#196127"],
.contrib-legend li,
.contribution-activity-listing .progress-bar[style*="background-color"] {
background-color: /*[[ba... | CSS |
P7888: !SWAP [8] (maybe <- 0x870143) (Int)
mov %l4, %o1
swap [%i1 + 256], %o1
! move %o1(lower) -> %o1(upper)
sllx %o1, 32, %o1
add %l4, 1, %l4
P7889: !MEMBAR (Int)
membar #StoreLoad
P7890: !REPLACEMENT [13] (Int)
sethi %hi(0x40), %l6
or %l6, %lo(0x40), %l6
add %i3, %l6, %l3
sethi %hi(0x10000), %l6
or %l6, %lo(0x... | Assembly |
.state = GAME_STATES[nextStateName];
this.state.action(this);
}
/**
* Determine the winner of the round. Give that player the played cards. Setup the order of play for the next round
* and move to the next stage
*/
public completeRound() {
this.determineRoundWinner();
this.collectPlayedCard... | Typescript |
flat::CALL_ME_HAND.default as &crate::Emoji),
("calling" , &crate::flat::MOBILE_PHONE_WITH_ARROW as &crate::Emoji),
("cambodia" , &crate::flat::FLAG_CAMBODIA as &crate::Emoji),
("camel" , &crate::flat::CAMEL as &crate::Emoji),
("camera" , &crate::flat::CAMERA as &crate::Emoji),
("camera_flash" , &crate::flat::CAMERA_WI... | Rust |
/*
chronyd/chronyc - Programs for keeping computer clocks accurate.
**********************************************************************
* Copyright (C) Richard P. Curnow 1997-2002
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General P... | C |
4, #0xbc]
ldr r1, _0600644C ; =0x0000FFFF
mov r0, #1
strh r1, [r4, #0xbe]
strh r0, [r4, #0xc0]
_0600631C:
ldrh r0, [r4]
cmp r0, #9
bne _0600640C
bl __VENEER_OS_DisableInterrupts
add r1, r4, #0x100
ldrh r1, [r1, #0x82]
cmp r1, #0
bne _0600634C
mov r1, #0
strh r1, [r4, #0x62]
bl __VENEER_OS_RestoreInterrup... | Assembly |
/* ========================================================================= */
/**
* @file idle.h
*
* @copyright
* Copyright 2023 Google LLC
*
* 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 Lice... | C |
9.5 22.5t22.5 9.5h352v96q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5V160zm-192 416h128v64h-128v-64zm0-128h128v64h-128v-64zm0-128h128v64h-128v-64zm0-128h128v64h-128v-64zm-384 256h320v64h-320v-64zm0-128h320v64h-320v-64zm0-128h320v64h-320v-64z"/></svg>';
static const String ipcontrol =
'<svg xmlns="http://w... | Dart |
title: json['title'],
artist: json['artist'],
album: json['album'],
coverUrl: json['cover_url'],
);
Map<String, dynamic> toJson() => {
'title': title,
'artist': artist,
'album': album,
'cover_url': coverUrl,
};
}
class Template {
const T... | Dart |
202C21C
push {r4, lr}
ldr r0, _0202C278 ; =UNK_021C59D8
ldr r1, [r0, #0x4]
ldr r0, _0202C27C ; =0x00001310
ldr r0, [r1, r0]
sub r0, r0, #0x4
cmp r0, #0x2
bhi _0202C230
mov r0, #0x1
pop {r4, pc}
_0202C230:
bl WMi_GetStatusAddress
add r4, r0, #0x0
mov r0, #0x66
lsl r0, r0, #0x2
add r0, r4, r0
mov r1, #0x4... | Assembly |
.text
.global main
main:
###########
# ANDB imm4/imm16, reg
###########
andb $0xf,r1
andb $0xff,r2
andb $0xfff,r1
andb $0xffff,r2
andb $20,r1
andb $10,r2
###########
# ANDB reg, reg
###########
andb r1,r2
andb r2,r3
andb r3,r4
andb r5,r6
... | Assembly |
_list`
wchar::wch_c!("%1 %2 %3\n").as_ptr() as _,
0, // message id - ignored
0, // language id - ignored
out.as_mut_ptr() as _,
1, // minmum number of output `WCHAR` elements
parts.as_ptr() as _,
);
if result == 0 {
ret... | Rust |
aejw {
12.5% { }
to { }
to { }
}
@keyframes aejx {
12.5% { }
to { }
12.5% { }
}
@keyframes aejy {
12.5% { }
to { }
75% { }
}
@keyframes aejz {
12.5% { }
to { }
}
@keyframes aeka {
12.5% { }
12.5% { }
from { }
}
@keyframes aekb {
12.5% { }
12.5% { }
to { }
}
@keyframes aekc {
12... | CSS |
/ CHECK: encoding: [0x0f,0x9d,0x05,0xfe,0xca,0xbe,0xba]
setge 0xbabecafe
// CHECK: setge 305419896
// CHECK: encoding: [0x0f,0x9d,0x05,0x78,0x56,0x34,0x12]
setge 0x12345678
// CHECK: setle %bl
// CHECK: encoding: [0x0f,0x9e,0xc3]
setle %bl
// CHECK: setle 3735928559(%ebx,%ecx,8)
// CHEC... | Assembly |
rNum < currentMaxCount);
-- SetBtnState(maxBtn,maxImg, currNum < currentMaxCount);
SetBuyContent();
RefreshPrice();
end
function OnClickRemove()
if currNum > 1 then
currNum = currNum - 1;
CSAPI.SetText(txt_num, tostring(currNum));
RefreshVoucherItem();
-- SetSliderValue();
else
Tips.ShowTips(LanguageMg... | Lua |
ntax unified
ASM_FUNC(__udivsi3)
cmp r1, #0
cmpne r0, #0
stmfd sp!, {r4, r5, r7, lr}
add r7, sp, #8
beq L2
clz r2, r1
clz r3, r0
rsb r3, r3, r2
cmp r3, #31
bhi L2
ldmfdeq sp!, {r4, r5, r7, pc}
add r5, r3, #1
rsb r3, r3, #31
mov lr, #0
mov r2, r0, asl r3
mov ip, r0, lsr r... | Assembly |
[**MSharp.old**](https://github.com/marihachi/MSharp.old)|M# - MisskeyAPI Library For C#||
|3|[@marihachi](https://github.com/marihachi)/[**Seculetter**](https://github.com/marihachi/Seculetter)|An easy RSA encrypt/decrypt application for windows. (developing now)||
|3|[@marony](https://github.com/marony)/[**SudokuCS**... | Markdown |
/* Save callee-save registers. */
st r14, r31,12+32
st.d r15, r31,16+32
st.d r17, r31,24+32
st.d r19, r31,32+32
st.d r21, r31,40+32
st.d r23, r31,48+32
st r25, r31,56+32
st r30, r31,60+32
_qt_abort:
addu r14, r31,0 /* Remember old sp. */
addu r31, r5,0 /* Set new sp. */
jsr.n r2 /* Call helper. */
add... | Assembly |
.65, 14.98, 15.18, 2.31, 4.49, 2.30, 2.68, 2.76, 3.61)
categoryofuser = "men over 60 years of age"
} else if ((sex == "Female" || sex =="female") && age < 21) {
norm = listOf(
0, 73.41, 84.26, 89.01, 89.14, 81.27, 15.61, 14.98, 11.84, 13.21, 14.38,
... | Kotlin |
63,%g1
.word 0xc1985e00 !ldda [%g1]0xf0,%f0 ! block load
.word 0x8143e040 !membar #Sync
.word 0xc1b85c00 !stda %f0,[%g1]0xe0 ! block store and commit
.word 0x8143e040 !membar #Sync
ld [%o0],%o4
add %o4,%g4,%g4
.word 0xc9e2100c !cas [%o0],%o4,%g4
subcc %o2,1,%o2 ! --max
bz .Ldone2
nop
.word 0x99410000 !r... | Assembly |
# -*- coding: utf-8 -*- #
# Copyright 2017 Google LLC. 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 |
{
m.workloadLister.
EXPECT().
ListServices(gomock.Eq(appName)).
Return([]*config.Workload{
{
App: appName,
Name: "service1",
Type: "load balanced web service",
},
{
App: appName,
Name: "service2",
Type: "backend service",
},
},... | Go |
Mittwoch", "Donnerstag", "Freitag", "Samstag"];
localData.dayNamesShort = ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"];
localData.dayNamesMin = ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"];
localData.monthNames = ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "Septemb... | Typescript |
---------------------------------------------
void Test1()
{
//<Snippet3>
Word.Document doc;
//</Snippet3>
doc = new Microsoft.Office.Interop.Word.Document();
}
//------------------------------------------------------------------... | C# |
rride
String get knowledge250Sbmyths250Sb8250Sbtext => '<p>یہ Riccardo \'fluffypony\' Spagni کا سکہ نہیں ہے، اور کبھی نہیں تھا۔ اس نے بھی نہیں بنایا۔ اس کی شروعات ایک فرضی شخص نے کی تھی جسے Thankful_for_today کہا جاتا ہے، اور اس کے بارے میں ایک اور دلچسپ کہانی ہے۔ Fluffypony نے ایک بنیادی ٹیم کے رکن/لیڈ مینٹینر دونوں... | Dart |
ystems.json', 'plugins.json');
*
* engine.init(); // loads json files
* engine.start(); // enables systems
*
* while(engine.isRunning) {
* engine.update();
* engine.render();
* engine.post();
* // ... engine.stop() should be possible to reach within the loop
* }
* ```
* @see {@l... | Typescript |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
M68000 Hi-Performance Microprocessor Division
M68060 Software Package
Production Release P1.00 -- October 10, 1994
M68060 Software Package Copyright © 1993, 1994 Motorola Inc. All rights reserved.
THE SOFTW... | Assembly |
== clang::DiagnosticsEngine::Remark ? "-R" : "-W")
<< opt;
llvm::StringRef optValue = info.getDiags()->getFlagValue();
if (!optValue.empty())
os << "=" << optValue;
os << ']';
}
}
// For remarks only, if we are receiving a message of this format
// [file location with line and column];;[pat... | C++ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.