content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
GIslandModel::Graph igm(*igr);
// First collect all data slots & their respective original
// data objects
using M = std::unordered_map
< ade::NodeHandle // key: a GModel's data object node
, ade::NodeHandle // value: an appropriate GIslandModel's slot node
, ade::HandleHasher<ad... | C++ |
= (session: SessionState) => unknown
interface Connect<T> {
componentListeners: Record<string, string | ComponentEventHandler>
sessionListeners?: Partial<
Record<ReduxSessionKeys, string | SessionEventHandler>
>
store: SDKStore
Component: new (o: any) => T
customSagas?: Array<CustomSaga<T>>
}
type Redux... | Typescript |
++).getReg();
const TargetRegisterClass *RC = MRI.getRegClass(DstReg);
assert(RC->hasType(MVT::i32) && "Invalid destination!");
unsigned mainDstReg = MRI.createVirtualRegister(RC);
unsigned restoreDstReg = MRI.createVirtualRegister(RC);
MemOpndSlot = CurOp;
MVT PVT = getPointerTy(MF->getDataLayout());
a... | C++ |
code/call Ff (var int x) -> int do
escape 111;
end
var int rrr = call Ff(999);
escape rrr;
]],
wrn = true,
run = 111,
}
Test { [[
data Xx as 0;
data Xx.Yy as 1;
code/call Ff (var Xx x) -> int do
escape x as int;
end
var int rrr = call Ff(Xx.Yy());
escape rrr;
]],
run = 1,
}
Test { [[
data Xx a... | Lua |
Well, sucks to be you. */
while (1) {
u8 *eol;
line_no++;
while (isblank(*cur)) cur++;
eol = cur;
while (*eol && *eol != '\n') eol++;
if (*cur != ';' && cur != eol) {
u8* line = ck_memdup_str(cur, eol - cur);
config_parse_line(line);
ck_free(line);
}
if (!... | C |
t offset = 0;
EXPECT_EQ(Deserialize<int32_t>(dest.c_str(), offset),
std::numeric_limits<int32_t>::max());
offset += sizeof(int32_t);
EXPECT_EQ(Deserialize<int64_t>(dest.c_str(), offset),
std::numeric_limits<int64_t>::min());
offset += sizeof(int64_t);
// Column0: ExpiringColumn
EXPECT_EQ(Deserializ... | C++ |
TYPE_ETHERNET);
var buffer = new Buffer([
0x00, 0x1b, 0x21, 0xcf, 0xa1, 0x00, 0x58, 0x6d, 0x8f, 0x67, 0x8a, 0x4d, 0x08, 0x00, 0x45, 0x00,
0x01, 0x38, 0x36, 0xf5, 0x00, 0x00, 0x3f, 0x11, 0xa0, 0x9d, 0xc0, 0xa8, 0xd0, 0x01, 0x0a, 0x14,
0x08, 0x65, 0x00, 0x35, 0xd1, 0x12, 0x01, 0x24, 0xd6, 0x5b, 0x85... | JavaScript |
��学院外语系1958级学生。其丈夫刘一学是建筑工程学校右派分子,与邓琴同是民盟盟员)
</h3>
<p>
很多人认为解放军使我们人民得到解放。对解放寄予了很多幻想。但后来使人失望。这次毛主席的讲话解放了我们的精神。本来对这次我的希望很大,但听了院领导的报告后,我冷了半截。从报告中体现不出诚心,虚心。朱老师讲话中说道:“党员满脸政治气?我说你满脸非政治气。”因此对于鸣放使人产生顾虑。这就让人感到不诚心。张院长说:不要“放”老师,这就没把老师当作平等的人,是否因为老师放的态度有一些抵触情绪呢?
</p>
<p>
共产党员可能认为“老子天下第一”,天下是共产党打出来的。我认为在接受这些意见时有一套,好的接受,... | HTML |
a3b9667a0290d4edcc1e5218f9a3a9a68" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename _Key , typename _Data , typename _Compare = std::less<_Key>, typename _Traits = btree_default_map_traits<_Key, _Data>, typename _Alloc = std::allocator<std::pair&l... | HTML |
roupOutput) AppId() pulumi.StringOutput {
return o.ApplyT(func(v *DeployGroup) pulumi.StringOutput { return v.AppId }).(pulumi.StringOutput)
}
// The name of the instance group that you want to create.
func (o DeployGroupOutput) GroupName() pulumi.StringOutput {
return o.ApplyT(func(v *DeployGroup) pulumi.StringOutp... | Go |
int length)
{
COMPtr<MemoryStream> stream = MemoryStream::createInstance(SharedBuffer::create(data, length));
m_view->didReceiveData(stream.get());
}
void EmbeddedWidget::didFinishLoading()
{
m_view->didFinishLoading();
}
void EmbeddedWidget::didFail(const ResourceError& error)
{
COMPtr<IWebError> we... | C++ |
item) => item.id === action.id))
if (dIdx > -1) state.splice(dIdx, 1)
return [...state]
default:
return [{ name: 'Init task', status: 'active', id: Math.random() }]
}
}
const rootReducer = combineReducers({
list,
})
export default rootReducer
import { NotifierPlugin, NotifyParams, PluginCre... | Typescript |
--mercury-orbit-size: 24dvmin;
--venus-orbit-size: 36dvmin;
--sun-orbit-size: 48dvmin;
--mars-orbit-size: 60dvmin;
--jupiter-orbit-size: 72dvmin;
--saturn-orbit-size: 84dvmin;
--stars-orbit-size: 96dvmin;
--number-of-bodies: 10;
}
body {
height: 100dvh;
margin: 0;
backgrou... | CSS |
end }}
{{- range $orderer := .ExternalOrderers }}
{{$orderer.Name}}:
url: {{ $orderer.URL }}
grpcOptions:
allow-insecure: false
tlsCACerts:
pem: |
{{ or $orderer.TLSCACert | indent 8 }}
{{- end }}
{{- end }}
{{ if and (empty .Peers) (empty .ExternalPeers) }}
peers: {}
{{- else }}
peers:
... | Go |
W_TAG_variable
.int32 .Lvar_name_separate_cu # DW_AT_name
.int32 .Ltype2 # DW_AT_type
.int8 5 # DW_AT_location
${DW_OP_addr}
.int32 0x00
.Ltype2:
.int8 3 # Abbrev [3] DW_TAG_type
.int... | Assembly |
.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"}(A||(A={}));class I{constructor(t,e,r,...n){this.valueIdentifier=t,this.name=r,this.values="number"==typeof e?Int32Array.from([e]):e,this.otherEncodingNames=n,I.VALUE_IDENTIFIER_TO_ECI.set(t,this),I.NAME_TO_ECI.set(r,this);const i=this.values;for(let t=... | JavaScript |
, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
... | Java |
ride fun getPolygons(): List<PolygonDto> {
return getView().getPolygons()
}
override fun addPolygons(polygons: List<PolygonDto>): List<PolygonDto> {
return getView().addPolygons(polygons)
}
override fun updatePolygons(polygons: List<PolygonDto>): List<PolygonDto> {
return getView().updatePolygons(... | Kotlin |
ags = temp;
goto loop;
}
case 0xD3: // OUT (imm),A
pc++;
OUT( data + rg.a * 0x100, rg.a );
goto loop;
case 0x2E: // LD L,imm
pc++;
rg.l = data;
goto loop;
case 0x3E: // LD A,imm
pc++;
rg.a = data;
goto loop;
case 0x3A:{// LD A,(addr)
fuint16 addr = GET_ADDR();
pc += 2;
rg.a = REA... | C++ |
shadow-none hover:!bg-gray-100 hover:shadow-none focus:shadow-none xl:flex xl:w-64 dark:!border-gray-600 dark:!bg-gray-700 dark:hover:!bg-gray-600;
}
.DocSearch-Button-Placeholder {
@apply text-sm font-normal text-gray-500 dark:text-gray-400;
}
.DocSearch-Search-Icon {
@apply h-3 w-3 text-gray-500 md:mr-1 dark:t... | CSS |
ains-subset-ideal-subset-Ring R
( generating-subset-ideal-family-of-elements-Ring)
( a i)
( unit-trunc-Prop (i , refl))
abstract
is-ideal-generated-by-family-of-elements-ideal-family-of-elements-Ring :
is-ideal-generated-by-family-of-elements-Ring R a
ideal-family-of-elements-Ring... | Markdown |
of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under 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 gov... | Go |
ógica para determinar qué tipo de conexión debería usarse. Una vez que empezamos a experimentar, rápidamente se hizo evidente que no se crean de la misma manera. Es bastante común que una ruta al mismo destino tenga un rendimiento muy diferente en función de si usa su dirección IPv4 o IPv6. A menudo, esto se debe a que... | HTML |
7eb, U+77ee, U+78f7, U+79e9, U+7a79, U+7b1b, U+7b28, U+7bf7, U+7db2, U+7ec5, U+7eee, U+7f14, U+7f1a, U+7fe1, U+8087, U+809b, U+8231, U+830e, U+835f, U+83e9, U+849c, U+851a, U+868a, U+8718, U+874e, U+8822, U+8910, U+8944, U+8a3b, U+8bb6, U+8bbc, U+8d50, U+8e72, U+8f9c, U+900d, U+904b, U+9063, U+90a2, U+90b9, U+94f2, U+9... | CSS |
required this.transitionGoal,
required double slidePercentVer,
required double slidePercentHor,
required LiquidProvider slideUpdateStream,
required TickerProvider vsync,
}) {
final startSlidePercentHor = slidePercentHor;
final startSlidePercentVer = slidePercentVer;
double? endSlidePe... | Dart |
x01,0x50,0x01,0xff]
v_subrev_f32 v5, v1, v2 row_share:15 row_mask:0x0 bank_mask:0x1
// GFX12: encoding: [0xfa,0x04,0x0a,0x0a,0x01,0x5f,0x01,0x01]
v_subrev_f32 v5, v1, v2 row_xmask:0 row_mask:0x1 bank_mask:0x3 bound_ctrl:1 fi:0
// GFX12: encoding: [0xfa,0x04,0x0a,0x0a,0x01,0x60,0x09,0x13]
v_subrev_f32 v255, -|v255|, ... | Assembly |
().push(INVALID_NUMERIC_ARGUMENT as _);
} else if fileid >= self.files().len() {
self.s_stack().push(INVALID_NUMERIC_ARGUMENT as _);
} else {
match self.files_mut()[fileid].take() {
Some(f) => {
match f.set_len(ud_lower as u64) {
... | Rust |
,比较麻烦。好在 LabVIEW 提供了自动排布程序框图的功能,堪称是懒汉福星。点击 VI 程序框图窗口工具栏上的“整理程序框图”按钮,就可以自动整理程序框图。它可以在不改变程序的逻辑关系的前提下,调整程序框图上节点和连线的位置,使它们更整齐易读。比如下面这个杂乱的程序框图:

在点击“整理程序框图”按钮后,变成了下面工整的程序框图:

但是,这个工具毕竟比不上人脑更智慧,经过整理的程序框图虽然比原来整洁很多,但还是无法与人工调整出来的程序框图一样美观... | Markdown |
Block2 = "02024588",
},
pocketSize = {
pcCount = 30,
itemsPocket = 42,
keyItemsPocket = 30,
ballsPocket = 13,
tmhmPocket = 58,
berriesPocket = 43
},
trainerOffsets = {
-- Info
name = 0x00,
... | Lua |
SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
licensors of this Program grant you additional
permission to convey the resulting work. Corresponding Source for a
non-source form of such a combination shall include the source code for... | C++ |
pages = [
{ id: "0", url: "http://i-beam.org/search?q=apple" },
{ id: "1", url: "http://i-beam.org/search?q=apple_banana" },
{ id: "2", url: "http://i-beam.org/search?q=apple_banana_cherry" },
{ id: "3", url: "http://i-beam.org/request?q=apple" },
{ id: "4", url: "http://i-beam.... | Typescript |
x;
/// <summary>
/// An unsigned integer that identifies the attachment to be deleted.
/// </summary>
public BlockT<uint> AttachmentID;
/// <summary>
/// Parse the RopDeleteAttachmentRequest structure.
/// </summary>
protected override void Parse()
... | C# |
, "Error deleting message: $msgId", e)
}
}
/**
* 获取会话的最后一条消息
*/
suspend fun getLastMessage(chatId: String, chatType: Int): ChatMessage? {
return try {
cacheRepository.getLastMessage(chatId, chatType)
} catch (e: Exception) {
Log.e(tag, "Error ge... | Kotlin |
0x01,0x02,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v[1:4], s[8:15] dmask:0x1 da
// CHECK: [0x00,0x41,0x00,0xf0,0x01,0x05,0x02,0x00]
image_load v5, v[1:4], s[8:15] dmask:0x1 d16
// CHECK: [0x00,0x01,0x00,0xf0,0x01,0x05,0x02,0x80]
image_load_mip v5, v[1:4], s[8:15] dmask:0x1
// CHECK: [0x00,0x01,0x04,0xf0,0x01,0x05,0x... | Assembly |
2_milo_",
[3536067931] = "metro_t_st_sl_bot_",
[2155617628] = "cablemesh1923974_hvstd",
[3306823005] = "cerb_turret_weap",
[2229935454] = "w_ar_heavyrifleh_sight",
[441916767] = "hei_cs4_02_critical_5",
[965811556] = "cs3_railway_interior_cs3_03railtunnel_int2",
[1001463143] = "ex_office_02b_striplamps_kitchen",... | Lua |
Id_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DeleteNetworkAclRequest::getNetworkAclId() const {
return networkAclId_;
}
void DeleteNetworkAclRequest::setNetworkAclId(const std::string &networkAclId) {
networkAclId_ = networkAclId;
setParameter(std::string("NetworkAclId"), net... | C++ |
ntation(Platform::SSE41));
}
None
}
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
#[allow(unreachable_code)]
pub const fn avx2_if_supported() -> Option<Self> {
// Check whether AVX2 support is assumed by the build.
#[cfg(target_feature = "avx2")]
{
... | Rust |
ARM64_S20"]/*' />
CV_ARM64_S20 = 120,
/// <include file='CV_HREG_e.xml' path='doc/member[@name="CV_HREG_e.CV_ARM64_S21"]/*' />
CV_ARM64_S21 = 121,
/// <include file='CV_HREG_e.xml' path='doc/member[@name="CV_HREG_e.CV_ARM64_S22"]/*' />
CV_ARM64_S22 = 122,
/// <include file='CV_HREG_e.xml' pat... | C# |
=
try {
dns.lookup(host)
} catch (e: UnknownHostException) {
null
}
if (addresses.isNullOrEmpty()) {
result.append("Nslookup for $host use dns $dns failed").appendLine()
return@forEach
... | Kotlin |
_send = ui_send.clone();
tokio::spawn(async move { ipc_server::run_server(ui_send).await })
};
let forward_exit_to_app_handle = {
let ui_send = ui_send.clone();
tokio::spawn(async move {
// Wait for application exit event
... | Rust |
()
actualAtys := actualV.Type().AttributeTypes()
for k := range plannedAtys {
if _, ok := actualAtys[k]; !ok {
errs = append(errs, path.NewErrorf("block key %q has vanished", k))
continue
}
plannedEV := plannedV.GetAttr(k)
actualEV := actualV.GetAttr(k)
moreErrs := assertOb... | Go |
();
}
clear() {
const canvasWidth: number = this.config.getCanvasWidth(),
canvasHeight: number = this.config.getCanvasHeight();
this.ctx.clearRect(0, 0, canvasWidth, canvasHeight);
};
}
export default Board;
'use strict';
// Swap the values of these variables
let a: number = 123;
let b... | Typescript |
oj_path = src_dir_path + fmt::format("Proj_{:05d}.bin", i+1);
if (!cur_proj_path.exists())
{
std::cerr << "ERROR: projection file does not exist: " << cur_proj_path.string()
<< std::endl;
return kEXIT_VAL_BAD_DATA;
}
FileInputStream fin(cur_proj_path.string());
if ... | C++ |
# Copyright 2023 The Google Earth Engine Community Authors
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | Python |
tor for `SpindownStatus`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List spindownStatusDescriptor = $convert.base64Decode(
'Cg5TcGluZG93blN0YXR1cxIRCg1TUElORE9XTl9JRExFEAASFgoSU1BJTkRPV05fUkVRVUVTVE'
'VEEAESFAoQU1BJTkRPV05fU1VDQ0VTUxACEhIKDlNQSU5ET1dOX0VSUk9SEAMSGwoXU1BJTkRP'
... | Dart |
23s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return s().createElement(y,{...e},s().createElement("path",{... | JavaScript |
TokenSymbol::XUSD);
pub const XBTC: CurrencyId = CurrencyId::Token(TokenSymbol::XBTC);
pub const DOT: CurrencyId = CurrencyId::Token(TokenSymbol::DOT);
pub const DOS: CurrencyId = CurrencyId::Token(TokenSymbol::DOS);
pub const XUSD_XBTC_PAIR: TradingPair = TradingPair(XUSD, XBTC);
pub const XUSD_DOT_PAIR: TradingP... | Rust |
module(..., package.seeall)
local ANIM_DATAS = {
{name = "walkDown", frames = {2, 1, 2, 3, 2}, sec = 0.25},
{name = "walkLeft", frames = {5, 4, 5, 6, 5}, sec = 0.25},
{name = "walkRight", frames = {8, 7, 8, 9, 8}, sec = 0.25},
{name = "walkUp", frames = {11, 10, 11, 12, 11}, sec = 0.25},
}
-----------... | Lua |
at the right position:
if (trimmed1 == baseContainer->first() && trimmed2 == baseContainer->last() && baseContainer->count() > 2){
//bevel are from last and first segments, add at the end
if (trimmed2->getEndpoint().distanceTo(bevel->getStartpoint()) > 1.0e-4){
bevel->re... | C++ |
coreUpdate);
/* 用户积分兑换 */
this.addRule(ExchangeInfoMessage.class, USER_VIP_SCORE_EXCHANGE, false, this::vipScoreExchange);
/* 分享员变更 */
this.addRule(SharerChangeMessage.class,SHARER_CHANGE,false,this::sharerChange);
/* 小店注销 */
this.addRule(CloseStoreMessage.class, CLOSE_STORE, this::closeStore)... | Java |
主义工商业的不利于人民的方面,那末今年年初资本主义工商业敲锣打鼓、要求合营,就不会来的。自然,现在生产关系根本改变了,需要在新的基础上,重新作出若干新的规定。
</p>
<p>
六、我们过去与资本家的关系,一般的是企业外部的关系,现在变为企业内部的关系了。
</p>
<p>
我们过去与资本家是厂外关系、店外关系。现在公私合营,公股代表去了,就变成了与资本家在厂内、在店内的关系,要在企业内部与资本家共事了。现在在公私合营工业中普遍地大量地发生这个问题,大的商店也发生这个问题。因此要求我们教育干部,怎样与资本家在企业内部共事,需要规定若干与资本家共事的制定和办法,并且需要教育干部学习资本主义生产和经营中一切有... | HTML |
', '缇尔锋', '2', '', '7', '', '', '5', '缇尔锋在场时,友方所有机神单位攻击时伤害提升50%;友方单位受到攻击时缇尔锋有80%概率进行反击,友方单位每次反击缇尔锋攻击增加150点', '5', '4601401', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1', '', '', '', '', '', '', 'OnBefourHurt', '4601505', 'OnAttackOver', '4601515', 'OnActionOver', '4601525', '', '', '', '', '... | Lua |
ed:是否是禁用,isDisabled 默认为true
class RawMaterialButtonDefault extends StatelessWidget {
final bool isDisabled;
const RawMaterialButtonDefault([this.isDisabled = true])
: assert(isDisabled != null),
super();
@override
Widget build(BuildContext context) {
return RawMaterialButton(
// 文本内... | Dart |
Shadow(
color: widget.primaryColor.withOpacity(_glowAnimation.value * 0.6),
blurRadius: 20 * _glowAnimation.value,
spreadRadius: 2 * _glowAnimation.value,
),
],
),
child: Icon(
widget.update... | Dart |
num1 = int(input())
num2 = int(input())
num3 = int(input())
num4 = int(input())
final = ((int((num1 + num2) / num3)) * num4)
print(final)
| Python |
e} - ${label}`,
assets: [
fpath
],
testFilePaths: [fpath],
...moreProps
};
if (!noTests) {
exercise.assets.push(`${problemName}/tests.js`);
}
if (bugLine) {
exercise.bugLocations = [
{
fileName: fpath,
line: bugLine
}
... | JavaScript |
left: ($plyr-control-spacing / 2);
position: relative;
z-index: 2;
}
@media (min-width: $plyr-bp-sm) {
max-width: 90px;
}
@media (min-width: $plyr-bp-md) {
max-width: 110px;
}
}
// Hide sound controls on iOS
// It's not supported to change volume using JavaScript:
... | CSS |
ister_protocol {
name = "multicast",
id = skynet.PTYPE_MULTICAST,
unpack = function(msg, sz)
return mc.packremote(msg, sz)
end,
dispatch = function (...)
skynet.ignoreret()
publish(...)
end,
}
-- publish a message, if the caller is remote, forward the message to the owner node (by remote_publish)
-- If the... | Lua |
g: [0x62,0xf2,0x7e,0xca,0x23,0xd4]
vpmovsdw %zmm2, %ymm4 {%k2} {z}
// CHECK: vpmovsqb %zmm2, -485498096(%edx,%eax,4)
// CHECK: encoding: [0x62,0xf2,0x7e,0x48,0x22,0x94,0x82,0x10,0xe3,0x0f,0xe3]
vpmovsqb %zmm2, -485498096(%edx,%eax,4)
// CHECK: vpmovsqb %zmm2, 485498096(%edx,%eax,4)
// CHECK: encoding:... | Assembly |
lently({
authorizationParams: {
foo: this.foo,
...(this.getTokenScope ? { scope: this.getTokenScope } : {})
},
cacheMode: 'off'
});
this.isAuthenticated = await this.auth0.isAuthenticated();
this.user = await t... | HTML |
/// This is only valid on desktop systems where multiple graphics
/// adapters are possible. Defaults to <see cref="GraphicsAdapter.DefaultAdapter"/>.
/// </remarks>
public GraphicsAdapter Adapter { get; set; }
/// <summary>
/// The requested graphics device feature s... | C# |
ngr %r7,%r13
sllg %r12,%r0,60
j .Lghash_inner
.align 16
.Lghash_inner:
srlg %r1,%r1,4
srlg %r0,%r0,4
xg %r1,8(%r8,%r3)
llgc %r10,0(%r11,%r2)
xg %r0,0(%r8,%r3)
sllg %r8,%r10,4
xg %r0,0(%r6,%r14)
nill %r8,0xf0
sllg %r6,%r1,3
xgr %r1,%r12
ngr %r6,%r13
nill %r10,0xf0
sllg %r12,%r0,60
srlg %r1,%r1,4
srlg... | Assembly |
setSchedule(
name: "upnw",
times: [9, 20, 29, 40]
) {
name, times
}
}`;
await graphql(ref.schema, mutation);
const query = `query {
getNextBusyTime(time: 5)
}`;
const response = await graphql(... | Typescript |
vision 2 or "
<< "greater\n";
DspWarningPrinted = true;
} else if (hasMips32() && !hasMips32r2()) {
errs() << "warning: the 'dspr2' ASE requires MIPS32 revision 2 or "
<< "greater\n";
DspWarningPrinted = true;
}
} else if (hasDSP() && !DspWarningPrinted) {
if (h... | C++ |
// SPDX-License-Identifier: BSD 2-Clause "Simplified" License
//
// next/utils/wlr_log.c
//
// Created by: Aakash Sen Sharma, August 2022
// Copyright: (C) 2022, Aakash Sen Sharma & Contributors
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <wlr/util/log.h>
#define BUFFER_SIZE 1024
void wlr_lo... | C |
</c-></a> <dfn class="dfn-paneled idl-code" data-dfn-for="Cache/match(request, options), Cache/match(request)" data-dfn-type="argument" data-export id="dom-cache-match-request-options-options"><code><c- g>options</c-></code></dfn> = {});
[<a class="idl-code" data-link-type="extended-attribute" href="https://webidl.sp... | HTML |
_applyExtension(jsType, dartExtType);
}
/// Apply a previously registered extension for testing purposes.
///
/// This method's only purpose is to aid in testing native classes. Most native
/// tests define JavaScript classes in user code (e.g. in an eval string). The
/// dartdevc compiler properly calls `registerEx... | Dart |
2.23333
Svartliden 65.63333 20.4
Svartlå 66 21.16667
Svarthuvudena 65.96667 21.03333
Svartholmsfjärd 65.8 23.36667
Svartbyträsk 65.81516 21.73096
Svartbyn 66.26667 22.81667
Svartbyn 65.8 21.76667
Svartbjörnsbyn 65.85 21.71667
Svartberget 66.65 22.53333
Svartberget 66.23333 21
Svartberget 66.21667 21.2
Svartberget 64.46... | C# |
: Boolean = this.filtering) {
for (points in path.toPathPointList()) {
texturedVertexArrayNoTransform(TexturedVertexArray.fromPointArrayList(points, color, matrix = m), filtering)
}
}
fun texturedVertexArrayNoTransform(texturedVertexArray: TexturedVertexArray, filtering: Boolean = t... | Kotlin |
<ABIInternal>(SB),NOSPLIT,$0-16
#ifdef GOEXPERIMENT_regabiargs
MOV T0, X10
MOV T1, X11
#else
MOV T0, x+0(FP)
MOV T1, y+8(FP)
#endif
JMP runtime·goPanicSlice3C<ABIInternal>(SB)
TEXT runtime·panicSlice3CU<ABIInternal>(SB),NOSPLIT,$0-16
#ifdef GOEXPERIMENT_regabiargs
MOV T0, X10
MOV T1, X11
#else
MOV T0, x+0(FP)
... | Assembly |
{
name: string
altName: string
fertilizingDates: firestore.Timestamp[]
lastCheckedDate: firestore.Timestamp[] | null
wateringDates: firestore.Timestamp[]
}
const emptyIntervals: IntervalMap = {
1: null,
2: null,
3: null,
6: null,
12: null,
Infinity: null,
}
export interface PlantProps {
id?: ... | Typescript |
whenever(objectService.verifyObjectExists(sourceBucket, sourceKey, sourceVersion)).thenReturn(srcMeta)
val copiedMeta = s3ObjectMetadata(
targetKey,
versionId = "tv1"
)
whenever(
objectService.copyS3Object(
eq(sourceBucket), eq(sourceKey), eq(sourceVersion),
eq(targ... | Kotlin |
ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=c:GetEquipTarget()
--Double its ATK
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(tc:GetAtt | Lua |
"""Finds narrow admissible tuples (lists of integers that do not fill every residue class modulo any prime)"""
import funsearch, functools
import numpy as np
import itertools
@funsearch.run
def evaluate(n: int) -> int:
"""Returns the number of elements in a narrow admissible tuple of with at most n"""
tuple = sol... | Python |
活动的塔利班化,有三个特征,一是恐怖活动从特定区域向全国扩散,二是针对平民的恐怖暴行越来越多,三是政府对打击恐怖活动已感力不从心乃至无能为力。</b><br />......<br />王乐泉时期,北京采取高压政策试图压服新疆分裂势力,然而没有奏效。张春贤治疆后,转而采取怀柔策略,原本指望事情会有好转,但几年下来,新疆的暴恐活动越来越多,并更趋激烈,去年起又开始外溢,作案手法也越来越"专业"。当局怀柔不成,现在改行"刚性治理",尤其随着国安委的成立,各地紧锣密鼓进行反恐演习,火速清理暴恐隐患,习近平甚至亲赴南疆喀什,考察反恐前沿,结果换来了上述两起暴恐事件。可以说,北京治疆已走入死胡同。<br /><br />暴恐分子之所以软硬不吃... | HTML |
li><li>Set <var>opt</var>.[[<<var>prop</var>>]] to <var>value</var>.</li></ol></li><li>Let <var>dataLocaleData</var> be <var>localeData</var>.[[<<var>dataLocale</var>>]].</li><li>Let <var>formats</var> be <var>dataLocaleData</var>.[[formats]].</li><li>Let <var>matcher</var> be ? <emu-xref aoid="GetOpti... | HTML |
属性,后者包含了整个地图信息,人流密度等,方便指引每个人的移动
## 有待改进之处
模型人员移动策略可以修改为:
- 只设置一定比例的人员(作为安保/疏导人员)能够自动走到出口
- 其他人员随机走动/从众心理跟着人流走动
考虑人员增加更多属性,如年龄、性别、是否结队等
- 不同年龄人群移动速度不同
- 家人、朋友等同行人员等使用相同的移动策略
- 男性群体可能更理性,倾向于走最短路径/避让人群
## 编程收获
- 再次熟悉使用了`pkinter`实现GUI,并再次利用plt作图(热力图)
- 深刻领会了 Python 的赋值、引用、拷贝问题 :可变对象之间的赋值是传引用,不可变对象的赋值是传值。... | Markdown |
has given you a good idea of how to structure client-side CoffeeScript applications. For your next steps, I recommend checking out a client-side framework like <a href="http://documentcloud.github.com/backbone/">Backbone</a> or <a href="http://spinejs.com">Spine</a>, They'll provide a basic MVC structure for you, free... | HTML |
/* -----------------------------------------------------------------------
sysv.S - Copyright (c) 2002, 2003, 2004, 2006, 2008 Kaz Kojima
SuperH Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (... | Assembly |
most current paper describing the
capabilities of the <code>ergm</code> package is the following
preprint:</p>
<p>Krivitsky, P. N., David R. Hunter, Martina Morris, and Chad Klumb
(2021). ergm 4.0: New Features and Improvements. <a href="https://arxiv.org/abs/2106.04997">https://arxiv.org/abs/2106.04997</a>.</p>
<p>Fo... | HTML |
art.list)
for i, part in ipairs(activeEffect.grantedEffect.parts) do
t_insert(controls.mainSkillPart.list, { val = i, label = part.name })
end
controls.mainSkillPart.selIndex = activeEffect.srcInstance["skillPart"..suffix] or 1
end
if activeSkill.skillFlags.mine then
controls.mainSkill... | Lua |
trip-padding: 0;
--bt-channel-page-tab-height: 29px;
--bt-channel-page-tab-padding: 0px; /* formerly 0 6px */
--bt-channel-page-tab-margin: -4px 0 0 20px;
--bt-channel-page-tab-font-size: 13px;
--bt-channel-page-tab-font-weight: normal;
--bt-channel-page-tab-text-transform: none;
--bt-channel-page-tab-border-bottom: 3p... | CSS |
ootCollectionTries <= 0) {
throw Exception("Unable to progress in the Loot Collection process.")
}
findAndClickButton("ok", tries = 1, suppressError = true)
findAndClickButton("close", tries = 1, suppressError = true)
findAndClickButton("cancel", tries = 1, suppressError = true)
findAndClickBu... | Kotlin |
} catch (e: IOException) {
return PackageManagerResult.Error(PackageManagerError.PATCH_FAILED_COPY, e.stackTraceToString())
}
val chmod = Shell.su("chmod", "644", newPatchPath).exec()
if (!chmod.isSuccess)
return PackageManagerResult.Error(PackageManagerError.PATCH_FAI... | Kotlin |
setState(() {
selectedButtonIndex = index;
_loadProductsell(); // Call _loadProductsell when a button is pressed
});
},
style: ElevatedButton.styleFrom(
primary: selectedButtonInd... | Dart |
# -*- coding: utf-8 -*-
import logging
import os
from markupsafe import Markup
from mycodo.config import INSTALL_DIRECTORY
from mycodo.config import PATH_PYTHON_CODE_USER
from mycodo.utils.system_pi import assure_path_exists
from mycodo.utils.system_pi import cmd_output
from mycodo.utils.system_pi import set_user_grp... | Python |
notifyListeners();
await _load(page: 1, loadMore: false);
}
Future<bool> loadMore() async {
if (_isLoadingMore || !_hasMore) return false;
_isLoadingMore = true;
notifyListeners();
final next = _page + 1;
final ok = await _load(page: next, loadMore: true);
_isLoadingMore = false;
no... | Dart |
= iter->second.first;
return replacement;
}
return nullptr;
};
for (auto item : valuenode_replacements)
replace_value_nodes(item.second.first, get_correspondent_clone);
}
return true;
}
void
LayerActionManager::export_value_nodes(Canvas::Handle canvas, const ValueNodeReplacementMap& valuenodes) con... | C++ |
x0
waitforvisualfinish
clearmonbg ANIM_ATTACKER
blendoff
end
PrismaticLaserOutwardSpikes:
createsprite gPrismaticLaserRedOutwardTemplate, ANIM_TARGET, 2, 0x0, 0x1, 0x0, 0xFF90, 0x10 @up
createsprite gPrismaticLaserGreenOutwardTemplate, ANIM_TARGET, 2, 0x0, 0x1, 0x5F, 0xFF9D, 0x10 @upper right
createsprite gPrism... | Assembly |
# vim: set fileencoding=utf-8 :
#
# (C) 2006,2007,2008,2011 Guido Günther <agx@sigxcpu.org>
# 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 2 of the License, or
# (at ... | Python |
public boolean containsAll(Collection<?> arg0) {
for (Object o : arg0) {
if (!contains(o)) {
return false;
}
}
return true;
}
/**
* @param index index of the element to return
* @return the nth element of the list
*/
@Override
public T get(int index) {
/* Special-... | Java |
_messages);
}
SubscriberImpl::OrdinalTracker &
SubscriberImpl::GetOrdinalTracker(int vchan_id) {
auto it = ordinal_trackers_.find(vchan_id);
if (it != ordinal_trackers_.end()) {
return *it->second;
}
auto [it2, _] =
ordinal_trackers_.emplace(vchan_id, std::make_unique<OrdinalTracker>());
return *i... | C++ |
# app/api/games.py
from fastapi import APIRouter, Query, Depends, HTTPException, Request
import datetime
from typing import List, Optional
from sqlalchemy.orm import Session
from sqlalchemy import or_
from app import models, schemas
from app.crud import games
from app.db import get_db
from app.config import settings
... | Python |
teData>(
future: rootBundle.load('assets/logo.png'),
builder: (BuildContext context, AsyncSnapshot<ByteData> snapshot) {
if (snapshot.hasData) {
final image = Image.asset(
'assets/logo.png',
fit: BoxFit.contain,
errorBuilder: (ctx, error, stackTrace) {
... | Dart |
(), field, &msg, &arena);
EXPECT_TRUE(status.ok());
}
struct AccessFieldTestParam {
absl::string_view field_name;
absl::string_view message_textproto;
CelValue cel_value;
};
std::string GetTestName(
const testing::TestParamInfo<AccessFieldTestParam>& info) {
return std::string(info.param.field_name);
}
... | C++ |
98%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive:... | CSS |
r },
{ NTDDI_WIN7, NTDDI_MAX, &IID_IBandSiteHelper },
{ NTDDI_WIN7, NTDDI_MAX, &IID_IOleCommandTarget },
}
},
{
ID_NAME(CLSID_SH_AddressBand, NTDDI_WIN7, NTDDI_MAX),
{
{ NTDDI_WIN7, NTDDI_MAX, &IID_IDe... | C |
BjCAAQxgAFdQPshWA3DjARjAjQZgAAO4+bJHXVc+yFYDcOMBGMCNBmAAA7j5skddVz7IqgdgAAMYwAAGcFeWD7LqARjAAAYwgAGsNsoHX7cBGMAABnCGF8AAHhHlg6/bAAxgAAM4wwtgAI/I8oEOdfmJrNsADGAAAxjAAK5l+UCHuvxE1m0ABjCAAQxgANeyfKDDvfzCqNsA3HgABjCAAawhlg90uJdfGHUbgBsPwAAGMIA1xPKBjrTlF1rdBmAAAxjAAO7S8oGOtOUXWt0GYAADGMAA7tLygdorL79w6zYAAxjAAAZwh5QP1F55+YVb... | HTML |
d" data-background="#36454f" data-background-size="20%" data-background-position="80% 92%">
<h2 id="org25edd4d">BFO ontology and documentation</h2>
<ul>
<li>ISO/IEC 21838-2<br /></li>
<li>Github repository<br />
<ul>
<li>OWL ontology document<br /></li>
<li>First-order axioms<br /></li>
</ul></li>
<li>Reference guide ... | HTML |
local final_env = env
for _, part in ipairs(parts) do
if type(final_env) ~= 'table' then
return {}, 0
end
local key
-- Normally, we just have a string
-- Just attempt to get the string directly from the environment
if type(part) == "string" then
key = part
else
-- Howev... | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.