content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: sw=2 ts=2 et :
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compli... | C |
a, ImageVariant.general);
final path = await cache.getVariantPath(
variant: variant,
fetch: fakeDownloader,
);
// Should be the RAW (since compression is background)
final raw = Variant(meta, ImageVariant.raw);
expect(p.normalize(path), equals(p.normalize(ra... | Dart |
', button);
}
Future<void> tapDown(MouseButtons button) async {
await sendMouse('down', button);
}
Future<void> tapUp(MouseButtons button) async {
await sendMouse('up', button);
}
/// Send scroll event with scroll distance [y].
Future<void> scroll(int y) async {
await bind.sessionSendMouse(... | Dart |
is:
* [number_of_symbols]
* [weight of symbol #1]
* [weight of symbol #2]
* ...
*/
import java.io.File
import java.util.PriorityQueue
import java.util.Queue
import java.util.LinkedList
var INF = (1e9 + 7).toInt()
data class Tree(val weight: Int, val left: Tree? = null, val right: Tree? = null)
/*
fun encode(A... | Kotlin |
pler", &glIsSampler_p, sampler);
#[cfg(all(debug_assertions, feature = "debug_automatic_glGetError"))]
{
global_automatic_glGetError("glIsSampler");
}
out
}
static glIsSampler_p: APcv = ap_null();
/// Tries to load [`glIsSampler`], returns if a non-null pointer was obtained.
#[doc(hidden)]... | Rust |
��델로 제작한 양산형 장기말",
obstacle = 0,
event_sight = -1,
icon = "",
special_enemy = 0,
infection_value = 2,
compass_index = 1,
discover_type = 2,
expedition_icon = 243411,
is_guide = 0,
id = 11030252,
object_icon = {
"cell_red",
1,
100,
0
},
event_op = {},
effect = {
110300202,
1... | Lua |
* 点击移除的回调
*/
onRemove?: () => void;
/**
* 自定义class
*/
className?: string;
/**
* 自定义内联样式
*/
style?: React.CSSProperties;
/**
* 自动上传
*/
autoUpload?: boolean;
/**
* 透传给Progress props
*/
progressProps?: ProgressProps;
/**
* 点击图... | Typescript |
+ "130.93335610978517 159.93335610978517, 113.77376383955855 180.84237978870843, "
+ "101.02303648576327 204.697312822263, 93.17117734991535 230.58142351196986, "
+ "90.51992897523209 257.5000000000001, 93.17117734991538 284.41857648803034, "
+ "101.02303648576334 310... | Java |
import networktables as networkTablesCore
import keyboard
import time
from threading import Timer
def main():
def release_key(key_name: str) -> None:
print(f"Sending: {key_name} -> {False}")
table.putBoolean(key_name, False)
def timed_keypress(key_name: str, press_time: float) -> None:
... | Python |
37.htm", "text": "\u65e5\u5a92\u53cd\u9a73\u5965\u5df4\u9a6c:\u6307\u8d23\u4e2d\u56fd\u201c\u642d\u56fd\u9645\u5b89\u5168\u4fbf\u8f66\u201d\u4e0d\u516c", "source": "\u817e\u8baf", "time": "2014-08-14 23:07"}, {"weight": 0.4387770370805133, "title": "\u515a\u62a5\u56de\u5e94\u5965\u5df4\u9a6c\u6307\u8d23 \u7f8e\u65b9\u7... | JavaScript |
ID>"
FUNDATION_ID = FUNDATION_ID or "<FUNDATION_ID>"
Handlers.add('mint', {
From = function (_from)
return _from == ao.id or _from == AGENT_ID
end,
Action = "Mint"
}, function(msg)
print("mint")
local total = msg['Mint-Total'] or msg.Quantity
local quantity = msg['Mint-Amount'] or msg.Quantity
local f... | Lua |
x00]
ds_or_b32 v0, v1 offset:65535 gds
// GFX10: encoding: [0xff,0xff,0x2a,0xd8,0x00,0x01,0x00,0x00]
ds_or_b32 v255, v254 offset:65535 gds
// GFX10: encoding: [0xff,0xff,0x2a,0xd8,0xff,0xfe,0x00,0x00]
ds_or_b32 v0, v254 offset:65535 gds
// GFX10: encoding: [0xff,0xff,0x2a,0xd8,0x00,0xfe,0x00,0x00]
ds_or_b32 v255, v... | Assembly |
9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22, R> (suspend (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, P22) -> R).partially21(p21: P21): suspend (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P22) -> R... | Kotlin |
lshr_b32 s[s_tmp], s[s_tmp], 4
s_lshl_b32 s[s_k_padded], s[s_tmp], 4
; gemm_m_per_block:16, gemm_n_per_block:128, source_access_order:1
s_mul_i32 s[s_tmp], s[s_dim_b], s[s_n]
s_mul_i32 s[s_tmp+1], s[s_tmp], s[s_k_padded]
s_lshr_b32 s[0], s[s_tmp+1], 11
s_bfe_u32 s[s_tmp+3], s[s_shift_pack_1], 0... | Assembly |
# Load modules
from __future__ import print_function
import os
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
# Change working Directory
os.chdir('C:/Users/pp9596/Documents/02 ZSP/00 PACKT/Book - Practical Time-Series Analysis/Avishek')
#Read dataset into a pandas.DataFrame
beer_df = pd.r... | Python |
tring(2)
End Sub
End Class
""";
await VerifyVB.VerifyCodeFixAsync(source, fixedSource);
}
#region Helpers
private static string InstantiateExpressionFromType_CS(string type)
{
return type switch
{
... | C# |
specimen book. </p>
</div>
<div class="event-item">
<div class="event-title">
<h2><img src="images/acoustic-jam.png" alt="Icon"> Lorem Ipsum is simply</h2>
</div>
<div class="event-sub-title">
<p>June 5<sup>th</sup> - 21<sup>th</sup></... | HTML |
equireArguments().getString("userName")
val uid = requireArguments().getString("uid")
val input = view.findViewById<EditText>(R.id.make_note_edit_text)
val noteMananger = getInstance()
val noteStr = uid?.let { noteMananger?.getNoteFromList(it) }
input.setText(noteStr);
bu... | Kotlin |
from selenium.webdriver.common.by import By
# from utilities.selenium_utils import Utils
from selenium.webdriver.remote.webdriver import WebDriver
from base.base_driver import BaseDriver
from selenium.webdriver.remote.webelement import WebElement
class TmHomePage(BaseDriver):
def __init__(self, driver: WebDriver)... | Python |
ynoStore.recordAdapter(opcode, methodHolder, index, adapter);
}
}
@Override
public ValueNode genAppendixNode(GraphBuilderContext builder, int index, int opcode, JavaConstant appendixConstant, FrameState frameState) {
JavaConstant appendix = appendixConstant;
assert supportsDynamicIn... | Java |
例如“aaaabbbb”,弦的一半是 5 楼。在回文串的一半,“a”重复三次,“b”重复两次,所以我们的结果是(5!) / (2!) * (3!).
## C++
```
// CPP program to find number of
// palindromic permutations of a
// given string
#include <bits/stdc++.h>
using namespace std;
const int MAX = 256;
// Returns factorial of n
long long int fact(int n)
{
long long int res = 1;... | Markdown |
// add all full pages to output buffer
for (int partition = 0; partition < pageBuilders.length; partition++) {
PageBuilder partitionPageBuilder = pageBuilders[partition];
if (!partitionPageBuilder.isEmpty() && (force || partitionPageBuilder.isFull())) {
... | Java |
CoverageLayer, getPanoramaAtPos, getViewer};
export default wikimediaProvider;
// mermaid-init.js
// Initializes the quarto-mermaid JS runtime
//
// Copyright (C) 2022 Posit Software, PBC
/**
* String.prototype.replaceAll() polyfill
* https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-wit... | JavaScript |
//////////////////////////////////////////////////////////////////////////
// Mapper003 CNROM //
//////////////////////////////////////////////////////////////////////////
using static VirtualNes.MMU;
namespace VirtualNes.Core
{
public class Mapper003 : Mapper... | C# |
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
*/
#include <linux/linkage.h>
#ifdef __LITTLE_ENDIAN__
# define SHIFT_1(RX,RY,IMM) asl RX, RY, IMM ; <<
# define SHIFT_2(RX,RY,IMM) lsr RX, RY, IMM ; >>
# define MERGE_1(RX,RY,IMM) asl RX, RY, IMM
# define MERGE... | Assembly |
ntsToProcess = List<_PendingEvent>.from(_eventQueue);
_eventQueue.clear();
int successCount = 0;
int failureCount = 0;
for (final event in eventsToProcess) {
try {
await _logEventWithRetry(
eventName: event.eventName,
parameters: event.parameters,
... | Dart |
.y
val out = FloatArray(2)
for (y in 0 until outHeight) {
for (x in 0 until outWidth) {
transformInverse(outX + x, outY + y, out)
val srcX = Math.floor(out[0].toDouble()).toInt()
val srcY = Math.floor(out[1].toDouble()).toInt()
val xWeight = out[0] - srcX
val yWeight = out[1] - srcY
... | Kotlin |
A catch statement.
CATCH_STATEMENT,
/// A fall through in a switch case.
FALL_THROUGH_ERROR,
/// A field without an initializer.
FIELD_WITHOUT_INITIALIZER,
/// A field whose initialization is not a constant.
LAZY_FIELD,
/// A local variable without an initializer.
LOCAL_WITHOUT_INITIALIZER,
//... | Dart |
e'), url('../fonts/open-iconic.woff') format('woff'), url('../fonts/open-iconic.ttf') format('truetype'), url('../fonts/open-iconic.otf') format('opentype'), url('../fonts/open-iconic.svg#iconic-sm') format('svg');
font-weight: normal;
font-style: normal;
}
.oi[data-glyph].oi-text-replace {
font-size: 0;
line-... | CSS |
horizontalAlignment: this.horizontalAlignment,
fillColor: this.fillColor,
strokeColor: this.strokeColor,
strokeWidth: this.strokeWidth
})];
}
}import { Component, OnInit } from '@angular/core';
import { combineLatest, of, timer } from 'rxjs';
@Component({
s... | Typescript |
,
Payload =
{
{ Name = "closingClient", Type = "bool", Nilable = false },
},
},
{
Name = "SavedVariablesTooLarge",
Type = "Event",
LiteralName = "SAVED_VARIABLES_TOO_LARGE",
Payload =
{
{ Name = "addOnName", Type = "cstring", Nilable = false },
},
},
},
Tables =
{
{
Nam... | Lua |
YM] = true; /*后跟符号为do*/
ptx = condition(nxtlev, ptx, lev); /*调用条件处理*/
cx2 = cx; /*保存循环体的结束的下一个位置*/
gen(fct.JPC, 0, 0); /*生成条件跳转,但跳出循环的地址未知*/
if (sym === symbolType.DOSYM) {
sym = getsym();
} else {
error(18); /*缺少do*/
... | Typescript |
((esdhc_read32(®s->sysctl) & SYSCTL_RSTA) && --timeout)
udelay(1000);
if (!timeout)
printf("MMC/SD: Reset never completed.\n");
}
int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
{
struct fsl_esdhc *regs;
struct mmc *mmc;
u32 caps, voltage_caps;
if (!cfg)
return -1;
mmc = malloc(sizeof(s... | C |
, y-4, x+20, y-4, LINE_SZ);
g.drawLine(x+19, y-4, x+19, y+59, LINE_SZ);
g.drawLine(x+8, y+58, x+19, y+58, LINE_SZ);
break;
case 3: // ALGO 6
g.drawLine(x+7, y, x+8, y-5, LINE_SZ);
g.drawLine(x+8, y-4, x+20, y-4, LINE_SZ);
g.drawLine(x+19, y... | C++ |
}
.gh-panel-header > h2{
cursor: move;
}
div.info-card.postbox {
/*max-width: 300px;*/
}
.info-card .postbox-header .hndle {
justify-content: left;
}
.info-card a.no-underline {
text-decoration: none;
}
.info-card .postbox-header img.emoji {
margin-right: 10px !important;
}
.info-card ul.info-list {
... | CSS |
): Promise<CommentPage> {
if (page === null) {
throw new Error('no comments page is currently loaded');
}
const data = await fetchPage(
page.previous ? page.previous.nextCommentCursor : null,
limit);
return {
previous: page.previous,
...data,
};
}
/**
* Fetches the next page of comment... | Typescript |
海浪拍打著我的身體,這讓我不禁想起我那可敬的母親。$B$B好心的$c,希望我能有像你一樣的好運,因為我一眼就看出你會做出一番轟轟烈烈的事業!$B$B我應該把卡林多的故事講給每個人聽,卡林多是一片充滿機遇的土地!如果你願意去海的那邊試試運氣,就乘著船去那迷人的塞拉摩港吧,到那裡去和我的精靈同伴菲歐拉·長耳談一談。$B$B她將指引你開始卡林多的冒險之旅!",
["O"] = "和塞拉摩的菲歐拉·長耳談話。",
["T"] = "菲歐拉·長耳",
},
[1133] = {
["D"] = "如果你剛從米奈希爾港坐船過來,那麼你應該先到阿斯特蘭納去。我確信像你這樣熱心的聯盟成員會在這裡有一番作為的。和辛德瑞... | Lua |
m.templates.active="1000",window.mdm.templates.html=Object.create(null),window.mdm.templates.html[1e3]='<div id="__mdm__template-start"></div><div class="__mdm__main-container __mdm__hidden"><div class="__mdm__content-container"><div class="__mdm__main-column"><div id="__mdm__blocks-start"></div><div id="__mdm__sldshw-... | HTML |
size());
transform(features.begin(), features.end(), featuresOut.begin(),
[this](const InternalKPFeature& f) { return this->exportFeature(f); });
return featuresOut;
}
GIFT::Feature GIFT::KeyPointFeatureTracker::exportFeature(const InternalKPFeature& feature) const {
GIFT::Feature lm;
lm.camCoo... | C++ |
on) any later version.
*
* AndroidIDE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the ... | Kotlin |
host verranno passati allo script come parametri della riga di comando. <p><footer><header> Créer des alias par lots </header> Cette page vous permet de créer plusieurs alias de messagerie à la fois à partir d'un fichier texte. Ce fichier doit répertorier un alias par ligne et chaque ligne doit avoir le format sui... | HTML |
Lighting Ahwatukee" />
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.min.js"></script>
<style type="text/css">
.baadc7d81c... | HTML |
nd-color: #fbf3f2;
border-color: #e6d8d7;
}
/* source #3: "color: #25242766" */
.zhc-workspace-form__load-info .zhc-svg-icon {
color: #25242794;
}
/* source #3: "transparent" */
.zhc-workspace-form__close {
border-color: transparent;
}
/* source #3: "#e9e9e9", "#f4f4f4" */
.zhc-workspace-f... | CSS |
x8&auto=format&fit=crop&w=987&q=80"
alt="Image Description"
/>
</div>
<!-- End Col -->
</div>
<!-- End Grid -->
</div>
<!-- End Col -->
<div class="mt-5 sm:mt-10 lg:mt-0 lg:col-span-5">
<div class="space-y-6 sm:space-y-8">
<!-- Title -->
... | HTML |
/*-
* Copyright (c) 1995 Bruce D. Evans.
* 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 copyright
* notice, this list of con... | C |
作?写你自己的。
### Solid 的性能如何?
我希望我只需要指出一件事,但它确实是几个重要设计决策的结合:
1. 显式响应性,因此只跟踪应该反应性的事物。
2. 编译时考虑到初始创建。Solid 使用启发式算法并结合正确的表达式来减少计算次数,同时保持关键更新的粒度和性能。
3. 响应式表达式只是函数。这使得 "消失的组件" 能够通过惰性 props 求值移除不必要的包装器和同步开销。
这些是目前独特的技术组合,使 Solid 在竞争中具有优势。
### 是否有 React 兼容包吗,或者以某种方式在 Solid 中使用我的 React 库?
没有。而且很可能永远不会有。虽然 API 相似,并且组件通常可以通过少量... | Markdown |
/*
* Copyright (c) 2003-2005 Silicon Graphics, Inc.
* All Rights Reserved.
*
* 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.
*
* This program is distributed in the hope that it would be ... | C |
)
Xcov = np.reshape(Xcov[:, update_at], (C, C, -1))
# loop through the updating intervals
last_n = 0
for j in range(len(update_at) - 1):
# get the eigenvectors/values.For method 'riemann', this should
# be replaced with PGA/ nonlinear eigenvalues
... | HTML |
###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c), 2013-2025, John McNamara, jmcnamara@cpan.org
#
from xlsxwriter.workbook import Workbook
from ..excel_comparison_test import ExcelComparisonTest
class... | Python |
;
Ok(address.required_signers())
}
/// Returns public key of current signer
pub fn public_key(&self, name: &str, root_hash: &H256, enckey: &SecKey) -> Result<PublicKey> {
let address = self.get_multi_sig_address_from_root_hash(name, root_hash, enckey)?;
Ok(address.self_public_key(... | Rust |
color: white;
font-family: sans-serif, Verdana;
font-size: smaller;
padding: 3px;
pointer-events: none; }
.jqvmap-pin {
pointer-events: none; }
.jqvmap-zoomin, .jqvmap-zoomout {
position: absolute;
left: 10px;
border-radius: 3px;
background: #000000;
padding: 3px;
color: white;
width: 10px;
... | CSS |
me,Values=Windows_Server-2016-English-Full-Base*" \
--query 'Images[*].[ImageId,Name,CreationDate]' \
--output table
```
- for ubuntu use this command :
```
aws ec2 describe-images \
--region eu-west-3 \
--owners 099720109477 \
--filters "Name=name,Values=ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server... | Markdown |
ing rid of scroll bar in smartsearch Advanced search */
#search-results {
clear: both;
}
#finder-filter-window {
overflow: visible;
}
#finder-search .in.collapse {
overflow: visible;
}
/* Fix for select element overflow on browser resizing */
.well {
select,
.chzn-container {
max-width: 100%;
}
}
/* Component... | CSS |
group("sub-group 1") {
toBeGreaterThan(0)
toBeLessThan(5)
}
group("sub-group 2") {
notToEqual(6)
}
}
}
}
}
}
package readme.examp... | Kotlin |
FA6262;--weui-RED-BG-100: #CF5148;--weui-RED-BG-110: #BA4940;--weui-RED-BG-130: #913832;--weui-RED-BG-90: #D3625A;--weui-SECONDARY-BG: rgba(255, 255, 255, .1);--weui-SEPARATOR-0: rgba(255, 255, 255, .05);--weui-SEPARATOR-1: rgba(255, 255, 255, .15);--weui-STATELAYER-HOVERED: rgba(0, 0, 0, .02);--weui-STATELAYER-PRESSED... | CSS |
hackSetIcon(mBinding.tvPoetAssistantLicense, R.drawable.ic_bullet)
hackSetIcon(mBinding.tvRhymerLicense, R.drawable.ic_bullet)
hackSetIcon(mBinding.tvThesaurusLicense, R.drawable.ic_bullet)
hackSetIcon(mBinding.tvDictionaryLicense, R.drawable.ic_bullet)
hackSetIcon(mBinding.tvGo... | Kotlin |
}),
[
dateAdapter(1997, 9, 2, 9, 0, 0, 0),
dateAdapter(1998, 9, 2, 9, 0, 0, 0),
dateAdapter(1999, 9, 2, 9, 0, 0, 0),
],
);
testRecurring(
'testYearlyWithEndDate',
buildGenerator({
frequency: 'YEARLY',
start: dateAdapter(1997, 9, 2, 9, 0, 0,... | Typescript |
ntry = undefined;
hashData.tail = hashData.head;
hashData.size = 0;
hashData.freeList = -1;
hashData.freeSize = 0;
}
}
/*@internal*/
export function ensureCapacity<K, V>(hashData: HashData<K, V>, capacity: number) {
if (capacity < 0) throw new RangeError();
const ... | Typescript |
rom the voice daemon: " + line, Helpers.LogLevel.Error);
break;
}
}
else
{
Logger.Log("Unrecognized data from the voice daemon: " + line, Helpers.LogLevel.Error);
}
}
}
} | C# |
客坐在自己座位上的概率为 $\frac{1}{n} * 0.0$。
- 第 $1$ 位乘客有 $\frac{n-2}{n}$ 的概率坐在第 $i$ 号座位上,$2 \le i \le n - 1$,每个座位被选中概率为 $\frac{1}{n}$。这样第 $2$ 位到第 $i - 1$ 位乘客的座位都不会被占。此时第 $i$ 位乘客,会在剩下的 $n - (i - 1)$ 个座位中进行选择:
- 坐在第 $1$ 位乘客的位置上,这样后面的乘客座位都不会被占,第 $n$ 位乘客一定能坐到自己位置上。
- 坐在第 $n$ 个乘客的位置上,这样第 $n$ 个乘客肯定无法坐到自己的位置上。
- 在第 $[... | Markdown |
/* Optimised simple memory fill
*
* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licence
* as published by the Free Software Foundation... | Assembly |
imal value
#[inline]
pub fn get_color(hex_value: i32) -> Color {
unsafe { ffi::GetColor(hex_value).into() }
}
/// Color fade-in or fade-out, alpha goes from 0.0f to 1.0f
#[inline]
pub fn fade(&self, alpha: f32) -> Color {
unsafe { ffi::Fade(self.into(), alpha).into() }
}
... | Rust |
则表达式 The regular expression pattern and applicable flags.
*/
//@@{ 搜索:search, 正则表达式:regexp, 正则_:RegExp }
搜索(正则表达式: 文字 | 正则_): 数字;
/**
* Returns a section of a string.
* @param 开始 The index to the beginning of the specified portion of stringObj.
* @param 结束 The index to the end of the sp... | Typescript |
n.js','_static/annotationdb/annotationdb.js'] %}
{% endif %}
{% if pagename == "datasets" %}
{%- set css_files = css_files + [ '_static/annotationdb/annotationdb.css'] %}
{%- set script_files = script_files + ['_static/hail_version.js','_static/datasets/datasets.js'] %}
{% endif %}
{% block title %}
{{ title|striptag... | HTML |
import re
from collections import defaultdict
class Uniswap:
def __init__(self):
self.token_balances = defaultdict(lambda : 0)
def process(self, tx):
tx = tx.replace(';', '')
if 'adds' in tx:
self.add_liquidity(tx)
elif 'removes' in tx:
self.r... | Python |
bool, pub stream: bool, pub tools: bool,
pub embeddings: bool, pub rerank: bool,
pub multimodal: bool, pub json_schema: bool,
}
#[async_trait::async_trait]
pub trait ProviderFactory: Send + Sync {
fn name(&self) -> &'static str;
fn caps(&self) -> ProviderCaps;
fn create_chat(&self, _model: &str, _cfg: &Prov... | Markdown |
32-32V144c0-17.7-14.3-32-32-32zM548.5 622.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40... | JavaScript |
hould handle concurrent handler invocation`() {
val executor = Executors.newFixedThreadPool(2)
val iterations = 100
val beaconSyncCompletions = AtomicInteger(0)
val fullSyncCompletions = AtomicInteger(0)
val latch = CountDownLatch(2)
// Set handlers once during initialization
syncController... | Kotlin |
|
| 筛选数据 | 给定一个包含100万条商品评论的数据集,筛选出其中所有给出1星评价的评论。 |
| 机器翻译 | 将一篇中... | Markdown |
self["title"] = _v
_v = arg.pop("uid", None)
_v = uid if uid is not None else _v
if _v is not None:
self["uid"] = _v
_v = arg.pop("uirevision", None)
_v = uirevision if uirevision is not None else _v
if _v is not None:
self["uirevision"] = _v
... | Python |
_0_5_6.a2_0_5_6 / 121.50390625)) / ((((vtstatic_0_5_6.a8_0_5_6 * vtstatic_0_5_6.a5_0_5_6) / vtstatic_0_5_6.a0_0_5_6) * (vtstatic_0_5_6.a6_0_5_6 - (vtstatic_0_5_6.a3_0_5_6 * 2818919103.8346252))) * ((vtstatic_0_5_6.a8_0_5_6 / vt_0_5_6.a4_0_5_6) * (vtstatic_0_5_6.a3_0_5_6 * (1.862645149230957E-09 + vtstatic_0_5_6.a7_0_5_... | C# |
[21177] = "Símbolo de Reyes",
[21178] = "Guantes de Poder de la tierra",
[21179] = "Sortija de Cólera de tierra",
[21180] = "Golpe de tierra",
[21181] = "Gracia de la Tierra",
[21182] = "Sortija de poder terráneo",
[21183] = "Jubón Poder terrenal",
[21184] = "Brazales de roca profunda",
[21185] = "Orbe Calmaterra",
[21... | Lua |
}
header_size -= len;
} while (header_size >= 0);
switch (rate_flag) {
case -1:
av_log(s, AV_LOG_ERROR, "COMM tag not found!\n");
return -1;
case 44:
st->codecpar->sample_rate = 44100;
break;
case 22:
st->codecpar->sample_rate = 22050;
break... | C |
the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.flaviofaria.catalog.sample.resources
import android.os.Bundle
import andr... | Kotlin |
#[pallet::weight((<T as Config>::WeightInfo::get_price(), DispatchClass::Operational))]
pub fn get_price(origin: OriginFor<T>,currency_id1: CurrencyId, currency_id2: CurrencyId) -> DispatchResultWithPostInfo {
let price = <Self as PriceData<CurrencyId>>::get_price(currency_id1,currency_id2).ok_or(Error::<T>::Overf... | Rust |
) * (total_original_frames - total_processed_frames) if total_processed_frames > 0 and total_processed_frames < total_original_frames else 0
status_text.info(f"Procesando frame {total_processed_frames}/{total_original_frames}... ETA: {eta:.0f}s")
# --- Limpieza Final ---
cap.release(); tfil... | Python |
48176
created: 2015-08-28T15:08:27Z
last-modified: 2015-08-28T15:08:27Z
Domain Name: ZELENAYA.NET
Registry Domain ID: 1514637937_DOMAIN_NET-VRSN
Updated Date: 2019-07-18T21:17:27Z
Creation Date: 2008-08-18T09:10:14Z
Name Server: NS.OOONET.RU
Name Server: NS2.OOONET.RU
[zelenay.... | Markdown |
:IntTy::I64)
| (ty::IntTy::I128, chalk_ir::IntTy::I128)
),
(ty::Uint(ty1), Scalar(Uint(ty2))) => matches!(
(ty1, ty2),
(ty::UintTy::Usize, chalk_ir::UintTy::Usize)
| (ty::UintTy::U8, chalk_ir::UintTy:... | Rust |
F 0062;00E0 05AE 1E01F 0315 0062;0061 05AE 0300 1E01F 0315 0062;00E0 05AE 1E01F 0315 0062;0061 05AE 0300 1E01F 0315 0062; # (a◌̕◌̀◌֮◌𞀟b; à◌֮◌𞀟◌̕b; a◌֮◌̀◌𞀟◌̕b; à◌֮◌𞀟◌̕b; a◌֮◌̀◌𞀟◌̕b; ) LATIN SMALL LETTER A, COMBINING COMMA ABOVE RIGHT, COMBINING GRAVE ACCENT, HEBREW ACCENT ZINOR, COMBINING GLAGOLITIC LETTER YERU, LA... | Kotlin |
will be set as down a few seconds later if the connection is not re-established.
func (sys *System) closeWebSocketConnection() {
if sys.WsConn != nil {
sys.WsConn.Close(nil)
}
}
// extractAgentVersion extracts the beszel version from SSH server version string
func extractAgentVersion(versionString string) (semver... | Go |
ITaskResult<T>> {
const addAction = action as AddAction<T>;
return this.execute(() => this.add(addAction.data), `Add a new document to the store [${this.options.storeName}].\n`);
}
}
export default DataStore;import { isWindows } from './platform';
export function generateUri(path: string, scheme =... | Typescript |
IntVar>()
val result =
stbi_info_from_memory(buffer.pointer.reinterpret(), buffer.size32, x.ptr, y.ptr, channels.ptr)
return if (result != 0) {
STBInfo(x.value, y.value, Channels.values()[channels.value - 1])
} else {
throw STBException(failureReason)
}
} finally {
VirtualStack.p... | Kotlin |
3__平台搭建.mp4 114.66M
| └──11.4__下单和美化页面.mp4 141.34M
├──第1章__APP逆向入门
| ├──1.1__课程安排.mp4 15.92M
| ├──1.2__今日概要.mp4 22.59M
| ├──1.3__安装模拟器.mp4 25.90M
| ├──1.4__win和max系统疑问.mp4 3.31M
| ├──1.5__charles抓包.mp4 189.08M
| ├──1.6__drony处理无法抓包的情景.mp4 124.32M
| ├──1.7__反编译工具jeb、jadx、gda.mp4 155.70M
| ├──1.8__案例:... | Markdown |
and not by the content of their character.`,
watermark: `PAX C`,
cardSetId: insertResult.result![0].id
});
await queryRunner.insert('white_card', {
text: `Smashing all the pottery in a Pottery Barn in search of rupees.`,
watermark: `PAX C`,
cardSetId: insertResult.result![0].id
... | Typescript |
总收入排名如何?|
|体育比赛|2022年卡塔尔世界杯足球赛的比赛场馆有哪些?|
|心理学|探讨一下人类在压力下的应对机制,以及如何缓解焦虑情绪?|
| 天气 | 明天北京的天气如何? |
| 新闻分类 | 这篇文章应该属于哪个新闻分类? |
| 翻译 | 将 "How are you?" 翻译成中文。 |
| 情感分析 | 根据这段文字,作者的情绪是积极还是消极? |
| 财经 | 最近苹果公司的股票表现怎样? |
| 编辑修改 | 请修改这段文字中的语法错误和拼写错误。 |
| 建议意见 | 你认为我应该怎样提高英语口语水平? |
| 对比分析 | 与去年相比,今年公司业绩有何变化? |
| 推荐系统 | 基于我的购买记录,请推... | Markdown |
start_height: u32) -> DBIterator {
// [height u32] -> [blockhash U256]
let key = big_endian_from_u32(start_height);
// include_start = true
self.block_index
.iterator(IteratorMode::From(&key, Direction::Forward))
}
pub fn read_tx(&self, hash: &U256) -> Result<Option... | Rust |
,0x48,0x7d,0xf5]
vcvtuw2ph %zmm29, %zmm30
// CHECK: vcvtuw2ph {rn-sae}, %zmm29, %zmm30
// CHECK: encoding: [0x62,0x05,0x7f,0x18,0x7d,0xf5]
vcvtuw2ph {rn-sae}, %zmm29, %zmm30
// CHECK: vcvtuw2ph 268435456(%rbp,%r14,8), %zmm30 {%k7}
// CHECK: encoding: [0x62,0x25,0x7f,0x4f,0x7d,0xb4,0xf5,0x00,0x00,... | Assembly |
("invalid parameter type: %T", i)
}
// validate (if necessary)...
return nil
}
3. Implement the params.ParamSet interface:
func (p *MyParams) ParamSetPairs() params.ParamSetPairs {
return params.ParamSetPairs{
params.NewParamSetPair(KeyParameter1, &p.MyParam1, validateMyParam1),
params.NewParamSetPa... | Go |
p.file_name()
.unwrap_or(OsStr::new(""))
.to_str()
.unwrap_or("")
)
}
use cargo_snippet::snippet;
#[snippet("Modulo")]
#[snippet("ncr")]
pub struct Modulo {
fact: Vec<usize>,
inv_fact: Vec<usize>,
modulo: usize
}
#[snippet("Modulo")]
#[snippet("ncr")]
impl Modulo {
pub fn new(n: ... | Rust |
um);
byte ck_a = (byte)(checksum & 0xFF); ///< High byte
byte ck_b = (byte)(checksum >> 8); ///< Low byte
packet[i] = ck_a;
i += 1;
packet[i] = ck_b;
i += 1;
if (BaseStream.IsOpen)
{
... | C# |
one, [0,-1,-1,-1], null , [-1,-1,0,0] , [-1,-1,0,0,0,1,1,0] , "city1rsw")} ));
deck = deck.concat(addTiles(3, function() { return new TileSpec(TileFeature.None, [0,-1,-1,-1], null , [-1,0,1,2] , [-1,-1,0,1,1,2,2,0] , "city1rswe")} ));
deck = deck.concat(addTiles(3, f... | Typescript |
yptoki: opencryptoki-3.16.0-5.el8 -> opencryptoki-3.16.0-7.el8_5
* openssl: openssl-1:1.1.1k-4.el8 -> openssl-1:1.1.1k-5.el8_5
* poppler: poppler-20.11.0-3.el8 -> poppler-20.11.0-3.el8_5.1
* postgresql: postgresql-12.7-2.module+el8.5.0+686+20453ecc -> postgresql-12.9-1.module+el8.5.0+724+9de6e501
* qemu-kvm: qemu-kvm-1... | Markdown |
against the Amazon Linux 2, Ubuntu and Windows variants.
```{ .yaml .annotate linenums="1" hl_lines="5" }
# buildspec.yml
version: 0.2
env:
git-credential-helper: yes # (1)
phases:
install:
commands:
- curl https://raw.githubusercontent.com/gembaadvantage/uplift/main/scripts/install | bash
pre_build:... | Markdown |
#if self.prefix=='face':
# #print('fg-bg', self.stride, n_fg, num_bg)
# STAT[0]+=1
# STAT[self.stride][0] += config.TRAIN.RPN_BATCH_SIZE
# STAT[self.stride][1] += n_fg
# STAT[self.stride][2] += np.sum(fg_score[fg_inds]>=0)
# #_sta... | Python |
="container"><!-- container -->
<ul class="breadcrumb">
<li><a href="foundation-module.html"><img src="foundation.png"/> Foundation</a></li>
<li><a href="http.html">RESTful API</a></li>
<li><a href="search.html">Search</a></li>
<li><b>Search Pa... | HTML |
theft.ReturnSite = Attacker.SiteHistory[0].Site;
}
if (!theft.ReturnSite.Events.Contains(theft))
{
theft.ReturnSite.AddEvent(theft);
theft.ReturnSite.Events = theft.ReturnSite.Events.OrderBy(ev => ev.Id).ToList();
... | C# |
CA">THE FOREMAN: Yes.</span></p>
<p class="Citation1"><span lang="EN-CA">His LORDSHIP: I may say that not often is the evidence read back to you; I am going to accede since one of the counsel said that the evidence could be read back.</span></p>
<p class="Page"><span lang="EN-CA">[Page 1027]</span></p>
<p c... | HTML |
маюць уласны раздзел балансу на галоўнай старонцы. Гэтыя рахункі таксама падтрымліваюць тры віды аперацыяў.
</dd>
<dt>Інвестыцыйны рахунак</dt>
<dd>
Іншы тып рахунку, які падтрымлівае MMEX, — гэта інвестыцыйны рахунак. Гэты тып рахункаў дазваляе адсочваць інвестыцыі ў акцыі/аблігацы... | HTML |
</tr>
<tr class="downloadfile vrml">
<th>VRMLファイル</th>
<td class="filename">dem.wrl</td>
<td><a href="javascript:void(0);" class="button" onclick="Download('dem.wrl',this);">ダウンロード</a></td>
</tr>
<tr class="downloadfile webgl">
<td colspan="3" style="text-align:left">以下のファイル(ワールドファイルを除く)をウェブサ... | HTML |
[Optional]object headerfault)
{
base.__construct(context, faultstring, faultcode);
return null;
}
#endregion
#region Implementation Details
/// <summary>
/// Populates the provided <see cref="DTypeDesc"/> with this class's methods a... | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.