content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
ers: number[]): number =>
numbers.reduce((prev, current) => prev + current)
/** [0, 1, 2, ..., n] */
const rangeSpreadArray = (length: number): number[] => [...Array(length).keys()]
interface Student {
name: string
grade: number
}
const students: Student[] = [
{ name: 'Nick', grade: 10 },
{ name: 'John', gr... | Typescript |
ntrol-indicator{outline:2px auto rgba(19,124,189,.6);outline-offset:2px;-moz-outline-radius:6px}.bp3-control.bp3-align-right .bp3-control-indicator{float:right;margin-top:1px;margin-left:10px}.bp3-control.bp3-large{font-size:16px}.bp3-control.bp3-large:not(.bp3-align-right){padding-left:30px}.bp3-control.bp3-large:not(... | CSS |
alue;
}
}
public int XDim
{
get { return _xdim; }
}
public int YDim
{
get { return _ydim; }
}
public int ZDim
{
get { return _zdim; }
}
public int GetIndex (int x, int y, int z)
... | C# |
9_mvl/mxv
.byte W01
.byte 97*seq_669_mvl/mxv
.byte W01
.byte 94*seq_669_mvl/mxv
.byte W01
.byte 91*seq_669_mvl/mxv
.byte W01
.byte 88*seq_669_mvl/mxv
.byte W01
.byte 85*seq_669_mvl/mxv
.byte W01
.byte 81*seq_669_mvl/mxv
.byte W01
.byte 78*seq_... | Assembly |
[o]
t[2] = 0
t[1] = 0
end
table.sort(tooltip_temp_table, Details.Sort2)
--build the tooltip
local top =(tooltip_temp_table[1] and tooltip_temp_table[1][2]) or 0
tooltip_temp_table.damage_total = damageTaken
local iconSize = Details.DefaultTooltipIconSize
GameCooltip:SetOption("AlignAsBlizzTooltip", false)... | Lua |
/*
* Copyright (c) 2024 Axoflow
* Copyright (c) 2024 Attila Szakacs <attila.szakacs@axoflow.com>
*
* This library 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 the Licen... | C |
// Check if h.pubKey was set
assert.NotEmpty(t, hub.GetPubkey(), "h.pubKey should be set after key generation")
assert.True(t, strings.HasPrefix(hub.GetPubkey(), "ssh-ed25519 "), "h.pubKey should start with 'ssh-ed25519 '")
// Verify the generated private key is parsable
keyData, err := os.ReadFile(privateKeyP... | Go |
OTHERWISE
Object = nullptr;
Vect = Vector3d(0.0,0.0,0.0);
UNGET
END_CASE
END_EXPECT
Parse_Paren_End();
break;
}
... | C++ |
(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudOrgpolicyV2Policy.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}
/// Retrieves all of the policies that exist on a particular resource.
///
/// Request parameters:
///
/// [parent] - Require... | Dart |
.include "asm/macros.inc"
.include "mi_memory.inc"
.include "global.inc"
.text
arm_func_start MIi_CpuClear16
MIi_CpuClear16: ; 0x020D4790
mov r3, #0
_020D4794:
cmp r3, r2
blt _020D47A0
b _020D47A4
_020D47A0:
strh r0, [r1, r3]
_020D47A4:
blt _020D47AC
b _020D47B0
_020D47AC:
add r3, r3, #2
_020D47B0:
blt _... | Assembly |
56.非解脫惑業,彼名生死者。不許我所性,則無彼受者,
257.造作受用相,彼我亦應無。故欲解脫者,當根除無始,
258.同類因種生,諸薩迦耶見。教說如是事,諸未見因者,
259.說教能解脫,不能使歡喜。咒種等儀軌,非使人不生。
260.塗油火燒等,我亦應解脫。先重後輕故,非能消滅罪,
261.使此重性無,無體罪非重。邪智及彼生,愛思增上力,
262.生趣下賤處。故斷彼不趣。唯從彼生故,即彼等能生。
263.彼思即業故,能生因無失。趣與達所依,彼從不見生,
264.不見滅,無趣。故是行,非思。隨有無轉故。能生作根者,
265.見覺有功能,非是由餘力。彼等既有彼,云何而不趣?
若彼等無能,灌頂等無間,
266.彼... | Markdown |
eld.name()|var_name_raw_noescape }}
{%- endif -%}
{%- endmacro %}
// Macro for destroying fields
{%- macro destroy_fields(member) %}
Disposable.destroy(
{%- for field in member.fields() %}
this.{%- call field_name(field, loop.index) -%},
{% endfor -%}
)
{%- endmacro -%}
{%- macro ... | Kotlin |
found in the LICENSE file.
import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/src/error/codes.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import '../context_collection_resolution.dart';
main() {
defineReflectiveSuite(() {
defineReflectiveTests(MapLiteralTest)... | Dart |
_event(
&mut self,
_: PeerId,
_: ConnectionId,
_: <Self::ProtocolsHandler as ProtocolsHandler>::OutEvent,
) {
}
fn poll(
&mut self,
cx: &mut Context,
_: &mut impl PollParameters,
) -> Poll<
NetworkBehaviourAction<
<Self::Protoc... | Rust |
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "marimo",
# "openai==1.60.2",
# ]
# ///
import marimo
__generated_with = "0.15.5"
app = marimo.App(width="medium")
@app.cell
def _():
import marimo as mo
return (mo,)
@app.cell(hide_code=True)
def _(mo):
mo.md(
r"""
... | Python |
using NUnit.Framework;
using SideScroll.Logs;
using SideScroll.Serialize.Atlas;
namespace SideScroll.Serialize.Test;
[Category("Serialize")]
public class SerializeLogTests : SerializeBaseTest
{
private SerializerMemory _serializer = new SerializerMemoryAtlas();
[OneTimeSetUp]
public void BaseSetup()
{
Initiali... | C# |
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2011, 2014 Red Hat, Inc.
*/
/*
* The example shows how to list connections from the System Settings service
* using direct D-Bus calls. The example uses GDBus, plus a few defines from
* the NetworkManager headers. Contrast list-connections-libnm... | C |
ess the following byte registers
| | if a REX prefix is used: AH, BH, CH,
| | DH.
Instruction Operand Encoding:
| Op/En| Operand 1 | Operand 2 | Operand 3| Operand 4
| I | AL/AX/EAX/RAX| imm8/16/32 | NA | NA
| MI | ModRM:r/m (w)| imm8/16/32 | NA ... | Go |
px
}
}
.chrome-52 .article-content-component .article-content-wrapper .article-introduction .with-initial-letter::first-letter {
margin-top: 1px
}
@media(min-width:960px) {
.chrome-52 .article-content-component .article-content-wrapper .article-introduction .with-initial-letter::first-letter {
margin-top: 6px
}... | CSS |
capital letters with _ followed by the lowercase equivalent
String snakeCase = input.replaceAllMapped(exp, (Match match) => '_${match.group(0)}');
// Convert the final string to uppercase
return snakeCase.toUpperCase();
}
Map<String, String?> parseNodeUrl(String url) {
String? host;
String? port;
bool ha... | Dart |
/* This file is part of VoltDB.
* Copyright (C) 2008-2010 VoltDB Inc.
*
* VoltDB 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
* (at your option) any later version.
... | C |
.34-.18.52a18.08 18.08 0 0 1-1.17 2.77c-.18.3-.37.58-.59.85a4.64 4.64 0 0 1-2.2 1.81c-.74.3-1.56.41-2.36.33a.3.3 0 0 1-.28-.28.75.75 0 0 1 .16-.57l1.06-1.5c.07-.1.14-.22.19-.34.17-.41.36-.82.52-1.23.1-.26.16-.53.24-.8l-.05-.04-.78.47c-.13.08-.25.17-.39.24-.2.12-.32.07-.42-.14a1.01 1.01 0 0 1-.01-.8 6.75 6.75 0 0 1 2.18... | JavaScript |
c-15.3008 0 -26.9004 14.2998 -23.3008 29.5l46.1006 194.5h-118.7c-14.5 0 -25.7002 12.7998 -23.7998 27.2002l32 240\nc1.59961 11.8994 11.7998 20.7998 23.7998 20.7998h144c15.7002 0 27.2002 -15 23.2002 -30.2002l-42.6006 -129.8h115.4z\" />\n <glyph glyph-name=\"sitemap\" unicode=\"\" horiz-adv-x=\"640\" \nd=\"M128... | Go |
{ color: #50fefe; }
.cm-s-erlang-dark span.cm-number { color: #ffd0d0; }
.cm-s-erlang-dark span.cm-operator { color: #d55; }
.cm-s-erlang-dark span.cm-property { color: #ccc; }
.cm-s-erlang-dark span.cm-qualifier { color: #ccc; }
.cm-s-erlang-dark span.cm-special { color: #ffbbbb; }
.cm-s-erlang-dark spa... | CSS |
// Copyright (c) 2013 Vasili Baranau
// Distributed under the MIT software license
// See the accompanying file License.txt or http://opensource.org/licenses/MIT
#ifndef Generation_PackingGenerators_LubachevsckyStillinger_Headers_GeometryCollisionService_h
#define Generation_PackingGenerators_LubachevsckyStillinger_He... | C |
// <auto-generated />
namespace PingYourPackage.Domain.Migrations
{
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
public sealed partial class ShipmentsTableCreatedOnColumn : IMigrationMetadata
{
string IMigrationMetadata.Id
{
ge... | C# |
**signal.pause()**来**让该进程暂停以等待信号**,以等待信号。当信号SIGUSR1被传递给该进程时,进程从暂停中恢复,并根据预设,执行SIGTSTP的信号处理函数myHandler()。myHandler的两个参数一个用来识别信号(signum),另一个用来获得信号发生时,进程栈的状况(stack frame)。这两个参数都是由signal.singnal()函数来传递的。
上面的程序可以保存在一个文件中(比如test.py)。我们使用如下方法运行:
```
$python test.py
```
以便让进程运行。当程序运行到signal.pause()的时候,进程暂停并等待信号。此时,通过按下CTRL+Z... | Markdown |
: 0;
left: 0;
overflow: auto;
padding: 2% 4%;
}
.theme-overlay .theme-actions {
position: absolute;
text-align: center;
bottom: 0;
right: 0;
left: 0;
padding: 10px 25px 5px;
background: #f6f7f7;
z-index: 30;
box-sizing: border-box;
border-top: 1px solid #f0f0f1;
}
.theme-overlay .theme-actions a {
margi... | CSS |
x1f
/* 80006894 00003694 41 82 00 3C */ beq lbl_800068D0
/* 80006898 00003698 48 05 BD C9 */ bl func_80062660
/* 8000689C 0000369C 48 05 C1 11 */ bl func_800629AC
/* 800068A0 000036A0 38 60 00 00 */ li r3, 0
/* 800068A4 000036A4 48 05 C1 C5 */ bl func_80062A68
/* 800068A8 000036A8 2C 03 00 00 */ cmpwi r3, 0
/* 80... | Assembly |
BL0TBKHvS5XMbjP1idBMB8erMz29w/TVQnEB\n" +
"Kj0vCdZjrbVPKygptt5kcSrL5f4xCZwU+ufz7cp0GLwpRMJ+shG9YJJFBxb0itPF\n" +
"sy51vAyEtdBC7jgAU96ZVeQ06nryDq1D2EpoVMElqNyL46Jo3lnKbGquGKzXzQYU\n" +
"BN32/scDAgMBAAECggEBAJE/mo3PLgILo2YtQ8ekIxNVHmF0Gl7... | Java |
.isShow = true;
}
// 结束时进行一些设置
@Override
public void onAnimationEnd(Animator animation) {
isMoving = false;
mfixedBlocks[mCurrEmptyPosition].isShow = true;
mCurrEmptyPosition = mfixedBlocks[mCurrEmptyPosition].next.index;
... | Java |
rtKeyringData("test-resource-keyring", "qwertyuiop")
// create second key
_, err = k.CreateOrUpdate("second-resource", "asdfghjkl")
assert.NoError(t, err)
assertKeyringData("test-resource-keyring", "qwertyuiop")
assertKeyringData("second-resource-keyring", "asdfghjkl")
// update a key
_, err = k.CreateOrUpdate... | Go |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from erpnext.controllers.print_settings import print_settings_for_item_table
class PurchaseRe... | Python |
llSourceInfo(packageName).installingPackageName.orEmpty()
}
}
// Checks if Play Store or Amazon Store
private fun isAppStore(name: String?) = name?.contains("com.android.vending").orFalse()
|| name?.contains("com.amazon").orFalse()
}
package com.apkupdater.repository
import android.net.Uri
import android.os.B... | Kotlin |
IME, estWprime);
}
if (pmaxAccept->checkState() == Qt::Checked) {
setRangeData(modelIndex, CPPAGE_RANGES_COL_PMAX, estPmax);
}
}
setRangeData(modelIndex, CPPAGE_RANGES_COL_EST_CP, estCp);
setRangeData(modelIndex, CPP... | C++ |
'package:mizer/api/plugin/ffi/ffi_pointer.dart';
import 'package:mizer/api/plugin/ffi/bindings.dart' as bindings;
class SequencerPointer extends FFIPointer<bindings.Sequencer> {
final bindings.FFIBindings _bindings;
SequencerPointer(this._bindings, ffi.Pointer<bindings.Sequencer> ptr) : super(ptr);
Map<int, ... | Dart |
POISSON -> Poisson()
SQUARED_HINGE -> SquaredHinge()
LOG_COSH -> LogCosh()
}
}
}
}
/**
* @see [Losses.SOFT_MAX_CROSS_ENTROPY_WITH_LOGITS]
*/
public class SoftmaxCrossEntropyWithLogits(reductionType: ReductionType = ReductionType.SUM) :
Loss... | Kotlin |
X between 0 and 5.
* var ax = map(mouseX, 0, 100, 0, 5);
* var ay = 66;
*
* //Get the ceiling of the mapped number.
* var bx = ceil(map(mouseX, 0, 100, 0,5));
* var by = 33;
*
* // Multiply the mapped numbers by 20 to more easily
* // see the changes.
* stroke(0);
* fill(0);
* line(0, ay... | JavaScript |
uld be OK
ldmdb r0!, { r10-r11 }
mov r12, r10, ror #16
mov r11, r11, ror #16
stmia r8!, { r11-r12 }
ldmdb r1!, { r10-r11 }
mov r12, r10, ror #16
mov r11, r11, ror #16
stmia r9!, { r11-r12 }
subs r14, r14, #8
bne 0b
@ Copy alternate members of m... | Assembly |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: ... | C |
/*!
* port_none_impl.h - no threads port for lcdb
* Copyright (c) 2022, Christopher Jeffrey (MIT License).
* https://github.com/chjj/lcdb
*/
#include <stdlib.h>
#include "port.h"
/*
* Mutex
*/
void
ldb_mutex_init(ldb_mutex_t *mtx) {
(void)mtx;
}
void
ldb_mutex_destroy(ldb_mutex_t *mtx) {
(void)mtx;
}
voi... | C |
,0,0,.12),0 7px 8px -5px rgba(156,39,176,.2)}.nav-pills:not(.nav-pills-icons)>li>a{border-radius:30px}.nav-pills.nav-stacked>li+li{margin-top:5px}.nav-pills.nav-pills-info>li.active>a,.nav-pills.nav-pills-info>li.active>a:focus,.nav-pills.nav-pills-info>li.active>a:hover{background-color:#00bcd4;-webkit-box-shadow:0 12... | CSS |
el description location water_level
2015-08-18T00:00:00Z below 3 feet santa_monica 2.064
2015-08-18T00:00:00Z between 6 and 9 feet coyote_creek 8.12
[...]
2015-09-18T21:36:00Z between 3 and 6 feet santa_monica 5.066
2015-09-18T21:42:00Z between 3 and 6 feet santa_monica 4.938
... | Markdown |
})
expectedVMRunningCondition := func(name, namespace string) gomegatypes.GomegaMatcher {
return MatchConditionIgnoreTimeStamp(exportv1.Condition{
Type: exportv1.ConditionReady,
Status: k8sv1.ConditionFalse,
Reason: inUseReason,
Message: fmt.Sprintf("Virtual Machine %s/%s is running", namespace, na... | Go |
Value, QAfterSortBy> thenByStrValue() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'strValue', Sort.asc);
});
}
QueryBuilder<StoreValue, StoreValue, QAfterSortBy> thenByStrValueDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'strValue', Sort... | Dart |
odRM.rm
* field. The X bit must be 0.
*/
protected static int getRXB(Register reg, Register rm) {
assert !isInvalidEncoding(rm) && !isInvalidEncoding(reg) : rm + " " + reg;
int rxb = (reg == null ? 0 : reg.encoding & 0x08) >> 1;
rxb |= (rm == null ? 0 : rm.encoding & 0x08) >> 3;
... | Java |
('Dom,7,sus2')
});
it('ChordMatcher can match diminished chords', function () {
midiChord = [60, 63, 66]
var cm = new CxChord.ChordMatcher()
cm.match(midiChord)
var p0 = cm.bayes.getBestPosterior()
expect(p0.hypo.key)... | Typescript |
/// Creates a ```FirebaseParams``` instance, a Firebase struct that only
/// knows how to GET data, and limits the number of entries returned
/// on each request to the first ```count```. Often used with ```order_by```.
pub fn limit_to_first(&self, count: u32) -> FirebaseParams {
self.params(LIMIT_T... | Rust |
00 */ lwz r0, 0(r25)
/* 8045FBB8 0045C9B8 90 09 00 18 */ stw r0, 0x18(r9)
/* 8045FBBC 0045C9BC 80 19 00 04 */ lwz r0, 4(r25)
/* 8045FBC0 0045C9C0 3B 39 00 08 */ addi r25, r25, 8
/* 8045FBC4 0045C9C4 90 09 00 1C */ stw r0, 0x1c(r9)
/* 8045FBC8 0045C9C8 39 29 00 20 */ addi r9, r9, 0x20
/* 8045FBCC 0045C9CC 42 00 FF... | Assembly |
oudFormation/latest/UserGuide/aws-properties-bedrock-dataautomationproject-documentstandardoutputconfiguration.html#cfn-bedrock-dataautomationproject-documentstandardoutputconfiguration-outputformat
//
OutputFormat interface{} `field:"optional" json:"outputFormat" yaml:"outputFormat"`
}
package awsbedrock
// Prope... | Go |
),
actual = events
)
}
@Test
fun `should emit Stop event`() {
val events: MutableList<MentionTextWatcher.MentionTextWatcherState> = mutableListOf()
val watcher = buildMentionWatcher { state -> events.add(state) }
watcher.onTextChanged("t @", 2, 0, 1)
w... | Kotlin |
(Port.INPUT, input.getName(), input.getWidthInt(), portId++);
}
for (final var output : outputs) {
myPorts.add(Port.OUTPUT, output.getName(), output.getWidthInt(), portId++);
}
}
@Override
public ArrayList<String> getArchitecture(
Netlist theNetlist, AttributeSet attrs, String componentNa... | Java |
So you put Tkinter in it's own process.
# Now why is Pystray in another process too?!
# A: Because if I don't, MPV and GNOME Appindicator
# try to access the same resources and cause the
# entire application to segfault.
#
# I suppose this means I can put the Tkinter GUI back
# into the main process. This is ... | Python |
16_F32: "VCVT.VC.FXS16.F32",
VCVT_HI_FXS16_F32: "VCVT.HI.FXS16.F32",
VCVT_LS_FXS16_F32: "VCVT.LS.FXS16.F32",
VCVT_GE_FXS16_F32: "VCVT.GE.FXS16.F32",
VCVT_LT_FXS16_F32: "VCVT.LT.FXS16.F32",
VCVT_GT_FXS16_F32: "VCVT.GT.FXS16.F32",
VCVT_LE_FXS16_F32: "VCVT.LE.FXS16.F32",
VCVT_FXS16_F32: "VCVT.FXS16.F32",
VCVT_Z... | Go |
= true,
[CONSTANTS.LFG_DUNGEON_IDS.THE_SOULFORGES_LAYER_9] = true,
[CONSTANTS.LFG_DUNGEON_IDS.THE_SOULFORGES_LAYER_10] = true,
[CONSTANTS.LFG_DUNGEON_IDS.THE_SOULFORGES_LAYER_11] = true,
[CONSTANTS.LFG_DUNGEON_IDS.THE_SOULFORGES_LAYER_12] = true,
[CONSTANTS.LFG_DUNGEON_IDS.THE_SOULFORGES_LAYER_13] = true... | Lua |
uChar.CODE_POINT_MAX_VALUE_ + 1);
assertEquals(null, result);
result = goog.i18n.uChar.fromCharCode(null);
assertEquals(null, result);
result = goog.i18n.uChar.fromCharCode(undefined);
assertEquals(null, result);
result = goog.i18n.uChar.fromCharCode(NaN);
assertEquals(null, result);
}
function testTo... | JavaScript |
_inputs,
&proof,
extra_transcript_init_msg,
)
.is_ok());
Ok(())
}
fn compose_proof_of_quintic_equ_root<F>(
circuit: &mut PlonkCircuit<F>,
x_var: Variable,
) -> Result<Variable, PlonkError>
where
F: PrimeField
{
let x2_var = circuit.mul(x_var, x_var)?;
let x3_var = circu... | Rust |
,0x14,0x5c,0x82,0xc0]
vpmovusqw %zmm19, -1024(%rdx,%rax,4) {%k2}
// CHECK: vpmovusqw %zmm19, 1024(%rdx,%rax)
// CHECK: encoding: [0x62,0xe2,0x7e,0x48,0x14,0x5c,0x02,0x40]
vpmovusqw %zmm19, 1024(%rdx,%rax)
// CHECK: vpmovusqw %zmm19, 1024(%rdx,%rax) {%k2}
// CHECK: encoding: [0x62,0xe2,0x7e,0x4a,0x14,... | Assembly |
3, credentials, StaticGasProvider(BigInteger.valueOf(1), BigInteger.valueOf(500000)))
val result = simpleStorage.set(3.toBigInteger()).send()
val returnValue = result.transactionHash
Assertions.assertThat(returnValue).startsWith("0x")
}
}package jp.co.layerx.cordage.crosschainatomicswap.flo... | Kotlin |
02".parseHex(), throwsFormatException);
// Test exception on prefix '0x'
expect(
() =>
"0x000102030405060708090A0B0C0D0E0F112233445566778899AABBCCDDEEFF"
.parseHex(),
throwsFormatException);
// Test exception on uneven input
expect(
(... | Dart |
#!/usr/bin/python2.5
#
# Copyright 2014 Emilie Gillet.
#
# Author: Emilie Gillet (emilie.o.gillet@gmail.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including w... | Python |
ue == '' then
return "Settle Price Denominator: No Value"
end
return "Settle Price Denominator: "..value
end
-- Dissect: Settle Price Denominator
ice_futures_mdf_impact_v1_1_51.settle_price_denominator.dissect = function(buffer, offset, packet, parent)
local length = ice_futures_mdf_impact_v1_1_51.settle_pr... | Lua |
req *pb.FinalizeNodeSignaturesRequest) (*ent.Transfer, error) {
db, err := ent.GetDbFromContext(ctx)
if err != nil {
return nil, fmt.Errorf("failed to get or create current tx for request: %w", err)
}
// Extract leaf IDs from node signatures
leafIDs := make([]uuid.UUID, 0, len(req.NodeSignatures))
for _, nodeS... | Go |
3E");
$pattern-tic-tac-white: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm33.414-6l5.95-5.95L45.95.636 40 6.586 34.... | CSS |
% {
opacity: 1;
}
}
@-webkit-keyframes fadein {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-moz-keyframes fadein {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/**
* ----------------------------------------------
* Demo styles
* -------------... | CSS |
DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT}, {@code dstArrayElement} <b>must</b> be an integer multiple of 4</li>
* <li>If the descriptor type of the descriptor set binding specified by either {@code srcBinding} or {@code dstBinding} is {@link EXTInlineUniformBlock#VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK_EXT DESCRIPTOR... | Kotlin |
f1c7a1 = _0x30824b[_0x3cf5d5(0x515)][_0x3cf5d5(0x83f)][_0x3cf5d5(0x3d6)](_0x57fdf0); continue; case '2': var _0xa5abc2 = _0x3a98a7[_0x1d76ac] || _0xf1c7a1; continue; case '3': _0x30c3eb[_0x1d76ac] = _0xf1c7a1; continue; case '4': _0xf1c7a1[_0x3cf5d5(0x897)] = _0xa5abc2[_0x3cf5d5(0x897)][_0x3cf5d5(0x3d6)](_0xa5abc2); co... | JavaScript |
() {
Err(ExitError::expected_error(format!("{:#?}", e)))
} else {
Err(ExitError::temporary(format!("{:?}", e)))
}
}
}
}
fn main_run_forever(project: Project) -> OpResult {
let (tx, rx) = chan::unbounded();
let build_thread = {
thread::... | Rust |
important;
}
.amis-scope .cxd-UserSelect-selectBody {
width: 100%;
background: #f5f7f8;
display: flex;
flex-direction: column;
}
.amis-scope .cxd-UserSelect-searchLoadingBox {
flex: 1;
width: 100vw;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.amis-scope .cxd-User... | CSS |
67788");
BOOST_CHECK_EQUAL(b.size, 8);
BOOST_CHECK_EQUAL(b.hex(), "1122334455667788");
FixedHash<8> c("0x1122334455667788");
BOOST_CHECK_EQUAL(c.size, 8);
BOOST_CHECK_EQUAL(c.hex(), "1122334455667788");
// TODO: short input, this should fail
FixedHash<8> d("112233445566");
BOOST_CHECK_EQUAL(d.size, 8);
BOOST... | C++ |
1105 1163 11AE;B7BB;1105 1163 11AE; # (랻; 랻; 랻; 랻; 랻; ) HANGUL SYLLABLE RYAD
B7BC;B7BC;1105 1163 11AF;B7BC;1105 1163 11AF; # (랼; 랼; 랼; 랼; 랼; ) HANGUL SYLLABLE RYAL
B7BD;B7BD;1105 1163 11B0;B7BD;1105 1163 11B0; # (랽; 랽; 랽; 랽; 랽; ) HANGUL SYLLABLE RYALG
B7BE;B7BE;1105 1163 11B1;B7BE;1105 1163 11B1; # (랾; 랾; 랾; 랾; 랾; ) HA... | Kotlin |
\\\\app\\\\page.tsx\"],\n \n }]\n },\n {\n 'layout': [module0, \"C:\\\\Users\\\\thebe\\\\ML\\\\Codes\\\\Balaji Health Care Assisstant\\\\balaji-health-care-assistant\\\\lol\\\\app\\\\layout.tsx\"],\n'not-found': [module1, \"next/dist/client/components/not-found-error\"],\n'forbidden':... | JavaScript |
Effect * (1 - AvoidChance / 100))
end
-- recoup initialisation
if output["anyRecoup"] > 0 then
DamageIn["TrackPoolLoss"] = true
for _, damageType in ipairs(dmgTypeList) do
output[damageType.."PoolLost"] = 0
end
end
-- taken over time degen initialisation
if output["preventedLifeLossTo... | Lua |
e langword="true"/> if the handler has already been terminated</summary>
bool IsClosed { get; }
/// <summary>Set the value of a <see cref="FdbDatabaseOption">database option</see></summary>
void SetOption(FdbDatabaseOption option, ReadOnlySpan<byte> data);
/// <summary>Gets the <see cref="IFdbTransactionHandl... | C# |
() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
MnCatatanObservasiRanapActionPerformed(evt);
}
});
MnCatatanObservasiRanapKebidanan.setBackground(new java.awt.Color(255, 255, 254));
MnCatatanObservasiRanapKebidanan.setFont(new java.awt.... | Java |
ded-box: 0.25rem;
--rounded-btn: .125rem;
--rounded-badge: .125rem;
--tab-radius: 0.25rem;
--animation-btn: 0;
--animation-input: 0;
--btn-focus-scale: 1
}
[data-theme=synthwave] {
color-scheme: dark;
--b2: 20.2941% 0.076211 287.835609;
--b3: 18.7665% 0.070475 287.835609;
--pc: 1... | CSS |
-- // FileName: Team.lua
-- // Written by: Partixel/TheGamer101
-- // Description: Team chat bar manipulation.
local PlayersService = game:GetService("Players")
local TEAM_COMMANDS = {"/team ", "/t ", "% "}
function IsTeamCommand(message)
for i = 1, #TEAM_COMMANDS do
local teamCommand = TEAM_COMMANDS[i]
if stri... | Lua |
if (renderer is ParticleSystemRenderer psr)
psr.materials = materials;
else
renderer.sharedMaterials = materials;
}
else if (nnc != null)
{
var materials = materialNames.Select(name => SearchUtilities.F... | C# |
937859c5dd8a77350103157eb880f02e8c08214277cef"))
val outputKey2 = internalKey2.outputKey(Crypto.TaprootTweak.NoScriptTweak).first
assertEquals(outputKey2.value, ByteVector32("882d74e5d0572d5a816cef0041a96b6c1de832f6f9676d9605c44d5e9a97d3dc"))
val script2 = Script.pay2tr(outputKey2)
asser... | Kotlin |
4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"],
"baht-sign": [320, 512, [], "e0ac", "M144 0c-17.7 0-32 14.3-32 32l0 32L37.6 64C16.8 64 0 80.... | JavaScript |
|
| 生成任务 | 给定一个人物简介,生成该人物可能说的一句话。 |
| 编辑任务 | 对于一篇新闻报道的开头,将其编辑成更具吸引力的版本。 |
| 生成任务 | 给定一个数字列表,生成其中每个数字的平方。 |
| 分类任务 | 给定一组股票数据和相应时间段内的市场情况,训练一个分类器以预测某只股票在未来会涨还是跌。 |
| 编辑任务 | 对于一篇科技文章,将其语言转化为普通人... | Markdown |
in", "tags.0", "devtools"),
resource.TestCheckResourceAttr("scaleway_webhosting.main", "tags.1", "provider"),
resource.TestCheckResourceAttr("scaleway_webhosting.main", "tags.2", "terraform"),
resource.TestCheckResourceAttrSet("scaleway_webhosting.main", "updated_at"),
resource.TestCheckResourceAttr... | Go |
}
export interface QueueContainer<V> {
[queue_]: Queue<QueueElement<V>>;
[queueTotalSize_]: number;
}
export interface ByteQueueContainer {
[queue_]: Queue<{ buffer: ArrayBufferLike, byteOffset: number, byteLength: number }>;
[queueTotalSize_]: number;
}
export function dequeueValue<V>(container: QueueContainer... | Typescript |
ntry.active span.file-label span.file-name,.file-entry.prompt span.file-label span.file-name{color:#010b15}.file-entry.dragging{background:#2a2a2a}.file-entry.dragover{background-color:#313131}.file-entry i{display:inline-block;flex-shrink:0;font:normal normal normal 18px/1 Font Awesome\ 5 Free;font-size:18px;height:21... | CSS |
ads.hitCount = 0;
entry->GetModifiableData()->otherThreads.totalTime = 0;
}
if (NS_IsMainThread()) {
entry->GetModifiableData()->mainThread.hitCount++;
entry->GetModifiableData()->mainThread.totalTime += delay;
} else {
entry->GetModifiableData()->otherThreads.hitCount++;
entry->GetModifiable... | C++ |
order(ByteOrder.BIG_ENDIAN)
}
value.forEach(byteBuffer::putLong)
return Binary.toPositiveByteArray(byteBuffer.array()).toString(StandardCharsets.UTF_8)
}
override fun readIntArray(): IntArray {
val len = readInt()
val unpacked = unpackNStar(buffer.get(len * Int.... | Kotlin |
ist<MarkerOptions>? = null
try {
markerOptionsList = MyItemReader().read(inputStream)
} catch (e: JSONException) {
Log.e(TAG, "JSONException.")
}
if (null != markerOptionsList) {
for (item in markerOptionsList) {
hMap?.addMarker(item)
... | Kotlin |
val cfg = makeConfig(cfgHocon)
assertTrue(cfg.zkRun)
assertEquals(testVal, cfg.zkHost)
assertNotNull(SERVER_ENV_PROXY.readSysProperty(SYS_PROP_ZKRUN))
assertEquals(testVal, SERVER_ENV_PROXY.readSysProperty(SYS_PROP_ZKHOST))
}
@Test fun testJettyPortHostSolrHomeSolrLogAbsent() {
... | Kotlin |
ent = this;
subPairs.Add(collidable, newPair);
}
}
containedPairs.Add(collidable);
}
}
protected abstract void UpdateContainedPairs();
public override void UpdateCollision(float dt)
{
Wa... | C# |
# -*- coding: utf-8 -*-
"""
Vitamins Colorscheme
~~~~~~~~~~~~~~~~~~~~
Converted by Vim Colorscheme Converter
"""
from pygments.style import Style
from pygments.token import Token, String, Keyword, Generic, Comment, Operator, Name, Number
class VitaminsStyle(Style):
background_color = '#242424'
st... | Python |
"var(--scalar-color-yellow)" }, 308: { name: "Permanent Redirect", url: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308", color: "var(--scalar-color-yellow)" }, 400: { name: "Bad Request", url: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400", color: "var(--scalar-color-red)" }, 401: { name... | JavaScript |
mage] = useState(IMAGES[computeRandomIndex(IMAGES)]);
const [quote, setQuote] = useState(QUOTES[computeRandomIndex(QUOTES)]);
const [isFadingIn, setIsFadingIn] = useState(true);
const isFirstRender = useRef(true);
function handleClickNewPoster() {
isFirstRender.current = false;
setIsFadingIn(false);
... | Typescript |
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | C |
lleg.rotateAngleX = f == 0 ? -1.4726646259971648F : lleg.rotateAngleX;
pelvis.rotateAngleX = f == 0 ? 0.7853981633974483F : 1.5707963267948966F;
pelvis.offsetY = f == 0 ? 0.25f : 0.0f;
lleg.offsetY = f == 0 ? 0.25F : 0.0f;
rleg.offsetY = f == 0 ? 0.25F : 0.0f;
lleg2.rotateAngleX = 0.8726646259971648F +... | Java |
Sora Sompeng", 5],
[new Interval(0x11100, 0x1114F), "Chakma", 5],
[new Interval(0x11150, 0x1117F), "Mahajani", 5],
[new Interval(0x11180, 0x111DF), "Sharada", 5],
[new Interval(0x111E0, 0x111FF), "Sinhala Archaic Numbers", 4],
[new Interval(0x11200, 0x1124F), "Khojki", 5],
[new Interval(0x11280,... | Typescript |
/* Copyright (c) 1988 Bellcore
* All Rights Reserved
* Permission is granted to copy or use this program, EXCEPT that it
* may not be sold for profit, the copyright notice must be reproduced
* on copies, and credit should be given to Bellcore where... | C |
>. If you cannot achieve any profit, return <code>0</code>.</p>
<p> </p>
<p><strong class="example">Example 1:</strong></p>
<pre>
<strong>Input:</strong> prices = [7,1,5,3,6,4]
<strong>Output:</strong> 5
<strong>Explanation:</strong> Buy on day 2 (price = 1) and sell on day 5 (price = 6), profit = 6-1 = 5.
Note ... | Markdown |
# Basic Dictionary Operations
# Create an empty dictionary
my_dict = {}
# Add key-value pairs to the dictionary
my_dict["name"] = "Alice"
my_dict["age"] = 25
my_dict["city"] = "New York"
print(my_dict) # Output: {'name': 'Alice', 'age': 25, 'city': 'New York'}
# Access a value using a key
print(my_dict["name"]) # ... | Python |
SIZE: usize = 32;
#[derive(Debug, Eq, PartialEq, Hash, Clone)]
pub struct ConnectionToken([u8; CONNECTION_TOKEN_SIZE]);
impl ConnectionToken {
pub fn from_slice(slice: &[u8]) -> Result<Self, ()> {
if slice.len() != CONNECTION_TOKEN_SIZE {
// TODO proper error
return Err(());
... | Rust |
оротея Милстип",
[260697] = "Сестра Брайар",
[243984] = "[*] Гибнущий мир",
["Флакон с кислотой"] = 3,
[283826] = 3,
[122159] = 5,
[14099] = "Мировой судья Бартилас",
[186972] = 11,
[191068] = "Осквернение <Архимонд> <Архимонд>",
[260698] = "Сестра Солена",
[300211] = "Вооруженный робопаук",
[5084... | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.