content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
eff256
bra.w .eff272
bra.w .eff288
bra.w .eff304
bra.w .eff320
DCB.W 10,$4AFC
.eff16
move d0,(a6)
lea 160(a6),a6
dbra d7,.eff16
JMP (A1)
.eff32
move d0,(a6)
move d0,8(a6)
lea 160(a6),a6
dbra d7,.eff32
JMP (A1)
.eff48
x set 0
rept 3
move d0,x(a6)
x set x+8
endr
lea 160(a6),a6
dbra d7,.eff48
JMP (A1)
... | Assembly |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//112256
// [karimf] If we happen to have a try that is in nested CATCHs, and the try has a nonLocalGoto
// [only legal if it gos all the way back to the root!], then we replace the... | C# |
ink->pNext)
{
if ((pCurLink->bFloor && nTileType == TILETYPE_FLOOR) || (nTileType != TILETYPE_FLOOR))
{
// Use current tile
break;
}
}
if (pCurLink == nullptr)
{
D2DrlgTileLinkStrc* pTileLink = D2_ALLOC_STRC_POOL(pMemPool, D2DrlgTileLinkStrc);
pTileLink->bFloor = nTileType == TILETYPE_FLO... | C++ |
import json
import numpy as np
from typing import List, Tuple
class IndexTTSEmotionVectorNode:
"""
ComfyUI node: Index TTS Emotion Vector
- Outputs an emotion vector as JSON string for Index TTS 2's `emo_vector` input.
- Matches HF demo with 8 sliders: Happy, Angry, Sad, Fear, Hate, Love, Surprise, Ne... | Python |
_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
var Event = {
HIDE: "hide" + EVENT_KEY,
HIDDEN: "hidden" + EVENT_KEY,
SHOW: "show" + EVE... | JavaScript |
hard model_shard_;
public:
void Init();
protected:
void OnAccept(conn_t conn) override;
void OnPullRequest(conn_t conn) override;
void OnPushNotify(conn_t conn) override;
void OnModelSaveRequest(conn_t conn) override;
void OnTerminationNotify(conn_t conn) override;
};
void RankParamServer::Init() {
i... | C++ |
+ 1] = (color & 0x03E0) >> 2;
imageData[(x + width * y) * 4 + 2] = (color & 0x001F) >> 3;
imageData[(x + width * y) * 4 + 3] = (color & 0x8000) ? 0 : 255;
}
}
return imageData;
}
/**
* Return a ImageData object from a TGA file (24bits)
*
* @param {Array} imageData - ImageData to bind
* @par... | JavaScript |
function fillColor(rating: number) {
if (temporaryRating.value !== -1) {
if (rating > temporaryRating.value) return GRAY_4;
else return PRIMARY_6;
}
if (rating > currentRating.value) return GRAY_4;
return PRIMARY_6;
}
return {
ratings,
isLastStar,
isFilled,
... | Typescript |
repeat-y no-repeat scroll fixed top bottom left center right justify both underline overline line-through blink baseline sub super text-top middle text-bottom capitalize uppercase lowercase thin medium thick dotted dashed solid double groove ridge inset outset block inline list-item pre no-wrap inside outside disc circ... | Lua |
#ifndef MEMORY_POOL_H
#define MEMORY_POOL_H
#include <vector>
/*
* A memory pool that allocates memory in chunks of the specified block size.
* Only supports freeing of the entire pool, not individual allocations and can not
* be moved or copied (it's possible to implement but I don't think I need it in the projec... | C |
, 0x11(r30)
/* 804B4B24 004B0064 99 81 01 63 */ stb r12, 0x163(r1)
/* 804B4B28 004B0068 89 9E 00 12 */ lbz r12, 0x12(r30)
/* 804B4B2C 004B006C 99 61 01 64 */ stb r11, 0x164(r1)
/* 804B4B30 004B0070 89 7E 00 13 */ lbz r11, 0x13(r30)
/* 804B4B34 004B0074 99 41 01 65 */ stb r10, 0x165(r1)
/* 804B4B38 004B0078 89 5E ... | Assembly |
alse</c>.</value>
bool IsRequired { get; }
/// <summary>
/// Gets a default value to use for any instances of this schema item when one is not explicitly provided.
/// The default can be <c>null</c>. Inspect <see cref="HasDefaultValue"/>
/// to determine if a default value is pr... | C# |
er
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef _EVENT___cplusplus
/* #undef _EVENT_inline */
#endif
/* Define to `int' if <sys/types.h> does not define. */
/* #undef _EVENT_pid_t */
/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef _EVENT_size_t */
/* ... | C |
Mi4zNy00LjEyLTAuODYgMCAwIDYuNTZNMTkuOTcgMjAuMjljMCAyLjExIDEuMDIgMi44MyAyLjM2IDIuODMgMS4zNCAwIDIuMzUtMC43MiAyLjM1LTIuODNsMC0zLjg1LTAuOCAwIDAgMy44N2MwIDEuNTgtMC42OCAyLjA4LTEuNTUgMi4wOC0wLjg2IDAtMS41My0wLjUtMS41My0yLjA4bDAtMy44Ny0wLjgzIDAgMCAzLjg1IiBmaWxsPSIjNzA4MDkwIi8+PC9zdmc+") !important;
}
#menu-trigger:checked ~ la... | CSS |
er: 1, Updated: timeUnix(now.Add(time.Hour))})
lst.Add(rankdb.Element{ID: cnt.next(), Score: 500, TieBreaker: 1, Updated: timeUnix(now)})
lst.Add(rankdb.Element{ID: cnt.next() - 100, Score: 500, TieBreaker: 1, Updated: timeUnix(now)})
lst.Add(rankdb.Element{ID: cnt.next() - 100, Score: 500, TieBreaker: 1, Updated: t... | Go |
ba);
float bard = dot(ba, ray.dir);
float baoc = dot(ba, oc);
float k2 = baba - bard * bard;
float k1 = baba * dot(oc, ray.dir) - baoc * bard;
float k0 = baba * dot(oc, oc) - baoc * baoc - ra * ra * baba;
float h = k1 * k1 - k2 * k0;
if (h < 0.0f)
{
return false;
}
h... | C++ |
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-09-17T03:44:17.565Z
*)
filepond/dist/filepond.min.css:
(*!
* FilePond 4.30.6
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit http... | CSS |
lineLenth-outSpace;
centerPoint = new PointF(chartWidth/2, height/2);
rectChart = new RectF(0,0,chartWidth, height);
rectLable = new RectF(chartWidth,0,width, height);
setMeasuredDimension(width, height);
if(dataList.size()>0){
evaluatorLable();
}
Lo... | Java |
"durability",
value_2 = 0,
icon = "2500",
value_1 = "140",
descrip = "대미지 컨트롤에 빠져서는 안 되는 것.",
rarity = 3,
nationality = 0,
ammo = 10,
value_3 = 0,
id = 2540,
torpedo_ammo = 0,
property_rate = {},
ammo_icon = {},
ammo_info = {},
equip_info = {
6
},
weapon_id = {},
skill_id = {
616... | Lua |
eAllPhysicalAccess = (1 << 1),
kIOFWEnableRetryOnAckD = (1 << 2),
kIOFWLimitAsyncPacketSize = (1 << 3),
kIOFWDisablePhyOnSleep = (1 << 4),
kIOFWMustBeRoot = (1 << 5),
kIOFWMustNotBeRoot = (1 << 6),
kIOFWMustHaveGap63 = (1 << 7)
};
//
// write flags
//
enum IOFWWriteFlags
{
kIOFWWriteFlagsNone ... | C |
$18
.byte $8d, $18, $85, $8c, $14
.byte $41, $0d
.word @song1ref2689
.byte $41, $26
.word @song1ref2733
.byte $90
.byte $41, $0c
.word @song1ref2766
.byte $90
.byte $41, $0c
.word @song1ref2766
.byte $90
.byte $41, $0c
.word @song1ref2766
.byte $90, $14, $95, $8c, $14, $95, $90, $14, $95, $8c, $14, $95, ... | Assembly |
CHANGE_GUID_BOOLEAN_ISENABLED, value)
fun enableWith(guid: String) {
newGuid = guid.lowercase()
isEnabled = true
}
fun disable() {
isEnabled = false
}
}
package com.owo233.tcqt.hooks
import android.content.Context
import com.owo233.tcqt.annotations.RegisterAction
import com.ow... | Kotlin |
age, encapsulated in a `Cell` object.
final Cell body;
const MessageRelaxed({required this.info, this.init, required this.body});
factory MessageRelaxed.deserialize(Slice slice) {
final info = CommonMessageInfoRelaxed.deserialize(slice);
StateInit? init;
if (slice.loadBit()) {
if (!slice.loadBi... | Dart |
I_STRCAT(d,s) (void) acpi_ut_strcat ((d), (s))
#define ACPI_STRNCAT(d,s,n) acpi_ut_strncat ((d), (s), (acpi_size)(n))
#define ACPI_STRTOUL(d,s,n) acpi_ut_strtoul ((d), (s), (acpi_size)(n))
#define ACPI_MEMCMP(s1,s2,n) acpi_ut_memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n))
#define ACPI_... | C |
// GFX12: encoding: [0x05,0x00,0x67,0xd7,0xff,0xff,0x03,0x00]
v_minimum_f16 v5, s1, s2
// GFX12: encoding: [0x05,0x00,0x67,0xd7,0x01,0x04,0x00,0x00]
v_minimum_f16 v5, s105, s105
// GFX12: encoding: [0x05,0x00,0x67,0xd7,0x69,0xd2,0x00,0x00]
v_minimum_f16 v5, vcc_lo, ttmp15
// GFX12: encoding: [0x05,0x00,0x67,0xd7,0x6... | Assembly |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/Memories.framework/Memories
*/
@interface TransitionClip : KonaClip {
bool _forcedNoOverlap;
NSDictionary * _transitionEffectSettings;
}
@property (nonatomic) int audioEnabledType;
@property (nonatomic) bool forcedNoOverlap;
@propert... | C |
GCWColumnedMultilineOutput(
firstRows: [GCWTextDivider(text: i18n(context, 'common_output'))],
data: outputData,
flexValues: flexValues,
copyColumn: 1,
tappables: tappables)
];
if (comments != null && comments.isNotEmpty) {
rows.addAll(
[GCWTe... | Dart |
_offset_value_offer_px.translate = function(raw)
-- Check null sentinel value
if raw == UInt64(0x00000000, 0x80000000) then
return 0/0
end
return raw:tonumber()/100000000
end
-- Dissect: Peg Offset Value Offer Px
eurex_cash_eti_t7_v6_0.peg_offset_value_offer_px.dissect = function(buffer, offset, packet, p... | Lua |
а обновления изображения на мониторе. Некоторые пользователи могут заметить мерцание экрана при низкой частоте обновления.";
OPTION_TOOLTIP_REMOVE_CHAT_DELAY = "Открывать окно чата после указания на него мышью.";
OPTION_TOOLTIP_RENDER_SCALE = "Задает разрешение для прорисовки трехмерного изображения. Масштаб прорисовки... | Lua |
/*
* replay-database.h
*
* interface for a replay database for packet security
*
* David A. McGrew
* Cisco Systems, Inc.
*/
/*
*
* Copyright (c) 2001-2006, Cisco Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provi... | C |
/* Copyright 2024-2025. TU Graz. Institute of Biomedical Imaging.
* All rights reserved. Use of this source code is governed by
* a BSD-style license which can be found in the LICENSE file.
*
* Authors: Moritz Blumenthal
*/
#include <assert.h>
#include <complex.h>
#include "misc/mri.h"
#include "misc/mmio.h"
#in... | C |
SAFE_FOR_EACH_PTR(item, &foo_list) {
if (i == 0) {
ASSERT_TRUE(item == item0.Mutable());
} else if (i == 1) {
ASSERT_TRUE(item == item1.Mutable());
}
++i;
}
ASSERT_EQ(i, 2);
foo_list_head->clear_head();
ASSERT_EQ(item0->ref_cnt(), 1);
ASSERT_EQ(item1->ref_cnt(), 1);
}
TEST(List, M... | C++ |
Convert.ToInt32(-16777216M - 224150937M) * -1.2666671679917788E-13) - 2.8430429892978282E-05)))));
}
public static ulong Func_0_4_4_5_2()
{
vtstatic_0_4_4_5_2.a2_0_4_4_5_2 = -8719067284879951350L;
short asgop0 = a0_0_4_4_5_2;
asgop0 /= (Convert.ToInt16(2925786697616588800UL - 29257... | C# |
ed
QVERIFY(env.size() == 4);
QVERIFY(QDir("./testTree").removeRecursively());
}
//#
//# Copyright (C) 2020-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not... | C++ |
F', POPT_ARG_NONE, NULL, 'F', "Force storing the ACL", "ACLS" },
POPT_COMMON_SAMBA
{ NULL }
};
if ( !(ctx = talloc_stackframe()) ) {
fprintf( stderr, "Failed to initialize talloc context!\n");
return -1;
}
/* set default debug level to 1 regardless of what smb.conf sets */
setup_logging( "sharesec", DEBU... | C |
] = function(n) {
var filtered = this.__filtered__;
if (filtered && !index) {
return new LazyWrapper(this);
}
n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
var result = this.clone();
if (filtered) {
result.__takeCount__ = nativeMin(n, result.__takeCount__);
} else {
... | JavaScript |
type")
}
point := ast.TypeTable.Get(TypeId{Tname: "POINT"})
if point == nil {
t.Fatal("no POINT type")
}
refs, err := graph.ResolvedOutputs().FindRefs(&ast.TypeTable)
if err != nil {
t.Error(err)
}
expected := []BoundReference{
{
Exp: &RefExp{
Id: "POINT_MAPPER.PIPE1.POINT_MAKER",
},
Type: p... | Go |
1.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z"}}]},name:"zhihu-circle",theme:"filled"};t.default=e},23446:function(v,t){Object.defineProperty(t,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M564... | JavaScript |
= driver;
this.parent = parent;
String driverName = target.getDriverName(); // can return null
isMightyBoard = (driverName != null) && driverName.equalsIgnoreCase("mightyboard");
if (!isMightyBoard)
isSailfish = (driverName != null) && driverName.equalsIgnoreCase("makerbot4gsailfish");
else
isSailfis... | Java |
");
qFnS = qFnS.replace(/if/g, "");
qFnS = qFnS.replace(/else/g, "");
qFnS = qFnS.replace(/true/g, "");
qFnS = qFnS.replace(/false/g, "");
qFnS = qFnS.replace(/\{/g, "");
qFnS = qFnS.replace(/\}/g, "");
qFnS = qFnS.replace(/\(/g, "");
qFnS = qFnS.r... | Typescript |
. Premi SPAZIO o INVIO per scegliere l'opzione di menu. Apri il sottomenu dell'opzione corrente con SPAZIO o INVIO oppure con la Freccia Destra. Torna indietro al menu superiore con ESC oppure Freccia Sinistra. Chiudi il menu contestuale con ESC."},
{name:"Box Lista Editor",legend:"All'interno di un elenco di opzioni, ... | JavaScript |
:= this.scoreboard[dma_command]
delete(this.scoreboard, dma_command)
if transfer_command.TransferCommandType() == bank.HOST_TO_DEVICE {
if dma_command.IsReady() {
transfer_command.AckDmaCommand(dma_command)
}
} else if transfer_command.TransferCommandType() == bank.DEVICE_TO_HOST {
vm_addres... | Go |
x_1), v_2 = getNextVertex(vertex_2); v_1 != vertex_1
&& v_2 != vertex_2; v_1 = getNextVertex(v_1), v_2 = getNextVertex(v_2)) {
if (v_1 == vertex_2)
return true;
if (v_2 == vertex_1)
return true;
assert (getPrevVertex(v_1) == vprev_1);// detect malformed list
assert (getPrevVertex(v_2) == vprev_... | Java |
--------------------------------------
attrFuncDict dict :{<__main__.ClsMain object at 0x000001C748B236B0>: None}
attrFuncList list :[<__main__.ClsMain object at 0x000001C748B236B0>]
----------METHODS__OBJECTS--------------------------------------------------------------------------
attrCl... | Python |
a)}else{k=t_(new uN(bG(Yq(g,r?g.c.length-1-f:f),8)),bG(_A(GX(b.f,v)),8));if(m.a!=k.a||m.b!=k.b){c=m.a-p.a;s=m.b-p.b;u=k.a-p.a;o=k.b-p.b;u*s==o*c&&(c==0||isNaN(c)?c:c<0?-1:1)==(u==0||isNaN(u)?u:u<0?-1:1)&&(s==0||isNaN(s)?s:s<0?-1:1)==(o==0||isNaN(o)?o:o<0?-1:1)?(t.Math.abs(c)<t.Math.abs(u)||t.Math.abs(s)<t.Math.abs(o))&... | JavaScript |
cks - no existing firewall
mock_get_response = MagicMock()
mock_get_response.status_code = 200
mock_get_response.json.return_value = {"firewall_groups": []}
mock_get.return_value = mock_get_response
# Setup create firewall response
mock_post_response = MagicMock(... | Python |
, List<Double> doubles) throws IOException {
* writer.beginArray();
* for (Double value : doubles) {
* writer.value(value);
* }
* writer.endArray();
* }
* ```
*
* Each `JsonWriter` may be used to write a single JSON stream. Instances of this class are
* not thread safe. Calls that would result in ... | Kotlin |
testWidgets('fpx, testOfflineBank: true', (tester) async {
final paymentMethod = await Stripe.instance.createPaymentMethod(
params: PaymentMethodParams.fpx(
paymentMethodData: PaymentMethodDataFpx(testOfflineBank: true)),
);
expect(paymentMethod.id, startsWith('pm_'));
expec... | Dart |
R_2] or enabled.NPSGraph[PLAYER_1] or
enabled.NPSGraph[PLAYER_2]
then
self:SetUpdateFunction(Update)
end
end
}
for _, pn in pairs({PLAYER_1, PLAYER_2}) do
if enabled.NPSDisplay[pn] then
t[#t + 1] = npsDisplay(pn)
end
if enabled.NPSGraph[pn] then
if not enabled.NPSDisplay[pn] then
t[#t + 1] = nps... | Lua |
,
// 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.
pub mod analyzers;
pub mod entries;
pub mod offset;
pub mod save_analysis;
use crate::error::KytheError;
use crate::providers::FileProv... | Rust |
("msvc") {
let curpaths = env::var_os("PATH").unwrap_or_default();
let curpaths = env::split_paths(&curpaths).collect::<Vec<_>>();
for &(ref k, ref v) in self.cc[&compiler.host].0.env() {
if k != "PATH" {
continue
}
... | Rust |
-@param bufnr integer
---@param filetype string
---@param query vim.treesitter.Query
---@return refactor.Query
function Query:new(bufnr, filetype, query)
return setmetatable({
query = query,
bufnr = bufnr,
filetype = filetype,
root = Query.get_root(bufnr, filetype),
}, self)
end
... | Lua |
= transform(conversionRules, name, attrs, styles, isCardNode);
// 执行回调函数
if (attrs[CARD_ELEMENT_KEY] !== 'center') {
if (callbacks.onOpen) {
const result = callbacks.onOpen(child, name, attrs, styles);
if (result === false) {
child = child.next();
continu... | Typescript |
code;
let outColouredChar =
ScreenChar
{
ascii_character: byte ,
color_code : color_code,
};
self.buffer.chars[row][col].write(outColouredChar);
self.colu... | Rust |
dex >= reg_universe.allocable {
continue;
}
per_real_reg[rregIndex].add_RealRange(&rlr, &frag_env, &vlr_env);
}
// Do RangeFrag compression.
do_vlr_frag_compression(&mut vlr_env, &mut frag_env);
let mut edit_list_move = Vec::<EditListItem>::new();
let mut edit_list_othe... | Rust |
_INT <= res <= MAX_INT:
return res
else:
return MAX_INT
```
# [0066. 加一](https://leetcode.cn/problems/plus-one/)
- 标签:数组、数学
- 难度:简单
## 题目链接
- [0066. 加一 - 力扣](https://leetcode.cn/problems/plus-one/)
## 题目大意
**描述**:给定一个非负整数数组,数组每一位对应整数的一位数字。
**要求**:计算整数加 $1$ 后的结果。
**说明**:
- $1 \le... | Markdown |
GetName())
end
function PLUGIN:CreateShipment(client, shipmentEntity)
ix.log.Add(client, "shipmentOrder")
end
function PLUGIN:CharacterVendorTraded(client, vendor, x, y, invID, price, isSell)
end
function PLUGIN:PlayerInteractItem(client, action, item)
if (isentity(item)) then
if (IsValid(item)) then
... | Lua |
dqu16 %ymm21, 0x560(%rax)
LONG $0x28ffe162; WORD $0x707f; BYTE $0x2c // vmovdqu16 %ymm22, 0x580(%rax)
LONG $0x28ffe162; WORD $0x787f; BYTE $0x2d // vmovdqu16 %ymm23, 0x5a0(%rax)
LONG $0x28ff6162; WORD $0x407f; BYTE $0x2e // vmovdqu16 %ymm24, 0x5c0(%rax)
LONG $0x28ff6162; WORD $0x487f; BYTE $0x2f // ... | Assembly |
結婚、交往',
value: '全都好結果相連吧。',
},
],
},
{
編號: '第四十六',
運勢: '凶',
內容: {
日文: ['雷発震天昏', '佳人独掩門', '交加文書上', '無事也遭屯'],
中文: ['雷發震天昏', '佳人獨掩門', '交加文書上', '無事也遭迍'],
},
解籤: {
日文: [
'雷発し、天に震って昏く。',
'佳人独り門を掩う。',
'文書の上に交加す。',
'事無くして也邅迍。',
... | Typescript |
OriginalRom.backgrounds[0x24],
OriginalRom.backgrounds[0x24],
//> lda #$ce ;then load shroom icon tile in 2-player position
//> sta VRAM_Buffer1+5
OriginalRom.backgrounds[0xce],
))
}
}
//> ExitIcon: rts... | Kotlin |
:block_type::memory})},
{hwcpipe_counter::MaliExtBusRdLat0,
hwcpipe::detail::counter_definition({37, 0, hwcpipe::device::hwcnt::block_type::memory})},
{hwcpipe_counter::MaliExtBusRdLat128,
hwcpipe::detail::counter_definition({38, 0, hwcpipe::device::hwcnt::block_type::memory})},
{hwcpipe... | C++ |
@ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \
@ RUN: | llvm-readobj -s -sd -sr > %t
@ RUN: FileCheck %s < %t
@ RUN: FileCheck --check-prefix=RELOC %s < %t
@ Check the .handlerdata directive (without .personality directive)
.syntax unified
@---------------------------------------------... | Assembly |
.GIT_PUSH_NON_FAST_FORWARD_MSG,
errorCode: SparkErrorConstants.GIT_PUSH_NON_FAST_FORWARD);
case GitErrorConstants.GIT_PUSH_NO_REMOTE:
return new SparkException(SparkErrorMessages.GIT_PUSH_NO_REMOTE_MSG,
errorCode: SparkErrorConstants.GIT_PUSH_NO_REMOTE);
case GitErrorConsta... | Dart |
Linkage5 withoutLinkageDef5;
void use(const void *);
void use_all() {
use(&withLinkage1); use(&withLinkage2); use(&withLinkage3a); use(&withLinkage3b);
use(&withLinkage4a); use(&withLinkage4b); use(&withLinkage5); use(&withLinkage6);
use(&withLinkage7); use(&withLinkage8); use(&withLinkage9); use(&with... | C++ |
ear:both;}#mobileButtons #navigationButtons{display:none;}#tocoverlayMask{background-color:rgba(0,0,0,.3);height:100%;position:fixed;top:0;width:100%;z-index:1000;}#overlay_indoctoc{cursor:pointer;background-color:#fff;left:calc(100%);height:100%;overflow-y:auto;position:fixed;width:250px;padding:30px 20px 30px 20px;tr... | CSS |
GL20C, "VertexAttrib1fv")
reuse(GL20C, "VertexAttrib1sv")
reuse(GL20C, "VertexAttrib1dv")
reuse(GL20C, "VertexAttrib2fv")
reuse(GL20C, "VertexAttrib2sv")
reuse(GL20C, "VertexAttrib2dv")
reuse(GL20C, "VertexAttrib3fv")
reuse(GL20C, "VertexAttrib3sv")
reuse(GL20C, "VertexAttrib3dv")
re... | Kotlin |
const ITERATIONS: &str = "iterations";
pub const RESOLUTION: &str = "resolution";
pub const RANDOMNESS: &str = "randomness";
pub const QUALITY: &str = "quality";
pub const HAS_HEADER: &str = "has_header";
pub struct CliArgs {
pub source_edges: String,
pub output_path: String,
pub separator: String,
pub... | Rust |
().m())
assertSame(3, (nativeObjectImplementingM() as InterfaceWithSingleJavaConcrete).m())
}
@JsFunction
internal fun interface JsFunctionInterface {
fun m(): Int
}
internal class JavaConcreteJsFunction : JsFunctionInterface {
override fun m(): Int = 5
}
@JsMethod @JvmStatic private extern... | Kotlin |
\
params[:${1:id}]${2}\n\
snippet ra\n\
render :action => \"${1:action}\"\n\
snippet ral\n\
render :action => \"${1:action}\", :layout => \"${2:layoutname}\"\n\
snippet rest\n\
respond_to do |wants|\n\
wants.${1:html} { ${2} }\n\
end\n\
snippet rf\n\
render :file => \"${1:filepath}\"\n\
snippet rfu\n\
render :... | JavaScript |
@media (width >= 48rem) {
display: flex;
}
}
.md\:grid-cols-2 {
@media (width >= 48rem) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.md\:items-center {
@media (width >= 48rem) {
align-items: center;
}
}
.md\:justify-between {
@media (width >= 48rem) ... | CSS |
testExpression("human_readable_decimal_format(l1, 3)", types);
testExpression("pi()", types);
}
/**
* Applies a list of arguments to a list of templates to fill in each template from the argument to generate
* expression strings and call {@link #testExpression} for each combination
*/
static vo... | Java |
ed_variables)]
/// let response = status::NoContent;
/// ```
// TODO: This would benefit from Header support.
#[derive(Debug, Clone, PartialEq)]
pub struct NoContent;
/// Sets the status code of the response to 204 No Content. The body of the
/// response will be empty.
impl<'r> Responder<'r> for NoContent {
fn re... | Rust |
gative.')
# Remaining set.
remaining_num = num_samples - chosen_num * 2
remaining_data = latent_codes[chosen_num:-chosen_num]
remaining_scores = scores[chosen_num:-chosen_num]
decision_value = (scores[0] + scores[-1]) / 2
remaining_label = np.ones(remaining_num, dtype=np.int)
remaining_label... | Python |
s list from file", "fileName", permFile, "err", err)
return
}
assert.Equal(t, len(nodeList), 1)
ptype.UpdatePermissionedNodes(testObject.node, d, arbitraryNode1, ptype.NodeAdd, true)
ptype.UpdatePermissionedNodes(testObject.node, d, arbitraryNode1, ptype.NodeDelete, true)
blob, _ = ioutil.ReadFile(permFile.Name... | Go |
arkCreditAsClaimed(
"Ambassador 2023",
"0009-0002-5962-1947",
"2023-02-14T08:00:00.000Z",
"2023-07-04T08:00:00.000Z",
"12345",
),
);
}
/**
* Helper function that compares two values, each of which may be either (a) an empty string,
* or (b) a JavaScript Date object. Returns `true`... | JavaScript |
explaining what the command does
*
* @param context the context of the command
*/
suspend fun explain(context: CommandContext) {
val serverConfig = context.config
val user = context.userHandle
val locale = context.locale
val discordMessage = context.message
val commandDescription = getDescription(loca... | Kotlin |
cb_dequantized.88x72.bmp) |
| On Cr plane |  |  |
'''
for id in range(3)
)}
### Statistical Comparison
{"".join(
f'''
The image pair with sequence number `{id}`:
On the Y plane:
{get_met... | Python |
ction DPSMate.Options:ShowTooltip()
if not this.user then return end
if DPSMateSettings["showtooltips"] then
DPSMate_Details.PaKey = this:GetParent():GetParent():GetParent().Key
if DPSMateSettings["tooltipanchor"] == 1 then
GameTooltip:SetOwner(UIParent, "BOTTOMRIGHT")
elseif DPSMateSettings["tooltipanchor"]... | Lua |
{max-height:150px;}
.mh300{max-height:300px;}
.padding5{padding:5px;}
.padding8{padding:8px;}
.padding10{padding:10px;}
.padding20{padding:20px;}
.p_t3{padding-top:3px;}
.p_t5{padding-top:5px;}
.p_t20{padding-top:20px;}
.p_l0{padding-left:0}
.p_l5{padding-left:5px}
.p_l10{padding-left:10px}
.p_l15{padding-left:15px... | CSS |
using System.Collections.Generic;
using System.Reflection.Emit;
using HarmonyLib;
using Helper;
using LongerDays.lang;
using UnityEngine;
using Tools = Helper.Tools;
namespace LongerDays;
[HarmonyPatch]
public static partial class MainPatcher
{
//hooks into the time of day update and saves if the K key was press... | C# |
le::open("config.json").expect("config");
let mut config_json = String::new();
file.read_to_string(&mut config_json);
let config: Config = serde_json::from_str(&config_json.to_owned()).unwrap();
let mut client = Client::new(&config.token, Handler)
.expect("Error creating client");
client.wi... | Rust |
gradient-image(top, rgba(241, 150, 155, 1), rgba(230, 70, 78, .5) 50%, rgba(222, 11, 21, .5) 50%, rgba(183, 0, 0, 0));
.box-shadow(0 2px 3px #333);
}
.km-ios .km-switch-handle
{
border-color: rgba(102,102,102,.8);
.box-shadow(~"inset 0 0 0 1px #fff");
.linear-gradient-image(top, rgb(255, 255, 255), rgb... | CSS |
'Will be removed in next major version')
Backend copyWith(void Function(Backend) updates) =>
super.copyWith((message) => updates(message as Backend)) as Backend;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Backend create() => Backend._();
Backend createEmptyInstanc... | Dart |
messages=[{"role": "user", "content": "你好"}],
# 还可以设置其他参数,例如 temperature、top_p 等,此处字段名与 API 参数一致
# 具体可以参考每个模型对应的 API 文档
temperature=0.5,
top_p=0.9,
)
# 也可以利用内置 Messages 简化多轮对话
# 下面是一个简单的用户对话案例,实现了对话内容的记录
msgs = qianfan.Messages()
while True:
msgs.append(input()) # 增加用户输入
resp = chat_com... | Markdown |
import jax
import jax.numpy as jnp
from jax import lax
def solver(u0_batch, t_coordinate, nu):
# Enable double precision (requires JAX_ENABLE_X64=1 in environment)
jax.config.update("jax_enable_x64", True)
B, N = u0_batch.shape
dx = 1.0 / N
k = 2 * jnp.pi * jnp.fft.fftfreq(N, d=dx).astype(u0_... | Python |
#include <linux/init.h>
#include <asm/idmap.h>
#include <asm/pgalloc.h>
#include <asm/pgtable.h>
#include <asm/memory.h>
#include <asm/suspend.h>
#include <asm/tlbflush.h>
extern int __cpu_suspend(unsigned long, int (*)(unsigned long));
extern void cpu_resume_mmu(void);
/*
* This is called by __cpu_suspend() to sav... | C |
dns.ClassINET,
Ttl: 120,
},
Ns: "a.ns." + domain,
Mbox: "dns." + domain,
Serial: 123,
Refresh: 7200,
Retry: 1800,
Expire: 604800,
Minttl: 120,
},
}
}
// TestDNSDBRoundRobinRecord tests round robin rec
func TestDNSDBRoundRobinRecord(t *testing.T) {
for _, db := range tes... | Go |
4-9.4-24.6-9.4-33.9 0L7 319c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l7-7 0 6.1c0 88.4 71.6 160 160 160l80 0 80 0c8.2 0 16.3-.6 24.2-1.8c-22.2-16.2-40.4-37.5-53-62.2L320 448l0-80 0-128 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-10.9 0zM496 512a144 144 0 1 0 0-288 144 144 0 1 0 0 288zm0-96a24 24 0 1 1 0 48 24 24 0 1 1 0-4... | JavaScript |
'C', b'7', b'D', b'7', b'E',
b'8', b'0', b'8', b'1', b'8', b'2', b'8', b'3', b'8', b'4', b'8', b'5', b'8', b'6', b'8', b'7',
b'8', b'8', b'8', b'9', b'8', b'A', b'8', b'B', b'8', b'C', b'8', b'D', b'8', b'E', b'9', b'0',
b'9', b'1', b'9', b'2', b'9', b'3', b'9', b'4', b'9', b'5', b'9', b'6', b'9', b'7', b'9... | Rust |
kUsage ) );
}
else
{
DrawInfoText( mpContext, y, "Country:", "" );
y += line_height;
DrawInfoText( mpContext, y, "Size:", "" );
y += line_height;
DrawInfoText( mpContext, y, "Save:", "" );
//y += line_height;
//DrawInfoTextL( mpContext, y, "EPak:", "" );
}
}
//****************************************... | C++ |
isArray(value) && (<Array<any>>value).length === 0)
// return false;
// else if (!Utils.isString(value))
// return ObjectUtils.isEmpty(value);
//
// return false;
// }
public static instantiate<T>(constructor: Function, args: any[] = []): T {
args.unshift(nul... | Typescript |
v_zip(s1, s4, t2, t3); v_zip(s2, s5, t4, t5);
#if CV_SIMD_WIDTH == 32
bl = t0 + t3; gl = t1 + t4; rl = t2 + t5;
#else //CV_SIMD_WIDTH == 64
v_zip(t0, t3, s0, s1); v_zip(t1, t4, s2, s3); v_zip(t2, t5, s4, s5);
bl = s0 + s3; gl = s1 + s4; rl = s2 + s5;
#endif
... | C++ |
/**
* @author Joram Barrez
*/
public class PriorityComponent extends CssLayout {
private static final long serialVersionUID = 1L;
protected Task task;
protected I18nManager i18nManager;
protected transient TaskService taskService;
protected PriorityLabel priorityLabel;
protected PriorityComboBox... | Java |
ributorLink(
contribution=contribution,
contributor=contributor,
contributor_order=contributor_order,
)
new_contributors.append(contributor)
session.add(contribution_contributor_link)
update_dict = contribution_in.model_dump(
exclude={"discord_cha... | Python |
.');
assert!(res.is_err());
let res = res.unwrap_err();
assert!(is_match!(res.kind(), &ErrorKind::QueryingValueAsArray(_)));
}
#[test]
fn test_delete_index_from_table_in_table() {
let mut toml : Value = toml_from_str(r#"
table = { another = { int = 1 } }
"#... | Rust |
Resolver<'a, 'tcx:'a> {
infcx: &'a InferCtxt<'a, 'tcx>,
}
impl<'a, 'tcx> OpportunisticTypeResolver<'a, 'tcx> {
pub fn new(infcx: &'a InferCtxt<'a, 'tcx>) -> OpportunisticTypeResolver<'a, 'tcx> {
OpportunisticTypeResolver { infcx: infcx }
}
}
impl<'a, 'tcx> ty::fold::TypeFolder<'tcx> for Opportunis... | Rust |
-> Result<()> {
let args = &cli::raw();
let cx = &Context::new(args)?;
exec_on_workspace(cx)
}
fn exec_on_workspace(cx: &Context<'_>) -> Result<()> {
// TODO: Ideally, we should do this, but for now, we allow it as cargo-hack
// may mistakenly interpret the specified valid feature flag as unknown... | Rust |
ity = L_PlayerManager:getPlayerUnit():getMainPetEntity_cs()
if not petCsEntity then
self:setPetHideShow(false)
return
end
self:setPetHideShow(true)
end
function this:update()
if not L_PlayerManager:getPlayerUnit() then
return
end
local petCsEntity = L_PlayerManager:getPlayerUnit():getMainPetEnt... | Lua |
ootContainers, cId) then
for i, item in ipairs(container:getItems()) do
if item:getId() == cId then
g_game.open(item, container)
delay(100)
return "retry"
end
end
end
end
-- couldn't find next container, so we done
print("CaveBot[Depositor]: all items s... | Lua |
r0, r2, #0
strh r0, [r1]
ldr r0, _0808AF88 @ =sub_808B5B8
ldr r1, _0808AF8C @ =0x00000464
movs r2, #0x80
lsls r2, r2, #1
ldr r3, _0808AF90 @ =sub_808D000
str r3, [sp]
movs r3, #0
bl TaskCreate
ldrh r1, [r0, #6]
movs r0, #0xc0
lsls r0, r0, #0x12
adds r5, r1, r0
strb r4, [r5, #1]
cmp r4, #0
bne _0808AF94
... | Assembly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.