content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
c0r0, c1r0, c2r0,
c0r1, c1r1, c2r1,
c0r2, c1r2, c2r2
)
/**
* Multiplies the 4x4 matrix with a vector 4
*/
operator fun times(v: Vector4) = Vector4(
fmaDot(v.x, c0r0, v.y, c1r0, v.z, c2r0, v.w, c3r0),
fmaDot(v.x, c0r1, v.y, c1r1, v.z, c2r1, v... | Kotlin |
c5ALkEYckL5A5noWSBhfm2AecMAjbcRWV0pUTh0HE64TNf0mczcnnQyu/MilaFJCae1nw2fbz1DnVOxyGTlKeZft/Ff8x1BRssfACjTwQAAAABJRU5ErkJggg==) left center no-repeat;
padding-left: 22px
}
#content p a[href*="&table="].jush-custom {
font-weight: bold
}
#content p.links a[href*="&table="] {
background: url(data:image/png;base64,iVBORw... | CSS |
self, new_center: (i32, i32)) {
self.center = new_center;
}
}
```
Show moreShow more icon
添加方法似乎很直接,但这些新的 `self` 参数是什么?此参数通过点语法传递给该方法(如清单 21 中的 `main` 函数所示),而且它的值是调用该方法的对象。
Rust 中的方法有 3 个唯一变量: `self` 、 `&self` 、 `&mut self` 。回想一下关于所有权和借用的所有知识,这些变量分别将对象所有权转移给该方法,不可变地借用一个对象,再可变地借用一个对象。
现在我已拥有一个包含方法和构造函数... | Markdown |
A7,// Cmpxchg486_rm32_r32
0x0002_00A8,// Pushw_GS
0x0002_00A8,// Pushd_GS
0x0002_00A8,// Pushq_GS
0x0002_00A9,// Popw_GS
0x0002_00A9,// Popd_GS
0x0002_00A9,// Popq_GS
0x0002_00AA,// Rsm
0x0002_00AB,// Bts_rm16_r16
0x0002_00AB,// Bts_rm32_r32
0x0002_00AB,// Bts_rm64_r64
0x0002_00AC,// Shrd_rm16_r16_imm8
0x00... | Rust |
t.description) {
is InvoiceData.ChargeableItem.Description.HMNR -> it.description.hmnr
is InvoiceData.ChargeableItem.Description.PZN -> it.description.pzn
is InvoiceData.ChargeableItem.Description.TA1 -> it.description.ta1
}
cr... | Kotlin |
NumberRestart restartField;
private bool restartFieldSpecified;
public static CT_LineNumber Parse(XmlNode node, XmlNamespaceManager namespaceManager)
{
if (node == null)
return null;
CT_LineNumber ctObj = new CT_LineNumber();
ctObj.countBy = X... | C# |
== AXBX )
TwoSidedTrsm( uplo, NON_UNIT, A, B );
else
TwoSidedTrmm( uplo, NON_UNIT, A, B );
return HermitianEig( uplo, A, w, ctrl );
}
// Compute eigenpairs
// ==================
template<typename Field>
HermitianEigInfo
HermitianGenDefEig
( Pencil pencil,
UpperOrLower uplo,
Matrix<Field>&... | C++ |
command.nativePtr = nativePtrValue != 0
? Pointer.fromAddress(rawMemory[i + nativePtrMemOffset])
: nullptr;
command.args = List.empty(growable: true);
int args01And02Length = rawMemory[i + args01And02LengthMemOffset];
int args01Length;
int args02Length;
if (args01And02Length ==... | Dart |
</p>
`;
moveNote = `
<p><strong>Booking is essential and can only be made within working hours (Mon to Fri from 8am to 6pm, Sat from 9am to 1pm, excluding public holidays).</strong></p>
<p>All the large items must be moved in/out via <strong>CAR PARK ENTRY ONLY</strong> not through <strong>ground f... | Typescript |
ayout a single view in one [Lane]
*/
private fun layoutView(recycler: RecyclerView.Recycler?, lanes: MutableList<Lane>): Int {
val view = recycler?.getViewForPosition(adapterIndex)
view ?: return LAYOUT_FINISH
measureChildWithMargins(view, 0, 0)
val verticalMargin = (view.layout... | Kotlin |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT-0
// ----------------------------------------------------------------------------
// Convert to Montgomery form z := (2^384 * x) mod p_384
// Input x[6]; output z[6]
//
// extern void bignum_to... | Assembly |
nil, {"Aurochs Grimmbann auf der Todesanhöhe möchte, dass Ihr 5 Geheimdokumente des Ansturms beschafft."}},
[12839] = {"Der große Plan (des Admirals)", nil, {"Bringt dem Lordkommandanten Arete auf der Todesanhöhe die Nachricht vom Großadmiral."}},
[12840] = {"Streng vertraulich", nil, {"Lordkommandant Arete auf der Tod... | Lua |
acter count(dichotomy algorithm)
// s: String?
// candidate text.
// font: String?
// text's font style.
// wcLimit: Number?
// text limited character count.
// truncated: Boolean?
// whether the input text(s) has already been truncated.
// returns: Object
// {
// text: processed... | JavaScript |
Phaser.Input.moveCallbacks array
*
* @method Phaser.Input#deleteMoveCallback
* @param {number} index - The index of the callback to remove.
*/
deleteMoveCallback(int index) {
if (this.moveCallbacks[index]) {
this.moveCallbacks.removeAt(index);
}
}
/**
* Add a new Pointer object to ... | Dart |
y not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES... | Typescript |
GetPool(ctx)
pool.Treasury = pool.Treasury.Add(sdk.NewDecCoinsFromCoins(amt...)...)
k.SetPool(ctx, pool)
return k.bankKeeper.SendCoinsFromAccountToModule(ctx, from, foundation.TreasuryName, amt)
}
func (k Keeper) WithdrawFromTreasury(ctx sdk.Context, to sdk.AccAddress, amt sdk.Coins) error {
pool := k.GetPool(ctx... | Go |
recipeId)
fun getAllSteps() = db.stepDao().getAll()
}
enum class StepType(
val color: Color,
val colorNight: Color,
@StringRes val stringRes: Int,
@DrawableRes val iconRes: Int,
) {
ADD_COFFEE(
color = brown500,
colorNight = brown300,
stringRes = R.string.step_type_add_c... | Kotlin |
e interceptor; that's why it does not have a frame.
adrp x0, _ZN14__interception10real_vforkE
ldr x0, [x0, :lo12:_ZN14__interception10real_vforkE]
blr x0
stp x0, xzr, [sp, #-16]!
cmp x0, #0
b.eq .L_exit
// x0 != 0 => parent process. Clear st... | Assembly |
elseif rc.model == 'Lindemann-Hinshelwood' then
str = "{model='Lindemann-Hinshelwood',\n"
str = str .. string.format(" kInf={A=%16.12e, n=%f, C=%16.12e, rctIndex=-1},\n", rc.kInf.A, rc.kInf.n, rc.kInf.C)
str = str .. string.format(" k0={A=%16.12e, n=%f, C=%16.12e, rctIndex=-1}\n", rc.k0.A, rc.k0.n... | Lua |
circle-o: "\f192";
@fa-wheelchair: "\f193";
@fa-vimeo-square: "\f194";
@fa-try: "\f195";
@fa-plus-square-o: "\f196";
@fa-space-shuttle: "\f197";
@fa-slack: "\f198";
@fa-envelope-square: "\f199";
@fa-wordpress: "\f19a";
@fa-openid: "\f19b";
@fa-university: "\f19c";
@fa-graduation-cap: "\f19d";
@fa-yahoo: "\f19e";
@fa-go... | CSS |
"$(( ~!-x ))",
BitwiseNot(Box::new(LogicalNot(Box::new(UnaryMinus(x()))))),
),
(
"$(( !~++x ))",
LogicalNot(Box::new(BitwiseNot(Box::new(PreIncr(String::from("x")))))),
),
(
"$(( ~!++x ))",
BitwiseNot(Box::new(LogicalNot(Box... | Rust |
U+6BB8-6BB9, U+6BBB, U+6BBD-6BBE, U+6BC3-6BC4, U+6BC7-6BCA, U+6BCC, U+6BCE,
U+6BD0-6BD1, U+6BD8, U+6BDA, U+6BDC-6BE0, U+6BE2-6BE9, U+6BEC-6BEE,
U+6BF0-6BF2, U+6BF4, U+6BF6-6BF8, U+6BFA-6BFC, U+6BFE, U+6C00-6C04,
U+6C09-6C0B, U+6C0E, U+6C12, U+6C17, U+6C1C-6C1E, U+6C20, U+6C25, U+6C2D,
U+6C31, U+6C36-6... | CSS |
FALSE, FALSE, 3);
gtk_box_pack_start(GTK_BOX(m_widget), m_widgetCheckbox, FALSE, FALSE, 3);
gtk_widget_show( m_widgetLabel );
gtk_widget_show( m_widgetCheckbox );
}
else
{
m_widgetCheckbox = gtk_check_button_new_with_label("");
m_widgetLabel = gtk_bin_get_child(GTK_... | C++ |
r (int rune in value.runes) {
if (rune == char_codes.$BACKSLASH) {
++otherEscapes;
} else if (rune == char_codes.$SQ) {
++singleQuotes;
} else if (rune == char_codes.$DQ) {
++doubleQuotes;
} else if (rune == char_codes.$LF ||
rune == char_codes.$CR ||
... | Dart |
TYPE_PROPERTY));
}
@Override
public OutputStream getOutputStream(final boolean notifyIndexerAfterClosing, final boolean append) {
if (isTemplate()) {
final Logger logger = LoggerFactory.getLogger(File.class);
logger.error("File is in template mode, no write access allowed: {}", getPath());
return null... | Java |
<summary>
/// Initializes a new instance of the <see cref="ListJoinedPrivateArchivedThreadsAsync"/> class.
/// </summary>
/// <param name="fixture">The test fixture.</param>
public ListJoinedPrivateArchivedThreadsAsync(RestAPITestFixture fixture)
: base(fixture)
{
... | C# |
44088898365033446585323416'),
r: BigInt.parse('86600458310408845869391821482706114144477392767993083402724902623300408071608'),
),
],
),
);
group('Tests of [TxProcessCubit] initialization', () {
test('Should return [TxProcessLoadedState] if [formEnabledBool] param is equal [true] (d... | Dart |
d
.word @song1ref519
.byte $41, $20
.word @song1ref519
.byte $78, $28, $9d, $79, $1c, $9d, $25, $9d, $1c, $9d, $15, $ff, $bd, $00, $bd, $ff, $ff, $ff, $ff, $42
.word @song1ch5loop
@song1ch6:
@song1ch6loop:
@song1ref615:
.byte $7b, $84, $19, $8d, $88, $19, $8d, $84, $1c, $8d, $88, $1c, $8d, $84, $1b, $8d, $88, $1b... | Assembly |
--[[
CustomPositionContainer contains its content (1 widget) at a custom position within its own
dimensions
--]]
local Blitbuffer = require("ffi/blitbuffer")
local Screen = require("device").screen
local WidgetContainer = require("ui/widget/container/widgetcontainer")
local CustomPositionContainer = WidgetContainer:e... | Lua |
): Promise<ReviewDocument> {
return review.save()
}
function findById(reviewId: string): Promise<ReviewDocument> {
return Review.findById(reviewId)
.exec() // .exec() will return a true Promise
.then(review => {
if (!review) {
throw new Error(`Review ${reviewId} not found`)
}
retu... | Typescript |
sKeys.BitsPerSample);
domain0 = OperandHelper.GetRealValue(domainArray.Values[0].Operand);
domain1 = OperandHelper.GetRealValue(domainArray.Values[1].Operand);
var decodes = OperandHelper.GetRealValues(decodeArray);
var size = (IntegerOperand)sizeArray.Values[0].Operand... | C# |
.2 38.3 52.6 13.3 54.7-15.4 3.7-61.6-166.3-.5v-.1l-.2.1-3.6-46.3L193.1 162l6.5-2.7H76.7L70.9 112h242.2z"],"square-reddit":[448,512,["reddit-square"],"f1a2","M283.2 345.5c2.7 2.7 2.7 6.8 0 9.2-24.5 24.5-93.8 24.6-118.4 0-2.7-2.4-2.7-6.5 0-9.2 2.4-2.4 6.5-2.4 8.9 0 18.7 19.2 81 19.6 100.5 0 2.4-2.3 6.6-2.3 9 0zm-91.3-53.... | JavaScript |
0\u6dae",
"shuai": "\u6454\u8870\u7529\u5e05\u87c0",
"shuan": "\u6813\u62f4\u95e9",
"shuang": "\u971c\u53cc\u723d\u5b40",
"shui": "\u8c01\u6c34\u7761\u7a0e",
"shun": "\u542e\u77ac\u987a\u821c\u6042",
"shuo": "\u8bf4\u7855\u6714\u70c1\u84b4\u6420\u55cd\u6fef\u5981\u69ca\u9... | JavaScript |
("rename table %s to %s", primaryTableName, newName);
JdbcUtil.executeSuccess(tddlConnection, sql);
sql = "CREATE SCHEDULE "
+ "FOR LOCAL_PARTITION "
+ "ON `" + tddlDatabase1 + "`.`" + newName + "` "
+ "CRON '0 0 12 1/5 * ?' "
+ "TIMEZONE '+00:00'";
... | Java |
le Locator metadata.
if (database.isLocatorAvailable()) {
cleanLocatorMetadata();
}
// Get existing object types in the schema.
Set<String> objectTypeNames = getObjectTypeNames(jdbcTemplate, database, this);
// Define the list of types to process, order is important... | Java |
private static setValueT6a = function (gl: WebGLRenderingContext, v: CubeTexture[], renderer: WebGLRenderer)
{
var n = v.length,
units = WebGLUniforms.allocTexUnits(renderer, n);
gl.uniform1iv(this.addr, units);
for (var i = 0; i !== n; ++i)
... | Typescript |
ent.getElementsByClassName("ply-i")[0].innerHTML = '<img src="./images/fiveL.png" alt="FIVE">';
break;
case 6:
document.getElementsByClassName("ply-i")[0].innerHTML = '<img src="./images/sixL.png" alt="SIX">';
break;
}
if (randomChoice === plyChoice) {
docum... | JavaScript |
-> Self {
DT1_CLK_SEL_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for DT1_CLK_SEL_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `DT1_CLK_SEL` writer - "]
pub struct DT1_CLK_SEL_W<'a> {... | Rust |
"data:application/json;base64,ewogICAiY2FwdHVyZV9iYXNlcyI6WwogICAgICAKICAgXSwKICAgIm92ZXJsYXlzIjpbCiAgICAgIAogICBdCn0="
val OCA_DATA_URI_CONTENT = """
{
"capture_bases":[
],
"overlays":[
]
}
""".trimIndent()
const val ... | Kotlin |
import pika
import mysql.connector
import json
credentials = pika.PlainCredentials('guest', 'guest')
connection = pika.BlockingConnection(pika.ConnectionParameters('192.168.180.2', 5672, '/', credentials))
channel = connection.channel()
channel.exchange_declare(exchange='deletion', exchange_type='direct')
channel.que... | Python |
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "variant.h"
//GA4GHCallInfoToVariantIdx functions
bool GA4GHCallInfoToVariantIdx::find_or_insert(uint64_t begin, uint64_t end, const std::string& REF,
... | C++ |
sps.rot = new Vector3(ff9.PsxRot(1024), curFrame * 200, 0f);
sps.abr = SPSConst.ABR_SUB;
}
sps.GenerateSPS();
ff9.effect16FrameCounter++;
break;
case SPSConst.W... | C# |
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint
from dotenv import load_dotenv
import streamlit as st
from langchain_core.prompts import PromptTemplate, load_prompt
load_dotenv()
llm= HuggingFaceEndpoint(repo_id="deepseek-ai/DeepSeek-V3.1", task="text-generation", max_new_tokens=500)
model= Ch... | Python |
ct_col_put_armv5te
add a1, a1, #4
bl idct_col_put_armv5te
add a1, a1, #4
bl idct_col_put_armv5te
add sp, sp, #8
ldmfd sp!, {v1, v2, v3, v4, v5, v6, v7, fp, pc}
endfunc | Assembly |
rchantBill
(*ManualAdjustMerchantBillAmountRequest)(nil), // 12: ManualAdjustMerchantBillAmountRequest
(*GenerateMerchantBillRequest)(nil), // 13: GenerateMerchantBillRequest
(*ReviewMerchantBillRequest)(nil), // 14: ReviewMerchantBillRequest
(*MerchantConfirmBillRequest)(nil), // 1... | Go |
dquo;虽然我不知道他是哪里的『阁下』,但既然人在这里,就要遵守这里的规矩。如果你讨厌与区区奴隶扯上关系的话,那也不用特地跑到这个奴隶的巢穴里来。请回吧。”<br />
他拿起从士兵那里抢来的鞭子,朝地面狠狠一抽。<br />
“你,你这个不知好歹的!”<br />
士兵爬起来刚想拔出腰间的刀,<br />
“等一下。欧鲁巴,快给我住手!”<br />
塔尔卡斯从他的背后,拖动着那丝毫不比那个长袍男人逊色的肥壮身躯全速飞奔过来。<br />
“你,你这个大笨蛋。这位大人可不是你配与之交谈的人物。你赶快回去帮忙准备!——哦哦,费德姆大人,... | Dart |
t description = "";
let name = "";
let resName = "";
let resNameU = "";
let group = "";
let groupU = "";
let func = "";
endpoint = endpointData.split("|")[0];
method = endpointData.split("|")[1].toLowerCase();
resName = Util.snakeToCamel(resource);
resNameU = Util.iniToUpper(res... | Typescript |
;
import org.adamalang.runtime.natives.*;
import org.junit.Assert;
import org.junit.Test;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
public class LibDateTests {
@Test
public void make() {
NtDate a = LibDate.make(2023, 12, 17).get();
Assert.assertEquals(2023, a.... | Java |
下面这个例子中会出现什么情况。
```bash
$ cat data4.txt
This is a test of the test script.
This is the second test of the test script.
$
$ sed 's/test/trial/' data4.txt
This is a trial of the test script.
This is the second trial of the test script.
$
```
替换命令在替换多行中的文本时能正常工作,但默认情况下它只替换每行中出现的第一处。要让替换命令能够替换一行中不同地方出现的文本必须使用`替换标记`(subst... | Markdown |
931141285733900104e3 * t2387 * t12812 * t324 * t1812 + 0.31465570642866950052e3 * t2387 * t23443 * t150 - 0.68595513425555554068e2 * t2370 * t1827 * t12832 - 0.30486894855802468476e2 * t837 * t18148 * t3310 - 0.45730342283703702713e2 * t837 * t4789 * t1812 - 0.22865171141851851357e2 * t837 * t23456 * t839 * t150 - 0.15... | C |
This gets disposed of when the GaianTable() instance is garbage collected...
logicalTableRSMD = baseLogicalTableRSMD; //(GaianResultSetMetaData) baseLogicalTableRSMD.clone(); //DataSourcesManager.getLogicalTableRSMDClone( logicalTable );
// if ( !tableDefinition.equals( configuredTableDefinition ) )
// logic... | Java |
.4 449.8 368.2L449.8 173.8zM185.5 216.5C191.8 222.8 195.2 230.6 195.6 239.7V273C195.2 282.2 191.9 289.9 185.8 296.2C179.6 302.5 171.8 305.7 162.2 305.7C152.6 305.7 144.7 302.5 138.6 296.2C132.5 289.9 129.2 282.2 128.8 273V239.7C129.2 230.6 132.6 222.8 138.9 216.5C145.2 210.2 152.1 206.9 162.2 206.5C171.4 206.9 179.2 21... | JavaScript |
Garrosh in Orgrimmar.";
};
[7506] = {
["name"] = "Der Smaragdgrüne Traum";
["objective"] = "Bringt das Buch seinen rechtmäßigen Besitzern zurück.";
};
[1881] = {
["name"] = "Gespräch mit Anastasia";
["objective"] = "Sprecht mit Anastasia Hirschbrunn.";
};
[1885] = {
["name"] = "Menn... | Lua |
//=- AArch64/AArch64FixupKinds.h - AArch64 Specific Fixup Entries -*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C |
Value.getNode() != Node && "Load must be completely replaced");
DAG.ReplaceAllUsesOfValueWith(SDValue(Node, 0), Value);
DAG.ReplaceAllUsesOfValueWith(SDValue(Node, 1), Chain);
if (UpdatedNodes) {
UpdatedNodes->insert(Value.getNode());
UpdatedNodes->insert(Chain.getNode());
}
ReplacedNode... | C++ |
144 122 169;--rp-dawn-iris-hsl: 268 21% 57%;--rp-dawn-highlight-low: #f4ede8;--rp-dawn-highlight-low-rgb: 244 237 232;--rp-dawn-highlight-low-hsl: 25 35% 93%;--rp-dawn-highlight-med: #dfdad9;--rp-dawn-highlight-med-rgb: 223 218 217;--rp-dawn-highlight-med-hsl: 10 9% 86%;--rp-dawn-highlight-high: #cecacd;--rp-dawn-high... | CSS |
MASK = CAP_INTELPERC_DEPTH_GENERATOR + CAP_INTELPERC_IMAGE_GENERATOR
};
enum { CAP_INTELPERC_DEPTH_MAP = 0, //!< Each pixel is a 16-bit integer. The value indicates the distance from an object to the camera's XY plane or the Cartesian depth.
CAP_INTELPERC_UVDEPTH_MAP = 1, //!< Each ... | C++ |
include "signal.h"
#include <unistd.h>
#include <poll.h>
#include <fcntl.h>
#include <ranges>
#include <codecvt>
#include <locale>
class LinuxSignalHandler {
public:
LinuxSignalHandler() {
std::call_once(LinuxSignalHandler::flag, LinuxSignalHandler::Init);
}
void RegisterSIGWINCH(std::function<void(int)> func) {
... | C++ |
IS,
// 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.
// Known Issues:
//
// * Patterns are not implemented.
// * Radial gradient are not implemented. The VML version of these look very
/... | JavaScript |
Error)
b common_exceptionThrown
/*
* We encountered a null object when we weren't expecting one. We
* export the PC, throw a NullPointerException, and goto the exception
* processing code.
*/
common_errNullObject:
EXPORT_PC()
li a0, 0
JAL(dvmThrowNullPointerException)
b common... | Assembly |
"recoding categoricals {:.0?}",
Instant::now().duration_since(start)
);
EncodingDictionary {
ncolors,
colors,
recode,
field_dims: color_counters,
}
}
/// returns field dims for sparse values only
pub(crate) fn field_dims(&... | Rust |
2: Multi-modal Pre-training for Visually-Rich Document Understanding](https://arxiv.org/abs/2012.14740) da Yang Xu, Yiheng Xu, Tengchao Lv, Lei Cui, Furu Wei, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, Wanxiang Che, Min Zhang, Lidong Zhou.
1. **[LayoutLMv3](model_doc/layoutlmv3)** (da Microsoft Research Asia) ... | Markdown |
RW\": false," +
" \"Source\": \"/some/prefix/binary\"," +
" \"Type\": \"bind\"" +
" }," +
" {" +
" \"Destination\": \"/dev/pts\"," +
" \"Driver\": \"\"," +
" \"Mode\": \"\"," +
" \"Name\": \"\"," +
" \"Options\": []," +
"... | Go |
}
BoundJit & operator=(BoundJit bj) noexcept
{ swap(*this, bj); return *this; }
bool update_lbl(void)
{ return lbl.empty() or lbl.front() != CHR_JILL; }
void reset_lbl(void) { lbl = STR_JILL; }
... | C++ |
Axiom()
{
createReasoner(declaration(_p), declaration(_C), domain(_p, _C), propertyAssertion(_a, _p, _b));
assertTrue(_reasoner.isConsistent());
assertTrue(_reasoner.isEntailed(classAssertion(_a, _C)));
final boolean removeApplied = processRemove(domain(_p, _C));
assertTrue("Unable to remove object propert... | Java |
);h5b=new l6b('BREAKING_POINT_INSERTER',15);T5b=new l6b('LONG_EDGE_SPLITTER',16);a6b=new l6b('PORT_SIDE_PROCESSOR',17);I5b=new l6b('INVERTED_PORT_PROCESSOR',18);_5b=new l6b('PORT_LIST_SORTER',19);i6b=new l6b('SORT_BY_INPUT_ORDER_OF_MODEL',20);W5b=new l6b('NORTH_SOUTH_PORT_PREPROCESSOR',21);i5b=new l6b('BREAKING_POINT_P... | JavaScript |
1442; Stonetalon Mountains|N|To Ol' Irongoat.|O|
T Just Ask Alice|QID|25673|M|58.52,55.28|Z|1442; Stonetalon Mountains|N|To Alice.|
A Mr. P's Wild Ride|QID|25728|PRE|25673|M|58.38,55.17|Z|1442; Stonetalon Mountains|N|From Alice.|
C Thinning the Horde |QID|25671|Z|1442; Stonetalon Mountains|N|Kill any 20 Krom'gar and Go... | Lua |
ge250Sbringct250Sbtitle => 'Kā RingCT slēpj Monero pārskaitījumu summas';
@override
String get knowledge250Sbrings250Sb0250Sbtext => '<p>Monero ir plaši pazīstams visā kriptovalūtā kā privātuma monētu karalis. Lai gan visi zina, ka Monero piedāvā labu privātumu, ne tik daudzi saprot, kā privātums darbojas.</p>\n\n... | Dart |
case IOTHUB_CLIENT_CONNECTION_OK:
// No need to retry.
return;
default:
Log_Debug("unhandled g_connection_status_reason case: %d", g_connection_status_reason);
break;
}
// Calculate the next retry time, then continue.
time_t nextRet... | C |
, keybase1.ClientType_CLI)
var wg sync.WaitGroup
// start provisionee
wg.Add(1)
go func() {
defer wg.Done()
m := NewMetaContextForTest(tcY).WithUIs(uis)
if err := RunEngine2(m, eng); err != nil {
t.Errorf("login error: %s", err)
return
}
}()
// start provisioner
provisioner := NewKex2Provisioner... | Go |
ype.SAMPLE_TYPE_KEY_COORD_SYSTEM,
IMyNativeRendererType.SAMPLE_TYPE_KEY_TEXTURE_MAP,
IMyNativeRendererType.SAMPLE_TYPE_KEY_PBO,
IMyNativeRendererType.SAMPLE_TYPE_KEY_SHADER_TOY_TIME_TUNNEL,
IMyNativeRendererType.SAMPLE_TYPE_KEY_FBO -> {
// 从res目录加载图片
... | Kotlin |
double cutoff, const int mantissa_bits, const BasisFunctions bss,
Xoshiro256ppGenerator *xrs, const double min_displacement = 2.0) {
const std::vector<LogSplineForm> components = { LogSplineForm::ELEC_PME_DIRECT,
LogSplineForm::DELEC_PME_DIRE... | C++ |
undo_tbs_sql = tools.mysql_query(
"select undo_tbs_name,max(used_mb),max(pct_used),min(pct_used),avg(pct_used) from oracle_undo_tbs_his where tags = '%s' and DATE_FORMAT(chk_time,'%%Y-%%m-%%d %%H:%%i:%%S')> '%s' and DATE_FORMAT(chk_time,'%%Y-%%m-%%d %%H:%%i:%%S') < '%s' group by undo_tbs_name" % (
... | Python |
sługiwane platformy
* Amazon Fire OS
* Android
* iOS
* Windows 8 i 8.1
### Szybki przykład
var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');
ref.addEventListener('loadstop', function() {
ref.executeScript({file: "myscript.js"});
});
## insertCSS
> ... | Markdown |
.2H80zm256 0v-15.1l-57.4-38.2H176z' fill='%23D80027'/%3e%3cpath fill='%2329DBFF' d='M449 139.7c-.1 44.4-7.2 92.1-65 114.9-57.8-22.8-64.9-70.5-65-114.9h130z'/%3e%3cpath fill='%23ffda44' d='M449 139.7c0-16.7-.9-32.9-.5-47.1C426.9 83 398.4 81 383.9 81s-42.9 2-64.6 11.6c.4 14.2-.5 30.4-.5 47.1H449z'/%3e%3cpath fill='%23BF5... | CSS |
pub dim_type: DimensionTypeRegistry,
#[serde(rename = "minecraft:worldgen/biome")]
pub wg_biom: BiomeRegistry,
}
#[derive(serde::Deserialize, serde::Serialize)]
pub struct DimensionTypeRegistry {
#[serde(rename = "type")]
pub r#type: String,
pub value: Vec<DimensionTypeRegistryEntry>,
}
#[derive(s... | Rust |
KSPACE_GPT_CUSTOM_ACTIONS,value:s.beta_settings.workspace_gpt_custom_actions,workspaceId:t,tooltip:C.customActionsTooltip,disabled:n})]})}),!n&&a,!n&&i.isOwnerOfAccount()&&l]})}function G(e){let{currentWorkspaceId:t}=e,{data:s,isLoading:i}=(0,o.C)(t),r=(0,w.Z)();return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(O(),{chi... | JavaScript |
4_to_ff(1 << SHA256_GADGET_CHUNK_SIZE),
u64_to_ff(1 << (2 * SHA256_GADGET_CHUNK_SIZE)), u64_to_ff(1 << (3 * SHA256_GADGET_CHUNK_SIZE)),
];
if let OverflowTracker::SignificantOverflow(_n) = input.overflow_tracker {
let of = self.allocate_converted_num(cs, &var, self.max_of_width... | Rust |
#include "buildcfg.h"
#include "KexShlEx.h"
#include <shlobj.h>
//
// FileName must be MAX_PATH characters in size.
//
HRESULT GetTargetFromLnkfile(
IN OUT PWSTR FileName)
{
HRESULT Result;
WCHAR LnkTarget[MAX_PATH];
IShellLink *ShellLink;
IPersistFile *PersistFile;
ShellLink = NULL;
PersistFile = NULL;
ASSE... | C |
5, r0
ldr r0, [r0, r6]
add r1, r7, #0
bl Sprite_SetDrawFlag
add r0, r4, #1
lsl r0, r0, #0x10
lsr r4, r0, #0x10
cmp r4, #0x42
bls _0208C2AA
ldr r0, _0208C310 ; =0x000007BC
ldrsb r0, [r5, r0]
cmp r0, #2
bne _0208C30A
ldr r7, _0208C314 ; =0x000004DC
ldr r6, _0208C318 ; =0x000007C6
mov r4, #0
_0208C2CE:
ldr... | Assembly |
# This guide demonstrates how to create Python-controlled animations using Colight plots, the `.reset` method, and interactive sliders. We'll cover:
# 1. Setting up a basic animated plot
# 2. Creating interactive animations with ipywidgets
#
# We must use the `"widget"` [rendering modes](essential-reading/#rendering-mo... | Python |
15,
/// `char16_t`
Char16 = 6,
/// `char32_t`
Char32 = 7,
/// `short`
Short = 16,
/// `unsigned short`
UShort = 8,
/// `int`
Int = 17,
/// `unsigned int`
UInt = 9,
/// `long`
Long = 18,
/// `unsigned long`
ULong = 10,
/// `long long`
LongLong = 19,... | Rust |
: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia:
}
[data-type='pkmer-downloader'] ::backdrop {
--... | CSS |
\
template<typename T> struct has_##type { \
private: \
template<typename U, typename = typename U::type> \
static int detect(U &&); ... | C++ |
for(alphaSlider:GetValue() * 100, 0)
_G[self:GetName() .. "Text"]:SetText(v .. "%")
alphaEdit:SetText(v)
if fe.updating then
return
end
fe:WriteAlpha()
end
alphaSlider:SetScript("OnValueChanged", alphaSliderFunc)
_G[alphaSlider:GetName() .. "Low"]:SetText("0%")
_G[alphaSlider:GetName() .. "High"]:SetT... | Lua |
source_x: isize, source_y: isize) -> usize {
// Starting from a negative angle means the first asteroid we find will be one with angle 0.0.
let mut last_angle = -1.0;
let mut asteroids_destroyed = 0;
loop {
let (asteroid, angle) = find_next_asteroid(&map, last_angle);
destroy_asteroid(m... | Rust |
>(
selector: (state: typeof atoms) => RecoilState<T>,
reducer: (state: T, action: { type: string; payload?: T }) => T
): [T, (action: { type: string; payload?: T }) => void] => {
const [value, setValue] = useSelector(selector)
const dispatch = (action: { type: string; payload?: T }) => {
setValue(reducer(value, a... | Typescript |
String("value"): cedartypes.String(val),
}))
}
return cedartypes.NewSet(set...), nil
}
// End gross hack for key/value maps
switch t := obj.(type) {
case map[string]interface{}:
rec := cedartypes.RecordMap{}
for kk, vv := range obj.(map[string]interface{}) {
val, err := walkObject(i-1, group, version... | Go |
roach
# Function to return the product of
# abs diff of all pairs (x, y)
def getProduct(a, n):
# To store product
p = 1
# Iterate all possible pairs
for i in range (n):
for j in range (i + 1, n):
# Find the product
p *= abs(a[i] - a[j])
# Return product
retur... | Markdown |
d_duration_ms_bucket".to_owned(),
serde_json::to_value(commands_duration_ms_bucket)
.to_indy(IndyErrorKind::IOError, "Unable to convert json")?,
);
Ok(())
}
pub(crate) fn get_metric_json(value: usize, tags: HashMap<String, String>) -> IndyResult<Value> {
let... | Rust |
alo:IsValid() then
if beefalo:HasTag("hitched") then
beefalo.components.hitchable:Unhitch()
end
local fx = SpawnPrefab("spawn_fx_medium")
fx.Transform:SetPosition(beefalo.Transform:GetWorldPosition())
beefalo:Remove()
end
end
function YOTB_Stager:RemoveTrainer(trainer)
if trainer and trainer:IsValid... | Lua |
高级和实用的特性它不支持,需要使用者自己编程实现。
为了弥补这些不足,Netty提供了自己的ByteBuffer实现——ByteBuf。
decodeString(ByteBuffer src, Charset charset):使用指定的ByteBuffer和charset进行对ByteBuffer进行解码,获取解码后的字符串。
*/
public boolean ParseData(ByteBuf data,String ip,long port) throws Exception {
int headLen = 14;
String productId =... | Java |
sect Element
local range = buffer(offset, size)
local display = currenex_forex_esp_cbp_v9_0.message_body.display(buffer, packet, parent)
local element = parent:add(omi_currenex_forex_esp_cbp_v9_0.fields.message_body, range, display)
return currenex_forex_esp_cbp_v9_0.message_body.branches(buffer, offset, packe... | Lua |
column-filter-overlay-menu .p-column-filter-constraint .p-column-filter-remove-button {
margin-top: 0.5rem;
}
.p-column-filter-overlay-menu .p-column-filter-constraint:last-child {
border-bottom: 0 none;
}
.p-column-filter-overlay-menu .p-column-filter-add-rule {
padding: 0.75rem 1.25rem;
}
.p-column-filter-ov... | CSS |
table. If you want to modify the scopes
or the subject used for delegation, use :meth:`with_scopes` or
:meth:`with_subject`::
scoped_credentials = credentials.with_scopes(['email'])
delegated_credentials = credentials.with_subject(subject)
"""
@_helpers.copy_docstring(credentials_asyn... | Python |
GetMessage := fmt.Sprintf("Got %s", key)
kvGetResponse := fmt.Sprintf(`{"message":"%s", "value":"%s"}`, kvGetMessage, kvGetJSON)
fmt.Fprintln(w, kvGetResponse)
}
func deleteHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
// Assigns the "key" paramater to the "key" variable.
key := ps.ByNa... | Go |
Item;
public PlayerController(Minecraft var1, ClientPlayNetHandler var2) {
this.mc = var1;
this.connection = var2;
}
public void setPlayerCapabilities(PlayerEntity var1) {
this.currentGameType.method8155(var1.abilities);
}
public void method23128(GameType var1) {
this.field3136... | Java |
(e);case"%":return this.left.evaluate(e)%this.right.evaluate(e);case"==":return this.left.evaluate(e)==this.right.evaluate(e)?1:0;case"!=":return this.left.evaluate(e)!=this.right.evaluate(e)?1:0;case"<":return this.left.evaluate(e)<this.right.evaluate(e)?1:0;case">":return this.left.evaluate(e)>this.right.evaluate(e)?... | JavaScript |
es/writers/formulas-dag/" + fileName + ".txt");
final File tempMermaid = new File("src/test/resources/writers/temp/" + fileName + ".txt");
assertThat(contentOf(tempMermaid)).isEqualTo(contentOf(expectedMermaid));
}
}
///////////////////////////////////////////////////////////////////////////
// ... | Java |
/* Memory sub-system initialization code */
#include <config.h>
#include <asm/regdef.h>
#include <asm/au1x00.h>
#include <asm/mipsregs.h>
#define AU1500_SYS_ADDR 0xB1900000
#define sys_endian 0x0038
#define CP0_Config0 $16
#define MEM_1MS ((396000000/1000000) * 1000)
.text
.set noreorder
.set mips32
.globl... | Assembly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.