content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
Icon(Type type, string originalName) {
return new Icon(GetResourceStream(type, originalName));
}
/// <summary>
/// Returns an Bitmap created from a resource stream loaded from the appropriate location according to the current
/// suffix.
/// </summary>
/// <... | C# |
24e9f8
.byte 0x90, 0x83, 0x00, 0x00 # 8024e9fc
.byte 0x4E, 0x80, 0x00, 0x20 # 8024ea00
__ct__Q216NrvTsukidashikun24TsukidashikunNrvWaitBackFv:
.byte 0x3C, 0x80, 0x80, 0x5A # 8024ea04
.byte 0x38, 0x84, 0x55, 0x04 # 8024ea08
.byte 0x90, 0x83, 0x00, 0x00 # 8024ea0c
.byte 0x4E, 0x80, 0x00, 0x20 # 8024ea10
__ct__Q216NrvTsuk... | Assembly |
.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
</a>
<ul class="site-footer-links">
<li>© 2016 <span title="0.05311s from github-fe123-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
<... | CSS |
DirectoryEntry
{
protected string mValue;
public StringGPSDirectoryEntry(string aValue, ushort aTagID)
: base(aTagID, new TIFFValueType(TIFFValueTypes.Ascii), 0)
{
mValue = aValue;
}
public StringGPSDirectoryEntry(FileReader aPefFile, ushort aTagID)
: base... | C# |
fr={'Arrhenius', A=1.5e+16, n=-0.487, C=65800},
label='r73'
}
-- Associative ionization reactions
Reaction{
'N + O <=> NO+ + e-',
fr={'Arrhenius', A=8.8e+8, n=1.00, C=31900},
label='r74'
}
Reaction{
'O + O <=> O2+ + e-',
fr={'Arrhenius', A=7.1e+2, n=2.70, C=80600},
label='r75'
}
Reactio... | Lua |
sk is completed
$scope.isCompleted = Task.isCompleted;
}
// Get list of comments for the selected task
$scope.comments = Comment.comments(task.$id);
// Get list of offers for the selected task
$scope.offers = Offer.offers(task.$id);
};
// --------------- TASK ---------------
$scope.cancelTask ... | JavaScript |
fo and hwinfo are printing data
from the strings section
*/
for(i = 0; i < NUM_ELTS(sp_section); ++i) {
flags = sp_section[i].flags;
if(flags & EXPLICIT_ENABLE) {
flags &= ~IMPLICIT_DISABLE;
}
type = (flags >> SYSPAGE_TYPE_SHIFT) & SYSPAGE_TYPE_MASK;
if(!((type == 0) || (type == (PSP_NATIVE_E... | C |
ng());
}
return w * value;
}
public boolean[] prune (PortfolioTreeNode parent, ArrayList<ActionAssignment> actions, GameState gameState, int k) {
PortfolioTreeNode[] children = parent.getChildren();
boolean[] pruned = new boolean[children.length];
Arrays.fill(pruned, tru... | Java |
local utils = require "octo.utils"
local M = {}
---@class octo.BorderHeaderFloatOpts
---@field width integer
---@field border_width integer
---@field padding integer
---@field header string?
---@field header_height integer
---@field height integer
---@field y_offset integer
---@field x_offset integer
---@param opts o... | Lua |
power.target = reader.readUChar()
power.itemId = reader.readUInt()
power.quality = reader.readUChar()
} else if (power.effect == powerEffects.EFFECT_SPIRIT_CD) {
let side = reader.readUChar()
power.side = FightSystem.getInstance().transferFightSide(side)
//power.target = FightSystem.getInstance().getFunnalId... | Typescript |
f:SegmentAddressOffsetRandomization\",\"d3f:d3fend-id\":\"D3-SAOR\",\"d3f:definition\":\"Randomizing the base (start) address of one or more segments of memory during the initialization of a process.\",\"d3f:ref-count\":{\"@type\":\"http://www.w3.org/2001/XMLSchema#integer\",\"@value\":\"2\"},\"rdfs:label\":\"Segment A... | HTML |
alized index");
let parser = SaneQueryParser::new(index, fields);
parser
};
Ok(parser)
}
method parse(mut cx) {
let query_str = cx.argument::<JsString>(0)?.value();
let query = {
... | Rust |
s to a common utility file.
string TensorPropertiesToString(const OpInfo::TensorProperties& prop) {
string s = StrCat(DataTypeString(prop.dtype()), ": ");
StrAppend(&s, "[");
if (prop.shape().unknown_rank()) {
StrAppend(&s, "?");
} else {
StrAppend(&s, StrJoin(prop.shape().dim(), ",",
... | C++ |
env::set_var("ONET_SUBSTRATE_WS_URL", "ws://127.0.0.1:9944");
};
}
}
if let Some(data_path) = matches.value_of("data-path") {
env::set_var("ONET_DATA_PATH", data_path);
}
if let Some(substrate_ws_url) = matches.value_of("substrate-ws-url") {
env::set_var("ONET... | Rust |
tip() : ImRaii.IEndObject.Empty;
using var style = ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, ImGui.GetStyle().ItemSpacing * new Vector2(1f, 1.5f));
if (printName)
PrintName(this);
PrintTime(this) | C# |
.map { s1: String? -> "$user:$s1" }.toList())
}
list
} else {
for (p in Bukkit.getOnlinePlayers()) {
list.add(p.name)
}
if (sender is Player) {
plugin.homeProfiles[sender.uniqueId]?.let { list.addAll(it.getHomes()) }
... | Kotlin |
();
}
#undef LOCTEXT_NAMESPACE// Copyright © 2024 Botanibots Team. All rights reserved.
#include "Settings/EnhancedOnlineSubsystemSettings.h"
#include "ISettingsEditorModule.h"
#include "Misc/ConfigCacheIni.h"
UEnhancedOnlineSubsystemSettings::UEnhancedOnlineSubsystemSettings(const FObjectInitializer& ObjectInitia... | C++ |
paramref name="unityObject"/> reference is not <c>null</c> and the instance is not destroyed<br/>
/// Equivalent as testing <c><paramref name="unityObject"/> != null</c> but 4-5 times faster.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool IsNotNullOr... | C# |
strncpy(ethstr + 8, env + 3, i);
}
/* Modify blob */
fdt_fixup_ethernet(str, ethstr, len);
/* Clear ethernet..XXXX.. string */
bzero(ethstr + 8, len - 8);
if (n + 1 > eth_no)
eth_no = n + 1;
} else if (strcmp(env, "consoledev") == 0) {
str = ub_env_get(env);
fdt_fixup_stdout(str);
... | C |
(targetFormat, transform { chunk ->
// 1) Bytes -> normalized samples [-1, 1]
val normalized = decode(chunk, sourceFormat)
// 2) Resample if needed (per-channel, linear)
val resampled = resample(
samples = normalized,
sourceRate = sourceFormat.sampleRate,
... | Kotlin |
ds SootProjectLauncher {
public void run(IAction action) {
super.run(action);
setCmd();
runSootDirectly();
runFinish();
}
private void setCmd() {
ArrayList commands = new ArrayList();
commands.add("--"+LaunchCommands.SOOT_CLASSPATH);
commands.add(getProcess_path()+getSootClasspath().getSepa... | Java |
using Flee.PublicTypes;
namespace Flee.Parsing
{
internal abstract class CustomTokenPattern : TokenPattern
{
protected CustomTokenPattern(int id, string name, PatternType type, string pattern) : base(id, name, type, pattern)
{
}
public void Initialize(int id, string name, Patt... | C# |
"doc")
.current_dir("./tests/simple_project")
.assert()
.success();
// succeeds with generated docs
Command::cargo_bin("cargo-deadlinks")
.unwrap()
.arg("deadlinks")
.current_dir("./tests/simple_project")
.assert()
... | Rust |
me) continue;
const id = name
.toLowerCase()
.replace(/\'+/g, '')
.replace(/\/+/g, '')
.split(' ')
.join('_');
monsters.push({
id,
name,
href: monsterLink.href
});
}
return monsters;
};
}
async function findImageFromDOM(href... | Typescript |
_spec.ClearField(workspacefile.FieldContent, field.TypeString)
}
if value, ok := wfu.mutation.Hash(); ok {
_spec.SetField(workspacefile.FieldHash, field.TypeString, value)
}
if value, ok := wfu.mutation.Language(); ok {
_spec.SetField(workspacefile.FieldLanguage, field.TypeString, value)
}
if wfu.mutation.La... | Go |
6_1 = L6_1.CS
L6_1 = L6_1.NotifyType
L6_1 = L6_1.UIShowTeamBuffDetailDialog
L4_1[L5_1] = L6_1
L5_1 = CS
L5_1 = L5_1.RPG
L5_1 = L5_1.GameCore
L5_1 = L5_1.ShortCutWheelGotoType
L5_1 = L5_1.RogueBuff
L5_1 = #L5_1
L6_1 = G
L6_1 = L6_1.CS
L6_1 = L6_1.NotifyType
L6_1 = L6_1.UIShowRogueMenuPage
L4_1[L5_1] = L6_1
L5_1 = CS
L5_... | Lua |
anshiyi_name")
private String daibanshiyiName;
/**
* 事宜类型
*/
@ColumnInfo(comment="事宜类型",type="int(11)")
@TableField(value = "daibanshiyi_types")
private Integer daibanshiyiTypes;
/**
* 工作人员
*/
@ColumnInfo(comment="工作人员",type="int(11)")
@TableField(value = "gongz... | Java |
TMutex();
}
// -------------------------------------------------------------------------- //
// * ~TLog( void )
// -------------------------------------------------------------------------- //
TLog::~TLog(void)
{
if (mMutex)
{
delete mMutex;
}
}
// --------------------------------------------------------------... | C++ |
OD = 1U << 8,
PERF_SAMPLE_STREAM_ID = 1U << 9,
PERF_SAMPLE_RAW = 1U << 10,
PERF_SAMPLE_BRANCH_STACK = 1U << 11,
PERF_SAMPLE_REGS_USER = 1U << 12,
PERF_SAMPLE_STACK_USER = 1U << 13,
PERF_SAMPLE_WEIGHT = 1U << 14,
PERF_SAMPLE_DATA_SRC = 1U << 15,
PERF_SAMPLE... | C# |
"/media/matt/36A5CC3B5FA24585/DATASETS/ATTENUATED_pngs/converted" +
p.sep +
species;
let file_to_save = p.join(path_to_save, parts.base);
if (fs.existsSync(file_to_save)) {
DEBUG && console.log("skipping file as it is already saved");
} else {
const [file_to_analyse, confi... | HTML |
to.a.kind(), Kind::Double);
assert_eq!(to.b, "mighty");
assert_eq!(to.c, "tch".to_string());
assert_eq!(to.d, Device::Cpu);
}
}
#[doc = "Reader of register FLCTL_IFG"]
pub type R = crate::R<u32, super::FLCTL_IFG>;
#[doc = "Reader of field `RDBRST`"]
pub type RDBRST_R = crate::R<bool, bool>;
... | Rust |
fill="currentColor" class="bi bi-c-circle " viewBox="0 0 16 16"><path d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8Zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0ZM8.146 4.992c-1.212 0-1.927.92-1.927 2.502v1.06c0 1.571.703 2.462 1.927 2.462.979 0 1.641-.586 1.729-1.418h1.295v.093c-.1 1.448-1.354 2.467-3.03 2.467-2.091 0-3.269-1.336-3.269-... | HTML |
>>Travel toward |cRXP_FRIENDLY_Ursula Deline|r inside The Slaughtered Lamb
.train 410014,1
step
.goto StormwindClassic,26.12,77.23
>>Talk to |cRXP_FRIENDLY_Ursula Deline|r
.turnin 78090 >> Turn in A Second Opinion
.accept 78091 >> Accept Earning Your Salt
.target Ursula Deline
.train 410014,... | Lua |
/EasySearch.IfNoResults}}
{{#EasySearch.IfSearching index=messagesIndex}}
<div>{{> spinner}}</div>
{{/EasySearch.IfSearching}}
{{#EasySearch.Each index=messagesIndex}}
{{> Message}}
{{/EasySearch.Each}}
</div>
</div>
</div>
</div>
</tem... | HTML |
to maximize the time you have your thumbs on the sticks of your controller. In World of Warcraft, where you have a large amount of bindings at your disposal, you should focus your most crucial and frequently used bindings in places where they do not require you to take your thumbs off the sticks.
<br/><br/>
|cff69... | Lua |
="762.731"/><path fill="#f2efe8" d="M270.057,764.77c0.288,0.027,0.572,0.051,0.857,0.087c-0.575-0.403-1.151-0.807-1.726-1.209 c0.832,2.527,4.655,1.864,4.894-0.675c0.28-2.977-4.093-3.824-4.967-0.98c0.543-0.453,1.086-0.906,1.629-1.358 c-0.281,0.035-0.566,0.056-0.849,0.081C267.547,760.93,267.81,764.562,270.057,764.77z"/></... | HTML |
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using Framework.Constants;
using Game.DataStorage;
using Game.Entities;
using System;
namespace Game
{
public class ... | C# |
ixelWidth: primitive,
pixelHeight: primitive,
style: enumeration('ImageStyle'),
url: primitive,
backgroundColor: primitive,
},
ImageSet: {
...CardElement,
type: "ImageSet",
images: list('Image', typed),
imageSize: enumeration('ImageSize'),
... | Typescript |
D3 A5 F9 */ bl rand
/* 8038EFAC 0038BEEC 6C 63 80 00 */ xoris r3, r3, 0x8000
/* 8038EFB0 0038BEF0 3C 00 43 30 */ lis r0, 0x4330
/* 8038EFB4 0038BEF4 90 61 07 6C */ stw r3, 0x76c(r1)
/* 8038EFB8 0038BEF8 C8 62 0C 50 */ lfd f3, lbl_8051EFB0@sda21(r2)
/* 8038EFBC 0038BEFC 90 01 07 68 */ stw r0, 0x768(r1)
/* 8038EFC0 ... | Assembly |
//============================================================================
// The contents of this file are covered by the Viskores license. See
// LICENSE.txt for details.
//
// By contributing to this file, all contributors agree to the Developer
// Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO... | C |
droidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.autofill.Autofill
import androidx.compose.ui.autofill.AutofillNode
import androidx.compose.ui.autofill.AutofillType
import android... | Kotlin |
.y, y:-1 * sint*v.x + cost*v.y};
}
function rotCounterClockwise(v: Point, angle): Point {
var cost = Math.cos(angle);
var sint = Math.sin(angle);
return {x:cost*v.x - sint*v.y, y:sint*v.x + cost*v.y};
}
function midPoint(u: Point, v: Point): Point {
return {x:(u.x - v.x)/2.0, y:(u.y - v.y)/2.0... | Typescript |
('direct dependencies only', () async {
final vp = await VizRoot.forDirectory(
service,
directDependenciesOnly: true,
);
expect(vp.root.name, 'test_pubspec');
expect(vp.packages, contains('http'));
expect(vp.packages, contains('test'));
expect(vp.packages, isNot(cont... | Dart |
# coding: UTF-8
# Coder for Japanese grid square code. (JIS C 6304 / JIS X 0410)
# 行政管理庁告示第143号 http://www.stat.go.jp/data/mesh/
def _encode_i2c(lat, lon, base1):
t=[]
while base1>80:
t.append(1 + (lat&1)*2 + (lon&1))
lat = lat>>1
lon = lon>>1
base1 = base1>>1
if base1==80:
t.append(lon%10)
t.append(l... | Python |
rl = thumbnails.lowResUrl.isNotEmpty ? thumbnails.lowResUrl :
'https://img.youtube.com/vi/${video.id.value}/mqdefault.jpg';
posterUrl = thumbnails.standardResUrl.isNotEmpty ? thumbnails.standardResUrl :
'https://img.youtube.com/vi/${video.id.value}/hqdefault.jpg'... | Dart |
/// Returns the number of pixels required to show all visible nodes
/// </summary>
void EnsureInternalArray()
{
if (m_nodesInternal != null)
{
Debug.Assert(m_nodesInternal.Length == Count, "m_nodesInternal.Length == Count");
return;
}
m_nodesInternal = new Node[Count];
int index = 0;
fo... | C# |
video;
@override
State<SongPopupPlayer> createState() => _SongPopupPlayerState();
}
class _SongPopupPlayerState extends State<SongPopupPlayer>{
ChewieController? _controller;
VideoPlayerController? _playerController;
late MusicVideo _video ;
final List<MusicVideo> _musicVideos = [];
bool _autoRelease =... | Dart |
)
else:
result = np.load(desc_path)
Descs = result["Descs"]
normals = result["normals"]
neighboor = result["neighboor"].tolist()
n = Descs.shape[0]
Descs = torch.tensor(Descs, device='cuda')
pred = []
with torch.no_grad():
... | Python |
_button .PIN_1701466208825_label.PIN_1701466208825_bottom {
bottom: 0;
}
span.PIN_1701466208825_embed_grid .PIN_1701466208825_ft .PIN_1701466208825_button .PIN_1701466208825_label .PIN_1701466208825_string {
white-space: pre;
color: #746d6a;
font-size: 13px;
font-weight: bold;
vertical-align: top;
disp... | HTML |
15-minute delay) - no estimated values', 'success');
}
} else {
console.error('❌ Analysis failed:', result.error);
// Enhanced error message for real data mode
if (result.error.includes('Available DTEs:')) {
const match = re... | JavaScript |
>= 0x80 ? offset - 0x100 : offset;
cpu.address = cpu.PC + offsetSigned;
}
@override
int get operandCount => 1;
}
class Absolute extends AddressMode {
@override
void execute(CPU cpu) {
cpu
..address = cpu.read16(cpu.PC)
..PC += 2;
}
@override
int get operandCount => 2;
}
class Ab... | Dart |
tutorials, real-world examples, and online resources. This book is ideal for students, non-profit organizations, small business owners, local governments, journalists, academics, or anyone who wants to tell their story and show the data. No coding experience is required." />
<meta name="generator" content="bookdown ... | HTML |
map = "<M-l>",
keys = "asdfghjklqwertyuiop",
pattern = [=[[%'%"%)%>%]%)%}%,]]=],
check_comma = true,
end_key = "L",
highlight = "PmenuSel",
hightlight_grey = "NonText",
},
check_ts = true,
... | Lua |
1 col-md-1 col-lg-2 col-xl-1">
</div>
<div id="progress-project-area-wrapper" class="col-xs-8 col-sm-6 col-md-3 col-lg-3 col-xl-2 question-progress-project">
{% include "task-progress-project-list.html" with previous="question" %}
</div>
</div> <!-- /row -->
{% include "task-question-debug-links... | HTML |
case PoiGroupCollection poiGroupCollection:
{
poiGroupCollection.SetEnabledNoRefresh(selectedGroups.Contains(poiGroupCollection.GroupKey), true);
foreach (var group in poiGroupCollection.PoiGroups)
{
group.SetEnab... | C# |
f (hitSwizzleInputEnd || hitDstRangeEnd) {
if (currNewDstHighIndex != null && currNewDstLowIndex != null) {
final currSwizzleInput = components[swizzleIdx];
final newLoadTracking = loadTracking.copyWith(
src: currSwizzleInput,
srcLowIndex: currSwizzleInputLowIndex,
... | Dart |
string
ConfigFiles string // pretty much called `config-paths` everywhere but here...
ConfigLocation string
ConfigDump bool
DisableUserConfig bool
DockerBuild bool
DockerInteractive bool
DockerOptions []string
Entrypoint string
FlushCache ... | Go |
// Break block into sixteen 32-bit `little-endian` words
let mut words = [0u32; 16];
for (o, s) in words.iter_mut().zip(block.chunks_exact(4)) {
*o = u32::from_le_bytes(s.try_into().unwrap());
}
// round 1
a = f(a, b, c, d, words[0], ROUND_TABLE[0], 7);
d = f... | Rust |
// Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QT3DRENDER_RENDER_ARMATURE_H
#define QT3DRENDER_RENDER_ARMATURE_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. ... | C |
}
}
<reponame>playXE/Jazz<gh_stars>10-100
extern crate jazz;
extern crate jazz_vm;
extern crate structopt;
use jazz::{
parser::{lex, parse},
Compiler,
};
use jazz_vm::machine::Machine;
use std::{fs::File, io::prelude::*, path::PathBuf};
use structopt::StructOpt;
#[derive(StructOpt, Debug)]
pub struct Opti... | Rust |
/**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | C |
; i <= n; i++ {
H[i][i] -= x
}
s = math.Abs(H[n][n-1]) + math.Abs(H[n-1][n-2])
y = 0.75 * s
x = y
w = -0.4375 * s * s
}
// MATLAB's new ad hoc shift
if iter == 30 {
s = (y - x) / 2.0
s = s*s + w
if s > 0 {
s = math.Sqrt(s)
if y < x {
s = -s
}
s =... | Go |
; ==================================================================================================
; ENEMY_WIZZROBE
;
; Variables:
; var30: The low byte of wWizzrobePositionReservations that this wizzrobe is using
; (red wizzrobes only)
; var31/var32: Target position (blue wizzrobes only)
; =============... | Assembly |
an instance profile.
class AwsIamInstanceProfile {
/// The ARN of the instance profile.
final String? arn;
/// Indicates when the instance profile was created.
///
/// This field accepts only the specified formats. Timestamps can end with
/// <code>Z</code> or <code>("+" / "-") time-hour [":" time-minute]... | Dart |
local _, private = ...
if not private.isClassic then return end
--[[ Lua Globals ]]
-- luacheck: globals
--[[ Core ]]
local F, C = _G.unpack(private.Aurora)
function private.FrameXML.LootHistory()
local r, g, b = C.r, C.g, C.b
local LootHistoryFrame = _G.LootHistoryFrame
for i = 1, 9 do
_G.sele... | Lua |
leEndian};
///
/// let mut bytes = [0; 16];
/// let numbers_given = [1.0, 2.0, 31.312e31, -11.32e19];
/// LittleEndian::write_f32_into(&numbers_given, &mut bytes);
///
/// let mut numbers_got = [0.0; 4];
/// LittleEndian::read_f32_into_unchecked(&bytes, &mut numbers_got);
/// assert_eq!(... | Rust |
movgs gr4, psr ; 0x000 00000
movgs gr4, pcsr ; 0x001 00001
movgs gr4, bpcsr ; 0x002 00002
movgs gr4, tbr ; 0x003 00003
movgs gr4, bpsr ; 0x004 00004
movgs gr4, hsr0 ; 0x010 00020
movgs gr4, ccr ; 0x100 00400
movgs gr4, cccr ; 0x107 00407
movgs gr4, lr ; 0x110 00420
movgs gr4, lcr ; 0x111 00421
movgs gr4, iac... | Assembly |
endif
}
ls->bind = 1;
continue;
#if (NGX_HAVE_KEEPALIVE_TUNABLE)
invalid_so_keepalive:
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"invalid so_keepalive value: \"%s\"",
&value[i].data[13]);
... | C |
n collectionName;
return {{ cls.cppClassName }}::Is{{ cls.usdPrimTypeName }}Path(
path, &collectionName);
}
{% endif %}
{% if useExportAPI %}
} // anonymous namespace
{% endif %}
void wrap{{ cls.cppClassName }}()
{
typedef {{ cls.cppClassName }} This;
{% if cls.isAPISchemaBase %}
class_< This , b... | C++ |
uri)
return b
}
// SetLevel set branch currentLevel
func (branch *Branch) SetLevel(level consts.Level) *Branch {
if level == 0 {
return branch
}
branch.level = level
return branch
}
// SetProtocol set branch network protocol
func (branch *Branch) SetProtocol(protocol Protocol) *Branch {
branch.protocol = prot... | Go |
Instance(c, f);
uproot(d , uid , uids);
}
} catch (CruxException ex) {
throw ex.toExemption();
}
});
}
public static void uproot(Data ent, String uid, Set<String> uids)
throws CruxException {
Map cols = ent .getField... | Java |
mpatible)
// |+----- PRG RAM ($6000-$7FFF) (0: present; 1: not present)
// +------ 0: Board has no bus conflicts; 1: Board has bus conflicts
pub flags_10: u8,
// 11-15: Unused padding (should be filled with zero, but some rippers put their name across bytes 7-15)
pub unused: [u8; 5],
}
impl Hea... | Rust |
this.get(pathValue, id).then(originalItem => {
pathValue = hookPathValue(pathValue);
pathValue = path.posix.join(pathValue, id);
const db = this.getDb();
const ref = db.ref(pathValue);
const item = {
..._serialize(originalItem),
...fields,
id: id
};
re... | Typescript |
bleImageURL sets the "image_url" field if the given value is not nil.
func (tdu *TaskDetailUpdate) SetNillableImageURL(s *string) *TaskDetailUpdate {
if s != nil {
tdu.SetImageURL(*s)
}
return tdu
}
// ClearImageURL clears the value of the "image_url" field.
func (tdu *TaskDetailUpdate) ClearImageURL() *TaskDetai... | Go |
(path string, name int) (val int, err error)
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
//sys read(fd int, p []byte) (n int, err error)
//sys Readlink(path string, buf []byte) (n int, err error)
//sys Rename(from string, to string) (err... | Go |
TarFile.Close()
gw := gzip.NewWriter(validTarFile)
defer gw.Close()
tw := util.NewTar(gw)
defer tw.Close()
if err := tw.AddFileToTar(validDockerfile); err != nil {
t.Errorf("Failed to add %s to %s: %v", validDockerfile, validTarPath, err)
}
}(&wg)
// Waiting for the Tar Gz file creation to be done ... | Go |
ERROR: type should be string, got "https://blog.cloudflare.com/de-de/steps-taken-around-cloudflares-services-in-ukraine-belarus-and-russia-de-de\">unsere Netzwerkteams daran, den Datenverkehr über alle möglichen Wege zu leiten</a>, um sicherzustellen, dass nicht nur Nachrichten von außerhalb der Ukraine ankommen, sondern – was ebenso wichtig ist – auch Bilder und Nachrichten über den Krieg nach außen gelangen konnten.</p>\n\t<p>Diese Bilder und Nachrichten über die Geschehnisse in der Ukraine sorgen weiterhin für Unterstützung. Die ukrainische Regierung ist trotz heftiger Cyberangriffe weiterhin funktionsfähig. Die Stimmen innerhalb Russlands, die sich gegen das Regime wehren, werden immer lauter. Und normale russische Bürger nutzen zunehmend Dienste wie die <a href=\"https://one.one.one.one\">1.1.1.1 App von Cloudflare</a>, um unzensierte Nachrichten zu sehen, und zwar in Rekordzahlen.</p>\n\t<p>Unsere Bemühungen, das Internet in Russland aufrechtzuerhalten, haben das Putin-Regime dazu veranlasst, einen von uns (Matthew) offiziell zu sanktionieren – ein Zeichen dafür, dass wir einen positiven Einfluss hatten. Wir schätzen, dass heute etwa 5 % aller Haushalte im Lande weiterhin das unzensierte Internet über unsere 1.1.1.1 App nutzen, Tendenz steigend.</p>\n\t<figure class=\"kg-card kg-image-card\"><img src=\"https://blog.cloudflare.com/content/images/2022/09/image7-5.png\" class=\"kg-image\" alt=\"\" loading=\"lazy\"></figure>\n\t<h3 id=\"das-aktuelle-schlachtfeld-des-internets\">Das aktuelle Schlachtfeld des Internets</h3>\n\t<p>2022 war nicht das erste Jahr, in dem das Internet zu einem Schlachtfeld wurde, aber für uns fühlt es sich wie ein Wendepunkt an. In den letzten zwölf Monaten haben wir <a href=\"https://blog.cloudflare.com/q2-2022-internet-disruption-summary\">mehr Länder erlebt, die den Internetzugang gesperrt haben als in jedem Jahr zuvor</a>. Manchmal handelt es sich nur um einen fehlgeleiteten und unwirksamen Versuch, Studenten davon abzuhalten, bei nationalen Prüfungen zu schummeln. Leider geht es dabei immer häufiger um repressive Regime, die versuchen, ihre Kontrolle durchzusetzen.</p>\n\t<p>In diesen Tagen etwa <a href=\"https://blog.cloudflare.com/protests-internet-disruption-ir\">versucht die iranische Regierung, die Proteste im Land durch eine umfassende Internetzensur zum Schweigen zu bringen</a>. Manche mögen meinen, dies sei ein normaler Vorgang, aber das ist es nicht. Das Internet und die breite Palette an Nachrichten und Meinungen, die es mit sich bringt, sind in Ländern wie dem Iran und Russland allgemein verfügbar, und wir sollten nicht akzeptieren, dass die vollständige Zensur in diesen Ländern de facto zum Dauerzustand wird.</p>\n\t<p>Und diese Bemühungen, das Internet unter Kontrolle zu bringen, gibt es bedauerlicherweise nicht nur im Iran und in Russland. Selbst in den liberalen, demokratischen Ländern Westeuropas kam es im letzten Jahr zu einem drastischen Anstieg von Vorfällen, bei denen eine gerichtlich angeordnete Sperrung auf der Infrastrukturebene zu einem massiven Overblocking führte. Diese Fälle werden einen gefährlichen Präzedenzfall schaffen, " | HTML |
.1154 Condenser C4 Presets Knob")
Mosquito:defineTumb("T1154_C15_B", 25, 3023, 213, 0.1, { 0, 0.7 }, nil, true, "T1154", "T.1154 Condenser C15 Presets Knob")
Mosquito:defineTumb("T1154_C16_B", 25, 3026, 214, 0.1, { 0, 0.7 }, nil, true, "T1154", "T.1154 Condenser C16 Presets Knob")
Mosquito:defineTumb("T1154_C17_B", 25,... | Lua |
.13);
const extreme: boolean = precipMax > 0.13;
if (none) { return 'icon-no_value wc-icon-none'; }
if (light) { return 'icon-snow_light temperature-ok'; }
if (med) { return 'icon-snow_medium temperature-warn'; }
if (heavy) { return 'icon-snow_heavy temperature-alert'; }
if (extreme) { return '... | Typescript |
tInByte ) );
break;
}
result &= binary( 00001111 );
m_nBitOffsetFromStart += 4;
return result;
}
double CADBuffer::ReadBITDOUBLE()
{
unsigned char BITCODE = Read2B();
size_t nByteOffset = m_nBitOffsetFromStart / 8;
size_t nBitOffsetInByte = m_nBitOffsetFromStart % 8;
... | C++ |
writer.WriteDecimalValue("netTaxAmount", NetTaxAmount);
writer.WriteDecimalValue("quantity", Quantity);
writer.WriteIntValue("sequence", Sequence);
writer.WriteDateValue("shipmentDate", ShipmentDate);
writer.WriteDecimalValue("shippedQuantity", ShippedQuantity);
... | C# |
")
androidTestImplementation("androidx.test.ext:junit:1.3.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.7.0")
}
package com.hc.calling.commands.shadow.data
import android.annotation.SuppressLint
import com.hc.calling.api.api.ApiClient
import com.hc.calling.api.transformHelper.RxStreamHe... | Kotlin |
using System;
using System.Windows.Forms;
using Blumind.Core;
using Blumind.Globalization;
using Blumind.Model.Styles;
namespace Blumind.Dialogs.Components
{
class ThemeFolderNode : TreeNode
{
private ChartThemeFolder _ThemeFolder;
public ThemeFolderNode(ChartThemeFolder themeFolder)
... | C# |
5)">\u2212D</button>`)
.click(evt => doModTime(-1 * getTimeInfo().secsPerDay * (evt.shiftKey ? 5 : 1)));
const $btnAddDay = opts.isHideDays ? null : $(`<button class="ve-btn ve-btn-xs ve-btn-default dm-time__btn-date-adjust" title="Add Day (SHIFT for 5)">D+</button>`)
.click(evt => doModTime(getTimeInfo().secs... | JavaScript |
Z).forEach(function(t){o[t]=e.def(c,".",t)})}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)})}function j(t,r,n,i,o){for(var s,l=t.shared,c=l.gl,u=0;u<i.length;++u){var f,h... | HTML |
수직적으로 이어붙이는 함수이다.
"""
# combine 1단계: 8개의 이미지를 결합하는 과정
if step == 1:
# 이미지 오픈
upper_image = self.cropped_image_list_step_1[upper_image_index]
lower_image = self.cropped_image_list_step_1[lower_image_index]
# combine 2단계: 4개의 이미지를 결합하는 과정
elif ... | Python |
;
; GFA basic inline for SNDH replay
;
; original by swe/yescrew
; ripped and improved a little by gwEm
; (still not perfect, but...)
;
;............................................................................
section text
; opt CHKPC ;make sure PC relative code
; opt o+ ;optimisations on
Sndh.SHOW_CPU:= 0... | Assembly |
c void RegisterVariables(UIControlledApplication uiApp)
{
// Store all available global variable values (available anywhere, effectively)
UiCtlApp = uiApp;
CtlApp = uiApp.ControlledApplication;
CurrentDocument = null;
// (uiApp set by idling event)
... | C# |
manager, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer userData)
{
g_return_if_fail(WEBKIT_IS_COOKIE_MANAGER(manager));
GTask* task = g_task_new(manager, cancellable, callback, userData);
manager->priv->webCookieManager->getHostnamesWithCookies(ArrayCallback::create(task, webkitCookieM... | C++ |
exit(1)
init_db() # Initialize the database once at startup
init_db2()
init_db3()
print("Generating query IDs for the following usernames:")
for username in usernames:
print(f"- {username}")
try:
asyncio.run(generate_queries_for_all_sessions(username))
... | Python |
Can be -1 to indicate a default value.
// @tags
// <NPCTag.hologram_line_height>
// -->
if (mechanism.matches("hologram_line_height") && mechanism.requireDouble()) {
HologramTrait hologram = getCitizen().getOrAddTrait(HologramTrait.class);
hologram.setLineHeight(... | Java |
as core.String?,
code: json_['code'] as core.String?,
description: json_['description'] as core.String?,
destination: json_['destination'] as core.String?,
detail: json_['detail'] as core.String?,
documentation: json_['documentation'] as core.String?,
resolution: json_['... | Dart |
khir) AND EXTRACT(YEAR FROM t_beli_produk.tanggal) = @tahun";
_sql = SQL_TEMPLATE.Replace("{WHERE_1}", _where);
_where = @"WHERE (EXTRACT(MONTH FROM t_pembayaran_hutang_produk.tanggal) BETWEEN @bulanAwal AND @bulanAkhir) AND EXTRACT(YEAR FROM t_pembayaran_hutang_produk.tanggal) = @tahun... | C# |
run { return MarkdownTokenTypes.HARD_LINE_BREAK }
}
29 -> {
}
13 -> {
return getReturnGeneralized(MarkdownTokenTypes.TEXT)
}
30 -> {
}
... | Kotlin |
80AA6B20 4600540D */ trunc.w.s $f16, $f10
/* 00AD4 80AA6B24 44088000 */ mfc1 $t0, $f16
/* 00AD8 80AA6B28 00000000 */ nop
/* 00ADC 80AA6B2C 25090006 */ addiu $t1, $t0, 0x0006 ## $t1 = 00000006
/* 00AE0 80AA6B30 0C00BE0A */ jal Audio_PlayActorSound2
... | Assembly |
org.mybatis.generator.api.PluginAdapter;
import org.mybatis.generator.api.dom.java.*;
import org.mybatis.generator.api.dom.xml.Attribute;
import org.mybatis.generator.api.dom.xml.TextElement;
import org.mybatis.generator.api.dom.xml.XmlElement;
import java.util.List;
/**
* MySQL分页插件
* Created by ZhangShuzheng on 2... | Java |
DynamicViscosity in Poise.
/// </summary>
public double Poise => As(DynamicViscosityUnit.Poise);
/// <summary>
/// Get DynamicViscosity in Centipoise.
/// </summary>
public double Centipoise => As(DynamicViscosityUnit.Centipoise);
/// <summary>
/// Get DynamicViscosity in NewtonSecondPer... | C# |
: 1.5rem;
border-radius: 4px;
transition: all 0.2s ease;
}
#mobile-nav-toggle i {
pointer-events: none;
display: block;
}
#mobile-nav-toggle:hover {
background-color: var(--bg-interactive);
}
@media (max-width: 1300px) {
#mobile-nav-toggle {
display: flex;
align-items:... | HTML |
ue" );
this.value = value;
}
/* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. ... | JavaScript |
newCombo, 1, nextSigns.length);
retval.add(newCombo);
}
}
return retval;
}
// checks for same signs
private boolean sameSigns(Sign[] a, Sign[] b) {
if (a.length != b.length) return false;
for (int i=0; i < a.length; i++)
if (a[i] != b[i]) return ... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.