content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
15, 15, 15, 2, 2, 15,
};
static const uint8_t s_bptcA3[2][64] =
{
{
3, 3, 15, 15, 8, 3, 15, 15,
8, 8, 6, 6, 6, 5, 3, 3,
3, 3, 8, 15, 3, 3, 6, 10,
5, 8, 8, 6, 8, 5, 15, 15,
8, 15, 3, 5, 6, 10, 8, 15,
15, 3, 15, 5, 15, 15, 15, 15,
3, 15, 5, 5, 5, 8, 5, 10... | C++ |
J1xuICAgICAgICA/ICd4TWlkWU1pZCBzbGljZSdcbiAgICAgICAgOiAnbm9uZSdcblxuICByZXR1cm4gYCUzQ3N2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnICR7dmlld0JveH0lM0UlM0NmaWx0ZXIgaWQ9J2InIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0nc1JHQiclM0UlM0NmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249JyR7c3RkfScvJTNFJTNDZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzEg... | JavaScript |
#endregion
//--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\
#region --Set-, Get- Methods--
#endregion
//--------------------------------------------------------Misc Methods:------------------... | C# |
ll : /** @type {ol.DeclutterGroup} */ (instruction[4]);
var overflow = /** @type {number} */ (instruction[5]);
var fillKey = /** @type {string} */ (instruction[6]);
var maxAngle = /** @type {number} */ (instruction[7]);
var measure = /** @type {function(string):number} */ (instruction[8]... | JavaScript |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "AppContent.h"
#include "ClientConfig.h"
#include "Content.h"
#include "Logging.h"
#include "RequestParams.h"
#include "Result.h"
#include <memory>
#include <optional>
#include <string>
#include <vector>
namespace SFS
{... | C |
16-bit number.
}
function _multiplyTwo64bitArrays(/* array */ arrayA, /* array */ arrayB){
// summary:
// Takes two arrays, each of which holds a 64-bit number broken into 4
// 16-bit elements, and returns a new array that holds a 64-bit number
// that is the product of the two original numbers.
// ar... | JavaScript |
x /* increment pointer */
cmp $0, %bl /* third byte == C */
je L(2) /* yes => return pointer */
incl %eax /* increment pointer */
L(2): CHECK_BOUNDS_HIGH (%eax, STR(%esp), jb)
RETURN_BOUNDED_POINTER (STR(%esp))
popl %ebp /* restore saved registers */
popl %ebx
popl %esi
popl %edi
LEAVE
RET_PTR
/*... | Assembly |
/* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef __BOARD_BRYA_FW_CONFIG_H_
#define __BOARD_BRYA_FW_CONFIG_H_
#include <stdint.h>
/****************************************************************************
*... | C |
is active, so
// interrupts can be started (this corresponds to CONI PI, bit 28). PI OK 8 indicates that there is
// no interrupt being held and no channel waiting for an interrupt; this signal is used by the real
// time clock to discount interrupt time while timing user programs."
// Different signals names?
/... | C |
p();
}
/*member: _staticCalledInForInLoop:loop*/
_staticCalledInForInLoop() {}
/*member: _staticNotCalledInForInLoop:*/
_staticNotCalledInForInLoop() {}
/*member: staticCalledInForInLoop:*/
staticCalledInForInLoop() {
_staticNotCalledInForInLoop();
// ignore: unused_local_variable
for (int i in [1, 2, 3]) {
... | Dart |
Dao().insert(arrivalTime)
return Result.failure(outputData)
}
val res = response.body()
if (res?.estimatedArrivalTime == null || res.estimatedArrivalTime.html.isNullOrEmpty()) {
if (!routeStop.routeNo.isNullOrEmpty() && !routeStop.stopId.isNullOrEmpty... | Kotlin |
-NEXT: error: End address before start address.
# CHECK-NEXT: (lldb) disassemble --address 0x0
# CHECK-NEXT: command-disassemble.s.tmp`foo:
# CHECK-NEXT: command-disassemble.s.tmp[0x0] <+0>: int $0x10
# CHECK-NEXT: command-disassemble.s.tmp[0x2] <+2>: int $0x11
# CHECK-NEXT: command-disassemble.s.tmp[0x4] <+4>:... | Assembly |
:Workgroup as WorkgroupDims>::Idx)
-> Self::Elem;
}
pub trait DimTranspose {
fn transpose(self) -> Self;
}
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[derive(GeobacterDeps)]
pub struct Dim1D<T> {
pub x: T,
}
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOr... | Rust |
# - read from kafka topic
# - publish to redis pub
from kafka import KafkaConsumer
import argparse
import atexit
import logging
import redis
# - default kafka topic to write to
topic_name = 'stock-analyzer'
# - default kafka broker location
kafka_broker = '127.0.0.1:9092'
logger_format = '%(asctime)-15s %(message... | Python |
r0, r2
strh r0, [r6, #4]
b _080AAD22
.align 2, 0
_080AACFC: .4byte gCurTask
_080AAD00: .4byte gBldRegs
_080AAD04: .4byte gDispCnt
_080AAD08: .4byte gWinRegs
_080AAD0C: .4byte 0x00001137
_080AAD10: .4byte 0x00002FFF
_080AAD14: .4byte 0xFFFFFF00
_080AAD18: .4byte 0x00003FFF
_080AAD1C:
adds r0, r7, #1
lsls r0, r0, #... | Assembly |
i !== action.payload;
});
},
}
})
export const selectTodos = (state: RootState) => state.todos.todos
export const {
addTodo,
removeTodo,
} = todosSlice.actions
export default todosSlice.reducer;import _ from 'lodash';
import { cast, flow, Instance, types } from 'mobx-state-tree';
import { CategoryS... | Typescript |
lcrow {
top: 35px;
}
ul.sections > li > div.annotation:hover .pilcrow {
opacity: 1;
}
}
/*---------------------- (> 1025px) ---------------------*/
@media only screen and (min-width: 1025px) {
body {
font-size: 16px;
line-height: 24px;
}
#background {
width: 525px;
}
ul.secti... | CSS |
0 0}.body_fullscreen .owner_panel{padding:16px 40px}.body_fullscreen .wiki_content{padding:34px 40px}.body_fullscreen .away_page .wiki_title{padding-bottom:26px}.body_fullscreen .away_bottom{padding:0 40px 30px}}.svgIcon-market{-webkit-background-size:76px 76px;-moz-background-size:76px 76px;background-size:76px 76px;b... | CSS |
// finalizedBlockNumber (16) after currLastProcessedBlock (4) passed below,
// as block 6 contains the earliest unfulfilled VRF request
lastProcessedBlock, err := th.Listener.updateLastProcessedBlock(ctx, 4)
require.NoError(t, err)
require.Equal(t, int64(6), lastProcessedBlock)
}
func TestUpdateLastProcessedBloc... | Go |
stack
*/
ENTRY(execve)
FAKE_STACK_FRAME $0
SAVE_ALL
call sys_execve
movq %rax, RAX(%rsp)
RESTORE_REST
testq %rax,%rax
je int_ret_from_sys_call
RESTORE_ARGS
UNFAKE_STACK_FRAME
ret
ENTRY(page_fault)
errorentry do_page_fault
ENTRY(coprocessor_error)
zeroentry do_coprocessor_error
ENTRY(simd_coprocessor_e... | Assembly |
G) {
return;
}
this._print(args, "grey");
}
info(...args: any[]) {
if (this._threshold >= INFO) {
return;
}
this._print(args, "yellow");
}
warning(...args: any[]) {
// just in case someone is still using this
this.warn(...args);
}
... | Typescript |
ji3":[[43628],[]]},"戠":{"zhi2":[[43629],[]]},"戡":{"kan1":[[43630],[]]},"戢":{"Ji2":[[43631],[]],"ji2":[[43632],[]]},"戣":{"kui2":[[43633],[]]},"戤":{"gai4":[[43634],[]]},"戥":{"deng3":[[43635],[]]},"戦":{"zhan4":[[43636],[]]},"戗":{"qiang1":[[43637],[]]},"戗风":{"qiang1 feng1":[[43638],[]]},"戬":{"jian3":[[43639],[]]},"截":{"jie... | JavaScript |
from enum import Enum
from telescope.rbac import permissions
class GlobalRole(Enum):
ADMIN = "admin"
class SourceRole(Enum):
OWNER = "owner"
EDITOR = "editor"
VIEWER = "viewer"
USER = "user"
RAW_QUERY_USER = "raw_query_user"
ROLES = {
"global": {
GlobalRole.ADMIN.value: [
... | Python |
毁核协议:绝不重新谈判
- 利比亚难民后后悔推翻卡扎菲吗?
- 一元人民币能在欧洲国家买到什么?
- 俄安全部门挫败一起针对“胜利日”活动的恐袭图谋
- 老汉十年没洗澡,邻居报警,警察佩戴防毒面具进门
- 投票事件过后,联想今后的日子该怎样走?
- 利比亚难民后后悔推翻卡扎菲吗?
- 投票事件过后,联想今后的日子该怎样走?
- 如果日本沉没,中国会接收日本难民吗?
- 投票事件过后,联想今后的日子该怎样走?
- 利比亚难民后后悔推翻卡扎菲吗?
- 拨打急救电话反遭嘲笑 法国一女子心脏病突发去世
- 伊拉克军方在叙境内逮捕5名“伊斯兰国”头目
- 投票事件过后,联想今后的日子该怎样走?
- 投票事件过后,联想今后的日子该怎样走?
- ... | Markdown |
@Test
public final void testFilterWithComplexMath() throws Exception {
// DX-12164 ES v5.0 parsing error
assumeFalse(
elastic.getMinVersionInCluster().getMajor() == 5
&& elastic.getMinVersionInCluster().getMinor() == 0);
String sqlQuery =
"select city "
+ "from e... | Java |
always travel in packs of five.")<br>[Throh](../../pokemon/throh.md/)<br>Lv. 18 |
| <br>Black Belt Kentaro | .split("\n")
if (enableInterval) {
messages.forEach { SendMessagePool.add(intervalPool, interval, it, maxPoolSize) }
} else {
messages.forEach(MC.thePlayer::sendChatMessage)
}
}
/*
* Copyright (C) 2025 Yqloss
*
* This file is part of Yqloss Client (Mixin).
*
* This program is fr... | Kotlin |
// Copyright (c) 2009-2011 Ignacio Castano <castano@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 without limitation the rights to use,
/... | C |
t:return e;case co.PathOnly:return co.PathOnly;case co.IdOnly:return co.IdOnly;default:return t}}static normalizePayloadSampleIdx(e){return"number"==typeof e?Math.max(0,e):"string"==typeof e&&isFinite(e)?parseInt(e,10):0}static normalizeJsonSampleExpandLevel(e){return"all"===e?1/0:isNaN(Number(e))?2:Math.ceil(Number(e)... | JavaScript |
i = 0; i < Marbles.players; i++) {
players.push({
id: i,
score: 0,
next: {} as any
});
}
let playerFirst = players[0];
let previous = playerFirst;
players.shift();
players.forEach((p) => {
previo... | Typescript |
index of the selected element.
*
* @return the ListModel index of the selected element.
*/
virtual int getSelected();
/**
* Sets the ListModel index of the selected element.
*
* @param selected the ListModel index of the selected element.
... | C |
/8] |= 0xFF >> (pos % 8)
(*bits)[pos/8+1] |= ^(0xFF >> (pos % 8))
}
// codeSegment checks if the position is in a code segment.
func (bits *bitvec) codeSegment(pos uint64) bool {
return ((*bits)[pos/8] & (0x80 >> (pos % 8))) == 0
}
// codeBitmap collects data locations in code.
func codeBitmap(code []byte) bitvec {... | Go |
bordered: true,
borderColor: context.colors.cardOutlineColor,
borderRadius: BorderRadius.circular(12),
child: Container(
padding: EdgeInsets.symmetric(
horizontal: context.adaptiveDouble(mobile: 18, smallMobile: 14),
vertical: context.adaptiveDouble(mobile: 14, smallMobile:... | Dart |
Earth = extend({}, CRS, {
wrapLng: [-180, 180],
// Mean Earth Radius, as recommended for use by
// the International Union of Geodesy and Geophysics,
// see http://rosettacode.org/wiki/Haversine_formula
R: 6371000,
// distance between two geographical points using spherical law of cosines approximation
distan... | JavaScript |
derItem
import androidx.leanback.widget.ListRow
import androidx.leanback.widget.OnItemViewClickedListener
import androidx.leanback.widget.OnItemViewSelectedListener
import androidx.leanback.widget.Presenter
import androidx.leanback.widget.Row
import androidx.leanback.widget.RowPresenter
import androidx.lifecycle.Lifecy... | Kotlin |
stringLineNumbers.map(function(stringLineNumber) { return parseInt(stringLineNumber); });
lineNumbers.sort(function(a, b) { return a - b; });
// lineRanges <- sorted array of vscode ranges
return lineNumbers.map(function(lineNumber) {
var line = document.lineAt(lineNumber);
return { lineNumber, range: line.rang... | Typescript |
htable<V,K,HF,ExK,SetK,EqK,A>::ILLEGAL_BUCKET;
// How full we let the table get before we resize. Knuth says .8 is
// good -- higher causes us to probe too much, though saves memory.
// However, we go with .5, getting better performance at the cost of
// more space (a trade-off densehashtable explicitly chooses to ma... | C |
mber of pilot/sync symbols in the alphabet table (0=256)
*/
asp = 0;
/**
* Total number of symbols in data stream (can be 0)
*/
totd = 0;
/**
* Maximum number of pulses per data symbol
*/
npd = 0;
/**
* Number of data symbols in the alphabet table (0=256)
*/
asd = 0;
/**
* Pi... | Typescript |
color: transparent;outline: 0px;visibility: visible;">• 河南两公司泄露大量敏感数据被罚10万元</p></td></tr><tr data-bcless="lighten" data-bclessp="40%" style="-webkit-tap-highlight-color: transparent;outline: 0px;border-bottom: 1px solid rgb(180, 184, 175);visibility: visible;"><td align="center" valign="middle" style="-webkit-tap-highl... | Markdown |
-right and right-to-left text, the user-agent uses a complex Unicode algorithm to decide how to display the text. The `unicode-bidi` property overrides this algorithm and allows the developer to control the text embedding.
*
* **Syntax**: `normal | embed | isolate | bidi-override | isolate-override | plaintex... | Kotlin |
setPad()
initDialogBehaviorBinding(binding.dialogDlCcAssBar, context, binding.root.parent)
binding.apply {
ccListRv.linear().setup {
addType<VideoInfoV2>(R.layout.item_select_cc_ass)
onBind {
val model = getModel<VideoInfoV2>()
... | Kotlin |
if
// need be
if ((tileSize != tileRangeX) && (tileX == 0)) {
System.out.print(" bad X alignment ");
}
if ((tileSize != tileRangeY) && (tileY == 0)) {
System.out.print(" bad Y alignment ");
}
tileOffsets[tileX][tileY] = file.getFilePointer();
... | Java |
y animation before playing? If yes: queue the animation
wiggleMachine_config["PS"] = true -- Play Sound. Pretty explicit, heh?
-------------------------------------------------------------------------------
wiggleMachine_anims["F"] = nil -- anim front
wiggleMachine_anims["U"] = nil -- anim up
wiggleMachine_anims["B"]... | Lua |
',
reg: 'Windows Registry',
robots: 'robots.txt',
rsplus: 'R',
ruby: 'Ruby',
sas: 'SAS',
scala: 'Scala',
scheme: 'Scheme',
scilab: 'Scilab',
sdlbasic: 'SdlBasic',
smalltalk: 'Smalltalk',
smarty: 'Smarty',
sql: 'SQL',
tcl: 'Tcl',
teraterm: 'Tera Term',
text: 'Plain text',
thinbasic: 'thin... | JavaScript |
_label = new(this);
_preprocessing = new(this);
_alias = new(this);
_discard = new(this);
}
public sealed override ISymbolItemInlinesCreator CreatorForSymbol<TSymbol>(TSymbol symbol)
{
switch (symbol)
{
case INamespaceSymbol:
retu... | C# |
/**
* hb_font_get_glyph_h_origin:
* @font: #hb_font_t to work upon
* @glyph: The glyph ID to query
* @x: (out): The X coordinate of the origin
* @y: (out): The Y coordinate of the origin
*
* Fetches the (X,Y) coordinates of the origin for a glyph ID
* in the specified font, for horizontal text segments.
*
* R... | C++ |
local cmds = require('commands')
local getopt = require('getopt')
local bin = require('bin')
local lib14a = require('read14a')
local utils = require('utils')
local md5 = require('md5')
local dumplib = require('html_dumplib')
local toys = require('default_toys')
local ansicolors = require('ansicolors')
copyright = ''
a... | Lua |
* master_upid_str = std::getenv("FOEDUS_MASTER_UPID");
const char* master_eid_str = std::getenv("FOEDUS_MASTER_EID");
const char* soc_id_str = std::getenv("FOEDUS_SOC_ID");
if (master_upid_str == nullptr || master_eid_str == nullptr || soc_id_str == nullptr) {
return; // not launched as an SOC engine. exit
... | C++ |
("WolfCub", lang) + "\n";
Send(reply, update.Message.From.Id);
Thread.Sleep(300);
reply = "/aboutSandman - " + GetLocaleString("Sandman", lang) + "\n";
reply += "/aboutOracle - " + GetLocaleString("Oracle", lang) + "\n";
reply += "/aboutWolfMan - " + GetLocale... | C# |
import os
import sys
import numpy as np
import torch
import random
import tempfile
import soundfile as sf
import time
from pathlib import Path
# 确保当前目录在导入路径中
current_dir = os.path.dirname(os.path.abspath(__file__))
if current_dir not in sys.path:
sys.path.append(current_dir)
# 导入TTS模型
from .tts_models import Inde... | Python |
"""
2019.06.25新增。
当前车次时刻表停靠面板,只读的时刻表,设计原则为尽可能简洁明了,直接继承TableWidget。
"""
from PyQt5 import QtWidgets,QtGui,QtCore
from PyQt5.QtCore import Qt
from .data.train import Train
from .data.graph import Graph
class TrainTimetable(QtWidgets.QWidget):
def __init__(self,graph:Graph,parent=None):
super(TrainTimetable... | Python |
dex++] = normal;
}
// Initialize the triangle set.
int[] indices = new int[beamCount * 3];
for (int i = 0; i < indices.Length; i++)
{
indices[i] = i;
}
// Initialize the mesh.
mesh.Clear();
mesh... | C# |
local AnnouncementMetaData = class("AnnouncementMetaData")
function AnnouncementMetaData:ctor(csAnnouncementResponeMetaData)
self.title = csAnnouncementResponeMetaData.title
self.content = csAnnouncementResponeMetaData.content
self.language = csAnnouncementResponeMetaData.language
end
function AnnouncementMetaD... | Lua |
the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Warning: This file has to start up fast so we can't import lots of stuff.
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:isolate';
... | Dart |
;
asLines.forEach(line => {
const [] = line.split(',');
})
let programs = range('p'.charCodeAt(0) - 'a'.charCodeAt(0) + 1);
function spin(n) {
let x = programs.splice(programs.length - n, n);
programs = x.concat(programs);
// programs.splice(0, 0, x);
// print(programs);
}
function xch(a, b) {
... | Typescript |
1 - Green",
[68585] = "Art Template Plate Hand - Plate_PVPWarrior_C_01 - Green",
[68586] = "Art Template Plate Head - Plate_PVPWarrior_C_01 - Green",
[68587] = "Art Template Plate Legs - Plate_PVPWarrior_C_01 - Green",
[68588] = "Art Template Plate Shoulder - Plate_PVPWarrior_C_01 - Green",
[68589] = "Art Template Plat... | Lua |
import dbus
class Notification:
"""
Displays a notification.
Args:
summary (str): Summary text.
message (str): The message body (optional).
timeout (int): Notification length in milliseconds (optional).
app_name (str): Caller app name. Defaults to 'notify-send'.
kw... | Python |
"""
pip install aiogram
"""
import asyncio
import logging
import os
from collections import deque
from pprint import pprint
from aiogram import Bot, Dispatcher, types
from aiogram.enums import ChatAction
from aiogram.exceptions import TelegramRetryAfter
import microcore as mc
from microcore import Msg
mc.use_logging... | Python |
distance);
}
/**
* Computes the angle between this LineSegment and another one.
*
* @param other the other LineSegment
* @return angle in degrees
*/
public double angleTo(LineSegment other) {
double angle1 = Math.atan2(this.start.y - this.end.y, this.start.x - this.end.x);
... | Java |
pyright (C) 2024-2025 OpenAni and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license, which can be found at the following link.
*
* https://github.com/open-ani/ani/blob/main/LICENSE
*/
@file:Suppress("NOTHI... | Kotlin |
դյան կղզիներՄիկրոնեզիաՖարերյան կղզիներՖրանսիաԳաբոնՄիացյա" +
"լ ԹագավորությունԳրենադաՎրաստանՖրանսիական ԳվիանաԳերնսիԳանաՋիբրալթարԳրենլանդիաԳամբ" +
"իաԳվինեաԳվադելուպաՀասարակածային ԳվինեաՀունաստանՀարավային Ջորջիա և Հարավային Սենդ" +
"վիչյան կղզիներԳվատեմալաԳուամԳվինեա-ԲիսաուԳայանաՀոնկոնգի ՀՎՇՀերդ կղզի և ՄակԴոնալդ" +
"... | Go |
xOfs, yOfs = objName:GetPoint()
-- apply the adjustment
if xAdj == nil then xOffset = xOfs else xOffset = (xAdj == "+" and xOfs + xDiff or xOfs - xDiff) end
if yAdj == nil then yOffset = yOfs else yOffset = (yAdj == "+" and yOfs + yDiff or yOfs - yDiff) end
-- self:Debug("moveObject#2: [%s, %s]", xOffset, yOffset)
... | Lua |
{
color: 'rgba(255,255,255,0.4)',
zeroLineColor: '#ffffff'
}
}],
xAxes: [{
display: true,
ticks: {
fontColor: '#ffffff',
beginAtZero: true,
suggestedMax: 20,
display: false
},
gridLines: {
display:... | Typescript |
}
scale = focallength / (focallength + d.z);
d.x = (d.ax || ax) + (d.ix - (d.ax || ax)) / scale;
d.y = (d.ay || ay) + (d.iy - (d.ay || ay)) / scale;
}
render();
stats.update();
RAF(animate);
}
/**
* 画布渲染
*/
functio... | JavaScript |
_len = N_max_character
self.f0_embedding = nn.Embedding(N_max_character, n_dim)
self.w0 = nn.Linear(N_max_character, n_position)
self.wv = nn.Linear(n_dim, n_dim)
# first linear(512,25)
self.we = nn.Linear(n_dim, N_max_character)
self.active = nn.Tanh()
... | Python |
Enum.PLOP, SoundEnum.CRIC, SoundEnum.BRRAH].join(", "));
});
});
import { pokedex } from '#assets/pokedex';
import type { PokemonTypes } from '#assets/pokemon-source';
import { mapPokemonDataToPokemonGraphQL, PokemonReferencedCallIdentifier } from '#mappers/pokemonMapper';
import type { Ability, Pokemon } from '#ty... | Typescript |
_str()
.map(|s| s.starts_with("."))
.unwrap_or(false)
}
fn is_file(entry: &DirEntry) -> bool {
entry
.metadata()
.map(|metadata| metadata.is_file())
.unwrap_or(false)
}
fn get_md5_of_file(file_path: &Path) -> Result<String, Error> {
let file = std::fs::File::open(file_p... | Rust |
{boolean | null} templateLiteral template literal is available
* @property {boolean | null} asyncFunction async functions and await are available
*/
/**
* @template T
* @typedef {{ [P in keyof T]?: never }} Never<T>
*/
/**
* @template A
* @template B
* @typedef {(A & Never<B>) | (Never<A> & B) | (A & B)} Mix... | JavaScript |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2020 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | Python |
log(pointList)
this._buildKLine(seriesArray, pointList);
},
/**
* 生成K线
*/
_buildKLine: function (seriesArray, pointList) {
var series = this.series;
// normal:
var nLineWidth;
var nLineColor;
var nLineColo... | JavaScript |
�喊; 发出大而尖的声音; 呼啸而过",
"screamer":"n. 尖声叫喊的人;令人惊叹的事;惊叹符号;耸人听闻的标题",
"screamer bomb":"啸声炸弹",
"screamers":" [电影]异形终结",
"screamiest":"(screamy 的最高级) 尖亮的(声音), 尖声怪气的",
"screaming":"a. 发出尖叫声的, 极滑稽的, 惊人的",
"screaming meemies":" <美><俚>歇斯底里",
"screamingly":"adv. 尖叫地, 令人惊愕地",
"screams":"v. (因伤痛、害怕、激动等)尖叫 ~发出尖叫声( scream的第三人称单数 ); (... | Typescript |
ertices are visited
while (len(q) > 0):
x = q.popleft()
# Remove the first element
for i in gr[x]:
# Check if a vertex is
# already visited or not
if (vis[i] == 1):
continue
# Make vertex visited
vis[i] = 1
... | Markdown |
nd button as a string. If `nil` is used, no second button will be displayed.
--- * [style] - An optional style of the dialog box as a string. Defaults to "warning".
---
--- Returns:
--- * nil
---
--- Notes:
--- * The optional values must be entered in order (i.e. you can't supply `style` without also supplying `butt... | Lua |
is.getCurrentSelection(false);
if (!itemList) {
return;
}
let [x1, y1, x2, y2, c] = this.dragItem.getCoordinates();
let oX = x1;
let oY = y1;
this._dragList = [];
for (let item of itemList) {
[x1, y1, x2,... | JavaScript |
j];
clips[j] = clips[j+1];
clips[j+1] = swap;
n++;
}
}
if (0 == n)
break;
}
}
void
btcx_calc_skips(int line, int width, int *maxy,
struct btcx_skiplist *skips, unsigned int *nskips,
const struct v4l2_clip *clips, unsigned int nclips)
{
unsigned int clip,skip;
int end, maxline;
skip=0;
m... | C |
tually completely drawn
*/
int
glyphcache_add(glyphcache *gc, int c, int x, int y)
{
gc_bucket *b = gc->gc_next;
int cell;
int cx, cy;
if (b->gb_usedcells >= b->gb_numcells)
return ENOMEM;
cell = atomic_add_int_nv(&b->gb_usedcells, 1) - 1;
cell += b->gb_firstcell;
cy = gc->gc_firstline +
(cell / gc->gc_... | C |
var _0x153dc2 = a0_0x366f;
var N = Number(lines[0x0]);
var a = lines[0x1][_0x153dc2(0x4)]('\x20')['map'](value => Number(value));
a[_0x153dc2(0x5)]((a, b) => a - b);
var counter = Array(N)['fill'](0x0);
var j = 0x0;
counter[0x0] = [
a[0x0],
0x1
];
for (var i = 0x1; i... | JavaScript |
out).toBe("v" + version + "\n");
});
test("should return the correct description", async () => {
const result = await cli(["--help"], ".");
expect(result.stdout.includes(description)).toBe(true);
});
});
describe("selection", () => {
it("should print an error when it is fed a bad URL", async () => {
const re... | Typescript |
:= 0; i < n; i++ {
t := -1
for j := 0; j < n; j++ {
if !vis[j] && (t == -1 || dist[t] > dist[j]) {
t = j
}
}
vis[t] = true
for j := 0; j < n; j++ {
dist[j] = min(dist[j], dist[t]+this.g[t][j])
}
}
if dist[node2] >= inf {
return -1
}
return dist[node2]
}
/**
* Your Graph object will be i... | Go |
rse_number": 157,
"content":
"Bu, bir de inkarlarından, Meryem'e büyük bir iftirada bulunmalarından ve: \"Meryem oğlu İsa Mesih'i, Allah'ın elçisini öldürdük\" demelerinden ötürüdür. Oysa onu öldürmediler ve asmadılar, fakat onlara öyle göründü. Ayrılığa düştükleri şeyde doğrusu şüphededirler, bu husustaki ... | Dart |
get, targetKey as any, index);
}
/**
* Gets an instance of a class from the default DI container.
*
* The class must be annotated with @Injectable()
*
* @param target The class that to get an instance of
*/
export const getInstanceDI = <Type>(target: Class<Type>) =>
container.get<Type>(getTypeSymbol(target));
... | Typescript |
etElementsByTagName("stdout");
String stdOut;
if (stdoutElements.getLength() == 1) {
stdOut =
TestXmlUnescaper.CONTENT_UNESCAPER.unescape(stdoutElements.item(0).getTextContent());
} else {
stdOut = null;
}
NodeList stderrElements = node.getElementsByTagName("st... | Java |
-84C7, U+84CA-84CB, U+84CD, U+84D0-84D1, U+84D3, U+84D6, U+84DF-84E0, U+84E2-84E3, U+84E5-84E7, U+84EE, U+84F3, U+84F6, U+84FA, U+84FC, U+84FF-8500, U+850C, U+8511, U+8514-8515, U+8517-8518, U+851F, U+8523, U+8525-8526, U+8529, U+852B, U+852D, U+8532, U+8534-8535, U+8538-853A, U+853C, U+8543, U+8545;
}
@font-face {
f... | CSS |
AGANA LETTER SMALL A (CJ_NS) ÷ [0.3]
× 002C × 0308 × 3041 ÷ # × [0.3] COMMA (IS) × [9.0] COMBINING DIAERESIS (CM1_CM) × [21.03] HIRAGANA LETTER SMALL A (CJ_NS) ÷ [0.3]
× 002C × 0308 × 0020 ÷ 3041 ÷ # × [0.3] COMMA (IS) × [9.0] COMBINING DIAERESIS (CM1_CM) × [7.01] SPACE (SP) ÷ [18.0] HIRAGANA LETTER SMALL A (CJ_NS) ÷... | Dart |
Enc->nBitstreamDelayBuffer =
fdk_sacenc_delay_GetBitstreamFrameBufferSize(hMp4SpaceEnc->hDelay);
hMp4SpaceEnc->nOutputBufferDelay =
fdk_sacenc_delay_GetOutputAudioBufferDelay(hMp4SpaceEnc->hDelay);
hMp4SpaceEnc->nSurroundAnalysisBufferDelay =
fdk_sacenc_delay_GetSurroundAnalysisBufferDel... | C++ |
R8 R9 R10
FASTCALL1 MATH_CEIL R8 [+2]
GETIMPORT R7 K12 [math.ceil]
CALL R7 1 1
GETTABLEKS R10 R5 K9 ["Y"]
GETUPVAL R12 0
GETTABLEKS R11 R12 K5 ["VoxelResolution"]
DIV R9 R10 R11
FASTCALL1 MATH_CEIL R9 [+2]
GETIMPORT R8 K12 [math.ceil]
CALL R8 1 1
GETTABLEKS R11 R5 K10 ["Z"]
GETUPVAL R13 0
GETT... | Assembly |
com/hausec/Bloodhound-Custom-Queries/blob/master/customqueries.json) and [BloodHoundQueries from CompassSecurity](https://github.com/CompassSecurity/BloodHoundQueries/blob/master/customqueries.json). Replace the customqueries.json file located at `/home/username/.config/bloodhound/customqueries.json` or `C:\Users\USERN... | Markdown |
*spacer_width`
/// - `pwt-row-gap-<size>`: set `row-gap` to `size*spacer_width`
///
.pwt-gap-#{$name} {
gap: var(--pwt-spacer-#{$name}) !important;
}
.pwt-column-gap-#{$name} {
column-gap: var(--pwt-spacer-#{$name}) !important;
}
.pwt-row-gap-#{$name} {
row-gap: var... | CSS |
export const formatUTC = (
utcDate?: string,
utcOffset?: number,
format = "D MMM 'YYYY"
) =>
utcDate
? moment
.utc(utcDate)
.utcOffset(utcOffset || 1)
.format(format)
: '';
const removeKeyFromObject = (key: string, obj: any) => {
const { [key]: removed, ...rest } = obj;
ret... | Typescript |
true;
}
}
/**
* Runs through the list of updates to run and ticks them
*/
public boolean tickUpdates(boolean p_72955_1_) {
return false;
}
public List<NextTickListEntry> getPendingBlockUpdates(Chunk chunkIn, boolean p_72920_2_) {
return null;
}
public Li... | Java |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Web.Api.Auth.ApiTokens.Repositories
{
using System.Collections.Generic;
using System.Li... | C# |
at_points) OVER (PARTITION BY g.player_id ORDER BY g.DATE ROWS UNBOUNDED PRECEDING) AS rank_value\n" +
" FROM goat_points g%3$s\n" +
" WHERE g.player_id IN (:playerIds)%4$s\n" +
" ORDER BY %5$s, g.player_id\n" +
"), goat_points_numbered AS (\n" +
" SELECT date%6$s, player_id, rank_value, row_number() OVER ... | Java |
男女有别 男女有別|男尸 男屍|男性厌恶 男性厭惡|男才女貌 男才女貌|男生宿舍 男生宿舍|男用表 男用錶|男系 男系|甸后 甸後|画了 畫了|画出 畫出|画出来 畫出來|画卷 畫卷|画坛 畫壇|画布 畫布|画板 畫板|画栋雕梁 畫棟雕樑|画栋飞云 畫棟飛雲|画梁雕栋 畫樑雕棟|画法几何 畫法幾何|画着 畫着|画表 畫表|画表格 畫表格|画阁朱楼 畫閣朱樓|画面 畫面|画饼充饥 畫餅充飢|畅所欲为 暢所欲爲|畅所欲言 暢所欲言|畅游 暢遊|畅销曲 暢銷曲|界分别观 界分別觀|界别 界別|界面 界面|畎亩下才 畎畝下才|畏于 畏於|畏影恶迹 畏影惡跡|留个 留個|留中不发 留中不發|留了 留了|留余地 留餘地|留出 留出|留别 留別|... | JavaScript |
: ${prices.last()}, timestamp: ${LocalDateTime.ofEpochSecond(prices.last().dtg, 0, Helpers.zoneOffset)}")
// val rawPrices = HistoricalPriceHelpers.transformTradesToPrices(prices, fromAsset, toAsset)
// println("Last transformed price: ${rawPrices.last()}, last raw price date: ${rawPrices.last().ldt.toEpo... | Kotlin |
.elem=a("#"+e.id)[0];i.success&&i.success(m),e.index=o++,e.action(i,m)},d.prototype.action=function(e,t){var i=this;e.time&&(l.timer[i.index]=setTimeout(function(){c.close(i.index)},1e3*e.time));var a=function(){var t=this.getAttribute("type");0==t?(e.no&&e.no(),c.close(i.index)):e.yes?e.yes(i.index):c.close(i.index)};... | JavaScript |
图层类',
HeatmapLayer: '地图热力图类',
Others: '其他类',
Table: '表格类',
},
category: {
Statistic: '统计图表',
Diagram: '示意图',
Graph: '关系图',
Map: '地图',
Other: '其他',
},
purpose: {
Comparison: '比较',
Trend: '趋势',
Distribution: '分布',
Rank: '排名',
Pr... | Typescript |
a parcouru toutes les données
CMP r14, r5
BRANCH GE, conv_compress_end # Si index >= taille des données, terminer
# Charger la valeur courante
ADD r19, r11, r14 # r19 = adresse_données + index
LOADW r20, r19, 0 # r20 = données[index]
# Vérifier si c'est la première ... | Assembly |
�料。
房屋建筑工程项目满足土地、规划条件后,申请人可以按照基坑支护和土方开挖、地基基础和地下结构、地上结构等施工进展顺序,分阶段申请办理施工许可证。
第三十二条 按照国家有关规定对工程建设项目开展施工图设计文件联合审查,相关部门不再进行技术审查。推行数字化审图、网上审图等方式,优化审图流程。
施工图设计文件审查机构的审查意见应当合法、全面、准确,首次审查意见应当一次性告知。
市住房和城乡建设部门可以对房屋建筑和市政基础设施工程按照有关规定取消施工图审查或者缩小审查范围。
第三十三条 逐步推行惠企政策免申即享办理模式,通过政府部门信息共享等方式,实现符合条件的企业免予申报、直接享受政策。
对确需企业提出申请的惠企政策,推... | Markdown |
.TopEdgeCenter, 8, 25, firstTroopFrame.Follower.DurabilityFrame;
else
return HelpTip.Point.TopEdgeCenter, -10, -520, OrderHallMissionFrame.FollowerList.ScrollBox;
end
end
local function PositionAtFirstMission(missionFrame)
local frame = missionFrame.MissionTab.MissionList.ScrollBox:FindFrameByPredicate(function(f... | Lua |
ases(t, tp)
}
}
func testScramTypeCases(t *testing.T, tp ScramType) {
var tcs = []scramAuthTestCase{
{
// Success
name: "Success",
scramType: tp,
usesCb: false,
gs2BindFlag: "n",
n: "ortuman",
r: "bb769406-eaa4-4f38-a279-2b90e596f6dd",
password: "1234",
... | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.