content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
to detect root_dir.', vim.log.levels.ERROR)
end)
return
end
for _, client in ipairs(M.get_rustowl_clients()) do
if not is_in_workspace(client, root_dir) then
-- Attach to existing session
notify_workspace_folder(client, root_dir)
vim.lsp.buf_attach_client(0, client.id)
return
... | Lua |
```
#define PAYLOAD_SIZE 0x100char payload[PAYLOAD_SIZE];strcpy(payload, "GLIBC_TUNABLES=glibc.malloc.mxfast=glibc.malloc.mxfast=");for (int i = strlen(payload); i < PAYLOAD_SIZE - 1; i++){ payload[i] = 'B';} payload[PAYLOAD_SIZE - 1] = '\0';
```
第二部分将会调用__minimal_malloc(0x100 + 1)
,这个时候的内存信息如下:
```
*RA... | Markdown |
/*
* Copyright (c) 2017-2021, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef SUNXI_CPUCFG_H
#define SUNXI_CPUCFG_H
#include <sunxi_mmap.h>
/* c = cluster, n = core */
#define SUNXI_CPUCFG_CLS_CTRL_REG0(c) (SUNXI_CPUCFG_BASE + 0x0010 + (c) * 0x10)
#define S... | C |
for Windows that conforms to the simple peripheral bus (SPB) device driver interface (DDI). SPB is an abstraction for low-speed serial buses (for example, I2C and SPI) that allows peripheral drivers to be developed for cross-platform use without any knowledge of the underlying bus hardware or device connections. |
| [... | Markdown |
let g32 = power_of_two(gen, 32);
let g64 = power_of_two(gen, 64);
let g96 = power_of_two(gen, 96);
let g128 = power_of_two(gen, 128);
let g160 = power_of_two(gen, 160);
let g192 = power_of_two(gen, 192);
let g224 = power_of_two(gen, 224);
assert_eq!(
... | Rust |
encoder for stabilization
* `-src_vocab (int)`: Path to source vocabulary
### Acknowledgement
This gated graph neural network is leveraged from github.com/JamesChuanggg/ggnn.pytorch.git which is based on the paper "Gated Graph Sequence Neural Networks" by Y. Li, D. Tarlow, M. Brockschmidt, and R. Zemel.
## アーキテクチャ策定に... | Markdown |
ime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalInspectionMode
import androidx.compose.ui.res.stringResource
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecyc... | Kotlin |
'everywhere'. Local heaps, GC, unwinding,
//! local storage, and logging. Even a 'freestanding' Rust would likely want
//! to implement this.
use alloc::arc::Arc;
use alloc::boxed::{BoxAny, Box};
use core::any::Any;
use core::atomic::{AtomicUint, SeqCst};
use core::iter::Take;
use core::kinds::marker;
use core::mem;
u... | Rust |
{ id3, 1, n = 2 },
{ id4, 1, n = 2 },
}, db:iter_nodes({ start_node_id = id1, max_distance = 1 }):collect())
-- Filtering should support blocking out traversal to nodes
same_tuple_lists(
{
{ id1, 0, n = 2 },
{ id3, 1, n = 2 },
... | Lua |
neratedMessageV3.isStringEmpty(mdPort_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, mdPort_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authCode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, authCode_);
}... | Java |
, 3, 0x0, 0x0, 0x38, 0x14
createsprite gShellTrapRedImpactTemplate, ANIM_ATTACKER, 2, 0x0, 0x0, 0x0, 0x2
playsewithpan SE_M_FLAME_WHEEL, SOUND_PAN_ATTACKER
delay 0x2
createsprite gFireSpiralOutwardSpriteTemplate, ANIM_ATTACKER, 3, 0x0, 0x0, 0x38, 0x18
createsprite gShellTrapRedImpactTemplate, ANIM_ATTACKER, 2, 0x0... | Assembly |
getId());
Friends fe4 = new Friends();
fe4.setMe(u2.getId());
fe4.setFriend(u3.getId());
fe4.setGroupId(g3.getId());
Friends fe5 = new Friends();
fe5.setMe(u3.getId());
fe5.setFriend(u1.getId());
fe5.setGroupId(g5.getId());
Friends fe6 = new Fri... | Java |
�지 날아가는 것만 같아요.
그것도 사람들이지만 달빛 한 점 눈딱 뜨고 볼 수 있었지요.
작은 동산엔 빛나는 달 한 점 없는 아름다운 별 하나가 서 있었는데, 이게 어디 여행자인지 큰 배낭을 메고서도 매일 하늘 아래 모여 있었어요.
어쩌다 태양 한 점만 남겨도 산딸기를 구별해내 건널 수 있었던 여인숙에 여행객이 묵고 싶어서 안달이 난 거지 뭐예요.
배롱나무 수염도 짜고 베개도 벨 수도 없었던 거지 뭐예요.
배낭엔 달콤한 연주가 연주가 따로 있었고요,
부엌용 파이프들도 제각각 들어 있었어요.
소녀는 손가락을 들어 빙빙 돌더니 별들의 탱고 리듬에 맞춰 노래했지요.
“사실... | Markdown |
r(--macos-divider-weak);
}
.macos-card {
background: var(--macos-background);
border: 1px solid var(--macos-separator);
border-radius: 8px;
box-shadow: var(--macos-shadow-1);
}
/* 页面容器(类 macOS) */
.macos-page {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
padding: 12px;
gap:... | CSS |
* @param existingType
* Existing type.
* @param events
* {@link Events}
*/
private void removeDueToTypeChange(Type existingType, Events events) {
existingType.removeReferences();
fireAndSave(new NodeEvent(existingType, NodeEventType.REMOVED, null), events);
log.warn("Type " + exi... | Java |
2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2
L2_2 = nil
L3_2 = c016374C1
L3_2 = L3_2.f8C7D4F4D
L4_2 = A0_2[2]
L5_2 = L2_2
L3_2 = L3_2(L4_2, L5_2)
if L3_2 then
L3_2 = A0_2[6]
if 1 == L3_2 then
L4_2 = A0_2[2]
L5_2 = CD3A213C7225B68B3
L5_2 = L5_2.S4... | Lua |
e(SERVICE_ACCOUNT_KEY)
.short("s")
.long(SERVICE_ACCOUNT_KEY)
.value_name("SERVICE_ACCOUNT_KEY")
.env("LIBUNFTP_SERVICE_ACCOUNT_KEY")
.help("The service account key JSON file of the Google Cloud Storage bucket to be used")
.... | Rust |
direct3d10.d3d10getgeometryshaderprofile"]
old-location: direct3d10\d3d10getgeometryshaderprofile.htm
tech.root: direct3d10
ms.assetid: VS|directx_sdk|~\d3d10getgeometryshaderprofile.htm
ms.date: 12/05/2018
ms.keywords: D3D10GetGeometryShaderProfile, D3D10GetGeometryShaderProfile function [Direct3D 10], ba175c86-099a-e... | Markdown |
.addBox(-1.0F, 1.5F, -5.0F, 2.0F, 6.0F, 1.0F, new CubeDeformation(0.0F)).texOffs(80, 59)
//
.addBox(-1.0F, 7.5F, -4.0F, 2.0F, 3.0F, 1.0F, new CubeDeformation(0.0F)).texOffs(57, 23)
//
.addBox(-4.0F, 0.5F, 3.0F, 8.0F, 3.0F, 1.0F, new... | Java |
setAttribute("link", self.name)
axis_tag = adom.createElement("axis")
if self.joint_axis_xyz <= 0.33:
axis_tag.setAttribute("xyz", "1 0 0")
if self.joint_axis_xyz > 0.33 and self.joint_axis_xyz <= 0.66:
axis_tag.setAttribute("xyz", "0 1 0")
if self.joint_axis_xyz ... | Python |
: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='var%28--bs-danger%29'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c... | CSS |
gin gets the byte offset of the first character in this node
func (n *DelStmt) Begin() token.Pos { return n.Del.Begin }
// End gets the byte offset one past the last character in this node
func (n *DelStmt) End() token.Pos { return n.Targets[len(n.Targets)-1].End() }
func (n *DelStmt) stmtNode() {}
func (n *DelStmt) ... | Go |
rike, &position, &normal);
storm->trigger.type = &lightning_storm_damage_shape;
lightning_storm_setup_target(storm);
++storm->active_strike_count;
storm->strike_timer = randomInRangef(MIN_STRIKE_INTERVAL, MAX_STRIKE_INTERVAL);
}
void lightning_storm_find_targets(lightning_storm_t* storm, int strike_co... | C |
42.0));
}
buildCounterCropHint--;
}
core.List<api.CropHint> buildUnnamed24() => [buildCropHint(), buildCropHint()];
void checkUnnamed24(core.List<api.CropHint> o) {
unittest.expect(o, unittest.hasLength(2));
checkCropHint(o[0]);
checkCropHint(o[1]);
}
core.int buildCounterCropHintsAnnotation = 0;
api.CropH... | Dart |
companion object {
const val LOCAL_TAPES_DIR = "src/androidTest/assets/tapes"
// This is also hardcoded in AndroidTapeRoot#getSdcardDir()
// Need to use the same value in both places
const val REMOTE_TAPES_DIR = "okreplay/tapes"
}
}
@file:Suppress("FunctionName")
package com.airbnb.mvrx
import ko... | Kotlin |
use self::fairing::TemplateFairing;
use serde::Serialize;
use serde_json::{Value, to_value};
use std::borrow::Cow;
use std::path::PathBuf;
use rocket::{Rocket, State};
use rocket::request::Request;
use rocket::fairing::Fairing;
use rocket::response::{self, Content, Responder};
use rocket::http::{ContentType, Status}... | Rust |
hStateGetArgs>());
set => _targetHealthStates = value;
}
/// <summary>
/// Type of target that you must specify when registering targets with this target group.
/// See [doc](https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_CreateTargetGroup.html) for... | C# |
.Game} ({Rules.Database.Language}, v{Rules.Database.Version})[/]");
}
else
{
AnsiConsole.MarkupLine("[red]Rules database not loaded.[/]");
}
if (Openai.Database != null)
{
AnsiConsole.MarkupLine($"[gold3_1]🛢️ {Open... | C# |
async fetchProjects() {
return await this.sendReq(`/workspaces/${this.workspaceId}/projects`, axios.get);
}
async createProject(name: string) {
return await this.sendReq(`/workspaces/${this.workspaceId}/projects`, axios.post, { name });
}
async updateProject(id: string, name: string) {
return ... | Typescript |
phia_api/term/)
/// and
/// [`sophia_term`](https://docs.rs/sophia_term/latest/sophia_term/).
pub mod term {
pub use sophia_api::term::*;
pub use sophia_term::*;
}
/// This module re-exports symbols from
/// [`sophia_api::triple`](https://docs.rs/sophia_api/latest/sophia_api/triple/).
pub mod triple {
pub u... | Rust |
.catch(axiosErrorHandler)
.then((response: AxiosResponse): Reservation[] => {
const { data, statusText } = response;
const { ok, status, message, payload } = data;
if ((status !== 200 && status !== 204) || !ok) {
throw message || statusText;
}
return payload as Reservation[]... | Typescript |
= nil
p.processCommand()
break
}
p.params = make([]byte, 0, p.plen)
default:
l := len(p.params)
if l < p.plen {
p.params = append(p.params, b)
}
if l == p.plen-1 {
p.processCommand()
break
}
}
}
}
func (p *CommandProcessor) processCommand() {
if Debug {
log.Println(... | Go |
---@diagnostic disable: undefined-field
local Config = require("config.cfg_main")
local Locales = require("config.cfg_locales")
if Config.Framework ~= "custom" then return end
local inRental = {}
--- Retrieves the Player ID for the given source
---@param source number -- Player's source ID
---@return number|nil -- ... | Lua |
Input) (*kinesis.PutRecordsOutput, error) {
batchLengths = append(batchLengths, len(input.Records))
return &kinesis.PutRecordsOutput{}, nil
},
}
var msg service.MessageBatch
for i := 0; i < n; i++ {
part := service.NewMessage([]byte(`{"foo":"bar","id":123}`))
msg = append(msg, part)
}
if err := k.Wri... | Go |
use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms o... | C++ |
string(TokenType::IntegerValue(1), "1");
let tokens1: Vec<Token> = vec![
Token::new_string(TokenType::VarKeyword, "var"),
Token::new_string(TokenType::Identifier, "x"),
Token::new_string(TokenType::TypeDeclaration, ":"),
Token::new_string(TokenType::IntegerType, "int"),
Toke... | Rust |
veValue(map['cachePolicy']),
headers: map['headers']?.cast<String, String>(),
httpShouldHandleCookies: map['httpShouldHandleCookies'],
httpShouldUsePipelining: map['httpShouldUsePipelining'],
iosAllowsCellularAccess: map['allowsCellularAccess'],
iosAllowsConstrainedNetworkAccess: map['allo... | Dart |
let instance = &*(ptr as *mut T::Instance);
let imp = instance.impl_();
let wrap: Borrowed<Aggregator> = from_glib_borrow(ptr);
*res = ptr::null_mut();
gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, {
match imp.update_src_caps(wrap.unsafe_cast_ref(), &from_glib_borrow(caps... | Rust |
png) {
final Uint8List png = await encodeDomImageSourceAsPng(
videoFrame,
videoFrame.displayWidth.toInt(),
videoFrame.displayHeight.toInt(),
);
return png.buffer.asByteData();
}
final ByteBuffer pixels = await readVideoFramePixelsUnmodified(videoFrame);
// Check if the pixels are a... | Dart |
1100,
"Hehe~ Commander, your kindness puts me at ease."
}
},
main_extra = {
{
1100,
"Here Commander, your lunch! Ah, but you can't be a picky eater!|Wow, Hood is gorgeous as always... Hey Commander, you should follow her example too and act more gracefully!|Whenever I play hide-and-seek, I usu... | Lua |
mport type { AbortOptions } from 'interface-store'
/**
* A datastore that can combine multiple stores inside various
* key prefixes
*/
export class MountDatastore extends BaseDatastore {
private readonly mounts: Array<{ prefix: Key, datastore: Datastore }>
constructor (mounts: Array<{ prefix: Key, datastore: D... | Typescript |
tends Tick<D> {
/// The value that this range tick starting point represents
final D rangeStartValue;
/// Position of the range tick starting point.
double rangeStartLocationPx;
/// The value that this range tick ending point represents.
final D rangeEndValue;
/// Position of the range tick ending poin... | Dart |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
\\/ M anipulation |
--------... | C |
获得的code。
(4)注意:如运行本例子,请注释掉第1个例子,且code职能调用一次,
会随着认证不断更新。一个用户一个access_token。
+---------------------------------------------------
*/
// var jsonParas = {
// code:"the value of your browser's parameter code",
// grant_type:"authorization_code"
// };
// Weibo.OAuth2.access_token(jsonParas,function(data){
/... | JavaScript |
AN * shapeFunctionMatrix_;
/** matrix used to solve for lambda */
SPAR_MAT lambdaMatrix_;
/** maximum number of iterations */
int maxIterations_;
/** relative tolerance to solve to */
double tolerance_;
private:
// DO NOT define this
LambdaMatrixSolver();
};
//--------------... | C |
}
*/
}
//
//
// NOW PREPARE TO HASH THE NEXT RANGE OF DOCIDS
//
//
// sanity check (MDW)
//zeroOutVectorComponents ( m_tmpScoresVec2 ,
// m_tmpEbitVec2 ,
// m_tmpHardCounts2 ,
// newTmpDocIds2 ,
// rat );
// . sanity check
// . "newTmpDocIds2" is the "active int... | C++ |
ache=unsafe"},
output: baseConfig(ConfigQemu{Disks: &QemuStorages{Ide: &QemuIdeDisks{Disk_0: &QemuIdeStorage{Passthrough: &QemuIdePassthrough{
Backup: true,
Cache: QemuDiskCache_Unsafe,
File: "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi8",
Replicate: true}}}}})},
{na... | Go |
et_character_id]
target_data.h_state.insert_position = -1
character_data.h_state.insert_position = -1
@settle_behavior.add_settle_second_behavior_effect(constant_effect.SecondEffect.GIVE_PAN_IN_DAY_FIRST_MEET)
def handle_give_pan_in_day_first_meet(
character_id: int,
change_data: game_type.CharacterSt... | Python |
import pytest
from swarmsync import AgentTeam, Agent, Task
from swarmsync.common import ModelFactory
from swarmsync.tools.tool_manager import ToolManager
@pytest.fixture
def model_factory():
return ModelFactory()
@pytest.fixture
def team(model_factory):
return AgentTeam(
name="test_team",
desc... | Python |
bool? isDrop}) onMove;
/// Callback called after a piece has been selected for promotion.
///
/// If the argument is `null`, the promotion should be canceled.
final void Function(Role? role) onPromotionSelection;
/// Optional premovable state of the board.
///
/// If `null`, the board will not allow pre... | Dart |
r ID.
* @param storyId - Story ID.
* @param accessKey - Access key for the private object.
* @param extended - '1' - to return additional fields for users and communities. Default value
* is 0.
* @param fields - Additional fields to return
* @return [VKRequest] with [StoriesGetV5113Respons... | Kotlin |
GetEventChan()
go func() {
con, err := sql.Open("mysql", fmt.Sprintf(
"%s:%s@tcp(%s:%d)/%s",
REPLICATION_USERNAME,
REPLICATION_PASSWORD,
HOST,
PORT,
DATABASE,
))
defer con.Close()
if err != nil {
t.Fatal(err.Error())
}
_, err = con.Exec("TRUNCATE new_table")
if err != nil {
t.Fa... | Go |
# WARNING: Please don't edit this file. It was generated by Python/WinRT v0.9.210202.1
import typing, winrt
import enum
_ns_module = winrt._import_ns_module("Windows.Globalization.PhoneNumberFormatting")
class PhoneNumberFormat(enum.IntEnum):
E164 = 0
INTERNATIONAL = 1
NATIONAL = 2
RFC3966 = 3
class... | Python |
#include <stdio.h>
#include <stdlib.h>
#include "mln_rbtree.h"
#include <assert.h>
static inline int cmp_handler(const void *data1, const void *data2)
{
return *(int *)data1 - *(int *)data2;
}
int test1(void)
{
int n = 10;
mln_rbtree_t *t;
mln_rbtree_node_t *rn;
assert((t = mln_rbtree_new(NULL)) ... | C |
import os
import json
from arcgis.gis import GIS, Item
from arcgis.apps.itemgraph import create_dependency_graph
import sys
# Authenticate to ArcGIS Online or your ArcGIS Enterprise portal
gis = GIS("https://www.arcgis.com", profile="saved_profile")
print(gis)
# get all items belonging to the authenticated user.
# re... | Python |
maximum limit set for the workers.");
return status;
}
}
if (isDecreasing)
{
// Scale in only if the count of unprocessed changes will not exceed the combined limit post the scale-in operation.
if (lastUnprocessedCh... | C# |
ic static <S,T,TS extends Collection<T>> boolean addMap(Map<S, TS> map, S
// x, T y, TS empty) {
// TS ys = map.get(x);
// if (ys == null)
// map.put(x, ys = empty.
// return ys.add(y);
// }
// can't make this generic, since it creates new objects.
public static <S, T> boolean addMapSet(Map<S, Set<T>> map, S x... | Java |
Hvis du har en viktig idé for en nettverksoppgradering, ikke liker en tilnærming som blir tatt, eller har bekymringer rundt tidspunktet for en oppgradering, er det viktig at du sier ifra og presenterer saken din tydelig for fellesskapet![X1521X ]';
@override
String get knowledge250Sbupgrades250Sb3250Sbtitle => 'Hv... | Dart |
ersion='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e%3cg transform='translate(-756.000000, -549.000000)' fill='#eeeff0'%3e%3cg transform='translate(736.000000, 127.000000)'%3e%3cg transform='translate(0.000000... | CSS |
口 (所谓实现Usb接口,就是指实现了 Usb接口声明所有方法)
func (c Computer) Working(usb Usb) {
//通过usb接口变量来调用Start和Stop方法
usb.Start()
usb.Stop()
}
func main() {
//测试
//先创建结构体变量
computer := Computer{}
phone := Phone{}
camera := Camera{}
//关键点
computer.Working(phone)
computer.Working(camera) //实现camera
}
package controllers
import ... | Go |
"/></para></summary>
public abstract partial class ChatParticipantBase : IObject
{
/// <summary>Member user ID</summary>
public virtual long UserId => default;
}
/// <summary>Group member. <para>See <a href="https://corefork.telegram.org/constructor/chatParticipant"/></para></summary>
[TLDef(0xC02D4007)]
pub... | C# |
978a352e828543aa48775316fbeec85bb6ba",
"confirmed_status": true,
"timestamp": 1645755298,
"txType": "Sent",
"amount": 9521,
"worthNow": "0.00",
"worthAtBlockTimestamp": "0.00",
"subType": "mint",
"aliens": <dynamic>[],
"fees": 489... | Dart |
, SMod);
XLS_BINARY_OP(SubOp, Subtract);
XLS_BINARY_OP(UdivOp, UDiv);
XLS_BINARY_OP(UmodOp, UMod);
#define XLS_MUL_OP(TYPE, BUILDER) \
BValue convertOp(TYPE op, const TranslationState& state, BuilderBase& fb) { \
auto result_type = ... | C++ |
Construct");
static_assert(sizeof(WBP_CharacterSelectorButton_C_PreConstruct) == 0x000001, "Wrong size on WBP_CharacterSelectorButton_C_PreConstruct");
static_assert(offsetof(WBP_CharacterSelectorButton_C_PreConstruct, IsDesignTime) == 0x000000, "Member 'WBP_CharacterSelectorButton_C_PreConstruct::IsDesignTime' has a w... | C++ |
757] = "Ring der tausend Male",
[28758] = "Panzerhelm des Exorzisten",
[28759] = "Schreckenszwirnkapuze des Exorzisten",
[28760] = "Seidene Kapuze des Exorzisten",
[28761] = "Schuppenhelm des Exorzisten",
[28762] = "Zierde der gestohlenen Seelen",
[28763] = "Jadering des Ewiglebenden",
[28764] = "Wildumha... | Lua |
es_From_NamespacesEventhubsAuthorizationRule_Spec() to populate field Spec")
}
rule.Spec = spec
// Status
var status NamespacesEventhubsAuthorizationRule_STATUS
err = status.AssignProperties_From_NamespacesEventhubsAuthorizationRule_STATUS(&source.Status)
if err != nil {
return eris.Wrap(err, "calling AssignPr... | Go |
State(2812);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==SYMBOLIC) {
{
setState(2811);
match(SYMBOLIC);
}
}
setState(2814);
match(SOURCE);
setState(2816);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==IS) {
{
setState(2815);
match(IS);
}
... | Java |
{
Edge record = new Edge();
record.annotations = fieldSetFlags()[0] ? this.annotations : (java.util.Map<java.lang.String,java.lang.String>) defaultValue(fields()[0]);
record.childVertexHash = fieldSetFlags()[1] ? this.childVertexHash : (java.lang.String) defaultValue(fields()[1]);
recor... | Java |
eMatcherExample {
emailFormControl = new FormControl('', [
Validators.required,
Validators.email,
]);
matcher = new MyErrorStateMatcher();
}
`.trim();
emailInputcsssource : string =`
.example-form {
min-width: 150px;
max-width: 500px;
width: 100%;
}
.example-full-width {
width: 100%;
}
.mat-... | Typescript |
encoded with UTF-8. Useful for unpredictable strings such as usernames. |
| **`staticString(choices: string[])`** <span style="float:right; font-weight: normal;">(first choice, `string`)</span> <br><span style="display: inline-block; margin-top: 0.5em;">​</span>A string type that can only be set to values from a... | Markdown |
chirality setting.",
color = Colors.Warning
});
}
}
}
public static class Extensions
{
public static Rect ShrinkOne(this Rect rect)
{
rect.x += 1;
rect.y += 1;
rect.width -= 2;
rect.he... | C# |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* hypersparc.S: High speed Hypersparc mmu/cache operations.
*
* Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
*/
#include <asm/ptrace.h>
#include <asm/psr.h>
#include <asm/asm-offsets.h>
#include <asm/asi.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#inc... | Assembly |
ongest = currentCombat:GetCombatTime()
end
if (currentCombat.is_boss.killed) then
cleuIDData.kills = cleuIDData.kills + 1
cleuIDData.best_try = 0
table.insert(cleuIDData.try_history, {0, currentCombat:GetCombatTime()})
--print("KILL", "best try", cleuIDData.best_try, "amt kills"... | Lua |
substring(3, 255))
}
val row = tbl.selectAll().where { tbl.n eq 101 }.single()
tbl.checkRowFull(
row,
13,
null,
-10,
null,
101,
null,
date,
... | Kotlin |
0x45de57(0x75, -0x78, 0x80, '5^M7', -0x9b)](_0x46ba99);
} else (function () {
return !![];
}[_0x522e9c(0x713, 0x72e, 0x691, '2kMi', 0x67a) + _0x522e9c(0x79a, 0x6d2, 0x698, 'hE6Z', 0x63c) + 'r'](_0x16c52b[_0x3292e2('iqG]', -0xa8, 0x6a, -0x1f, -0x54)](_0x16c52b[_0x5ccd36(0x466, 0x496, 0x406, '... | JavaScript |
(3,135,201)100%);
background: -moz-linear-gradient(top,rgb(126,198,234)0%,rgb(70,179,234)45%,rgb(3,135,201)100%);
background: linear-gradient(top,rgb(126,198,234)0%,rgb(70,179,234)45%,rgb(3,135,201)100%);
-webkit-box-shadow:inset 0 1px 0 rgba(0, 0, 0, .25);
-moz-box-shadow:inset 0 1px 0 rgba(0, 0, 0, .2... | CSS |
; 2] {
[self.positions_render_target, self.albedo_render_target]
}
pub fn positions(&self) -> &textures::Texture2D {
&self.positions
}
pub fn albedo(&self) -> &textures::Texture2D {
&self.albedo
}
pub fn prepare_draw(&mut self, ctx: *mut dx11_1::ID3D11DeviceContext1) {
... | Rust |
ose/install/)가 설치되어 있다면, 아래와 같은 터미널 명령어로 새 라라벨 프로젝트를 만들 수 있습니다.
먼저, Linux용 Docker Desktop을 사용 중이라면 아래 명령어를 실행하세요. 아니라면 이 단계는 건너뛰어도 됩니다:
```shell
docker context use default
```
그 다음, "example-app"이라는 디렉터리에 새 라라벨 애플리케이션을 만들려면 터미널에서 다음처럼 명령어를 입력하세요:
```shell
curl -s https://laravel.build/example-app | bash
```
물론, "e... | Markdown |
* object value is equivalent, else `false`.\n *\n * **Note:** Partial comparisons will match empty array and empty object\n * `srcValue` values against any array or object value, respectively. See\n * `_.isEqual` for a list of supported value comparisons.\n *\n * **Note:** Multiple values ca... | JavaScript |
import streamlit as st
import numpy as np
import io
import base64
import time
import urllib.parse
import re
from scipy.io import wavfile
import matplotlib.pyplot as plt
# Morse Code Dictionary
MORSE_CODE_DICT = {
'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.',
'G': '--.', 'H': '....', '... | Python |
acer, Replacer]
type MatchReplace = [Matchers, Replacers]
// match first only
const contextMappings: MatchReplace[] = [
// jun etc.
[
[/^[jqx]$/, 'v', 'en'],
[$0, 'u', 'n'],
],
// yun
[
[null, 'v', 'en'],
[$0, 'yu', 'n'],
],
// jue etc.
[
[/^[jq... | Typescript |
a clean state.
/// If this is not specified the initial state will not be used.
#[clap(long, short)]
clean: bool,
}
fn main() {
let Opts {
verbose,
quiet,
pem,
port,
abci,
mut state,
persistent,
clean,
} = Opts::parse();
let verb... | Rust |
are always 0
emitInt(addOffset(instruction, ADR_OFFSET_HIGH, ADR_OFFSET_LOW, weightedOffset), patchPos);
} else {
throw GraalError.shouldNotReachHereUnexpectedValue(instruction); // ExcludeFromJacocoGeneratedReport
}
}
/**
* Patches jump targets when label gets bou... | Java |
import random
import pandas as pd
import torch
from loguru import logger
from tqdm import tqdm
from humanextension.utils import create_humaneval_functions, remove_after_stop_token
def implement_irrelevant_humanextension(
df: pd.DataFrame,
generate_fn: callable,
max_new_tokens: int,
temperature: floa... | Python |
betalt, men jeg har ikke mottatt myntene mine ennå.';
@override
String get faq250Sbquestion8722Sb22 => 'Hvorfor kan jeg ikke sende alle Moneroene som er i lommeboken min?';
@override
String get faq250Sbquestion8722Sb2257Sbagoradesk => 'Hvorfor kan jeg ikke sende alle myntene som er i lommeboken min?';
@ov... | Dart |
/// An instance of <see cref="MemoryCacheEntryOptions"/> with settings corresponding to the current instance.
/// </returns>
public static implicit operator MemoryCacheEntryOptions(CacheEntryOptions self)
{
return self._memoryCacheOptions ??= MakeOptions(self);
static MemoryCacheEntryO... | C# |
from dao.trabalhoDaoSqlite import TrabalhoDaoSqlite
class TesteTrabalhoDaoSqlite:
trabalhoDaoSqlite = TrabalhoDaoSqlite()
def testDeveRetornarListaComMiasDeZeroItens(self):
esperado = 0
recebido = len(self.trabalhoDaoSqlite.pegaTrabalhos())
assert esperado != recebido | Python |
// where B1a is the greatest closure of B1 with respect to X1
var z1 = condition ? x1 : (null as Object?);
z1.expectStaticType<Exactly<Object?>>();
var z2 = condition ? x1 : throw 0;
z2.expectStaticType<Exactly<X1>>();
var z3 = condition ? x1 : t2;
z3.expectStaticType<Exactly<... | Dart |
tensionEnableGPOS: new r.Pointer(r.uint16, JstfGSUBModList),
extensionDisableGPOS: new r.Pointer(r.uint16, JstfGSUBModList),
extensionJstfMax: new r.Pointer(r.uint16, new LookupList(GPOSLookup))
});
var JstfLangSys = new r.Array(new r.Pointer(r.uint16, JstfPriority), r.uint16);
var JstfLangSysRecord = new r.Struc... | JavaScript |
.trade_date = {}
-- Size: Trade Date
eurex_derivatives_edci_t7_v13_1.trade_date.size = 4
-- Display: Trade Date
eurex_derivatives_edci_t7_v13_1.trade_date.display = function(value)
-- Check if field has value
if value == 0xFFFFFFFF then
return "Trade Date: No Value"
end
return "Trade Date: "..value
end
... | Lua |
er Eingaben, um zu bestimmen, ob und welche Datenquellen notwendig sind. Derzeit hat die KI keine Quelle ausgewählt."
-- No, use all data retrieved from the data sources.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::DATASOURCESELECTION::T3751463241"] = "Nein, verwende alle Daten, die aus den Datenquellen abgerufen wurden."
... | Lua |
fer_sell_quantity: 200,
},
})))?
.unwrap_id();
market.do_request(Request::Update {
id: offer_id,
item_update: ItemUpdate::Offer(OfferDetails {
offer_buy_price: Dollars::from_millibucks(360),
offer_sell_price: Dollars::from_millibucks(430),
... | Rust |
-- Armour - Close-Support Howitzers
-- Implementations
-- CS 95mm (GBR)
local CS95mm = CSHowitzer:New{
edgeEffectiveness = 0.35,
name = [[CS 95mm]],
range = 1690, -- fwiw I object to this too
reloadTime = 9,
customParams = {
weaponcost = 20,
cegflare ... | Lua |
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({ bufnr = event.buf }))
end, "[T]oggle Inlay [H]ints")
end
map("<leader>tr", function()
local current_value = vim.opt.relativenumber:get()
vim.opt.relativenumber = not current_value
end, "[T]ogg... | Lua |
ier),
brickX + 5,
brickY + 5,
50,
this.state.brickHeight - 10
);
}
this.context.closePath();
}
}
}
}
public detectCollisions() {
const { brickColumnCount, brickRowCount } = this.levels.current;
for (le... | Typescript |
class GossipManager(object):
""" Keeps gossip and rankings that should be sent to other nodes or collected by Ranking """
def __init__(self):
""" Create new gossip keeper instance """
self.gossips = []
self.peers_that_stopped_gossiping = set()
self.neighbour_loc_rank_buff = []
... | Python |
// Copyright 2024 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
#ifndef CORE_RENDERER_UI_WRAPPER_LAYOUT_ANDROID_LAYOUT_NODE_MANAGER_ANDROID_H_
#define CORE_RENDERER_UI_WRAPPER_LAYOUT_ANDROID_LAY... | C |
using System.Runtime.CompilerServices;
using Disqord.Models;
using Qommon;
namespace Disqord.Rest.Api;
public static partial class RestContentValidation
{
// TODO: validate localizations
public static class ApplicationCommands
{
public static void ValidateName(string name, [CallerArgumentExpressio... | C# |
X_MEDIUM_FIFO ;
}
}
else {
smc->hw.fp.fifo.tx_s_size = 0 ;
smc->hw.fp.fifo.tx_a0_size = TX_FIFO_SPACE ;
}
smc->hw.fp.fifo.rx1_fifo_start = smc->hw.fp.fifo.rbc_ram_start +
RX_FIFO_OFF ;
smc->hw.fp.fifo.tx_s_start = smc->hw.fp.fifo.rx1_fifo_start +
smc->hw.fp.fifo.rx1_fifo_size ;
smc->hw.fp.fifo.tx_a0_... | C |
d.put("ToggleButton[MouseOver+Selected].backgroundPainter", new LazyPainter("javax.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_MOUSEOVER_SELECTED, new Insets(7, 7, 7, 7), new Dimension(72, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.