content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
import json
def update_requirements(requirements_path, outdated_packages_path):
with open(outdated_packages_path, 'r') as f:
outdated_packages = json.load(f)
with open(requirements_path, 'r') as f:
requirements_lines = f.readlines()
outdated_map = {pkg['name']: pkg['latest_version'] for p... | Python |
ServerInfo;
getServerInfoByServiceUrl(serviceUrl: string): ArcGISServerInfo;
fetchServiceInfo(url: string): Promise<ServiceInfo>;
isHostedServiceInSamePortal(url: string): Promise<boolean>;
fetchArcGISServerInfo(serviceUrl: string): Promise<ArcGISServerInfo>;
getArcGISServerUrlFromServiceUrl(service... | Typescript |
to`.
final $typed_data.Uint8List controlDescriptor = $convert.base64Decode(
'CgdDb250cm9sEiAKC2Vudmlyb25tZW50GAEgASgJUgtlbnZpcm9ubWVudBJBCg9tZXRob2RfcG'
'9saWNpZXMYBCADKAsyGC5nb29nbGUuYXBpLk1ldGhvZFBvbGljeVIObWV0aG9kUG9saWNpZXM=');
//
// Generated code. Do not modify.
// source: google/api/annotations.proto
/... | Dart |
using Application.Repositories;
namespace Application
{
public interface IUnitOfWork
{
public IGardenerRepository GardenerRepository { get; }
public ICustomerRepository CustomerRepository { get; }
public IBonsaiRepository BonsaiRepository { get; }
public ICategoryRepository Cat... | C# |
{}{}{}{}{}{}{}{}{}{}{}{}",
base + i * 16,
chunk[0], chunk[1], chunk[2], chunk[3],
chunk[4], chunk[5], chunk[6], chunk[7],
chunk[8], chunk[9], chunk[10], chunk[11],
chunk[12], chunk[13], chunk[14], chunk[15],
ch(chunk[0]), ch(chunk[1]), ch(chunk[2])... | Rust |
nt coats[10];
*(coats + 4) = 12;
```
### 8.2 指针和字符串
数组名是`第一个元素地址`。
如果给cout提供一个字符的地址,则它将从该字符开始打印,直到遇到空字符为止。
在cout和多数C++表达式中,`char数组名`、`char指针`以及用引号括起来的`字符串常量`都被解释为`字符串第一个字符的地址`。
<u>~~不要使用字符串常量或未被初始化的指针来接收输入~~。</u>
> 在字符串读入程序时,应使用已分配的内存地址。该地址不是数组名,也可以使用new初始化过的指针。
`strcpy()`接受两个参数,第一个:`目标地址`,第二个:`要复制的字符串的地址`。
> 要确定目... | Markdown |
ESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",
"built_in":
"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x... | Dart |
rs, tz, iv_series, w_len=args.w_len, m_len=args.m_len)
logger.info(f"Dataset built: X={X.shape}, y={y.shape} spanning {X.index.min().date()} to {X.index.max().date()}")
# Train
models, oof = train_harq_rr_iv(X, y, t1, cfg)
# Save artifacts
out_dir = f"artifacts/{args.instrument}/daily"
os.make... | Python |
",null,"As mentioned in our ",(0,a.kt)("a",{parentName:"p",href:"https://strongloop.com/strongblog/2020-community-contribution/"},"recent blog post"),", your contribution is important to make LoopBack a sustainable open source project. "),(0,a.kt)("p",null,"Here is what you can do:"),(0,a.kt)("ul",null,(0,a.kt)("li",{p... | JavaScript |
ShouldBeVisible && splitter->sizes().constLast() == 0) {
const auto sideBarWidth = sidebarContent->sizeHint().width();
splitter->setSizes({ _container->width() - sideBarWidth, sideBarWidth });
}
}
void StageplayTextView::Implementation::addReviewMark(const QColor& _textColor,
... | C++ |
ay */
div.DTTT_print_info.modal {
height: 150px;
margin-top: -75px;
text-align: center;
}
div.DTTT_print_info h6 {
font-weight: normal;
font-size: 28px;
line-height: 28px;
margin: 1em;
}
div.DTTT_print_info p {
font-size: 14px;
line-height: 20px;
}
/*
* FixedColumns styles
*/
div.DTFC_LeftHeadWrapper ta... | CSS |
.unwrap()));
Ok(())
}
pub fn clear_timeset(&mut self) -> Result<()> {
self.current_timeset_id = Option::None;
TEST.push(node!(ClearTimeset));
Ok(())
}
pub fn get_pin_header(&self, dut: &Dut) -> Option<PinHeader> {
if let Some(ph_id) = self.current_pin_header_id ... | Rust |
using System.Drawing;
using OfficeOpenXml;
using OfficeOpenXml.Style;
namespace WuHuan
{
public static class AssetBundleResReporter
{
public static void CreateWorksheet(ExcelWorksheets wss)
{
ExcelWorksheet ws = wss.Add("资源列表");
// 标签颜色
ws.TabColor = ColorT... | C# |
y",
name = "cry-Quintuple Tag",
order = 22,
pos = { x = 2, y = 1 },
config = { type = "tag_add", num = 4 },
key = "quintuple",
loc_vars = function(self, info_queue)
return { vars = { self.config.num } }
end,
apply = function(self, tag, context)
if
context.type == "tag_add"
and context.tag.key ~= "tag_... | Lua |
lin.time.DurationUnitKt__DurationUnitJvmKt;
import org.jetbrains.annotations.NotNull;
@Metadata(mv={1, 6, 0}, k=5, xi=49, d1={"\u0000\u001c\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\f\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\u001a\u0018\u0010\u0000\u001a\u00020\u00012\u0006\u0010... | Java |
drive") == 0) {
mach_port_t masterPort = NULL;
io_iterator_t mediaIterator;
kern_return_t kernResult;
BX_INFO(("Insert CDROM"));
kernResult = FindEjectableCDMedia(&mediaIterator, &masterPort);
if (kernResult != KERN_SUCCESS) {
BX_INFO(("Unable to find CDROM"));
return 0;
}
... | C++ |
int blokSize, int keySize) throws Exception {
String algorithm = "";
String jreCipherName = "";
SecureRandom rng = new SecureRandom();
byte[] iv = new byte[blokSize];
rng.nextBytes(iv);
byte[] key = new byte[keySize];
rng.nextBytes(key);
byte[] plaintext ... | Java |
id, &their_id_bytes[0..Digest::LENGTH]);
} else {
error!(
?their_id,
"small_network attempted to retrieve bytes of ID, but seems to be libp2p ID?"
)
}
ConnectionId(id)
}
/// Creates a new [`TraceID`] based on the message count.
... | Rust |
def _configure_logging(args):
kwargs = {'format': '%(asctime)s %(levelname)-8s %(message)s',
'datefmt': '%Y-%m-%d %H:%M', 'level': logging.DEBUG if args.debug else
logging.INFO}
if args.log_file is not None:
kwargs['filename'] = args.log_file
logging.basicConfig(**kwargs)
| Python |
2c.2.2.2.5 0 .7l-2 2a.5.5 0 0 1-.7-.7L16.29 16h-5.58l1.14 1.15c.2.2.2.5 0 .7Z\"/>") { } }
public class PersonSync : Icon { public PersonSync() : base("PersonSync", IconVariant.Regular, IconSize.Size20, "<path d=\"M9 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM6 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.1... | C# |
})
}
/// Creates a copy-on-write memory map backed by a file.
///
/// Data written to the memory map will not be visible by other processes,
/// and will not be carried through to the underlying file.
///
/// # Errors
///
/// This method returns an error when the underlying system c... | Rust |
/// not enough balance of the pool share
static const LIQUIDITY_POOL_WITHDRAW_UNDERFUNDED =
const XdrLiquidityPoolWithdrawResultCode._internal(-3);
/// would go above limit for one of the assets
static const LIQUIDITY_POOL_WITHDRAW_LINE_FULL =
const XdrLiquidityPoolWithdrawResultCode._internal(-4);
... | Dart |
============ */
/* float clearing for IE6 */
* html .clearfix{
height: 1%;
overflow: visible;
}
/* float clearing for IE7 */
*+html .clearfix{
min-height: 1%;
}
/* float clearing for everyone else */
.clearfix:after{
clear: both;
content: ".";
display: block;
height: 0;
visibility: hidden;
font-size: 0;
}
... | CSS |
// PR sanitizer/81875
// { dg-do compile }
// { dg-options "-Wreturn-type" }
struct C { C (); ~C (); };
int
f1 (int a, int b)
{
C f;
switch (a)
{
case 0:
switch (b)
{
case 13:
return 7;
case 24:
return 19;
default:
return 0;
}
break;
default:
return 0;
case 9... | C |
w;
const QScreen * screen = qApp->primaryScreen();
w.setGeometry(QRect(QPoint(0,0), screen->geometry().size()));
w.show();
return a.exec();
}
else {
// Variables
global::reader::startBatteryWatchdog = false;
global::reader::startUsbmsPrompt = false;
... | C++ |
/* 00670 80A34C90 8FA4003C */ lw $a0, 0x003C($sp)
/* 00674 80A34C94 02002825 */ or $a1, $s0, $zero ## $a1 = 00000000
/* 00678 80A34C98 3C0741C8 */ lui $a3, 0x41C8 ## $a3 = 41C80000
/* 0067C 80A34C9C 0C00B92D */ jal func_8002E4B4
/* ... | Assembly |
1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n ... | JavaScript |
-tableTarget, .hiprint-printElement-tableTarget tr, .hiprint-printElement-tableTarget td {
border-color: rgb(0, 0, 0);
/*border-style: none;*/
/*border: 1px solid rgb(0, 0, 0);*/
font-weight: normal;
direction: ltr;
padding-bottom: 0pt;
padding-left: 4pt;
padding-right: 4pt;
padding-top: 0pt;
text-d... | CSS |
void serialize(Archive &ar, const unsigned int)
{
ar & boost::serialization::base_object<base>(*this);
ar & m_original_algo;
ar & m_original_algo_penalties;
ar & const_cast<int &>(m_gen);
ar & m_method;
ar & m_pop_penalties_size;
ar & m_pen_lower_bound;
ar & m_pen_upper_bound;
ar & const_cast<doubl... | C |
local spawn = require "mason-core.spawn"
---@class InstallContextSpawn
---@field strict_mode boolean Whether spawn failures should raise an exception rather then return a Result.
---@field private cwd InstallContextCwd
---@field private handle InstallHandle
---@field [string] async fun(opts: SpawnArgs): Result
local I... | Lua |
/**************************************************************************
*
* Copyright 2013-2014 RAD Game Tools and Valve Software
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... | C |
[role="button"]:not(:disabled) {
cursor: pointer;
}
body {
@apply relative text-base font-normal z-1 bg-gray-50 text-gray-700 dark:text-gray-300;
}
/* Prevent FOUC and layout shifts */
[x-cloak] {
display: none !important;
}
/* Ensure minimum heights to prevent... | CSS |
#pragma once
#include "stdafx.h"
#include "Executor_Common.h"
#include "InstructionTreeRegVm.h"
struct LlvmExecutionContext;
typedef struct DCCallVM_ DCCallVM;
class ExecutorLLVM
{
public:
ExecutorLLVM(Linker* linker);
~ExecutorLLVM();
bool TranslateToNative();
bool Run(unsigned functionID, const char *argume... | C |
Config(androidContext())
val okBuilder = OkHttpClient.Builder()
OkHttp3Integrator.applyTo(tmb, okBuilder);
okBuilder.build()
}
single { SearchRepository(get()) }
viewModel { MainMotor(get()) }
}
override fun onCreate() {
super.onCreate()
startKoin(this, listOf(koinModule))
... | Kotlin |
NavigationIcon(R.drawable.close_24px)
setNavigationOnClickListener { hideContextualToolbarAndClearSelection() }
setOnMenuItemClickListener { item ->
when (item.itemId) {
R.id.delete -> {
viewModel.deleteNotes(notesAdapter.getSelectedNotes())
hideContextualToolbarAndClearSelection()
tru... | Kotlin |
}
data = newData;
if (data.length == 1) {
final emptyTokens = await getSomeEmptyCoins(ethereumNetwork.type);
data.addAll(emptyTokens);
}
} else {
data.addAll(newData);
}
data = await setUSDValues(data);
double totalBalanceInUSD = 0;
for (final tokenEle... | Dart |
', '3', '5014_Wasp01_sad', '4,714'},
{'5014001', '', '4', '5014_Wasp01_shy', '4,714'},
{'5014001', '', '5', '5014_Wasp01_sorrow', '4,714'},
{'5014001', '', '6', '5014_Wasp01_surprised', '4,714'},
{'1019001', '', '', '', ''},
{'1019001', '', '1', '1019_Ijen01_angry', '-57,374'},
{'1019001', '', '2', '1019_Ijen01_dissati... | Lua |
self.map:get(section)
end
-- Access_Control_Allow_Origin -------------------------------------------------
local heo = hea:option( DynamicList, "Access_Control_Allow_Origin" )
heo.title = translate("Access-Control-Allow-Origin")
heo.description = nil
function heo.parse(self, section, novld)
CTRL.value_parse(self, se... | Lua |
#if !SP2013 && !SP2016
using PnP.PowerShell.CmdletHelpAttributes;
using PnP.PowerShell.Commands.Base.PipeBinds;
using System;
using System.Linq;
using System.Management.Automation;
namespace PnP.PowerShell.Commands.ClientSidePages
{
[Cmdlet(VerbsCommon.Move, "PnPClientSideComponent")]
[CmdletHelp("Moves a Cli... | C# |
require.Equal("0xb91edf64c8c47f199398050a1d18efc3b00725d866b875e340198f563a000575", metadata0.ParentHash)
require.Equal(uint64(ethereumHeight), metadata0.Height)
require.Equal(uint64(ethereumHeight-1), metadata0.ParentHeight)
require.Equal(testutil.MustTimestamp(ethereumBlockTimestamp), metadata0.Timestamp)
metad... | Go |
{
return fmt.Errorf("invalid PR number: %w", err)
}
for _, wt := range prWorktrees {
if wt.PRNumber == prNum {
selectedWorktree = wt
break
}
}
if selectedWorktree == nil {
if !shellMode {
fmt.Printf("Worktree for #%d not found.\n", prNum)
}
return nil
}
target... | Go |
全新界面设计
- **现代化UI**:参考flomo设计风格,简洁美观
- **智能布局**:自动识别页面信息,分区域展示
- **响应式设计**:适配不同屏幕尺寸
- **流畅交互**:优化的用户体验和动画效果
### 🔗 智能链接识别
- **自动提取**:自动识别页面标题和URL
- **实时显示**:在界面顶部清晰展示页面信息
- **格式优化**:智能格式化链接显示
### 📄 AI智能摘要
- **一键生成**:点击按钮即可生成AI摘要
- **可编辑内容**:支持手动编辑AI生成的摘要
- **多模型支持**:支持OpenAI、Claude、DeepSeek等
- **智能优化**:根据页面类型优化提示词
#... | Markdown |
!
// 内联函数:类型安全且无副作用
inline int square(int x) {
return x * x;
}
int result = square(i++); // i++只计算一次,结果是25
```
#### 3.1.3 作用域与访问控制
内联函数遵循C++的正常作用域规则,可以访问类的私有成员:
```cpp
class Secret {
private:
int secretValue;
public:
// 内联函数可以访问私有成员
inline int getSecret() const {
return secretValue;
... | Markdown |
(req: Request, res: Response) {
const { authorId } = req.params;
const posts = await PostModel.find({ author: req.params.authorId })
.sort({
_id: -1,
})
.lean();
const author = await UserModel.findById(authorId).lean();
const result = posts.map((v) => {
return {
...v,
author: a... | Typescript |
ctrl
/* 80391B54 0038EA94 38 80 00 00 */ li r4, 0
/* 80391B58 0038EA98 48 0C 04 39 */ bl endScene__Q26Screen9SceneBaseFPQ26Screen11EndSceneArg
.L_80391B5C:
/* 80391B5C 0038EA9C 80 0D 99 84 */ lwz r0, mDivePikiNum__Q28Morimura16TChallengeSelect@sda21(r13)
/* 80391B60 0038EAA0 2C 00 00 00 */ cmpwi r0, 0
/* 80391B64 ... | Assembly |
#ifndef GEOMETRY_MSGS_MESSAGE_POSESTAMPED_H
#define GEOMETRY_MSGS_MESSAGE_POSESTAMPED_H
#include <string>
#include <vector>
#include <map>
#include "Header.h"
#include "Pose.h"
namespace geometry_msgs
{
template <class ContainerAllocator>
struct PoseStamped_
{
typedef PoseStamped_<ContainerAllocator> Type;
Po... | C |
tamp time.Time
LocalTimestamp time.Time // timestamp epoch expressed in local time, used to convert activity timestamps to local time
TotalTimerTime uint32 // Scale: 1000; Units: s; Exclude pauses
NumSessions uint16
Type typedef.Activity
Event typedef.Event
EventType typedef.Eve... | Go |
and GPR args, mixed together to agree with core spills bitmap.
POP rcx
POP rdx
POP rbx
POP rbp
POP rsi
POP r8
POP r9
POP r12
POP r13
POP r14
POP r15
END_MACRO
/*
* Macro that set calls through to artDeliverPendingExceptionFromCode, where the pending
* exceptio... | Assembly |
.666149558484165],[25.217725316781777,44.682557614872884],[25.237274433159634,44.69476728805891],[25.264055655007358,44.67999579905839],[25.275141044167903,44.669631269251525],[25.28273541838313,44.65174995016761],[25.29073979317059,44.64361710555285],[25.279896515675347,44.62306111752326],[25.2682520789632,44.62090354... | JavaScript |
less required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pac... | Go |
y_m^2/2,
--
-- where
-- x_1, ..., x_n are the input values and parameters of the given module,
-- y_1, ..., y_m are the output values of the given module.
--
-- All x_i and y_i values are scalars here. In other words,
-- x_1, ..., x_n denote the scalar elements of the module input tensor,
-- ... | Lua |
3 fp=0xc42003efd8 sp=0xc42003efa0 pc=0x419973\n
runtime.goexit()\n
/usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc42003efe0 sp=0xc42003efd8 pc=0x44b4d1\n
created by runtime.gcenable\n
/usr/local/go/src/runtime/mgc.go:216 +0x58\n",
// second line
"one more line, no multiline\n",
... | Rust |
paddedNumAtoms, elementSize, "coreCharge");
valenceCharge.initialize(cc, paddedNumAtoms, elementSize, "valenceCharge");
alpha.initialize(cc, paddedNumAtoms, elementSize, "alpha");
epsilon.initialize(cc, paddedNumAtoms, elementSize, "epsilon");
damping.initialize(cc, paddedNumAtoms, elementSize, "dampin... | C++ |
CPython)</a></p> <p>Huge news concerning the nogil research fork of\n" +
" Python: " It’s clear that the overall sentiment is positive, both for the\n" +
" general idea and for PEP 703 specifically. The Steering Council is also largely positive\n" +
... | Kotlin |
macro_rules! retry_assert {
($test:expr, $timeout:expr) => {{
let mut duration = Duration::from_secs(0);
let max_duration: Duration = $timeout;
let sleep_duration = Duration::from_millis(100);
while duration.lt(&max_duration) && !$test {
tokio::time::sleep(sleep_duration... | Rust |
":n,l=t.stroke,a=l===void 0?2:l,c=h(t,_M);return e.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-grave-2",width:o,height:o,viewBox:"0 0 24 24",strokeWidth:a,stroke:i,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},c),e.createElement("path",{stroke:"none",d:"... | JavaScript |
/*
; i386-bsd.elf.execve-fold.S -- linkage to C code to process Elf binary
;
; This file is part of the UPX executable compressor.
;
; Copyright (C) 2000-2023 John F. Reiser
; All Rights Reserved.
;
; UPX and the UCL library are free software; you can redistribute them
; and/or modify them under the terms of the ... | Assembly |
),
// email
ElevatedButton(
onPressed: () => onSendMail("ducafecat@gmail.com", "邮件标题", "邮件正文"),
child: const Text('发送邮件'),
),
// sms
ElevatedButton(
onPressed: () => onSendSMS("+1234567890", "短信正文"),
ch... | Dart |
string name)
{
throw new NotImplementedException();
}
public IList<Jabatan> GetAll()
{
IList<Jabatan> oList = new List<Jabatan>();
try
{
oList = _context.db.GetAll<Jabatan>()
.OrderBy(f => f... | C# |
tUrl = "https://dc.applicationinsights.azure.cn/v2/track"
// 配置一次调用可以向数据收集器发送多少项目:
// 每个可以提交中的遥测项的最大数量要求。 如果缓冲了这么多项目,则缓冲区将在 MaxBatchInterval 到期之前被刷新。
telemetryConfig.MaxBatchSize = 1
// 在发送排队遥测数据之前配置最大延迟:
// 发送一批遥测数据之前等待的最长时间。
telemetryConfig.MaxBatchInterval = 10 * time.Millisecond
telemetryClient = appinsight... | Go |
/*---------------------------------------------------------------------------*\
OneFLOW - LargeScale Multiphysics Scientific Simulation Environment
Copyright (C) 2017-2025 He Xin and the OneFLOW contributors.
-------------------------------------------------------------------------------
License
This file i... | C |
.left;
point.y = newDockRect.top;
ClientToScreen(_dockPanel, &point);
int placementShadowPosX = point.x;
int placementShadowPosY = point.y;
int placementShadowWidth = newDockRect.right - newDockRect.left;
int placementShadowHeight = newDockRect.bottom - newDockRect.top;
// Update the placement shadow pos... | C++ |
418"/></svg>';
static const String person_in_bed =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64" preserveAspectRatio="xMidYMid meet" viewBox="0 0 64 64"><path fill="currentColor" d="M61 48s.656-8.126-1-10c-.393-.445-18.85-9.357-29.418-9.469a9.363 9.36... | Dart |
5 22H19C20.11 22 21 21.11 21 20V19H22C22.55 19 23 18.55 23 18V15C23 14.45 22.55 14 22 14M21 17H19V20H5V17H3V16H5V14C5 11.24 7.24 9 10 9H14C16.76 9 19 11.24 19 14V16H21V17M10.7 14C11.1 14.39 11.1 15.05 10.7 15.45L9.97 16.18L8.5 17.65L6.3 15.45C5.9 15.05 5.9 14.39 6.3 14C6.71 13.58 7.36 13.58 7.77 14L8.5 14.72L9.23 14C9.... | JavaScript |
0] * Col; */
mov.s v1[0], v28[0]
mov.s v1[1], v29[0]
mov.s v1[2], v30[0]
mov.s v1[3], v31[0]
fmul.4s v0, v0, v1 // v0=Dot := A.R[0] * Col
/* OneOverDeterminant := 1 / ((Dot.X + Dot.Y) + (Dot.Z + Dot.W)); */
faddp.4s v0, v0, v0 // Dot.W+Dot.Z Do... | Assembly |
11
```
# Orca
[](https://github.com/Picovoice/orca/)
[](https://repo1.maven.org/maven2/ai/picovoice/orca-android/)
[, .. } => {
let x = piece.x;
let mut y = piece.y;
while piece.change_position(&tetris.game_map, x, y + 1) == true {
y += 1;
}
make_permane... | Rust |
auto rounding = result.rounding;
for (auto i = 0; i != 4; ++i) {
result.rounding.p[unrotatedCorner(i)] = rounding.p[i];
}
return result;
}
} // namespace
Pip::RendererSW::RendererSW(not_null<Pip*> owner)
: _owner(owner)
, _roundRect(ImageRoundRadius::Large, st::radialBg) {
}
void Pip::RendererSW::paintFallback... | C++ |
rce(id = R.drawable.ic_question_24),
modifier = Modifier.noRippleClickable { isImageBottomSheetVisible = true },
tint = Color.Unspecified,
contentDescription = null
)
}
Spacer(modifier = Modifier.height(13.dp))
ProfileImageList(
... | Kotlin |
: TopicEndpointSpec{
Kafka: &KafkaEndpointSpec{
URI: "kafka://myserver:9999",
UseSSL: true,
DisableVerifySSL: true,
AckLevel: "broker",
Mechanism: "SCRAM-SHA-512",
},
},
},
}
t.Run("valid", func(t *testing.T) {
err := topic.ValidateTopicSp... | Go |
798,
-0x7d3cbebf, 0x29B09999, 0x5A772D2D, 0x1E110F0F,
0x7BCBB0B0, -0x5703abac, 0x6DD6BBBB, 0x2C3A1616
)
}
}
/*
* Copyright (c) 2000-2021 The Legion of the Bouncy Castle Inc. (https://www.bouncycastle.org)
*
* Permission is hereby granted, free of charge, to any person obtaining
*... | Kotlin |
")
@Original(version="2.38.0", path="lib/cdt/dtrestore.c", name="dtrestore", key="8dfut8799tvg4tjvn2yz48d7h", definition="int dtrestore(register Dt_t* dt, register Dtlink_t* list)")
public static int dtrestore(ST_dt_s dt, ST_dtlink_s list) {
ENTERING("8dfut8799tvg4tjvn2yz48d7h","dtrestore");
try {
ST_dtlink_s t;
//Dt... | Java |
nt) => {
let rect = marker.getBoundingClientRect();
if (event.clientX > rect.left - 10 && event.clientX < rect.right + 10 && event.clientY > rect.top - 10 && event.clientY < rect.bottom + 10)
return;
for (let target = event.target; target; target = target.parentNode) {
if (target.nodeType == 1 &... | JavaScript |
r events to prevent data reload
this.preventNavigation = true;
const filterValue = this.filter === 'search' ? 'all' : this.filter;
this.$filterStatus.select2('val', filterValue);
if (this.filter === 'checks') {
this.$filterChecksWrapper.css('display', 'inline-block');
... | JavaScript |
my commands!');
})
.catch(error => {
console.error(`Could not send help DM to ${message.author.tag}.\n`, error);
message.reply('it seems like I can\'t DM you!');
});
}
const name = args[0].toLowerCase();
const command = commands.get(name) || commands.find(c => c.aliases && c.aliases.includ... | Typescript |
import os
from magic_pdf.libs.MakeContentConfig import DropMode, MakeMode
from magic_pdf.pipe.UNIPipe import UNIPipe
from magic_pdf.pipe.OCRPipe import OCRPipe
from magic_pdf.pipe.TXTPipe import TXTPipe
from magic_doc.conv.base import BaseConv
from magic_doc.progress.filepupdator import FileBaseProgressUpdator
from m... | Python |
etProperty("ao", "audiotrack,opensles");
}
await mediaPlayer.setAudioTrack(
AudioTrack.auto(),
);
// 音轨
if (dataSource.audioSource != '' && dataSource.audioSource != null) {
await pp.setProperty(
'audio-files',
UniversalPlatform.isWindows
? dataSource.audioS... | Dart |
-----------------------------------
-- Area: Southern San d'Oria
-- NPC: Ashene
-- !pos 70 0 61 230
-----------------------------------
local ID = zones[xi.zone.SOUTHERN_SAN_DORIA]
-----------------------------------
---@type TNpcEntity
local entity = {}
entity.onTrigger = function(player, npc)
local stock =
... | Lua |
clusiveGateway".equals(tmp.get().get(0).getActivityType()))) {
// singleResult 能够执行更新操作
// 利用 流程实例ID + 执行任务ID + 活动节点ID 来指定唯一数据,保证数据正确
historyService.createNativeHistoricActivityInstanceQuery().sql(
"UPDATE ACT_HI_ACTINST SET DELETE_... | Java |
using System;
using System.Collections.Generic;
using System.Text;
using ZigBeeNet.Serialization;
using ZigBeeNet.ZCL.Protocol;
namespace ZigBeeNet.ZDO.Field
{
public class SimpleDescriptor
{
public byte Endpoint { get; set; }
public ushort ProfileId { get; set; }
/// <summary>
... | C# |
ed;
static int m_max_unmatched_frames;
static void TearDownTestCase()
{
}
void CleanAllUnmatched(rs::utils::unique_ptr<rs::utils::samples_time_sync_interface>& samples_sync)
{
for (int i =0; i<static_cast<int>(rs::core::stream_type::max); i++)
{
stream_type str_typ... | C++ |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid)
npcHandler:onCreatureAppear(cid)
end
function onCreatureDisappear(cid)
npcHandler:onCreatureDisappear(cid)
end
function onCreatureSay(cid, type, msg)
npc... | Lua |
# Distributed under the MIT License.
# See LICENSE.txt for details.
import numpy as np
def dg_package_data(
u, flux_u, normal_covector, mesh_velocity, normal_dot_mesh_velocity
):
result = u if normal_covector[0] > 0.0 else -u
return (
u,
np.asarray(np.einsum("i,i", normal_covector, flux_u... | Python |
] = {wx = -5310.85010, wy = 3914.41992, flag = 1, name = "Sandy Beach, Vashj'ir"},
[608] = {wx = -5671.02002, wy = 3720.07007, flag = 2, name = "Sandy Beach, Vashj'ir"},
},
[1] = {
[22] = {wx = -1197.20996, wy = 29.71000, flag = 2, name = "Thunder Bluff, Mulgore"},
[23] = {wx = 1798.27002, wy = -4363.27... | Lua |
applyNightCSSClass()
}
override fun onOptionsItemSelected(item: MenuItem): Boolean {
if (item.itemId == android.R.id.home) {
finish()
return true
}
return super.onOptionsItemSelected(item)
}
companion object {
const val TOPIC = "name.boyle.chris.... | Kotlin |
for (int j = 0; j < node.PointCount; j++)
{
int pointIndex = _pointIndices[node.StartIndex + j];
if (pointIndex < 0 || pointIndex >= _totalPoints)
{
throw new Exception($... | C# |
list[i][k].assetId = 'enemy' + list[i][k].id + '.png';
list[i][k].turn =list[i][k].maxTurn;
list[i][k].hp =list[i][k].maxHp;
}
}
return list;
}
private static getDummySkill(cardId):DtoSkill{
... | Typescript |
clrlwi. rTMP, rTMP, 30
addi rDEST, rRTN, -4
bne L(unaligned)
lis rFEFE, -0x101
lis r7F7F, 0x7f7f
lwz rWORD, 0(rSRC)
addi rFEFE, rFEFE, -0x101
addi r7F7F, r7F7F, 0x7f7f
b L(g2)
L(g0): lwzu rALT, 4(rSRC)
stwu rWORD, 4(rDEST)
add rTMP, rFEFE, rALT
nor rNEG, r7F7F, rALT
and. rTMP, rTMP, rNEG
bne- L(g1)
lwz... | Assembly |
mp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `partial_cmp`, `serialize`, `visit_i64`, `visit_str`, `visit_u64`
// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_... | Dart |
1max()));
Graphics_markLeft (g, 1.0, false, true, false, Melder_double (my instancePref_window_f1min()));
Graphics_markTop (g, 0.0, false, true, false, Melder_double (my instancePref_window_f2max()));
Graphics_markTop (g, 1.0, false, true, false, Melder_double (my instancePref_window_f2min()));
}
#pragma mark - men... | C++ |
,在调用禁言 API 时需要传入 |
`sender` 字段的内容如下:
| 字段名 | 数据类型 | 说明 |
| ----- | ------ | ---- |
| `user_id` | number (int64) | 发送者 QQ 号 |
| `nickname` | string | 昵称 |
| `card` | string | 群名片/备注 |
| `sex` | string | 性别,`male` 或 `female` 或 `unknown` |
| `age` | number (int32) | 年龄 |
| `area` | string | 地区 |
| `level` | string | 成员等... | Markdown |
.client.screen.tile;
import electrodynamics.common.inventory.container.tile.ContainerFluidTankGeneric;
import electrodynamics.common.tile.pipelines.fluid.tank.GenericTileFluidTank;
import net.minecraft.network.chat.Component;
import net.minecraft.world.entity.player.Inventory;
import voltaic.prefab.screen.component.Sc... | Java |
name string
matcher ErrorMatcher
err *Error
expected string
}{
{
name: "empty matcher",
matcher: ErrorMatcher{},
err: Invalid(NewPath("field"), "value", "detail"),
expected: "{}",
},
{
name: "single field - type",
matcher: ErrorMatcher{}.ByType(),
err: In... | Go |
break;
}
}
if skip { continue }
if pack(img.get_pixel(x, y)) == 0xBCBCBC {
let mut tube = ParsedTube::new(tubes.len(), x - 11, y - 3, 134, 479);
pop_colors(&mut tube, &img);
... | Rust |
P=gotA=gotB=FALSE;
p=0; a=0; b=0;
// Interpret command line
Base=10;
while (ip<argc)
{
if (strcmp(argv[ip],"-f")==0)
{
ip++;
if (!gotP && ip<argc)
{
ss=argv[ip++];
tt=0;
eval();
p=tt;
... | C++ |
} from "react-icons/bs";
import { motion } from "framer-motion";
const Project = (props) => {
return (
<motion.div
className="px-12 py-8 transition-colors duration-300 transform border rounded-xl hover:border-transparent group dark:border-gray-700 dark:hover:border-transparent feature-card"
initial=... | JavaScript |
.NET, download the vids \[unintelligible 01:03:52.12\]
**Adam Stacoviak:** I'm already doing that. I'm subscribed on YouTube.
**Bertrand Le Roy:** Excellent.
**Adam Stacoviak:** That's the way you gotta do it. I love the fact that the show is live, it just kind of gives it that extra perspective that it doesn't nee... | Markdown |
namespace MicrosoftTests
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
class TestSuite
{
public void Method()
{
[TestMethod]
void NestedTest() { } // Compliant - test methods must be public, this code does not work
[DataTestMetho... | C# |
=d18,#1
vext.32 d20,d12,d18,#1
# qhasm: v8 = (abab & v8) | (~abab & v4)
# asm 1: vbif <v8=reg128#7,<v4=reg128#6,<abab=reg128#9
# asm 2: vbif <v8=q6,<v4=q5,<abab=q8
vbif q6,q5,q8
# qhasm: mlenlow = mlenlow_stack
# asm 1: ldr >mlenlow=int32#1,<mlenlow_stack=stack32#5
# asm 2: ldr >mlenlow=r0,<mlenlow_stack=[s... | Assembly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.