content
stringlengths
2
6.21k
label
stringclasses
16 values
.pf-m-inset-sm-on-2xl { --pf-c-divider--after--Inset: var(--pf-global--spacer--sm); } .pf-c-divider.pf-m-inset-md-on-2xl { --pf-c-divider--after--Inset: var(--pf-global--spacer--md); } .pf-c-divider.pf-m-inset-lg-on-2xl { --pf-c-divider--after--Inset: var(--pf-global--spacer--lg); } .pf-c-...
CSS
c]>*{transition:opacity .1s ease,border .1s ease}#quarto-sidebar.slow>*,nav[role=doc-toc].slow>*{transition:opacity .4s ease,border .4s ease}.quarto-color-scheme-toggle:not(.alternate).top-right .bi::before{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb...
CSS
graphics.Color.argb((Constants.MIN_OPACITY * 255), red, green, blue) } else { // Use the reversed opacity as a percentage (0-100%) converted to a float (0.0-1.0) android.graphics.Color.argb((setOpacity * 255).toInt(), red, green, blue) } } fun isSystemInDarkMode(context: Context): Boolean { ...
Kotlin
ription Model of grocerie */ export class Grocerie { name: string; unitOfMeasurement: UnityOfMeasurement; quantity: number; price: number; spoils: boolean; expirationDate: Date; dateFactory: Date; index: number; constructor() { this.name = '' this.unitOfMeasurement ...
Typescript
batch_id=graph_batch_id) batch_node_feats = torch.split(batched_nodes_feats, num_nodes_by_batch) for batch_idx, seg_ids in enumerate(amr_token_seg_ids): amr_token_feats[seg_ids > 0, batch_idx] = batch_node_feats[batch_idx] batched_edge_feats = torch.spl...
Python
openapi-gen=true type LoggingLogSink struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LoggingLogSinkSpec `json:"spec,omitempty"` Status LoggingLogSinkStatus `json:"status,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // Logg...
Go
ציית מחרוזות ב-C, כולל הפיכתן לאותיות רישיות, לעיתים קרובות כוללת יישום ישיר של ניהול באפר, משקף את הגישה הנמוכה של C ונותן למתכנת שליטה מלאה על הזיכרון ופשרות הביצועים. ישנם שיטות אלטרנטיביות, מתקדמות יותר להפיכת מחרוזות לאותיות רישיות, במיוחד כאשר מתחשבים בלוקליזציה ותווים יוניקוד, שבהם כללי ההפיכה לאותיות גדולות יכ...
Markdown
pub fn overflowing_mul(self, other: Bv<S>) -> (Bv<S>, bool) { unimplemented!() } pub fn leading_zeros(self) -> u32 { unimplemented!() } } impl<S: Size> Clone for Bv<S> { fn clone(&self) -> Bv<S> { *self } } impl<S: Size> Copy for Bv<S> {} impl<S: Size> PartialEq<Bv<S...
Rust
i_ops = { ti_open, yenta_close, ti_init, yenta_suspend, yenta_get_status, yenta_get_socket, yenta_set_socket, yenta_get_io_map, yenta_set_io_map, yenta_get_mem_map, yenta_set_mem_map, yenta_proc_setup }; #define ti_sysctl(socket) ((socket)->private[0]) #define ti_cardctl(socket) ((socket)->private[1]) #def...
C
#Topic: Random Dates #----------------------------- #libraries import pandas as pd import numpy as np import matplotlib.pyplot as plt #df = pd.read_csv('data/mtcars.csv') from pydataset import data mtcars = data('mtcars') mtcars.head() df = mtcars #https://stackoverflow.com/questions/50559078/generating-random-dates-w...
Python
randomTongue0X: new parameter.Parameter(0.1, scales.defaultScale, true), randomTongue0Y: new parameter.Parameter(0.2, scales.defaultScale, true), randomTongue0W: new parameter.Parameter(0.05, scales.defaultScale, true), randomTongue1X: new parameter.Parameter(0.1, scales.defaultScale, true), randomTongue1Y: ...
JavaScript
struct ggml_tensor * kqv = ggml_mul_mat(ctx0, ggml_reshape_3d(ctx0, v, n_tokens, n_embd_head, n_head_kv), kq); cb(kqv, "kqv", il); struct ggml_tensor * kqv_merged = ggml_permute(ctx0, kqv, 0, 2, 1, 3); cb(kqv_merged, "kqv_merged", il); cur = ggml_cont_2d(ctx0, kqv_m...
C++
Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2016 NITK Surathkal * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distribu...
C++
kind = listResult.kind?.let { Kind.fromTmsId(it) } ?: Kind.UNKNOWN, flakiness = getFlakiness(listResult) ) } ?: emptyList() } } private fun deserializeStatus(reportModel: ListResult): TestStatus { return when (reportModel.status) { ...
Kotlin
nitoring_batches=10, ) trainer = Train(ds, gsn, algorithm=alg, save_path="gsn_sup_example.pkl", save_freq=10, extensions=[MonitorBasedLRAdjuster()]) trainer.main_loop() print("done training") def test_classify(): """ See how well a (supervised) GSN perfo...
Python
"Labels", "colorsRange": [ { "from": 0, "to": 50 }, { "from": 50, "to": 75 }, { "from": 75, "to": 100 } ], "invertColors": false, "labels": { "show": true, "color": "black" }, "scale": { "show": true, "labels": false, "color": "#333" }, "type": "met...
Go
.36825,-6.471125 6.552375,-9.706875 3.39725,-2.831125 6.794625,-5" + ".66225 10.191875,-8.49325 3.720875,-1.53675 7.442,-3.073875 11.162875,-4.610625 " + "4.367875,-0.56625 8.736,-1.132375 13.10425,-1.698625 -4.04475,4.6105 -8.089,9.22" + "15 -12.13375,13.832 -9.74225,3.159875 -15.48...
Java
es/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 specific language governing permissions and limitations under the License...
Go
x span:first-child { border-color: #3c53c7; background: #3c53c7; animation: checkbox_animation 0.6s ease; } .file-item.selected .assistants-checkbox span:first-child svg, .contact-item.selected .assistants-checkbox span:first-child svg { stroke-dashoffset: 0; } .file-item.selected .assistants-checkbox span:fi...
CSS
t = new LinearSGDTrainer(new SquaredLoss(), new AdaGrad(0.1,0.1),5,1000); t.setInvocationCount(-1); }); } @ParameterizedTest @ValueSource(strings = {"regressor-linear-sgd-4.0.2.model"}) public void testSerializedModel(String resourceName) throws IOException, ClassNotFoundException ...
Java
size: 0.825rem; text-align: center; @include link-styling(var(--col-hint)); } #auth_verify_email { font-size: 0.825rem; } #auth_links { position: absolute; bottom: -2.5rem; left: 50%; display: flex; column-gap: 1rem; align-items: center; justify-content: space-evenly; font-size: 0.825rem; tran...
CSS
不知道什么时候才能有一个值得信赖的另一半……总队长,你有什么好的建议么~', '40020130', '1', ''}, {'400201', '400201', '', '17', '12', '接触6', '总队长,您果然也是一位信守承诺的人呢,如果我的伴侣能是像你一样的人就好了呢~', '40020131', '1', ''}, {'400201', '400201', '', '18', '13', '接触7', '总队长,不要做一些轻浮的举动哦~', '40020132', '1', ''}, {'400201', '400201', '', '19', '14', '开心', '呵呵~(放松的笑)', '40020133...
Lua
/** * MotionQueueEnt.h * * Copyright(c) Live2D Inc. All rights reserved. * [[ CONFIDENTIAL ]] */ #ifndef __LIVE2D_MOTION_QUEUE_ENT_H__ #define __LIVE2D_MOTION_QUEUE_ENT_H__ #ifndef __SKIP_DOC__ #include "../memory/LDObject.h" #include "../ALive2DModel.h" #include "../type/LDVector.h" //--------- LIVE2D NA...
C
xmm6,xmm4 vcmpngtpd xmm7,xmm6,XMMWORD PTR [ecx] vcmpngtpd xmm7,xmm6,[ecx] vcmpfalsepd xmm2,xmm6,xmm4 vcmpfalsepd xmm7,xmm6,XMMWORD PTR [ecx] vcmpfalsepd xmm7,xmm6,[ecx] vcmpneq_oqpd xmm2,xmm6,xmm4 vcmpneq_oqpd xmm7,xmm6,XMMWORD PTR [ecx] vcmpneq_oqpd xmm7,xmm6,[ecx] vcmpgepd xmm2,xmm6,xmm4 vcmpgepd xmm7,xmm6,...
Assembly
flag" "golift.io/starr" "golift.io/starr/sonarr" ) type SeriesList []*sonarr.Series func (s SeriesList) Len() int { return len(s) } func (s SeriesList) Swap(i, j int) { s[i], s[j] = s[j], s[i] } func (s SeriesList) Less(i, j int) bool { return getSize(s[i]) > getSize(s[j]) } func getSize(serie *sona...
Go
test = fHead; SkTSpan* largest = fHead; bool lCollapsed = largest->fCollapsed; int safetyNet = 10000; while ((test = test->fNext)) { if (!--safetyNet) { fHung = true; return nullptr; } bool tCollapsed = test->fCollapsed; if ((lCollapsed && !tColla...
C++
found = t break } } if (found) { handleCb({ source: config.general.media_dir + '/' + found.file, comment: comment, url: url }) } else { handleCb({ title: title, artist: artist, ...
JavaScript
W5ncy52MS5UZXN0VG' '9ycmVudFJlc3BvbnNlIgASUgoLR2V0TWV0YWRhdGESHy5zZXR0aW5ncy52MS5HZXRNZXRhZGF0' 'YVJlcXVlc3QaIC5zZXR0aW5ncy52MS5HZXRNZXRhZGF0YVJlc3BvbnNlIgA='); import "dart:io"; import "package:dart_amqp/dart_amqp.dart"; void main (List<String> arguments) { if (arguments.isEmpty) { print("Usage: r...
Dart
st [edx+1016], 123 # AVX512F Disp8 vpermq zmm6, qword bcst [edx+1024], 123 # AVX512F vpermq zmm6, qword bcst [edx-1024], 123 # AVX512F Disp8 vpermq zmm6, qword bcst [edx-1032], 123 # AVX512F vpexpandd zmm6, ZMMWORD PTR [ecx] # AVX512F vpexpandd zmm6{k7}, ZMMWORD PTR [ecx] # AVX512F vpexpandd zmm6{k7}{z}, Z...
Assembly
率+100np', '', '', '1', '', '1000040060', '', '1', '1', '', '', '', '2', '1', '2', '1', '', '', '', '', '1000040060', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''}, {'1000040061', '', '5', '角色施放大招后,若该次大招未施放攻击,则使自身伤害提高10%,持续1回合', '角色施放大招后,若该次大招未施放攻击,则使自身伤害提高10%,持续...
Lua
remove(_world); camera = CameraComponent.withFixedResolution(width: 256, height: 240); await Future<void>.delayed(const Duration(milliseconds: 100)); _world = SokobanWorld(); camera.world = _world; camera.moveTo(Vector2(128, 120)); add(_world); await Future<void>.delayed(const Duration(milli...
Dart
""", // """ SELECT `c`.`Id`, `c`.`CycleCId` FROM `CycleA` AS `c` """, // """ SELECT `c`.`Id`, `c`.`CId`, `c`.`CycleAId` FROM `CycleB` AS `c` """, // """ SELECT `c`.`Id`, `c`.`BId` FROM `CycleC` AS `c` """); } public override async Task Wal...
C#
.reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } fn candidate_bond_less() -> Weight { 59_421_000_u64 .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } fn nominate(x: u32, y: u32) -> Weight { 71_656_000_u64 // Standard Error...
Rust
uction requires: sme // CHECK-UNKNOWN: e12063ef <unknown> str za[w12, 5], [x17, #5, mul vl] // CHECK-INST: str za[w12, 5], [x17, #5, mul vl] // CHECK-ENCODING: [0x25,0x02,0x20,0xe1] // CHECK-ERROR: instruction requires: sme // CHECK-UNKNOWN: e1200225 <unknown> str za[w12, 1], [x1, #1, mul vl] // CHECK-INS...
Assembly
let Some(display) = gdk::Display::default() { gtk::StyleContext::add_provider_for_display( &display, &provider, gtk::STYLE_PROVIDER_PRIORITY_APPLICATION, ); } } fn show_about_dialog(&self) { let dialog = gtk::builders::Abo...
Rust
1.fds.api.mi-img.com/mi-mall/8cf136716c3f70afeb24385585967183.jpg?f=webp&amp;w=1080&amp;h=932&amp;bg=80808\" src=\"//cdn.cnbj1.fds.api.mi-img.com/mi-mall/8cf136716c3f70afeb24385585967183.jpg?f=webp&amp;w=1080&amp;h=932&amp;bg=80808\" lazy=\"loaded\"></div></div><div data-v-ccdb1440=\"\" class=\"section section-detail\"...
Dart
using System.Text; using WeihanLi.Extensions; namespace WeihanLi.Common.Helpers; public static class Base64UrlEncodeHelper { private const char Base64PadCharacter = '='; private const string DoubleBase64PadCharacter = "=="; private const char Base64Character62 = '+'; private const char Base64Characte...
C#
0.8, h = 0.59444444444444 }, [20101] = 0.0, [20105] = false, [40801] = { v = 0.4, s = 0.75, h = 0.013888888888889 }, [20106] = { v = 0.0, s = 0.0, h = 0.0 }, [40101] = 0.0, [20205] = false, [101] = 0, [102] = 1022009, [103] = 1032004, [104] = 0, [20201] = 0.0, [...
Lua
icle(Type.MAGIC_BUBBLE, ParticleMagicBubble::new); ParticleWizardry.registerParticle(Type.MAGIC_FIRE, ParticleMagicFlame::new); ParticleWizardry.registerParticle(Type.PATH, ParticlePath::new); ParticleWizardry.registerParticle(Type.SCORCH, ParticleScorch::new); ParticleWizardry.registerParticle(Type.SNOW, Parti...
Java
MouseFunctions[i][0] = CONFIG_FunctionNameToNum(mousedefaults[i]); CONTROL_MapButton(MouseFunctions[i][0], i, 0, controldevice_mouse); if (i>=4) continue; MouseFunctions[i][1] = CONFIG_FunctionNameToNum(mouseclickeddefaults[i]); CONTROL_MapButton(MouseFunctions[i][1], i, 1, controlde...
C++
[JetBrains.Annotations.NotNull] out Dictionary<string, List<double>> energyUsesPerPersonByAfforcance, [JetBrains.Annotations.NotNull] [ItemNotNull] List<string> personNames) { var affordances = filteredEntries.Select(x => x.AffordanceName).Distinct().ToLi...
C#
ef: 'users', default: [] }, comments: { type: [Number], ref: 'users', default: [] }, is_active: { type: Boolean, default: true }, }); const TweetModel = model<ITweet>('tweets', schema); export { TweetModel, ITweet }; import {Page, HomePage, LanguagePage} from '../page'; export type SingletonPage = HomePage | Lan...
Typescript
z, prediction_B, img_B, noise = next(iter_B) prediction_B = prediction_B.squeeze(0).to(device) img_B = img_B.to(device) z = z.to(device) # print(prediction_B.shape) noise = [nn.to(device) for nn in noise] w = trainer.mapping(z) if 'fixed_noise' in c...
Python
ient; use crate::pserver::raft::*; use crate::pserver::simba::aggregation; use crate::pserver::simba::engine::tantivy::sort::FieldScore; use crate::pserver::simba::simba::Simba; use crate::pserverpb::*; use crate::util::{coding, config, entity::*, error::*}; use crate::*; use async_std::{sync::channel, task}; use log::...
Rust
,d7 ; At bottom of screen? blt.s .loop ; No! rts ; Yes! draw_line clr.b cur_inverse ; Text inversion off. move.w cur_line,d0 tst.b blk_defined ; Block defined? beq.s .no_block ; No! cmp.w start_blk_line,d0 ; Yes, is current line blt.s .no_block ; within the block? cmp.w end_blk_line,d0 bgt.s .no_...
Assembly
yte W02 .byte En4, v100 .byte W06 .byte En3, v060 .byte W02 .byte En4, v100 .byte W06 .byte En3, v060 .byte W02 .byte En4, v100 .byte W06 .byte En3, v060 .byte W02 .byte En4, v100 .byte W06 .byte En3, v060 .byte W02 .byte En4, v100 .byte W06 .byte En3, v060 .byte W02 .byte En4...
Assembly
+ 13] = x1i + x3r; a[offa + 14] = x1r + x3i; a[offa + 15] = x1i - x3r; x0r = y0r + y2r; x0i = y0i + y2i; x1r = y0r - y2r; x1i = y0i - y2i; x2r = y1r + y3r; x2i = y1i + y3i; x3r = y1r - y3r; x3i = y1i - y3i; a[offa] = x0r + x2r; ...
Java
/// The minimum VERSION of the Fluvio Platform that this client is compatible with. const MINIMUM_PLATFORM_VERSION: &str = "0.9.0"; /// The maximum VERSION of the Fluvio Platform that this client is compatible with. const MAXIMUM_PLATFORM_VERSION: &str = "0.10.0"; /// Creates a producer that sends records to the na...
Rust
0x14 -> cpu.sregs.ds.value.bigint 0x15 -> cpu.sregs.es.value.bigint 0x16 -> cpu.sregs.fs.value.bigint 0x17 -> cpu.sregs.gs.value.bigint 0x18 -> fpu.st(0) 0x19 -> fpu.st(1) 0x1A -> fpu.st(2) 0x1B -> fpu.st(3) 0x1C ...
Kotlin
}, [2141] = { id = 2141, name = "驅逐戰強化" }, [2151] = { id = 2151, name = "均衡魚雷" }, [2160] = { id = 2160, name = "预备雷击" }, [2161] = { id = 2161, name = "预备雷击" }, [2171] = { id = 2171, name = "防空警戒" }, [2181] = { id = 2181, name = "全面戒备" }, [2190] = { id = 2190, name = "备弹指令" }, ...
Lua
/* bam_ampliconclip.h -- shared functions between amplicon clip/stats Copyright (C) 2020-2021 Genome Research Ltd. Author: James Bonfield <jkb@sanger.ac.uk> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
C
; ; ARJ Mode 1-3 and Mode 5-8 decode functions ; Size optimized ; (c) 1993 Mr Ni! (the Great) of the TOS-crew ; ; This function uses a BIG amount of stack space! ; It uses about 16kB! ; You can reduce this amount with 13320 bytes ; by suppyling A3 with a pointer to a 13320 bytes big ; workspace and removing the stack a...
Assembly
co
Python
= 40; goto _test_eof; _test_eof41: cs = 41; goto _test_eof; _test_eof42: cs = 42; goto _test_eof; _test_eof56: cs = 56; goto _test_eof; _test_eof43: cs = 43; goto _test_eof; _test_eof57: cs = 57; goto _test_eof; _test_eof44: cs = 44; goto _test_eof; _test_eof45: cs = 45; goto _test_eof; _test_eof46: cs...
C
Spotify Connect devices information."), USER_READ_PRIVATE("Access your subscription details."), USER_READ_RECENTLY_PLAYED("Access your recently played items."), USER_SOA_LINK("Link a partner user account to a Spotify user account.", requestByDefault = false), USER_SOA_UNLINK("Unlink a p...
Kotlin
372798343i, -48.7010835501729+24.5244827641945i, -48.7010835501729-24.5244827641945i, -51.620171425175+0i, -49.1047272072286+7.0804434036442i, -49.1047272072286-7.0804434036442i, -44.0755122578262+21.8965512206582i, -44.0755122578262-21.8965512206582i, -47.6686025497685+0i, -47.0350049752776+0i, 43.2054741656531+0i, -4...
Java
tag feed in ins v27.d[0], v8.d[1] //GHASH final-1 block - mid ldr q9, [x0], #16 //AES final block - load ciphertext pmull2 v28.1q, v8.2d, v22.2d //GHASH final-1 block - high eor v27.8b, v27.8b, v8.8b //GHASH final-1 block - mid eor v17.16b, v17.16b, v28.16b //GHASH final-1 block - high ldr q21...
Assembly
']]], ['log2',['log2',['../a00242.html#ga82831c7d9cca777cebedfe03a19c8d75',1,'glm::log2(vec&lt; L, T, Q &gt; const &amp;v)'],['../a00292.html#ga9bd682e74bfacb005c735305207ec417',1,'glm::log2(genIUType x)']]], ['lookat',['lookAt',['../a00247.html#gaa64aa951a0e99136bba9008d2b59c78e',1,'glm']]], ['lookatlh',['lookAt...
JavaScript
turn current.Length == lookAhead.Length; } private record LongestIncreasingSequence(IEnumerable<MatchedWith> Sequence, IEnumerable<MatchedWith> BadCandidates) { public IEnumerable<MatchedWith> Sequence { get; } = Sequence; public IEnumerable<MatchedWith> BadCandidates { get; } = BadCandida...
C#
(int top, int bottom, int left, int right); } } /* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
Java
ing, update: u32, ) { let mut workload = BatchListFeeder::new(source); let time_to_wait = time::Duration::from_secs(1) / rate; // set first target let mut next_target = 0; // keep track of status of http requests for logging let http_counter = HttpRequestCounter::new(format!("File: {}", inpu...
Rust
=t.titleId,a?"<title ".concat(s?'id="'.concat(s,'"'):"",">").concat(a,"</title>"):"")).concat((n=t.desc,i=t.descId,n?"<desc ".concat(i?'id="'.concat(i,'"'):"",">").concat(n,"</desc>"):"")).concat(l.svgContent)}}))}},3261:(t,e,n)=>{"use strict";n.d(e,{l:()=>i});var r=n(758),o=n(2297);function i(t){var e,n,i,a,s,c=t.size...
JavaScript
import re from agents.generic_agent import GenericAgent from agents.openai_chatComplete import completion_with_backoff from agents.utils import fill_in_placeholders class CorrectnessEnsuringAgent(GenericAgent): def __init__(self, workspace, **kwargs): super().__init__(workspace, **kwargs) def run(self...
Python
in OpJoin. GameId: 255, // // Summary: // (248) Code for property set (Hashtable). GameProperties: 248, // // Summary: // (240) Code for "group" operation-parameter (as used in Op RaiseEvent). Group: 240, // // Summary: ...
Typescript
, %zmm2, %zmm2 // CHECK: encoding: [0x62,0xf2,0x6d,0x58,0xb8,0xd2] vfmadd231ps {ru-sae}, %zmm2, %zmm2, %zmm2 // CHECK: vfmadd231ps {ru-sae}, %zmm2, %zmm2, %zmm2 {%k2} // CHECK: encoding: [0x62,0xf2,0x6d,0x5a,0xb8,0xd2] vfmadd231ps {ru-sae}, %zmm2, %zmm2, %zmm2 {%k2} // CHECK: vfmadd231ps {ru-sae}, %zmm2,...
Assembly
FieldPath as expected by the API. * * @private * @override * @returns {string} The representation as expected by the API. */ get formattedName(): string { return this.segments .map(str => { return UNESCAPED_FIELD_NAME_RE.test(str) ? str : '`' + str.replace('\\', '...
Typescript
return []; } saveAction () { this.settingsFormService.save(this.model) .$promise .then(() => { this.Notification.success({ msg: "Settings have been saved successfully" }); this.settingsForm.$submitted = false; this.settingsForm.$dirty = false; }, ...
JavaScript
V, V) V): The function that accumulates values; it takes two arguments // of type V and returns a value of type V. // // Returns: // // - T: The accumulated value after applying the function to all elements. // // Example usage: // // slice := g.Slice[int]{1, 2, 3, 4, 5} // sum := slice.Iter(). // Fold(0, // fun...
Go
-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 7...
CSS
it.peek() { t_it.next().unwrap(); sign = -1; } if let Some(Tok::Op('+')) = t_it.peek() { t_it.next().unwrap(); } if let Tok::Num(x) = t_it.next().unwrap() { numerator = x; } else { panic!(); } if let Tok:...
Rust
Value(),par),nh); buildNodeLists(); } } /** * <p> * The method for carrying out the crossover genetic operations. * </p> * @param p2 the second parent in the crossover operation, it's an {@link Genotype} object * @param p3 the {@link Genotype} object with the first offspring * @par...
Java
5,6,7; DLIB_TEST_MSG(m2(0,0) == 1 && m2(0,1) == 2 && m2(0,2) == 3 && m2(1,0) == 5 && m2(1,1) == 6 && m2(1,2) == 7,""); matrix<double,2,1> m3; m3 = 1, 5; DLIB_TEST(m3(0) == 1 && m3(1) == 5 ); matrix<dou...
C++
98%9F%E8%8E%B2%E8%88%B9%E7%AB%8B%E7%BB%98%EF%BC%89.png" decoding="async" loading="lazy" width="24" height="40" srcset="https://upload.thwiki.cc/thumb/3/3c/%E5%AF%85%E4%B8%B8%E6%98%9F%EF%BC%88%E6%98%9F%E8%8E%B2%E8%88%B9%E7%AB%8B%E7%BB%98%EF%BC%89.png/36px-%E5%AF%85%E4%B8%B8%E6%98%9F%EF%BC%88%E6%98%9F%E8%8E%B2%E8%88%B9%E...
Markdown
INITIALIZATIONERROR string = "AGENT_STATUS_INITIALIZATION_ERROR" // ListAgentsOKBodyPostgresExporterItems0StatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" ListAgentsOKBodyPostgresExporterItems0StatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" // ListAgentsOKBodyPostgresExporterItems0Statu...
Go
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: sxp_local_bindings_bulk_request short_description: Resource module for SXP Local Bindings Bulk Request description...
Python
a(0,0,0,.1)!important;cursor:default}.wp-core-ui .button-group{position:relative;display:inline-block;white-space:nowrap;font-size:0;vertical-align:middle}.wp-core-ui .button-group>.button{display:inline-block;-webkit-border-radius:0;border-radius:0;margin-right:-1px;z-index:10}.wp-core-ui .button-group>.button-primary...
CSS
self.music_btn_rotate_anime(e) else: self.stop_music() def stop_music(self): """停止播放音乐""" self.page.overlay.remove(self.music_widget) self.music_widget = None music_files = os.listdir(f'{os.getenv("APP_DIR")}/assets/music') self.music_path = ...
Python
*mask, siz h, siz w, siz n ); void rleDecode( const RLE *R, byte *mask, siz n ); void rleMerge( const RLE *R, RLE *M, siz n, int intersect ); void rleArea( const RLE *R, siz n, uint *a ); void rleIou( RLE *dt, RLE *gt, siz m, siz n, byte *iscrowd, double *o ); void rleNms( RLE *dt, siz n, uint *keep, double t...
Lua
15);--lbr-size-x16:calc(var(--lbr-size-unit, 8px)*16);--lbr-size-x17:calc(var(--lbr-size-unit, 8px)*17);--lbr-size-x18:calc(var(--lbr-size-unit, 8px)*18);--lbr-size-x20:calc(var(--lbr-size-unit, 8px)*20);--lbr-size-x28:calc(var(--lbr-size-unit, 8px)*28);--lbr-size-x32:calc(var(--lbr-size-unit, 8px)*32);--lbr-size-x40:c...
CSS
t.Fatalf("unexpected requestURI %q. Expecting %q. path %q", requestURI, expectedRequestURI, path) } } func TestURIRejectInvalidIPv6(t *testing.T) { t.Parallel() for _, raw := range []string{ "http://[0:0::vulndetector.com]:80", "http://[2001:db8::vulndetector.com]/", "http://[vulndetector.com]/", "http://...
Go
ак увеличить лимиты скорости для конкретного приложения, - что происходит при злоупотреблении лимитами и многое другое. <a name="linkedin"></a> ### Linkedin ![LinkedIn](img/32.png) > Ограничения скорости LinkedIn Документация Linkedin по ограничению скорости объясняет, что разные конечные точки API имеют разные огра...
Markdown
"; } .fa-person-through-window { --fa: "\e5a9"; --fa--fa: "\e5a9\e5a9"; } .fa-toolbox { --fa: "\f552"; --fa--fa: "\f552\f552"; } .fa-globe-wifi { --fa: "\e685"; --fa--fa: "\e685\e685"; } .fa-envelope-dot { --fa: "\e16f"; --fa--fa: "\e16f\e16f"; } .fa-envelope-badge { --fa: "\e16f"; --fa--fa: "\...
CSS
o13.pcodigo= 13; producto13.pnombre = "Pintura"; producto13.pcantidad = 8; producto13.pmarca = "Pato"; producto13.pprecio_unitario = "S/.25"; const producto14 = new Producto(); producto14.pcodigo= 14; producto14.pnombre = "Tiza"; producto14.pcantidad = 3; producto14.pmarca = "Martell"; ...
Typescript
y50_3c3 = { 0x7B, 0x24, 0x3B, 0x66, 0x0D, 0x29, 0x51, 0x18, 0x6A, 0x0F, 0x0E, 0x38, 0x0A, 0x29, 0x1F, 0x30, 0x78, 0x2E, 0x2D, 0x19, 0x1E, 0x09, 0x4A, 0x4E, 0x6C, 0x2A, 0x0C, 0x39, 0x0C, 0x26, 0x3D, 0x3D, 0x5A, 0x2C, 0x21, 0x7C, 0x08, 0x3C, 0x18, 0x7F, 0x76, 0x75, 0x0D, 0x1D, 0x4F, 0x3A, 0x29, 0x38, 0x66, 0x51 }; priva...
Java
)) models = UpsampleModel(m) ``` ``` learn = ConvLearner(md, models) learn.opt_fn=optim.Adam learn.crit=nn.BCEWithLogitsLoss() learn.metrics=[accuracy_thresh(0.5),dice] ``` ``` learn.freeze_to(1) ``` ``` learn.lr_find() learn.sched.plot() ``` ``` 86%|████████████████████████████████████████████████████...
Markdown
.com/spf13/viper" "github.com/stretchr/testify/suite" ) type FSBackupSuite struct { suite.Suite } func (s *FSBackupSuite) SetupTest() { commons.TestSetup() } func (s *FSBackupSuite) TearDownTest() { viper.Reset() } func (s *FSBackupSuite) TestResticBackupDirectory() { ctx := context.Background() resticContai...
Go
对油价有影响吗? - 为什么央视要把军事和农业放在同一个频道? - 到莫斯科战役德军已经消灭了几百万苏军,为什么苏军还能反攻? - 给我国下一代战略轰炸机拍快照 - 你没见过的,最真实的日本侵华女兵,为什么电视剧从不演她们? - 最怪异的枪械,第5种可以折叠成一个小工具箱 - AK-47步枪能否击落阿帕奇武装直升机? - 美国有个太空篱笆系统是干什么的? - 俄军“匕首”高超音速武器已进入战斗值勤,美军会害怕吗,你怎么看? - 冷战苏联耗费十年挖了一个12262米的孔,为何最后却停止挖了? - 二战中哪个参战国叛变投敌的叛徒最多?哪个国家最少?为什么? - 伊朗为何能如此强硬抗衡美国,底气何在? - 两栖攻击舰、护卫舰、驱逐舰和导弹...
Markdown
if ((iRet = WelsResidualBlockCavlc (pVlcTable, pNonZeroCount, pBs, 16 + (i << 2), 4, g_kuiChromaDcScan, iMbResProperty, pCurDqLayer->pScaledTCoeff[iMbXy] + 256 + (i << 6), pCurDqLayer->pChromaQp[iMbXy][i], pCtx)) != ERR_NONE) { return iRet;//abnormal } ...
C++
/pkg/apis/kubeflow.org/v1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/utils/ptr" "sigs.k8s.io/kueue/pkg/controller/constants" ) // PaddleJobWrapper wraps a Job. type PaddleJobWrapper struct{ kftraining....
Go
:= error(nil) if !reflect.DeepEqual(err, expectedErr) { t.Errorf("actualErr: (%v), expectedErr: (%v)", err, expectedErr) } }, }, { name: "invalid parameter", testFunc: func(t *testing.T) { cntl := gomock.NewController(t) defer cntl.Finish() d, _ := NewFakeDriver(cntl) stdCapac...
Go
AgentAsync(new RegisterAgentTypeRequest { Type = type, }, this.CallOptions); } return type; } public ValueTask<AgentProxy> TryGetAgentProxyAsync(Contracts.AgentId agentId) { // TODO: Do we want to support getting remote agent proxies? ...
C#
rt 'dart:io'; import 'package:app_rhyme/src/rust/api/cache/file_cache.dart'; import 'package:app_rhyme/utils/const_vars.dart'; import 'package:app_rhyme/utils/global_vars.dart'; import 'package:extended_image/extended_image.dart'; import 'package:flutter/cupertino.dart'; // 将url转换为本地缓存路径 // 如果本地缓存存在,则返回本地缓存路径 // 如果本地缓...
Dart
namespace Book.ViewModels.Samples.Chapter24.Sample03 { using System; using System.Reactive; using System.Reactive.Linq; using Genesis.TestUtil; using PCLMock; public sealed class ApiMockBuilder : IBuilder { private readonly ApiMock api; public ApiMockBuilder() { ...
C#
"=ds=Legs, Mail=q1=Shared", "9.80%" }, { 20616, "INV_Bracer_14", "=q4=Dragonbone Wristguards", "=ds=Wrist, Plate =q1=Shared", "10.20%" }, { 20619, "INV_Boots_Plate_04", "=q4=Acid Inscribed Greaves", "=ds=Feets, Plate =q1=Shared", "8.85%" }, { 20580, "INV_Mace_20", "=q4=Hammer of Bestial Fury", ...
Lua
extension */ String findVMOutput = exec(Constants.FINDVM_CMD, new String[] {}); String j9javavmAddr = FindVMOutputParser.getJ9JavaVMAddress(findVMOutput); if (null == j9javavmAddr) { fail("j9javavm address could not be found in the !findvm output"); return; } try { vmAddr = ParserUtil.toBigInteger(...
Java
-options-last-border-hider, body.rtl .fw-postbox>.inside>.fw-backend-options-last-border-hider { right: 0; left: auto; } .fw-backend-option-design-default>.fw-backend-option-input>.fw-inner, .fw-backend-option-design-customizer>.fw-backend-option-input>.fw-inner { position: relative; max-width: 100%; -webkit-box...
CSS
s> delayed = new SortedSet<Markets>(); public List<Markets> All { get { return this.realtime.Union(this.delayed).ToList(); } } public List<Markets> RealTime { get { return this.realtime.ToList(); } } public List<Markets> Delayed ...
C#
9, DWORD PTR [rax+r14*8+0x1234] # AVX512 vrsqrt14ss xmm30{k7}, xmm29, DWORD PTR [rdx+508] # AVX512 Disp8 vrsqrt14ss xmm30{k7}, xmm29, DWORD PTR [rdx+512] # AVX512 vrsqrt14ss xmm30{k7}, xmm29, DWORD PTR [rdx-512] # AVX512 Disp8 vrsqrt14ss xmm30{k7}, xmm29, DWORD PTR [rdx-516] # AVX512 vrsqrt28ss xmm30{k7}, xm...
Assembly
rCodeAt(0), 'B'.charCodeAt(0), 3, 4]) ) }) test('byteCaseInsensitiveMatch()', () => { expect(byteSequence.byteCaseInsensitiveMatch( new Uint8Array([1, 2, 'a'.charCodeAt(0), 'B'.charCodeAt(0), 3, 4]), new Uint8Array([1, 2, 'A'.charCodeAt(0), 'b'.charCodeAt(0), 3, 4]) )).toBe(true) expect...
Typescript
1's and check if the exponent is all 1's inst_RV_IV(INS_and, tmpReg, expMask, EA_4BYTE); inst_RV_IV(INS_cmp, tmpReg, expMask, EA_4BYTE); // If exponent is all 1's, throw ArithmeticException genJumpToThrowHlpBlk(EJ_je, SCK_ARITH_EXCPN); if ((targetType == TYP_DOUBLE) && (targetReg == op1->GetRegNu...
C++