content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
: IDiversityMeasure<Single>
{ }
internal interface IRegressionDiversityMeasure : IDiversityMeasure<Single>
{ }
internal interface IMulticlassDiversityMeasure : IDiversityMeasure<VBuffer<Single>>
{ }
[TlcModule.ComponentKind("EnsembleBinaryDiversityMeasure")]
internal interface ISupportBina... | C# |
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
namespace go;
using sys = runtime.@internal.sys_package;
using @unsafe = unsafe_package;
using runtime.@internal;
partial class runtime_package {
internal con... | C# |
XLS_ASSERT_OK(query_engine.Populate(f).status());
EXPECT_THAT(query_engine.ToString(result.node()), "0b00X");
}
TEST_F(TernaryQueryEngineTest, ArrayIndexTooLargeGetsBottom) {
// How many layers to use to ensure the analysis gives up.
static constexpr int64_t kTooManyLayers = 16;
auto package = CreatePackage();... | C++ |
To add site specific rules, you can use the `data-md-url` attribute that we
add to the wrapper element. Note that rules like this are used depending
on the URL you're *sending* from, not the URL where the recipient views it.
*/
/* .markdown-here-wrapper[data-md-url*="mail.yahoo."] ul { color: red; } */
pre, code... | CSS |
If both [locale] and [textDirection] are not
/// null, [textDirection] overrides the direction chosen for the [locale].
///
/// The `context` argument is passed to [showDialog], the documentation for
/// which discusses how it is used.
///
/// See also:
///
/// * [showTimePicker]
/// * <https://material.google.com/c... | Dart |
order forward mode,
the values of the independent variables that resulted in the ``nan``
are written to a temporary binary file.
This is so that you can run the original source code with those values
to see what is causing the ``nan`` .
vector_size
===========
The error message with contain the text
``vector_size`` = ... | C++ |
ist.sort()
print(video_list)
error_threshold = 17
time_diff_data = get_time_diff(save_root, date)
for video_id in tqdm(video_list):
try:
process_frame_loss2(camera_list, upload_date_root, save_root, time_diff_data, video_id, error_threshold)
except Except... | Python |
unit_price = pricelist.with_context({'uom': uom}).get_product_price(spam, qty, False)
self.assertAlmostEqual(unit_price, expected_unit_price, msg='Computed unit price is wrong')
# Test prices - they are *per unit*, the quantity is only here to match the pricelist rules!
test_unit_price(2, k... | Python |
L55_1 = _ENV
L56_1 = "C8C58F9B14C2F27D4"
L57_1 = _hx_e
L57_1 = L57_1()
L55_1[L56_1] = L57_1
_ENV["C8C58F9B14C2F27D4"]["new"] = function()
local L0_2, L1_2, L2_2, L3_2
L0_2 = lua_helper_new
L1_2 = C8C58F9B14C2F27D4
L1_2 = L1_2.prototype
L2_2 = 1
L3_2 = 2
L0_2 = L0_2(L1_2, L2_2, L3_2)
L1_2 = C8C58F9B14C2... | Lua |
24 24" }, children };
style(res, iconStyle);
if (color) style(res, { fill: color });
if (size !== 24) style(res, { height: size, width: size });
return res;
};
}
function f(svgPath: string): (data?: IIconData) => IBobrilNode {
let ch: IBobrilNode = { tag: "path", attrs:... | Typescript |
.say(fileBox)
const message = await msg.say(fileBox) // only supported by puppet-padplus
}
// 2. send Text
if (/^dong$/i.test(m.text())) {
await msg.say('ding')
const message = await msg.say('ding') // only supported by puppet-padplus
}
// 3. send Contact
if (/^lijiarui$/i.test(m.text())) {
... | Markdown |
else -> k[CardKeys.JSON_TAG_ID_KEY]?.jsonPrimitiveOrNull?.contentOrNull
} ?: continue
cur += CardKeyRead(id = ctr, tagId = tagId, cardType = type ?: "", keyData = b,
parsed = k, fileName = "$dir/$it")
} catch (e: Excepti... | Kotlin |
c&&a.graphic.attr({"class":"highcharts-drilldown-point"}).css({cursor:"pointer"})})};for(p in i)i[p].prototype.supportsDrilldown&&o(i[p].prototype,"drawTracker",j)})(Highcharts);
/**
* @license Highcharts JS v3.0.6 (2013-10-04)
* Exporting module
*
* (c) 2010-2013 Torstein Hønsi
*
* License: www.highcharts.com/li... | JavaScript |
... | Markdown |
Fuzzing SetColumn
std::vector<std::string> testColumn = {"test1", "test2", "test3"};
if (columnCount > 0) {
doc.SetColumn(columnCount - 1, testColumn); // Update last column with test data
}
// Fuzzing InsertColumn
std::vector<std::string> newColumn = {"new1", "new2... | C++ |
2D524 8002C924 0089082A */ slt $at, $a0, $t1
/* 02D528 8002C928 5420FFF9 */ bnezl $at, .L8002C910_ovl0
/* 02D52C 8002C92C 8E080074 */ lw $t0, 0x74($s0)
.L8002C930_ovl0:
/* 02D530 8002C930 AE00006C */ sw $zero, 0x6c($s0)
/* 02D534 8002C934 AE000070 */ sw $zero, 0x70($s0)
/* 02D538 8002C938 8E270004 */ ... | Assembly |
/// The <see cref="Avalonia.Controls.ToggleSwitch.OnContentProperty"/> property defined in <see cref="Avalonia.Controls.ToggleSwitch"/> class.
/// </summary>
public static Avalonia.StyledProperty<System.Object> ToggleSwitch_OnContent => Avalonia.Controls.ToggleSwitch.OnContentProperty;
/// <summary>
... | C# |
/ 5f7f #3942
'226Z' // 5f80 #5901
'181Q' // 5f81 #4722
'a30I' // 5f82-5f83 #788
'255E' // 5f84 #6634
'223O' // 5f85 #5812
'A' // 5f86
'39R' // 5f87 #1031
'232R' // 5f88 #6049
'30I' // 5f89 #788
'60J' // 5f8a ... | Dart |
#---------------------------------------
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#---------------------------------------
"""
Evaluate a trained model using imple... | Python |
elaunay_graph_Linf_traits_without_intersections_2<R,Field_tag>
: public Segment_Delaunay_graph_Linf_traits_base_2<R,Integral_domain_without_division_tag,Tag_false>
{
Segment_Delaunay_graph_Linf_traits_without_intersections_2() {
THE_2ND_TEMPLATE_PARAMETER_MUST_EITHER_BE_Integral_domain_without_division_tag_OR_F... | C |
; ==================================================================================================
; PART_38
; ==================================================================================================
partCode38:
ld e,$d7
ld a,(de)
or a
jp z,partDelete
ld e,$c4
ld a,(de)
rst_jumpTable
.dw @state0
.d... | Assembly |
threadId == null) {
where += " AND $FROM_RECIPIENT_ID = ?"
whereArgs = buildArgs(recipientId)
} else {
where += " AND $THREAD_ID = ?"
whereArgs = buildArgs(threadId)
}
return MmsReader(rawQueryWithAttachments(where, whereArgs))
}
fun getAllOutgoingStories(reverse: Boolean, limi... | Kotlin |
ytest.mark.parametrize("pixel_x, zoom", assert_pixels)
def test_assert_pixel_x(pixel_x, zoom):
pixel_y = 1
with pytest.raises(AssertionError) as assertion_info:
_ = Point.from_pixel(pixel_x=pixel_x, pixel_y=pixel_y, zoom=zoom)
assert 'Point X needs to be a value between 0 and (2^zoom) * 256.' in s... | Python |
'SET_UNSUBSCRIBE' as const,
CLEAR: 'CLEAR' as const,
}
export const MutationPath = {
[MutationName.ADD]: `${ModuleName}/ADD`,
[MutationName.SET]: `${ModuleName}/SET`,
[MutationName.SET_UNSUBSCRIBE]: `${ModuleName}/SET_UNSUBSCRIBE`,
[MutationName.CLEAR]: `${ModuleName}/CLEAR`,
}
export type MutationPayload ... | Typescript |
taIdx = 0;
int countIdx = 0;
// We didn't record the bytecode index in the profile data to record space.
// Therefore we must now recover that information.
// We exploit the fact that the baseline compiler generates code in
// a linear pass over the bytecodes to make this possible.
while (bcode... | Java |
cc.AudioClip)
private playerDie: cc.AudioClip = null
@property(cc.AudioClip)
private bgm: cc.AudioClip = null
public test: number = 2
public audioValuebgm: number = 1
public audioValueAudio: number = 1
public audioBGMId: number = 0
protected onLoad() {
ClaSound.instance = this
... | Typescript |
n TriggerTWW3Totemic2pc() end
end
if buff.natures_swiftness.up then removeBuff( "natures_swiftness" ) end
applyBuff( "elemental_blast" )
if talent.lightning_rod.enabled then applyDebuff( "target", "lightning_rod" ) end
if buff.vesper_totem.up and vesper_tot... | Lua |
.find((sale, index) => {
if (sale.saleID === payload) {
historyIndex = index;
}
return sale.saleID === payload;
}) as ISale;
draft.history.splice(historyIndex, 1);
saleToUndo.dateSent = null;
saleToUndo.isDeleted = false;
//INSERT SALE T... | Typescript |
with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUT... | CSS |
neiges",nil},
[1200] = {"Morbent Lagangrène",nil},
[1201] = {"Léopard des neiges",nil},
[1202] = {"Kobold Rat des tunnels",nil},
[1203] = {"Gardienne Sarys","Les Veilleurs"},
[1204] = {"Gardien Corwin","Les Veilleurs"},
[1205] = {"Grawmug",nil},
[1206] = {"Grinceur",nil},
[1207] = {"Bagarreur",nil},
[1210] = {"Chok'sul... | Lua |
p any proposal that would push the size over the limit.
// Note the added requirement s>0 which is used to make sure that
// appending single empty entries to the log always succeeds, used both
// for replicating a new leader's initial empty entry, and for
// auto-leaving joint configura... | C |
index_mut(&mut self, idx: (usize, usize)) -> &mut Self::Output {
&mut self.matrix[idx.0 * self.height + idx.1]
}
}
impl<T: Display> Display for DynMatrix<T> {
fn fmt(&self, f: &mut Formatter) -> Result {
for i in 0..self.height {
for val in self.matrix.iter().skip(i).step_by(self.h... | Rust |
0x14, 0x17
/* 8045F214 0045A754 50 7C 06 38 */ rlwimi r28, r3, 0, 0x18, 0x1c
/* 8045F218 0045A758 B1 84 00 2E */ sth r12, 0x2e(r4)
/* 8045F21C 0045A75C 38 64 00 02 */ addi r3, r4, 2
/* 8045F220 0045A760 B3 84 00 2C */ sth r28, 0x2c(r4)
/* 8045F224 0045A764 B1 44 00 32 */ sth r10, 0x32(r4)
/* 8045F228 0045A768 B1 ... | Assembly |
-mini .vc_wc-load-add-to-loader:after{left:20px;-webkit-animation-delay:.32s;animation-delay:.32s}.vc-woocommerce-add-to-cart-loading.vc_grid-item-mini .vc_wc-load-add-to-loader:after,.vc-woocommerce-add-to-cart-loading.vc_grid-item-mini .vc_wc-load-add-to-loader:before{content:'';position:absolute;top:0}@-webkit-keyfr... | CSS |
if (pArea) {
spItem->pUIIcon->SetRegion(pArea->GetRegion());
spItem->pUIIcon->SetMoveRect(pArea->GetRegion());
}
// Invisible로 하고 삭제는 서버가 성공을 줄때 한다..
spItem->pUIIcon->SetVisible(false);
if ((spItem->pItemBasic->byContable == UIITEM_TYPE_COUNTABLE) ||
(spItem->pItemBasic->b... | C++ |
12
/* 80470A40 0046D840 48 00 00 94 */ b lbl_80470AD4
lbl_80470A44:
/* 80470A44 0046D844 7C 04 E3 D6 */ divw r0, r4, r28
/* 80470A48 0046D848 7C 00 E1 D6 */ mullw r0, r0, r28
/* 80470A4C 0046D84C 7C 00 20 50 */ subf r0, r0, r4
/* 80470A50 0046D850 7F 60 20 50 */ subf r27, r0, r4
/* 80470A54 0046D854 38 7D 00 00 *... | Assembly |
rive(Debug, PartialEq, Eq, Clone, Copy)]
enum Operation {
FastForward,
Forced,
Pruned,
Tag,
New,
Reject,
Noop,
}
/// Parse the `Operation` enum from the one-character prefix in git-fetch
fn parse_operation(chr: &str) -> Result<Operation, Error> {
if chr.len() != 1 {
return Err(E... | Rust |
_result,
GetIncensePokemonResponse::get_result,
));
fields.push(::protobuf::reflect::accessor::make_singular_enum_accessor(
"pokemon_id",
GetIncensePokemonResponse::has_pokemon_id,
GetIncensePokemonResponse::... | Rust |
var pong = new PongMessage { Id = message.Id };
// This will send the pong message back
// to the original sender of the PingMessage
return Respond.ToSender(pong);
}
```
<sup><a href='https://github.com/JasperFx/wolverine/blob/main/src/Testing/Wolverine.ComplianceTests/Compliance/Messages.cs#L50-L61' t... | Markdown |
require 'optim'
require 'math'
return function(model, workers, opts, state)
local gpuImgs = state.gpuImgs
local gpuInstrs = state.gpuInstrs
local gpuIngrs = state.gpuIngrs
local gpuMatches = state.gpuMatches
local gpuClsRecipe = state.gpuClsRecipe
local gpuClsImg = state.gpuClsImg
local inp
local out... | Lua |
ror', err);
});
selfPeer.on('open', () => {
console.info('selfPeer open');
subscribeToRegistryOrBecomeIt();
});
selfPeer.on('call', (call) => {
// Answer the call with an A/V stream.
call.answer(myStream);
call.on('stream', (remoteStream) => {
peers[call.peer] = remoteStream;
e... | Typescript |
ll,
child: const Icon(RadixIcons.chevronRight).iconXSmall(),
);
}
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final scaling = theme.scaling;
final compTheme = ComponentTheme.maybeOf<PaginationTheme>(context);
final gap = styleValue(
widgetValu... | Dart |
getStudentUpdateListener() {
return this.studentsUpdated.asObservable();
}
getStudent(id: string) {
return this.http.get<{_id: string; name: string; course: string}>('http://localhost:5000/api/v1/students/' + id);
}
addStudent(id: string, name: string, course: string) {
const student: Stu... | Typescript |
root, data: any) =>
EmployeeModel.findOne({ _id: data._id });
const updateEmployee = async (root, { _id, input }) =>
EmployeeModel.findOneAndUpdate({ _id }, input);
// load resolvers with the functions related to the schemas of graphql.
const resolvers = {
Query: {
employees: getEmployees,
employee: get... | Typescript |
se_quirk_sleepy_b_02",
},
sound_events_duration = {
[1] = 1.796906,
[2] = 4.563229,
},
randomize_indexes = {},
},
}
return settings("ogryn_b_psyker_female_c", ogryn_b_psyker_female_c) | Lua |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/CoreUI.framework/CoreUI
*/
@interface CUIPSDGradientDoubleColorStop : CUIPSDGradientColorStop <NSCoding> {
struct _psdGradientColor {
double red;
double green;
double blue;
double alpha;
} leadOutC... | C |
:class.java)
return@lazy siteClasses
}
private fun MutableMap<SiteDescriptor, Class<out Site>>.addSiteToSiteClassesMap(
siteName: String,
siteClass: Class<out Site>
) {
val siteDescriptor = SiteDescriptor.create(siteName)
require(!this.contains(siteDescriptor)) {
"Site $siteName alrea... | Kotlin |
专家斯林奇|Follow the path in the mine to this spot. He's a dead gnome on the ground.",
[27414] = '?|戈尔顿|',
[27416] = '?|皮普斯维克|',
[27421] = '?|食蕨蛾|',
[27422] = '?|鲁尔兹|',
[27423] = '?|格利克|',
[27424] = '?|征服堡劫掠者|',
[27451] = '?|指挥官巴尔格克|',
[27463] = '?|受伤的散兵|',
[27464] = '?|奥曼娜|',
[27468] = '?|哈斯曼中士|',
[... | Lua |
x: 0.0,
// y: 0.0,
// radius: 2.0,
// };
// 関連関数は Struct::function() という構文で呼び出される
let c = Circle::new(0.0, 0.0, 2.0);
println!("{}", c.area());
let d = c.grow(2.0).area();
println!("{}", d);
// Builderパターンによる書き方はこんなかんじ
let c = CircleBuilder::new().x(1.0).y(2.0).radi... | Rust |
InstancePtr);
void XDcfg_SetRomShadowRegister(XDcfg *InstancePtr, u32 Data);
u32 XDcfg_GetSoftwareIdRegister(XDcfg *InstancePtr);
void XDcfg_SetMiscControlRegister(XDcfg *InstancePtr, u32 Mask);
u32 XDcfg_GetMiscControlRegister(XDcfg *InstancePtr);
u32 XDcfg_IsDmaBusy(XDcfg *InstancePtr);
void XDcfg_InitiateDma(X... | C |
> = T | null;
/** Parameterized type alias for a callback that receives an error or a result. */
type CB<E extends Error, T> = (err: Nullable<E>, res: T) => void;
/*
* Mock the specific functions we use on the prototype rather than creating a
* mock function with implementation. This is necessary because of the
* i... | Typescript |
master/1mil-AD-passwords.txt>
| [500-worst-passwords](500-worst-passwords.txt) | 500 of the worst passwords that people tend to commonly use
| [antipublic-top-1000](antipublic-top-1000.txt) | word list taken from www_brute Chrome extension GitHub repository <https://github.com/USSCltd/www_brute/blob/master/antipubli... | Markdown |
_style_set_public(&mut auth, &*conn)?;
let uid = auth.uid.unwrap();
Ok(Json(json!(style::access(&*conn, &uid, &id, true)?)))
}
#[post("/style/<id>/private")]
fn style_private(
conn: State<DbReadWrite>,
mut auth: auth::Auth,
auth_rules: State<auth::CustomAuth>,
id: i64
) -> Result<Json<serde_js... | Rust |
0x060c]
! Store8
.word 0xc2710005 ! 88: STX_R stx %r1, [%r4 + %r5]
.word 0xde310005 ! 88: STH_R sth %r15, [%r4 + %r5]
.word 0xc4710005 ! 88: STX_R stx %r2, [%r4 + %r5]
.word 0xc0310005 ! 88: STH_R sth %r0, [%r4 + %r5]
.word 0xc4290005 ! 88: STB_R stb %r2, [%r4 + %r5]
.word 0xc4290005 ! 88: STB_R stb %r2, [%... | Assembly |
the License.
namespace StreetLightsApi.Messages;
/// <summary>
/// Represents a request to add a new street light
/// </summary>
public class AddStreetLightRequest
{
/// <summary>
/// Gets/sets the id of the street to add a new light to
/// </summary>
public required string StreetId { get; init; }
... | C# |
extracted = []
for span, span_quantities in zip(existing, spans_quantities):
if len(span_quantities):
span._.set(span.label_, span_quantities[0]._.get(span.label_))
extracted.append(span)
elif self.merge_mode == "intersect":
... | Python |
get_document<T: Document>(&self, uid: String, did: String) -> Result<T, ServiceError> {
documents::get_document(&self.config, uid, did).await
}
pub async fn get_documents<T: Document>(&self, uid: String, offset: Option<usize>, limit: Option<usize>, attributes: Option<&str>) -> Result<Vec<T>, ServiceEr... | Rust |
qqic)
{
struct ipv6_ext_header *ext_hdr = dp_packet_l4(packet);
struct mld_query_header *mqh = ALIGNED_CAST(struct mld_query_header *,
ext_hdr + 1);
mqh->type = MLD_QUERY;
mqh->code = 0;
mqh->max_resp = htons(max_resp);
mqh->rsvd = 0;
memcpy(&... | C |
Context, Tcti,
};
/*
* Input: None
* Return: Connection context
*
* Example call:
* let mut ctx = tpm::get_tpm2_ctx();
*/
pub(crate) fn get_tpm2_ctx() -> Result<Context> {
let tcti_path = match std::env::var("TCTI") {
Ok(val) => val,
Err(_) => if std::path::Path::new("/dev/tpmrm0").exist... | Rust |
WWWWWWWWWWWWWWXXXXXXXXXXXXXXXXXXXXXYYYYYYYYYYYY"
"YYYYYYYYZZZZZZZZZZZZZZZZZZZZZZZZZ[[[[[[[[[[[[[[[[["
"[[[[\\\\\\\\\\\\\\\\\\\\\\\\\]]]]]]]]]]]]]]]]]]]]]"
"]^^^^^^^^^^^^^^^^^^^^^^^^___________________``````"
"`````````````aaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbb"
"bccccccccccccccccccdddddddddddddddddddddddeeeeeeee"
"eeeee... | C++ |
quick, jpda, jdwp]
* VM Testbase readme:
* DESCRIPTION
* This test performs checking for
* command set: ThreadReference
* command: OwnedMonitors
* Test checks that debugee accept the command packet and
* replies with correct reply packet.
* Also test checks that only one owned mo... | Java |
{en:["Bring forward"],ar:["تقديمه للأمام"]}},17293:e=>{e.exports={en:["Bring to front"],ar:["وضعه في المقدمة"]}},79336:e=>{e.exports={en:["Brisbane"],ar:["بريزبان"]}},33672:e=>{e.exports={en:["Bucharest"],ar:["بوخاريست"]}},20313:e=>{e.exports={en:["Budapest"],ar:["بودابست"]}},25282:e=>{e.exports={en:["Buenos Aires"],ar... | JavaScript |
from sqlalchemy import Column, Integer, ForeignKey, String
from alchemyClasses import db
class CategoriasPredefinidas(db.Model):
__tablename__ = "categorias_predefinidas"
categoria_id = Column(Integer, primary_key=True, autoincrement=True)
nombre_categoria = Column(String(50), unique=True, index=True)
... | Python |
erase(term_pid);
if (verbose)
cout << term_pid << ": TERM exitcode=" << exitcode << endl;
}
}
}
signal(SIGUSR1, SIG_DFL);
return -1;
}
//---------------------------------------------------------------------------------------
static volatile sig_... | C++ |
fmt.Fprintf(&buf, ` ($%d, $%d)`, j+1, j+2)
}
}
writeStmt, err := db.Prepare(buf.String())
if err != nil {
return workload.QueryLoad{}, err
}
ql := workload.QueryLoad{SQLDatabase: sqlDatabase}
for i := 0; i < w.connFlags.Concurrency; i++ {
op := jsonOp{
config: w,
hists: reg.GetHandle(),
... | Go |
/* 80291128 0028E068 4E 80 04 21 */ bctrl
/* 8029112C 0028E06C 90 61 00 24 */ stw r3, 0x24(r1)
.L_80291130:
/* 80291130 0028E070 81 81 00 20 */ lwz r12, 0x20(r1)
/* 80291134 0028E074 38 61 00 20 */ addi r3, r1, 0x20
/* 80291138 0028E078 81 8C 00 10 */ lwz r12, 0x10(r12)
/* 8029113C 0028E07C 7D 89 03 A6 */ mtctr... | Assembly |
e very few elements, the map
// will stay on the stack.
stillUsed := make(map[base.DiskFileNum]struct{})
for _, nf := range ve.NewTables {
if !nf.Meta.Virtual {
stillUsed[nf.Meta.TableBacking.DiskFileNum] = struct{}{}
isLocal, localFileDelta := sizeIfLocal(nf.Meta.TableBacking, provider)
localLiveDelta.si... | Go |
bx
movl %ebx, C
movl OLD_LDC, LDC
movd %mm4, OFFSET
movd %mm4, KK
leal (, LDC, SIZE), LDC
#ifdef LN
movl M, %eax
leal (, %eax, SIZE), %eax
addl %eax, C
imull K, %eax
addl %eax, A
#endif
#ifdef RT
movl N, %eax
leal (, %eax, SIZE), %eax
imull K, %eax
... | Assembly |
tc=e:GetLabelObject()
if chkc then return chkc==tc end
if chk==0 then
if e:GetLabel()~=1 then return false end
e:SetLabel(0)
return Duel.CheckLPCost(tp,100) and (tc:IsAttackAbove(100) or tc:IsDefenseAbove(100)) and tc:IsCanBeEffectTarget(e) end
local maxc=Duel.GetLP(tp)
local maxpay=tc:GetAttack()
local def=... | Lua |
DBGMCU->APB2FZ |= DBGMCU_TIM10_STOP | DBGMCU_TIM11_STOP;
//*///
#endif
boardInit(); // board-specific part of init
/*
only CPU init here, all another moved to modules .init() functions
*/
interrupts();
if(!overclock_failed) {
// comes here - all ok, we can clear guard
board_s... | C++ |
, 125000, 125000, 125000, 125000
};
/* OMAP36XX data */
const struct ti_bandgap_data omap36xx_data = {
.features = TI_BANDGAP_FEATURE_CLK_CTRL | TI_BANDGAP_FEATURE_UNRELIABLE,
.fclock_name = "ts_fck",
.div_ck_name = "ts_fck",
.conv_table = omap36xx_adc_to_temp,
.adc_start_val = 0,
.adc_end_val = 127,
.expose_se... | C |
tudioRenderer_StudioDrawPlayer);
}
if (gPrivateFuncs.GameStudioRenderer_StudioDrawModel)
{
Install_InlineHook(GameStudioRenderer_StudioDrawModel);
}
/*
Engine studio implementation
*/
if (gPrivateFuncs.R_StudioSetupBones)
{
Install_InlineHook(R_StudioSetupBones);
}
if (gPrivateFuncs.R_StudioDrawPlayer)... | C++ |
pub hash: &'a str,
}
impl<'a> Fingerprint<'a> {
pub(crate) fn new(value: &'a str) -> Result<Self> {
let mut split = value.split(' ');
let r#type = parse_str(split.next(), 1)?;
let hash = parse_str(split.next(), 2)?;
Ok(Self { r#type, hash })
}
}
#[cfg(test)]
mod tests {
us... | Rust |
}
/*-- Point --*/
.c3-circle._expanded_ {
stroke-width: 1px;
stroke: white;
}
.c3-selected-circle {
fill: white;
stroke-width: 2px;
}
/*-- Bar --*/
.c3-bar {
stroke-width: 0;
}
.c3-bar._expanded_ {
fill-opacity: 0.75;
}
/*-- Focus --*/
.c3-target.c3-focused {
opacity: 1;
}
.c3-target.c3-focused path.c3-li... | CSS |
modal-form-regular",
danger: "modal-form-danger",
primary: "modal-form-primary"
};
let root;
onMount(() => {
const btn = new import_obsidian24.ButtonComponent(root);
if (icon)
btn.setIcon(icon);
if (tooltip)
btn.setTooltip(tooltip);
if (text3)
btn.setButtonText(text3);
... | JavaScript |
Text(
"Animation With Animator",
style: TextStyle(
color: animationState1.getValue('color2'),
fontSize: 30,
),
),
Text(
"is very easy",
... | Dart |
Scalars().setStackContent(4040, 4, ScalarValue(sbfTypesFac.toNum(0)))
sbfLogger.warn{"\nAbsVal1=$absVal1\nAbsVal2=$absVal2"}
absVal1.pseudoCanonicalize(absVal2)
absVal2.pseudoCanonicalize(absVal1)
sbfLogger.warn{"After pseudo canonicalization\nAbsVal1=$absVal1\nAbsVal2=$absVal2"}
... | Kotlin |
eine.member.domain.Member;
import com.carffeine.carffeine.member.domain.MemberRepository;
import com.carffeine.carffeine.member.domain.MemberRole;
import org.assertj.core.api.AssertionsForClassTypes;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayNameGeneration;
import org.junit.jupiter.ap... | Java |
/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
Contributed by Andreas Schwab (schwab@issan.informatik.uni-dortmund.de)
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software F... | Assembly |
void PeerListContent::setHideEmpty(bool hide) {
_hideEmpty = hide;
resizeToWidth(width());
}
void PeerListContent::setBelowWidget(object_ptr<Ui::RpWidget> widget) {
_belowWidget = std::move(widget);
initDecorateWidget(_belowWidget.data());
}
void PeerListContent::initDecorateWidget(Ui::RpWidget *widget) {
if (w... | C++ |
yboardMarkup([
[InlineKeyboardButton("↻ Обновить", callback_data=f"act:stats:{name}:{scope}:{page}")],
[InlineKeyboardButton("← Назад", callback_data=f"user:{name}:{scope}:{page}")],
])
def build_global_stats_markup(scope: str, page: int) -> InlineKeyboardMarkup:
return InlineKeyboardMarkup(... | Python |
1];
let cap = level_capacity(self.k, self.levels.len() - 1, level, self.m);
if pop >= cap {
return level;
}
}
panic!("capacity calculation error")
}
fn add_empty_top_level_to_completely_full_sketch(&mut self) {
let new_level_capacity ... | Rust |
rm64()
macosX64()
mingwX64()
tvosX64()
tvosArm64()
tvosSimulatorArm64()
watchosX64()
watchosArm64()
watchosSimulatorArm64()
sourceSets {
all {
languageSettings {
optIn("androidx.paging.ExperimentalPagingApi")
}
}
val commonMain by getting {
dependencies {
... | Kotlin |
mSheetDialogShown()) return
Timber.d("Participant Handle: %s", participant.handle)
selectedHandleParticipant = participant.handle
bottomSheetDialogFragment = ParticipantBottomSheetDialogFragment()
bottomSheetDialogFragment?.show(supportFragmentManager, bottomSheetDialogFragment?.tag)
... | Kotlin |
"failed NewBootstrapTokenStringFromIDAndSecret for the token with id %q and secret %q\n\texpected error: %t\n\t actual error: %v",
rt.id,
rt.secret,
rt.expectedError,
err,
)
} else if diff := cmp.Diff(actual, rt.bts); diff != "" {
t.Errorf(
"failed NewBootstrapTokenStringFromIDAndS... | Go |
, bg = c.none, bold = s.bold },
CmpItemAbbrMatchFuzzy = { link = 'CmpItemAbbrMatch' },
CmpItemMenu = { fg = c.gray, italic = s.italic },
CmpItemKind = { link = 'CaretYellow' },
CmpItemKindClass = { link = 'CaretPurple' },
CmpItemKindConstructor = { link = 'CaretPurple' },
CmpItemKindField = { li... | Lua |
[obj.uk3, nextAutoId];
if (nextAutoId <= 0) {
where = "${MessageRepo.conversationUk3} = ?";
args = [obj.uk3];
}
List<Map<String, dynamic>> maps = await _db.query(
tableName,
columns: [
MessageRepo.autoId,
MessageRepo.id,
MessageRepo.type,
MessageRepo.... | Dart |
lobal(modName.."MinimapButton") then
getglobal(modName.."MinimapButton").leftClick = value
end
end,
-- Sets the right-click function.
-- value = function
SetRightClick = function(self,modName,value)
if value and getglobal(modName.."MinimapButton") then
getglobal(modName.."MinimapButton").rightClick = va... | Lua |
n-item:hover {
color: var(--Form-select-menu-onHover-color);
background: var(--Form-select-menu-onHover-bg);
}
.cxd-GroupedSelection-item:hover i {
border: 1px solid var(--menu-active-color);
}
.cxd-GroupedSelection-item.is-active,
.cxd-GroupedSelection-item.is-focused,
.cxd-GroupedSelection-item.is-opened {
co... | CSS |
Package("A", "1.3", []*types.Package{}, []*types.Package{})
_, err := db.CreatePackage(a)
Expect(err).ToNot(HaveOccurred())
_, err = db.CreatePackage(a1)
Expect(err).ToNot(HaveOccurred())
_, err = db.CreatePackage(a3)
Expect(err).ToNot(HaveOccurred())
err = db.SetPackageFiles(&types.PackageFile{... | Go |
rts/Joe & Mac (19xx)(-)(US)[p].png",
"Named_Boxarts/Joe & Mac- Caveman Ninja (1991)(Elite)(EU).png",
"Named_Boxarts/Joe _ Mac (USA).png",
"Named_Boxarts/Joe _ Mac - Caveman Ninja (Europe).png",
"Named_Boxarts/John Elway's Quarterback (1989-03)(Tradewest)(US)[h Mindrape & EFX][iNES title].png",
"Na... | Lua |
ct(packet.getPadding()).toBe(0);
expect(packet.getSsrc()).toBe(1111);
expect(packet.getNtpSeconds()).toBe(1234);
expect(packet.getNtpFraction()).toBe(2345);
expect(packet.getRtpTimestamp()).toBe(123456789);
expect(packet.getPacketCount()).toBe(666);
expect(packet.getOctetCount()).toBe(999);
expect(packet.... | Typescript |
en incorporated into the function "set_case_running"
# (see above). LukeD 05-05-2020
#
#def perturb_CoreRadiusFraction(var, perturbedVariables,\
# DictOfCases, levels):
# """
# Perturbation of the CoreRadiusFraction may be completed
# as a post-processing step using the nominal c... | Python |
Country.findByAlpha2("TP")?.alpha2 shouldBe "TL"
Country.findByAlpha2("YU")?.alpha2 shouldBe "RS"
Country.findByAlpha2("FX")?.alpha2 shouldBe "FR"
Country.findByAlpha2("DD")?.alpha2 shouldBe "DE"
Country.findByAlpha2("ZR")?.alpha2 shouldBe "CD"
Country.findByAlpha2("BU")?.alph... | Kotlin |
{"#2823C6", "#b8d0e0", "#b8d0e0"},
"head": {"#C7873A"},
"mouth": {"#000", "#4d4d4d"},
"eyes": {"#581b1b", "#FF8B8B", "#000"},
"top": {"none", "#9c0092"},
},
},
// Ateam主题
style.AteamStyle: {
ThemePart{
"env": {"#d10084"},
"clo": {"#efedee", "#00a1e0", "#00a1e0", "#efedee", "#ffce1c"... | Go |
/* This is a modified version of the file "arena.h" from
"C Interfaces and Implementations", by David R. Hanson.
The license is below.
*/
/*
The author of this software is David R. Hanson.
Copyright (c) 1994,1995,1996,1997 by David R. Hanson. All Rights Reserved.
Permission to use, copy, modify, and distrib... | C |
CLE_UNIT / 2 + count_cycles) | (((1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4) << 16);
}
/* 2 0,0 B */
/* JMP.L (d16,An) */
uae_u32 REGPARAM2 op_4ee8_0_ff(uae_u32 opcode)
{
int count_cycles = 0;
uae_u32 real_opcode = opcode;
uae_u32 srcreg = (real_opcode & 7);
uaecptr srca;
srca = m68k_areg(regs, srcreg) + (uae_s3... | C++ |
ем",
[60836] = "Monster - Polearm, Dragon Hunter 003 (1H, no particle)",
[60837] = "Пылающее сердце",
[60838] = "Таинственная карта удачи",
[60839] = "Карта удачи",
[60840] = "Карта удачи",
[60841] = "Карта удачи",
[60842] = "Карта удачи",
[60843] = "Карта удачи",
[60844] = "Карта удачи",
[60845] = "Карта удачи",
[6084... | Lua |
endo-font-size, inherit);line-height:var(--kendo-line-height, normal)}.k-breadcrumb-lg .k-breadcrumb-link,.k-breadcrumb-lg .k-breadcrumb-root-link{padding-block:var(--kendo-spacing-2\.5, 0.625rem);padding-inline:var(--kendo-spacing-3, 0.75rem)}.k-breadcrumb-lg .k-breadcrumb-icon-link{padding-block:var(--kendo-spacing-3... | CSS |
/** @file
MM Services Table Library.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompani... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.