content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
that owns the chat and has all administrator privileges.
///
/// https://core.telegram.org/bots/api#chatmemberowner
///
/// [chat member]: https://core.telegram.org/bots/api#chatmember
@JsonSerializable(fieldRename: FieldRename.snake)
class ChatMemberOwner implements ChatMember {
@override
String status;
@overri... | Dart |
export declare function fromElement(el: HTMLInputElement | HTMLTextAreaElement, preserveSelection?: boolean): boolean;
import * as typeorm from 'typeorm';
type RecursivePartial<T> = {
[P in keyof T]?: RecursivePartial<T[P]>;
};
export const mockTransaction = (repository: typeorm.Repository<any>): void => {
const ... | Typescript |
kEBhqVeew36b+V4ABAHGsaEK4ZLumAAAAAElFTkSuQmCC) no-repeat top right; font: 13px/18px Helvetica, sans-serif; padding: 50px 15px 30px 15px; -webkit-box-shadow: rgba(0,0,0,.5) 0 3px 20px;">
<a href="mailto:cabel@panic.com">cabel@panic.com</a> has sent you a Coda-annotated screenshot of http://panic.com.
</p>
<img ... | HTML |
8ekf031k"
validExistingRecord = "record0/login"
invalidRecord = "record5/login"
outputRecord0 = "{\"title\":\"record0\",\"type\":\"login\",\"fields\":[{\"type\":\"login\",\"value\":[\"foo\"]},{\"type\":\"password\",\"value\":[\"bar\"]}],\"custom\":[{\"type\":\"host\",\"label\":\"host0\",\"value\":[{\"hos... | Go |
cing?: number;
columnsMinimumWidth?: (number | undefined)[];
columnsStretch?: (number | undefined)[];
}
export function GridLayout(options: GridLayoutOptions): QGridLayout {
const { children, columns, contentsMargins, columnsMinimumWidth, columnsStretch, spacing } = options;
const gridLayout = new QGridLayout(... | Typescript |
Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#con... | HTML |
.valueText_aa7c25 {
display: flex;
flex-direction: column;
gap: 12px;
flex-basis: 50%
}
.upsellContainer_aa7c25 {
display: flex;
flex-direction: column;
gap: 32px
}
.upsellPreview_aa7c25 {
background-color: var(--background-secondary);
padding: 16px;
border-radius: var(--radi... | CSS |
88.0 3200 NaN 20
3251 张翠山 程序员 2056.0 4000 NaN 20
3344 黄蓉 销售主管 7800.0 3000 800.0 30
3577 杨过 会计 5566.0 2200 NaN 10
3588 朱九真 会计 5566.0 2500 NaN 10
4466 苗人凤 销售员 3344.0 2500 NaN 30
5234 郭靖 出纳 ... | Markdown |
e) {
e.printStackTrace();
}
HostnameVerifier hv1 = new HostnameVerifier() {
@Override
public boolean verify(String hostname, SSLSession session) {
return true;
}
};
String workerClassName = "okhttp3.OkHttpClient";
... | Java |
teMethod();
Assert.IsTrue(root.IsBusy);
}
[TestMethod]
public void IsBusyWhenHavingTheInvocationsOFMarkIdleItShoulBeInIdleState()
{
var root = CreateWithoutCriteria<ObjectBusy>();
root.IsBusyShouldNotGoInMinus();
Assert.IsFalse(root.IsBusy);
}
[Serializable]
public... | C# |
lign = "center";
pEl.style.color = "#fff";
pEl.style.textShadow = "-1px -1px 2px #000," +
"1px -1px 2px #000," +
"-1px 1px 2px #000," +
"1px 1px 2px #000";
for (let i = 0; i < payload.length; i++) {
if (i !== 0) {
pEl.appendChild(document.createElement("br"));
}
const span = generat... | Typescript |
36.6 12.6 87.3-22.8 125.6zM309 233.7c-13.3 0-25.1-7.1-34.4-16.1 21.9-12 49.6-30.7 62.3-53 1.5-3 4.1-8.6 4.5-12-12.5 27.9-44.2 49.8-73.9 56.7-4.7-7.3-7.5-15.5-7.5-24.3 0-10.3 5.2-24.1 12.9-31.6 21.6-20.5 53-8.5 72.4-50 32.5 46.2 13.1 130.3-36.3 130.3z"/></svg>';
static const String square_vimeo =
'<svg xmlns="h... | Dart |
lity;
}
private void AskToUseDalanOberosStarviperAbility(GenericShip ship)
{
RegisterAbilityTrigger(TriggerTypes.OnMovementFinish, AskToRotate);
}
private void AskToRotate(object sender, EventArgs e)
{
DalanOberosStarviperDecisionSubphase subphas... | C# |
> /r [<i>...</i>]<br />
</div>
<p></p>
<h4>Parameter</h4>
<dl>
<dt>Fungsi</dt>
<dd>Menentukan fungsi yang akan dipecah. Jika ditentukan, perintah <b>disassemble</b> akan menghasilkan output pe... | HTML |
# -*- encoding: utf-8 -*-
{
'name': 'Reporte de trazabilidad ',
'version': '10.0',
'author': 'Jaime Guerrero Rangel',
'category': 'Excel',
'description': """
* Este módulo agrega un reporte de excel sobre movimientos de productos.
- Selecciona un producto, almacén y fechas para ... | Python |
%r9
sub $256,%r9
# qhasm: m += 256
# asm 1: add $256,<m=int64#2
# asm 2: add $256,<m=%rsi
add $256,%rsi
# qhasm: out += 256
# asm 1: add $256,<out=int64#1
# asm 2: add $256,<out=%rdi
add $256,%rdi
# qhasm: unsigned<? bytes - 256
# asm 1: cmp $256,<bytes=int64#6
# asm 2: cmp $2... | Assembly |
#ifndef DRIVERS_H
#define DRIVERS_H
//el tamao de los corredores es 108
#define TOTAL_DRIVERS = 20;
typedef enum {
EASY_DIFFICULTY = 0,
MEDIUM_DIFFICULTY = 1,
HARD_DIFFICULTY = 2
}Difficulty;
typedef enum {
NO_LOAN = -1,
LOAN_DELIVERATOR = 0,
LOAN_WRAIGHT = 1,
LOAN_SHRIEKER = 2,
LOAN_SENTINEL = 3,
LOAN_DER... | C |
--[[Author: Pizzalol
Date: 26.01.2016.
Checks if the target is being siphoned from already]]
function SpiritSiphonCheck( keys )
local caster = keys.caster
local target = keys.target
local modifier = keys.modifier
-- Stop the caster from casting if the target has the modifier already
if target:HasModifier(modifi... | Lua |
64, 0x0001, 0x0064, 0x0065, 0x0001, 0x0000, 0x0001, 0x00C9, 0x0001, 0x0000,
0x0064, 0x0917, 0x0064, 0x097B, 0x0064, 0x09DF,
0x0064, 0x07EB, 0x0064, 0x084F, 0x0064, 0x08B3,
0x0001, 0x00CA, 0x0001, 0x00CB, 0x0001, 0x00CC,
0x0001, 0x07E8, 0x0001, 0x07E9, 0x0001, 0x07EA,
0x0001, 0x07E5, 0x0001, 0x07E6, ... | C |
+= lineHeight;
}
ST::string plArmatureMod::GetMoveKeyString() const
{
ST::string_stream keys;
keys << "Move keys: ";
if(FastKeyDown())
keys << "FAST ";
if(StrafeKeyDown())
keys << "STRAFE ";
if(ForwardKeyDown())
keys << "FORWARD ";
if(BackwardKeyDown())
keys <<... | C++ |
));
}
/// <summary>Returns a key that wraps a pre-encoded binary suffix inside a <see cref="IBinaryKeySubspace"/></summary>
[Pure, MethodImpl(MethodImplOptions.AggressiveInlining)]
public static FdbSuffixKey FromBytes(IKeySubspace subspace, ReadOnlySpan<byte> relativeKey)
{
Contract.NotNull(subspace);
... | C# |
beta_ptr(<a class="code" href="platform_8h.html#ab979d9d4b4923f7c54d6caa6e1a61936">nullptr</a>) {</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  }</div><div class="line"><a name="l00099"></a><spa... | HTML |
;
yz[i] = y;
if (x < x0) x0 = x;
if (x > x1) x1 = x;
if (y < y0) y0 = y;
if (y > y1) y1 = y;
}
// If there were no (valid) points, inherit the existing extent.
if (x1 < x0) x0 = this._x0, x1 = this._x1;
if (y1 < y0) y0 = this._y0, y1 = this._y1;
// Expand the tree to cover the new points... | JavaScript |
();
lengths[x] = Math.max(lengths[x], L);
}
}
try {
//print header
// line 1 of header
for(int x=0;x<table.getColumnCount();++x) {
//final Column col = table.getColumn(x);
out.append(isAllowUnicode()?(x==0?'\u250C':'\u252C'):'+');
char c = isAllowUnicode()?'\u2500':'-';
out.append(c);
... | Java |
motion: no-preference)"),r("motion-reduce","@media (prefers-reduced-motion: reduce)")},darkVariants:({config:r,addVariant:e})=>{let[t,i=".dark"]=[].concat(r("darkMode","media"));if(t===!1&&(t="media",G.warn("darkmode-false",["The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves ... | JavaScript |
);--x7f7m1v:rgba(0, 0, 0, .1);--x1g5cyk7:rgba(0, 0, 0, .62);--xqedtpu:rgba(0, 0, 0, .1);--x2k3eyp:#1877f2;--x1g3ks8n:#e4e6eb;--xg43ov:#fff;--x1negeu:rgba(24, 119, 242, .2);--x1kokeiq:#1877f2;--x9sgl8a:#1877f2;--xlvh0vm:#e7f3ff;--x1mzng0n:#e7f3ff;--x6ehydc:#1b74e4;--x1hnwr2q:#f0f2f5;--x1mqtnr6:rgba(255, 255, 255, .1);--... | CSS |
CE-CVE-{{ vul.cve }}.json">
CVE(5) JSON <i class="fas fa-file-download"></i>
</a>
{% endif %}
{% else %}
<a title="Create New CVE" href="{% url 'vince:newcve' vul.id %}" class="button default small">Create CVE JSON</a>
{% endif %}
</div>
</div>
<div class="row">
<div class="large-6 columns... | HTML |
.verbs.toList(), <PathVerb>[
PathVerb.moveTo, // Skia inserts a moveTo here.
PathVerb.lineTo,
PathVerb.lineTo,
PathVerb.lineTo,
PathVerb.close,
PathVerb.moveTo, // Skia inserts a moveTo here.
PathVerb.cubicTo,
]);
expect(
path.points,
<double>[0, 0, 10, 0, 1... | Dart |
app
.route("/message")
.post(this.messageController.addNewMessage)
.get((req: Request, res: Response) => {
res.send({
message: "API is Working "
});
});
}
}
class NodeBox {
constructor(
private data: unknown,
private next: NodeBoex = null,
private ... | Typescript |
="center">24.04</td></tr>
<tr><td><a href="ege_path_flatten.htm">ege_path_flatten</a></td> <td>将路径曲线段展平为多段直线段</td> <td align="center">24.04</td></tr>
<tr><td><a href="ege_path_warp.htm">ege_path_warp</a></td> <td>扭曲路径</td> <td align="center">24.04</td></tr>
<tr><td><a href="ege_path_outline.htm">ege_pa... | HTML |
950)}@supports (color:color-mix(in lab, red, red)){.fi-btn:not(.fi-color),label.fi-btn{--tw-ring-color:color-mix(in oklab,var(--gray-950)10%,transparent)}}:is(.fi-btn:not(.fi-color),label.fi-btn):where(.dark,.dark *){--tw-ring-color:#fff3}@supports (color:color-mix(in lab, red, red)){:is(.fi-btn:not(.fi-color),label.fi... | CSS |
boolean[] rowValues = new boolean[size*size*4];
for(int x=0; x < size; ++x) {
for(int y=0; y < size; ++y) {
if (board[y][x] == -1) {
// try each possible value in the cell
for(int num=1; num <= size; ++num) {
model.addRow(generateRow(rowValues, x, y, num));
... | Java |
1-2810-1-233824-0000000001", "Dimensius", 0xa48, 0x0, "", nil, 0x0, 0x0, 1232895, "Cosmic Radiation", 0x0},
{605.03, "UNIT_SPELLCAST_START", "boss1", "Cast-3-1-2810-2-1234044-0000000405", 1234044, "Dimensius", 21.4, 27.0, "Tank1"},
{605.03, "COMBAT_LOG_EVENT_UNFILTERED", "SPELL_CAST_START", "Creature-0-1-2810-1-233... | Lua |
Winner(winnerValues)).toBeTruthy();
});
});
describe('jsonSerializer', () => {
it('should deserialize Server response', () => {
const json = {
season: '2005',
round: '1',
url: 'http://en.wikipedia.org/wiki/2005_Australian_Grand_Prix',
raceName: 'Australian Grand Prix'... | Typescript |
uf3r3ss8/80V+PzH3z2fPD3G4u0T4w9HCQXFaI+DQe7dR6m3LB+0BD5oV+CBqqP5cYtTaveLEAJr3dbusdub3QLtD7bMdmrQj1gd/uwm0nY10QDdH2V1w49DE6p0JO8T2imZoOLaKHEsXBjuJrsXql7NbmSEFwoVVhfVnphFLUdVX4ipl6ohOm1XyUQDnKZ7+UoHw16+Ly++kPbOKdre+iGOGfNUT2p4XiUQSbEIw+evL9mbweISHLhgXpBAac9ZabZvXxZk0tQyk9H3x2uk+UdOAD+dz3ziO++vkJ6xm9WV6+4sEBaaXE3GutXX53+C... | HTML |
dr r0, [r0] /* The first entry in vector table is stack pointer. */
msr msp, r0 /* Set the MSP back to the start of the stack. */
cpsie i /* Globally enable interrupts. */
cpsie f
dsb
isb
svc 102 ... | Assembly |
this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* ... | Java |
,
Product,
PurchaseDetails,
ShoppingCart,
Store,
Offer,
} from './types';
function request<T>(endPoint: string, params: object, GET = true) {
console.log(`Request ${endPoint}`, params);
const request = GET ? axios.get : axios.post;
return request(`/${endPoint}`, GET ? { params } : params).then((response) =>
... | Typescript |
g.float2Chinese(1125.06)).toBe("点零六");
expect(string.float2Chinese(121.02506)).toBe("点零二五零六");
expect(string.float2Chinese(10002210.2506)).toBe("点二五零六");
expect(string.float2Chinese(1.0021)).toBe("点零零二一");
expect(string.float2Chinese(10250.6)).toBe("点六");
});
});
describe("number2Chinese... | Typescript |
"fileNotFound": "No s'ha trobat el fitxer",
"importLargeFileNote": "Nota: La importació de llistes de reproducció grosses pot trigar més estona"
}
,"cs" : {
"home": "Domů",
"playlistCreatednsongAddedAlert": "Playlist vytvořen a skladba přidána!",
"dismiss": "Odmítnout",
"goToDownloadPage": "Kli... | Dart |
story/the-untold-story-of-solarwinds-the-boldest-supply-chain-hack-ever)
## Industry
- [Dylan Patel - Google "We Have No Moat, And Neither Does OpenAI"](https://www.semianalysis.com/p/google-we-have-no-moat-and-neither)
- [Yahoo - OpenAI Is Losing a Flabbergasting Amount of Money on ChatGPT](https://news.yahoo.com/ope... | Markdown |
e=“calico“ failed (add):error getting ClusterInformation:Get “...default“:EOF
参考文章
1. [准备 Kubernetes 集群环境](https://george.betterde.com/cloud-native/20220928.html)
- kube: v1.22.0
- calico: v1.22.4
```log
Events:
Type Reason Age From Message
---- ------ ... | Markdown |
// downstream crates? :/
pub(crate) mod internal {
use std::ops::{Add, Sub, Mul, Div, Neg};
macro_rules! markers {
($( $name:ident[$($bound:tt)+]; )+)
=> {$(
pub trait $name: $($bound)+ { }
impl<T> $name for T where T: $($bound)+ { }
)+};
}
markers... | Rust |
ndow")]
[OutputType(typeof(bool))]
public class GetWindowCommand : UIAutomation.Commands.GetUiaWindowCommand
{ public GetWindowCommand() { } }
//===========================================================================
/// <summary>
/// Description of GetWindowCommand.
/// </summ... | C# |
manage.LayoutSections["Header"] = "header.tpl"
manage.LayoutSections["Footer"] = "footer.tpl"
manage.TplNames = "manage/home.tpl"
// convert the string value to an int
articleId, _ := strconv.Atoi(manage.Ctx.Input.Param(":id"))
o := orm.NewOrm()
o.Using("default")
article := models.Article{}
// Check if th... | Go |
* mut UCD_info = _UCD_create(core_path.as_ptr());
let mut c = MaybeUninit::uninit();
let _ret = unw_init_remote(c.as_mut_ptr(),asp,ui as * mut libc::c_void );
_UCD_add_backing_file_at_vaddr(ui, test_heap_start, test_heap_path.as_ptr());
_UCD_add_backing_file_at_vaddr(ui... | Rust |
"/aws/ecs/containerinsights/{ClusterName}/performance",
"{TaskId}",
"/aws/ecs/containerinsights/test-cluster-name/performance",
"test-task-id",
},
// test case for aws container insight usage
{
"empty namespace, config w/ pattern",
"",
"/aws/containerinsights/{ClusterName}/performance",
"... | Go |
K\DC2\ETXa\EOT\r\n\
\\SO\n\
\\a\EOT\NUL\ETX\SOH\STX\ACK\SOH\DC2\ETXa\SO\FS\n\
\\SO\n\
\\a\EOT\NUL\ETX\SOH\STX\ACK\ETX\DC2\ETXa\US \n\
\\v\n\
\\EOT\EOT\NUL\STX\EOT\DC2\ETXc\STX\FS\n\
\\f\n\
\\ENQ\EOT\NUL\STX\EOT\EOT\DC2\ETXc\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\NUL\STX\EOT\ACK\DC2\ETX... | HTML |
/*=============================================================================
TexGen: Geometric textile modeller.
Copyright (C) 2017 Louise Brown
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; eit... | C |
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | Python |
, pcode);
bound = (*prange >> 11) * (uint32_t) *prob;
if (*pcode < bound)
{
*prange = bound;
*prob += ((1U << 11) - *prob) >> 5;
return 0;
}
else
{
*prange -= bound;
*pcode -= bound;
*prob -= *prob >> 5;
return 1;
}
}
/* Read an integer of size BITS from ... | C++ |
!= targetUser) {
// 重置联系人消息状态
int readCount = ContactHelper
.resetContactMessagetState(ContactHelper.getRecentInfoByPosition(position));
// 设置新的聊天对象
CacheHub.getInstance().setChatUser(targetUser);
// 切换到消息界面
Intent i = new Inte... | Java |
f/themes/freebuf/images/grey.gif" width="624" height="383"></p>
<noscript><img alt="Tochka的增长最显著" src="http://image.3001.net/images/20170807/1502087703324.jpg!small" width="624" height="383"></p></noscript>
<p>此外,作为一个相对较新的平台——Wall Street Market同样迎来了类似的发展。其网站列出的商品条目增长了25.4%,达到了2216个。</p>
<h2>枪支市场</h2>
<p>在所有调查的市场中,只有一个市... | HTML |
epository: SearchRepository,
private val mediathekRepository: MediathekRepository,
private val settingsRepository: SettingsRepository,
private val mediathekApi: IMediathekApiService
) : ViewModel() {
companion object {
private const val ITEM_COUNT_PER_PAGE = 30
private const val LAST_QUERIES_COUNT = 4
}
enu... | Kotlin |
response code</a>.</td>
</tr>
</tbody>
</table>
<h2 id="Types">Types</h2>
<h3 id="Resource_types">Resource types</h3>
<p>The resource type string identifies the kind of resource being fetched. It's used in two places:<a href="/en-US/docs/Mozilla/JavaScript_code_modules/WebRequest.jsm#Filtering"> filtering r... | HTML |
] = {
"string": arrayLikeToString,
"array": function(input) {
return arrayLikeToArrayLike(input, new Array(input.length));
},
"arraybuffer": function(input) {
// copy the uint8array: DO NOT propagate the original ArrayBuffer, it
// can be way larger (the whole zip file for exampl... | JavaScript |
"String") != MATCH) {
delete classad; delete classadAssign;
FAIL;
}
delete classad; delete classadAssign;
PASS;
}
static bool test_assignment_pointer() {
emit_test("Test that a ClassAd pointer is not equal to the original "
"ClassAd pointer that it was assigned to.");
const char* classad_string = "\tA=1\n\... | C++ |
та попередньо вставлена на заводі). |
| M1~M8 | Вихідний IO PWM (для підключення до ESC і Servo) ... | Markdown |
clude "common/scm_rev.h"
#include "common/settings.h"
#include "core/core.h"
#include "lime_sdl/emu_window/emu_window_sdl2_gl.h"
#include "video_core/gpu.h"
#include "video_core/renderer_base.h"
class SDLGLContext : public Frontend::GraphicsContext {
public:
using SDL_GLContext = void*;
SDLGLContext() {
... | C++ |
vavg: u16,
#[br(pad_before = 2)]
vrms: u16,
#[br(pad_before = 2)]
vpp: u16,
#[br(pad_before = 2)]
vp: u16,
frequency_high: u16,
frequency_low: u16,
#[br(pad_before = 2)]
cycle_ns: u16,
#[br(pad_before = 2)]
time_plus_ns: u16,
#[br(pad_before = 2)]
time_minus_ns: u... | Rust |
"uPIMulator/src/device/linker/kernel/instruction"
"uPIMulator/src/misc"
)
type CycleRule struct {
channel_id int
rank_id int
dpu_id int
input_q *InstructionQ
wait_q *InstructionQ
ready_q *InstructionQ
scoreboard map[*instruction.Instruction]*Thread
reg_sets []*RegSet
stat_factory *misc.StatFact... | Go |
/li>
<li>Introduce “HAL_SMARTCARDEx_RxFifoFullCallback” and “HAL_SMARTCARDEx_TxFifoEmptyCallback”</li>
<li>Fix Linux compilation warning in function “HAL_SMARTCARD_Receive”</li>
</ul></li>
</ul></li>
<li><strong>HAL SRAM, HAL SDRAM , HAL NOR and HAL NAND</strong>:
<ul>
<li>Align driver with the Reference Manual regardi... | HTML |
}
}
}/*
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package frontendContextDemo.scripts
import frontendContextDemo.ScriptInBatikContext
import org.jetbrains.letsPlot.*
import org.jetbrains.letsPlot.geom.geomBar
import... | Kotlin |
0 4.031h2V12h-2zM15 14h2v2h-2zm-8 1h2v2H7z"/>',
},
buildings: {
body: '<path fill="currentColor" d="M19 2H9c-1.103 0-2 .897-2 2v6H5c-1.103 0-2 .897-2 2v9a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4c0-1.103-.897-2-2-2zM5 12h6v8H5v-8zm14 8h-6v-8c0-1.103-.897-2-2-2H9V4h10v16z"/><path fill="currentColor" d="M11 6h2v2h-2... | JavaScript |
if (softDeletes) {
whereNull(deletedAt);
}
super.chunkById(chunk, (List<Map<String, dynamic>> data) async {
for (Map<String, dynamic> map in data) {
map.removeWhere((key, _) => hidden.contains(key));
}
final result = await _loadRelations(data);
callback(result);
}, ... | Dart |
import sys
from transformers import AutoTokenizer
dataset = sys.argv[1]
model_name_or_path = sys.argv[2]
max_len = int(sys.argv[3])
subword_len_counter = 0
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
max_len -= tokenizer.num_special_tokens_to_add()
with open(dataset, "rt") as f_p:
for line i... | Python |
JSON library.
// FIXME: Instead of printing enums as an integral value and specifying the
// type as a separate field, use introspection to print the enumerator.
OS << "{\n";
OS << "\n\"features\" : [\n";
{
llvm::SmallString<128> Str;
#define FEATURE(Name, Predicate) ... | C++ |
ximumTootCharacters)
}
}
@Test
fun whenOnlyConfigurationMaximumTootCharsIsPopulated_customLimitIsUsed() = runTest {
val customMaximum = 1000
getInstanceCallback = { getInstanceWithCustomConfiguration(null, getCustomInstanceConfiguration(maximumStatusCharacters = customMaximum)) }
... | Kotlin |
nt(buckets, 3); err != nil {
t.Fatal(err)
}
log.Printf("Bucket GC")
//call garbage collector
if err := GarbageCollectBuckets(time.Now().UTC(), buckets); err != nil {
t.Fatalf("failed to garbage collect buckets : %s", err)
}
if err := expectBucketCount(buckets, 1); err != nil {
t.Fatal(err)
}
}
func Test... | Go |
lth {
prompt += fmt.Sprintf("### %s Health\n", kind)
// Count the statuses
healthCounts := make(map[string]int)
for _, status := range statusMap {
healthCounts[status]++
}
// List the counts
for status, count := range healthCounts {
prompt += fmt.Sprintf("- %s: %d resources\n", status, count)
... | Go |
WoodDresser = 2529,
PalmWoodLantern = 2530,
PalmWoodPiano = 2531,
PalmWoodTable = 2532,
PalmWoodLamp = 2533,
PalmWoodWorkBench = 2534,
OpticStaff = 2535,
PalmWoodBookcase = 2536,
MushroomBathtub = 2537,
MushroomBed = 2538,
MushroomBench = 2539,
MushroomBookcase = 2540,
MushroomCandelabra = 2541,... | Rust |
ATTR, DrawType, ParsedStyle, R_ATTR};
use super::ViewBox;
pub fn handle_circle<'a>(
context: &mut Context,
circle: roxmltree::Node,
style: Rc<RefCell<ParsedStyle>>,
parent_attributes: Option<HashMap<&str, &str>>,
root: &'a roxmltree::Document<'a>,
) {
let scale = context.device.density;
le... | Rust |
,7h-2v4H7v2h4v4h2v-4h4v-2h-4V7z M12,2C6.5,2,2,6.5,2,12s4.5,10,10,10c5.5,0,10-4.5,10-10S17.5,2,12,2z M12,20c-4.4,0-8-3.6-8-8s3.6-8,8-8c4.4,0,8,3.6,8,8S16.4,20,12,20z"/></g>
<g id="add-shopping-cart"><polygon points="18.3,6 18.3,6 15.6,11 "/><path d="M11,9h2V6h3V4h-3V1h-2v3H8v2h3V9z M7,18c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9... | HTML |
console.log (exchanges.map (exchange => exchange.id))
let results = []
const priceOracle = new ccxt.gate ()
const tickers = await priceOracle.fetchTickers ()
await Promise.all (exchanges.map ((exchange) => (async function () {
try {
if (exchange.has['signIn']) {
awa... | JavaScript |
- body class for killing the scroll
// .modal - container to scroll within
// .modal-dialog - positioning shell for the actual modal
// .modal-content - actual modal w/ bg and corners and stuff
// Container that the modal scrolls within
.modal {
// scss-docs-start modal-css-vars
--#{$prefix}m... | CSS |
-- Copyright 2018-2019 Lienol <lawlienol@gmail.com>
module("luci.controller.pppoe-server", package.seeall)
function index()
if not nixio.fs.access("/etc/config/pppoe-server") then return end
entry({"admin", "services", "pppoe-server"},
alias("admin", "services", "pppoe-server", "settings"),
... | Lua |
了检讨,车间主任李世永检讨后有很大转变,群众反映:“主任和过去比简直是两个人。”有些单位对于少数作风恶劣,群众十分不满,又不愿改正错误的干部,还当众进行了批评,并且准备调离原来的工作岗位。
</p>
<h3>
四、解决了一部分急需而又可能解决的职工生活福利和劳动保护问题
</h3>
<p>
在这个问题上,我们一方面向职工讲清不可能要求在整风当中解决所有的工资福利问题的道理。另一方面,又要求工厂的领导干部尽可能主动解决那些急需而又可能解决的问题。根据第一机床厂等七个单位的统计,职工共提出有关生活福利、劳动保护问题八百三十六件,已经解决了五百七十七件,其它正在研究解决中。
</p>
<p>
群众... | HTML |
r (int i = 1; i <= 3; i++) {
pstmt.setNull(i, java.sql.Types.BIT);
}
// tinyint
for (int i = 4; i <= 6; i++) {
pstmt.setNull(i, java.sql.Types.TINYINT);
}
// smallint
for (int i = 7; i <= 9; i++) {
... | Java |
유효하지 않으며 그 이유를 알리는 것입니다.
<figure style="width: 200px">{% Img src="image/admin/FLQPcG16akNRoElx3pnz.png", alt="지난 예에서와 동일한 입력 양식입니다. 이번에는 필드 문제를 나타내는 텍스트 레이블이 있습니다.", width="292", height="343" %}</figure>
앱을 빌드할 때 이러한 종류의 사항을 염두에 두고 중요한 정보를 전달하기 위해 색상에 너무 많이 의존할 수 있는 영역에 주의하십시오.
사이트가 다른 사람들에게 어떻게 보이는지 궁금하거나 UI의 색상 사용... | Markdown |
(
"-u, --until [until]",
"limit analysis to commits older in age than date"
)
.option(
"-s, --sort [sort]",
"sort results (allowed valued: score, churn, complexity or file)",
/^(score|churn|complexity|file)$/i
)
.option(
"-d, --directories",
"display values for ... | Typescript |
e(self):
group = Group({"name": "test", "domain": self.user.domain})
group.save()
self.addCleanup(group.delete)
self.commcare_user_updater.update('groups', [group._id])
self.assertIn(GROUPS_FIELD, self.user_change_logger.change_messages.keys())
def test_update_groups_does_no... | Python |
),
),
child: ListView.builder(
itemBuilder: (context, index) {
return _MenuDataItem(menus[index]);
},
itemCount: menus.length,
),
),
));
}
}
export 'smtp_server/gmail.dart';
export 'smtp_server/ho... | Dart |
query::{*, tests_cfg::*};
///
/// let query = Query::select()
/// .from(Char::Table)
/// .column((Char::Table, Char::Character))
/// .to_owned();
///
/// assert_eq!(
/// query.to_string(MysqlQueryBuilder),
/// r#"SELECT `character`.`character` FROM `character`"#... | Rust |
A,{bold:!0,underline:!0,color:"gray"},"Range")),p.createElement(u,{width:17},p.createElement(A,{bold:!0,underline:!0,color:"gray"},"Latest"))),ye=({active:Ee,descriptor:De,suggestions:ce})=>{let[ne,ee]=a(De.descriptorHash,null),we=W.stringifyIdent(De),xe=Math.max(0,45-we.length);return p.createElement(p.Fragment,null,p... | JavaScript |
*
* 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 CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the Licen... | Java |
ndSeek: View? = null): AnimatorSet {
view.clearAnimation()
view.scaleX = 1F
view.scaleY = 1F
view.alpha = 0F
val objectAnimator1 = ObjectAnimator.ofFloat(view, SCALE_X, 1F, 0.9F, 1F, 0.9F, 1F, 1F)
val objectAnimator2 = ObjectAnimator.ofFloat(view, SCALE_Y, 1F, 0.9F, 1F, ... | Kotlin |
2))
d2 shouldBeExactly tensorOf(
-0.07996252F, 0.0F, 0.0F, 0.0F,
0.0F, 0.0F, 0.0F, 0.040891573F
).reshape(Shape(2, 2, 2))
}
}
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE fil... | Kotlin |
.event.ListSelectionEvent
import javax.swing.event.ListSelectionListener
private const val defaultPrivacyFileText = """
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTrackingDomai... | Kotlin |
v1 = v0.get_perpendicular_vector();
// let d = v0.dot(v1);
// assert_eq!(d.is_err(), false);
// assert_eq!(d.unwrap() < 1e-14, true);
// }
// #[test]
// fn vec3d_get_norm_vector() {
// let v0 = Vector3D{x: 3.0, y: -4.0, z: 5.0 };
// let v1 = v0.get_normalized_vector();
// assert_eq!(v1.is... | Typescript |
,
pub normal: Vec3,
pub mat_ptr: Arc<Box<dyn Material + Sync + Send + 'static>>,
pub t: f64,
pub front_face: bool,
}
impl HitRecord {
pub fn from_face_normal(
r: &Ray,
p: Point3,
outward_normal: &Vec3,
t: f64,
mat_ptr: Arc<Box<dyn Material + Sync + Send + 'st... | Rust |
Context.current
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
}
darkTheme -> DarkColorScheme
else -> LightColorScheme
}
MaterialTheme(
colorScheme = colorScheme,
typography = Typography,
content = content
)
... | Kotlin |
,gw11.w);
vec4 norm00 = taylorInvSqrt(vec4(dot(g0000, g0000), dot(g0100, g0100), dot(g1000, g1000), dot(g1100, g1100)));
g0000 *= norm00.x;
g0100 *= norm00.y;
g1000 *= norm00.z;
g1100 *= norm00.w;
vec4 norm01 = taylorInvSqrt(vec4(dot(g0001, g0001), dot(g0101, g0101), dot(g1001, g1001), dot(g1101, g1101)))... | JavaScript |
/2023/10/IMG_9645-12-e1697830418809-500x529.jpg" class="attachment-medium size-medium" alt="a photo of taylor bloxom in kitchen" data-pin-nopin="true" decoding="async" srcset="https://www.fifteenspatulas.com/wp-content/uploads/2023/10/IMG_9645-12-e1697830418809-500x529.jpg 500w, https://www.fifteenspatulas.com/wp-conte... | HTML |
https://mmbiz.qpic.cn/sz_mmbiz_jpg/b7iaH1LtiaKWXLicr9MthUBGib1nvDibDT4r6iaK4cQvn56iako5nUwJ9MGiaXFdhNMurGdFLqbD9Rs3QxGrHTAsWKmc1w/640?wx_fmt=jpeg&from=appmsg "")
", permissions);
}
private String byteToString(byte[] value) {
return new String(value).replaceAll("\\p{Cntrl}", "?");
}
private void logService(BluetoothGattService service, boolean included) {
Timber.d("Service %s%s", BluetoothGattUuid.prettyPrint(s... | Java |
68 0 42-39 81t-81 39q-40 0-68-28L733 893q-176 131-365 131-163 0-265.5-102.5T0 656q0-160 95-313T343 95 656 0q163 0 265.5 102.5T1024 368q0 189-131 365l355 355 96-96q-3-3-26-24.5t-40-38.5-33-36.5-16-28.5q0-17 49-66t66-49q13 0 23 10 6 6 46 44.5t82 79.5 86.5 86 73 78 28.5 41z"/></svg>';
static const String keyboard_o =
... | Dart |
لی (مقدار گازی که توسط تمام تراکنشها استفاده میشود) را با اندازه هدف مقایسه میکند، محاسبه میشود. اگر اندازه بلوک از اندازه هدف بلوک بیشتر شود، کارمزد پایه حداکثر به اندازه 12.5% در هر بلوک افزایش مییابد. این رشد نمایی باعث میشود که از نظر اقتصادی بهصرفه نباشد که اندازه بلوک تا ابد بالا بماند.
| شمارهی ب... | Markdown |
r10,r10,#0x20000000 ;
ldrh r8,[r4],#2 ;
subs r5,r5,#12 ;
ldrge pc,[r6,r8,asl #2] ;
b CycloneEnd
;
Op0c58:
str r5,[r7,#0x5c] ;
;
ldrsh r10,[r4],#2 ;
;
;
and r2,r8,#0x000f
ldr r0,[r7,r2,lsl #2]
add r3,r0,#2 ;
str r3,[r7,r2,lsl #2]
;
mov lr,pc
ldr pc,[r7,#0x6c] ;
mov r10,r10,asl #16
;
rsb... | Assembly |
: u16 = 1;
/// function.
pub const IMAGE_SYM_DTYPE_FUNCTION: u16 = 2;
/// array.
pub const IMAGE_SYM_DTYPE_ARRAY: u16 = 3;
// Values for `ImageSymbol::storage_class`.
pub const IMAGE_SYM_CLASS_END_OF_FUNCTION: u8 = 0xff;
pub const IMAGE_SYM_CLASS_NULL: u8 = 0x00;
pub const IMAGE_SYM_CLASS_AUTOMATIC: u8 = 0x01;
pub con... | Rust |
u2316',
'tau;': '\u03c4',
'tbrk;': '\u23b4',
'tcaron;': '\u0165',
'tcedil;': '\u0163',
'tcy;': '\u0442',
'tdot;': '\u20db',
'telrec;': '\u2315',
'tfr;': '\u{01d531}',
'there4;': '\u2234',
'therefore;': '\u2234',
'theta;': '\u03b8',
'thetasym;': '\u03d1',
'thetav;': '\u03d1',
'thickapprox;': ... | Dart |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.