content
stringlengths
2
6.21k
label
stringclasses
16 values
using System.Collections.Generic; using Skateboard3Server.Blaze.Serializer.Attributes; namespace Skateboard3Server.Blaze.Tests.Serializer.Testing; internal record TestByteArray { [TdfField("TSTA")] public byte[] ByteArrayTest { get; set; } } internal record TestArrayStrings { [TdfField("TSTA")] publ...
C#
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2014 Seth Jennings <sjenning@redhat.com> #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module.h> #include <linux/kernel.h> #include <linux/livepatch.h> #include <linux/seq_file.h> static int livepatch_cmdline_proc_show(struct seq_file *m, void *v) { ...
C
mt, val) assert.True(t, mt.Failed()) assert.True(t, mt.FailedNow()) }) t.Run("slice", func(t *testing.T) { t.Parallel() // empty slice val := []int{} assert.True(t, val != nil) assert.NotNil(t, val) // full slice val = []int{1, 2, 3, 4, 5} assert.True(t, val != nil) assert.NotNil(t, val) //...
Go
path," ",template) if type(template)~="table" then template = {template} end if OSCFunc.filters[path] then for i,filter in ipairs(OSCFunc.filters[path]) do if CheckTemplate(template,filter.template) then table.remove(OSCFunc.filters[path],i) print(" is done OSCFunc.clearfilters ",path," ",template[1]) ...
Lua
cond=RCOND): '''Compute the inverse, or pseudo-inverse as fallback, of a matrix.''' try: # Faster version first, with is_singular() test... return invert_caution(mat) except Exception: # ... so mat is probably singular: system.warn("ILL-CONDITION: invert() may outp...
Python
//////////////////////////////////////////////////////////// // Nero Game Engine // Copyright (c) 2016-2023 Sanou A. K. Landry //////////////////////////////////////////////////////////// #ifndef SCENEEXPLORERWINDOW_H #define SCENEEXPLORERWINDOW_H ///////////////////////////HEADERS////////////////////////// // Nero #in...
C
ONFIG", OCICRYPT_CONFIG_PATH); } let status: ExitStatus = pull_command.status()?; if !status.success() { let mut error_message = format!("failed to pull image: {:?}", status); if let Err(e) = fs::remove_dir_all(&tmp_cid_path) { error_message.push_str(&f...
Rust
self) -> Ipv6State<Instant, D> { let Ipv6StateBuilder { icmp } = self; Ipv6State { inner: IpStateInner { table: ForwardingTable::default(), fragment_cache: IpPacketFragmentCache::default(), pmtu_cache: PmtuCache::default(), }, ...
Rust
at type: variable-text default: repeat - title: Background For Specific Side Panes id: background-customization type: heading level: 5 - title: Set background for specific panes description: Allows customization of backgrounds for specific panes. Simply edit the image url within the ...
CSS
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %s \ // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \ // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST // RUN: not llvm-mc -triple=aarch64 -show-...
Assembly
alicloud.AlicloudFunctions; * import com.pulumi.alicloud.inputs.GetZonesArgs; * import com.pulumi.alicloud.vpc.Network; * import com.pulumi.alicloud.vpc.NetworkArgs; * import com.pulumi.alicloud.vpc.Switch; * import com.pulumi.alicloud.vpc.SwitchArgs; * import com.pulumi.alicloud.mse.Clust...
Java
local fn = vim.fn local installPath = DATA_PATH..'/site/pack/packer/start/packer.nvim' -- install packer if it's not installed already local packerBootstrap = nil if fn.empty(fn.glob(installPath)) > 0 then packerBootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', insta...
Lua
) addOffsetLink(instruction.defaultOffset, instructionOffset) return matchOffsetPairsCount + 1 } private fun addOffsetLink(branchOffset: Int, sourceOffset: Int) { val totalOffset = branchOffset + sourceOffset val currentLinkStyle = styles.addAttribute(STYLE_LINK, ATTRIBUTE_NAME...
Kotlin
Error(this.handleError<Instance>('addTemplate')) ); } /** DELETE: delete the hero from the server*/ deleteInstance(id: string): Observable<Vo> { let data: string = '{Id:' + '"' + id + '"' + '}'; //let data=new Instance(); //data.Name=name; return this.http.post<Vo>(URLS.deletinstanceUrl, da...
Typescript
rının önünde muhakeme olunmalarını isterler. Oysa, onları tanımamakla emr olunmuşlardı. Şeytan onları derin bir sapıklığa saptırmak ister" }, { "surah_number": 4, "verse_number": 61, "content": "Onlara: \"Allah'ın indirdiğine ve Peygambere gelin\" dendiği zaman, münafıkların senden büsbütün uzak...
Dart
holeStoreStoreEATest { public static void main(String[] args) { TestFramework.runWithFlags( "-XX:+UseTLAB", "-XX:+UnlockExperimentalVMOptions", "-XX:CompileCommand=blackhole,compiler.c2.irTests.blackhole.BlackholeStoreStoreEATest::blackhole" ); } /* ...
Java
"""Utilities for parsing EPUB table of contents (TOC).""" from __future__ import annotations from epub_io.reader import EpubReader def parse_toc_to_dict(reader: EpubReader) -> dict[str, str]: """Extract TOC titles mapped by document href. Parses the EPUB's table of contents and creates a mapping from d...
Python
relationship for this setting will cause the setting for this operation to be equal to the equivalent setting of another operation."] = "Создание Связи настроек Операции. При изменении настроек, вызовет изменение настроек связанной Операции" L["Crystals"] = "Кристаллы" L["Current Profile:"] = "Текущий профиль:" -- L["C...
Lua
tree._prev._next = tree._next; } else { tree._parent._firstChild = tree._next; if (tree._next) { tree._next._prev = undefined } } //处理最后一个节点 if (tree._next) { tree._next._prev = tree._prev; } else { tree._parent._lastChild = tree._...
Typescript
int>)@this->LpVtbl[6])(@this); return ret; } /// <summary>To be documented.</summary> public readonly int QueryInterface<TI0>(out ComPtr<TI0> ppvObject) where TI0 : unmanaged, IComVtbl<TI0> { var @this = (IOleUndoUnit*) Unsafe.AsPointer(ref Unsafe.AsRef(in this)...
C#
// Probabilistic Question-Answering system // @2017 Sarge Rogatch // This software is distributed under GNU AGPLv3 license. See file LICENSE in repository root for details. #pragma once #include "../SRPlatform/Interface/SRException.h" #include "../SRPlatform/Interface/SRSpinSync.h" namespace SRPlat { // Public meth...
C
μακρά και ιστορική ιστορία τους στο Monero, οπότε φροντίστε να ψάξετε σε μερικούς από τους παρακάτω συνδέσμους εάν θέλετε να μάθετε περισσότερα για το ιστορικό, διαδικασία ή σχεδιασμός που βρίσκεται σε εξέλιξη για την επερχόμενη αναβάθμιση δικτύου!</p>\n<ul>\n<li><a class=\"next-link\" target=\"_blank\" rel=\"noopener...
Dart
bytes.asUint16List(24); Expect.equals(1000, view.lengthInBytes); view = bytes.asInt16List(24); Expect.equals(1000, view.lengthInBytes); view = bytes.asUint32List(24); Expect.equals(1000, view.lengthInBytes); view = bytes.asInt32List(24); Expect.equals(1000, view.lengthInBytes); view = bytes.asUint64Lis...
Dart
ursor::new(tar!("link.tar")); let mut ar = Archive::new(rdr); ar.set_overwrite(true); t!(ar.unpack(td.path())); } #[test] #[cfg(all(unix, feature = "xattr"))] fn xattrs() { // If /tmp is a tmpfs, xattr will fail // The xattr crate's unit tests also use /var/tmp for this reason let td = t!(TempB...
Rust
sans-serif], fmath mtext[mathvariant*=sans-serif], fmath ms[mathvariant*=sans-serif] /* some (crossbrowsertesting/browsershots) IE7s require no line break before 'Lucida Sans Unicode': */ { font-family: STIXGeneral, 'DejaVu Sans', 'DejaVu Serif', /* Cambria, 'Cambria Math', */ 'Lucida Sans Unicode', 'Arial Unicode ...
CSS
te goods or services; // loss of use, data, or profits; or business interruption) however caused // and on any theory of liability, whether in contract, strict liability, // or tort (including negligence or otherwise) arising in any way out of // the use of this software, even if advised of the possibility of such dama...
C++
Encoder { // public: // rtc::TaskQueue* Queue() { return encoder_queue_; } // void Encode() { // RTC_DCHECK_RUN_ON(encoder_queue_); // DoSomething(var_); // } // // private: // rtc::TaskQueue* const encoder_queue_; // Frame var_ RTC_GUARDED_BY(encoder_queue_); // }; // // void...
C
ized: true) ImageboardPoll? poll; @HiveField(20, isOptimized: true, defaultValue: false) bool isEndless; @HiveField(21, isOptimized: true) DateTime? lastUpdatedTime; @HiveField(22, isOptimized: true, defaultValue: false) bool isLocked; @HiveField(23, isOptimized: true, defaultValue: false) bool isNsfw; Thread...
Dart
zorder=10, ) axs[0].set_xlabel("$Re(\lambda)$") axs[0].set_ylabel("$Im(\lambda)$") axs[1].set_xlabel("time in s") axs[1].set_ylabel(r"$\bm{q}$") axs[2].set_xlabel("time in s") axs[2].set_ylabel("rel RMS error") # Create custom legend custom_lines = [ L...
Python
b use self::enums::InputSource; pub use self::enums::KeyMatch; pub use self::enums::MemoryFormat; pub use self::enums::NotifyType; pub use self::enums::ScrollDirection; pub use self::enums::SubpixelLayout; pub use self::enums::SurfaceEdge; pub use self::enums::TouchpadGesturePhase; pub use self::enums::VulkanError; mo...
Rust
ance') plt.plot(range(1000),dpplml_sub_rel_wcv[sub_sample_idx],color="red",label='ProtoQuery variance') plt.xlabel('Samples') plt.ylabel('Variance of Subject and Predicate Features Within the Same Sample') plt.legend() plt.savefig(f'{save_path}/sub_rel_var.png') plt.clf() plt.plot(range(...
Python
ecific language governing permissions and * limitations under the License. */ package com.facebook.litho.animated import com.facebook.infer.annotation.ThreadConfined /** * Creates collection of animators that will run in parallel when [ParallelAnimation.start] is * triggered */ class ParallelAnimation(private v...
Kotlin
CCEEDED(test->AddManyManyFloats(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,&outF))) printf("\t1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 +1 15 + 16 + 17 + 18 + 19 + 20 = %ff\n", (double)outF); else printf("\tFAILED"); if(NS_SUCCEEDED(test->AddMixedInts(1,2,3,4,5,6,7,8,9,...
C++
} } } } override fun close() { manager.unregister(this) screen?.despawn() composeMenu?.exit() } override fun tickCursor(player: Player, x: Int, y: Int) { screen?.updateCursor(player, x, y) } override fun onInteract(player: Player, ...
Kotlin
ngFromFileName(file), source: '', contents: '', }; } ///<reference path="../../typings/angularjs/angular.d.ts" /> ///<reference path="../Quiz.ts" /> ///<reference path="./Member3R.ts" /> ///<reference path="./Field3R.ts"/> module SevenThree { //画面状態. import Member = SevenThree.Model.Member; import F...
Typescript
} } @DomName('IDBFactory.getDatabaseNames') @SupportedBrowser(SupportedBrowser.CHROME) @Experimental() Future<List<String>> getDatabaseNames() { try { var request = _webkitGetDatabaseNames(); return _completeRequest(request); } catch (e, stacktrace) { return new Future.error(e, ...
Dart
Head Low Yellow Glow", [14846] = "Manoplas de Helióscamo", [14847] = "Cinto de Helióscamo", [14848] = "Escarpes de Helióscamo", [14849] = "Capacete de Helióscamo", [14850] = "Coxotes de Helióscamo", [14851] = "Espaldares de Helióscamo", [14852] = "Escudo de Helióscamo", [14853] = "Munhequeiras de Helióscamo", [14854] =...
Lua
; int32_t setting_get_min(const setting_t *setting); int32_t setting_get_max(const setting_t *setting); int32_t setting_get_default(const setting_t *setting); uint8_t setting_get_u8(const setting_t *setting); void setting_set_u8(const setting_t *setting, uint8_t v); hal_gpio_t setting_get_gpio(const setting_t *setting)...
C
BoxedInteger { if v == nil { return MapInt32ToBoxedInteger(nil) } return MapInt32ToBoxedInteger(common.Ptr(int32(*v))) } func MapInt32ToBoxedInteger(v *int32) *testkube.BoxedInteger { if v == nil { return nil } return &testkube.BoxedInteger{Value: *v} } func MapQuantityToBoxedString(v *resource.Quantity) *t...
Go
toggle .theme-label-when-dark { display: block; } html[data-theme="light"] .theme-toggle .theme-label-when-light { display: block; } /* ICONS */ .theme-toggle svg.theme-icon-when-auto, .theme-toggle svg.theme-icon-when-dark, .theme-toggle svg.theme-icon-when-light { fill: var(--header-link-color); col...
CSS
"exports": [ "getDebounceLimit", "GhostTextDebounceManager" ], "importedBy": [ "2279", "4419", "9334", "main" ], "lines": 25 }, "5420": { "deps": [], "exports": [], "importedBy": [ "6252" ], "lines": 35 }, "5468": { "deps": [ ...
JavaScript
hh:mm:ss'); const test2 = CommonService.timestampFormat(timestamp1, 'yyyy/MM/dd'); const test3 = CommonService.timestampFormat(timestamp1, 'yyyy年MM月dd日 hh时mm分ss秒'); const test4 = CommonService.timestampFormat(timestamp2, 'yyyy-MM-dd hh:mm:ss'); const test5 = CommonService.timestampFormat(timest...
Typescript
ode mov _va$(%esp), fb # fb = &va->x mov _vb$(%esp), fc # fc = &vb->x # HOLE jmp Area_Computation .align 4 abc: # abc mov _va$(%esp), fa # fa = &va->x mov _vb$(%esp), fb # fb =...
Assembly
008C($a0) ## 0000008C /* 02178 80A44EA8 00001025 */ or $v0, $zero, $zero ## $v0 = 00000000 /* 0217C 80A44EAC 4600203E */ c.le.s $f4, $f0 /* 02180 80A44EB0 00000000 */ nop /* 02184 80A44EB4 4500000C */ bc1f .L80A44EE8 /* 02188 80A44EB8 00000000 */ nop ...
Assembly
== "predicate": formatted = [f"'{x}'" for x in edge_filters["predicate"]] value = f"type({variable}) IN [{', '.join(formatted)}]" elif key in knowledge_provenance_properties: formatted = [ f"'{x}' IN {variable}{prefix}{...
Python
tarted etcd process %d" % (self.pid)) wait_time = 60 + random.randint(0,10) while False: #not self.is_endpoint_healthy(wait_time): if restartCount > 0: self.shutdown_server() cfg.fix...
Python
_with_h_priority_return_valid_addcommand() { parse_command_with_x_priority_return_valid_addcommand(Priority::High, "h"); } }<reponame>narpfel/rust-clippy<gh_stars>1000+ #![warn(clippy::needless_continue)] macro_rules! zero { ($x:expr) => { $x == 0 }; } macro_rules! nonzero { ($x:expr) ...
Rust
this.m_pActiveLegsSpriteAnim = this.m_pLegsMoveSpriteAnim; this.m_pActiveLegsSpriteAnim.Reset(); this.m_pActiveLegsSpriteAnim.Play(); switch (state) { case State_JumpSmall: case State_JumpBig: case State_Falling: this.m_fBodyMoveDirY = -1f; super.SetSpriteDeltaPositionY(thi...
Java
roundtrip(i64::MAX); test_i64_encoding_roundtrip(0); test_i64_encoding_roundtrip(41262); test_i64_encoding_roundtrip(-98793); } #[test] fn test_f64_lex_order() { let mut nan_buf = Vec::new(); let mut zero_buf = Vec::new(); let mut pos_buf = Vec::new(); ...
Rust
= &ConvertOpenAIResponseToGeminiParams{ ToolCallsAccumulator: nil, ContentAccumulator: strings.Builder{}, IsFirstChunk: false, } } // Handle [DONE] marker if strings.TrimSpace(string(rawJSON)) == "[DONE]" { return []string{} } if bytes.HasPrefix(rawJSON, []byte("data:")) { rawJSON = byt...
Go
) ], ), ), ), ), Card( margin: const EdgeInsets.symmetric(horizontal: 5, vertical: 8), child: InkWell( onTap: () { Provider.of<RoutineModel>(context, listen: false) ...
Dart
func (h *Handlers) setPaginationLinkHeader(ctx *gin.Context, page, perPage, totalCount int) { totalPage := totalCount / perPage if totalCount%perPage > 0 { totalPage++ } var prevPage int if page == 1 { prevPage = 1 } else { prevPage = page - 1 } var nextPage int if page == totalPage { nextPage = pa...
Go
char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc movabs rsi, _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_ mov rdi, rax call _ZNSolsEPFRSoS_E movabs rdi, _ZSt3cin lea rsi, [rsp + 44] mov qword ptr [rsp + 16], rax # 8-byte Spill call _ZNSirsERi mov edi, dword ptr [rsp + 48] mov esi, dword ptr [rsp + 44...
Assembly
*priv, int eap_type, int (*proc_version)(struct eap_sm *sm, void *priv, int peer_version), void (*proc_msg)(struct eap_sm *sm, void *priv, const struct wpabuf *respData)) { const u8 *pos; u8 flags; size_t left; int ret, res = 0; pos = eap_hdr_validate(EAP_VENDOR_IETF, eap_type, re...
C
c_mode_binary); } // update day of the month time_calendar.tm_mday = bcd_to_bin(m_s.reg[REG_MONTH_DAY], m_s.rtc_mode_binary); // update month time_calendar.tm_mon = bcd_to_bin(m_s.reg[REG_MONTH], m_s.rtc_mode_binary) - 1; // update year val_bin = bcd_to_bin(m_s.reg[REG_CENTURY_BYTE], m_s.rtc_mode_binary); va...
C++
}, StdModule.say, { npcHandler = npcHandler, text = "This h...here is no continent. This is h...hell." }) keywordHandler:addKeyword({ "drefia" }, StdModule.say, { npcHandler = npcHandler, text = "Even D...Drefia can't be worse than this land." }) keywordHandler:addKeyword({ "news" }, StdModule.say, { npcHandler = npcHa...
Lua
atyta>", DlgCellWordWrapYes : "Taip", DlgCellWordWrapNo : "Ne", DlgCellHorAlign : "Horizontaliai lygiuoti", DlgCellHorAlignNotSet : "<Nenustatyta>", DlgCellHorAlignLeft : "Kairę", DlgCellHorAlignCenter : "Centrą", DlgCellHorAlignRight: "Dešinę", DlgCellVerAlign : "Vertikaliai lygiuoti", DlgCellVerAlignNotSet : "<Nenu...
JavaScript
kind.iter() { let (subdir, cargo_build_debug) = match kind.as_str() { "example" => ("examples/", format!("cargo build --package {} --example {}", package.name, target.name)), "bin" => ("", format!("cargo build --package {} --bin {}", package.name,...
Rust
] # start iina print("iina starting") cherrypy.engine.publish('mpv_start') self.iina = subprocess.Popen( params, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, env=Setting.get_system_env()) def st...
Python
try { lock.wait() } catch (e: InterruptedException) { Log.e(TAG, e.message ?: "draw danmu encounter error") } } drawFinished = false } } override fun forceSleep() { } override fun hideAllDanmu(h...
Kotlin
color: rgba(black, 0.87), ); // Foreground palette for dark themes. $pbl-dark-theme-foreground: ( ngrid-border-color: $light-dividers, ngrid-header-cell-color: $light-secondary-text, ngrid-cell-color: white, ngrid-footer-cell-color: white, ngrid-cell-focus-color: white, ); $pbl-spacing-theme-default: ( he...
CSS
= Square(21); /// The C6 square on the chess board /// /// ``` /// use chess::{Square, Rank, File}; /// /// assert_eq!(Square::C6, Square::make_square(Rank::Sixth, File::C)); /// ``` pub const C6: Square = Square(22); /// The D6 square on the chess board /// /// ``` ///...
Rust
f0; } .cm-s-ambiance .CodeMirror-nonmatchingbracket { color: #f22; } .cm-s-ambiance div.CodeMirror-selected { background: rgba(255, 255, 255, 0.15); } .cm-s-ambiance.CodeMirror-focused div.CodeMirror-selected { background: rgba(255, 255, 255, 0.10); } .cm-s-ambiance .CodeMirror-line::selection, .cm-s-ambiance .CodeMir...
CSS
tYW4= MzUz cG9k IGluZGlzcA== IFRyYW5zbGF0aW9u IGdvd24= IE11bmQ= IGNpcw== IGJ5c3RhbmQ= Y29sbGVjdA== IFB1bmphYg== YWN0aXZlbHk= IEdhbWI= dGVsbA== IGltcG9ydGluZw== Z2VuY2llcw== IGxvY29t IEJyaWxs SG9seQ== IEJlcmdlcg== IHNob3dkb3du IHJlc3BvbmRlcnM= SUxZ IHRha2Vkb3du bGV0ZWQ= IG1hdHRlcmVk IHByZWRpY3RpdmU= IG92ZXJsYXk= R1BV IF...
JavaScript
fl .L80A5DC4C /* 02944 80A5DC34 44813000 */ mtc1 $at, $f6 ## $f6 = 3.00 /* 02948 80A5DC38 0C297723 */ jal func_80A5DC8C /* 0294C 80A5DC3C 02002025 */ or $a0, $s0, $zero ## $a0 = 00000000 /* 02950 80A5DC40 1000000E */ beq $zero, $zero, .L8...
Assembly
= await OpenIM.iMManager.groupManager.getGroupsInfo( groupIDList: [groupID!], ); groupInfo = list.firstOrNull; notAllowLookGroupMemberProfiles.value = groupInfo?.lookMemberInfo == 1; notAllowAddGroupMemberFriend.value = groupInfo?.applyMemberFriend == 1; } } _queryGroupMember...
Dart
0174}', 'ꊿ', 'ﶲ', '𓎜', '𑛉', 'ὑ', '𛰍', 'ⓖ', 'Ҝ', '\u{2df2}', 'ﰗ', 'ᙖ', 'ᕂ', '𞋟', '𑐫', '𖡞', 'ᘝ', 'Ե', 'ᴙ', 'ㄘ', '善', 'ꌉ', '𐳐', 'ﮟ', '𐳀', '𛄢', '🏹', '╆', 'ᚡ', '𑴆', '𝤫', '\u{a94b}', 'ŕ', '\u{1acc}', 'ꏆ', '𐠨', '🌦', '𐠪', '𞠀', '𐂆', 'Ḗ', '\u{fe21}', '🢗', 'ᕆ', '𖬸', '𑣔', '𛀂', '隣', '𞺵', 'ଶ...
Rust
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace RentalSystem { class CustomerControl : User { // ------------------------- user information ----------------------- private static User _user; ...
C#
howTermsAndCondition; info.orderIds = this.orderIds; } return info; } } import {RootWordProvider} from "./RootWordProvider"; import {roots} from "./roots"; // Ported from https://github.com/jhellingman/cebuano-dictionary-app/blob/master/app/src/main/java/ph/bohol/dictionaryapp/DictionaryDatabase.java ...
Typescript
-- drag panels pending end end end function baseNode:performReleaseAction(data) if not self.enabled then return end if self.pressed then if self.pointed then if self.type == utils.nodeTypes.BUTTON or self.type == utils.nodeTypes.IMAGE or self.type == utils.nodeTypes.ANIMATION the...
Lua
." }, { "HeaderECritsMax", "Max Crits", "This is the maximum damage or healing from a single crit of each effect." }, { "HeaderECritsP", "Crit Rates", "This is the crit rate of each effect, a percentage to crittable hits. Ticks cannot crit and are not included." }, { "HeaderEMiss", "Misses", "This is the number of ...
Lua
ER_2D_SHADOW_ARB: c_uint = 0x8B62; pub const SAMPLER_3D: c_uint = 0x8B5F; pub const SAMPLER_3D_ARB: c_uint = 0x8B5F; pub const SAMPLER_BINDING: c_uint = 0x8919; pub const SAMPLER_BUFFER: c_uint = 0x8DC2; pub const SAMPLER_BUFFER_AMD: c_uint = 0x9001; pub const SAMPLER_BUFFER_EXT: c_uint = 0x8DC2...
Rust
rHTML = '▸'; } } function showHashTarget(targetId) { if (targetId) { var hashTarget = document.getElementById(targetId); // new target is hidden if ( hashTarget && hashTarget.offsetHeight === 0 && hashTarget.parentNode.parentNode.classList.contains('display-none') ) { hashTa...
JavaScript
emojiString; + (NSMutableArray <NSString *> *)skinToneVariantsForCouple:(PSEmojiMultiSkinType)multiSkinType joiner:(NSString *)joiner; + (NSMutableArray <NSString *> *)skinToneVariantsForString:(NSString *)emojiString; + (NSMutableArray <NSString *> *)skinToneVariantsForString:(NSString *)emojiString withSelf:(BOOL)wit...
C
/* * This file is subject to the terms and conditions defined in * file 'license.txt', which is part of this source code package. */ using SteamKit2.Internal; namespace SteamKit2.Authentication { /// <summary> /// Represents access token generation result. /// </summary> public sealed class Access...
C#
10, q12, qb012, qb123, qb234, qp); } public static final void recalibrate(Read r){ byte[] quals2=recalibrate(r.bases, r.quality); // assert(false) : "\n"+Arrays.toString(r.quality)+"\n"+Arrays.toString(quals2); r.quality=quals2; } public static final byte[] recalibrate(byte[] bases, byte[] quals){ final ...
Java
order) && this.groupBuyType.isOk(order)){ this.pushButtonToGroup(groups,order, 'check'); } //拼团 else if(this.orderType.isPDD(order)){ this.pushButtonToGroup(groups,order, 'check'); ...
Typescript
, num_tokens] for (bsz, num_tokens) in fixed_shapes ] ) try: num_tokens_vec = self.num_tokens_vec(indices).astype("int64") except NotImplementedError: num_tokens_vec = None return data_utils.batch_by_size( indi...
Python
rHandRank, meta::Meta, tests::{FiveCardHand, RepresentativeHand, SevenCardHand, SixCardHand}, utils, }, }; #[test] fn test_all_five_card_combos() { let gen = utils::combinations_generator(Card::generate_deck(), 5); let evals = gen.fold(HashSet::wi...
Rust
2c); s->len = 0; switch (event) { case I2C_START_SEND: break; case I2C_START_RECV: printf("%s: recv not supported!!!\n", __FUNCTION__); break; case I2C_FINISH: #ifdef VERBOSE if (s->len < 2) printf("%s: message too short (%i bytes)\n", __FUNCTION__, s->len...
C
companion object { fun newInstance(context: Context) = Config(context) } var showWeekNumbers: Boolean get() = prefs.getBoolean(WEEK_NUMBERS, false) set(showWeekNumbers) = prefs.edit().putBoolean(WEEK_NUMBERS, showWeekNumbers).apply() var startWeeklyAt: Int get() = prefs.get...
Kotlin
= {"Rosa Elekk von Teldrassil",nil}, [23528] = {"Rosa Elekk der Azurmythosinsel",nil}, [23529] = {"Rosa Elekk von Mulgore",nil}, [23530] = {"Rosa Elekk von Tirisfal",nil}, [23531] = {"Rosa Elekk des Immersangwalds",nil}, [23533] = {"Lehrling von T'chalis Voodoobrauerei","Bräuverkäufer von T'chalis Voodoobrauerei"}, [23...
Lua
#!/usr/bin/env python """ vtkEnSightWriter test for writing VTK_CONVEX_POINT_SET cell vtkEnSightWriter should write VTK_CONVEX_POINT_SET as "nfaced" element and vtkEnSightGoldBinaryReader will read it back as VTK_POLYHEDRON. """ import vtk from vtk.util.misc import vtkGetDataRoot, vtkGetTempDir import os.path VTK_DA...
Python
if (val === null) { return '#d8d8d8'; } if (val === 0) { return '#ffffff'; } if (val === 1) { return '#00dd00'; } if (val === 2) { return '#b760b7'; } if (val === 3) { return '#0000dd'; } if (val === 4) { return '#dd00dd'; } if (val === 5) { return '#008888'; ...
Typescript
me.time + 0.3f; } void FixedUpdate () { if (_time < Time.time) gameObject.SetActive(false); } }
C#
right: $o-we-sidebar-width !important; } } .o_mass_mailing_iframe body { .modal:not(.o_technical_modal) { top: 0 !important; // set z-index so customize options visible on dialog. z-index: $o-we-overlay-zindex - 1; // just for fake backdrop effect background-colo...
CSS
}, { 1, 0, false, 0 }, { 0, 7, true, 0 }, { 0, 6, true, 0 }, { 0, 5, true, 0 }, { 0, 4, true, 0 }, { 0, 3, true, 0 }, { 0, 2, true, 0 }, { 0, 1, true, ...
Lua
arguments = s.getArguments(); assertEquals(1, arguments.getArgumentCount()); checkArgument((HTTPArgument)arguments.getArgument(0), "", postBody, postBody, contentEncoding, false); } @Test public void testEncodedArguments() throws Exception { String url = "http://localhost/matrix.htm...
Java
/* 02458 80815C78 1420FF84 */ bne $at, $zero, .L80815A8C /* 0245C 80815C7C 00000000 */ nop .L80815C80: /* 02460 80815C80 3C068083 */ lui $a2, %hi(D_8082F4A0) ## $a2 = 80830000 /* 02464 80815C84 24C6F4A0 */ addiu $a2, $a2, %lo(D_8082F4A0) ## $a2 = 8082F4A0 /* 02468 80815C88 27A401F4...
Assembly
.i, b.i, b.i) operator fun div(b: Vec3t<out Number>) = div(Vec3ub(), this, b._x.i, b._y.i, b._z.i) fun div(bX: Number, bY: Number, bZ: Number, res: Vec3ub = Vec3ub()) = div(res, this, bX.i, bY.i, bZ.i) fun div(b: Number, res: Vec3ub) = div(res, this, b.i, b.i, b.i) fun div(b: Vec3t<out Number>, res: Ve...
Kotlin
'font-italic'; } /* Emphasized */ .heti em { --at-apply: 'italic'; } /* Quotes */ .heti q { quotes: "「" "」" "『" "』"; } .heti q:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) { quotes: initial; quotes: auto; } /* Wavy Underline */ .heti u { --at-apply: 'mx-0.25 underline decoration-wavy decoration-red underl...
CSS
Operand(0); break; case ISD::FNEG: // Negation of an unknown bag of bits is still completely undefined. if (OpOpcode == ISD::UNDEF) return getUNDEF(VT); // -(X-Y) -> (Y-X) is unsafe because when X==Y, -0.0 != +0.0 if ((getTarget().Options.UnsafeFPMath || Flags.hasNoSignedZeros()) && ...
C++
n und Luzran. Bringt ihre Köpfe zu Todespirscher Rathiel in Tristessa, um eine Belohnung zu erhalten."}}, [9157] = {"Vergessene Rituale", nil, {"Bringt 8 Wellenfrontmedaillons zu Geranis Weißflor in den Geisterlanden."}}, [9158] = {"Überträger der Seuche", nil, {"Weltenwanderin Sedina in der Enklave der Weltenwanderer ...
Lua
")}) function mode.write(self, section, value) if value == "ap-wds" then ListValue.write(self, section, "ap") m.uci:set("wireless", section, "wds", 1) elseif value == "sta-wds" then ListValue.write(self, section, "sta") m.uci:set("wireless", section, "wds", 1) else ListValue.write(self, section, ...
Lua
ifyOrLogic(Op0, Op1)) return R; if (Value *R = simplifyOrLogic(Op1, Op0)) return R; if (Value *V = simplifyLogicOfAddSub(Op0, Op1, Instruction::Or)) return V; // Rotated -1 is still -1: // (-1 << X) | (-1 >> (C - X)) --> -1 // (-1 >> X) | (-1 << (C - X)) --> -1 // ...with C <= bitwidth (and co...
C++
) } func (*Config) ProtoMessage() {} func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor_config_b04006b660896589, []int{1} } func (m *Config) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Config.Unmarshal(m, b) } func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { ...
Go
, vector or matrix type"; } } return SPV_SUCCESS; } spv_result_t ValidateCopyMemoryMemoryAccess(ValidationState_t& _, const Instruction* inst) { assert(inst->opcode() == spv::Op::OpCopyMemory || inst->opcode() == spv::Op::OpCopyMemorySized); const uint3...
C++
costFactor: undefined })).rejects.toThrow(); await expect(bcrypt({ ...options, costFactor: null })).rejects.toThrow(); await expect(bcrypt({ ...options, costFactor: 0 })).rejects.toThrow(); await expect(bcrypt({ ...options, costFactor: '' as any })).rejects.toThrow(); await expect(bcrypt({ ...options, costFacto...
Typescript
ference path="popup.ts" /> namespace KIP { /**---------------------------------------------------------------------------- * @class ErrorPopup * ---------------------------------------------------------------------------- * Simple form to show an error message * @author Kip Price * @version...
Typescript
ColumnNameDocument = gql` mutation updateColumnName($colID: ID!, $name: String!) { updateColumn(input: {filter: {colID: [$colID]}, set: {name: $name}}) { column { ...columnDetails } } } ${ColumnDetailsFragmentDoc}`; export type UpdateColumnNameMutationFn = Apollo.MutationFunction<UpdateColumnN...
Typescript