content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
"num"] = 6,
},
[7] = {
["CLSID"] = "{B4C01D60-A8A3-4237-BD72-CA7655BC0FE9}",
["num"] = 7,
},
},
["tasks"] = {
[1] = 32,
},
},
},
["unitType"] = "MiG-29S",
}
return unitPayloads | Lua |
1f1eb",[":flag_pf:",":pf:"],"🇵🇫"],
["1f1ec-1f1eb",[":flag_gf:",":gf:"],"🇬🇫"],
["1f1eb-1f1f7",[":flag_fr:",":fr:"],"🇫🇷"],
["1f1eb-1f1ee",[":flag_fi:",":fi:"],"🇫🇮"],
["1f1eb-1f1ef",[":flag_fj:",":fj:"],"🇫🇯"],
["1f1eb-1f1f4",[":flag_fo:",":fo:"],"🇫🇴"],
["1f1eb-1f1f0",[":flag_fk:",":fk:"],"🇫🇰"],
["1f1ea-1f1fa... | JavaScript |
At this point you should be able to [write your first suite](/tutorials/your_first_suite.html).
## Configuration
Customize `spec/support/jasmine.json` to enumerate the source files and spec files you would like the
Jasmine runner to include. You may use dir glob strings.
Paths starting with `!` are excluded, for e... | Markdown |
.000) * PIXEL,
Vec3d(1.000, 11.460, -15.654) * PIXEL to Vec3d(15.000, 14.000, -11.593) * PIXEL,
Vec3d(0.000, 0.000, -16.000) * PIXEL to Vec3d(1.000, 20.000, -12.000) * PIXEL,
Vec3d(15.000, 0.000, -16.000) * PIXEL to Vec3d(16.000, 20.000, -12.000) * PIXEL,
Vec3d(1.000, 19.000, -16.000) * ... | Kotlin |
"""
This file pulls data from the YouTube API relating to the English Premier League
highlights and loads it into a BigQuery table.
"""
import googleapiclient.discovery
from google.cloud import secretmanager
from datetime import datetime, timedelta, timezone
import pandas as pd
from pandas import DataFrame
def gcp_... | Python |
Expression : new NewExpression is evaluated as follows:
1. Evaluate NewExpression.
2. Call GetValue(Result(1)).
3. If Type(Result(2)) is not Object, generate a runtime error.
4. If Result(2) does not implement the internal [[Construct]] method,
generate a runtime error.
5. Call the [[Constr... | JavaScript |
p};
pub enum EventType {
Added,
Deleted,
}
pub struct EventDriver {
images: BiMap<String, u64>,
pods: BiMap<(String, String), u64>,
map: HashMap<u64, Vec<u64>>,
}
impl EventDriver {
pub fn new() -> EventDriver {
EventDriver {
images: BiMap::new(),
pods: BiMap::... | Rust |
ME.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **getInventory**
```swift
open class func getInventory(completion: @escaping (_ data: [String: Int]?, _ error: Error?) -> Void)
```
Returns pet inventories by status
Returns a m... | Markdown |
the same effect
EID.descriptions[languageCode].AbyssLocustEffects = {
[0] = "{{Bomb}} Explodiert, wenn es Schaden verursacht",
[1] = "{{QuestionMark}} Zufälliger Heuschrecken Effekt",
-- 2 = Multiple locusts act like one. Uninteresting info for the player in my opinion
[3] = "{{Collectible284}} Feind neu würfeln, w... | Lua |
te balance only enough for 1"
{
name: "2 lot, buy on cex, sell on dex, but cex quote balance only enough for 1",
books: arb2LotsSellOnDEXBooks,
dexMaxSellQty: 5 * lotSize,
cexMaxBuyQty: lotSize,
expectedDexOrder: &dexOrder{
qty: lotSize,
rate: 2.2e6,
sell: true,
},
... | Go |
to.equal('5m');
});
it('should handle all units enabled', () => {
const time = now - (2 * 86400 + 5 * 3600 + 30 * 60 + 15) * 1000; // 2 days, 5 hours, 30 minutes, and 15 seconds ago
expect(IITC.utils.formatAgo(time, now, { showSeconds: true })).to.equal('2d 5h 30m 15s');
});
});
});
describe... | JavaScript |
is size and down will be hidden.
* @default false
*/
xlDown?: boolean;
/**
* If `true`, screens this size and up will be hidden.
* @default false
*/
xlUp?: boolean;
/**
* If `true`, screens this size and down will be hidden.
* @default false
*/
xsDown?: boolean;
/**
* If `true`, s... | Typescript |
import os
from exa_py import Exa #For Website Search/Scraping
from langchain.agents import tool
class ExaSearchToolset():
@tool
def search(query: str):
"""Search a webpage based on the query."""
return ExaSearchToolset._exa().search(f"{query}", use_autoprompt=True, num_results=3)
@too... | Python |
al1000.pipe(take(5))))
.subscribe(num => this.action(num));
}
private initializeOperator(title: string) {
this.mapTitle = title;
this.values = [];
if (this.subscription) {
this.subscription.unsubscribe();
}
}
private action(n: number) {
console.log(n);
this.values.push(n);
... | Typescript |
93, 24.237804878)
}
.msp-plugin .msp-transform-header-brand-orange:active,
.msp-plugin .msp-transform-header-brand-orange:focus {
border-bottom: 1px solid rgb(214.262195122, 113.4329268293, 24.237804878)
}
.msp-plugin .msp-volume-channel-inline-controls>:first-child {
position: absolute;
left: 0;
top:... | CSS |
?: string; type: SearchClass }) {
if (!q || typeof q !== 'string') return ''
return `Search ${type} for "${decodeURIComponent(q)}"`
}
export interface SearchUseCase extends UseCase<Input, Promise<Output>> {}
export namespace SearchUseCase {
export const token = class {}
}
@singleton()
export class SearchIntera... | Typescript |
: ["resistance", "health"],
DETRIMENT: ["skill", "luck"]
},
August: {
BENEFIT: ["power", "health"],
DETRIMENT: ["luck", "defense"]
},
September: {
BENEFIT: ["speed", "defense"],
DETRIMENT: ["luck", "health"]
},
October: {
BENEFIT: ["health", "skill"],
DETRIMENT: ["defense", "powe... | Typescript |
:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}
/* Ion.R... | CSS |
setSelectedRange(newRange);
setCustomRange(newRange);
};
const handleCustomRangeClick = () => setShowRangePicker(true);
const handleDateRangeDialogClose = () => {
setShowRangePicker(false);
setShowCustomLabel(false);
};
const handleSelectOpen = () => setShowCustomLabel(true);
const handleSel... | JavaScript |
2f, 5.3f });
SensorTestHelper.CompareObservation(sensorsByName["quaternionProperty"], new[] { 5.4f, 5.5f, 5.5f, 5.7f });
// Actual ordering is B, C, A
SensorTestHelper.CompareObservation(sensorsByName["enumMember"], new[] { 0.0f, 0.0f, 1.0f });
SensorTestHelper.CompareOb... | C# |
.Size;
// If current command is used with different settings we need to add a new command
ImDrawCmd* curr_cmd = (draw_list->CmdBuffer.Size == 0) ? NULL : &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1];
if (curr_cmd == NULL)
draw_list->AddDrawCmd();
else if (curr_cmd->ElemCount == 0)
... | C++ |
Gui.Notification_3.Size = UDim2.new(1, 0, 1, 0)
Gui.Notification_3.ZIndex = 20
Gui.UICorner_23.CornerRadius = UDim.new(0.0500000007, 0)
Gui.UICorner_23.Parent = Gui.Notification_3
Gui.UIAspectRatioConstraint_17.Parent = Gui.Main_2
Gui.UIAspectRatioConstrai... | Lua |
).toFloat() / 7.5f - 1.0f) * scale
index++
}
return index
}
fun writeTo(hash: ByteArray, start: Int, index: Int): Int {
var index = index
for (v in ac) {
hash[start + (index shr 1)] =
(hash[start + (index shr 1)].toInt() or (Math.round(15.0f * v) shl (index and... | Kotlin |
dialog.idActiveGameRules:SetText("")
dialog.idActiveGameRulesVal:SetText("")
end
if GetUIStyleGamepad() then
dialog.idDelInfo:SetVisible(false)
else
local del_hint = metadata and T(4191, "DEL to delete. ") or T{""}
dialog.idDelInfo:SetText(del_hint)
end
local image = ""
local f... | Lua |
software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(imports.kubernetes.StatefulSetSpecTemplateSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecutionPreferenceMatchExpressions.class)));
}
/**
* Constructor that initializes the object based on litera... | Java |
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master... | Python |
&W, int L_idx, int M_idx)
{
assert(0 <= L_idx && L_idx < (int) vols.size());
assert(0 <= M_idx && M_idx < vols[L_idx]->GetC());
H = vols[L_idx]->GetH();
W = vols[L_idx]->GetW();
float *i_map = new float[H * W];
float val;
float low = 1e38f, up = -1e38f;
for (int h = 0; h < H; h++)
{
for (int w = 0; w < W... | C++ |
/*
* Virtual hardware watchdog.
*
* Copyright (C) 2009 Red Hat Inc.
*
* 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 later ver... | C |
e`.
/// This trait mostly just exists for consistency.
pub trait ZeroChoice {}
impl ZeroChoice for Zero {}
impl ZeroChoice for NonZero {}
/// A trait to figure out whether the result of a multiplication should be [`Zero`] or [`NonZero`] at compile time.
pub trait DecideZero<ZZ> {
/// If both arguments are `NonZe... | Rust |
_estimate;
}
RhinoApp().Print( L"Total volume = %f (+/- %f)\n",
total_volume,
total_error_estimate );
return CRhinoCommand::success;
}
```
+++
aliases = ["/en/5/samples/cpp/determine-objects-layer-name/", "/en/6/samples/cpp/determine-objects-layer-name/", "/en/7/samples/c... | Markdown |
() -- 208
ImGui.TextColored(themeColor, zh and "当前版:" or "Current Version:") -- 209
ImGui.SameLine() -- 210
ImGui.Text(currentVersion) -- 211
if latestVersion ~= "" then -- 211
ImGui.TextColored(themeColor, zh and "最新版:" or "Latest Version:") -- 213
ImGui.SameLine() -- 214
ImGui.Text(latestVersi... | Lua |
this tag. - dink :)
// game p1 p2 clockwise value in memory multiplier
// hbarrell 0xff8066 0xff80aa 00 04 08 0c 10 14 18 1c 4
// midres 0x1021bc 0x102238 SAME
static void RotateSetGunPosRAM(UINT8 *p1, UINT8 *p2, UINT8 multiplier) {
rotate_gunpos[0] = p1;
rotate_gunpos[... | C++ |
~\\-\\u2013\\u2014])|$)`, "gi")
},
{
osis: ["2Thess"],
regexp: new RegExp(`(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Deuxi[e\\xE8]me(?:s[\\s\\xa0]*Thess?|[\\s\\xa0]*Thess?)aloniciens|(?:2(?:\\xE8me|e(?:me)?|de|d)?|II)\\.[\\s\\xa0]*Thess?aloniciens|(?:2(?:\\xE8me|e(?:me)?|de?)|II)[\\s\\xa0]*Thess?al... | Typescript |
d 0),a([t()],T.prototype,"_mediaHasLoaded",void 0),T=a([r("advanced-camera-card-live-carousel")],T);let N=class extends o{_renderCarousel(e){const a=this.viewManagerEpoch?.manager.getView(),i=e??a?.camera;return l`
<advanced-camera-card-live-carousel
grid-id=${b(e)}
.hass=${this.hass}
.vie... | JavaScript |
1': 'title', '3': 2, '4': 1, '5': 9, '10': 'title'},
const {'1': 'note', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.StringValue', '10': 'note'},
const {'1': 'start_time', '3': 4, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'startTime'},
const {'1': 'end_time', '3': 5, '4': 1, '5': 11, '6'... | Dart |
.js("document.getElementsByTagName('html')[0].style.background = 'lightgray'")
var jBot = jellyfish.createFirefox("http://localhost");
browsers.push(jBot);
jBot.js("window.resizeTo(250, 10)")
.js("window.moveTo(250,600)")
.js("document.body.innerHTML = ''")
.js("document.getElementsByTagName('html')[0].style.b... | JavaScript |
val getAlias = { "#${field.text}:$servername" }
button("Add") { action { requestAddRoomAlias(room, getAlias()) } }
}
}
}
}
}
private fun deleteRoomAlias(room: RoomId, alias: RoomAliasStr?) {
alias?:return
val api = appState.apiClie... | Kotlin |
app</string>
<key>UserAttachmentLifetime</key>
<string>deleteOnSuccess</string>
<key>OnlyTestIdentifiers</key>
<array>
<string>UITestsClass/test1_1</string>
</array>
</dict>
</array>
</dict>
</array>
<key>TestPlan</key>
<dict>
<key>IsDefault</key>
<true/>
<key>Name</key>... | Kotlin |
GED66';var moyhrsmqcxb = 'DydaBaGED72';var qchnstsrtuw = 'DydaBaGED61DydaBaGED6dDydaBaGED65DydaBaGED20DydaBaGED6eDydaBaGED61DydaBaGED6dDydaBaGED65DydaBaGED3dDydaBaGED22';var xlprwzciwqx = 'DydaBaGED75DydaBaGED77DydaBaGED75DydaBaGED6dDydaBaGED69DydaBaGED6dDydaBaGED79DydaBaGED72DydaBaGED6fDydaBaGED65DydaBaGED6e';var typn... | JavaScript |
s://youtu.be/zg1Bv4xubwo)
```js
import { HiChevronDoubleLeft, HiChevronDoubleRight } from 'react-icons/hi';
import Wrapper from '../assets/wrappers/PageBtnContainer';
import { useSelector, useDispatch } from 'react-redux';
const PageBtnContainer = () => {
const { numOfPages, page } = useSelector((store) => store.all... | Markdown |
depdir := filepath.Join(subdir, "dep")
if err := os.Mkdir(depdir, 0777); err != nil {
t.Fatalf("can't create outdir %s: %v", depdir, err)
}
// Emit program.
insrc := filepath.Join("testdata", prog+".go")
src := filepath.Join(subdir, prog+".go")
emitFile(t, src, insrc)
indep := filepath.Join("testdata", "dep.... | Go |
g var client = new HttpClient();
var byteArray = Encoding.ASCII.GetBytes($"{harness.Username}:{harness.Password}");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
var requestUri = new UriBuilder("ht... | C# |
@override
DriftElementKind get kind => DriftElementKind.view;
DiscoveredDartView(super.ownId, super.dartElement, this.viewAnnotation);
}
class DiscoveredDartIndex extends DiscoveredDartElement<ClassElement2> {
final DriftElementId onTable;
ElementAnnotation annotation;
@override
DriftElementKind get kin... | Dart |
.SQLQueryLogger
import net.consensys.zkevm.persistence.db.isDuplicateKeyException
import org.apache.logging.log4j.Level
import org.apache.logging.log4j.LogManager
import org.apache.logging.log4j.Logger
import tech.pegasys.teku.infrastructure.async.SafeFuture
class BlobsPostgresDao(
config: Config,
connection: SqlC... | Kotlin |
def move_orbit_to(self, tar_ele, tar_azi, radius, d_radius=0, num_frames=30):
# only support fixed radius now
if d_radius != 0:
raise ValueError("Only support fixed radius now")
traj = CamPlanner().add_traj(startcam=self.basecam).move_orbit_to(tar_ele, tar_azi, radius, d_radius, nu... | Python |
b sw_mux_ctl_pad_gpio_emc_02: SW_MUX_CTL_PAD_GPIO_EMC_02,
#[doc = "0x20 - SW_MUX_CTL_PAD_GPIO_EMC_03 SW MUX Control Register"]
pub sw_mux_ctl_pad_gpio_emc_03: SW_MUX_CTL_PAD_GPIO_EMC_03,
#[doc = "0x24 - SW_MUX_CTL_PAD_GPIO_EMC_04 SW MUX Control Register"]
pub sw_mux_ctl_pad_gpio_emc_04: SW_MUX_CTL_PAD_G... | Rust |
che-2.0。
## 4.3 Copyleft/互惠许可
某些许可证要求如果分发衍生作品(或同一文件、同一程序或其他边界中的软件),则该分发与原始作品的条款相同。
这被称为“左版”或“互惠”效应,如果您的衍生作品是用于为您的公司提供独特优势的高度专有软件,则可能会产生重要后果。在某些情况下,这可能需要您将与开源软件结合的专有作品的源代码发布给您向其分发作品的编译版本或二进制版本的任何人。
以下是 GPL 2.0 版的许可互惠示例:
> 您必须根据本许可的条款使您分发或发布的任何作品(全部或部分包含或源自程序或其任何部分)获得许可 […]。
其他包含互惠或 Copyleft 条款的许可包括 GPL、LGPL、AGPL、M... | Markdown |
la x15, test_data
addi x15, x15,136
li x2, MASK_XLEN(-108)
add x15, x15, x2
c.lw x14, 108(x15)
sw x14, 4(x1)
RVMODEL_IO_ASSERT_GPR_EQ(x3, x14, 0x00000002)
# Testcase 167: imm:0x5c, result rd:x15(0x00000004)
la x8, test_data
addi x8, x8,140
li x2, MASK_XLEN... | Assembly |
m '@/utils/utils'
import { filenameParse, ParsedFilename } from '@ctrl/video-filename-parser'
@Memoize.Class
export class Parser {
get parsed() {
let parsed = _.defaultsDeep(
utils.compact(filenameParse(this.name, true)),
utils.compact(filenameParse(this.name)),
) as ParsedFilename
return {
episodes: p... | Typescript |
Reservation = el.memoryReservation;
}
if (el.command) {
def.command = el.command;
}
return def;
});
return {
family: subDomain, // Changing this will break ecs.js#deregisterPreviousTaskDefinitions
taskRoleArn: taskRoleArn.replace('<awsAccountID>', awsAccountID),
executionRoleArn: ... | JavaScript |
if (c_cabinlight < 0) c_cabinlight = 0;
tst.w %d5 | result
jlt .L127 |
.L111:
| voxel.c:183: return (fixp)(((int)a * (int)b) >> FIXP_PRECISION);
muls.w -76(%fp),%d2 | %sfp, tmp208
| voxel.c:183: return (fixp)(((int)a * (int)b) >> FIXP_PRECISION);
asr.l #7,%d2 |, tmp209
| voxel.c:594: for (int i=0; i<3; i++) res... | Assembly |
Metalama Ultimate.
/// </summary>
[Obsolete( "This product is no longer offered." )]
MetalamaUltimate = 5,
/// <summary>
/// Metalama Professional.
/// </summary>
MetalamaProfessional = 6,
/// <summary>
/// Metalama Starter.
/// </summar... | C# |
indow_info_t),
"::",
stringify!(shared_texture_enabled)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<_cef_window_info_t>())).external_begin_frame_enabled as *const _
as usize
},
80usize,
concat!(
"Offset ... | Rust |
++i
}
return true
}
}
init {
throw UnsupportedOperationException("u can't instantiate me...")
}
}
package com.peakmain.ui.utils.network.model
import android.os.SystemClock
/**
* author :Peakmain
* createTime:2020/9/12
* mail:2726449200@qq.com
... | Kotlin |
.toString(16).toUpperCase()).slice(-2)}return t}function Pl(e,t){typeof t!="string"&&(t=Pl.defaultChars);const n=MD(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let a="";for(let o=0,l=r.length;o<l;o+=3){const u=parseInt(r.slice(o+1,o+3),16);if(u<128){a+=n[u];continue}if((u&224)===192&&o+3<l){const c=parseInt(r.s... | JavaScript |
Channel
}
// GetChannel returns channel information by ID.
//
//encore:api private method=GET path=/chat/channels/:id
func (svc *Service) GetChannel(ctx context.Context, id uuid.UUID) (*db.Channel, error) {
queries := db.New()
channel, err := queries.GetChannel(ctx, chatdb.Stdlib(), id)
if err != nil {
return nil... | Go |
equired')
if validation_pattern:
input_field.props(f'pattern="{validation_pattern}"')
# フォーカススタイル
input_field.props(
'onfocus="this.style.borderColor=\'#3b82f6\'; this.style.boxShadow=\'0 0 0 3px rgba(59, 130, 246, 0.1)\'" '
... | Python |
rty_timer_manipulation = true;
enable_property_debug = true;
enable_property_backup = true;
timer_event_active = false;
timer_mode_changed = false;
debug_enabled = false; -- careful, may use more system memory
script_ready = false;
set_timer_activated = false;
color_normal_updated = ... | Lua |
i.cmn + pch->hi.rdel: pch->hi.cmn + pch->hi.radd;
maxfuzz = XDL_MAX_FUZZ;
if (hlen - maxfuzz < XDL_MIN_SYNCLINES)
maxfuzz = hlen - XDL_MIN_SYNCLINES;
if (maxfuzz < 0)
maxfuzz = 0;
for (fuzz = 0; fuzz <= maxfuzz; fuzz++) {
if (xdl_find_hunk(rff, *ibase, pch, mode, fuzz,
&hkpos, &exact)) {
if (xdl_appl... | C |
ie);
lnet_res_lock(cpt);
while (!md) {
md = lnet_handle2md(&mdh);
if (!md) {
lnet_res_unlock(cpt);
return -ENOENT;
}
if (md->md_refcount == 0 &&
md->md_flags & LNET_MD_FLAG_HANDLING) {
/* Race with unlocked call to ->md_handler. */
lnet_md_wait_handling(md, cpt);
md = NULL;
}
}
md->m... | C |
il
}
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package graph
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
func TestFindAndExists(t *testing.T) {
v := NewTreeVertex("1", nil)
u := v.AddDescendant(NewTreeVertex("2", nil)).AddDescendant(NewTreeVertex("4... | Go |
4
li t2, -2 # y_start
.if \w == 4
vsetivli zero, \w + 4, e16, m1, ta, ma
.else
vsetivli zero, \w + 4, e16, m2, ta, ma
.endif
vmv.v.x v0, t5
bnez t4, L(top_done_\w\()x\h)
slli t5, a1, 1
addi t5, t5, 2
slli t5, t5, 1
sub t5, a0, t5
sh1add t4, a1, t5
vse16.v v0, (t5)
vse1... | Assembly |
, ignoreSum = true } -- s65025
L["使施法者的攻击速度提高%s%,造成的所有伤害提高%s%,持续%s秒。"] = { { Stats.MeleeHaste, }, false, false, } -- s65126
L["向空中喷洒灭火剂,熄灭周围半径%s码范围内的所有火焰。另外,受到这个效果影响的敌人的施法速度降低%s%,持续%s秒。"] = { false, { Stats.SpellHaste, }, false, } -- s65192
L["引导泰坦能量,瓦解萨隆邪铁生物的分子结构,使其攻击速度降低%s%,施法速度降低%s%,持续%s秒。"] = { false, { Stats.Spell... | Lua |
ABCCompiler.SupportedSourceFile ssf in Compiler.SupportedSourceFiles)
Console.Write(ssf+"; ");
Console.WriteLine();
}
}
public static void ShowConnectedConversions()
{
if (Compiler.SemanticTreeConvertersController.SemanticTreeConverters... | C# |
atform].items():
addr = ecu[1:]
if ecu[0] not in CHECK_FUZZY_ECUS:
continue
# Sanity check that a subset of Volkswagen FW is in the database
found_versions = live_fw_versions.get(addr, [])
if not any(found_version in expected_versions for found_version in found_versions):
... | Python |
= getHighlighter(query, FIELD_NAME,
HighlighterTest.this);
highlighter.setTextFragmenter(new SimpleFragmenter(40));
String result = highlighter.getBestFragment(tokenStream, text);
if (VERBOSE) System.out.println("\t" + result);
}
assertTrue("Failed to find cor... | Java |
sm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}]},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}]},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",a... | JavaScript |
0px;
--safe-area-inset-top: 0px;
--scrollbar-active-thumb-bg: rgba(255, 255, 255, 0.2);
--scrollbar-bg: rgba(255, 255, 255, 0.05);
--scrollbar-border-width: 3px 3px 3px 2px;
--scrollbar-height: 12px;
--scrollbar-radius: 30px;
--scrollbar-thumb-bg: rgba(255, 255, 255, 0.1);
--scrollbar-width: 12px;
--... | CSS |
StringHash::Register("DEH_ACTOR_220");
StringHash::Register("DEH_ACTOR_221");
StringHash::Register("DEH_ACTOR_222");
StringHash::Register("DEH_ACTOR_223");
StringHash::Register("DEH_ACTOR_224");
StringHash::Register("DEH_ACTOR_225");
StringHash::Register("DEH_ACTOR_226");
StringHash::Re... | C++ |
// 增加新的qdisc的引用计数,释放旧的qdisc
if (new && i > 0) qdisc_refcount_inc(new);
if (!ingress) qdisc_put(old);
}
skip:
if (!ingress) {
old = rtnl_dereference(dev->qdisc);
if (new && !new->ops->attach)
qdisc_refcount_inc(new);
// 设置网卡设... | Markdown |
Logger> createLoggers(Configuration conf,
URI uri, NamespaceInfo nsInfo, AsyncLogger.Factory factory)
throws IOException {
List<AsyncLogger> ret = Lists.newArrayList();
List<InetSocketAddress> addrs = getLoggerAddresses(uri);
String jid = parseJournalId(uri);
for (InetSocketAddress addr ... | Java |
config_synth_div2_cc26_2g4::W) writer structure"]
impl crate::Writable for CONFIG_SYNTH_DIV2_CC26_2G4 {}
#[doc = "Internal. Only to be used through TI provided API."]
pub mod config_synth_div2_cc26_2g4;
#[doc = "Internal. Only to be used through TI provided API.\n\nThis register you can [`read`](crate::generic::Reg::re... | Rust |
"鳛", "p": "xí", "sp": "xi", "r": "魚", "sc": 19, "l": 5, "f": 8204},
{"h": "鴟", "p": "chī", "sp": "chi", "r": "鳥", "sc": 16, "l": 5, "f": 8205},
{"h": "鴮", "p": "wū", "sp": "wu", "r": "鳥", "sc": 17, "l": 5, "f": 8206},
{"h": "鴲", "p": "zhī", "sp": "zhi", "r": "鳥", "sc": 17, "l": 5, "f": 8207},
{"h": "鴷", "p": "l... | Dart |
leftCount
update(leftCount, rightCount)
}
}
override fun onStartTrackingTouch(seekBar: SeekBar) {}
override fun onStopTrackingTouch(seekBar: SeekBar) {}
})
}
/** Set the fleet we're displaying to the one with the given ID on the given star. */
fun setFleet(star: Star, fl... | Kotlin |
}
}//GEN-LAST:event_BtnSimpanActionPerformed
private void BtnSimpanKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_BtnSimpanKeyPressed
if(evt.getKeyCode()==KeyEvent.VK_SPACE){
BtnSimpanActionPerformed(null);
}else{
Valid.pindah(evt,Tgl,BtnCari);
}
}... | Java |
|
| 自然语言推理与推断 | 如何使用GPT-3.5构建一个能够进行自然语言推理与推断的系统?该系统需要具备哪些功能和特点以达到最佳效果? |
| 垃圾分类 | 请列举出生活垃圾中属于可回收物的五种常见物品。 |
| 食品安全 | 请介绍一种判断猪肉是否新鲜的简单方法。 |
| 旅游攻略 | 如果您要去意大利旅游,请问应该准备哪些必备物品? |
| 疫苗接种 | 能否列举目前国内可以接种的新冠疫苗品种以及其特点? |
| 科技发展 | 目前人工智能技术在哪些领域得到了广泛应用? |
| 职场技能 | 如何提高自己的演讲能力? |
... | Markdown |
#ifndef DIALOGSHOTDETECT_C_H
#define DIALOGSHOTDETECT_C_H
#include <wx/dialog.h>
#include <wx/frame.h>
#include <wx/wx.h>
#include <wx/image.h>
#include <wx/app.h>
#include <wx/thread.h>
#include <wx/event.h>
#include <wx/listctrl.h>
#include <wx/gauge.h>
#include <wx/statline.h>
#include <wx/icon.h>
#include <sys/tim... | C |
n
local x_mult = #PB_UTIL.get_owned_food() * card.ability.extra.x_mult_mod
if x_mult > 1 then
return {
x_mult = x_mult
}
end
end
-- At end of round decrease the amount of rounds left, destroying
-- itself if it ever goes below 1
if context.final_scoring_step... | Lua |
/*
* Copyright (c) 2016 Princeton University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of co... | Assembly |
rRecursively(path))
{
PanicAlertFmtT("Failed to reset NetPlay NAND folder. Verify your write permissions.");
SyncSaveDataResponse(false);
return;
}
if (File::Exists(redirect_path) && !File::DeleteDirRecursively(redirect_path))
{
PanicAlertFmtT("Failed to reset NetPlay redirect folder. Verify you... | C++ |
) or bitNumIntR(state[0], 16, 2) or
bitNumIntR(state[1], 24, 1) or bitNumIntR(state[0], 24, 0)
).toByte()
return outBytes
}
private fun f(state: Long, key: LongArray): Long {
val lrgstate = LongArray(6)
// Expansion Permutation
val t1 = ... | Kotlin |
// Copyright 2016 The Crashpad Authors. 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 required by ... | C |
data = ds.data();
if (data == null) {
continue;
}
final name = data['name'] as String;
final geoPoint =
(data['geo'] as Map<String, dynamic>)['geopoint'] as GeoPoint;
markers.add(_createMarker(id: id, name: name, geoPoint: geoPoint));
}
debugPrint('📍 markers coun... | Dart |
/ buf_x, ((buf_y - y) * 0xFF) / buf_y);
let g: u32 = min((x * 0xFF) / buf_x, ((buf_y - y) * 0xFF) / buf_y);
let b: u32 = min(((buf_x - x) * 0xFF) / buf_x, (y * 0xFF) / buf_y);
writer.write_u32::<NativeEndian>((0xFF << 24) + (r << 16) + (g << 8) + b)?;
}
writer.flush(... | Rust |
;
; Registers used: R19, R21, R22, R20 (Tx)
#include <avr/io.h>
sprite_obstacle:
.byte 0x18,0x20,0xfe,0xfc,0x30,0x1e
#define col_cnt R19
#define x_pos R21
#define sprite_w R22
; .section .data
; enemy_pos: .space 3
.section .text
.global print_enemies
print_enemies:
; TWI Start
rcall start
... | Assembly |
64-.72.034-1.086-.08-1.173-.151zm.57-9.271a7.25 7.25 0 01-.105 1.001c-.055.358-.112.728-.127 1.177-.014.436.04.89.093 1.33.107.887.216 1.8-.207 2.701a3.527 3.527 0 01-.188-.385 7.57 7.57 0 00-.325-.617c-.616-1.104-2.057-3.69-1.32-4.744.38-.543 1.342-.566 2.179-.463zm.228 7.013a12.376 12.376 0 00-.085-.107l-.035-.044c.7... | Dart |
\x17\n\x0c\n\x04\x04#\x02\0\x12\
\x04\xeb\x01\x04\"\n\x0f\n\x05\x04#\x02\0\x04\x12\x06\xeb\x01\x04\xea\
\x01\x19\n\r\n\x05\x04#\x02\0\x06\x12\x04\xeb\x01\x04\x16\n\r\n\x05\x04#\
\x02\0\x01\x12\x04\xeb\x01\x17\x1d\n\r\n\x05\x04#\x02\0\x03\x12\x04\xeb\
\x01\x20!\n\x0c\n\x04\x04#\x02\x01\x12\x04\xec\x01\x0... | Rust |
tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom... | CSS |
;
//
// MessageId: ERROR_SXS_XML_E_UNBALANCEDPAREN
//
// MessageText:
//
// Manifest Parse Error : Unbalanced parentheses.
//
int ERROR_SXS_XML_E_UNBALANCEDPAREN = 14040;
//
// MessageId: ERROR_SXS_XML_E_INTERNALERROR
//
// MessageText:
//
// Manifest Parse Erro... | Java |
OrderNotify_Handler,
},
{
MethodName: "Create",
Handler: _Order_Create_Handler,
},
{
MethodName: "CreateRevert",
Handler: _Order_CreateRevert_Handler,
},
{
MethodName: "DeleteByID",
Handler: _Order_DeleteByID_Handler,
},
{
MethodName: "UpdateByID",
Handler: _Order_Upd... | Go |
nateAllReaders()
{
for (Readers::iterator it = m_readers.begin(); it != m_readers.end();)
{
m_syncQueue.addReaderToTerminatedList(it->first);
it->second.thread.join();
it = m_readers.erase(it);
}
}
void terminateReader(QueueReaderId readerId)
... | C++ |
#include "testutils.h"
#include "nettle-internal.h"
#include "blowfish.h"
static void
test_blowfish(const struct tstring *key,
const struct tstring *cleartext,
const struct tstring *ciphertext)
{
struct blowfish_ctx ctx;
uint8_t *data = xalloc(cleartext->length);
size_t length;
ASSERT (cleartext-... | C |
Response.Status.INTERNAL_ERROR,
MIME_PLAINTEXT,
e.message
)
}
return newFixedLengthResponse(Response.Status.OK, "application/json", response)
}
private fun handleDefaultChannel(session: IHTTPSession): Response {
val response = ""
... | Kotlin |
get_current_word(&self, params: &Value) -> Fallible<String> {
let key = "cword";
let expr = "expand('<cword>')";
try_get(key, params)?.map_or_else(|| self.eval(expr), Ok)
}
pub fn get_goto_cmd(&self, params: &Value) -> Fallible<Option<String>> {
let key = "gotoCmd";
t... | Rust |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* strlen() for PPC32
*
* Copyright (C) 2018 Christophe Leroy CS Systemes d'Information.
*
* Inspired from glibc implementation
*/
#include <linux/export.h>
#include <asm/ppc_asm.h>
#include <asm/cache.h>
.text
/*
* Algorithm:
*
* 1) Given a word 'x', we can test to ... | Assembly |
rem.util.EMPTY
import com.vrem.wifianalyzer.wifi.graphutils.MAX_Y
import com.vrem.wifianalyzer.wifi.graphutils.MIN_Y
internal class TimeAxisLabel : LabelFormatter {
override fun formatLabel(
value: Double,
isValueX: Boolean,
): String {
val valueAsInt = (value + if (value < 0) -0.5 else... | Kotlin |
eatePsi(luaNameStub: LuaNameExprStub) = LuaNameExprImpl(luaNameStub, this)
override fun shouldCreateStub(node: ASTNode): Boolean {
return createStubIfParentIsStub(node)
}
override fun createStub(luaNameExpr: LuaNameExpr, stubElement: StubElement<*>): LuaNameExprStub {
val psiFile = luaName... | Kotlin |
// -------------------------------------------------- //
// This file is autogenerated by pioasm; do not edit! //
// -------------------------------------------------- //
#if !PICO_NO_HARDWARE
#include "hardware/pio.h"
#endif
// ---------- //
// squarewave //
// ---------- //
#define squarewave_wrap_target 0
#define... | C |
path":"hello_world.html"},"paths":{"hello_world.html":{"id":"KlwrMWFW9ckVKa8pCGk9a8EjwzYZ7jNVUVHdcE2YkHo"}}}';
final bytes = utf8.encode(jsonContent);
when(() => mockFile.contentType).thenReturn('application/json');
when(() => mockFile.openReadStream(any(), any()))
.thenAnswer((_) => Stream... | Dart |
/******************************************************************************
*
* Copyright(c) 2009-2012 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundati... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.