content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
e(e.name),
e.time_received && ((s = !0), delete e.time_received));
if (i.size)
for (let e of this.m_rgEmoticons)
i.has(e.name) &&
((e.last_used = t),
(e.use_count += i.get(e.name)),
delete e.time_received,
... | JavaScript |
.include "asm/macros.inc"
.include "global.inc"
.text
thumb_func_start sub_0204A368
sub_0204A368: ; 0x0204A368
push {r3-r5, lr}
add r5, r0, #0x0
ldr r0, [r5, #0x54]
add r4, r1, #0x0
cmp r0, #0x0
bne _0204A388
ldr r1, _0204A38C ; =0x000080E2
mov r0, #0xb
bl AllocFromHeap
str r0, [r5, #0x54]
ldr r0, [r5, ... | Assembly |
def before_all(context):
# Configure behavex-images to always attach images to reports
try:
from behavex_images import image_attachments
from behavex_images.image_attachments import AttachmentsCondition
image_attachments.set_attachments_condition(context, AttachmentsCondition.ALWAYS)
... | Python |
12'] #push .pb_lower,
#oled[data-pb_type='12'] #push .pb_upper {
visibility: hidden;
}
#oled[data-pb_type='6'] #push .pb_mode,
#oled[data-pb_type='6'] #push .pb_number,
#oled[data-pb_type='6'] #push .pb_lower,
#oled[data-pb_type='6'] #push .pb_upper,
#oled[data-pb_type='7'] #push .pb_mode,
#oled[data-pb_type='7'] #p... | CSS |
E2.m1.9.9.1.1.3.2.3.4.2.3" xref="S0.E2.m1.9.9.1.1.3.2.3.4.1.cmml">)</mo></mrow></mrow><mo id="S0.E2.m1.9.9.1.1.3.2.1a" xref="S0.E2.m1.9.9.1.1.3.2.1.cmml">−</mo><mrow id="S0.E2.m1.9.9.1.1.3.2.4" xref="S0.E2.m1.9.9.1.1.3.2.4.cmml"><msup id="S0.E2.m1.9.9.1.1.3.2.4.2" xref="S0.E2.m1.9.9.1.1.3.2.4.2.cmml"><mi id="S0.E2.m1.9... | HTML |
(t *testing.T) {
suite.Run(t, new(MsgsTestSuite))
}
func (s *MsgsTestSuite) TestMsgAddRateLimit() {
testCases := []struct {
name string
msg *types.MsgAddRateLimit
expPass bool
}{
{
name: "success: valid add msg with channel id",
msg: &types.MsgAddRateLimit{
Signer: s.authority,
... | Go |
padding: 16px;
margin-bottom: 18px;
border: 1px solid transparent;
}
.wpforms-admin-page .wpforms-alert h4 {
margin-top: 0;
color: inherit;
}
.wpforms-admin-page .wpforms-alert p {
margin: 0 0 15px 0;
}
.wpforms-admin-page .wpforms-alert p:last-of-type {
margin: 0;
}
.wpforms-admin-page .wpforms-alert.w... | CSS |
onumber(GetCVar("lastTransmogOutfitID"));
end
-- ***** BUTTONS
function WardrobeTransmogButton_OnLoad(self)
local slotID, textureName = GetInventorySlotInfo(self.slot);
self.slotID = slotID;
if ( self.transmogType == LE_TRANSMOG_TYPE_APPEARANCE ) then
self.Icon:SetTexture(textureName);
else
self.Icon:SetTextu... | Lua |
//
// DKNightVersion.h
// DKNightVerision
//
// Created by Draveness on 4/14/15.
// Copyright (c) 2015 DeltaX. All rights reserved.
//
#ifndef DKNightVerision_DKNightVersion_h
#define DKNightVerision_DKNightVersion_h
#import "DKNightVersionManager.h"
#import "NSObject+Night.h"
#import "UIView+BackgroundColor.h"
#... | C |
compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CON... | Kotlin |
tsmanager::client::Client;
use cosmos_gravity::crypto::DEFAULT_HD_PATH;
use serde::{Deserialize, Serialize};
use signatory::FsKeyStore;
use std::io;
use std::net::SocketAddr;
use std::path::Path;
#[derive(Clone, Debug, Deserialize, Serialize)]
pub enum Keystore {
File(String),
Aws,
}
impl Default for Keystore... | Rust |
Activities = [
Activity(
id: 1,
name: 'Meditate',
description: 'Do 10 sets of breathing exercises',
emoji: '🧘',
credits: 1,
),
Activity(
id: 2,
name: 'Watch a TED Talk',
description: 'Keep yourself motivated!',
emoji: '📺',
credits: 1,
),
Activity(
id: 3,
name:... | Dart |
me == test_name then
found = true
local success, test_module = pcall(require, test_info.module_path)
if success then
table.insert(lines, string.format("## %s", test_info.display_name))
table.insert(lines, string.format("- Module: %s", test_info.module_path))
... | Lua |
#pragma once
#include "../kz.h"
class KZMeasureService : public KZBaseService
{
using KZBaseService::KZBaseService;
public:
struct MeasurePos
{
bool IsValid() const
{
return origin != vec3_invalid && normal != vec3_invalid;
}
void Invalidate()
{
origin = vec3_invalid;
normal = vec3_invalid;
}... | C |
require( "npx_task" )
----------------------------------------------------------------------------
if CDotaNPXTask_InterruptAbility == nil then
CDotaNPXTask_InterruptAbility = class( {}, {}, CDotaNPXTask )
end
----------------------------------------------------------------------------
function CDotaNPXTask_Inter... | Lua |
Abstract Modular Cubes_Lottie Render 3",ddd:0,assets:[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Cube 3_Top Row",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[128,128,0],ix:2},a:{a:0,k:[128,128,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0... | JavaScript |
>. Bringt mir vierzig Barren Eisen und vierzig Barren Mithril. Dafür sagt Galvan Euch dann alles über verschnörkelte Mithrilhosen!"}, {"Bringt Galvan dem Alten im Schlingendorntal 40 Mithrilbarren und 40 Eisenbarren."}},
[2762] = {"Der große silberne Betrüger", {"Es heißt, dass Echtsilber noch stärker und haltbarer sei... | Lua |
import psycopg2
import pandas as pd
import pickle
import configparser
import time
start_time = time.time()
config = configparser.ConfigParser()
config.read('/home/tav/Desktop/licenta/cfg.ini')
conn = psycopg2.connect(
host=config['Database']['host'],
database=config['Database']['db'],
user=config['Da... | Python |
uches[0].pageY) : null };
Blockly.Trashcan = function(a) {
this.workspace_ = a;
this.hasBlocks_ = !1;
this.contents_ = [];
0 >= this.workspace_.options.maxTrashcanContents || (a = { scrollbars: !0, disabledPatternId: this.workspace_.options.disabledPatternId, parentWorkspace: this.workspace_, RTL: this.... | HTML |
max-width:47.0588235294rem;overflow:visible}[data-v-96337f98] .navigator-filter .quick-navigation-open{margin-left:var(--nav-filter-horizontal-padding);width:calc(var(--nav-filter-horizontal-padding)*2)}.documentation-layout[data-v-96337f98]{--nav-transition-duration:0.15s;display:flex;flex-flow:column;background:var(-... | CSS |
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/* QLogic qed NIC Driver
* Copyright (c) 2015-2017 QLogic Corporation
* Copyright (c) 2019-2020 Marvell International Ltd.
*/
#ifndef __STORAGE_COMMON__
#define __STORAGE_COMMON__
/*********************/
/* SCSI CONSTANTS */
/*********************/
#d... | C |
marginTypeStr == "SOFT_MARGIN" ? SOFT_MARGIN :
marginTypeStr == "HARD_MARGIN" ? HARD_MARGIN : -1;
if( marginType < 0 )
CV_Error( cv::Error::StsParseError, "Missing or invalid margin type" );
params.marginType = marginType;
CV_Assert ( fn["marginRegula... | C++ |
().(func(super func() QAbstractAxis__AxisType) QAbstractAxis__AxisType)
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
virtualReturn := gofunc((&QLogValueAxis{h: self}).callVirtualBase_Type)
return (C.int)(virtualReturn)
}
func (this *QLogValueAxis) callVirtualBase_Event(event *qt6... | Go |
) imageQuality.value = v;
}
: null)),
const Divider(color: MyTheme.border),
for (var e in codecRadios)
Obx(() => getRadio<String>(
e.child,
e.value,
codec.value,
e.onChanged != null
? (v) {
... | Dart |
VERITY_ERROR_RESOURCE) {
@Override
protected boolean recordError(Matcher matcher, ErrorParserManager eoParser) {
super.recordError(matcher, eoParser);
return true;
}
},
//Unterminated variable reference. Stop.
new ErrorPattern("(make.*[uU]nterminated variable reference.\\s*Stop.)", 1, //$... | Java |
.fullPath)
if (!isView) {
state.visitedViews.push({ title: meta.title, fullPath, name })
}
},
REMOVE_VIEW: (state, payload) => {
state.visitedViews.splice(payload, 1)
},
},
actions: {
addView({ commit }, view) {
commit('ADD_VIEW', view)
},
reomveView({ commit ... | Typescript |
ter long beam",
"Dessgeega killed after statue room",
"All three hives destroyed",
"Bugs killed after bombs",
"Ziplines activated",
"Plant destroyed (in lava)",
"Plant destroyed (post-Varia)",
"Plant destroyed (Varia 2)",
"Plant destroyed (Varia 3)",
"Plant destroyed (Varia 1)",
"Kraid baristutes dead",
"Kra... | Lua |
他们是:
</p>
<p>
罗模忠、覃廷多、彭银金(女)、张国政、韦明惯、谭启高、韦武平、韦英瑜、韦善主、龙振党、覃太波、黄斗朋、李国华、韦德森、黄土硬、李世强、李耀基、张太保、覃许钰、龙正安、陈武康、朱绍康、廖宪祯、卢银田、吴胜芳、莫朗华、胡月华、李秀新、黄龙收、黄启明、黄开强、潘齐隆、陈彪、韦东欣、谭炳辉、韩步信、黎信珊、覃甫备、韦日光、吴梦禾、谭长苗、覃振权、韦文湘、韦荣忠、武桂发、覃世安、陈竞明、陈水春、华群、韦忠福、韦铁委、周胜松、
</p>
<p>
2、杀人或与杀人有牵连的农民81人,他们是:
</p>
<p>
覃家成、黄太广、黄明海、韦旭芳、韦扬正、韦建升、覃兴强、覃敏瑶、李社... | HTML |
cause crashes!':
'पुराने/कमजोर उपकरणों पर बहुत अधिक समवर्ती डाउनलोड का उपयोग करने से क्रैश हो सकता है!',
'Create .nomedia files': '.nomedia फ़ाइलें बनाएं',
'To prevent gallery being filled with album art':
'गैलरी को एल्बम कला से भरने से रोकने के लिए',
'Sleep timer': 'सोने का टाइमर',
'Min... | Dart |
exact element, and there is no next-closest
// element than the one we are searching for, so we return -1.
var mid = Math.floor((aHigh - aLow) / 2) + aLow;
var cmp = aCompare(aNeedle, aHaystack[mid], true);
if (cmp === 0) {
// Found the element we are looking for.
return mid;
}
... | JavaScript |
g\xe8\xe1\xeb^i\xa4\xf9\x1bi\xb6\xdf\
*Zj\xaf\xbbZ\xa7\xd3mvG\x1f\xa2\xf8C\xc5\
Z\x0e\x85\xe3\xdd/\xfbNxu\xdf\x05\xeb\xb2|Y\
\xf1,7\x10\x99\xe2\xf1&\x8d\xe1\xbb\xed\x1c\xf9Zu\
\xdf\x97u}\xad\xdf\xe9O>\xb1s\xa3\xea\xbfeF\
\xb8\xf1\x1d\x9ai\x97/\x0d\xa8\x92Yv|k\xfb:\
\xe8Zj\xaf\x89\xec>+\xe8k\xa1\xf8r\xc7\xc3\xbe\
\x12\x... | Python |
co = 0;
// convolution and HerPN parameters
ci = 3, co = 16;
in.open(dir + "/conv1_weight.txt"); if(!in.is_open()) throw std::runtime_error("file is not open");
for(long i=0; i<fh*fw*ci*co; i++) {in>>val; conv_weight[num_c].emplace_back(val);} in.close();
in.open(dir + "/herpn_w0.txt"); if(!in.is_open()) throw ... | C++ |
null;
foreach (var talent in StatsHeroesTalents4Collection)
talent.TalentImage = null;
foreach (var talent in StatsHeroesTalents7Collection)
talent.TalentImage = null;
foreach (var talent in StatsHeroesTalents10Collection)
talent.Talen... | C# |
mmand; }
}
public BitmapSource BackImage
{
get
{
Bitmap bmp = CustomBA.Properties.Resources.page4;
return System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(bmp.GetHbitmap(),
IntPtr.Zero, System.Windows.Int32Re... | C# |
sso di backup è stato interrotto",
"backup_restore.backup.complete_desc.success":
"Il processo di backup è stato un successo! Puoi trovare il backup a ",
"backup_restore.backup.complete_desc.success.no_file":
"Il processo di backup è stato un successo! Ora puoi chiudere questa finestra",
"ba... | Dart |
require 'PhysicalObject'
UmbrellaObject = PhysicalObject:subclass('UmbrellaObject')
local UmbrellaImage = love.graphics.newImage("umbrella.png")
function UmbrellaObject:initialize(x, y)
PhysicalObject.initialize(self, x, y, "dynamic")
self.umbrellaImage = UmbrellaImage
self:setImage(self.umbrellaImage)
... | Lua |
ut rewriting a great deal of code.
*/
internal class NpcAvatarRepository(
private val allocator: ByteBufAllocator,
private val extendedInfoFilter: ExtendedInfoFilter,
private val extendedInfoWriter: List<NpcAvatarExtendedInfoWriter>,
private val huffmanCodec: HuffmanCodecProvider,
private val zoneI... | Kotlin |
writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// 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.
//
//! Client for the Trusted Information Retrieva... | Rust |
Field.isVisible = checkElement.checked;
MemoryManager.instance.filterAndRender();
})
this.filColsContEl.appendChild(field.element)
});
}
/** Filtra los atributos de los objetos de la lista */
private filterCols(list: any[]): any[] {
this.colsCkBx.for... | Typescript |
com/sasha-s/go-deadlock"
)
// EnableDeadlock is a flag to enable deadlock detection.
const EnableDeadlock = true
func init() {
deadlock.Opts.DeadlockTimeout = 20 * time.Second
}
// A Mutex is a mutual exclusion lock.
type Mutex struct {
deadlock.Mutex
}
// An RWMutex is a reader/writer mutual exclusion lock.
type... | Go |
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from winrt/windows.applicationmodel.search.h in the Windows SDK for Windows 10.0.26100.0
// Original source is Copyright © Microsoft. All rights reserved.
using S... | C# |
ായും തിന്മയായും താന് പ്രവര്ത്തിച്ച ഓരോ കാര്യവും (തന്റെ മുമ്പില്) ഹാജരാക്കപ്പെട്ടതായി ഓരോ വ്യക്തിയും കണ്ടെത്തുന്ന ദിവസത്തെക്കുറിച്ച് (ഓര്ക്കുക) . തന്റെയും അതിന്റെ (ദുഷ്പ്രവൃത്തിയുടെ) യും ഇടയില് വലിയ ദൂരമുണ്ടായിരുന്നെങ്കില് എന്ന് ഓരോ വ്യക്തിയും അന്ന് കൊതിച്ചു പോകും. അല്ലാഹു തന്നെപ്പറ്റി നിങ്ങള്ക്ക് താക്കീത് നല... | Dart |
couldn't be found
/// on the <see cref="ResourceType" />.
/// </exception>
public extern string GetDescription();
/// <summary>
/// Gets the UI display string for Prompt.
/// <para>
/// This can be either a literal, non-localized string provided to <see cref=... | C# |
constraints = {
budget = "medium", -- low, medium, high
timeline = "2 weeks", -- Expected development timeline
team_size = "3-5 developers",
performance = {
load_time = "< 2 seconds",
concurrent_users = "1000",
response_time = "< 100ms"
},
... | Lua |
}
.mr-xxl-n36,
.mx-xxl-n36 {
margin-right: -9rem !important;
}
.mb-xxl-n36,
.my-xxl-n36 {
margin-bottom: -9rem !important;
}
.ml-xxl-n36,
.mx-xxl-n36 {
margin-left: -9rem !important;
}
.m-xxl-n37 {
margin: -9.25rem !important;
}
.mt-xxl-n37,
.my-xxl-n37 {
margin-top: -9.25rem ... | CSS |
ng, ByVal lpName As
String) As Long
Private Declare Function GetLastError Lib "kernel32" () As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As
Long
Private Const ERROR_ALREADY_EXISTS = 183&
Private m_hMutex As Long
Private Declare Function EnumWindows Lib "user32" (ByVal lpEnum... | HTML |
y + 3, 0x2716, "Refresh", new GumpCallback(Refresh));
string txt = "";
Channel.ChatHistory ch;
ArrayList list = c_Channel.GetHistory(Owner);
for(int i = list.Count-1; i >= 0; --i)
{
ch = (Channel.ChatHistory)list[i];
txt += St... | C# |
ams.peer_data_update_succeeded.action = PM_PEER_DATA_OP_UPDATE;
pm_evt.params.peer_data_update_succeeded.token = PM_STORE_TOKEN_INVALID;
pm_evt.params.peer_data_update_succeeded.flash_changed = false;
evt_send(&pm_evt);
}
else
{
if ... | C |
ading =
parentElement.matches(HeadingSelector) ||
!!parentElement.closest(HeadingSelector);
if (TimePattern.test(nodeValue)) time = nodeValue.trim();
else group[isHeading ? 0 : 1].push(nodeValue.trim());
return group;
... | Typescript |
allow_inplace_modification=inplace,
default_enclosing=default_enclosing,
reuse_previous_enclosing=reuse_previous_enclosing,
enclose_integers=enclose_ints, # This should not impact String
)
transformed_library = middleware.transform(library=Library([input_string]))
# Assert corre... | Python |
_valid = false;
const password = "supesecuredpassword";
let request_password = search_params.get("pw");
if (request_password) {
if (request_password == password) {
password_valid = true;
}
}
if (password_valid == false) {
req.respond({
body: "Not Allowed. Wrong Pass... | Typescript |
/* SPDX-License-Identifier: GPL-2.0-or-later */
/**************************************************************************
* Copyright (C) 2012 by Andreas Fritiofson *
* andreas.fritiofson@gmail.com *
****************************************... | C |
stProviderPropertiesRequest(c *xgb.Conn, Provider Provider) []byte {
size := 8
b := 0
buf := make([]byte, size)
c.ExtLock.RLock()
buf[b] = c.Extensions["RANDR"]
c.ExtLock.RUnlock()
b += 1
buf[b] = 36 // request opcode
b += 1
xgb.Put16(buf[b:], uint16(size/4)) // write request size in 4-byte units
b += 2
... | Go |
_Unknown5)) {
_nifmCmdNoIO(&r->s, 4); // Submit (sdknso ignores error)
_nifmUpdateState(r);
}
return rc;
}
Result nifmRequestSubmitAndWait(NifmRequest* r) {
Result rc=0;
NifmRequestState tmp;
rc = nifmRequestSubmit(r);
if (R_FAILED(rc)) return rc;
while(1) {
rc = ... | C |
import argparse
import time
from concurrent.futures import ThreadPoolExecutor
import sky
# NUM_NODES = 8
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("--num_nodes", type=int, default=32)
parser.add_argument("--year", type=int, default=2023)
parser.add_argument("--region", ... | Python |
from fastapi import APIRouter, Depends, HTTPException, status
from sqlalchemy.orm import Session
from typing import List
from pydantic import BaseModel
from hass_panel.core.deps import get_db
from hass_panel.core.auth_deps import get_current_user
from hass_panel.core.hash_utils import hash_password, verify_password
fr... | Python |
img.com/favicons/981423e7d8b22c3f3e8fe73fda5d607a9ec3bd3ab6825b18224fb6b9.png?9bdda8b87257d2efba84d0f1f6eb4c04"}, "article": {"description": "Learn how to make your own DIY Skull Vase plus more gorgeous black and white Halloween party ideas! These simple DIY halloween crafts will make your party extra special this year... | HTML |
ut:focus:not(:checked)~.custom-control-label::before,.accent-warning .custom-file-input:focus~.custom-file-label,.accent-warning .custom-select:focus,.accent-warning .form-control:focus:not(.is-invalid):not(.is-warning):not(.is-valid){border-color:#ffe187}.accent-warning .page-item .page-link{color:#ffc107}.accent-warn... | CSS |
Mapping from here: https://docs.magalu.cloud/docs/storage/object-storage/Classes-de-Armazenamento/standard
Name: "storage_class",
Help: "The storage class to use when storing new objects in Magalu.",
Provider: "Magalu",
Examples: []fs.OptionExample{{
Value: "STANDARD",
Help: "Standard stor... | Go |
failed_calls_affect_priority_template(count)
prepare_affect_priority_rs(g, count)
local timeout = vconsts.CALL_TIMEOUT_MIN * 4
-- Find prioritized replica and disable failover for now.
g.router:exec(function(rs_uuid, replica_uuid)
local router = ivshard.router.internal.static_router
loc... | Lua |
td-main-sidebar" role="complementary">
<div class="td-ss-main-sidebar">
<aside class="td_block_template_1 widget widget_text"> <div class="textwidget"><script type="text/javascript">
googletag.cmd.push(function() {
googletag.defineSlot('/22084339/ElCaribe_Panorama_300x250(1)', [300,250], 'div-gpt-ad-19739875... | HTML |
widthSpec = unspecified(), heightSpec = unspecified()) {
Row.create(lithoTestRule.context)
.wrapInView()
.kotlinStyle(Style.width(100.px).height(100.px))
.build()
}
.assertMatches(match<LithoView> { bounds(0, 0, 100, 100) })
}
@Test
fun specComp... | Kotlin |
Vlad Balkarov//vlad//
/** Хост. Часть "Auth". Общее. Задания. Вход в систему. Ввод. */
export class AppHostPartAuthCommonJobLoginInput {
/**
* Имя пользователя данных.
* @type {?string}
*/
dataUserName?: string;
/**
* Адрес электронной почты данных.
* @type {?string}
*/
dataEmail?: string;... | Typescript |
.add(blockAddr);
//
// block data
byte[] fdata = file.build();
array.add(fdata, blockAddr, blockLen);
//
return array.build();
}
}
package com.cf.forward.dh.yangbang;
import java.util.Calendar;
import java.util.Date;
public class BxCmdSystemClockCorrect extends Bx... | Java |
么必须导入
// 可以使用import形式之一
// 模块是自声明的;两个模块之间的关系是通过文件级别上使用imports和exports建立的
// 如果一个文件不带有顶级的import 或者export 声明,那么它的内容会被视为全局可见,因此对模块也是可见的
// 导出,都能够通过添加exprot关键字来导出。
// implements 实现一个接口,实现一个接口,就要实现这个接口下的所有的方法
export interface StringValidator {
isAccetable(s: string): boolean
}
export const numberRegexp = /^[0-9]+$/
exp... | Typescript |
0).with { "ALICE" }
}
@Test(expected = IllegalArgumentException::class)
fun `update with wrong type`() {
typed.update("age").with { "string" }
}
@Test
fun `update with null`() {
val updated = typed.update { age }.at(2).withNull()
updated.age[2] shouldBe null
upd... | Kotlin |
/
BufFile **outerBatchFile; /* buffered virtual temp file per batch */
/*
* Info about the datatype-specific hash functions for the datatypes being
* hashed. These are arrays of the same length as the number of hash join
* clauses (hash keys).
*/
FmgrInfo *outer_hashfunctions; /* lookup data for hash fu... | C |
E:
flutter_controller_->engine()->ReloadSystemFonts();
break;
}
return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
}
/*
* Reflectance Maps
*
* Authors: Antoine TOISOUL LE CANN
*
* Copyright © 2016 Antoine TOISOUL LE CANN
* All rights reserved
*
*
* Ref... | C++ |
=> {
let n = drawNote(ele, { x: g.p[i], y: position.y });
r.appendChild(n.r);
});
g.l.forEach((ele) => {
r.appendChild(line(g.p[ele.s] - dimens.note_font_size / 4 - dimens.bottom_line_margin,
dimens.note_font_size + dimens.point_gap * (ele.y + 1),
g.p[ele.... | Typescript |
0
n.idleTick = 0
n.syncRespTimeoutTick = 0
n.syncing = false
if !n.onlySync {
n.onlySync = true
}
if e.Reason == types.ReasonOk {
// if n.Key() == "clusterconfig" {
// n.Info("SyncResp...", zap.Uint64("from", e.From), zap.Uint64("index", e.Index), zap.Int("len", len(e.Logs)))
// }
if len(e... | Go |
;
FileSystemPath = fileSystemPath;
PartFileSystemType = Directory.Exists(FileSystemPath) ? PartFileSystemTypeEnum.Folder : (File.Exists(fileSystemPath) ? PartFileSystemTypeEnum.File : PartFileSystemTypeEnum.None);
Exists = PartFileSystemType == PartFileSystemTypeEnum.File || PartFile... | C# |
<li data-menuboxes="imswr,footer,title,breadcrumbs" data-menubox-priority="4" data-menubox-filter-section="sport" data-menubox-items-level="1" data-menubox-items-level-section="2" data-menubox-title="SWR Sport">
<a href="/sport/index.html" data-menubox-item-name-section="Startseite">SWR Sport</a>
<ul class="navbar-na... | HTML |
в рамките на няколко блока; Транзакция със средна такса се очаква да бъде потвърдена в рамките на един ден; Транзакция с ниска такса се очаква да бъде потвърдена в рамките на една седмица.';
@override
String faq250Sbanswer8722Sb33(Object appName) {
return 'Можете да изтеглите монети от портфейла $appName в ли... | Dart |
server_error_detected = True
# If this is a critical error and we have retries left, restart
if "Protocol initialization error" in error_msg and retries_left > 0:
console.print(
... | Python |
elbutton.controlLeft(self.okbutton)
self.cancelbutton.controlRight(self.okbutton)
self.okbutton.controlDown(self.chkbutton[2])
self.okbutton.controlUp(self.chkbutton[8])
self.cancelbutton.controlDown(self.chkbutton[0])
self.cancelbutton.controlUp(self.chkbutton[6])
self.s... | Python |
al::Pure.DI.Abstractions.InjectAttribute>(1)
.Accumulate<global::System.IDisposable, global::Pure.DI.Abstractions.Own>(
Lifetime.Transient,
Lifetime.PerResolve,
Lifetime.PerBlock)
#if NETCOREAPP3_0_OR_GREATER || NETSTANDARD2_1_OR_GREATER
... | C# |
<input type="text" class="rounded-end-pill w-100 border-none bg-transparent" /> <!-- search bar -->
</div>
<div class="w-15 d-flex justify-content-between align-items-center">
<a href="http://127.0.0.1:8030/redoc/"><img src="{% static 'users/images/developer.png' %}" alt="developer" class="icon" title="API... | HTML |
="l00189"></a>00189 <span class="comment">/* x[1] * y[srcBLen - 3] */</span>
<a name="l00190"></a>00190 sum = (<a class="code" href="arm__math_8h.html#adc89a3547f5324b7b3b95adec3806bc0" title="32-bit fractional data type in 1.31 format.">q31_t</a>) ((((<a class="code" href="arm__math_8h.html#a5aea1cb12fc02d... | HTML |
************************
* Generic unwind functions
*/
/***********************************************************************
* RtlUnwind (NTDLL.@)
*/
void WINAPI RtlUnwind( void *frame, void *target_ip, EXCEPTION_RECORD *rec, void *retval )
{
CONTEXT context;
RtlUnwindEx( frame, target_ip, ... | C |
feredReader(outputCharset).readText().trim()
if (result.isNotEmpty()) {
logger.info("Command result: $result")
} else {
logger.info("Done.")
}
if (result.isNotEmpty() || process.exitValue() == 0) return result
val errorResult = process.errorStream.buffered... | Kotlin |
rap();
let elements = reader
.par_map_reduce(|_element| 1, || 0_usize, |a, b| a + b)
.unwrap();
assert_eq!(elements, 5);
}
}
#[test]
fn read_ways_and_deps() {
for path in &TEST_FILE_PATHS {
let mut reader = IndexedReader::from_path(path).unwrap();
let ... | Rust |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER 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
* SO... | Rust |
// Accept call from "Transferee".
const auto transferorCallFromTransferee = transferor.getCurrentCall();
BC_HARD_ASSERT(transferorCallFromTransferee.has_value());
transferorCallFromTransferee->accept();
asserter
.iterateUpTo(
0x20,
[&]() {
FAIL_IF(transfereeCallToTransferor->getSta... | C++ |
d.write(out)
pyi_output_path = f"{no_suffix_output_path}.pyi"
print(f"Generating {pyi_output_path}")
template = env.get_template("bindings.tmpl.pyi")
out = template.render(classes=classes_specs, constants=constants_specs)
with open(pyi_output_path, "w") as fd:
fd.write(out)
pxd_output_... | Python |
imageUrls: (json['imageUrls'] as List<dynamic>?)
?.map((e) => e as String)
.toList(),
category: json['category'] as String? ?? '',
isPopular: json['isPopular'] as bool? ?? false,
createdAt: json['createdAt'] as String? ?? '',
updatedAt: json['updatedAt'] as... | Dart |
COROUTINE R11 ; NEXT
;; ;
:SEMICOLON_Text
";"
:SEMICOLON_Entry
&RBRACK_Entry ; Pointer to RBRAC
&SEMICOLON_Text ; Pointer to Name
'00000002' ; Flags [F_IMMED]
&SEMICOLON_Code ; Where assembly is Stored
:SEMICOLON_Code
LOADUI R0 $EXIT_Entry ; G... | Assembly |
as AppBarLayout.LayoutParams).scrollFlags = AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL or AppBarLayout.LayoutParams.SCROLL_FLAG_EXIT_UNTIL_COLLAPSED
}
override fun layout() = xml("""
<android.support.design.widget.CoordinatorLayout fitsSystemWindows="true" layout_height="match_parent" layout_width... | Kotlin |
{align = 'cm', minw = 20, minh = 10, padding = 0.15, r = 0.5, colour = G.C.CLEAR}, nodes = {
{n=G.UIT.R, config={minw = 20, minh = 10, padding = 0.15, colour = G.C.BLACK, r = 0.5}, nodes = {
{n=G.UIT.R, config={minw = 20, minh = 9, padding = 0.15, r = 0.3, colour = G.C.GREY}, nodes = { --Row containing roulet... | Lua |
arshall(
&schedulerobjects.PodRequirements{
Tolerations: []*v1.Toleration{
{
Key: "whale",
Value: "true",
Effect: v1.TaintEffectNoSchedule,
},
},
},
),
},
{
RunID: uuid.NewString(),
JobID: dbJobs[0].JobID,
JobSet: "test-jobset",
Executor:... | Go |
user_sdma_queue_fp(fp),
(u32 __user *) (unsigned long)
cmd.cmd.sdma_complete);
break;
case QIB_CMD_ACK_EVENT:
ret = qib_user_event_ack(rcd, subctxt_fp(fp),
cmd.cmd.event_mask);
break;
}
if (ret >= 0)
ret = consumed;
bail:
return ret;
}
static ssize_t qib_write_iter(struct ki... | C |
118.38);
// create a marker at each place
var A = L.marker(LosAngeles, { draggable: true }).addTo(map);
var B = L.marker(Berlin, { draggable: true }).addTo(map).bindPopup("Drag me.").openPopup();
// draw a geodesic line between these places
const geodesic = L.geodesic([A.getLat... | HTML |
10.9,15.75H9.48v2.17H7.73V8.45h3.61c0.98,0,1.83,0.31,2.53,0.83c0.69,0.53,1.14,1.28,1.14,2.4C15.01,13.36,14.47,14.66,13.75,15.11z M10.9,10.01h-1.42v4.15h1.17c1.38,0,2.35-0.5,2.35-2.17C13,10.54,12.14,10.01,10.9,10.01z"/>
</svg>
"""
DOC_TYPE_PDF -> """
<svg xmlns="ht... | Kotlin |
pub user: UserAttrs,
}
<filename>lib/src/hierarchy.rs
//! The Hierarchy model describes how Resources are structed in a tree-like shape.
//! It dealt with authorization (read / write grants)
use core::fmt;
use crate::{errors::AtomicResult, urls, Resource, Storelike};
#[derive(Debug)]
pub enum Right {
Read,
... | Rust |
kit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important;margin-right:6px}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar .ab-item:before{color:#a7aaad;color:rgba(240,246,252,.6)}#wpadminbar #adminbarsearch:before,#wpadminbar .ab-icon:before,#wpadminbar... | CSS |
}
}
#[fasync::run_singlethreaded(test)]
async fn test_create_disk() {
let disk = TestFatDisk::empty_disk(2048 << 10); // 2048K disk.
let structure = TestDiskContents::dir()
.add_child("test", "This is a test file".into())
.add_child("empty_folder", TestDiskContents:... | Rust |
_external_memory_rdma"
)
EnumConstant(
"STRUCTURE_TYPE_MEMORY_GET_REMOTE_ADDRESS_INFO_NV".."1000371000",
"STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_RDMA_FEATURES_NV".."1000371001"
)
EnumConstant(
"MEMORY_PROPERTY_RDMA_CAPABLE_BIT_NV".enum(0x00000100)
)
EnumConstan... | Kotlin |
width: 100%;
margin-right: 0;
padding-top: .5em;
padding-bottom: .5em;
}
.woocommerce div.product .woolentor-quick-cart-area form.cart .variations select:focus {
outline: none;
}
.woolentor-quick-cart-area .quantity {
display: none !important;
}
.woolentor-quick-cart-area .single_add_to_cart_butto... | CSS |
= date_obj.strftime("%Y-%m-%d")
new_date_str = date_obj_ny.strftime("%Y-%m-%d %H:%M:%S")
query = query_template.format(symbol=symbol)
try:
df = pd.read_sql_query(query, ... | Python |
The DRB2 newtx buffer is emptied before DRB1 newtxs
nof_pending_bytes = lch_handler.get_dl_tx(drb_to_lcid(lte_drb::drb2));
TESTASSERT(test_newtx_until_empty(lch_handler, drb_to_lcid(lte_drb::drb2), 500) == nof_pending_bytes);
// TEST6 - The DRB1 buffer is emptied
nof_pending_bytes = lch_handler.get_dl_tx(drb_... | C++ |
V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>
{
if self.tag.is_some() {
let tag = self.tag.take().unwrap();
visitor.visit_i8(tag)
} else if self.data.is_some() {
let data = self.data.take().unwrap();
match data {
... | Rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.