content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
struct TransparentHashIntOverload {
size_t operator()(const DecomposeType& a) const { return a.i; }
size_t operator()(int a) const { return a; }
};
struct TransparentEqIntOverload {
bool operator()(const DecomposeType& a, const DecomposeType& b) const {
return a.i == b.i;
}
bool operat... | C++ |
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright 2014, Michael Ellerman, IBM Corp.
*/
#include <ppc-asm.h>
#include "reg.h"
/* ppc-asm.h defines most of the reg aliases, but not r1/r2. */
#define r1 1
#define r2 2
#define RFEBB .long 0x4c000924
/* Stack layout:
*
* ^
* User stac... | Assembly |
{ color: #ffbbbb; }
.cm-s-erlang-dark span.cm-string { color: #3ad900; }
.cm-s-erlang-dark span.cm-string-2 { color: #ccc; }
.cm-s-erlang-dark span.cm-tag { color: #9effff; }
.cm-s-erlang-dark span.cm-variable { color: #50fe50; }
.cm-s-erlang-dark span.cm-variable-2 { color: #e0e; }
.cm-s-erlang-dark... | CSS |
String toJson() {
return SetonixUserMapper.ensureInitialized().encodeJson<SetonixUser>(
this as SetonixUser,
);
}
Map<String, dynamic> toMap() {
return SetonixUserMapper.ensureInitialized().encodeMap<SetonixUser>(
this as SetonixUser,
);
}
SetonixUserCopyWith<SetonixUser, Setoni... | Dart |
svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23111418'/%3e%3c/svg%3e")}.bp5-control.bp5-checkbox input:indeterminate:not(:disabled)~.bp5-control... | CSS |
${category.message}`
);
category.roles.forEach(async (role) => {
if (role.emoji.indexOf('<') === 0) {
try {
const emojiId = role.emoji.split(':')[2].replace('>', '');
message.react(emojiId);
} catch (e) {
console.error(e);
}
} else {
mes... | Typescript |
resent in IE 8/9.
// */
// mark {
// background: #ff0;
// color: #000;
// }
// /*
// * Corrects font family set oddly in Safari 5 and Chrome.
// */
// code,
// kbd,
// pre,
// samp {
// font-family: monospace, serif;
// font-size: 1em;
// }
// /*
// * Improves readability of pre-formatted text ... | CSS |
require "prototypes.internal-config"
data.raw["construction-robot"]["construction-robot"].max_health = Health.Tier3
data.raw["construction-robot"]["construction-robot"].resistances = Resistances.Tier3
data:extend(
{
{
type = "construction-robot",
name = "construction-robot-1",
icon = "__MAIN-DyTech-Mach... | Lua |
<','>>',fastwarp=true}})
run(d..'Ifoo,,I<a<a','<<foo>>,,',{{'<<','>>',fastwarp=true}})
run(d..'I<a<I(','(<<>>)',{{'<<','>>'}})
run(d..'Ia_eI(','(a_e)')
run(d..'I")"fooI(','(")"foo)',{fastwarp={filter_string=true}})
run(g..'I(foo)i','()foo')
run(g..'I()i','()')
run(g..'I(foo,ba... | Lua |
low_github_issue_722)
{
etl::bitset<12, uint16_t> data;
CHECK_THROW(data.reset(13), etl::bitset_overflow);
}
//*************************************************************************
TEST(test_position_flip_invalid_position_raises_bitset_overflow_github_issue_722)
{
etl::bitset... | C++ |
<p><a href="https://github.com/JunzhouLiu/BILIBILI-HELPER-PRE" target="_blank">BILIBILI-HELPER-PRE</a></p>
<p><a href="https://github.com/secriy/CloudMusic-LevelUp" target="_blank">CloudMusic-LevelUp</a></p>
<p><a href="https://github.com/... | HTML |
some new bodybag functionality and sounds I had ready a while ago, with sprites from Farart. Use a pen to create a visible tag on the bodybag. Wirecutters to cut it off. Also it's no longer weldable because it makes no goddamn sense.
</ul>
</ul>
<b><font color='blue'>7 January 2012</font></b>
<ul>
<li><b>Donkieyo... | HTML |
Event::LoopDestroyed => control_flow = ControlFlow::ExitWithCode(1),
_ => callback(event, window_target, &mut control_flow),
},
Err(_) => {
callback(Event::MainEventsCleared, window_target, &mut control_flow);
if dr... | Rust |
-desc">
<p><code class="code">transfer q1 q2</code> adds all of <code class="code">q1</code>'s elements at the end of
the queue <code class="code">q2</code>, then clears <code class="code">q1</code>. It is equivalent to the
sequence <code class="code">iter (<span class="keyword">fun</span> x&n... | HTML |
ebkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.pdfPresentationMode:-webkit-full-screen a:not(.internalLink) {
display: none;
}
.pdfPresentationMode:-moz-full-screen a:not(.internalLink) {
display: none;
}
.pdfPresentationMode:-ms-fullscreen a:no... | CSS |
#!/usr/bin/env python3
'''
t1_retry.py - this file is part of S3QL.
Copyright © 2008 Nikolaus Rath <Nikolaus@rath.org>
This work can be distributed under the terms of the GNU GPLv3.
'''
if __name__ == '__main__':
import sys
import pytest
sys.exit(pytest.main([__file__] + sys.argv[1:]))
import logging
... | Python |
special
* section that the loader will map as shared for all cores
* This is for data structures use by software ONLY,
* as it is not 1-1 VA-PA mapped.
*/
#if defined(CVMX_BUILD_FOR_FREEBSD_KERNEL)
#define CVMX_SHARED
#else
#ifndef CVMX_BUILD_FOR_LINUX_HOST
#define CVMX_SHARED __attribute__ ((cvmx_shared))
#else
#d... | C |
/// <param name="property">The property being visited.</param>
/// <param name="srcContainer">The source container.</param>
/// <typeparam name="TContainer">The container type.</typeparam>
/// <typeparam name="TValue">The value type.</typeparam>
void IPropertyVisitor.Visit<TContainer, TV... | C# |
(ops::eq(
op.eval_once(invop.eval_once(a.clone(), b.clone()), b)
.as_ref(),
a.as_ref(),
));
}
/// Asserts that the binary operation `invop` is the inverse of the binary operation `op`.
///
/// It must hold:
/// - `invop` is the left inverse of `op` ([`left_inverse`])
/// - `invop` is th... | Rust |
})?;
close(mount_fd)?;
}
if cf.contains(CloneFlags::CLONE_NEWNS) {
mounts::pivot_rootfs(&*rootfs)
.chain_err(|| "failed to pivot rootfs")?;
// only set sysctls in newns
for (key, value) in &linux.sysctl {
set_sysctl(key, value)?;
}
// NO... | Rust |
a type `T` is
// `MyMarker` if it is either `Debug` or `Display`.
#![feature(marker_trait_attr)]
use std::fmt::{Debug, Display};
#[marker] trait MyMarker {}
impl<T: Debug> MyMarker for T {}
impl<T: Display> MyMarker for T {}
fn foo<T: MyMarker>(t: T) -> T {
t
}
fn main() {
// Debug && Display:
assert... | Rust |
import numpy as np
def verify_stimulus_code_order(stimulus_code, target_chars):
"""
Verify if the 12-flash sequence is consistent across all repetitions.
Supports both III2a [char, 1, time] and II2b [1, time] format.
"""
stim_code = stimulus_code
if stim_code.ndim == 2 and stim_code.shape[0] =... | Python |
calize());
/// <summary>
/// Standard Modify menu</summary>
public static MenuDef Modify =
new MenuDef(StandardMenu.Modify, "Modify".Localize(), "Modify Commands".Localize());
/// <summary>
/// Standard Format menu</summary>
public static MenuDef Format =
... | C# |
)
ListApiSpecRevisionsCmd.Flags().Int32Var(&ListApiSpecRevisionsInput.PageSize, "page_size", 10, "Default is 10. The maximum number of revisions to return per...")
ListApiSpecRevisionsCmd.Flags().StringVar(&ListApiSpecRevisionsInput.PageToken, "page_token", "", "The page token, received from a previous...")
ListA... | Go |
aType.DateTime2, DbType = "TIMESTAMP(6)" , Length = 11, Scale = 6 )] public DateTime? Datetimevalue2 { get; set; } // TIMESTAMP(6)
[Column("BOOLVALUE" , DataType = DataType.Decimal , DbType = "NUMBER" , Length = 22, Scale = 0 )] public OracleDecimal? Boolvalue { get;... | C# |
[rfqn.RelationFQN]*distributions.Distribution{},
AuxValues: map[AuxValuesKey][]lyx.Node{},
SPH: sph,
Mgr: mgr,
}
}
var CatalogDistribution = distributions.Distribution{
Relations: nil,
Id: distributions.REPLICATED,
ColTypes: nil,
}
func IsRelationCatalog(resolvedRelation *rfq... | Go |
32-32s-14.354-32-32-32-32 14.354-32 32 14.354 32 32 32zM597.333 448v89.51l-170.667-106.667v106.667l-170.667-106.667v106.667l-128-80v-308.177l234.667 0.013v-42.667l-277.333-0.013v374.49l213.333 133.333v-106.667l170.667 106.667v-106.667l170.667 106.667v-123.823h23.573l42.667 384h144.854l42.667-383.992 44.906-0.013v-170.6... | HTML |
td = test_exception_throw_nonstd;
p_test_exception_throw_std = test_exception_throw_std;
p_test_exception_switch_recurse = test_exception_switch_recurse;
return module;
}
{
// monster macro containing all useful functionality
// Matt Fritts
// Updated By: Robert Snuggs
// MCF version
// (for RMS versio... | C++ |
f";
}
.ti-sharethis:before {
content: "\e750";
}
.ti-sharethis-alt:before {
content: "\e751";
}
.ti-reddit:before {
content: "\e752";
}
.ti-pinterest-alt:before {
content: "\e753";
}
.ti-microsoft-alt:before {
content: "\e754";
}
.ti-linux:before {
content: "\e755";
}
.ti-jsfiddle:before {
content: "\e756";
}
.t... | CSS |
param receiver
* The raw pojo to which the reflected Java field is bound.
* @param outerType
* The variable type.
* @return
* A new variable of the specified type.
*/
private fun forOuterType(
field: AvailObject,
receiver: AvailObject,
outerType: A_Type
): AvailObject = mutable.crea... | Kotlin |
Berlin");
let i = 0;
for (let test of data) {
i++;
let dom1 = getDom(test.input.previous);
let dom2 = getDom(test.input.current);
let result = ltn.invitation.compareInvitationOverlay(dom1, dom2, test.input.ignore);
let dom = cal.xml.parseString(result);
if (test.e... | JavaScript |
;
setVisible(false);
}
});
drawSubmitButton(graphics, x + 211, y + 110, 142, 28, 18, 1, "Decline", false, new ButtonHandler() {
@Override
void handle() {
sendPartyDecline();
setVisible(false);
}
});
}
private void drawPartyMain(GraphicsController graphics) {
partySetupPanel.hide(part... | Java |
xBackup.BackupStatus.NON_EMPTY_RECEIVER_ACCOUNT);
}
@Test
void backupAccountWithTwoMailboxesThenRestoringItInUser2AccountShouldCreateTwoMailboxes() throws Exception {
createMailbox(sessionUser, MAILBOX_PATH_USER1_MAILBOX1);
createMailbox(sessionUser, MAILBOX_PATH_USER1_MAILBOX2);
B... | Java |
without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy o... | C++ |
ignore_ascii_case("any") {
get_array3(
Expr_::Int(unary.into()),
Expr_::Int("1".into()),
Expr_::Null,
)
} else if name.eq_ignore_ascii_case("pcdata") {
get_array3(
Expr_::Int(unary... | Rust |
that can be found in the LICENSE file.
import 'package:analysis_server/src/services/correction/fix.dart';
import 'package:analyzer/src/error/codes.dart';
import 'package:analyzer_plugin/utilities/fixes/fixes.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'fix_processor.dart';
voi... | Dart |
rintable: Expected string, got " .. type (str) .. " instead.\n")
return ""
end
str = string_gsub (str, ".", escapeNonprintableMap)
return str
end
function GLib.String.EscapeWhitespace (str)
if not isstring (str) then
ErrorNoHalt ("GLib.String.EscapeNewlines: Expected string, got " .. type (str) .. " instea... | Lua |
for i := 0; i < n; i++ {
start := uint64(rand.Intn(100))
end := start + uint64(rand.Intn(50))
x.ls.push(start, end)
x.assertOrderedAndNoOverlap()
x.ls.removeUntil(uint64(rand.Intn(200)))
x.assertOrderedAndNoOverlap()
}
}
type rangeSetTest struct {
t *testing.T
ls rangeSet
}
func (t *rangeSetTest) asse... | Go |
.FramesCapturedByInertia = chConfig.InertiaFramesToRecover;
} else {
// Updates CharacterState and thus the animation to make user see graphical feedback asap.
thatCharacterInNextFrame.CharacterState = isOldNextChStateInAirIdle2ByJump ? InA... | C# |
CardAdapter.ViewHolder) = Unit
}
/*
* Copyright (c) Kuba Szczodrzyński 2020-5-8.
*/
package pl.szczodrzynski.edziennik.ui.attendance.viewholder
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.recycle... | Kotlin |
主义道路的当权派……只要群众充分发动起来了,这种阻力就会迅速被冲垮。”大量事实说明,刘梅、宋华青被点了名以后,我校文化大革命之所以仍然不能深入发展,其原因就是因为以李希曾、李子康、刘廷玉为首的一伙人千方百计地压制群众运动,肆无忌惮地破坏群众运动。
</p>
<p>
按:说来说去,就是没有刘、宋。怪乎哉?不怪也!
</p>
<p>
尽管他们处处刁难,但声讨李子康的大会还是胜利召开了,这是我校无产阶级文化大革命的一个新胜利,是广大革命师生员工共同努力的结果。
</p>
<p>
按:“八、一六”会议被革命师生造反了,保皇派和刘、宋的阴谋被戳穿了;刘、宋的反革命气焰被镇压住了,这才是我校无产阶级文化... | HTML |
{depth.toString()}i${i.toString()}\$';
final String childClassNoLocale = getClassName(
base: base,
visibility: config.translationClassVisibility,
parentName: className,
childName: key);
if (value.isMap) {
// inline map
_generateMap(
config: ... | Dart |
((entry) => '${entry.key.substring(6)}: ${entry.value} 条')
.join('\n');
contentBuffer.write(levelStats);
BlurDialog.show(
context: context,
title: '日志统计',
content: contentBuffer.toString(),
actions: [
TextButton(
onPressed: () => Navigator.pop(context)... | Dart |
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request))
)
.andExpect(status().isOk)
.andExpect(jsonPath("$[0].created_at", `is`(CREATED_AT)))
.andExpect(jsonPath("$[0].call_id", `is`("call-id-1")))
verify(regis... | Kotlin |
;
// }
// }
for byte in &self.bytes {
write!(f, "{:X}", byte)?;
}
Ok(())
}
}
use crate::common::*;
use std::{thread::sleep, time::Duration};
use strum::IntoEnumIterator;
use strum_macros::EnumIter;
pub enum BlockInput {
Block,
DontBlock,
}
#[derive... | Rust |
se);
/* Gate the LPTMR clock*/
CLOCK_DisableClock(s_lptmrClocks[instance]);
#if defined(LPTMR_PERIPH_CLOCKS)
CLOCK_DisableClock(s_lptmrPeriphClocks[instance]);
#endif
#endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */
}
void LPTMR_GetDefaultConfig(lptmr_config_t *config)
{
assert(config);
/* Use ... | C |
# a3: int16_t *input0_ptr
# a4: int16_t *input1_ptr broadcast
# a5: void *args
# a6: c_div_x_1
# a7: output sar_byte / tmp value
# a8: tmp value
# a9: tmp value
# a10: c_remainder
# a11:
# a12:
# a13:
# a14: tmp value
# a15:
entry sp, 128
addi a8, a5, 100
... | Assembly |
] = "Trepadeira Pútrida",
[22458] = "Báculo Umbraluna",
[22464] = "Túnica Quebraterra",
[22465] = "Guarda-pernas Quebraterra",
[22466] = "Bacinete Quebraterra",
[22467] = "Espaldares Quebraterra",
[22468] = "Botas Quebraterra",
[22469] = "Protetores de Mão Quebraterra",
[22470] = "Cinturão Quebraterra",... | Lua |
3p,
e6177fbe-aa24-4cde-b396-056291211e56_3p,
5fa493ff-7417-4537-81ca-45012dc3ad60_3p,
81b83cf7-f396-4894-948c-244a40942735_3p
unsupported: false, false, false, false, false
passed: false, false, false, false, false
test failed: false, false, false, false, false</pre>
</td>
<td class="tooltipParen... | HTML |
sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/doc... | HTML |
%got_lo(symbol), kind: fixup_Mips_GOT_LO16
# XGOT-NEXT: ldc1 $f0, 0($1) # encoding: [0x00,0x00,0x20,0xd4]
sdc1 $f0, symbol
# GOT: ld $1, %got_disp(symbol)($gp) # encoding: [A,A,0x81,0xdf]
# GOT-NEXT: # fixup A - offset: 0, value: %got_disp(symbol), ki... | Assembly |
.cloudflare.com/zkvhlag99gkb/75PZvAhZZCgzwKlrvlLPmX/6f82016253527d4b132694fd30c394b6/image7.png" alt="" class="kg-image" width="842" height="612" loading="lazy">
</figure>
<p>The report itself is a JSON blob that contains a lot of things, but the things we care about are when in the request the failure occurred (pha... | HTML |
TopNQueryBuilder()
.dataSource(QueryRunnerTestHelper.DATA_SOURCE)
.granularity(QueryRunnerTestHelper.ALL_GRAN)
.dimension(QueryRunnerTestHelper.MARKET_DIMENSION)
.filters(QueryRunnerTestHelper.QUALITY_DIMENSION, "entertainment")
.metric(QueryRunnerTestHelper.INDEX_METRIC)
... | Java |
override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.only(left: 15, top: 25),
child: Row(
crossAxisAlignment: CrossAxisAlignment.end,
children: <Widget>[
const Padding(
padding: EdgeInsets.only(right: 2),
child: Typin... | Dart |
oDp(context: Context, px: Int): Int {
val displayMetrics = context.resources.displayMetrics
return Math.round(px / (displayMetrics.xdpi / DisplayMetrics.DENSITY_DEFAULT))
}
/**
* 获取是否存在NavigationBar
* @param context
* @return
*/
fun checkDeviceHasNavigationBar(context: C... | Kotlin |
ATIONAL, ActivityCategory.DOCUMENT, ActivityCategory.GRAPH, ActivityCategory.EXTRACT, ActivityCategory.NESTED },
inPorts = {}, outPorts = { @OutPort(type = PortType.ANY) },
shortDescription = "Defines an input for when executing this workflow from within another workflow. At most one input per index can... | Java |
get_old_deriv( void ) const
{
return m_current_state_x1 ? m_dxdt2.m_v : m_dxdt1.m_v ;
}
void toggle_current_state( void )
{
m_current_state_x1 = ! m_current_state_x1;
}
controlled_stepper_type m_stepper;
resizer_type m_resizer;
bool m_current_state_x1;
wrappe... | C++ |
.INPUT),g.gate(O,o.gating.SELF),v.gate(A,o.gating.OUTPUT),i.inputToDeep&&l>0){let t=r.connect(d,o.connection.ALL_TO_ALL);p.gate(t,o.gating.INPUT)}if(i.memoryToMemory){let t=d.connect(d,o.connection.ALL_TO_ELSE);p.gate(t,o.gating.INPUT)}if(i.outputToMemory){let t=n.connect(d,o.connection.ALL_TO_ALL);p.gate(t,o.gating.IN... | JavaScript |
"<" => Op::LessThan,
"<=" => Op::LessThanEquals,
"==" => Op::EqualTo,
"!=" => Op::NotEqual,
"&" => Op::BitwiseAnd,
"|" => Op::BitwiseOr,
"^" => Op::BitwiseXor,
"!" => Op::Bang,
_ => unreachable!(),
}
... | Rust |
ana,Arial,Helvetica,Sans-Serif; }
H1 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H2 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H3 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H4 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H5 { FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; }
H6 { F... | HTML |
巨石砸中逃难男子","small_image":"https://1-im.guokr.com/xxz-r6j3SZuYnm2Ibg7Pk1wSPWf4HxdNHuyO-lOkhQVKAQAA6wAAAEpQ.jpg","summary":"现在他的头还不知所踪。","ukey_author":"2dxj2y","date_created":"2018-05-31T11:04:37+08:00","resource_url":"http://apis.guokr.com/minisite/article/442986.json"}]
* offset : 0
* total : 13396
</ifram... | Kotlin |
eateElement)(\"rect\", {\n x: \"12\",\n y: \"14\",\n width: \"1\",\n height: \"1\",\n rx: \".5\",\n transform: \"rotate(-180 12 14)\",\n fill: color\n }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(\"rect\", {\n x: \"6\",\n y: \"8\",\n width: \"1\",\n height: \"1\",\n rx: ... | JavaScript |
training data will be went through
//
// is_sparse
// type: string
// info: whether the data is dense or sparse
//
// format
// type: string
// info: the data format of input file: libsvm/tsv
//
// Configuration example:
// train=hdfs:///datasets/regression/MSD/train
// test=hdfs:///datasets/regression/MSD/test
// is_... | C++ |
0x8e,0x7d]
v_cmp_t_i32 vcc, 0, v2
// CHECK: [0x80,0x04,0x8e,0x7d]
v_cmp_t_i32 vcc, -1, v2
// CHECK: [0xc1,0x04,0x8e,0x7d]
v_cmp_t_i32 vcc, 0.5, v2
// CHECK: [0xf0,0x04,0x8e,0x7d]
v_cmp_t_i32 vcc, -4.0, v2
// CHECK: [0xf7,0x04,0x8e,0x7d]
v_cmp_t_i32 vcc, 0xaf123456, v2
// CHECK: [0xff,0x04,0x8e,0x7d,0x56,0x34,0x12,... | Assembly |
x10; op2:x11; op1val:0x4; op2val:0xb505; immval:0x4; align:0
TEST_BRANCH_OP(bltu, x4, x10, x11, 0x4, 0xb505, 0x4, 3f, x1, 1592,0)
inst_423:
// rs1_val==4 and rs2_val==1,
// opcode: bltu, op1:x10; op2:x11; op1val:0x4; op2val:0x1; immval:0x4; align:0
TEST_BRANCH_OP(bltu, x4, x10, x11, 0x4, 0x1, 0x4, 3f, x1, 1596,0)
in... | Assembly |
persistence = PicklePersistence(filepath="arbitrarycallbackdatabot")
application = (
Application.builder()
.token(TOKEN_TELEGRAM)
.persistence(persistence)
.arbitrary_callback_data(True)
.build()
)
# Add your handlers
application.add_handler(CommandHandler("start... | Python |
.elements[i][i] - m.elements[j][j] - m.elements[k][k] + 1.0);
temp[i] = s * 0.5;
s = 0.5 / s;
temp[3] = (m.elements[k].get_axis(j) - m.elements[j].get_axis(k)) * s;
temp[j] = (m.elements[j].get_axis(i) + m.elements[i].get_axis(j)) * s;
temp[k] = (m.elements[k].get_axis(i) + m.elements[i].get_axis(k)) * s... | Typescript |
const match = await Password.Compare(login.password, exists.password);
if (!match) throw "incorrect password";
return exists;
} catch (error) {
throw new Error(error);
}
}
public static async Register(register: IJavaAdmin): Promise<_Admin> {
try {
const exists = await _Admin.findOne({ username:... | Typescript |
[1978]</span>
<span class="ltx_bibblock">
Lotfi Asker Zadeh.
</span>
<span class="ltx_bibblock">Fuzzy sets as a basis for a theory of possibility.
</span>
<span class="ltx_bibblock"><em class="ltx_emph ltx_font_italic" id="bib.bib71.1.1">Fuzzy sets and systems</em>, 1(1):3–28, 1978.
</span>
</li>
</ul>
</section>
<... | HTML |
tableState<T>
): MutableState<T> {
val saver = ParcelableSaver(parcelable = parcelable, serializer = serializer)
return rememberSaveable(stateSaver = saver, key = key, init = init, inputs = inputs)
}
package io.github.chsbuffer.revancedxposed
@Suppress("unused")
enum class Opcode(val opName: String) {
NOP... | Kotlin |
#if UNITY_2019_3_OR_NEWER
using System;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
namespace MackySoft.SerializeReferenceExtensions.Editor
{
[CustomPropertyDrawer(typeof(SubclassSelectorAttribute))]
public class SubclassSelectorDrawe... | C# |
tc.name, func(t *testing.T) {
cmd := newMockCmd(newBlockMvCmd(), src)
assertMockCmd(t, cmd, tc.args, tc.ok, tc.want)
})
}
}
func TestBlockList(t *testing.T) {
src := `terraform {
required_version = "0.12.18"
}
provider "aws" {
version = "2.43.0"
region = "ap-northeast-1"
}
resource "aws_security_gro... | Go |
/**
* Execute `l` and `r` computations and if both succeed, process the results with `f`.
* @param l First `Kleisli` computation
* @param r Second `Kleisli` computation
* @param f Function to process the results of both computations
*/
export function zipWith<F extends URIS>(M: Monad1<F>) {
return <A, B, C, D>... | Typescript |
hpp>
#include <hw/acpi.hpp>
#include <hw/cpu.hpp>
#include <vm86/vm8086.hpp>
x86Features features;
enum class CPUVendor
{
Unknown,
Intel,
AMD,
Cyrix,
VIA,
TransMeta,
Centaur,
Nexgen,
UMC,
SIS,
NSC,
Rise,
Vortex,
VirtualMachine,
};
bool opcodeDetectionMode = false;
CPUVendor vendor;
uint8_t steppingID;... | C++ |
,
is_account_locked: false,
user_rewards_id: 2,
user_activation_id: 2
}
]);
await queryInterface.bulkInsert('team_informations', [
{
team_id: 1,
team_name: 'Socioboard',
team_description: '',
team_logo: 'https://mir-s3-cd... | JavaScript |
rotate(90deg)}.bp3-tree-node-caret.bp3-icon-standard:before{content:"\E695"}.bp3-tree-node-icon{position:relative;margin-right:7px}.bp3-tree-node-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;flex:1 1 auto;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-selec... | CSS |
uaddl v20.8h, v0.8b, v1.8b
uaddl v22.8h, v1.8b, v2.8b
add v24.8h, v20.8h , v22.8h
sqrshrun v3.8b, v24.8h, #2
ext v4.8b, v3.8b , v3.8b , #1
sub x5, x3, #2
st1 {v4.h}[1], [x1], #2
st1 {v4.h}[2], [x1], x5
st1 {v3.h}[1], [x1], #2
st1 {... | Assembly |
ums</a></div></div><div class="main-menu-explore-wrapper main-menu-explore-wrapper-odd"><div class="main-menu-explore-image"><a href="/topics/national-cherry-blossom-festival"><img typeof="foaf:Image" src="http://washington.org/sites/default/files/styles/menu_large/public/cherry_blossom_fest_washmon_background_2.jpg?it... | HTML |
to_size_t(m_offsets.get(size-1)) : 0;
m_offsets.truncate(size);
m_blob.truncate(blob_size);
}
inline void ArrayBinary::clear()
{
m_blob.clear();
m_offsets.clear();
}
inline void ArrayBinary::destroy()
{
m_blob.destroy();
m_offsets.destroy();
Array::destroy();
}
inline std::size_t ArrayB... | C++ |
ECTiONS%E5%B0%81%E9%9D%A2.jpg/100px-SELECTiONS%E5%B0%81%E9%9D%A2.jpg" decoding="async" loading="lazy" width="100" height="100" srcset="https://upload.thwiki.cc/thumb/3/3a/SELECTiONS%E5%B0%81%E9%9D%A2.jpg/150px-SELECTiONS%E5%B0%81%E9%9D%A2.jpg 1.5x, https://upload.thwiki.cc/thumb/3/3a/SELECTiONS%E5%B0%81%E9%9D%A2.jpg/20... | Markdown |
-line'></td><td class='code'><pre>impl Default for IncrementalConfig {</pre></td></tr><tr><td class='line-number'><a name='L533' href='#L533'><pre>533</pre></a></td><td class='uncovered-line'><pre>0</pre></td><td class='code'><pre> <span class='region red'>fn default() -> Self</span> {</pre></td></tr><tr><td clas... | HTML |
xCameraPos = i;
}
}
if (zCameraPos < k) {
zCameraPos += anInt1101 + (k - zCameraPos) * anInt1102 / 1000;
if (zCameraPos > k) {
zCameraPos = k;
}
}
if (zCameraPos > k) {
zCameraPos -= anInt1101 + (zCameraPos - k) * anInt1102 / 1000;
if (zCameraPos < k) {
zCameraPos = k;
}
}
if (... | Java |
)
s.icon_dotMatrixDigitNone = _uses(s.icon_dotMatrixDigit9, {
img = false,
})
s.icon_dotMatrixDate0 = { img = false }
s.icon_dotMatrixDate1 = { img = false }
s.icon_dotMatrixDate2 = { img = false }
s.icon_dotMatrixDate3 = { img = false }
s.icon_do... | Lua |
所以,k8s额外提供“热插拔”式Admission机制 - Dynamic Admission Control,也叫Initializer。
## 案例
有如下Pod:
```yaml
apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
labels:
app: myapp
spec:
containers:
- name: myapp-container
image: busybox
command: ['sh', '-c', 'echo Hello k8s! && sleep 3600']
```
这Pod里只有一个用户容器:m... | Markdown |
case TT_QUOTE:
{
X_CheckError((m_parseState == _PS_Block) || (m_parseState = _PS_Meta));
if(m_parseState == _PS_Block)
{
UT_UCSChar ucs = UCS_LDBLQUOTE;
appendSpan(&ucs,1);
}
else
{
UT_ASSERT_HARMLESS(UT_TODO);
}
break;
}
case TT_CITETITLE:
case TT_PRODUCTNAME:
case TT_PRODUCTNUMBER:
{
... | C++ |
const CoinPackedMatrix *rowCopy = solver_->getMatrixByRow();
const int *column = rowCopy->getIndices();
const int *rowLength = rowCopy->getVectorLengths();
const CoinBigIndex *rowStart = rowCopy->getVectorStarts();
const double *elementByRow = rowCopy->getElements();
double objValue ... | C++ |
movss xmm0, dword ptr [rcx + 4*rsi + 12] # xmm0 = mem[0],zero,zero,zero
mulss xmm0, dword ptr [rdx + 4*rsi + 12]
movss dword ptr [r8 + 4*rsi + 12], xmm0
add rsi, 4
cmp r10, rsi
jne .LBB0_849
jmp .LBB0_1013
.LBB0_976:
test r9d, r9d
jle .LBB0_1013
# %bb.977:
mov esi, r9d
lea rdi, [rsi - 1]
mov r9d, esi
and r9... | Assembly |
摘取影片的详情部分信息转存为影视基本信息
func SaveMovieBasicInfo(detail MovieDetail) {
basicInfo := MovieBasicInfo{
Id: detail.Id,
Cid: detail.Cid,
Pid: detail.Pid,
Name: detail.Name,
SubTitle: detail.SubTitle,
CName: detail.CName,
State: detail.State,
Picture: detail.Picture,
Actor: detail... | Go |
import json
import pytest
from conductor.client.http.models.rerun_workflow_request import RerunWorkflowRequestAdapter
from tests.serdesertest.util.serdeser_json_resolver_utility import JsonTemplateResolver
@pytest.fixture
def request_json():
return json.loads(JsonTemplateResolver.get_json_string("RerunWorkflowR... | Python |
import os
from typing import Optional
from .reader_image_folder import ReaderImageFolder
from .reader_image_in_tar import ReaderImageInTar
def create_reader(
name: str,
root: Optional[str] = None,
split: str = 'train',
**kwargs,
):
kwargs = {k: v for k, v in kwargs.items() if v is... | Python |
maxresdefault.jpg', 'Search03window');}
</script>
<form onsubmit="doSearch03(this.Search03.value); return false;">
<input type="text" id="Search03" name="Search03" size="30" placeholder="YouTube Video ID" />
<input type="submit" style="width:140px" value="Thumbnail HQ" /><br /></form>
<script type="text/javascript">
f... | HTML |
B Rd, [Rn, Rm, ASR #]
static void arm7D4(u32 opcode) { LDR_PREINC(OFFSET_ASR, OP_LDRB, 16); }
// LDRB Rd, [Rn, Rm, ROR #]
static void arm7D6(u32 opcode) { LDR_PREINC(OFFSET_ROR, OP_LDRB, 16); }
// STRB Rd, [Rn, Rm, LSL #]!
static void arm7E0(u32 opcode) { STR_PREINC_WB(OFFSET_LSL, OP_STRB, 16); }
// STRB Rd, [Rn, Rm... | C++ |
DocumentListener {
private var lastNumLines: Int = 0
private fun updateSize() {
val numLines = textArea.text.lines().size
if (numLines != lastNumLines) {
lastNumLines = numLines
viewport?.dispatchEvent(ComponentEvent(viewpo... | Kotlin |
ass GLaunchVarsBuilder implements Builder<GLaunchVars, GLaunchVarsBuilder> {
_$GLaunchVars? _$v;
String? _launchId;
String? get launchId => _$this._launchId;
set launchId(String? launchId) => _$this._launchId = launchId;
GLaunchVarsBuilder();
GLaunchVarsBuilder get _$this {
final $v = _$v;
if ($v... | Dart |
.include "asm/macros.inc"
.include "global.inc"
.section .text
arm_func_start NNS_G3dGetTex
NNS_G3dGetTex: ; 0x020BC0FC
ldrh r2, [r0, #0xc]
ldrh r1, [r0, #0xe]
add r3, r0, r2
cmp r1, #0x1
bne _020BC12C
ldr r2, [r0, #0x0]
ldr r1, _020BC138 ; =0x30585442
cmp r2, r1
ldreq r1, [r3, #0x0]
addeq r0, r0, r1
mo... | Assembly |
attribute value
that equals either
<samp class="codeph">
CA
</samp>
or
<samp class="codeph">
US
</samp>
.
</p>
</td>
... | HTML |
.elements.binding_list_box:redraw()
end
end
query.processKey[Const.chars.RETURN] = function()
self.action_executed = true
end
self.elements = {
binding_list_box = GUI.findElementByName("binding_list_box"),
query = GUI.findElementByName("query"),
state_filter_active = GUI.findElementByName("... | Lua |
#!/usr/bin/env python3
# A simple script that connects to a server and displays block headers
import time
import asyncio
from electrum.network import Network
from electrum.util import print_msg, json_encode, create_and_start_event_loop, log_exceptions
from electrum.simple_config import SimpleConfig
config = SimpleC... | Python |
े बालो वाली महिला लाल बाल | लाल बालों वाला ',
hasSkinTone: true),
Emoji('👩🦱',
'गोरी | महिला | वयस्क | सुनहरे बालो वाली महिला अफ़्रीकी | घुँघराला | घुँघराले बाल | बालों की लट ',
hasSkinTone: true),
Emoji('👩🦳',
'गोरी | महिला | वयस्क | सुनहरे बालो वाली महिला बाल | भूरा | वृद्ध... | Dart |
/*
* Copyright (c) 2015-2019, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.