content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
idth)
flowDiffOutput = flowDiffOutput:add(flowDiffOutput, -1, initFlow)
elseif opt.level == 4 then
local coarseImages = image.scale(images, opt.fineWidth/2, opt.fineHeight/2)
initFlow = computeInitFlowL3(coarseImages:resize(1,coarseImages:size(1),
coarseImages:size(2), coarseImages:size(3)... | Lua |
pClient::with_config(Config::default());
/// ```
pub fn with_config(config: Config) -> SntpClient {
SntpClient { config }
}
/// Synchronize with the server
///
/// Sends a request to the server, waits for the reply and processes it. This is a blocking call
/// and can block for quit... | Rust |
)
Param.damfac[i] = 0;
else
Param.damfac[i] = f;
/* these probabilities must sum to 1000 */
Param.damprob[WARP] = 70; /* warp drive 7.0% */
Param.damprob[SRSCAN] = 110; /* short range scanners 11.0% */
Param.damprob[LRSCAN] = 110; /* long range scanners 11.0% */
Param.damprob[PHASER] = 125; /* phasers 1... | C |
EFFECT_LOG_SIZE] = "effect_size",
[ND_CMD_VENDOR_EFFECT_LOG] = "effect_log",
[ND_CMD_VENDOR] = "vendor",
[ND_CMD_CALL] = "cmd_call",
};
if (cmd < ARRAY_SIZE(names) && names[cmd])
return names[cmd];
return "unknown";
}
#define ND_IOCTL 'N'
#define ND_IOCTL_SMART _IOWR(ND_IOCTL, ND_CMD_SMART,\
struct... | C |
Handle =
await dirHandle.getDirectory(entry, create: createDirectories);
}
return _ResolvedPath(fullPath, dirHandle, file);
}
Future<Flags> _xAccess(NameAndInt32Flags flags) async {
try {
final resolved = await _resolvePath(flags.name);
// If we can open the file, it exists. For... | Dart |
panels (aka, accordion)\n//\n// Wrap a series of panels in `.panel-group` to turn them into an accordion with\n// the help of our collapse JavaScript plugin.\n\n.panel-group {\n margin-bottom: @line-height-computed;\n\n // Tighten up margin so it's only between panels\n .panel {\n margin-bottom: 0;\n border-r... | JavaScript |
; Tests basic length counter operation
.include "shell.inc"
.include "test_chan.s"
main:
test_all_chans
jp tests_passed
begin:
call sync_apu
delay 2048 ; avoid extra clocking due to quirks
wchn 4,$40 ; avoid extra clocking due to quirks
wchn 1,-4 ; length = 4
wchn 4,... | Assembly |
00_018_00_0116_01_4_00_0132_00_01uint8_a62aa63a212985df306fb27e8a50aeae.html#a6a8c572e8f24b6b4a0b5d78bb9b09716',1,'cutlass::arch::Mma< gemm::GemmShape< 8, 8, 16 >, 32, uint8_t, layout::RowMajor, int8_t, layout::ColumnMajor, int, layout::RowMajor, OpMultiplyAdd >::FragmentA()'],['../structcutlass_1_1arch_1_1... | JavaScript |
res.status(404).json({ error: "original url not found" });
}
if (!validateUrl(body.original_url)) {
return res.status(404).json({ error: "enter valid url" });
}
const nano_id = nanoid(7);
body.alias = nano_id;
body.new_url = process.env.SERVER_URL_PREFIX + "read/" + nano_id;
const newPost = new Ur... | Typescript |
nt features to gen based on the
// block index.
signer := types.HomesteadSigner{}
chain, _, err := GenerateChain(gspec.Config, genesis, dummy.NewCoinbaseFaker(), genDb, 3, 10, func(i int, gen *BlockGen) {
switch i {
case 0:
// In block 1, addr1 sends addr2 some ether.
tx, _ := types.SignTx(types.NewTransac... | Go |
(assetCandles).forEach { candlePair ->
// println("Comparing candles: $candlePair")
// assertEquals(candlePair.first.time, candlePair.second.time)
// assertEquals(candlePair.first.symbol, candlePair.second.symbol)
// assertEquals(candlePair.first.open, candleP... | Kotlin |
L file instead of just listing them in the code
<a name="1.0.0"></a>
### 1.0.0 (2019-03-06)
Initial release.
Questions
Prerequistis:
- os:
```shell
# lsb_release
LSB Version: core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
```
- install docker
```
apt-get update
apt install docker.io
# docker -v
Docke... | Markdown |
TL containers
GeometryData(const std::string& n, const std::string& fast)
: name(n), fast_name(fast), visible(true) {}
};
void SetGeometryToLOD(const GeometryData&, LOD lod);
private:
Renderer& renderer_;
SceneHandle scene_;
ViewHandle view_;
Eigen::Vector4f background_col... | C |
(pin)
return ComposerRobot()
}
fun providePinToInbox(pin: String): InboxRobot {
typePin(pin)
return InboxRobot()
}
private fun typePin(pin: String): PinRobot {
pin.forEach {
when (it) {
one -> view.withId(buttonOneId).click()
... | Kotlin |
rors.
# TODO(b/127523126): Add more principled tests that this actually computes
# what we expect it to (manual experimentation and testing has been done and
# convincing results observed, but no clear strategy for automated tests
# jumps out as terribly obvious).
vgp.surrogate_posterior_expected_lo... | Python |
IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
private List<CLMDetectedFace> detectFaces() {
return CLMDetectedFace.convert(engine.model.trackedFaces, currentFrame);
}
@Override
public void afterUpdate(VideoDisplay<MBFImage> display) {
// do nothing
}
@Overrid... | Java |
_XNIFF_NIF("image/x-niff", ".nif"),
IMAGE_XNIFF_NIFF("image/x-niff", ".niff"),
IMAGE_XPCX_PCX("image/x-pcx", ".pcx"),
IMAGE_XPICT_PCT("image/x-pict", ".pct"),
IMAGE_XPM_XPM("image/xpm", ".xpm"),
IMAGE_XPORTABLEANYMAP_PNM("image/x-portable-anymap", ".pnm"),
IMAGE_XPORTABLEBITMAP_PBM("image/x-portable-bitmap", ".pb... | Java |
s
json_file = OUTPUT_DIR / "all_devices_enhanced.json"
ndjson_file = OUTPUT_DIR / "all_devices_enhanced.ndjson"
if json_file.exists() and ndjson_file.exists():
json_size = f"{json_file.stat().st_size // 1024}KB"
ndjson_size = f"{ndjson_file.stat().st_size // 1024... | Python |
v eax, DWORD PTR [ebp + 0x10]
sub eax, 1
mov DWORD PTR [ebp + 0x10], eax
cmp DWORD PTR [ebp + -8], 0
jz loc_1c28
mov ecx, DWORD PTR [ebp + -4]
movzx edx, BYTE PTR [ecx]
xor edx, DWORD PTR [ebp + 8]
and edx, 0xff
mov eax, DWORD PTR [ebp + 8]
shr eax, 8
xor eax, DWORD PTR [ebp + edx * 4 + -0x408]
mov DWORD PTR [ebp + 8],... | Assembly |
out_right = (t_sample *)(w[5]);
int n = (int)(w[6]);
if (n > x->iobufsz) {
delete [] x->ibuf;
delete [] x->obuf;
x->iobufsz = n;
x->ibuf = new warps::ShortFrame[x->iobufsz];
x->obuf = new warps::ShortFrame[x->iobufsz];
}
int shape = int(constrain(x->f_shape,0.0,3.0));
float algo = const... | C++ |
iption" /> property.
/// </param>
/// <param name="artifactChanges">
/// An initialization value for the <see cref="P:ArtifactChanges" /> property.
/// </param>
/// <param name="properties">
/// An initialization value for the <see cref="P:Properties" /> property.
... | C# |
jQuery.style( elem, prop, initialInUnit + unit );
if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
maxIterations = 0;
}
initialInUnit = initialInUnit / scale;
}
initialInUnit = initialInUnit * 2;
jQuery.style( elem, prop, initialInUnit + unit );
// Make sure ... | JavaScript |
ONTMINBOUNDS(pfont,leftSideBearing);
pRegion = cfbGetCompositeClip(pGC);
pBox = REGION_RECTS(pRegion);
numRects = REGION_NUM_RECTS (pRegion);
while (numRects && pBox->y2 <= y - maxAscent)
{
++pBox;
--numRects;
}
if (!numRects || pBox->y1 >= y + maxDescent)
return;
yBand = pBox->y1;
... | C |
pose' or opt.supervision == 'poseRotMat') then
label = pose:view(-1, 1, 1)
elseif(opt.supervision == 'shape') then
label = shape:view(10, 1, 1)
elseif(opt.supervision == 'poseshape') then
label = torch.cat(pose:view(-1, 1, 1), shape:view(10, 1, 1), 1)
elseif(opt.supervision == 'voxels') then
... | Lua |
IElemInitRef = C->inits().begin();
for (auto *IInit : C->private_copies()) {
Data.FirstprivateVars.push_back(*IRef);
Data.FirstprivateCopies.push_back(IInit);
Data.FirstprivateInits.push_back(*IElemInitRef);
++IRef;
++IElemInitRef;
}
}
OMPPrivateScope TargetScope(*this);
VarD... | C++ |
end
}
cls.New = function (...)
local obj = {}
obj.classname = cls.classname
Construct(cls,obj,...)
setmetatable(obj, cls.obj_meta)
return obj
end
setmetatable(cls,
{
__newindex = function (tb, k, v)
if type(v) ~= "function" then
... | Lua |
UgZhbW91bnQSOAoJY2xhaW1hbnRzGAMgAygLMhouVFcuU3RlbGxhci5Qcm90by5DbGFpbWFudFIJY2xhaW1hbnRz');
@$core.Deprecated('Use operationClaimClaimableBalanceDescriptor instead')
const OperationClaimClaimableBalance$json = const {
'1': 'OperationClaimClaimableBalance',
'2': const [
const {'1': 'balance_id', '3': 1, '4': 1, ... | Dart |
:TextView = itemView.findViewById(R.id.tv_text)
val bgIv:ImageView = itemView.findViewById(R.id.iv_background)
}
}package me.hiten.jkcardlayout.sample
import android.content.Context
import android.os.Handler
import android.os.Looper
import org.json.JSONObject
object MockData {
fun getCards(context... | Kotlin |
/*
Ультра лёгкая и быстрая библиотека для энкодера, энкодера с кнопкой или просто кнопки
Документация:
GitHub: https://github.com/GyverLibs/EncButton
Возможности:
- Максимально быстрое чтение пинов для AVR (ATmega328/ATmega168, ATtiny85/ATtiny13)
- Оптимизированный вес
- Быстрые и лёгкие алг... | C |
case SYS_WEATHER.SNOWSTORM:
case SYS_WEATHER.SNOWSTORM_H:
case SYS_WEATHER.VOLCANO:
case SYS_WEATHER.SANDSTORM:
case SYS_WEATHER.MYSTIC:
case SYS_WEATHER.MIST1:
case SYS_WEATHER.MIST2:
case SYS_WEATHER.FLASH:
case SYS_WEATHE... | C# |
ugu kalsoon tahay in wax walba ay hagaagsan yihiin. Iibsadaha sharciga ah kuguma cadaadin doono inaad goor hore dhamaystirto.';
@override
String get guide250Sbcbm250Sbseller250Sb1250Sbtitle => 'Xaaladna ma aha in la dhammeeyo ganacsiga goor hore';
@override
String get guide250Sbcbm250Sbseller250Sb2250Sbtext =... | Dart |
ap wrap = (Nullable.Wrap) res;
res = wrap.Child;
if (!(res is Constant)) {
rc.Report.Error (1770, Location,
"The expression being assigned to nullable optional parameter `{0}' must be default value",
p.Name);
return;
}
}
if (!expr.IsNull && TypeSpec.IsReferenceType (par... | C# |
margin: 0; // this is a workaround for a menu check/radio size allocation issue
padding: 0;
&:dir(ltr) {
margin-right: $space-size;
margin-left: -$space-size / 2;
}
&:dir(rtl) {
margin-left: $space-size;
margin-right: -$space-size / 2;
}
&,
&:hover,
&:disabled,
&:checked:hover,
&:i... | CSS |
ry to perform this code
sequence every time the BATs are programmed, only when
there is a possibility that there may be overlapping BAT
entries.
When programming the BATs in non-reset scenarios, even if
you are sure that your new mapping will not temporarily
create overlapping regions, it is still a ... | Assembly |
tools.filemanager.pro.helpers
import com.simplemobiletools.commons.helpers.TAB_FILES
import com.simplemobiletools.commons.helpers.TAB_RECENT_FILES
import com.simplemobiletools.commons.helpers.TAB_STORAGE_ANALYSIS
import com.simplemobiletools.commons.models.FileDirItem
import com.simplemobiletools.filemanager.pro.model... | Kotlin |
辑器相比具有的一大优势。但很多程序员又喜欢用得顺手的文本编辑器的灵活性,希望鱼与熊掌兼得。语言服务器(Language Server)是一种正在引起关注的新技术:用软件生成语法树,给文本编辑器提供 API。语言服务器可以支持多种文本编辑器,并且为强大的代码分析和重构操作提供了命令。
## 2.11 延展阅读
在第 2 章就开始谈延展阅读,这似乎有点儿奇怪。不过,有大量关于重构的材料已经超出了本书的范围,早些让读者知道这些材料的存在也是件好事。
本书的第 1 版教很多人学会了重构,不过我的关注点是组织一本重构的参考书,而不是带领读者走过学习过程。如果你需要一本面向入门者的教材,我推荐 Bill Wake 的《重构手册》[Wake... | Markdown |
f1cc4a61, 0x2dd0712657fe8, 0x9dd6a3364c358319, 13},
{_M64, _M64, _M64 - 1, 1, 42},
} {
testMul("Mul64", Mul64, a.x, a.y, a.hi, a.lo)
testMul("Mul64 symmetric", Mul64, a.y, a.x, a.hi, a.lo)
testDiv("Div64", Div64, a.hi, a.lo+a.r, a.y, a.x, a.r)
testDiv("Div64 symmetric", Div64, a.hi, a.lo+a.r, a.x, a.y, a.r)
... | Go |
SetLevel: {
BAD_TRIP: SetLevelErrors + 1,
BAD_LABEL: SetLevelErrors + 2,
BAD_LEVEL: SetLevelErrors + 3,
APPLY_ERROR: SetLevelErrors + 4,
LEVEL_CONFLICT: SetLevelErrors + 5,
},
SetMOTD: {
TOO_LONG: SetMOTDErrors + 1,
},
UnclaimChannel: {
NOT_OWNED: UnclaimChannelErrors + 1,
... | JavaScript |
| 0 | OFF | 0 | 0 | 0 | |
.8byte 0x2, 0x2004003F, write_pmpaddr_2 # | 2 | 0x2004003F | 09 | 0 | TOR | 0 | 0 | 1 | 80100000-801000FF R |
.8byte 0x3, 0x20040080, write_pmpaddr_3 # | 3 | 0x20040080 | 00 | 0 | OFF | 0 | 0 | 0 | |
... | Assembly |
order-r border-gray-300"},[e("div",{class:"flex items-center justify-center"},"BUNDLED")]),e("td",{class:"border-r border-gray-300"},[e("div",{class:"flex items-center justify-center"},"BUNDLED")]),e("td",{class:"border-r border-gray-300"},[e("div",{class:"flex items-center justify-center"},"BUNDLED")]),e("td",{class:"... | JavaScript |
{
IrisImages.addShadowColorImages(images, shadowTargetsSupplier.get(), null);
}
}
private boolean shouldRemovePhase = false;
@Override
public WorldRenderingPhase getPhase() {
if (shouldRemovePhase) {
phase = WorldRenderingPhase.NONE;
shouldRemovePhase = false;
GLDebug.popGroup();
}
if (overr... | Java |
800898D0 2120C003 */ addu $a0, $fp, $zero
/* 2CBB69C 800898D4 7E260208 */ j .Llevel_32_800899F8
/* 2CBB6A0 800898D8 80000624 */ addiu $a2, $zero, 0x80
.Llevel_32_800898DC:
/* 2CBB6A4 800898DC 1700458E */ lw $a1, 0x17($s2)
/* 2CBB6A8 800898E0 C05D000C */ jal VecCopy
/* 2CBB6AC 800... | Assembly |
if (LivingIsPoisoned(Body))
{
Body.TargetObject = Body;
break;
}
if (Body.ControlledBrain != null && Body.ControlledBrain.Body != null && LivingIsPoisoned(Body.ControlledBrain.Body)
&& Body.GetDistanceTo(Body.ControlledBrain.Body) <= spell.Range && spell.Target.ToLower() != "self"... | C# |
= currentNode.next;
}
// 遍历显示所有节点
findAllNodes() {
let currnetNode = this.head;
while (currnetNode.next !== null) {
console.log(currnetNode);
currnetNode = currnetNode.next;
}
}
}
let headNode = { element: "head", next: null };
const linkList = new LinkList_ts(headNode);
linkList.inser... | Typescript |
rAbove(8, 5) ? require('perf_hooks').performance : undefined
let timeTracker: { start(): void, taken(): number }
// istanbul ignore else
if (process && typeof process.hrtime === 'function') {
let tick: [number, number]
timeTracker = {
start() { tick = process.hrtime() },
taken() {
const [second, nano... | Typescript |
r serialVersionUID for serialization. */
private static final long serialVersionUID = 7341222528856548117L;
/**
* Constructs a new empty UIDefaults instance.
*/
public UIDefaults()
{
bundles = new LinkedList();
defaultLocale = Locale.getDefault();
propertyChangeSupport = new PropertyChangeSup... | Java |
in the
* {@link BasicFileChooserUI} class.
*/
public class uninstallStrings implements Testlet
{
/**
* Runs the test using the specified harness.
*
* @param harness the test harness (<code>null</code> not permitted).
*/
public void test(TestHarness harness)
{
Locale.setDefault(Locale.UK);... | Java |
ази глава?
На първо място научихме **какво е програмирането** - **задаване на команди, изписани на компютърен език**, които машината разбира и може да изпълни. Разбрахме още какво е **компютърната програма** - тя представлява **поредица от команди**, подредени една след друга. Запознахме се с **езика за програмиране P... | Markdown |
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 agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eit... | CSS |
dims(3)
j.size = 2
A = torch.rand(6, 4)
a = A[(i, j), k] # split dim 0 into i,j
print(i.size, j.size, k.size)
> 3 2 4
r = a.order(i, (j, k)) # flatten j and k
print(r.shape)
> torch.Size([3, 8])
```
The size of one unsized dimension in a tuple such as `i` can be inferred if the other sizes are known.
Examples
=====... | Markdown |
*/ addiu $s6, %lo(D_800DF310) # addiu $s6, $s6, -0xcf0
/* 1C1EB4 80213E64 36B5024F */ ori $s5, (0x0001024F & 0xFFFF) # ori $s5, $s5, 0x24f
/* 1C1EB8 80213E68 26947880 */ addiu $s4, %lo(D_800E7880) # addiu $s4, $s4, 0x7880
/* 1C1EBC 80213E6C 26109560 */ addiu $s0, %lo(D_800E9560) # addiu $s0, $s0, -0x6aa0
/* 1C1EC... | Assembly |
try:
region = message.split()[1].lower()
except IndexError:
region = def_region.lower()
if region not in region_list:
bot.whisper(
source,
f"Region is not valid. Please enter a valid region. Region... | Python |
{
"name": "Koongo",
"code": "kng"
},
{
"name": "Kanufi",
"code": "kni"
},
{
"name": "Western Kanjobal",
"code": "knj"
},
{
"name": "Kuranko",
"code": "knk"
},
{
"name": "Keninjal",
"code": "knl"
},
{
"name": "Kanamarí",
"code": "knm"
},
{
"n... | Kotlin |
#include "SDTOSCDemix.h"
#include <string.h>
#include "../SDTDemix.h"
int SDTOSCDemix(const SDTOSCMessage *x) {
SDTOSC_MESSAGE_LOGA(VERBOSE, "\n %s\n", x, "");
const SDTOSCAddress *a = SDTOSCMessage_getAddress(x);
if (SDTOSCAddress_getDepth(a) < 2) {
SDTOSC_MESSAGE_LOGA(ERROR,
"\n... | C |
it has no other button styles.\\n &.btn-link {\\n @include box-shadow(none);\\n }\\n}\\n\\n\\n//\\n// Vertical button groups\\n//\\n\\n.btn-group-vertical {\\n flex-direction: column;\\n align-items: flex-start;\\n justify-content: center;\\n\\n > .btn,\\n > .btn-group {\\n width: 100%;\\n }\\n\\n > .bt... | Go |
)},
new Tick {Time = start.AddSeconds(1)},
};
var timeProvider = new ManualTimeProvider(start, TimeZones.Utc);
var fastForward = new FastForwardEnumerator(data.GetEnumerator(), timeProvider, TimeZones.Utc, TimeSpan.FromSeconds(1));
Assert.IsTrue(fastForw... | C# |
"password" to RSAUtil.rsaPassword(passport, key, rhash),
"username" to username,
"gee_type" to "10",
"gee_challenge" to geeChallenge,
"gee_seccode" to geeSeccode,
"gee_validate" to geeValidate,
"recaptcha_token" to recaptchaToken,
... | Kotlin |
urnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE... | Java |
++)
{
Block.GetIntValue(); //unknown maybe flag
IdValues[i] = Block.GetStringValue(128, true, -1, Encoding.Unicode).Trim('\0');
}
Block.GetIntValue(); //unknown maybe flag also idk
if (!Modify)
{
for (int i =... | C# |
0")]
/// override default proxy timeout
pub timeout: Option<f64>,
#[argh(subcommand)]
pub subcommand: Option<Subcommand>,
}
/// Extract the base cmd from a path
fn cmd<'a>(default: &'a String, path: &'a String) -> &'a str {
std::path::Path::new(path).file_name().map(|s| s.to_str()).flatten().unwra... | Rust |
>
</div>
### 相似组件
| 组件名 | 何时使用 |
| :---------------------- | :----------------------------------------------------- |
| [按钮](./button) | 当前流程的结束或新流程的开启需要用户点击触发时使用。 |
| [返回顶部](./back-top ) | 当页面内容过长,用户有快速返回到页面顶部的诉求时使用。 |
---
title: Chat
descript... | Markdown |
),
Igbo_Nigeria(0x0470),
Indonesian_Indonesia(0x0421),
Inuktitut_Canada(0x045D),
Inuktitut_Latin_Canada(0x085D),
Irish_Ireland(0x083C),
isiXhosa_SouthAfrica(0x0434),
isiZulu_SouthAfrica(0x0435),
Italian_Italy(0x0410),
Italian_Switzerland(0x0810),
Japanese_Japan(0x0411),
Kanna... | Java |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace TeamJRPG
{
public class SpriteSheet
{
public Texture2D texture;
public SpriteSheet(Texture2D texture)
{
this.texture = texture;
}
public Sprite GetSprite(Vector2 sheetPosition... | C# |
Tablet.ForeColor = figureColor = toolColor; // add transparency
Logger.Trace("btnToolSelection_Click toolNr:{0} Color:{1}", toolNr, toolColor);
if (RbMode1.Checked)
Tablet.SetSelectionColor(figureColor);
}
/* set inkcanvas pen color */
pr... | C# |
l {
panic(err)
}
return &bigquery.TableMetadata{
Description: "Test failure clusters for " + luciProject + " with cluster metrics. Periodically updated from clustered_failures table with ~15 minute staleness." +
" See go/luci-reference#cluster-summaries.",
ViewQuery: `SELECT * FROM internal.cluster_sum... | Go |
rruptLabel, 21),
(I::Unop(token![sin], ScalarType::Float), 61),
(I::Unop(token![cos], ScalarType::Float), 62),
// (I::Unop(Un::Tan, ScalarType::Float), 63),
// (I::Unop(Un::Acos, ScalarType::Float), 64),
// (I::Unop(Un::... | Rust |
// Author: Nathan Handley (nathanhandley@protonmail.com)
// Copyright (c) 2025 Nathan Handley
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (... | C# |
999162,
-0.000727,
0.040935,
0,
0.000176,
0.999909,
0.013464,
0,
-0.040941,
-0.013445,
0.999071,
0,
0.09854,
0.286567,
-0.163192,
1,
},
[1.66666666667] = {
0.999199,
-0.000582,
0.04001,
0,
6.5e-05,
0.999916,
0.012933,
0,
-0.040014,
-0.01292,
0.999116,
0,
0.09848... | Lua |
.err {
t.Errorf("Invalid error response. Want %v, got %v", test.err, (err != nil))
}
if len(rsm) != test.want {
t.Errorf("Invalid number of replicaset members. Want %d, got %d", test.want, len(rsm))
}
})
}
}
func TestReplicasetConfig(t *testing.T) {
t.Skip("current sandbox doesn't support replicas... | Go |
ोगों के लिए, एथेरियम क्लासिक के लिए जिम्मेदार लोग "बेवकूफ", "पागल", "खलनायक" या इससे भी बदतर थे, और उन्हें अपने अपराधों के लिए भुगतान करना पड़ा। इस पोस्ट-फोर्क शत्रुता का अधिकांश समय टिप्पणीकारों द्वारा कब्जा कर लिया गया था, लेकिन स्कैब्स को चुनने से बचने के लिए, हम दृढ़ता से इस खंड के शीर्षक को गूगल करने के खिलाफ सलाह... | Markdown |
%r14
movq -32(%rsi),%r13
.cfi_restore %r13
movq -24(%rsi),%r12
.cfi_restore %r12
movq -16(%rsi),%rbp
.cfi_restore %rbp
movq -8(%rsi),%rbx
.cfi_restore %rbx
leaq (%rsi),%rsp
.cfi_def_cfa_register %rsp
.Lmul4x_epilogue:
.byte 0xf3,0xc3
.cfi_endproc
.size bn_mul4x_mont_gather5,.-bn_mul4x_mont_gather5
.type mul4x_i... | Assembly |
013A05C 93 E1 00 1C */ stw r31, 0x1c(r1)
/* 8013D120 0013A060 93 C1 00 18 */ stw r30, 0x18(r1)
/* 8013D124 0013A064 93 A1 00 14 */ stw r29, 0x14(r1)
/* 8013D128 0013A068 93 81 00 10 */ stw r28, 0x10(r1)
/* 8013D12C 0013A06C 7C 7F 1B 78 */ mr r31, r3
/* 8013D130 0013A070 80 6D 9A EC */ lwz r3, sys@sda21(r13)
/* 80... | Assembly |
x1='7.8' y1='16.9' x2='16.2' y2='16.9'/%3E%3C/svg%3E")}.ic_b_sqldoc{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d84315' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r=... | CSS |
return true;
}
/* ********************************************************** */
// variable-usage|function|string|identifier|'='|':'
static boolean condition_body(PsiBuilder b, int l) {
if (!recursion_guard_(b, l, "condition_body")) return false;
boolean r;
r = variable_usage(b, l + 1);
if (!r)... | Java |
d-ok (Generated)
pub fn gen_unbind_ok<'a, W: Write + BackToTheBuffer + 'a>(
_: &'a UnbindOk,
) -> impl SerializeFn<W> + 'a {
move |mut input| {
input = gen_id(51)(input)?;
Ok(input)
}
}
}
/// tx (generated)
pub mod tx {
use super::*;
/// Parse tx (Gen... | Rust |
mationSpec = tween(220)) { it / 2 },
exit = fadeOut(animationSpec = tween(220)) +
slideOutVertically(animationSpec = tween(220)) { it / 2 },
) {
Card(
shape = CircleShape,
colors = cardColors(containerColor = colorScheme.surfaceColorAtElevation(4.dp))
... | Kotlin |
Self: Sized,
{
29
}
fn version(&self) -> u32 {
Self::version_static()
}
type Options = ();
type State = MeshAdvGltfImporterStateStable;
/// Reads the given bytes and produces assets.
fn import(
&self,
op: &mut ImportOp,
source: &mut dyn Read,
... | Rust |
-------------------------------------
void virtualmodel_t::AppendNodes( int group, const studiohdr_t *pStudioHdr )
{
AUTO_LOCK( m_Lock );
int numCheck = m_node.Count();
CUtlVector< virtualgeneric_t > node;
node = m_node;
MEM_ALLOC_CREDIT();
int j, k;
m_group[ group ].masterNode.SetCount( pStudioHdr->numloca... | C++ |
lt;div class="{clearCls}"></div>',
'</div>'
);
</code></pre>
* <p>This may be specified to produce a different DOM structure when rendering form Fields.</p>
* <p>A description of the properties within the template follows:</p><div class="mdetail-params"><ul>
* <li><b><tt>itemCls</tt></b> : ... | JavaScript |
021 // eor z1.d, z1.d, z8.d
WORD $0x04a93021 // eor z1.d, z1.d, z9.d
WORD $0x85855848 // ldr z8, [x2, #46, MUL VL]
WORD $0x85855c49 // ldr z9, [x2, #47, MUL VL]
WORD $0x052a3108 // tbl z8.b, z8.b, z10.b ... | Assembly |
/*
* Copyright 2012, DFKI GmbH Robotics Innovation Center
*
* This file is part of the MARS simulation framework.
*
* MARS 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 3
*... | C |
le()
override var listener: IBalanceManagerListener? = null
override val balance: BigInteger?
get() = storage.getBalance()
override fun sync() {
dataProvider.getBalance(contractAddress, address)
.subscribeOn(Schedulers.io())
.subscribe({ balance ->
... | Kotlin |
assert_eq!("YTw/JyJmeAAle1/7zuZkPP0C73BQ+6XrFEt2/Wy++2o", key.fingerprint());
}
#[test]
fn rsa_fingerprint_string() {
let key = PublicKey::parse(TEST_RSA_KEY).unwrap();
assert_eq!("2048 SHA256:YTw/JyJmeAAle1/7zuZkPP0C73BQ+6XrFEt2/Wy++2o demos@siril (RSA)", key.to_fingerprint_string(... | Rust |
hljs-addition,
.hljs-title.class_.inherited__,
.hljs-string {
color: #54fc54;
}
/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
.hljs-built_in,
.hljs-doctag, /* guessing */
.hljs-quote,
.hljs-keyword.hljs-atrule,
.hljs-regexp {
color: #54fcfc;
}
/* base0D - Functions, Methods, Attrib... | CSS |
//============ Copyright (c) Valve Corporation, All rights reserved. ============
#ifndef ISTEAMMUSIC_H
#define ISTEAMMUSIC_H
#ifdef _WIN32
#pragma once
#endif
#include "isteamclient.h"
//-----------------------------------------------------------------------------
// Purpose:
//------------------------------------... | C |
DISABLE_CONSTRUCTOR_PREVENTION_ANIMATIONSCRIPTSDESCRIPTION
public:
class AnimationScriptsDescription& operator=(class AnimationScriptsDescription const &) = delete;
AnimationScriptsDescription(class AnimationScriptsDescription const &) = delete;
AnimationScriptsDescription() = delete;
#endif
public:
/... | C++ |
g, b, a = c.R, c.G, c.B, 0xff
case color.NRGBA:
r, g, b, a = c.R, c.G, c.B, c.A
default:
panic("unknown palette color type")
}
if a != 0xff {
lastAlpha = i
}
fmt.Fprintf(w, " (%3d,%3d,%3d) # rgb = (0x%02x,0x%02x,0x%02x)\n", r, g, b, r, g, b)
}
io.WriteString(w, "}\n")
if last... | Go |
rait::parent(*node),
TsUnionOrIntersectionType::TsIntersectionType(node) => NodeTrait::parent(*node),
}
}
fn children(&self) -> Vec<Node<'a>> {
match self {
TsUnionOrIntersectionType::TsUnionType(node) => node.children(),
TsUnionOrIntersectionType::TsIntersectionType(node) => node.childre... | Rust |
}
impl From<Hash> for models::hash::Hash {
fn from(other: Hash) -> Self {
Self {
alg: models::hash::HashAlgorithm::new_unchecked(other.alg),
content: other.content.into(),
}
}
}
const HASH_TAG: &str = "hash";
const ALG_ATTR: &str = "alg";
impl ToXml for Hash {
fn ... | Rust |
return WaitEntryWeak(c);
}
pub fn New() -> Self {
let internal = EntryInternal {
next: None,
prev: None,
mask: 0,
context: WaitContext::None,
};
return Self(Arc::new(QMutex::new(internal)));
}
pub fn Timeout(&self) {
... | Rust |
getName();
if (names.contains(name)) {
continue;
}
String title = metaMenu.getTitle();
String translation = getBundle().getString(title);
if (!Strings.isNullOrEmpty(translation)) {
title = translation;
}
String[] menu = new String[groupRow.length];
men... | Java |
complete: () => done.fail(".updates stream must not complete"),
error: (e) => done.fail(e),
});
setTimeout(() => producer.update(22), 10);
setTimeout(() => producer.update(33), 20);
setTimeout(() => producer.update(44), 30);
});
it("can wait for value", async () => {
const producer = new... | Typescript |
onst auto& ov = obj->value;
N_GETPROP( type, ov, "type", String );
if ( type == "sprite" ) {
N_GETPROP( file, ov, "file", String );
N_GETPROP( x, ov, "x", Int );
N_GETPROP( y, ov, "y", Int );
N_GETPROP( w, ov, "w", Int );
N_GETPROP( h, ov, "h", Int );
out.push_back(... | C++ |
textContent.trim();
// Update the display to show current selection
if (viewModeDisplay) {
viewModeDisplay.textContent = `Current view mode: ${viewMode}`;
}
// You would typically update your UI based on the selection here
console.log(`View mode changed to: ${viewMode... | Markdown |
0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);
var i1 = (i0 >>> 16) | (i2 & 0xffff0000);
var i3 = (i2 << 16) | (i0 & 0x0000ffff);
// Modify counter values
C[0] ^= i0;
C[1] ^= i1;
C[2] ^= i2;
... | JavaScript |
flags_readonly.push_back(true);
}
}
assert_eq!(flags_readonly.len(), count as usize);
let mut count_false = 0;
for f in &flags_readonly {
if !f {
count_false += 1;
}
}
assert_eq!(count_false, 1);
flags_readonly
... | Rust |
结成三条不相干的直线,3个线性无关的向量张成R3空间。当然从3D数学利用坐标矩阵变换也可以直接推导得到结果,网上的资料很多笔者这里就不列举了。随后,我们在得到两两匹配的灯条后,分别选取左灯条的左上、左下角点,右灯条的右上、右下角点,并与一个正方形的四个角点匹配组成点对,将他们投入 `getPerspectiveTransform() `函数中,得到投影矩阵。随后就可以利用 `warpPerspective()` 来将整个装甲板投影成一个正方形了。由于拉伸或压缩,变换需要对图形进行插值或抽样,我们同样可以传递不同的参数来选择不同的方法,在此不赘述。不过我们会发现,如果以装甲板的两个灯条为矩形的两条边,是无复覆盖整个数字/图案的。因此我... | Markdown |
quest, headers *AppendRolePermissionHeaders, runtime *util.RuntimeOptions) (_result *AppendRolePermissionResponse, _err error) {
_err = util.ValidateModel(tmpReq)
if _err != nil {
return _result, _err
}
request := &AppendRolePermissionShrinkRequest{}
openapiutil.Convert(tmpReq, request)
if !tea.BoolValue(util.I... | Go |
.local.u64 %frame, %frame_ar;
.reg.u32 %r22;
.reg.u32 %r23;
.reg.u32 %r24;
.reg.u32 %r25;
.reg.u32 %r26;
.reg.u32 %r27;
.reg.u32 %r28;
.reg.u32 %r29;
mov.u32 %r24, %ar0;
st.u32 [%frame+16], %r24;
mov.u32 %r25, %ar1;
st.u32 [%frame+20], %r25;
ld.u32 %r26, [%frame+16];
st.u32 [%frame], %r26;
ld.u32 ... | Assembly |
', '', '', '', '', '', '', '', '', '', '', '', '', '1020199', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''},
{'1020199', '', '是的,从报告来看,部分空间门已停止了运作。', '', '', '', '', '', '', '', '', '', '9908001', '', '', '2', '', '卡蒂雅', 'Katya', '', '', '', '', '', '', '', '', '', '', '', '1020200', '', '', '', '', '... | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.