content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
count += j
}
/* 拼接两个列表*/
val nums1 = mutableListOf(6, 8, 7, 10, 9)
nums.addAll(nums1)
println("将列表 nums1 拼接到 nums 之后,得到 nums = $nums")
/* 排序列表 */
nums.sort()
println("排序列表后 nums = $nums")
}/**
* File: merge_sort.kt
* Created Time: 2024-01-25
* Author: curtishd (1023632660@qq... | Kotlin |
&js_sys::Object) -> bool {
!obj.is_null()
&& {
let proto = js_sys::Reflect::get_prototype_of(obj.as_ref()).unwrap();
proto.is_null()
}
&& impl_is_empty_object(obj)
}
pub fn is_empty_object(obj: &js_sys::Object) -> bool {
is_empty_object_with_object_proto(obj) ||... | Rust |
() {
if (window.__init_review_list) return;
__init_review_list = true;
window.is_released = true
window.txt_released = '该电影还未上映,不能投票噢'
})();
window.useful_icon = "https://img1.doubanio.com/f/zerkalo/536fd337139250b5fb3cf9e79cb65c6193f8b20b/pics/up.... | HTML |
<scalar_t, 2>(), coors.accessor<int, 2>(),
voxel_size, coors_range, grid_size, num_points, num_features, NDim);
});
return;
}
} // namespace voxelization
/*
* slam_toolbox
* Copyright (c) 2019, Steve Macenski
*
* THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
* COMM... | C++ |
# -*- coding: utf-8 -*-
from odoo import models, fields, api
class material(models.Model):
_name = 'material.material'
_description = 'material.material'
code = fields.Char()
name = fields.Char()
material_type = fields.Selection([
('Fabric', 'Fabric'),
('Jeans', 'Jeans'),
... | Python |
414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/></svg>") !default;
$btn-close-focus-shadow: $input-btn-focus-box-shadow !default;
$btn-close-opacity: .5 !default;
$btn-close-hover-opacity: .75 !default;
$btn-close-focus-opacity: ... | CSS |
_pending_dangling_drawing_objects_during_release: None,
approver_required_during_release: None,
note_required_during_release: None,
require_all_approvers: None,
allow_release_items_from_other_documents: None,
automatically_obsolete_previous_released_revisions:... | Rust |
else {
const int16_t MAX_PAGE_DATA_ITEM_NUM =
MIN(MAX_PAGE_ITEM_COUNT, (ObTmpFileGlobal::PAGE_SIZE - PAGE_HEADER_SIZE) / sizeof(data_items.at(0)));
int32_t level_page_index = level_new_pages.empty() ? level_page_num_array_.at(0) - 1 : 0;
int16_t count = 0;
ObSharedNothingTmpFileTreePageHeader p... | C++ |
Marxist-Leninist-Maoist.
<br/>
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A cop... | HTML |
// 上传时间列
const timeCell = document.createElement('td');
timeCell.textContent = new Date(file.created_at).toLocaleString();
row.appendChild(timeCell);
// 操作列
... | HTML |
</p><p>https://stashgithub.github.io/uploads/2025/10/4-20251007.yaml</p><p> </p><p><strong>V2ray订阅链接:</strong></p><p>https://stashgithub.github.io/uploads/2025/10/3-20251007.txt</p><p>https://stashgithub.github.io/uploads/2025/10/4-20251007.txt</p><p><strong>Sing-Box订阅链接</strong></p><p>https://stashgithub.github.i... | HTML |
4<<2)|0);
$36 = HEAP32[$35>>2]|0;
$37 = (((($1)) + 192|0) + ($34<<2)|0);
$38 = HEAP32[$37>>2]|0;
$39 = 1 << $38;
$40 = ($38|0)==(0);
if ($40) {
$cval$1$ph = 0;
} else {
$41 = (((($1)) + 256|0) + ($34<<2)|0);
$42 = HEAP32[$41>>2]|0;
$43 = (($9) + (($42*56)|0)|0);
$44 ... | JavaScript |
gle array
image_points_depth = np.hstack((image_points.reshape(-1, 2), depth[:, None]))
# print min max of depth
# print(np.min(image_points_depth[:, 2]), np.max(image_points_depth[:, 2]))
# Ensure all elements are floats
image_points_depth = image_points_depth.astype(np.float3... | Python |
3.758 14 10 14 10 14s6.259 0 7.823-.412a2.505 2.505 0 001.762-1.762A26.4 26.4 0 0020 7.016a25.054 25.054 0 00-.417-4.825zM8 9.998v-6l5.2 3z" data-name="パス 416" fill="#fff"/></symbol><symbol id="youtube-red" viewbox="0 0 19 14"><path d="M18.609 2.191A2.446 2.446 0 0016.935.429C15.448.001 9.501.001 9.501.00... | HTML |
) * 4.0;
const down_start_y = 90;
let x = g_lastPos.x + Math.cos(rad(angle)) * move_dist;
let z = g_lastPos.z + Math.sin(rad(angle)) * move_dist;
obj.x = x;
obj.y = down_start_y;
obj.z = z;
obj.a = rad(angle+90);
g_lastPos.x = x;
g_lastPos.z = z;
}
function move_domino(obj,cnt)
{
//ドミノの移動を制御
const... | HTML |
(filePath) {
return new Promise((resolve, reject) => {
fs.realpath(filePath, (err, _path) => {
if (err) {
return reject(err);
}
return resolve(_path);
});
});
}
export const readdir = async (dirPath, recursive, matcher) => {
const matchedPaths = [];
const pendingDirs = [dirPat... | Typescript |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ParksComputing.Xfer.Lang;
namespace ParksComputing.Xfer.Lang.Tests;
public enum TestEnumLocal
{
None,
Indented,
Spaced,
Pretty
}
public class TestClass
{
public string Name { get; set; } = string.Empty;
public int Age { get; set; }
... | C# |
ding",a.get(t.id))})),t.read().then((()=>{const o=t.upload(),i=a.get(t.id);if(sr.isSafari){const t=e.editing.mapper.toViewElement(i),n=s.findViewImgElement(t);e.editing.view.once("render",(()=>{if(!n.parent)return;const t=e.editing.view.domConverter.mapViewToDom(n.parent);if(!t)return;const o=t.style.display;t.style.di... | JavaScript |
color3);
}
.jp-RenderedHTMLCommon .alert-warning > p:last-child,
.jp-RenderedHTMLCommon .alert-warning > ul:last-child {
margin-bottom: 0;
}
.jp-RenderedHTMLCommon .alert-success {
color: var(--jp-success-color0);
background-color: var(--jp-success-color3);
border-color: var(--jp-success-color2);
}
.jp-Rendere... | HTML |
local App = {
title = 'Fonts System',
author = 'Joao Vicente',
version = '1.0.0',
require = 'math'
}
App.fonts = {
'Tiresias:https://cdn.jsdelivr.net/gh/alyssonbrito/gingaar@latest/ginga.ar-2.0/tool/ginga/fonts/Tiresias.ttf'
}
function App.draw(self, std)
std.text.font_name('Tiresias')
std.dr... | Lua |
{"P2 Up", BIT_DIGITAL, DrvJoy2 + 0, "p2 up"},
{"P2 Down", BIT_DIGITAL, DrvJoy2 + 1, "p2 down"},
{"P2 Left", BIT_DIGITAL, DrvJoy2 + 2, "p2 left"},
{"P2 Right", BIT_DIGITAL, DrvJoy2 + 3, "p2 right"},
{"P2 Button 1", BIT_DIGITAL, DrvJoy2 + 4, "p2 fire 1"},
{"P2 Button 2", BIT_DIGITAL, DrvJoy2 + 5, "p2 fire 2"},
{... | C++ |
DAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIyNiIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDI2IDI4Ij4KPHBhdGggZmlsbD0iIzU1NSIgZD0iTTIgMjZoNC41di00LjVoLTQuNXY0LjV6TTcuNSAyNmg1di00LjVoLTV2NC41ek0yIDIwLjVoNC41di01aC00LjV2NXpNNy41IDIwLjVoNXYtNWgtNXY1ek0yIDE0LjVoNC41di00LjVoLTQuNXY0LjV6TTEzLjUgMjZoN... | CSS |
vq5ivags9FlfgrzFqxrdREXF1_:
nop
.text
.globl b__MA7naqebvq5ivags22XrearyPbasvtGlcrqInyhrP2Ry
.type b__MA7naqebvq5ivags22XrearyPbasvtGlcrqInyhrP2Ry,%function
b__MA7naqebvq5ivags22XrearyPbasvtGlcrqInyhrP2Ry:
nop
.text
.globl b__MA7naqebvq5ivags18XrearyPbasvtCnefre7pbasvtfRi
.type b__MA7naqebvq5ivags18XrearyPbasvtCnefre7p... | Assembly |
)
{
// draw
dc.SetPen(pen);
dc.SetBrush(*wxTRANSPARENT_BRUSH);
dc.DrawRectangle(*rect);
// adjust the rect
rect->Inflate(-1);
}
void wxMetalRenderer::DrawShadedRect(wxDC& dc, wxRect *rect,
const wxPen& pen1, const wxPen& pen2)
{
// draw the rectangle
... | C++ |
`inputmode` in mobile browsers so that the right virtual
// keyboard shows up.
if (ui_web.browser.operatingSystem == ui_web.OperatingSystem.iOs ||
ui_web.browser.operatingSystem == ui_web.OperatingSystem.android ||
inputmodeAttribute == EngineInputType.none.inputmodeAttribute) {
domElemen... | Dart |
.into_iter()
.filter(|coord| match direction {
'x' => coord.x < line,
'y' => coord.y < line,
_ => true,
})
.collect::<HashSet<Coord>>();
let right = paper
.clone()
.into_iter()
.filter(|coord| match direction {
'x' => c... | Rust |
ct,
static_cast<HBRUSH>(GetStockObject(DC_BRUSH)));
} else {
if (title_style.has_background_color()) {
dc.FillSolidRect(&title_back_crect,
RGB(title_style.background_color().r(),
title_style.background_color().g(),
title_style.background_color().b()));
} els... | C++ |
Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;--mermaid-label-bg-color: white;--mermaid-label-fg-color: #4582ec;--mermaid-node-bg-color: rgba(69, 130, 236, 0.1);--mermaid-node-fg-color: black}@media print{:root{font-size:11pt}#quarto-sidebar,#TOC,.nav-page{display:none}.page-columns .content{gri... | CSS |
��상 가능하므로, 프레임워크가 치명적 오류로 간주하지 않으며 로그를 기록하지 않습니다.
## 사용자 정의 비즈니스 예외
위의 응답이 요구 사항에 부합하지 않는 경우, 예를 들어 `msg` 대신 `message`로 변경하려면 `MyBusinessException`을 사용자 정의할 수 있습니다.
다음 내용의 `app/exception/MyBusinessException.php`을 만듭니다.
```php
<?php
namespace app\exception;
use support\exception\BusinessException;
use Webman\Http\R... | Markdown |
ver//oeka/common/images/touch-icon-ipad.png"/>
<link rel="apple-touch-icon" sizes="120x120" href="https://oekastatic.orf.at/mojo/1_4_1/storyserver//oeka/common/images/touch-icon-iphone-retina.png"/>
<link rel="apple-touch-icon" sizes="152x152" href="https://oekastatic.orf.at/mojo/1_4_1/storyserver//oeka/common/images/t... | HTML |
Widget {
const AddMoneyButton(this.goal, this.setState, this.controller, {Key? key}) : super(key: key);
final Goal goal;
final void Function(void Function()) setState;
final ConfettiController controller;
@override
Widget build(BuildContext context, WidgetRef ref) {
final goals = ref.watch(goalReposit... | Dart |
font-weight: 400;
font-display: block;
src: url(https://fonts.gstatic.com/s/nanumgothic/v21/PN_3Rfi-oW3hYwmKDpxS7F_z-7rJxHVIsPV5MbNO2rV2_va-Nv6p.73.woff2) format('woff2');
unicode-range: U+8033, U+8036, U+803d, U+803f, U+8043, U+8046, U+804a, U+8056, U+8058, U+805a, U+805e, U+806f-8070, U+8072-8073, U+8... | CSS |
�第一医院','厦门中山医院','厦门中医院','厦门第五医院',],
y: 'bottom',
x:'center',
textStyle:{
color:'#fff',
fontSize:12
}
},
grid:{
left: '5%',
right: '5%',
bottom: '10%',
containLabel: true
},
calculable : true,
xAxis : [
... | HTML |
}
@Test
public void testConcatenatedJarWithAppendJar() throws IOException, ClassNotFoundException {
final Path appendJar = newJar().entry(ENTRY_1).writeTo(tmp);
final Path firstJar = newJar().entry(ENTRY_2).writeTo(tmp);
final Path secondJar = newJar().entries(ENTRY_3).writeTo(tmp);
final Path out... | Java |
-for-iframe .iframe, .reduced-width-for-iframe .iframe iframe {
/*width: 350px;*/
/*max-width: 350px;*/
height: 200px;
}
.reduced-width-for-iframe .iframe {
width: 100%;
max-width: 100%;
}
... | HTML |
mes[op]))
}
// upsert and not already in the fetchMap then add so that same upsert key will make it update in same statement
if op == MOP_UPSERT {
if _, ok := fetchMap[key]; !ok {
fetchMap[key] = val.(value.AnnotatedValue)
}
}
mCount++
if preserveMutations {
mPairs = append(mPairs, kv)
}
... | Go |
from pathlib import Path
import torch
from einops import rearrange
from structured_kernels import cauchy_mult_sym_fwd, cauchy_mult_sym_bwd
# try:
# from cauchy_mult import cauchy_mult_sym_fwd, cauchy_mult_sym_bwd
# except ImportError:
# from torch.utils.cpp_extension import load
# current_dir = Path(__fil... | Python |
�引擎都支持自动排除搜索,全量搜索,递归搜索。
| 模块 | 是否需要代理 | 是否需要API | 其他说明 |
| ----------- | ---------------------- | -----------| ----------------------------------------------------------- |
| ask | 是 | 否 | ... | Markdown |
;
function postComment(message: string) {
let gh = new GitHub({token: process.env.GITHUB_TOKEN});
return gh.getIssues('AaronBot1011', 'GHTest').createIssueComment(1, message).catch(function(error: GithubResponse) {
console.error("Err: " + error.response);
});
}
function setStatus(user: string, repoName: st... | Typescript |
0];
let exit = handle_keys(&mut tcod, player);
if exit {
break;
}
}
}
<gh_stars>0
// 首先定义好两个栈
struct MinStack {
// 一个栈叫做 stack,负责栈的正常操作
stack: Vec<i32>,
// 一个栈叫做 min_stack,负责获取 stack 中的最小值,它等价于遍历 stack 中的所有元素,把升序的数字都删除掉,留下一个从栈底到栈顶降序的栈
min_stack: Vec<i32>,
}
/**
* `&sel... | Rust |
e, a2: VecLike, points: VecLike[]) {
const result: VecLike[] = []
let segmentIntersection: VecLike | null
for (let i = 0, n = points.length - 1; i < n; i++) {
segmentIntersection = intersectLineSegmentLineSegment(a1, a2, points[i], points[i + 1])
if (segmentIntersection) result.push(segmentIntersection)
}
if... | Typescript |
ion) == 0x0000B8, "Member 'FFortLootPackageData::Annotation' has a wrong offset!");
// ScriptStruct FortniteGame.PlayerBuildableClassContainer
// 0x0010 (0x0010 - 0x0000)
struct FPlayerBuildableClassContainer final
{
public:
TArray<TSubclassOf<class ABuildingSMActor>> BuildingClasses; ... | C++ |
comes.HasNonPerceivableTranscriptLink);
}
return Question.of(
"transcript-perceivable",
"boolean",
target,
`Is the transcript of the \`<audio>\` element perceivable?`
).map((isPerceivab... | Typescript |
Err;
throw_emitter!(LocalSubscription, 'a);
}
impl<Err> SharedEmitter for ThrowEmitter<Err> {
type Item = ();
type Err = Err;
throw_emitter!(SharedSubscription, Send + Sync + 'static);
}
/// Creates an observable that produces no values.
///
/// Completes immediately. Never emits an error.
///
/// # Examples... | Rust |
>getDescrTipoMovimentacao</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getConteudoBlobMov2()"><!-- --></A><H3>
getConteudoBlobMov2</H3>
<PRE>
public byte[] <B>getConteudoBlobMov2</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getIdTpMov()"><!-- --></A>... | HTML |
ZqKqqKvx+P42NjTzKK6+8gsfjYcmSJbS0tBBVWVnJJ598whtvvEFH/fOf/yQQCBAIBAgEAgQCAY4dO4bL5SLq+vXrRDU1NfHb3/6WqEgkQruysjKuX79O1Pvvv48kcnNzeeWVV/B4PCxZsoSWlhaiKisr+eSTT3jjjTcwxnSOgzHmsfJ4PGzevJn4+HgmTZrEwIEDGTNmDPv376e0tJSsrCyiiouLOXToEC+88AIjR44kLS2N7373u3SG4zhUVFQQDofxer0MGTKEuXPnsmDBAjIyMuiIjIwMamtrGTVqFI/iOA4VFRWEw2G8Xi9Dhgx... | HTML |
b(ne, Narrow, &l_0196);
// --------------
__ bind(&l_0126);
__ bl(&l_0126);
// --------------
__ bind(&l_012a);
__ ldr(r3, MemOperand(fp));
__ mov(Narrow, r1, r0);
__ str(r8, MemOperand(fp, 20));
__ mov(Narrow, r0, fp);
__ ldr(Narrow, r3, MemOperand(r3, 20));
__ blx(r3);
... | C++ |
# -*- coding: utf-8 -*-
# this file is used by jobman to generate jobs
import numpy
import os
from jobman import DD
home = os.getenv('HOME')
default_config = DD({
# theano profiling, 0 not printing
'profile': 1,
# specify the correct data path
# cifar10.npz
# curves.npz
# mnist_6k_1k_1k.npz
... | Python |
editGroupwjtpwjtp_tn.setData("id", "wjtpwjtp_tn");
String descwjtpwjtp_tn = "Finds and processes transactional regions (EXPERIMENTAL)";
if (descwjtpwjtp_tn.length() > 0) {
Label descLabelwjtpwjtp_tn = new Label(editGroupwjtpwjtp_tn, SWT.WRAP);
descLabelwjtpwjtp_tn.setText(descwjtpwjtp_tn);
}
Op... | Java |
public string? StaticClass { get; init; }
public string? StaticMembers { get; init; }
public string? PartialClass { get; init; }
public string? InnerClassVisibility { get; init; }
public string? InnerClassName { get; init; }
public string? InnerClassInstanceName { get; init; }
public string? UseVocaDbResMan... | C# |
ensure_equals("U64_to_str converted 1.8", val_str, result_str);
val = U64L(18446744073709551615); // testing smaller sized buffer for result
val_str = "1844";
memset(result, 'A', sizeof(result)); // initialize buffer with all 'A'
U64_to_str(val, result, 5); //pass in a size of 5. should only copy first 4 in... | C++ |
is.builder.group({
'label': [this.label, Validators.compose([Validators.required, CreateFormValidator.validLabel])],
'location': [this.location, Validators.compose([Validators.required])],
'dateStarts': [this.dateStarts, Validators.compose([Validators.required])],
'dateEnds': [this.dateEnds, Val... | Typescript |
color_map = [[0, 0, 0], [123, 23, 45]]
expected = '["rgb(0, 0, 0)", "rgb(123, 23, 45)"]'
self.assertEqual(to_dygraph_colors(color_map), expected)
class TestBarPlot(unittest.TestCase):
def setUp(self):
self.dfr = pd.DataFrame({"foo": [1, 2, 3],
"bar"... | Python |
1e-4);
EXPECT_NEAR(atomData[0].gradient.z, -241.771707768611, 1e-4);
EXPECT_NEAR(atomData[1].gradient.x, 0.000000000000, 1e-4);
EXPECT_NEAR(atomData[1].gradient.y, 684.800882899876, 1e-4);
EXPECT_NEAR(atomData[1].gradient.z, 0.000000000000, 1e-4);
EXPECT_NEAR(atomData[2].gradient.x, 0.000000000000, 1e-4);
... | C++ |
"""Script to create a snapshot of the UNU-WIDER Government Revenue Dataset.
Steps to obtain the data:
- Go to https://www.wider.unu.edu/project/grd-government-revenue-dataset
- Click on `Access full and additional datasets here`
- Fill the form and submit
- Download the Full dataset (Stata format). The name of the fil... | Python |
ntedError
for t in i_transforms:
t.inverse = True
i_transforms = torchvision.transforms.Compose(i_transforms)
return i_transforms(x)
def get_spectrogram(audio_path, save_dir, length, folder_name='melspec_10s_22050hz', save_results=True):
wav, _ = librosa.load(audio_path, sr=None)
# this ca... | Python |
(...e){const t=i.DEFAULT_ORDER,n={};for(let r=0,i=e.length,o=t.length;r<i&&r<o;r++)n[t[r]]=e[r];return new r(n)}getProperties(){return this.properties}getOrder(){return this.order}getAxes(){return this.order}getProperty(e){return this.properties[e]}updateProperties(e){this.properties=e}allProperties(){const e=[];return... | JavaScript |
"""
The following predicates can be used in the traversal functions directly.
"""
from ..atomic import AtomicElement
from ..metadata import PunctuationElement, CommentElement, NewlineElement, WhitespaceElement
from prettytoml import tokens
from .. import common
atomic = lambda e: isinstance(e, AtomicElement)
... | Python |
oad
clr.b (text+49)
lea (text+40)(pc),a6
bsr prtload
lea wait(pc),a6
bsr prtload
lea name1(pc),a6
go pea env(pc)
pea com(pc)
pea (a6)
pea $4b0000
trap #1
lea 16(sp),sp
clr.w -(sp)
trap #1
prtload pea (a6)
move.w #9,-(sp)
trap #1
lea 6(sp),sp
rts
env dc.l 0
com dc.l 0
name1 dc.b 'starwars.prg',0,0
name2... | Assembly |
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from __future__ import annotations
from typing_extensions import Literal, Required, TypedDict
__all__ = ["FileSearchToolParam", "FileSearch", "FileSearchRankingOptions"]
class FileSearchRankingOptions(TypedDict, total=False):
... | Python |
top",m-g/2-x/2+"px");if(this.name=="yaxis"){this._label._elem.css("left","0px")}else{this._label._elem.css("right","0px")}this._label.pack()}}}}})(jQuery);');if(c.indexOf('$wnd.jQuery.jqplot.PieRenderer')!=-1){m1b("/**\n * jqPlot\n * Pure JavaScript plotting plugin using jQuery\n *\n * Version: 1.0.7\n * Revision: 1224... | HTML |
=debug,runtime=debug");
let _ = pretty_env_logger::try_init();
let pool = RedisPool::builder()
.connect_to_node("redis://127.0.0.1:6379")
.desired_pool_size(10)
.reservation_limit(1_000_000)
.default_checkout_mode(Immediately)
//.task_executor(runtime.executor()) no expl... | Rust |
">end</span></code></div><dl><dt class="spec value" id="val-(<|=)"><a href="#val-(<|=)" class="anchor"></a><code><span class="keyword">val</span> (<|=) : <a href="../../../../Bool/Heyting_Algebra/index.html#type-t">Bool.Heyting_Algebra.t</a> <span>-></span> <a href="../../../../Bool/Heyting_Algebra/inde... | HTML |
FFMA c1, d1, beta, c1;
24:-:-:-:1 FFMA c2, d2, beta, c2;
08:-:-:-:0 FFMA c3, d3, beta, c3;
--:-:-:-:5 @!P6 BRA.U END_ROUND2;
<SCHEDULE_BLOCK>
// Strip mantissa and leave sign+exponent
--:-:-:-:1 LOP32I.AND exp0, c0, 0xff800000;
--:-:-:-:1 LOP32I.AND exp1, c1, 0xff800000;
--:-:-:-:1 LOP32I.AND... | CSS |
bm.Close()
time.Sleep(150 * time.Millisecond)
// After Close, the done channel should be closed.
select {
case <-bm.done:
// Expected.
default:
t.Errorf("expected done channel to be closed after Close()")
}
}
func TestAdjustOnFailureAndOnSuccess(t *testing.T) {
ctx := context.Background()
bm := NewBucke... | Go |
g", "/assets/student-center.jpg", "MIT PRIMES",
"Despite being technically an extracurricular activity, I've learned invaluable skills during my time in the MIT PRIMES program: writing academic papers, working with genomic researchers, even developing tools to aid oncologists in their fight against cancer. Few p... | Typescript |
dmUSFAoFY292ZXIYASABKAlSBWNvdmVyEhAKA2FpZBgCIAEoA1IDYWlkEh'
'AKA3VyaRgDIAEoCVIDdXJpEkAKCWRpbWVuc2lvbhgEIAEoCzIiLmJpbGliaWxpLmFwcC5keW5h'
'bWljLnYyLkRpbWVuc2lvblIJZGltZW5zaW9u');
@$core.Deprecated('Use storyItemDescriptor instead')
const StoryItem$json = {
'1': 'StoryItem',
'2': [
{
'1': 'story_ar... | Dart |
from fastapi import Request, HTTPException
def get_api_keys_from_headers(request: Request) -> dict[str, str]:
"""
Extract API keys from request headers.
Args:
request: FastAPI Request object
Returns:
dict: Dictionary containing the API keys
Raises:
HTTPException: If any ... | Python |
1
//
// >>> "s"
// "s"
//
// >>> dojo.toJson({one:1})
// "{"one":1}"
//
var len = tests.length;
this.tests = len;
var oks = 0;
for(var i=0; i<len; i++){
var t = tests[i];
var res = this.runTest(t.commands, t.expectedResult);
var msg = "Test "+(i+1)+": ";
var viewCom... | JavaScript |
sole.log('\n');
console.log('------------------------------------------------------------------------');
console.log('Any array can be looped over thru a for loop (list1)')
console.log('-----------------------------------------------------------------------');
for(let i=0; i < list1.length; i++) {
console.log(lis... | Typescript |
one | 192.168.255.8:12 | 12:12 | - | - | learned | 130-131 |
| Tenant_A_DB_Zone | 192.168.255.8:13 | 13:13 | - | - | learned | 140-141 |
| Tenant_A_NFS | 192.168.255.8:10161 | 10161:10161 | - | - | learned | 161 |
| Tenant_A_OP_Zone | 192.168.255.8:10 | 10:10 | - | - | learned | 110-111 |
| Tenant_A_VMOTION | 192.168.2... | Markdown |
Add flow direction arrows
ax1.annotate('Flow →', xy=(-0.8, 0.7), fontsize=12,
bbox=dict(boxstyle="round", facecolor='lightblue', alpha=0.8))
# Plot 2: Laplacian
laplacian_plot = laplacian.copy()
laplacian_plot[circle_mask] = np.nan
# Use symmetric colorbar limits
vmax ... | Python |
JTP("jtp", TypeDataHolder.OTHERS),
/** System Deployment Image file, used in Windows deployment. */
SDI("sdi", TypeDataHolder.OTHERS),
/** Mozilla fastload file, used to improve start-up performance. */
MFL("mfl", TypeDataHolder.OTHERS),
/** Microsoft Help Compilation file, u... | Kotlin |
*****************************************************/
@import url( "fileadmin/dsv/css/dsv_globals.css" );
@import url( "fileadmin/dsv/css/dsv_navigation.css" );
@import url( "fileadmin/dsv/css/dsv_content.css" );
@import url( "fileadmin/dsv/css/dsv_formulare.css" );
@import url( "fileadmin/dsv/css/stylish-select.... | HTML |
(dot(p, p), .7) * .06;
col += vec3(v * 0.2+.4, 12.-s*2., .1 + v * 1.) * v * 0.00003;
s += .025;
}
return vec4(clamp(col, 0.0, 1.0), 1.0);
}
""".trimIndent()
)
@RequiresApi(33)
fun createSkiaExampleShader1() = RuntimeShader(
"""
//--------... | Kotlin |
event->button() == Qt::LeftButton &&
columnViewportPosition(event_col) + columnWidth(event_col) - 18 < event->x() &&
static_cast<BackupListModel*>(model())->isEditable())
edit(model()->index(event_row, event_col));
}
void BackupListView::mouseDoubleClickEvent(QMouseEvent* event)
{
const aut... | C++ |
-093f37f13bde">https://base.uri/callback/9ecd52e5-6592-42b7-b562-093f37f13bde</a>, where the appId is 9ecd52e5-6592-42b7-b562-093f37f13bde) then we have the app context when an incoming call occurs. Of course there are other ways to get the app ID, like from the auth token or the payload, but this is one simple option... | HTML |
v(", "),a("code",[t._v(">")]),t._v(", "),a("code",[t._v("<=")]),t._v(", "),a("code",[t._v(">=")])]),t._v(" "),a("li",[a("code",[t._v("==")]),t._v(" and "),a("code",[t._v("!=")])]),t._v(" "),a("li",[a("code",[t._v("&")]),t._v(", the bitwise AND operator")]),t._v(" "),a("li",[a("code",[t._v("^")])]),t._v(" "),a("li",[a("... | JavaScript |
new OnDemandObservableArray<string>([]);
const observedValues: string[][] = [];
disposer = autorun(() => {
observedValues.push([...x]);
});
// Act
x.push('welcome');
x.push('to');
x.push('the');
x.push('jam');
// Assert
expec... | Typescript |
Instr(MachineInstr &MI) override {
LLVM_DEBUG(dbgs() << "Changed: " << MI << "\n");
WorkList.insert(&MI);
}
void reportFullyCreatedInstrs() {
LLVM_DEBUG(for (const auto *MI
: CreatedInstrs) {
dbgs() << "Created: ";
MI->print(dbgs());
});
LLVM_DEBUG(CreatedInstrs.... | C++ |
counter = 5
while counter < 10:
print("Das ist richtig")
counter += 1
| Python |
key");
}
result, same session:
d9b20552-e704-42f8-8cc8-63eba179855f_1p,
d9b20552-e704-42f8-8cc8-63eba179855f_1p,
d9b20552-e704-42f8-8cc8-63eba179855f_1p,
d9b20552-e704-42f8-8cc8-63eba179855f_1p,
d9b20552-e704-42f8-8cc8-63eba179855f_1p
result, different session:
d9b20552-e704-42f8-8cc8-63eba179855f_1p,
d9b20552... | HTML |
y bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ChromeController.html"><font color="#ffffff">ChromeController</font></a>.filter_funcs</... | HTML |
eteness = obj && obj.completeness || 0.0;
this.numberOfUsers = obj && obj.numberOfUsers || 0;
this.numberOfTranslations = obj && obj.numberOfTranslations || 0;
this.numberOfTranslationIds = obj && obj.numberOfTranslationIds || 0;
this.numberOfBuilds = obj && obj.numberOfBuilds || 0;
this.latest... | Typescript |
category,type,title,subtitle,const DeepCollectionEquality().hash(_thumbnails));
@override
String toString() {
return 'HistoryRequest(visitedAt: $visitedAt, link: $link, category: $category, type: $type, title: $title, subtitle: $subtitle, thumbnails: $thumbnails)';
}
}
/// @nodoc
abstract mixin class _$HistoryReq... | Dart |
сказку", -- src\editor\menu_edit.lua
["Show All Files"] = "Показать все файлы", -- src\editor\filetree.lua
["Show Hidden Files"] = "Показать спрятанные файлы", -- src\editor\filetree.lua
["Open Containing Folder"] = "Показать файл в папке", -- src\editor\gui.lua, src\editor\filetree.lua
["Show all files"] = "По... | Lua |
/* Report a memory allocation failure and exit.
Copyright (C) 1997-2000, 2002-2004, 2006, 2009-2020 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; eith... | C |
const onMessage = (ws, store) => evt => {
// Parse the JSON message received on the websocket
const msg = evt.data;
store.dispatch(socketsMessageReceiving(msg));
};
return store => next => action => {
switch (action.type) {
case SocketTypes.SOCKETS_CONNECT:
... | Typescript |
�仅重载指定索引的条目
//若对应条目在刷新前不可见,加载时会将其设为可见
val requireRefreshSubList = { itemIndices:List<Int> ->
if(itemIndices.isNotEmpty()) {
subDiffableItemList.value.clear()
//被添加到sub list的索引,对应的条目如果在刷新前不可见,刷新时会将其设为可见
subDiffableItemList.value.addAll(itemIndices)
changeS... | Kotlin |
t the provided user, or you if none is specified',
usage: '',
flags: {
'`-c`,`--color`': 'Use target role color',
'`-bl`,`--blacklist`': 'Show blacklist status (Owner only)'
}
},
cooldown: 5000,
ratelimit: 2,
clientPermissions: ['EMBED_LINKS', 'SEND_MESSAGES'],
before: async (messag... | Typescript |
(from).clone();
//state.push_connection(self,to,c);
let byteclass = &self[state.class.clone()];
match byteclass[c] {
0 => {
// This means that self has no existing connection for input 'c'.
state.table.push(Vec::with_capacity(1));
let... | Rust |
k := utils.NewMockClock(time.Unix(100, 0))
cancel := utils.MockTime(mock_clock)
defer cancel()
clock := &FakeClock{
MockClock: mock_clock,
events: self.frontend1.events,
}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
crypto_manager := &crypto_test.NullCryptoManager{}
communic... | Go |
r.slice(0,2)+p:p;u(l(C,c,0))}),l=(c,u,g)=>new Promise((f,h)=>{if(g===n.length)return f(a(u+1));let p=n[g];LK(c+p,{pathExt:s},(C,y)=>{if(!C&&y)if(e.all)o.push(c+p);else return f(c+p);return f(l(c,u,g+1))})});return t?a(0).then(c=>t(null,c),t):a(0)},ofe=(r,e)=>{e=e||{};let{pathEnv:t,pathExt:i,pathExtExe:n}=OK(r,e),s=[];f... | JavaScript |
fields,deprecated_member_use_from_same_package
import 'dart:core' as $core;
import 'dart:convert' as $convert;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use importEnumDescriptor instead')
const ImportEnum$json = const {
'1': 'ImportEnum',
'2': const [
const {'1': 'IMPORT_FOO', '2': 7},
c... | Dart |
<Program>(parseScript("x = (0) ? 1 : 2"), {
type: "Program",
body: [
{
type: "ExpressionStatement",
expression: {
type: "AssignmentExpression",
operator: "=",
left: {
... | Typescript |
println(findSum(m, n, mTerm, nTerm, p));
}
}
// This code is contributed by chandan_jnu
```
## 蟒蛇 3
```
# Python3 implementation of the above approach
import math as mt
# Function to calculate the value of the
def findingValues(m, n, mth, nth):
# Calculate value of d using formula
d = ((abs(mth - nth)) /
... | Markdown |
"OSX8"|"OSX9"|"OSX10"|"OSX11"|"OSX12"|
"IOS"|"IOS5"|"IOS6"|"IOS7"|"IOS8"|"IOS9"|"IOS10"|
"ANDROID"|"ANDROID2"|"ANDROID3"|"ANDROID4"|"ANDROID43"|
"ANDROID44"|"ANDROID5"|"ANDROID6"|"ANDROID7"|"OTHER";
/**
* Creates a license with the provided data
* @param licenseData Must include 'prodCode' an... | Typescript |
$(".callbacks").colorbox({
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
onCleanup:function(){ alert... | HTML |
et", "ođđajagemannu", "eahketbeaivi", "golggotmannu", "suoidnemannu", "gaskavahkku", "geassemannu", "guovvamannu", "iđitbeaivet", "juovlamannu", "miessemannu", "njukcamannu", "skabmamannu", "sotnabeaivi", "this minute", "borgemannu", "cakcamannu", "cuoŋomannu", "iđitbeaivi", "last month", "maŋŋebarga", "next month", "t... | Go |
mCanvas)) {
SkColor clearColor =
imageInfo.isOpaque() ? SK_ColorBLACK : SK_ColorTRANSPARENT;
mCanvas->clear(clearColor);
}
SkISize size = mCanvas->getBaseLayerSize();
mSize.width = size.width();
mSize.height = size.height();
mFormat =
SkiaColorTypeToGfxFormat(imageInfo.colorType(), imag... | C++ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.