content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
cfg(all(target_arch = "x86_64", target_feature = "avx2"))]
#[test]
fn test_gen_random_vec_4_1() {
// test correct len
for len in START..END {
let values = vec_rand::gen_random_vec_4_1(len, 0xBAD5EED);
assert_eq!(values.len(), len);
}
// test reproducibility
let step_a = vec_rand::ge... | Rust |
#ifndef GAMECONFIGS_H
#define GAMECONFIGS_H
#define GAMECONFIGS_NO_ID -1
// max amount of IDable game config entries
// (also defines the limit for the max id value)
#define GAMECONFIGS_MAX_IDS 1024
class LinkedList;
namespace game
{
class GameConfNodeImpl;
/**
* A class that can hold game configura... | C |
watts / (v * MASS);
if gamma <= 1e-5 {
gamma = 0.0;
}
if (v - 3.0) <= 1e-2 {
return -1;
}
t += DELTA_T; // time step
println!("t: {}", t);
}
(t * 2.0).round() as i32
}
fn dotest(v0: i32, slope: i32, d_tot: i32, exp: i32) -> () {
a... | Rust |
, delegate
{
global::Logger.Log(new object[]
{
"animationProxy.IsBlocking",
this.animationProxy.IsBlocking
});
if (this.animationProxy.IsBlocking)
{
this.m_bloodSplatter.SpawnDust(this.transform.position + new Vector3(0f, 1.6f, 0f));
}
else
{
this.m_bloodSplatter.SpawnBlood(this.transform.p... | C# |
{
for _, group := range m.groups {
if group.Name == "EyeBlink" {
m.blinkManager = blink.NewBlinkManager(m.core, m.moc.ModelPtr, group.Ids)
return
}
}
}
// Disable Auto Blink
func (m *Model) DisableAutoBlink() {
m.blinkManager = nil
}
// Update the model
func (m *Model) Update(delta float64) {
if m.moti... | Go |
t)
{
/* the start of the string is not preceded by a Cased character */
if (offset == 0)
return false;
/* iterate backwards, looking for Cased character */
for (int i = offset - 1; i >= 0; i--)
{
if ((str[i] & 0x80) == 0 || (str[i] & 0xC0) == 0xC0)
{
pg_wchar curr = utf8_to_unicode(str + i);
if (pg_u... | C |
super::OsuObject;
pub(crate) struct DifficultyObject<'h> {
pub(crate) base: &'h OsuObject,
pub(crate) prev: Option<(f32, f32)>, // (jump_dist, strain_time)
pub(crate) jump_dist: f32,
pub(crate) travel_dist: f32,
pub(crate) angle: Option<f32>,
pub(crate) delta: f32,
pub(crate) strain_time:... | Rust |
t PU_OPERATE_3RD_APP_PATH_LEN = 64;
int PU_OPERATE_3RD_APP_CMD_LEN = 128;
int PU_MANAGE_3RD_APP_NUM_MAX = 1;
;
int PU_MANAGE_3RD_APP_URL_MAX = 64;
int DIAL_APP_LEN_MAX = (32 + 1);
int DIAL_USR_NAME_LEN_MAX = (32 + 1);
int DIAL_PASSWD_LEN_MAX = (32 + 1);
int DIAL_PLAN_AREA_MAX = 8... | Java |
protein_coding,upstream_transcript_variant|ENSG00000167608|ENST00000465790|TMC4|protein_coding,upstream_transcript_variant|ENSG00000167608|ENST00000495398|TMC4|protein_coding,exon|ENSG00000167608|ENST00000476013|TMC4|protein_coding,upstream_transcript_variant|ENSG00000125505|ENST00000474910|MBOAT7|protein_coding,upstre... | Java |
\"(app-pages-browser)/./node_modules/next/dist/compiled/react/jsx-runtime.js\");\n/* __next_internal_client_entry_do_not_use__ default auto */ \n\n/**\n * @ignore - internal component.\n */ \n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_2__[\"default\... | JavaScript |
/*
* Copyright 2008-2009 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 |
Height() {
return WATERMARK_HEIGHT;
}
@Value("${watermark.height:80}")
public void setWatermarkHeight(String watermarkHeight) {
WATERMARK_HEIGHT = watermarkHeight;
}
public static void setWatermarkHeightValue(String watermarkHeight) {
WATERMARK_HEIGHT = watermarkHeight;
... | Java |
etParams(classSchedule.section, classSchedule.week, size))
}
}
val childCount = gridLayout.childCount
clickListener.updateBtnBackgroundTintList()
for (i in 0 until childCount) {
val view = gridLayout.getChildAt(i)
view.setOnLongClickListener(clickList... | Kotlin |
商业宣传。
第五十四条 宗教活动场所用于宗教活动的房屋、构筑物及其附属的宗教教职人员生活用房不得转让、抵押或者作为实物投资。
第五十五条 为了公共利益需要,征收宗教团体、宗教院校或者宗教活动场所房屋的,应当按照国家房屋征收的有关规定执行。宗教团体、宗教院校或者宗教活动场所可以选择货币补偿,也可以选择房屋产权调换或者重建。
第五十六条 宗教团体、宗教院校、宗教活动场所、宗教教职人员可以依法兴办公益慈善事业。
任何组织或者个人不得利用公益慈善活动传教。
第五十七条 宗教团体、宗教院校、宗教活动场所可以按照国家有关规定接受境内外组织和个人的捐赠,用于与其宗旨相符的活动。
宗教团体、宗教院校、宗教活动场所不得接受境外组织和个人附... | Markdown |
在日记末尾,还有一行小字,墨色鲜红如初:
"小墨,当你读到这行字时,我已离去。但请记住:日日为自己执笔,不是为了留下痕迹,而是为了确认——在时光的长河中,你始终是你自己的作者。"
小墨合上日记,泪水滴落在封面上。她走到书案前,取出爷爷留下的时光墨,提笔写下:
"九月廿六,阴。爷爷走了,但执笔的手尚稳。"
墨迹初呈深红,如血,如朝阳。
她知道,这抹红色会随着时光流转而变化。也许某天会转为宁静的银白,也许会沉淀为深邃的靛蓝。但无论颜色如何变化,那都是她与自己对话的见证,是她日日为自己执笔的证明。
窗外,晨曦微露。新的一天开始了。
小墨提笔,在昨日的墨迹旁添上:
"九月廿七,晴。开始学习调制时光墨。"
墨色初呈淡绿,如初... | Markdown |
ne2 and char1 < char2
if op == '<=':
return line1 < line2 or line1 == line2 and char1 <= char2
if op == '>':
return line1 > line2 or line1 == line2 and char1 > char2
if op == '>=':
return line1 > line2 or line1 == line2 and char1 >= char2
if op == '=='... | Python |
"ShoBus03.m2", -- [780]
"ShoBus04.m2", -- [781]
"ShoBus06.m2", -- [782]
"ShoBus07.m2", -- [783]
"SivBus01.m2", -- [784]
"SivBus02.m2", -- [785]
"SivCon01.m2", -- [786]
"SivCon02.m2", -- [787]
"SivFlo01.m2", -- [788]
"SivFlo02.m2", -- [789]
"Si... | Lua |
ts per day with 100GB job state in flink
Late or out-of-order events supported
---
## Conclusions
- QPS node: 10k per flink with DB sink (elasticsearch)
- QPS total: 1.5E7, increased horizontal, per node.
- RTT: 2 minutes time to process.
- Machine count: Total QPS/10k.
- Machine spec: 16 cores, 100GB RAM, 1TB NVME.
... | Markdown |
assert_yaml_eq_json("- |\n val\n\n line2", r#"["val\n\nline2\n"]"#);
}
#[test]
fn yaml_literal_with_empty_line_and_bad_newlines_in_a_list() {
assert_yaml_eq_json("- |\r\n val\r\n\r\n line2", r#"["val\n\nline2\n"]"#);
}
#[test]
fn yaml_words_with_space() {
assert_yaml_eq_json(" a\nb", r#""a b""#);
}
#[t... | Rust |
a folder, but the given path refers to something that isn't a folder.
#[serde(rename="not_folder")]
NotFolder,
/// The file cannot be transferred because the content is restricted.
/// For example, sometimes there are legal restrictions due to copyright claims.
#[serde(rename="restricted_content")]
RestrictedCon... | Rust |
0 0 0 0-10H8zm0-2h8a7 7 0 0 1 0 14H8A7 7 0 0 1 8 5zm0 10a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"}}]}]})(t)},RiUpload2Fill:function(t){return ii({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M4 19h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v... | JavaScript |
با شتاب GPU
```bash
# GPU deployment for high-performance reasoning
docker run --runtime nvidia --gpus all \
--name phi4-mini-prod \
-e HUGGING_FACE_HUB_TOKEN=${HF_TOKEN} \
-p 8000:8000 \
vllm/vllm-openai:latest \
--model microsoft/Phi-4-mini-instruct \
--max-model-len 8192 \
--gpu-memory-utilization 0.8 ... | Markdown |
string modVersion, string modAuthor, string modDescription, string melonVersion,
string gameVersion, string modDownloadLink, string modCategory,
Platform modPlatform, List<ModLink> modDependsOn, List<ModLink> modConflictsWith
)
{
this.modName = modName;
t... | C# |
(--mod-color-slider-border-color-disabled, var(--spectrum-disabled-background-color)));
background: var(--highcontrast-color-slider-background-color-disabled, var(--mod-color-slider-background-color-disabled, var(--spectrum-disabled-background-color)));
}
}
.spectrum-ColorSlider-gradient,
.spectrum-ColorSlider-chec... | CSS |
/
pub struct FlyCameraPlugin;
impl Plugin for FlyCameraPlugin {
fn build(&self, app: &mut AppBuilder) {
app.init_resource::<State>()
.add_system(camera_movement_system.system())
.add_system(mouse_motion_system.system());
}
}
fn main() {}
struct Solution;
impl Solution {
p... | Rust |
eturn The form data list builder.
*/
public final PartList formData() {
if (formData == null)
formData = createFormData();
return formData;
}
/**
* Creates the builder for the form data list.
*
* <p>
* Subclasses can override this method to provide their own implementation.
*
* <p>... | Java |
?? this.alanineMg,
asparticAcidMg: asparticAcidMg ?? this.asparticAcidMg,
glutamicAcidMg: glutamicAcidMg ?? this.glutamicAcidMg,
glycineMg: glycineMg ?? this.glycineMg,
prolineMg: prolineMg ?? this.prolineMg,
serineMg: serineMg ?? this.serineMg,
hydroxyprolineMg: hydroxyprolineMg ??... | Dart |
11;
};
["sort"] = "Shaman";
["classes"] = {
[1] = "Shaman";
};
["deliver"] = {
[1] = {
["id"] = 6176;
["type"] = "npc";
};
};
["prev"] = 8410;
["prequests"] = {
[1] = 8410;
};
["level"] = 52;
["source"] = {
[1] = {
... | Lua |
ContainRecipeItem(recipeItem)) {
throw new InvalidValueException(ErrorCode.RECIPE_ITEM_DUPLICATED);
}
recipe.add(recipeItem);
}
public void clear() {
recipe.clear();
}
private boolean isContainRecipeItem(RecipeItem recipeItem) {
return recipe.stream()
.anyMatch(item -> item.isSameIngredientWith(rec... | Java |
72]
add %l4, 1, %l4
ba P1907
nop
TARGET1429:
ba RET1429
nop
P1907: !_ST [1] (maybe <- 0x800253) (Int) (LE)
wr %g0, 0x88, %asi
! Change single-word-level endianess (big endian <-> little endian)
sethi %hi(0xff00ff00), %l6
or %l6, %lo(0xff00ff00), %l6
and %l4, %l6, %l7
srl %l7, 8, %l7
sll %l4, 8, %l3
and %l3, %l6,... | Assembly |
s.expectMessage, m.Message())
}
}
}
func TestBaseBindsDao(t *testing.T) {
app, _ := tests.NewTestApp()
defer app.Cleanup()
vm := goja.New()
baseBinds(vm)
vm.Set("db", app.Dao().ConcurrentDB())
vm.Set("db2", app.Dao().NonconcurrentDB())
scenarios := []struct {
js string
concurrentDB dbx... | Go |
-dev/kubevela/apis/core.oam.dev/v1beta1"
"github.com/oam-dev/kubevela/apis/types"
pkgaddon "github.com/oam-dev/kubevela/pkg/addon"
"github.com/oam-dev/kubevela/pkg/oam"
addonutil "github.com/oam-dev/kubevela/pkg/utils/addon"
"github.com/oam-dev/kubevela/pkg/utils/apply"
"github.com/oam-dev/kubevela/pkg/utils/comm... | Go |
/*
File: e_ctimer_set.s
This file is part of the Epiphany Software Development Kit.
Copyright (C) 2013 Adapteva, Inc.
See AUTHORS for list of contributors.
Support e-mail: <support@adapteva.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Ge... | Assembly |
const updates = {
name: req.body.name,
email: req.body.email,
};
const updatedUser = await User.findOneAndUpdate(
{ _id: user._id },
{ $set: updates },
{ new: true, runValidators: true, context: 'query' }
);
res.json({ data: updatedUser });
}
}
import { PriorityQueue } ... | Typescript |
tatusListener(listener);
}
@override
Future<NEResult<NERoomSIPCallInfo?>> callOutRoomSystem(
NERoomSystemDevice device) =>
MeetingInviteRepository().callOutRoomSystem(device);
}
// Copyright (c) 2022 NetEase, Inc. All rights reserved.
// Use of this source code is governed by a MIT license that c... | Dart |
ptorProto`.
final $typed_data.Uint8List streamStateUpdateDescriptor = $convert.base64Decode(
'ChFTdHJlYW1TdGF0ZVVwZGF0ZRI9Cg1zdHJlYW1fc3RhdGVzGAEgAygLMhgubGl2ZWtpdC5TdH'
'JlYW1TdGF0ZUluZm9SDHN0cmVhbVN0YXRlcw==');
@$core.Deprecated('Use subscribedQualityDescriptor instead')
const SubscribedQuality$json = {
'1... | Dart |
teamName: string, country: string, meta: string, isAcceptedTournamentTeam: boolean,
tournamentPlayerIds: string[], registeredPlayerIds: string[], creatorMail: string, leaderName: string,
armyListsChecked: boolean, paymentChecked: boolean,
playerMarkedPayment: boo... | Typescript |
nst
{
return mYDomain;
}
std::array<Real, 2> const& GetZDomain() const
{
return mZDomain;
}
Real Evaluate(Real x, Real y, Real z) const
{
int i0, i1, i2;
Real w;
for (i2 = 0; i2 <= mZDegree; ++i2)
... | C |
\b\b_n_high elf_f_head_06.nif", 0x0319_1C63, 0x1499_5B5A),
(r"meshes\b\b_n_high elf_f_head_04.nif", 0x0319_1C63, 0x1499_5B5B),
(r"meshes\b\b_n_high elf_m_head_02.nif", 0x0319_1C63, 0x1499_7758),
(r"meshes\b\b_n_high elf_m_head_06.nif", 0x0319_1C63, 0x1499_775A),
(r"meshes\b\b_n_high elf_m_head_04.ni... | Rust |
icon = "",
special_enemy = 3,
infection_value = 10,
compass_index = 4,
discover_type = 2,
scan_desc = "A mass-produced Siren \"Pawn\" ,strengthened with enhancement modules.",
expedition_icon = 245011,
is_guide = 0,
id = 11320014,
object_icon = {
"cell_red",
1,
100,
0
},
event_op = {},... | Lua |
HOSTENT_BUFFER_SIZE, &hostp, &thd_err)
&& (thd_err == TRY_AGAIN) && (dns_retries++ < MAX_DNS_RETRIES))
{
errlog::log_error(LOG_LEVEL_ERROR,
"Timeout #%u while trying to resolve %s. Trying again.",
... | C++ |
495,{11202,11327,11328},{11199,11202,11327},1891,"A",nil,3},
[23907] = {'Theramore Cannon',1524,1524,40,40,0,{[15]={{70.8,51.9},{69.85,53.63},{69.69,51.74}}},nil,15,nil,nil,35,"AH",nil,0},
[23908] = {'Jhet Ironbeard',8982,8982,70,70,0,{[495]={{29.83,42.6}}},nil,495,nil,nil,1891,"A","Blacksmithing Supplies",4224},
[2390... | Lua |
this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
*
* Redistributio... | C++ |
(contains(simplePolygon, [-10, 0])).toBe(false);
expect(contains(simplePolygon, [-5, 8])).toBe(false);
expect(contains(simplePolygon, [0, 11])).toBe(false);
expect(contains(simplePolygon, [5, 8])).toBe(false);
expect(contains(simplePolygon, [11, -10])).toBe(false);
... | Typescript |
ore'],
scores['freshness_score'], scores['quality_score'],
scores['combined_score'])
return True, f"Article {article_data['id']} saved successfully"
except Exception as e:
return Fal... | Markdown |
ort com.blankj.utilcode.util.ToastUtils
import com.leo.viewpager2demo.R
import com.leo.viewpager2demo.bean.SourceBean
import com.leo.viewpager2demo.databinding.ActivityIndicatorBinding
import com.leo.viewpager2demo.fragment.ImageFragment
import com.leo.viewpager2demo.fragment.TextFragment
import com.leo.viewpager2demo.... | Kotlin |
/*
* Copyright 2017 Google Inc.
*
* 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 law or agreed to... | C |
his.adAvailOffset;
final noRegionalBlackoutFlag = this.noRegionalBlackoutFlag;
final webDeliveryAllowedFlag = this.webDeliveryAllowedFlag;
return {
if (adAvailOffset != null) 'adAvailOffset': adAvailOffset,
if (noRegionalBlackoutFlag != null)
'noRegionalBlackoutFlag': noRegionalBlackoutF... | Dart |
::SCI8, ICU::VECTOR::TXI8, ICU::VECTOR::RXI8,
ICU::VECTOR, ICU::VECTOR::TEI8, ICU::VECTOR::ERI8> SCI8;
typedef scig_t<0x0008'A120, peripheral::SCI9, ICU::VECTOR::TXI9, ICU::VECTOR::RXI9,
ICU::VECTOR, ICU::VECTOR::TEI9, ICU::VECTOR::ERI9> SCI9;
typedef scig_t<0x000D'0000, peripheral::SCI11, ICU::VECTOR::TXI11, ICU... | C++ |
(t *testing.T) {
cs := &naiveCryptoService{}
alice := api.PeerIdentityType("alicePeer")
bob := api.PeerIdentityType("bobPeer")
aliceID := cs.GetPKIidOfCert(alice)
bobId := cs.GetPKIidOfCert(bob)
cs.On("OrgByPeerIdentity", dummyID).Return(api.OrgIdentityType("D"))
cs.On("OrgByPeerIdentity", alice).Return(api.OrgI... | Go |
temp;
}
int maskCount = 4;
String start = temp.substring(0, 3);
String end = temp.substring(7);
return start + "*".repeat(maskCount) + end;
}),
/**
* 地址脱敏示例:"中国北京市海淀区翻斗花园一栋1单元" ==> "中国北京市海淀区*********"
*/
ADDRESS(s -> {
String temp = s.toString();
... | Java |
-d4 * mdata&
tst.b d2
bne TYPEMIS
move.w d3,addr_in+4
movem.l (sp)+,d2-d4 * ypos
tst.b d2
bne TYPEMIS
move.l d3,int_in+2
movem.l (sp)+,d2-d4 * xpos
tst.b d2
bne TYPEMIS
move.w d3,int_in
movem.l (sp)+,d2-d4 * menu&
tst.b d2
bne TYPEMIS
move.l d3,addr_in
aes 36
move.l RETURN... | Assembly |
_->FindServiceByName("BarService"));
EXPECT_TRUE(foo_file_->FindServiceByName("BarService") == NULL);
EXPECT_TRUE(bar_file_->FindServiceByName("FooService") == NULL);
EXPECT_TRUE(baz_file_->FindServiceByName("FooService") == NULL);
EXPECT_TRUE(foo_file_->FindServiceByName("NoSuchService") == NULL);
EXPECT_T... | C++ |
ummary>
SYMBOL_TOKEN = 0,
/// <summary>
/// Queries a source server for the command to extract the source file from source control. This includes the name of the executable file and
/// its command-line parameters. The command is returned to the Buffer buffer as a Unicode string.
... | C# |
_commands;
load_commands.Place(&segment_command);
MachOFile file;
file.Header(&load_commands);
ReadFile(&file, true, CPU_TYPE_ANY, 0);
EXPECT_CALL(reporter, MisplacedSegmentData("notmerelyfifteen"))
.WillOnce(Return());
EXPECT_FALSE(reader.WalkLoadCommands(&load_command_handler));
}
TEST_F(LoadCom... | C++ |
return
}
for i := 0; i < batches; i++ {
var last int
var isMasked bool
if last, isMasked, err = f(t, it); err != nil {
return
}
if retIsMasked && (!isMasked) {
mask = append(mask, make([]bool, last)...)
}
for j, ot := range others {
if last, isMasked, err = f(ot, its[j]); err != nil {
r... | Go |
var json = string.Empty;
JsonAlarmSettings result;
JsonAlarmSettingsData settings;
try
{
var data = new StreamReader(context.Request.InputStream).ReadToEnd();
// Start at char 5 to skip the "json:" prefix
json = WebUtility.UrlDecode(data);
result = json.FromJson<JsonAlarmSettings>();
... | C# |
time.Duration
)
length := len(s)
if length < 10 {
return Datetime{}, fmt.Errorf("%w: string too short", errDatetime)
}
// Date: YYYY-MM-DD
// YYYY is at offset 0
// MM is at offset 5
// DD is at offset 8
// - is at 4 and 7
// YYYY
if !unicode.IsDigit(rune(s[0])) || !unicode.IsDigit(rune(s[1])) ||... | Go |
* {
padding: 0;
margin: 0;
}
body {
background: #222;
font-family: Georgia, Times, "Times New Roman", serif;
color: #aaa;
}
body.dragging {
cursor: -webkit-grabbing !important;
}
.container {
max-width: 1024px;
margin: 0 auto;
padding: 70px 5%;
}
.container h1 {
color: #f... | CSS |
C3EAC32"] = function(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
L1_2 = A0_2[1]
if nil ~= L1_2 then
L1_2 = A0_2[1]
L2_2 = L1_2[5]
L3_2 = L2_2
L2_2 = L2_2.iterator
L2_2 = L2_2(L3_2)
while true do
L4_2 = L2_2
L3_2 = L2_2.hasNext
L3_2 = L3_2(L4_2)
if not L3_2 then
... | Lua |
Commit(tmtime.Now())
} else {
cs.StartTime = cs.config.Commit(cs.CommitTime)
}
cs.Validators = validators
cs.Proposal = nil
cs.ProposalBlock = nil
cs.ProposalBlockParts = nil
cs.LockedRound = -1
cs.LockedBlock = nil
cs.LockedBlockParts = nil
cs.ValidRound = -1
cs.ValidBlock = nil
cs.ValidBlockParts = nil... | Go |
indexing
/// assert_eq!(m[(U1::new(), U1::new())], 4.0);
/// // assert_eq!(m[(U2::new(), U2::new())], 1.0); // error
/// # }
/// ```
///
/// [`prelude`] provides typenum constants (`U0`, `U1`, `U2`, ...), matrix operation traits (e.g.,
/// [`Determinant`]), and aliases for `Matrix` (e.g., `Matrix2f32`).
///
/// Note t... | Rust |
DatePrintListTile(),
Divider(
height: 2 * TraleTheme.of(context)!.padding,
),
Padding(
padding: padding,
child: AutoSizeText(
AppLocalizations.of(context)!.backup.inCaps,
style: Theme.of(context).textTheme.headlineMedium,
... | Dart |
= {
ID = 16,
Display2 = LSTR("PLAYERLEVELDISPLAY.CHAT_IN_THE_WORLD_CHANNEL"),
Name = "WorldChannel",
Display = LSTR("PLAYERLEVELDISPLAY.OPEN_FUNCTION_")
},
["Enhance"] = {
ID = 10,
Display2 = LSTR("PLAYERLEVELDISPLAY.EQUIPMENT_ENHANCEMENT"),
Name = "Enhance",
Display = LSTR("PLAYERLE... | Lua |
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 org.kryptonmc.krypton.shapes.discrete
import org.kryptonmc.api.util.Direction
imp... | Kotlin |
{
String event = nativeGetLastOSMessageString();
String key = nativeGetLastOSMessageString2();
String data = nativeGetLastOSMessageString3();
Log.v(app.PackageName, "MESSAGE_FLURRY_LOG_EVENT: Event + key/data: "+event+" key: "+key+", data: "+data);
if (!data.isEmpty())
{
// Even... | Java |
* @since 0.4.0
*/
toWideSymbolForJapanese(): Jaco;
/**
* 先頭と末尾の空白を取り除く
*
* @version 2.0.0
* @since 0.2.0
*/
trim(): Jaco;
/**
* 先頭の空白を取り除く
*
* @version 2.0.0
* @since 2.0.0
*/
trimLeft(): Jaco;
/**
* 末尾の空白を取り除く
*
* @vers... | Typescript |
1, friends2)
```
#### 拉多个好友入群
```go
self.AddFriendsIntoGroup(group, friend1, friend2) // friend1, friend2 为不定长参数
// group.AddFriendsIn(friend1, friend2)
```
最好自己是群主,这样成功率会高一点。
#### 拉单个好友进多个群
```go
self.AddFriendIntoManyGroups(friend, group1, group2) // group1, group2 为不定长参数
// friend.AddIntoGroup(group1, gro... | Markdown |
`S` 的 First 集为 `{a,d}`,`B→cD` 加入 `{c}`,且 `ε` 来自 `B→ε`。
---
#### **Follow 集**
| 非终结符 | Follow 集计算过程 | Follow 集结果 |
|----------|----------------------------------------------------------------------------------|----------------|
| **S** | 开始符... | Markdown |
from pyxdsm.XDSM import (
XDSM,
OPT,
FUNC,
SOLVER
)
def generate_xdsm():
xdsm = XDSM()
xdsm.add_system('opt', OPT, r'\textbf{Optimizer}')
xdsm.add_system('solver', SOLVER, r'\textbf{Newton Solver}')
xdsm.add_system('D1', FUNC, [r'\textbf{Discipline 1}',
... | Python |
youtRightAlign) > * > *:last-child > .mblRadioButton:first-child,
.mblFormLayout:not(.mblFormLayoutRightAlign) > * > *:last-child > .mblTextArea:first-child,
.mblFormLayout:not(.mblFormLayoutRightAlign) > * > *:last-child > .mblExpandingTextArea:first-child,
.mblFormLayout:not(.mblFormLayoutRightAlign) > * > *:last-chi... | CSS |
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 law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTI... | C++ |
kPSJVbnRpdGxlZC1QYWdlJTIwMSIgdmlld0JveD0iMCAwIDQgMTAiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgdmVyc2lvbj0iMS4xIg0JeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSINCXg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNHB4IiBoZWlnaHQ9IjEwcHgiDT4NCTxnIGl... | CSS |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ConfigManager = require(ReplicatedStorage.RobloxCharacterPackages.CharacterController.ConfigManager)
local BaseConfig = {}
local BaseConfigMetatable = { members = {} }
function BaseConfigMetatable:__index(key)
local privateValue = self.members.pr... | Lua |
on the local timezone, but it should be formatted
expect(formattedDateTime, isNotEmpty);
expect(formattedDateTime, contains('Jan'));
expect(formattedDateTime, contains('15'));
expect(formattedDateTime, contains('2024'));
});
test('formatDateTimeMedium provides more information than for... | Dart |
onst thanosArticulationDelayMap: ArticulationDelayMap = {
// Legato: SPECIAL CASE
2: {
cc58Value: 10,
delayOffsetMs: 60,
type: 'long'
},
// Legato Start
3: {
cc58Value: 10,
delayOffsetMs: 10,
type: 'long'
},
// Marcato Legato
4: {
c... | Typescript |
expected E after closure type name")
}
st.advance(1)
num := st.compactNumber()
return &Closure{
TemplateArgs: templateArgs,
TemplateArgsConstraint: templateArgsConstraint,
Types: types,
Num: num,
CallConstraint: callConstraint,
}
}
// templateParamDe... | Go |
### Scheme
1. `Command + shift + ,` 编辑 scheme,选择 debug 或 release
### 调试
`F6`:跳到下一条指令
`F7`:跳进下一条指令(它会跳进内部函数,具体效果自测)
`Control + Command + y` 继续运行
### 其他
1. `Command + k` 删除 Console 中的内容
2. `Command + d` 打开/关闭 控制台(修改系统快捷键:Show/Hide Debug Area)
获得更全面的快捷键介绍,请参考:[这篇文章](http://stackoverflow.com/questions/10296138/xcod... | Markdown |
%3C%2Fsvg%3E%0D%0A");
width: 22px;
height: 22px;
}
.dx-swatch-dark .dx-diagram {
border: 1px solid transparent;
display: flex;
flex-flow: column;
height: 600px;
min-height: 350px;
}
.dx-swatch-dark .dx-diagram .dx-diagram-toolbar-wrapper {
padding: 5px;
flex-grow: 0;
}
.dx-swatch-dark .dx-diagram .dx-... | CSS |
teWasNotSet;
}
private bool TryGetVariableFromInstruction(Instruction instruction, out VariableReference varReference)
{
return StateMachineUtilities.TryGetVariableFromInstruction(instruction, this.moveNextMethodContext.Variables, out varReference);
}
private bool TryProcessEndBlock(InstructionBlock theB... | C# |
, 4.0F, 0.0F, new Dilation(0.0F)), ModelTransform.of(1.25F, 1.0F, 2.5F, -0.1745F, 0.0F, 0.0F));
left_leg.addChild("cube_r3", ModelPartBuilder.create().uv(0, 5).mirrored().cuboid(0.5F, 0.0F, -2.0F, 2.0F, 0.0F, 2.0F, new Dilation(0.0F)).mirrored(false), ModelTransform.of(-1.5F, 4.0F, 0.0F, 0.1745F, 0.0F, 0.0F));... | Java |
( fSkippedAttach )
{
pfmpT->SetSkippedAttach();
}
LGPOS lgposConsistent;
LGPOS lgposAttach;
lgposConsistent = pAttachInfo->le_lgposConsistent;
lgposAttach = pAttachInfo->le_lgposAttach;
// get lgposAttch
err = ErrLGRISetupAtchchk(
*pifmp,
&... | C++ |
v62.0996l-37.7002 37.7002c-6.2002 6.2002 -6.2002 16.4004 0 22.6006l11.2998 11.2998c6.2002 6.2002 16.4004 6.2002 22.6006 0zM256 256v128h-160v-128h160z" />
<glyph glyph-name="glasses" unicode="" horiz-adv-x="576"
d="M574.1 167.63c1.26074 -5.07031 1.90039 -10.2695 1.90039 -15.5v-70.25c0 -62.8896 -51.5801 -113... | CSS |
்கவும். அந்தச் சோதனையில் `QUERY_PROBE` கட்டளைகள் எப்போதும் எதிர்பார்க்கப்படும் முடிவுகளை உருவாக்கினால், "BLTouch சென்சார் நிலையைச் சரிபார்க்கத் தவறிவிட்டது" என்ற பிழைகள் இன்னும் ஏற்பட்டால், Klipper config கோப்பில் `pin_up_touch_mode_reports_triggered` ஐ False என அமைக்க வேண்டியிருக்கலாம்.
பழைய "நகலி" சாதனங்களின் அரிய எ... | Markdown |
let n = points.len();
let k = self.k;
for v in 0..n {
if u == v {
continue;
}
let dx = points[v].x - points[u].x;
let dy = points[v].y - points[u].y;
let d = (dx * dx + dy * dy).sqrt().max(self.min_distance);
let kd... | Rust |
const round2 = (num) => Math.round(num * 100) / 100;
/**
* Relative angle of the sight from the top, clockwise.
*/
const angleTop = (vx, vy) => round2((Math.atan2(vx, -vy) * 180 / Math.PI + 360) % 360);
export function toRelativeAsteroid(asteroid: Asteroid, center: Asteroid): RelativeAsteroid {
const vx = aster... | Typescript |
s or implied. Refer to the
// License for the specific language governing permissions and limitations.
//
// Code Modification History:
// ----------------------------------------------------------------------------------------------------
// 02/18/2005 - J. Ritchie Carroll
// Generated original version of so... | C# |
"should raise event if the azure cluster is not found": {
objects: []runtime.Object{
defaultCluster,
},
event: "AzureClusterObjectNotFound",
},
"should raise event if cluster is not found": {
objects: []runtime.Object{
getFakeAzureCluster(func(ac *infrav1.AzureCluster) {
ac.OwnerReferences... | Go |
catch (Exception ex)
{
Assert.IsInstanceOfType(ex, typeof(InvalidOperationException), ex.Message);
}
// GET operation $everything with 1 complex parameter
var act = () => client.InstanceOperationAsync(uri, "everything", new Parameters().Add("start", new ... | C# |
n>;
constructor(name: string, origin: Origin, value?: string, secure?: boolean, encryptedValue?: string) {
super(name, value, secure, encryptedValue);
this.origin = Stream(origin);
}
static fromJSON(data: EnvironmentEnvironmentVariableJSON) {
return new EnvironmentVariableWithOrigin(data.name,
... | Typescript |
static java.lang.foreign.MemoryLayout.PathElement.*;
/**
* {@snippet lang=c :
* struct {
* sdrplay_api_TunerParamsT tunerParams;
* sdrplay_api_ControlParamsT ctrlParams;
* sdrplay_api_Rsp1aTunerParamsT rsp1aTunerParams;
* sdrplay_api_Rsp2TunerParamsT rsp2TunerParams;
* sdrplay_api_RspDuoTun... | Java |
能否提供一些关于 SWOT 分析的案例?
### 插件信息
```json
{}
```
### 插件详细设置
```json
{}
```
### 知识库信息
```json
{
"auto": true,
"knowledge_info": [],
"min_score": 0.5,
"search_strategy": 0,
"top_k": 3
}
```
### 工作流设置
```json
[]
```
### 工作流详细设置
```json
{}
```
## [财税审计小帮手](https://www.coze.cn/store/bot/7341548648590868490)
### Promp... | Markdown |
from __future__ import absolute_import
from __future__ import print_function
import pyverilog.vparser.ast as vast
from pyverilog.ast_code_generator.codegen import ASTCodeGenerator
def main():
# Define 2D array ports (4x4)
width = vast.Width(vast.IntConst('3'), vast.IntConst('0'))
dim = vast.Dimensions([vas... | Python |
65-, 12-43-65-87-
Case6 = 3:
12-65-43-
Case8 = 3:
12-65-78-43-
Case8 = 11:
12-65-87-43-
Case6 = 4:
12-43-56-
Case8 = 4:
12-78-43-56, 12-43-87-56
Case8 = 12:
12-87-43-56-
X4 =... | C |
"
// very verbose!!
private const val printFailures = false
private const val acceptSecondHitAsSuccess = false
private fun isMatch(
candidate: Map.Entry<String, String>,
results: List<SuggestionItem>
): Boolean {
return ((results.isNotEmpty() && results[0].term.trim() == candidate.value)
|| (... | Kotlin |
CB2YWxpZGF0aW9uIHdpdGggYWxsIG9mIHRob3NlXG4gICAgLy8gZml4ZWQtbGluZS9tb2JpbGUvZXRjIHJlZ3VsYXIgZXhwcmVzc2lvbnMuXG4gICAgZWxzZSBpZiAoZ2V0TnVtYmVyVHlwZSh7XG4gICAgICBwaG9uZTogbmF0aW9uYWxQaG9uZU51bWJlcixcbiAgICAgIGNvdW50cnk6IGNvdW50cnlcbiAgICB9LCB1bmRlZmluZWQsIG1ldGFkYXRhLm1ldGFkYXRhKSkge1xuICAgICAgLy8gSWYgdGhlIGBkZWZhdWx0Q291b... | JavaScript |
OOL_GETFIELD);
pCode.emitAssignVarnodeFromDereference(TEMP_2, 2, TEMP_1);
pCode.emitSignExtension(VALUE, 4, TEMP_2);
pCode.emitPushCat1Value(VALUE);
break;
case DescriptorDecoder.BASE_TYPE_ARRAY: //array dimension
case DescriptorDecoder.BASE_TYPE_FLOAT: //float
case DescriptorDecoder.BASE_TYP... | Java |
rtura de testes.
---
## **Contribuindo**
1. Crie um fork do repositório.
2. Crie uma branch para sua feature ou correção:
```bash
git checkout -b minha-feature
```
3. Faça suas alterações e envie os commits.
4. Envie um Pull Request explicando suas alterações.
---
## **Contato**
Caso tenha dúvidas ou sug... | Markdown |
ng(_provider);
writer.WriteTLString(_venueId);
writer.WriteTLString(_venueType);
serialized = true;
return writer.ToReadOnlySequence();
}
}
private GeoPoint _geo;
public GeoPoint Geo
{
get => _geo;
set
{
seriali... | C# |
ent runtime base */
/*
* We have the runtime (virutal) address of our base.
* We calculate our shift of offset from a 256M page.
* We could map the 256M page we belong to at PAGE_OFFSET and
* get going from there.
*/
lis r4,KERNELBASE@h
ori r4,r4,KERNELBASE@l
rlwinm r6,r21,0,4,31 /* r6 = PHYS_START % 2... | Assembly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.