content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
= ByteMatrix(2, 1);
matrix.set(0, 0, 0);
matrix.set(0, 0, 1);
expect(0, MaskUtil.applyMaskPenaltyRule4(matrix));
// Dark cell ratio = 66.67%
matrix = ByteMatrix(6, 1);
matrix.set(0, 0, 0);
matrix.set(1, 0, 1);
matrix.set(2, 0, 1);
matrix.set(3, 0, 1);
matrix.set(4, 0, 1);
ma... | Dart |
zsahara.minikotlin.lan.KValue
import org.bezsahara.minikotlin.lan.StackInfo
import org.bezsahara.minikotlin.lan.compiler.*
import kotlin.reflect.KFunction
//private var ido = 0
class FunCall(
val kFunction: KFunction<*>,
val args: Array<KRef<*>>,
val asNative: Boolean
) : KValue.ValueBlockReturns(args) {
... | Kotlin |
results.getObject("zonedDateTime");
assertThat(theDateTime).isInstanceOf(ZonedDateTime.class);
theDateTime = ((Iterable<Object>) results.getObject("zonedDateTimeList")).iterator().next();
assertThat(theDateTime).isInstanceOf(ZonedDateTime.class);
theDateTime = ((Map<String, Object>) results.getObje... | Java |
of (-dotRadius /2) from the normal dot size.
Animation get _inflate {
return Tween(
begin: 0.0,
end: -dotRadius! / 2,
).animate(
CurvedAnimation(
curve: Interval(0.5, 1.0),
parent: animationController!,
),
);
}
}
library indicators;
import 'package:flutter/mater... | Dart |
Test;
public class MutableBigDecimalTest
{
@Test
public void test_min()
{
// when equals, we expect the first one too
test_min(1, "1", "1");
test_min(1, "1.0", "1.0000000");
test_min(1, "1.0", "1.00000000000000001");
test_min(1, "1", "2");
test_min(1, "1", "3");
test_min(2, "1", "0");
test_min... | Java |
to_unzip.files);
Self { files }
}
pub fn is_empty(&self) -> bool {
self.files.is_empty()
}
pub async fn unzip(self) -> Result<()> {
let multibar = MultiProgress::new();
let all_zips_pb = multibar.add(ProgressBar::new(self.files.len() as u64));
all_zips_pb.set_s... | Rust |
/* origin: FreeBSD /usr/src/lib/msun/src/s_log1pf.c */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is free... | C |
// Take a look at the license at the top of the repository in the LICENSE file.
#pragma once
#include <sys/types.h>
#include <stdbool.h>
typedef void* CSystem;
typedef const void* CProcess;
typedef const char* RString;
CSystem *sysinfo_init();
void sysinfo_destroy(CSystem system);
void sysinfo_ref... | C |
` statements end up in this log
/// with some prefix.
Stream<String> get logcat;
/// Clears the device logs.
///
/// This is important because benchmarks tests rely on the logs produced by
/// the flutter run command.
///
/// On Android, those logs may contain logs from previous test.
Future<void> cl... | Dart |
D, 0x9D9D9D9D, 0x9D9D9D9D, 0x9D9D9D9D}, 0x9D9D9D9D9D9D9D9DL, 0x64ebdcb89cbd3c33L),
new TestVector(new int[]{0x9E9E9E9E, 0x9E9E9E9E, 0x9E9E9E9E, 0x9E9E9E9E}, 0x9E9E9E9E9E9E9E9EL, 0x9446a63870e4bd8aL),
new TestVector(new int[]{0x9F9F9F9F, 0x9F9F9F9F, 0x9F9F9F9F, 0x9F9F9F9F}, 0x9F9F9F9F9F9F9F9FL, 0xa92ec0b09f25f32dL... | Java |
/*
Authors: Deepak Kumaraswamy, Kanav Gupta
Copyright:
Copyright (c) 2022 Microsoft Research
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ri... | C |
}
})
b.Run(fmt.Sprintf("New_Size%d_Dup%.0f%%", size, rate*100), func(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
testData := make([]uint64, len(data))
copy(testData, data)
_ = RemoveRepeatedElementOfUint64(testData)
}
})
}
}
}
// 基准测试:原地去重
func BenchmarkInPlac... | Go |
'table' then
return tbl.type
end
end
--- Return the remote mtime associated with the buffer, if it has one.
--- @return integer|nil
function M:remote_mtime()
local tbl = self:try_get_var('distant')
if type(tbl) == 'table' then
return tbl.mtime
end
end
--- Reads lines from buffer as a s... | Lua |
半监督学习|半监督学习相比于有监督学习和无监督学习有哪些优势和不足之处?|
|计算机网络|请问TCP/IP协议族的层次结构是怎样的?|
|自动驾驶|自动驾驶技术目前存在哪些亟待解决的技术难题?|
|知识图谱|请问知识图谱是怎样一种数据结构,有哪些应用场景?|
|健康检查|请描述一个全面的身体检查需要测试哪些项目?|
|电影推荐|如果用户喜欢《黑客帝国》、《银翼杀手》和《星际穿越》,请给出三部类似的电影推荐。|
|文本情感分析|请对以下评论进行情感分析:“这个餐厅的服务很糟糕,但食物很美味。”|
|新闻编辑|请将以下新闻标题编辑成更加吸引人的版本:“一名男子在公园里捡到了一只迷失的小猫。”|
|图片分类|请描述如何区分图片中的狗和狼?... | Markdown |
k.chat.Component
object PKWSurvivorHandlers {
fun handle(m: Component) {
val leapFinished = Regex("^\\[.] Leap (\\d) complete in: .+").find(m.string)
if (leapFinished != null) {
val group = leapFinished.groups[1] ?: return
val leap = group.value.toIntOrNull() ?: return
... | Kotlin |
: f64,
b: f64,
}
dyon_obj! {Args {a, b}}
#[derive(Debug)]
struct RustArgs {
a: f64,
b: f64,
}
dyon_fn! {fn a_of(obj: RustObject) -> f64 {
let obj_guard = obj.lock().unwrap();
obj_guard.downcast_ref::<RustArgs>().unwrap().a
}}
dyon_fn! {fn b_of(obj: RustObject) -> f64 {
let obj_guard = obj.lo... | Rust |
# demo_client.py
"""
Demo client to test the multi-agent system
Shows how Agent2 calls Agent1 to create reports
"""
import requests
import json
import time
AGENT1_URL = "http://localhost:8001"
AGENT2_URL = "http://localhost:8002"
def test_agent1_direct():
"""Test Agent1 directly"""
print("=== Testing Agent1 ... | Python |
6552], --Pummel
[2139] = LIB_OPEN_RAID_COOLDOWNS_INFO[2139], --Counterspell
[15487] = LIB_OPEN_RAID_COOLDOWNS_INFO[15487], --Silence (shadow) Last Word Talent to reduce cooldown in 15 seconds
[1766] = LIB_OPEN_RAID_COOLDOWNS_INFO[1766], --Kick
[96231] = LIB_OPEN_RAID_COOLDOWNS_INFO[96231], --Rebuke (pro... | Lua |
(
Icons.keyboard_arrow_right,
color: Colors.white,
size: 30.0,
),
switchValue: securityModel.requiresPin,
group: securityModel.requiresPin ? widget.autoSizeGroup : null,
onTap: securityModel.requiresPin ? null : () => _o... | Dart |
}
/**
* 获取已有单元格或创建新单元格
*
* @param row Excel表的行
* @param cellIndex 列号
* @return {@link Row}
*/
public static Cell getOrCreateCell(final Row row, final int cellIndex) {
if (null == row) {
return null;
}
Cell cell = row.getCell(cellIndex... | Java |
2G\007project\022\037\n"
+ "\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\032\n\n"
+ "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n"
+ "\013_request_id\"\275\001\n"
+ "%DeleteRegionHealthCheckServiceRequest\022%\n"
+ "\024health_che... | Java |
main-content__container {
padding-block-start: var(--sp3);
@media (--md) {
padding-block-start: var(--sp5);
}
}
/*
* Contextual link wrappers load without the ".contextual" CSS class, which
* causes layout shifts. We fix this by setting this to position: absolute;
*/
[data-contextual-id]:not(.contextual)... | CSS |
ode() {
final preference = getThemeModePreference();
if (preference == ThemeMode.system) {
if (WidgetsBinding.instance.platformDispatcher.platformBrightness ==
Brightness.light) {
return ThemeMode.light;
} else {
return ThemeMode.dark;
}
} else {
return pref... | Dart |
# 7 - Algoritmo de Conversão de Tempo:
# Desenvolva um algoritmo que converta uma quantidade de
# segundos fornecida pelo usuário em horas, minutos e segundos.
# h = 3.600 m = 60 s = 1
h = 3 | Python |
rocket_pos = self.rocket_attach:GetPos()
rocket:SetPos(rocket_pos)
rocket:SetScale(400)
rocket.move_dir = axis_z
rocket.shooter = self
local x, y = gamemap.terrain:GetMapSize()
local target
if IsValid(FireworksLauncher_targetobj) then
target = FireworksLauncher_targetobj
else
target = InvisibleObject:new()
... | Lua |
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This software was developed by the Computer Systems Engineering group
* at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
* contributed to Berkeley.
*
* Redistribution and use in source and bi... | C |
# -*- coding: utf-8 -*- #
# Copyright 2022 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | Python |
t(x+w2, y+h-10, c.Name, fmt.Sprintf("font-size:%dpx;fill:%s", fs, bgcolor))
canvas.Gend()
case "cloud":
r := w / 3
xc := (x + w/2) + r/4
yc := y + h/2
cloud(xc, yc, r, boxcolor)
canvas.Text(xc-(r/4), yc+r/2, c.Name, fmt.Sprintf("font-size:%dpx;fill:white", fs))
case "db":
cylinder(x, y+(h/4), w, h-(h/... | Go |
,
)
)
await user_super_obj.by_user_roles.add(super_role_obj)
admin_role_obj: Role | None = await role_controller.get_by_code("R_ADMIN")
user_admin_obj = await user_controller.create(
UserCreate(
userName="Admin", # type: ignore
us... | Python |
),
Tool(
name="search_memory",
description="記憶を検索する",
inputSchema={...}
),
# 他のツール...
]
for tool in tools:
self.server.register_tool(tool)
def _register_resources(self):
"""リ... | Markdown |
val newImpulse = if (a > 0.0f) a else 0.0f
lambda = newImpulse - vcp.normalImpulse
vcp.normalImpulse = newImpulse
// Apply contact impulse
val Px = normal.x * lambda
val Py = normal.y * lambda
// vA -= invMassA * P;
vA.x -= Px * mA
vA.y -= Py * ... | Kotlin |
he scope of local") then
ok = true
logn(path, ": ", err)
end
if ok then
vfs.Write(path, lua)
vfs.Write("data/last_glua2lua_error.lua", lua)
else
local line, err = err:match(".+\"]:(%d+): (.+)")
logn(path)
line = tonumber(line)
local lines = lua:split("\n")... | Lua |
state.processing = null;
state.releasetime = Long.MIN_VALUE;
state.lnendJudge = Integer.MIN_VALUE;
sckey[sc] = 0;
} else {
// 押し直し... | Java |
#include <gbdk/platform.h>
#include <gbdk/console.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include "mbc3_rtc.h"
// MBC3 RTC example
//
// Reads and displays the elapsed time since last
// reset from the Real Time Clock (RTC) on the MBC3 cart.
//
// It also allows resetting all the date/time c... | C |
:
```bash
git clone https://github.com/DataScienceUIBK/rankify.git
cd rankify
pip install -e .
# 安装所有依赖项(推荐)
pip install -e ".[all]"
# 仅安装检索相关依赖
pip install -e ".[retriever]"
# 仅安装重排序相关依赖
pip install -e ".[reranking]"
```
#### 使用 ColBERT 检索器
如果你想使用 ColBERT 检索器,请按照以下步骤进行额外设置:
```bash
# 安装 GCC 和必要的库
conda install -c c... | Markdown |
(e > 0) * 2 - 1)
self._freq = freq
q_unnormed = np.einsum("AtQ, A -> AtQ", (proj_inv @ q).reshape(natm, 3, (proj_inv @ q).shape[-1]), 1 / np.sqrt(mol_weight))
q_unnormed = q_unnormed.reshape(-1, q_unnormed.shape[-1])
q_normed = q_unnormed / np.linalg.norm(q_unnormed, axis=0)
self... | Python |
mes ? '' : 'happyHours2s1d', $pb.PbFieldType.OF, protoName: 'happy_hours_2s_1d')
..a<$core.double>(18, _omitFieldNames ? '' : 'secondsSinceLast15sOutage', $pb.PbFieldType.OF, protoName: 'seconds_since_last_15s_outage')
..a<$core.double>(19, _omitFieldNames ? '' : 'secondsSinceLast60sOutage', $pb.PbFieldType.OF,... | Dart |
is impossible, and we return zero as resulting
* year to indicate failure.
*
* Then we remap the century to the range starting with year
* 1900.
*/
uint32_t c;
/* check basic constraints */
if ((y >= 100u) || (--m >= 12u) || (--d >= 31u))
return 0;
if ((m += 10u) >= 12u) /* shift base to prev. March... | C |
he whole model is trained with grad clip of 0.1.
Please use the learning rate 0.0005 with causion. It is tested on batch 198.
## Evaluation
To evaluate Stable-Pix2Seq R50 on COCO val5k with multiple GPU run:
```
python -m torch.distributed.launch --master_port=3142 --nproc_per_node 8 --use_env main.py --coco_path .... | Markdown |
"}}"
type: weekly
shiftLength: 1
timeZone: "UTC"
start: "2006-01-02T15:04:05Z"
userIDs: ["{{userID "joe"}}"]
}
rules: [
{
start: "00:00"
end: "23:59"
weekdayFilter: [true, true, true, true, true, tr... | Go |
)</p>板载 PCB 天线 |
| 供电 | Type-C电源接口, 12V 3A |
| 工作环境 | 工作温度:0°C – 50°C |
| 尺寸 | 100mm x 75mm x 25mm |
| 操作系统 | <p>Android 13</p><p>Qualco... | Markdown |
private class WrapRecyclerAdapter : Adapter<ViewHolder?>() {
companion object {
/** 头部条目类型 */
private const val HEADER_VIEW_TYPE: Int = Int.MIN_VALUE shr 1
/** 底部条目类型 */
private const val FOOTER_VIEW_TYPE: Int = Int.MAX_VALUE shr 1
}
/** 原有... | Kotlin |
f4.rgb;
} else {
float t = 1.0f - a;
f3.r = gBlindColor.r * a + f4.r * t;
f3.g = gBlindColor.g * a + f4.g * t;
f3.b = gBlindColor.b * a + f4.b * t;
f3 = FClamp01Float3(f3);
}
}
}
*v_out = rsPackColorTo8888(f3);
}use crate::fs::Dev;
u... | Rust |
)"}$', multiLine: true),
r'"_fetchedAt": "$TIME"}',
)
.replaceAll(
RegExp(r'"generated": "(.*)",$', multiLine: true),
r'"generated": "$TIME",',
)
.replaceAll(
RegExp(
r'( |^)(/|[A-Z]:)(.*)/tool/test-bin/pub_command_runner.dart',
multiLine: true... | Dart |
import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.components import i2c, sensor
from esphome.const import (
CONF_ID,
CONF_TEMPERATURE,
DEVICE_CLASS_TEMPERATURE,
ICON_BRIEFCASE_DOWNLOAD,
STATE_CLASS_MEASUREMENT,
UNIT_METER_PER_SECOND_SQUARED,
ICON_SCREEN_ROTATIO... | Python |
18 => self.luminous_area_height_c0.to_string(),
19 => self.luminous_area_height_c90.to_string(),
20 => self.luminous_area_height_c180.to_string(),
21 => self.luminous_area_height_c270.to_string(),
... | Rust |
extends DecryptedMessageBase {
/// Decrypted Message constructor.
const DecryptedMessage008({
required this.randomId,
required this.randomBytes,
required this.message,
required this.media,
}) : super._();
/// Deserialize.
factory DecryptedMessage008.deserialize(BinaryReader reader) {
// ... | Dart |
no
// promotion here.
final fromAsTyped = unsafeCast<_TypedListBase>(from);
if (fromAsTyped.buffer == this.buffer) {
final count = end - start;
if ((fromAsTyped.length - skipCount) < count) {
throw IterableElementError.tooFew();
}
if (count == 0) return;
... | Dart |
Hook() func(ctx context.Context, key *meta.Key, m *cloud.MockBetaInstances) (bool, *beta.Instance, error) {
return func(ctx context.Context, key *meta.Key, m *cloud.MockBetaInstances) (bool, *beta.Instance, error) {
m.Lock.Lock()
defer m.Lock.Unlock()
if _, found := m.Objects[*key]; !found {
m.Objects[*key] ... | Go |
ipBehavior: Clip.antiAlias,
child: Container(
width: double.infinity,
child: Column(
children: <Widget>[
Container(
height: 72,
decoration: BoxDecoration(
gradient: LinearGradient(colors: [
Color(0xfffa5956),
... | Dart |
, state: &mut H)
where
H: std::hash::Hasher,
{
self.span.start().hash(state);
self.span.end().hash(state);
self.value.hash(state);
}
}
impl<T, Pos> Spanned<T, Pos> {
pub fn map<U, F>(self, mut f: F) -> Spanned<U, Pos>
where
F: FnMut(T) -> U,
{
Spa... | Rust |
}, -- end of ["AddPropAircraft"]
["type"] = "F-15C",
["unitId"] = 8,
["psi"] = 0.57883789069348,
["groupId"] = 4,
["groupName"] = "F-15C Client #1",
["skill"] = "Client",
["countryId"] = 2,
["x"] = -288142.85714286,
["callsign"] =
{
[1] = 2,
[2] = 1,
[3] = 1,
... | Lua |
Tabmix.closedObjectsUtils.populateClosedTabsMenu(popup.parentNode);
}
}
} else if (popup?.parentNode.tagName === "panelview") {
popup.hidePopup();
} else if (!this.count || item.getAttribute("closemenu") == "none") {
closeMenus(popup);
}
},
addBookmarks: function ct_addBookm... | JavaScript |
益田假日里](https://ditu.amap.com/place/B0FFKYACVH)
**大学城站**
大学城站D出口即达。
### [九方](https://ditu.amap.com/place/B0FFKAS8AB)
**红山站**
红山站A1出口,步行650米即达,步行约8分钟。
大型mall;价位适中,离学较近;商场种类齐全;商场内部有不错的电影院。
### [西丽天虹](https://ditu.amap.com/place/B02F37SNGW)

{
field_width = -field_width;
flags |= LEFT;
}
}
// Get the precision
precision = -1;
if (*fmt == '.')
{
++fmt;
if (is_digit(*fmt))
precision = skip_atoi(&fmt);
... | C |
: EcdsaKeyPair) -> Self {
KeyPair::ECDSA(ec_key)
}
/// Creates an ED25519 keypair.
#[cfg(feature = "ring")]
pub fn from_ed25519(ed_key: Ed25519KeyPair) -> Self {
KeyPair::ED25519(ed_key)
}
}
impl<K: HasPublic> KeyPair<K> {
/// Converts this keypair to the DNS binary form of the... | Rust |
// Serialize it to a JSON string.
let j = serde_json::to_string(&self)?;
// Print, write to a file, or send to an HTTP server.
Ok(j)
}
fn box_to_raw(&self) -> &dyn Any {
self
}
// fn to_concrete<T>(&self) -> T {
// let def: Box<dyn CommandConversion> = ... | Rust |
enabled, the slash character
is be skipped.
The query part gets space-to-plus conversion before the URL conversion.
This URL encoding is charset unaware and converts the input in a byte-by-byte
manner.
## CURLU_DEFAULT_SCHEME
If set, allows the URL to be set without a scheme and then sets that to the
default scheme... | Markdown |
NT_THEME_UNPLEASANT_HEALTH_CONTENT" : Unpleasant health content.
/// - "CONTENT_THEME_UNPLEASANT_NEWS" : Unpleasant news.
core.String? contentTheme;
/// An enum for the DV360 content theme classified to be EXCLUDED.
///
/// Required.
/// Possible string values are:
/// - "CONTENT_THEME_UNSPECIFIED" : Con... | Dart |
c_void,
func: *const c_void,
arg0: *const RUBase,
) {
let f: &&(Fn(&FocusEvent) + 'static) = transmute(func);
let obj_arg0_0 = FocusEvent::new_from_temporary(*(arg0 as *const RUFocusEvent));
f(&obj_arg0_0);
}
pub(crate) unsafe extern "C" fn line_edit_focus_out_trampoline_ud<T>(
self_c: *const ... | Rust |
(code);
interface.question('Apply the code displayed above? (y|N) ', answer => {
interface.close();
if (answer.toLowerCase() === 'y') {
runHelma(code);
} else {
console.info('Patch aborted by user.');
}
});
}
function getInterface() {
return readline.createInterface({
input: pro... | JavaScript |
after;
right = this.right - before;
}
// The fragment's left and right edges are relative to the line. In order
// to make them relative to the paragraph, we need to add the left edge of
// the line.
return ui.TextBox.fromLTRBD(
line.left + left,
top,
line.left + right,
... | Dart |
Piece for ZonedDateTime<'a> {
fn hour(&self) -> i8 { self.adjusted.hour() }
fn minute(&self) -> i8 { self.adjusted.minute() }
fn second(&self) -> i8 { self.adjusted.second() }
fn millisecond(&self) -> i16 { self.adjusted.millisecond() }
}
/// The “type” of time that a transition is specified in.
#[der... | Rust |
loat', $pb.PbFieldType.OF)
..a<$core.double>(
12, _omitFieldNames ? '' : 'optionalDouble', $pb.PbFieldType.OD)
..aOB(13, _omitFieldNames ? '' : 'optionalBool')
..aOS(14, _omitFieldNames ? '' : 'optionalString')
..a<$core.List<$core.int>>(
15, _omitFieldNames ? '' : 'optionalBytes', $pb.P... | Dart |
lugins:bouncycastle-api",
Version: "2.20",
Kind: "binary",
PackageDB: "maven:usr/share/jenkins/jenkins.war:WEB-INF/detached-plugins/bouncycastle-api.hpi:WEB-INF/lib/bouncycastle-api.jar",
RepositoryHint: "sha1:1b22775d6f258b5be61d855d5cedb9cf935e2d1b",
Filepath: "usr/share/jen... | Go |
부 진흙바위거북의 혀는 갈래가 져 있다고 들었어요.","그들 말로는 그 혓바닥이 독특한 맛이 난다고 하던데, 제 요리에 그 맛을 내고 싶어요."}, {"테라모어에 있는 모건 스턴에게 진흙바위거북 혓바닥 8개를 가져가야 합니다"}},
[1205] = {"붉은눈늪지악어", {"이제 먼지진흙 습지대에 살고 있는 고대 악어인 붉은눈늪지악어를 처치할 때가 되었소.","녀석이 늪 속에서 거대한 몸을 움직일 때마다 녀석의 늙은 뼈들이 삐걱거리며 갈리고 있소. 녀석은 젊었을 때처럼 여전히 힘이 넘치고 빠르지만, 점점 늙어가는 몸이 그 안에 있는 위대한 영혼을 괴롭히고 있소이다. 영... | Lua |
var27 = var17 + var25.field40427;
var22[var24] = var23 >= var26 && var23 <= var27 ? var27 + 1 - var23 : 0;
}
Pair var32 = method22660(var22);
Class8936 var33 = (Class8936)var32.getFirst();
int var34 = 1 + var33.field40427 - var33.field40426;
int var35 = (Intege... | Java |
�ے۔ کسی بھی تنقید کو برداشت نہ کر پانا اور ثبوت کے باوجود خامیوں سے جان بوجھ کر لاعلمی چند مثالیں ہیں۔ کچھ جگہوں پر، چیئر لیڈنگ اتنی واضح ہو جاتی ہے کہ کوئی بھی منفیت تادیبی کارروائی کی بنیاد بن جاتی ہے۔</p>\n\n<p>ایک کریپٹو کرنسی کے مسافر کے طور پر اچھے پروجیکٹس کو سپورٹ کرنے کی کوشش کرتے ہیں اور <a target=\"_blank\" ... | Dart |
static inline void
freestruct_ns(ARGS_FREESTRUCT) {
dns_rdata_ns_t *ns = source;
REQUIRE(source != NULL);
if (ns->mctx == NULL)
return;
dns_name_free(&ns->name, ns->mctx);
ns->mctx = NULL;
}
static inline isc_result_t
additionaldata_ns(ARGS_ADDLDATA) {
dns_name_t name;
dns_offsets_t offsets;
isc_region_t... | C |
-> PyResult<Vec<T>>
where
T: FromPyObject<'s>,
{
let seq = <PySequence as PyTryFrom>::try_from(obj)?;
let mut v = Vec::with_capacity(seq.len().unwrap_or(0) as usize);
for item in seq.iter()? {
v.push(item?.extract::<T>()?);
}
Ok(v)
}
impl<'v> PyTryFrom<'v> for PySequence {
fn try_fr... | Rust |
from textwrap import dedent
import pytest
from pandas import (
DataFrame,
Series,
)
pytest.importorskip("jinja2")
from pandas.io.formats.style import Styler
@pytest.fixture
def df():
return DataFrame(
{"A": [0, 1], "B": [-0.61, -1.22], "C": Series(["ab", "cd"], dtype=object)}
)
@pytest.fi... | Python |
ed this.velocity,
required super.position,
required double radius,
}) : super(
radius: radius,
anchor: Anchor.center,
paint: Paint()
..color = const Color(0xff1e6091)
..style = PaintingStyle.fill,
children: [CircleHitbox()],
);
final Vector2 ... | Dart |
rr = w.Write(p)
if err != nil {
return
}
if n != len(p) {
err = ErrShortWrite
return
}
}
return len(p), nil
}
// MultiWriter creates a writer that duplicates its writes to all the
// provided writers, similar to the Unix tee(1) command.
func MultiWriter(writers ...Writer) Writer {
return &multiWrit... | Go |
#18870
import sys
input = sys.stdin.readline
#입력
n = int(input())
arr = list(map(int,input().split()))
#데이터 가공
tmp = arr[:]
tmp = list(set(tmp))#중복값 제거
tmp.sort()#정렬 -> 인덱스 = 압축된 좌표
#IDEA
dict = {}
for index, num in enumerate(tmp):#인덱스 = 압축된 좌표 이므로 enumerate 사용
dict[num] = index#key = 숫자, value = 압축된 좌표
#출력
for... | Python |
hable,
Operator::End*/
])
}
_ => {}
}
}
state.push_operator(operator);
Ok(())
}
}<filename>tests/project-with-version/src/lib.rs<gh_stars>100-1000
//! A test project with a version provided.
// https://l... | Rust |
(
&mut mlme_stream,
1,
fidl_mlme::AssociateResultCodes::Success,
true,
);
// Drain the RSNA negotiation timeout message.
assert_variant!(time_stream.try_next(), Ok(Some(_)));
for _i in 0..4 {
client.verify_eapol_req(&mut mlme_... | Rust |
/**
* Extract an unsigned nybble from the [receiver][AvailObject]. Return
* it as a Java [Byte].
*
* @return
* A [Byte] in the range `[0..15]`.
*/
val A_Number.extractNybble: Byte
get() = dispatch { o_ExtractNybble(it) }
/**
* Extract a 64-bit signed Java [Long] from the [receiver][Av... | Kotlin |
g "github.com/sirupsen/logrus"
"github.com/vmware-tanzu/graph-framework-for-microservices/nexus/nexus"
"golang.org/x/text/cases"
"golang.org/x/text/language"
"golang.org/x/tools/imports"
"github.com/vmware-tanzu/graph-framework-for-microservices/compiler/pkg/parser"
"github.com/vmware-tanzu/graph-framework-for-m... | Go |
#pragma once
#include "v8stdint.h"
#include "timer.h"
#ifdef _WIN32
#include <conio.h>
#include <windows.h>
#include <io.h>
#include <process.h>
#else
#include <pthread.h>
#include <assert.h>
#endif
#if defined(__ANDROID__)
#define pthread_cancel(x) 0
#endif
#define CLASS_THREAD(c, x) Thread::ThreadCreateObjectFunct... | C |
int get level => mask.level;
/// Creates a list of `Cell` instances from a binary object code (BOC).
///
/// [src] The source BOC data.
static List<Cell> fromBoc(List<int> src) {
return BocSerialization.deserialize(src);
}
/// Creates a `Cell` instance from a byte array.
///
/// [src] The byte ... | Dart |
= fmt.Sprintf(`评论区是公众场所,而非私人场所,具体规范烦请参阅#{《社区规则》}{"%s"},良好的社区氛围需要大家一起维护!`, "http://www.bilibili.com/blackboard/blackroom.html")
// NotifyComRulesReport 举报
NotifyComRulesReport = "感谢您对bilibili社区秩序的维护,哔哩哔哩 (゜-゜)つロ 干杯~"
// NotifyComUnrelated NotifyComUnrelated
NotifyComUnrelated = "bilibili倡导发送与视频相关的评论,希望大家尊重作品,尊重UP主。良... | Go |
/*
* Copyright (c) 2016 CartoDB. All rights reserved.
* Copying and using this code is allowed only according
* to license terms, as given in https://cartodb.com/terms/
*/
#ifndef _CARTO_OSRMROUTINGPROXY_H_
#define _CARTO_OSRMROUTINGPROXY_H_
#ifdef _CARTO_ROUTING_SUPPORT
#include "core/MapPos.h"
#include "routin... | C |
be a character after the escape char
// test unicode escaping
assertQueryEquals("a\\u0062c", a, "abc");
assertQueryEquals("XY\\u005a", a, "XYZ");
assertQueryEquals("XY\\u005A", a, "XYZ");
assertQueryEquals("\"a \\\\\\u0028\\u0062\\\" c\"", a, "\"a \\(b\" c\"");
assertParseException("XY\\u005G... | Java |
e_dbh);
rv = sqlite3_bind_blob(stmt2, 3, hash,
(sqlite3_uint64)hash_len, SQLITE_STATIC);
rvchk(rv, SQLITE_OK, "Can't bind hash: %s\n", cache_dbh);
rv = sqlite3_step(stmt2);
rvchk(rv, SQLITE_DONE, "tried to insert hash: %s\n", cache_dbh);
sqlite3_finalize(stmt2);
commit_transacti... | C |
-c-red-3: rgb(129, 34, 64);
--vp-c-red-soft: hsla(347, 87%, 24%, 0.14);
/* Icons */
--vp-icon-copy: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20fill%3D%22none%22%20stroke%3D%22%23a5adce%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222... | CSS |
from datetime import datetime, timezone
from ingestion.schema import Envelope, OpenAlexWork
import ingestion.producer as prod
def test_strip_run_alias_removes_second_token():
args = ["-m", "run", "--batch-size", "10"]
prod._strip_run_alias(args)
assert args == ["-m", "--batch-size", "10"]
def make_batch... | Python |
* permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
* the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMP... | Kotlin |
return;
}
// Shift click, ctrl click and simple click handling to make
// row selection a lot like a file system in desktop OSs
if ( select.type == 'os' ) {
if ( e.ctrlKey || e.metaKey ) {
// Add or remove from the selection
if ( that.fnIsSelected( row ) ) {
that._fnRowDesel... | JavaScript |
= 0; i <= N; i += 1) {
results.push(this.lerp(c, step * i).round());
}
return results;
}
/**
* Clones this cell.
* @returns {Cell}
*/
clone () {
return new Cell(this.x, this.y, this.z);
}
/**
* Transforms this cell to a coord.
* @param {... | JavaScript |
= {"俾", "僻", "仵", "𫢸", "华", "什", "伞", "住", "佺", "全", "倬"},
["jo"] = {"俟", "储", "贷", "偾", "豮", "货", "侯", "候", "借", "僦", "侃", "赁", "贪", "优", "僭", "伉", "凭", "僧", "债", "侦", "倡", "仉"},
["jp"] = {"俄", "侧", "促", "籴", "伐", "例", "俐", "倪", "僳", "俞", "份", "代", "黛", "倒", "刽", "价", "介", "偷", "侥", "侴", "剑", "侨", "侁", "傥", "伥", ... | Lua |
"1F6D5",k:[36,41],o:12},back:{a:"Back with Leftwards Arrow Above",b:"1F519",j:["arrow","words","return"],k:[27,53],o:2},gem:{a:"Gem Stone",b:"1F48E",j:["blue","ruby","diamond","jewelry"],k:[25,24],o:2},pensive:{a:"Pensive Face",b:"1F614",j:["face","sad","depressed","upset"],k:[30,55],o:2},"flag-bw":{a:"Botswana Flag",b... | JavaScript |
ret := _m.Called(hash)
if len(ret) == 0 {
panic("no return value specified for Get")
}
var r0 *types.TxResult
var r1 error
if rf, ok := ret.Get(0).(func([]byte) (*types.TxResult, error)); ok {
return rf(hash)
}
if rf, ok := ret.Get(0).(func([]byte) *types.TxResult); ok {
r0 = rf(hash)
} else {
if ret... | Go |
�误:", err)
return
}
idMap := map[string]int32{}
for _, sdk := range childSdk {
idMap[sdk.Jenkins] = sdk.ID
}
fmt.Println("map", idMap)
for _, job := range jenkinsJob {
job.ChildSdkID = idMap[job.JenkinsName]
err := db2.MySQLClientAdmin.Table("jenkins_jobs").Where("id = ?", job.ID).
UpdateColumn("chil... | Go |
rr != nil {
t.Fatal(err)
}
if reverted := hashRange(t, batch, startKey, endKey); !bytes.Equal(reverted, tc.expectedSum) {
t.Error("expected reverted keys to match checksum")
}
}
})
}
}
// TestCmdRevertRangeMVCCRangeTombstones tests that RevertRange reverts MVCC
// range tombstones. This is ... | Go |
42.1513f, 26.6355f)
curveTo(42.1513f, 26.6026f, 42.1409f, 26.5751f, 42.1203f, 26.5536f)
curveTo(42.0985f, 26.5329f, 42.0502f, 26.5139f, 41.9749f, 26.4963f)
curveTo(41.6246f, 26.4188f, 41.4025f, 26.3483f, 41.3089f, 26.2846f)
curveTo(41.179f, 26.1963f, 41.1... | Kotlin |
load()?;
check_lock(&state)?;
if env.message.signer != state.oracle {
unauthorized()?;
} else {
valid_ecostate(&ecostate)?;
let ecostate_delta = ecostate - state.ecostate;
state.ecostate = ecostate;
if ecostate_delta > 0 {
state = execute_payout(state, ... | Rust |
--------------------------*/
/* 10) ESTIMATE WIDGET
/*------------------------------------------------------------------*/
.industify_fn_widget_estimate {
width: 100%;
float: left;
clear: both;
position: relative;
border-radius: 5px;
overflow: hidden;
}
.industify_fn_widget_estimate img {
margin: 0px;
o... | CSS |
Sleep mode"]
pub struct FSMCLPEN_W<'a> {
w: &'a mut W,
}
impl<'a> FSMCLPEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FSMCLPEN_A) -> &'a mut W {
self.bit(variant.into())
}
#[doc = "Selected module is disabled during Sleep mode"]
... | Rust |
( (JLabel) metawidget.getComponent( 13 ) ).getText() ) );
assertEquals( 5, ( (GridBagLayout) metawidget.getLayout() ).getConstraints( metawidget.getComponent( 13 ) ).gridx );
assertEquals( 2, ( (GridBagLayout) metawidget.getLayout() ).getConstraints( metawidget.getComponent( 13 ) ).gridy );
}
public void testMn... | Java |
dState]
*/
fun setExpandState(state: ExpandState) {
if (state != currentState) {
offsetX = state.offset()
}
}
/**
* Set the content on the left width so it's not dragged further than [contentUnderLeftWidth]'s size
*/
internal fun onLeftContentMeasured(width: I... | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.