content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
0.0625 * 3, t = 0, b = 1 },
[11] = { l = 0.0625 * 1, r = 0.0625 * 2, t = 0, b = 1 },
[12] = { l = 0, r = 0.0625 * 1, t = 0, b = 1 },
[13] = { l = 0.0625 * 13, r = 0.0625 * 14, t = 0, b = 1 },
dead = { l = 0.0625 * 12, r = 0.0625 * 13, t = 0, b = 1 }
}
GW.CLASS_ICONS.WARRIOR = GW.CLASS_ICONS[1]
GW.CLASS_... | Lua |
{ ModalType } from "./Modal";
export const getTextForType = (type: ModalType | undefined): string => {
switch (type) {
case ModalType.Delete: {
return "Do you want delete this task";
}
case ModalType.DeleteAll: {
return "Do you want delete all task";
}
case ModalType.DeleteChecked: {... | Typescript |
ед","invalidBorder":"Размерът на рамката трябва да е число.","invalidCellPadding":"Отстоянието на клетките трябва да е положително число.","invalidCellSpacing":"Интервалът в клетките трябва да е положително число.","invalidCols":"Броят колони трябва да е по-голям от 0.","invalidHeight":"Височината на таблицата трябва д... | JavaScript |
tent: null,
tokens: null,
count: 0
};
env.footnotes.list[footnoteId] = infoRec;
if (label != null) {
env.footnotes.refs[':' + label] = footnoteId;
}
} else {
footnoteId = env.footnotes.refs[':' + label];
infoRec = env.footnotes.list[footnoteId];
asse... | Typescript |
-----------------------------------
-- Area: Lower Jeuno
-- NPC: Amalasanda
-- Type: Tenshodo Merchant
-- !pos 28.149 2.899 -44.780 245
-----------------------------------
local ID = require("scripts/zones/Lower_Jeuno/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/shop")
function onTrade(player, n... | Lua |
der version the resource was created, the resource id
// can be either <project_id> or <project_id>/<region>. This parses the project_id
// in both cases
projectID := strings.Split(d.Id(), "/")[0]
q, err := quotas.Get(ctx, networkingClient, projectID).Extract()
if err != nil {
return diag.FromErr(CheckDeleted(d... | Go |
abilityNo: 1,
isHiddenAbility: true,
item: new Item("wacanberry")
),
new Pokemon(
pokemonID: "blastoise",
level: 15,
hpPercent: 1f,
... | C# |
lights-red: #f00;
--GW-mistletoe-green: #005519;
--GW-pine-needle-green: #5eff66;
--GW-spruce-needle-green: #5ce15b;
--GW-fir-needle-green: #a7cab6;
--GW-christmas-lights-gold: #996515;
}
body[class*='special-christmas'] {
--GW-nav-header-link-color: var(--GW-holly-leaf-green);
--GW-nav-hea... | CSS |
::vector<float> residuals(n * d);
for (idx_t i = 0; i < n; i++) {
q1.quantizer->compute_residual(
x + i * d, residuals.data() + i * d, list_nos[i]);
}
pq.compute_codes(residuals.data(), bytes, n);
for (idx_t i = n - 1; i >= 0; i--) {
uint8_t* code = bytes + i * code_size... | C++ |
Json(NiceAi instance) => <String, dynamic>{
'id': instance.id,
'idx': instance.idx,
'actNumInt': instance.actNumInt,
'actNum': _$NiceAiActNumEnumMap[instance.actNum]!,
'priority': instance.priority,
'probability': instance.probability,
'cond': _$NiceAiCondEnumMap[instance.cond]!,
'condNegative': instanc... | Dart |
apon - Staff_2h_OrgrimmarRaid_D_01 - Blue",
[102460] = "Weapon - Staff_2h_OrgrimmarRaid_D_01 - Green",
[102461] = "Weapon - Staff_2h_OrgrimmarRaid_D_01 - Purple",
[102462] = "Weapon - Staff_2h_OrgrimmarRaid_D_01 - Red",
[102463] = "护火者之誓",
[102464] = "黑色灰烬",
[102465] = "Really Skunky Beer Reward TEST",
[102466] = "斯普鲁克... | Lua |
v.v. Thì JavaScript thì chỉ có duy nhất 1 kiểu số cho tất cả (trừ BigInt mới được thêm sau này).
JavaScript chỉ có một loại Number, nó có thể được viết có hoặc không có số thập phân.
```javascript
let x = 3.14; // Một number có phần thập phân
let y = 3; // Một number không có phần thập phân
```
Các số cực l... | Markdown |
add(menuButton);
}
wechatMenuObj.put("button", button);
SmallWeChatDto smallWeChatDto = new SmallWeChatDto();
smallWeChatDto.setObjType(SmallWeChatDto.OBJ_TYPE_COMMUNITY);
smallWeChatDto.setObjId(reqJson.getString("communityId"));
smallWeChatDto.setWeChatType(SmallWeChatD... | Java |
ightNotYet {
log.Debug(" removeUnfreshFruit del fruit", "fb number", fruit.FastNumber())
fruitPendingDiscardCounter.Inc(1)
delete(pool.fruitPending, fruit.FastHash())
allDiscardCounter.Inc(1)
delete(pool.allFruits, fruit.FastHash())
}
}
}
}
//RemovePendingFruitByFastHash remove unVerifyFreshn... | Go |
&StatsSettings) -> NumberColumnStatsOutput {
let unique_values_count = self.histogram.len();
let invalid_count = self.invalid_count;
let histogram = if self.histogram.len() <= settings.number_histogram_max_size {
Some(self.histogram.iter().map(|(k, v)| (*k, *v)).collect())
} else {
None
};
let min = ... | Rust |
cs are not deleted")
validatePodAndPVCMigration(ctx, podName, oldK8sNode, oldPvcInfo, false)
},
)
It(
"Should migrate the pods from blocked nodes to other nodes along with rolling "+
"restart", func() {
By("Blocking the k8s node and updating aerospike config")
aeroCluster, err... | Go |
225.193879 396.059919 135.440715 510.974136 135.440715zM474.299865 747.244792l73.350588 0L547.650453 629.576859l-73.350588 0L474.299865 747.244792z" p-id="2751" /></symbol>'});s.a.add(o);t["default"]=o},"1e5e":function(e,t,n){"use strict";n.r(t);var i=n("e017"),c=n.n(i),a=n("21a1"),s=n.n(a),o=new c.a({id:"icon-wifi_2"... | JavaScript |
BC3A;1107 1162 11B1;BC3A;1107 1162 11B1; # (밺; 밺; 밺; 밺; 밺; ) HANGUL SYLLABLE BAELM
BC3B;BC3B;1107 1162 11B2;BC3B;1107 1162 11B2; # (밻; 밻; 밻; 밻; 밻; ) HANGUL SYLLABLE BAELB
BC3C;BC3C;1107 1162 11B3;BC3C;1107 1162 11B3; # (밼; 밼; 밼; 밼; 밼; ) HANGUL SYLLABLE BAELS
BC3D;BC3D;1107 1162 11B4;BC3D;1107 1162 11B4; # (밽; 밽; 밽; 밽; ... | Kotlin |
t.Error("Already in cache")
}
if err := dm.CacheDataFromDB(utils.ResourcesPrefix, []string{utils.ConcatenatedKey(rs.Tenant, rs.ID)}, false); err != nil {
t.Error(err)
}
if err := dm.CacheDataFromDB(utils.ResourceFilterIndexes, []string{"*resources:*string:~*req.RequestType:*rated"}, false); err != nil {
t.Err... | Go |
mmentTokenType(): IElementType? {
return DlangTypes.LINE_COMMENT
}
}
package io.github.intellij.dlanguage.inspections
import com.intellij.codeInspection.LocalInspectionTool
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.PsiElementVisitor
import com.intellij.psi.util.PsiTreeUtil.f... | Kotlin |
// Copyright (c) Microsoft. All rights reserved.
namespace TestResultCoordinator.DirectMethod
{
using System;
using Microsoft.Azure.Devices.Edge.ModuleUtil;
using Microsoft.Azure.Devices.Edge.ModuleUtil.TestResults;
using Newtonsoft.Json;
using TestResultCoordinator.Reports;
/// <summary>
/... | C# |
#!/usr/bin/python3
###############################################################################
#
# 2024 Advent of Code, Day 01, Part 1
# Copyright © 2024,2025 Jonathan Hull
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as publ... | Python |
?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let c=e.facet(ake);return new oke({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(a=null==t?void 0:t.literal)&&void 0!==a?a:c... | JavaScript |
rited__ {
color: #a6e22e;
}
[theme=base16-hardcore] .hljs-built_in, [theme=base16-hardcore] .hljs-doctag, [theme=base16-hardcore] .hljs-keyword.hljs-atrule, [theme=base16-hardcore] .hljs-quote, [theme=base16-hardcore] .hljs-regexp {
color: #708387;
}
[theme=base16-hardcore] .hljs-attribute, [theme=base16-hardcore] ... | CSS |
using System;
using Avalonia.VisualTree;
namespace Avalonia.Input;
internal static class XYFocusHelpers
{
internal static bool IsAllowedXYNavigationMode(this InputElement visual, KeyDeviceType? keyDeviceType)
{
return IsAllowedXYNavigationMode(XYFocus.GetNavigationModes(visual), keyDeviceType);
}... | C# |
isTrue);
});
test('drop', () async {
expect(
await asyncAcceptDartOpaqueTwinSync(opaque: createLargeList(mb: 200)),
'async test');
});
test('nested', () async {
var str = await createNestedDartOpaqueTwinSync(opaque1: f, opaque2: f);
await futurizeVoidTwinSync(getNestedDartOpaqueTw... | Dart |
RemoteCreateInstance.Add("DCOMRemoteCreateInstance_IActPropertiesCUSTOMOBJREFIActPropertiesPropertiesSecurityInfoServerInfoServerInfoReserved", new byte[] { 0x00, 0x00, 0x00, 0x00 });
packet_DCOMRemoteCreateInstance.Add("DCOMRemoteCreateInstance_IActPropertiesCUSTOMOBJREFIActPropertiesPropertiesSecurityInfo... | C# |
cursor: pointer;
display: flex;
align-items: center;
font-size: var(--jp-ui-font-size0);
font-weight: 600;
text-transform: uppercase;
user-select: none;
}
.jp-Collapser-icon {
height: 16px;
}
.jp-Collapse-header-collapsed .jp-Collapser-icon {
transform: rotate(-90deg);
margin: auto 0;
}
.jp-Collaps... | CSS |
using System.Text.RegularExpressions;
namespace LiveCaptionsTranslator.utils
{
public static partial class RegexPatterns
{
// Remove the `.` between two uppercase letters. (Cope with acronym)
[GeneratedRegex(@"([A-Z])\s*\.\s*([A-Z])(?![A-Za-z]+)")]
public static partial Regex Acronym();... | C# |
\"" + prism.getExportProductVectorFilename() + "\"...");
PrismFileLog out = new PrismFileLog(prism.getExportProductVectorFilename());
probsProduct.print(out, false, false, false, false);
out.close();
}
// Convert probability vector to original model
// First, filter over DRA start states
startMa... | Java |
l(./chocolate/qtip/tip-sprite.gif);
}
.x-tip .x-tip-br {
background-image:url(./chocolate/qtip/tip-sprite.gif);
}
.x-tip .x-tip-ml {
background-image:url(./chocolate/qtip/tip-sprite.gif);
}
.x-tip .x-tip-mr {
background-image:url(./chocolate/qtip/tip-sprite.gif);
}
.x-tip .x-tip-header-text {
color:#000000;
}
.x... | CSS |
Changed();
} else {
rawHashesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
* <pre>
* The raw SHA256-formatted entries.
* Repeated to allow returning sets of hashes with different prefix sizes.
* </pre>
*
* <code>repeated .google.cloud.web... | Java |
: 11.111.111/1111-11
IE: 123456789
------------------------------
17/10/2020 13:00:00V CCF:021784 COO: 035804
CUPOM FISCAL
ITEM CODIGO DESCRICAO QTD UN VL UNIT(R$) ST VL ITEM(R$)
1 100 Banana 10 cx 7.45 ST 74.50
2 101 Laranja 5 cx 3.32 ST 16.60
------------------------------
TOTAL R$ 91.10
Credito 91.10
Troco R$ 0.00
L... | Typescript |
x = bone.x
y = bone.y
rotation = bone.rotation
scaleX = bone.scaleX
scaleY = bone.scaleY
}
/**
* Computes the world SRT using the parent bone and the local SRT.
*/
fun updateWorldTransform(flipX: Boolean, flipY: Boolean) {
val parent = this.parent
... | Kotlin |
To(goodUri)
// CLIA
val goodClia = "10D0999999"
val cliaInString = StringType().also { it.value = "urn:clia:$goodClia" }
id = CustomFHIRFunctions.getId(mutableListOf(cliaInString))
assertThat(id.size).isEqualTo(1)
assertThat(id[0].primitiveValue()).isEqualTo(goodClia)
... | Kotlin |
(Colors.DIMGREY, info = StrokeInfo(thickness = 1f)) {
moveTo(p0)
lineTo(p1)
lineTo(p2)
lineTo(p3)
}
stroke(Colors.WHITE, info = StrokeInfo(thickness = 2f)) {
cubic(p0, p1, p2, p3)
}
val ratio ... | Kotlin |
, "emailfilter_profile", sv)
if err != nil {
return &obj, err
} else if t != nil {
obj["emailfilter-profile"] = t
}
} else if d.HasChange("emailfilter_profile") {
obj["emailfilter-profile"] = nil
}
if v, ok := d.GetOk("dlp_profile_status"); ok {
t, err := expandFirewallInterfacePolicyDlpProfileStatu... | Go |
--[[
Copyright (c) 2021, TU Delft
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 required by applicable law or agreed to in writing, softwar... | Lua |
CTURE_TYPE, p_next: std::ptr::null(), buffer: std::ptr::null_mut() }
}
}
impl std::fmt::Debug for ImportAndroidHardwareBufferInfoANDROID {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
f.debug_struct("ImportAndroidHardwareBufferInfoANDROID").field("s_type", &self.s_type).field("p_next... | Rust |
image = reader.read()
if not image.isNull():
pixmap = QPixmap.fromImage(image)
if not pixmap.isNull(): self.image_viewer.set_pixmap(pixmap)
else: self.image_viewer.set_pixmap(None); self.image_viewer.setText(f"图片转换失败:\n{os.path.basename(image_rel_path)}")... | Python |
cro_input, Ident, ItemFn};
#[proc_macro_attribute]
pub fn kernel_test(_attr: TokenStream, input: TokenStream) -> TokenStream {
let f = parse_macro_input!(input as ItemFn);
let test_name = &format!("{}", f.sig.ident);
let test_ident = Ident::new(
&format!("{}_TEST_CONTAINER", f.sig.ident.to_string(... | Rust |
ValueExpr =
currValExpr.isBlank().conditional(o.NULL_EXPR, styleWithUnit);
} else {
styleValueExpr = bindingSource.isString
? currValExpr
: currValExpr.callMethod(
'toString', [],
// Use null check to bind null instead of string "null".
c... | Dart |
static String signedML(dynamic mlConfig) =>
((mlConfig is! StaticOrRuntimeParameter) | (mlConfig == null))
? 'UM'
: (mlConfig as StaticOrRuntimeParameter).runtimeConfig != null
? 'SSM'
: mlConfig.staticConfig
? 'SM'
: 'UM';
}
///... | Dart |
import ee
import geemap
# Create a map centered at (lat, lon).
Map = geemap.Map(center=[40, -100], zoom=4)
# Make an area of interest geometry centered on San Francisco.
point = ee.Geometry.Point(-122.1899, 37.5010)
aoi = point.buffer(10000)
# Import a Landsat 8 image, subset the thermal band, and clip to the
# are... | Python |
d7: mMETA7
!!# ;
!!#
!!# d8: mMETA8
!!# ;
!!#
!!# d9: mMETA9
!!# ;
!!#
!!# d10: mMETA10
!!# ;
!!#
!!# d11: mMETA11
!!# ;
!!#
!!# d12: mMETA12
!!# ;
!!#
!!# d13: mMETA13
!!# ;
!!#
!!# d14: mMETA14
!!# ;
!!#
!!# d15: mMETA15
!!# ;
!!#
!!#
!!#
!!# %%
!!# %%section cbfunc
!!#
!!# %%
!!# %%section stat
!!#
!!# ... | Assembly |
#region License Information
/* HeuristicLab
* Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
*
* This file is part of HeuristicLab.
*
* HeuristicLab is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free So... | C# |
using System;
using Macad.Occt;
using NUnit.Framework;
namespace Macad.Test.Core.Wrapper.ValueTypes3D;
[TestFixture]
public class Ax2Tests
{
[Test]
public void Origins()
{
Assert.AreEqual(new Ax2(Pnt.Origin, Dir.DZ, Dir.DX), Ax2.XOY);
Assert.AreEqual(new Ax2(Pnt.Origin, Dir.DX, Dir.DY), A... | C# |
ear), gmDestroy) ~= 0 then
onPickupCrate(gear)
end
if GetGearType(gear) == gtHedgehog then
if mode ~= 'points' then
hogInfo[gear]['weapons'] = {}
hogInfo[gear]['helpers'] = {}
end
-- If dying gear is a hog and mode is highland, check for kills
if mode == 'highland' then
onHig... | Lua |
ogramming languages, see <a href="https://docs.aws.amazon.com/qldb/latest/developerguide/getting-started-driver.html">Getting started
//! with the driver</a> in the <i>Amazon QLDB Developer
//! Guide</i>.</p>
//! </li>
//! <li>
//! <p>If you are working with the AWS Command Line Interface (AWS CLI), use the
//! QLDB sh... | Rust |
sub data containers on the batch dimension.
:param data_container: data container to zip
:type data_container: DataContainer
:return: base step, data container
:rtype: DataContainer
"""
sub_data_containers_to_zip = []
if self.data_sources is None:
se... | Python |
",
["完"] = "wan",
["宍"] = "rou",
["宎"] = "yao",
["宏"] = "hong",
["宐"] = "yi",
["宑"] = "jing",
["宒"] = "zhun",
["宓"] = "mi",
["宔"] = "zhu",
["宕"] = "dang",
["宖"] = "hong",
["宗"] = "zong",
["官"] = "guan",
["宙"] = "zhou",
["定"] = "ding",
["宛"] = "wan",
["... | Lua |
{
var target = await weaponFiredEvent.ReceiveAsync();
if (target.DidFire)
SpawnEvent("MuzzleFlash", Entity, Matrix.Identity);
if (target.DidHit)
SpawnEvent("BulletImpact", null, Matrix.RotationQuaternion(Quaternion.BetweenDir... | C# |
aling: 0,
magicalDamage: 0
},
order: 1,
tier: "level20",
linkedAbilityIds: [
"DehakaIsolation"
],
prerequisiteTalentIds: [
"DehakaHeroicAbilityIsolation"
]
},
{
id: "DehakaAdaptationChangeIsSurvivalTalent",
... | Typescript |
namespace Microsoft.Protocols.TestSuites.MS_CPSWS
{
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
/// <summary>
/// Test cases of Scenario 03.
/// </summary>
[TestClass]
public class S03_RetrieveProviderSchema : TestSuiteBase
{
#region Test suite initial... | C# |
fprintf(stderr, "renameNode failed in line %i\n", __LINE__);
OK = false;
}
// test userdatahandler
USERDATAHANDLERTEST(userhandler, DOMUserDataHandler::NODE_RENAMED, tempStr5, document, renameTestElement, renameTest, __LINE__);
// test isSame and isEqual
// a new node is created here, so... | C++ |
Store';
import AppError from '../../errors/AppError';
interface Request {
id: string;
}
class ReadStoreService {
public async execute({ id }: Request): Promise<Store> {
const storeRepository = getRepository(Store);
const checkStoreExists = await storeRepository.findOne({
where: { id },
});
... | Typescript |
e(&dir);
if (defines_out)
*defines_out = ctx.identifiers;
return result_data;
}
#ifdef STANDALONE
int main(int argc, char** argv)
{
int verbose = 0;
assert(argc > 0);
// printf( "argc=%d\n", argc );
const char* includepaths[16];
int includepathindex = 0;
// includepaths[includepathindex++] = "/usr/include/";... | C |
do,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
'embed,object,param,source,canvas,script,noscript,del,ins,' +
'caption,col,colgroup,table,thead,tbody,td,th,tr,' +
'button,datalist,fieldset,form,input,label,legend,meter,o... | JavaScript |
.suggestSync('colour').slice(0, 5),
['color', 'co lour', 'co-lour', 'col our', 'col-our']
)
});
it(`should suggest alternatives`, () => {
deepEqual(
nodehun.suggestSync('propper').slice(0, 5),
['proper', 'popper', 'prosper', 'cropper', 'propped']
)
... | Typescript |
, quota, and reports. Required unless you provide an OAuth 2.0 token.
/// * *uploadType* (query-string) - Legacy upload protocol for media (e.g. "media", "multipart").
/// * *alt* (query-string) - Data format for response.
/// * *$.xgafv* (query-string) - V1 error format.
pub fn param<T>(mut self, name:... | Rust |
,"z":[604,22],
"logowidth":104,
"logoheight":33
},
"metalpetscii":{"0":[1405,34],"1":[1045,34],"2":[1085,34],"3":[1125,34],"4":[1165,34],"5":[1205,34],"6":[1245,34],"7":[1285,34],"8":[1365,34],"9":[1405,34],
"product":"",
"year":"2020",
"productlink":"https://csdb.dk/release/?id=191019",
"format":"P... | JavaScript |
# Scrapy settings for bookscraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middle... | Python |
Splits into
* multiple transactions if needed.
*
* Caveat: for efficiency and security, all elements must be the same concrete
* type. In order to avoid writing the class name of each object, we must ensure
* that each object is the same type, or else unparceling then reparceling the
* data may yield a different... | Java |
ive: #f5640a;
--signal-warning-contrast: black;
--signal-success: #1b8561;
--signal-success-hover: #147857;
--signal-success-active: #0f6b4c;
--signal-success-contrast: white;
--signal-info: #1578cf;
--signal-info-hover: #0e6dc2;
--signal-info-active: #0764b5;
--signal-info-contrast: white;
--text-norm: #2... | CSS |
;
/**
* Function that is executed after the drag is released. Will return the
* new item order.
*/
onDragRelease?(itemOrder: ItemOrder): void;
/**
* Function that is executed item is deleted. Will return the properties
* of the deleted item.
*/
onDeleteItem?(deletedItem: ... | Typescript |
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (C) 2020 ARM Ltd.
*/
#include <linux/linkage.h>
#include <asm/alternative.h>
#include <asm/assembler.h>
#include <asm/mte.h>
#include <asm/page.h>
#include <asm/sysreg.h>
.arch armv8.5-a+memtag
/*
* multitag_transfer_size - set \reg to the block size tha... | Assembly |
Y_class, Y_score, Y_key, _ = batch
else:
X, angles, Y_class, Y_score, Y_key = batch
X = X.to(device)
angles = angles.to(device)
Y_class = Y_class.to(device)
Y_score = Y_score.to(device)
Y_key = Y_key.to(device)
optimizer.zero_grad()
outputs_c... | Python |
_left)
}
#[cfg(test)]
pub fn tokens(&self) -> &[ErasedToken] {
&self.tokens
}
}
#[cfg(test)]
mod tests {
use super::{GasMeter, Token};
use crate::tests::Test;
/// A simple utility macro that helps to match against a
/// list of tokens.
macro_rules! match_tokens {
($tokens_iter:ident,) => {
};
($toke... | Rust |
FileSystemObject,
toAccessor: AbstractAccessor,
toObj: FileSystemObject
) {
const fromUrl = await fromAccessor.getURL(fromObj.fullPath);
const toUrl = await toAccessor.getURL(toObj.fullPath);
if (fromUrl && toUrl) {
if (fromUrl.startsWith("file:")) {
if (toUrl.startsWith("file:")) {... | Typescript |
orem to calculate the distance from the origin
*/
const isTouchOutOfBounds = (
clientX: number,
clientY: number,
origin: Vector2,
perimeterSize: number,
): boolean => {
const xDelta = (clientX - origin.x);
const yDelta = (clientY - origin.y);
const xSquared = Math.pow(xDelta, 2);
const ySquared = Math.... | Typescript |
s = new_bounds.unwrap_or_else(|| RectF::default());
}
/// Returns the resulting stroked outline. This should be called after `offset()`.
#[inline]
pub fn into_outline(self) -> Outline {
self.output
}
fn push_stroked_contour(&mut self,
new_contours: &mut Vec<... | Rust |
else if (minion.Entry.Type == CreatureType.Totem)
{
if (m_totems != null)
{
var index = minion.GetTotemIndex();
if (m_totems[index] == minion)
{
m_totems[index] = null;
}
}
}
else if (m_minions != null)
{
m_minions.Remove(minion);
}
}
/// <summary>
/// Cal... | C# |
SabotageHandler.Instance.SabotageDoors(SystemTypes.Storage);
if (ShipStatus.Instance.Type == ShipStatus.MapType.Pb)
{
if (GUILayout.Button("Sabotage Typical Polus Combo"))
{
SabotageHandler.Instance.SabotageDoors(SystemTypes.Electrical);
Sab... | C# |
email or try again later"), uint64(ErrorCodes_EmailAlreadySent))
ErrEmailFailedToSend = errGroup.Register(errors.New("failed to send email"), uint64(ErrorCodes_EmailFailedToSend))
ErrEmailExpired = errGroup.Register(errors.New("email verification request expired. try getting new code"), uint64(E... | Go |
"""
======================================================
Project: Handling Multiple Browser Windows in Selenium
Author: Anup Sharma
Description:
This project demonstrates how to handle multiple
browser windows or tabs using Selenium WebDriver.
Key Concepts Covered:
- Launching a browser with Selenium... | Python |
*Иоан|Ио(?:ха|ан))на|\s*(?:послание\s*Иоан|Ио(?:ха|ан))на)|[ея](?:\.\s*(?:послание\s*Иоан|Ио(?:ха|ан))на|\s*(?:послание\s*Иоан|Ио(?:ха|ан))на)|\.\s*(?:послание\s*Иоан|Ио(?:ха|ан))на|\s*послание\s*Иоанна|\s*Иохана|\s*Иоанна|John|\s*Ин))(?:(?=[\d\s.:,;\x1e\x1f&\(\)()\[\]\/"'\*=~\-–—])|$)/giu
},
{
osis... | JavaScript |
);
/**
* Curl_http_output_auth() setups the authentication headers for the
* host/proxy and the correct authentication
* method. conn->data->state.authdone is set to TRUE when authentication is
* done.
*
* @param conn all information about the current connection
* @param request pointer to the request keyword
... | C |
rdcf2 = creator.createRDCF("Region 2", "District 2", "Community 2", "Facility 2", "Point of entry 2");
user2 = creator.createUser(
rdcf2.region.getUuid(),
rdcf2.district.getUuid(),
rdcf2.facility.getUuid(),
"Surv",
"Off2",
creator.getUserRoleReference(DefaultUserRole.SURVEILLANCE_OFFICER),
newUse... | Java |
Ok(mut buf) => { buffer.append(&mut buf); }
Err(e) => { return Err(e) },
};
Ok(buffer)
}
}
impl PackingStruct for Denied { }
#[derive(Debug, Clone, PartialEq)]
pub struct Err {
pub error: String,
}
#[allow(unused_variables)]
#[... | Rust |
var kubebenchjobsKind = schema.GroupVersionKind{Group: "kubeflow.org", Version: "v1alpha2", Kind: "KubebenchJob"}
// Get takes name of the kubebenchJob, and returns the corresponding kubebenchJob object, and an error if there is any.
func (c *FakeKubebenchJobs) Get(name string, options v1.GetOptions) (result *v1alph... | Go |
mixin bodyBackground() {
// @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) );
// }
// Theme template ------------------------------
@import "../template/theme";
// ---------------------------------------------
/**
* A simple theme for reveal.js presentations, similar
* to the default theme... | CSS |
x = ".L";
PrivateLabelPrefix = ".L";
}
//===- lib/MC/MCStreamer.cpp - Streaming Machine Code Output --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------... | C++ |
Enum_DERIVATIVE_VALUATION_METHOD_UNSPECIFIED DerivativeValuationMethodEnum = 0
DerivativeValuationMethodEnum_DERIVATIVE_VALUATION_METHOD_FUTURES_STYLE_MARK_TO_MARKET DerivativeValuationMethodEnum = 1
DerivativeValuationMethodEnum_DERIVATIVE_VALUATION_METHOD_FUTURES... | Go |
.buffer(
0,
0,
vk::DESCRIPTOR_TYPE_UNIFORM_BUFFER,
vk::DescriptorBufferInfo::build().buffer(ub_viewport).into(),
)
.update();
Self {
sprites,
shared_pool,
ds_viewport,
}
}
}
<filename>src/main.rs
extern crate clap;
#[macro_use]
extern crate ... | Rust |
|
| 物联网 | 如何使用物联网技术来监测工厂生产过程中的温度、湿度和压力等参数,并实现远程监控和管理? |
|天气预报|今天的气温和湿度是多少?|
|新闻分类|这篇文章是关于哪个领域的新闻?|
|随机生成|请随机生成一个由三个中文字组成的词语。|
|搜索引擎|为我搜索一下全球最大的公司排名榜单。|
|病例分析|请根据以下患者病症,给出可能的诊断:头晕、恶心、反胃、腰部疼痛。|
|歌曲推荐|给我推荐一首轻松欢快的歌曲。|
|电影推荐|给我推荐一部最... | Markdown |
in-width: 1200px) {
.home-slider-img > div:nth-child(2) {
display: block; } }
.home-slider-img > div:last-child {
transform: translateX(-180%);
display: none; }
@media (min-width: 992px) {
.home-slider-img > div:last-child {
display: block;
transform: ... | CSS |
ble
private fun ChannelItemDraftMessagePreview() {
ChatTheme {
ChannelItemDraftMessage()
}
}
@Composable
internal fun ChannelItemDraftMessage() {
ChannelItem(
currentUser = PreviewUserData.user1,
channel = PreviewChannelData.channelWithMessages,
draftMessage = DraftMessage(t... | Kotlin |
/* Test of fmal().
Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later... | C |
sortable-column {
padding-left: 30px;
}
.table.sortable-markers-on-left .sortable-column:before,
.table.sortable-markers-on-left .sortable-column:after {
left: 0;
margin-left: 10px;
}
.table tr.selected td {
background-color: rgba(28, 183, 236, 0.1);
}
.table td.selected {
background-color: rgba(28, 183, 236,... | CSS |
te) {
(*il->cb.on_ice_complete)(&tp_ice->base, op, result);
}
}
}
static void ice_on_new_candidate(pj_ice_strans *ice_st,
const pj_ice_sess_cand *cand,
pj_bool_t last)
{
struct transport_ice *tp_ice;
ice_listener *il;
... | C |
s.chain(*filtered_sample_barcodes.values()))
for tag in barcodes_per_tag:
cells_per_tag[tag] = [bc for bc in barcodes_per_tag[tag] if bc in cell_barcodes]
outs.cells_per_tag = martian.make_path("cells_per_tag.json")
cells_per_tag.save_to_file(outs.cells_per_tag)
... | Python |
j8", "b6ytm", "bk4f7", "bfqxk", "bg2wr", "b6qmx", "b7s15", "bs32y", "bkk46", "b9bp0", "beqc7", "b3vkj", "bg8zz", "bdthm", "beux0", "c4158", "bk486", "bs1tu", "bewq2", "bg256", "b7yc9", "beudp", "bdyhe", "bg8s5", "bd01v", "bgg62", "b74bs", "bu56u", "bd1n3", "bfcu2", "beefe", "bd2ec", "b7jq3", "behh2", "bknrc", "bevjm", ... | C# |
ImltZyIsIkltYWdlTGlzdEl0ZW1Sb290IiwibmFtZSIsInNsb3QiLCJvdmVycmlkZXNSZXNvbHZlciIsInByb3BzIiwic3R5bGVzIiwiZGlzcGxheSIsInBvc2l0aW9uIiwiZmxleERpcmVjdGlvbiIsImhlaWdodCIsImFsaWduU2VsZiIsIm9iamVjdEZpdCIsIndpZHRoIiwiZmxleEdyb3ciLCJJbWFnZUxpc3RJdGVtIiwiZm9yd2FyZFJlZiIsImluUHJvcHMiLCJyZWYiLCJjaGlsZHJlbiIsImNsYXNzTmFtZSIsImNvbHMi... | JavaScript |
py, Clone)]
pub struct Hertz<T>(T);
/// Used to implement conversions to the Hertz struct
pub trait ToHertz<T> {
/// From hertz
fn hz(self) -> Hertz<T>;
/// From kilohertz
fn khz(self) -> Hertz<T>;
/// From megahertz
fn mhz(self) -> Hertz<T>;
/// From delta time (in seconds)
fn dt(se... | Rust |
&[1.], // alpha
vec![&w[0], &w[0]], // a
get_region_heads(batch, &x),
&[0.], // beta
get_region_heads(batch, &z),
1,
batch,
);
assert_eq!(
z,
vec![6., 9., 8., 13., 10., 17., 18., 21., 28., 33., 38., 45.]
);
}
#[test]
#[cf... | Rust |
ckListener() {
@Override
public void onClick(View v) {
centerTopTvClickListener.onClickListener();
}
});
}
if (centerTvClickListener != null) {
baseTextView.getCenterTextView().se... | Java |
eWithRenderingMode(UIImageRenderingMode.AlwaysTemplate);
_imageView.Frame = new CoreGraphics.CGRect(0, 0, 8f, 8f);
Add(_imageView);
TintColor = UINavigationBar.Appearance.TintColor;
AutoresizingMask = UIViewAutoresizing.All;
}
public override void Layout... | C# |
oc/jdk.javadoc.internal.tool
* @build JavadocTester
* @build TestClassLinks
* @run main TestClassLinks
*/
public class TestClassLinks extends JavadocTester {
public static void main(String... args) throws Exception {
TestClassLinks tester = new TestClassLinks();
tester.runTests();
}
@... | Java |
1.1");
expect(p.parse("2CHR 1:1").osis()).toEqual("2Chr.1.1");
});
});
describe("Localized book 1Chr (de)", () => {
let p = {}
beforeEach(() => {
p = new bcv_parser(lang);
p.set_options({ book_alone_strategy: "ignore", book_sequence_strategy: "ignore", osis_compaction_strategy: "bc", captive_end_digits_strateg... | JavaScript |
://github.com/Mimshimzim">محمد شیرخدایی</a> |
| Conclusion | تکمیل | <a href="https://github.com/khalil-farashiani">خلیل فراشیانی</a> |
---
<h3 dir="rtl">
وضعیت ها:
</h3>
<ul dir="rtl">
<li>رزرو نشده: میتونید یکی از این فصل ها رو انتخاب و ترجمه کنید</li>
<li>رزرو شده: به این معنی میب... | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.