content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
read_body]] was called to read the request body and Nginx failed to send out the "100 Continue" response (like client connection early abortion and etc). thanks stonehuzhan for reporting this issue.
** bugfix: setting the "eof" argument (i.e., {{{ngx.arg[2]}}}) in [[body_filter_by_lua*|http://wiki.n... | HTML |
throw new Error("'cycle' tag requires at least two arguments");
}
if(args[1].indexOf(",") != -1){
var vars = args[1].split(",");
args = [args[0]];
for(var i = 0; i < vars.length; i++){
args.push('"' + vars[i] + '"');
}
}
if(args.length == 2){
var name = args[args.length - 1];
... | JavaScript |
0 0 1.15-.6c1.23-3.56 3.53-10.46 4.05-12.04s.39-2.78-.3-3.6a3.16 3.16 0 0 0-3.08-.83c-1.43.15-7.47.94-7.73 1a1 1 0 0 0 .26 2Z"
);
transform: scale(.6, .6);
fill: var(--accent);
}
/* Install an Update / Update is Ready */
[d="M12 2a1 1 0 0 1 1 1v10.59l3.3-3.3a1 1 0 1 1 1.4 1.42l-5 5a1 1 0 0 1-1.4 0l-5-5a1 1 0 ... | CSS |
for (int j = 0; j < 2 * i + 1; j++) {
image.setRGB(31 - i, y - i + j, v);
}
}
for (int i = 6; i < 12; i++) {
for (int j = 0; j < 3; j++) {
image.setRGB(31 - i, y - 1 + j, v);
}
}
return image;
}
private static Image drawTopArrow() {
BufferedImage image = new BufferedImage(32, 32, Buffer... | Java |
if (highlight) txt.hardlight(Window.TITLE_COLOR);
txt.setPos(0, pos);
parent.add( txt );
txt = PixelScene.renderTextBlock( value, 7 );
if (highlight) txt.hardlight(Window.TITLE_COLOR);
txt.setPos(WIDTH * 0.7f, pos);
PixelScene.align(txt);
parent.add( txt ... | Java |
ed</span>rose64</a> 🌹 (<a href="//en.wikipedia.org/wiki/User_talk:Redrose64" title="User talk:Redrose64">talk</a>) 21:07, 4 August 2019 (UTC)
<dl><dd>Thank you Redrose64. I noticed that now I have the option to override individual settings now, and that the gadgets aren't available globally. It's still enoug... | HTML |
.globl serial_disk_reader
.section .bss
.align 4
.type serial_disk_reader, @object
.size serial_disk_reader, 4
serial_disk_reader:
.zero 4
.comm ide_queue,8,4
.comm hd_buf,512,32
.comm hd_lock,4,4
.comm hd_direction,1,1
.comm floppy_queue,8,4
.comm buf_vect,4,4
.section .rodata
.LC34:
.string "bad request"... | Assembly |
xt(estate, &tidstate->ss.ps);
/*
* mark tid list as not computed yet
*/
tidstate->tss_TidList = NULL;
tidstate->tss_NumTids = 0;
tidstate->tss_TidPtr = -1;
/*
* open the scan relation
*/
currentRelation = ExecOpenScanRelation(estate, node->scan.scanrelid, eflags);
tidstate->ss.ss_currentRelation = cur... | C |
% {
transform: translate3d(-2px, 0, 0); }
40%, 60% {
transform: translate3d(2px, 0, 0); } }
@keyframes cf-spin {
0% {
transform: rotate(0deg); }
100% {
transform: rotate(360deg); } }
@keyframes cf-arrow-up {
0% {
transform: translateY(0px); }
40% {
transform: translateY(-40px); }
4... | CSS |
en"},inserted:{color:"yellowgreen"},atrule:{color:"deeppink"},"attr-value":{color:"deeppink"},keyword:{color:"deeppink"},regex:{color:"orange"},important:{color:"orange",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"},"pre.diff-highlight.diff-highlight > code .token.deleted... | HTML |
ab"
// p = ".*"
// Output: true
// Explanation: ".*" means "zero or more (*) of any character (.)".
//
// Example 4:
//
// Input:
// s = "aab"
// p = "c*a*b"
// Output: true
// Explanation: c can be repeated 0 times, a can be repeated 1 time. Therefore it matches "aab".
//
// Example 5:
//
// Input:
// s = "mississippi... | JavaScript |
и на %s%"] = { { Stats.MeleeHaste, }, } -- s432137
L["пробивает броню цели, ослабляя ее на %s ед"] = { { Stats.Armor, }, } -- s434837
L["выпускает разряд чародейской энергии, наносящий %s ед. урона от тайной магии, снижающий все виды сопротивления на %s и увеличивающий получаемый урон от заклинаний на %s% на %s сек. де... | Lua |
w5, [x27, 1068]
ldr w3, [x26, 8]
str w3, [x1, 1504]
ldr w2, [x27, 1072]
ldr w3, [x26, 12]
str w3, [x1, 1508]
str w5, [x1, 1512]
str w2, [x1, 1516]
ldr w2, [x27, 1076]
str w2, [x1, 1520]
strb wzr, [x1, 1436]
strb wzr, [x1, 1437]
strb wzr, [x1, 1438]
bl FSP_RecordSpecialFrame
ldr w0, [x28, 396]
ldr w1, [x2... | Assembly |
ake of examples
#[allow(unused_variables)]
// Allow unused assignments for the sake of examples
#[allow(unused_assignments)]
// Allow non snake case variables
#[allow(non_snake_case)]
// Allow unused mutable variables
#[allow(unused_mut)]
pub fn main() {
// the 'let' keyword:
// create a variable and assign
// dat... | Rust |
tz] with the given amount in the Z direction.</p>
<dt data-md><span class="prod"><dfn class="css dfn-paneled" data-dfn-type="function" data-export id="funcdef-scale3d">scale3d()</dfn> = scale3d( [ <a class="css production" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#number-value" id="ref-for-... | HTML |
});
test('должен корректно добавлять объект в корзину', () => {
const cart = new Cart();
cart.add(new Book(1001, 'War and Piece', 'Leo Tolstoy', 2000, 1225));
expect(cart).toEqual({
_items: [
{
id: 1001,
name: 'War and Piece',
author: 'Leo Tolstoy',
price: 2000,
... | Typescript |
"strength": "قوي" if abs(corr_value) > 0.7 else "متوسط"
})
return {
"correlation_matrix": correlation_matrix.round(3).to_dict(),
"strong_correlations": strong_correlations,
"correlations_count": len(strong_correlations)
... | Python |
#include "jsonrpc.c"
#include "mock_client_buf.h"
#include "mock_log.h"
#include "mock_proto.h"
#include "mock_wire_proto.h"
#include "test_jsonrpc_utils.h"
int
main(void)
{
jsmntok_t tokens[32];
const char json[] = ("{"
"\"jsonrpc\": \"2.0\","
"\"method\": \"hello\","
"\"id\": \"42\""... | C |
wFoAUgtGFczDnNQTTjgKS++Wk0cQh6M0wDgYD
VR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2cAMGQCMG/n61kRpGDPYbCWe+0F+S8T
kdzt5fxQaxFGRrMcIQBiu77D5+jNB5n5DQtdcj7EqgIwH7y6C+IwJPt8bYBVCpk+
gA0z5Wajs6O7pdWLjwkspl1+4vAHCGht0nxpbl/f5Wpl
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIF3TCCA8WgAwIBAgIIeyyb0xaAMpkwDQYJKoZIhvcNAQELBQAwf... | Go |
vim.g.catppuccin_flavour = "mocha" -- latte, frappe, macchiato, mocha
require("catppuccin").setup({
dim_inactive = {
enabled = false,
shade = "dark",
percentage = 0.15,
},
transparent_background = false,
term_colors = false,
compile = {
enabled = true,
path = vim.fn.stdpath("cache") .. "/... | Lua |
7, q4 @ tmp2892, tmp2884, tmp2888
.loc 3 222 0
vtbl.8 d14, {d28, d29}, d22 @ tmp2893,,, tmp2895
vtbl.8 d15, {d28, d29}, d23 @,,,
.loc 3 189 0
vldr d28, .L202+48 @,
vldr d29, .L202+56 @,
.loc 3 212 0
veor q4, q4, q7 @ tmp2897, tmp2892, tmp2893
.loc 3 189 0
vtbl.8 d14, {d28, d29}, d2 @ tmp2898,,, tmp2900
vtbl.... | Assembly |
c : -1 - c;
}
if (b is 0x19 or 0x39 or 0x1a or 0x3a) {
if ((b & 0x1f) == 0x1a && (stream.ReadByte() != 0 ||
stream.ReadByte() != 0 || stream.ReadByte() != 0 ||
stream.ReadByte() != 0)) {
throw new IOException();
}
int b1 = stream.ReadByte();
int ... | C# |
ParameterTemplate"),
GLfloat("emScale"),
GLuint("baseAndCount")
)
IgnoreMissing..void(
"ProgramPathFragmentInputGenNV",
GLuint("program"),
GLint("location"),
GLenum("genMode"),
GLint("components"),
Check("genModeToElements(genMode) * components")... | Kotlin |
$$rhino.Nilable<$$property.Element>;
/**
* 'Catalog Home' Page
* @type {$$rhino.Nilable<$$property.Element>}
* @memberof sc_catalogFields
*/
desktop_home_page: $$rhino.Nilable<$$property.Element>;
/**
* Desktop image
* @type {$$rhino.Nilable<$$property.UserImage>}
* @me... | Typescript |
ed>
<o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved>
<o:Pages>4</o:Pages>
<o:Words>1626</o:Words>
<o:Characters>9270</o:Characters>
<o:Lines>77</o:Lines>
<o:Paragraphs>18</o:Paragraphs>
<o:CharactersWithSpaces>11384</o:CharactersWithSpaces>
<o:Version>9.4402</o:Version>
</o:DocumentProperties>
</xml><!... | HTML |
Vec<Fr>>,
circuit: &Circuit,
rng: &mut R,
) -> bool {
assert_eq!(witnesses.len(), inputs.len());
let (proof, outputs) =
HyraxProof::prover(params, witnesses, inputs, circuit, witnesses.len(), rng);
println!("hyrax_zk_gkr -- generate proof...ok");
let result = proof.verify(params, &output... | Rust |
metrics with the outputs from the original model. For PSNR, we report only the _w/ Orig._ setting, as the _w/ G.T._ comparison is not informative due to significant numerical differences between the generated outputs and the ground-truth images.\n' +
'\n' +
'As shown in Table 1, ParaDiGMS [60] expends cons... | HTML |
: string;
birthday: string;
price: number;
};
test.each`
watchDateTime | birthday | price
${'2020-10-10T10:00'} | ${'1980-05-05T00:00'} | ${1800}
${'2020-10-10T10:00'} | ${'2010-05-05T00:00'} | ${1200}
${'2020-10-01T10:00'} | ${'1980-05-05T00:00'} | ${1000}
${'2020-... | Typescript |
using System;
using System.Collections.Generic;
using System.IO;
using Rhino.Runtime;
#if RHINO_SDK
namespace Rhino
{
#if DEBUG
/// <summary>
/// Debugging only
/// </summary>
public static class RhinoFileWatcherDebugging
{
/// <summary>
/// Dump the current status of the file watcher system to the... | C# |
= pb = abs(a - c)
vabdl.u8 q2,d3,d1 @; q2 = pa = abs(b - c)
vaddl.u8 q5,d2,d3 @; q5 = a + b
vabd.u16 q4,q5,q4 @; q4 = pc = abs(a + b - 2c)
@
vcle.s16 q5,q2,q3 ... | Assembly |
step in range(num_steps):
offset_range = train_labels.shape[0] - batch_size
offset = (step * batch_size) % offset_range
batch_data = train_dataset[offset:(offset + batch_size), :]
batch_labels = train_labels[offset:(offset + batch_size), :]
feed_dict = {tf_tr... | Python |
m+ %d value added to msDS-AllowedToActOnBehalfOfOtherIdentity:\x1b[0m", len(valuesAdded)))
} else {
resourceBasedConstrainedDelegationMessages = append(resourceBasedConstrainedDelegationMessages, fmt.Sprintf(" │ \x1b[1;92m+ %d values added to msDS-AllowedToActOnBehalfOfOtherIdentity:\x1b[0m", len(valuesAd... | Go |
56 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z"},null,-1),_e=[te];function ae(t,a,_,r,l,i){return o(),n("svg",ee,_e)}var re=s(Y3,[["render",ae],["__file... | JavaScript |
ntered problems while unfolding .]]}
local cand = {
[[After 60 days of fierce battle , the technical personnel of Xi ' an Satellite Monitoring and Control Center fought out several technical difficulties and successfully excluded the satellite satellite satellite malfunction .]],
[[At present , the satellite has good ... | Lua |
'
// Length must be two, hyphen followed by any letter/digit.
if (_current.length != 2) return false;
if (!_current.startsWith('-')) return false;
var opt = _current[1];
if (!_isLetterOrDigit(opt.codeUnitAt(0))) return false;
return _handleSoloOption(opt);
}
bool _handleSoloOption(String op... | Dart |
d-button, video::-webkit-media-controls-seek-forward-button {
-webkit-appearance: media-seek-forward-button;
display: -webkit-box;
width: 48px;
height: 48px;
}
audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-fullscreen-button {
-webkit-appearance: media-fullscreen-but... | CSS |
# -*- coding: utf-8 -*- #
# Copyright 2022 Google LLC. All Rights Reserved.
#
# 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 requir... | Python |
Scoped.(P1, P2, P3) -> T): ScopedProvider3<P1, P2, P3, T> =
object : ScopedProvider3<P1, P2, P3, T> {
@Synchronized
override fun invoke(scope: Scope, p1: P1, p2: P2, p3: P3): T =
createOrGetScopedInstance(scope, shankInternalMashHashCodes(this, p1, p2, p3)) { factory(InternalScoped(scop... | Kotlin |
.0* 0.00085947578*Math.cos( 0.51612788497 + 426.598190876*t)-Math.pow(t,1.0)* 0.00085947578* 426.598190876*Math.sin( 0.51612788497 + 426.598190876 * t);
saturn_z_1+=Math.pow(t,0.0)*1.0* 0.00101466332*Math.cos( 1.79095829545 + 220.4126424388*t)-Math.pow(t,1.0)* 0.0010146... | Kotlin |
;
; int __fastcall__ write (int fd, const void* buf, int count);
;
.include "kim1.inc"
.import popax, popptr1
.importzp ptr1, ptr2, ptr3
.export _write
.proc _write
sta ptr3
stx ptr3+1 ; Count in ptr3
inx
stx ptr2+1 ... | Assembly |
d-4cf5-8cf2-ca440923595b, 38271ad0-7092-4d63-a5e2-8d2679d1ad65, 2838059e-52e8-481c-8f9f-6ae1c38fae81, b40cd9af-318d-4d4b-ab1c-d54361b76207
unsupported: false, false, false, false, false
passed: false, false, false, false, false
test failed: false, false, false, false, false</span>
</div></td><td><div class='dataPoin... | HTML |
.push("scratch");if(o.push(["function ",s,"(",l.join(","),"){var ",c.join(",")].join(""),"for(i=left+1;i<=right;++i){","j=i;ptr+=s0","cptr=ptr"),t.length>1){o.push("dptr=0;sptr=ptr");for(var f=t.length-1;f>=0;--f){var d=t[f];0!==d&&o.push(["for(i",d,"=0;i",d,"<n",d,";++i",d,"){"].join(""))}o.push("scratch[dptr++]=",r("... | HTML |
_SIZE;
@StringRes
fun toStringRes(): Int =
when (this) {
SORT_TYPE_BY_NAME -> R.string.global_name
SORT_TYPE_BY_DATE -> R.string.global_date
SORT_TYPE_BY_SIZE -> R.string.global_size
}
companion object {
const val PREF_FILE_LIST_SORT_TYPE = "PREF... | Kotlin |
h/2-5)+", 0)")}if(X!=="TB"){l.attr("transform","translate(-19, "+(s-u.height/2)+")")}}))};const ct=function(t,e,r,s){Z();const a=(0,i.c)();const c=a.gitGraph;i.l.debug("in gitgraph renderer",t+"\n","id:",e,r);K=s.db.getCommits();const o=s.db.getBranchesAsObjArray();X=s.db.getDirection();const l=(0,n.Ys)(`[id="${e}"]`);... | JavaScript |
pub const R_390_TLS_TPOFF: ::libc::c_uint = 56;
pub const R_390_20: ::libc::c_uint = 57;
pub const R_390_GOT20: ::libc::c_uint = 58;
pub const R_390_GOTPLT20: ::libc::c_uint = 59;
pub const R_390_TLS_GOTIE20: ::libc::c_uint = 60;
pub const R_390_IRELATIVE: ::libc::c_uint = 61;
pub const R_390_NUM: ::libc::c_uint = 62;... | Rust |
cmd, &args, 0)
}
}
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (th... | Rust |
过并行多个独立的注意力头,将输入映射到不同的子空间,再拼接结果。虽然每个头的计算是线性的,但多头的组合相当于隐式引入了**多组线性变换的联合表达**。
- **表达能力提升**:多头机制通过不同子空间的投影,增强了模型的表达能力,部分弥补了线性操作的局限性。
---
### 5. **简化梯度传播**
自注意力层的线性操作(矩阵乘法)具有简单的梯度计算规则,若加入非线性激活函数,可能会增加梯度消失或爆炸的风险(如Sigmoid的饱和区)。
- **稳定性考量**:保持线性操作有助于优化过程的稳定性,尤其是在深层Transformer模型中。
---
### 6. **参数效率与计算效率**
自... | Markdown |
p=t_loop.stop();std::cout << "1st exit" << std::endl;)
// 2 pipeline buffers are used in this thread
PipeBuffer &new_buf=cf->pipe.RequestBuffer(1); //This represent the newest edge-map
PipeBuffer &old_buf=cf->pipe.RequestBuffer(2); //This represents the old edgemap
if(new_buf.quit){ ... | C++ |
--[[
This will not support FAT32.
1. Because FAT16 won't even properly fit on a tape or max sized file.
2. Because FAT32's structure is incompatible with FAT12 and FAT16
--]]
--local vcomp = require("vcomponent")
local fs = require("filesystem")
local io = require("io")
local NUL = '\0'
local msdos = {}
local _msdos ... | Lua |
_AS_RF || isElectricRFReceiver(aReceiver))) {
if (!(aReceiver instanceof cofh.api.energy.IEnergyConnection) || ((cofh.api.energy.IEnergyConnection)aReceiver).canConnectEnergy(FORGE_DIR[aSide])) {
if (RF_ENERGY_NEW && aReceiver instanceof cofh.api.energy.IEnergyReceiver) return checkOverCharge(aSize, aReceiver)... | Java |
Info>(response.body)
assertThat(uploadInfo.size).isEqualTo(uploadFile.length())
assertThat(uploadInfo.filename).isEqualTo(uploadFile.name)
assertThat(uploadInfo.contentType).isEqualTo(ContentType.IMAGE_PNG.mimeType)
assertThat(uploadInfo.extension).isEqualTo(".png")
assertThat(up... | Kotlin |
*connectionPool
var b *Bucket
var vb uint16
var replica bool
queue.Lock()
queueLocked = true
for {
if queue.abort {
queue.Unlock()
queueLocked = false
if conn != nil {
conn.SetReplica(false)
pool.Return(conn)
conn = nil
}
// worker pool is shrinking so exit gracefully
return
} e... | Go |
ptPerson);
CHECK(*optPerson == person);
j = nullptr;
optPerson = j.get<std::unique_ptr<udt::person>>();
CHECK(!optPerson);
}
}
// custom serializer - advanced usage
// pack structs that are pod-types (but not scalar types)
// relies on adl for any other type
template <typename T, t... | C++ |
86RelocationType
import ru.inforion.lab403.elfloader2.processors.x86.enum.X86RelocationType.*
import ru.inforion.lab403.elfloader2.processors.x86.enum.X86RelocationType.Companion.x86relocation
class ElfDecoderX86(file: ElfFile) : AElfDecoder(file) {
companion object {
private val log = logger()
}
... | Kotlin |
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.metrics import confusion_matrix
def plot_training_loss_history(loss_history, interval=10):
iterations = [i * interval for i in range(len(loss_history))]
plt.figure(figsize=(8, 5))
plt.plot(iterations, loss_history, label... | Python |
ms2.sys", 0x6b370, 0x0, true, 0x4ff5fbcf5bad5e39)
#define _p61(...) _SDK_MAGIC_LINK(_SDK_ESCAPE(sdk::unknown_ptr), "$UnlockAllocation@VIDMM_GLOBAL$dxgmms2.sys", 0x63590, 0x0, true, 0x9bc0ed510f9bf026)
#define _p62(...) _SDK_MAGIC_LINK(_SDK_ESCAPE(sdk::unknown_ptr), "$UnmapAllPagingBuffers@VIDMM_GLOBAL$dxgmms2.sys", 0xb... | C++ |
)
// ConsistencyGroupChild consistency group child
//
// swagger:model consistency_group_child
type ConsistencyGroupChild struct {
// links
Links *SelfLink `json:"_links,omitempty"`
// application
Application *ConsistencyGroupChildInlineApplication `json:"application,omitempty"`
// Tags are an optional way to ... | Go |
ById("messagesList").appendChild(li);
}).catch((err: IResponse) => {
let li = document.createElement("li");
li.innerHTML = "<div>Failed to request with error: <div class='message'>" + err.Content + "</div></div>";
document.getElementById("messagesList").appendChild(li);
});
});
document... | Typescript |
ch ROM into CPU space, set VROM/VRAM (done for ALL ROMs) */
mmc_bankrom(16, 0x8000, 0);
mmc_bankrom(16, 0xC000, MMC_LASTBANK);
mmc_bankvrom(8, 0x0000, 0);
if (mmc_.cart->flags & ROM_FLAG_FOURSCREEN)
{
ppu_mirror(0, 1, 2, 3);
}
else
{
if (MIRROR_VERT == mmc_.cart->mirror)
pp... | C |
// Number of images at this level:
const uint imageCount = texture.shape == TextureShape::D3 ? std::max<uint>(texture.depth >> lid, 1u) : layers;
totalCount += imageCount;
if(totalCount > presentCount){
firstLevelToGenerate = lid;
break;
}
}
if(firstLevelToGenerate == 0xFFFFFFFF){
Log::Info() << "N... | C++ |
during on_trading_iteration() to test backtest behavior"""
def initialize(self):
self.sleeptime = "1D"
def on_trading_iteration(self):
raise RuntimeError("Intentional error in on_trading_iteration() for testing")
class LiveResilienceTestStrategy(Strategy):
def __init__(self, *args, ... | Python |
g_groups,
const std::vector<std::vector<std::pair<int, int>>>& expected_nd_sbp_in2out_sig_list) {
std::vector<std::map<int, std::pair<int, int>>> actual_nd_sbp_in2out_sig_groups;
CHECK_JUST(ReshapeUserOpUtil::EnumerateNdSplitIn2OutAxisGroups(in_shape, out_shape, rank_mesh,
... | C++ |
s.root.lookup(RiTa.randomItem(this.sentenceStarts));
},
_findNode: function(path) {
if (!path || !is(path, A) || !path.length)
return null;
var nFactor = this._n;
var numNodes = Math.min(path.length, nFactor - 1);
var firstLookupIdx = Math.max(0, path.length - (nFactor - 1));
var node =... | JavaScript |
0.0);
g.rotateBy(30.0);
l.rotateBy(40.0);
}
public static void main(String[] args) {
launch(args);
}
public static class TileFlippingEntityFactory implements EntityFactory {
@Spawns("f,x,g,l")
public Entity newLetter(SpawnData data) {
return entity... | Java |
modules/makerjs.path.html#distort">makerjs.path.distort</a>(path: object, scaleX: number, scaleY: number)
which returns a new object and does not modify the original.
The type of returned object is dependent on the type of path being distorted:
<ul>
<li>A line will return a line <i>IPath</i> object,... | HTML |
: predictProba,
trueClass: trueClass,
rawData: rawData,
rawDataType: rawDataType,
explanationType: explanationType,
explanation: explanation,
showExampleFn: showExampleFn
}), div.node());
}
exports.RenderExplanationFrame = RenderExplanationFrame;
/***/ }),
/* 1 */
/***/ (function(m... | JavaScript |
donnees_byte(a2),d3 ; + n. premiere ligne
add.w f_ascii_byte(a2),d4
add.w f_ascii_byte(a2),d5
lea liste_obj_redraw,a3
move.w d3,(a3)+
move.w #1,(a3)+
move.w d5,(a3)+
move.w #1,(a3)+
move.w d2,(a3)+
move.w #1,(a3)+
move.w d4,(a3)+
move.w #1,(a3)+
move.w #-1,(a3)+
cmp.w d2,d3
bne.s .lignes_differentes
mo... | Assembly |
Level)
const requestedLogIndex = LOG_LEVELS.findIndex(l => l === level)
if (requestedLogIndex > currentLogIndex) {
return
}
const normalized = args.map((arg: any) => {
if (typeof arg !== 'string') {
return JSON.stringify(arg)
}
return arg
})
console.lo... | Typescript |
argument stack slots, since this avoid having to use any PIC
references. We also thus avoid having to allocate a register
window.
VIS instructions are used to facilitate the formation of
easier constants, and the propagation of the sign bit. */
#define TWO_FIFTYTWO 0x43300000 /* 2**52 */
#def... | Assembly |
import numpy as np
def getCor(cov):
d = np.diag(cov)**-0.5
return d[:, None] * cov * d
def seqs2cov(inputs):
inputs = np.array(inputs)
inputcov = inputs @ inputs.T / len(inputs[0])
inputidxs = [0]
for seq in inputs:
inputidxs.append(inputidxs[-1] + len(seq))
inputidxs.pop()
... | Python |
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*-
//
// range.h: Rcpp R/C++ interface class library -- range
//
// Copyright (C) 2012 - 2013 Dirk Eddelbuettel and Romain Francois
//
// This file is part of Rcpp.
//
// Rcpp is free software: you can redistribute it and/or modify it
// under the te... | C |
3_irf_ce_232), 16, 16),1,IRF,ce,46,54, x,x,x, x,x,x)
.word 0xb17ca401 ! 2489: MOVR_I movre %r18, 0x1, %r24
T3_hwint_324:
!$EV trig_pc_d(3,expr(@VA(.MAIN.T3_hwint_324), 16, 16)) -> intp(3, 0, 23)
.word 0xb1aa4820 ! 2490: FMOVNE fmovs %fcc1, %f0, %f24
.word 0xb014a017 ! 2491: OR_I or %r18, 0x0017, %r24
T3_hwint_32... | Assembly |
.rows}">93</i>)</h6>
<ul class="list-unstyled mt-4 pl-3 pr-3">
<li class="border-bottom pb-3 mt-4" th:each="map:${discussPosts}">
<div class="font-size-16 text-info">
<a th:href="@{|/discuss/detail/${map.discussPost.id}|}" th:utext=... | Markdown |
.5f, 9.0f)
horizontalLineToRelative(-0.75f)
arcTo(2.75f, 2.75f, 0.0f, false, false, 2.0f, 11.75f)
verticalLineToRelative(0.75f)
horizontalLineToRelative(3.5f)
lineTo(5.5f, 9.0f)
close()
moveTo(5.5f, 14.0f)
... | Kotlin |
*/
/* Node's name with unit-address: */
/* Node parent (/soc/pin-controller@58020000) identifier: */
/* Node's index in its parent's list of children: */
/* Helpers for dealing with node labels: */
/* Helper macros for child nodes of this node. */
# 15055 "/home/megabug/.arduino15/packages/arduino/hard... | C++ |
குறுக்கு சரிபார்ப்பு போன்ற நுட்பங்களைப் பயன்படுத்தவும்.
5. **ஒருங்கிணைப்பு திட்டமிடல்**
- AI மாதிரி தற்போதுள்ள அமைப்புகள் மற்றும் பணிப்பாய்வுகளுடன் எவ்வாறு ஒருங்கிணைக்கப்படும் என்பதை வடிவமைக்கவும்.
- தேவையான உள்கட்டமைப்பு மேம்படுத்தல்கள் அல்லது மாற்றங்களுக்குத் திட்டமிடுங்கள்.
6. **பயனர் இடைமுக வடிவமைப்பு**
... | Markdown |
ffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory LintPolicyRequest.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
static const $core... | Dart |
s',
},
{
id: 1,
name: 'Kirkland Lindsay',
},
{
id: 2,
name: 'Ora Dillard',
},
],
greeting: 'Hello, Cooke Larsen! You have 2 unread messages.',
favoriteFruit: 'strawberry',
},
{
_id: '5f421aa68381b4472bac82e3',
index: 421,
guid: '2... | Typescript |
2MiBDNS4yNzksMTQuMTAyIDUuODg1LDExLjcyIDUuODg1LDExLjcyIEM2LjI0OCwxMi40MDYgNy4zMDgsMTMuMDA5IDguNDM1LDEzLjAwOSBDMTEuNzksMTMuMDA5IDE0LjA2Niw5Ljk3OSAxNC4wNjYsNS45MjMgQzE0LjA2NiwyLjg1NyAxMS40NDQsMCA3LjQ1OCwwIFoiIGZpbGw9IiNmZmYiPjwvcGF0aD48L2c+PC9zdmc+);
}
.PIN_1701652279791_button_pin.PIN_1701652279791_white {
background... | HTML |
密码
*/
public String getPassword() {
return this.Password;
}
/**
* Set 集群密码
* @param Password 集群密码
*/
public void setPassword(String Password) {
this.Password = Password;
}
/**
* Get 密码状态
* @return PasswordStatus 密码状态
*/
public String getP... | Java |
namespace OwO_Maker
{
partial class Form1
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/// <param... | C# |
),
caption = TextStyle(
fontFamily = SourceSansPro,
fontSize = 14.sp
),
overline = TextStyle(
fontFamily = SourceSansPro,
fontSize = 12.sp,
letterSpacing = 1.5.sp
)
)
val Typography.section: TextStyle
get() = TextStyle(
fontWeight = FontWeight.Medium... | Kotlin |
Matches.Lt => query.Where(field, "<", values[0]),
Matches.Lte => query.Where(field, "<=", values[0]),
Matches.Gt => query.Where(field, ">", values[0]),
Matches.Gte => query.Where(field, ">=", values[0]),
Matches.DateIs => query.WhereDate(field, values[0]),
M... | C# |
, -75,
-69, -65, -72, -74, -71, -63, -71, -71, -71, -60, -71, -70, -70, -61, -71, -70, -70, -59, -74,
-70, -75, -63, -76, -70, -80, -62, -57, -58, -62, -59, -57, -56, -62, -56, -59, -54, -64, -55,
-60, -54, -65, -52, -61, -54, -67, -53, -62, -54, -68, -53, -64, -56, -71, -55, -67, -56, -75,
-77, -77, -8... | Rust |
tr("brokers")
.unwrap_or_else(|| "localhost:9092".to_owned())
.split(',')
.map(|s| s.trim().to_owned())
.collect(),
topic: m.opt_str("topic").unwrap_or_else(String::new),
group: m.opt_str("group").unwrap_or_else(String::new),
... | Rust |
? ?? false,
vibrateNotification: json['vibrateNotification'] as bool? ?? false,
themeMode:
$enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']) ??
ThemeMode.system,
lightThemeId:
json['lightThemeId'] as String? ?? 'a58a0abb-ff8c-476a-8dec-0ad7837e7e96',
darkThemeId:
json['darkTheme... | Dart |
on dotted_ids
func (c *Comment) Level() int64 {
if c.ParentID > 0 {
return int64(strings.Count(c.DottedIDs, "."))
}
return 0
}
// Root returns true if this is a root comment
func (c *Comment) Root() bool {
return c.ParentID == 0
}
// Destroy removes the record from the database
func (c *Comment) Destroy() erro... | Go |
kage:analyzer/dart/analysis/utilities.dart';
import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/dart/ast/visitor.dart';
import 'SimpleFunctionGenerator.dart';
import '../covert/convertExpression.dart';
import '../declaration/ClassDeclarationData.dart';
import '../declaration/FieldDeclarationData.dar... | Dart |
ject.foo = 'bar';
// Callback isn't called
```
*/
<ObjectType extends Record<string, any>>(
object: ObjectType,
onChange: (
this: ObjectType,
path: string,
value: unknown,
previousValue: unknown,
applyData: ApplyData
) => void,
options?: Options & {pathAsArray?: false}
): ObjectType;
// Ov... | Typescript |
b.ErrorDetails.FRAG_LOAD_ERROR:case b.ErrorDetails.FRAG_LOAD_TIMEOUT:case b.ErrorDetails.KEY_LOAD_ERROR:case b.ErrorDetails.KEY_LOAD_TIMEOUT:if(!e.fatal){var a=this.fragLoadError;a?a++:a=1;var n=this.config;if(a<=n.fragLoadingMaxRetry||i||t.autoLevel&&t.level){this.fragLoadError=a,t.loadCounter=0;var s=Math.min(Math.p... | JavaScript |
�框和背景色調整
// 淺色模式下顏色避免太大調整
:not(foobar) {
.n .n-btn.active,
.be-tab-item.is-active,
#navigator a:hover,
#page-video #submit-video-type-filter a.active,
.n .n-data.router-link-active .n-data-k,
.n .n-data.router-link-active .n-data-v,
.wrapper .edit-video-modal .target-favlist .target-favi... | CSS |
g-cpp.github.io/cppwp/n4950/range.filter)
# operator++
* ranges[meta header]
* std::ranges[meta namespace]
* filter_view::iterator[meta class]
* function[meta id-type]
* cpp20[meta cpp]
```cpp
constexpr iterator& operator++(); // (1)
constexpr void operator++(int); ... | Markdown |
# sum(p5, gp(p4_out, p3_out)) -> p5_out
stage['gp_43_5'] = GPCell(with_conv=False)
stage['sum_55_5'] = SumCell(out_channels, norm_cfg=norm_cfg)
# sum(p7, gp(p5_out, p4_2)) -> p7_out
stage['gp_54_7'] = GPCell(with_conv=False)
stage['sum_77_7'] = SumC... | Python |
X509V3_CTX *ctx,
STACK_OF(CONF_VALUE) *values)
{
POLICY_CONSTRAINTS *pcons = NULL;
CONF_VALUE *val;
size_t i;
if (!(pcons = POLICY_CONSTRAINTS_new())) {
OPENSSL_PUT_ERROR(X509V3, ERR_R_MALLOC_FAILURE);
return NULL;
}
for (i = 0; i < sk_CONF_VAL... | C |
ने योग्य नहीं है!",
"autoDownFavSong": "पसंदीदा गाने खुद ब खुद डाउनलोड करें",
"title": "शीर्षक",
"duration": "अवधि",
"loudnessDb": "प्रबलता डीबी",
"playerUi": "प्लेयर यूआई",
"queuerearrangingDeniedMsg": "शफ़ल मोड सक्षम होने पर कतार को पुनः व्यवस्थित नहीं किया जा सकता",
"loudnessNormalization... | Dart |
('img');
const liNumber = document.createElement('li');
titleProduct.textContent = product.name;
imgProduct.src = product.image;
descriptionProduct.textContent = product.description;
sellerProduct.textContent = product.seller;
liPrice.textContent = product.price;
liStarImg.src = '/star-svgr... | JavaScript |
B1, f0
LFPDUX A1, AO, INC2
LFPDUX B1, BO, INC2
fpmadd f1, A2, B2, f1
LFPDUX A2, AO, INC2
LFPDUX B2, BO, INC2
fpmadd f2, A3, B3, f2
LFPDUX A3, AO, INC2
LFPDUX B3, BO, INC2
fpmadd f3, A4, B4, f3
LFPDUX A4, AO, INC2
LFPDUX B4, BO, INC2
bdnz+ .L122
.align 4
.L123:
fpmadd f0, A1, B1, f0
f... | Assembly |
con = {},
ammo_info = {},
equip_info = {},
weapon_id = {
60601
},
skill_id = {},
part_main = {},
part_sub = {},
equip_parameters = {},
label = {}
}
} | Lua |
_E, _G);
objectProperties(_p);
_kb.addSubClass(and(_A, some(_p, and(_B, _C))), _D);
_kb.addSubClass(_E, _A);
_kb.addSubClass(_E, some(_p, _G));
_kb.addSubClass(_G, _B);
_kb.addSubClass(_G, _C);
final Taxonomy<ATermAppl> hierarchy = getHierarchy();
assertEquals(singletonSets(_A, _D), hierarchy.getSup... | Java |
0) {
lastOfs = ofs;
ofs = (ofs << 1) + 1;
if (ofs <= 0) // int overflow
ofs = maxOfs;
}
if (ofs > maxOfs)
ofs = maxOfs;
// Make offsets relative to b
lastOfs += hint;
ofs += hint;
}
if (DEBUG) assert -1 <= lastOfs && lastOfs < ofs && ofs <= len;
/*
* Now a[b... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.