content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
import statsmodels.api as sm
from pyspark.sql.types import *
from pyspark.sql import functions as F
__all__ = [
'StatsLogit',
'NumRange',
'mode',
'Div',
]
def StatsLogit(X, y, intercept=True):
"""
描述: statsmodels 逻辑回归
:param X:
:param y:
:param intercept:
:return:
"""
... | Python |
b2c2c2
.long 0xad8b2626, 0xcd68a5a5, 0xcb955e5e, 0x624b2929, 0x3c0c3030, 0xce945a5a, 0xab76dddd, 0x867ff9f9, 0xf1649595, 0x5dbbe6e6, 0x35f2c7c7, 0x2d092424, 0xd1c61717, 0xd66fb9b9, 0xdec51b1b, 0x94861212
.long 0x78186060, 0x30f3c3c3, 0x897cf5f5, 0x5cefb3b3, 0xd23ae8e8, 0xacdf7373, 0x794c3535, 0xa0208080, 0x9d78e5e5, 0x... | Assembly |
append(this@toMapCode.map { "%S to %S" }.joinToString())
append(")")
}
val args = this@toMapCode.flatMap { listOf(it.key, it.value) }
add(format, *args.toTypedArray())
}
}package cn.ktorfitx.multiplatform.ksp.kotlinpoet.block
import cn.ktorfitx.common.ksp.util.builders.fileSpecBuilder
import cn.ktorfitx.... | Kotlin |
hCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is StaticOnlyTwinRustAsync &&
runtimeType == other.runtimeType &&
one == other.one;
}
class SumWithTwinRustAsync {
final int x;
const SumWithTwinRustAsync({
required this.x,
});
Future<... | Dart |
52EalKqqkiUNY6nL/14hsVTzHyzgqKxJk9nmSVf+/ukWOOGjpmna9rfrhDz/6nqPtJDGxHz2szXpD6LfZs1ll/d6fTakW53ddT/x6hjHywYzvyTa99BeVtOhrHJizSzUutIaa3l3zU/ABw5cLgAAAB42l3SZ5MVVRSF4fuOBEmCiZyDiInb5+zTPYOkgWEIEpUgQUkShpyVoCA5Jy3/LlBz3/ED/WVVdVU/1XvVanW1Bp83rdbRd0Hr/ee/wbdddPEBwxjOCEbyIaMYzRjGMo6PGM8EPuYTPuUzPmcik5jMFKYyjenMYCazmM0c5jKP+... | CSS |
pred_sem_seg` 和 `seg_logits`, 分别用来存放标注信息, 预测结果和预测的未归一化前的 logits 值。
| 字段 | 类型 | 描述 |
| -------------- | ------------------------- | ------------------------------- |
| gt_sem_seg | [`PixelData`](#pixeldata) | 图像标注信息. |
| pred_instances | [`... | Markdown |
'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/utils/responsive_utils.dart';
import 'package:core/presentation/utils/theme_utils.dart';
import 'package:core/presentation/views/dialog/confirm_dialog_button.dar... | Dart |
.pl-blue {
stroke: #2196F3; }
.md-preloader .pl-light-blue {
stroke: #03A9F4; }
.md-preloader .pl-cyan {
stroke: #00BCD4; }
.md-preloader .pl-teal {
stroke: #009688; }
.md-preloader .pl-green {
stroke: #4CAF50; }
.md-preloader .pl-light-green {
stroke: #8BC34A; }
.md-preloader .pl-lime {
stroke: #C... | CSS |
} // key for delegator withdraw address
DelegatorStartingInfoPrefix = []byte{0x04} // key for delegator starting info
ValidatorHistoricalRewardsPrefix = []byte{0x05} // key for historical validators rewards / stake
ValidatorCurrentRewardsPrefix = []byte{0x06} // key for current validator rewards
... | Go |
14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z")),t.ToolFill=l("tool",a,c(r,"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 0 0 419 432l1.8 6.7... | JavaScript |
Id}.props.${f4.name}`);
};
var nameForField = (field) => {
var _a2;
if (!field)
return null;
const parsedValue = parseFieldValue(field.value, field.type);
return (_a2 = parsedValue.alias) != null ? _a2 : field.name;
};
var stringIsConst = (str) => {
const hasQuotesAtStartEndOnly = /^["'][^"']*["'](?:;)?$/... | JavaScript |
mp sgt i32 [[TMP3]], 9
// CHECK3-NEXT: br i1 [[CMP]], label [[COND_TRUE:%.*]], label [[COND_FALSE:%.*]]
// CHECK3: cond.true:
// CHECK3-NEXT: br label [[COND_END:%.*]]
// CHECK3: cond.false:
// CHECK3-NEXT: [[TMP4:%.*]] = load i32, ptr [[DOTOMP_UB]], align 4
// CHECK3-NEXT: br label [[COND_END]]... | C++ |
ath.join(coredir, "scheduler/main.cc"))
-- Create the firmware target. This target remains open on return and so
-- the caller can add more rules to it.
target(name)
set_kind("binary")
add_rules("cheriot.firmware")
add_rules("cheriot.conditionally_link_allocator")
add_deps(name .. ".scheduler", "cheriot.lo... | Lua |
struct nv17_tv_state *regs = &tv_enc->state;
struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder);
int subconnector = tv_enc->select_subconnector ?
tv_enc->select_subconnector :
tv_enc->subconnector;
switch (subconnector) {
case DRM_MODE_SUBCONNECTOR_Composite:
{
regs->ptv_204 = 0x2;
/* The... | C |
* <https://www.gnu.org/licenses/>
*
* This file is created by fankes on 2023/2/3.
*/
@file:Suppress("unused", "MemberVisibilityCanBePrivate")
package com.fankes.apperrorstracking.data.factory
import android.widget.CompoundButton
import com.fankes.apperrorstracking.data.ConfigData
import com.highcapable.yukihookap... | Kotlin |
sta hddskiptree + 2
lda sizelo
sta hdddirbuf, y
lda sizehi
sta hdddirbuf + 256, y
jsr hddwritedir
lda #0
jsr savebyte
ldx sizelo
... | Assembly |
/*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C |
tl] .md-typeset .tabbed-control{transform:rotate(180deg)}.md-typeset .tabbed-control[hidden]{opacity:0}.md-typeset .tabbed-control--next{background:linear-gradient(to left,var(--md-default-bg-color) 60%,#0000);justify-content:end;right:0}.md-typeset .tabbed-control--next .tabbed-button:after{-webkit-mask-image:var(--md... | CSS |
"Cherry:4:4:good:Oct\n",
"Kiwi:1111:1.1.11:good:Jun\n",
"Orange:222:1.1.2:good:Jan\n",
)
);
assert_eq!(r.is_ok(), true);
}
//
#[test]
fn test_uniq_color() {
let env = env_1!();
let in_w = super::IN_DAT_FRUIT.to_string() + super:... | Rust |
lauses or operators.
/// </summary>
public interface IQuerySource
{
/// <summary>
/// Gets the name of the items generated by this <see cref="IQuerySource"/>.
/// </summary>
/// <remarks>
/// Item names are inferred when a query expression is parsed, and they usually correspond to the variable... | C# |
his._instanceInfo=[],this._geometryInfo=[],this._availableInstanceIds=[],this._availableGeometryIds=[],this._nextIndexStart=0,this._nextVertexStart=0,this._geometryCount=0,this._visibilityChanged=!0,this._geometryInitialized=!1,this._maxInstanceCount=t,this._maxVertexCount=e,this._maxIndexCount=i,this._multiDrawCounts=... | JavaScript |
ault, which represents the existing scheduling behavior.
* * "static": allows pods with certain resource characteristics to be granted
* increased CPU affinity and exclusivity on the node.
* The default value is 'none' if unspecified.
* </pre>
*
* <code>string cpu_manager_policy = 1;</code... | Java |
been added.
*/
@OptIn(ExperimentalContracts::class)
@GdxAiDsl
inline fun <E> Task<E>.untilFail(
task: Task<E>? = null,
init: (@GdxAiDsl UntilFail<E>).() -> Unit = {},
): Int {
contract { callsInPlace(init, InvocationKind.EXACTLY_ONCE) }
val untilFail = UntilFail(task)
untilFail.init()
return addChild(unti... | Kotlin |
까지의 이동이나 변화 과정을 시간적/공간적/개념적으로 명확히 전달하며, 그 과정에서 발생하는 감정적, 심리적 변화까지 고려하여 번역합니다.
* **아르헨티나 리우플라텐세 스페인어 원문 예시**: "El viaje a través de la Pampa fue un camino de autodescubrimiento."
* **한국어 번역 예시**: "팜파스를 가로지르는 여행은 자기 발견의 여정이었다." ('여정'을 단순한 물리적 경로가 아닌 '내면의 변화 과정'으로 강조)
* **UP-DOWN (위-아래)**: ... | Markdown |
roll, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect);
}
}
if (is_password && !is_displaying_hint)
PopPasswordFont();
if (is_multiline)
{
// For focus requests to work on our multiline we need to ensure our child ItemAdd() call specifies the ImGuiItem... | C++ |
///////////////////////////
//
// EditConversationDialogClass
//
/////////////////////////////////////////////////////////////////////////////
EditConversationDialogClass::EditConversationDialogClass(CWnd* pParent /*=NULL*/)
: m_Conversation (NULL),
CDialog(EditConversationDialogClass::IDD, pParent)
{
//{{AFX_DATA_... | C++ |
id.to_string()),
]);
handle_as_json_with_status::<RemovePlaceResponse>(req).await?;
Ok(())
}
pub async fn create_experience(
&self,
group_id: Option<AssetId>,
) -> RobloxApiResult<CreateExperienceResponse> {
let req = self
.client
... | Rust |
static void ehca_dma_sync_single_for_cpu(struct ib_device *dev, u64 addr,
size_t size,
enum dma_data_direction dir)
{
dma_sync_single_for_cpu(dev->dma_device, addr, size, dir);
}
static void ehca_dma_sync_single_for_device(struct ib_device *dev, u64 addr,
size_t size,
enum dma_data_direc... | C |
if(!fixedFlag$sample69)
memMean[var63] = ((Math.sqrt(1.0) * DistributionSampling.sampleGaussian(RNG$1)) + 94.0);
}
}
);
// Outer loop for dispatching multiple batches of iterations to execute in parallel
parallelFor(RNG$, 0, noStates, 1,
(int forStart$var74, int forEnd$var74, int threadID$v... | Java |
ifName := "eth0"
nwId := "nwId"
nm := &networkManager{
ExternalInterfaces: map[string]*externalInterface{},
}
nm.ExternalInterfaces[ifName] = &externalInterface{
Networks: map[string]*network{},
}
nm.ExternalInterfaces[ifName].Networks[nwId] = &network{
Endpoints: map[string]*end... | Go |
caminho/para/melhor.pt source="https://youtu.be/LNwODJXcvt4" # Modelo treinado personalizado
# Rastrear usando o rastreador ByteTrack
yolo track model=caminho/para/melhor.pt tracker="bytetrack.yaml"
```
Como pode ser visto no uso acima, o rastreamento está disponível para todos os modelos Det... | Markdown |
31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"],"mars-stroke-v":[288,512,[],"f22a","M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2... | JavaScript |
String {
todo!()
}
}
fn match_kind<'tree>(
kind: &'static str,
candidate: &'tree Node,
) -> Option<(TNode<'tree>, Env<'tree>)> {
let mut env = HashMap::new();
let candidate = candidate.inner;
let node = match_single_kind(kind, candidate, &mut env)?;
Some((node, env))
}
fn match_no... | Rust |
ether the use can be converted to remove a comparison against zero.
static X86::CondCode isUseDefConvertible(const MachineInstr &MI) {
switch (MI.getOpcode()) {
default: return X86::COND_INVALID;
case X86::NEG8r:
case X86::NEG16r:
case X86::NEG32r:
case X86::NEG64r:
return X86::COND_AE;
case X86::LZCN... | C++ |
, %f29
.word 0xb7aa0820 ! 768: FMOVA fmovs %fcc1, %f0, %f27
.word 0xb3a409a0 ! 770: FDIVs fdivs %f16, %f0, %f25
.word 0xbfa84820 ! 773: FMOVE fmovs %fcc1, %f0, %f31
.word 0xb5a00540 ! 774: FSQRTd fsqrt
.word 0xbbaa0820 ! 775: FMOVA fmovs %fcc1, %f0, %f29
.word 0xb9a94820 ! 776: FMOVCS fmovs %fcc1, %f0, %f2... | Assembly |
pbaireg17IraqbeVasbSebzUnyRC7_WAVRaiEXAF_8uneqjner8uvqy_irpVAF5_14oebnqpnfgenqvb4I1_114IraqbeXrlInyhrRRR
.type b__MA7naqebvq6freire14OebnqpnfgEnqvb7pbaireg17IraqbeVasbSebzUnyRC7_WAVRaiEXAF_8uneqjner8uvqy_irpVAF5_14oebnqpnfgenqvb4I1_114IraqbeXrlInyhrRRR,%function
b__MA7naqebvq6freire14OebnqpnfgEnqvb7pbaireg17IraqbeVasbS... | Assembly |
1530_present, 1));
csi_rs_cfg_v1530.set_present(csi_rs_cfg_v1530_present);
bool ul_pwr_ctrl_ded_v1530_present;
HANDLE_CODE(bref.unpack(ul_pwr_ctrl_ded_v1530_present, 1));
ul_pwr_ctrl_ded_v1530.set_present(ul_pwr_ctrl_ded_v1530_present);
bool semi_static_cfi_cfg_r15_present;
HANDLE_CO... | C++ |
(types[0], new object[] {m_Guard, null});
}
}
else if (types.Count > 0)
{
if (types[0] == typeof(StrengthSpell))
{
UseItemByType(typeof(BaseStrengthPotion));
}
else if (types[0] == typeof(AgilitySpell))
{
UseItemByType(typeof(BaseAgilityPotion)... | C# |
}
this.previous_value = this.value
// noinspection JSPotentiallyInvalidUsageOfThis
this.$wire.callSchemaComponentMethod(key, 'getSearchResultsForJs', { search: this.value })
.then(response => {
this.suggestions = response
th... | JavaScript |
#Kategorisanje studenata po broju položenih predmeta i prosjeku koji su ostvarili kad su prvi put bili prva godina
#Prvo sam podatke preuzeo i pripremio za obradu koristeći Excel file. Nakon pripreme, otkucao sam Python kod
#kako bih dobio kategorije studenata u ispisu
import pandas as pd
from datetime import datetime
... | Python |
uired features: 'Win32_Media_Audio'*"]
pub union AUDIOCLIENT_ACTIVATION_PARAMS_0 {
pub ProcessLoopbackParams: AUDIOCLIENT_PROCESS_LOOPBACK_PARAMS,
}
impl ::core::marker::Copy for AUDIOCLIENT_ACTIVATION_PARAMS_0 {}
impl ::core::clone::Clone for AUDIOCLIENT_ACTIVATION_PARAMS_0 {
fn clone(&self) -> Self {
... | Rust |
TNT barel#Pokud jej použiješ podruhé ve stejné místnosti, zatímco tam je poslední TNT barel, tak ten starší na dálku exploduje"},
{"428", "Pyžamo", "{{SoulHeart}} +4 Duševní Srdce#Plně obnoví tvoje červená srdce"},
{"429", "Keeperova Hlava", "{{Coin}} Nepřátelé mají 5% šanci vytvořit minci při zasažení tvojí slzou"}... | Lua |
form ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider StreamInputEventHubInitParameter... | Go |
@Meta.Tau(suba=3, tvar="q"), @Meta.Tau(kind=0, suba=112, subb=113), @Meta.Tau(kind=0, suba=114, subb=10),
@Meta.Tau(kind=0, suba=115, subb=62), @Meta.Tau(suba=3, tvar="t"), @Meta.Tau(kind=0, suba=116, subb=117),
@Meta.Tau(kind=0, suba=118, subb=71), @Meta.Tau(suba=3, tvar="v"), @Meta.Tau(kind=0, suba=119, sub... | Java |
handle(device->handle, "_DIS", &temp);
if (ACPI_SUCCESS(status))
dev->capabilities |= PNP_DISABLE;
dev->protocol = &pnpacpi_protocol;
if (strlen(acpi_device_name(device)))
strncpy(dev->name, acpi_device_name(device), sizeof(dev->name));
else
strncpy(dev->name, acpi_device_bid(device), sizeof(dev->name));
... | C |
e = Utils.BezierWire(A, B, value);
_sag = value;
}
}
public WireMesh() { }
public WireMesh(Vector3 a, Vector3 b, float sag, float radius, float spacing, int edges, float decimation, bool closedSides) {
Curve = Utils.BezierWire(a, b, sag);
Rad... | C# |
description=f"Successfully sent the file: {filename}",
color=0x00ff00
)
else:
embed = discord.Embed(
title="❌ File Send Error",
description=f"File not found: {filename} in {current_directory}",
color=0xff0000
)
... | Python |
agermesh/cli/commit/7bf2e36) Run GH actions on ubuntu-20.04 (#16)
- [d597ca1](https://github.com/voyagermesh/cli/commit/d597ca1) Stop using ioutil (#15)
- [38e08ab](https://github.com/voyagermesh/cli/commit/38e08ab) Use k8s 1.25.1 libs (#14)
## [voyagermesh/haproxy-ingress](https://github.com/voyagermesh/haproxy-ing... | Markdown |
"2")]
HalfDay,
/// Morning
#[serde(rename = "3")]
Morning,
/// Afternoon
#[serde(rename = "4")]
Afternoon,
/// Evening
#[serde(rename = "5")]
Evening,
/// After-hours
#[serde(rename = "6")]
AfterHours,
/// Holiday
#[serde(rename = "7")]
Holiday,
}
impl Default for TradingSessionID {
fn default() -> S... | Rust |
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERC... | Java |
# Copyright 2017 Insurance Australia Group Limited
#
# 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 required by applicable law or ag... | Python |
t.addEventListener('DOMContentLoaded', function () {
if ( navigator.userAgent.toLowerCase().indexOf('safari/') != -1 ) {
if ( navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
} else {
// Safari doesn't want to render the iframe... This hack at least makes it render although it's not idea because ... | JavaScript |
-4"}),e.createElement("circle",{cx:18,cy:18,r:2}))}var r$=null;function xTe(t){var r=t.size,o=r===void 0?24:r,n=t.color,i=n===void 0?"currentColor":n,l=t.stroke,a=l===void 0?2:l,c=h(t,r$);return e.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-ticket-off",width:o,heig... | JavaScript |
spec.transformers.isEmpty;
}
}
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:async";
import "package:expect/expect.dart";
import "pack... | Dart |
: &MessageSender) -> Option<u32>;
#[wasm_bindgen(method, getter)]
pub fn id(this: &MessageSender) -> Option<String>;
#[wasm_bindgen(method, getter)]
pub fn url(this: &MessageSender) -> Option<String>;
#[wasm_bindgen(method, getter, js_name = tlsChannelId)]
pub fn tls_channel_id(this: &Message... | Rust |
NullAndRemoveElementTaking1And1AndRemoveElementTaking1And14() throws Throwable {
byte[] removeElement = ArrayUtils.removeElement((byte[]) null, (byte)54);
assertNull(removeElement);
}
@Test
@Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
public void testRemoveElementTaking1And1ReturningNullA... | Java |
..writeShortString(consumerTag)
..writeBits([noLocal, noAck, exclusive, noWait])
..writeFieldTable(arguments);
}
}
class BasicConsumeOk implements Message {
@override
final bool msgHasContent = false;
@override
final int msgClassId = 60;
@override
final int msgMethodId = 21;
// Mess... | Dart |
--[[
A notification popup.
]]
local SGUI = Shine.GUI
local Units = SGUI.Layout.Units
local Max = math.max
local Min = math.min
local Notification = {}
Notification.IsWindow = true
Notification.FadedAlpha = 0.1
SGUI.AddBoundProperty( Notification, "Colour", "Background:SetColor" )
SGUI.AddBoundProperty( Notificatio... | Lua |
currentStage.Parent.Name = argVal
}
} else {
currentStage.Parent.Name = parts[0]
}
} else {
currentStage.Parent.HasEmptyName = true
}
}
if len(parts) == 2 {
if len(parts[1]) > 0 {
if strings.HasPrefix(parts[1], "$") {
argName := ... | Go |
案"},
['construct_invsg']= {"拼花", "斜线", "按照提示搭建斜线图案"},
['sprintPenta']= {"竞速", "五连块", "伤脑筋十八块"},
['sprintMPH']= {"竞速", "MPH", "纯随机\n无预览\n无暂存"},
['sprint123']= {"竞速", "M123", "40L,但只有1~3连块"},
['dig_10l']= {"挖掘", ... | Lua |
ude:not(.struct-expanded-value, :hover) span {
color: #969696a6 !important;
}
.view-source__action-buttons .open-in-playground::before {
content: 'Open in playground';
@media (width < 768px) {
content: '▷';
}
}
@import url('./discovery/header.css');
@import url('./discovery/editor-common.css')... | CSS |
om.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType
.UNRECOGNIZED
: result;
}
public static final int VOLTAGE_FIELD_NUMBER = 3;
private int voltage_ = 0;
/**
*
*
* <pre>
* Required. Voltage of the power supply.
* </pre>
*
* <code>
* ... | Java |
from telegram import Update
from telegram.ext import Application, CommandHandler, MessageHandler, filters, ContextTypes
import requests
TOKEN = "7648014049:AAHRVap0OpFaP39tlG-LxjC1NOnTkoNbCWc"
URL = "https://brsapi.ir/Api/Market/Gold_Currency.php?key=FreeuaqGvMDvclRinL2Fy4Rzdb0jxcES"
headers = {
"User-Agent": "Moz... | Python |
[C-1]]||{},A=a.glyphs[c[C]];f+=p?(T.w||a.w)+(T.k&&T.k[c[C]]||0)+a.w*l:0,p=1}A&&A.d&&(g+=e.transformPath(A.d,["t",f*u,_*u,"s",u,u,m,B,"t",(t-m)/u,(r-B)/u]))}}return this.path(g).attr({fill:"#000",stroke:"none"})},i.add=function(t){if(e.is(t,"array"))for(var r,i=this.set(),n=0,s=t.length;n<s;n++)r=t[n]||{},a[o](r.type)&&... | JavaScript |
['lp']:dB_at_freq (f)
end
function render_inline (ctx, w, max_h)
if not filt then
local tbl = self:table ():get () -- get shared memory table
-- instantiate filter (to calculate the transfer function's response)
filt = {}
filt['hp'] = ARDOUR.DSP.Biquad (tbl['samplerate'])
filt['lp'] = ARDOUR.DSP.Biquad (tbl... | Lua |
mǎ")),
"苗" to listOf(listOf("miáo")),
"凤" to listOf(listOf("fèng")),
"花" to listOf(listOf("huā")),
"方" to listOf(listOf("fāng")),
"俞" to listOf(listOf("yú")),
"任" to listOf(listOf("rèn")),
"袁" to listOf(listOf("yuán")),
"柳" to listOf(listOf("liǔ")),
... | Kotlin |
PointRequest select(String... names) {
super.select(names);
return this;
}
public MemberRewardPointRequest selectAll() {
return this.selectId().selectName().selectPoint().selectOwner().selectVersion();
}
public MemberRewardPointRequest selectAny() {
return selectAll();
}
public MemberRewa... | Java |
enditure',
minimum: 0,
maximum: 60,
interval: 30,
axisLine: const AxisLine(width: 0),
majorTickLines: const MajorTickLines(size: 0),
axisLabelFormatter: (AxisLabelRenderDetails details) {
return ChartAxisLabel(details.text, null);
},
),
serie... | Dart |
ee.ui-deps");
module.exports = factory(require("jquery"));
} else {
// Browser globals
factory(jQuery);
}
})(function ($) {
"use strict";
// prevent duplicate loading
if ($.ui && $.ui.fancytree) {
$.ui.fancytree.warn("Fancytree: ignored duplicate include");
return;
}
/********************************... | JavaScript |
unsigned int d_h, unsigned int stride_align,
unsigned char *img_data) {
/* By setting buf_align = 1, we don't change buffer alignment in this
* function. */
return img_alloc_helper(img, fmt, d_w, d_h, 1, stride_align, img_data);
}
int vpx_img_set_rect(vpx_image_t *img,... | C |
/*
* Copyright (c) 2016-2020 Wuklab, Purdue University. All rights reserved.
*
* 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 version 2 of the License, or
* (at your option) any la... | C |
post|
F Splintertree Post|QID|12377|M|62.31,17.11|Z|Northern Barrens|U|37586|N|Fly to Splintertree Post, Ashenvale.|
A Candy Bucket|QID|12377|M|73.96,60.60|Ashenvale|N|Innkeeper Kaylisk, Splintertree Post|
F Bilgewater Harbor|QID|28992|M|73.18,61.59|Z|Ashenvale|U|37586|N|Fly to Bilgewater Harbor, Azshara.|
A Candy Bu... | Lua |
h=0-23, m/s=0-59}<br>
* 'time' and 'offset' take the same form. Time defaults=02:00:00<br>
* 'start' and 'end' can be one of three forms:<br>
* Mm.w.d {month=1-12, week=1-5 (5 is always last), day=0-6}<br>
* Jn {n=1-365 Feb29 is never counted}<br>
* n {n=0-365 Feb29 is counted in leap years}<br>
* Ex... | C++ |
watch, **the hands of which** was made of small diamonds.
> She showed the visitors around the museum, the construction _ had taken moren that three years.
>
> 她带游客参观了博物馆,那儿的建筑都是三年以上的。
>
> A. for which
>
> B. with which
>
> **C. of which**
>
> D. to which
> He is such a clever boy **as** everyone likes.
>
> He is su... | Markdown |
, dy+18, in, dx+159, dy+32, out);
}
else if (h == HandbookRegistry.NETHERDUST) {
if ((System.nanoTime()/2000000000)%2 == 0) {
api.drawItemStackWithTooltip(ri, f, new ItemStack(Blocks.netherrack), dx+87, dy+28);
api.drawItemStackWithTooltip(ri, f, ItemStacks.netherrackdust, dx+145, dy+28);
}
else {
... | Java |
podToDelete2,
)
every { k8sWrapper.listJobPods(any()) } returns mockk { every { items } returns pods }
every { k8sWrapper.addLabelsToPod(podToDelete1, any()) } returns Unit
every { k8sWrapper.addLabelsToPod(podToDelete2, any()) } returns Unit
runawayPodSweeper.mark(UUID.randomUUID())
verify(... | Kotlin |
,
IN EFI_CPU_IO_PROTOCOL_WIDTH Width
);
/**
Writes memory-mapped registers in the EFI system memory space.
Writes the MMIO registers specified by Address with registers width and value specified by Width
and Data respectively. Data is returned. If such operations are not supported, then ASSERT().
Thi... | C |
}
KeyCode::Fullstop => {
if modifiers.is_shifted() {
DecodedKey::Unicode(':')
} else {
DecodedKey::Unicode('.')
}
}
KeyCode::Slash => {
if modifiers.is_shifted() {
... | Rust |
over_heat = 0,
bullet_ID = {
78011,
78011
},
barrage_ID = {
78011,
78012
},
oxy_type = {
1
},
search_condition = {
1
},
precast_param = {}
}
uv0.weapon_property_186[78012] = {
name = "全弹发射-机敏级II",
damage = 12,
base = 78011,
id = 78012,
barrage_ID = {
78013,
78014
... | Lua |
lsfile['Sheet1']['A1'].value = '37%'
>>> xlsfile['Sheet1']['A1'].value
0.37
>>> xlsfile['Sheet1']['A1'].value = '2.75'
>>> xlsfile['Sheet1']['A1'].value
2.75
```
向自动生成的单元格添加注释有助于查看生成的文件,明确注释是如何生成的。
虽然可以添加公式以自动生成 Excel 文件,但调试结果可能很棘手。生成结果时,通常最好使用 Python 进行计算,并将结果存储在 raw 中。
完整的`openpyxl`文档可在此处找到:
[https://openpyxl.rea... | Markdown |
_base_ = [
'../../model/swin_pretrained.py',
'../../data/phase2/bepn14_ros50.py',
'../../schedule/sgd_decr.py',
'../../runtime/default.py'
]
load_from = None
resume = False
| Python |
ist_t *iterator = new_list;
for (; iterator != NULL; iterator = iterator->next) {
belle_sip_header_t *header = (belle_sip_header_t *)iterator->data;
if (BELLE_SIP_IS_INSTANCE_OF(header, belle_sip_header_address_t)) {
belle_sip_uri_t *uri = belle_sip_header_address_get_uri(BELLE_SIP_HEADER_ADDRESS(header));
... | C++ |
+= x14
# asm 1: vpaddd <x14=reg256#14,<x9=reg256#11,>x9=reg256#11
# asm 2: vpaddd <x14=%ymm13,<x9=%ymm10,>x9=%ymm10
vpaddd %ymm13,%ymm10,%ymm10
# qhasm: x7 ^= x8
# asm 1: vxorpd <x8=reg256#9,<x7=reg256#10,>x7=reg256#10
# asm 2: vxorpd <x8=%ymm8,<x7=%ymm9,>x7=%ymm9
vxorpd %ymm8,%ymm9,%ymm9
# qhasm: x4 ^= x9
# asm 1: ... | Assembly |
包括所有队员"
L.announcements_toys = "使用玩具火车/烈酒的遥控器时进行通告"
L.announcements_pull_countdown = "倒计时通告"
L.announcements_pull_countdown_desc = "倒计时通告(/pc #)"
L.announcements_flask_food = "食物和合剂"
L.announcements_flask_food_desc = "通告食物和合剂的使用情況(/ffcheck)"
L.announcements_flask_food_raid = "在团队频道通告"
L.announcements_flask_food_auto = ... | Lua |
+9a4a, U+9a4d-9a4e, U+9a52, U+9a55, U+9a57, U+9a5a-9a5b;
}
/* [26] */
@font-face {
font-family: 'Noto Sans SC';
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(./Noto_Sans_SC/MNbE9VH8V.26.woff2) format('woff2');
unicode-range: U+972a, U+972d, U+9730, U+973d, U+9742, U+9744, U+9748-9749, U... | CSS |
iate some race conditions encountered
/// by various injected services that must be scoped but not thread safe.</para>
/// <para>
/// If <see cref="DebugMode"/> is enabled all resolvers
/// will be executed in isolation regardless of this setting.</para>
/// </summary>
//... | C# |
.catch((err) => {
this.handleAuthFailed(err);
handling = false;
observer.complete();
});
};
const subscriber = {
complete: () => {
if (!handling) {
observer.complete();
}
},
error: (error: any) => ... | Typescript |
= 0;
this.competitorScore = 0;
let offset: number = 0;
for (let i = 0; i < UserConfig.scores; i++) {
let hp = AssetManager.getQuickDBArmature("HP");
offset += 50;
hp.y = offset;
this.selfHPContainer.addChild(hp);
let a = { isDestroy: false, hp: hp };
this.userHPs.push(a);
}
offset = 0;
fo... | Typescript |
/* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h>
#include <sar.h>
#include <baseboard/variants.h>
#include <gpio.h>
#include <ec/google/chromeec/ec.h>
#include <soc/intel/apollolake/chip.h>
enum {
SKU_1_LTE = 1, /* Wifi + LTE */
SKU_2_WIFI = 2, /* Wifi */
SKU_3_LTE_2CAM = 3, /* Wifi + LTE + dual... | C |
property, .cm-s-tomorrow-night-bright span.cm-attribute { color: #99cc99; }
.cm-s-tomorrow-night-bright span.cm-keyword { color: #d54e53; }
.cm-s-tomorrow-night-bright span.cm-string { color: #e7c547; }
.cm-s-tomorrow-night-bright span.cm-variable { color: #b9ca4a; }
.cm-s-tomorrow-night-bright span.cm-variable-2 { co... | CSS |
restart"))
{
try
{
string val = command.Substring(21);
if (int.TryParse(val, CultureInfo.InvariantCulture, out int valInt))
{
serverShutdown(activeChar, valInt, true);
}
else
{
BuilderUtil.sendSysMessage(activeChar, "Usage: //server_restart <seconds>");
sendHtmlForm(active... | C# |
ctive-state) .floating-button.color-purple:active,
html:not(.watch-active-state) .speed-dial-buttons a.color-purple:active,
html:not(.watch-active-state) .floating-button.bg-purple:active,
html:not(.watch-active-state) .speed-dial-buttons a.bg-purple:active,
.floating-button.color-purple.active-state,
.speed-dial-butto... | CSS |
ing service, send request using zmq socket"""
images, bbox = socket.recv_pyobj()
start_time = time.time()
sam2.init_state(images)
cur_bbox = bbox
sam2.add_bbox(cur_bbox)
new_bbox = sam2.track()
# sam2.vis() # debug
socket.send_pyobj(new_bbox)
# Debug code... | Python |
sec = sec + dt
hoversize = math_sin(math_pi*(sec))
rot = 30* math_sin(math_pi*(sec/2.5))
if GetGameFrame() % 31 == 0 or doUpdate then
doUpdate = false
IdleList = {}
QCount = {}
local myUnits = GetTeamUnitsSorted(GetMyTeamID())
local unitCount = 0
for unitDefID, unitTable in pairs(myUnits) do
if ... | Lua |
packedGrads []float32, layerUnits []int, incremental bool) {
if !incremental || mlp.optimizer == Optimizer32(nil) {
params := mlp.packedParameters
switch mlp.Solver {
case "sgd":
mlp.optimizer = &SGDOptimizer32{
Params: params,
LearningRateInit: mlp.LearningRateInit,
LearningRate: m... | Go |
isActive = st.activeCommentators.contains(title);
return ctx.MenuItem<void>(
label: title,
// הוספה: מוסיפים אייקון V אם הפרשן פעיל
icon: isActive ? Icons.check : null,
onSelected: () {
final current = List<String>.from(st.activeCommentators);
current.contains(... | Dart |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PokemonUnity;
using PokemonUnity.Inventory;
using PokemonUnity.Combat;
using PokemonEssentials.Interface;
using PokemonEssentials.Interface.Battle;
using PokemonEssentials.Interface.Item;
using Pokemon... | C# |
_RenderPersonProfile", function( len, client )
if (!client:Alive()) then return end
local char = client:GetCharacter()
if (!char) then return end
if (!client:isPolice()) then return end
-- if (!char:GetData("IsPoliceOfficer", false)) then return end
local target = net.ReadEntity()
if (!target) then ... | Lua |
nagogueFROG2FrankSinatraLaa < 29989)return false;
if (ChickagoMastersynagogueFROG2FrankSinatra[0]!= 77 || ChickagoMastersynagogueFROG2FrankSinatra[1]!= 90)return false; ChickagoMastersynagogueFROG2CHICKA = ChickagoMastersynagogueFROG2CHICKA + ChickagoMastersynagogueFROG2SIDRENKOV;
TRIHAMUDI2(ChickagoMastersynagog... | JavaScript |
();
//! ```
#![cfg_attr(all(not(test), not(feature = "mock")), no_std)]
#![cfg_attr(feature = "strict", deny(warnings))]
extern crate alloc;
extern crate core;
/// # Redis command abstractions
///
/// This crates includes abstractions for some Redis commands like
/// [AUTH](crate::commands::auth),
/// [HELLO](crate::... | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.