content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
مقرر کیے تھے اور ان سے کہا تھا کہ 'میں تمہارے ساتھ ہوں، اگر تم نے نماز قائم رکھی اور زکوٰۃ دی اور میرے رسولوں کو مانا اور ان کی مدد کی اور اپنے خدا کو اچھا قرض دیتے رہے تو یقین رکھو کہ میں تمہاری برائیاں تم سے زائل کر دوں گا اور تم کو ایسے باغوں میں داخل کروں گا جن کے نیچے نہریں بہتی ہوں گی، مگراس کے بعد جس نے تم میں ... | Dart |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
一进二低吸战法策略入口文件
用于运行一进二低吸战法策略,包括初始化交易环境、启动策略、注册回调函数等。
"""
import os
import sys
import time
from datetime import datetime
import traceback
# 添加项目根目录到系统路径
root_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.insert(0, root_pat... | Python |
/v2 module path \"github.com/rsc/vgotest\" at revision v2.0.3",
},
{
vcs: "git",
path: "github.com/rsc/vgotest1/v2",
rev: "v2.0.4",
version: "v2.0.4",
name: "1f863feb76bc7029b78b21c5375644838962f88d",
short: "1f863feb76bc",
time: time.Date(2018, 2, 20, 0, 3, 38, 0, time.UTC),
err: ... | Go |
Clicking(false);
}
}
void BeginPathData(PathData.Node node, SpriteRenderer renderer)
{
foreach (var rend in reticleRenderersByNode.Values)
{
if (rend)
{
Destroy(rend.gameObject);
}
}
reticleRenderersByNode.Clear();... | C# |
)
{
d3d::set_vs_const(FLEXGRID_INSTANCE_DATA_CB_REG, &instanceData[0], instanceCount * FLEXGRID_REGISTERS_PER_INSTANCE);
if (convar::flex_grid_nonindexed.get())
d3d_err(d3d::draw_instanced(PRIM_TRILIST, 0, FLEXGRID_PATCH_QUADS * FLEXGRID_PATCH_QUADS * 2, instanceCount));
else
d3d_err(d3d::draw... | C++ |
- use GetString instead.
HRESULT GetData(BYTE const **ppbData, ULONG *pcbData)
{
HRESULT hr;
IfFailRet(CPackedLen::SafeGetData(m_pbCur, m_pbBlob + m_cbBlob, pcbData, ppbData));
// Move past the data we just recovered
m_pbCur = *ppbData + *pcbData;
return S_OK;
}
... | C |
e
KRB_AP_ERR_BAD_INTEGRITY = 0x1F, // Integrity check on decrypted field failed
KRB_AP_ERR_TKT_EXPIRED = 0x20, // The ticket has expired
KRB_AP_ERR_TKT_NYV = 0x21, //The ticket is not yet valid
KRB_AP_ERR_REPEAT = 0x22, // The request is a replay
KRB_AP_ERR_NO... | C# |
#ifndef MATCH_H_123091238901
#define MATCH_H_123091238901
#include "NotSupportedException.h"
namespace NppPythonScript
{
class GroupDetail
{
public:
virtual int start() const = 0;
virtual int end() const = 0;
virtual bool matched() const = 0;
};
class Match
... | C |
BEB 100%);
}
ul.nav li.selected {
/* Rectangle 16: */
background-image: -o-linear-gradient(-89deg, #BDC7DD 0%, #A6B2CD 100%, #9DA9C6 100%);
background-image: -moz-linear-gradient(-89deg, #BDC7DD 0%, #A6B2CD 100%, #9DA9C6 100%);
background-image: -ms-linear-gradient(-89deg, #BDC7DD 0%, #A6B2CD 100%,... | CSS |
$menu->close();
};
$menu = (new CliMenuBuilder)
->addItem('Item 1', function(CliMenu $menu) {})
->build();
$menu->addCustomControlMapping("x", $exit);
$menu->open();
```
Another example is mapping shortcuts to a list of items:
```php
<?php
use PhpSchool\CliMenu\Builder\CliMenuBuilder;
use PhpSchool\CliMen... | Markdown |
}
[data-mobile-nav-style=modern] .lqd-mobile-sec ul.main-nav.lqd-mobile-main-nav,
[data-mobile-nav-style=minimal] .lqd-mobile-sec ul.main-nav.lqd-mobile-main-nav {
padding: 12px 15px;
font-size: 16px;
}
[data-mobile-nav-style=modern] .lqd-mobile-sec ul.main-nav.lqd-mobile-main-nav>li>a,
[data-mobile-nav-style=mini... | CSS |
BrowserState();
setState(() {});
},
),
for (final filter in [
if (nameFilter case final nameFilter?) (
desc: 'Hide by name',
data: widget.thread.posts_.tryFirst?.name ?? '',
filter: nameFilter
),
if (tripFilter case final tripFilter?) (
desc: 'Hide by... | Dart |
!.type, TokenType.EOF);
expect(openBrace1.endToken, same(closeBrace2));
expect(openBrace2.endToken, same(closeBrace1));
}
void test_matching_brackets() {
BeginToken openBracket1 = _scan('[1, [2]]') as BeginToken;
var one = openBracket1.next!;
var comma = one.next!;
BeginToken openBracket2 =... | Dart |
_STRING_MODE,a,e.NUMBER_MODE]});return{case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT("{{!(--)?","(--)?}}"),{className:"template-tag",begin:/\{\{[#\/]/,end:/\}\}/,contains:[{className:"name",begin:/[a-zA-Z\.\-]+/,keywords:{"builtin-name":t},starts:r}]},{className:"template-variable",begin:/\{\{[a-zA-Z][a-zA-... | JavaScript |
LHu64 = 1928,
LHuE = 1929,
LHuE_MM = 1930,
LHu_MM = 1931,
LI16_MM = 1932,
LI16_MMR6 = 1933,
LL = 1934,
LL64 = 1935,
LL64_R6 = 1936,
LLD = 1937,
LLD_R6 = 1938,
LLE = 1939,
LLE_MM = 1940,
LL_MM = 1941,
LL_MMR6 = 1942,
LL_R6 = 1943,
LSA = 1944,
LSA_MMR6 = 1945,
LSA_R6 = 1946,
LUI_MM... | C++ |
io_irq_chip *girq;
struct gpio_chip *chip;
int irq, ret;
/* Menlow has a different INT0002 device? <sigh> */
cpu_id = x86_match_cpu(int0002_cpu_ids);
if (!cpu_id)
return -ENODEV;
irq = platform_get_irq(pdev, 0);
if (irq < 0)
return irq;
int0002 = devm_kzalloc(dev, sizeof(*int0002), GFP_KERNEL);
if (!int... | C |
12, 9, 12),
// listOf(728714, 1416, 10, 5),
// listOf(744313, 1460, 10, 12),
listOf(764652, 1518, 3, 5)
).forEach {
assertEquals(it[0] + J0000, IslamicDate(it[1], it[2], it[3]).toJdn(), "${it[0]}")
val from = IslamicDate(it[0] + J0000)
assertEquals(f... | Kotlin |
aec958fe89b164a30f38bcca9f5d96218',1,'arm_lms_norm_instance_f32::x0()'],['../structarm__lms__norm__instance__q31.html#a47c4466d644e0d8ba407995adfa9b917',1,'arm_lms_norm_instance_q31::x0()'],['../structarm__lms__norm__instance__q15.html#a3fc1d6f97d2c6d5324871de6895cb7e9',1,'arm_lms_norm_instance_q15::x0()']]],
['x1',[... | JavaScript |
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
using UnityEditor;
using System;
public class StyledOptionsSliderDrawer : MaterialPropertyDrawer
{
public string nameMin = "";
public string nameMax = "";
public string nameVal = "";
public float min = 0;
public float max = 0;
publi... | C# |
ry: '蕩之什',
title: '召旻',
content: [
`旻天疾威、天篤降喪。
瘨我饑饉、民卒流亡。
我居圉卒荒。`,
`天降罪罟、蟊賊內訌、昏椓靡共、潰潰回遹、實靖夷我邦。`,
`臯臯訿訿、曾不知其玷。
兢兢業業、孔填不寧、我位孔貶。`,
`如彼歲旱、草不潰茂。
如彼棲苴。
我相此邦、無不潰止。`,
`維昔之富、不如時、維今之疚、不如茲。
彼疏斯粺、胡不自替、職兄斯引。`,
`池之竭矣、不云自頻。
泉之竭矣、不云自中。
溥斯害矣、職兄斯弘、不烖我躬。`,
`昔先王受命、有如召公、日辟國百里。
今也日蹙國百里。
於乎哀哉... | Typescript |
}
case VISIT: {
final Visitor visitor = (Visitor) arg0;
final Node other = (Node) arg1;
id_ = visitor.visitLong(hasId(), id_, other.hasId(), other.id_);
keys_ = visitor.visitIntList(keys_, other.keys_);
vals_ = visitor.visitIntList(vals_, other.vals_);
info_ = visitor.visitMessage(i... | Java |
nly compile slog in when logging features are enabled?
fn slog(name: &str, version: &str) -> slog::Logger {
use slog::Drain;
#[cfg(not(any(feature = "syslog", feature = "journald")))]
let drain = slog::Drain::Discard;
#[cfg(feature = "syslog")]
let drain = slog_syslog::SyslogBuilder::new()
... | Rust |
://youtu.be/iDxzWeyCN54)
[](https://youtu.be/3fNJQraCJx0)
Оскільки важко вставити проводи після того, як верхня плита складена, зробіть проводку заздалегідь.
Хоча дизайн добре спроектований таким чином, що ви зможете зробити ... | Markdown |
ncx = normalArray[ i + 6 ];
ncy = normalArray[ i + 7 ];
ncz = normalArray[ i + 8 ];
nx = ( nax + nbx + ncx ) / 3;
ny = ( nay + nby + ncy ) / 3;
nz = ( naz + nbz + ncz ) / 3;
normalArray[ i ] = nx;
normalArray[ i + 1 ] = ny;
normalArray[ i + 2 ] = nz;
normalArr... | JavaScript |
0V',
),
/// Debug Port(UART0)
PinInformation(
category: 'Power',
index: 1,
gpioColumn: 4,
name: 'GND',
),
PinInformation(
category: 'Power',
index: 2,
gpioColumn: 4,
name: 'VDD_5V',
description: '0V',
),
PinInformation(
category: '... | Dart |
Name(asc bool) *smsFlashPromotionSessionQueryBuilder {
order := "DESC"
if asc {
order = "ASC"
}
qb.order = append(qb.order, "name "+order)
return qb
}
func (qb *smsFlashPromotionSessionQueryBuilder) WhereStartTime(p mysql.Predicate, value time.Time) *smsFlashPromotionSessionQueryBuilder {
qb.where = append(qb... | Go |
"""
性能监控器 - 监控系统性能指标
"""
import time
import psutil
import asyncio
from typing import Dict, List, Any, Optional
from collections import deque, defaultdict
from dataclasses import dataclass
from app.utils.logger import setup_logger
logger = setup_logger(__name__)
@dataclass
class RequestMetrics:
"""请求指标"""
ti... | Python |
w3.org/2000/svg' viewBox='0 0 6 6' fill='var%28--bs-primary%29'%3e%3cpath d='M2.72011 2.76429L4.46358 1.02083C4.63618 0.848244 4.63617 0.568419 4.46358 0.395831C4.29099 0.223244 4.01118 0.223244 3.83861 0.395831L1.52904 2.70537C1.36629 2.86808 1.36629 3.13191 1.52904 3.29462L3.83861 5.60419C4.01117 5.77675 4.29099 5.77... | CSS |
사귀 30개를 가져다 달라고 부탁했습니다."}},
[9137] = {"야생 잎사귀", nil, nil},
[9138] = {"태양왕관 마을", nil, {"네루비스 경비병 10마리를 해치운 후 유령의 땅의 트랜퀼리엔에 있는 비전술사 반드릴에게 돌아가야 합니다."}},
[9139] = {"황금안개 마을", nil, {"황금안개 마을에서 쿠엘도레이 유령 6마리, 쿠엘도레이 망령 4마리를 해치운 후 유령의 땅의 트랜퀼리엔에 있는 비전술사 반드릴에게 돌아가십시오."}},
[9140] = {"윈드러너 마을", nil, {"실체 없는 잔여물 6개, 가고일 파편 4개를 모으십시오... | Lua |
ets;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Mob... | Java |
oord: Option<usize>,
) {
if let Some(i) = coord {
let other_entity = entities.get(i).unwrap();
commands
.spawn()
.insert(VerletStick {
point_a_entity: entity,
point_b_entity: *other_entity,
length,
})
.in... | Rust |
queue of logic instructions.
while (!LogicOpsWorklist.empty()) {
BinaryOperator *Op = LogicOpsWorklist.back();
LogicOpsWorklist.pop_back();
// If both operands mapped, and the instruction itself not yet mapped,
// convert it.
if (ConvertedInsts.count(dyn_cast<Instruction>(Op->getOperand(0))) &&
... | C++ |
ant
{
get { return selectedVariant; }
set
{
selectedVariant = value;
IsVariantSelected = selectedVariant != null;
OnPropertyChanged();
}
}
private IPlayniteAPI playniteApi;
private... | C# |
=(t={})=>new Promise((e,r)=>{let i=Mve.connect(t,()=>{t.resolveSocket?(i.off("error",r),e({alpnProtocol:i.alpnProtocol,socket:i})):(i.destroy(),e({alpnProtocol:i.alpnProtocol}))});i.on("error",r)})});var RW=E((Gnt,DW)=>{"use strict";var Ove=require("net");DW.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r... | JavaScript |
using System.Collections.Generic;
using System.IO;
namespace AcTools.KsAnimFile {
public partial class KsAnim {
public static KsAnim CreateEmpty() {
return new KsAnim {
Header = new KsAnimHeader { Version = 2 },
Entries = new Dictionary<string, KsAnimEntryBase>(... | C# |
along with AAG Cloud Watcher INDI Driver. If not, see
<http://www.gnu.org/licenses/>.
Anemometer code contributed by Joao Bento.
#endif
#include "indicom.h"
#include "indiweather.h"
#include "CloudWatcherController_ng.h"
#include <iostream>
/**
* Just a test main function. Used for debugging. Ignore it.
... | C++ |
Q2L6X21zN3/JW8QUt+pL58cvyYH2l0hQE5ylw/gtL+miB/7zUqFAgSFgin" +
"C/J1YbNVge98sljb5X4waDLt+2qG3VUtEEcn4qYTe0sYcAlLG6h0Q6U1F20pOhHhopFHOZWJ/W8yqwDj" +
"qcKZhBKAiCHgI6WzJ0rh/MWA/iP8jRtyX6vn5z9TGpPfLy9enb47pdQijy9++e7s7cnpOwrl/sX529On" +
"T4K3h/jEWQY8+VFSpYWQkFOide27ujK06T82I8I... | C# |
local BasePlugin = require "kong.plugins.base_plugin"
local error = error
local ErrorGeneratorHandler = BasePlugin:extend()
ErrorGeneratorHandler.PRIORITY = math.huge
function ErrorGeneratorHandler:new()
ErrorGeneratorHandler.super.new(self, "error-generator")
end
function ErrorGeneratorHandler:init_worker(... | Lua |
_types};
use nix::libc;
use crate::process::{io_error_to_process_error, ProcessError, ProcessResult};
use crate::Pid;
#[allow(non_camel_case_types)]
type caddr_t = *const libc::c_char;
#[allow(non_camel_case_types)]
type segsz_t = i32;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct kinfo_proc {
pub kp_proc: extern_pr... | Rust |
/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2005 Doug Rabson
* 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 ... | C |
(probe_3)
set 0xFFF, %o1
andn %o0, %o1, %o0
set 0x300, %o1
or %o0, %o1, %o0
retl
lda [%o0]ASI_FLPR, %o0
/*
* Breakpoint register
* set or unset bits
* bpt_reg(onbits, offbits)
*/
ENTRY(bpt_reg)
lda [%g0]ASI_MBAR, %o2 /* get the contents */
or %o0, %o2, %o0 /* set the "onbits" bits */
andn %o0, %o1, ... | Assembly |
e = "roles/privateca.certificateRequester"
members = [
"serviceAccount:service-${data.google_project.project.number}@gcp-sa-sourcemanager.iam.gserviceaccount.com"
]
}
resource "google_secure_source_manager_instance" "default" {
instance_id = "my-instance"
location = "us-central1"
private_config {
is... | Markdown |
ifier;
float Timer;
Classes::TEnumAsByte<Classes::EPhysics> PawnPhysics;
float HandPlantExtentCheckHeight;
float HandPlantExtentCheckWidth;
float HandPlantCheckDistance;
float HandPlantCheckHeight;
float ContextMoveDistanceMultiplier;
... | C |
onst val PREF_SHOW_STORAGE_OPTION = "show_storgae_option"
const val PREF_IS_FIRST_RUN = "isFirstRun"
private const val PREF_SHOW_BOOKMARKS_ALL_BOOKS = "show_bookmarks_current_book"
private const val PREF_SHOW_HISTORY_ALL_BOOKS = "show_history_current_book"
private const val PREF_SHOW_NOTES_ALL_BOOKS = "... | Kotlin |
Add dimensions if the metric filter created them
dimensions = {
"Service" = "WebApp"
}
}
# Composite alarm that combines multiple conditions
resource "aws_cloudwatch_composite_alarm" "system_critical" {
alarm_name = "system-critical-condition"
alarm_description = "Triggers when both CPU is high AND... | Markdown |
/
/// `AsyncReader` is an individual iterator and it doesn't use `None` to indicate that the iteration is
/// finished. You can expect additional `Some(InputEvent)` after calling `next` even if you have already
/// received `None`.
///
/// # Notes
///
/// * It requires enabled raw mode (see the
/// [`crossterm_screen... | Rust |
ERROR: type should be string, got " https://github.com/w8r/GreinerHormann/blob/master/src/intersection.js\n *\n * @date 2020-11-30\n */\n\nimport Vertex from \"./vertex\";\n\n/**\n * Defines an edge intersection.\n */\nexport default class Intersection {\n\n /**\n * @type {Number}\n */\n public x : number;\n\n /**\n * @type {Number}\n */\n public y : number;\n\n /**\n * @type {Number}\n */\n public toSource : number;\n\n /**\n * @type {Number}\n */\n public toClip : number;\n \n\n /**\n * @constructor\n * @param {Vertex} s1 - Source edge vertex 1.\n * @param {Vertex} s2 - Source edge vertex 2.\n * @param {Vertex} c1 - Clip edge vertex 1.\n * @param {Vertex} c2 - Clip edge vertex 2.\n */\n constructor(s1:Vertex, s2:Vertex, c1:Vertex, c2:Vertex) {\n\n\tthis.x = 0.0;\n\tthis.y = 0.0;\n\n\tthis.toSource = 0.0;\n\tthis.toClip = 0.0;\n\n\tconst d = (c2.y - c1.y) * (s2.x - s1.x) - (c2.x - c1.x) * (s2.y - s1.y);\n\tif (d === 0) return;\n\tthis.toSource = ((c2.x - c1.x) * (s1.y - c1.y) - (c2.y - c1.y) * (s1.x - c1.x)) / d;\n\tthis.toClip = ((s2.x - s1.x) * (s1.y - c1.y) - (s2.y - s1.y) * (s1.x - c1.x)) / d;\n\tif (this.valid()) {\n this.x = s1.x + this.toSource * (s2.x - s1.x);\n this.y = s1.y + this.toSource * (s2.y - s1.y);\n\t}\n }\n\n\n /**\n * @return {Boolean}\n */\n valid () : boolean {\n\treturn (0 < this.toSource && this.toSource < 1) && (0 < this.toClip && this.toClip < 1);\n }\n}\nimport { createRect, Point, Rect } from \"./primitives\";\nimport { ToolType } from \"./tools\";\n\ntype RectangleShape = Rect & {\n type: \"rectangle\";\n fill: string;\n stroke: string;\n};\n\ntype EllipseShape = Rect & {\n type: \"ellipse\";\n fill: string;\n stroke: string;\n};\n\ntype PolylineShape = {\n type: \"polyline\";\n stroke: string;\n points: Point[];\n};\n\ntype Shape = RectangleShape | EllipseShape | PolylineShape;\n\ninterface DrawingConfig {\n getCurrentToolType: () => ToolType;\n getCurrentStroke: () => string;\n getCurrentFill: () => string;\n}\n\nfunction isTouchEvent(event: Event): event is TouchEvent {\n return event.type.startsWith(\"touch\");\n}\n\nfunction getEventPoint(event: MouseEvent | TouchEvent): Point {\n if (isTouchEvent(event)) {\n return {\n x: event.changedTouches[0].clientX,\n y: event.changedTouches[0].clientY,\n };\n } else {\n return {\n x: event.clientX,\n y: event.clientY,\n };\n }\n}\n\nexport class Drawing {\n canvas: HTMLCanvasElement;\n currentShape?: Shape;\n isDragging = false;\n initialPoint: Point = { x: 0, y: 0 };\n shapes: Shape[] = [];\n\n getCurrentToolType: () => ToolType;\n getCurrentStroke: () => string;\n getCurrentFill: () => string;\n\n constructor(canvas: HTMLCanvasElement, config: DrawingConfig) {\n this.canvas = canvas;\n this.getCurrentToolType = config.getCurrentToolType;\n this.getCurrentStroke = config.getCurrentStroke;\n this.getCurrentFill = config.getCurrentFill;\n\n canvas.addEventListener(\"mousedown\", this.handleMouseDown);\n canvas.addEventListener(\"mousemove\", this.handleMouseMove);\n canvas.addEventListener(\"mouseup\", this" | Typescript |
h of pending event storage records that need to be processed.
/// </summary>
/// <param name="parameters">use these supplied search parameters to find the next batch of event records from your database</param>
ValueTask<IEnumerable<TStorageRecord>> GetNextBatchAsync(PendingRecordSearchParams<TStorageRecord>... | C# |
_UNSPECIFIED : rv;
}
/** Non-muxed sets the MTIME bytes to 0 */
private static int getFromPort(MessagePayloadMessage msg) {
return (((getByte(msg, FROMPORT_BYTES) & 0xff) << 8) |
(getByte(msg, FROMPORT_BYTES + 1) & 0xff));
}
/** Non-muxed sets the MTIME bytes to 0 */
... | Java |
// ---------------------------------------------------------------------
//
// Copyright (c) 2019 - 2019 by the IBAMR developers
// All rights reserved.
//
// This file is part of IBAMR.
//
// IBAMR is free software and is distributed under the 3-clause BSD
// license. The full text of the license can be found in the f... | C |
https://www.gnu.org/licenses/>.
*/
/**
* shosetsu
* 13 / 05 / 2020
*/
class RemoteExtensionDataSource(
private val client: OkHttpClient,
) : IRemoteExtensionDataSource {
private fun makeExtensionURL(repo: RepositoryEntity, fe: GenericExtensionEntity): String =
"${repo.url}$REPO_SOURCE_DIR/${fe.lang}/${fe.file... | Kotlin |
y: "workqueue_work_duration_seconds_bucket",
platforms: selfHostedPlatforms,
},
{
componentName: "kube-proxy",
query: "kubeproxy_sync_proxy_rules_duration_seconds_bucket",
platforms: selfHostedPlatforms,
},
{
componentName: "kubelet",
query: "kubelet_running_pod... | Go |
Args,
) -> BoxFuture<'a, Result<()>> {
async move {
for device in devices.iter() {
if device.hub_id == hub_id {
let depth = device.depth.lock().unwrap().unwrap().clone();
match list_device(&device.device, device.devnum, depth, max_depth, args).await {
... | Rust |
torChar)
.Replace('\\', System.IO.Path.DirectorySeparatorChar);
if (relativePath[0] != System.IO.Path.DirectorySeparatorChar)
relativePath = System.IO.Path.DirectorySeparatorChar + relativePath;
return CachedPath = relativePath;
}
}
/// <inheritdo... | C# |
tarteaucitronMainLine .tarteaucitronName a{font-size:22px}#tarteaucitron #tarteaucitronServices .tarteaucitronTitle a{font-size:14px}#tarteaucitron #tarteaucitronInfo,#tarteaucitron #tarteaucitronServices .tarteaucitronDetails:not(.tarteaucitronDetailsInline){color:#000;display:none;font-size:12px;font-weight:500;margi... | CSS |
#ifndef __XBMC_ADDON_DLL_H__
#define __XBMC_ADDON_DLL_H__
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either ve... | C |
$i+5;
}
/*====== Padding-bottom css ends ======*/
/*====== Padding-right css starts ======*/
$i:0;
@while $i<=50 {
.p-r-#{$i} {
padding-right:#{$i}px;
}
$i:$i+5;
}
/*====== Padding-right css ends ======*/
/*====== Margin css starts ======*/
$i:0;
@while $i<=50 {
.m-#{$i} {
margin:#{$i}px !import... | CSS |
yte 1
.byte 2
.byte 3
.byte 4
.byte 5
.byte 6
.byte 7
.byte 8
.byte 9
.byte 10
.byte 11
.byte 12
.byte 13
.byte 14
.byte 15
.byte 0
.byte 1
.byte 2
.byte 3
.byte 4
.byte 5
.byte 6
.byte 7
.byte 8
.byte 9
shufmin1_mask3:
.byte 2
.byte 3
.byte 4
.byte 5
.byte 6
.byte 7
.byte 255
.byte 255
.byte 255
.byte 255
.byte 255
.b... | Assembly |
fn validate<W, E>(&self, mut warn: W, _err: E) -> bool
where
W: FnMut(&str),
E: FnMut(&str),
{
if self.a > 10 {
warn("a is greater than 10");
}
true
}
}
struct V1Validator;
impl<'a> Validator<'a> for V1V... | Rust |
0, 0.3));
}
@media (max-width: 1300px) {
.D36V-Zuy4P4h8Ogar6YWx ._2dEVdxZ62mXK6Hscx85kfA {
width: 950px;
}
}
@media (max-width: 1000px) {
.D36V-Zuy4P4h8Ogar6YWx ._2dEVdxZ62mXK6Hscx85kfA {
width: 750px;
flex-direction: column;
justify-content: center;
}
}
.D36V-Zuy4P4h8Ogar6YWx ._2dEVdxZ62mXK6Hsc... | CSS |
e, handlerFile.IsExists);
Assert.AreEqual(false, local.Exists("TestHandler"));
Assert.AreEqual(false, local.Exists("TestFileHandler"));
Assert.AreEqual("TestHandler-rename", handlerDir.Path);
Assert.AreEqual("TestFileHandler-rename", handlerFile.Path);
... | C# |
oks[ name ];\n\t\tif ( hooks && \"expand\" in hooks ) {\n\t\t\tvalue = hooks.expand( value );\n\t\t\tdelete props[ name ];\n\n\t\t\t// Not quite $.extend, this won't overwrite existing keys.\n\t\t\t// Reusing 'index' because we have the correct \"name\"\n\t\t\tfor ( index in value ) {\n\t\t\t\tif ( !( index in props ) ... | JavaScript |
ates>$dpimg.offset();
// establish caption button location and event
let $caption_btn = $(capbtn);
$caption_btn.attr('id', btnid);
$caption_btn.css({
position: 'absolute',
top: imgpos.top,
left: imgpos.left,
zIndex: '100'
});
... | Typescript |
HECK_BINOP(v,w) \
do { \
if (!PyLong_Check(v) || !PyLong_Check(w)) \
Py_RETURN_NOTIMPLEMENTED; \
} while(0)
/* x[0:m] and y[0:n] are digit vectors, LSD first, m >= n required. x[0:n]
* is... | C |
fun stop() = InstantCommand(Hood) { Hood.stop() }
fun followAngle(angle: () -> Rotation2d) = SimpleCommand(
requirements = setOf(Hood),
execute = { setAngle(angle.invoke()) },
isFinished = { DSSwitches.hoodDisabled },
end = { setAngle(0.0.degrees.asRotati... | Kotlin |
if ( bounds.setupAllFree( ) != SUCCESSFUL_RETURN )
return THROWERROR( RET_INIT_FAILED );
if ( constraints.setupAllInactive( ) != SUCCESSFUL_RETURN )
return THROWERROR( RET_INIT_FAILED );
/* 2) Setup optimal primal/dual solution for auxiliary QP. */
if ( setupAuxiliaryQPsolution( xOpt,yOpt ) != SUCCESSFUL_RETUR... | C++ |
ached<T>()
{
_attached?.Remove(typeof(T));
}
internal void SetAttached<T>(T value)
{
_attached ??= new Dictionary<Type, object>();
_attached[typeof(T)] = value;
}
/// <summary>
/// Gets or sets the screen that has this window ... | C# |
d beyond this default list
, plugins: {
draggable: !!$.fn.draggable // resizing
, effects: {
core: !!$.effects // animimations (specific effects tested by initOptions)
, slide: $.effects && ($.effects.slide || $.effects.effect.slide) // default effect
}
}
// arrays of plugin or other methods to be trigg... | JavaScript |
appendInitialSourceConnectionID(b)
p := &TransportParameters{}
err := p.Unmarshal(b, protocol.PerspectiveClient)
require.NoError(t, err)
require.Equal(t, protocol.ByteCount(0x1337), p.InitialMaxStreamDataBidiLocal)
require.Equal(t, protocol.ByteCount(0x42), p.InitialMaxStreamDataBidiRemote)
}
func TestTransportP... | Go |
A2, TA1> ActionToFunction<TA1, TA2>(Action<TA1, TA2> action) =>
(a1, a2) =>
{
action(a1, a2);
return a1;
};
sealed partial class CustomClass : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public static IReadOnlyList<CustomClass> Instances { get... | C# |
"""
===============
Hinton diagrams
===============
Hinton diagrams are useful for visualizing the values of a 2D array (e.g.
a weight matrix): Positive and negative values are represented by white and
black squares, respectively, and the size of each square represents the
magnitude of each value.
Initial idea from D... | Python |
"S_OhOoh2"], ["😲 surpresa", "S_surprise"],["🤖 conectar", "S_connection"], [" 🤖 desconectar", "S_disconnection"], ["👇 empurrar", "S_buttonPushed"], ["❗ 1", "S_mode1"], ["❗❗ 2", "S_mode2"], ["❗❗❗ 3", "S_mode3"], ["💤 dormir", "S_sleeping"], ["💩 peido1", "S_fart1"], ["💩 peido2", "S_fart2"], ["💩 peido3", "S_fart3"],... | JavaScript |
, {"到奧丹姆神殿找哈里遜‧瓊斯說話。"}},
[28622] = {"閃三下", nil, {"在奧丹姆神殿使用信號槍。"}},
[28623] = {"往西前進", nil, {"到奧丹姆的奈斐賽特城郊區向法歐瑞斯王回報。"}},
[28624] = {"基爾拉姆的自傲", nil, {"與迪滋·岩偷交談。"}},
[28625] = {"砍啊砍", nil, {"從霜葉樹人身上收集10片新伐的霜木。"}},
[28626] = {"運送樹木", nil, {"將超級速成樹帶去永望鎮的旅店遞交給基爾拉姆。"}},
[28627] = {"瑟里爾的自傲", nil, {"與迪滋·岩偷交談。"}},
[28628] = {"運送冰... | Lua |
import subprocess # nosec B404
import pytest
import logging
import sys
from test_cli_image import run_wwb, get_similarity
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def run_test(model_id, model_type, optimum_threshold, genai_threshold, tmp_path):
if sys.platform == 'darwin':
... | Python |
*new_owner, bool is_leave, const char *json_extension, nim_team_opt_cb_func cb, const void *user_data)
* 移交群主
* @param[in] tid 群组id
* @param[in] new_owner 移交对象uid
* @param[in] is_leave 是否同时退出群
* @param[in] json_extension json扩展参数(备用,目前不需要)
* @param[in] cb 移交群主的回调函数, nim_team_opt_cb_func回调函数定义见nim_team_de... | C |
first world?\
That's sad.")
smlua_text_utils_dialog_replace(DIALOG_025,1,4,95,200, "Are you blind?\
Don't you see a 3\
on the door?\
And how many stars do\
you have? NOT THREE!")
smlua_text_utils_dialog_replace(DIALOG_026,1,4,95,200, "You can't even find\
8 stars? are you\
serious?")
smlua_text_utils_dialog_replace(... | Lua |
-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}
/*# sourceMappingURL=bootstrap.min.css.map *//*!
* Bootstrap v4.3.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors
* Copyright 2011-2019 Twitte... | CSS |
float, float],
name: str = "",
): ...
@overload
def add_linear_constraint(
self,
con: ComparisonConstraint,
name: str = "",
): ...
def add_linear_constraint(self, arg, *args, **kwargs):
if isinstance(arg, ComparisonConstraint):
return self._add_l... | Python |
import pandas as pd
from sklearn.model_selection import train_test_split
input_path = 'mydata_2/output_all.csv' # 带划分数据
out_dir = 'mydata_2' # 划分后数据保存目录
train_ratio = 0.7 # 训练集占比
out_names = ["train", "val", "test"]
out_path = [out_dir + "/" + out_names[i] + "_all.csv" for i ... | Python |
#ifndef BEEBJIT_TIMING_H
#define BEEBJIT_TIMING_H
#include <stddef.h>
#include <stdint.h>
struct timing_struct;
struct timing_struct* timing_create(uint32_t scale_factor);
void timing_destroy(struct timing_struct* p_timing);
void timing_set_log_expiries(struct timing_struct* p_timing, int log_expiries);
void timing... | C |
restricted_words = {
"Гомик",
"гомосек",
"Нигер",
"негр",
"Хохол",
"укроп",
"Жид",
"Хач",
"Петух",
"Глиномес",
"Черножопый",
"черномазый",
"Чурка",
"Инцел",
"Симп",
"Девственник",
}
| Python |
best we can:
//
template<class InputIterator, class OutputIterator>
inline OutputIterator copy(
InputIterator first,
InputIterator last,
OutputIterator dest
)
{
while(first != last)
*dest++ = *first++;
return dest;
}
template<class InputIterator1, class Inp... | C++ |
CT_EQ(*c.size_hint().upper, 0u);
}
static_assert(sus::Vec<i32>(2, 3, 4).len() == 3u);
static_assert(
sus::Vec<i32>(2, 3, 4).into_iter().chain(sus::Vec<i32>(5, 6)).count() ==
5u);
}
TEST(Iterator, ChainFromIterator) {
auto v1 = sus::Vec<i32>(1, 2);
auto v2 = sus::Vec<i32>(3);
sus::collections:... | C++ |
dbackMessage) -> None:
"""Route feedback message from one agent to another."""
log_event(
logger,
"directory.feedback_route",
f"Routing feedback: {feedback.sender} → {feedback.receiver}"
)
if feedback.receiver not in self.agents:
e... | Python |
api_key == 'your-coinmarketcap-api-key-here':
logger.error("❌ CMC_API_KEY is required")
logger.error("💡 Please set your CoinMarketCap API key in one of these ways:")
logger.error(" 1. Environment variable: export CMC_API_KEY='your-api-key-here'")
logger.error(" 2. Update CMC_API_KE... | Python |
*
* Mips5k_HitInvalidateSCache --
*
* void Mips5k_HitInvalidateSCache(addr, len)
* vaddr_t addr, len;
*
* Invalidate secondary cache for range of addr to addr + len - 1.
* The address can be any valid address as long as no TLB misses occur.
* (Be sure to use cached K0SEG kernel addresses or mapped addresses)... | Assembly |
= nameField.Text,
Description = descField.Text,
Author = authorField.Text,
IconFile = iconFilePath,
Owner = InstanceManager.Instances[instanceField.SelectedIndex],
});
ProjectManager.AddProject(project);
... | C# |
VisitItemDeltasRecursively(change =>
{
if (change.IsPropertiesChanged && change.ProjectItem is IProject project && project.IsMainUnityProject())
Invalidate("Properties change for main Unity project");
});
}
private void OnPackagesUpdated(Prope... | C# |
#include "os_fault.h"
#include "util.h"
#include <windows.h>
#include <stdio.h>
static void (*s_p_fault_callback)(uintptr_t*,
uintptr_t,
int,
int,
int,
... | C |
.intel_syntax noprefix
.data
.globl _foo
_foo:
.quad foo
out_of_bounds_msg:
.string "Out-of-bounds array access."
invalid_array_length_msg:
.string "Array length requested for allocation is invalid (either too large or negative)."
.text
.globl foo
foo:
push rbp
mov rbp, rsp
sub rsp, 16
... | Assembly |
#define MAXX 1024
#define MAXY 780
#include <stdio.h>
#include <math.h>
int xs,ys;
void startDraw(int x1,int y1)
{
if (x1 < 0) x1 = 0;
if (x1 >= MAXX) x1 = MAXX -1;
if (y1 < 0) y1 = 0;
if (y1 >= MAXY) y1 = MAXY - 1;
putchar(29);
putchar((y1 >> 5) + 32);
putchar((y1 & 31) + 96);
putcha... | C |
"))
->EndObject()
->Add("copies", 5);
oCol->Insert(oDoc.get());
_di_IMongoCursor oCrs = oCol->Aggregate()
->Project()
->Field("title")
->FieldBegin("isbn")
->Exp("prefix", String("{ \"$substr\": [ \"$isbn\", 0, 3 ] }"))
->Exp("group", String("{ \"$substr\": [ \"$isbn\", 3, 2 ] }"))
->... | C++ |
easoning for Document-level Relation Extraction】 那些的你不知道的事](https://github.com/km1994/nlp_paper_study_information_extraction/tree/master/information_extraction/Doc-level_Relation_Extraction/DoubleGraphBasedReasoningforDocumentlevelRelationExtraction/)
- [【关于 ATLOP】 那些的你不知道的事](https://github.com/km1994/nlp_paper_study_i... | Markdown |
::genesis_key.prv, nano::dev::genesis_key.pub)
.work (*node0->work_generate_blocking (ureceive->hash ()))
.build ();
{
auto transaction = node0->ledger.tx_begin_write ();
ASSERT_EQ (nano::block_status::progress, node0->ledger.process (transaction, usend));
ASSERT_EQ (nano::block_status::progress, n... | C++ |
r: *const _HCLUSTER, lpszgroupname: ::windows_sys::core::PCWSTR) -> *mut _HGROUP>;
#[doc = "*Required features: `\"Win32_Networking_Clustering\"`*"]
pub type PCLUSAPI_OPEN_CLUSTER_GROUP_EX = ::core::option::Option<unsafe extern "system" fn(hcluster: *const _HCLUSTER, lpszgroupname: ::windows_sys::core::PCWSTR, dwdesire... | Rust |
28 */ lw $t8, 0x0028($t3) ## 00000028
/* 0FCB0 80B79650 C5000080 */ lwc1 $f0, 0x0080($t0) ## 00000080
/* 0FCB4 80B79654 87190002 */ lh $t9, 0x0002($t8) ## 00000002
/* 0FCB8 80B79658 44993000 */ mtc1 $t9, $f6 ## $f6 = 0.00
/* 0FCBC 80B7965C 00000000 */ ... | Assembly |
eprecated!
* Do NOT use for new development
*/
#define SPIFI_REG_FAMILY_Spansion_3Byte_Status spifi_REG_FAMILY_CommonCommandSet
/* SPIFI_REG_FAMILY_Macronix_2Byte_Status Deprecated!
* Do NOT use for new development
*/
#define SPIFI_REG_FAMILY_Macronix_2Byte_Status spifi_REG_FAMILY_CommonCommandSet
/* SPIFI_REG_FA... | C |
) => Promise<Signed>;
/**
* @description Verify signed bytes
* @param {String} bytes The signed bytes
* @param {String} sig The signature of the signed bytes
* @param {String} pk The public key
* @returns {Boolean} Whether the signed bytes are valid
*/
export declare const verify: (bytes: string, sig: string, pk:... | Typescript |
9.156 9.156 11.9 22.91 6.943 34.88S300.9 320 287.1 320H32.01c-12.94 0-24.62-7.781-29.58-19.75S.2333 274.5 9.39 265.4z"],
"carrot": [512, 512, [129365], "f787", "M298.2 156.6C245.5 130.9 183.7 146.1 147.1 189.4l55.27 55.31c6.25 6.25 6.25 16.33 0 22.58c-3.127 3-7.266 4.605-11.39 4.605s-8.068-1.605-11.19-4.605L130.3 2... | JavaScript |
獻為何?|
|电影推荐|你能介绍一些最近备受好评的电影吗?|
|人物分析|你认为拜登总统和特朗普总统有哪些不同之处?|
|文章润色|请帮我检查一下这篇关于人工智能的论文,是否存在语法错误或逻辑问题?|
|新闻分类|根据最近国际新闻的报道,你认为目前全球疫情形势如何?|
|产品推广|我想在社交媒体上宣传我的新产品,你能帮我写几条吸引人的宣传语吗?|
|专业知识|请问什么是深度学习,与机器学习有何不同?|
|意见征集|对于购买数码相机,你更倾向于什么样的品牌和型号?|
|音乐推荐|我喜欢轻快的流行歌曲,可以推荐一些近期比较受欢迎的歌曲吗?|
|文学赏析|你觉得《红楼梦》里的贾宝玉和林黛玉是怎样的一个关系?|
|技术实现|我想开发一个自动... | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.