content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
a usar esse item.";
ERR_CANT_EQUIP_NEED_TALENT = "Você não tem o talento necessário para equipar isso.";
ERR_CANT_EQUIP_RANK = "Você não tem o posto necessário para usar esse item";
ERR_CANT_EQUIP_RATING = "Você não tem o ranque pessoal, de equipe ou de campo de batalha necessário para comprar esse item";
ERR_CANT_EQUI... | Lua |
short x=%d, GLshort y=%d",ARG1,sARG2,sARG3);
}
}
void glcommon_glVertexAttrib2sARB(CPU* cpu) {
if (!ext_glVertexAttrib2sARB)
kpanic("ext_glVertexAttrib2sARB is NULL");
{
GL_FUNC(ext_glVertexAttrib2sARB)(ARG1, sARG2, sARG3);
GL_LOG ("glVertexAttrib2sARB GLuint index=%d, GLshort x=%d, GLshort ... | C++ |
(TestUtil.stringToCharSequence("ear", random()), 10, true, true);
assertEquals(expectedSuggestionCount, results.size());
suggester.close();
a.close();
return results;
}
}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
... | Java |
r address, potentially hindering critical administrative actions.
---
#### **Root Cause**
In the `DebitaV3Aggregator::changeOwner` function (also present in `auctionFactory.sol` and `buyOrderFactory.sol`), the parameter `owner` shadows the state variable `owner`. This leads to the assignment `owner = owner;` having... | Markdown |
local UI = Z.UI
local super = require("ui.ui_view_base")
local Common_matchingView = class("Common_matchingView", super)
function Common_matchingView:ctor()
self.uiBinder = nil
super.ctor(self, "common_matching")
self.matchActivityData_ = Z.DataMgr.Get("match_activity_data")
self.matchData_ = Z.DataMgr.Get("ma... | Lua |
("ProcessReport pushing event", "eventID", p.EventID, "tsMs", tsMs, "alignedTsMs", alignedTsMs)
nIncludedSubscribers := 0
for _, sub := range t.subscribers {
if alignedTsMs%sub.config.MaxFrequencyMs == 0 {
// include this subscriber
select {
case sub.ch <- capResponse:
case <-ctx.Done():
t.eng.Error... | Go |
济', '芬兰', '法国', '法属圭亚那',
'法属波里尼西亚', '加蓬', '冈比亚', '格鲁吉亚', '德国',
'加纳', '直布罗陀', '希腊', '格陵兰岛', '格林纳达',
'瓜德罗普岛', '关岛', '危地马拉', '几内亚', '几内亚比绍',
'圭亚那', '海地', '夏威夷', '洪都拉斯', '匈牙利', '冰岛',
'印度', '印度尼西亚', '伊郎', '伊拉克', '爱尔兰', '以色列',
'意大利', '科特迪瓦', '牙买加', '日本', '约旦', '柬埔塞',
'哈萨克斯坦', '肯尼亚', '基里巴斯', '朝鲜', '韩国', '科威特',
... | JavaScript |
auto strWhole = theLabel->_currentUTF16String;
auto fontAtlas = theLabel->_fontAtlas;
FontLetterDefinition tempDefinition;
Vec2 letterPosition;
const auto& kernings = theLabel->_horizontalKernings;
float clipTop = 0;
float clipBottom = 0;
int lineIndex = 0;
bool lineStart = true;
... | C++ |
--[[
ProfilePrefs
Values and their meanings:
guidelines: whether beat lines should be shown
character: the name of the character that should be used.
filter: the screen filter darkness that should be used.
lanes: whether lane boundaries should be shown or not.
bias: whether the early/late indicator should be shown.
sta... | Lua |
city/ce-08-b-b.png',
},
imageUrl: '/assets/cards/events/base/city/ce-08-f.png',
verified: false,
},
{
id: 17,
type: EventType.City,
number: 9,
text:
'After a night of heavy drinking, you get turned around while navigating the back alleys and find yourself standing before a collapse... | Typescript |
#pragma once
#include <Framework.h>
#include <Oscilloscope/Controls/GraphOsc.h>
#include "../Disp/ItemDisp.h"
class CMIButton : public CWndMenuItem
{
public:
virtual void Create(const char* pszId, ui16 clr, int nRows, CWnd *pParent)
{
CWndMenuItem::Create( pszId, clr, nRows, pParent);
}
virtual void OnPaint()
... | C |
/// <para>Encoder for <see cref="SfTeamInviteDetails" />.</para>
/// </summary>
private class SfTeamInviteDetailsEncoder : enc.StructEncoder<SfTeamInviteDetails>
{
/// <summary>
/// <para>Encode fields of given value.</para>
/// </summary>
/// <... | C# |
e");
fsp_upd->os_selection = fdtdec_get_int(blob, node, "fsp,os-selection",
OS_SELECTION_LINUX);
fsp_upd->emmc45_ddr50_enabled = fdtdec_get_bool(blob, node,
"fsp,emmc45-ddr50-enabled");
fsp_upd->emmc45_hs200_enabled = fdtdec_get_bool(blob, node,
"fsp,emmc45-hs200-enabled");
fsp_upd->emmc45_retune_... | C |
forced_width = nil
end
w:add(cache.primary)
end
end
return common
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 | Lua |
具链综述.pdf)
- [机器学习系统中的技术债务]()
- [大模型与分布式训练]()
- [机器学习模型监控]()
- [机器学习模型可视化]()
## AI资料
- [AI百宝箱](https://github.com/liguodongiot/ai-system/tree/main/ai-resource)
## 技术交流群
我创建了一个AI工程化学习交流群,供大家一起学习交流AI工程化相关的最新技术(MLOps、ModelOps、LLMOps、AI System等),**可加我微信进群**(加微信请备注来意,如:**进AI工程化交流群+GitHub**)。**一定要备注哟,否则不予通过**。
<p ali... | Markdown |
import operator
print(2 + 3)
# 5
print(operator.add(2, 3))
# 5
print(operator.sub(2, 3)) # 2 - 3
# -1
print(operator.mul(2, 3)) # 2 * 3
# 6
print(operator.truediv(2, 3)) # 2 / 3
# 0.6666666666666666
print(operator.floordiv(2, 3)) # 2 // 3
# 0
print(operator.lt(2, 3)) # 2 < 3
# True
print(operator.le(2, 3))... | Python |
d `ADCSSEL`"]
pub struct ADCSSEL_W<'a> {
w: &'a mut W,
}
impl<'a> ADCSSEL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: ADCSSEL_A) -> &'a mut W {
{
self.bits(variant.into())
}
}
#[doc = "ADC Clock Source Select: 0"]
... | Rust |
val p = Friend::localeMap.mapProperty
assertEquals("localeMap", p.path)
assertEquals("localeMap.en", p.keyProjection(Locale.ENGLISH).path())
assertEquals("localeMap.en.amount", (p.keyProjection(Locale.ENGLISH) / Gift::amount).path())
}
@Test
fun `test array index property`(... | Kotlin |
# 806b934c
?257903:
.byte 0xBF, 0x80, 0x00, 0x00 # 806b9350
?257906:
.byte 0x3F, 0xC9, 0x0F, 0xDB # 806b9354
?257934:
.byte 0x40, 0x00, 0x00, 0x00 # 806b9358
?257972:
.byte 0x42, 0x20, 0x00, 0x00 # 806b935c
?257973:
.byte 0x3D, 0x4C, 0xCC, 0xCD # 806b9360
?257974:
.byte 0x3F, 0x7D, 0x70, 0xA4 # 806b9364
?258005:
.byte ... | Assembly |
692Q606 689 492 528Q440 454 409 410T378 366Q378 365 515 182L652 0H531L326 292Q326 293 299 254T226 146L128 0H14",936:"340 187V694H438V187Q481 206 495 219Q518 239 533 267T553 332T560 386T562 435Q562 576 593 608Q608 621 637 621H670H722V545H719Q718 545 715 545T710 544Q679 536 666 487Q664 474 662 429T654 344T633 259T580 17... | JavaScript |
nolint: unused
// Receiver side of the peer report stream populated by the gossip validator, forwarded to the gossip engine.
gossipValidatorReportStream chan peerReport
gossipValidatorReportStreamMtx sync.Mutex //nolint: unused
// TODO: telemetry
}
func newNetworkBridge[H runtime.Hash, N runtime.Number, Hashe... | Go |
offen offset:0
s_mov_b64 exec, -1
v_mfma_f32_32x32x8f16 v[a_c+80:a_c+95], v[v_a+2:v_a+3], v[v_b+2:v_b+3], v[a_c+80:a_c+95] ; repeat:1x0, step:0x1, num_a_c:16
v_cmpx_le_u32 vcc, 1, v[v_wei_flag]
buffer_load_dwordx2 v[v_gld_b+10:v_gld_b+10+1], v[v_wei_os], s[s_p_wei:s_p_wei+3], s[s_wei_offset+3] offen... | Assembly |
r = PageHelper.startPage(pageNumber, pageSize);
LambdaQueryWrapper<MtRefund> lambdaQueryWrapper = Wrappers.lambdaQuery();
if (StringUtils.isNotBlank(userId)) {
lambdaQueryWrapper.like(MtRefund::getUserId, userId);
}
if (StringUtils.isNotBlank(status)) {
lambdaQue... | Java |
. **Use Functions**: Wrap command sequences in functions
3. **Document Commands**: Comment what each command does
4. **Version Control**: Track changes to command sequences
# ColorMapHelper Usage Guide
The `ColorMapHelper` class in noah123d makes it easy to create and visualize objects with beautiful colormaps using b... | Markdown |
using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// PaymentSchedule Data Structure.
/// </summary>
[Serializable]
public class PaymentSchedule : AopObject
{
/// <summary>
/// 还款日
/// </summary>
[XmlElement("date")]
p... | C# |
tEquals(0, status);
// Binary
redis.sadd(REDIS_BKEY_0, ba);
redis.sadd(REDIS_BKEY_0, bb);
long bstatus = redis.srem(REDIS_BKEY_0, ba);
Set<byte[]> bexpected = new HashSet<byte[]>();
bexpected.add(bb);
assertEquals(1, bstatus);
assertEquals(bexpected, ... | Java |
.FixedUpdateNetwork();
if (GetInput<XRRigInputData>(out var inputdata))
{
_characterTransform.transform.SetPositionAndRotation(inputdata.CharacterPosition, inputdata.CharacterRotation);
_headTransform.transform.SetPositionAndRotation(inputdata.HeadSetPosition, inputdata.HeadSetR... | C# |
t.doc,
subheadings: [],
},
])
.withDefault(outline);
case ElementKind.HeadingThree: {
const currentH2 = indexOptional(outline.length - 1)(outline);
return Optional.map2(currentH2, element.id, (h2, id) => [
...outline.slice(0, outline.length - 1),
{
...h2,
subheadi... | Typescript |
var stopCharCode = match[2].charCodeAt(0);
var charCode;
for (charCode = startCharCode; charCode <= stopCharCode; ++charCode) {
urls.push(url.replace(match[0], String.fromCharCode(charCode)));
}
return urls;
}
match = match = /\{(\d+)-(\d+)\}/.exec(url);
if (match) {
// number range
... | JavaScript |
l *t1p, *t2p; {
register double dt;
dt = (double) (t2p->tv_sec - t1p->tv_sec) * 1000.0
+ (double) (t2p->tv_usec - t1p->tv_usec) / 1000.0;
return (dt);
}
int packet_ok(buf, cc, from, seq)
u_char *buf;
int cc;
struct sockaddr_in *from;
int seq; {
register struct icmp *icp;
u_char t... | C |
_id) == 0, ii.mesh_id);
output[ii.mesh_id] = ii;
}
}
return output;
}
std::shared_ptr<BaseBlenderObject> load_blender_mesh(const fs::path json_path){
assert_exists(json_path);
// Progress bar
static int object_idx = 0;
static ProgressBar bar{
BarWidth{20}, Start{"["... | C++ |
slider-c2 .am-control-nav{position:absolute;bottom:15px;right:0;height:6px;text-align:center;font-size:0;line-height:0}.am-slider-c2 .am-control-nav li{display:inline-block;margin-right:6px}.am-slider-c2 .am-control-nav li a{width:6px;height:6px;display:block;background-color:rgba(255,255,255,.4);cursor:pointer;text-in... | CSS |
.055c-.8.537-1.524 1.177-2.153 1.9V29h2.24v-7.11Zm.67-9.792.028.758-.45.061c-.602.082-1.099.631-1.099 1.332 0 .741.554 1.31 1.203 1.341l.438.021.036.438c.233 2.844 2.232 4.647 4.583 4.647 2.35 0 4.35-1.802 4.582-4.646l.037-.446.447-.013c.659-.02 1.224-.592 1.224-1.342 0-.71-.51-1.264-1.122-1.335l-.46-.053.022-.588a2.64... | Dart |
#!/usr/bin/env python3
""" MongoDB Operations with Python using pymongo """
from pymongo import MongoClient
if __name__ == "__main__":
""" Provides some stats about Nginx logs stored in MongoDB """
client = MongoClient('mongodb://127.0.0.1:27017')
nginx_collection = client.logs.nginx
n_logs = nginx_co... | Python |
import pandas as pd
import lightgbm as lgb
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.preprocessing import OneHotEncoder,LabelEncoder
from scipy import sparse
import os
import numpy as np
import time
import random
import warnings
warning... | Python |
ext.path, handle);
} else {
router.post(context.path, (req: Request, res: Response, next: NextFunction) => {
handle(req, res, next);
});
}
}
/**
* http Put
* @param router... | Typescript |
d array is detached");
}
// 3. Let len be O.[[ArrayLength]].
let len = o.array_length() as i64;
// 4. Let relativeStart be ? ToIntegerOrInfinity(start).
let mut k = match args.get_or_undefined(0).to_integer_or_infinity(context)? {
// 5. If relativeStart is -∞, let k... | Rust |
# This file was auto-generated by Fern from our API Definition.
import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel
from .custom_attribute import CustomAttribute
from .error import Error
class RetrieveMerchantCustomAttributeRe... | Python |
nt XUartLite_IsTransmitFull(u32 BaseAddress);
*
*****************************************************************************/
#define XUartLite_IsTransmitFull(BaseAddress) \
((XUartLite_GetStatusReg((BaseAddress)) & XUL_SR_TX_FIFO_FULL) == \
XUL_SR_TX_FIFO_FULL)
/*************************************************... | C |
tring language;
final int stars;
const RepositoryWidget({Key key, this.profilePic, this.username, this.repository, this.description, this.language, this.stars}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.symmetric(horizontal: 8),
wid... | Dart |
//
var u0u1u1 = u0 * u1 * u1;
var t0u1u1_3 = t0 * u1 * u1 + u0 * t1 * u1 + u0 * u1 * t1; // eslint-disable-line camelcase
var t0t1u1_3 = t0 * t1 * u1 + u0 * t1 * t1 + t0 * u1 * t1; // eslint-disable-line camelcase
var t0t1t1 = t0 * t1 * t1;
//
var u1u1u1 = u1 * u1 * u1;
var t1u1u1_3 = t... | JavaScript |
:{Rtt, ScanRegion, UpChannel};
use structopt::StructOpt;
const TIMEOUT: Duration = Duration::from_secs(1);
const STACK_CANARY: u8 = 0xAA;
const THUMB_BIT: u32 = 1;
fn main() -> Result<(), anyhow::Error> {
notmain().map(|code| process::exit(code))
}
/// A Cargo runner for microcontrollers.
#[derive(StructOpt)]
#[... | Rust |
Manager.prototype);
var movePoint = function(point, diff) {
if (point.row == 0)
point.column += diff.column;
point.row += diff.row;
};
var moveRelative = function(point, start) {
if (point.row == start.row)
point.column -= start.column;
point.row -= start.row;
};
dom.importCssStrin... | JavaScript |
() {
if (this.showMiniLabel()) {
this.show();
} else {
this.hide();
}
};
MMO_Overhead.Windows.prototype.show = function() {
if (this.contentsOpacity >= 255) return;
this.contentsOpacity += 16;
};
MMO_Overhead.Windows.prototype.hide = function() {
if (this.contentsOpacity <= 0) retu... | JavaScript |
_ARMW_UMIN: CMuAtomicRMWOptr = 0x0A;
pub const CMU_CC_DEFAULT: CMuCallConv = 0x00;
pub const CMU_CI_UVM_NEW_STACK: CMuCommInst = 0x201;
pub const CMU_CI_UVM_KILL_STACK: CMuCommInst = 0x202;
pub const CMU_CI_UVM_THREAD_EXIT: CMuCommInst = 0x203;
pub const CMU_CI_UVM_CURRENT_STACK: CMuCommInst = 0x204;
pub const CMU_CI_U... | Rust |
if real_part < 0:
st.write(f"**p{i+1}** = {real_part:.3f} ± {abs(imag_part):.3f}j")
st.write(f" → |p| = {magnitude:.3f}, ∠p = {angle:.1f}°")
# Dämpfung und Eigenfrequenz
... | Python |
otype = {}
function ListFrameButtonsPrototype:CreateCategory(frame, parentID, forceChildren)
if type(frame) ~= "table" then
DBM:AddMsg("Failed to create category - frame is not a table")
return false
end
frame.depth = parentID and GetDepth(self, parentID) or 1
if forceChildren then
frame.haschilds = true
en... | Lua |
('aria-valuenow')
progress.removeAttribute('value')
progress.focus()
return
}
}
```
#### Fix JavaScript decimal math issues
Since I chose to stick with the progress default maximum of 1, the demo
increment and decrement functions use decimal math. JavaScript, and other
languages, [are not always great a... | Markdown |
////////////////////////////////////////////////////////////////////////////
// Module : a_star.h
// Created : 21.03.2002
// Modified : 02.03.2004
// Author : Dmitriy Iassenev
// Description : Implementation of the A* (a-star) algorithm
/////////////////////////////////////////////////////////////... | C |
masteringMonitorNits: json['masteringMonitorNits'] as int?,
targetMonitorNits: json['targetMonitorNits'] as int?,
);
}
Map<String, dynamic> toJson() {
final masteringMonitorNits = this.masteringMonitorNits;
final targetMonitorNits = this.targetMonitorNits;
return {
if (masteringM... | Dart |
ground-image: url(../reddit_flair.png); /* SPRITE */
/* Work around a centering difference between this icon and reddit_ban.png */
margin-left: 1px;
}
.icon-menu .reddit-moderationlog:before {
background-image: url(../reddit_moderationlog.png); /* SPRITE */
margin-left: 1px;
}
.icon-menu .reddit-unmoder... | CSS |
385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.52... | CSS |
find configuration file: \"{}\"",
&file_path
))
} else {
Ok(silver_standard_config())
}
}
_ => Err(format!("Sterling Error: {}", error)),
},
}
}
pub fn phb_config() -> Vec<Currency> {
... | Rust |
parent)]
XConnError(XError),
/// Unable to spawn process.
#[error("Error while running program: {0}")]
SpawnProc(String),
/// Unable to parse an X data type into a type known to ToaruWM.
#[error("Could not parse X data type from integer")]
ParseInt,
#[error("Could not parse keybind \"... | Rust |
�也被称作 CSS 变量或者级联变量)是由 CSS 作者定义,它包含的值可以在整个文档中重复使用。由自定义属性标记设定值(比如: `**--main-color: black;**`),由 var() 函数来获取值(比如: `color: var(--main-color)`;)
> 复杂的网站都会有大量的 CSS 代码,通常也会有许多重复的值。举个例子,同样一个颜色值可能在成千上百个地方被使用到,如果这个值发生了变化,需要全局搜索并且一个一个替换(很麻烦哎~)。自定义属性在某个地方存储一个值,然后在其他许多地方引用它。另一个好处是语义化的标识。比如,`--main-text-color` 会比 `#00ff00` 更易理解,尤其是... | Markdown |
else if(CurrentShape->mType==PINT_SHAPE_CAPSULE)
{
const PINT_CAPSULE_CREATE* CapsuleCreate = static_cast<const PINT_CAPSULE_CREATE*>(CurrentShape);
NxCapsuleShapeDesc* capsuleShapeDesc = new NxCapsuleShapeDesc;
capsuleShapeDesc->radius = CapsuleCreate->mRadius;
capsuleShapeDesc->height = CapsuleCreate-... | C++ |
`
Modified time.Time `json:"modified"`
Created time.Time `json:"created"`
Sign string `json:"sign"`
Thumb string `json:"thumb"`
Type int `json:"type"`
HashInfoStr string ... | Go |
BARRACKS_TOP_MELEE
BARRACKS_TOP_RANGED
BARRACKS_MID_MELEE
BARRACKS_MID_RANGED
BARRACKS_BOT_MELEE
BARRACKS_BOT_RANGED
]] | Lua |
" else "loaded"
)
return WebResourceResponse(type, "UTF-8", res).also {
it.responseHeaders = response.headers.toMap()
it.responseHeaders.remove("access-control-allow-origin")
it.responseHeaders["Access-Control-Allow-Origin"] = "*"
}
... | Kotlin |
il())
rpi, err = state.RpiPool.GetRpi(fakeRpi.Name)
Expect(err).To(BeNil())
Expect(rpi).To(Equal(fakeRpi))
})
})
Describe("AddRpi", func() {
Context("the rpi is new", func() {
It("adds the rpi to etcd state", func() {
state := NewState()
state.InitializeState("http://127.0.0.1:4001")
Purge... | Go |
路狭窄、停车困难的中国来说,萤火虫反而是最好的答案。
这其实是一个非常深刻而准确的消费者洞察。
一些年轻男性武断的叫喊什么“性价比”,其实是因为自己没有家室,脑子里没有对妻儿老小的安全的焦虑。
只要有,萤火虫在这个价位上提供的安全冗余的说服力就是压倒性的。
萤火虫对高密度城区的使用需求几乎是完美答案,尤其是对已经认同蔚来品牌的车主而言基本属于量身定做,复购率相当乐观。
这个价格,对这个人群来说不过是一两个月的月收入,甚至谈不上有什么负担。
另一个值得玩味的问题是——这种mini小车反而揭示出电动车应该有的一个主流方向,就是通过把车做小、做轻来保证续航,提供最佳性价比。
其实现在电动车普遍5米长、1.9米宽的体型反而不该... | Markdown |
}
func (m *DataMessage) Topic() string {
return m.topic
}
func (m *DataMessage) DBName() string {
return m.dbName
}
func (m *DataMessage) Value() interface{} {
return m.data
}
func (m *DataMessage) Offset() Offset {
return m.offset
}
type MetaMessage struct {
TopicPartition TopicPartition
dbName stri... | Go |
on linux `libstring_sum.so` to `string_sum.so`. Then open a python shell in the same folder and you'll be able to `import string_sum`.
//!
//! To build, test and publish your crate as python module, you can use [pyo3-pack](https://github.com/PyO3/pyo3-pack) or [setuptools-rust](https://github.com/PyO3/setuptools-rust)... | Rust |
using System;
namespace Temporalio.Workflows
{
/// <summary>
/// Designate a method as a signal handler.
/// </summary>
/// <remarks>
/// This is not inherited, so if a method is overridden, it must also have this attribute. The
/// method must be a public non-static and return a task (not a ta... | C# |
) throw new CudaException(res);
res = DriverAPINativeMethods.TextureReferenceManagement.cuTexRefSetFlags(_texref, flags);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuTexRefSetFlags", res));
if (res != CUResult.Success) throw new CudaException(res);
... | C# |
fn sanity_check() {
for (input, answer) in [
(3.0_f64.sqrt() / 3.0, f64::consts::FRAC_PI_6),
(1.0, f64::consts::FRAC_PI_4),
(3.0_f64.sqrt(), f64::consts::FRAC_PI_3),
(-3.0_f64.sqrt() / 3.0, -f64::consts::FRAC_PI_6),
(-1.0, -f64::consts::FRAC_PI_4)... | Rust |
[LAYOUT_EDGE_SET_FLAG_INDEX] & MARGIN) == MARGIN) ? 0 : 4);
switch (edge) {
case LEFT:
return arr[paddingStartIndex];
case TOP:
return arr[paddingStartIndex + 1];
case RIGHT:
return arr[paddingStartIndex + 2];
case BOTTOM:
return arr[paddingS... | Java |
#[cfg(target_endian = "big")]
{
self
}
#[cfg(not(target_endian = "big"))]
{
self.swap_bytes()
}
}
}
doc_comment! {
concat!("Converts `self` to little... | Rust |
dy_constellation_2_1
.byte PATT
.word mus_candy_constellation_2_2
.byte PATT
.word mus_candy_constellation_2_1
.byte PATT
.word mus_candy_constellation_2_3
.byte PATT
.word mus_candy_constellation_2_1
.byte PATT
.word mus_candy_constellation_2_2
.byte PATT
.word mus_candy_constellation_2_1
.byt... | Assembly |
Mul((linePt2.X - linePt1.X), (pt.Y - linePt1.Y)))));
else
return ((pt.X == linePt1.X) && (pt.Y == linePt1.Y)) || ((pt.X == linePt2.X) && (pt.Y == linePt2.Y)) || (((pt.X > linePt1.X) == (pt.X < linePt2.X)) && ((pt.Y > linePt1.Y) == (pt.Y < linePt2.Y)) && ((pt.X - linePt1.X) * (linePt2.Y - linePt1.Y) == (linePt... | JavaScript |
/* The installation state of the TinyLaF Look and Feel. */
private static boolean isInstalled = false;
/**
* A global <code>Robot</code> instance used for the ControlPanel
* magnifier, to antialias frame caption edges and to capture
* backgrounds for popup menu shadows.
*/
public static Robot ROBOT;
sta... | Java |
ONE_MPEG_ADTS_AAC = new Guid((short)AudioEncoding.VODAFONE_MPEG_ADTS_AAC & 0x0000FFFF, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
/// <summary>VODAFONE_MPEG_RAW_AAC</summary>
/// <remarks>Source wmCodec.h</remarks>
public static readonly Guid VODAFONE_MPEG_RAW_AAC = new Guid((short)AudioEnco... | C# |
t_doorB[e] = ee
g_cabinet_doorBox[e] = g_Entity[ee]['x'] - g_Entity[e]['x']
g_cabinet_doorBoy[e] = g_Entity[ee]['y'] - g_Entity[e]['y']
g_cabinet_doorBoz[e] = g_Entity[ee]['z'] - g_Entity[e]['z']
g_cabinet_doorBopenvalue[e] = 0
end
end
end
end
-- use
PlayerDist = GetPlayerDistance(e)
if P... | Lua |
3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black... | CSS |
, stats.loadAvg));
}
var _lastLevel;
var _lastMessage = null;
var _lastMessageCount = 0;
function _log(level, message) {
if (level == _lastLevel && message == _lastMessage) {
_lastMessageCount++;
return false;
}
if (_lastMessageCount)
logger.log(_lastLevel, _lastMessage + '[X' + _lastMessageCount + ']... | JavaScript |
overrideReturnValue(value.toString(), false)
}
/**
* Overrides the first instruction of a method with a constant `Float` return value.
* None of the method code will ever execute.
*
* @see returnLate
*/
fun MutableMethod.returnEarly(value: Float) {
check(returnType.first() == 'F') { RETURN_TYPE_MISMATCH }
... | Kotlin |
for (int j = i - firstUpdatedIndex; j < _planetIndexEntries.Count; j++)
{
_planetIndexEntries[j].gameObject.SetActive(false);
}
}
private void AddToActivePlanetSorted(Planet newPlanet)
{
int i = -1;
var newPlanetSort = new Pl... | C# |
mTransportClient.finalize();
assertThat(ShadowCloseGuard.hasReported()).isFalse();
}
@Nullable
private <T> T runInWorkerThread(Supplier<T> supplier) throws Exception {
CompletableFuture<T> future = new CompletableFuture<>();
mWorkerHandler.post(() -> future.complete(supplier.get())... | Java |
const dayLaterValue = dateValue(dayLater, granularity);
const hourLater = laterMoment(date, 1, 'hours');
const hourLaterValue = dateValue(hourLater, granularity);
[date, date.valueOf(), date.format()].forEach(value => {
expect(lte(value, hourLaterValue)).toBe(true);
expect(lte(value, dayLa... | Typescript |
查询,第二次以后的查询是根据当前第一条消息的message_id和timestamp来查询
/// @param limit 每次返回的条数
/// @param message_id 消息的id,为null表示查询最新的消息
/// @param timestamp 发送消息的时间
static Future<dynamic> queryHistoryConversationMessages(
int limit, String messageId, int timestamp) async {
var result =
await _channel.invokeMethod('... | Dart |
one}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-... | CSS |
using System;
using System.Collections.Generic;
using System.Linq;
using Verse;
using Verse.AI;
using Verse.Sound;
namespace RimWorld.Planet
{
public static class SettleInExistingMapUtility
{
private static List<Pawn> tmpPlayerPawns = new List<Pawn>();
public static Command SettleCommand(Map map, bool requiresN... | C# |
}
@media screen and (prefers-contrast) {
.bx--tooltip__trigger:not(.bx--btn--icon-only):focus {
outline-style: dotted;
}
}
.bx--tooltip__trigger:not(.bx--btn--icon-only)[disabled] svg {
fill: var(--cds-icon-disabled, #c6c6c6);
}
.bx--tooltip__label .bx--tooltip__trigger {
margin-left: 0.5rem;
}
.bx--tool... | CSS |
imal
mulu #10,d1
add.l d0,d1
cmp.l #9999,d1
bhi.s .bad_decimal
bra.s .decimal_loop
;
.end_decimal:
move.l d1,d0
.err_decimal:
move.l (sp)+,d1
tst.l d0
rts
;
.bad_decimal:
moveq #-1,d0
bra.s .err_decimal
;
.no_decimal:
moveq #-1,d0
.done_get_decimal:
rts
;
basepage_p: ds.l 1
info_err_f: ds.w 1
infopath_s_p:... | Assembly |
turn (await apiClient.deserializeAsync(responseBody, 'List<V1TimeseriesPeriod>') as List)
.cast<V1TimeseriesPeriod>()
.toList(growable: false);
}
return null;
}
}
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.18
// ignore_for_file: unused_element, unused_import
// ignore_for_file: ... | Dart |
31pd (%rdx), %ymm7, %ymm7
// CHECK: encoding: [0xc4,0xe2,0xc5,0xba,0x3a]
vfmsub231pd (%rdx), %ymm7, %ymm7
// CHECK: vfmsub231pd (%rdx), %ymm9, %ymm9
// CHECK: encoding: [0xc4,0x62,0xb5,0xba,0x0a]
vfmsub231pd (%rdx), %ymm9, %ymm9
// CHECK: vfmsub231pd %xmm15, %xmm15, %xmm15
// CHECK: encoding: [0xc4,0... | Assembly |
using ElmSharp;
using ElmSharp.Wearable;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Tizen;
using XForms = Xamarin.Forms.Forms;
namespace Tizen.Wearable.CircularUI.Forms.Renderer
{
public class WatchListView : Xamarin.Forms.Platform.Tizen.Native.Watch.WatchListView
{
GenItemClass _cancelEffectTe... | C# |
3300313,
score = 0,
delay = 0,
moveCast = true,
corrdinate = {
30,
0,
55
},
buffList = {
8001,
8002
}
},
{
monsterTemplateID = 13300303,
score = 0,
delay = 0,
moveCast = true,
corrdina... | Lua |
$14
lui $t9, 0x2008
ori $t9, $t9, 0xFF00
cfc0 $t1, $14
lw $t2, 20($sp)
xor $t3, $t0, $t4
and $t3, $t9, $t3
xor $t0, $t3, $t0
ins $t9, $t0, 0, 29
mtc0 $t9, $12
sw $t2, 40($t1)
ctc1 $0, $31
ctc1 ... | Assembly |
val windowSize = ImGui.getWindowSize()
val pos = windowSize.x / 2 - width / 2
ImGui.sameLine(pos + alignment)
return pos + alignment
}
}/*
* PaperVision
* Copyright (C) 2024 Sebastian Erives, deltacv
* This program is free software: you can redistribute it and/or modify
* it und... | Kotlin |
private int mCurDownloadIngNum; //当前同时下载数量
private long mSaveProgressBytes; //每下载bytes后保存一次下载进度
private ArrayList<String> mDownloadTaskQuene; //下载队列(taskId)
private HashMap<String, DownloadTask> mDownloadTaskPool; //下载池
private DownloadTaskListener mDownloadTaskListener... | Java |
kan.physical_device"u8;
[NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_DEVICE_POINTER \"SDL.renderer.create.vulkan.device\"")]
public static ReadOnlySpan<byte> SDL_PROP_RENDERER_CREATE_VULKAN_DEVICE_POINTER => "SDL.renderer.create.vulkan.device"u8;
[NativeTypeName("#define SDL_PROP_R... | C# |
4,
R.id.emoji_5,
R.id.emoji_6,
R.id.emoji_7,
R.id.emoji_8,
R.id.emoji_9,
R.id.emoji_10,
R.id.emoji_11
).forEachIndexed { index, it ->
val emojiIndex = index % emojis.size
findViewById<EmojiImageView>(it).setImageEmoji(emojis[emojiIndex])
}
motionLayout.... | Kotlin |
} else if (turnTime < 0) {
// Converts negative time into positive for setTimeout in turnRightWowFinish
turnTime = Math.abs(turnTime)
turningControl.askTurnRight(turnTime)
}
}
}
// This construct allows the navigation function to break its own ... | JavaScript |
lor ? args.stringColor : ()=>Color.WHITE;
// this.font = Font.def;
// }
// async ctrlInner(bounds:Rect){
// if(Input.holding > 4){
// this.hold(this);
// }
// if(Input.pushed && bounds.contains( Input.point )){
// this.push(this);
// }
// }
... | Typescript |
-> 0
}
}
}
package io.github.sds100.keymapper.base.utils.ui.compose.icons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp
val ... | Kotlin |
ng;
/**
* @public
* <p>The time that the case was created in the Amazon Web Services Support Center.</p>
*/
timeCreated?: string;
/**
* @public
* <p>The five most recent communications between you and Amazon Web Services Support Center, including the
* IDs of any attachments to the... | Typescript |
7),
},
polyzoneBoxData = {
heading = 250,
minZ = 40,
maxZ = 43.5,
debug = false,
length = 1,
width = 1,
distance = 2.0,
created = false
}
},
["apartment4"] = {
name = "apartment4",
... | Lua |
physics: NeverScrollableScrollPhysics(),
),
bottomNavigationBar: BottomNavigationBar(
currentIndex: _currentIndex,
onTap: (index) {
_controller.animateToPage(
index,
curve: Curves.easeIn, duration: Duration(milliseconds: 260)
... | Dart |
Completed),
// },
// {
// BillingCurrencyTotal: &armbilling.Price{
// Amount: to.Ptr[float64](19.88),
// CurrencyCode: to.Ptr("USD"),
// },
// DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2022-06-25"); return t}()),
// PaymentDate: to.Ptr(func() ti... | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.