content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
简述产品设计中用户研究的作用 | 在产品设计中,用户研究有怎样的作用?为什么它很重要? |
| 如何提高网站的转化率? | 你会采取哪些措施来提高网站的转化率? |
|食品安全|请列举三种常见的食品添加剂,以及它们对人体健康是否存在潜在威胁?|
|环保|如何判断一家工厂是否符合环保要求?请列举至少三个指标。|
|互联网科技|请列举三个最新发布的智能手机品牌及其与上一代产品相比的优势和劣势。|
|医疗保健|什么是药物相互作用?请以某一种药品为例,解释其可能产生的药物相互作用及其危害。|
|金... | Markdown |
1b
/*
* Enable all DDR I/O pins
* Enable DDR_DQS
*/
ldr r0, sim_mcr
ldr r1, [r0]
add r1, #0xC
str r1, [r0]
/*
* Enable the clock to the DDR controller
*/
ldr r0, sim_scgc3
ldr r1, [r0]
orr r1, #0x4000
str r1, [r0]
/*
* Take DDR out of self-refresh
*/
ldr r0, sim_mcr
ldr r1, [r0]
movw r2,... | Assembly |
809C05B4 02002025 */ or $a0, $s0, $zero ## $a0 = 00000000
/* 00D18 809C05B8 860F0196 */ lh $t7, 0x0196($s0) ## 00000196
/* 00D1C 809C05BC 3C014348 */ lui $at, 0x4348 ## $at = 43480000
/* 00D20 809C05C0 44812000 */ mtc1 $at, $f4 ## $f4 = 200.00
/... | Assembly |
n `edit general topic method test`() {
val result = editGeneralForumTopic("General1").sendReq(CHAT_ID).shouldSuccess()
result.shouldBeTrue()
editGeneralForumTopic("General").send(CHAT_ID, bot)
}
@Test
suspend fun `hide general topic method test`() {
val result = hideGeneral... | Kotlin |
@Test
fun efficientDetD0LightAPITest() {
efficientDetLightAPIInference(ONNXModels.ObjectDetection.EfficientDetD0, 72)
}
@Test
fun efficientDetD1Test() {
efficientDetInference(ONNXModels.ObjectDetection.EfficientDetD1)
}
@Test
fun efficientDetD1LightAPITest() {
e... | Kotlin |
for (const field in it) {
try {
if (it[field].toLocaleLowerCase().includes(searchText)) {
return true;
}
}
catch (e) {
}
}
return false;
});
console.log(filtered);
return filtered;
... | Typescript |
{StartEpoch: 0, Version: "v0.3"},
},
TransferAndExecuteByUserAddresses: []string{
"erd1he8wwxn4az3j82p7wwqsdk794dm7hcrwny6f8dfegkfla34udx7qrf7xje", // shard 0
"erd1fpkcgel4gcmh8zqqdt043yfcn5tyx8373kg6q2qmkxzu4dqamc0swts65c", // shard 1
"erd1najnxxweyw6plhg8efql330nttrj6l5cf87wqsuym85s9ha0... | Go |
rrorf("fail to check namespace, cause: %w", err)
}
err = c.git.DeleteRepoFile(req)
if err != nil {
return nil, fmt.Errorf("failed to delete %s file, cause: %w", req.RepoType, err)
}
// TODO:check sensitive content of file
fileName := filepath.Base(req.FilePath)
ctx, cancel := context.WithTimeout(context.Back... | Go |
B4B4 inset;background:#FFF6F6!important;color:#9F3A38!important}.ui.table td.warning,.ui.table tr.warning{box-shadow:0 0 0 #C9BA9B inset;background:#FFFAF3!important;color:#573A08!important}.ui.table td.active,.ui.table tr.active{box-shadow:0 0 0 rgba(0,0,0,.87) inset;background:#E0E0E0!important;color:rgba(0,0,0,.87)!... | CSS |
anup(func() { os.RemoveAll(tmp) })
cases := []struct {
name string
folder string
filepath string
contents []byte
err bool
}{
{
name: "default",
folder: tmp,
filepath: "myfile",
contents: []byte("contents"),
},
{
name: "bad_path",
folder: "/path/that/definitely... | Go |
/* This file is part of amc.
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef AMC_BE_ASF_OP_H
#define AMC_BE_ASF_OP_H
#include "register.h"
#include "val.h"
#include "../../../include/expr.h"
#include "../../../include/backend/object.h"
#define ASF_OP_OPERAND_REG ASF_REG_RBX
#define ASF_OP_RESULT_REG ASF_REG_RA... | C |
PY_VERSION_HEX >= 0x30800A0 && PY_VERSION_HEX < 0x3090000) && !(defined(_WIN32) || defined(WIN32))
// XXX: From Python 3.8a3 [1] up until Python 3.9a6 [2][3],
// ``Py_AddPendingCall`` would try to produce a Python exception if
// the interpreter was in the beginning of shutting down when this
// function is called. How... | C++ |
ullptr);
}
bool pluginCrashInNestedLoop(InstanceData* instanceData) {
// wait at least long enough for nested loop detector task to be pending ...
sleep(1);
// Run the nested loop detector by processing all events that are waiting.
bool found_event = false;
while (g_main_context_iteration(nullptr, FALSE)) {... | C++ |
)
)
}
.background(
color = Color(0xFFF6F7F9),
shape = RoundedCornerShape(8.dp)
)
.padding(horizontal = 8.dp),
verticalAlignment = Alignment.CenterVertically,
... | Kotlin |
�示多长;
3、最大精度:即拉伸到极限时,一帧时长暂定0.25秒;
*/
timeLineValue.apply {
val isFirst = duration == 0L
duration = totalDurationMs
if (time > duration) {
time = duration
}
// if (fromUser || duration == 0L ) {
// return
... | Kotlin |
},
0,
],
])(
"The format returns the message in the correct format and additionalInformation if verbosity exists",
(prefix, result, expected, verbosity) => {
const format = new JsonFormat();
const actual = format.getMessage(prefix, result, verbosity);
expect(actual).toMatchObject(expected);
... | Typescript |
ges1.Add(e);
}
foreach(KeyValuePair<GridTile, Node> n in c2.Nodes)
foreach (Edge e in n.Value.edges)
{
if (e.type == EdgeType.INTER && c1.Contains(e.end.pos))
edges2.Add(e);
}
//Find every pair of twin edges and insert... | C# |
= "slice", descr = "(slice) \"\"", priority = -50, trigEngine = te("bi")}, {
t"slice:\"", i(1, "", {key = "i1"}), t"\""
}),
s({trig = "stringformat", descr = "(stringformat) \"\"", priority = -50, trigEngine = te("bi")}, {
t"stringformat:\"", i(1, "", {key = "i1"}), t"\""
}),
s({trig = "time", descr = "(time) \... | Lua |
}
return DOCUMENT_MODE.NO_QUIRKS;
}
//# sourceMappingURL=doctype.js.map
;// CONCATENATED MODULE: ./node_modules/parse5/dist/common/foreign-content.js
//MIME types
const MIME_TYPES = {
TEXT_HTML: 'text/html',
APPLICATION_XML: 'application/xhtml+xml',
};
//Attributes
const DEFINITION_URL_ATTR = 'definitionur... | JavaScript |
+
chapterListing[0];
}
else
{
startPosition = 0;
}
for (int index = startPosition; index < chapterListing.Length; index++)
{
if (index == startPosition && string.IsNullOrEmpty(chapterName))
chapterName = ... | C# |
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using XLogic.Wpf.Window;
namespace GeekDocument.SubSystem.WindowSystem
{
/// <summary>
/// 按钮组
/// </summary>
public enum ButtonGroup
{
Yes,
... | C# |
mwifiex_dbg(priv->adapter, INFO,
"%pM tid=%d seq_num=%d bitmap_len=%d\n",
tlv_rxba->mac, tlv_rxba->tid, tlv_seq_num,
tlv_bitmap_len);
rx_reor_tbl_ptr =
mwifiex_11n_get_rx_reorder_tbl(priv, tlv_rxba->tid,
tlv_rxba->mac);
if (!rx_reor_tbl_ptr) {
mwifiex_dbg(priv->adapter, ERR... | C |
_file() {
let working_dir = tempfile::tempdir().unwrap().into_path();
let input = Config {
driver: DriverTypes::Blackhole,
operations: vec![domain::Operation::Exec {
working_dir: working_dir.clone(),
command: "bash".into(),
args: ve... | Rust |
null.
const previousSibling = (ele.parentElement as HTMLElement).previousSibling as Element;
const prior: HTMLInputElement = previousSibling.children[0] as HTMLInputElement;
if (typeof prior.setSelectionRange !== 'undefined') {
this.selectFirstWord(prior);
}
}
public gotoLastWordInPriorInput... | Typescript |
base/datastructure),各种数据格式的读写和显示。在显示方面要差一些,只是用Swing实现了地图的简单查看和操作。但是用户可以根据Geotools提供的算法自己实现地图的可视化。OpenJump和udig就是基于Geotools的。
Geotools用到的两个较重要的开源GIS工具包是JTS和GeoAPI。前者主要是实现各种GIS拓扑算法,也是基于GeoAPI的。但是由于两个工具包的GeoAPI分别采用不同的Java代码实现,所以在使用时需要相互转化。Geotools又根据两者定义了部分自己的GeoAPI,所以代码显得臃肿,有时容易混淆。由于GeoAPI进展缓慢,Geotools自己对其进行了扩充。另外,Geot... | Markdown |
:= &Mpeg2SettingsProperty{
// AdaptiveQuantization: jsii.String("adaptiveQuantization"),
// AfdSignaling: jsii.String("afdSignaling"),
// ColorMetadata: jsii.String("colorMetadata"),
// ColorSpace: jsii.String("colorSpace"),
// DisplayAspectRatio: jsii.String("displayAspectRatio"),
// FilterSettings:... | Go |
.dart';
import '../common.dart';
import '../generated_bridge.dart';
final class RgbaFrame extends Struct {
@Uint32()
external int len;
external Pointer<Uint8> data;
}
typedef F3 = Pointer<Uint8> Function(Pointer<Utf8>, int);
typedef F3Dart = Pointer<Uint8> Function(Pointer<Utf8>, Int32);
typedef HandleEvent = ... | Dart |
ine .quote__byline-image{display:block;float:left;width:60px;margin-right:2em;border-radius:50%}.quote .quote__byline .quote__byline-image+.quote__byline-name{display:block;padding-top:1em}.quote .quote__byline .quote__byline-image+.quote__byline-name:last-child{padding-top:2em}.quote .quote__byline .quote__byline-imag... | CSS |
=Jo(),$Je="[object Map]";function eWe(r){return _Je(r)&&ZJe(r)==$Je}voe.exports=eWe});var Roe=w((dht,koe)=>{var tWe=xoe(),rWe=nb(),Poe=sb(),Doe=Poe&&Poe.isMap,iWe=Doe?rWe(Doe):tWe;koe.exports=iWe});var Noe=w((Cht,Foe)=>{var nWe=hm(),sWe=Jo(),oWe="[object Set]";function aWe(r){return sWe(r)&&nWe(r)==oWe}Foe.exports=aWe}... | JavaScript |
-2275.694, -49.0, false, false, true)
SetPedComponentVariation(EvilPed, 1, 155, 0, 0)
SetEntityInvincible(EvilPed,true)
SetBlockingOfNonTemporaryEvents(EvilPed,true)
TrackPlayer()
return EvilPed
end
RegisterNetEvent('doj:client:consumeGumball', function()
local gumballItem = CreateObject(GetHa... | Lua |
db.Get(e.height, e.ns, e.k)
if len(e.err) == 0 {
r.NoError(err)
} else {
r.ErrorContains(err, e.err)
}
r.Equal(e.v, value)
}
r.NoError(db.Stop(ctx))
}
}
func TestDedup(t *testing.T) {
r := require.New(t)
b := batch.NewBatch()
for _, e := range []versionTest{
{_bucket2, _v1, _v2, 0, ""},... | Go |
select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.el-step__icon-inner[class*="el-icon"]:not(.is-status) {
font-size: 25px;
font-weight: 400;
}
.el-step__icon-inner.is-status {
-webkit-transform: translateY(1px);
transform: translateY(1px);
}
.el-step__line {
position: absolute;
border-colo... | CSS |
1 => '轻度咳嗽';
@override
String get questionHaveACoughSemantics2 => '中度咳嗽';
@override
String get questionHaveACoughSemantics3 => '无法抑制地咳嗽';
@override
String get questionHaveNauseaTitle => '您是否觉得恶心,例如,您可能会呕吐或希望自己能吐出来?';
@override
String get questionHaveNauseaAnswer0 => '否';
@override
String get qu... | Dart |
16_DARKRED, RGB16_DARKRED, RGB16_DARKRED, RGB16_DARKRED, RGB16_DARKRED, RGB16_DARKRED,
RGB16_DARKRED, RGB16_TRANSP, RGB16_DARKRED, RGB16_WHITE, RGB16_WHITE, RGB16_DARKRED, RGB16_WHITE, RGB16_DARKRED,
RGB16_DARKRED, RGB16_DARKRED, RGB16_DARKRED, RGB16_DARKRED, RGB16_DARKRED, RGB16_DARKRED, RGB16_WHITE, RGB1... | C++ |
%3E%3Cpath class='st3' d='M348.6 306.5c-1.2 0-2.5-.2-3.7-.4-1-.2-2-.3-3-.4-.7 0-1.3-.1-1.8-.1-1.7-.1-3-.1-3.7-1.2-.7-1.1-.3-2.5.2-4 1-2.7 1.2-5.1 1.2-5.9-.4-.8-1.4-3.1-2.2-5.5-1-2.9-2.9-7.9-2.9-7.9-.3-.8.1-1.6.9-1.9.8-.3 1.6.1 1.9.9.1.2 1.9 5.1 2.9 8.1 1 2.9 2.2 5.5 2.2 5.5.1.2.1.4.1.7 0 .1 0 3.3-1.4 7.2-.2.5-.3.9-.4 1... | CSS |
yle = TextStyle(
fontSize: 16,
color: kPrimaryColor,
);
class PokemonDetailScreen extends StatefulWidget {
final Pokemon pokemon;
const PokemonDetailScreen({Key key, this.pokemon}) : super(key: key);
@override
_PokemonDetailScreenState createState() => _PokemonDetailScreenState();
}
class _PokemonDetai... | Dart |
takeGeography[] SelectOrgOthersUptake (int orgid)
{
try
{
return UptakeFromArray (Organization.FromIdentity (orgid).GetUptakeGeographies (true));
}
catch
{
return null;
}
}
#if !__MonoCS__
[D... | C# |
['0x6200', '0x623C'],
]
export function createComposites (input: readonly TiTokenInput[]): Map<TiTokenInput, string[]> {
const result = new Map<TiTokenInput, string[]>()
const tokenMap = createTokenMap(input)
for (const record of input) {
const composite = createComposite(record.hex, record.token, tokenMa... | Typescript |
_COPSPAWN, 1, bBlipDriver)
local car = VehicleCreatePoint(295, point)
PedIgnoreStimuli(driver, true)
PedSetAsleep(driver, true)
PedSetCheap(driver, true)
PedWarpIntoCar(driver, car)
--print(">>>[RUI]", "CopCarCreate --Cop in car")
return car, driver
end
function CopsCreateFromPointList(poi... | Lua |
/***********************************************************************/
/* */
/* FILE :vect.h */
/* DATE :Wed, Aug 11, 2010 */
/* DESCRIPTION :Definit... | C |
portErrorAndReplyChat(
context,
parsedMessage.context,
jiraRet.error
)
return Errors.makeError(undefined)
}
const jira = jiraRet.result
const assigneeJiraRet = await getAssigneeAccountID(context, parsedMessage)
if (assigneeJiraRet.type === Errors.ReturnType.Error) {
Errors.reportE... | Typescript |
s base method.
func (m *MockOntapAPI) QtreeListByPrefix(ctx context.Context, prefix, volumePrefix string) (api.Qtrees, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "QtreeListByPrefix", ctx, prefix, volumePrefix)
ret0, _ := ret[0].(api.Qtrees)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// QtreeListByPrefix ... | Go |
t thc = (s.radius * s.radius - d2).sqrt();
Some(r.origin + r.direction * (tca - thc))
}
}
#[cfg(test)]
mod tests {
use std;
use crate::prelude::*;
use crate::Ray2;
use approx::assert_ulps_eq;
use cgmath::{Basis2, Decomposed, Point2, Rad, Rotation2, Vector2};
use super::*;
// ... | Rust |
$a0, 2
/* 0DA004 801795C4 34840184 */ ori $a0, (0x00020184 & 0xFFFF) # ori $a0, $a0, 0x184
/* 0DA008 801795C8 E4246690 */ swc1 $f4, %lo(D_800E6690)($at)
/* 0DA00C 801795CC 8C650000 */ lw $a1, ($v1)
/* 0DA010 801795D0 00052880 */ sll $a1, $a1, 2
/* 0DA014 801795D4 00E55821 */ addu $t3, $a3, $a1
/* 0DA018 801... | Assembly |
KomaKind::SOu => false,
k if k < KomaKind::GFu => true,
_ => false,
}
}).count()
} else {
0
}
}).fold(0, |sum,s| sum + s) >= 10
},
&MochigomaCollections::Empty => {
oy <= 2 && kinds.iter().enumerate().map(|(y,row)| {... | Rust |
messagePartition) loadLastIndexList(filename string) error {
logger.WithField("filename", filename).Info("Loading last index file")
l, err := p.loadIndexList(p.fileCache.length())
if err != nil {
logger.WithError(err).Error("Error loading last index filename")
return err
}
p.list = l
p.entriesCount = uint64... | Go |
self.frame_embs = (
nn.Parameter(torch.randn(max_num_frames, dim))
if exists(max_num_frames)
else None
)
self.media_time_embs = (
nn.Parameter(torch.randn(max_num_media, 1, dim))
if exists(max_num_media)
else None
)
... | Python |
Json() {
return {
'id': id,
'title': title,
'createdAt': createdAt.toIso8601String(),
'updatedAt': updatedAt.toIso8601String(),
'messageIds': messageIds,
'isPinned': isPinned,
'mcpServerIds': mcpServerIds,
'assistantId': assistantId,
'truncateIndex': truncateInd... | Dart |
r-events:none}.nvd3 .nv-hoverArea{fill-opacity:0;stroke-opacity:0}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-sparklineplus .nv-min... | CSS |
self) -> Vec<Box<dyn PciCapability>> {
vec![Box::new(PcieCap::new(
PcieDevicePortType::RootPort,
true,
0,
))]
}
fn set_capability_reg_idx(&mut self, id: PciCapabilityID, reg_idx: usize) {
if let PciCapabilityID::PCIExpress = id {
self.pcie... | Rust |
4([1, 1, 1, 1]));
tilemap_texture.bind(0);
batch.render();
}
}
}
function render(time: number, dt: number, world: World) {
function degToRad(d) {
return d * Math.PI / 180;
}
var world_rotation_change = (world.current_view_angle / 90.0);
var camera_x1 = engin... | Typescript |
nx/jinja2glue.py:20: in <module>\n from sphinx.application import TemplateBridge\nE ImportError: cannot import name 'TemplateBridge' from 'sphinx.application' (/testbed/sphinx/application.py)"}]}, {'role': 'assistant', 'content': [{'type': 'text', 'text': "It seems we need to implement the TemplateBridge class in ... | Markdown |
{
await HandleExceptionAsync(context, ex);
}
}
private static Task HandleExceptionAsync(HttpContext context, Exception ex)
{
context.Response.ContentType = "application/json";
context.Response.StatusCode = ex switch
{
... | C# |
cmp #$FF
beq checkChopperHitPlayerLeft
rts
checkChopperHitPlayerRight:
lda ZP_SCRATCH56
cmp #$0B
bcc checkChopperHitExplode
rts
checkChopperHitPlayerLeft:
lda ZP_SCRATCH56
cmp #$F6
bcs checkChopperHitExplode
rts
ch... | Assembly |
using System.Xml;
using FluentNHibernate.MappingModel.Collections;
using FluentNHibernate.Utils;
namespace FluentNHibernate.MappingModel.Output;
public class XmlMapWriter(IXmlWriterServiceLocator serviceLocator)
: BaseXmlCollectionWriter(serviceLocator), IXmlWriter<CollectionMapping>
{
readonly IXmlWriterServ... | C# |
device.build(&pipeline_ci)?
};
let toon_pipeline = {
let specialization_data = SpecializationData {
light_model: 1,
toon_desaturation_factor: 0.5,
};
specialization_info.p_data = &specialization_data as *const SpecializationData as _;
let shaders = [
... | Rust |
es not use this feature.\]
Implements methods that get data from an Integrated Services Digital Broadcasting (ISDB) audio component descriptor. The audio component descriptor appears in the ISDB service information as part of the event information table (EIT) and provides information about the audio.
## -inheritance
... | Markdown |
List;
/**
* @author woo
* @date 2021
*/
@ApiModel("分页")
@SuppressWarnings("unchecked")
public class Paging<T> implements Serializable {
private static final long serialVersionUID = -1683800405530086022L;
@ApiModelProperty("总行数")
@JSONField(name = "total")
@JsonProperty("total")
private long tot... | Java |
k-content {
padding-block: 4px;
padding-inline: 8px;
display: block;
line-height: normal;
flex: 1 1 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.k-gantt .k-treelist-scrollable .k-task-actions {
flex-shrink: 0;
}
.k-gantt .k-treelist-scrollable .k-task-mi... | CSS |
String {
self.token.clone()
}
fn generate_token() -> String {
thread_rng()
.sample_iter(&Alphanumeric)
.take(50)
.map(char::from)
.collect()
}
pub fn make() -> Self {
NewSession {
token: Self::generate_token(),
... | Rust |
one ID, we _will_ use that one.
// Note that `10` is a bootstrapped entid; we use it here as a known-good value.
let t = "[[:db/add 10 :db.schema/attribute \"temp\"]]";
let report = conn.transact(&mut sqlite, t)
.expect("transact succeeded");
assert_eq!(report.te... | Rust |
n cst_encode_list_record_i_32_basic_struct_twin_sync(
raw.entries.map((e) => (e.key, e.value)).toList());
}
@protected
JSAny cst_encode_Map_i_32_bool_None(Map<int, bool> raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return cst_encode_list_record_i_32_bool(
raw.entries.... | Dart |
ef19ef0c903.png)
## الميزات
### 1. سعة غير محدودة
بالمقارنة مع iCloud (سعة تخزين مجانية 5 جيجابايت) و Mi Cloud (سعة تخزين مجانية 11 جيجابايت)، على الرغم من أنه يمكن شراء سعة تخزين إضافية، إلا أنه لا يزال هناك قلق بشأن مزامنة جميع الصور. ومع ذلك، فإن سعة التخزين غير المحدودة في Google Photos تلبي تمامًا احتياجات تخزي... | Markdown |
| body | string | 是 | 隐藏 | none |
| » h_sub | body | boolean | 是 | 隐藏是否应用到子文件夹 | none |
| » readme | body | string | 是 | 说明 | none |
| » r_sub | body | boolean | 是 | 说明是否应用到子文件夹 | none |
### 返回示例
> 成功
```json
{
"code": 200... | Markdown |
write_settings(store.settings)
def move_selected_down(self) -> None:
row = self.locations_view.currentIndex().row()
if row == -1 or row >= self.locations_model.rowCount():
return
below = self.locations_model.locations[row + 1]
current = self.locations_model.locatio... | Python |
cascade flushing instead.
fn flush(&self, asid: Option<Asid>, vaddr: Option<u64>) {
self.flush_local(asid, vaddr);
self.parent().flush(asid, vaddr);
}
}
pub struct PageWalkerPerformanceModel {
pub start_delay: usize,
pub walk_delay_before: usize,
pub walk_delay_after: usize,
pu... | Rust |
/*=========================================================================
This file is part of CustusX, an Image Guided Therapy Application.
Copyright (c) SINTEF Department of Medical Technology.
All rights reserved.
CustusX is released under a BSD 3-Clause license.
... | C |
"go.uber.org/zap"
)
// ParallelProcessor is a processor that processes in parallel using a pool of goroutines
type ParallelProcessor struct {
messages chan Message
processor SpanProcessor
numRoutines int
logger *zap.Logger
closed chan struct{}
wg sync.WaitGroup
}
// NewParallelProcessor creates a new... | Go |
//jqueryui.com
* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.... | CSS |
";
pub const SYNC_CMD_PING: &[u8] = b"*1\r\n$11\r\nsynccmdping\r\n";
pub const OK_FRAME: &[u8] = b"+OK\r\n";
pub const SLOT_SIZE: usize = 16384;
extern crate bollard;
extern crate hyper;
extern crate tokio;
use bollard::errors::Error;
use bollard::volume::*;
use bollard::Docker;
use tokio::runtime::Runtime;
use std... | Rust |
3ea218c6a9274d30ab9a15a218c6a9274d30ab9a151000",
},
{
name: "printf-X",
out: fmt.Sprintf("%X", hash),
want: "B26F2B342AAB24BCF63EA218C6A9274D30AB9A15A218C6A9274D30AB9A151000",
},
{
name: "printf-#x",
out: fmt.Sprintf("%#x", hash),
want: "0xb26f2b342aab24bcf63ea218c6a9274d30ab9a15a218c6a9274d... | Go |
ребуется оплата': 'Fraud Scam Likely',
'Позвонили из банка': 'Fraud Scam Likely',//can also be Bank, but more likely scam
'Займ': 'Loan',
'Бесплатный': 'Telemarketing',
};
// --- Constants, State, Logging, and Communication functions (similar to bd.js) ---
const PROXY_SCHEME = "ht... | JavaScript |
L Duo Tailsitter](../../assets/airframes/vtol/wingtraone/hero.jpg)
- Forward flight more efficient
- Hover harder to fly, particularly in wind
- Hover and transition harder to tune
- More compact form factor
:::
::: tab VTOL Tailsitter VTOL with optional elevons. Uses rotors to transition between modes (along with e... | Markdown |
fc38f6645a403b0b); }
void POP_TIMECYCLE_MODIFIER_f() { FastCall<void>(0xfc38f6645a403b0b); }
void SET_CURRENT_PLAYER_TCMODIFIER(char* modifierName) { Call<void>(0xc85fcd81d635d741, modifierName); }
void SET_CURRENT_PLAYER_TCMODIFIER_f(char* modifierName) { FastCall<void>(0xc85fcd81d635d741, modifierName); }
void SE... | C++ |
pub rpc_path_length: usize,
pub enable_child_process: bool,
pub enable_sign_hash: bool,
}
#[no_mangle]
pub unsafe extern "C" fn rsn_node_rpc_config_create(dto: *mut NodeRpcConfigDto) -> i32 {
let config = match NodeRpcConfig::new() {
Ok(c) => c,
Err(_) => return -1,
};
let dto = ... | Rust |
// Missing oat_dex_files_offset_
private val mHeaderSize: Long =
18 * 4 + raf.readBytes(Const.HEADER_OFFSET + (18 - 1) * 4, 4).toInt().toLong()
}
// NOUGAT (7.0 - 7.1)
open class OatHeader079(raf: RandomAccessFile) : OatHeader064(raf) {
// https://android.googlesource.com/platform/art/+/refs/tags/an... | Kotlin |
}
/**
* A comparator that compares entities based on the primary key of the referenced entity.
*/
@SuppressWarnings("ComparatorNotSerializable")
@RequiredArgsConstructor
private static class ReferencePrimaryKeyEntityComparator implements EntityComparator, EntityReferenceSensitiveComparator {
/**
* The sc... | Java |
ept or reject
@Post("acceptPending")
async acceptPending(
@Body() acceptBody: { tournId: number; pendingUserId: number },
) {
return this.pendingService.acceptPendingUser({
...acceptBody,
});
}
@Post("rejectPending")
async rejectPending(
@Body() acceptBody: { tournId: number; pendingUs... | Typescript |
原理剖析,是一个全面的技术学习资源。
## 🔗 相关资源
- 微信公众号:JavaPub

- 博客地址:[JavaPub 技术博客](https://javapub.net)
---
# 这是文章的标题
title: 页面配置
# 你可以自定义封面图片
cover: ... | Markdown |
(t),o=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===c(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){i(this._cache)||(this._oldCache=this._cache,this._cache=voi... | JavaScript |
t_train([(200, 250), (200, 249)], instances)
def test_inf_nan_data(self):
self.model.eval()
self.model.score_threshold = -999999999
for tensor in [self._inf_tensor, self._nan_tensor]:
images = ImageList(tensor(1, 3, 512, 512), [(510, 510)])
features = [
... | Python |
;==================================================================
; file : Int.s
;==================================================================
.file "Int.c"
; GLOBAL __.INT0 ; Watch
; GLOBAL __.INT3 ; Timer3
; GLOBAL __.INT4 ; Timer2
; GLOBAL __.INT5 ; Timer1
; GLOBAL __.INT6 ; Timer0
; GL... | Assembly |
i_agent_example.py --chat-only --live # Direct to live multi-agent chat mode
python star_multi_agent_example.py --live --provider openai # Use specific provider
""",
)
parser.add_argument("--live", action="store_true", help="Run with actual LLM calls (requires API keys)")
parser.add_argument("-... | Python |
SshId);
SshModel data = this.queryByBean(where);
Assert.isNull(data, () -> I18nMessageUtil.get("i18n.ssh_already_exists_in_workspace.569e") + data.getName());
}
public boolean existsSsh2(String workspaceId, String machineSshId) {
//
SshModel where = new SshModel();
where... | Java |
::ptr_eq(cb, rhs_cb)
}
}
impl<IN, OUT> fmt::Debug for Callback<IN, OUT> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "Callback<_>")
}
}
impl<IN, OUT> Callback<IN, OUT> {
/// This method calls the callback's function.
pub fn emit(&self, value: IN) -> OUT {
... | Rust |
using System;
using ThoughtWorks.CruiseControl.Remote;
namespace ThoughtWorks.CruiseControl.CCTrayLib.Presentation
{
/// <summary>
/// Contains metadata stored in the .Tag property of a TreeView node for the Integration Queue tree.
/// </summary>
public class IntegrationQueueTreeNodeTag
{
public readonly Integr... | C# |
HasAllJetConfirms return parameters for the expectation previously defined by the When method
func (e *JetKeeperMockHasAllJetConfirmsExpectation) Then(b1 bool) *JetKeeperMock {
e.results = &JetKeeperMockHasAllJetConfirmsResults{b1}
return e.mock
}
// HasAllJetConfirms implements JetKeeper
func (mmHasAllJetConfirms *... | Go |
lank=True, null=True)
total_ports = models.TextField(blank=True, null=True)
total_open_ports = models.TextField(blank=True, null=True)
total_close_ports = models.TextField(blank=True, null=True)
created_time = models.DateTimeField(
auto_now=True,
blank=True,
)
created_by = models... | Python |
.text
.type _start,@function
_start:
add r101 = r102, r103
(p1) add r104 = r105, r106
add r107 = r108, r109, 1
(p2) add r110 = r111, r112, 1
adds r20 = 0, r10
(p1) adds r21 = 1, r10
adds r22 = -1, r10
adds r23 = -0x2000, r10
(p2) adds r24 = 0x1FFF, r10
addl r30 = 0, r1
addl r31 = 1, r1
(p1) addl r32 = -1, r1... | Assembly |
CCT 0x0001 /* user quota accounting ON */
#define XFS_UQUOTA_ENFD 0x0002 /* user quota limits enforced */
#define XFS_UQUOTA_CHKD 0x0004 /* quotacheck run on usr quotas */
#define XFS_PQUOTA_ACCT 0x0008 /* project quota accounting ON */
#define XFS_OQUOTA_ENFD 0x0010 /* other (grp/prj) quota limits enforced */
#de... | C |
using System;
using System.Collections.Generic;
using GF.Common;
namespace Ps
{
public class BoxColliderTester
{
//---------------------------------------------------------------------
public void test1()
{
CBoxCollider box1 = new CBoxCollider(0, 0, 20, 20);
CBo... | C# |
te 0x93, 0xE1, 0x00, 0x0C # 8025a8b4
.byte 0x83, 0xE4, 0x00, 0x00 # 8025a8b8
.byte 0x7F, 0xE3, 0xFB, 0x78 # 8025a8bc
.byte 0x4B, 0xFF, 0xF5, 0x91 # 8025a8c0
.byte 0x7F, 0xE3, 0xFB, 0x78 # 8025a8c4
.byte 0x4B, 0xFF, 0xFE, 0xAD # 8025a8c8
.byte 0x80, 0x01, 0x00, 0x14 # 8025a8cc
.byte 0x83, 0xE1, 0x00, 0x0C # 8025a8d0
.by... | Assembly |
}
}
func (xsp *x11ScreensProvider) Screens() []*fynedesk.Screen {
return xsp.screens
}
func (xsp *x11ScreensProvider) ScreenForGeometry(x int, y int, width int, height int) *fynedesk.Screen {
if len(xsp.screens) <= 1 {
return xsp.screens[0]
}
for i := 0; i < len(xsp.screens); i++ {
xx, yy, ww, hh := xsp.scree... | Go |
ploymentCreatedAt: map['deploymentCreatedAt'].toString(),
deploymentScreenshotLight: map['deploymentScreenshotLight'].toString(),
deploymentScreenshotDark: map['deploymentScreenshotDark'].toString(),
latestDeploymentId: map['latestDeploymentId'].toString(),
latestDeploymentCreatedAt: map['latest... | Dart |
const replacement = replacements.get(parts[i])
if (replacement) {
anyReplaced = true
parts[i] = replacement
}
anyPartHasComma = /,/.test(parts[i])
}
return anyReplaced ? header + parts.join(anyPartHasComma ? '; ' : ', ') : original
}
)
}
export interfac... | Typescript |
\x9d\x0d\x67\xe3\x2b\x7e\xf5\xe3\xda\x86\xbf\x54\xdb\xd7\x9d\x70\x3c\x87\x3b\x06\xbc\x6a\xc1\xb7\x5b\xe0\x97\x7b\xe0\x97\x9a\xe0\x58\xd0\x7f\xa2\xa2\xff\xbf\xa4\xff\x74\x4d\x27\xa3\xd9\xfd\xe4\xe6\xa4\x74\xf4\xe7\xca\x4f\x7c\x33\xde\xf5\xed\xba\x05\xaf\xdc\x79\x7c\xf9\x2b\xee\x8d\xc6\x57\x85\x6d\xb8\xd0\x1f\x4a\xd6\x77... | Go |
dReducer<Self>;
fn reducers() -> (Self::ReduceA, Self::ReduceC) {
Default::default()
}
}
impl<T, S> FromParallelStream<T> for HashSet<T, S>
where
T: Eq + Hash + Send + 'static,
S: BuildHasher + Default + Send + 'static,
{
type ReduceA = PushReducer<T, Self>;
type ReduceC = ExtendReducer<Self>;
fn reducers()... | Rust |
metalBlocks.add("WAXED_EXPOSED_CUT_COPPER_STAIRS");
metalBlocks.add("WAXED_OXIDIZED_COPPER");
metalBlocks.add("WAXED_OXIDIZED_CUT_COPPER");
metalBlocks.add("WAXED_OXIDIZED_CUT_COPPER_SLAB");
metalBlocks.add("WAXED_OXIDIZED_CUT_COPPER_STAIRS");
metalBlocks.add("WAXED_WEATHERED_COPPER");
metalBlo... | Java |
.307-2.367 9.365a11.191 11.191 0 0 1-2.418 2.3 6.942 6.942 0 0 1-1.007.586c-.27.124-.558.225-.796.225s-.526-.101-.796-.225a6.908 6.908 0 0 1-1.007-.586 11.192 11.192 0 0 1-2.417-2.3C2.167 10.331.839 7.221 1.412 3.024A1.454 1.454 0 0 1 2.415 1.84a61.11 61.11 0 0 1 2.772-.815z"/></svg>'
],
button: $('#con... | JavaScript |
5
/* 201D5C 801DF16C 8DCE5F90 */ lw $t6, %lo(D_800E5F90)($t6)
/* 201D60 801DF170 AFAE0030 */ sw $t6, 0x30($sp)
/* 201D64 801DF174 8C4F0000 */ lw $t7, 0x0($v0)
/* 201D68 801DF178 AFA30028 */ sw $v1, 0x28($sp)
/* 201D6C 801DF17C 000FC080 */ sll $t8, $t7, 2
/* 201D70 801DF1... | Assembly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.