content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
play.handle_event(timer, &mut MicrobitGpio(gpio));
}
<filename>crates/simplexpr/src/ast.rs
use crate::dynval::DynVal;
use eww_shared_util::{Span, Spanned};
use itertools::Itertools;
use serde::{Deserialize, Serialize};
use eww_shared_util::VarName;
#[rustfmt::skip]
#[derive(Clone, PartialEq, Eq, Serialize, Deserializ... | Rust |
], #32
stp q19, q20, [x15], #32
stp q21, q22, [x15], #32
stp q23, q24, [x19], #32
stp q25, q26, [x19], #32
sub x3, x3, x2
sub x9, x9, x2
sub x10, x10, x2
sub x11, x11, x2
sub x1, x1, 16
b.ne .Louter_loop
b .Lreturn
.Ltail_8:
tbz w1, 3, .Ltail_4
... | Assembly |
vaddstr(stalinmode?21:20,33,"Public Mood");
set_color(COLOR_GREEN,COLOR_BLACK,1);
mvaddstr(21,1,"Liberal");
set_color(COLOR_RED,COLOR_BLACK,1);
mvaddstr(21,67,"Conservative");
set_color(COLOR_GREEN,COLOR_BLACK,1);
mvaddstr(22,0,"\x11");
set_color(COLOR_CYAN,COLOR_BLACK,1);
mvaddstr(22,16,"");
... | C++ |
()) {
/**
* Execute commands with provided [args]
*/
override fun execute(args: Array<String>) {
if (args.size == 2) {
val theName = args[1]
if (theName.equals("reset", true)) {
UUIDSpoofer.spoofId = null
chat("§aSuccessfully resetted y... | Kotlin |
)]
#[doc(hidden)]
pub struct _BB_AESCNTL;
#[doc = "`read()` method returns [bb_aescntl::R](bb_aescntl::R) reader structure"]
impl crate::Readable for BB_AESCNTL {}
#[doc = "`write(|w| ..)` method takes [bb_aescntl::W](bb_aescntl::W) writer structure"]
impl crate::Writable for BB_AESCNTL {}
#[doc = "AES-128 ciphering co... | Rust |
ustom-accordion-title-color:#313a46;--ct-dragula-bg:#f7f9fb;--ct-form-wizard-header-bg:#eef2f7;--ct-text-title-color:#6c757d;--ct-page-title-color:#6c757d;--ct-card-loader-bg:#313a46;--ct-chat-primary-user-bg:#fef5e4;--ct-chat-secondary-user-bg:#f1f3fa;--ct-auth-bg:#fff;--ct-apex-grid-color:#f9f9fd;--ct-hero-bg:linear-... | CSS |
ethod sets ADC14CLRIFGR1 to value 0"]
impl crate::Resettable for ADC14CLRIFGR1_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}
<filename>src/max_flow.rs
use std::sync::{atomic::AtomicI32, Arc};
use crate::graph::NodeID;
use bitvec::vec::BitVec;
#[derive(Copy, Clone, Debug, PartialEq,... | Rust |
/*++
Copyright (c) 2019 changeofpace. All rights reserved.
Use of this source code is governed by the MIT license. See the 'LICENSE' file
for more information.
--*/
#pragma once
#include <fltKernel.h>
#include <ntddmou.h>
#include "../Common/ioctl.h"
//===========================================================... | C |
* (_vertex1 + _vertex2);
}
public override float ComputeSubmergedArea(ref Vector2 normal, float offset, ref Transform xf, out Vector2 sc)
{
sc = Vector2.Zero;
return 0;
}
public bool CompareTo(EdgeShape shape)
{
return (HasVertex0 == ... | C# |
order-width:1px 1px 1px 1px;border-style:solid solid solid solid;box-shadow:0px 0px 0px 0px transparent;}.amis-scope .rdtBtn + .rdtBtn{margin-left:0.25rem;}.amis-scope .rdtBtnCancel{color:#d4d6d9;background:#ffffff;border-color:#151b26 #ffffff #528eff #528eff;border-width:#ffffff #144bcc #144bcc 1px;border-style:solid ... | CSS |
_id) {
self.material.replace(mat.clone_loaded());
}
}
if let Some(mesh) = self.mesh.take() {
self.mesh_handle =
Some(loader.load_from_data(mesh.clone().into(), &mut *progress, meshes_storage));
ret = true;
}
if let Some(... | Rust |
horribly wrong
// with playing it and it has shutdown. Or we just stopped it. Either way,
// we need to clear it out of our list.
if (!fMovies[i]->GetFileName().IsValid())
{
delete fMovies[i];
fMovies[i] = fMovies.back();
fMovies.pop_back();
}
return true;
}
hsSsize_t p... | C++ |
//运动规划:
//1.确定焊接方向
//2.分割焊接缝
//3.计算焊接点
//4.为每个焊接点计算旋转方向
#include <ros/ros.h>
#include <math.h>
#include <iostream>
#include <vector>
#include <ctime>
#include <Eigen/Dense>
#include <image_transport/image_transport.h>
#include <opencv2/highgui/highgui.hpp>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs... | C |
distribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even ... | Kotlin |
gs for move-down */
#define AUFS_MVDOWN_DMSG 1
#define AUFS_MVDOWN_OWLOWER (1 << 1) /* overwrite lower */
#define AUFS_MVDOWN_KUPPER (1 << 2) /* keep upper */
#define AUFS_MVDOWN_ROLOWER (1 << 3) /* do even if lower is RO */
#define AUFS_MVDOWN_ROLOWER_R (1 << 4) /* did on lower RO */
#define AUFS_MVDOWN_ROUPPER (1 << ... | C |
import os
import sys
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))))
sys.path.append(root)
# ----------------------------------------------------------------------------
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# ht... | Python |
pub fn set_alphabet(&mut self, alphabet: String)
{
let mut alphabet = alphabet;
alphabet.push('*');
self.alphabet = alphabet;
}
}use crate::graphics::ShaderDescription;
#[derive(Debug, Clone)]
pub struct ShaderSet {
pub vertex: ShaderDescription,
pub hull: Option<ShaderDes... | Rust |
thrustSeaLevel: freezed == thrustSeaLevel
? _self.thrustSeaLevel
: thrustSeaLevel // ignore: cast_nullable_to_non_nullable
as NetworkThrust?,
thrustVacuum: freezed == thrustVacuum
? _self.thrustVacuum
: thrustVacuum // ignore: cast_nullable_to_non_nullable
... | Dart |
ccakP1600_AddBytes_Exit:
pop {r4,pc}
@ ----------------------------------------------------------------------------
@
@ void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
@
.align 8
.global KeccakP1600_OverwriteBytes
.type KeccakP1600_Overwrite... | Assembly |
/*
* Copyright Beijing 58 Information Technology Co.,Ltd.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to ... | C# |
ata, pos=index)
if not m:
return None, index, False
else:
id = m.group(1).lower()
end = m.end(0)
if not id:
id = text.lower()
return id, end, True
def makeTag(self, href, title, text):
el = etree.Element('a')
e... | Python |
ꈌꈐ"],
PM: ["ꂵꆪꈌꉈ","ꂵꆪꈌꉈ","ꂵꆪꈌꉈ"],
eras: [{"name":"ꇬꑼ","start":null,"offset":0}],
patterns: {
d: "yyyy/M/d",
D: "yyyy'ꈎ' M'ꆪ' d'ꑍ'",
t: "tt h:mm",
T: "H:mm:ss",
f: "yyyy'ꈎ' M'ꆪ' d'ꑍ' tt h:mm",
F: "yyyy'ꈎ' M'ꆪ' d'ꑍ' H:mm:ss",
M: "M'ꆪ' d'ꑍ'",
Y: "yyyy'ꈎ' M'ꆪ'"
}
}
}
});
Glob... | JavaScript |
/common"
"github.com/patrickmn/go-cache"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/smartcontractkit/libocr/offchainreporting2plus/types"
)
const (
// defaultExpiration is the default expiration time for cache items.
defaultExpiration = ... | Go |
_elements;
var eccentricity = Number(orbital_elements.eccentricity);
if (orbital_elements.semi_major_axis) {
var semi_major_axis = orbital_elements.semi_major_axis;
} else if (orbital_elements.periapsis_distance) {
var semi_major_axis = (orbital_elements.periapsis_distance) / (1 - eccentricity)
... | JavaScript |
On("ValidateStateInfoMessage", mock.Anything).Return(nil)
adapter.On("GetMembership").Return([]discovery.NetworkMember{peer2, peer3})
adapter.On("DeMultiplex", mock.Anything)
adapter.On("Gossip", mock.Anything)
adapter.On("Forward", mock.Anything)
adapter.On("GetConf").Return(conf)
gc := NewGossipChannel(pkiID1,... | Go |
,0.5) 10px)}div.dt-autofill-select.top,div.dt-autofill-select.bottom{height:3px;margin-top:-1px}div.dt-autofill-select.left,div.dt-autofill-select.right{width:3px;margin-left:-1px}div.dt-autofill-list{position:fixed;top:50%;left:50%;width:500px;margin-left:-250px;background-color:white;border-radius:6px;box-shadow:0 0 ... | CSS |
20.0996 20.4004c0 11.2002 -9 20.2998 -20.0996 20.2998zM167.8 199.9c-36.2998 0 -66.7998 -31.1006 -66.7998 -66.4004v-48.7998h-36.7002c-31.0996 0 -49.2002 22.5996 -56.7998 54.2002
c-10.2002 42.5 -9.7998 67.8994 0 108.6c8.5 35.5 35.7002 54.2002 66.7998 54.2002h147v13.5996h-106.899v40.7002c0 30.9004 8.19922 47.5996 53.3994... | CSS |
}
function element(matchRoot: boolean): XmlParserNodeWrapper<XmlParserElementNode>|undefined {
const m = match(/^<([^?!</>\s]+)\s*/);
if (!m) return;
// name
const node: XmlParserElementNode = {
type: 'Element',
name: m[1],
attributes: {},
children: []
};
cons... | Typescript |
*
**/
#include "core/plugins/archive_plugins_registrator.h"
#include "core/plugins/player_plugins_registrator.h"
#include "core/plugins/players/multitrack_plugin.h"
#include "core/plugins/players/plugin.h"
#include "formats/chiptune/decoders.h"
#include "formats/multitrack/decoders.h"
#include "module/players/durat... | C++ |
v5, exec_hi, v2
// GFX11: encoding: [0x7f,0x04,0x0a,0x08]
v_sub_f32 v5, null, v2
// GFX11: encoding: [0x7c,0x04,0x0a,0x08]
v_sub_f32 v5, -1, v2
// GFX11: encoding: [0xc1,0x04,0x0a,0x08]
v_sub_f32 v5, 0.5, v2
// GFX11: encoding: [0xf0,0x04,0x0a,0x08]
v_sub_f32 v5, src_scc, v2
// GFX11: encoding: [0xfd,0x04,0x0a,0x08... | Assembly |
HTMLInputElement>document.querySelector('#nomeTarefa');
this._inputPrioridade = <HTMLInputElement>document.querySelector('#prioridadeTarefa');
this._inputDescricao = <HTMLInputElement>document.querySelector('#descricaoTarefa');
this._inputDivContainerTabela = <HTMLInputElement>document.querySele... | Typescript |
"content":
"Indeed, in the creation of the heavens and the earth; the alternation of the day and the night; the ships that sail the sea for the benefit of humanity; the rain sent down by Allah from the skies, reviving the earth after its death; the scattering of all kinds of creatures throughout; the shifting o... | Dart |
@mcp.tool()
def optimize_sd_parameters(
ctx: Context,
goal: str = "quality",
hardware: str = "medium",
image_type: str = "general",
time_budget: int = 60,
quality_preference: float = 0.7
) -> str:
"""
智能优化Stable Diffusion参数
Args:
goal: 优化目标 (speed/quality/balanced)
... | Python |
1.7 45-10.6 11.7-15.6 20.8-15.6 39 0 63.6 37.3 69 74.3 73.1-4.8 4.3-9.1 11.7-10.6 22.3-9.5 4.3-33.8 11.7-48.3-13.9-9.1-15.8-25.5-17.1-25.5-17.1-16.2-.2-1.1 10.2-1.1 10.2 10.8 5 18.4 24.2 18.4 24.2 9.7 29.7 56.1 19.7 56.1 19.7 0 13.9.2 36.5.2 40.6 0 4.3-3 9.5-11.5 8-66-22.1-112.2-84.9-112.2-158.3 0-91.8 70.2-161.5 162-1... | C# |
from typing import Final, Generic, Type, TypeVar
from PySide6.QtCore import QObject
from PySide6.QtWidgets import QComboBox
from eon_timer.util.enum import EnhancedEnum
from eon_timer.util.properties.property import EnumProperty, PropertyChangeEvent
EnhancedEnumT = TypeVar('EnhancedEnumT', bound=EnhancedEnum)
clas... | Python |
(track.ID())
}
c.lock.Lock()
c.subscribedTracks[publisherID] = append(c.subscribedTracks[publisherID], track)
c.lock.Unlock()
logger.Infow(
"client added track",
"participant", c.localParticipant.Identity,
"pID", c.ID(),
"publisherID", publisherID,
"trackID", trackID,
"codec", track.Codec(),
"ssrc",... | Go |
quackquack.ui.plugin.interceptor.QuackInterceptorPlugin
import team.duckie.quackquack.ui.plugin.rememberQuackPlugins
import team.duckie.quackquack.ui.util.ExperimentalQuackQuackApi
import team.duckie.quackquack.util.compose.snapshot.test.SnapshotPathGeneratorRule
@RunWith(AndroidJUnit4::class)
class QuackInterceptorPl... | Kotlin |
aw-button--circular {
border-radius: var(--borderRadiusCircular);
}
.thaw-button--square {
border-radius: var(--borderRadiusNone);
}
.thaw-button--small {
min-width: 64px;
padding: 3px var(--spacingHorizontalS);
font-size: var(--fontSizeBase200);
line-height: var(--lineHeightBase200);
fon... | CSS |
encode: 'western'
});
const source = {
encode: 'western',
name: {
family: 'Doe',
given: 'John',
middle: 'Middle'
},
order: ['given', 'middle', 'family']
};
name.setOrder(Unf.WESTERN_ORDER);
expect(name.source()).toEqual(source);
});
it('Print wes... | Typescript |
result = sw_df.loc[result, 'max_']
print(f'max: {result}')
print(f'-----------------------------------------')
inHistory = True
break
if not inHistory:
... | Python |
1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z
final bonePath = Path();
// Start at M17 10
bonePath.moveTo(17 * scale, 10 * scale);
// Curve c.7-.7 1.69 0 2.5 0 (relative cubic)
bonePath.relativeCubicTo(
0.7 * scale... | Dart |
_1_, int p_146112_2_, int p_146112_3_) {
if (this.field_146125_m) {
TextureManager textureManager = p_146112_1_.getTextureManager();
if (textureManager != null)
textureManager.bindTexture(GuiMerchant.field_147038_v);
GL11.glColor4f(1.0F, 1.... | Java |
namespace Trin_WordAddInDynamicControlsWalkthrough
{
partial class MyRibbon
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/... | C# |
p at room boundaries
end
end
if fadeInRoom then assert.ne(fadeInRoom, fadeOutRoom, 'fade rooms match!') end
if fadeInRoom then
fadeInLevel = math.min(fadeInLevel + fadeRate, 1)
for _,b in ipairs(fadeInRoom.blocks) do b.seen = fadeInLevel end
if fadeInLevel == 1 then fadeInRoom = nil fadeInLevel = nil end
en... | Lua |
)
})
}
/**
* creates an Observable which completes after number of elements specified are emitted by this Observable
* @author asher
* @param amount number of elements to be taken from this emitting Observable
* @return an Observable which completes amount number of elements are emitt... | Typescript |
crumb-border-radius: 0;
$breadcrumb-line-elements-border-width: $border-width !default;
$breadcrumb-line-padding-x: $grid-gutter-width !default;
$breadcrumb-line-border-width: $border-width !default;
$breadcrumb-line-light-bg: ... | CSS |
///
///**Officially Supported Platforms/Implementations**:
///- Android native WebView ([Official API - WebView.reload](https://developer.android.com/reference/android/webkit/WebView#reload()))
///- iOS ([Official API - WKWebView.reload](https://developer.apple.com/documentation/webkit/wkwebview/1414969-reload... | Dart |
icate the case type uses a different field configuration approach\n`;
response += `- **Try Without Content**: Call create_case with just the caseTypeID to see what Pega accepts\n`;
response += `- **Check Configuration**: Verify the case type supports the discovered data view\n`;
} else {
response ... | JavaScript |
_pre(x)
if g is not None:
x = x + self.cond(g)
for i in range(self.num_upsamples):
x = F.leaky_relu(x, LRELU_SLOPE)
x = self.ups[i](x)
xs = None
for j in range(self.num_kernels):
if xs is None:
xs = self.res... | Python |
turn Text;
}
private int CoerceCaretIndex(int value)
{
var text = Text;
var length = text?.Length ?? 0;
return Math.Max(0, Math.Min(length, value));
}
/// <summary>
/// Creates the <see cref="TextLayout"/> used to render the text.
... | C# |
/
/ copyright 1972 bell telephone laboratories inc.
/
/ a6 -- pdp-11 assembler pass 2
opline:
mov r4,r0
jsr r5,betwen; 0; 0177
br 2f
cmp r4,$5
beq opeof
cmp r4,$'<
bne xpr
jmp opl17
xxpr:
tst (sp)+
xpr:
jsr pc,expres
jsr pc,outw
rts pc
2:
movb (r4),r0
cmp r0,$024 /reg
beq xpr
cmp r0,$033 /est text
... | Assembly |
', '224', '', '', '', '', '', '', '', '', '1', '', '', '', '', '2240505', '', '', '', '', '', '', '', '', '', '', '', '', '', ''},
{'2250101', '', 'R1装填运算芯片', '', '', '6', '0', '装填:\n1.提升角色的机动\n2.战斗开始时,获得能量值,效果不可叠加', '装填:\n1.提升角色的机动\n2.战斗开始时,获得能量值,效果不可叠加', '', '', '1', '9999', '', '225', '', '', '', '', '', '', '', '',... | Lua |
utput = rv
rv.mk.validate = plan.Term().ValidateKeys()
return rv
}
func (this *Nest) Accept(visitor Visitor) (interface{}, error) {
return visitor.VisitNest(this)
}
func (this *Nest) Copy() Operator {
rv := &Nest{
plan: this.plan,
}
this.joinBase.copy(&rv.joinBase)
this.mk.validate = this.mk.validate
return... | Go |
.d, v2.d, v3.d }[0], [x27], #24
# CHECK-NEXT: [0,4] . D==============================eeeeeeeeER ld3 { v1.d, v2.d, v3.d }[0], [x27], x28
# CHECK: Average Wait times (based on the timeline view):
# CHECK-NEXT: [0]: Executions
# CHECK-NEXT: [1]: Average time spent waiting in a scheduler's queue
# CHECK-NEXT: [... | Assembly |
*
* Copyright (C) 2021 by nekohasekai <contact-sagernet@sekai.icu> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of t... | Kotlin |
/**
*
* $Id: PixConvI.h,v 1.1 2004/08/28 19:23:30 dannybackx Exp $
*
* Copyright (C) 1997 Free Software Foundation, Inc.
* Copyright (C) 1997-2000 LessTif Development Team
*
* This file is part of the GNU LessTif Library.
*
* This library is free software; you can redistribute it and/or
* modify it under the ... | C |
from streamlit import session_state
from backend.core import run_llm
import streamlit as st
from typing import Set
# Configure the theme to match LangChain's style
st.set_page_config(
page_title="Documentation Helper Bot",
page_icon="🔗",
layout="wide"
)
# Custom CSS to match LangChain's theme
st.markdow... | Python |
THE WARRANTIES OF MERCHANTABILITY, 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 TH... | C++ |
# 1957. Delete Characters to Make Fancy String
# Easy
# A fancy string is a string where no three consecutive characters are equal.
# Given a string s, delete the minimum possible number of characters from s to make it fancy.
# Return the final string after the deletion. It can be shown that the answer will always be... | Python |
bnQ= IGN5bGluZGVycw== Q1JF IHNuYXRjaA== IHBlcnBldHVhbGx5 IGxpY2tpbmc= IEZlZXQ= IEtyYWtlbg== IEhvbGRlbg== IENMU0lE bXI= IHByb2plY3Rvcg== IGRlbm90ZXM= IGNoYXBlbA== IFRvcnJlbnQ= Ymxlcg== Um91dGU= IERlZmVuZGFudA== IFB1Ymxpc2hlcnM= IE1hbGVz IElubm92 IEFnaWxpdHk= cml0ZXI= dHltb2xvZ3k= c3RvcmVz TGluZA== IGZvbGx5 IFp1cmljaA== ... | JavaScript |
#0e84b5;font-weight:700}.highlight .nt{color:#062873;font-weight:700}.highlight .nv{color:#bb60d5}.highlight .ow{color:#007020;font-weight:700}.highlight .w{color:#bbb}.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo{color:#208050}.highlight .sb,.highlight .sc{color:#4070a0}.highlight .sd{color:#4070a0;font-... | CSS |
ok, err = (vim.uv or vim.loop).fs_unlink(State.file)
if not ok then
utils.notify("error deleting tasks file:\n" .. err, vim.log.levels.ERROR)
end
elseif #State.tasks > 0 then
-- if there are tasks, write them to the file
local ok, err = pcall(vim.fn.writefile, State.tasks, State.file)
if ... | Lua |
local M = {}
local highlight = require("tinygit.shared.highlights")
local u = require("tinygit.shared.utils")
--------------------------------------------------------------------------------
---@param silent? "silent"
---@return string? "user/name" of repo, without the trailing ".git"
---@nodiscard
function M.getGithu... | Lua |
using Refit;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Camunda.Api.Client.CaseExecution
{
internal interface ICaseExecutionRestService
{
[Get("/case-execution")]
Task<List<CaseExecutionInfo>> GetList(QueryDictionary query, int? firstResult, int? maxResults);
... | C# |
nt get_shared() //静态成员函数
{
return shared;
}
......
};
int A::shared=0;
```
## 友元
- 概念:在类中⽤ friend 指出,**指定与类相关⼜不适合作为成员的程序实体直 接访问类的⾮ public 成员**,这些实体就被称为类的友元。
- 特性:不对称性:b 是 a 的友元,但 a 不⼀定是 b 的友元;无传递性:c 是 b 的友元, b 是 a 的友元,但 c 不⼀定是 a 的友元。
- 利弊:⼀⽅⾯破坏了封装,不利于数据保护,另⼀⽅⾯⼜提⾼了数据访问效率, ... | Markdown |
= DateTime.now().subtract(const Duration(days: 5)); // reasonable
final toPreserve = ImageboardRegistry.instance.imageboards.expand((i) => i.persistence.savedPosts.values.map((v) => '${i.key}/${v.post.board}/${v.post.threadId}')).toSet();
toPreserve.addAll(ImageboardRegistry.instance.imageboards.expand((i) => i.pe... | Dart |
FieldData::FitUint64(_) => Err("Bad cast!"),// Needs try_into.
FitFieldData::FitUint64z(_) => Err("Bad cast!"),
}
}
}
fn contains_invalid_f32(x: &Vec<f32>) -> bool
{
for item in x {
let bitpattern = unsafe {
std::mem::transmute::<f32, u32>(*item)
};
if b... | Rust |
ार के लिए 64-बिट अनसाइंड इंटीजर का उपयोग करता है, जबकि `.glb` में 32-बिट अनसाइंड इंटीजर का उपयोग होता है, जिससे 4 GiB से बड़ी फाइलें संभव होती हैं। https://github.com/KhronosGroup/glTF/issues/2114
- G4MF एक नया फॉर्मेट है, जबकि glTF™ एक परिपक्व उद्योग मानक फॉर्मेट है। इसलिए, हम 3D मॉडल के लिए glTF™ का उपयोग करने की अनु... | Markdown |
bd_NextBorder(a2)
clr.w bd_LeftEdge+bd_sizeof(a2)
clr.w bd_TopEdge+bd_sizeof(a2)
move.b we_ShadowPen(a6),bd_FrontPen+bd_sizeof(a2)
move.b #RP_JAM1,bd_DrawMode+bd_sizeof(a2)
move.b #3,bd_Count+bd_sizeof(a2)
lea SBORDERSIZE+(4*3)(a2),a0
move.l a0,bd_XY+bd_sizeof(a2)
clr.l bd_NextBorder+bd_sizeof(a2)
lea SBORDER... | Assembly |
txn = dbContainer.beginTransaction()) {
final ColumnFamilyHandle testCf = dbContainer.getTestColumnFamily();
final byte[] target = "overwrite1".getBytes(UTF_8);
GetStatus status = txn.get(readOptions, testCf, k1, target);
assertThat(status.status.getCode()).isEqualTo(Status.Code.NotFound);
... | Java |
) +
(official == null ? 0 : official!.hashCode);
@override
String toString() =>
'IndexInfo[name=$name, mirrors=$mirrors, secure=$secure, official=$official]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.name != null) {
json[r'Name'] = this.name;
} els... | Dart |
turned the radio up. The weird engine noise is now gone",
["nofix_message_5"] = "The rust remover you used had no effect",
["nofix_message_6"] = "Never try to make something that isn't broken, but you didn't listen",
},
success = {
["cleaned_veh"] = "Vehicle cleaned!",
["repaired... | Lua |
:= range p.PrgCbs {
cb(p.DoneNum, p.TotalNum)
}
}
err_ := p.bar.Add(num)
if err_ != nil {
log.Error("add pBar fail", zap.String("title", p.title), zap.Error(err_))
}
}
func (p *PrgBar) NewJob(num int) *PrgBarJob {
return &PrgBarJob{PrgBar: p, jobTotal: num}
}
func (p *PrgBar) Close() {
if p.bar == nil |... | Go |
perless .oce-alert-setting-wrapper .oce-alert-settingInfo {
font-size: 1em;
display: inline-block
}
.res_Small .oce-overlay .edit-paperless .text_input {
width: 80%
}
.res_Small .oce-overlay .edit-paperless .text_input input {
max-width: 100%
}
.res_Small .edit-paperless .oce-error-info,
.res_Small .edit-paperle... | CSS |
: Int,
val location: Int,
val content: String,
val music: Double
) : Parcelable
@Parcelize
data class SubtitleInfo(
@SerializedName("allow_submit")
val allowSubmit: Boolean,
val list: List<SubtitleInfoItem>
) : Parcelable
@Parcelize
data class SubtitleInfoItem(
val id: ... | Kotlin |
) {
unsafe {
oslog_sys::oslog_sys_signpost_interval_begin(log.inner, spid.inner, msg.as_ptr());
}
}
#[inline]
pub fn os_signpost_interval_end(log: &OSLog, spid: OSSignpostID, msg: &CStr) {
unsafe {
oslog_sys::oslog_sys_signpost_interval_end(log.inner, spid.inner, msg.as_ptr());
}
}
pub... | Rust |
(Average):
"""
Fifo averager that allows usage of custom accessor function.
Does not support custom boolean collapsation.
Example:
lambdas = (lambda item: item['x'], lambda item: item['y'])
averager = AverageCustom(lambdas, 2)
averager({'x': 0, 'y': 0}) # returns (0.0, 0.0)
averager... | Python |
XVesz"
ds := key.ToDS(SHA1)
if strings.ToUpper(ds.Digest) != "B5121BDB5B8D86D0CC5FFAFBAAABE26C3E20BAC1" {
t.Errorf("wrong DS digest for SHA1\n%v", ds)
}
}
func TestSignRSA(t *testing.T) {
pub := "miek.nl. IN DNSKEY 256 3 5 AwEAAb+8lGNCxJgLS8rYVer6EnHVuIkQDghdjdtewDzU3G5R7PbMbKVRvH2Ma7pQyYceoaqWZQirSj72euPWfPxQn... | Go |
[76939] = "Art Template Cloth Boot - Robe_RaidPriest_K_01 - White",
[76940] = "Art Template Cloth Shoulder - Robe_RaidPriest_K_01 - White",
[76941] = "Art Template Cloth Wrist - Robe_RaidPriest_K_01 - White",
[76942] = "Art Template Cloth Robe - Robe_RaidPriest_K_01 - White",
[76943] = "Art Template Cloth Hand - Robe_... | Lua |
--------------------------------------------------------------------------
-- self.rnn maps wordvecs of shape N x T x W to word probabilities
-- of shape N x T x (V + 1)
self.rnn1 = nn.Sequential()---------LSTM1
for i = 1, self.num_layers do
local input_dim = self.rnn_size
if i == 1 then
input_dim... | Lua |
rHandler;
}
/// <summary>
/// Store error code in the culture info.
/// </summary>
/// <param name="errorType"></param>
/// <param name="optionalParameters"></param>
public void ProcessErrorCode(int errorType, params string[] optionalParameters)
{
... | C# |
ar1::R) reader structure"]
impl crate::Readable for INTISAR1 {}
#[doc = "`write(|w| ..)` method takes [intisar1::W](intisar1::W) writer structure"]
impl crate::Writable for INTISAR1 {}
#[doc = "ISA Feature Register 1"]
pub mod intisar1;
#[doc = "ISA Feature Register 2\n\nThis register you can [`read`](crate::generic::R... | Rust |
type = 'Box';
} else if (this.type === Shape.Plane) {
type = 'Plane';
} else if (this.type === Shape.Sphere) {
type = 'Sphere';
vertices = 1;
boundsRadius = true;
} else if (this.type === Shape.Cylinder) {
type = 'Cylinder';
boundsRadius = true;
}
stream.writeFla... | Typescript |
eBonBon)(Disk 4 of 7)(Disk D).png",
"Named_Titles/Nooch 2 - Revenge of Remy (1993)(BonbeeBonBon)(Disk 5 of 7)(Disk E).png",
"Named_Titles/Nooch 2 - Revenge of Remy (1993)(BonbeeBonBon)(Disk 6 of 7)(Disk F).png",
"Named_Titles/Nooch 2 - Revenge of Remy (1993)(BonbeeBonBon)(Disk 7 of 7)(Disk G).png",
"Named_Title... | Lua |
override fun decode(reader: ProtoReader): InnerOpaqueType1 {
var value_: String? = null
val unknownFields = reader.forEachTag { tag ->
when (tag) {
1 -> value_ = ProtoAdapter.STRING.decode(reader)
else -> reader.readUnknownField(tag)
}
... | Kotlin |
/*
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | C |
}
mul(result, result, A)
++i
}
// Multiply bit-shifted versions of the 0000000001 pattern into
// the result to "fill in" the gaps in the pattern.
square(A, result)
mul(result, result, A)
j = 0
while (j < 8) {
square(A, A)... | Kotlin |
"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.
*/
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
// mqttCmd represents the mqtt command
var mqttCmd = &cobra.Command{
... | Go |
r"""filmed""": 6361,
r"""°c""": 6362,
r"""dollars""": 6363,
r"""processing""": 6364,
r"""94""": 6365,
r"""remove""": 6366,
r"""criticized""": 6367,
r"""guests""": 6368,
r"""sang""": 6369,
r"""chemistry""": 6370,
r"""##vin""": 6371,
r"""legislature""": 6372,
r"""disney""": 6373,
r"""##bridge""... | Dart |
from flask import Flask, request, jsonify
from flask_sqlalchemy import SQLAlchemy
from collections import defaultdict
from flasgger import Swagger
from flask_cors import CORS
from os import environ
app = Flask(__name__)
CORS(app)
# app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+mysqlconnector://root:@localhost:3306/w... | Python |
org/licenses/>.
*/
package fr.inria.papart.calibration.files;
import fr.inria.papart.calibration.files.Calibration;
import processing.core.PApplet;
import processing.data.XML;
import toxi.geom.Vec3D;
/**
*
* @author Jeremy Laviole
*/
public class PlanarTouchCalibration extends Calibration {
static final Stri... | Java |
herBuilder = new ProgramBuilder("OtherProgram", ProgramBuilder._X86);
ProgramDB otherProgram = otherBuilder.getProgram();
otherBuilder.createMemory(".stuff", "0x1004000", 0x300);
showTool(frontEndTool);
env.showTool();
restoreProgram(otherProgram);
loadProgram(diffTestP1);
launchDiffByAction();
waitF... | Java |
alue0 instanceof F&&e.value0.value0 instanceof F&&e.value0.value0.value0 instanceof F&&e.value0.value0.value0.value0 instanceof F&&e.value0.value0.value0.value0.value0 instanceof F&&e.value0.value0.value0.value0.value0.value0 instanceof F&&e.value0.value0.value0.value0.value0.value0.value0 instanceof F&&e.value0.value0... | JavaScript |
L["Fade Threshold"] = "Seuil du fondu"
L["Fade Undocked Tabs"] = "Estompe l'affiche des onglets non groupés"
L["Faded Charging Rune"] = "Rune de charge estompée"
L["Fader"] = "Estompeur"
L["Fades the buttons that toggle chat windows when that window has been toggled off."] = "Estompe les boutons qui permettent de bascu... | Lua |
,a1,a5
da: 00c6c7b3 xor a5,a3,a2
000000de <.LVL21>:
de: 8ff9 and a5,a5,a4
e0: 8fb5 xor a5,a5,a3
e2: 97ae add a5,a5,a1
000000e4 <.LVL22>:
e4: 01452a83 lw s5,20(a0)
e8: 00779593 slli a1,a5,0x7
ec: 83e5 srli a5,a5... | Assembly |
coda_category = {
1: {'supercategory': 'pedestrian', 'id': 1, 'name': 'pedestrian'},
2: {'supercategory': 'cyclist', 'id': 2, 'name': 'cyclist'},
3: {'supercategory': 'vehicle', 'id': 3, 'name': 'car'},
4: {'supercategory': 'vehicle', 'id': 4, 'name': 'truck'},
6: {'supercategory': 'vehicle', 'id': 6, 'name': 'tric... | Python |
* Copyright (C) 2025 Certora Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will... | Kotlin |
Fy4, [readFs + 4x<%d*512 + 16>];\n", $rsPred, $nOdd, $rsOffset;
foreach my $c (0 .. 63)
{
my ($x,$y) = @{$cOrder[$c]};
my $ins = $insert{"j${j}c$c"} || '';
my $stall = $ins =~ /^[^\n]*(?:LDS|I2I|I2F|F2I|F2F|LDG|STS|BAR|BRA)/ ? 0 : 1;
my $yield = $... | CSS |
or %rax,%rcx
807c111: 48 8b 45 f8 mov -0x8(%rbp),%rax
807c115: 48 ba 00 00 ff 00 00 movabs $0xff0000,%rdx
807c11c: 00 00 00
807c11f: 48 21 d0 and %rdx,%rax
807c122: 48 89 c2 mov %rax,%rdx
807c125: 48 c1 e2 18 shl $0x18,%rdx
807c129: 48 89 c8 ... | Assembly |
igner: false, IsWritable: false},
{PubKey: param.Proposal, IsSigner: false, IsWritable: true},
{PubKey: param.ProposalTransaction, IsSigner: false, IsWritable: false},
{PubKey: param.VoteRecord, IsSigner: false, IsWritable: true},
{PubKey: param.RecordTranaction, IsSigner: false, IsWritable: true},
{PubKey: p... | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.