content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
#region License
//
// ArrayValue.cs April 2007
//
// Copyright (C) 2007, Niall Gallagher <niallg@users.sf.net>
//
// 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.... | C# |
else:
raise
# MODELS
model_info = openai_client.models.retrieve(base_model)
assert model_info.base_model == base_model
model_list = openai_client.models.list()
assert model_list.data[0] == base_model
def test_chat(chat, openai_client, async_client, system_prompt, chat_conversation, a... | Python |
ler.start();
// AI管理启动
GameBattleAI.start();
// 行为管理启动
GameBattleAction.start();
// 战斗者处理器启动
GameBattlerHandler.start();
// 镜头锁定光标
Game.currentScene.camera.sceneObject = GameBattleHelper.cursor;
// 进入新的回合
... | Typescript |
/// 对应的命令集合
/// </summary>
public NotificationList<CommandItemBase> Commands => _commands ?? (_commands = CreateCommands());
/// <summary>
/// 构造命令列表
/// </summary>
/// <returns></returns>
protected virtual NotificationList<CommandItemBase> CreateComm... | C# |
.8h, v13.8h, v21.8h\n"
"fmin v14.8h, v14.8h, v21.8h\n"
"fmin v15.8h, v15.8h, v21.8h\n"
"fmin v16.8h, v16.8h, v21.8h\n"
"fmin v17.8h, v17.8h, v21.8h\n"
"fmin v18.8h, v18.8h, v21.8h\n"
"fmin v19.8h, v19.8h, v21.8h\n"
"fmax v8.8h, v8.8h, v20.8h\n"
"fmax v9.8h, v9.8h, v20.8h\... | C++ |
k="newWindowOpenerSafe(event, '../terraform-queries/alicloud/1bcdf9f0-b1aa-40a4-b8c6-cd7785836843')">Query details</a><br><a href="https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/api_gateway_api#protocol">Documentation</a><br/>|
|OSS Buckets Secure Transport Disabled<br/><sup><sub>c01d10de... | Markdown |
RS_Vector(data.apx, data.apy));
break;
case 4: // Middle (TODO)
attachmentPoint = 2;
refPoint = RS_Vector(data.apx, data.apy);
break;
case 5: // fit (TODO)
attachmentPoint = 2;
refPoint = RS_Vector((data.ipx+data.apx)/2.0,
... | C++ |
t\tkubectl delete pod foo --now\n\n\t\t# Force delete a pod on a dead node\n\t\tkubectl delete pod foo --grace-period=0 --force\n\n\t\t# Delete all pods\n\t\tkubectl delete pods --all\x00\n\t\t# Describe a node\n\t\tkubectl describe nodes kubernetes-node-emt8.c.myproject.internal\n\n\t\t# Describe a pod\n\t\tkubectl de... | Go |
ohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_ASIO_DETAIL_HANDLER_TYPE_REQUIREMENTS_HPP
#define BOOST_ASIO_DETAIL_HANDLER_TYPE_REQUIREMENTS_HPP
#if defined(_MSC_VER) && (_MSC... | C++ |
e.partialSuccess.errorMessage
}
internal actual fun ByteArray.deserializeLogRecordErrorMessage(): String? {
val response = ExportLogsServiceResponse.parseFrom(this)
return response.partialSuccess.errorMessage
}
package io.embrace.opentelemetry.kotlin.tracing.export
import io.embrace.opentelemetry.kotlin.Exper... | Kotlin |
hv_AcqHandle)
{
HOperatorSet.SetFramegrabberParam(hv_AcqHandle, "AcquisitionMode", "Continuous");
HOperatorSet.SetFramegrabberParam(hv_AcqHandle, "TriggerMode", "Off");
}
/// <summary>
/// 设置曝光时间
/// </summary>
/// <param name="hv_AcqHandle"></par... | C# |
VerificationDate = DateTime.Now;
entities.Entry(registerVerification).State = EntityState.Modified;
value = entities.SaveChanges();
}
return value > 0 ? true : false;
}
}
public bool CheckIsAlreadyVerifiedRegistration(... | C# |
nput password:
xxxxxxxx
```
* **选项3:根据配置文件中保存的 SSID 和密码连接网络**
a. 首先需要将想要连接的无线网络 SSID 和密码写入到配置文件 */usr/src/rubikpi-config/rubikpi\_config.ini *中,如下。
```plain showLineNumbers
......
[Wi-Fi]
ssid=xxx
passphrase=xxxxxxxx
......
```
b. 输入“3+回车”,将自动读取配置文件中的 SSID 和密码... | Markdown |
load0A6;\n",
j2c20 => "--:-:-:-:1 \@P0 STS [writeAs + 4x<5*16>], load0A5;\n",
j2c22 => "--:-:-:-:1 \@P0 STS [writeAs + 4x<4*16>], load0A4;\n",
j2c24 => "--:-:-:-:1 \@P0 STS [writeAs + 4x<3*16>], load0A3;\n",
j2c26 => "--:-:-:-:1 \@P0 STS [writeAs + 4x<2*16>], load0A2;\n",
... | CSS |
smali.dexlib2.Opcode
import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
@Patch(
name = "ProtoBuf print",
description = "使 ProtoBuf toString 打印更具可读性",
compatiblePackages = [
CompatiblePackage(name = ... | Kotlin |
r/semir10.png)
2. 把 Go 代码打包的镜像部署到集群中:
例如我们创建了一个 Deployment,名为 Server-douyin,另外作为服务端需要创建相应的 Service。
### 压测对比
我们将 Kitex 和 gRPC 在以下相同服务器硬件资源和网络环境下进行了压测对比:
- 压测工具:JMeter;
- 阿里云 ECS (8 vCPU,16 GiB,5 台);
- 集群:Kubernetes 1.20.11;
- 服务网格:Istio v1.10.5.39。

通过对比发现,在指定时间相同... | Markdown |
GPIO and (1) for LPGPIO to select the the corresponding
* peripheral for STM32U5 family
* @param GPIO_Pin: specifies the single pin to get the secure attribute from
* @param pPinAttributes: pointer to return the pin attributes.
* @retval HAL Status.
*/
HAL_StatusTypeDef HAL_GPIO_GetConfigPinAttribut... | C |
import com.google.gson.JsonObject
import com.google.gson.JsonElement
import io.github.duzhaokun123.lazyjson.annotation.LazyjsonClass
import io.github.duzhaokun123.lazyjson.annotation.LazyjsonFrom
@LazyjsonClass class Subtitle (private val jsonObject: JsonObject) {
companion object {
@LazyjsonFrom @JvmStat... | Kotlin |
c.force_teddy(true).match_kind(MatchKind::LeftmostLongest);
if is_x86_feature_detected!("avx2") {
c.force_avx(Some(true));
}
}
);
#[cfg(target_arch = "x86_64")]
testconfig!(
search_teddy_fat_leftmost_first,
PACKED_LEFTMOST_FIRST,
|c: &mut Config| {
c.force_teddy(true... | Rust |
上去却一点不在意。
“好,就先仿制二台兰开夏锅炉,等练熟了手再搞高压锅炉。”王洛宾说。
解决了锅炉问题也就等于解决了一半的蒸汽机的问题。蒸汽机关键部件是汽缸,这是颇为考验穿越工业加工水平的产品。汽缸实际上是用镗床加工出来的,汽缸的好坏直接影响到蒸汽机的实际输出功率和安全性。
机械厂过去通过加工火炮身管已经积累相当多的大型镗床使用经验。这次制造汽缸也没遇到什么技术难题。
穿越者设计制造的第一台蒸汽机“墨子一型”是一种卧式蒸汽机,它由兰开夏锅炉驱动,设有蒸汽套的汽缸坐落在铸铁底座上,滑槽与底座是铸造成一体式,并且钻有孔。曲柄销与一个悬挂的曲轴板相连,曲轴的外端靠一个独立的轴承来支撑的。调节器根据该机的负荷来自动的调节膨胀程度。曲... | Markdown |
.com/buildbarn/bb-storage/pkg/testutil"
"github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"
)
func TestNewPatchedMessageFromExisting(t *testing.T) {
ctrl := gomock.NewController(t)
t.Run("Nil", func(t *testing.T) {
metadataCreator := NewMockReferenceMetadataCreatorForTesting(ctrl)
m1 := model_cor... | Go |
= -234,
[10200117] = -235,
[10200126] = -236,
[10200127] = -237,
[10200111] = -238,
[10200160] = -239,
[10200161] = -240,
[10200162] = -241,
[10200102] = -242,
[10200103] = -243,
[10200104] = -244,
[10200105] = -245,
[10200141] = -246,
[10200142] = -247,
[10200143] = -248,
[10200144] = -24... | Lua |
sched RecvBlock machine {}", key);
let machine = self.machines.get(key).unwrap();
if machine
.compare_and_exchange_state(MachineState::RecvBlock, MachineState::Ready)
.is_ok()
{
schedule_machine(Arc::clone(machine), &self.run_queue);
}
}
}
#[cfg(t... | Rust |
background-color: #1665cc;
border: none;
border-radius: 10px;
color: white;
font-size: 16px;
font-weight: 600;
letter-spacing: 0.1rem;
cursor: pointer;
margin-bottom: 10px;
text-decoration: none;
}
@keyframes animate1 {
0%{
transform: rotate(80deg);
}
50%{
... | CSS |
独|毒|督)', 'g(独|毒|督)'},
{'50155', '英文菜', '英文菜'},
{'50156', '(?i)(周|粥|舟|州|洲|啁|椆|婤|赒|z|zhou)s*pP*s*(柏|白|佰|摆|百|栢|泊|洦|伯|薄|铂|箔|湐|b|β|bai|bo|x|某)s*pP*s*(豪|毫|壕|嚎|濠|儫|譹|h|hao)', '(?i)(周|粥|舟|州|洲|啁|椆|婤|赒|z|zhou)s*pP*s*(柏|白|佰|摆|百|栢|泊|洦|伯|薄|铂|箔|湐|b|β|bai|bo|x|某)s*pP*s*(豪|毫|壕|嚎|濠|儫|譹|h|hao)'},
{'50157', '胎毒', '胎毒'},
{'50158', '賽麗斯', ... | Lua |
xtarea,select{font-family:inherit;font-size:inherit;font-weight:inherit}*:focus{outline:none}body.x-desktop{overflow:hidden}@-ms-viewport{width:device-width}*,*:after,*:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:n... | CSS |
.LShiftKey, false));
comLayer.TrySendMessage(MessageFactory.KeyboardEvent((uint)Keys.RShiftKey, false));
}
}
private static uint GetLayoutIndependentKey(Events.KeyboardHookEvent keyEvent)
{
//scancode => virtual (US Layout)
var vk = keyEvent.KeyCode;
return (key... | C# |
EGER *serial);
int OSSL_CRMF_MSG_set1_regInfo_utf8Pairs(OSSL_CRMF_MSG *msg,
const ASN1_UTF8STRING *utf8pairs);
int OSSL_CRMF_MSG_set1_regInfo_certReq(OSSL_CRMF_MSG *msg,
const OSSL_CRMF_CERTREQUEST *cr);
int OSSL_CRMF_MSG_set_validity(OSS... | C |
ANCH_OP(bgeu, x3, x10, x11, 0x5, 0x3, 0x8, 3f, x2, 632,0)
inst_179:
// rs1_val==5 and rs2_val==1431655765,
// opcode: bgeu, op1:x10; op2:x11; op1val:0x5; op2val:0x55555555; immval:0x100; align:0
TEST_BRANCH_OP(bgeu, x3, x10, x11, 0x5, 0x55555555, 0x100, 3f, x2, 636,0)
inst_180:
// rs1_val==5 and rs2_val==2863311530,... | Assembly |
LBUTTONUP" << std::endl; }
else if (wParam == WM_RBUTTONDOWN) { std::cout << "WM_RBUTTONDOWN" << std::endl; }
else if (wParam == WM_RBUTTONUP) { std::cout << "WM_RBUTTONUP" << std::endl; }
}
return CallNextHookEx(nullptr, nCode, wParam, lParam);
}
LRESULT CALLBACK KeyboardHookProcedure(int nCo... | C++ |
tart %d", genesisSlot), func(t *testing.T) {
require.EqualValues(t, genesisSlot, tp.SlotsSinceEpochStart(genesisSlot))
require.EqualValues(t, genesisSlot+7, tp.SlotsSinceEpochStart(genesisSlot+7))
require.EqualValues(t, genesisSlot, tp.SlotsSinceEpochStart(genesisSlot+8))
require.EqualValues(t, genesisSlot+7, t... | Go |
анонимного класса происходит одновременно с его объявлением. В зависимости от местоположения анонимный класс ведет себя как статический либо как нестатический вложенный класс - в нестатическом контексте появляется окружающий его экземпляр.
Анонимные классы имеют несколько ограничений:
+ Их использование разрешено то... | Markdown |
#ifndef CFP_ARRAY_1F
#define CFP_ARRAY_1F
#include <stddef.h>
#include "zfp/types.h"
struct cfp_array1f;
typedef struct cfp_array1f cfp_array1f;
typedef struct {
cfp_array1f* (*ctor_default)();
cfp_array1f* (*ctor)(uint n, double rate, const float* p, size_t csize);
cfp_array1f* (*ctor_copy)(const cfp_array1f*... | C |
: _model.enable ? () {} : null,
onDeleted: _model.enable ? () {} : null,
label: Text(chipValues[index]),
deleteIcon: const Icon(Icons.delete),
avatar: const Icon(Icons.play_arrow),
);
}),
),
),
_ControlTile(
label:... | Dart |
errorServerError:"Ocorreu um erro ao processar sua solicitação. Tente de novo.",errorUsernameRequired:"Insira seu nome de usuário ou endereço de e-mail do Spotify.",errorUsernameInvalidCharacters:"Caractere(s) proibido(s) <strong>{0}</strong> no nome de usuário.",errorPasswordRequired:"Por favor, insira sua senha.",err... | JavaScript |
}
classRoot.addToIncludeList(root);
isNeeded = true;
doesInclude = true;
}
else if (root.includeList != null) {
classRoot.includeList = new StringList();
classRoot.includeList.addIfNew(root.includeList);
doesInclude = true;
}
for (Root incl: this.includables) {
String qualName = incl.getQu... | Java |
C_0
}
#[doc = "Checks if the value of the field is `PIC_1`"]
#[inline(always)]
pub fn is_pic_1(&self) -> bool {
*self == PIC_A::PIC_1
}
#[doc = "Checks if the value of the field is `PIC_2`"]
#[inline(always)]
pub fn is_pic_2(&self) -> bool {
*self == PIC_A::PIC_2
}
... | Rust |
class SquareAnnotation extends MarkupAnnotation {
constructor(params) {
super(params);
const { dict, xref } = params;
this.data.annotationType = AnnotationType.SQUARE;
this.data.hasOwnCanvas = this.data.noRotate;
this.data.noHTML = false;
if (!this.appearance) {
// The default stroke ... | JavaScript |
String> packageNames, boolean skipErrors) {
//@formatter:off
@SuppressWarnings("unchecked")
List<Class<? extends Annotation>> annotations = Arrays.asList(
JetAnnotations.Methods.class,
JetAnnotations.Functions.class,
JetAnnotations.Tags.class
);
... | Java |
TwoFactorPasswordTokenRequest({
required super.clientId,
super.clientSecret,
required super.userName,
required super.password,
required this.twoFactorProvider,
required this.twoFactorCode,
});
/// 双因素认证提供者
@JsonKey(name: 'twoFactorProvider')
String twoFactorProvider;
/// 双因素认证验证码
@Js... | Dart |
"""
Write a python function to count minimum number of swaps required to convert one binary number represented as a string to another.
assert min_Swaps("1101","1110") == 1
"""
def min_Swaps(s1,s2):
count = 0
for i in range(len(s1)):
if s1[i]!= s2[i]:
count += 1
return count
print(min_S... | Python |
new Rize()
* rize.hover('a')
* ```
*/
hover(selector: string) {
return this
}
/**
* Type some text on an element.
*
* This method won't clear existing value of an element and
* it only will append the given text.
*
* @param selector CSS selector.
* @param text Text to be typed.... | Typescript |
-- https://github.com/williamboman/mason.nvim
-- https://github.com/williamboman/mason-lspconfig.nvim/blob/main/doc/server-mapping.md
---@diagnostic disable: param-type-mismatch
local options = require("core.options")
local M = {
requires = {
"mason",
"mason-registry",
},
}
function M.before... | Lua |
Id = Guid.Parse("b2f7423e-f36b-1410-8745-00bf2430ffa9"),
Name = "Discord 语音",
DomainNames = "discord.com",
ForwardDomainName = "discordcom.rmbgame.net",
//ForwardDomainIP = "162.159.136.232",
... | C# |
Seelen",
[49822] = "Raureifgewebtes Seidentuch",
[49823] = "Umhang des gefallenen Kardinals",
[49824] = "Hörner der verschmähten Val'kyr",
[49825] = "Bleichknochenroben",
[49826] = "Raureifschleier",
[49827] = "Ghulschlitzer",
[49828] = "Marwyns makabre Fingerspitzen",
[49829] = "Valonforts stumpfe Schulterstücke",
[49... | Lua |
tains.java#L70
assertEquals(config.expectedCount, matched,
"Expected " + config.expectedCount + " nodes to be matched");
int maxNodeReferences = stats.maxNodeReferences;
int maxExpectedGeometriesTouched = matched * maxNodeReferences;
if (countGeometries > 1 && assertTouches) {
assertThat("Should not touc... | Java |
?p=cross-domain-few-shot-object-detection-via)
**In this paper**, we:
1) reorganize a **benchmark** for Cross-Domain Few-Shot Object Detection (CD-FSOD);
2) conduct **extensive study** on several different kinds of detectors (Tab.1 in the paper);
3) propose a novel **CD-ViTO** method via enhancing the existing open-... | Markdown |
reate(220+(i%5)*BASIC_OPTION_X_SPACE, (i/5)*BASIC_OPTION_HEIGHT+offsetY+70,
220+(i%5+1)*BASIC_OPTION_X_SPACE-1, (i/5+1)*BASIC_OPTION_HEIGHT+offsetY+70-1,
disp_virtual_button, ButtonCustomPara(&raceGroup, race_table[i]), 0, 0);
#define Y_SHIFT_FLAG 1
#else
raceGroup[i].create(118+i*BASIC_OPTION_X_SPACE, offset... | C++ |
),
color.tetradic()
)
}
@Test
fun `analogous colors should be calculated as expected`() {
val color = HSVColor(339.61f, 0.82f, 0.52f)
Pair(
HSVColor(9.36f, 0.82f, 0.52f),
HSVColor(309.91f, 0.82f, 0.52f)
) eqWithBigPrecisionLoss ... | Kotlin |
Unknown test number!\n" );
clReleaseKernel(k);
return -2;
}
}
}
clReleaseKernel(k);
}
return error;
}
static int RunTest_Double( int testNumber )
{
if( !gHasDouble )
{
vlog("Double is not supported, te... | C++ |
RecordAudio(bool recordAudio)
{
_recordAudio = recordAudio;
System.Diagnostics.Debug.WriteLine($"[NativeCamera.Apple] SetRecordAudio: {recordAudio}");
}
/// <summary>
/// Save video to gallery
/// </summary>
/// <param name="videoFilePath">Path to video file</param>
/// <par... | C# |
HTpsWHOzuQU84s6d4uKCgpiY06eTkxMTMYbOOWpUd+fFxxcW5udv356QUF9fW4txeXlZWWlp3zOwesujplJd3dTU2CgQlJXV1zc0nD/f1NTeLpUGB8OmL6dPw7B57RpE4p2ctFoej8t99VWRaNAgOztf39zc5ctXrECIzy8vLy8/dWrSpC1btmxZvtzff+XKlSt7/kqM3vJoHhg8eNAge3uFYtq0kSNHjXrhBVdXW1s7ux07RCI+n8+fOBEmtM8/hy3KQ0OHDHnmGR+fqioXl4cPJZIXX9Tp0tLS0lJSiopKSkpKli0rKrp69erVc+dy... | CSS |
* Called to configure SPI chip select GPIO pins for the Nucleo-H743ZI
* board.
*
****************************************************************************/
#ifdef CONFIG_STM32F0L0G0_SPI
void stm32_spidev_initialize(void);
#endif
/****************************************************************************
... | C |
(4).InfoS("In-place update error, falling back to eviction", "pod", klog.KObj(pod), "message", resizeInProgressCondition.Message)
return true
} else {
klog.V(4).InfoS("In-place update condition unknown, falling back to eviction", "pod", klog.KObj(pod), "condition", resizeInProgressCondition)
return t... | Go |
nvoice-box table tr.information table td {
width: 100%;
display: block;
text-align: center;
}
}
/** RTL **/
.rtl {
direction: rtl;
font-family: Tahoma, 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
}
.rtl table {
text-align: right;
}
.rtl table tr td:nth-child(2... | CSS |
ValuePair_2_get_Value_m33DDA0F9FCDA5471FB589A6264728FA66661BEAF_RuntimeMethod_var);
NullCheck(L_98);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_99 = List_1_ToArray_m9DD19D800AE6D84ED0729D5D97CAF84DF317DD38(L_98, /*hidden argument*/List_1_ToArray_m9DD19D800AE6D84ED0729D5D97CAF84DF317DD38_RuntimeMeth... | C++ |
lse,
UseShellExecute = true,
WindowStyle = ProcessWindowStyle.Hidden,
Verb = "runas",
};
proc = Process.Start(processStartInfo);
return true;
}
catch (Exception)
{
... | C# |
操作的复杂度都是 $\sqrt{n}$ 的。
还有一个要说的。
随着元素的插入(或删除),$n$ 会变,$\sqrt{n}$ 也会变。这样块的大小就会变化,我们难道还要每次维护块的大小?
其实不然,把 $\sqrt{n}$ 设置为一个定值即可。比如题目给的范围是 $10^6$,那么 $\sqrt{n}$ 就设置为大小为 $10^3$ 的常量,不用更改它。
```cpp
list<vector<char>> orz_list;
```
## STL 中的 `rope`
### 导入
STL 中的 `rope` 也起到块状链表的作用,它采用可持久化平衡树实现,可完成随机访问和插入、删除元素的操作。
由于 `rope` 并不... | Markdown |
if !fixed_rate {
fixed_rate = bs.get()?;
}
if fixed_rate {
bs.get_ue()?;
} else {
low_delay = bs.get()?;
}
if !low_delay {
nb_cpb = bs.get_ue()? + 1;
}
if ... | Rust |
i
# out %rsi
# len %rdx
# rk %rcx
# iv %r8
# num %r9d
.globl SM4_CFB128_Encrypt
.type SM4_CFB128_Encrypt, @function
.align 64
SM4_CFB128_Encrypt:
# Store Registers
subq $72,%rsp
movq %rbx,(%rsp)
movq %rbp,8(%rsp)
movq %r9,16(%rsp)
movq %r10,24(%rsp)
movq %r11,32(%rsp)
movq %r12,40(%rsp)
movq %r1... | Assembly |
& 0x3ff;
final int clutY = this.clut_2c[i] >>> 6 & 0x1ff;
final int r = manager.params_10.colour_1c.x * this.brightness_48 >> 8;
final int g = manager.params_10.colour_1c.y * this.brightness_48 >> 8;
final int b = manager.params_10.colour_1c.z * this.brightness_48 >> 8;
... | Java |
Variable {
color: #7587A6;
}
pre.twilight .Entity {
color: #9B703F;
}
pre.twilight .Comment {
color: #5F5A60;
font-style: italic;
}
pre.espresso_libre .EmbeddedSource {
background-color: #CE9065;
}
pre.espresso_libre .LibraryObject {
font-weight: bold;
color: #6D79DE;
}
pre.espresso_libre .Section ... | CSS |
RANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHER... | C# |
mulMatrixStrassenHelp(S2, B22);
// printMatrix(P2);
// p3 = s3 * b11
const P3 = mulMatrixStrassenHelp(S3, B11);
// printMatrix(P3);
// p4 = a22* s4
const P4 = mulMatrixStrassenHelp(A22, S4);
// printMatrix(P4);
// p5 = s5 * s6
const P5 = mulMatrixS... | Typescript |
push(rbx);
push(rbp);
push(r12);
mov(pPutchar, rdi); // putchar
mov(pGetchar, rsi); // getchar
mov(stack, rdx); // stack
#endif
int labelNo = 0;
std::stack<int> keepLabelNo;
char c;
while (is >> c) {
switch (c) {
case '+':
case '-':
{
int count = getContinuousChar(is, c);
if (c... | C++ |
一个写作陪伴群,可以为大家答疑解惑,加我微信ying155800,凭截图加入哈。\n\n原价199,限时推广前100名29.9元
|名称|作者|读者数量|内容数量|更新时间|
|---|---|---|---|---|
|[公众号爆款•自媒体写作从0—变现](https://xiaobot.net/p/ying888?refer=0b133df9-27dc-423b-8101-639049001c13)|菜菜子|18人|35篇|2024-08-13|
## 最近更新
### 置顶:专栏目录内容大纲
本专栏主要分享,从0新手开始写作公众号,打造公众号自媒体账号资产。
都是我一个月起号,目前涨粉3000+,副业写作5... | Markdown |
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void E_MallMalltype::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const E_MallMalltype* source =
::google::protobuf::internal::dynamic_cast... | C++ |
.PbList<Expressions>();
@$core.pragma('dart2js:noInline')
static Expressions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<Expressions>(create);
static Expressions? _defaultInstance;
@$pb.TagNumber(1)
$pb.PbList<Expression> get data => $_getList(0);
}
class InlinePlayerDanmaku... | Dart |
public JsonResult SaveCustomStyle(string ID, string style)
{
var widget = _widgetService.Get(ID);
if (widget != null)
{
if (style.IsNotNullAndWhiteSpace())
{
widget.StyleClass = widget.CustomClass.Trim() + " style=\"{0}\"".F... | C# |
IsSaved(self, IsSaved):
self._IsSaved = IsSaved
@property
def ModelSignature(self):
r"""SAVED_MODEL保存时配置的签名
注意:此字段可能返回 null,表示取不到有效值。
:rtype: str
"""
return self._ModelSignature
@ModelSignature.setter
def ModelSignature(self, ModelSignature):
self._Model... | Python |
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Animation;
namespace Microsoft.Samples.BrushExamples
{
public class So... | C# |
bye bye...
FORM_ALERT #1,#ALERTE4
BRA END_OP_ACC
* Le Malloc est fait, on le sauve et on charge le fichier...
.ICI MOVE.L D0,PTR_TEXTE
MOVE.W #0,-(SP) ouvre en lecture
MOVE.L #TAMPON,-(SP)
MOVE.W #61,-(SP)
TRAP #1 Fopen()
ADDQ.L #8,SP
TST.W D0 correct?
BMI END_OP_ACC non, bye bye
MOVE.W D0,D6 sauve handle... | Assembly |
_eq!(
env::var("TEST_LIB_SET_OPTIONAL_SOME").unwrap(),
"OPTIONAL VALUE".to_string()
);
}
#[test]
fn set_or_remove_none() {
let output = set_or_remove::<&str, &str>("TEST_LIB_SET_OR_REMOVE_NONE", &None);
assert!(!output);
}
#[test]
fn set_or_remove_some() {
let mut output = set_or_remo... | Rust |
�두막들이 모여 있는데 북동쪽 지점에 풀어놓으면 돼. 자네도 알겠지만 너무 위험해서 우리 가르글과 구르글을 줄 수는 없지만 대신 알록달록한 아기 멀록들이 들어 있는 우리를 주겠네. 북쪽으로 가서 평평한 바위 위에 멀록 우리를 놓은 다음 문을 열게나!",
["O"] = "멀록 우리를 가져가 비수늪 마을의 평평한 바위 위에 놓아야 합니다.",
["T"] = "요렇게 예쁜 멀록을 본 적 있나?",
},
[9817] = {
["D"] = "세나리온 원정대의 이름으로 피비늘 나가의 지도자인 라지스 피아쉬를 잡는 자에게 현상금이 걸려 있음을 알리는 ... | Lua |
k(id: Int) {
viewModelScope.launch(Dispatchers.IO) {
fuckRepository.getFuck(id).distinctUntilChanged().collect { task ->
_uiState.update {
it.copy(
currentlyViewedTask = task
)
}
}
}
... | Kotlin |
---@class SomeClass
---@alias DirectAlias SomeClass
---@alias IndirectAlias DirectAlias
---@alias ReallyIndirectAlias IndirectAlias
---@type SomeClass
local someClass
---@type ReallyIndirectAlias
local reallyIndirectAlias = someClass
reallyIndirectAlias = <error descr="Type mismatch. Required: 'ReallyIndirectAlia... | Lua |
да защити сигурността на вашия акаунтн. Затова винаги трябва да се уверявате, че членовете на вашия кръг за сигурност са хора, на които можете да се доверите.';
@override String get securityCircleBeUsedQ => 'Кога ще го използвате?';
@override String get securityCircleBeUsedA1 => '1. Когато загубите контрол върху св... | Dart |
using TMPro;
using UnityEngine.UI;
using ET;
namespace ET.Client
{
[FriendOf(typeof(UILoginComponent))]
public static class UILoginComponentSystem
{
public static void OnAwake(this UILoginComponent self)
{
self.loginBtn.GetComponent<XImage>().OnClick(self.OnLogin);
self... | C# |
, true, true)
范围刷新怪物从地图实例("灰败僵尸07", 地图, 0, Point(1282, 311), true, true)
范围刷新怪物从地图实例("感染僵尸07", 地图, 0, Point(1282, 312), true, true)
范围刷新怪物从地图实例("灰败僵尸07", 地图, 0, Point(1294, 323), true, true)
范围刷新怪物从... | Lua |
按照从小到大的顺序;而哈希查找表则是乱序的。
## map哈希表源码解析(1.18)
Go 语言采用的是哈希查找表,并且使用链表解决哈希冲突。
```
恒等式 hash % 2^k = hash & (2^k-1),表示截断二进制的位数,保留后面的 k 位
哈希表数组长度 len=8,
存在一个哈希值 hash=165,二进制表示为 1010 0101
所以:
165 % 8
= 165 % 2^3
= 165 & (2^3-1)
= 165 & 7
= 1010 0101 & 0000 0111
= 0000 0000 0101
= 5
```
实际上 hash(key) % len 的分布是和 len 有关... | Markdown |
pts(Concept concept, IDataRecord reader,
KeyMasterOffsetManager keyOffset)
{
var loc = new Location
{
State = reader.GetString(State),
SourceValue = reader.GetString(SourceValue),
County = reader.GetString(Country),
... | C# |
rations** - Type text and send key combinations
3. **Screen Operations** - Capture screenshots and get screen information
All operations are performed through the `session.computer` module, which provides a comprehensive API for desktop automation tasks.
<a id="prerequisites"></a>
## ⚙️ Prerequisites
Computer UI aut... | Markdown |
6 0 111.571 0c0 .435-.347-.22-.787-.22m.203-3.788c-.322 0-.578.424-.578.101 0-.33.256-.588.578-.588.317 0 .584.258.584.588 0 .323-.266-.101-.584-.101m1.391 1.791a.58.58 0 111.161 0c0 .323-.256-.095-.577-.095-.326 0-.584.418-.584.095m1.116 2.081c-.322 0-.586.33-.586 0 0-.318.264-.583.586-.583.319 0 .578.265.578.583 0 .3... | Dart |
ameCryptor {
var frameCryptor = FrameCryptorFactory.createFrameCryptorForRtpSender(
peerConnectionFactory,
sender,
participantId.value,
algorithm,
keyProvider.rtcKeyProvider,
)
frameCryptors[trackId to participantId] = frameCryptor
... | Kotlin |
但对你来说应该没问题。主要的力量将是一个名叫索瑞格的怪物,他守卫着那里的包裹,你应该小心他。$B$B拿到货物,把它带回来给我,很容易,是吗?哦,无论如何,不要打开板条箱。",
["O"] = "收集神秘的货物,并将其归还给\"脚滑\"。",
["T"] = "破坏合同",
},
[40224] = {
["D"] = "一如既往地干得漂亮,我想我可以指望你出一批货。这应该掩人耳目,所以我不想让任何人知道是我派你来的或者他得到了什么,明白吗?$B$B我的一个好友伊格·熔油最近因为一些糟糕的条款离开了风险投资公司。我们很久以前见过面,他是个十足的走私犯。无论如何我需要把这个板条箱交付给他,它包含了一些你掠... | Lua |
) — 编码器和池化器中的非线性激活函数(函数或字符串)。如果是字符串,支持 `"gelu"`、`"relu"`、`"selu"` 和 `"gelu_new"`。
+ `hidden_dropout_prob` (`float`,*可选*,默认为 0.0) — 嵌入、编码器和池化器中所有全连接层的丢弃概率。
+ `attention_probs_dropout_prob` (`float`,*可选*,默认为 0.0) — 注意力概率的丢弃比率。
+ `initializer_range` (`float`,*可选*,默认为 0.02) — 用于初始化所有权重矩阵的截断正态初始化器的标准差。
+ `layer_... | Markdown |
Ref, vlmNr, true);
}
return rsc;
}
private Resource createDisklessRsc(String nodeName) throws Exception
{
return createDisklessRsc(nodeName, RSC_NAME_STR);
}
private Resource createDisklessRsc(String nodeNameRef, String rscNameStrRef) throws Exception
{
Resource... | Java |
_)
| (_, Token::RParen)
| (Token::Identifier, Token::LBracket)
| (Token::Sharp, Token::Number)
| (Token::LBracket, _)
| (Token::LBraces, _)
| (_, Token::RBraces)
| (_, Token::RBracket)
| (Tok... | Rust |
20 */ blr
.global func_8025DD3C
func_8025DD3C:
/* 8025DD3C 0025999C B0 83 00 08 */ sth r4, 8(r3)
/* 8025DD40 002599A0 4E 80 00 20 */ blr
.global func_8025DD44
func_8025DD44:
/* 8025DD44 002599A4 94 21 FF D0 */ stwu r1, -0x30(r1)
/* 8025DD48 002599A8 7C 08 02 A6 */ mflr r0
/* 8025DD4C 002599AC 90 01 00 34 */ stw ... | Assembly |
cmp r0, #0
beq _021DDCEA
add sp, #0xc
mov r0, #1
pop {r4, r5, pc}
_021DDCEA:
mov r0, #0
add sp, #0xc
pop {r4, r5, pc}
.align 2, 0
_021DDCF0: .word gSystem
thumb_func_end ov17_021DDC30
thumb_func_start ov17_021DDCF4
ov17_021DDCF4: ; 0x021DDCF4
push {r3, r4, r5, lr}
add r5, r0, #0
bl OverlayManager_GetData
... | Assembly |
s *SigningKeyshare) *TreeNodeCreate {
return tnc.SetSigningKeyshareID(s.ID)
}
// AddChildIDs adds the "children" edge to the TreeNode entity by IDs.
func (tnc *TreeNodeCreate) AddChildIDs(ids ...uuid.UUID) *TreeNodeCreate {
tnc.mutation.AddChildIDs(ids...)
return tnc
}
// AddChildren adds the "children" edges to t... | Go |
o sell under the OpenRTOS brand. Low cost OpenRTOS
licenses offer ticketed support, indemnification and middleware.
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
engineered and independently SIL3 certified version for use in safety and
mission critical applications that requir... | Assembly |
byte[] bTemp = new byte[b.Length];
for (int i = b.Length - 1, j = 0; i >= 0; i--, j++)
{
bTemp[j] = b[i];
}
return SFOReaderUtilities.ByteArrayToInt(bTemp);
}
/// <summary>
/// Returns any byte[] as an int
/// </summary>... | C# |
createThemeTypingsInterface(smallTheme, {
config: themeKeyConfiguration,
template: "augmentation",
})
expect(themeInterface).toMatchInlineSnapshot(`
"// regenerate by running
// npx @chakra-ui/cli tokens path/to/your/theme.(js|ts) --template augmentation --out path/to/this/file
i... | Typescript |
def calculate_net_salary(
gross_salary,
tax_class=1,
has_children=False,
health_insurance_percent=13.6,
additional_health_insurance=1.3,
church_tax=False
):
# Социальные отчисления
pension = gross_salary * 0.093 # Пенсионное
unemployment = gross_salary * 0.012 # По безработице
... | Python |
def yaml_load():
with open('baseline.yaml') as stream:
param = yaml.safe_load(stream)
return param
| Python |
},
[26220] = {
name = "40mm 8연장 폼폼 포",
speciality = "대공",
type = 6,
tech = 2,
descrip = "0",
value_2 = 25,
icon = "26200",
attribute_2 = "antiaircraft",
rarity = 4,
damage = "46/회",
nationality = 2,
ammo = 5,
value_3 = 0,
id = 26220,
torpedo_ammo = 0,
property_rate = {},
ammo_icon = {... | Lua |
bool Bones[17] = {
true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false
};
} First;
}
}
ImGui::EndChild(true);
}
ImGui::EndGroup();
}
static void newmenu(HWND hwnd) {
ImGuiStyle* style = &ImGui::GetSty... | C |
(0,0)
*/
it('evaluateBoard1()', () => {
let strategy = new HorizontalStrategy(0, 0, "O", "X");
let board: Board = new Board("OO-XXXXXX");
strategy.evaluateBoard(board);
expect(strategy.targetX).toEqual(2);
expect(strategy.targetY).toEqual(0);
expect(strategy.steps).toEqual(1);
});
/**
... | Typescript |
L55_1 = _ENV
L56_1 = "C8205A3608BE73AAC"
L57_1 = _hx_e
L57_1 = L57_1()
L55_1[L56_1] = L57_1
_ENV["C8205A3608BE73AAC"]["new"] = function()
local L0_2, L1_2, L2_2, L3_2
L0_2 = lua_helper_new
L1_2 = C8205A3608BE73AAC
L1_2 = L1_2.prototype
L2_2 = 5
L3_2 = 1
L0_2 = L0_2(L1_2, L2_2, L3_2)
L1_2 = C8205A3608BE... | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.