content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
dst_dt, Elemwise::Mode::FUSE_ADD_H_SWISH, FuseAddHSwishOp) \
default: \
break; \
}
#define DISPATCH_QUANTIZED_MODE(_src_dt, _dst_dt) ... | C++ |
e.Now()
return nil
}
// AddWorker 添加工人
func (b *BuildingAggregate) AddWorker(workerID uint64, role WorkerRole, efficiency float64) error {
if b.Status != BuildingStatusActive {
return fmt.Errorf("building must be active to add workers")
}
// 检查工人是否已存在
for _, worker := range b.Workers {
if worker.WorkerID == ... | Go |
"value": "A2",
"text": {
"type": "plain_text",
"text": "Checkbox 2"
}
}
]
});
assert_eq!(actual, expected);
}
#[test]
pub fn all_attributes() {
let opt_1 = blox! {<option value="A1" text_plain="Checkbox 1" />};
let confirm = blox! {
<confirm title="You sure?"... | Rust |
= "犭白辶",
["𬨰"] = "勹曰辶",
["𬨱"] = "阝且辶",
["𬨲"] = "了口又辶",
["𬨳"] = "木丶幺⻍",
["𬨴"] = "艹厶口辶",
["𬨵"] = "斤丿之⻍",
["𬨶"] = "爫一止辶",
["𬨷"] = "食辶",
["𬨸"] = "乃又皿辶",
["𬨹"] = "厶口牛⻍",
["𬨺"] = "車⺊一⻍",
["𬨻"] = "束⺈丨⻍",
["𬨼"] = "十田⻍",
["𬨽"] = "亻十田⻍",
["𬨾"] = "禾匕辶"... | Lua |
# Copyright 2020 The Matrix.org Foundation C.I.C.
#
# 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 a... | Python |
PCKLMask(NewMask, VT, HasInt256, true))
return getTargetShuffleNode(X86ISD::UNPCKL, dl, VT, V1, V2, DAG);
if (isUNPCKHMask(NewMask, VT, HasInt256, true))
return getTargetShuffleNode(X86ISD::UNPCKH, dl, VT, V1, V2, DAG);
}
if (Commuted) {
// Commute is back and try unpck* again.
// FIXME: th... | C++ |
import board
pinout = [
board.TX,
board.RX,
None, # GND
None, # GND
board.D2,
board.D3,
board.D4,
board.D5,
board.D6,
board.D7,
board.D8,
board.D9,
board.D12,
board.D13,
board.D14,
board.D15,
board.D16,
board.D21,
board.MOSI,
board.MISO,... | Python |
_conf.json'))
should.exist(conf['tar-modules']['multi-app-module']);
done()
})
it('should have started 2 apps', function(done) {
pm2.list(function(err, list) {
should(err).be.null();
should(list.length).eql(2)
should(list[0].pm2_env.version).eql('0.1')
should(l... | JavaScript |
2.2 理论挑战
1. **形式化验证**: 并发程序的正式验证仍然困难
2. **死锁检测**: 死锁的静态检测是NP难问题
3. **性能预测**: 并发能的准确预测困难
### 8.3 改进建议
#### 8.3.1 技术改进
1. **工具支持**: 开发更好的并发编程工具
2. **调试技术**: 改进并发代码的调试技术
3. **性能分析**: 提供更精确的并发能分析
#### 8.3.2 理论改进
1. **形式化方法**: 发展更强大的并发程序验证方法
2. **内存模型**: 扩展内存模型的表达能力
3. **同步原语**: 研究更高效的同步原语
---
## 9. 未来值值值展望
### 9.1... | Markdown |
"/shake";
EMOTE82_CMD4 = "/rear";
EMOTE83_CMD1 = "/shout";
EMOTE83_CMD2 = "/holler";
EMOTE83_CMD3 = "/орать";
EMOTE84_CMD1 = "/незнаю";
EMOTE84_CMD2 = "/shrug";
EMOTE84_CMD3 = "/shrug";
EMOTE85_CMD1 = "/смущение";
EMOTE85_CMD2 = "/shy";
EMOTE86_CMD1 = "/вздох";
EMOTE86_CMD2 = "/sigh";
EMOTE87_CMD1 = "/сесть";
EMOTE87_C... | Lua |
401538 <string_not_equal+0x56>
401531: b8 00 00 00 00 mov $0x0,%eax
401536: eb 0b jmp 401543 <string_not_equal+0x61>
401538: 83 45 fc 01 addl $0x1,-0x4(%rbp)
40153c: eb bb jmp 4014f9 <string_not_equal+0x17>
40153e: b8 01 00 00 00 mov $... | Assembly |
if err != nil {
msg := fmt.Sprintf("failed to fetch node object with name %q. Error: %v", nodeInfo.NodeName, err)
return errors.New(msg)
}
// Create spec for CSINodeTopology.
csiNodeTopologySpec := &csinodetopologyv1alpha1.CSINodeTopology{
ObjectMeta: metav1.ObjectMeta{
Name: nodeInfo.NodeName,
OwnerRefe... | Go |
Equal(t, int64(123), result.ID)
assert.Nil(t, result.PromptEvaluatorVersion)
assert.Nil(t, result.CodeEvaluatorVersion)
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
result := ConvertEvaluatorDTO2DO(tt.evaluatorDTO)
if tt.validate != nil {
tt.valida... | Go |
case.expected_return_value,
ExecuteExpectSuccess(blob, {JVariant::Int(test_case.argument1),
JVariant::Int(test_case.argument2)}))
<< "opcode: " << test_case.opcode
<< ", arguments: " << test_case.argument1 << ", "
<< test_case.argument2;
}
}
TEST_F... | C++ |
rn;
if (bd->pVB) { bd->pVB->Release(); bd->pVB = nullptr; }
if (bd->pIB) { bd->pIB->Release(); bd->pIB = nullptr; }
if (bd->FontTexture) { bd->FontTexture->Release(); bd->FontTexture = nullptr; ImGui::GetIO().Fonts->SetTexID(0); } // We copied bd->pFontTextureView to io.Fonts->TexID so let's clear that as w... | C++ |
dex
ldrb w3, [x3] // load ret index
// Jump into the instruction list
next
_BRK:
// Write index values back through index pointers
ldp x9, x10, [sp, 0x10] // restore stack index pointers
strb w1, [x9] // save stack index
strb w3, [x10] // save r... | Assembly |
top:-18px;margin-left:-101%}span.ui-slider-label{width:100%;position:absolute;height:32px;font-size:16px;text-align:center;line-height:2;background:0;border-color:transparent}span.ui-slider-label-a{left:-100%;margin-right:-1px}span.ui-slider-label-b{right:-100%;margin-left:-1px}@import url(https://fonts.googleapis.com/... | CSS |
机就可以转换为可接听状态,这时其他人可以拨打电话请求连接到该机。同样,需要把套接字转化成可接受连接状态。
```c
#include <sys/socket.h>
int listen(int sockfd, int backlog);
//成功时返回0,失败时返回-1
```
连接好电话线以后,如果有人拨打电话就响铃,拿起话筒才能接听电话。
**调用 accept 函数(拿起话筒)时进行的对话**:
> 问:电话铃响了,我该怎么办?
>
> 答:接听啊。
```c
#include <sys/socket.h>
int accept(int sockfd,struct sockaddr *addr,socklen_t *... | Markdown |
/*
* RTP muxer chaining code
* Copyright (c) 2010 Martin Storsjo
*
* 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
* version 2.1 of the License,... | C |
as the interactive tag
/// </summary>
public OpStatus InteractiveStepForward()
{
return StepForwardToAfterNextTag(InteractionCheckpointOp.InteractiveStateTag);
}
/// <summary>
/// discard any nodes with given tag. Note that this could result in invalid/garb... | C# |
ales department
at http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25
*/
.x-progress-wrap {
border-color:#18181a;
}
.x-progress-inner {
background-color:#232d38;
background-image:none;
}
.x-progress-bar {
background-color:#f39a00;
background-image:url(../images/access/progress/progres... | CSS |
// clang-format off
// Auto-generated file. Do not edit!
// Template: src/qs8-igemm/1x8-aarch32-neon-mlal-lane-cortex-a7.S.in
// Generator: tools/xngen
//
// Copyright 2021 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tre... | Assembly |
&& inMonth && (cal.get(Calendar.DAY_OF_YEAR) == today);
boolean isFirstOfMonth = cal.get(Calendar.DAY_OF_MONTH) == 1;
int cellLayoutResId = R.layout.cell_day;
if (isToday) {
cellLayoutResId = R.layout.cell_today;
} else if (inMonth) {... | Java |
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Threading;
using Stride.C... | C# |
Helpers
*/
//@{
int ssl_bio_read (char * buf, size_t len, int & errval);
int ssl_bio_write (const char * buf, size_t len, int & errval);
//@}
protected:
/// Stream Type ST_CLIENT/ST_SERVER
Stream_Type type_;
/// The real file/socket handle
ACE_HANDLE handle_;
/// The proactor
ACE_Proactor * p... | C |
st Scott K Sword",
[37002] = "Ligas de vinculador",
[37003] = "Misiva de la Alianza",
[37004] = "Quijotes de vigilante de la llanura",
[37005] = "Sobrecamisa de D.E.H.T.A.",
[37006] = "Cristal de armonización de línea Ley",
[37007] = "Caperuza de polipiel",
[37008] = "Charreteras éticas",
[37009] = "Escarpes de moral",... | Lua |
= Set();
TencentImPluginListener(MethodChannel channel) {
// 绑定监听器
channel.setMethodCallHandler((methodCall) async {
// 解析参数
Map<String, dynamic> arguments = jsonDecode(methodCall.arguments);
switch (methodCall.method) {
case 'onListener':
// 获得原始类型和参数
TencentI... | Dart |
#if LV_BUILD_TEST
#include "../lvgl.h"
#include "../lv_test_indev.h"
#include "unity/unity.h"
#define TEST_HOVER_COUNTS 20
typedef struct _test_hover_t {
/* data */
char id[32];
uint32_t counts;
} test_hover_t;
static test_hover_t label_hovered;
static test_hover_t btn_hovered;
static const lv_point_t... | C |
enapi/getTaskLineage?id=1
>
> Origin Url: http://localhost:8888/openapi/getTaskLineage
>
> Type: GET
### Request headers
| Header Name | Header Value |
|-------------|--------------|
### Parameters
##### Path parameters
| Parameter | Type | Value | Description |
|-----------|------|-------|-------------|
##### UR... | Markdown |
mIndex) => {
const { ROLE_USER_GROUP, PERMISSIONS } = this.getPermissionErrorTypes();
// const list = this.getFieldFormData();
const obj = {
users: [],
groups: [],
roles: [],
others: []
};
if (value) {
let pattern = /,(?=users##__##|groups##__##|roles##__##|others##__##... | JavaScript |
ariant Form is returned
return name ? ({ emoji: emojiByName[name], key: name }) : undefined;
};
/**
* Check if an emoji is known by this library
* @param {string} nameOrCode The emoji to validate, either `coffee`, `:coffee:` or `☕`;
* @return {object}
*/
Emoji.hasEmoji = function hasEmoji (nameOrCode) {
retur... | JavaScript |
*fchs, struct fc_prlo_acc_s *prlo_acc,
u32 d_id, u32 s_id, __be16 ox_id, int num_pages);
u16 fc_logo_rsp_parse(struct fchs_s *fchs, int len);
u16 fc_pdisc_build(struct fchs_s *fchs, u32 d_id, u32 s_id,
u16 ox_id, wwn_t port_name, wwn_t node_name,
u16 pdu_size);
u16 fc_pdisc_rsp_parse(struct fchs_s *fchs, int ... | C |
enPgpStoreInstance1.getTrust(alice, finger2));
// clean up
openPgpStoreInstance1.setTrust(alice, finger2, OpenPgpTrustStore.Trust.undecided);
openPgpStoreInstance1.setTrust(bob, finger2, OpenPgpTrustStore.Trust.undecided);
}
@Test
public void t09_trust_reloadTest() throws IOExcepti... | Java |
= dom.SelectValue('//div[contains(@class, "manga-description")]')
info.ChapterCount = dom.SelectValue('//b[contains(text(), "Chapters")]//following-sibling::text()')
if(isempty(info.Title)) then
info.Title = dom.SelectValue('//h1')
end
end
function GetChapters()
doc = http.Get(url)
loc... | Lua |
ed = false
game.forces.player.technologies['laser-shooting-speed-2'].enabled = false
game.forces.player.technologies['laser-shooting-speed-3'].enabled = false
game.forces.player.technologies['laser-shooting-speed-4'].enabled = false
game.forces.player.technologies['laser-shooting-speed-5'].enabled = false
gam... | Lua |
unittest.expect(o.etag!, unittest.equals('foo'));
unittest.expect(o.id!, unittest.equals('foo'));
checkProfileMetadata(o.profileMetadata!);
unittest.expect(o.type!, unittest.equals('foo'));
unittest.expect(o.updateTime!, unittest.equals('foo'));
}
buildCounterSource--;
}
core.Map<core.String, c... | Dart |
. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, F... | Java |
SledMessageType.Info,
SledUtil.TransSub(Localization.SledNetworkPluginLoaded, netPlugin.Protocol, netPlugin.Name));
}
}
try
{
Initialized.Raise(this, EventArgs.Empty);
}
finally
... | C# |
actions?query=workflow%3ACMakeBuilds)
[](https://github.com/raysan5/raylib/actions/workflows/windows_examples.yml)
[](... | Markdown |
Dist = ai:GetDist(TARGET_ENE_0)
local fate = ai:GetRandam_Int(1, 100)
goal:AddSubGoal(GOAL_COMMON_SpinStep, 10, NPC_ATK_StepB, TARGET_ENE_0, 0, AI_DIR_TYPE_B, 2)
GetWellSpace_Odds = 0
return GetWellSpace_Odds
end
function ForestHunterAxe6801_ActAfter_AdjustSpace(ai, goal, paramTbl)
local fate = ai:... | Lua |
local SHADER1 = "shaders/vfx_particle_reveal.ksh"
local TEXTURE1 = "fx/animsmoke.tex"
local COLOUR_ENVELOPE_NAME1 = "eyeflame_colourenvelope1"
local SCALE_ENVELOPE_NAME1 = "eyeflame_scaleenvelope1"
local SHADER2 = "shaders/vfx_particle_add.ksh"
local TEXTURE2 = "fx/torchfire.tex"
local COLOUR_ENVELOPE_NAME2 = "eyeflam... | Lua |
collapsed {
color: $dark;
.icon {
color: $primary;
}
}
}
}
}
}
}
.sidebar-nav-wrapper {
&.style-2 {
.sidebar-nav {
ul {
.nav-item {
&.nav-item-has-children {
ul {
li {
... | CSS |
mpilers
typedef date_time::split_timedate_system<posix_time_system_config, 1000000000> posix_time_system;
#else
typedef date_time::split_timedate_system<posix_time_system_config> posix_time_system;
#endif
#else
typedef date_time::counted_time_rep<millisec_posix_time_system_config> int64_time_rep;
typedef dat... | C++ |
"Download audio" : "Hang letöltése",
"Download video" : "Videó letöltése",
"Open website" : "Weboldal megnyitása",
"Keep article unread" : "Cikk olvasatlanul hagyása",
"Toggle keep current article unread" : "Cikk olvasatlanul hagyása be/ki",
"Remove keep article unread" : "Cikk olvasatlanul hagyásán... | JavaScript |
3] = "Art Template Leather Shoulder Leather_PVPRogue_D_01 - Red",
[76324] = "Art Template Leather Wrist Leather_PVPRogue_D_01 - Red",
[76325] = "Art Template Leather Belt Leather_PVPRogue_D_01 - Green",
[76326] = "Art Template Leather Boot Leather_PVPRogue_D_01 - Green",
[76327] = "Art Template Leather Chest Leather_PV... | Lua |
168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 ... | JavaScript |
XdrRevokeSponsorshipSigner(xAccountId, _signerKey!);
body.revokeSponsorshipOp = op;
}
return body;
}
static RevokeSponsorshipOperation? fromXdr(XdrRevokeSponsorshipOp op) {
switch (op.discriminant) {
case XdrRevokeSponsorshipType.REVOKE_SPONSORSHIP_LEDGER_ENTRY:
XdrLedgerKey ledge... | Dart |
Flat::OnTimer(__EXT_MFC_UINT_PTR nIDEvent)
{
if( nIDEvent == 1 )
{
POINT pt;
if( ! ::GetCursorPos( &pt ) )
return;
CRect rcItem;
GetWindowRect( &rcItem );
static bool bPainted = false;
if(!rcItem.PtInRect(pt))
{
KillTimer(1);
if(!m_bCurrentlyIsFlat)
{
m_bCurrentlyIsFlat = TRUE;
Mo... | C++ |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, _
class Partner(models.Model):
_inherit = ['res.partner']
employee_ids = fields.One2many(
'hr.employee', 'work_contact_id', string='Employees', groups="hr.group_hr_user... | Python |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "NGAP-IEs"
* found in "NGAP-IEs.asn"
* `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps -no-gen-OER -gen-PER -no-gen-example -D ngap`
*/
#ifndef _ASN_NGAP_WarningMessageContents_H_
#define _ASN_NGAP_WarningMessageC... | C |
c.svg");
}
installitem[type="theme"] .xpinstallItemIcon {
list-style-image: url("chrome://mozapps/skin/extensions/themeGeneric.png");
}
installitem[type="locale"] .xpinstallItemIcon {
list-style-image: url("chrome://mozapps/skin/extensions/localeGeneric.png");
}
installitem[type="plugin"] .xpinstallItemIcon {
... | CSS |
#include "erfa.h"
void eraPpp(double a[3], double b[3], double apb[3])
/*
** - - - - - - -
** e r a P p p
** - - - - - - -
**
** P-vector addition.
**
** Given:
** a double[3] first p-vector
** b double[3] second p-vector
**
** Returned:
** apb double[3] a + b
**
**... | C |
0..1] and a\*, b\* almost in [-1..1].
- **CIE-L\*u\*v\*:** Very similar to CIE-L\*a\*b\*, there is [no consensus](http://en.wikipedia.org/wiki/CIELUV#Historical_background) on which one is "better".
- **CIE-L\*C\*h° (HCL):** This is generally the [most useful](http://vis4.net/blog/posts/avoid-equidistant-hsv-colors/) o... | Markdown |
let mut global_users_object = Object::new();
global_users_object.set_org_unit(global_users_ou);
let mut global_users_op = Op::new();
global_users_op.set_optype(op::Type::ADD);
global_users_op.set_path(path.clone().into());
global_users_op.set_object(global_users_object);
ops.push(global_use... | Rust |
client, string[] args)
{
// Needs all arguments
if (args.Length < 6)
{
DisplaySyntax(client);
return;
}
// Parse Arguments
int version;
int regionId;
int realmId;
int classId;
int raceId;
if (!int.TryParse(args[1], out version))
{
DisplaySyntax(client);
ret... | C# |
andom_float(&seed, B * T);
// float* CUDA_Rstd = malloc_random_float(&seed, B * T);
//
// float* CUDA_DIn = malloc_zero_float(&seed, B * T * C);
// float* CUDA_DWeight = malloc_zero_float(&seed, C);
// float* CUDA_DBias = malloc_zero_float(&seed, C);
//
// memcp... | C# |
void
splay(node_pointer);
inline void
splay_zig_zag_left(node_pointer, node_pointer, node_pointer);
inline void
splay_zig_zag_right(node_pointer, node_pointer, node_pointer);
inline void
splay_zig_zig_left(node_pointer, node_pointer, node_pointer);
inline void... | C++ |
--[[
A helper function to define a Rodux action creator with an associated name.
Normally when creating a Rodux action, you can just create a function:
return function(value)
return {
type = "MyAction",
value = value,
}
end
And then ... | Lua |
[completeTask]
* [endBuild]表示最后一步,当前容器要结束
*/
fun completeClaimBuildTask(
completeTask: CompleteTask,
endBuild: Boolean = false,
endBuildMsg: String? = null
): PipelineBuildTask? {
val buildTask = pipelineTaskService.getBuildTask(
projectId = completeTask.pro... | Kotlin |
t samples
#
############################################################################
#define dmem_left s3
#define dmem_right s5
#define wnd_left s6
#define wnd_right s7
#define num_bytes t8
#define vin0 $v01
#define vin1 $v02
#define vi... | Assembly |
25 Bytedance Ltd. and/or its affiliates
// SPDX-License-Identifier: MIT
package main
import (
"context"
"net/http"
"time"
"github.com/coze-dev/cozeloop-go"
"github.com/coze-dev/cozeloop-go/internal/logger"
"github.com/coze-dev/cozeloop-go/spec/tracespec"
)
type llmRunner struct {
client cozeloop.Client
}
co... | Go |
B,aAAc,CALd,iBAAkB,CAelB,eAAgB,CAbhB,uCAAwC,CAKxC,UAAW,CAHX,kCAeJ,CAEA,gBACI,iBACJ,CC3BA,qBAII,UAAW,CACX,qCAAsC,CAEtC,cAAe,CALf,aAAc,CADd,sBAAuB,CAEvB,yCAA0C,CAG1C,kBAEJ,CAEA,gCACI,+CAAgD,CAChD,6CACJ,CAEA,+BACI,yDACJ,CAEA,+BACI,iDAAkD,CAClD,+CACJ,CAEA,+BACI,sCAAuC,CACvC,oCAAqC,CACrC,sCACJ,CC5BA,cAEI,kBAAmB,CACnB,sCAAuC... | JavaScript |
bcc.s L066A
btst #4,D6
bne L066D
move.l L082E,D0
beq L066D
movea.l D0,A0
move.l 6(A0),L082E
moveq #-1,D2
bra L0651
L066A: cmpi.w #$009F,D1
... | Assembly |
istributed
// except according to those terms.
//! Mappings for the contents of OleAuto.h
use ctypes::c_uint;
use shared::minwindef::{UINT, USHORT, WORD};
use shared::wtypes::{BSTR, VARTYPE};
use shared::wtypesbase::{LPCOLESTR, OLECHAR};
use um::oaidl::{DISPID_UNKNOWN, ITypeLib, VARIANT, VARIANTARG};
use um::winnt::{HR... | Rust |
ption is only useful in tests.
func WithIDGenerator(g IDGeneratorIface) Option {
return func(o *options) {
o.idGenerator = g
}
}
// NewManager creates a new user manager.
func NewManager(config Config, dbDir string, args ...Option) (m *Manager, err error) {
log.Debugf(context.Background(), "Creating user manager ... | Go |
()
{
var ctx = CreateContext();
ctx.Jobs.Where(x => true).ExecuteDelete();
ctx.Servers.Where(x => true).ExecuteDelete();
return ctx;
}
public static async Task<JobbyTestingDbContext> CreateContextAndClearDbAsync()
{
var ctx = CreateContext();
await ctx.Jo... | C# |
ht:0, height:40, skin:settingLineSkin, active:true,
Behavior: PopupSettingBehavior,
contents: [
Label($, { width:160, style:settingNameStyle, string:$.title }),
Container($, { left:0, right:0, skin:whiteButtonSkin, state:1,
contents: [
Label($, { left:0, right:0, anchor:"LABEL", style:settingValueStyle }),... | JavaScript |
local sin, pi = math.sin, math.pi
local function fft_bitreverse(v, n)
local j = 0
for i=0,2*n-4,2 do
if i < j then
v[i+1], v[i+2], v[j+1], v[j+2] = v[j+1], v[j+2], v[i+1], v[i+2]
end
local k = n
while k <= j do j = j - k; k = k / 2 end
j = j + k
end
end
... | Lua |
Keyframe.set("offset", time / this.duration);
}
finalKeyframes.push(finalKeyframe);
});
const preProps = [...preStyleProps.values()];
const postProps = [...postStyleProps.values()];
if (isEmpty) {
const kf0 = finalKeyframes[0];
const kf1 = new Map(kf0);
kf0.set("offset", 0)... | JavaScript |
и server_address
- Адреса не нужны, если используется режим PUSH.
- Если не указать, будут использованы значения по умолчанию (16 и 1). Но лучше свериться с документацией к конкретному счётчику.
- Часто используется client_address = 32 (требуется пароль). Уровни по СПОДЭС:
| Код | Уровень | Операции | Защита |
|-----... | Markdown |
TEMP2
FF_ONE_ROUND B, C, D, A, 28, S14, 28, W, T, TEMP1, TEMP2
FF_ONE_ROUND A, B, C, D, 32, S11, 32, W, T, TEMP1, TEMP2
FF_ONE_ROUND D, A, B, C, 36, S12, 36, W, T, TEMP1, TEMP2
FF_ONE_ROUND C, D, A, B, 40, S13, 40, W, T, TEMP1, TEMP2
FF_ONE_ROUND B, C, D, A, ... | Assembly |
--[[
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
]]--
local tnt ... | Lua |
,%hi(table_napt)
move $20,$2
$LBE2256 = .
$LBE2258 = .
$LBE2261 = .
$LBE2264 = .
.loc 1 3231 0
bne $2,$0,$L447
sw $2,%lo(table_napt)($21)
$L449:
.loc 1 3233 0
j $L448
li $2,-1 # 0xffffffffffffffff
$L447:
.loc 1 3235 0
lui $6,%hi(napt_list_inuse)
.loc 1 3236 0
lui $3,%hi(napt_list_free)
.loc 1 3235 0
a... | Assembly |
f), _fpFormat); \
} \
else \
{ \
int bytes = _count * _vertexSize; \
memcpy (_pBuf, _vertexData.no_data, bytes); \
_pBuf += bytes; \
} \
}
/* ------------------------------------------------------------------------ */
/* PICK RECORD */
/* -----------------------------------... | C |
BOX,
Blocks.PURPLE_SHULKER_BOX,
Blocks.BLUE_SHULKER_BOX,
Blocks.BROWN_SHULKER_BOX,
Blocks.GREEN_SHULKER_BOX,
Blocks.RED_SHULKER_BOX,
Blocks.BLACK_SHULKER_BOX
)
@Suppress("UNREACHABLE_CODE")
private fun SafeClientEvent.getVisibleDirectionPoint(dir: Direction, ... | Kotlin |
over those that
// can't fit an unsigned.
if (ExitsCount.ult(std::numeric_limits<unsigned>::max())) {
ExpectedTC = static_cast<unsigned>(ExitsCount.getZExtValue()) + 1;
HasExpectedTC = true;
}
}
// ExpectedTC may be large because it's bound by a variable. Check
// profiling information to ... | C++ |
�本,先将Megatron格式的模型文件转换为huggingface格式。
LLaMA2模型转换:
```bash
cd PAI-Megatron-Patch/toolkits/model_checkpoints_convertor/llama2
bash model_convertor.sh \
/path/to/Megatron-LM \
/path/to/megatron_llama2_ckpt \
/path/to/hf_llama2_ckpt \
1 \
1 \
llama-7b \
0 \
true
```
BLOOM模型转换:
```bash
cd PAI-Megatron-Patch/toolkits/model_... | Markdown |
#!/usr/bin/python3
""" Starts a Flask Web Application """
from models import storage
from models.state import State
from models.city import City
from models.amenity import Amenity
from models.place import Place
from os import environ
from flask import Flask, render_template
import uuid
app = Flask(__name__)
# app.jinja... | Python |
E: JLE % Unexpected extra 2 type argument(s)>
// JLE.E.asType(emptyList()): JLE
// KSE.star.replace([INVARIANT Int, INVARIANT String]): <ERROR TYPE: KSE % Unexpected extra 2 type argument(s)>
// KSE.star.replace([INVARIANT NotExist1, INVARIANT NotExist2]): <ERROR TYPE: KSE % Unexpected extra 2 type argument(s)>
// KSE.... | Kotlin |
*/
DEF_DOUBLE_BUFFERED: false,
/** @pirvate */
SHADOW_CANVAS_FIELD: '__$shadow_canvas__',
/** @private */
SHADOW_CONTEXT_FIELD: '__$shadow_context__',
/**
* Returns shadow canvas context for double buffered drawing.
* @param {Object} context
* @returns {Object}
* @private
*/
getShadowContext: functio... | JavaScript |
INIMAPCLICK = 55
const val RESUME_P_NAMEDIALOG = 56
const val OPNPC1 = 57
const val EVENT_KEYBOARD = 58
const val FRIENDLIST_DEL = 59
const val OPNPC5 = 60
const val EVENT_NATIVE_MOUSE_MOVE = 61
const val RESUME_PAUSEBUTTON = 62
const val OPOBJ2 = 63
const val CLICKWORLDMAP = 64
... | Kotlin |
_icon_website_and_email_473{margin-right:10px;top:4px;}@media only screen and (min-width:337px) {.window_size_mobile .product_icon_class .product_icon.product_icon_website_and_email_473{top:-2px !important;}}.blisting_more_info{text-decoration:none;}.blisting_icon{color:#E33C2D;}.package-information{cursor:pointer;posi... | CSS |
ulli Box", "ANY", MediaType.IomegaBernoulliDisk)]
[InlineData("Iomega Bernoulli Box II", "ANY", MediaType.IomegaBernoulliDisk)]
[InlineData("Iomega Ditto", "ANY", null)]
[InlineData("Iomega Jaz", "ANY", MediaType.IomegaJaz)]
[InlineData("Iomega PocketZip", "ANY", MediaType.IomegaZip)]
... | C# |
o:")
print(mapper)
# Criar gráficos de análise
plt.figure(figsize=(12, 6))
# Gráfico de Geração Real vs Geração Esperada
plt.subplot(1, 2, 1)
plt.plot(anos, geracao_real, label="Geração Real", marker='o')
plt.plot(anos, geracao_esperada, label="Geração Esperada", marker='x')
plt.xlabel('Ano')
plt.ylabel('Geração (kWh... | Python |
ppet.description,
html_url,
format!("snippet_{}{}", snippet.index, snippet.extension).replace('.', "-"),
if snippet.tags.is_empty() {
String::new()
} else {
format!(" :{}:", snippet.tags.join(":"))
}
));
}
#[derive(Debug, PartialEq, Eq, Hash, Clone, C... | Rust |
佳實踐:
1. **資料目錄**:維護您的資料資產的全面清單,包括元數據和血緣資訊。
2. **存取控制**:實施強大的存取管理系統,以確保資料安全和合規性。
3. **資料生命週期管理**:建立資料保留、歸檔和刪除的流程。
4. **道德考量**:制定道德資料使用指南,特別是在處理敏感或個人資訊時。
5. **合規管理**:確保您的資料實踐遵守相關法規(例如GDPR、CCPA)。
## 3. 成功資料結構化的案例研究
### 案例研究1:電子商務巨頭增強個人化
一家領先的電子商務公司改造其資料基礎設施,為其GenAI驅動的推薦系統提供動力:
- **挑戰**:多個系統中的客戶資料分散導致個人化不一致。
- **解... | Markdown |
pen help dialog": "\u6253\u5f00\u5e2e\u52a9\u5bf9\u8bdd\u6846",
"history": "\u5386\u53f2",
"styles": "\u6837\u5f0f",
"formatting": "\u683c\u5f0f\u5316",
"alignment": "\u5bf9\u9f50",
"indentation": "\u7f29\u8fdb",
"permanent pen": "\u8bb0\u53f7\u7b14",
"comments": "\u5907\u6ce8",
"Anchor": "\u951a\u70b9",
"Special chara... | JavaScript |
from __future__ import annotations
import numpy as np
import pandas as pd
import dask.dataframe.methods as methods
from dask.dataframe._compat import PANDAS_GT_140
def test_assign_not_modifying_array_inplace():
df = pd.DataFrame({"a": [1, 2, 3], "b": 1.5})
result = methods.assign(df, "a", 5)
assert not ... | Python |
e/Designate/DIG_TO_MARKER',
'dwarfmode/Designate/ERASE',
'dwarfmode/Designate/SMOOTH',
'dwarfmode/Designate/ENGRAVE',
'dwarfmode/Designate/TRACK',
'dwarfmode/Designate/FORTIFY',
},
default_enabled=true,
frame={w=0, h=0},
}
local function get_bounds()
local pos1 =... | Lua |
line-height:16px;width:15px}.icon.thumb-down.red,.icon.thumb-down.white:hover,.icon.thumb-up.red,.icon.thumb-up.white:hover{color:#de2600}.btn:hover .icon.thumb-down.black.no-hover,.btn:hover .icon.thumb-up.black.no-hover,.icon.thumb-down.no-hover:hover,.icon.thumb-up.no-hover:hover{color:#000}.btn:hover .icon.thumb-do... | CSS |
});
REQUIRE(machine->machine.process_event(call::event::Ended{}));
REQUIRE(record_when_called.type == CallType::CT_MISSED);
}
// ---------------------------------
// INCOMING CALL TESTS - mode dnd
// ---------------------------------
TEST_CASE("call incoming - dnd - not favourite")
{
auto number = ut... | C++ |
求</summary>
1.有即时零售、前置仓、本地生活等相关产品经验优先
2.3年及以上互联网产品从业经验,有电商产品经验优先;
3.有较强逻辑和数据分析能力,能够通过数据驱动产品设计;
4.对用户体验敏感,善于发现和分析问题,并找到解决方案;
5.高度的责任感,自驱性,良好的沟通能力与团队协作能力。
符合京东价值观:客户为先、创新、拼搏、担当、感恩、诚信。
</details>
---
#### [高级产品经理(产品/商业分析方向)](https://zhaopin.jd.com/web/job/job_info_list/3)
📍 北京
<details>
<summary>职位描述</summary... | Markdown |
ler circle */
height: 50px; /* smaller circle */
border-radius: 50%;
padding: 0;
box-shadow: 0 0 12px rgba(32, 33, 33, 0.6);
transition: background 0.3s, transform 0.3s;
animation: pulseShadow 2s infinite;
display: flex;
justify-content: center;
align-items: center;
}
/* Hover effects */
#goTopBtn:h... | CSS |
ger postiion
def IntPos(CurPos):
x_floor = np.expand_dims(np.floor(CurPos[:, 0]).astype(np.int32), 1)
x_ceil = np.expand_dims(np.ceil(CurPos[:, 0]).astype(np.int32), 1)
y_floor = np.expand_dims(np.floor(CurPos[:, 1]).astype(np.int32), 1)
y_ceil = np.expand_dims(np.ceil(CurPos[:, 1]).astype(np.int32), 1... | Python |
on the **map component**
---
id: azure-container
title: Azure container apps
---
# Deploying ToolJet on Azure container apps
:::info
Please note that you need to set up a PostgreSQL database manually to be used by ToolJet
:::
## Deploying ToolJet application
1. Open the Azure dashboard at https://portal.azure.com... | Markdown |
_vTBN;\n#endif\n\n#ifdef HAS_NORMALMAP\n vec3 n = texture2D(u_NormalSampler, pbr_vUV).rgb;\n n = normalize(tbn * ((2.0 * n - 1.0) * vec3(u_NormalScale, u_NormalScale, 1.0)));\n#else\n vec3 n = normalize(tbn[2].xyz);\n#endif\n\n return n;\n}\n\n\n#ifdef USE_IBL\nvec3 getIBLContribution(PBRInfo pbrInputs, vec3 n, vec... | JavaScript |
ound');
setBool(pl, 'shockwave', 'progress');
setBool(pl, 'shockwave', 'autostart');
setBool(pl, 'shockwave', 'swliveconnect');
setStr(pl, 'shockwave', 'swvolume');
setStr(pl, 'shockwave', 'swstretchstyle');
setStr(pl, 'shockwave', 'swstretchhalign');
setStr(pl, 'shockwave', 'swstretchvalign... | JavaScript |
rSec = 15,
k_EFrameStatClientBitrateKbitPerSec = 16,
k_EFrameStatLinkBandwidthKbitPerSec = 17,
k_EFrameStatPacketLossPercentage = 18,
}
impl ::protobuf::ProtobufEnum for EFrameAccumulatedStat {
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<EFr... | Rust |
---@type Action
local food = Action()
local foods = {
[2362] = { 5, "Crunch." }, -- carrot
[2666] = { 15, "Munch." }, -- meat
[2667] = { 12, "Munch." }, -- fish
[2668] = { 10, "Mmmm." }, -- salmon
[2669] = { 17, "Munch." }, -- northern pike
[2670] = { 4, "Gulp." }, -- shrimp
[2671] = { 30,... | Lua |
#!/usr/bin/env python3
"""
Prompt Brewery CLI - Static template analysis tool
This script analyzes Jinja templates for potential issues and provides
detailed reports on errors, warnings, and informational messages.
"""
import argparse
import json
import sys
from pathlib import Path
from typing import Dict, Any, List
... | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.