content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFI... | Rust |
n
fxName_size: "slide" // 'Size' pane animation - when animatePaneSizing = true
fxSpeed_open: null
fxSpeed_close: null
fxSpeed_size: null
fxSettings_open: {}
fxSettings_close: {}
fxSettings_size: {}
*/
// CHILD/NESTED LAYOUTS
, children: null // Layout-options for nested/child layout - ... | JavaScript |
log.info("生成索引: {}", goodsId);
Goods goods = this.goodsService.getById(goodsId);
this.updateGoodsIndex(goods);
} catch (Exception e) {
log.error("生成商品索引事件执行异常,商品信息: " + new String(messageExt.getBody()), e);
}
... | Java |
) {
i.multiSeg = d[j:]
return d[:j]
}
j += int(info.size)
}
// treat last segment as normal decomposition
i.next = i.rb.f.nextMain
return i.next(i)
}
// nextMultiNorm is used for iterating over multi-segment decompositions
// for composing normal forms.
func nextMultiNorm(i *Iter) []byte {
j := 0
d := ... | Go |
自然语言处理 | 如何在自然语言处理中应用TF-IDF算法进行文本特征提取? |
| 自然语言处理 | 请问自然语言处理有哪些主要任务? |
| 深度学习 | 请问深度学习模型中的梯度下降算法是如何工作的? ... | Markdown |
{ font-family: "linea-basic-10"; src: url("../fonts/linea-icons/linea-basic-10.eot"); src: url("../fonts/linea-icons/linea-basic-10d41d.eot?#iefix") format("embedded-opentype"), url("../fonts/linea-icons/linea-basic-10.woff") format("woff"), url("../fonts/linea-icons/linea-basic-10.ttf") format("truetype"), url("..... | CSS |
rightHipPos.x = x - 230;
rightHipPos.y = y - 45;
}
if (k["part"] == 'leftKnee') {
leftKneePos.x = x - 230;
leftKneePos.y = y - 45;
}
if (k["part"] == 'rightKnee') {
rightKneePos.x = x - 230;
rightKneePos.y = y - 45;
}
if (k["part"] == 'leftAnkl... | Dart |
298),
Some(AttributeValue::AttributeValueF64(13.0)),
);
let attr_val_exp = AttributeValueForObject {
attribute_name: "AttrName".to_string(),
attribute_value,
};
let (_, attr_val) = attribute_value_for_object(def).unwrap();
assert_eq!(attr_val_e... | Rust |
-- Gkyl ------------------------------------------------------------------------
--
-- Updater to solve Poisson equation in perpendicular directions with FEM scheme
-- Perpendicular directions assumed to be first two configuration-space directions
--
-- _______ ___
-- + 6 @ |||| # P ||| +
-----------------------... | Lua |
imacy = cap_value(atoi(split[14]), 0, 1000);
for (int32 i = 0; i < MAX_HOM_SKILL_REQUIRE; i++) {
if (atoi(split[4 + i * 2]) > 0)
entry.need.emplace(atoi(split[4 + i * 2]), atoi(split[4 + i * 2 + 1]));
}
if (util::umap_find(hom_skill_tree, atoi(split[0])))
hom_skill_tree[(uint16)atoi(split[0])].push_back(ent... | C++ |
or (not def.location:match"imgui_freetype") then
def.stname = "M"
function_gen(code,def)
end
end
--if has overloading create the generic
if #defs > 1 then
create_generic(code, defs)
end
end
local codestr = table.concat(code,"\n")
--test correctness of code
testcode(codestr)
return codestr
end
... | Lua |
obuf-encoded responses
// from the subprocess.
//
// NOTE: the Java-based implementation of the related Subprocess components
// and test harnesses have their own limit on the maximum allowed size
// of the message, but in this context it's enough just to test that
// --subprocess_max_message_size_byt... | C++ |
)
assertTrue(socket.isBound)
}
@Test
fun sockStatusTest() {
assertEquals(SockStatus.INIT, socket.sockState)
assertFalse(socket.isBound)
socket.bind("127.0.3.1", 1235)
assertEquals(SockStatus.OPENED, socket.sockState)
assertTrue(socket.isBound)
}
@Tes... | Kotlin |
nGL/extensions/EXT/EXT_framebuffer_object.txt">EXT_framebuffer_object</a></li>
* <li><a href="https://www.khronos.org/registry/OpenGL/extensions/NV/NV_half_float.txt">NV_half_float</a> and <a href="https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_half_FLOAT_pixel.txt">ARB_half_FLOAT_pixel</a></li>
* <li><a ... | Java |
// creating sorted list of [_sizeMapList] by size.
final List<MapEntry<String, int>> sizeMapList = sizeMap.entries.toList();
sizeMapList.sort((b, a) => a.value.compareTo(b.value));
// sort [list] according to [_sizeMapList]
files.sort((a, b) => sizeMapList
.indexWhere((element) => element... | Dart |
> 好的,我会尽力回答你的问题。
>
> 首先让我们先了解一下什么是 Content Security Policy(内容安全策略)。
>
> CSP 是一种在 Web 浏览器中实现的安全功能,它允许网站管理员指定哪些资源可以加载到页面上以及如何执行这些操作。通过实施 CSP,您可以控制您的网页从哪里获取资源、运行脚本或执行其他活动的能力,从而帮助减少 XSS 和 CSRF 等攻击的风险并提高安全性。
>
> 以下是关于如何正确地使用和配置 CSP 的基本步骤:
>
> 1. 确定要保护的内容:您需要确定要在站点上进行限制的所有类型的内容,包括图像、视频、音频文件和其他类型的媒体元素。这可以帮助您更好地了解应该对哪些域设置... | Markdown |
::default().with_measurement(CyclesPerByte);
targets = ff1_binary_benchmark
);
criterion_main!(benches);
<reponame>silas-x/protocol-v1
pub mod amm;
pub mod funding;
pub mod orders;
pub mod position;
pub mod repeg;
pub mod token;
<gh_stars>0
extern crate aoc2017;
use aoc2017::days::day17;
fn main() {
let input... | Rust |
{
if (bs.Count > 200)
{
while (bs.Count > 3)
bs.RemoveAt(1);
//bs.Clear();
}
bs.Add(this);
/*
... | C# |
)
return function(a, b) return not less_than(a, b) end
end
geq = greater_or_equal
function greater_than(less_than)
return function(a, b) return less_than(b, a) end
end
gt = greater_than
function equal(less_than)
return function(a, b)
return not (less_than(a, b) or less_than(b, a))
end
end
function relation(les... | Lua |
HeadBumpR /= LowsPad;
inputSampleR = (inputSampleR * (1.0-heavy)) + (HeadBumpR * heavy);
//end raw sample
//begin interpolated sample- change inputSample -> ataHalfwaySample, ataDrySample -> ataHalfDrySample
if (flip)
{
iirHalfHeadBumpAL += (ataHalfwaySampleL * HeadBumpFreq);
iirHalfHeadB... | C++ |
a3)+,d0 ; Ch3
asr.w #1,d0 ; /2
move.b d0,(a4)+ ; Store LEFT channel
move.w (a1)+,d0 ; Ch1
add.w (a2)+,d0 ; Ch2
asr.w #1,d0 ; /2
move.b d0,(a4)+ ; Store RIGHT channel
rts
;----------------------------------------------------------------------------
; Set Buffers
;----------------------------------------------... | Assembly |
$loaded_image_size,
);
```

以下是在UDRL中创建的`UDRL_HEADER_DATA`结构
```cpp
typedef struct _UDRL_HEADER_DATA {
DWORD CompressedSize; //the size of the compressed artefact
DWORD RawFileSize; //the size of the RAW DLL
DWORD LoadedImageSize; // the si... | Markdown |
ta):
"""绘制收敛历史"""
if 'algorithm_performance' in solution_data:
history = solution_data['algorithm_performance'].get('convergence_history', [])
if history:
generations = range(len(history))
ax.plot(generations, history, 'b-', linewidth=2, alpha=0.7)... | Python |
set expression
path
Path to where files will be created.
type
Type of files to export. Currently 'json' and 'csv' are supported.
## Value
Files with concept set expressions
## On this page
Developed by Martí Català, Edward Burn.
Site built with [pkgdown](https://pkgdown.r-lib.org/) 2.1.3.
---
## C... | Markdown |
info.Rack,
Host: info.Host,
Role: info.Role,
Status: info.Status,
},
}
}
type blobNodePersistentHandler = BlobNodeManager
func (b *blobNodePersistentHandler) updateDiskNoLocked(di *diskItem) error {
return b.diskTbl.UpdateDisk(di.diskID, b.diskInfoToDiskInfoRecord(&clustermgr.BlobNodeDiskInf... | Go |
e),
System.currentTimeMillis()));
for (Entry<byte[], Collection<HbckInfo>> spl : ti.regionSplitCalculator.getStarts().asMap()
.entrySet()) {
Collection<HbckInfo> his = spl.getValue();
int sz = his.size();
if (sz != 1) {
// problem
LOG.error("Split starti... | Java |
// 验证URL是否有效
if (!cloudAudioUrl.startsWith('http://') &&
!cloudAudioUrl.startsWith('https://')) {
throw Exception('无效的云端音频URL,必须以 http:// 或 https:// 开头');
}
audioUrl = cloudAudioUrl;
} else {
// 没有提供云端URL,使用本地文件并上传到GitHub
// 检查音频文件是否存在
final audioFile = File(aud... | Dart |
"";
for (let index: number = 0; index < toDoList.length; index++) {
console.log(index);
document.querySelector(".listElement").innerHTML += "<div>" + "<input type='checkbox'>" + toDoList[index] + "<i class='fa fa-trash' aria-hidden='true' id='trash'></i>" + "</div>";
document.querySelecto... | Typescript |
.build();
// Test DISTINCT with row_id and bucket filtering
String sql = "SELECT " +
" DISTINCT c.\"$row_id\" AS unique_id, " +
" c.\"$bucket\" AS bucket_num, " +
" c.name " +
"FROM customer_bucketed c " +
... | Java |
:
- `LOCAL`: Local key management (for development)
- `VAULT`: HashiCorp Vault
- `AWS_KMS`: AWS Key Management Service
- `AZURE_KEY_VAULT`: Azure Key Vault
- `GCP_KMS`: Google Cloud Key Management Service
## Using Encryption
### Basic Encryption and Decryption
```python
from uno.security import SecurityManager
from... | Markdown |
est();
fatalConditionHandler.reset();
DOCTEST_MSVC_SUPPRESS_WARNING_POP
#ifndef DOCTEST_CONFIG_NO_EXCEPTIONS
} catch(const TestFailureException&) {
p->failure_flags |= TestCaseFailureReason::AssertFailure;
} catch(...) {
DOCTEST... | C |
.67L10.2 10.67L11.3 12.33L12.73 11.38L13.88 13.12L13 14H10.2L5 7V5H16.2L17.75 12M18 20.5A1.5 1.5 0 1 1 19.5 19A1.5 1.5 0 0 1 18 20.5Z",mdiGolfTee:"M7 19V17H17V19H15C14.5 19 14 19.2 13.6 19.6S13 20.5 13 21V22H11V21C11 20.5 10.8 20 10.4 19.6S9.5 19 9 19H7M11 6C11 5.7 11.1 5.5 11.3 5.3S11.7 5 12 5 12.5 5.1 12.7 5.3 13 5.7... | JavaScript |
without overriding it.")
PrintOk(a:_TestVirtualFunctionBinding("Hello") == "Hello-Base", "Test wxLuaPrintout::_TestVirtualFunctionBinding without overriding it.")
a.TestVirtualFunctionBinding = function(self, val) return val.."-Lua" end
PrintOk(a:TestVirtualFunctionBinding("Hello") == "Hello-Lua", "Test wxLuaPrinto... | Lua |
angList(idStrList *list, idStr lang)
{
idStr temp;
for (int i = 0; i < list->Num(); i++) {
temp = (*list)[i];
temp = temp.Right(temp.Length()-strlen("strings/"));
temp = temp.Left(lang.Length());
if (idStr::Icmp(temp, lang) != 0) {
list->RemoveIndex(i);
i--;
}
}
}
/*
===============
idCommonLocal... | C++ |
local helpers = require("spec.helpers")
local wait = helpers.wait
local run_and_wait_until_initialized = helpers.run_and_wait_until_initialized
local uv = vim.uv or vim.loop
local spec_root = vim.fn.fnamemodify(debug.getinfo(1, "S").source:match("@?(.*/)"), ":h:p")
local dap = require('dap')
dap.adapters.dummy = {
... | Lua |
omidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wooshop.base.CommonEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok... | Java |
FTER_SINGLE_LINE_COMMENT:
jj_consume_token(DOCUMENTATION_AFTER_SINGLE_LINE_COMMENT);
break;
default:
jj_la1[7] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
label_2:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
cas... | Java |
a phishing email?'] = max(1, min(5, orig_conf + random.randint(-1, 1)))
df = pd.concat([df, pd.DataFrame([original])], ignore_index=True)
return df
def generate_synthetic_dataset(num_responses=400, days_back=20):
"""
Generate complete synthetic dataset
"""
print(f"🔄 Generat... | Python |
pg = pg or {}
pg.equip_data_statistics_258 = {
[36581] = {
id = 36581,
damage = "48/wave",
base = 36580,
weapon_id = {
36581
}
},
[36582] = {
id = 36582,
damage = "52/wave",
base = 36580,
weapon_id = {
36582
}
},
[36583] = {
id = 36583,
damage = "56/wave",
base = 36580,
weapon_id ... | Lua |
.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request... | JavaScript |
type extractor struct{}
func New() extractors.Extractor {
return &extractor{}
}
func (e extractor) Extract(url string, option extractors.Options) ([]*extractors.Data, error) {
// If url comes from feed or search, its id stored in url parameter.
// We need to convert it to direct link to make it work with m.vk.co... | Go |
://catlikecoding.com/unity/tutorials/) <br> unity shader,SRP教程,移动控制器,六边形地图<br>(unity shader,SRP tutorial, Motion controller, Hexagon map)|
|<Image src="Sites/Image7.png">| [网站地址(website)](https://www.redblobgames.com/) <br> unity寻路,六边形地图,2D阴影,地图生成<br>(unity Pathfinding, Hexagon map,2D Shadow, map generation)|
|<Image s... | Markdown |
//
// Created by cc on 11/02/23.
//
#ifndef BOTBUSTERS_REBIRTH_BALANCEONPLATFORM_H
#define BOTBUSTERS_REBIRTH_BALANCEONPLATFORM_H
#include <frc2/command/CommandBase.h>
#include <frc2/command/CommandHelper.h>
#include "Systems/EctoSwerve/EctoSwerve.h"
#include <frc/filter/LinearFilter.h>
class BalanceOnPlatform : pub... | C |
486368079,x=-6912.0004882812,y=-768.0,z=190.42260742188,h=362.8420715332},
[0x24318108] = {hashname="o_93__strm_0",dec_hash=607224072,x=-6912.0,y=-767.99993896484,z=190.49551391602,h=362.83850097656},
[0x99858A94] = {hashname="o_94_",dec_hash=-1719301484,x=-6400.0,y=-767.99993896484,z=217.5678100586,h=364.14947509766... | Lua |
this.load.image('candy', 'assets/images/candy.png');
this.load.image('rotate', 'assets/images/rotate.png');
this.load.image('toy', 'assets/images/rubber_duck.png');
this.load.spritesheet('pet', 'assets/images/pet.png', {
frameWidth: 97,
frameHeight: 83,
margin: 1,
spacing: 1
... | Typescript |
control-input:checked ~ .custom-control-label::after {
background-color: #fff;
-webkit-transform: translateX(0.75rem);
transform: translateX(0.75rem);
}
.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before {
background-color: rgba(0, 123, 255, 0.5);
}
.custom-select {
... | CSS |
";
};
[6542] = {
["name"] = "Meldung bei Kadrak";
["objective"] = "Meldet Euch im Wachturm im Norden des Brachlands bei Kadrak.";
};
[9019] = {
["name"] = "Anthions Abschiedsworte";
["objective"] = "Kehrt mit einem Paar Sandalen des Gläubigen, einem Rock des Gläubigen und einem Mantel des Gl... | Lua |
}
private union (curves: NCurve[], resolution: number): NCurve[] {
const region = this.getCurvePaths(curves, resolution);
const clip = new clipper.Clipper();
region.paths.forEach((path: any, i: number) => {
if (i === 0) {
clip.AddPaths([path], clipper.PolyType.ptSubject, true);
} els... | Typescript |
}
const tsx = (name: string) =>
`import React from 'react';
interface I${name} {
}
const ${name}: React.FC<I${name}> = ({}) => {
return (
<div>
</div>
)
}
export default ${name}`
const jsx = (name: string) =>
`import React from 'react';
const ${name} = ({}) => {
return (... | Typescript |
requires: b16b16 sme2
// CHECK-UNKNOWN: c128a915 <unknown>
bfmin {z28.h - z31.h}, {z28.h - z31.h}, z15.h // 11000001-00101111-10101001-00011101
// CHECK-INST: bfmin { z28.h - z31.h }, { z28.h - z31.h }, z15.h
// CHECK-ENCODING: [0x1d,0xa9,0x2f,0xc1]
// CHECK-ERROR: instruction requires: b16b16 sme2
// CHECK-UNKNO... | Assembly |
0x07) as u8)
}
#[doc = "Bits 24:26 - UART2 Clock Source Selection Note: If PLL is not supported, clock source of selection '001' will be changed to PCLK0. Note: If LXT or HXT is not supported, clock source of selection '000' or '010' will be stopped. Please refer to section 3.2 NuMicro M031/M032 Series Selecti... | Rust |
l($value, $cast, t);
}
typedef _t$_R1<A, B> = ({A categoryItems, B name});
class _t$_R1Mapper extends RecordMapperBase<_t$_R1> {
static _t$_R1Mapper? _instance;
_t$_R1Mapper._();
static _t$_R1Mapper ensureInitialized() {
if (_instance == null) {
MapperContainer.globals.use(_instance = _t$_R1Mapper._(... | Dart |
] = -1.0*f[72]
out[73] = -1.0*f[73]
out[74] = -1.0*f[74]
out[75] = -1.0*f[75]
out[76] = -1.0*f[76]
out[77] = -1.0*f[77]
out[78] = -1.0*f[78]
out[79] = -1.0*f[79]
out[80] = -1.0*f[80]
end
end
return _M | Lua |
import pandas as pd
v_5 = pd.read_csv('50/predictions_dev_queries_50k_normalized_exp_VD.csv')
v_6 = pd.read_csv('152/predictions_dev_queries_50k_normalized_exp_VD.csv')
v_7 = pd.read_csv('ibn/predictions_dev_queries_50k_normalized_exp_VD.csv')
v_5_query = list(v_5['query_id'])
v_5_reference = list(v_5['reference_id']... | Python |
�샤이어 암말",nil},
[28607] = {"헤이븐샤이어 망아지",nil},
[28608] = {"붉은십자군 의무병",nil},
[28609] = {"붉은십자군 보병대원",nil},
[28610] = {"붉은십자군 명사수",nil},
[28611] = {"붉은십자군 부대장",nil},
[28612] = {"은빛 성기사단의 기사",nil},
[28613] = {"오그리마 늑대 기수",nil},
[28614] = {"붉은십자군 그리핀",nil},
[28615] = {"베인플라이트","비행 조련사"},
[28616] = {"붉은십자군 그리핀기수",nil},
[28617... | Lua |
erify=False, timeout=10,
proxies=proxies)
if response_ceye.status_code == 200:
data = response_ceye.json()
records = data.get("data", [])
... | Python |
-color: #fff;
border-radius: 0.06 * 100rpx;
height: 1.4 * 100rpx;
}
.user .wrapper .nav .item {
flex: 1;
-o-flex: 1;
-ms-flex: 1;
text-align: center;
font-size: 0.26 * 100rpx;
color: #aaa;
position: relative;
}
.user .wrapper .nav .item text {
display: block;
}
.user .wrapper .nav .item ~ .item:a... | CSS |
e20fd086bcf79693&scene=58&subscene=0#rd)
- [ ] [【行业动态】金融数据中心容灾“大咖说” | 美创科技赋能“灾备一体化”建设](https://mp.weixin.qq.com/s?__biz=MzkxNzA3MTgyNg==&mid=2247529561&idx=2&sn=89ef9dbfc226b20e8cbde53063fca659&chksm=c14406e4f6338ff2c4b11a9b6132b307ab3d29f06b7c6d66b7f5a9aadc727d1ab19ea5f5527b&scene=58&subscene=0#rd)
- 安全圈
- [ ] [【安... | Markdown |
eDay.Monday);
// Then the dispatch day is Tuesday
expect(
deliveryOffice.dispatchDate(orderID).isSame(ExampleDay.Tuesday),
).toBe(true);
});
test('Scenario 2: Place order on weekday, dispatch same week (using supplier with different lead time)', () => {
// Given the supplier has a lead time ... | Typescript |
,
a: (rgba & 0xff) as u8,
}
}
#[inline]
pub fn black() -> ColorU {
ColorU {
r: 0,
g: 0,
b: 0,
a: 255,
}
}
#[inline]
pub fn white() -> ColorU {
ColorU {
r: 255,
g: 255,
... | Rust |
lbu $t3, 0x17($a2)
/* 0D82E8 801778A8 8CD90034 */ lw $t9, 0x34($a2)
/* 0D82EC 801778AC 33280001 */ andi $t0, $t9, 1
/* 0D82F0 801778B0 5500000A */ bnezl $t0, .L801778DC_ovl3
/* 0D82F4 801778B4 90CB0017 */ lbu $t3, 0x17($a2)
/* 0D82F8 801778B8 0C048465 */ jal func_80121194
/* 0D82FC 801778BC 00000000 */... | Assembly |
!IsDlgButtonChecked(IDC_CHECK_555FORMAT)))
{
// Only 565rgb color format support reverse byte order feature
GetDlgItem(IDC_CHECK_REVERSE_ORDER)->EnableWindow(TRUE);
disable_reverse_order = FALSE;
}
GetDlgItem(IDC_CHECK_555FORMAT)->Enab... | C++ |
ognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AllocSliceArgs) Reset() { *m = AllocSliceArgs{} }
func (m *AllocSliceArgs) String() string { return proto.CompactTextString(... | Go |
new_form .button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%;font-size:15px!important;font-weight:500;padding:10px 16px 12px!important;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.fit_box.new_form .button,.vk_ios_yes .fit_box.new_form .button{-webkit-... | CSS |
e && pb->circ_attempts < pb->circ_successes) {
log_notice(LD_BUG,
"Scaling has mangled pathbias counts to %f/%f (%d/%d open) "
"for guard %s",
pb->circ_successes, pb->circ_attempts, opened_built,
opened_attempts,
entry_guard_describe(guard... | C |
EM_MESSAGE STR_MSG_ITEM_SEAL_START_FAIL3() {
return new SM_SYSTEM_MESSAGE(1400846);
}
/**
* %0 cannot break the combination.
*/
public static SM_SYSTEM_MESSAGE STR_MSG_ITEM_SEAL_WARNING_DICOMPOSITION(String value0) {
return new SM_SYSTEM_MESSAGE(1400847, value0);
}
/**
* You can only Mentor a group mem... | Java |
)
// resources.
ResourceServer *ResourceServerManager
// Connection manages Auth0 Connection resources.
Connection *ConnectionManager
// CustomDomain manages Auth0 Custom Domains.
CustomDomain *CustomDomainManager
// Grant manages Auth0 Grants.
Grant *GrantManager
// Log reads Auth0 Logs.
Log *LogManager
... | Go |
loc': [-94.20874000000001, 39.027361],
'pop': 2865,
'state': 'MO'
},
{
'_id': '64030',
'city': 'GRANDVIEW',
'loc': [-94.52054200000001, 38.881936],
'pop': 24926,
'state': 'MO'
},
{
'_id': '64034',
'city': 'LAKE WINNEBAGO',
'loc': [-94.334767, 38.842813],
'pop': 5578,
... | Dart |
B50C0 003B1EC0 7F A3 EB 78 */ mr r3, r29
/* 803B50C4 003B1EC4 38 80 00 01 */ li r4, 1
/* 803B50C8 003B1EC8 4B FF 7F D9 */ bl __va_arg
/* 803B50CC 003B1ECC 83 83 00 00 */ lwz r28, 0(r3)
/* 803B50D0 003B1ED0 48 00 00 34 */ b lbl_803B5104
lbl_803B50D4:
/* 803B50D4 003B1ED4 28 00 00 04 */ cmplwi r0, 4
/* 803B50D8 003... | Assembly |
Aircraft {
name: string;
ammo: number;
maxAmmo: number;
damage: number;
baseDamage: number;
constructor(name: string) {
this.name = name;
this.ammo = 0;
this.damage = this.baseDamage * this.ammo;
this.baseDamage;
}
fight() {
return this.damage;
}
refill() {
this.ammo <=... | Typescript |
): `;
}
if (commit.pullRequest) {
const prLink = join(
this.options.baseUrl,
'pull',
commit.pullRequest.number.toString()
);
pr = `[#${commit.pullRequest.number}](${prLink})`;
}
const user = await this.createUserLinkList(commit);
return `- ${jira}${commit.... | Typescript |
rbiter: Address = "3D04E16e08E4c1c7fa8fC5A386237669341EaAcE".parse().unwrap();
let arbiter_serialized: [i64; 4] = address_to_i64(arbiter);
let name0 = [1, 100];
let name1 = [2, 500, 1000];
let name2 = [3, 10000, 10001, 10002];
let combinator_contract = vec![
5, -1, ... | Rust |
from django import template
from django.templatetags.static import static
from cloudinary import CloudinaryImage
register = template.Library()
@register.simple_tag
def avatar_preview(user, size=150):
pic = getattr(user.profile, 'profile_picture', None)
if pic:
# Extract the public_id string
p... | Python |
dofile("./aseutilities.lua")
dofile("./glyph.lua")
TextUtilities = {}
TextUtilities.__index = TextUtilities
setmetatable(TextUtilities, {
__call = function(cls, ...)
return cls.new(...)
end
})
---Text horizontal alignment.
TextUtilities.GLYPH_ALIGN_HORIZ = {
"CENTER",
"LEFT",
"RIGHT"
}
-... | Lua |
on key} pairs. The {@code keystroke} is either
* an instance of {@code KeyStroke}, or a {@code String}
* that identifies the {@code KeyStroke} for the binding. Refer
* to {@code KeyStroke.getKeyStroke(String)} for the specific
* format. The {@code action key} part of the pair is the key
* regis... | Java |
AppInfo
result.protocolVersion = protocolVersion
return result
}
@JvmStatic
fun createEmpty(): ProtocolVersionQueryResult {
val result = ProtocolVersionQueryResult()
result.protocolVersion = NO_PROTOCOL_AVAILABLE
return result
}
}
}
}
/*
* Copyrigh... | Kotlin |
*
*/
public Output<Optional<String>> masterDiskSnapshotPolicyId() {
return Codegen.optional(this.masterDiskSnapshotPolicyId);
}
/**
* Master payment type. or `PostPaid` or `PrePaid`, defaults to `PostPaid`. If value is `PrePaid`, the files `master_period`, `master_period_unit`, `master_au... | Java |
InterruptedException {
final Semaphore64 semaphore = new BlockingSemaphore(1);
semaphore.acquire(1);
Thread t = new Thread(() -> semaphore.acquire(1));
t.start();
Thread.sleep(50);
assertTrue(t.isAlive());
semaphore.release(1);
t.join();
}
@Test
void testReducePermitLimitNonBl... | Java |
// Silently ignore any updates to `__proto__`, these are potentially
// dangerous if using mpath with unsanitized data.
if (ignoreProperties.indexOf(parts[i]) !== -1) {
return;
}
}
// the existance of $ in a path tells us if the user desires
// the copying of an array instead of set... | Typescript |
.13 14.214,4.763 12.726,4.763 11.137,4.763 9.792,5.275 8.73,6.284 7.924,7.05 7.367,8.157 7.039,9.651L0,8.833C0.475,6.357 1.593,4.31 3.328,2.739 5.334,0.922 8.545,0 12.876,0 16.256,0 18.99,0.652 21.006,1.941 23.731,3.674 25,5.81 25,8.661 25,9.759 24.668,10.847 24.009,11.891 23.527,12.652 22.351,13.993 19.476,16.121 17.5... | CSS |
;
}
.ml-2 {
margin-left: 0.5rem;
}
.ml-3 {
margin-left: 0.75rem;
}
.mt-0 {
margin-top: 0px;
}
.mt-10 {
margin-top: 2.5rem;
}
.mt-5 {
margin-top: 1.25rem;
}
.block {
display: block;
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.grid {
display: grid;
}
.h-10 {
height: 2.... | CSS |
e $3,-4096
lwle $4,4095($5)
lwle $6,4095
lwle $7,-32768($8)
lwle $9,-32768
lwle $10,32767($11)
lwle $12,32767
lwle $13,-32769($14)
lwle $15,-32769
lwle $16,32768($17)
lwle $18,32768
lwle $19,-2147483648($20)
lwle $21,-2147483648
lwle $22,2147483647($23)
lwle $24,2147483647
lwle $25,($26)
lwle $27,MYDATA... | Assembly |
erUtils.toFloat(item[4].split("%")[0]));
spaceList.add(spaceUsage);
}
}
}
}
}
public Map<DiskUsageType, List<Usage>> getDiskMap() {
return diskMap;
}
public float getRead() {
List<Usage> usageList = diskMap.get(DiskUsageType.read);
return getUsage(usageList);
}
public float getWrit... | Java |
())),
/// # <MemoryStorage as Default>::default(), None);
/// # let mut hub = PhotosLibrary::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
/// // As the method needs a request, you would usually fill it with the desired informati... | Rust |
[class*=chat-] div[class*=content-][class*=container-] div[class*=scrollerContainer-] div[class*=checkIcon-][style*="opacity: 1;"]>svg>path {
fill: #11111b;
}
div[class*=chat-] div[class*=content-][class*=container-] div[role=tablist] {
background-color: #171823;
border-bottom: 2px solid #1c1f25;
}
div[class*=c... | CSS |
neric-bg-color-dark-theme;
}
div.admonition.attention {
color: @admonition-attention-color-dark-theme;
background-color: @admonition-attention-bg-color-dark-theme;
}
div.admonition.caution {
color: @admonition-caution-color-dark-theme;
background-color: @admonition-caution-bg-color-dark-theme;
}
div.admoniti... | CSS |
end
return 0
end
for _, classify in ipairs {"in1","in2","in3","in4","out1","out2","out3"} do
local id = getfluidId(classify)
if id ~= fluidboxes[classify.."_fluid"] then
fluidboxes[classify.."_fluid"] = id
fluidboxes[classify.."_id"] = 0
fluidbox... | Lua |
rite(file.fd, buf.asByteArray(), 21, 5) != 5) {
throw IOException("EOF reached when writing frame count")
}
}
companion object {
private val FLAC_MAGIC = ubyteArrayOf(0x66u, 0x4cu, 0x61u, 0x43u) // fLaC
}
}package ai.mlc.mlcchat
import ai.mlc.mlcllm.ChatModule
import android.app.Application
import... | Kotlin |
)`, `struct_type { x, .. }`): 「〜と残り」のパターン束縛。 [パターン (束縛の無視)] 参照。
* `...` (`...expr`, `expr...expr`) *式内で*: 閉区間式。[イテレータ] 参照
* `...` (`expr...expr`) *パターン内で*: 閉区間パターン。 [パターン (レンジ)] 参照
* `/` (`expr / expr`): 算術除算。オーバーロード可能 (`Div`)。
* `/=` (`var /= expr`): 算術除算と代入。オーバーロード可能 (`DivAssign`)。
* `:` (`pat: type`, `ident: type`):... | Markdown |
Exception e) {
logger.error("parse JobInstance json error, id: {}", id);
message = Message.error("parse JobInstance json error");
message.setMethod("/api/entrance/" + id + "/progress");
return message;
}
// return ok when job complete
if (SchedulerEventState.isComplete... | Java |
ListClass::reverse ****/
/**** INPUTS: ****/
/**** OUTPUTS: ****/
/**** Reverse the order of all values in the list. ... | C++ |
using Moq;
using ArchaicQuestII.GameLogic.Character;
using ArchaicQuestII.GameLogic.Item.RandomItemTypes;
using Xunit;
namespace ArchaicQuestII.GameLogic.Tests.Item
{
public class RandomItem
{
private readonly Mock<IRandomWeapon> _randomWeapon;
private readonly Mock<IRandomLeatherItems> _rand... | C# |
ub mod logger;
<filename>src/train/optimizer.rs
use std::marker::PhantomData;
use ndarray::{Array, Dimension, ShapeBuilder, Zip};
use crate::Float;
pub trait Optimizer<D>: Sync + Send
where
D: Dimension,
{
fn init<Sh>(&mut self, shape: Sh, batch_size: usize)
where
Sh: ShapeBuilder<Dim = D>;
... | Rust |
] = (unsigned char)((buf[i*inw_+j]&0xff00) >> 8);
j++;
}
}
}
break;
}
}
int SCCGrabber::grab()
{
SCCgrab();
suppress(frame_);
saveblks(frame_);
YuvFrame f(media_ts(), frame_, crvec_, outw_, outh_);
return (target_->consume(&f));
}
void SCCGrabber::setsize()
{
switch(cformat... | C++ |
!= image) {
scaledBitmap.recycle(); // Free up the memory if we created a new bitmap
}
return rgbaToThumbHash(w, h, rgba);
}
/**
* Encodes an RGBA image to a ThumbHash. RGB should not be premultiplied by A.
*
* @param w The width of the input image. Must be ≤100px.
* @param h The h... | Java |
return err
}
propPreparedSnapshotPresented = true
case "prepared_snapshot_offset":
if propPreparedSnapshotOffsetPresented {
return internal.ErrorInvalidJSONWithDuplicatingKeys("barsic.engineStatus", "prepared_snapshot_offset")
}
if err := internal.Json2ReadInt64(in, &item.PreparedSnapshotOff... | Go |
stallUpdate:(SUAppcastItem *)update;
// Return YES to delay the relaunch until you do some processing; invoke the given NSInvocation to continue.
// This is not called if the user didn't relaunch on the previous update, in that case it will immediately
// restart.
- (BOOL)updater:(SUUpdater *)updater shouldPostponeRel... | C |
VERSION 110100
#elif __has_include(<compare>)
# define BOOST_LIBSTDCXX_VERSION 100100
#elif __has_include(<memory_resource>)
# define BOOST_LIBSTDCXX_VERSION 90100
#elif __has_include(<charconv>)
# define BOOST_LIBSTDCXX_VERSION 80100
#elif __has_include(<variant>)
# define BOOST_LIBSTDCXX_VERSION 70100
#elif __has... | C++ |
tr [[TMP47]], align 4
// CHECK-NOUSE-I386-NEXT: [[TMP48:%.*]] = getelementptr inbounds [[STRUCT___TGT_KERNEL_ARGUMENTS]], ptr [[KERNEL_ARGS]], i32 0, i32 11
// CHECK-NOUSE-I386-NEXT: store [3 x i32] zeroinitializer, ptr [[TMP48]], align 4
// CHECK-NOUSE-I386-NEXT: [[TMP49:%.*]] = getelementptr inbounds [[STRUC... | C++ |
s-navigation-item js-navigation-target ">
<span class="mini-icon mini-icon-confirm"></span>
<h4>
<a href="/jquery/qunit/blob/1.1.0/qunit/qunit.css" class="js-navigation-open" data-name="1.1.0" rel="nofollow">1.1.0</a>
</h4>
</div>
... | CSS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.