content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
)
|| monitorTypeId.equals(HinemosModuleConstant.MONITOR_LOGFILE)
|| monitorTypeId.equals(HinemosModuleConstant.MONITOR_BINARYFILE_BIN)
|| monitorTypeId.equals(HinemosModuleConstant.MONITOR_PCAP_BIN)
|| monitorTypeId.equals(HinemosModuleConstant.MONITOR_WINEVENT)
|| monitorTypeId.equals(HinemosM... | Java |
-- items: 18847, 13574
function event_spawn(e)
local xloc = e.self:GetX();
local yloc = e.self:GetY();
eq.set_proximity(xloc - 50, xloc + 50, yloc - 50, yloc + 50);
end
function event_enter(e)
if(e.other:HasItem(18847)) then
e.other:Message(MT.Yellow,"Field Priest Keven turns towards you. 'There you are. I have ... | Lua |
impl Default for AmbientLight {
fn default() -> Self {
Self {
color: Vector3::zero(),
}
}
}
impl AmbientLight {
pub fn new(color: Vector3<f64>) -> Self {
Self { color }
}
pub fn get_color(&self) -> Vector3<f64> {
self.color
}
}
<filename>src/view.r... | Rust |
();
let config: Config = serde_yaml::from_str(&config_file).unwrap();
println!("using zoom binary path: {}", config.zoom_bin_path);
rocket::ignite()
.manage(config)
.mount("/", routes![meeting])
.launch();
}
use indexmap::map::IndexMap;
use proc_macro2::TokenStream;
use quote::{quo... | Rust |
cket)"
fi
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye > /dev/null
# 通过 gpgconf 启动
# gpgconf --launch gpg-agent
gpg --list-keys --with-keygrip
echo $KEYGRIP >> ~/.gnupg/sshcontrol
ssh-add -l
# ssh-ed25519 XXXX openpgp:0xABCD
gpg --export-ssh-key $KEYID
# 如果配置了 github 可以测试
ssh -T git@github.com
```
... | Markdown |
assert!(n > der, "number of nodes must be greater than der!");
let nf = n as f64;
// Grid points
let x = 2.0 * PI * Array::range(0., nf, 1.0) / nf;
// grid spacing
let dx = 2.0 * PI / nf;
// Indices for flipping trick
let nn1 = ((nf - 1.0) / 2.0).floor() as usize;
let nn2 = ((nf - 1.0) ... | Rust |
from botocore.credentials import Credentials
from aiodynamo.credentials import Key
from aiodynamo.sign import make_default_endpoint
KEY = Key("AKIAIOSFODNN7EXAMPLE", "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY")
CREDENTIALS = Credentials(KEY.id, KEY.secret)
SERVICE_NAME = "dynamodb"
REGION = "us-east-1"
URL = make_defa... | Python |
erClientId], [o1].[OrderId], [o1].[Id] AS [Id0], [o1].[Detail], [o1].[PeriodEnd] AS [PeriodEnd0], [o1].[PeriodStart] AS [PeriodStart0]
FROM [Order] FOR SYSTEM_TIME AS OF '2010-01-01T00:00:00.0000000' AS [o0]
LEFT JOIN [OrderDetail] FOR SYSTEM_TIME AS OF '2010-01-01T00:00:00.0000000' AS [o1] ON [o0].[ClientId] =... | C# |
Uri: authUri ?? this.authUri,
tokenUri: tokenUri ?? this.tokenUri,
authProviderX509CertUrl:
authProviderX509CertUrl ?? this.authProviderX509CertUrl,
clientX509CertUrl: clientX509CertUrl ?? this.clientX509CertUrl,
universeDomain: universeDomain ?? this.universeDomain,
);
}
/// ... | Dart |
## VIEW
https://www.postgresql.org/docs/current/static/sql-creatematerializedview.html
## MATERIALIZED VIEW
```
CREATE MATERIALIZED VIEW [ IF NOT EXISTS ] table_name
[ (column_name [, ...] ) ]
[ WITH ( storage_parameter [= value] [, ... ] ) ]
[ TABLESPACE tablespace_name ]
AS query
[ WITH [ NO ]... | Markdown |
? max : static_cast<unsigned int>(val));
}
int double_to_int(double val) {
int max = std::numeric_limits<int>::max();
int min = std::numeric_limits<int>::min();
return (val < min) ? min : ((val > max) ? max : static_cast<int>(val));
}
std::vector<RegionOfInterest> get_regions(... | C |
}
// Now start incorporating past history
// FIXME: gotta sort out swaps in polarity between time-points
// FIXME: this isnt quite right as we move from OP into first TRAN point. hacking that for now
let cgs2 = if self.op.cgs == 0.0 {
// This is the fake initial-time ... | Rust |
支持超长对话;
- 一键导出聊天记录,完整的 Markdown 支持;
- 可绑定自己的域名。
GitHub:github.com/Yidadaa/ChatGPT-Next-Web
'InstructGLM - ChatGLM-6B 指令学习|指令数据|Instruct' yanqiangmiffy GitHub: github.com/yanqiangmiffy/InstructGLM
'Chinese-ChatLLaMA - 中文LLaMA基础模型;中文ChatLLaMA对话模型;预训练/指令微调数据集,基于 TencentPretrain 多模态预训练框架构建,支持简繁体中文、英文、日文等多语言’ Li Yudong Gi... | Markdown |
e written according to the variable info
/// </summary>
/// <param name="bytes">The byte array to copy from</param>
/// <param name="start">The starting position from where to copy</param>
/// <param name="length">Ammount of bytes to write from the buffer</param>
void WriteCharBytes(byte[] byte... | C# |
DrawVectorLine(frd, _GameData.CalcVector3DivSub(brb, frd, 2.5f) + frd, Color, Width, Alpha);
}
};
class GameOffsets
{
public:
INT64 GameOffset = 0x01CBD628;
INT64 GameViewOffset = 0x01853708;
INT64 GameEnemyOffset = 0x01C27628;
INT64 GameAimBotOffset = 0x01C34608;
INT64 GameHealth = 0x18... | C |
int getCodewordsRemaining(int minimum) {
return getMinSymbolSize(minimum) - minimum;
}
static Uint8List getBytes(int c, [int? c2]) {
final isNull = c2 == null;
final result = Uint8List(isNull ? 1 : 2);
result[0] = c;
if (!isNull) {
result[1] = c2;
}
return result;
}
stati... | Dart |
gs.sourceGroup.args.font = ACH:SharedMediaFont(L["Font"], nil, 10)
group.args.sourceGroup.args.fontSize = ACH:Range(L["Font Size"], nil, 11, C.Values.FontSize)
group.args.sourceGroup.args.fontOutline = ACH:FontFlags(L["Font Outline"], L["Set the font outline."], 12)
group.args.filtersGroup = ACH:Group(L["Filters"],... | Lua |
se_158) == 0x004460, "Member 'UABP_SolarCharacter_Male_C::AnimGraphNode_UseCachedPose_158' has a wrong offset!");
static_assert(offsetof(UABP_SolarCharacter_Male_C, AnimGraphNode_UseCachedPose_157) == 0x004488, "Member 'UABP_SolarCharacter_Male_C::AnimGraphNode_UseCachedPose_157' has a wrong offset!");
static_assert(of... | C++ |
local locals = KC_ITEMS_LOCALS.modules.common
function KC_Common:Median(values)
local num = getn(values)
if (not values or num == 0) then return end
sort(values)
return (math.mod(num,2) == 1) and values[num/2 +.5] or self:Round((values[num/2] + values[num/2 +1]) / 2,3)
end
function KC_Common:WeightedAvg(new, old,... | Lua |
it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
package be.zvz.kookie.network.mcpe.protocol
import be.zvz.kookie.math.Vector3
import be.zvz.kookie.network.mcp... | Kotlin |
)
AddModuleReferences ();
if (module.HasResources)
AddResources ();
if (module.HasExportedTypes)
AddExportedTypes ();
BuildTypes ();
if (assembly != null) {
if (assembly.HasCustomAttributes)
AddCustomAttributes (assembly);
if (assembly.HasSecurityDeclarations)
AddSecurityD... | C# |
, 4
ldr q9, [x5], 16
shl v6.16b, v9.16b, #4
and v7.16b, v9.16b, v10.16b
sdot v12.4s, v6.16b, v2.4b[0]
sdot v14.4s, v6.16b, v3.4b[0]
sdot v16.4s, v6.16b, v4.4b[0]
sdot v18.4s, v6.16b, v5.4b[0]
sdot v13.4s, v7.16b, v2.4b[0]
sdot v15.4s, v7.16b, v3.4b[0]
sd... | Assembly |
$ra, 0x14($sp)
/* 0D01FC 8016F7BC 27BD0018 */ addiu $sp, $sp, 0x18
/* 0D0200 8016F7C0 03E00008 */ jr $ra
/* 0D0204 8016F7C4 00000000 */ nop
.type func_8016F6DC_ovl3, @function
.size func_8016F6DC_ovl3, . - func_8016F6DC_ovl3 | Assembly |
}})
case tracingapi.MsgGenericKprobeArgSock:
sk := tetragon.KprobeSock{
Family: familyString(v.Family),
Type: network.InetType(v.Type),
Protocol: network.InetProtocol(uint16(v.Protocol)),
Mark: v.Mark,
Priority: v.Priority,
Saddr: v.Saddr,
Daddr: v.Daddr,
Sport: ... | Go |
Object m981(Object o) => m980(o);
Object m982(Object o) => m981(o);
Object m983(Object o) => m982(o);
Object m984(Object o) => m983(o);
Object m985(Object o) => m984(o);
Object m986(Object o) => m985(o);
Object m987(Object o) => m986(o);
Object m988(Object o) => m987(o);
Object m989(Object o) => m988... | Dart |
"dict")]),t._v(". See -> "),a("a",{attrs:{href:"https://en.wikipedia.org/wiki/JSON",target:"_blank",rel:"noopener noreferrer"}},[t._v("JSON Wiki"),a("OutboundLink")],1),t._v(" for more")]),t._v(" "),a("p",[t._v("Here is an example demonstrating the "),a("strong",[t._v("basic")]),t._v(" usage of "),a("strong",[t._v("JSO... | JavaScript |
default("")
override suspend fun run() {
if (dayOfWeek.isBlank()) {
subject.sendMessage(BangumiOnlineApi.getCache().getSpecificDaySchedule())
} else {
val dow = parseDayOfWeek(dayOfWeek)
if (dow == null) {
subject.send... | Kotlin |
/// <summary>
/// 安全组实例ID,例如sg-33ocnj9n,可通过<a href="https://cloud.tencent.com/document/product/215/15808">DescribeSecurityGroups</a>获取。
/// </summary>
[JsonProperty("SecurityGroupId")]
public string SecurityGroupId{ get; set; }
/// <summary>
/// 安全组规则集合。
... | C# |
[emoji_02_tongue_1]", "[emoji_02_tongue_2]", "[emoji_02_vomiting]", "[emoji_02_wink]"};
public static String[] TYPE01_EMOJI_NAME = {
"[emoji_01_angry]", "[emoji_01_angry_1]", "[emoji_01_bored]", "[emoji_01_bored_1]",
"[emoji_01_bored_2]", "[emoji_01_confused]", "[emoji_01_confused_1]", "[e... | Java |
age service
import (
"context"
"github.com/DVKunion/SeaMoon/pkg/api/database/dao"
"github.com/DVKunion/SeaMoon/pkg/api/enum"
"github.com/DVKunion/SeaMoon/pkg/api/models"
"github.com/DVKunion/SeaMoon/pkg/sdk"
"github.com/DVKunion/SeaMoon/pkg/system/errors"
"github.com/DVKunion/SeaMoon/pkg/system/tools"
"github... | Go |
-and-down-arrows,
.nav-action-button.is-active svg.uppercase-lowercase-a,
.nav-action-button.is-active svg.help,
.nav-action-button.is-active svg.stacked-levels,
.nav-action-button.is-active svg.bullet-list,
.nav-action-button.is-active svg.expand-vertically,
.nav-action-button.is-active svg.doc... | CSS |
recognizer: recognizerRepo,
),
],
),
);
}
String _transformEventTime(final String createAt) {
final int formatTimes = DateTime.parse(createAt).millisecondsSinceEpoch;
setLocaleInfo('zh_normal', ZhInfo());
final int now = DateTime.now().millisecondsSinceEpoch;
final Str... | Dart |
.ticks(), 10_000);
let d: Duration<u32, 1, 10_000> = z + 1.minutes();
assert_eq!(d.ticks(), 600_000);
let d: Duration<u32, 1, 10_000> = z + 1.hours();
assert_eq!(d.ticks(), 36_000_000);
}
#[test]
fn duration_shorthands_u64() {
let z = Duration::<u64, 1, 10_000>::fr... | Rust |
s)**
67. ### What is function shorthand in directive hooks?
In few cases, you may want the same behavior on `bind` and `update` hooks irrespective of other hooks. In this
situation you can use function shorthand,
```javascript
Vue.directive('theme-switcher', function (el, binding) {
el.styl... | Markdown |
E
#define RPREFETCH (16 * 2 + 8)
#else
#define RPREFETCH (16 * 2 + 16)
#endif
#define PREFETCH lfetch.nt1
#define ALPHA_R f6
#define ALPHA_I f7
#if !defined(CONJ) && !defined(XCONJ)
#define ADD1 FMA
#define ADD2 FMA
#define ADD3 FNMA
#define ADD4 FMA
#elif defined(CONJ) && !defined(XCONJ)
#def... | Assembly |
case 'SHA-512':
return GLib.ChecksumType.SHA512;
default:
throw new Error(_('Invalid algorithm.'));
}
}
static str(arg)
{
switch (arg) {
case GLib.ChecksumType.SHA1:
return 'SHA-1';
case GLib.ChecksumType.SHA256:
... | JavaScript |
: Padding(
padding: const EdgeInsets.only(right: 15, top: 3),
child: IconButton(
iconSize: 44,
icon: const Icon(Icons.more_horiz),
onPressed: () => print('menu'),
),
),
),
... | Dart |
FaceDetector();
await _fdLite!.initialize(model: fdl.FaceDetectionModel.backCamera);
_fdLiteReady = true;
} else if (!_fdLiteReady) {
await _fdLite!.initialize(model: fdl.FaceDetectionModel.backCamera);
_fdLiteReady = true;
}
}
static Future<List<Map<String, dynamic>>> getUnstabilize... | Dart |
::Deref for E1AS_R {
type Target = crate::FieldReader<bool, E1AS_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Event 2 Detection Status\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum E2AS_A {
#[doc = "0: Event 2 not detected"]
VAL... | Rust |
{
final $query = <String, List<String>>{
'Resource': [resource],
};
await _protocol.send(
method: 'POST',
requestUri: '/2017-03-25/tagging?Operation=Tag',
queryParams: $query,
payload: tags.toXml('Tags'),
exceptionFnMap: _exceptionFns,
);
}
/// Remove tags from ... | Dart |
/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */
#ifndef mozilla_dom_SVGTextContentElementBinding_h__
#define mozilla_dom_SVGTextContentElementBinding_h__
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/DOMJSClass.h"
#include "mozilla/dom/DOMJSProxyHandler.h"
class X... | C |
| 政治 | 你认为未来五年中国与美国之间的关系会发生什么变化? |
| 生物 | 请问蝴蝶的生命周期是怎样的? |
| 历史 | 请问法国大革命爆发的时间是什么时候? |
|商品价格|请问这个产品的价格是多少?|
|地点信息|请告诉我这个地址附近有哪些餐厅可以用餐?|
|历史事件|请列出三个发生在20世纪的历史事件。|
|健康咨询|如果我经常失眠,应该如何调整作息才能改善睡眠质量?|
|股票行情|请问最近一周苹果公司股票的走势如何?|
|天气预报|请问明天上海的天气情况如何?|
|旅游景点|请介绍一下北京值得去的非常规景点。|
|社交网络|... | Markdown |
ent: space-between;
align-items: center;
}
&--view-block &__actions--primary,
&--view-block &__attributes--primary {
display: flex;
align-items: center;
}
&--view-block &__attributes--primary {
min-width: 0;
&:not(:last-child) {
margin-right: 1rem;
}
}
&--view-page &__actions--pr... | CSS |
from pydantic import BaseModel
from typing import Optional, List, Dict, Any
class GenerateRequest(BaseModel):
"""Request model for generating a response"""
system_prompt: str
user_prompt: str
role_id: Optional[str] = None
provider_name: Optional[str] = None
class StreamGenerateRequest(BaseModel)... | Python |
values are "query" or "header". */
export enum SecurityScheme_In {
IN_INVALID = 0,
IN_QUERY = 1,
IN_HEADER = 2,
UNRECOGNIZED = -1,
}
export function securityScheme_InFromJSON(object: any): SecurityScheme_In {
switch (object) {
case 0:
case "IN_INVALID":
return SecurityScheme_In.IN_INVALID;
... | Typescript |
se, "wheel", {
deltaY: Number.NEGATIVE_INFINITY,
});
expect(sliders.slider.rate).toBe(0);
});
test("dispose", () => {
sliders.slider.dispose();
expect(sliders.slider.children.length).toBe(0);
expect(sliders.sliderButton.listenerCount("pointerdown")).toBe(0);
});
});
describe("Minimal S... | Typescript |
/**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | C |
/1999/xlink" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="m23.348 11.911-2.241-1.091v-.65L24 11.621v.593l-2.893 1.438v-.636zm-5.397 1.841h-.961v-5.31h.961v3.116h.102l1.28-1.481.723.31-1.23 1.316 1.453 1.809-.888.311-1.44-1.996zm-2.577-.002v-2.068a2.685 2.68... | Dart |
l damage over $d to all enemies within $107270A1 yards. Deals reduced damage beyond $s1 targets.
rushing_jade_wind = {
id = 116847,
cast = 0,
cooldown = function ()
local x = 6 * haste
if buff.serenity.up then x = max( 0, x - ( buff.serenity.remains / 2 ) ) end
... | Lua |
//===-- SBQueueItem.h -------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C |
*/
#include "config.h"
#include <QDialog>
#include <QWidget>
#include <QString>
#include <QLabel>
#include <QKeySequence>
#include <QDialogButtonBox>
#include <QEvent>
#include <QShowEvent>
#include <QHideEvent>
#include <QKeyEvent>
#include "globalshortcutgrabber.h"
#include "ui_globalshortcutgrabber.h"
using na... | C++ |
.New(s.T()),
)
incomingMockContext := NewMockContext(s.controller)
incomingMockMutableState := NewMockMutableState(s.controller)
incomingNDCWorkflow := NewWorkflow(
context.Background(),
cluster.TestActiveClusterMetadata,
incomingMockContext,
incomingMockMutableState,
NoopReleaseFn,
testlogger.New(s.T(... | Go |
_eq!(options.binary_prefix(), "0b");
assert_eq!(options.binary_suffix(), "");
assert_eq!(options.binary_digit_group_size(), 4);
assert_eq!(options.digit_separator(), "");
assert!(!options.leading_zeroes());
assert!(options.uppercase_hex());
assert!(options.small_hex_numbers_in_decimal());
assert!(options.add_lea... | Rust |
N_COOKIE_SECURE = True
SESSION_COOKIE_HTTPONLY = True
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
SECRET_KEY = os.environ["SECRET_KEY"]
EMAIL_HOST = os.environ["EMAIL_HOST"]
EMAIL_PORT = int(os.environ["EMAIL_PORT"])
EMAIL_HOST_USER = os.environ["EMAIL_HOST_USER"]
EMAIL_HOST_PASSWORD = os.environ["... | Python |
0x0cf4 */ ld [%o5+%l2],%o1
/* 0x0cf8 */ add %o2,%g4,%o2
/* 0x0cfc */ ld [%l3+%o5],%i1
/* 0x0d00 */ sub %o0,%o3,%o0
/* 0x0d04 */ and %o2,%g2,%o3
/* 0x0d08 */ st %o3,[%g1+%l2]
/* 0x0d0c */ srax %o2,32,%g4
/* 0x0d10 */ ld [%o4+%l2],%o3
/* 0x0d14 */ add %g1,16,%g1
/* 0x... | Assembly |
Tests {
private val smallInput = JsonSamples.jsonSampleSmall
private val largeInput = JsonSamples.jsonSample1K
@Test
fun naiveJsonGrammarSmallInput() {
val json = NaiveJsonGrammar.parseOrThrow(smallInput)
val jsonString = jsonToString(json)
assertEquals(smallInput, jsonString)... | Kotlin |
$a0, 0xC($s1)
/* 3D84D2C 80086764 00000000 */ nop
/* 3D84D30 80086768 00008290 */ lbu $v0, 0x0($a0)
/* 3D84D34 8008676C 01001026 */ addiu $s0, $s0, 0x1
/* 3D84D38 80086770 2A100202 */ slt $v0, $s0, $v0
/* 3D84D3C 80086774 E4FF4014 */ bnez $v0, .Llevel_43_80086708
/* 3D84D40 80086778 000... | Assembly |
_EVENT, this.onFrame, this);
}else{
this._armature.removeEventListener(dragonBones.FrameEvent.BONE_FRAME_EVENT, this.onFrame, this);
}
}
/**
* 增加动画完成函数
*/
public addCompleteCallFunc(func:Function, target:any) {
for (let i = 0; i < this._completeCalls.... | Typescript |
knownInfixOperators.map { functionLookupElement(it, 0.0, parameters.offset) },
)
}
}
}
private class BazelWordCompletionProvider : CompletionProvider<CompletionParameters>() {
private val startTargetSign = "//"
companion object {
val psiPattern =
psiElement()
.withLanguage(BazelQuery... | Kotlin |
Optional</sup> <a name="snowflake_role_configuration" id="@cdktf/provider-aws.kinesisFirehoseDeliveryStream.KinesisFirehoseDeliveryStream.putSnowflakeConfiguration.parameter.snowflakeRoleConfiguration"></a>
- *Type:* <a href="#@cdktf/provider-aws.kinesisFirehoseDeliveryStream.KinesisFirehoseDeliveryStreamSnowflakeConf... | Markdown |
case 73 :
// InternalPureXbase.g:1:442: T__85
{
mT__85();
}
break;
case 74 :
// InternalPureXbase.g:1:448: T__86
{
mT__86();
}
break;... | Java |
o_word >>= 4;
cur_phased_hw_shifted >>= 2;
phaseinfo_hw_shifted >>= 2;
}
}
}
}
void InitVcfPhaseLookup4b(void* table246x4bx2) {
uint32_t* table_iter = S_CAST(uint32_t*, table246x4bx2);
uint32_t unphased_vals[4];
unphased_vals[0] = table_iter[0];
table_iter[1] = unphased_vals[0];
u... | C++ |
�")
return
}
val topObj = readAction { (psiFile as JsonFile).topLevelValue as? JsonObject } ?: return
val newEle = readAction { JsonPsiFactory.createNewJsonProp(project, newKey, value) }
WriteCommandAction.runWriteCommandAction(project) {
JsonPsiUtil.addProperty(topObj, newEle, false)
... | Kotlin |
) {
return true;
}
}
return false;
}
}
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';
import 'package:demo/views/msg/msg_forward... | Dart |
yrol":"n. [化]苯乙烯",
"styrolene":"n. [化]苯乙烯",
"styrolene alcohol":"[化] 肉桂醇",
"Styron":"n. 肉桂塑料(一种抗蚀性聚苯乙烯塑料)",
"styrone":"[化] 肉桂醇\\n[医] 肉桂醇, 苯丙烯醇, 桂酰醇",
"styryl":"苯乙烯基",
"styryl alcohol":"[化] 肉桂醇",
"styryl methyl ketone":"[化] 苯乙烯基甲基(甲)酮",
"styrylamine":"[化] 苯乙烯胺",
"stys":"n. (网络用语) Speak To You Soon (马上就和你说)",
"stysadin":... | Typescript |
espTx.replayCheck = 0;
return false;
}
new secIsakmpRx(this);
new secIsakmpTx(this);
return false;
}
/**
* stop working
*/
public void workStop() {
need2work = false;
if (pipe != null) {
pipe.setClose();
... | Java |
/// but the eventual deletion of the job is still pending.
/// </summary>
DeletionPending
};
public static class JobStateExtensions {
/// <summary>
/// This job is online
/// </summary>
public static bool IsOnline(this JobState jobState) {
return jobState == JobState.Online;
}
... | C# |
{
Params p;
for (int i = 1; i < argc; i++)
{
if (string(argv[i]) == "--left") p.left = argv[++i];
else if (string(argv[i]) == "--right") p.right = argv[++i];
else if (string(argv[i]) == "--method")
{
if (string(argv[i + 1]) == "BM") p.method = BM;
els... | C++ |
,
CancellationToken cancellationToken);
Task<Result<UserProfile, Error>> DeleteProfileAvatarAsync(ICallerContext caller, string userId,
CancellationToken cancellationToken);
Task<Result<Optional<UserProfile>, Error>> FindPersonByEmailAddressAsync(ICallerContext caller, string emailAddress,
... | C# |
=> Some(Int64),
(Utf8, _) => Some(Utf8),
(_, Utf8) => Some(Utf8),
(Boolean, Boolean) => Some(Boolean),
(Boolean, Int8) => Some(Int8),
(Boolean, Int16) => Some(Int16),
(Boolean, Int32) => Some(Int32),
(Boolean, Int64) => Some(Int64),
(Boolean, UInt8) => ... | Rust |
_ _| _ \| __ )
* / _ \ \ / / | __/ _` | | | | _ \
* | __/\ V /| | || (_| | |_| | |_) |
* \___| \_/ |_|\__\__,_|____/|____/
*
* Copyright (c) 2023-2025
*
* Licensed under the Business Source License, Version 1.1 (the "License");
* you may not use this file except in... | Java |
None]+1e-8)
pred_all += pred
pred = pred_all / len(test_transform_set)
loss = criterion(pred, torch.LongTensor(label).cuda(non_blocking=True)) # for reference
pred = pred.max(1)[1].data.cpu().numpy()
# calculation 1: add per room predictions
interse... | Python |
raise ValueError('Servo indices do not match.')
# Create new times values. # TODO: what about time = 0.5
new_times: list[float] = [0.5*time for time in self._times]
new_times += [0.5 + 0.5*time for time in other._times]
# Combine angle values
new_an... | Python |
,
required Map<String, dynamic> privateKey,
required String did,
required String kid,
required ProfileType profileType,
required VCFormatType vcFormatType,
String? oldId,
}) async {
final jsonLd = jsonDecode(vc) as Map<String, dynamic>;
String? jwt;
DateTime dateTime = DateTime.now();
if (vcFormat... | Dart |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsUCvTWCID_h___
#define ns... | C |
tooltip-bottom:hover:before,
.tooltip-bottom:hover:after {
transform: translateY(12px);
}
/* Right */
.tooltip-right:before,
.tooltip-right:after {
bottom: 50%;
left: 100%;
}
.tooltip-right:before {
margin-bottom: 0;
margin-left: -12px;
border-top-color: transparent;
border-right-color: #000;
... | CSS |
41277711081029,46.42680436097828],[27.420923381552182,46.39224109856178],[27.423487963657873,46.35403464512497],[27.400439979059048,46.35203955292386],[27.396658761457747,46.34468875214562],[27.37750045792441,46.347988832122624],[27.358193312661008,46.37372980842571],[27.35955635200793,46.382163935458244],[27.346158486... | JavaScript |
"invalid intel gtt flags: %x", flags);
}
for (seg = 0; seg < dmamap->dm_nsegs; seg++) {
const bus_addr_t addr = dmamap->dm_segs[seg].ds_addr;
KASSERT(dmamap->dm_segs[seg].ds_len == PAGE_SIZE);
/* XXX Respect flags. */
error = agp_i810_write_gtt_entry(isc, va, addr, gtt_flags);
if (error)
device_print... | C |
e) => param.item1.abiEncode(e)).toList();
final dynamicItems =
encodedParams.isNotEmpty && encodedParams.first.isDynamic;
final bool isDynamic = param.item2 == -1;
if (!isDynamic && input.length != param.item2) {
throw const SolidityAbiException('Invalid argument length detected.');
}
... | Dart |
"""
测试 match_word_list_by_priority 函数的各种场景
"""
import pytest
from unittest.mock import patch
from one_dragon.base.matcher.match_result import MatchResult, MatchResultList
from one_dragon.base.matcher.ocr.ocr_utils import match_word_list_by_priority
class TestMatchWordListByPriority:
@pytest.fixture
def samp... | Python |
val['states'] =
instance.states.map((e) => _$PostStateEnumEnumMap[e]!).toList();
val['reviewState'] = _$PostReviewStateEnumEnumMap[instance.reviewState]!;
val['sortState'] = _$PostSortStateEnumEnumMap[instance.sortState]!;
writeNotNull('allows', instance.allows?.toList());
writeNotNull('blocks', instanc... | Dart |
croprect-handle{border:2px solid #fff;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-i... | CSS |
ccount
<PanelContent>
<PanelContentCode>
rpc UpdateServiceAccount ([tetrateio.api.tsb.v2.ServiceAccount](../../tsb/v2/team#tetrateio-api-tsb-v2-serviceaccount)) returns ([tetrateio.api.tsb.v2.ServiceAccount](../../tsb/v2/team#tetrateio-api-tsb-v2-serviceaccount))
</PanelContentCode>
**Requires** WRITE
Update the d... | Markdown |
for flow hydration
([a40d7fe](https://github.com/ory/kratos/commit/a40d7fe4340ff61c3fa9ac0a70dc5f7e4641a15e))
- Amr persistence
([b0b2d81](https://github.com/ory/kratos/commit/b0b2d8174ca46e066e8eb912a24d9e6efeea0ce8))
- Check if internal context is validated in store
([a23d851](https://github.com/ory/kratos/com... | Markdown |
context.realArgs[cur]
// 检索节点
val find = component.findChildren(context, current)
if (find != null) {
context.currentComponent = find
}
return when {
find != null && cur + 1 < context.realArgs.size -> {
proc... | Kotlin |
function(b){return b[1].toUpperCase()}):a},VD={},AD=Object.freeze((VD.checkout_progress=1,VD.select_content=1,VD.set_checkout_option=1,VD[Q.g.ic]=1,VD[Q.g.jc]=1,VD[Q.g.Gb]=1,VD[Q.g.kc]=1,VD[Q.g.cb]=1,VD[Q.g.qb]=1,VD[Q.g.eb]=1,VD[Q.g.ra]=1,VD[Q.g.mc]=1,VD[Q.g.Fa]=1,VD)),WD={},XD=Object.freeze((WD.checkout_progress=1,WD.... | JavaScript |
d:transparent;color:#DDD}.dp-day-disabled:focus,.dp-day-disabled:hover{background:#DDD}.dp-focuser{position:absolute;z-index:0;top:50%;left:50%}@media(max-width:480px),(max-height:480px){.dp-modal .dp{font-size:.9em;width:auto;width:100%}.dp-day-of-week,.dp-day{padding:8px}}@keyframes slide-up{0%{transform:translate(-5... | CSS |
BatchJobIntegration() {
cleanupDatabase()
val now = LocalDateTime.now().withNano(0)
insertUser(
email = "deleted-1year-1@example.com",
createdDt = now.minusYears(2),
updatedDt = now.minusYears(1),
deletedDt = now.minusYears(1).minusDays(1)
)
insertUser(
email = "deleted-1year-2@example.com",... | Kotlin |
(--gv-theme-layout--pt) var(--gv-theme-layout--pl);
display: grid;
grid-template-columns: 20% repeat(7, 1fr);
column-gap: 10px;
}
.layout__footer__top__category {
padding-top: 70px;
}
.layout__footer__top__category__title,
.layout__footer__top__category__title_border {
margin: 0.3rem 0.5rem;
}
.layout__foo... | CSS |
laceOpenInIdeRequestHandler
import com.jetbrains.edu.learning.messages.EduCoreBundle
import com.jetbrains.edu.learning.onError
import org.junit.Test
import java.util.concurrent.atomic.AtomicInteger
class MarketplaceOpenInIdeTest : EduTestCase() {
private val mockConnector: MockMarketplaceConnector get() = Marketplac... | Kotlin |
kbox } = components.C3.controls
const props = {
workflow: {
workflowID: '',
meta: {
name: 'CRM-Test',
},
handle: 'CRMT',
enabled: true,
},
processing: false,
success: false,
canCreate: true,
}
export default {
name: 'Editor info',
group: ['Workflow'],
component,
props,
c... | JavaScript |
적으로 수행할 수 있어 UI가 데이터 상태와 일치하는 것을 보장한다.
2. Observers는 Lifecycle Object에 바인딩 되어 있고, destroyed 되는 경우에 알아서 clean up하기 때문에 memory leaks를 피할 수 있다.
3. Observers는 lifecycle이 inactive인 경우 event를 수신하지 않기때문에 에러가 발생할 염려가 없다.
4. lifecycle이 inactive 상태였다 active 상태로 변한 경우 최신 데이터를 수신해 항상 최신의 데이터를 보장한다.
→ LifecycleOwner의 getLifeCycle(... | Markdown |
make:policy User/AuthPolicy | app/policies/User/auth_policy.go |
| make:command Goravel/CleanCache | app/console/commands/Goravel/clean_cache.go |
| make:model User/Phone | app/models/User/phone.go |
| make:observer User/PhoneObserver | ... | Markdown |
BufferSizeInBytes(minBufferSize)
// .build().apply {
// AcousticEchoCanceler.create(this.audioSessionId)?.apply {
// enabled = isAEC
// }
// }
//
//
// audioRecord?.startRecording()
// val timestamp = SimpleDateFormat("yyyyMMdd_HHmmss"... | Kotlin |
#include <config.h>
#include <common.h>
#include <asm/arch/bspchip.h>
/******************************************************************************
*
* serial_init - initialize a channel
*
* This routine initializes the number of data bits, parity
* and set the selected baud rate. Interrupts are disabled.
* Set t... | C |
self.iterator = iterator.map(str::to_string);
}
pub fn stoken(&mut self, stoken: Option<&str>) {
self.stoken = stoken.map(str::to_string);
}
pub fn to_fetch_options<'a>(&'a self) -> etebase::FetchOptions<'a> {
let mut ret = etebase::FetchOptions::new();
if let Some(limit)... | Rust |
()
topGauge := NewGauge(Metadata{Name: "top.gauge"})
r.AddMetric(topGauge)
r.AddMetric(NewGaugeFloat64(Metadata{Name: "top.floatgauge"}))
topCounter := NewCounter(Metadata{Name: "top.counter"})
r.AddMetric(topCounter)
r.AddMetric(NewHistogram(Metadata{Name: "top.histogram"}, time.Minute, 1000, 3))
r.AddMetr... | Go |
* NumberValue(numberEvent.value.get - 1)
* )
* )
*
* else -> emptyFlow()
* }
* }
* ```
*
* @param AR Action Result type
* @param A Action type
* @property react A function/lambda that takes input state of type [AR], and returns the flow of actions [Flow]<[A]>.... | Kotlin |
oc to return */
size = 0;
if (! sysctl(mib, 6, NULL, &size, NULL, 0)) {
info->num_procs = size / sizeof(struct kinfo_proc);
}
mib[0] = CTL_HW;
mib[1] = HW_PHYSMEM64;
uint64_t physmem = 0;
size = sizeof(physmem);
if (! sysctl(mib, 2, &physmem, &size, NULL, 0)) {
info->ram_kb = physmem / 1024;
}
struct uv... | C |
: 5 + ChallengeManager::<Test>::get_raising_period_Length(),
raised_group: vec![
(ACCOUNT_ID_2, 2_000_000_000_000),
(ACCOUNT_ID_2, 3_000_000_000_000),
(ACCOUNT_ID_3, 1_000_000_000_000),
]
}
);
let check_perval = vec![
(ACCOUNT_ID_2, Perbill::from_rational(2_000_000_000_000u64, 6_000_00... | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.