content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
7%BA%A2%E9%AD%94%E4%B9%A1%E7%AB%8B%E7%BB%98%EF%BC%89.png/20px-%E9%9C%B2%E7%B1%B3%E5%A8%85%EF%BC%88%E7%BA%A2%E9%AD%94%E4%B9%A1%E7%AB%8B%E7%BB%98%EF%BC%89.png" decoding="async" loading="lazy" width="20" height="40" srcset="https://upload.thwiki.cc/thumb/5/56/%E9%9C%B2%E7%B1%B3%E5%A8%85%EF%BC%88%E7%BA%A2%E9%AD%94%E4%B9%A1... | Markdown |
g" then
argTable[i] = combinedText
end
end
end
--Grab count for both the callback and the notes feature
local announceCount
if self.announceType and self.announceType:find("count") then
if self.announceType == "interruptcount" then
announceCount = argTable[2]--Count should be second arg in ta... | Lua |
lier extends Int7SQVectorScorerSupplier {
public DotProductSupplier(MemorySegmentAccessInput input, QuantizedByteVectorValues values, float scoreCorrectionConstant) {
super(input, values, scoreCorrectionConstant, fromVectorSimilarity(DOT_PRODUCT, scoreCorrectionConstant, BITS));
}
... | Java |
elds[vep_csq_fields_map['field2index']['HGVSc']] != "":
hgvsc = str(csq_fields[vep_csq_fields_map['field2index']['HGVSc']].split(':')[1])
else:
if len(primary_csq_pick) == 1:
if 'HGVSc' in primary_csq_pick[0]:
if primary_csq_pick[0]['HGVSc'] is not Non... | Python |
})
.then(res => {
response = res
return res
})
return response
}
private mutationCreatePetition = (fields: createApiPetitionMutation) => {
const fieldsToUpdate: createApiPetition = {
subscribers: fields.subscribers,
relatedInstallation:
fields.relatedInst... | Typescript |
transport_mode != 'bus'):
logging.info(f"Skipping non-bus or non-ongoing message: journey_type={journey_type}, temporal_type={temporal_type}, transport_mode={transport_mode}")
return
producer.send(TOPIC, key=kafka_key, value=event_body)
print(f"Produced: key={kafka_key} -> {event_body}")
```
---
## Batch ET... | Markdown |
ld; i<=maxThreshold; i++) {
count = histogram[i];
value = cTable[i];
if (count>0 && !Double.isNaN(value)) {
pixelCount += count;
sum += value*count;
isum += i*count;
sum2 += (value*value)*count;
if (count>maxCount) {
maxCount = count;
mode = i;
}
}
}
area = pixelCount*p... | Java |
er.address.clone();
drop(session_reader);
let mut message_buffer = Vec::new();
loop {
let message = connection.receive(&mut message_buffer).await;
match message {
ClientMessage::Greeting(greeting) => {
connection
... | Rust |
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
h1 {
text-align: center;
}
input,
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
color: #0f0f0f;
backgrou... | CSS |
ия.",
"[Скины] Оптимизация скина для области квестов на карте мира.",
"[Скины] Обновление скина Auctionator.",
"[Дополнительные ячейки предметов] Обновление списка предметов.",
"[Сдача] Функция автоматической сдачи не будет применяться к диалогам, в которых могут быть варианты пропуска сплетен.",
"[Чат-с... | Lua |
.toFixedLength(50) +
city.toFixedLength(25) +
state +
zipCode.toFixedLength(10)
val seekPoint = (id - 1) * RECORD_LENGTH
raf.use {
it.seek(seekPoint)
it.writeLong(id)
it.writeUTF(text)
}
}
}
fun main(args: Array<String>... | Kotlin |
Maybe_MEMSET_180512a50(local_9df0, 0xaa, 0x168);
Maybe_MEMSET_180512a50((char*)local_9f60, 0xaa, 0x168);
Maybe_MEMSET_180512a50((char*)local_a0d0, 0xaa, 0x168); //0x4ee00
Maybe_MEMSET_180512a50((char*)local_a240, 0xaa, 0x168);
Maybe_MEMSET_180512a50((char*)local_87d0, 0xaa, 0x2d0);
Maybe_MEMSET_18... | C++ |
/*
* NET3: Support for 802.2 demultiplexing off Ethernet (Token ring
* is kept separate see p8022tr.c)
* 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 Licens... | C |
if (!isMobile)
ConstrainedBox(
constraints: const BoxConstraints(minWidth: 140),
child: Text(
'${translate("Username")}:',
textAlign: TextAlign.right,
).marginOnly(right: ... | Dart |
(userFile)
} catch (e: IOException) {
e.printStackTrace()
}
})
}
fun delHome(name: String?) {
Bukkit.getServer().scheduler.runTaskAsynchronously(plugin!!, Runnable {
for (i in homes.keys) {
if (i.equals(name, ignoreCase = true)... | Kotlin |
using System;
using BEPUphysics.Constraints;
using BEPUphysics.Entities.Prefabs;
using BEPUphysics.Materials;
using BEPUphysics.Settings;
using BEPUutilities;
using Microsoft.Xna.Framework.Input;
namespace BEPUphysicsDemos.Demos.Extras
{
/// <summary>
/// Bunch of blocks arranged in a 3d pyramid, waiting to ... | C# |
str.indexOf("(") + 1, str.indexOf(")"))
.replace("parent=", "").replace(".class", "")
// 收集所有的接口以及实现类的路径
config[parent] = it.ctClass.name
}
return config
}
private fun genMethodBody(config: Map<String, String>): List<String> {
return mutableListO... | Kotlin |
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using SciChart.Charting.Model.DataSeries;
namespace SciChart.Examples.Examples.StyleAChart.UseLabelProvider
{
public partial class UseLabelProvider : UserControl
{
public UseLabelProvider()
{
Initializ... | C# |
allenges:
# Add if the user has solved the challenge or not
if request.user.is_authenticated and challenge.solved(request.user):
challenge_to_add = (challenge, True)
else:
challenge_to_add = (challenge, False)
# Add challenge to category
if challenge.cate... | Python |
rivate readonly hashProvider: IHashProvider,
) {}
async resetPassword({ token, password }: IRequest): Promise<void> {
const userToken = await this.userTokenRepository.findByToken(token);
if (!userToken) {
throw new BadRequestException('User token does not exists');
}
const user = await this... | Typescript |
essage)
it("updates the page title") {
logMonitor.debugLogs().shouldContain("Page title set to 'Krail'") // we cannot access the page title directly
}
}
}
})package uk.q3c.krail.core.sysadmin
import io.mockk.mockk
import io.mockk.verify
import org.jetbrains.spek.ap... | Kotlin |
{ "current_wle_fp5_2_02_02", "Blaster Course" },
// { "current_wle_fp5_2_02_03", "Panna Cotta Guys" },
// { "current_wle_fp5_2_02_04", "The hard Climb" },
// { "current_wle_fp5_2_02_05", "sliding guys" },
// ... | C# |
(warp_train_path, "img2"), 5)
create_virtual_images(os.path.join(warp_test_path, "img1"), 3)
create_virtual_images(os.path.join(warp_test_path, "img2"), 3)
create_virtual_images(os.path.join(comp_train_path, "warp1"), 5)
create_virtual_images(os.path.join(comp_train_path, "warp2"), 5)
create_vi... | Python |
ngth", statOrderKey = "538", statOrder = { 538 }, level = 1, group = "Strength", weightKey = { "not_str", "default", }, weightVal = { 300, 500 }, weightMultiplierKey = { }, weightMultiplierVal = { }, },
["DexterityJewel"] = { type = "Suffix", affix = "of Dexterity", "+(12-16) to Dexterity", statOrderKey = "539", stat... | Lua |
me": "天空之城 卡农",
"verify_id": 0,
"verify_type": 0
}
},
"is_like": 0,
"is_xm": 0,
"is_hot": 4,
"channel": {
"id": "1122",
"name": "多味卡农",
"pic": "https:\/\/qn... | JavaScript |
/*
* Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
* From ASN.1 module "FANSACTwoWayDataLinkCommunications"
* found in "../../../libacars.asn1/fans-cpdlc.asn1"
* `asn1c -fcompound-names -fincludes-quoted -gen-PER`
*/
#include "FANSTimeICAOunitnameFrequency.h"
static asn_TYPE_member_t asn_MBR_FANSTimeICA... | C |
ūn',
葷: 'hūn',
睧: 'hūn',
閽: 'hūn',
焄: 'hūn',
蔒: 'hūn',
睯: 'hūn',
忶: 'hún',
浑: 'hún',
馄: 'hún',
渾: 'hún',
魂: 'hún',
餛: 'hún',
繉: 'hún',
轋: 'hún',
鼲: 'hún',
混: 'hún',
梱: 'hún',
湷: 'hún',
诨: 'hùn',
俒: 'hùn',
倱: 'hùn',
掍: 'hùn',
焝: 'hùn',
溷: 'hùn',
慁: 'hùn',
觨: 'hùn',
諢... | JavaScript |
_New_Zealand_1949";
NZGD1949MarlboroughCircuit.GeographicInfo.Name = "GCS_New_Zealand_1949";
NZGD1949MountEdenCircuit.GeographicInfo.Name = "GCS_New_Zealand_1949";
NZGD1949MountNicholasCircuit.GeographicInfo.Name = "GCS_New_Zealand_1949";
NZGD1949MountPleasantCircuit.Geog... | C# |
Int,
request: MainPageRequest
): HomePageResponse? {
val url = "$mainUrl${request.data}"
val doc = app.get(url, headers = mapOf("User-Agent" to USER_AGENT)).document
val items = doc.select("div.row.row-cols-xxl-6.row-cols-md-4.row-cols-2#content div.col-lg-2")
... | Kotlin |
MirSpan,
) : ThirExpr(ty, span)
class Logical(
val op: LogicOp,
val left: ThirExpr,
val right: ThirExpr,
ty: Ty,
span: MirSpan,
) : ThirExpr(ty, span)
class Block(
val block: ThirBlock,
ty: Ty,
span: MirSpan,
) : ThirExpr(ty, span)
... | Kotlin |
lea kefrens_sin,a1
lea sincos4000,a0
move.w #$2000*2+273*8-1,d7 ;$1fff=8192-1
.sl:
; see movement.gcx for a graph
add.l #16,.sin1
and.l #$1ffe,.sin1
add.l #32,.sin2
and.l #$1ffe,.sin2
move.l .sin1,d0
move.w (a0,d0.w),d1 ; +/- 3f00
muls d0,d1 ;$2000 * 3f00 = $0800 0000
swap d1 ;$0800
asr.w #1,... | Assembly |
edSubDirs: false,
);
showDialog(
context: context,
builder: (_) => DownloadInfoDialog(item, newDownload: true),
barrierDismissible: false,
);
}
static Future<FileInfo> retrieveFileInfo(ReceivePort receivePort) async {
final Completer<FileInfo> completer = Completer();
re... | Dart |
#encoding: utf-8
""" this file aims at pruning source/target vocabulary of the trained model using a shared vocabulary. It depends on the model implementation, and has to be executed at the root path of the project. Usage:
python prune_model_vocab.py path/to/common.vcb path/to/common.vcb path/to/src.vcb path/to/tgt.v... | Python |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... | C |
condaryBackgroundColor)
border(0.px)
borderTopRightRadius(GlobalStyle.roundingButton)
borderBottomRightRadius(GlobalStyle.roundingButton)
color(GlobalStyle.textColor)
cursor(Cursor.Pointer)
display(DisplayStyle.None)
padding(0.2.cssRem)
position(Position.Fixed)
top(4.5.cssRem)
zIndex(10)
smMax(se... | Kotlin |
()) *
mBases.block(0, 0, mBases.rows(), k);
if (whiten)
{
ArrayXd norm = mExplainedVariance.segment(0, k).max(epsilon).rsqrt();
result = result.array().rowwise() * norm.transpose().max(epsilon);
}
double variance = 0;
double total = mExplainedVariance.sum();
fo... | C++ |
), f);
const b = render<HTMLElement>($h("div").style("right: 30px"), f);
expect(b.style.top).to.equal("");
expect(b.style.left).to.equal("");
expect(b.style.right).to.equal("30px");
});
it("{top: 1px, left: 1px} => null", () => {
const f = fra... | Typescript |
会在纤程内传递给函数
*
*
*
*/
nextTick(func: Function, ...args: any[]): void;
/**
*
* @brief 运行指定的命令行,接管进程输入输出流,并返回进程对象
*
* opts 支持的选项如下:
* ```JavaScript
* {
* "timeout": 100, // 单位为 ms
* "envs": [] // 进程环境变量
* }
* ```
* @param command 指定运行的命令行
* @param args 指定运行的参数... | Typescript |
cost-information to get from
* from-location to to-location at a certain time and with a certain vehicle, it
* looks up whether there is already an entry in the cache. If so, it returns
* the cached value, if not it calculates new values with a
* leastCostPathCalculator defined in here. It looks up the cached valu... | Java |
f (event.searchEnterConst.categories.isNotEmpty) {
for (var category in event.searchEnterConst.categories) {
comicList =
comicList
.where((comic) => comic.categories.contains(category))
.toList();
}
}
if (event.searchEnterConst.key... | Dart |
> testing different styles.</>'
textbox1:setString ( text )
textbox1:setStyle ( style1 )
textbox1:setStyle ( 'red', style1 )
textbox1:setStyle ( 'green', style2 )
textbox1:setStyle ( 'blue', style3 )
textbox1:setStyle ( 'yellow', style4 )
text = 'This is <green>some test</> text to <yellow><blue>print out whil... | Lua |
--BK グラスジョー
function c5361647.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(5361647,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_BE_BATTLE_TARGET)
e1:SetTarget(c5361647.destg)
e1:SetOperation(c5361647.deso... | Lua |
/*
*
* Copyright 2015 gRPC authors.
*
* 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 agree... | C |
expectDelete: true,
},
{
description: "Added tolerated taint",
pods: []corev1.Pod{
*addToleration(testutil.NewPod("pod1", "node1"), 1, 100),
},
oldNode: testutil.NewNode("node1"),
newNode: addTaintsToNode(testutil.NewNode("node1"), "testTaint1", "taint1", []int{1}),
expectDelete: fal... | Go |
/**
* 链式队列
*/
#include <stdio.h>
#include <stdlib.h>
typedef int ElemType;
typedef struct LinkNode {
ElemType data;
struct LinkNode *next;
} LinkNode;
typedef struct {
LinkNode *front, *rear;
} LinkQueue;
// 初始化数据
void InitLinkQueue(LinkQueue *Q) {
// front、rear 都指向头结点
// 若不带头结点,则都指向NULL
Q... | C |
: F) where F: FnMut(&str) -> *const raw::c_void {
unsafe {
storage::VertexP4uiv = FnPtr::new(metaloadfn(&mut loadfn, "glVertexP4uiv", &[]))
}
}
}
#[allow(non_snake_case)]
pub mod Viewport {
... | Rust |
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "Eo.h"
#include "../eunit_tests.h"
#include "children_simple.h"
#define CHECK_ITER_DATA(iter, data, expected_data) \
fail_if(!eina_iterator_next(iter, &(data))); \
fail_if(expected_data != data);
int
main(int argc, char *argv[])
{
(void) argc;
(... | C |
THERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include "SYS.h"
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
RCSID("from: @(#)Ovfork.s 5.1 (Berkeley) 5/12/90")
#else
RCSID("$NetBSD: __vfork14.S,v 1.9 2003/08/07 16:42:14 agc Exp $")
#endif... | Assembly |
----
<%= include_partial "shared/_common.lua" %>
<%= include_partial "shared/_delete_from_queue.lua" %>
<%= include_partial "shared/_delete_from_sorted_set.lua" %>
---------- END local functions ----------
-------- BEGIN delete_job_by_digest.lua --------
local result = delete_from_queue(queue, digest)
if result the... | Lua |
�状模型
网状模型由一个称为数据系统语言会议(CODASYL)的委员会进行了标准化,并被数个不同的数据库厂商实现;它也被称为 CODASYL 模型【16】。
CODASYL 模型是层次模型的推广。在层次模型的树结构中,每条记录只有一个父节点;在网络模式中,每条记录可能有多个父节点。例如,“Greater Seattle Area” 地区可能是一条记录,每个居住在该地区的用户都可以与之相关联。这允许对多对一和多对多的关系进行建模。
网状模型中记录之间的链接不是外键,而更像编程语言中的指针(同时仍然存储在磁盘上)。访问记录的唯一方法是跟随从根记录起沿这些链路所形成的路径。这被称为 **访问路径(access path)**。
最... | Markdown |
a single DG packet, the server
* can retrieve the PAC, packet by packet, by repeated calls on this
* operation.
*
* Note that because the "conv" interface is serviced directly by the
* the DG protocol (as opposed to being handled by a call executor thread),
* there is no additional client overhead with retrieving... | C |
.md)
- [Holybro Pixhawk RPi CM4 Baseboard](/companion_computer/holybro_pixhawk_rpi_cm4_baseboard.md)
- [Auterion Skynode](/companion_computer/auterion_skynode.md)
- [컴퓨터 비전](/computer_vision/index.md)
- [경로 계획 인터페이스](/computer_vision/path_planning_interface.md)
- [모션 캡쳐](/computer_vision/motion_... | Markdown |
they have
/// </summary>
/// <returns></returns>
public string GetYouCanBuy() =>
GetRandomStringFromChoices(DataOvlReference.DataChunkName.SHOPPE_KEEPER_BLACKSMITH_POS_EXCLAIM)
.Trim() + " " +
GetRandomStringFromChoices(DataOvlReference.DataChunkName.SHOP... | C# |
#########################
# Offsets from r13
################################################################################
.set primaryDataBuffer,-0x49b4
.set playbackDataBuffer,-0x5040 # From tournament mode line 8019b9d4, seems to be only used in one place
.set secondaryDmaBuffer,-0x49b0
.set archiveDataBuffer, -0... | Assembly |
```json
[
{
"fields": {
"Notes": "sdfdsf",
"Name": "dsfdsf"
}
},
{
"fields": {
"Notes": "note1",
"Name": "dsfdsf"
}
}
]
```
Click on the `run` button to run the query.
:::info
NOTE: Query must be saved before running... | Markdown |
floor = chunkTex("cavefloor"), floor_constructed=chunkTex("cobbles"),
},
organic = { name = "Organic", type="organic",
glyph = glyphs['one_quarter_solid'], fg=colors['red'], bg=colors['black'],
hit_points = 10
},
blight = { name = "Blight", type="blight",
glyph = glyphs['blight'... | Lua |
sUseSecrets",
Outcome: finding.OutcomeTrue,
},
{
Probe: "webhooksUseSecrets",
Outcome: finding.OutcomeTrue,
},
{
Probe: "webhooksUseSecrets",
Outcome: finding.OutcomeTrue,
},
{
Probe: "webhooksUseSecrets",
Outcome: finding.OutcomeTrue,
},
{
P... | Go |
// width
src.height, //height
Bitmap.Config.ARGB_8888
)
private fun toAndroidBitmap(src: ApngBitmap, sizeMax: Float) =
scaleBitmap(sizeMax, toAndroidBitmap(src))
private fun parseApng(
inStream: InputStream,
pixelSizeMax: ... | Kotlin |
ns */
};
struct ctx_stream {
pthread_mutex_t mutex;
ctx_stream_data norm; /* Copy of the image to use for web stream*/
ctx_stream_data sub; /* Copy of the image to use for web stream*/
ctx_stream_data motion; /* Copy of the image to use for web stream*/
ctx_stream_data source;... | C++ |
un restore() =
this.configuration
.eventProcessorByProcessingGroup<EventProcessor>(PROCESSING_GROUP)
.ifPresent {
if (it is TrackingEventProcessor) {
logger.info { "VIEW-MONGO-002: Starting mongo view event replay." }
it.shutDown()
it.resetTokens()
it.star... | Kotlin |
/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved.
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at ... | C |
}
}
}
console.log(Math.max(...maxarr));
/**
* Bubble Sort
*
* First Pass:
* ( 5 1 4 2 8 ) –> ( 1 5 4 2 8 ), Here, algorithm compares the first two elements, and swaps since 5 > 1.
* ( 1 5 4 2 8 ) –> ( 1 4 5 2 8 ), Swap since 5 > 4
* ( 1 4 5 2 8 ) –> ( 1 4 2 5 8 ), Swap since 5 > 2
* ( 1 4 2 5 8 ) –> ( ... | Typescript |
b44bc;--color-scale-purple-7: #5936a2;--color-scale-purple-8: #472c82;--color-scale-purple-9: #352160;--color-scale-pink-0: #ffd7eb;--color-scale-pink-1: #ffb3d8;--color-scale-pink-2: #fc8dc7;--color-scale-pink-3: #e275ad;--color-scale-pink-4: #c96198;--color-scale-pink-5: #ae4c82;--color-scale-pink-6: #983b6e;--color-... | CSS |
e),K||(K=l.createElement("path",{d:"M3 10v2.995h10V10h1v4h-1v-.005H3V14H2v-4h1Zm5.026-8 3.814 3.815-.707.707-2.616-2.617V11h-1V3.923L4.89 6.548l-.707-.706L8.026 2Z",fill:"currentColor"})))})),$n("download",(function(e){return l.createElement("svg",oe({"aria-hidden":"true","data-prefix":"fas","data-icon":"download",clas... | JavaScript |
name: `${vaultMembership.VaultName} (${vaultMembership.Role})`,
value: vaultMembership.VaultId,
hint: `Created by ${vaultMembership.VaultOwnerAccountName} <${vaultMembership.VaultOwnerAccountEmail}>`,
})),
result(res) {
// NOTE: See https://github.com/enquirer/enquirer/blob/8d626c206... | Typescript |
kgroundWidth + (transitionParams != null ? - transitionParams.deltaLeft + transitionParams.deltaRight : 0));
final float right = getBackgroundDrawableRight() + (transitionParams != null ? transitionParams.deltaRight : 0) - dp(10 + (currentMessageObject.isOutOwner() && !mediaBackground && !drawPinnedBottom ? 6 :... | Java |
5 255 255 / 0.7), rgb(255 255 255 / 0.7)) fixed 0 0 / cover,
linear-gradient(
154.19deg,
hsl(326.809 calc(1 * 41.964%) 43.922% /1) 8.62%,
hsl(27.5 calc(1 * 44.86%) 58.039% /1) 48.07%,
hsl(50.286 calc(1 * 46.256%) 44.51% /1) 76.04%
)
fixed 0 0 / cover;
--text-theme-primary-hover: color-mix(in ok... | CSS |
e_phoff, e_phentsize, e_phnum)
} else {
if (buf.size < 52) return null
val e_phoff = readU32(buf, 28, order).toLong()
val e_phentsize = readU16(buf, 42, order)
val e_phnum = readU16(buf, 44, order)
ElfInfo(false, order, e_phoff, e_phentsize, e_phnum)
... | Kotlin |
单介绍一下物联网技术在智能家居中的具体应用场景。 |
| 自然语言生成 | 如何通过自然语言生成技术,让机器自动写出高质量的新闻报道? |
| 文本生成 | 请生成一段500字的科幻小说。 |
| 数据分类 | 请对以下50个商品进行分类:苹果、香蕉、鸭肉、猪肉、牛肉、青菜、西红柿、土豆、笔记本电脑、手机、电视、洗发水、沐浴露、护肤品、牙刷、洗衣机、冰箱、空调、灯具、床上用品、家居装饰、户外用品、运动器材、书籍、玩具、文具、服装、鞋子、首饰、手表、眼镜、包包、化妆品、食品、饮料、酒类、茶叶、糖果、巧克力、坚果、花卉、绿植、宠物食品、宠物用品、车辆、摩托车、自行车、游戏、音乐、电影、电子书籍。 |
| 文本纠错 | 请帮我找出以下句子... | Markdown |
:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-a... | CSS |
44, 0.8) !important;
border-color: rgba(244, 244, 244, 0.9) !important;
color: #fff;
}
body.dark-only .alert-light .progress {
height: 5px;
background-color: #f1f1f1;
border-radius: 0;
}
body.dark-only .alert-light .progress-bar {
background-color: white;
}
body.dark-only .alert-light.inverse {
background... | CSS |
getName(), wfStatus);
ListGridField startPublishing = new DateListGridField(START_PUBLISHING, "startpublishing",
DateCellFormatter.FORMAT_SHORT);
fieldsMap.put(startPublishing.getName(), startPublishing);
ListGridField stopPublishing = new DateListGridField(STOP_PUBLISHING, "stoppublishing",
DateCellFor... | Java |
tack) - 1
scope := p.labelScope
for _, ident := range p.targetStack[n] {
ident.Obj = scope.Lookup(ident.Name)
if ident.Obj == nil && p.mode&DeclarationErrors != 0 {
p.error(ident.Pos(), fmt.Sprintf("label %s undefined", ident.Name))
}
}
// pop label scope
p.targetStack = p.targetStack[0:n]
p.labelScope =... | Go |
tree
/// where the node was added. All nodes in the valid_policy_tree expect the root node have a parent.
/// The parent is the node whose evaluation caused a child node to be added. Child-less nodes are
/// periodically pruned from the valid_policy_tree.
///
/// The first five fields are established when a node is cre... | Rust |
convert and migrate values to istio attributes
fn process_istio_attr(&self, attr: &mut AttributeWrapper);
}
<filename>linked-data/src/blog.rs
use crate::IPLDLink;
use std::time::{SystemTime, UNIX_EPOCH};
use serde::{Deserialize, Serialize};
use cid::Cid;
/// A micro blog post (Twitter-sytle).
/// Recursive pin... | Rust |
// Move the clock forward 10 seconds and print the new value.
clock.Add(10 * time.Second)
fmt.Printf("%s: %d\n", clock.Now().UTC(), count.get())
// Output:
// 1970-01-01 00:00:00 +0000 UTC: 0
// 1970-01-01 00:00:10 +0000 UTC: 1
}
func ExampleMock_Ticker() {
// Create a new mock clock.
clock := NewMock()
va... | Go |
#pragma once
#include <spdlog/sinks/base_sink.h>
#include "Containers/Array.h"
#include "Core/Profiler/Profile.h"
#include "Log/LogMessage.h"
#include "Memory/Memory.h"
namespace Lumina
{
class ConsoleSink : public spdlog::sinks::base_sink<std::mutex>
{
public:
ConsoleSink(TFixedVector<FCons... | C |
/************************************************************************
**
** @file
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 15 4, 2017
**
** @brief
** @copyright
** This source code is part of the Valentina project, a pattern making
** program, whose allow create and modeling p... | C |
using System;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Windows;
using Rssdp;
using Rssdp.Infrastructure;
namespace CameraControl.Devices.Wifi
{
public class PanonoDiscovery
{
pu... | C# |
s lock must be locked whenever accessing any of the following objects.
rtc::CriticalSection lock_;
// A self-incremented integer to compare with the one in Context. It ensures
// a Context instance is always initialized after DxgiDuplicatorController.
int identity_ = 0;
DesktopRect desktop_rect_;
DesktopVe... | C |
dy.make_a_dude_dudes_new #links_container a:visited{color:#1b2963}body.make_a_dude_dudes_index #links_container a:hover,body.make_a_dude_dudes_new #links_container a:hover{color:#FF47BC}body.make_a_dude_dudes_index #container,body.make_a_dude_dudes_new #container{width:80%;margin:auto}body.make_a_dude_dudes_index .btn,... | CSS |
Button.scss:2817 */
.x-btn-over.x-btn-default-toolbar-small {
border-color: #dbdbdb;
background-image: none;
background-color: #ececec;
}
/* /Users/marcgusmano/_git/sencha/ext-react/packages/ext-react-classic-demo/node_modules/@sencha/ext-classic-theme-neutral/sass/var/button/Button.scss:2845 */
.x-keyboard... | CSS |
_hashtable (cpp_reader *pfile, cpp_hash_table *table,
cpp_hash_table *extra_table)
{
struct spec_nodes *s;
if (table == NULL)
{
pfile->our_hashtable = 1;
table = ht_create (13); /* 8K (=2^13) entries. */
table->alloc_node = alloc_node<cpp_hashnode>;
}
if (extra_table == NULL)
... | C++ |
ervice_id}}")
if err != nil {
return err
}
billingProject := ""
project, err := tpgresource.GetProject(d, config)
if err != nil {
return fmt.Errorf("Error fetching project for GenericService: %s", err)
}
billingProject = project
// err == nil indicates that the billing_project value was found
if bp, err... | Go |
function Syndicator.Utilities.Message(text)
print(NORMAL_FONT_COLOR:WrapTextInColorCode("Syndicator") .. ": " .. text)
end
do
local callbacksPending = {}
local frame = CreateFrame("Frame")
frame:RegisterEvent("ADDON_LOADED")
frame:SetScript("OnEvent", function(self, eventName, addonName)
if callbacksPend... | Lua |
["name"] = "Перевод для Элло";
};
[253] = {
["objective"] = "Отыщите могилу Элизы. Извлеките из нее сердце Бальзамировщика и вернитесь к Элло Чернодреву.";
["name"] = "Невеста Бальзамировщика";
};
[254] = {
["name"] = "Копание земли";
};
[255] = {
["objective"] = "Мировой судья Тупонос... | Lua |
/*
* Copyright 2012-2025 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
*
* 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 Lice... | C# |
oint3D::default();
assert!(p1.x() == 0.0);
assert!(p1.y() == 0.0);
assert!(p1.z() == 0.0);
assert!(*p1.abs() == 0.0);
let mut p2 = Point3D::new(1.0, 0.0, 0.0);
assert!(p2.x() == 1.0);
assert!(p2.y() == 0.0);
assert!(p2.z() == 0.0);
assert!(*p2.abs() == 1.0);
let p3 = Point3D::... | Rust |
google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.facebook.ads.sdk.APIException.MalformedResponseException;
/**
* This class is auto-generated.
*
* For any issues or feature requests related to this class, please let us know
* on github and we'll fix in our codegen framework. We'll not be abl... | Java |
= 八(九())
@JvmName("无一百零十一减二") infix fun 一<零<一<无>>>.减(甲: 二<无>): 九<九<无>> = 九(九())
@JvmName("丁三减三") infix fun <丁> 三<丁>.减(甲: 三<无>): 零<丁> = 零(中)
@JvmName("丁四减三") infix fun <丁> 四<丁>.减(甲: 三<无>): 一<丁> = 一(中)
@JvmName("丁五减三") infix fun <丁> 五<丁>.减(甲: 三<无>): 二<丁> = 二(中)
@JvmName("丁六减三") infix fun <丁> 六<丁>.减(甲: 三<无>): 三<丁> = 三(中... | Kotlin |
let adt = AdvancedDynamicTexture.CreateFullscreenUI("UI");
let derp = new GUI(adt)
derp.activateMobile();
scene.onBeforeRenderObservable.add(function () {
if (xAddPos >= 10) {
sendMessageToServer(Math.round(xAddPos))
}
console.log(xAddPos + "<x : y>" + yAddPos)
});
engine.runRenderLoop(() => {
scen... | Typescript |
halt
68d44: 28 00 00 00 movc3 $0x0,$0x0,$0x0
68d48: 04 ret
68d49: 00 halt
68d4a: 00 halt
68d4b: 00 halt
68d4c: 70 00 00 movd $0x0 [d-float],$0x0 [d-float]
68d4f: 00 halt
68d50: 6e 00 00 cvtld $0x0,$0x0 [d-float]
68d53: 00 ha... | Assembly |
Content-Language" content="en">
<meta name="viewport" content="width=1020">
<title>gfm.css/gfm.css at gh-pages · ngoldman/gfm.css · GitHub</title>
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
<link rel="fluid-icon" href="https://github.... | CSS |
= 's3o' then
unitDefTextures[uDefID] = '%' .. uDefID .. ':0'
end
xsizes[uDefID] = uDef.xsize * 4
zsizes[uDefID] = uDef.zsize * 4
radiusSqs[uDefID] = uDef.radius * uDef.radius
if uDef.isFactory then
isFactory[uDefID] = true
end
end
for fDefID, fDef in pairs(FeatureDefs) do
if fDef.modelname == ''... | Lua |
NNEL_POLICY1 *authipQmTunnelPolicy;
/* [case()][unique] */ IKEEXT_POLICY1 *ikeMmPolicy;
/* [case()][unique] */ IKEEXT_POLICY1 *authIpMmPolicy;
/* [case()][unique] */ FWP_BYTE_BLOB *dataBuffer;
/* [case()][unique] */ FWPM_CLASSIFY_OPTIONS0 *classifyOptions;
/* [case()][unique] */ ... | Lua |
ciatedImageFilePath = default(string))
{
Reason = reason;
Details = details;
Type = type;
AssociatedImageFilePath = associatedImageFilePath;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operat... | C# |
esult<OperationOutcomeIssue>
{
public static readonly TooManyRequestsActionResult TooManyRequests = new TooManyRequestsActionResult();
public TooManyRequestsActionResult()
: base(
new OperationOutcomeIssue(
OperationOutcomeConstants.IssueSeverit... | C# |
// Copyright (c) Jeremy W. Kuhne. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Drawing;
using WInterop.Gdi;
using WInterop.Windows;
namespace SysMets;
internal class SysMets2 : SysMets1
{
protected int cyClient, iVscrollP... | C# |
3 0 0 0-1.78-.83l-.29-.02-2.65-.03a2.85 2.85 0 0 1-2.82-2.81L3.53 21c0-.78-.3-1.55-.86-2.1L.81 17l-.19-.22A2.85 2.85 0 0 1 .82 13l1.85-1.9a3 3 0 0 0 .86-2.07l.02-1.97v-.68a2.85 2.85 0 0 1 2.83-2.82l2.66-.02a3 3 0 0 0 2.06-.86L13 .83l.12-.12Zm2.29 1.4a.85.85 0 0 0-.95.09l-.03.02-.05.05-1.88 1.84a5 5 0 0 1-3.44 1.43l-2.... | JavaScript |
Object selectAllOnFocusPolicy = c.getClientProperty("JTextField.selectAllOnFocusPolicy");
if (selectAllOnFocusPolicy == null) {
selectAllOnFocusPolicy = this.selectAllOnFocusPolicy;
}
if (selectAllOnFocusPolicy == null || "never".equals(selectAllOnFocusPolicy)) {
return;
... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.