content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
length - 1].cursor : 0
const totalCount = await Model.count()
const hasNextPage = totalCount > after + limit
return {
totalCount,
edges,
pageInfo: { endCursor, hasNextPage },
}
}
interface GetNodeArgs { id: number }
export const getNode = (modelName: string) => async (obj: Model, args: GetNodeArgs... | Typescript |
e_user_ids_at_locations(self.domain, [self.meereen._id]),
[self.daenerys._id, self.tyrion._id]
)
def test_all_user_ids_at_locations(self):
self.assertItemsEqual(
user_ids_at_locations(self.domain, [self.meereen._id]),
[self.daenerys._id, self.tyrion._id, self.geo... | Python |
(unsafe.Pointer(cName))
C.IupTreeSetAttributeHandle(ih.ptr(), cName, C.int(id), ihNamed.ptr())
}
// Val creates a Valuator control. Selects a value in a limited interval.
// Also known as Scale or Trackbar in native systems.
//
// https://www.tecgraf.puc-rio.br/iup/en/elem/iupval.html
func Val(_type string) Ihandle ... | Go |
; i < sensorCount; i++)
_SensorMixinTile(
machineUUID: machineUUID,
sensorProvider: _controllerProvider(machineUUID).selectRequireValue((value) {
return value.sensors[i];
}),
),
],
);
}
}
class _SensorMixinTile extends ConsumerWidget {
... | Dart |
vironment.yml
conda activate openpvsg
```
You shall manually install the following dependencies.
```bash
# Install mmcv
pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.7.0/index.html
conda install -c conda-forge pycocotools
pip install mmdet==2.25.0
# already within environment.ym... | Markdown |
::JSContext,
bytecode: &[u8],
) -> Result<JSValueRef, JsError> {
assert!(!bytecode.is_empty());
{
let len = bytecode.len();
let buf = bytecode.as_ptr();
let raw = q::JS_ReadObject(context, buf, len as _, q::JS_READ_OBJ_BYTECODE as i32);
let func_ref = JSValueRef::new(contex... | Rust |
d -->
---
comments: true
difficulty: Medium
rating: 1607
source: Biweekly Contest 107 Q2
tags:
- Greedy
- Brainteaser
- Math
- Dynamic Programming
---
<!-- problem:start -->
# [2745. Construct the Longest New String](https://leetcode.com/problems/construct-the-longest-new-string)
## Description
<!--... | Markdown |
));
particle.add(afterimageParticle);
}
// 更新残影粒子位置
if (isLine) {
for (let j: number = particle.children.length - 1; j >= generatedGlowNumber; j--) {
const afterimageParticle: (Line & ParticleInterface) = particle.children[j] as (Line & ParticleInterf... | Typescript |
using DeltaEngine.Editor.ContentManager.Previewers;
using DeltaEngine.Input;
using DeltaEngine.Input.Mocks;
using DeltaEngine.Platforms;
using NUnit.Framework;
namespace DeltaEngine.Editor.ContentManager.Tests.Previewers
{
public class SoundPreviewerTests : TestWithMocksOrVisually
{
[SetUp]
public void CreatePr... | C# |
return new TokenStream(source);
}
/// <summary>
/// Reads and consumes the entire token stream and creates a list of tokens.
/// </summary>
/// <param name="tokenStream">The token stream.</param>
/// <param name="skipIgnored">if set to <c>true</c> any tokens deemed... | C# |
gs()
// Parse effort first so it can set defaults
if effort, _ := flags.GetString("effort"); effort != "" {
// Validate effort value
if effort != EffortMin && effort != EffortLow && effort != EffortMedium && effort != EffortHigh {
return fmt.Errorf("invalid effort level '%s': must be one of %s, %s, %s, or %s",... | Go |
return "executioner"
}
override fun getRarity(): EnchantmentRarity {
return EnchantmentRarity.RARE
}
override fun getCooldown(): Cooldown? {
return null
}
override fun getUsefulnessLore(enchantLevel: Int): String {
return ("&7攻击玩家时若当次攻击使玩家的生命值低于 &c" + (0.5 * enchan... | Kotlin |
() => {
const online = this.events['online'];
if (isFn(online)) {
this.events['online'].call(this, err, retry);
autoRetry((this as AxiosSugar), err, retry);
}
});
}
}
} else {
if (isDev()) {
error(err.reason.message);
}
autoRet... | Typescript |
toolchains via the installed GraalVM repository.
The default repository `name` is `@graalvm`, but this should be set to whatever the target repository
is named (in the call to `graalvm_repository` or `graal_bindist_repository`).
The GraalVM toolchain registers a custom Bazel toolchain which allows resolution of tool... | Markdown |
# CS_ARCH_AARCH64, None, None
0xc1200c10 == za.s[w8, 0:1], z0.h, z0.h
0xc1254d55 == za.s[w10, 10:11], z10.h, z5.h
0xc1286db7 == za.s[w11, 14:15], z13.h, z8.h
0xc12f6ff7 == za.s[w11, 14:15], z31.h, z15.h
0xc1200e35 == za.s[w8, 10:11], z17.h, z0.h
0xc12e0c31 == za.s[w8, 2:3], z1.h, z14.h
0xc1244e70 == za.s[w10, 0:1], z19... | C# |
using System;
using System.Collections.Generic;
using NextGenSoftware.OASIS.API.Core.Enums;
using NextGenSoftware.OASIS.API.Core.CustomAttrbiutes;
using NextGenSoftware.OASIS.API.ONODE.Core.Interfaces.Holons;
using NextGenSoftware.OASIS.API.Core.Interfaces.NFT.GeoSpatialNFT;
namespace NextGenSoftware.OASIS.API.ONODE.... | C# |
#include "applications/pokedex/ov21_021D423C.h"
#include <nitro.h>
#include <string.h>
#include "constants/heap.h"
#include "applications/pokedex/struct_ov21_021D4660.h"
#include "heap.h"
typedef struct UnkStruct_ov21_021D423C_t {
UnkStruct_ov21_021D4660 *unk_00;
int unk_04;
UnkStruct_ov21_021D4660 *un... | C |
/*
* Alias PIX image encoder
* Copyright (C) 2014 Vittorio Giovara <vittorio.giovara@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either... | C |
: "",
order,
})
}
pub fn read_toml(input_path: &str) -> Requirement {
let content = fs::read_to_string(input_path).expect("Failed to read toml file");
let settings = toml::from_str::<Table>(content.as_str()).expect("Failed to parse toml file");
build_requiremnts(settings, "全体".to_string())
... | Rust |
T: ?Sized + Serialize,
{
let mut serializer = Serializer::new();
value.serialize(&mut serializer)?;
self.output.append(&mut serializer.output);
Ok(())
}
fn prepend_block_header(&mut self) -> () {
let mut header = Vec::new();
Self::append_any_block_hea... | Rust |
are memory),
and it is known as **optimistic concurrency control**.\
The idea is that most of the time, conflicts won't happen, so we can optimize for the common case.
You know enough about Rust by now to implement this strategy on your own as a bonus exercise, if you want to.
## Locking
We can also fix the race cond... | Markdown |
+ 5) from the videoreg_w latch go here */
void pleiads_sound_control_c_w(INT32 address, UINT8 data)
{
if (data == sound_latch_c)
return;
sound_latch_c = data;
}
void pleiads_sound_init(INT32 naughtybpopflamer)
{
UINT32 shiftreg;
poly18 = (UINT32 *)BurnMalloc((1ul << (18-5)) * sizeof(UINT32));
if( !poly18 )
... | C++ |
",
[25502] = "光明使者護手",
[25503] = "控火者手套",
[25504] = "朝聖腰帶",
[25505] = "卡莉達的結婚戒指",
[25506] = "復仇者鍊甲頭盔",
[25507] = "特爾哈曼護腿",
[25508] = "歐曼奈外衣",
[25509] = "北風裂隙鑰匙",
[25510] = "典禮長袍",
[25511] = "閃電鍛造護腿",
[25512] = "部族鍊衫",
[25513] = "裂蹄皮面罩",
[25514] = "伊奇言的肩鎧",
[25515] = "泥殼之靴",
[25516] = "伊奇言的... | Lua |
rom_num_return_sequences=False,
num_return_sequences=args.q_num_return_sequences,
batch_size=args.batch_size,
decode_strategy=args.q_decode_strategy,
num_beams=args.q_num_beams,
num_beam_groups=args.q_num_beam_groups,
diversity_rate=args.q_diversity_rate,
top_k=ar... | Python |
Dialog-title{color:#323232}.coral--lightest ._coral-Dialog-content{color:#505050}.coral--lightest ._coral-Dialog-typeIcon{color:#323232}.coral--lightest ._coral-Dialog-footer{background:#fff}.coral--lightest ._coral-Dialog--error ._coral-Dialog-title,.coral--lightest ._coral-Dialog--error ._coral-Dialog-typeIcon{color:... | CSS |
());
else cur->select(pageline, cur->currentColumn());
}
else if(e->matches(QKeySequence::MoveToStartOfDocument) || e->matches(QKeySequence::SelectStartOfDocument))
{
if(!cur->currentLine()) return true;
if(e->matches(QKeySequence::MoveToStartOfDocument)) cur->moveTo(0, 0);
... | C++ |
�天",
"menu.config": "组态",
"menu.help": "帮助",
"menu.history": "历史",
"menu.register": "注册",
"menu.login": "登录",
"menu.logout": "注销",
"more.button": "更多",
"more.info.title": "更多信息",
"no.chat.history.body": "问我几个问题以使事情进展..",
"no.chat.history.title": "没有聊天记录",
"input.box.label.pas... | JavaScript |
-6902 JSON-Patch operations to the manifest synthesized for this API object.
//
// Example:
// kubePod.addJsonPatch(JsonPatch.replace('/spec/enableServiceLinks', true));
//
AddJsonPatch(ops ...cdk8s.JsonPatch)
// Renders the object to Kubernetes JSON.
ToJson() interface{}
// Returns a string representation ... | Go |
�常检测技术,并讨论它们的优缺点及适用场景。|
|图像识别|请简要介绍图像识别技术的原理和应用,并讨论其在计算机视觉领域的重要性和挑战。|
|推荐系统|推荐系统是一种常见的信息过滤技术,它可以根据用户的历史行为和偏好向其推荐相关的产品或服务。请描述几种常见的推荐算法,并讨论它们的优缺点及适用场景。|
|时间序列预测|时间序列预测是一种重要的数据分析任务,它可以帮助我们预测未来的趋势和变化。请描述几种常见的时间序列预测技术,并讨论它们的优缺点及适用场景。|
|健康饮食|列举五种有益于心脏健康的食物。|
|旅游推荐|推荐三个适合一家大小去的度假胜地。|
|科技创新|探讨人工智能在医学领域中的应用与前景。|
|电影评论|您觉得今年上映的哪... | Markdown |
1000,
inertial_km_error = 4,
landing_vel = 150,
max_roll = 0.7,
max_vert_speed = 35,
stab_vel = 160,
start_fins_vert_val = -0.0015,
vel_save_k = 1.7
},
category = 2,
class_name = "wAmmunitionDecoy",
control_block = {
can_update_target_pos = 0,
default_cruise_height = 500,
obj_senso... | Lua |
ta in [source].
///
/// Only acts on the substring from [start] to [end], with [end]
/// defaulting to the end of the string.
///
/// Normalization will:
/// * Unescape any `%`-escapes.
/// * Only allow valid characters (`A`-`Z`, `a`-`z`, `0`-`9`, `/` and `+`).
/// * Normalize a `_` or `-` character to ... | Dart |
mirai/policy/pull/4164) 自治体向けアプリ開発支援の具体化と住民参加の促進
- [PR #8262](https://github.com/team-mirai/policy/pull/8262) 母子健康手帳のデジタル化に関する方針の明確化
- [PR #6951](https://github.com/team-mirai/policy/pull/6951) 政策方針の透明性を高めるための説明を追加
- [PR #994](https://github.com/team-mirai/policy/pull/994) 地方創生政策の強化:地域資源のデジタル活用による関係・交流人口拡大策の追加
- [PR #7... | Markdown |
tCameraPosition()
camDirX,camDirY,camDirZ = Spring.GetCameraDirection()
if darkenFeatures and (camX ~= prevCam[1] or camY ~= prevCam[2] or camZ ~= prevCam[3]) then
features = Spring.GetVisibleFeatures(-1, 250, false)
end
end
end
function widget:DrawWorldPreUnit()
if darknessv... | Lua |
fillColor: this.data.backgroundColor,
type: "",
kidIds: this.data.kidIds,
page: this.data.pageIndex,
rotation: this.rotation,
};
}
return null;
}
/**
* Reset the annotation.
*
* This involves resetting the various streams that are either cached on the... | JavaScript |
this._handleMessage(data as Buffer))
this.ws?.once('close', (code, reason) => this.close(code, reason))
}
public _send (data: GatewaySendPayload): void {
if (this.ws?.readyState !== this.ws?.OPEN) return
this.ws?.send(JSON.stringify(data))
}
private _handleMessage (data: Buffer): void {
const... | Typescript |
ght Valve Corporation, All rights reserved. ============//
//
// Purpose: Entity that propagates general data needed by clients for non-player AI characters
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "player.h"
#include "monster_re... | C++ |
nline]
pub fn clear(&mut self) {
self.array.clear()
}
#[allow(dead_code)]
#[inline]
pub fn is_empty(&self) -> bool {
self.array.is_empty()
}
}
#[cfg(test)]
mod test {
use crate::sorted_vector::SortedVector;
use quickcheck;
#[test]
fn test_sorted_vec() {
... | Rust |
err != nil {
return nil, err
}
var results []BlockNumberInfo
for rows.Next() {
var result BlockNumberInfo
if err := rows.ScanStruct(&result); err != nil {
return nil, err
}
results = append(results, result)
}
return results, nil
}
type AggregatedMetricResults struct {
GroupByKey string
BucketId ... | Go |
= 'L5Q44')) AND (iq.IDWIO = 'KAOAS')) THEN 0 WHEN (((iq.FSDY2 IN ('SRARY', 'UBQWG')) AND (vc.ZNP4P = 'L5Q44')) AND (iq.IDWIO = 'OG')) THEN 0 WHEN (((iq.FSDY2 IN ('SRARY', 'UBQWG')) AND (vc.ZNP4P = 'L5Q44')) AND (iq.IDWIO = 'TSG')) THEN 0 WHEN (((iq.FSDY2 IN ('SRARY', 'UBQWG')) AND (NOT((vc.ZNP4P = 'L5Q44')))) AND (iq.... | Go |
n {visibility: hidden;}
.res-gallery.caption-effect-slide.caption-position-center figure:not(:hover) figcaption {visibility: hidden;top: 100%;}
figcaption p {
/* margin: auto; */ /* override style in theme */
}
/* ------------------------------------------------------------------------------ */
/* https://www.w3scho... | CSS |
Enchantments.MENDING)
this.tag(ModTags.Enchantments.FIERY_INCOMPATIBLE).add(Enchantments.SILK_TOUCH)
this.tag(ModTags.Enchantments.MAGNETIZED_INCOMPATIBLE)
this.tag(ModTags.Enchantments.DEMOLISHING_INCOMPATIBLE)
this.tag(ModTags.Enchantments.AQUATIC_INCOMPATIBLE)
this.tag(ModTag... | Kotlin |
/* $FreeBSD: release/9.1.0/sys/contrib/altq/altq/altq_var.h 219457 2011-03-10 18:49:15Z jkim $ */
/* $KAME: altq_var.h,v 1.16 2003/10/03 05:05:15 kjc Exp $ */
/*
* Copyright (C) 1998-2003
* Sony Computer Science Laboratories Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or ... | C |
false; }
public static void enablePrint(){ enabled=true; }
public static void disablePrint(){ enabled=false; }
public static void p(Object str){
if(enabled){
if(printPrefix) IOut.printCurrentStack(ps);
ps.print(errPrefix);
ps.println(str);
}
}
public static void p(){
if(e... | Java |
(response.data));
} catch (error) {
console.error(error);
}
};
export const fetchTodos = () => async (dispatch: AppDispatch) => {
try {
const { data } = await axios.get(apiUrl);
dispatch(getTodos(data));
dispatch(setLoading(false));
} catch (error) {
console.error(error);
dispatch(setLo... | Typescript |
ckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iRCIgeDE9IjAiIHkxPSIwIiB4Mj0iMSIgeTI9IjAiIGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMSwtNS41NTExMmUtMTcsLTUuNTUxMTJlLTE3LC0xLDAsLTEuNTc1NjJlLTA2KSIgeGxpbms6aHJlZj0iI0ciPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2UzMzIzMiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzZiMDAwZCIvPjwvbGluZWFyR3Jh... | CSS |
全部使用的 px, 那 AndroidAutoSize 也将无能为力
*
*
* 支持链式调用, 如:
* [ExternalAdaptManager.addExternalAdaptInfoOfActivity]
*
* @param targetClass [Activity] class, Fragment class
* @param info [ExternalAdaptInfo] 适配参数
*/
@Synchronized
fun addExternalAdaptInfoOfActivity(
t... | Kotlin |
n get_current_local_time() -> i64 {
let local_time = Utc::now().timestamp();
local_time
}
<filename>fltk-derive/src/lib.rs<gh_stars>1-10
#![recursion_limit = "256"]
#![allow(unused_imports)]
#![allow(unused_variables)]
extern crate proc_macro;
extern crate syn;
#[macro_use]
extern crate quote;
mod browser;
mo... | Rust |
/*
* QEMU Apple Sound Chip emulation
*
* Apple Sound Chip (ASC) 344S0063
* Enhanced Apple Sound Chip (EASC) 343S1063
*
* Copyright (c) 2012-2018 Laurent Vivier <laurent@vivier.eu>
* Copyright (c) 2022 Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef HW... | C |
first_slide_content = slide_contents[first_slide_id]
# 如果有标题和开场白,添加到第一张幻灯片
if title or opening:
intro_text = ""
if title:
intro_text += title + "\n\n"
if opening:
... | Python |
[PIXMAN_OP_CONJOINT_IN_REVERSE] = combine_conjoint_in_reverse_ca;
imp->combine_32_ca[PIXMAN_OP_CONJOINT_OUT] = combine_conjoint_out_ca;
imp->combine_32_ca[PIXMAN_OP_CONJOINT_OUT_REVERSE] = combine_conjoint_out_reverse_ca;
imp->combine_32_ca[PIXMAN_OP_CONJOINT_ATOP] = combine_conjoint_atop_ca;
imp->combi... | C |
/* Force .data aligned to 4K, so that .got very likely gets at
0x5021a0 (0x60 bytes .tdata and 0x140 bytes .dynamic) */
.data
.balign 4096
.section ".tdata", "awT", @progbits
.globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8
.globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8
.hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7,... | Assembly |
Variant>,
#[prop(into, optional)] interactive: Signal<bool>,
#[prop(optional)] children: Option<Children>,
) -> impl IntoView
```
### **Card Header Component**
```rust
#[component]
pub fn CardHeader(
#[prop(into, optional)] class: MaybeProp<String>,
#[prop(into, optional)] id: MaybeProp<String>,
#[... | Markdown |
🆕 自动安装和配置模型 (v4.1.0新增)
python setup_models.py
# 4. 运行核心功能测试
python test_core_functionality.py
# 5. 启动系统
python main.py
```
### 🔧 可选增强功能
```bash
# 量子计算支持
pip install qiskit qiskit-aer cirq
# 高级可视化
pip install plotly matplotlib seaborn
# AI助手增强 (v4.1.0已优化)
pip install nltk spacy transformers
# 智能调优
pip install o... | Markdown |
Required. The ID of the advertiser to lookup currency
/// for.
/// Value must have pattern `^\[^/\]+$`.
///
/// [invoiceMonth] - Month for which the currency is needed. If not set, the
/// request will return existing currency settings for the advertiser. Must be
/// in the format YYYYMM.
///
/// [$fie... | Dart |
oid.content.ContentResolver
import android.content.ContentValues
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Build
import android.os.Environment
import android.provider.MediaStore
import androidx.annotation.IntDef
import an... | Kotlin |
if (mode && mode === "Download") {
window.open(pdfDownload[fileStoreId]);
} else {
printPdf(pdfDownload[fileStoreId]);
}
}
export const permitOrderNoDownload = async (action, state, dispatch, mode = "Download") => {
let bpaDetails = get(
state.screenConfiguration.preparedFinalObject, "BPA"
);
le... | JavaScript |
ype = allowedFileTypes.some(type => {
// check if this is a mime-type
if (type.indexOf('/') > -1) {
if (!file.type) return false;
return mimeMatch(file.type.replace(/;.*?$/, ''), type);
} // otherwise this is likely an extension
if (type[0] === '.' && file.extension... | JavaScript |
ndColor3 = Color3.new(1, 0, 1)
killplrmain.Position = UDim2.new(0.0321613066, 0, 0.836535037, 0)
killplrmain.Size = UDim2.new(0, 103, 0, 47)
killtext.Name = "killtext"
killtext.Parent = killplrmain
killtext.BackgroundColor3 = Color3.new(1, 0.666667, 1)
killtext.Position = UDim2.new(0, 0, 0.0212752968, 0)
killtext.Size... | Lua |
th).thenReturn(200)
whenever(widgetImageView.height).thenReturn(100)
// bitmap - 200 x 100
whenever(testDrawable.intrinsicWidth).thenReturn(200)
whenever(testDrawable.intrinsicHeight).thenReturn(100)
widgetImageView.drawable = testDrawable
val bitmapBounds = widgetImageV... | Kotlin |
�泡外书写小字.jpg.md)
文例
:
```
char=博丽灵梦
ja
<small>ていうか</small>
zh
<small>再者</small>
char=博丽灵梦
ja
そもそもあんた誰だっけ?
zh
你到底是谁来着?
```
结果
:
<table><tbody><tr class="tt-content" id="P18-1" data-pos="["P18",1]"><td id="博丽灵梦" class="tt-char" lang="zh"><div class="poem">博丽灵梦</div></td>... | Markdown |
he value
* is out of range 0 is returned.
*
* The power of 10 is represented as:
* [getValue] * 2^[getShift]
* where the significand is fixed point with 59 bits of precision.
* @see getShift
*
* @param exponent the power of 10, which corresponds the shift requested.
* @return the correct binary shift or 0 if... | Kotlin |
e credentials in code.
parser = argparse.ArgumentParser(description='Build LTR.')
general = parser.add_argument_group("general")
general.add_argument("-i", '--index', default="bbuy_products",
help='The name of the main index to search')
general.add_argument("-s", '--host', defau... | Python |
https://github.com/KUR-creative/SickZil-Machine/issues)에 올려주시면 반영해드리겠습니다. \
만약에 후보가 많으면 뭐 나중에 투표 같은 거 하면 될 듯?
긴 글 읽어주셔서 감사합니다.
<div id="discordp"></div>
# discordp
<div id="Types"></div>
## Types
<div id="GetAuditLogOptions"></div>
## GetAuditLogOptions
Options for getting audit logs in Discord
<details>
<summ... | Markdown |
.\s*Chr(?:on)?|\s*Chr(?:on)?)|Chr)))(?:(?=[\d\s.:,;\x1e\x1f&\(\)()\[\]\/"'\*=~\-–—])|$)/giu
},
{
osis: ["Ezra"],
testament: "o",
regexp: /(?:^|(?<=[^\p{L}]))(E(?:sra?|zra))(?:(?=[\d\s.:,;\x1e\x1f&\(\)()\[\]\/"'\*=~\-–—])|$)/giu
},
{
osis: ["Neh"],
testamen... | JavaScript |
_file: invalid_use_of_internal_member
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'dart:async' as _i2;
import 'package:serverpod_auth_core_client/serverpod_auth_core_client.dart'
as _i3;
/// Endpoint to convert legacy sessi... | Dart |
String
});
app.options.addDeclaration({
name: "sourcefile-url-prefix",
help: "Allows for advanced mappings as described in a JSON file",
type: ParameterType.String
});
this.subscribeToApplicationEvents(app);
}
private subscribeToApplicationEv... | Typescript |
setInterval(() => {
const formats = clipboard.availableFormats();
let label = clipboard.readText();
let contents = label;
let type: ClipType = 'text';
if (formats.includes('image/html')) {
type = 'html';
contents = clipboard.readHTML();
}
if (formats.includes('image/png')) {
... | Typescript |
# 리스트 idx+1이 시작 노드
# 리스트 요소 값이 끝 노드
def dfs(node):
visited_dfs[node] = True
for next_visit in graph[node]:
if not visited_dfs[next_visit]:
dfs(next_visit)
T = int(input())
for test_case in range(1, T+1):
N = int(input())
permutation = list(map(int, input().split()... | Python |
-hidden .navbar-vertical:hover .nav-item .nav-link .sidenav-normal {
opacity: 1;
width: auto;
}
.g-sidenav-hidden .navbar-vertical:hover .nav-item .nav-link .sidenav-mini-icon {
opacity: 0;
width: 0;
min-width: 0;
}
.g-sidenav-hidden .navbar-vertical:hover .nav-item .nav-link[data-bs-toggl... | CSS |
Ctx::new(&self.logger, &*self.machine);
match self.state.step(program, ctx) {
Continuation::Continue => continue,
Continuation::Halt => return Ok(()),
Continuation::Fault(fault) => return Err(fault),
}
}
}
}
#[cfg(test)]
mod tests {
... | Rust |
import tkinter as tk
from PIL import Image, ImageTk
import cv2
from fer import FER
import numpy as np
# Initialize the main window
window = tk.Tk()
window.title("Real-Time Emotion Detection")
window.geometry("700x550")
window.configure(bg="white")
# Create a label to display the video feed
video_label = tk.Label(wind... | Python |
<d:VersionDownloadCount m:type="Edm.Int32">0</d:VersionDownloadCount>
<d:Authors>erizet</d:Authors>
<d:MinClientVersion m:null="true"/>
</m:properties>
</entry>
</feed>"##;
let feed: Feed = serde_xml_rs::from_reader(feed_serialized.as_bytes()).unwrap();
assert_eq... | Rust |
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
using AutoMapper;
using Microsoft.EntityFrameworkCore;
using Microsoft.IdentityModel.Tokens;
using SocialMediaAPI.AppDataContext;
using SocialMediaAPI.Contracts;
using SocialMediaAPI.Interfaces;
using SocialMediaAPI.Models;
namespa... | C# |
have one and this descriptor
// was leased.
// TODO(ajwerner): Consider surfacing the mechanism used to retrieve the
// descriptor up to this layer.
if tc.hydratedTables != nil &&
tc.uncommitted.descs.GetByID(desc.GetID()) == nil &&
tc.synthetic.descs.GetByID(desc.GetID()) == nil {
hydrated, err := tc... | Go |
""" Crie um programa que leia o nome completo de uma pessoa e mostre:
1- O nome com todas as letras em maiúsculas.
2- O nome com todas as letras minúsculas
3- Quantidade de letras sem espaço.
4- Quantas letras tem o primeiro nome. """
nome = input("Digite seu nome: ").strip()
primeira_palavra = nome.split()[0]
num_c... | Python |
#include "TriBoxOverlap.h"
#include "CoreMinimal.h"
#include "Math/Vector.h"
using namespace Nav3D::TriBoxOverlapUtils;
static void FVectorToFloatArray(const FVector& Vec, float Array[3])
{
Array[0] = Vec.X;
Array[1] = Vec.Y;
Array[2] = Vec.Z;
}
bool TriBoxOverlap(const FVector& BoxCenter, const FVector& BoxHalfS... | C++ |
PLIT</code>. 「amountSplit」-
* 采购分摊费用
*/
public BigDecimal getAmountSplit();
/**
* Setter for <code>DB_ETERNAL.P_IN_ITEM.AMOUNT</code>. 「amount」- 采购总价(订单总价)
*/
public IPInItem setAmount(BigDecimal value);
/**
* Getter for <code>DB_ETERNAL.P_IN_ITEM.AMOUNT</code>. 「amount」- 采购总价... | Java |
}
for (Int32 i = 0; i < _rectanglesCount; ++i) {
DrawRectangle(_rectanglesArray[i]);
}
for (Int32 i = 0; i < _boxesCount; ++i) {
DrawCube(_boxesArray[i]);
}
for (Int32 i = 0; i < _capsuleCount; ++i) {
DrawCapsule(_capsuleArray[i]);
}
}
static v... | C# |
// 1) If we used a literal struct the protocol field would implicitly be added.
// 2) It's really annoying to specify this as Unstructureds.
nt.Must(rootSyncGitRepo.AddFile("acme/pod.yaml", []byte(fmt.Sprintf(`
apiVersion: v1
kind: Pod
metadata:
name: %s
namespace: %s
spec:
containers:
- image: %s
name: n... | Go |
r: &str,
) -> Result<Value, LuaError> {
let ret = match op {
'e' => Value::Bool(l == r),
'n' => Value::Bool(l != r),
_ => return Err(self.error("unsupported op")),
};
Ok(ret)
}
pub fn process_unop(
&self,
op: &combine::lib::primiti... | Rust |
no_output_of_prior_pics_flag
CAVLCWriter.writeBool(writer, drpmidr.useForlongTerm()); // SH: long_term_reference_flag
} else {
CAVLCWriter.writeBool(writer, sliceHeader.refPicMarkingNonIDR != null); // SH: adaptive_ref_pic_marking_mode_flag
if (sliceHeader.refPicMarkingNonIDR... | Java |
করেছি মরিয়ম তনয় ঈসাকে ও তাকে দিয়েছি ইঞ্জিল। আমি তার অনুসারীদের অন্তরে স্থাপন করেছি নম্রতা ও দয়া। আর বৈরাগ্য, সে তো তারা নিজেরাই উদ্ভাবন করেছে; আমি এটা তাদের উপর ফরজ করিনি; কিন্তু তারা আল্লাহর সন্তুষ্টি লাভের জন্যে এটা অবলম্বন করেছে। অতঃপর তারা যথাযথভাবে তা পালন করেনি। তাদের মধ্যে যারা বিশ্বাসী ছিল, আমি তাদেরকে তাদে... | Dart |
00ff, ' ', 1, "LD HY,HY" },
{ 0x0065, 0x00ff, ' ', 1, "LD HY,LY" },
{ 0x0066, 0x00ff, ' ', 2, "LD H,(IY+%d)" },
{ 0x0067, 0x00ff, ' ', 1, "LD HY,A" },
{ 0x0068, 0x00ff, ' ', 1, "LD LY,B" },
{ 0x0069, 0x00ff, ' ', 1, "LD LY,C" },
{ 0x006A, 0x00ff, ' ', 1, "LD LY,D" },
{ 0x006B, 0x00ff, ' ', 1, "LD LY,E" },... | C++ |
(Locale locale) => _isSupported(locale);
@override
Future<S> load(Locale locale) => S.load(locale);
@override
bool shouldReload(AppLocalizationDelegate old) => false;
bool _isSupported(Locale locale) {
for (var supportedLocale in supportedLocales) {
if (supportedLocale.languageCode == locale.langua... | Dart |
abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(V.info("abc88 checking point",a,e),!NSe(e,a)&&!i){let s=MSe(e,n,a);V.debug("abc88 inside",a,n,s),V.debug("abc88 intersection",s,e);let l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)?V.warn("abc88 no intersect",s,... | JavaScript |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Docfx.Build.ApiPage;
using Docfx.Common;
using Docfx.Tests;
namespace docfx.Tests;
public static class TestData
{
/// <summary>
/// Load test data from specified pat... | C# |
_jk, &hull[j].point, &hull[k].point);
/* Is the angle formed by ij and jk concave? */
if (_cairo_slope_compare (&slope_ij, &slope_jk) >= 0) {
if (i == k)
return;
hull[j].discard = 1;
j = i;
i = _cairo_hull_prev_valid (hull, num_hull, j);
} else {
i = j;
j = k;
k = _cairo_hull_ne... | C |
128V64h384v256z|0 0 640 512'
module.exports.fasLaptopHouse = 'M272,288H208a16,16,0,0,1-16-16V208a16,16,0,0,1,16-16h64a16,16,0,0,1,16,16v37.12C299.11,232.24,315,224,332.8,224H469.74l6.65-7.53A16.51,16.51,0,0,0,480,207a16.31,16.31,0,0,0-4.75-10.61L416,144V48a16,16,0,0,0-16-16H368a16,16,0,0,0-16,16V87.3L263.5,8.92C258,4,2... | JavaScript |
#include "printer.h"
#include "gdidefs.inc"
#include "..\epson\epson.h"
#include "..\device.h"
char FntFile[] = "pica8.fnt";
char DeviceName[] = "Epson FX-80"; /* see dfDevice */
char FaceName[] = "Pica Expanded Compressed"; /* see dfFace */
FONTINFO FontInfo = {
0x80, /* dfType (0x0080 is device font) */
14, /* ... | C |
CLASS_ID = createParameter("p_class_id", org.jooq.impl.SQLDataType.INTEGER, false, false);
/**
* The parameter <code>kloopzcm.md_update_class.p_short_class_name</code>.
*/
public static final Parameter<String> P_SHORT_CLASS_NAME = createParameter("p_short_class_name", org.jooq.impl.SQLDataType.VARCHA... | Java |
fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:solid 0.08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.wy-menu-vertical li span.pull-left.toctree-expand,.wy-menu-vertical li.on a span.pull-left.toctree-expand,.wy-menu-vertical li.current>a span.pull-left... | CSS |
优化和效果评估
4、运用大模型、aigc相关算法,帮助实现图文和视频素材的自动化生成
5、利用BART、causal forest、upliftRF、贝叶斯推断等因果推断算法,完成用户增长归因判断和业务策略推演
</details>
<details>
<summary>职位要求</summary>
职位要求
1、计算机或数学或统计相关专业,具有1年以上的工作经验
2、具备机器学习、深度学习、图神经网络、运筹优化算法经验;至少掌握3种以上相关算法包括但不限于gbdt、FM、LR、causal forest、GCN等算法;了解算法基本原理,具有数据挖掘和算法应用能力
3、熟练掌握SQL、R、Python、Java以及相关... | Markdown |
Blocking call.
pub fn receive(&self) -> serde_json::Value {
self.rx.recv().expect("failed to receive JSON text")
}
fn stream_handler(stream: TcpStream, tx: mpsc::Sender<serde_json::Value>) {
log::info!(
"[ForeignSink] Connection from {}",
stream.peer_addr().unwrap()... | Rust |
geToAGuildChannel(guild, guildCluster, channelId) { block() }
}
} else {
val guildClusterUrl = guildCluster.clusterUrl.removeSuffix("/")
logger.info { "Relaying message to Cluster ${guildCluster.id} (${guildCluster.name})" }
val messageData = message.build()
... | Kotlin |
chir.GE5EL:4, jchir.F7A4Q:5, jchir.ESFVY:6!null, jchir.CC4AX:7, jchir.SL76B:8!null, convert\n" +
" │ │ │ │ │ ├─ type: char\n" +
" │ │ │ │ │ └─ jchir.QNI57:9!null\n" +
" │ │ │ │ │ as QNI57, TDEIU:10 as TDEIU]\n" +
" │ │ │ │ ... | Go |
DailySearchAdapter()
activityMainBinding.searchRecyclerView.adapter = dailySearchAdapter
}
/**
* 设置搜索列表数据
*/
private fun setSearchRecyclerViewData() {
setSearchRecyclerViewItemOnClick()
setSearchRecyclerViewItemOnLongClick()
}
/**
* 加载搜索日记的数据
*/
pri... | Kotlin |
val image = Image()
image.x = 1.0
image.y = 1.0
return image
}
}
private val image = text("Image", "").onChanged { value ->
if (value.isBlank()) return@onChanged
setImage(value)
}
private val resourceLocation = ResourceLocatio... | Kotlin |
:Stop,
_ => SupervisionStrategy::Escalate,
}
}
}
```
## 7. 使用示例
```rust
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// 创建Actor系统
let system = JanusActorSystemBuilder::new("janus")
.with_chrome_support()
.build();
// 获取浏览器管理器
let b... | Markdown |
#
# For licensing see accompanying LICENSE file.
# Copyright (C) 2020 Apple Inc. All Rights Reserved.
#
"""Test linear learning rate scheduler."""
import math
import pytest
import torch.nn as nn
import torch.optim as optim
from quant.utils.linear_lr_scheduler import LinearLR
def test_linear_lr_scheduler():
""... | Python |
List<ShapeHeader> shapeHeaders = ReadIndexFile(fileName);
int numShapes = shapeHeaders.Count;
bool isM = Header.ShapeType == ShapeType.MultiPointZ || Header.ShapeType == ShapeType.MultiPointM;
bool isZ = Header.ShapeType == ShapeType.MultiPointZ;
int totalPointsCount = ... | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.