content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
ToDo td = new ToDo();
td.setTitle("do a test");
td = api.newToDo(td);
assertNotNull(td.getId());
Collection<ToDo> todos = api.getToDos();
assertTrue(todos.contains(td1));
assertTrue(todos.contains(td2));
assertTrue(todos.contains(td));
assertEquals(3, todos.size());
}
@Test
public void testNewToD... | Java |
Color);
expect(materialAccentColor, isA<MaterialAccentColor>());
});
});
group('ToMaterialAccentColor ColorSwatch Tests', () {
test('ColorSwatch to MaterialAccentColor Conversion', () {
ColorSwatch colorSwatch = Colors.orange;
MaterialAccentColor materialAccentColor =
ToMaterial... | Dart |
if (m_IsGrd)
{ // GRD case
double const groundRange = SlantRangeToGroundRange(C/2.*rangeTime, azimuthTime);
// Eq 32 p. 31
outLineSample[0] = groundRange/m_SarParam.rangeResolution;
}
else
{ // SLC case
// Eq 23 and 24 p. 28
outLineSample[0] = (rangeTime - m_SarParam.nearRangeTime)
... | C++ |
-family: Helvetica; font-size: 16px;"> Yet health sector’s old "women-only" rep masks current diversity!</p><div style="margin-top: 10px; padding-left: 10px;"><div style="margin-left: 30px; padding: 8px; background: #333; border-left: 5px solid rgba(255, 255, 255, 0.05); color: #fff"><p style="margin-top: 0; ... | HTML |
Some(("foo", false)));
/// assert_eq!(iter.next().map_or(false, |node| node.is_removed()), true);
/// assert_eq!(iter.next().map(|node| (*node.get(), node.is_removed())), None);
/// ```
///
/// [`is_removed()`]: struct.Node.html#method.is_removed
pub fn iter(&self) -> impl Iterator<Item = &Node... | Rust |
import datetime
import os
mip = "obs"
dat = "IMERG"
var = "pr"
frq = "day"
ver = "v20230407"
# prd = [2001, 2019] # analysis period
prd = [2001, 2020] # analysis period
fac = 86400 # factor to make unit of [mm/day]
# res = [0.25, 0.25] # target horizontal resolution [degree] for interporation (lon, lat)
# res = [... | Python |
var r = null, t = this, x = this.XHttp, s = x.status;
if (t.isRequestReady() && (s === 200) &&
!Is.NullOrEmpty(x.responseText)) {
r = x.responseText;
try {
r = JSON.parse(r);
if (r.d) {
r = r.d;
}
... | Typescript |
psc::channel::<i32>(1);
let tx2 = tx.clone();
core.spawn(rx.collect().map(|xs| assert_eq!(xs, [1, 2])));
core.spawn(lazy(move || tx.send(1).map(|_| ()).map_err(|e| panic!("{}", e))));
core.run(lazy(move || tx2.send(2))).unwrap();
}
#[test]
fn mpsc_send_unpark() {
let core = Core::new();
let (tx... | Rust |
ConfigureCall(iDivUp(threadCount, 256), 256) ? ((void)0) : mergeRanksAndIndicesKernel(d_LimitsB, d_RanksB, stride, N, threadCount);
# 290 "/home/andrew/repositories/gpuocelot/tests/cuda3.2/tests/mergeSort/mergeSort.cu"
__cutilCheckMsg("mergeRanksAndIndicesKernel(B)<<<>>> failed\n", "/home/andrew/repositories/gpuocelot/... | C++ |
ter map.
]]
},
{
name = "on_map_entered",
type = types.callback({"map", types.class(InstancedMap), "level", types.uint, "outer_map", types.class(InstancedMap), "outer_x", types.uint, "outer_y", types.uint}, types.number),
template = true,
doc = [[
Generates the encounter.... | Lua |
contents are basically static.
t.Helper()
dir := t.TempDir()
descs := make([]claircore.LayerDescription, ct)
fetch := make(map[string]*uint64, ct)
for i := range ct {
n := strconv.Itoa(i)
f, err := os.Create(filepath.Join(dir, strconv.Itoa(i)))
if err != nil {
t.Fatal(err)
}
h := sha256.New()
w := ... | Go |
for d in dashboards if d["id"] == dashboard_id), None
)
if not selected_dashboard:
await query.answer("未找到该面板", show_alert=True)
return
if selected_dashboard["is_default"]:
await query.answer("这已经是默认面板了", show_alert=True)
return
# 直接切换默... | Python |
iodic node scan: %v\n", err)
return
}
log.Printf("started periodic node scan %v\n", protoNodeScanMessage.GetID())
}()
}); err != nil {
return err
}
s.cron.Run()
return nil
}
func (s *NodeAndPortScanPortService) StartNodeScan(ctx context.Context, nodeScanStartMessage *api.NodeScanStartMessage) (*a... | Go |
});
}
}
import { Field, ID, ObjectType } from '@nestjs/graphql';
/**
* Tipo Studente
*/
@ObjectType('Student')
export class StudentType {
/**
* Id Student
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
@Field((_type) => ID)
id: string;
/**
* Nome
*/
@Field()
firstNa... | Typescript |
meTooltip:AddLine(description, 1, 1, 1, 1)
_G.GameTooltip:AddLine(' ')
_G.GameTooltip:AddDoubleLine(idString, C.INFO_COLOR .. id)
_G.GameTooltip:Show()
end
function TOOLTIP:HyperLink_SetTypes(link)
_G.GameTooltip.__isHoverTip = true
_G.GameTooltip:SetOwner(self, 'ANCHOR_TOPRIGHT', -3, 5)
_G.Gam... | Lua |
class Solution:
def matrixScore(self, grid: List[List[int]]) -> int:
n, m = len(grid), len(grid[0])
res = (1 << (m - 1)) * n
for j in range(1, m):
val = 1 << (m - 1 - j)
set_count = 0
for i in range(n):
if grid[i][j] == grid[i][0]:
... | Python |
ToPKH") {
script = Script("76a91433e81a941e64cda12c6a299ed322ddbdd03f8d0e88ac".hexToByteArray())
assertEquals("DUP HASH160 PUSHDATA(20)[33e81a941e64cda12c6a299ed322ddbdd03f8d0e] EQUALVERIFY CHECKSIG", script.toString())
}
it("payToPK") {
script = Script("210378e9dc... | Kotlin |
deck */
C_25, C_25, C_25, C_25, C_25, C_25, C_25, C_25, C_25, C_25,
C_50, C_50, C_50, C_50, C_50, C_50, C_50, C_50, C_50, C_50,
C_75, C_75, C_75, C_75, C_75, C_75, C_75, C_75, C_75, C_75,
C_100, C_100, C_100, C_100, C_100, C_100, C_100, C_100, C_100,
C_100, C_100, C_100,
C_200, C_200, C_200, C_200,
C_... | C |
const items = await fse.readdir( dirPath );
console.log('items', items.length);
const pairTimes = [];
items.forEach( item => {
const pairTime = item.split('.')[0].split('-');
pairTimes.push({
pair: pairTime[0].replace('_', ''),
timefr: pairTime[1]
});
});
retur... | Typescript |
of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<mat-form-field appearance="outline" color="accent" *ngIf="startTimeEnabled">
<mat-label>_#(Time Zone)</mat-label>
<mat-select [(value)]="timeZoneId" placeholder="_#(Time Zone)" (selectionChang... | HTML |
draw_shades = false,
extra_newline = false,
font = 'Unutterable-Italic:size=20',
gap_x = 20,
gap_y = 35,
minimum_height = 260,
minimum_width = 5,
maximum_width = 700,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,... | Lua |
local RUSSU76 = LightTank:New(AssaultGun):New(OpenTopped):New{
name = "SU-76",
buildCostMetal = 1570,
maxDamage = 1120,
trackOffset = 3,
trackWidth = 19,
weapons = {
[1] = {
name = "ZiS376mmAP",
maxAngleDif = 12,
},
[2] = {
name = "ZiS376mmHE",
maxAngleDif = 12,
},
[3] =... | Lua |
133">Presets</th><th width="138">openh264</th><th width="173">h264_nvenc</th><th width="122">vp8</th></tr></thead><tbody><tr><td><strong>slower</strong></td><td>QP( 10-39)</td><td>p7</td><td>best</td></tr><tr><td><strong>slow</strong></td><td>QP (16-45)</td><td>p6</td><td>best</td></tr><tr><td><strong>medium</strong></... | Markdown |
34.567, FluentNumberFormat.DECIMAL_ZERO, "1235"), # Rounds up
(1234.567, FluentNumberFormat.DECIMAL_ONE, "1234.6"), # Rounds up
(1234.567, FluentNumberFormat.DECIMAL_TWO, "1234.57"), # Rounds up
(1234567.89, FluentNumberFormat.WITH_COMMAS, "1,234,567.89"),
(1234567.89, FluentNumberFormat... | Python |
// Handle special file types by calling the parent's handler
val specialReadResult = super.handleSpecialFileRead(tool, path, fileExt)
if (specialReadResult != null) {
// If the parent handled it, return its result.
// But if it failed, we might want to... | Kotlin |
item-dropdown-toggle{width:auto;margin-left:-.5rem;padding-right:1rem;padding-left:.5rem;background-position:right 1px center}.navbar-dropdown-list{box-shadow:0 0 1px 0 rgba(73,79,95,.6),0 2px 10px -5px rgba(73,79,95,.55),0 3px 30px -15px rgba(73,79,95,.8),0 0 50px -5px rgba(73,79,95,.5);width:auto;min-width:12rem;marg... | CSS |
出现了批评工作组的大字报。
</p>
<p>
6.20
</p>
<p>
(1)早上6点10分工作组召开紧急文革扩大会议,宣称明天开全院斗争大会,但斗争谁却没有定。在会上还扬言说:“有人想赶走工作组”,“一定把他查出来”。可见此会目的并不是为了斗黑帮,而是为了避免工作组引火烧身。
</p>
<p>
(2)院内工作组问题成了议论中心。几百名同学分别到国务院、科委、新市委去汇报情况。
</p>
<p>
(3)晚九点多钟,工作组表态,欢迎同学提意见。
</p>
<p>
(4)夜间,科委葛付主任来我院看大字报,指出要大家相信工作组。
</p>
<p>
6.2... | HTML |
tedY) then
nFails = nFails + 1
WriteLnToConsole("FAIL: Unexpected Y position! " .. GetY(gear) .. " returned, expected " .. expectedY .. ' (max tolerated difference = ' .. tol .. ')')
else
WriteLnToConsole("Y position OK! " .. GetY(gear) .. " returned, expected " .. expectedY .. ' (max tolerated difference = ' ..... | Lua |
from collections import defaultdict
class PreferencePairGenerator:
def __init__(self, reward_model):
self.reward_model = reward_model
def generate_preference_pairs(self, responses, P=10):
"""Generate preference pairs by scoring and ranking the responses."""
grouped = defaultdict(list)... | Python |
}
// Get distance based attenuation.
filtercolour = tmpCol * refraction;
}
void Trace::ComputeReflection(const FINISH* finish, const Vector3d& ipoint, Ray& ray, const Vector3d& normal, const Vector3d& rawnormal, MathColour& colour, COLC weight)
{
Ray nray(ray);
double n, n2;
nray.SetFlags(Ray... | C++ |
+ pb.y) / 2 };
}
/**
* Returns angle of the specified line in radians
* @param pa
* @param pb
*/
public static ANGLE(pa: IPoint, pb: IPoint): number {
// angle in radians
return Math.atan2(pb.y - pa.y, pb.x - pa.x); // in degrees:
// // angle in degrees
... | Typescript |
number, timeout = 1000, retries = 5) {
const actual = await this.pollChannelUntil(
(channel) => expected === channel.balance,
timeout,
retries
);
expect(actual.balance).toEqual(expected);
}
async toHaveDeposit(expected: number, timeout = 1000, retrie... | Typescript |
let results: number = 0;
for (let index = 1; index < request.getParams().length; index++) {
const member = request.getParam(index);
this.logger.debug(`Checking key ${key} for member ${member}`);
if (dbKey.getSet().has(member)) {
this.logger.debug(`Removing member ${member} from k... | Typescript |
verImgUrl?: string;
/** 页面链接,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值。 */
webUrl?: string;
/** 播放 */
play?(): void;
/** 暂停 */
pause?(): void;
/** 停止 */
stop?(): void;
/** 跳转到指定位置,单位 s */
seek?(position: number): void;
/** 背景音频进入可以播放状态,但不保证后面可... | Typescript |
убин","Товары для кузнецов"},
[29965] = {"Наездник на черепахе Уну'пе",nil},
[29966] = {"Наездник на черепахе Камагуа",nil},
[29967] = {"Удохо Бегущий по льду","Смотритель стойл"},
[29968] = {"Хапану Холодный Ветер","Яды и реагенты"},
[29969] = {"Онтак","Товары для кузнецов"},
[29970] = {"Данхо Высокое Облако","Потреби... | Lua |
BIT
case REVERB_DECAY:
baseDecay := DECAY_BASE + (float32(value)/NORMALISE_8BIT)*DECAY_RANGE
combDecays := []float32{COMB_DECAY_1, COMB_DECAY_2, COMB_DECAY_3, COMB_DECAY_4}
for i, decayFactor := range combDecays {
chip.combFilters[i].decay = baseDecay * decayFactor
}
default:
log.Printf("invalid register... | Go |
const dbgNsLocal = `${dbgNs}:createDeveloperName`;
SfdxFalconDebug.obj(`${dbgNsLocal}:arguments:`, arguments);
// Make sure that the caller passed us a non-empty, non-null string.
TypeValidator.throwOnEmptyNullInvalidString(nameToTransform, `${dbgNsLocal}`, `nameToTransform`);
// Rules for Developer/API Names... | Typescript |
add(MsgNode(4)); // root.latest=4
expect(root.wholeLatestMsgId, 4); // 现在整个树的最新节点是 node4
expect(root.wholeLatestNode, node4);
});
});
/// 🔍 **`findNodeByMsgId` 和 `findParentByMsgId` 测试**
/// ---
group('`findNodeByMsgId` 和 `findParentByMsgId`', () {
setUp(() {
// 结构:
// 0
... | Dart |
a\u5730\u201d\u7ec4\u7ec7\u201c\u540d\u58f0\u201d\u62c9\u767b\u6388\u610f\u4e0e\u5176\u5207\u65ad\u8054\u7cfb\u3002@\u65b0\u56fd\u9645", "source": "\u65b0\u6d6a\u5fae\u535a", "time": "2014-08-12 13:17"}, {"weight": 0.4504273483758403, "title": "ISIS\u592a\u6b8b\u5fcd \u672c\u62c9\u767b\u4e5f\u65e0\u6cd5\u63a5\u53d7", "... | JavaScript |
Tok.setKind(TKind);
Tok.setFlag(TFlags);
assert(!LexingRawMode);
Tok.setLocation(FileStartLoc.getLocWithOffset(FileOffset));
Tok.setLength(Len);
// Handle identifiers.
if (Tok.isLiteral()) {
Tok.setLiteralData((const char*) (PTHMgr.SpellingBase + IdentifierID));
}
else if (IdentifierID) {
MIO... | C++ |
.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="#f00"></pat... | HTML |
OD->MODER = (GPIOD->MODER & ~mask2(3)) | mask2(3, i(Mode::Output));
if constexpr (mask(4)) GPIOF->MODER = (GPIOF->MODER & ~mask2(4)) | mask2(4, i(Mode::Output));
if constexpr (mask(5)) GPIOG->MODER = (GPIOG->MODER & ~mask2(5)) | mask2(5, i(Mode::Output));
}
static void setOutput(bool status)
{
set(status);
... | C++ |
local M = {}
-- 获取下一个整点时间戳
function M.get_next_hour_zero()
local now = os.date("*t")
local cur_hour = {
year = now.year,
month = now.month,
day = now.day,
hour = now.hour,
min = 0,
sec = 0,
}
return os.time(cur_hour) + 3600
end
-- 获取下一天某个整点时间戳
function M... | Lua |
"Remnants Priest",
[91976] = "Barkeep Clemens",
[91977] = "Olfan Goldenbrow",
[91978] = "Cort Barton",
[91979] = "Brayton Garthside",
[91980] = "Remnants Farmer",
[91981] = "Remnants Militia",
[91982] = "Argon Halmantle",
[91983] = "Randal Portman",
[91984] = "Tirisclaw Bear",
[91985] = "Tirisclaw C... | Lua |
ue": 38,
"type": 2
},
{
"name": "厦门市",
"value": 67,
"type": 2
},
{
"name": "曲靖市",
"value": 59,
"type": 1
},
{
"name": "清远市",
"value": 16,
"type": 0
},
{
"name": "北京市",
"value": 99,
"type": 1
},
{
"name": "厦门市",
"value": 67,
"type": 1
},
{
"name": "天津市",
... | Typescript |
//////////////////////////////////////////////////////////////////////////////////
// MIT License
//
// Copyright (c) 2017 Vicon Motion Systems Ltd
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in t... | C |
OURGE", -- [46021]
"TUTORIAL57_TAUREN", -- [46022]
"TUTORIAL57_TROLL_DRUID", -- [46023]
"TUTORIAL57_TROLL_HUNTER", -- [46024]
"TUTORIAL57_TROLL_MAGE", -- [46025]
"TUTORIAL57_TROLL_PRIEST", -- [46026]
"TUTORIAL57_TROLL_ROGUE", -- [46027]
"TUTORIAL57_TROLL_SHAMAN", -- [46028]
"TUTORIAL57_TROLL_WARLOCK", -- [46029... | Lua |
30.b[0] // v30: sf0
/* src offset */
ldr w7, [x2, #0] // w7: position[2i]
ldr w8, [x2, #4] // w8: position[2i+1]
uxtw x7, w7
uxtw x8, w8
mul x7, x15, x7
mul x8, x15, x8
add x2, x2, #8
add x9, x0, x7
add x10, x0, x8
ld1 {v0.8b}, [x9]
ld1 {v8.8b}, [x10]
smull v1.8h, v0.8b, v30.8b
smlal v1.8h, v8.8b, v31.8b
st1 {v1... | Assembly |
rsor.getColumnIndex("longitude")),
houseNumber = cursor.getStringOrNull(cursor.getColumnIndex("houseNumber")),
road = cursor.getStringOrNull(cursor.getColumnIndex("road")),
city = cursor.getStringOrNull(cursor.getColumnIndex("city")),
state = cursor.getStringOrNull(cursor... | Kotlin |
# Copyright 2022 Google Inc.
#
# 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, soft... | Python |
nvention the lifetime `'t` in this crate is the lifetime of the input text.
//! Almost all structures with a lifetime are bound to this lifetime.
use thiserror::Error;
#[cfg(feature = "compile")]
pub mod compile;
mod filter;
pub mod rule;
pub mod rules;
pub mod tokenizer;
pub mod types;
pub(crate) mod utils;
pub use ... | Rust |
import pygame
import sys
import time
import numpy as np
pygame.init()
WIDTH = 800
HEIGHT = 600
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Test Gizmo")
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
Green_trans = (159, 255, 159)
LINE_X = WIDTH // 2
... | Python |
y)
foldPath.lineTo(halfVerticalPoint.x, halfVerticalPoint.y)
foldPath.lineTo(halfVerticalPoint.x, size.height)
foldPath.lineTo(verticalPoint.x, size.height)
foldPath.close()
pageOutline.reset()
pageOutline.moveTo(-size.width, 0F)
page... | Kotlin |
to partner or work with us, contact us at </h3><h2><code>ml-apply@cs.stanford.edu</code></h2></div></div></div></section><footer><div class="container"><div class="row"><div class="col-md-12 text-center"><a href="/"><img src="/img/stanfordmlgrouplogo.svg"></a></div></div></div></footer><script src="/lib/jquery/jquery.... | HTML |
6K1.verify(&public_key, &msg_hash, &signature);
java_safe_set_boolean_field!(_env, result_jobject, result, "booleanResult");
result_jobject.into_inner()
}
#[cfg(feature = "wedpr_f_signature_secp256k1")]
#[no_mangle]
/// Java interface for
/// 'com.webank.wedpr.crypto.NativeInterface->secp256k1RecoverPublicKey... | Rust |
r(|e| Error::new(ErrorKind::Other, e.to_string()))?;
match resp.status().as_u16() {
// not modified
304 => Ok(Config::NotChanged),
404 => Ok(Config::NotFound),
200 => {
let resp: Response = resp
.json()
.awai... | Rust |
/*******************************************************************************
* Copyright Amazon.com, Inc. or its affiliates. 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. A copy of the License is locate... | C# |
0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"/> </svg> <a href=#environments_additionalProperties_files_items onclick="anchorLink('environments_additionalProperties_files_items')">files items</a> <svg width=1em height=1em viewbox="0 0 16 16" class="bi bi-arrow-right-short" fill=currentColor xmlns=ht... | HTML |
false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"noEmit": false,
"target": "es2020",
"module": "es2020",
"lib": [
"es2020",
"dom"
],
"skipLibCheck... | Markdown |
port'] as SendPort;
final exitListener = RawReceivePort((_) async {
final root = IsolateNameServer.lookupPortByName(registrantId);
if (root == null) return;
await sendMessage(
root,
"unsubscribe",
data: {"token": token},
oneWay: true,
);
});
_subs[toke... | Dart |
{
this.proxyFrame=document.createElement("iframe");
this.proxyFrame.setAttribute("style","display:none");
this.proxyFrame.setAttribute("src",this.telemetryEndPoint);
document.head.appendChild(this.proxyFrame)
}
};
ULSEndpointProxy.prototype.tellProxyFrameReady=function(e)
{
var _th... | JavaScript |
/*
* Copyright (c) 1981, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyr... | C |
local minNumber = tonumber(mins)
if minNumber == nil then
displayAlertDialog(string.format("'%s' is not a valid number of minutes", mins))
else
stopNotifcations(minNumber)
end
end
end
-------------------------------------------------------------------
-- Launcher
--
-- This is the awesome. Th... | Lua |
PACE
{U'\u200c', 0}, // ZERO WIDTH NON-JOINER
{U'\u200d', 0}, // ZERO WIDTH JOINER
{U'\u2060', 0}, // WORD JOINER
{U'\u2061', 0}, // FUNCTION APPLICATION
{U'\u2062', 0}, // INVISIBLE TIMES
{U'\u2063', 0}, // INVISIBLE SEPARATOR
{U'\u2064', 0}, // INVISIBLE PLUS
{U'\u2212', ... | C++ |
! 306: LDUH_I lduh [%r8 + 0x0664], %r6
.word 0xfeaa1009 ! 307: STBA_R stba %r31, [%r8 + %r9] 0x80
.word 0x16800002 ! 308: BGE bge <label_0x2>
.word 0x986a2664 ! 309: UDIVX_I udivx %r8, 0x0664, %r12
.word 0x8143e076 ! 310: MEMBAR membar #StoreLoad | #LoadStore | #Lookaside | #MemIssue | #Sync
.word 0x87a208... | Assembly |
][j] - 1 ] );
f += pow ( x[i-1] * ( 2 + 5 * pow ( x[i-1] , 2 ) ) + 1 - s , 2 );
}
return f;
}
/*---------------------------------------*/
/* Broyden tridiagonal function */
/*---------------------------------------*/
/* S2 variables : 16 --> 45 */
/* (n=30 variables) ... | C++ |
ets[i];
for(const Pro in ProSet) Obj[Pro] = ProSet[Pro];
}
}
return Obj;
}
}
export default (new sML);import $type from './getType'
// interface
type HasToString = {
toString: () => string
}
// function
const main = (input: unknown) => {
if (typeof input === 'str... | Typescript |
_win. See https://neovim.io/doc/user/api.html#nvim_open_win()
---@class WindowOptions Window options. See https://neovim.io/doc/user/lua.html#vim.wo
---@class BufferOptions Buffer options. See https://neovim.io/doc/user/lua.html#vim.bo
---@class tserrors.UserOptions
---@field file_type? string 'Fake' file type to use ... | Lua |
azione che permette anche a chi deve evitare il glutine di gustarsi dei morbidi e golosissimi pancake, completati in questo caso dall’immancabile sciroppo d’acero, fragole fresche e cocco in scaglie.</p>
</div>
<!-- Box-articolo -->
<!-- Box-articolo FINE-->
<div class="tasty-recipes-details">
<... | HTML |
(t == oix || (t>oix && X<newx) || (t<oix && X>newx) ) X = newx;
t = p[1];
if (t == oix || (t>oix && R<newx) || (t<oix && R>newx) ) R = newx;
}
int Y = o->y();
int B = Y+o->h();
if (oiy) {
int t = p[2];
if (t == oiy || (t>oiy && Y<newy) || (t<oiy && Y>newy) ) Y = newy;
t = p... | C++ |
md-toc-h1" data-ref="n2781"><a class="md-toc-inner" href="#vlook™-是什么">VLOOK™ 是什么</a></span><span role="listitem" class="md-toc-item md-toc-h1" data-ref="n2820"><a class="md-toc-inner" href="#为谁准备">为谁准备</a></span><span role="listitem" class="md-toc-item md-toc-h1" data-ref="n2846"><a class="md-toc-inner" href="#打赏">打赏... | HTML |
" focusable="false" viewBox="0 0 24 24" aria-hidden="true"><path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"></path></svg></span></button></div></header><nav class="jss16" aria-label="Main navigation"><div class="jss35"><div class="MuiDrawer-root MuiDrawer-docked"><div cl... | HTML |
try {
this.representativeReferenceKeyAlias = new RepresentativeReferenceKeyAlias(representativeReferenceKey, aliasRepresentativeReferenceKey);
runnable.run();
} finally {
this.representativeReferenceKeyAlias = null;
}
}
/**
* Represents a mapping between two {@link RepresentativeReferenceKey} insta... | Java |
import torch
from timm.models.vision_transformer import VisionTransformer
def get_pretrained_url(key):
URL_PREFIX = "https://github.com/lunit-io/benchmark-ssl-pathology/releases/download/pretrained-weights"
model_zoo_registry = {
"DINO_p16": "dino_vit_small_patch16_ep200.torch",
"DINO_p8": "di... | Python |
*array.offset(pos.wrapping_add(amount).wrapping_add(1 as
libc::c_int
as
libc::c_... | Rust |
MjI5LTEuODkzdi0xMWMwLS43NzgtLjA2LTEuMzg2LS4yMjktMS44OTMtLjE2OC0uNTA2LS40NzUtLjkxNC0uODg4LTEuMTYyQzIwLjA1NiAyLjk1IDE5IDMgMTcuNSAzaC0xMWMtLjM3NSAwLS43MjItLjAwMy0xLjA0NSAwek0zIDdoNXYxM0g2LjVjLTEuNSAwLTIuNDQ0LS4wNS0yLjg2Ny0uMzA1LS4yMTItLjEyNy0uMzQzLS4yODEtLjQ1NS0uNjE5QzMuMDY1IDE4Ljc0IDMgMTguMjIyIDMgMTcuNXptNiAwaDEydjEwLjVj... | Dart |
"""
Contains paths to dataset, working directory, and tfrecords
"""
import os
import time
# TODO Set path
COLOR_IMAGES = "..../unsupervised_llamas/color_images"
GRAYSCALE_IMAGES = "..../unsupervised_llamas/grayscale_images"
LABELS = "..../unsupervised_llamas/labels"
# TODO set path
WORKING_DIRECTORY = ".../some_path... | Python |
from .base_selector import BasePoisonNodeSelector
class DegreeBasedSelector(BasePoisonNodeSelector):
def select_poison_nodes(self, victim_nodes, num_poison_nodes):
mapped_nodes = self._map_victim_nodes(victim_nodes)
degree_dict = dict(self.homo_g.degree())
sorted_target_nodes = sorted(map... | Python |
-shadow:0 0 0 0 var(--md-default-fg-color--lightest);transform:scale(.95)}75%{box-shadow:0 0 0 .625em #0000;transform:scale(1)}to{box-shadow:0 0 0 0 #0000;transform:scale(.95)}}:root{--md-tooltip-width:20rem}.md-tooltip{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--md-default-bg-c... | CSS |
"never", "typedesc");
debugTestRunner.assertExpression(context, PARENTHESISED_TYPE_DESC, "int", "typedesc");
}
@Override
@Test
public void nameReferenceEvaluationTest() throws BallerinaTestException {
// var variable test
debugTestRunner.assertExpression(context, NIL_VAR, "()",... | Java |
_1_1host_1_1detail_1_1TensorContainsFunc.html#a36f817e5b6e993ac3c9aaf78186a1ffb">contains</a>;</div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="structcutlass_1_1reference_1_1host_1_1detail_1_1TensorContainsFunc.html#a77a8114df44c697e262f2b6afac6255e"> 157</a></span>  <a clas... | HTML |
D, FSR1_Context::g_targetTexture);
GLES.glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, FSR1_Context::g_targetWidth, FSR1_Context::g_targetHeight,
0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr);
GLES.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
GLES.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MA... | C++ |
Vec3d c = mtao::Vec3d::Zero();
for (auto &&[f, b] : *this) {
double sign = b ? 1 : -1;
//c += sign * face_brep_cents.col(f);
c += face_brep_cents.col(f);
}
c /= size();
return c;
}
}// namespace mandoline
#define __gmp_const const
#include <CGAL/Lazy_exact_nt.h>
#include <CGAL/G... | C++ |
ntry
* @param position {@code non-null;} corresponding source position information
*/
public Entry (int address, SourcePosition position) {
if (address < 0) {
throw new IllegalArgumentException("address < 0");
}
if (position == null) {
... | Java |
ior, Pointer},
key_entry::{KeyEntry, PositionIndex},
modify::{CompareSwap, CompareSwapFn, Modification, Operation, PersistenceMode},
root::{AnyTreeRoot, Root, TreeRoot},
serialization::BinarySerialization,
state::{ActiveState, State},
unversioned::{Unversioned, UnversionedTreeRoot},
versione... | Rust |
A",
"type": "airport",
"lat": "44.7",
"size": "medium"
},
{
"iata": "PBI",
"lon": "-80.09044",
"iso": "US",
"status": 1,
"name": "Palm Beach International Airport",
"continent": "NA",
"type": "airport",
"lat": "26.688885",
... | JavaScript |
a href = "create.html">
<IMG SRC="../previous_motif.gif" ALIGN=bottom>
</a>
<a href = "store.html">
<IMG SRC="../next_motif.gif" ALIGN=bottom>
</a>
<hr>
<h2> KLTWrite...() / KLTRead...() </h2>
<hr>
<h2>
<code>
void KLTWriteFeatureListToPPM(<br>
KLT_FeatureList fl,<br>
KLT_PixelType *greyimg,<br>
in... | HTML |
gIHByZWZpeDogc3RyaW5nO1xufT47XG5cbmNvbnN0IHN0b3JlOiBTdG9yZVByb3BzID0ge1xuICBkYXJrOiB1bmRlZmluZWQsXG4gIG1vZGU6IHVuZGVmaW5lZCxcbiAgcHJlZml4OiB1bmRlZmluZWQsXG59O1xuXG5leHBvcnQgZnVuY3Rpb24gc2V0U3RvcmUoZGF0YTogU3RvcmVQcm9wcykge1xuICBpZiAoXCJkYXJrXCIgaW4gZGF0YSkge1xuICAgIHN0b3JlLmRhcmsgPSBkYXRhLmRhcms7XG4gIH1cbiAgaWYgKFwibW9... | JavaScript |
ght, truebody().clientHeight) : Math.min(window.innerHeight)
if (typeof e != "undefined"){
if (docwidth - e.pageX < 270){
xcoord = e.pageX - xcoord - 285; // Move to the left side of the cursor
} else {
xcoord += e.pageX;
}
if (docheight - e.pageY < (curthumbht+110)){
ycoord += e.pa... | HTML |
s`结构体:定义了传递给比较命令的参数,包括文件路径、递归选项、过滤选项等。
2. `addManifestDiffFlags`函数:用于向命令行工具添加标志,例如`--recursive`用于递归比较、`--filter`用于过滤文件等。
3. `manifestDiffCmd`函数:定义了`manifest-diff`命令,包括其名称、简短描述和运行时操作。
4. `compareManifestsFromFiles`函数:用于比较两组具有相同文件名的清单文件,输出差异,并返回差异数量。
5. `yamlFileFilter`函数:用于过滤文件,根据后缀名筛选出YAML文件。
6. `compareManifestsF... | Markdown |
Callback<Option<Task>>,
}
#[function_component(TasksList)]
pub fn tasks_list(
TasksListProps {
tasks,
selected_task,
on_task_select,
}: &TasksListProps,
) -> Html {
tasks
.iter()
.map(|task| {
let task_is_selected = selected_task
.clone()... | Rust |
return true;
}
}
return false;
}
private isBarrier(point:cc.Vec2):boolean
{
for(var i = 0; i < this._barrierArr.length; i++)
{
if(this._barrierArr[i].x == point.x && this._barrierArr[i].y == point.y)
{
return true;
}
}
return false;
}
private isOverBorder(point:cc.Vec2):bool... | Typescript |
if (!savedType) {\n // We're in the innermost call, so this is the actual type.\n savedType = type;\n hasCustomHooks = typeof getCustomHooks === 'function';\n } // Set the signature for all types (even wrappers!) in case\n // they have no signatures of their own. This is... | JavaScript |
eyboard_name,
))
}
}
fn assert_defined_keyboards_equal(
interpreter: &mut Interpreter,
spec_code: &str,
) {
let result = library::get_defined_devices_list(interpreter).unwrap();
let expected =
interpreter.execute_in_main_environment(spec_code)... | Rust |
``
fn find_all<F>(self, f: F) -> Vec<T>
where
F: Fn(&T) -> bool + Sync,
T: Send,
{
self.find_map_all(|x| f(&x).then(move || x))
}
/// Low-level API for manually implementing mapping and reducing.
///
/// # Example
///
/// ```rust
/// # use rayoff::*;
/... | Rust |
gDistance => Destination.DistanceTo(CurrentPosition, ignoreZ: true);
public Position GetPositonAfter(int elapsedTimeInMilliSeconds)
{
if (Speed == 0 || Start.Coordinate == Destination) return Start;
var distanceTravelled = Speed * elapsedTimeInMilliSeconds * 0.001;
if (Destination == C... | C# |
as_##type() : NULL; \
}
DEFINE_CLASS_QUERY(AbstractLock)
DEFINE_CLASS_QUERY(Add)
DEFINE_CLASS_QUERY(AddP)
DEFINE_CLASS_QUERY(Allocate)
DEFINE_CLASS_QUERY(AllocateArray)
DEFINE_CLASS_QUERY(Bool)
DEFINE_CLASS_QUERY(BoxLock)
DEFINE_CLASS_QUERY(Call)
DEFINE_CLASS_QUERY(CallDynamicJava)
... | C++ |
).epub 608.54kb
| ├──跟老男孩学Linux运维:核心基础篇(上)(第2版).epub 639.49kb
| ├──跟老男孩学Linux运维:核心系统命令实战.epub 604.09kb
| ├──工业互联网安全百问百答.epub 2.43M
| ├──互联网+模型构建:深度解读互联网+的8大核心技术.epub 558.03kb
| ├──计算机组装与维修技术(第2版).epub 900.21kb
| ├──精解Windows 10 第2版.epub 207.21kb
| ├──精解Windows8.epub 172.10kb
| ├──精通Nginx(第2版).epub 274.9... | Markdown |
Type.default_),
this.extensions,
this.filters,
this.focus,
this.fontFamily,
this.fontSize = const ValueExpression(12),
this.fontSizeUnit = const ValueExpression(DivSizeUnit.sp),
this.fontWeight = const ValueExpression(DivFontWeight.regular),
this.fontWeightValue,
this.functions,
... | Dart |
project "zip-lib"
language "C"
kind "StaticLib"
includedirs "include"
defines { "N_FSEEKO" }
warnings "off"
files
{
"**.h",
"**.c"
}
filter "sy | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.