content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
er *yaml* pour *StarCraft 2 Randomizer*:
* Vous pouvez aller à la page [*Player options*](/games/Starcraft%202/player-options) qui vous permet de définir vos
choix via une interface graphique et ensuite télécharger le *yaml* correspondant à ces choix.
* Vous pouvez obtenir le modèle de base en le téléchargeant à la pa... | Markdown |
gorilla/mux"
"github.com/openshift/ansible-service-broker/pkg/auth"
"github.com/openshift/ansible-service-broker/pkg/broker"
"github.com/openshift/ansible-service-broker/pkg/version"
"github.com/pborman/uuid"
log "github.com/sirupsen/logrus"
authv1 "k8s.io/api/authentication/v1"
v1 "k8s.io/api/core/v1"
metav1 "... | Go |
ceManagerClient = DeviceManagerClient.create()) {
* String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
* for (Device element : deviceManagerClient.listDevices(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }</pre>
*
* @param parent Requi... | Java |
< 0) NativeBN.BN_set_negative(this.bignum, 1);
}
}
@DSComment("Package priviledge")
@DSBan(DSCat.DEFAULT_MODIFIER)
@DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:56:38.531 -0500", hash_original_method = "0C4139075DA080C92B767C8D6DDC4F59", hash_gene... | Java |
in_sel_cfg](gpio_func110_in_sel_cfg) module"]
pub type GPIO_FUNC110_IN_SEL_CFG = crate::Reg<u32, _GPIO_FUNC110_IN_SEL_CFG>;
#[allow(missing_docs)]
#[doc(hidden)]
pub struct _GPIO_FUNC110_IN_SEL_CFG;
#[doc = "`read()` method returns [gpio_func110_in_sel_cfg::R](gpio_func110_in_sel_cfg::R) reader structure"]
impl crate::... | Rust |
% PEM_HEADER)
if not pem_cert_string.strip().endswith(PEM_FOOTER):
raise ValueError("Invalid PEM encoding; must end with %s"
% PEM_FOOTER)
d = pem_cert_string.strip()[len(PEM_HEADER):-len(PEM_FOOTER)]
return base64.decodestring(d)
def get_server_certificate (addr, ssl_versi... | Python |
Order(cartItemIds);
if (response.success && response.data != null) {
return Right(response.data!.toEntity());
} else {
return Left(ServerFailure(response.message));
}
} on DioException catch (e) {
return Left(_handleDioException(e));
} on ServerException catch (e) {
... | Dart |
数:
// - backendStatusCode: 后端状态码(0表示未设置)
// - backendStartTime: 后端请求开始时间(零时间表示未设置)
// - backendEndTime: 后端响应接收时间(零时间表示未设置)
func (a *AccessLog) SetBackendInfo(backendStatusCode int, backendStartTime, backendEndTime time.Time) {
a.BackendStatusCode = backendStatusCode
a.BackendRequestStartTime = backendStartTime
... | Go |
aleProperties: {
value: {
lang: new URLSearchParams(document.location.hash.substring(1)).get("locale") || navigator.language || "en-US",
},
kind: OptionKind.BROWSER
},
maxCanvasDim: {
value: 32767,
kind: OptionKind.BROWSER + OptionKind.VIEWER
},
nimbusDataStr: {
value: "",
kind... | JavaScript |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#in... | C |
obeer gratis",
"subscribe": "Abonneren",
"trial_remind": "We herinneren je voordat je proefperiode eindigt",
"easy_cancel": "2 tikken om te beginnen, super makkelijk om te annuleren",
"purchases_supported_on": "Aankopen niet ondersteund op",
"terms_of_use": "Gebruiksvoorwaarden",
"privacy_policy": "Privacyb... | Dart |
.block_elements,na(aa(e,","),(e=>{const r=t.exec(e);if(r){const e="~"===r[1],t=e?"span":"div",a=r[2];if(o[a]=o[t],s[a]=t,v[a.toUpperCase()]={},v[a]={},e||(w[a.toUpperCase()]={},w[a]={}),!n[a]){let e=n[t];e=oa({},e),delete e.removeEmptyAttrs,delete e.removeEmpty,n[a]=e}na(o,((e,n)=>{e[t]&&(o[n]=e=oa({},o[n]),e[a]=e[t])}... | JavaScript |
THOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT... | C# |
hape-layer .circle-shape-2 {
width: 700px;
height: 700px;
border: 70px solid #f3f7fd;
position: absolute;
right: 0;
top: -600px;
z-index: 1;
border-radius: 50%;
}
.banner-section .shape-layer .shape-box {
width: 200px;
height: 160px;
position: absolute;
left: 40%;
bottom: 10%;
}
.banner-sectio... | CSS |
r1, r1, #2
b Lgpmemcpy_fl4
Lgpmemcpy_fsrcul3:
cmp r2, #0x0c
blt Lgpmemcpy_fsrcul3loop4
sub r2, r2, #0x0c
stmdb sp!, {r4, r5}
Lgpmemcpy_fsrcul3loop16:
mov r3, lr, lsr #24
ldmia r1!, {r4, r5, r12, lr}
orr r3, r3, r4, lsl #8
mov r4, r4, lsr #24
orr r4, r4, r5, lsl #8
mov r5, r5, lsr #24
orr r5, r5, ... | Assembly |
RTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with Mauve; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
*/
// Tags: JDK1.2
packa... | Java |
.15em solid white;border-radius:1em;box-shadow:0 0 .2em #444;box-sizing:content-box;text-align:center;text-indent:0 !important;font-family:"Courier New",Courier,monospace;line-height:1em;content:"+";background-color:#31b131}table.dataTable tr.dt-hasChild td.dt-control:before{content:"-";background-color:#d33333}table.d... | CSS |
is executed by the symbolic executor.
virtual bool run(const FinalState &state);
/// Returns test count.
[[nodiscard]] int64_t getTestCount() const;
/// Returns coverage achieved by all the processed tests.
[[nodiscard]] float getCoverage() const;
/// Returns the program info.
[[nodiscar... | C |
# -*- coding: utf-8 -*-
SYSTEM_PROMPT = """# 角色
您是专业的阿里巴巴云数据库运营助手,专注于为客户提供高效的数据库技术支持和解决方案。您的目标是通过清晰的问题分解、深刻的结果反思和精确的时间计算,帮助客户快速解决问题。
## 技能
### 技能 1:问题分解与分析
- 深入拆解用户问题,识别核心需求及相关的潜在步骤/命令。
- 提供明确的任务分解,确保每一步都对最终解决方案有所贡献。
- 当需要用户澄清需求或者需要用户确认行动时,利用工具 interaction 和用户进行沟通,沟通时请完整输出需要确认的内容,避免内容丢失。
- 任务分解必须符合逻辑推理,确保每个步骤都能有效地解决... | Python |
parallel to its opposite side, and exactly half
the length of that side.
:::
:::
---
{.todo} COMING SOON – More on triangle midsegments, and how they relate to
similarity and proportionality.
---
## Triangle Congruence
> id: sss-construction
> section: congruence
> goals: draw-base draw-c1 draw-c2
Now that we ca... | Markdown |
�好抽象思维的人来说,学习经济学、寻找经济运行背后的逻辑本身也是一种幸福**。
亚里士多德曾经指出,生活分成三个层次:**享乐的生活、政治的生活以及沉思的生活**。而享乐的生活、政治的生活远不如沉思的生活幸福,因为只有沉思的生活是自足的。
## 经济学研究什么
在《国富论》中,斯密认为经济学是“研究国民财富增长和分配的科学”。
在斯密看来,在决定国民财富增进的过程中,市场机制所起的作用是最重要的。
要理解国民财富的增进,关键就是要理解市场是怎么运作的,因此经济学作为一门研究国民财富的科学,很大程度上也就是一门**研究市场运作**的科学。
石油在地底下储存了四五千万年,但直到一百多年前,它才变成我们的资源。虽然现在怎么... | Markdown |
title: Container(
height: 16.0,
width: 100.0,
color: Colors.white,
),
trailing: Container(
height: 24.0,
width: 24.0,
color: Colors.white,
),
),
),
),
);
}
}
import 'dart... | Dart |
at(cartridge, address + 1)),
0xD5 => OpCode::PUSH_DE,
0xD6 => OpCode::SUB_d8(d8::at(cartridge, address + 1)),
0xD7 => OpCode::RST_10H,
0xD8 => OpCode::RET_C,
0xD9 => OpCode::RETI,
0xDA => OpCode::JP_C_a16(a16::at(cartridge, address + 1)),
... | Rust |
完成: 成功融合 {successful_merges} 个Agent帖子,{len(orphaned_agents)} 个孤儿帖子")
# 如果有孤儿Agent帖子,可以选择添加到根级别或者创建一个特殊的根节点
if orphaned_agents:
print(f"[数据融合] 处理 {len(orphaned_agents)} 个孤儿Agent帖子")
# 这里可以根据需要决定如何处理孤儿帖子
# 暂时添加到原始帖子列表的末尾
for orphan in orphaned_agent... | Python |
abilites_name: 'すながくれ', abilites_id: 'sandVeil'},
{abilites_name: 'すなのちから', abilites_id: 'sandForce'},
{abilites_name: 'すりぬけ', abilites_id: 'infiltrator'},
{abilites_name: 'するどいめ', abilites_id: 'keenEye'},
{abilites_name: 'スロースタート', abilites_id: 'slowStart'},
{abilites_name: 'せいぎ... | Typescript |
-error"></div>'+
'</div>')
.hide() // start out hidden
.appendTo(layers),
// this needs to come last so it's on top
bigPlay =
$('<div class="mejs-overlay mejs-layer mejs-overlay-play">'+
'<div class="mejs-overlay-button" role="button" aria-label="' + mejs.i18n.t('Play') + '" aria-pressed="fal... | JavaScript |
oBmpKkMrtV9G1zFS+jy+JFrjEIKYL4+2mRt0b9bFFJUJKvFrNsvoiXy/liHmfT2dvpRfYmzua8zObTbPYugrTI92gkOTBC4yr6RNhU6OCl0PYDXDl0GF+TQR9B65pVVIdg36dp13VJ6C3tnLB1n5SkR6hGlWg8PjX4w4hph9uKTIg9VaETDqNiUysPh0/gc6gRrCOLLvRAFXD6VXOX/poS+E4taNGDoQAl2X4CmotZ8S6VD05t24ATYP6SOtOQkIx5FGQ0KeODaBpQAVpLBoTpGUtbdnXjg5p8GKyVIz1aGypF4LaM8R04tasDBIKWix... | CSS |
A02, #4
add A03, A03, #4
add A04, A04, #4
stp s0, s1, [B03]
add B03, B03, #8
stp s2, s3, [B03]
add B03, B03, #8
ldr s4, [A05]
ldr s5, [A06]
ldr s6, [A07]
ldr s7, [A08]
ldr d4, [A05], #8
ldr d5, [A06], #8
ldr d6, [A07], #8
ldr d7, [A08], #8
stp s4, s5, [B03]
add B03, B03, #8
stp s6, s7, [B03]
add B... | Assembly |
/*
* da732x.h -- Dialog DA732X ALSA SoC Audio Driver Header File
*
* Copyright (C) 2012 Dialog Semiconductor GmbH
*
* Author: Michal Hajduk <Michal.Hajduk@diasemi.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* ... | C |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/HomeUI.framework/HomeUI
*/
@interface HUForceInterpolatedPressGestureRecognizer : UILongPressGestureRecognizer {
double _currentSampleForceMultiplier;
double _currentSampleTimestamp;
NSMutableSet * _hu_activeTouches;
double ... | C |
TDIcons.app,
size: 20,
color: TDTheme.of(context).textColorPrimary,
);
return ExamplePage(
title: tdTitle(),
desc: '用于在不同功能模块之间进行快速切换,位于页面底部。',
exampleCodeGroup: 'bottomTabBar',
padding: const EdgeInsets.only(bottom: 16),
children: [
ExampleModule(
... | Dart |
iy = 0; iy < ey; iy++) {
const cy = dy.clone().multiplyScalar(iy * r2 + yoff).add(offset);
const center = NPoint.fromVector(cx.clone().add(cy));
const points = sincos.map((sc) => {
const d = dx.clone().multiplyScalar(sc.cos).add(dy.clone().multiplyScalar(sc.sin));
return cent... | Typescript |
�球运动技能基础(2)", "乒乓球专选A",
"乒乓球专选B(1)", "乒乓球专选B(2)", "乒乓球专选B(3)", "乒乓球专选C(1)", "乒乓球专选C(2)", "平面构成", "普通地质实习", "普通地质学A", "普通地质学B", "普通化学", "普通话A", "普通话B",
"普通话C", "普通话集训", "普通话训练与测试A", "普通话训练与测试B", "普通生物学", "普通生物学实验", "普通物理学A(1)", "普通物理学A(2)", "普通物理学B(1)", "普通物理学B(2)", "普通物理学C",
"普通物理学实验A(1)", "普通物理学实验A(2)", "普通物理... | Java |
ColorOut, 0);
mComposeData.pApplySSAOPass->execute(pRenderContext, mComposeData.pFbo);
}
Texture::SharedPtr SSAO::generateAOMap(RenderContext* pContext, const Camera* pCamera, const Texture::SharedPtr& pDepthTexture, const Texture::SharedPtr& pNormalTexture)
{
if (mDirty)
{
ShaderVar var = mpSSAOPa... | C++ |
words() {
assertTrue(faker.lorem.words(1).size == 1)
assertTrue(faker.lorem.words(10, true).size == 10)
}
@Test
fun character() {
assertTrue(faker.lorem.character().matches(Regex("\\w")))
}
@Test
fun characters() {
assertTrue(faker.lorem.characters(10).matches(... | Kotlin |
',
country: 'Singapore',
visited: '7. Sept. 2015',
images: [
[
{ name: '_DSC0021.jpg', width: '4608', height: '3072' },
{ name: '_DSC0033.jpg', width: '4608', height: '3072' },
{ name: 'DSCF2441.jpg', width: '3264', height: '4896' },
{ name: 'DSCF2439.jpg', width: '3264... | Typescript |
import random
Lessons = 52 #Это не шутка, в году примерно 52 урока , ориентируясь на шаг если что
class Student:
def __init__(self, name, age, grades, money):
self.name = name
self.age = age
self.grades = grades
self.money = money
def average_grade(self):
result = int(... | Python |
leSizePipe.transform(123)).toBe('123 B');
});
it('should handle kilobytes', () => {
expect(fileSizePipe.transform(12340)).toBe('12.3 kB');
});
it('should handle megabytes', () => {
expect(fileSizePipe.transform(1234500)).toBe('1.2 MB');
});
it('should handle gigabytes', () => ... | Typescript |
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
def calculate_bias_metric(df):
# Calculate the average WER for each Model and Style combination
average_wer = df.groupby(['Model', 'Style'])['WER'].mean().reset_index()
average_wer.rename(columns={'WER': 'Average_W... | Python |
Color mC = Colors.grey.shade100;
Color mCL = Colors.white;
Color mCM = Colors.grey.shade200;
Color mCU = Colors.grey.shade300;
Color mCH = Colors.grey.shade400;
Color mGB = Colors.grey.shade500;
Color mGM = Colors.grey.shade700;
Color mGE = Colors.grey.shade800;
Color mGD = Colors.grey.shade900;
Color mCD = Colors.blac... | Dart |
using Grand.Services.Configuration;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;
namespace Grand.Web.Areas.Admin.Controllers
{
public partial class GoogleAnalyticsController : BaseAdminController
{
private readonly IGoogleAnalyticsService _googleAnalyticsService;
... | C# |
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
... | Kotlin |
LE && OPENTHREAD_RADIO
NcpBase::NcpBase(Instance *aInstance)
: mInstance(aInstance)
, mTxFrameBuffer(mTxBuffer, sizeof(mTxBuffer))
, mEncoder(mTxFrameBuffer)
, mHostPowerStateInProgress(false)
, mLastStatus(SPINEL_STATUS_OK)
, mScanChannelMask(Radio::kSupportedChannels)
, mScanPeriod(200)
... | C++ |
_file.open("nav2_tree_nodes.xml");
xml_file << BT::writeTreeNodesModelXML(factory) << std::endl;
xml_file.close();
return 0;
}
// Copyright (c) 2025 Polymath Robotics
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You m... | C++ |
..write('showAt: $showAt, ')
..write('hideAt: $hideAt')
..write(')'))
.toString();
}
}
class MemoryAssetEntity extends Table
with TableInfo<MemoryAssetEntity, MemoryAssetEntityData> {
@override
final GeneratedDatabase attachedDatabase;
final String? _alias;
MemoryAssetEn... | Dart |
estorOfType(Operation *op)
{
return op->getParentOfType<OpTy>() != nullptr;
}
// Returns true if an operation is nested in a scf.if operation at any depth.
bool isOpInIfOp(Operation *op) { return hasAncestorOfType<scf::IfOp>(op); }
// Returns true if an operation is nested in a scf.while operation at any depth.
b... | C++ |
,
str_true=str_true,
normalize=True)
if progressbar:
pbar.update(1)
if is_new_epoch:
break
cer_mean /= (len(dataset))
wer_mean /= (len(dataset))
# TODO: Fix this
return cer_mean, w... | Python |
.DayPicker-Footer {
padding-top: 0.5rem;
}
.DayPicker-TodayButton {
border: none;
background-image: none;
background-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
cursor: pointer;
color: #4a90e2;
font-size: 0.875em;
}
/* Default modifiers */
.DayPicker-Day--today {
color: #d00... | CSS |
',
'2013-08-09 04:48:37.000Z',
'2001-09-07 17:13:55.000Z',
'1993-06-18 13:21:21.000Z',
'1991-02-06 03:05:47.000Z',
'2000-09-22 18:48:55.000Z',
'2000-06-01 02:13:57.000Z',
'1991-08-07 21:08:35.000Z',
'1998-08-15 07:27:12.000Z',
'2002-07-03 10:34:25.... | Dart |
pher.core.module.Module;
public class InputValidatorModuleEnabled implements InputValidator< Module > {
protected Cartographer plugin;
protected boolean enabled = true;
public InputValidatorModuleEnabled( Cartographer plugin, boolean enabled ) {
this.plugin = plugin;
this.enabled = enabled;
}
@Override
p... | Java |
0.05
rotationYaw += 180f
prevRotationYaw += 180f
ticksInAir = 0
playSound(FSounds.TRIDENT_PIERCE, 1.0f, 1.0f)
}
if (world.isThundering && EnchantHelper.getChanneling(arrowStack)) {
world.addWeatherEffect(EntityLightningBolt(shootingEntity.world... | Kotlin |
push_to_vec(&mut print, &[0, 1, 2]);
push_to_vec(&mut alpha, &[3, 4, 5, 6]);
}
8 => {
push_to_vec(&mut print, &[0, 1, 2, 3, 4, 5, 6]);
}
9 => {
push_to_vec(&mut print, &[0, 1, 2, 3, 5, 6]);
push_to_vec(&mut alpha, &[4]);
}... | Rust |
state = { addr = 0x800F0830 },
map_mark = { addr = 0x800F10E8 },
play = { addr = 0x800FD980 },
},
data_dir = "oot-gc-u",
gz_versio... | Lua |
#ifndef MATHUTILITY_H
#define MATHUTILITY_H
#include <Core/Include.h>
#include <cuda.h>
#include <math.h>
#include <float.h>
#define M_EPSILON 0.00001f
#define M_INF FLT_MAX
#define M_E 2.71828182845904523536f
#define M_LOG2E 1.44269504088896340736f
#define M_LOG10E 0.434294481903251827651f
#define M_... | C |
69497, -79.0129315853, -105.86151123, -105.861500502}},
{"7ur1q", Box{-20.8740234375, -20.830078125, -1.142578125, -1.0986328125}},
{"8yn6q9vmm", Box{34.1560220718, 34.1560649872, -137.167868614, -137.167825699}},
{"m4zk", Box{-28.828125, -28.65234375, 55.1953125, 55.546875}},
{"9bgzpypspd0", Box{5.48287510872, 5.4... | Go |
"] {
--skeleton-bg: rgba(0, 0, 0, 0.3);
--skeleton-shimmer: rgba(255, 255, 255, 0.1);
}
/* 磨砂黑主题骨架屏 */
[data-theme="frosted-dark"] .skeleton {
background: linear-gradient(90deg,
var(--skeleton-bg) 25%,
var(--skeleton-shimmer) 50%,
var(--skeleton-bg) 75%);
backdrop-filter: blur(5... | CSS |
6.16|57.72|9.62",
"nil|390|35|10.56|56.16|48.10|9.62",
"nil|390|35|0.96|57.60|57.72|9.62",
"nil|390|35|10.56|57.60|57.72|9.62",
"nil|390|35|0.96|59.04|57.72|9.62",
"nil|390|35|9.60|59.04|67.33|9.62",
"nil|390|35|1.92|60.48|48.10|9.62",
"nil|390|35|9.60|60.48|57.72|9.62",
"nil|390|35|1.92... | Lua |
976-02-23
#Record 6 : 000330 OP2012 160 0.75 1982-01-01 1983-02-01 000330
#>>000330,WING, ,LEE,LEE,2103,1976-02-23
#Record 7 : 000320 OP2011 140 0.75 1982-01-01 1983-02-01 000320
#>>000320,RAMLAL,V,MEHTA,MEHTA,9990,1965-07-07
#Record 8 : 000320 OP2011 150 0.25 1982-01-01 1983-02-01 000320
#>>000320... | Python |
ut between each column and row
widget.GridLayoutOpts.Spacing(0, m.Spacing()))),
)
c.AddChild(mContainer)
// show container with Exit/Resume buttons
bContainer := widget.NewContainer(
// TODO: fix exit/resume container buttons not stretching to fit width
widget.ContainerOpts.BackgroundImage(res.panel.titleBa... | Go |
tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-p... | CSS |
ers))
}
}
}
}
}
// Computation.
{
// See https://github.com/ggml-org/llama.cpp/blob/ec9e0301fef6476df83e94842c3b625501c95566/src/llama-context.cpp#L1241-L1243.
maxNodes := max(1024, uint64(8*len(gf.TensorInfos)))
// Bootstrap, compute metadata.
cm := GGMLTensorOverhead()*maxNodes + GGMLComput... | Go |
ModelPricing: db.prices,
}
return json.MarshalIndent(config, "", " ")
}
var defaultThresholds = []BudgetThreshold{
{Percentage: 80, Status: BudgetWarning, Action: "log"},
{Percentage: 90, Status: BudgetCritical, Action: "alert"},
{Percentage: 100, Status: BudgetExceeded, Action: "block"},
}
func getDefau... | Go |
anifest()
println("class 文件生成完成...")
generateStringsFile()
generateKeepProguard()
writeRFile()
println("资源文件生成完成,开始打包...")
// 正在打包
val outPath = assembleAar()
println("打包完成:\n\r\t$outPath \n\r\t${fileSize(outPath.length())}")
val end = System.n... | Kotlin |
P_FIFO2_RXFDC_L_SPEC>,
#[doc = "0x1bc - "]
pub sep_fifo2_rxfdc_h: crate::Reg<sep_fifo2_rxfdc_h::SEP_FIFO2_RXFDC_H_SPEC>,
#[doc = "0x1c0 - "]
pub sep_fifo0_txfd: crate::Reg<sep_fifo0_txfd::SEP_FIFO0_TXFD_SPEC>,
_reserved57: [u8; 0x04],
#[doc = "0x1c8 - "]
pub sep_fifo3_rxfd: crate::Reg<sep_fi... | Rust |
the dataset to wrap
* @param firstRow
* the first row number (1-based).
*/
public FirstRowDataSet(DataSet dataSet, int firstRow) {
super(dataSet);
_dataSet = dataSet;
if (firstRow < 1) {
throw new IllegalArgumentException("First row cannot be negativ... | Java |
x1, matrix2);
}
if (coreNumber > 1) {
return mulMatrixMany(matrix1, matrix2);
} else {
return mulMatrixOne(matrix1, matrix2);
}
}
//重重点
public Matrix mathMulBySelf(Matrix matrix, float nub) throws Exception {//矩阵数乘并返回新矩阵
int x = matrix.getX()... | Java |
ose_list = self._get_coffee_to_choose(day)
# from one_dragon.utils import debug_utils
# screen = debug_utils.get_debug_image('424905412-5c9df2d3-186d-4be5-a610-865553fd6adb')
area = self.ctx.screen_loader.get_area('咖啡店', '咖啡列表')
part = cv2_utils.crop_image_only(self.last_screenshot, are... | Python |
�拉了,有六种办法_智能_好奇心日报-唐怡园.md)
- [11日](./11)
---
- [18天不出门,只用互联网服务生活|Day8月入过万算什么_智能_好奇心日报-唐云路.md](./11/18天不出门,只用互联网服务生活|Day8月入过万算什么_智能_好奇心日报-唐云路.md)
- [CEO到底值多少钱?_商业_好奇心日报-NeilIrwin.md](./11/CEO到底值多少钱?_商业_好奇心日报-NeilIrwin.md)
- [Coach要去纽约时装周,以及,BV出了皮革味香水|浮华日报_时尚_好奇心日报-张田小.md](./11/Coach要去... | Markdown |
OauthApplications[0].ID
fmt.Println(val)
return nil
})
rows.EXPECT().Scan(
gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any(),
gomock.Any(), gomock.Any(), gomock.Any(),
gomock.Any(), gomock.Any(), gomock.Any(),
).DoAndReturn(func(dest ...interface{}) exception.Exception {
v... | Go |
// *** WARNING: this file was generated by pulumi-language-dotnet. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AwsNat... | C# |
using System.Text.Json.Serialization;
namespace Tzkt.Sync.Services
{
class CoingeckoProvider : DefaultQuotesProvider, IDisposable
{
public const string ProviderName = "Coingecko";
readonly TzktClient Client;
readonly CoingeckoProviderConfig Config;
public CoingeckoProvider(IC... | C# |
"\\"
vim.g.undotree_DiffCommand = "diff"
vim.g.undotree_RelativeTimestamp = 1
vim.g.undotree_HighlightChangedText = 1
vim.g.undotree_HighlightChangedWithSign = 1
vim.g.undotree_HighlightSyntaxAdd = "DiffAdd"
vim.g.undotree_HighlightSyntaxChange = "DiffChange"
vim.g.undotree_Hig... | Lua |
while (i < getEndDegree()) {
if (degree <= i) {
rayMarkPaint.color = markColor
canvas.drawPath(markPath, rayMarkPaint)
canvas.rotate(degreeBetweenMark.toFloat(), size * .5f, size * .5f)
i += degreeBetweenMark
continue
... | Kotlin |
import xml.etree.ElementTree as ET
import csv
import datetime
from collections import defaultdict
def find_atco_with_no_naptan_and_grouped_by_type(file_path):
"""
Find ATCO codes that have no associated NaPTAN codes in the NaPTAN XML file,
and group them by stop type.
Args:
file_path (str): Path t... | Python |
;
audioSource.Play();
}
/// <summary>
/// Sets all buttons to be interactable or not.
/// </summary>
private void SetButtonsInteractable(bool interactable)
{
if (generateButton != null) generateButton.interactable = interactable;
if (createMaleButton != null) createM... | C# |
OfflineFrame createEmptyInstance() => create();
static $pb.PbList<OfflineFrame> createRepeated() => $pb.PbList<OfflineFrame>();
@$core.pragma('dart2js:noInline')
static OfflineFrame getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<OfflineFrame>(create);
static OfflineFrame? _defaultInstanc... | Dart |
.ItemAccessor}.Int", summary:
[
$"{name} as int. <br/>",
$"To get other types use methods such as .Decimal(\"{name}\")"
]),
]
:
[
GenPropSnip(tabs, "decimal", name, $"{Specs.ItemAccessor}.Decimal"... | C# |
.6 series, and somewhat earlier) the kernel uses a high page
for signal trampolines, so the cache flushes are not an issue. But since
we do not have a vDSO, continue to use these so that we can provide
unwind information.
Start the unwind tables at least one instruction before the signal
trampoline, be... | Assembly |
int f = 1 - radius;
int ddF_x = 1;
int ddF_z = -2 * radius;
int x = 0;
int z = radius;
grid.setData(x0, y0, z0 + radius, Grid.INSIDE, mat);
//setPixel(x0, z0 + radius);
grid.setData(x0, y0, z0 - radius, Grid.INSIDE, mat);
//setPixel(x0, z0 - rad... | Java |
= 0;
#ifndef NDEBUG
int HexagonHardwareLoops::Counter = 0;
#endif
/// Abstraction for a trip count of a loop. A smaller version
/// of the MachineOperand class without the concerns of changing the
/// operand representation.
class CountValue {
public:
enum CountValueType {
CV_Register,
CV_... | C++ |
("ErrorLine-CData", "\n<root><![CDATA[ \n foo bar \n", XML_ERROR_PARSING_CDATA, 2);
tester.TestParseError("ErrorLine-Text", "\n<root>\n foo bar \n", XML_ERROR_PARSING_TEXT, 3);
tester.TestParseError("ErrorLine-Comment", "\n<root>\n<!-- >\n", XML_ERROR_PARSING_COMMENT, 3);
tester.TestParseError("... | C++ |
;font-size:14px}._4-i0._5dwa{line-height:12px}._4-i0._5dwa ul{float:left}div._4-i2{background-color:#fff}div._4-i2 div[role=document]{outline:0}._5pfh{overflow-y:auto}._57_a{padding:12px}._4-i2:first-child{border-radius:3px 3px 0 0}._4-i2:last-child{border-radius:0 0 3px 3px}._4-i2:only-child{border-radius:3px}div._5a8... | CSS |
t of.
*/
if (!file_ns_capable(m->file, &init_user_ns, CAP_SYS_ADMIN))
return -EACCES;
if (!lock_task_sighand(task, &flags))
return -ESRCH;
f = READ_ONCE(task->seccomp.filter);
if (!f) {
unlock_task_sighand(task, &flags);
return 0;
}
/* prevent filter from being freed while we are printing it */
__ge... | C |
*
*** SPECIAL REPLAYER FOR BOTH WITH & WITHOUT DRUMS!
*** THIS IS THE REPLAY-SOURCE FOR THE MUSIC-DISK 'HIS MASTERS NOISE'!
***
*** 1990 GLUE MASTER
***
***
*** This release includes the 10 tunes used in the reset
*** part of `His Master's Noise'
***
*** Bestick
*** Game Music 1
*** Gnu-Song
*** Gurksaft
... | Assembly |
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* OpenFirmware helpers for memory drivers
*
* Copyright (C) 2012 Texas Instruments, Inc.
* Copyright (C) 2020 Krzysztof Kozlowski <krzk@kernel.org>
*/
#ifndef __LINUX_MEMORY_OF_REG_H
#define __LINUX_MEMORY_OF_REG_H
#if defined(CONFIG_OF) && defined(CONFIG_DDR)
c... | C |
}
// networkKeyNode := compose.Networks.Content[i]
networkValueNode := c.Networks.Content[i+1]
// If it's a shorthand notation or null value, initialize it as an empty mapping node
if (networkValueNode.Kind == yaml.ScalarNode && networkValueNode.Value == "") || networkValueNode.Tag == "!!null" {
netwo... | Go |
with null values, When mapping to AppUiModels, then return valid AppUiModels with Unknown set as value`() {
val appEntity = AppEntity(null, null, null, true)
val appUiModel = testSubject.mapToUiModel(appEntity)
val UNKNOWN = "Unknown"
assertEquals(UNKNOWN, appUiModel.name)
asse... | Kotlin |
stant-js-websocket";
export type HvacMode =
| "off"
| "heat"
| "cool"
| "heat_cool"
| "auto"
| "dry"
| "fan_only";
export const CLIMATE_PRESET_NONE = "none";
export type HvacAction =
| "off"
| "heating"
| "cooling"
| "drying"
| "idle"
| "fan";
export type ClimateEntity = HassEntityBase & {... | Typescript |
(self.X_train)
for ivec in range(self.nvec):
k1 = Constant(gprinfo[ivec]['k1__constant_value'])
k2 = RBF(gprinfo[ivec]['k2__length_scale'])
kivec = k1 * k2
alpha = 1e-10
ynorm = True
self.__GPR[ivec] = GaussianProcessRegressor(self.X_... | Python |
crédit du Conseil des ombres",
[18389] = "Thander",
[18390] = "Ros\'eleth",
[18391] = "Giselda la Mégère",
[18392] = "Monture d\'homme invisible 30",
[18393] = "Marqueur de crédit des ogres cogneguerre",
[18394] = "Ame en peine éthérienne",
[18395] = "Marqueur de crédit du bûcher cogneguerre",
[18396] =... | Lua |
uiButton(12, width - 80, startPositionY + 24 * 4, 70, 20, "Export"))
buttonList.add(GuiButton(8, width - 80, startPositionY + 24 * 5, 70, 20, "Copy"))
buttonList.add(GuiButton(727, width - 80, startPositionY + 24 * 6, 70, 20, "Revert").also { revertOriginalAccount = it })
buttonList.add(GuiButto... | Kotlin |
rradores y a 6 manipuladores de Shek'zeer en La Nidada de Shek'zeer. El diapasón de perturbación sónica debilitará y confundirá a los kunchong."}},
[31488] = {"Extraño en tierras extrañas", nil, {"Busca al \"Príncipe Negro\" en la Taberna en la Niebla, en La Escalera Velada."}},
[31489] = {"Extraño en tierras extrañas"... | Lua |
},
}
s.addGenesisAccounts(gAccounts)
s.registerSequencer()
// create the expected genesis bridge packet
rollapp := s.hubApp().RollappKeeper.MustGetRollapp(s.hubCtx(), rollappChainID())
packet := s.genesisBridgePacket(rollapp.GenesisInfo)
// send the packet on the rollapp chain
seq, err := s.path.EndpointB.... | Go |
import supybot.conf as conf
import supybot.registry as registry
from supybot import ircutils
import re
def configure(advanced):
# This will be called by supybot to configure this module. advanced is
# a bool that specifies whether the user identified himself as an advanced
# user or not. You should effec... | Python |
//
// Copyright (c) 2015 The ANGLE 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.
//
// WindowSurfaceWGL.h: WGL implementation of egl::Surface for windows
#ifndef LIBANGLE_RENDERER_GL_WGL_WINDOWSURFACEWGL_H_
#define LIBANGL... | C |
checkSum(vSum));
curNode = curNode.next;
}
if (curCarry !== 0) {
curNode.next = new ListNode(curCarry);
}
}
return resultList;
};
import {PlaybackProvider} from "./PlaybackProvider";
export interface Song {
requester: Requester;
timestamp: number;
uri: string;
url: string;
... | Typescript |
if (ret != 0)
return ret;
}
va_start(ap, fmt);
(void)vsnprintf(ea->accum + ea->next, len + 1, fmt, ap);
va_end(ap);
ea->next += len;
return 0;
}
static inline const char *
fy_emit_accum_get(struct fy_emit_accum *ea, size_t *lenp)
{
*lenp = ea->next;
if (!ea->next) {
return "";
}
return ea->accum;
}
... | C |
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 'package:analysis_server/src/protocol_server.dart' show SourceEdit;
import 'package:analysis_server/src/services/correc... | Dart |
if (active) "/active-base.sh" else "/conservative-base.sh"), "powercfg-base.sh", context)
if (powercfgBase == null) {
powercfgBase = FileWrite.writePrivateShellFile(dir + "/powercfg-base.sh", "powercfg-base.sh", context)
}
// 工具函数
FileWrite.writePrivateShe... | Kotlin |
{
public static void main(String[] args) {
Solution01701 solution = new Solution01701();
List<String> ans = solution.letterCombinations("234");
System.out.println(ans);
}
}
class Solution01701 {
public List<String> letterCombinations(String digits) {
LinkedList<String> comb... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.