content
stringlengths
2
6.21k
label
stringclasses
16 values
| HID0_ICFI | HID0_DCFI)@l SYNC mtspr HID0, r3 lis r3, CFG_SYS_HID0_FINAL@h ori r3, r3, (CFG_SYS_HID0_FINAL & ~(HID0_ICFI | HID0_DCFI))@l SYNC mtspr HID0, r3 lis r3, CFG_SYS_HID2@h ori r3, r3, CFG_SYS_HID2@l SYNC mtspr HID2, r3 /* Done! */ /*------------------------------*/ blr /* setup_bats - se...
Assembly
lin", "true") } room { schemaDirectory("$projectDir/schemas") } testOptions { unitTests.isReturnDefaultValues = true } } kotlin { jvmToolchain(21) compilerOptions { freeCompilerArgs = listOf("-XXLanguage:+PropertyParamAnnotationDefaultTargetMode") } } dependencie...
Kotlin
AccessPolicyResource { #[serde(flatten)] pub resource: Resource, #[serde(skip_serializing_if = "Option::is_none")] pub properties: Option<AccessPolicyResourceProperties>, } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AccessPolicyResourceProperties { #[serde(rename = "princ...
Rust
�േര്‍വഴിയിലാക്കാന്‍ പിന്നെ ആരുമില്ല. അവരുടെ ധിക്കാരത്തില്‍ അന്ധമായി വിഹരിച്ചുകൊള്ളാന്‍ അല്ലാഹു അവരെ വിട്ടേക്കുന്നതുമാണ്‌." }, { "surah_number": 7, "verse_number": 187, "content": "അന്ത്യസമയത്തെപ്പറ്റി അവര്‍ നിന്നോട് ചോദിക്കുന്നു; അതെപ്പോഴാണ് വന്നെത്തുന്നതെന്ന്‌. പറയുക: അതിനെപ്പറ്റിയുള്ള അറിവ് എന...
Dart
import org.opentripplanner.model.PathTransfer; import org.opentripplanner.routing.graphfinder.NearbyStop; import org.opentripplanner.street.model.vertex.TransitStopVertex; import org.opentripplanner.transit.api.request.TripRequest; import org.opentripplanner.transit.model._data.TimetableRepositoryForTest; import org.o...
Java
> /// artificial lane distance for u-turns /// </summary> public int UturnLaneDistance = 2; /// <summary> /// Maximum walking distance /// </summary> public float MaxWalkingDistance = 2500f; /// <summary> /// Minimum penalty for entering public t...
C#
"> Editor 6: </label> <div class="description"> <p> This editor is using a custom configuration for <abbr title="Advanced Content Filter">ACF</abbr>. It's using the <a href="http://docs.ckeditor.com/#!/guide/dev_disallowed_content" target="_blank"> Disallowed Content</a> property of the filter to ...
HTML
; // ~180.0 /// final radians2 = AngleUnit.degree.toRadians(degrees); // ~3.14159 /// /// // You can also convert between units without using radians. /// final gradians = /// AngleUnit.degree.toUnit(degrees, AngleUnit.gradian); // ~200.0 /// ``` /// /// See also [Angle](https://en.wikipedia.org/wiki/Angle) in Wiki...
Dart
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // SPDX-FileCopyrightText: Copyrigh...
C
<envmap_pars_fragment> #include <cube_uv_reflection_fragment> #include <fog_pars_fragment> #include <bsdfs> #include <lights_pars_begin> #include <normal_pars_fragment> #include <lights_phong_pars_fragment> #include <shadowmap_pars_fragment> #include <bumpmap_pars_fragment> #include <normalmap_pars_fragment> #include ...
JavaScript
428-3.171 1.382-1.656 1.567-1.908 2.243-2.53 0.904-1.034 2.905-3.105 0.425-0.458 3.385-3.446 0.115-0.118 3.661-3.563 0.034-0.033 3.78-3.531 0.03-0.027 3.81-3.427 0.122-0.11 3.688-3.201 0.419-0.362 3.391-2.847 0.859-0.717 2.951-2.401 1.442-1.163 2.367-1.87 2.17-1.693 1.64-1.26 3.047-2.304 0.763-0.57 3.81-2.796 0.275-0.1...
HTML
let evlp1 = [ evlp[0].pow(&[index.max_poly_size as u64]), evlp[1].pow(&[index.max_poly_size as u64]), ]; let e = &evals .iter() .zip(evlp1.iter()) .map(|(es, &e1)| ProofEvaluations::<Fr<G>> { l: DensePolynomial::eval_polynomial(...
Rust
::MAX, 1, 2, 3, 4, 5, 6, 7]); let c: [u32; 4] = convert_to_u32_m128i_from_lower4_u16_m128i(a).into(); assert_eq!(c, [u16::MAX as u32, 1, 2, 3]); } #[test] fn test_convert_to_u64_m128i_from_lower2_u16_m128i() { let a = m128i::from([u16::MAX, 1, 2, 3, 4, 5, 6, 7]); let c: [u64; 2] = convert_to_u64_m128i_from_low...
Rust
using System.Collections.Generic; namespace COServer.Game.MsgServer.AttackHandler { public class AddMana { public unsafe static void Execute(Client.GameClient user, InteractQuery Attack, ServerSockets.Packet stream, Dictionary<ushort, Database.MagicType.Magic> DBSpells) { Database....
C#
# Copyright (c) Saga Inc. # Distributed under the terms of the GNU Affero General Public License v3.0 License. from dataclasses import dataclass, field from enum import Enum from typing import List, Optional class MessageType(str, Enum): """Types of app manager messages.""" MANAGE_APP = "manage-app" CHECK...
Python
14nian-zhao-sheng-zhang-cheng">2014年招生章程</a></li> <li class="leaf"><a href="/content/xin-xi-gong-kai-mu-lu/shang-hai-hai-shi-da-xue-2013nian-ge-sheng-ge-zhuan-ye-lu-qu-fen-shu">上海海事大学2013年各省各专业录取分数线</a></li> <li class="leaf"><a href="/content/xin-xi-gong-kai-mu-lu/shang-hai-hai-shi-da-xue-2013nian-xin-sheng-lu-qu-gong-...
HTML
. var n = cartographicToCartesianNormal; var k = cartographicToCartesianK; this.geodeticSurfaceNormalCartographic(cartographic, n); Cartesian3.multiplyComponents(this._radiiSquared, n, k); var gamma = Math.sqrt(Cartesian3.dot(n, k)); Cartesian3.divideByScalar(k, gamma, k)...
JavaScript
p *PrometheusWrapper) SummaryLatencyLog(module, api, method string, latency float64) { if !p.c.Enable { return } p.summaryLatency.WithLabelValues(p.c.App, module, api, method).Observe(latency) } func (p *PrometheusWrapper) ExceptionLog(module, exception string) { if !p.c.Enable { return } p.counterException....
Go
if(str.length >= padLength) { padded.dropLast(str.length - padLength + 5) + "... " } else padded } }plugins { kotlin("jvm") version "2.1.20" `maven-publish` signing } version = "${rootProject.version}" group = "com.github.holgerbrandl" repositorie...
Kotlin
184, "Configured Grid Phases", options={0: "Three Phase", 1: "Single Phase", 2: "Split Phase"}, ), ) ################# # Advanced Inverter Software Configuration Settings ################# SENSORS += ( ### no idea why there is a "no work" option, but it's in the spec SelectRWSensor( ...
Python
243 .word -221 .word -201 .word -182 .word -164 .word -147 .word -131 .word -115 .word -100 .word -86 .word -72 .word -59 .word -46 .word -34 .word -22 .word -11 .word 0 .word 10 .word 21 .word 31 .word 41 .word 50 .word 60 .word 69 .word 78 .word 86 .word 95 .word 103 .word 111 .word 119 ...
Assembly
#region Copyright (C) 2005-2023 Team MediaPortal // Copyright (C) 2005-2023 Team MediaPortal // http://www.team-mediaportal.com // // MediaPortal is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either vers...
C#
source.sub(/[^o]+/, '-#{0}-')); assertEqual('-f-oo- b-oo boz', source.sub(/[^o]+/, '-#{0}-', 2)); }}, testScan: function() {with(this) { var source = 'foo boo boz', results = []; source.scan(/[o]+/, function(match) { results.push(match[0].length); }); assertEnu...
HTML
19 399 22 411T27 425Q29 430 36 430T87 431H140L159 511Q162 522 166 540T173 566T179 586T187 603T197 615T211 624T229 626Q247 625 254 615T261 596Q261 589 252 549T232 470L222 433Q222 431 272 431H323Q330 424 330 420Q330 398 317 385H210L174 240Q135 80 135 68Q135 26 162 26Q197 26 230 60T283 144Q285 150 288 151T303 153H307Q322 ...
HTML
assert_eq!(9.0, mesh.face_area(face_id)); } #[test] fn test_face_normal() { let mesh = MeshBuilder::new().triangle().build().unwrap(); let face_id = mesh.face_iter().next().unwrap(); let computed_normal = mesh.face_normal(face_id); assert_eq!(0.0, computed_normal.x); ...
Rust
- <b>完整代码获取地址:从戎源码网 ([https://armycodes.com/](https://armycodes.com/))</b> - <b>技术探讨、资料分享,请加QQ群:692619798</b> - <b>作者微信:19941326836 QQ:952045282</b> - <b>承接计算机毕业设计、Java毕业设计、Python毕业设计、深度学习、机器学习</b> - <b>选题+开题报告+任务书+程序定制+安装调试+论文+答辩ppt 一条龙服务</b> - <b>所有选题地址 ([https://github.com/YuLin-Coder/AllProjectCatalog](https://...
Markdown
else sc->assemble = _full_system_assembly; break; } /* Switch on saddle-point solver */ /* Handle the resolution of a saddle-point system */ cs_cdofb_monolithic_sles_init_solver(nsp, saddlep, sc); /* Iterative algorithm to handle the non-linearity (Picard by default) */ cs_iter_algo_type_t alg...
C++
unt used to track the threads that currently have /// outstanding run-down protection request being tracked by this object. /// /// The reference count holds two parts, the actual count in the lower bits /// and the flags bit in the most significant bit of the u64. The flags and /// reference count ...
Rust
tokenizer.ggml.pre str = qwen2 llama_model_loader: - kv 17: tokenizer.ggml.tokens arr[str,152064] = ["!", "\"", "#", "$", "%", "&", "'", ... llama_model_loader: - kv 18: tokenizer.ggml.token_type arr[i32,152064] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... llama_mode...
Markdown
enum.Prevouts.html" title="enum bdk_chain::bitcoin::sighash::Prevouts">Prevouts</a>&lt;'_, T&gt;, leaf_hash: S, sighash_type: <a class="enum" href="../enum.TapSighashType.html" title="enum bdk_chain::bitcoin::TapSighashType">TapSighashType</a>, ) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/cor...
HTML
{ base.OnVisualParentChanged(oldParent); ParentScrollViewer = null; var p = Parent as FrameworkElement; while (p != null) { if (p is ScrollViewer) { ParentScrollViewer = (ScrollViewer)p; ...
C#
empo Real (RT-DETR) do PaddlePaddle da Baidu. <p align="center"> <br> <iframe width="720" height="405" src="https://www.youtube.com/embed/MWq1UxqTClU?si=nHAW-lYDzrz68jR0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-pic...
Markdown
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from facebook_business.adobjects.abstractobject import AbstractObject """ This class is auto-generated. For any issues o...
Python
bool? isNullable, bool? hasLateSentinel}) { isNullable ??= this.isNullable; hasLateSentinel ??= this.hasLateSentinel; if (isNullable == this.isNullable && hasLateSentinel == this.hasLateSentinel) { return this; } return MapTypeMask( forwardTo.withFlags( isNullable: ...
Dart
255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); /* FF3.6+ */ background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%); /* IE10+ */ background: -o-linear-gradient(left, rgba(255, ...
CSS
ref deserializer, ref plugin_, serialization_compression_, serialization_encoding_); } Interface.DeserializePlugin("", ref deserializer, ...
C#
{ throw ex } ) { e, _ -> e } res.fold({ it shouldBe ex }, { fail("The impossible happened") }) } } ) @ExperimentalTime private fun fibs(one: kotlin.time.Duration): Sequence<kotlin.time.Duration> = generateSequence(Pair(0.0.nanoseconds, one)) { (a, b) -> Pair(b, (a + b)...
Kotlin
rfacePathMetric implements ui.PathMetric { SurfacePathMetric._(this._measure) : length = _measure.length(_measure.currentContourIndex), isClosed = _measure.isClosed(_measure.currentContourIndex), contourIndex = _measure.currentContourIndex; /// Return the total length of the current contour. ...
Dart
body: {}, // 空请求体 parser: (json) { // 增强解析器的错误处理 if (json.containsKey('error')) { AppLogger.e(_tag, '服务器返回错误: ${json['error']}'); throw ApiException(-1, '服务器返回错误: ${json['error']}'); } if (!json.containsKey('data')) { AppLogg...
Dart
def push(v, vl, vr, tree): if vl + 1 == vr: return tree[2 * v + 1] = max(tree[v], tree[2 * v + 1]) tree[2 * v + 2] = max(tree[v], tree[2 * v + 2]) tree[v] = min(tree[2 * v + 1], tree[2 * v + 2]) def globalPush(v, vl, vr, tree): if vl + 1 == vr: return push(v, vl, vr, tree) ...
Python
wn_log_reader(&repository)?; let output = match args[2].as_str() { "csv" => to_csv(reader), "json" => to_json(reader), "postgres" => to_postgres(reader, "commits"), x => return Err(format!("unknown output format '{}'", x)), }; lines_to_stdout(output) .map_err(|err| fo...
Rust
index].Retrieve(boundingBox, returnEntities); } else { for (int i = 0; i <= 3; i++) // The Bounding box is to big to be contained by a single node {
C#
text: fitLine\n };\n}\n\n\n/**\n * Shortens a line based on spacing and hyphens.\n * Returns the shortened result on success.\n *\n * @param {string} line\n * @param {number} maxLength the maximum characters of the string\n * @return {string} the shortened string\n */\nfunction semanticShorten(line, maxLength) {...
JavaScript
9073); path.close(); return path; } static Path _build_3() { var path = Path(); path.moveTo(20.0000038147, 10.0000019073); path.cubicTo(20.0000038147, 15.5228500366, 15.5228500366, 20.0000038147, 10.0000019073, 20.0000038147); path.cubicTo( 4.4771533012, 20.0000038147, 0.0, ...
Dart
# weights_only parameter was introduced in PyTorch 1.13.0 if major > 1 or (major == 1 and minor >= 13): model.load_state_dict(torch.load(full_path, map_location=device, weights_only=True)) else: model.load_state_dict(torch.load(full_path, map_location=device)) ...
Python
); NO_BORDER_COLOR_ICON = new ImageIcon(borderImgHover); NO_BORDER_COLOR_HOVER_ICON = new ImageIcon(ImageUtil.alphaOffset(borderImgHover, -100)); final BufferedImage fillImg = ImageUtil.loadImageResource(ScreenMarkerPlugin.class, "fill_color_icon.png"); final BufferedImage fillImgHover = ImageUtil.luminanceOf...
Java
,0,.1),-.1em .1em .3em rgba(159,2,0,.1),-.1em -.1em .3em rgba(159,2,0,.1),.1em -.1em .3em rgba(159,2,0,.1),.1em 0 .3em rgba(159,2,0,.1),-.1em 0 .3em rgba(159,2,0,.1),0 .1em .3em rgba(159,2,0,.1),0 -.1em .3em rgba(159,2,0,.1); } } @-moz-keyframes text_large { 0% { color: #9f0200; text-shadow: 0 0 .3em rgba(...
CSS
findById(id); if (!user) { return buildAuthError(request, response, "Token cannot be assigned to a User, please issue a new one", "token.not.assignable"); } request.user = user; next(); } catch (error) { if(error.name === 'TokenExpiredError') { return buildAuthError(request, response...
Typescript
2912] = "조제법: 영웅의 물약", [22913] = "조제법: 가속의 물약", [22914] = "조제법: 파괴의 물약", [22915] = "조제법: 바람의 근원을 불로 변환", [22916] = "조제법: 대지의 근원을 물로 변환", [22917] = "조제법: 불의 근원을 대지로 변환", [22918] = "조제법: 물의 근원을 바람으로 변환", [22919] = "조제법: 최상급 마력의 비약", [22920] = "조제법: 최상급 화염 보호 물약", [22921] = "조제법: 최상급 냉기 보호 물약", [22922] = "조제법: 최상급 자연 보호 물...
Lua
o one file." ) ) parser.add_argument("file_path", type=str, help="Path to the markdown file.") parser.add_argument( "--translate-only", action="store_true", help="Only generate the JS translation.", ) parser.add_argument( "--consolidate-only", action="...
Python
Props[] { switch (action.type) { case 'SHOPPING_CART': return [...action.payload]; default: return state; } } export default shoppingCart; import { Component } from '@angular/core'; @Component({ selector: 'app-proba', templateUrl: './proba.component.html', styleUrls: ['./proba.component....
Typescript
illed12.svg.react",null]},-1],["cr:12485",["FBIconPrivacyFilled12.svg.react"],{"__rc":["FBIconPrivacyFilled12.svg.react",null]},-1],["cr:12507",["FBIconNeighborhoodFilled12.svg.react"],{"__rc":["FBIconNeighborhoodFilled12.svg.react",null]},-1],["cr:12519",["FBIconPennantFilled12.svg.react"],{"__rc":["FBIconPennantFille...
HTML
0z ZSos7Mx7 58rc+xdK ykPpkgbY 5U7Jl6Kp heKa7hLP DLZB95pB N4AcoWeB Z6FH4NHW Lrg/D+oQ /37qNLW0 DbmzpY9b yILpUGK5 sqveLYfb S/DZ9ANs Ybm5EZ8V fl506QHq DirvYQCP GXz92+A+ axtZ1kOF Z4BnGiAM 1rBj88jg 41R8VHjr IxW4aIR0 PkqPt0xa C0uh8Ly6 Tzicmg+l my9lC/O1 OUL25Ey8 fsAOwEt5 KAu3ebII wGuPLVU7 y22p39Z/ 3xnw5O7n 8ve/+SlO 8GxcLfLk ...
HTML
If you do not agree to this license, do not download, install, // copy or use the software. // // // License Agreement // For Open Source Computer Vision Library // // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. // Copyright (C) 2009, Willow Garage Inc., a...
C++
button = select(i, self.ScrollTarget:GetChildren()) if not button.styled then local buttonText = select(3, button:GetRegions()) -- no parentKey atm if buttonText and buttonText:IsObjectType('FontString') then replaceGossipText(button, button:GetText()) ...
Lua
ndex"],zh_TW:["IBEX 35指數"]},e.exports["#NZX:NZ50G-symbol-description"]={en:["S&P / NZX 50 Index Gross"],zh_TW:["S&P / NZX 50指數總市值"]},e.exports["#SIX:SMI-symbol-description"]={en:["Swiss Market Index"],zh_TW:["瑞士市場指數"]},e.exports["#SZSE:399001-symbol-description"]={en:["Shenzhen Component Index"],zh_TW:["深證成份指數"]}, e.ex...
JavaScript
yZXNzVHJhZmZpY0FsbG93ZWQiuQEKFUluZ3Jlc3NUcmFmZmljQWxsb3dlZBInCi' 'NJTkdSRVNTX1RSQUZGSUNfQUxMT1dFRF9VTlNQRUNJRklFRBAAEh8KG0lOR1JFU1NfVFJBRkZJ' 'Q19BTExPV0VEX0FMTBABEikKJUlOR1JFU1NfVFJBRkZJQ19BTExPV0VEX0lOVEVSTkFMX09OTF' 'kQAhIrCidJTkdSRVNTX1RSQUZGSUNfQUxMT1dFRF9JTlRFUk5BTF9BTkRfTEIQAw=='); // // Generated c...
Dart
["id"] = 368, ["image"] = 1064179, ["name"] = "加摩拉", }, -- [1] { ["id"] = 436, ["image"] = 1064180, ["name"] = "多米尼娜", }, -- [2] { ["id"...
Lua
任务,OverMind 就采取了最后这种[划分方式](https://github.com/bencbartlett/creep-tasks/wiki/List-of-task-types)。 ### 缺点 存储数据有什么缺点呢?你可能要回答占用内存,但在我看来游戏中的[存储空间是用不完的](存储机制.md),所以让我们来看看其他方面。 首先在我应用中常出现的问题是**给灵活性带来延迟**,比如一个 creep 在执行一个耗时几十 tick 的任务时,临时发生了紧急情况,我们很难调用 creep 先处理新情况(抢占)而不使原有工作出错,这里的出错主要指的是管理原有工作的逻辑可能没考虑被抢占的情况,**代码容易 bug**。Ove...
Markdown
、个人利益和政治因素**的影响。 研究表明捐赠评审小组往往无法选出高质量的申请,因为同一个提案在不同的评审小组会得到完全不同的结果。 随着资金越来越少,资金集中到了更少的高级研究人员手中,他们的项目更加的保守。 这种效果创造了一个过度竞争的资金环境,助长了不正当的激励机制,并且扼杀了创新。 通过对由去中心化自治组织和 Web3 开发的不同激励模型进行广泛试验,Web3 有可能打破这一不合理的资金模式。 [可溯源的公益资助](https://medium.com/ethereum-optimism/retroactive-public-goods-funding-33c9b7d00f0c)、[二次方融资](https://pape...
Markdown
} .cursor-pointer { cursor:pointer; } pre { white-space: pre-wrap!important; white-space: -moz-pre-wrap!important; white-space: -pre-wrap!important; white-space: -o-pre-wrap!important; word-wrap: break-word!important; word-break: break-all!important; } .pointer { cursor: pointer; } ....
CSS
hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-c...
HTML
-- -- premake.lua -- High-level processing functions. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- premake._filelevelconfig = false premake._checkgenerate = true -- -- Open a file for output, and call a function to actually do the writing. -- Used by the actions to generate solution and proje...
Lua
ingIncrease { get { return 1; } } /// <summary> /// Gets the event type, which allows for simpler type comparisons. /// </summary> internal override EventType Type { get { ...
C#
State(savedStateHandle: SavedStateHandle): SearchState { return SearchState() } private val _query = MutableStateFlow("") val query = _query.asStateFlow() val resultPagingFlow = query .filter { it.isNotBlank() } .distinctUntilChanged() .flatMapLatest { query -> ...
Kotlin
idth = 2.0 ..color = const Color(0xFFFF0000)); path.reset(); path.moveTo(0, 3); path.lineTo(97, 100); rc.drawPath( path, SurfacePaint() ..style = PaintingStyle.stroke ..strokeWidth = 2.0 ..color = const Color(0xFF00FF00)); rc.endRecording(); ...
Dart
Width = null, _viewportX = 0, _viewportY = 0, _viewportWidth = _canvas.width, _viewportHeight = _canvas.height, _currentWidth = 0, _currentHeight = 0, _newAttributes = new Uint8Array( 16 ), _enabledAttributes = new Uint8Array( 16 ), // frustum _frustum = new THREE.Frustum(), // camera matrices cache ...
JavaScript
fmt.Sprintf("Comma-separated list of column names to display. Supported columns: %s, %s, %s.", accountscli.ColumnUser, accountscli.ColumnCapabilities, accountscli.ColumnEnabled, ), ) } func accountsListPreRun(cmd *cobra.Command, _ []string) { //nolint:revive // Copy global flags to config accountsListCfg.Pret...
Go
"variable": "$body", "operation": "contains", "value": "", "bz": "" } ] }, "SetVariable": [] } ], "ExploitSteps": [ "AND", { ...
Go
"status": "resolved" }, { "annotations": { "SUMMARY": "service /prometheus air down on instance2", "DESCRIPTION": "service /prometheus has irc gateway down on instance2" }, "endsAt": "2017-05-15T11:48:37.834Z", "genera...
Go
{ for (gmx::index i = 0; i < ssize(ps->rgb); ++i) { if ((ps->rgb[i].r == r) && (ps->rgb[i].g == g) && (ps->rgb[i].b == b)) { return i; } } char buf[12]; int indexToBackElement = static_cast<int>(ssize(ps->rgb)); sprintf(buf, "C%d", indexToBackElement); p...
C++
.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import com.wealthfront.magellan.sample.migration.R class DogListAdapter( var dataSet: List<String> = emptyList(), private val onDogSelected: (String) -> Unit ) : RecyclerView.Adapter<DogListAdap...
Kotlin
QueryBase<*>): PreparedStatement fun <A> query(query: SqlQueryBase<*>, consumer: (ResultSet) -> A): A fun <A> execute(query: SqlQueryBase<*>, consumer: (PreparedStatement) -> A): A? fun <A> execute(query: SqlCall, consumer: (CallableStatement) -> A): A? fun <A> executeWithKeys(query: SqlQuery, consum...
Kotlin
un loadTopicList() = Repository.loadTopicList() fun dynamicLikes(momentId: String) = Repository.dynamicLikes(momentId) fun postComment(momentComment: Map<String, Any?>, isReply: Boolean) = Repository.postComment(momentComment, isReply) fun putFish(moment: Map<String, Any?>) = Repository.putFish(m...
Kotlin
/* * SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause * * Copyright (C) 2021 MediaTek Inc. All Rights Reserved. * * Author: Weijie Gao <weijie.gao@mediatek.com> */ #include <arch.h> #include <asm_macros.S> #include <assert_macros.S> #include <console_macros.S> #include <hsuart.h> #define UART_MCRVAL (UART_MCR_D...
Assembly
PODE_FRACIONAR) VALUES (4, 'M2', NULL, 'S')"); db.customStatement("INSERT INTO PRODUTO_UNIDADE (ID, SIGLA, DESCRICAO, PODE_FRACIONAR) VALUES (5, 'M3', NULL, 'S')"); db.customStatement("INSERT INTO PRODUTO_UNIDADE (ID, SIGLA, DESCRICAO, PODE_FRACIONAR) VALUES (6, 'PCT', NULL, 'N')"); db.customStatement("INSERT INT...
Dart
color: var(--light-blue, #92DEED); font-family: Space Grotesk; font-size: 40px; margin-bottom: 20px; } .Why_us .why-us-wraper .why-us-container .why-us-content .first-content .text p { color: var(--white, #FFF); font-family: Poppins; font-size: 20px; line-height: 30px; } .Why_us .why-u...
CSS
position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 1px solid black; background-color: #ccc; opacity: 0.25; transform: translate(3px, -3px); } .dfn-panel .copy-icon:active .icon::before { opacity: 1; } .dfn-paneled[role="button"] { cursor: help; } .highlighted ...
HTML
} } } return rl.norm() } // equal reports whether xl and yl represent the same type set. func (xl termlist) equal(yl termlist) bool { // TODO(gri) this should be more efficient return xl.subsetOf(yl) && yl.subsetOf(xl) } // includes reports whether t ∈ xl. func (xl termlist) includes(t types.Type) bool { for ...
Go
<a href="{{ post.url|default('#') }}" target="_blank" class="">{{ post.url|default('No URL available') }}</a> </p> <p class="text-xs leading-relaxed text-gray-600"> {{ post.text[:270] + '...' if post.text e...
HTML
// 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, copy, modify, merge, publish, // distribute, sublicense, and/or sell...
C#
) val accumulator0 = combiner.emptyAccumulator() val accumulator1 = combiner.createAccumulator( privacyIdContributions { singleValueContributions += listOf(-2.0, 3.0) } ) val accumulator2 = combiner.createAccumulator( privacyIdContributions { singleValueContributions += ...
Kotlin
ystemNamespace, saName).Binding() if err != nil { return nil, err } testGroup := metav1.APIGroup{ Name: "testAPIGroup", Versions: []metav1.GroupVersionForDiscovery{ { GroupVersion: "testAPIGroup/testAPIVersion", Version: "testAPIVersion", }, }, } apiGroupList := &metav1.APIGroupList{} ...
Go
ors for ONNX model final imageTensor = OrtValueTensor.createTensorWithDataList( Float32List.fromList(rgbFloats), [1, 3, image.width, image.height], ); final maskTensor = OrtValueTensor.createTensorWithDataList( Float32List.fromList(maskFloats), [1, 1, mask.width, mask....
Dart
break; case '1.4': await _runSignedUploadExample(); break; case '2': await _runDownloadExample(); break; case '2.1': await _runSignedDownloadExample(); break; case '3': await _runMultipartUploadExample(); break; case '4': ...
Dart
作をする人);(特に)いたずら小僧 / 《英俗》500ポンド,500ドル / (…を)いじる《+『around with』+『名』》'], ['monkey business', '詐欺,いんちき / いたずら'], ['monkey nut', '=peanut'], ['monkey puzzle', 'チリスギ(常緑針葉樹で,葉は密生し堅く鋭い)'], ['monkey suit', '(男子用)夜会服、(パイロットなどの)制服、正装'], ['monkey tricks', '=monkey business'], ['monkey wrench', 'モンキー,自在スパナ'], ['monkey...
Typescript
local mx, my = love.mouse.getPosition() mouse:set(mx/sx, my/sy) mouse_dt:set(mouse.x - last_mouse.x, mouse.y - last_mouse.y) update(fixed_dt) system.update() input.last_key_pressed = nil last_mouse:set(mouse.x, mouse.y) accumulator = accumulator - fixed_d
Lua
24252] = "黑色虚空披风", [24253] = "永恒披风", [24254] = "白色治愈斗篷", [24255] = "不屈束带", [24256] = "毁灭束带", [24257] = "黑色知识腰带", [24258] = "坚毅披风", [24259] = "复仇披风", [24260] = "法力编织披风", [24261] = "白色治愈短裤", [24262] = "法术打击短裤", [24263] = "战斗施法短裤", [24264] = "白色治愈兜帽", [24265] = "旧法术打击兜帽", [24266] = "法术打击兜帽", [24267] = "战斗施法罩帽", [24268] = ...
Lua
NIQUE, &un); if (ret >= 0) { un32.unique_len = un.unique_len; if (copy_to_user(P(arg), &un32, sizeof(un32))) return -EFAULT; } return ret; } case IOCTL_NR(DRM_IOCTL_SET_UNIQUE): case IOCTL_NR(DRM_IOCTL_ADD_MAP): case IOCTL_NR(DRM_IOCTL_ADD_...
C
["Error parsing option '", arg, "' with value '", value, "': ", &s, "\n"].concat() })?; } } Ok(()) } /// Parse a positional argument. /// /// arg: the argument supplied by the user /// positional: a tuple containing slot to parse into and the name of the argument #[doc(hid...
Rust
Airport', state: 'AK', lat: 55.5839, lon: -133.067, }, PAKX: { id: 'PAKX', city: 'WILDER NATWICK', state: 'AK', lat: 60.2, lon: -154.3166, }, PALG: { id: 'PALG', city: 'Kalskag', state: 'AK', lat: 61.5364, lon: -160.3414, }, PALH: { id: 'PALH', city: 'Anchorage, Lake Hood Seaplane B...
JavaScript
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package com.breadwallet.tools.manager import android.content.Context import android.content.SharedPreferences import android.text.format.DateUtils import android...
Kotlin
_download)) .await { let error_msg = format!("cannot send broadcast subscribe message: {}", err); error!("{}", error_msg); Err(RsbtError::FailureReason(error_msg))?; } } } let sender = web::Data::new(rsbt_command_se...
Rust
.js v${version} The React Framework in deno. Docs: https://tails.org/docs Bugs: https://github.com/tailsjs/tails/issues Usage: tails <command> [...options] Commands: ${ Object.entries(commands) .map(([name, desc]) => `${name.padEnd(15)}${desc}`) .join("\n ") } Options: -h, --help Prints...
Typescript
custom-range-gray:focus::-moz-range-thumb { box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px rgba(108, 117, 125, 0.25); } .custom-range.custom-range-gray:focus::-ms-thumb { box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px rgba(108, 117, 125, 0.25); } .custom-range.custom-range-gray::-webkit-slider-thumb { background-color: #6c...
CSS
/pow.rs.html#131">source</a><a href="#method.pow-281" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.pow" class="fn">pow</a>(self, rhs: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/ni...
HTML
paragraph"}, {"text": "[1]\u6bdb\uff0c\u6307\u6bdb\u6cfd\u4e1c\u3002", "type": "paragraph"}, {"text": "[2]\u5218\uff0c\u6307\u5218\u5c11\u5947\u3002", "type": "paragraph"}, {"text": "[3]\u5468\uff0c\u6307\u5468\u6069\u6765\u3002", "type": "paragraph"}, {"text": "[4]\u6731\uff0c\u6307\u6731\u5fb7", "type": "paragraph"},...
HTML
vate static void setInstanceSpace( InstanceSearchSpace inputSpace, InstanceSearchSpace outputSpace, TreeSet<Long> memoryEstimates ) { TreeSet<Long> memoryPoints = getMemoryPoints(memoryEstimates, inputSpace.keySet()); for (long memory: memoryPoints) { outputSpace.put(memory, inputSpace.get(memory)); ...
Java
// This class actually creates its own window and // shows it. Thus, its methods are actual object // methods, not statics. using System; using Avalonia.Controls; using Avalonia.Controls.Shapes; using Avalonia.Media; internal class GraphicsWindow { Random rand = new Random(); public GraphicsWindow() { ...
C#
range, out of mana, or LOS. bool _allowMove = false; SpellInfo const* spellInfo = sSpellMgr->EnsureSpellInfo(e.action.cast.spell); int32 mana = me->GetPower(POWER_MANA); if (me->GetDistance(*itr) > spellInfo->GetMaxRange(...
C++