content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
Number(value || 0);
onChangeDisplayValue({
...ydisplay,
maxValue: value ? count : value,
});
}}
/>
</div>
</Fragment>
</Fragment>
);
}
}
export function bidirectionalBarChartYAxisPanelGenerator(p... | JavaScript |
l nach Sturmwind",
[183326] = "Shattrathportal nach Donnerfels",
[183327] = "Shattrathportal nach Unterstadt",
[183331] = "Höllenorckäfig",
[183332] = "Höllenorckäfig",
[183333] = "Vorposten der Allianz",
[183338] = "Imarions Schwert",
[183339] = "Makhas Schwert",
[183340] = "Imarions Schild",
[183341... | Lua |
18-7.911 5.816-13.324 0 0-.06-.886-.071-1.482a17.988 17.988 0 014.104-11.707 13.078 13.078 0 00-7.725 9.103l-.05.238a21.253 21.253 0 01-13.29-12.931q-.126-.355-.238-.715a18.043 18.043 0 001.483 6.435 22.51 22.51 0 005.103 7.486c1.301 1.175 3.288 2.887 4.527 4.121"/><path fill="currentColor" stroke="currentColor" stroke... | Dart |
| **模块** | **使用** | **Python 版本** |
| `optparse` | 不赞成 | `< 2.7` |
| `sys` | `sys.argv`中的所有参数(基本) | 全部的 |
| `argparse` | 构建命令行界面 | `>= 2.3` |
| `fire` | 自动生成**命令行界面**(**CLIs**) | 全部的 |
| `docopt` | 创建 CLIs 接口 | `>= 2.5` |
# Sys.argv
`sys`模块用于访问命令行参数。`len(sys.argv)`函数包含参数的数量。要打印所有参数,只需执行`str(sys.argv)`。让我们看一个例子:
```... | Markdown |
--local yueMing={"正","二","三","四","五","六","七","八","九","十","冬","腊"}
--
--function paiYue(inYear) --农历排月序计算,可定出农历
-- --y=in1.value-0
-- local y = inYear-0
-- local zq={},jq={}, hs={} --中气表,节气表,日月合朔表
--
-- --从冬至开始,连续计算14个中气时刻
-- local i,t1=365.2422*(y-2000)-50 --农历年首始于前一年的冬至,为了节气中气一起算,取前年大雪之前
-- for i=0,13 do --计算... | Lua |
rror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{vi... | CSS |
Exec(ctx); err != nil {
panic(err)
}
}
// defaults sets the default values of the builder before save.
func (trbc *TestResultBESCreate) defaults() {
if _, ok := trbc.mutation.TestStatus(); !ok {
v := testresultbes.DefaultTestStatus
trbc.mutation.SetTestStatus(v)
}
}
// check runs all checks and user-defined ... | Go |
- URL: https://www.icloud.com/shortcuts/5bb1503c96cb48349ffa4f19d5b2c641
- Source: https://routinehub.co
- Description: DescriptionLatest Release NotesFeedbackSimple shortcut to mark bills as paid in calendar app.Searches events on calendar selected for events within the last 7 days. Asks if bill is paid, answer ye... | Markdown |
: 12px; }
&-airplane-headline {
font-size: 1.1em;
font-weight: bold;
text-align: center;
}
&-airplane-text { color: $fg_color; }
&-header-icon { icon-size: 32px; }
&-scroll-view {
border: 1px solid $borders_color;
border-radius: 2px;
background-color: $base_color;
}
&-header {... | CSS |
order-color:var(--ac-bu)}#write .md-alert-note a kbd>svg :is(path,rect,ellipse,polygon,use){fill:#fff}#write .md-alert-note em a kbd{color:var(--ac-bu);background:var(--d-bc);border-color:currentColor}#write .md-alert-note em a kbd>img[src*=fill\=text]{filter:drop-shadow(12345px 0 0 var(--ac-bu))!important}#write .md-a... | CSS |
using ArchaicQuestII.GameLogic.Client;
using ArchaicQuestII.GameLogic.Core;
using Moq;
namespace ArchaicQuestII.GameLogic.Tests.Core
{
/* tests fail becasue of dateTime now is not mocked in the function that returns the correct string for the hour */
public class Time
{
private readonly Mock<IWrit... | C# |
/*
Copyright (C) 2019 Arto Hyvättinen
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 version.
This program is distri... | C |
�限的监察机关通报;
(六)任免机关、单位应当自本条第一款第五项决定作出之日起1个月以内,将处分、免予处分、不予处分或者撤销案件的决定以书面形式通知被调查人及其所在单位,并在一定范围内宣布,涉及国家秘密、商业秘密或者个人隐私的,按照国家有关规定办理;
(七)承办部门应当将处分有关决定及执行材料归入被调查人本人档案,同时汇集有关材料形成该处分案件的工作档案。
严禁以威胁、引诱、欺骗等非法方式收集证据。以非法方式收集的证据不得作为给予处分的依据。不得因被调查人的申辩而加重处分。
第二十八条 重大违法案件调查过程中,确有需要的,可以商请有管理权限的监察机关提供必要支持。
违法情形复杂、涉及面广或者造成重大影响,由任免机关、单位调... | Markdown |
* Determine that should execute a query/command or not.
*/
shouldExecute(): boolean
}
}
import { useEffect, useState } from 'react'
/**
* Helper function to prevent react hydration mismatches.
* Use the returned boolean value to stop rendering of any code that
* may cause potential server/client mi... | Typescript |
art", """
library foo;
const TOKEN = "before";
foo() => TOKEN;
"""),
d.file("transformer.dart", dartTransformer("munge"))
])
]).create();
d.dir(appPath, [
d.appPubspec({
"foo": {
"path": "../foo"
}
}),
d.dir("web", [
d.file... | Dart |
ware}/{,**} r,\n",
} {
c.Assert(string(data), testutil.Contains, line)
}
for _, line := range []string{
// defaultOtherBaseTemplateRules should not be present
"# Default rules for non-core base runtimes\n",
"/{,s}bin/** mrklix,\n",
} {
c.Assert(string(data), Not(testutil.Contains), line)
}
}
}... | Go |
/* **********************************************************
* Copyright (c) 2011-2017 Google, Inc. All rights reserved.
* Copyright (c) 2008-2010 VMware, Inc. All rights reserved.
* **********************************************************/
/* Dr. Memory: the memory debugger
*
* This library is free software... | C |
F-4F-4E", true).ToList();
Check.That(hits.Count).IsEqualTo(4);
hits = usrClass1.FindInValueData("44-65-62", true).ToList(); //finds deb
Check.That(hits.Count).IsEqualTo(2);
hits = usrClass1.FindInValueData("44-65-73", true).ToList(); //finds des
Check.That(hits.Count).IsEqua... | C# |
eScreenViewState extends State<ProfileScreenView> {
final _formKey = GlobalKey<FormState>();
bool _changed = false;
late String _name;
String? _nick;
DateTime? _birthday;
String? _phone;
String buildGroupNamesFromIDs({List<String>? ids}) {
var result = '';
if (ids == null || ids.isEmpty) return r... | Dart |
ymfile_init, /* read initial info, setup for sym_read() */
elf_symfile_read, /* read a symbol file into symtab */
NULL, /* sym_read_psymbols */
elf_symfile_finish, /* finished with file, cleanup */
default_symfile_offsets, /* Translate ext. to int. relocation */
elf_symfile_segments, /* Get segment inf... | C |
scdk/v2"
"github.com/aws/aws-cdk-go/awscdk/v2/awsiotwireless/internal"
"github.com/aws/constructs-go/constructs/v10"
)
// Creates a new service profile.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.c... | Go |
ок з подальшим її завантаженням на сервер і використання її у вигляді фону для додавання/оновлення даних,
- Вашого смартфону. Є багато застосунків для навігації з використанням даних OSM, а також застосунків, які допоможуть вам провести дослідження. Тут перераховано лише декілька, але цей список щодня зростає, і дея... | Markdown |
s traced during recording (by
running to a breakpoint at that system call). It does the above
effects after setting %r11 to %rflags.
For untraced system calls there is no trap to rr during recording or
replay, so we must handle these issues here. We do not need
un... | Assembly |
;
int dir;
public:
void cleanRoom(Robot& robot)
{
string code = to_string(0)+"#"+to_string(0);
visited.insert(code);
DFS(robot,0,0,0); //[x,y,dir]
}
void DFS(Robot& robot, int x, int y, int curDir)
{
vector<pair<int,int>>dir({{0,1},{1,0},{0,-1},{-1,0}})... | C++ |
avage Trample" ],
description: `Trample deals x150% bonus damage. This bonus is reduced by x50% for each enemy hit after the first.`,
nameLocalized: {
"deDE": "Verbessertes Niedertrampeln",
"esES": "Atropellar mejorado",
"esMX": "Arrollamiento Potenciado",
"frFR": "Piétinement renforcé",
"itIT": "Cal... | JavaScript |
ntext.
*/
LEAF(_save_fp_context)
.set push
.set hardfloat
li v0, 0 # assume success
cfc1 t1, fcr31
EX2(s.d $f0, 0(a0))
EX2(s.d $f2, 16(a0))
EX2(s.d $f4, 32(a0))
EX2(s.d $f6, 48(a0))
EX2(s.d $f8, 64(a0))
EX2(s.d $f10, 80(a0))
EX2(s.d $f12, 96(a0))
EX2(s.d $f14, 112(a0))
EX2(s.d $f16, 128(a0))
EX2(s.d ... | Assembly |
"state_id": "41"
},
{
"id": "5382",
"name": "Belebathan",
"state_id": "41"
},
{
"id": "5383",
"name": "Beliator",
"state_id": "41"
},
{
"id": "5384",
"name": "Bhadreswar",
"state_id": "41"
},
{
"id": "5385",
"name": "Bhandardaha",
"state_id": "41"
},
{
"id": "5386",
"name": "Bhanga... | Dart |
ocesses a token starting with a percent sign:
* %
* %%]
* @private
*/
private _processPercent() : BarlomToken {
if ( this._scanner.hasLookAhead1Char( '%' ) && this._scanner.hasLookAhead2Char( ']' ) ) {
this._scanner.advanceSameLine( 2 );
return this._makeToken( BarlomTokenType.GRAPH_E... | Typescript |
ll buffers and sfbqc = %d.\n",
i, j, bcount);
error = 15;
ns_init_card_error(card, error);
return error;
}
/* Allocate iovec buffers */
skb_queue_head_init(&card->iovpool.queue);
card->iovpool.count = 0;
for (j = 0; j < NUM_IOVB; j++)
{
struct sk_buff *iovb... | C |
requestConfig:
RequestConfig(ignoreLoading: true, ignoreErrors: true));
exit(0);
} else {
await tbClient.login(LoginRequest('tenant@thingsboard.org', 'tenant'));
}
} catch (e, s) {
print('Error: $e');
print('Stack: $s');
}
}
import 'package:thingsboard_pe_client/thingsboard... | Dart |
毫秒),默认 6000L */
private var timeout: Long = 6000L
/** 连续两次定位的最小时间间隔(毫秒),默认 5000ms */
private var minTimeMs: Long = 5000L
/** 连续两次定位的最小距离(米),默认 1 米 */
private var minDistanceM: Float = 1f
/** 是否开启抖动过滤,默认 false */
private var isFilter: Boolean = false
/** 抖动过滤最小纬度 过滤细微跳变 */
// 纬度每度... | Kotlin |
# https://leetcode.com/problems/maximum-product-subarray/
class Solution:
def maxProduct(self, nums: List[int]) -> int:
mp = nums[0] # max product
cp = 1 # current product
for i in nums:
cp *= i
mp = max(cp, mp)
if cp == 0: cp = 1
... | Python |
lineMask = null;
private MaskVectorLayer iceMasks = null;
private AnalysisProcess proc=null;
public VDSAnalysisAction() {
super("vds","Analysis/VDS");
}
public String getDescription() {
return "Compute a VDS (Vessel Detection System) analysis.\n"
+ "Use \"vds k-dist 1... | Java |
PropHash = `w_pi_pistol`,
WeaponHash = `weapon_pistol`,
Item = 'weapon_pistol',
Bone = 11816,
Position = {
male = {
default = { 0.00, -0.01, -0.22, -90.00, 2.00, 3.50 },
tshirt_1 = {
[154] = { 0.01, -0.02, 0.20, -98.50,... | Lua |
import pytest
from pydantic import BaseModel, Field
from flask_openapi3 import OpenAPI
app = OpenAPI(__name__)
app.config["TESTING"] = True
@pytest.fixture
def client():
client = app.test_client()
return client
class LoginRequest(BaseModel):
email: str = Field(..., description="User email")
passwo... | Python |
"f": 7350},
{"h": "趩", "p": "chì", "sp": "chi", "r": "走", "sc": 18, "l": 5, "f": 7351},
{"h": "篩", "p": "shāi", "sp": "shai", "r": "竹", "sc": 16, "l": 5, "f": 7352},
{"h": "簾", "p": "lián", "sp": "lian", "r": "竹", "sc": 19, "l": 5, "f": 7353},
{"h": "絪", "p": "yīn", "sp": "yin", "r": "糸", "sc": 12, "l": 5, "f"... | Dart |
_config_overload_v3.OverloadManager{
RefreshInterval: durationpb.New(250 * time.Millisecond),
}
includeMaxHeapMonitoring(bootstrap, c.MaximumHeapSizeBytes)
includeMaxConnectionMonitoring(bootstrap, c.GlobalDownstreamConnectionLimit)
}
return bootstrap
}
func adminAccessLog(logPath string) []*envoy_config_a... | Go |
va.util.List<io.littlehorse.sdk.common.proto.JsonIndex> jsonIndexes_;
/**
* <pre>
* Valid for JSON_OBJ and JSON_ARR variables only. List of JSON fields
* to index.
* </pre>
*
* <code>repeated .littlehorse.JsonIndex json_indexes = 4;</code>
*/
@java.lang.Override
public java.util.List<io.littl... | Java |
page, Server server) {
server.setRoute("/popup.html", exchange -> {
exchange.getResponseHeaders().set("Content-type", "text/html");
exchange.sendResponseHeaders(200, 0);
try (Writer writer = new OutputStreamWriter(exchange.getResponseBody())) {
writer.write("<script>window.time = Date.now(... | Java |
7F 83 E3 78 */ mr r3, r28
/* 8038727C 00382EDC 8B FC 00 E5 */ lbz r31, 0xe5(r28)
/* 80387280 00382EE0 4B FF EA 99 */ bl GetVtxPos__Q34nw4r3lyt4PaneCFv
/* 80387284 00382EE4 90 81 00 0C */ stw r4, 0xc(r1)
/* 80387288 00382EE8 7F E5 FB 78 */ mr r5, r31
/* 8038728C 00382EEC 7F A6 EB 78 */ mr r6, r29
/* 80387290 00382E... | Assembly |
= R255+1 end
if (G255%10 == 0) then G255 = G255+1 end
if (B255%10 == 0) then B255 = B255+1 end
return "\255"..string.char(R255)..string.char(G255)..string.char(B255)
end
function GetRedColourStrings(tTime, sLoad, name, redStr, deltaTime)
local u = math.exp(-deltaTime/5) --magic colour changing rate
if tTime>max... | Lua |
llx %l7, 32, %o3
mov %l3, %l6
casa [%o5] %asi, %l7, %l6
! move %l6(lower) -> %o3(lower)
srl %l6, 0, %o5
or %o5, %o3, %o3
add %l4, 1, %l4
P1121: !_ST [11] (maybe <- 0x4000001c) (FP)
! 0 th moved, current_fp_src=20
fmovs %f16, %f20
fadds %f16, %f17, %f16
st %f20, [%i2 + 64 ]
P1122: !_PREFETCH [14] (Int)
prefetch... | Assembly |
OrderItem.category.name))"));
offers.get(1).setName("secondOffer");
fgProcessor.filterFulfillmentGroupLevelOffer(order, qualifiedOffers, offers.get(0));
fgProcessor.filterFulfillmentGroupLevelOffer(order, qualifiedOffers, offers.get(1));
offerApplied = fgProcessor.applyAllFulfillmentGro... | Java |
Assertions.assertThat(secondNestedTreeInitCounter.get()).isEqualTo(1)
mLithoTestRule.act(testLithoView) { ViewPredicates.hasVisibleText("ExpensiveCachedValue: 200") }
}
companion object {
private fun expensiveRepeatFunc(prefix: String, num: Int = 20, suffix: String? = null): String {
return Strin... | Kotlin |
_language_extensions_default = "INFO" ":" "extensions_default["
/* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */
#if (defined(__clang__) || defined(__GNUC__) || \
defined(__TI_COMPILER_VERSION__)) && \
!defined(__STRICT_ANSI__)... | C++ |
"PureKeyword", "TypeKeyword", "ViewKeyword", "ConstructorKeyword",
"FallbackKeyword", "ReceiveKeyword", "Identifier", "IdentifierStart",
"IdentifierPart", "StringLiteralFragment", "DoubleQuotedStringCharacter",
"SingleQuotedStringCharacter", "Vers... | Python |
s, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. ... | Python |
dt)
if not GameState.paused then
Profiler.Begin('Actions.Mine.onUpdateActive')
if not e.jobState then e.jobState = Enums.JobStateMine.None end
e.jobState = e.jobState + 1
if e.jobState == Enums.JobStateMine.MovingToAsteroid then
local item = self.item
local m... | Lua |
T_AMPS,
"pBB Density Matrix", "pSS Density Matrix", "Theta BS Intermediates", foccB_, noccB_, nvirB_, evalsB_,
PSIF_SAPT_AMPS, "Y2 BS Amplitudes", "T2 BS Amplitudes");
if (nat_orbs_t2_) {
t2OVOV(PSIF_SAPT_AMPS, "tARAR Amplitudes", "tARAR NO Amplitudes", "Theta AR Intermediates",
... | C++ |
l function CommandsAppearOnPage( TotalCommandsCount, PageNumber )
local FirstIndexToShow, LastIndexToShow = GetBoundaryIndexes( PageNumber )
return FirstIndexToShow <= TotalCommandsCount
end
local function CommandAppearsOnPage( Index, PageNumber )
local LastIndexToShow = PageSize * PageNumber
local Fi... | Lua |
ilter((group, index) => {
const { length: groupLength } = group
const isEmpty = groupLength === 0
const { [index - 1]: previousGroup } = overlappingGroups
const hasDuplicates =
previousGroup && previousGroup.indexOf(group[0]) !== -1
return !isEmpty && !hasDuplicates
})
}
import sqlite3 fro... | Typescript |
ite the Boolean for.
* @param value The Boolean value to write to the preferences.
* @param domain The bundle ID of the plug-in.
*/
#define WRITE_GROWL_PREF_BOOL(key, value, domain) do {\
WRITE_GROWL_PREF_VALUE(key, value ? kCFBooleanTrue : kCFBooleanFalse, domain); } while(0)
/*! @function READ_GROWL_PREF_INT
... | C |
z3.foldl_exps(0, |acc, e| acc + *e), 6);
}
#[test]
fn test_foldl_exps_4d() {
let xy2z3t4 = Mon4d { exps: [Deg(1), Deg(2), Deg(3), Deg(4)] };
assert_eq!(xy2z3t4.foldl_exps(0, |acc, e| acc + *e), 10);
}
#[test]
fn test_num_mons_with_deg_lim() {
assert_eq!(monomial::num_mons_with_deg_lim(MaxMonDeg(2), 2), 6);
... | Rust |
chFormalName: tr[11],
UNGEGNSpanishFormalName: tr[12],
UNGEGNRussianShortName: tr[13],
UNGEGNRussianFormalName: tr[14],
UNGEGNLocalShortName: tr[15],
UNGEGNLocalFormalName: tr[16],
BGNEnglishShortNameGazetteerOrder: tr[17],
BGNEnglishShortNameReadingOrder: tr[18],
BGNEnglishLongName: ... | Go |
一候,原来是个会说鬼话的。” c:69
### 途中不回头
大小姐不喜欢项云,那他就也不喜欢项云,对于不喜欢的人做恶事是正常的,对不喜欢的人好才是有病。 c:182
### 做事从心为喜欢
做事最先是为自己,然后才是为别人,为自己喜欢做事,别人喜不喜欢有什么要紧的。 c:151
### 自家人上门
真的姑爷那边有个假小姐,真小姐这边有个假姑爷。 c:132
### 知趣之甘
如果她死了,她的地方她的人,我做丈夫的不能扔下不管啊。” c:231
### 丈夫的心意
我们现在站在朝廷里,这些人并不能真的奈何我们,但讲礼数能做事顺利,能积蓄更多更大的力量应对真正的麻烦。” c:28
### 妻子的体贴
,将来他死了... | Markdown |
.2 right now.
TEST_P(TlsConnectTls13, ExporterSha384) {
EnsureTlsSetup();
client_->EnableSingleCipher(TLS_AES_256_GCM_SHA384);
Connect();
CheckKeys();
ExportAndCompare(client_, server_, false);
}
TEST_P(TlsConnectTls13, ExporterContextEmptyIsSameAsNone) {
EnsureTlsSetup();
if (version_ >= SSL_LIBRARY_VER... | C++ |
PackedMixedx10DoubleInt32x2_a7 =
Pointer<Struct9BytesPackedMixed>.fromAddress(0).ref;
Struct9BytesPackedMixed passStruct9BytesPackedMixedx10DoubleInt32x2_a8 =
Pointer<Struct9BytesPackedMixed>.fromAddress(0).ref;
Struct9BytesPackedMixed passStruct9BytesPackedMixedx10DoubleInt32x2_a9 =
Pointer<Struct9BytesPac... | Dart |
urs(0, 0, 0, 0);
let end = new Date(this.end);
end.setHours(0, 0, 0, 0);
let classes = {
off: date.getMonth() + 1 !== this.month,
weekend: date.getDay() === 6 || date.getDay() === 0,
today: dt.setHours(0, 0, 0, 0) == new Date().setHours(0, 0, 0, 0),
active:
d... | JavaScript |
-nav .kt-nav__item .kt-nav__link > .kt-nav__link-text {
font-size: 1.1rem;
font-weight: 500;
color: #a7abc3;
-webkit-transition: color 0.3s ease;
transition: color 0.3s ease; }
.kt-faq-v1 .kt-nav .kt-nav__item:hover > .kt-nav__link > .kt-nav__link-text, .kt-faq-v1 .kt-nav .kt-nav__item.k... | CSS |
ed 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have... | Java |
or();
while (i.hasNext()) {
head.setHead(i.next());
if (i.hasNext()) {
head.setTail(new NonEmptyFSList(jCas));
head = (NonEmptyFSList) head.getTail();
} else {
head.setTail(new EmptyFSList(jCas));
}
}
// Print what is expected
// for (FeatureStructure fs ... | Java |
public companion object {
public const val DEFAULT_OVERRIDES_FLAG: Int = 0
public const val TURN_LEFT_ANIM_FLAG: Int = 0x1
public const val TURN_RIGHT_ANIM_FLAG: Int = 0x2
public const val WALK_ANIM_FLAG: Int = 0x4
public const val WALK_ANIM_BACK_FLAG: Int = 0x8
public co... | Kotlin |
8,9]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.implies=e.SET_CONTEXT_COMMAND_ID=e.IContextKeyService=e.RawContextKey=e.ContextKeyNotRegexExpr=e.ContextKeyRegexExpr=e.ContextKeySmallerEqualsExpr=e.ContextKeySmallerExpr=e.ContextKeyGreaterEqualsExpr=e.ContextKeyGreaterExpr=e.Con... | JavaScript |
a del modo in cui è stato addestrato. Questo prefisso permette a T5 di sapere che si tratta di un task di summarization.
```bash
python examples/pytorch/summarization/run_summarization.py \
--model_name_or_path t5-small \
--do_train \
--do_eval \
--dataset_name cnn_dailymail \
--dataset_config "3.0... | Markdown |
/*
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | C |
ids, pending_peg_outs): (Vec<minimint_api::OutPoint>, Vec<PendingPegOut>) =
self.pending_peg_outs().into_iter().unzip();
let urgency = pending_peg_outs
.iter()
.map(|peg_out| round_consensus.block_height - peg_out.pending_since_block)
.sum::<u32>();
trace... | Rust |
eight0 * mColDownTmp + yWeight1 * mColUpTmp) >>
PADN);
}
}
dn->unlock();
up->unlock();
}
//=============================================================================
//=============================================================================
//=================================... | C++ |
/*
*
* Copyright 2021-2025 Software Radio Systems Limited
*
* This file is part of srsRAN.
*
* srsRAN is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at y... | C |
trigLevel);
uint16_t h = (PIXDIV * YDIV / 2 - 1) - (vtrig * PIXDIV / availableVoltDiv[vdivSel]);
gfx_draw_fast_h_line(&myGfx, 1, h, 63, WHITE);
}
else
gfx_set_text_color(&myGfx, WHITE, BLACK);
gfx_set_cursor(&myGfx, 66, 43);
gfx_print_float(&myGfx, volts_from_adc(trigLevel));
... | C |
options: {
collation: {
locale: "en",
alternate: "shifted"
}
},
expected: [
{ name: "Hello there" },
{ name: "Hello,there" },
{ name: "Hello,there" },
{ name: "Hello there" }
]
},
{
message: "should sort by nested field. Fixes #332.",
inp... | Typescript |
images2/login_title.a2004ns.gif\")", "", ""}, ReqHttp{"", "", nil, ""}},
{1, "EFM-Networks-ipTIME-A2004NS-R", "body", "", InStr{"(src=\"/images2/login_title.a2004sr.gif\")", "", ""}, ReqHttp{"", "", nil, ""}},
{1, "EFM-Networks-ipTIME-A2004R", "body", "", InStr{"(src=\"/images2/login_title.a2004r.gif\")", "", ""}, Re... | Go |
�对收费项目性质、标准等有异议的,有权要求收费单位予以说明,也可以向收费单位的同级或上级财政、物价部门查询。财政、物价部门应当自收到查询之日起十日内予以答复。
第七条 依据法律、法规和规章规定,给予企业罚款没收财物处罚的,应当出示合法的执法证件,制作并送达法律文书,使用省财政部门统一制发的专用票据。
禁止任何单位和个人在法律、法规和规章规定之外对企业增设罚款项目、提高罚款标准、扩大罚款没收财物的范围。
第八条 严格控制向企业集资。确需向企业集资的,必须有法律、法规、省人民政府规章和国家政策依据,并应当坚持自愿、有偿、适度、受益、资金定向使用的原则。集资单位应当发给出资企业集资凭证,保障出资企业应有的受益。
除国家另有规定外,... | Markdown |
-danger:focus{background-color:#77b72c;border:1px solid #77b72c}a{color:#77b72c}.logoArea{height:84px}.loginArea{height:487px;background-color:#7e00ff}.copyright{text-align:center;line-height:24px}.logo{background:url(../img/icons.png) no-repeat;width:182px;height:78px;position:absolute;background-position:-367px 4px}.... | CSS |
,.063)}@media (max-device-width: 413px){.page_video.ratio_primary .continue_play .wrp_video_continue{padding:7px 10px;font-size:12px}.page_video.ratio_primary .continue_play .wrp_video_continue .tit_desc span{padding-bottom:4px}.page_video.ratio_primary .continue_play .dd_continue_inner .video_list .video_item{margin:6... | CSS |
ertThatThrownBy(requestTransformerPlugin::check)
.isExactlyInstanceOf(TsfGatewayException.class)
.hasMessageContaining("验证插件格式");
requestTransformerPlugin.setPluginInfo(generateRequestTransformerPluginInfo(-1));
assertThatThrownBy(requestTransformerPlugin::check)
.isExactlyInstanceOf(TsfGatewayExceptio... | Java |
n[]>> GetDocumentSymbolsAsync(
Document document, bool useHierarchicalSymbols, bool supportsVSExtensions, CancellationToken cancellationToken)
{
// supportsVSExtensions controls whether or not any SymbolInformation that's returned is a VSSymbolInformation
// with a VSImageId. This value shou... | C# |
re.match(slogger.REGEX_MATCH, line)
level: Optional[str] = match.group(1) if match else None
else:
level = None
# remove level prefix
line = re.sub(slogger.REGEX_MATCH, '', line)
self._log_monitored_stream(line, stre... | Python |
T[]> =>
db.select('*').from<T, T[]>(table);
export const countEntities =
<T>(table: string) =>
(db: DatabaseService<T, T[]>): Knex.QueryBuilder<CountObj & T, Array<CountObj & Partial<T>>> =>
db.count('*').from(table);
export const createRepository = <T, IdType extends string | num... | Typescript |
変更の詳細**
1. **既存ファイル内容の更新**: `32a_フリーアドレス登校制度.md`
* FLOW氏から提供された「フリーアドレス登校制度」の最新かつ詳細な提案内容(2025年5月23日付)に全面的に置き換えました。
* 参考資料として、FLOW氏が公開しているnote記事([https://note.com/flow_theory/n/nf1eed6c87420](https://note.com/flow_theory/n/nf1eed6c87420))へのリンクを追記しました。
2. **目次ファイルの確認**: `README.md`
* 目次内の「ステップ3『長期の成長... | Markdown |
#include "constants/scrcmd.h"
#include "fielddata/script/scr_seq/event_T26.h"
#include "msgdata/msg/msg_0604_T26.h"
.include "asm/macros/script.inc"
.rodata
scrdef scr_seq_T26_000
scrdef scr_seq_T26_001
scrdef scr_seq_T26_002
scrdef scr_seq_T26_003
scrdef scr_seq_T26_004
scrdef scr_seq_T26_005
scrdef scr_seq... | Assembly |
{
trgSamples[j][i] = (Real)-1 +
((Real)2)*(srcSamples[j][i] - mMin[j])*mScale[j];
}
}
mInvTwoWScale = ((Real)0.5)/mScale[2];
}
//----------------------------------------------------------------------------
template <typename Real>
void PolynomialFit3<Real>::DoLeastSquaresFit... | C++ |
.Alignment.ALIGN_OPPOSITE -> sb.setSpan(AlignmentSpan.Standard(Layout.Alignment.ALIGN_OPPOSITE), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE)
else -> {}
}
val left = style.paragraphInsetLeft
val rest = left
if (left != 0) sb.setSpan(LeadingMarginSpan.Standard(left, rest), st... | Kotlin |
d savePresets() {
DeobfuscationMapFileMode mode = args.getDeobfuscationMapFileMode();
if (!mode.shouldWrite()) {
return;
}
Path deobfMapFile = deobfPresets.getDeobfMapFile();
if (mode == DeobfuscationMapFileMode.READ_OR_SAVE && Files.exists(deobfMapFile)) {
return;
}
try {
deobfPresets.clear();
... | Java |
f64 = if res_use_deg {
rad2deg(ops_fn(rad))
} else {
ops_fn(rad)
};
Number::Float(res)
}
}
}
/// Calculate cosine of a `Number`
///
/// # Example
/// ```rust
/// use calculator_util::{operations::cos, number::Number};
///
/// let n: Num... | Rust |
cer and simple actions with tools
const rawNotificationsSlice = createSlice({
name: SLICE_NAME,
initialState,
reducers: {
pushMessage(state, action: PayloadAction<NotificationsSliceType['message']>): void {
state.message = action.payload;
},
},
});
const { pushMessage } = rawNotificationsSlice.ac... | Typescript |
data["l"],
"Close": filterdata["c"],
"Volume": filterdata["v"],
"close_time": filterdata["T"],
"quote_av": filterdata["q"],
"trades": filterdata["n"],
"tb_base_av": filterdata["V"],
"tb_quote_av": filterdata[... | Python |
//BleskOS
/*
* MIT License
* Copyright (c) 2023-2025 BleskOS developers
* 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 the Software without restriction, including without limitation the rights to use, copy,... | C |
01 = coords1 - coords0
H, W = depth1.shape
coords1 = reproject(depth1, data["T1"], data["T0"], data["K1"], data["K0"])
x, y = np.meshgrid(np.arange(W), np.arange(H), indexing="xy")
coords0 = np.stack([x, y], axis=-1)
flow_10 = coords1 - coords0
return flow_01, flow_10
def check_cycle_consist... | Python |
/*
* Copyright 2008-2012 NVIDIA Corporation
*
* 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... | C |
#!/usr/bin/env python
#
# SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton,
# Espressif Systems (Shanghai) CO LTD, other contributors as noted.
#
# SPDX-License-Identifier: GPL-2.0-or-later
from __future__ import division, print_function
import sys
# Compare the esptool stub loaders to freshly built ... | Python |
or = deoptBranch;
falseSuccessor = fastPath;
} else {
trueSuccessor = fastPath;
falseSuccessor = deoptBranch;
}
IfNode ifNode = graph.add(new IfNode(guard.getCondition(), trueSuccessor, falseSuccessor, trueSucces... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
namespace MeltySynthTest
{
public class SoundFontInfoTest_NAudio
{
[TestCaseSource(typeof(TestSettings), nameof(TestSettings.SoundFonts))]
public void ReadTest(string soundFontName, MeltySynth.SoundFont so... | C# |
data: {
username
}
})
);
} catch (error) {}
});
}
default:
throw 'Invalid instruction type. Please use any of the following: "join", "message", "leave" ';
}
} catch (e) {
... | Typescript |
Signature(sb, type.mainSignature, tyRenderer)
}
renderComment(sb, element.comment, tyRenderer)
}
}
if (sb.isNotEmpty()) return sb.toString()
return super<AbstractDocumentationProvider>.generateDoc(element, originalElement)
}
private fun render... | Kotlin |
x1c]
add r7, r6, r1
sub r1, #0x51
ldrsb r2, [r6, r1]
mov r1, #0x30
ldr r0, _0226A28C ; =ov12_0226E70C
mul r1, r2
add r0, r0, r1
str r0, [sp, #0x48]
ldr r0, _0226A290 ; =ov12_0226E210
add r1, sp, #0x50
mov r2, #6
bl MI_CpuCopy8
add r1, sp, #0x58
add r0, r6, #0
add r1, #2
mov r2, #1
bl ov12_02268DD4
add... | Assembly |
osoft_hcsshim_internal_computeagent_computeagent_proto_rawDescGZIP() []byte {
file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescOnce.Do(func() {
file_github_com_Microsoft_hcsshim_internal_computeagent_computeagent_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.String... | Go |
demo">
<p>
The columns can be distributed in a row using different spacing options "start",
"center", "end", "around" or "between". Try changing this using
<strong>Knobs</strong>. Similary the columns can be aligned with in the row space.
</p>
<div class="row" :class="rowclasses">
<div class="c... | Typescript |
--luacheck:ignore
local Server = require 'utils.server'
local mapkeeper = '[color=blue]Mapkeeper:[/color]'
commands.add_command(
'scenario',
'Usable only for admins - controls the scenario!',
function (cmd)
local p
local player = game.player
if not player or not player.valid then
... | Lua |
);
// Assert
assert_eq!(order_history.len(), 1);
assert_eq!(order_history[0].order_uuid, "fd97d393-e9b9-4dd1-9dbf-f288fc72a185");
}
#[test]
fn should_get_withdrawal_history_successfully() {
// Arrange
let _mock = mock("GET", Matcher::Regex(r"^/account/getwithdrawalhistory\?&apikey=(.*)$".to_string... | Rust |
242 Entrypoint.acquireDependencies
| ===== asynchronous gap ===========================
| dart:async _asyncThenWrapperHelper
| package:pub/src/entrypoint.dart 191 ... | Dart |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.