content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
, growable: growable,);
}
}
return map;
}
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
'assetCount',
'id',
'primaryAssetId',
};
}
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.18
// ignore_for_file: unused_element, unu... | Dart |
='data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTIgMjNhNy41IDcuNSAwIDAgMCA3LjUtNy41YzAtLjg2Ni0uMjMtMS42OTctLjUtMi40Ny0xLjY2NyAxLjY0Ny0yLjkzMyAyLjQ3LTMuOCAyLjQ3IDMuOTk1LTcgMS44LTEwLTQuMi0xNCAuNSA1LTIuNzk2IDcuMjc0LTQu... | Dart |
344, "CHF"),
RoundedMoney.of(23123213.435, "CHF")};
for (RoundedMoney m : moneys) {
assertFalse(m.isNegativeOrZero(), "Invalid negativeOrZero (expected false): " + m);
}
moneys = new RoundedMoney[]{RoundedMoney.of(0, "CHF"), RoundedMoney.of(0.0, "CHF"),
... | Java |
K:\\Program Files (x86)\\Steam",
"K:\\Program Files\\Steam",
"L:\\Program Files (x86)\\Steam",
"L:\\Program Files\\Steam",
"M:\\Program Files (x86)\\Steam",
"M:\\Program Files\\Steam",
"C:\\Steam",
"D:\\Steam",
"E:\\Steam",
"F:\\Steam",
"G:\\Steam",
"H:\\Steam",
"I:\\Steam",
"J:\\Steam",
"K:... | JavaScript |
import numpy as np
import torch
from datetime import datetime
import os
import random
from config import get_config, get_model_config, get_train_config
from skill_graph.algorithm import SkillGraph
def seed(seed_value: int) -> None:
"""Set seed for all RNGs to ensure reproducibility.
Args:
seed_val... | Python |
ting": tuple, "restricted_sorting":tuple,
"magic_square": tuple, "consecutive_grid": tuple,
"traffic":tuple, "city_directed_graph":tuple,
"trampoline_matrix":tuple}
problems = dataset.get_problem_types(all_problems... | Python |
/*
* Copyright (C) 2010 SCALITY SA. All rights reserved.
* http://www.scality.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* t... | C |
currentSwitchOn)
continue;
if (back.cachedLocale != viewLocale) {
Bounds localeBounds = (Bounds)back.transformedRegion.clone();
// Translate the transformed region
back.cachedLocale.hiRes.difference(viewLocale.hiRes, localeTranslation);
localeXform.setIdentity();
localeXform.setTranslation(localeTr... | Java |
r) * 2.34f;
light.transform.up = new Vector3(xDir, yDir, -zDir).normalized;
}
if (Input.GetMouseButtonDown(0)) {
RaycastHit hit;
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, out hit))
... | C# |
"source_file_id",
"benchmark",
"bot",
"test",
"subtest_1",
"subtest_2",
"subtest_3",
}
var UserIssues = []string{
"user_id",
"trace_key",
"commit_position",
"issue_id",
"last_modified",
}
// Package maintenance runs long running processes for a single perf instance.
package maintenance
import (
"context... | Go |
ic", 9, 1, 1, 9, HINTING_THRESHOLD_MEDIUM, nullptr },
} };
TTFFontSetDescriptor TTFFontNotoSansMono = { {
{ "NotoSansCJK-Regular.ttc", "Noto Sans Mono CJK JP", 12, 1, -3, 14, HINTING_THRESHOLD_MEDIUM, nullptr },
{ "NotoSansCJK-Regular.ttc", "Noto Sans Mono CJK JP", 12, 1, -3, 14, HINTING_THRESHOLD_MEDIUM, n... | C++ |
var {
@include font-family(code);
@include font-size(code);
padding: $spacing--code-v $spacing--code-h;
}
abbr, acronym {
cursor: help;
}
mark, ins {
text-decoration: none;
}
b,
strong {
@include font-weight(strong);
}
.invert-color {
color: color(base-inverse);
a {
&:not(.button) {
@include anchor-... | CSS |
ht .CodeMirror-cursor { border-left: 1px solid #807d7c; }
.cm-s-3024-night span.cm-comment { color: #cdab53; }
.cm-s-3024-night span.cm-atom { color: #a16a94; }
.cm-s-3024-night span.cm-number { color: #a16a94; }
.cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute { color: #01a252; }
.cm-s-3024-nigh... | CSS |
9022,
4.22672716677,
1.81797461354,
2.7840457544,
0.7664167964,
1.8887930071,
4.15791319343,
1.83105030444,
3.92592140377,
3.99626115302,
1.50894993813,
1.99291271003,
1.15614639932,
0.94897593272,
1.85721204... | Rust |
test.Assert(t, err == nil)
count[c]++
c, err = p.Get(context.TODO(), "tcp", addr2, opt)
test.Assert(t, err == nil)
err = p.Put(c)
test.Assert(t, err == nil)
count[c]++
}
test.Assert(t, len(count) == 2)
}
func TestMuxConnPoolDiscardClean(t *testing.T) {
size := 4
d := &dialer.SynthesizedDialer{}
p ... | Go |
T3_ = monolish::matrix::Dense<T>;
using T3 = monolish::view_tensor_Dense<T3_, T>;
using T4_ = monolish::tensor::tensor_Dense<T>;
using T4 = monolish::view_tensor_Dense<T4_, T>;
T1 x1({M, N, L});
T2_ x2_(2 * M * N * L, 0.0, 1.0);
T2 x2(x2_, M / 2, {M, N, L});
T3_ x3_(2 * M * N * L, 1, 0.0, 1.0);
T3 x3(x... | C++ |
op_position(self) -> tuple:
"""
获取窗口左上角坐标
:return: (0, 0)
"""
try:
re_pattern = re.compile(r"Absolute.*:\s\s(-?\d+)")
app_window_info = self.window_info()
if config.IS_X11:
result = re.findall(re_pattern, app_window_info)
... | Python |
String) -> Unit)?
): DialogContent()
class List(
val items: kotlin.collections.List<DialogItem>,
val selectedItemIndex: Int = -1,
val mode: DialogListMode = DialogListMode.STANDARD,
val callback: ((DialogItem) -> Unit)?
): DialogContent()
}
internal enum class DialogListM... | Kotlin |
sbclt(z20.VnS(), z0.VnS(), z13.VnS());
__ movprfx(z5.VnB(), p0.Zeroing(), z6.VnB());
__ smaxp(z5.VnB(), p4.Merging(), z5.VnB(), z10.VnB());
__ movprfx(z27.VnB(), p0.Zeroing(), z28.VnB());
__ sminp(z27.VnB(), p3.Merging(), z27.VnB(), z1.VnB());
__ movprfx(z1.VnD(), p0.Zeroing(), z2.VnD());
__... | C++ |
// If the acked result is nil, it means the all the channels are acked,
// so we can update the version and push the new replicate configuration into client.
if dirtyConfig.AckedResult == nil {
// update metrics.
cm.cond.UnsafeBroadcast()
cm.version.Local++
cm.metrics.UpdateAssignmentVersion(cm.version.Local... | Go |
true) 1 else 0
} else if (it is Int) it
else 0
} ?: 0
/**
* different versions of ampache seem to return different types that are making gson crash
*/
fun processNumberToInt(num: Any?): Int = num?.let {
try {
when(it) {
is Double -> it.toInt()
is Float -> it.toInt()
... | Kotlin |
|
| 电影娱乐 | 近期上映的电影有哪些值得一看? ... | Markdown |
nal returnValue = <String, dynamic>{
"\$hash": "b549da53",
"\$name": "InputMessagesFilterRoundVideo",
};
// Finished toJson.
return returnValue;
}
}
/// Input Messages Filter My Mentions.
///
/// ID: `c1f8e69a`.
class InputMessagesFilterMyMentions extends MessagesFilterBase {
/// Input Mes... | Dart |
Refreshing = false
mAdapter.setNewData(systemListName)
mAdapter.loadMoreComplete()
return
}
// 初始化状态直接加载数据
mAdapter.addData(systemListName)
mAdapter.loadMoreComplete()
}
private fun onRefreshData() {
mCurrentPageNum = 1
mViewM... | Kotlin |
)
// For a padded viewport the allowed horizontal range becomes:
// [viewport.right - contentWidth, viewport.left]
// = [(100+1000 - 2000), 100]
// = [-900, 100]
// An offset of -500 is within the allowed range.
assertThat(
Rect(Offset(-500f, 200f), contentSize).topLeftCoercedInside(view... | Kotlin |
ailed to fetch study (id=${studyId})`, {
variant: "error",
})
console.log(err)
})
}
const createNewStudy = (studyName: string, direction: StudyDirection) => {
createNewStudyAPI(studyName, direction)
.then((study_summary) => {
const newVal = [...studySummaries, stud... | Typescript |
// <memory> Forward declarations -*- C++ -*-
// Copyright (C) 2001-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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 Softwar... | C |
/* -*- C++ -*- */
// CPP-acceptor.h,v 4.5 1999/06/25 19:00:47 shuston Exp
#ifndef CPP_ACCEPTOR_H
#define CPP_ACCEPTOR_H
#include "ace/Acceptor.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
template <ACE_PEER_STREAM_1>
class Svc_Handler : public ACE_Svc_Handler <ACE_PEER_ST... | C |
IXME: this whole parsing should be externalized.
function preXmlParse(xmlContent) {
var widgetsToCreate = [],
variables = {},
doc = Y.XML.parse(xmlContent),
htmlToCreate;
// FIXME: this should be moved outside, but it depends on the variables and widgetsToCreate from the context.
fu... | Typescript |
(n int) {
var l int
_ = l
l = m.ID.Size()
n += 1 + l + sovMesos(uint64(l))
if m.Mode != nil {
n += 1 + sovMesos(uint64(*m.Mode))
}
if m.Unavailability != nil {
l = m.Unavailability.Size()
n += 1 + l + sovMesos(uint64(l))
}
return n
}
func (m *FrameworkInfo) Size() (n int) {
var l int
_ = l
l = len(m.... | Go |
' | 'y' | 'z', number>;
// Type Vec3D = {
// x: number;
// y: number;
// z: number;
// }
```
두 번째, 매핑된 타입을 사용하는 방법입니다. 매핑된 타입은 키마다 별도의 타입을 사용하게 해 줍니다.
```ts
type Vec3D = {
[k in 'x' | 'y' | 'z']: number
};
// Type Vec3D = {
// x: number;
// y: number;
// z: number;
// }
type ABC = {
[k in 'a' | 'b' |... | Markdown |
from typing import List
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
num_index = {}
for index , num in enumerate(nums):
compliment = target - num
if compliment in num_index:
return [num_index[compliment] , index]
nu... | Python |
from llama_cpp import Llama, llama_types
from sys import stderr
MODEL_PATH = "/to_path_pou_evales_to_llama/llama-2-7b-chat.Q5_K_M.gguf"
model = Llama(
model_path=MODEL_PATH,
# n_gpu_layers=-1, # Κάνε uncomment για να χρησιμοποιήσεις την GPU.
chat_format="llama-2",
# Το context window. 0 = χρησι... | Python |
--------*/
.banners .banner::before {
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 1px solid var(--banners-glow);
content: '';
position: absolute;
-webkit-box-shadow: inset 0 0 18px 0 var(--banners-glow);
box-shadow: inset 0 0 18px 0 var(--banners-glow);
-webkit-border-radius: var(--borderRadius-p... | CSS |
w5j1
assert b''
@(yield kle8li813is)
@('' for r043fxt4t5m in wm306ybodv8 if m7towl30o1n if 0 for zjdsmng9kna in ekannr6295l if False if None if kvulp2e123j)
def jeoa0iexr0i(er87hrduk1j: zdt7z3cph0n, ejznjme8ekw, b57i3n_5li5: ku1c_pma8aw, udoarhdt6cz, m_z7kp8q3bs: n9lch_zh7_a, monos06gg9d, pmlpydze0pd: fqu0v75fzrv):... | Python |
i64, u32, i32, f64, f32 }
}
<filename>game2d/src/grid.rs
use std::{
collections::{HashMap, HashSet},
hash::Hash,
iter::FromIterator,
ops::Add,
};
/// Data that targets a square in the `Grid`
///
/// Note: You can convert a `(x, y)` tuple into a grid using `into()`
#[derive(Debug, Clone, Copy, PartialEq... | Rust |
-- chunkname: @dialogues/generated/mission_vo_km_enforcer_psyker_female_c.lua
local mission_vo_km_enforcer_psyker_female_c = {
mission_enforcer_courtroom = {
randomize_indexes_n = 0,
sound_events_n = 2,
sound_events = {
[1] = "loc_psyker_female_c__mission_enforcer_courtroom_01",
[2] = "loc_psyker_female_... | Lua |
import numpy as np
import cv2 as cv
import glob
import os
# termination criteria
criteria = (cv.TERM_CRITERIA_EPS + cv.TERM_CRITERIA_MAX_ITER, 24, 0.001)
# prepare object points, like (0,0,0), (1,0,0), (2,0,0) ....,(6,5,0)
objp = np.zeros((6*9,3), np.float32)
objp[:,:2] = np.mgrid[0:9,0:6].T.reshape(-1,2)
# Arrays t... | Python |
48)
stxsdx vs50, o8, T1
XXSWAPD(vs50,vs50)
stxsdx vs52, o16, T1
XXSWAPD(vs52,vs52)
stxsdx vs54, o24, T1
XXSWAPD(vs54,vs54)
addi T1, T1, 32
stxsdx vs56, o0, T1
XXSWAPD(vs56,vs56)
stxsdx vs58, o8, T1
XXSWAPD(vs58,vs58)
stxsdx vs60, o16, T1
XXSWAPD(vs60,vs60)
stxsdx vs62, o24, T1
XXSWAPD(vs62,vs62... | Assembly |
m.logger.Debugf("resourceType = %s", resourceType)
m.logger.Debugf("tagsFilter = %s", tagsFilter)
resourceTagMap, err := aws.GetResourcesTags(svcResourceAPI, []string{resourceType})
if err != nil {
// If GetResourcesTags failed, continue report event just without tags.
m.logger.Info(fmt.Errorf("getResource... | Go |
/// I/O and not store anything in `fh`, though that makes it impossible to implement standard
/// conforming directory stream operations in case the contents of the directory can change
/// between `opendir` and [`releasedir`][Filesystem::releasedir].
async fn opendir(&self, req: Request, inode: Inode, ... | Rust |
rtensi\xF3n y Riesgo Vascular (Espa\xF1ol)",id:"hipertension-y-riesgo-vascular",value:"https://raw.githubusercontent.com/citation-style-language/styles/master/hipertension-y-riesgo-vascular.csl"},{label:"Histoire@Politique. Politique, culture, soci\xE9t\xE9 (Fran\xE7ais)",id:"histoire-at-politique",value:"https://raw.g... | JavaScript |
of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the spe... | Rust |
ne()
self._curr_correct_predictions_k = state["curr_correct_predictions_k"].clone()
self._curr_sample_count = state["curr_sample_count"].clone()
def update(self, model_output, target, **kwargs):
"""
args:
model_output: tensor of shape (B, C) where each value is
... | Python |
. |
| `windowHeight` | :x: | `360` | Height of DMG window. |
| `iconSize` | :x: | `128` | DMG icons size. |
| `textSize` ... | Markdown |
rhsFunction->IsValueReturned(),
rhsFunction->CanBeStandAlone(),
static_cast<void*>(rhsFunction),
rhsFunction->LiteralizeArguments());
}
void AgentSML::RemoveRHSFunction(RhsFunction* rhsFunction)
{
if (rhsFunction == NULL)
{
return ;
}... | C++ |
ns and
* limitations under the License.
*/
#if HAS_FEATURE_AVX512
TEST_BEGIN_64(KMOVW_MASKmskw_GPR32u32_AVX512, 1)
TEST_INPUTS(
0,
1,
0x41,
0xff,
0x80)
kmovw k2, ARG1_32
TEST_END_64
TEST_BEGIN_64(KMOVW_MASKmskw_MASKu16_AVX512, 1)
TEST_INPUTS(
0,
1,
0x41,
0xff,
0x80)
... | Assembly |
turn false;
}
void TelepathyAccountHandler::forceDisconnectBuddy(BuddyPtr pBuddy)
{
UT_return_if_fail(pBuddy);
UT_ASSERT_HARMLESS(UT_NOT_IMPLEMENTED);
}
bool TelepathyAccountHandler::hasAccess(const std::vector<std::string>& /*vAcl*/, BuddyPtr pBuddy)
{
UT_DEBUGMSG(("TelepathyAccountHandler::hasAccess()\n"));
UT... | C++ |
n writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.grad.eNav.s100.utils;
import jav... | Java |
illNull',
field: 'id',
as: null,
options: {
type: 'bySmart',
},
},
{
type: 'fillNull',
field: 'name',
as: null,
options: {
type: 'bySmart',
},
},
... | Typescript |
["esES"] = "no vinculante",
["esMX"] = "no vinculante",
["frFR"] = "non liant",
["itIT"] = "non vincolante",
["koKR"] = "비귀속",
["ptBR"] = "não vinculante",
["ruRU"] = "необязывающий",
["zhCN"] = "非绑定",
["zhTW"] = "非綁定",
}
L.data["quest"] = {
["deDE"] = "Quest",
["esES"] = "misión",
["esMX"] = "... | Lua |
() {
var assignedCoords = assignDipeptideGlyGly();
var initialCoords = new CoordsList(assignedCoords.coords);
var transrot = findTransRots(assignedCoords).get(0);
transrot.dofX.set(1.0);
forEachAtom(assignedCoords, initialCoords, (pos, ipos) -> {
assertThat(pos.x(), isAbsolutely(ipos.x() + 1.0, Epsilon... | Java |
target:'Alvo',targetNew:'Nova Janela (_blank)',targetTop:'Janela superior (_top)',targetSelf:'Mesma janela (_self)',targetParent:'Parent Window (_parent)',langDirLTR:'Left to Right (LTR)',langDirRTL:'Direita para Esquerda (RTL)',styles:'Estilo',cssClasses:'Stylesheet Classes',width:'Largura',height:'Altura',align:'Alin... | JavaScript |
don::HALF_N_FULL_ROUNDS {
<F as Poseidon>::constant_layer_field(&mut state, round_ctr);
if r != 0 {
for i in 0..SPONGE_WIDTH {
let sbox_in = vars.local_wires[Self::wire_full_sbox_0(r, i)];
constraints.push(state[i] - sbox_in);
... | Rust |
# There are 3 loop control statements. Break, continue and pass
# BREAK
# Can only be used in FOR and WHILE loop
# It is used to exit from a loop. Any statement within that condition (if) after the break statement
# will not be executed
# Any statement outside the block of code will be executed with an exception to el... | Python |
* Qualcomm Adreno GPU- 适合在需要平衡功耗与性能的情况下执行 AI 工作负载。 AI 工作负载可以通过 OpenCL 内核进行加速。 GPU 还可用于加速模型预处理 / 后处理。
* Qualcomm Hexagon 张量处理器 (HTP)- 又称 NPU/DSP/HMX ,适合低功耗、高性地能执行AI 工作负载。为优化性能,需要对预训练模型进行量化,使其达到支持的任一种精度。
### AI 软件
AI软件堆栈包含多种 SDK ,帮助AI开发者方便地利用RUBIK Pi 3的AI 硬件加速器的强大功能。开发人员可以自己选择的一种 SDK 来部署 AI 工作负载。预训练模型在运行之前需要将其转换为所选 SD... | Markdown |
[Ordered]
[Layout("Root/V1")]
public string hv1Item2;
// public string below;
[Ordered]
[Layout("Root/V2")]
public string hv2Item1;
[Ordered]
[Layout("Root/V2/H", ELayout.Horizontal), RichLabel(null)]
public string hv2Item2, hv2Item3;
[Ordered]
[Layout("Root/V2")]
public string hv2Item4;
[Ordered]
[Layout("Root/... | Markdown |
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//
// Purpose: Move the position of this object based on a linear mapping
//
//=============================================================================
using UnityEngine;
using System.Collections;
namespace Valve.VR.InteractionSyste... | C# |
zdWIiOiAiMjQ4Mjg5NzYxMDAxIiwKICJhdWQiOiAiczZCaGRSa3F0MyIsCiAibm9uY2UiOiAibi0wUzZfV3pBMk1qIiwKICJleHAiOiAxMzExMjgxOTcwLAogImlhdCI6IDEzMTEyODA5NzAKfQ.ggW8hZ1EuVLuxNuuIJKX_V8a_OMXzR0EHR9R6jgdqrOOF4daGU96Sr_P6qJp6IcmD3HP99Obi1PRs-cwh3LO-p146waJ8IhehcwL7F09JdijmBqkvPeB2T9CJNqeGpe-gccMg4vfKjkM8FcGvnzZUN4_KSP0aAp1tOJ1zZwgjxqG... | Kotlin |
,Mesh_DeleteFaces,
0x0020,0x02010a,Mesh_Multiply,
0x0005,0x020103,Mesh_Extrude,
0x0015,0x020102,Mesh_ExtrudeNormal,
0x0017,0x020105,Mesh_Bevel,
#endif
#if !sINTRO_X
0x0002,0x020102,Mesh_SelectAll,
0x0009,0x020102,Mesh_Cylinder,
0x000f,0x020103,Mesh_UnCrease,
0x0011,0x020105,Mesh_Torus,
0x0012,0x020102,Mesh... | C++ |
完全平等、互相尊重和互不干涉内部事务四项原则。
4月17日 中国恢复在国际货币基金组织的代表权。
5月15日 中国恢复在世界银行的代表权。
5月18日 中国向太平洋预定海域发射第一枚运载火箭获得圆满成功。
8月18日 邓小平在中央政治局扩大会议上发表《党和国家领导制度的改革》讲话。指出,领导制度、组织制度问题更带有根本性、全局性、稳定性和长期性,对现行制度存在的各种弊端必须进行改革。改革党和国家的领导制度,不是要削弱党的领导,涣散党的纪律,而正是为了坚持和加强党的领导,坚持和加强党的纪律。
9月2日 国务院批转国家经委《关于扩大企业自主权试点工作情况和今后意见的报告》,要求从1981年起把扩大企业自主权... | Markdown |
def hex2int(hexadecimal):
hexadecimal = hexadecimal.upper()
hex_dict = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, 'A': 10, 'B': 11, 'C': 12, 'D': 13, 'E': 14, 'F': 15}
decimal = 0
for digit in hexadecimal:
decimal = decimal * 16 + hex_dict[digit]
... | Python |
0f / core_desiredfps;
#ifdef ANDROID
static int desiredFpsScalerIndex = 5;
#else
static int desiredFpsScalerIndex = GetPrivateProfileInt("Video","FPS Scaler Index", 5, IniName);
#endif
static u64 desiredFpsScalers [] = {
1024,
512, // 200%
448, // 175%
384, // 150%
320, // 125%
256, // 100%
192,
128, // 50%
9... | C++ |
assert!(Srgb::from_str("hsl(0de 0% 0% / 0)").is_err());
assert!(Srgb::from_str("hsl(0degg 0% 0% / 0)").is_err());
assert!(Srgb::from_str("hsl(0 deg 0% 0% / 0)").is_err());
assert!(Srgb::from_str("hsl(0grad 0% 0% / 0)").is_ok());
assert!(Srgb::from_str("hsl(0GRAD 0% 0% / 0)").is_ok());
assert!(Sr... | Rust |
TYRA_LOG("Sprite created!");
}
void Tutorial02::loadTexture() {
/**
* Renderer has high layer functions,
* which allows to render:
* - Sprite (2D)
* - Mesh (3D)
*
* It uses ONLY low layer functions which are in renderer.core
*/
auto& renderer = engine->renderer;
/**
* TextureRepositor... | C++ |
Disabled PUT test', async t => {
let itemFromDb = await bw.conn.models.WhereTest.findOne({});
await bw.inject(
t,
{
method: 'PUT',
url: '/api/wheretests/' + itemFromDb.id,
payload: { name: 'Bob22', appleCount: 21, bananaCount: 22 }
},
500
... | JavaScript |
// 0x0000(0x0040)(BlueprintVisible, BlueprintReadOnly, Parm, IsPlainOldData, NoDestructor)
struct FPointerEvent MouseEvent; // 0x0040(0x0098)(ConstParm, BlueprintVisible, BlueprintReadOnly, Parm, OutParm, ReferenceParm)
struct FEventReply ... | C++ |
@since WOM Version 3
*/
@Override
public Object getFeature(String feature, String version);
/**
* @since DOM Level 3
* @since WOM Version 3
*/
@Override
public Object setUserData(String key, Object data, UserDataHandler handler);
/**
* @since DOM Level 3
* @since WOM Version 3
*/
@Override
publ... | Java |
fn hserdyie(&self) -> HSERDYIER {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 3;
((self.bits >> OFFSET) & MASK as u32) != 0
};
HSERDYIER { bits }
}
#[doc = "Bit 2 - HSI16 ready interrupt flag"]
#[inline]
pub fn hsi16rdyie(&self) ->... | Rust |
$AGI/100}$?s321028[, and your Parry chance by $203819s1%, for $203819d][].
demon_spikes = {
id = 203720,
cast = 0,
charges = 2,
cooldown = 20,
recharge = 20,
hasteCD = true,
icd = 1.5,
gcd = "off",
school = "physical",
startsCombat = ... | Lua |
Will the rett land us in the invalid window? */
mov 2, %g1
sll %g1, %t_psr, %g1
rtrap_patch3: srl %g1, 8, %g2
or %g1, %g2, %g1
rd %wim, %g2
andcc %g2, %g1, %g0
be 1f ! Nope, just return from the trap
sll %g2, 0x1, %g1
/* We have to grab a window before returning. */
rtrap_patch4: srl %g2, 7, %g2
o... | Assembly |
Z,alpha:number,res:XYZ):void{
res.x=v1.x*(1-alpha)+v2.x*alpha;
res.y=v1.y*(1-alpha)+v2.y*alpha;
res.z=v1.z*(1-alpha)+v2.z*alpha;
}
export function betweenUV(v1:UV,v2:UV,alpha:number,res:UV):void{
res.u=v1.u*(1-alpha)+v2.u*alpha;
res.v=v1.v*(1-... | Typescript |
rect_log("DEBUG", msg);
end
end
-- See comments above about when you should use each logging level
function logger.info(msg)
if LOG_LEVEL <= logger.INFO then
direct_log(" INFO", msg);
end
end
-- See comments above about when you should use each logging level
function logger.warn(msg)
if LOG_LEVEL <= logge... | Lua |
false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1 := z.DecBinary()
_ = yym1
if false {
} else if ... | Go |
==========
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 108001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_108003", "GADGET_STATE_CHANGE_108004" },
rand_weight = 100
},
{
-- sui... | Lua |
= 'f'
}).then(() => {
expect(vm.$el.className).toBe('c a f e')
}).then(() => {
vm.value = { foo: true }
child.value = ['bar', 'baz']
}).then(() => {
expect(vm.$el.className).toBe('c a bar baz foo')
}).then(done)
})
it('class merge between multiple nested components sharing ... | JavaScript |
/VIDEy6xNOawTw7g1eWQ1JPqy250115.shtml)
### 联大公布今年重点工作 聚焦可持续发展
<p><strong>央视网消息</strong>(新闻联播):14日,第79届联合国大会主席菲勒蒙·扬在联大全体会议上公布了2025年的工作重点,工作重点将聚焦与可持续发展目标相关的工作,包括将于7月举行可持续发展目标融资会议等。菲勒蒙·扬表示,他还计划举行一系列高层会议与对话,推动新兴技术、人工智能等领域的全球合作。</p>
[查看原文](https://tv.cctv.com/2025/01/15/VIDEFTanEvjU4GTufiU66Epo250115.shtml)
---
(更新时间... | Markdown |
data);
case OSS50:
return asComparableBytesNew(accessor, data, version);
default:
throw new AssertionError();
}
}
private <V> ByteSource asComparableBytesLegacy(ValueAccessor<V> accessor, V data)
{
if (accessor.isEmpty(data))
... | Java |
c def step_impl(
context: Any,
url: str,
allowed_requests: int,
time_window: int,
spillover_count: Optional[
int
] = None, # TODO: Add spillover_enabled to the function signature
):
spillover = None
monthly_renewal = None
if spillover_count is not None:
spillover = S... | Python |
"3"),
("(gint) NM_DEVICE_ERROR_INVALID_ARGUMENT", "10"),
("(gint) NM_DEVICE_ERROR_INVALID_CONNECTION", "2"),
("(gint) NM_DEVICE_ERROR_MISSING_DEPENDENCIES", "9"),
("(gint) NM_DEVICE_ERROR_NOT_ACTIVE", "4"),
("(gint) NM_DEVICE_ERROR_NOT_ALLOWED", "6"),
("(gint) NM_DEVICE_ERROR_NOT_SOFTWARE", "5"... | Rust |
ziUl = newZi + 1;
ziIn = newZi + 2;
}
// Keep looking until we run out, we want the highest zIndex.
cNode = cNode.parentNode;
}
}
}
}else{
ziUl = parseInt(this.zIndex, 10) + 1;
ziIn = parseInt(this.zIndex, 10) + 2;
}
domStyle.set(this._centerNode, "zIndex", ... | JavaScript |
----------------------------------------
---------------------------------------------------------------------------------
--[[
lua虚拟机:脚本语言没有像编译型语言那样直接编译为机器能识别的机器代码,这意味着
解释性脚本语言与编译型语言的区别:由于每个脚本语言都有自己的一套字节码,与具体的
硬件平台无关,所以无需修改脚本代码,就能运行在各个平台上。硬件、软件平台的差异都
由语言自身的虚拟机解决。由于脚本语言的字节码需要由虚拟机执行,而不像机器代码那样
能够直接执行,所以运行速度比编译型语言差... | Lua |
ozN8U9Gr8AAAAeNpjYGIAg/9bGYwYsAE5IGZkYGJgZmBhYGcQZhBhEGUQY5BgkGSQZpBhUGbQYNBm0GEwZLBmcGcIYghlCGOIYIhiiGVYzMjEyMyekZxfnFOazluSn5dfrJecWADCAPc9Dt0AAAABAAIADQAP//8ACnjaY2BkYGDgA2IJBhBgYmAEQlkgZgHzGAAFiQBQAAAAeNrtVU1z00AMvfMrND4wMBN/BWgScNxDZgL0mnDguLHleIt3teyu4/rfIxvSBhLa/oBe7LW0etJ70sjZ9Z1q4IDWSdLLII2SAFAXVEq9XwbftutwHlz... | CSS |
:2px solid var(--a-o-c)}#write .v-q.t2 em a kbd{color:var(--a-o-c);background:var(--d-bc)}#write .v-q.t2 a{color:var(--a-o-c)}#write .v-q.t2 a>img[src*=fill\=text].enabled{filter:drop-shadow(12345px 0 0 var(--a-o-c))}#write .v-q.t2 a>svg :is(path,rect,ellipse,polygon,use){fill:var(--a-o-c)}#write .v-q.t2 img[src*=\#car... | CSS |
IGVuZD0iciI/Pve6J3kAAAAzSURBVHjaYvz//z8D0UDsMwMjSRoYP5Gq4SPNbRjVMEQ1fCRDg+in/6+J1AJUxsgAEGAA31BAJMS0GYEAAAAASUVORK5CYII=) repeat 0 0}.swagger-ui .border-box,.swagger-ui a,.swagger-ui article,.swagger-ui body,.swagger-ui code,.swagger-ui dd,.swagger-ui div,.swagger-ui dl,.swagger-ui dt,.swagger-ui fieldset,.swagger-ui f... | CSS |
ve
* Artem Khramov
* Brad Davidson
* Chen Yiyang
* Cory Snider
* Djordje Lukic
* Ethan Lowman
* Jiang Liu
* Jordan Liggitt
* June Rhodes
* Mahamed Ali
* Michael Crosby
* Peteris Rudzusiks
* Sam Edwards
* Samruddhi Khandale
* Shuaiyi Zhang
* Steve Griffith
* VERNOU Cédric
* hang.jiang
* jerryzhuang
* lengrongfu
* Aaron ... | Markdown |
e_head_init
.align 2
.globl filter_table_regist
$LFB3319 = .
.loc 1 581 0
.cfi_startproc
.set nomips16
.ent filter_table_regist
.type filter_table_regist, @function
filter_table_regist:
.frame $sp,40,$31 # vars= 0, regs= 5/0, args= 16, gp= 0
.mask 0x800f0000,-4
.fmask 0x00000000,0
.set noreorder
.set nomac... | Assembly |
DiscardUnknown(m)
}
var xxx_messageInfo_AppTemplateValuesDownwardAPIItem proto.InternalMessageInfo
func (m *AppTemplateValuesSource) Reset() { *m = AppTemplateValuesSource{} }
func (*AppTemplateValuesSource) ProtoMessage() {}
func (*AppTemplateValuesSource) Descriptor() ([]byte, []int) {
return fileDescriptor_5... | Go |
const float specularIntensity = 0.75;
const int numSquaresPerSide = 8;
void main (void)
{
// Normalize vectors
vec3 NN = normalize(N);
vec3 NL = normalize(L);
vec3 NV = normalize(V);
vec3 NH = normalize(NL + vec3(0.0, 0.0, 1.0));
// Map -1,1 to 0,numSquaresPerSide
vec3 onOrOff = ((NV + 1... | Lua |
ACE)) {
v.append(xmlcharrefreplace(i, nextGood, str));
i = nextGood - 1;
continue;
} else if (errors.equals(BACKSLASHREPLACE)) {
v.append(backslashreplace(i, nextGood, str));
i = n... | Java |
rsions(""); err != nil {
t.Error(err)
} else if !reflect.DeepEqual(vrs, rcv) {
t.Errorf("Expecting: %v, received: %v", vrs, rcv)
}
delete(vrs, utils.SharedGroups)
if err := dataDB.SetVersions(vrs, true); err != nil { // overwrite
t.Error(err)
}
if rcv, err := dataDB.GetVersions(""); err != nil {
t.Error(e... | Go |
tom when messages change
useEffect(() => {
const el = messagesContainerRef.current;
if (!el) return;
el.scrollTo({
top: el.scrollHeight,
behavior: hasReducedMotion ? 'auto' : 'smooth'
});
}, [messages, hasReducedMotion]);
// Focus error alert when it appears
useEffect(() => {
if (error && errorRef... | Markdown |
namespace Notes.Views;
[QueryProperty(nameof(ItemId), nameof(ItemId))]
public partial class NotePage : ContentPage
{
public string ItemId
{
set { LoadNote(value); }
}
public NotePage()
{
InitializeComponent();
string appDataPath = FileSystem.AppDataDirectory;
strin... | C# |
jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App f... | JavaScript |
ENT(wbc_balance_dirty_wait);
DEFINE_WBC_EVENT(wbc_writepage);
DECLARE_EVENT_CLASS(writeback_congest_waited_template,
TP_PROTO(unsigned int usec_timeout, unsigned int usec_delayed),
TP_ARGS(usec_timeout, usec_delayed),
TP_STRUCT__entry(
__field( unsigned int, usec_timeout )
__field( unsigned int, usec_delayed... | C |
ect is less than the minimum distance */
if (this.distance(startPoint, endPoint) < minimumDistance) {
//Check which object it collides
if (object.name === "dragonEnemy1") {
object.reset();
this._playerFireball.reset();
}... | Typescript |
import json
from girder_client import GirderClient
import pytest
from dive_tasks import tasks
from .conftest import getClient, getTestFolder, match_user_server_data, users, wait_for_jobs
@pytest.mark.integration
@pytest.mark.run(order=3)
def test_reset_job_logs(admin_client: GirderClient):
# remove any failed ... | Python |
HEAD".to_string())
)
} else {
"OUTPUT".to_string()
}
}
fn commit(instance: &str) -> Result<()> {
get_instance_ns_name(instance)?;
info!("Un-mounting all the instances...");
// Un-mount all the instances
for_each_instance(&container_down)?;
info!("{}: committing instance...",... | Rust |
;--weui-LIGHTGREEN-90: #85D35E;--weui-LIGHTGREEN-BG-100: #72CF60;--weui-LIGHTGREEN-BG-110: #80D370;--weui-LIGHTGREEN-BG-130: #9CDD90;--weui-LIGHTGREEN-BG-90: #66B956;--weui-LINK-100: #576B95;--weui-LINK-120: #7888AA;--weui-LINK-170: #CCD2DE;--weui-LINK-80: #455577;--weui-LINK-90: #4E6085;--weui-LINKFINDER-100: #002666;... | CSS |
AL_VOCAL_MORPHER_WAVEFORM_TRIANGLE = 1,
AL_VOCAL_MORPHER_WAVEFORM_SAWTOOTH = 2,
AL_VOCAL_MORPHER_MIN_WAVEFORM = 0,
AL_VOCAL_MORPHER_MAX_WAVEFORM = 2,
AL_VOCAL_MORPHER_DEFAULT_WAVEFORM = 0;
/** Vocal ... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.