content
stringlengths
2
6.21k
label
stringclasses
16 values
newValues.apply { put("id", id) put("v11n", v11n.name) put("kjvOrdinalStart", verseRangeInKjv.start.ordinal) put("kjvOrdinalEnd", verseRangeInKjv.end.ordinal) put("ordinalStart", verseRange.start.ordinal) ...
Kotlin
dVm1Name string, addVm1Adapter1 uint, addVm1Adapter2 uint, addVm1Adapter3 uint, addVm1Pos uint, addVm2Name string, addVm2Adapter1 uint, addVm2Adapter2 uint, addVm2Adapter3 uint, addVm2Pos uint, delVm1Pos uint, delVm2Pos uint, addUSB1Dev uint, addUSB1Pos uint, addUSB2Dev uint, addUSB2Po...
Go
g_if = "Option::is_none")] #[serde(deserialize_with = "fix_common::workarounds::from_opt_str")]// https://github.com/serde-rs/serde/issues/1183 #[serde(default)] #[serde(rename = "43024")] pub underlying_return_rate_valuation_end_date_offset_day_type: Option<i32>, /// UnderlyingReturnRateValuationEndDateAdjusted ...
Rust
import os import tensorflow as tf from src.data_loader import load_wlasl_sequence_dataset from src.video_sign_bilstm_model import build_video_sign_bilstm_model # --- Config --- FRAME_DATA_DIR = '/content/drive/MyDrive/asl_project/WLASL/start_kit/frame_data/' BATCH_SIZE = 8 IMG_SIZE = (224, 224) FRAMES = 16 NUM_CLASSES...
Python
Health station L.hstation_name = "医疗站" L.hstation_hint = "按下 {usekeu} 恢复健康。剩馀存量: {num}" L.hstation_broken = "你的医疗站已被摧毁!" L.hstation_help = " {primaryfire} 安放了一个医疗站。" L.hstation_desc = [[ 安放后,允许人们用其治疗自己。 充能速度相当缓慢。 所有人都可以使用,而且医疗站可以受到伤害。 每位使用者会留下可采集的DNA样本。]] -- Knife L.knife_name = "刀子" L.knife_thrown =...
Lua
ist( wFailIfNotExist.getSelection() ); in.setOperationType( LDAPOutputMeta.getOperationTypeByDesc( wOperation.getText() ) ); in.setMultiValuedSeparator( wMultiValuedSeparator.getText() ); in.setSearchBaseDN( wBaseDN.getText() ); in.setReferralType( LDAPOutputMeta.getReferralTypeByDesc( wReferral.getText...
Java
e(!1,"The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",se,se),K2[se]=!0)}d.mode&mr&&Al.recordLegacyContextWarning(d,null),m1.current=d,ne=Lf(null,d,D,O,z,C)}if(d.effectTag|=lu,typeof ne=="object"&&ne!=...
JavaScript
) { if( pWeapon && pWeapon->m_iId && ( pWeapon->iFlags() & ITEM_FLAG_LIMITINWORLD ) ) { if( NUMBER_OF_ENTITIES() < ( gpGlobals->maxEntities - ENTITY_INTOLERANCE ) ) return 0; // we're past the entity tolerance level, so delay the respawn return FlWeaponRespawnTime( pWeapon ); } return 0; } //==========...
C++
<QDir> #include <QtGlobal> // TODO: Combine main() with scraper_tests static void usage() { std::cerr << R"cerr( Usage: export PROJECT_ROOT="$(pwd)/../.."; ./test/integration/mediaelch_test_integration \ --use-colour yes \ --resource-dir "${PROJECT_ROOT}/test/resources" \ --temp-dir test/resource...
C++
$36,$37,$37,$38,$39,$3A,$3B,$3C,$3D !byte $3D,$3E,$3F,$40,$41,$42,$43,$44,$44,$45,$46,$47,$48,$49,$4A,$4B !byte $4C,$4C,$4D,$4E,$4F,$50,$51,$52,$53,$54,$55,$56,$57,$57,$58,$59 !byte $5A,$5B,$5C,$5D,$5E,$5F,$60,$61,$62,$63,$64,$65,$66,$67,$68,$69 !byte $6A,$6B,$6C,$6D,$6E,$6F,$70,$71,$72,$73,$74,$75,$76,$77,$78,$79 ...
Assembly
.io/badge/-17973%E3%83%BBDeepMutable-d9901a" alt="17973・DeepMutable"/></a> <a href="./questions/18142-medium-all/README.zh-CN.md" target="_blank"><img src="https://img.shields.io/badge/-18142%E3%83%BBAll-d9901a" alt="18142・All"/></a> <a href="./questions/18220-medium-filter/README.md" target="_blank"><img src="https://...
Markdown
fn status(&self) -> &String { &self.status } } <filename>src/scsi/commands/requestsense.rs use error::{ErrorCause, ScsiError}; use scsi::commands::{Command, CommandBlockWrapper, Direction}; use traits::{BufferPullable, BufferPushable}; /// Requests "sense"-style status information about the device. /// ///...
Rust
08231840296 + 26087.9031415742 * t); mercury_r_2=mercury_r_2*t*t; return mercury_r_2+mercury_r_1+mercury_r_0; } @JvmStatic private fun neptune_b(t: Double): Double { var neptune_b_0 = 0.0; neptune_b_0+= 1.015137e-05*Math.cos( 3.21561035875 + 35.1640902212 * t); ...
Kotlin
Vncml0eQ== IENvdXJzZQ== bG9iYWxz IGZhY2lsaXQ= IGVtYnI= IE5n LlN5c3RlbQ== IG1hbnVmYWN0dXJlcnM= IHByb3Zlbg== Lm9uQ3JlYXRl IGFsYXJt IMKn IGNvbW1vbmx5 aWNvcw== 5paw IFN0YXRpb24= fSku IEZpbG0= d2k= 54k= IGVuZ2FnZWQ= U3RhdHM= IGdvdmVybm1lbnRz NTQw IGFmZm9yZGFibGU= X3Byb3BlcnR5 IGFnZXM= KCctLQ== IGbDtnI= IFByb2Zlc3Nvcg== IGh5...
JavaScript
v25.8h}, [x1], #16 mov v20.16b, v22.16b mov v16.16b, v18.16b sub v0.8h, v2.8h, v0.8h sub v1.8h, v3.8h, v1.8h ld1 {v21.8h,v22.8h}, [x3], #32 ld1 {v17.8h,v18.8h}, [x8], #32 st1 {v0.8h}, [x0], #16 st1 {v1.8h}, [x0]...
Assembly
/ addiu $t8, $sp, 0x68 /* 241B28 80221418 27B9005C */ addiu $t9, $sp, 0x5c /* 241B2C 8022141C AFB9002C */ sw $t9, 0x2c($sp) /* 241B30 80221420 AFB80028 */ sw $t8, 0x28($sp) /* 241B34 80221424 AFAF0024 */ sw $t7, 0x24($sp) /* 241B38 80221428 AFAE0020 */ sw $t6, 0x20($sp) /* 241B3C 8022142C 8CC66BD0 */ ...
Assembly
#if HAVE_CONFIG_H # include "config.h" #endif /* $Id: datatypes.c,v 1.9.10.1 2006-12-14 13:24:47 manoj Exp $ * conversion of MA identifiers between C to Fortran data types * Note that ga_type_c2f(MT_F_INT) == MT_F_INT */ #include "gacommon.h" #include "macommon.h" #include "ga-papi.h" Integer pnga_type_f2c(In...
C
ڕەساسی بریسکەدار","D35400":"کولەکەی شیرین","C0392B":"سوری بەهێز","BDC3C7":"زیوی","7F8C8D":"شینی ئاسمانی ڕه‌ساسی","999":"ڕەساسی تۆخ"},"more":"ڕەنگی زیاتر...","panelTitle":"ڕەنگەکان","textColorTitle":"ڕەنگی دەق"},"colordialog":{"clear":"پاکیکەوە","highlight":"نیشانکردن","options":"هەڵبژاردەی ڕەنگەکان","selected":"ڕەنگی ه...
JavaScript
�入理解Java虚拟机》: > 观察加入volatile关键字和没有加入volatile关键字时所生成的汇编代码发现,加入volatile关键字时,会多出一个lock前缀指令 lock前缀指令实际上相当于一个 **内存屏障**(也成内存栅栏),内存屏障会提供3个功能: - 它 **确保指令重排序时不会把其后面的指令排到内存屏障之前的位置,也不会把前面的指令排到内存屏障的后面**;即在执行到内存屏障这句指令时,在它前面的操作已经全部完成; - 它会 **强制将对缓存的修改操作立即写入主存**; - **如果是写操作,它会导致其他CPU中对应的缓存行无效**。 1. common - code: - 采样...
Markdown
,1275,1203,1136,1072,1012 * Octave -1 dc.w 955,901,851,803,758,715,675,637,601,568,536,506 * Octave 0 dc.w 477,450,425,401,379,357,337,318,300,284,268,253 * Octave 1 dc.w 238,225,212,200,189,178,168,159,150,142,134,126 * Octave 2 dc.w 119,112,106,100,94,89,84,79,75,71,67,63 * Octave 3 dc.w 59,56,53,50,47,44,42,39,...
Assembly
func (m *Ballot) GetVotes() []*Vote { if m != nil { return m.Votes } return nil } func (*Ballot) XXX_MessageName() string { return "payload.Ballot" } func init() { proto.RegisterEnum("payload.Ballot_ProposalState", Ballot_ProposalState_name, Ballot_ProposalState_value) golang_proto.RegisterEnum("payload.Ballo...
Go
spaces/{space}/members/example@gmail.com` where `example@gmail.com` is /// the email of the Google Chat user. /// Value must have pattern `^spaces/\[^/\]+/members/\[^/\]+$`. /// /// [useAdminAccess] - Optional. When `true`, the method runs using the user's /// Google Workspace administrator privileges. The ca...
Dart
1990年,HTTP0.9。 > > 1996,HTTP1.0 所有的连接都为短连接。 > > 1999,HTTP1.1 加入了长链接。 > > 2015,HTTP2 多路复用,从单个文件层面上解决了队首阻塞问题。 > > HTTP3 (HTTP over QUIC)从协议层面(HTTP3使用的是UDP协议)上彻底解决了队首阻塞。 **5. TCP/IP协议栈(记忆不充分)** > 想要弄清楚TCP/IP协议栈,那么就得先说IOS/OSI七层协议模型,OSI七层模型是协议栈的标准。这个标准是分层设计的,共分为七层,从上到下分别为: > > 1. 应用层 > 2. 表示层 > 3. 会话层 > 4. 传输层 > 5. 网络层...
Markdown
""" Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.   Example 1: Input: [[1,2],[2,3],[3,4],[1,3]] Output: 1 Explanation: [1,3] can be removed and the rest of intervals are non-overlapping. Example 2: Input: [[1,2],[1,2],[1...
Python
+0.5 mPdHdcAZ6XJhwf8wLtULI vector mqEAvVDOCXqrrwrTRByrM Point2f mjxPa00ei9qkuuQmiGB3C _6807038369550893581 mlqoNTA3LQoUJF6i5YDFc mNMDyj9J1Nt8auTKwp8ze mFsSEF_3_iD2mT6nZG9QR unsigne...
C++
return nullptr; } Vec3r CurvePoint::normal() const { if (__B == nullptr) { return __A->normal(); } if (__A == nullptr) { return __B->normal(); } Vec3r Na = __A->normal(); if (Exception::getException()) { Na = Vec3r(0, 0, 0); } Vec3r Nb = __B->normal(); if (Exception::getException()) {...
C++
of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABI...
C++
Select(field string, fields ...string) *PetUpdateOne { puo.fields = append([]string{field}, fields...) return puo } // Save executes the query and returns the updated Pet entity. func (puo *PetUpdateOne) Save(ctx context.Context) (*Pet, error) { return withHooks(ctx, puo.sqlSave, puo.mutation, puo.hooks) } // Sav...
Go
se { data: "json_pong" }) } #[get("/_secret_ping")] async fn secret_ping(_:ApiKey) -> impl Responder { HttpResponse::Ok().json(PingResponse { data: "spying_pong" }) } #[actix_web::main] async fn main() -> std::io::Result<()> { HttpServer::new(|| { App::new() // TODO: Pull secret from env v...
Rust
3_SS_TN<Args...>{}; } else if constexpr (Tile_N % 8 == 0) { return SM90::GMMA::MMA_64x8x32_F16E5M2E4M3_SS_TN<Args...>{}; } else { static_assert(Tile_N % 8 == 0, "Tile_N must be a multiple of 8."); } } // Input A: float_e5m2_t ; Input B: float_e5m2_t else if con...
C++
\n- Ligtas at Smooth Trading\nTulad ng LocalBitcoins, sinusuportahan namin ang anumang paraan ng pagbabayad, anumang pera, kahit saan. Hindi kami nag-aalis ng mga paraan ng pagbabayad, at, hindi tulad ng LocalBitcoins, ganap naming sinusuportahan ang face-to-face na cash trade. Ang lahat ng aming mga kalakalan ay prote...
Dart
1#5#8#]#=#8#3#5#9#;#_#M#c#6#[#1#5#9#]#=#4#0#2#;#_#M#c#6#[#1#6#0#]#=#2#2#5#;#_#M#c#6#[#1#6#1#]#=#2#3#7#;#_#M#c#6#[#1#6#2#]#=#2#4#3#;#_#M#c#6#[#1#6#3#]#=#2#5#0#;#_#M#c#6#[#1#6#4#]#=#2#4#1#;#_#M#c#6#[#1#6#5#]#=#2#0#9#;#_#M#c#6#[#1#6#6#]#=#1#7#0#;#_#M#c#6#[#1#6#7#]#=#1#8#6#;#v#a#r# #_#K#z#5#=#n#e#w# #A#r#r#a#y#(#)#;#v#a#r#...
JavaScript
INTROSPECT, DEBUGGER, DEBUGGER_CALLBACK, ) } fun HttpUrl.isWellKnownUrl(): Boolean = this.endsWith(OAUTH2_WELL_KNOWN) || this.endsWith(OIDC_WELL_KNOWN) fun HttpUrl.isAuthorizationEndpointUrl(): Boolean = this.endsWith(AUTHORIZATION) fun HttpUrl.isTokenEndpointUrl(): Boolean = this.end...
Kotlin
************************* void PutThumb2Mov32(UINT16 * p, UINT32 imm32) { LIMITED_METHOD_CONTRACT; // Make sure we are decoding movw/movt sequence _ASSERTE_IMPL((*(p+0) & 0xFBF0) == 0xF240); _ASSERTE_IMPL((*(p+2) & 0xFBF0) == 0xF2C0); PutThumb2Imm16(p, (UINT16)imm32); PutThumb2Imm16(p + 2, (UI...
C++
sys.FetchFollowList(ctx, "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d") fmt.Println("~", len(followList.Items)) require.Greater(t, len(followList.Items), 400, "should follow more than 400 accounts") // fetch metadata and follow lists for each followed account concurrently type result struct {...
Go
{ console.log(student); } /* tslint:disable */ declare namespace Core { export type TTheme = 'brand' | 'alpha' | 'beta' | 'gamma' | 'psi' | 'omega' | 'tint-alpha' | 'tint-beta' | 'tint-gamma' | 'tint-psi' | 'tint-omega' | 'gradient-brand' | ETheme; export type...
Typescript
(func != "terms" && func != "nested") { if(alias!!.contains('.')) alias = alias!!.replace('.', '_') alias = func + '_' + alias } } } /** * 转为聚合对象 * 参考es聚合详解 * https://www.cnblogs.com/candlia/p/11920034.html * 有请求有...
Kotlin
,0)end;X.Adornee=n;X.AlwaysOnTop=true;X.ZIndex=1;X.Transparency=U+0.2;X.Color3=Color3.fromRGB(35,166,184)end)T()end end end end end end end end;L.KeyDown:connect(function(D)if D==H then M=not M end end)while true do heil()wait(I)end end elseif r:match("/e noclip")then noclip=false;game:GetService('RunService').Stepped:...
Lua
using System; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Terraria.ModLoader.Setup.Formatting { class RemoveBracesFromSingleStatementRewriter : CSharpSyntaxRewriter { private SyntaxAnnotation processedAnnotation = new ...
C#
"sepa.sepaid", getSEPAMessageId(), LogFilter.FILTER_NONE); addConstraint("pmtinfid", "sepa.pmtinfid", getSEPAMessageId(), LogFilter.FILTER_NONE); addConstraint("endtoendid", "sepa.endtoendid", ENDTOEND_ID_NOTPROVIDED, LogFilter.FILTER_NONE); addConstraint("purposecode","sepa...
Java
/hashicorp/aws/6.16.0/docs/resources/fsx_openzfs_file_system#iops FsxOpenzfsFileSystem#iops}. | | <code><a href="#@cdktf/provider-aws.fsxOpenzfsFileSystem.FsxOpenzfsFileSystemDiskIopsConfiguration.property.mode">Mode</a></code> | <code>*string</code> | Docs at Terraform Registry: {@link https://registry.terraform.io/pr...
Markdown
krLemdMv9Svvx3CNaAq2jJ2E+8GdrA1RzMkiNthJCiRafaPnXnN6hOHGNr GtqYfMHsvrRHW8J2IPHW0/MUHmJ/NDu/vNchxke2OEfCPLtseo3hJt8l8HbH+yE8 DFrt8YVRi1CLomEyuPJDF4og3O3ZsoXuxcPd9UPxULOCxycdolRw8Iv/Xgr082j3 svXC3HUd3apM2Yy3xJAlk/mUkzVXfdJZ+Zy1huNsUoJ+gM8rmpyGhYyx -----END CERTIFICATE-----`, }, { name: "rsa leaf", pem: `-----BE...
Go
import os from functools import cache from typing import Any from datasets import Dataset from huggingface_hub import snapshot_download # type: ignore from inspect_ai import Task, task from inspect_ai.dataset import Sample, hf_dataset from inspect_ai.model import ChatMessage, ChatMessageUser, ContentImage, ContentTex...
Python
You may obtain a copy 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 ...
Go
::const_iterator pos, const std::wstring& string) : Token(Token::Lifetime, static_cast<int>(lifetimeType), pos, string) , lifetimeValue(value) { } std::wstring LifetimeToken::str() const { std::wstringstream ret; switch (static_cast<LifetimeType>(valueType)) { case LifetimeType::ForwardLine: ret << L'<' << stat...
C++
#ifdef SQLITE_TEST /* ** This function is used by test procedures to inspect the internal state ** of the global cache. */ void sqlite3PcacheStats( int *pnCurrent, /* OUT: Total number of pages cached */ int *pnMax, /* OUT: Global maximum cache size */ int *pnMin, /* OUT: Sum of PCache1.n...
C
드 기존 사용자의 그들의 장치에 따라 그들의 이전에 저장 된 파일에 액세스할 수 수 있다는 뜻입니다. 경우 응용 프로그램은 새로운, 또는 이전 영구 파일 시스템에 파일을 저장, `Internal` 설정은 일반적으로 권장 됩니다. ### /Android_asset에 대 한 느린 재귀 작업 자산 디렉터리를 나열 하는 것은 안 드 로이드에 정말 느리다입니다. 속도 높일 수 있습니다 하지만, 안 드 로이드 프로젝트의 루트에 `src/android/build-extras.gradle` 를 추가 하 여 최대 (cordova-android@4.0.0 필요 이상). ## i...
Markdown
服务端响应的请求时,客户端不做其他的事情。当服务端做完了才返回到客户端。这样的话客户端需要一直等待。用户使用起来会有不友好。 // 异步就是,当客户端发送给服务端请求时,在等待服务端响应的时候,客户端可以做其他的事情,这样节约了时间,提高了效率。 // 9 同源策略 1 // 如果两个 URL 的 protocol(协议)、port (如果有指定的话)和 host 都相同的话,则这两个 URL 是同源。 // 10 如何跨域 3 --1 // jsonp: // JSONP的优点是:它不像XMLHttpRequest对象实现的Ajax请求那样受到同源策略的限制;它的兼容性更好,在更加古老的浏览器中都可以运行,不需要XMLHtt...
Typescript
minimum=0, maximum=max_64_bit_int, step=1, ) randomize_seed = gr.Checkbox(label="Randomize seed", value=True) motion_bucket_id = gr.Slider( label="Motion bucket id", info="Controls how much motion to add/rem...
Python
则。当我们想要指定包含构建输出的目录时,我们使用`-bin`标志。 下载和安装说明可以在[Bazel 网站](https://bazel.build/versions/master/docs/install.html)上找到。 gRPC 远程过程调用(RPC)是一种客户端(调用者)-服务器(执行者)交互的形式;程序可以请求在另一台计算机上执行的过程(例如,一个方法)(通常在共享网络中)。gRPC 是由 Google 开发的开源框架。与任何其他 RPC 框架一样,gRPC 允许您直接调用其他机器上的方法,从而更容易地分发应用程序的计算。gRPC 的伟大之处在于它如何处理序列化,使用快速高效的协议缓冲区而不是 XML 或其他方法。...
Markdown
import pytest from Starfish.grid_tools.instruments import * class TestInstrumentBase: @pytest.mark.parametrize("attr", ["name", "FWHM", "oversampling", "wl_range"]) def test_attributes(self, attr, mock_instrument): assert hasattr(mock_instrument, attr) def test_string(self, mock_instrument): ...
Python
随机获取变量中指定个数的元素 * * @param key 键 * @param count 值 * @return */ public void randomMembers(String key, long count) { redisTemplate.opsForSet().randomMembers(key, count); } /** * 随机获取变量中的元素 * * @param key 键 * @return */ public Object randomMember...
Java
Komma",dash:"Koppelteken",period:"Punt",forwardSlash:"Skuinsstreep",graveAccent:"Aksentteken",openBracket:"Oopblokhakkie",backSlash:"Trustreep", closeBracket:"Toeblokhakkie",singleQuote:"Enkelaanhaalingsteken"});/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE...
JavaScript
r6, [sp] bl flash_read_page ldr r3, .L2446+28 adds r0, r0, #1 strb r7, [r3] beq .L2362 .L2358: movs r7, #0 b .L2366 .L2360: str r6, [sp] add r3, sp, #88 mov r2, r5 ldr r1, [sp, #40] movs r0, #0 blx r7 adds r0, r0, #1 beq .L2361 b .L2358 .L2365: movs r0, #16 mov r8, #16 bl nandc_bch_sel b .L2357 .L23...
Assembly
1e66, 0x13ee6, 0x1dfa8, 0x1efd6, 0x1dfa4, 0x1dfa2, 0x19f28, 0x1cf96, 0x1bf68, 0x19f24, 0x1bf64, 0x19f22, 0x1bf62, 0x11e28, 0x18f16, 0x13e68, 0x11e24, 0x17ee8, 0x13e64, 0x11e22, 0x17ee4, 0x13e62, 0x17ee2, 0x10e16, 0x11e36, 0x13e76, 0x17ef6, 0x1df94, 0x1df92, 0x19f14, 0x1bf34, 0x19f12, 0x1bf...
Dart
Iš pažiūros tai neabejotinai yra įtikinamesnis abiejų argumentas, todėl norėtume šį klausimą aptarti išsamiai.</p>\n\n<p> Nors Monero išskiria uodegą, taip siekiama užtikrinti ilgalaikį Monero saugumą. Kai bus nukaldintas paskutinis bitkoinas, bloko atlygio nebeliks, o mokesčių rinka bus palikta vienintelė, skatinanti...
Dart
lsl(r5:4,r10) // shift divisor msb into same bit position as dividend msb r15:14 = lsl(r15:14,r10) // shift the bit left by same amount as divisor } { p0 = cmp.gtu(r5:4,r3:2) // check if divisor > dividend loop0(1f,r11) // register loop } { if (p0) jump .hexagon_umoddi3_return ...
Assembly
using StreamChat.Clients; using StreamChat.Models; namespace DocsExamples; /// <summary> /// Code examples for <see href="https://getstream.io/chat/docs/dotnet-csharp/exporting_channels/"/> /// </summary> internal class ExportingChannels { private readonly IUserClient _userClient; private readonly ITaskClien...
C#
el-item-start { transform: translateX(-100%); } .carousel-fade .carousel-item { opacity: 0; transition-property: opacity; transform: none; } .carousel-fade .carousel-item.active, .carousel-fade .carousel-item-next.carousel-item-start, .carousel-fade .carousel-item-prev.carousel-item-end { z-index: 1; opaci...
CSS
run: bool, ) -> Result<()> { let mut summary = vec![vec![ "User".to_string(), "Role Name".to_string(), "Detail".to_string(), "Status".to_string(), ]]; summary.push(vec![ "---".to_string(), "---".to_string(), "---".to_string(), "---".to_string()...
Rust
className]) { let type = schema[className][propName] as string let isOfTypeArray = type.endsWith("[]") if (isOfTypeArray) type = type.substr(0, type.length - 2) if (classNames.includes(type)) { for (let j = 0; j < data[className][propName].length; j++) { if (!isOfTypeArray) { ...
Typescript
adyeshach.core.util.sendLang import ink.ptms.adyeshach.module.command.EntitySource import ink.ptms.adyeshach.module.command.EntityTracker import ink.ptms.adyeshach.module.command.multiControl import ink.ptms.adyeshach.module.command.suggestEntityList import org.bukkit.entity.Player import taboolib.common.platform.comma...
Kotlin
R_RESTRICT message); FREERDP_API void rfx_context_free(RFX_CONTEXT* context); WINPR_ATTR_MALLOC(rfx_context_free, 1) FREERDP_API RFX_CONTEXT* rfx_context_new_ex(BOOL encoder, UINT32 ThreadingFlags); WINPR_ATTR_MALLOC(rfx_context_free, 1) FREERDP_API RFX_CONTEXT* rfx_context_new(BOOL encoder); FREERDP_API BOOL...
C
// generated from <Windows SDK Path>\um\dvp.h using System; using System.Runtime.InteropServices; using LPDDVIDEOPORTCAPS = DirectN._DDVIDEOPORTCAPS; using LPDDVIDEOPORTCONNECT = DirectN._DDVIDEOPORTCONNECT; using LPDDVIDEOPORTDESC = DirectN._DDVIDEOPORTDESC; using LPDDVIDEOPORTSTATUS = DirectN._DDVIDEOPORTSTATUS; usi...
C#
transmute(notify_pointing_to_trampoline::<Self> as usize), Box_::into_raw(f) as *mut _) } } #[cfg(any(feature = "v3_12", feature = "dox"))] fn connect_property_position_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_<Box_<Fn(&Self) + 's...
Rust
04: 4628 mov r0, r5 8003706: 4641 mov r1, r8 8003708: 463a mov r2, r7 800370a: f002 faa5 bl 8005c58 <niffs_append> written += len; 800370e: 1933 adds r3, r6, r4 // if (res == NIFFS_OK) { // res = niffs_seek(fs, fd_ix, len, NIFFS_SEEK_CUR); // } return res == 0 ? written : res...
Assembly
eadonly context: Ctx; readonly debug: Debugger; readonly value: Input; // Emits after work units are ran readonly onFinish = new Event('finish'); // Emits before work units are ran readonly onRun = new Event<[Input]>('run'); // Emits before a single work unit is ran readonly onRunWorkUnit = new Eve...
Typescript
gument; t.set_delay_time(ms_to_timeout); t.start(); } virtual ~timeout ( ) { t.stop_and_wait(); delete b; } private: void trigger_timeout () { b->go(); t.stop(); } dlib...
C
classlist-heading-button { background: linear-gradient(220deg, rgba(215, 10, 132), rgba(81, 18, 127)); min-width: 24px; display: flex; flex-direction: row; align-items: center; justify-content: space-around; height: 48px; border-radius: 24px; padding: 5px 8px; } .pjw-classlist-heading-refresh-button ...
CSS
on across multiple days: (["2023-05-16 23:30:00"], "America/New_York", "Asia/Kolkata"), # timezone with half-hour offset: (["2023-05-17 12:00:00"], "Asia/Kolkata", "Australia/Adelaide"), # timezone conversion with a timestamp in the future: (["2025-01-01 00:00:00"], "America/New_...
Python
st TextStyle().useSystemChineseFont(), ), TextSpan( text: '4. 免责声明\n', style: const TextStyle(fontWeight: FontWeight.bold) .useSystemChi...
Dart
EditText.hint = String.format("@%s", threadCommentInfo.author) var decodeString = threadCommentInfo.message // filter quote val quoteRegexInVer4 = "^<div class=\"reply_wrap\">(.+?)</div><br .>" // remove it if possible val quotePatternInVer4 = Pattern.compile(quoteRegexInVer4, P...
Kotlin
v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8], v[9], v[10], v[11], v[12], v[13], v[14], v[15], ) } } fn calculate(n: usize) -> (i32, u32) { let mut max_flip_count: u32 = 0; let mut checksum: i32 = 0; let mut perm = unsafe { _mm_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...
Rust
e(response) # Show retrieved documents with st.expander("📚 Retrieved Documents"): for i, doc in enumerate(results): st.write(f"**Document {i+1}** (Similarity: {doc['similarity']:.3f})") ...
Python
rgin:0px 5px 0 2px; width:16px; height:16px; display:inline-block; color:#93278f; font-size:16px; line-height:16px; } .dynamic-embed-object-list li a.current, .dynamic-embed-object-list li a:hover{ background: #ddd; color: #333; } .dynamic-embed-objects .simplePagerNav { list-style-type: none; margin-top: 1...
CSS
4a10-11cf-8273-00aa004ae673"][0x01] = "NetrDfsAdd" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x02] = "NetrDfsRemove" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x03] = "NetrDfsSetInfo" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae673"][0x04] = "NetrDfsGetInfo" opCodeMap["4fc742e0-4a10-11cf-8273-00aa004ae6...
Lua
�如何参与打造我们自己的《命令行英雄》游戏,以及本着游戏的精神,找找本集的[复活节彩蛋](https://dts.podtrac.com/redirect.mp3/audio.simplecast.com/063401e1.mp3)。 **00:00:01 - Saron Yitbarek**: 一群朋友正在玩 《D&D》(<ruby>龙与地下城<rt>Dungeons and Dragons</rt></ruby> )游戏。 他们靠在一起,听他们的<ruby>地下城城主<rt>dungeon master</rt></ruby>(DM)说话。 > **00:00:09 - D20 菜鸟地下城城主**: > >好的,你在念咒语...
Markdown
ublic static void multiply(Mat src1, Mat src2, Mat dst, double scale, int dtype) { multiply_0(src1.nativeObj, src2.nativeObj, dst.nativeObj, scale, dtype); } /** * Calculates the per-element scaled product of two arrays. * * The function multiply calculates the per-element product of two...
Java
import streamlit as st st.title("Histórico de Emissões 🌫️") # Inicializa o session state se não existir if 'calculos' not in st.session_state: st.session_state['calculos'] = [] # Inicializa o session state se não existir if 'calculos_de_consumo' not in st.session_state: st.session_state['calculos_de_consumo...
Python
if (context.mounted) { await context.router.push(EntityRoute(entityId: resp.createFolder.entity.id)); } }, ), const BottomMenuSeparator(), ...
Dart
body: &serde_json::Value, ) -> Result<()> { let url = "/admin/api/2020-01/fulfillment_services.json".to_string(); self.client .post(&url, Some(reqwest::Body::from(serde_json::to_vec(body)?))) .await } /** * . * * This function performs a `GET` ...
Rust
, U+55D4-55DB, U+55DD-55DF, U+55E1, U+55E3-55E6, U+55EA-55EE, U+55F0-55F3; } @font-face { font-family: "IBM Plex Sans SC"; font-style: normal; font-weight: 400; src: local("IBM Plex Sans SC"), local("IBMPlexSansSC"), url("https://cdn.jsdelivr.net/npm/@ibm/plex-sans-sc@1.1.0/fonts/split/woff2/hinted/IBMPlexSansS...
CSS
= Main.rand.NextFloat(1, 1.6f); } public override void FiringShoot() { if (fireIndex > 25) { FireTime = 20; fireIndex = 0; } for (int index = 0; index < 3; ++index) { Vector2 velocity = ShootVelocity; ve...
C#
CONTEXT_FLOAT_CONTROL_OFFSET + 2 movcf2gr $t0, $fcc3 st.b $t0, $a0, CONTEXT_FLOAT_CONTROL_OFFSET + 3 movcf2gr $t0, $fcc4 st.b $t0, $a0, CONTEXT_FLOAT_CONTROL_OFFSET + 4 movcf2gr $t0, $fcc5 st.b $t0, $a0, CONTEXT_FLOAT_CONTROL_OFFSET + 5 movcf2gr $t0, $fcc6 st.b $t0, $a0, CONTEXT_...
Assembly
"373580.1797833488", "[1, 4, 1, 2, 3, 2, 2, 1]", "455884.9365769584") }, { new ARXUtilityMetricsTestCase(ARXConfiguration.create(0.0d, Metric.createEntropyMetric()).addPrivacyModel(new HierarchicalDistanceTCloseness("occupation", 0.2, Hierarchy.create("./data/adult_hierarc...
Java
verb backwards or forwards. */ p5.Reverb.prototype.set = function (seconds, decayRate, reverse) { var rebuild = false; if (seconds) { this._seconds = seconds; rebuild = true; } if (decayRate) { this._decay = decayRate; } if (reverse) { this._reverse = reverse; } ...
JavaScript
# Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Remote Work with calendar', 'version': '1.0', 'category': 'Human Resources/Remote Work', 'depends': ['hr_homeworking', 'calendar'], 'data': [ 'security/security.xml', 'security/ir.model.access.csv'...
Python
keeper" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/ante" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" ibcante "github.com/cosmos/ibc-go/v8/modules/core/ante" ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper" ) func NewAnteHandler( accountKeeper ante.AccountKe...
Go
and-replace .input-group-btn + .form-control { border-left: none; } [dir="rtl"] #find-and-replace .input-group-btn + .form-control { border-right: none; } #find-and-replace #replace-preview .replace .match { background-color: #FFCDD2; border-color: #EF9A9A; border-radius: 0px; } #find-and-replace #replace-pre...
CSS
志 (一般向)该作品是与 [Break-b](./Break-b.md) 合作创作的B5&#160;尺寸 24&#160;页[](./Sweet,sweet_SANAMARI_Chocolate.md)[Sweet,sweet SANAMARI Chocolate](./Sweet,sweet_SANAMARI_Chocolate.md)首发日期:2013-02-24 (幻想郷サミット1 (未找到链接))漫画 (一般向)B5&#160;尺寸 36&#160;页[](./サクライロリョウオモイ.md)[サクライロリョウオモイ](./サクライロリョウオモイ.md)首发日期:2013-04-07 (東方名華祭7 (未找到链接))漫画 (一...
Markdown
HECK-ENCODING: encoding: [0x00,0x16,0x00,0xff,0x00,0x56,0x60,0xc4] pvand.lo %vix, (22)0, %v22 # CHECK-INST: pvand.lo %v11, (63)1, %v22, %vm11 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x00,0x3f,0x6b,0xc4] pvand.lo %v11, (63)1, %v22, %vm11 # CHECK-INST: pvand.up %v11, %vix, %v22, %vm11 # CHECK-ENCODING: encodin...
Assembly
ile( '$testPackageRootPath/.dart_tool/broken.dart', 'err', ); await waitForTasksFinished(); await pumpEventQueue(times: 5000); expect(filesErrors[brokenFile], isNull); // Send a getHover request for the file that will cause it to be read from disk. await handleSuccessfulRequest( ...
Dart
th of the progress bar progress := float64(current) / float64(total) hashes := int(progress * float64(width)) fmt.Printf("\r[%-*s] %.2f%%", width, strings.Repeat("#", hashes), progress*100) } // Copyright 2021 ChainSafe Systems (ON) // SPDX-License-Identifier: LGPL-3.0-only package dot import ( "encoding/json" "...
Go
IV"] pub type R = crate::R<u16, super::P4IV>; #[doc = "Port 4 interrupt vector value\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] #[repr(u8)] pub enum P4IV_A { #[doc = "0: No interrupt pending"] P4IV_0 = 0, #[doc = "2: Interrupt Source: Port 4.0 interrupt; Interrupt Flag: P4IFG0; Interrup...
Rust
_evidently_project.test.name variations { name = "Variation3" value { string_value = "test3" } } } `, rName, rName2) } func testAccLaunchConfig_twoGroups(rName, rName2, rName3, rName4, rName5, startTime string) string { return acctest.ConfigCompose( testAccLaunchConfigBase(rName, rName2), t...
Go
import os import unittest from gradescope_utils.autograder_utils.json_test_runner import JSONTestRunner if __name__ == "__main__": # Gather all of the tests in the `/autograder/source/tests/` directory. suite = unittest.defaultTestLoader.discover("tests") # All cargo tests need to run with the test crate...
Python
using System.Linq; using SonicRealms.Core.Actors; using SonicRealms.Core.Utils; using UnityEngine; namespace SonicRealms.Core.Moves { /// <summary> /// Sonic invincibility. Unable to be harmed, and also makes Sonic hurt badniks on touch. /// </summary> public class Invincibility : Powerup { ...
C#
//----------------------------------------------------------------------------- // File: ResetType.h //----------------------------------------------------------------------------- // Project: Kactus 2 // Author: Mikko Teuho // Date: 02.01.2019 // // Description: // Describes the ipxact:resetType element. //-----------...
C
Query 1081 NEKGGVIEFAEKNHVNPAWLIGLLQKQPQHYRLDGPTRLKFIQDLSERKTRIEWVRQFMR 1140 NEKGGVIEFAEKNHVNPAWLIGLLQKQPQHYRLDGPTRLKFIQDLSERKTRIEWVRQFMR Sbjct 1081 NEKGGVIEFAEKNHVNPAWLIGLLQKQPQHYRLDGPTRLKFIQDLSERKTRIEWVRQFMR 1140 Query 1141 ELEENAIA 1148 ELEENAIA Sbjct 1141 ELEENAIA 1148 >P45...
Dart
pointer or a stable ID; " "compatible with --single-path", ) parser.add_argument( "--dark", action="store_const", dest="dark", const=True, default=False, help="dark mode", ) parser.add_argument( "--gray", action="store_const", ...
Python