content
stringlengths
2
6.21k
label
stringclasses
16 values
malVisitor) } } use std::{error, io}; use serde::Serialize; use crate::bank::Account; #[cfg(test)] mod tests; pub fn write_accounts_to_csv<'a>( writer: &mut impl io::Write, accounts: impl Iterator<Item = &'a Account>, ) -> Result<(), Box<dyn error::Error>> { let mut writer = csv::WriterBuilder::new(...
Rust
"px". // // Here are examples of valid font description strings: - "Arial, Helvetica, // Bold Italic 14px" - "Arial, 14px" /// void (CEF_CALLBACK *set_font_list)(struct _cef_label_button_t* self, const cef_string_t* font_list); /// // Sets the horizontal alignment; reversed in RTL. Default is //...
C
t GLCompute %100 "main" OpExecutionMode %100 LocalSize 8 8 1 OpSource HLSL 600 OpName %type_2d_image "type.2d.image" OpName %RWTexture2D "RWTexture2D" OpName %100 "main" OpDecorate %RWTexture2D DescriptorSet 0 OpDec...
C++
/** * @see org.eclipse.swt.widgets.Control#setBackground(org.eclipse.swt.graphics.Color) */ @Override public void setBackground(Color color) { super.setBackground(color); imageControl.setBackground(color); textControl.setBackground(color); } } /** * NetXMS - open source network...
Java
var posY = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * mc.timer.renderPartialTicks posY += if (drawMode) -0.5 else 0.5 val posZ = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * mc.timer.renderPartialTicks val points = mutableListOf<Vec3>() for (i in...
Kotlin
ome Temple Treasure 3"}, [850230] = {"@World Map/Monstro Town/Event - Jinx Dojo Reward"}, [850231] = {"@World Map/Monstro Town/Event - Culex Reward"}, [850232] = {"@World Map/Monstro Town/Event - Super Jumps 30"}, [850233] = {"@World Map/Monstro Town/Event - Super Jumps 100"}, [850234] = {"@World Ma...
Lua
tr<Request> req, dmc::PhaseType phase) { { Guard g(times_mtx); times.emplace_back(dmc::get_time()); } std::thread complete([&](){ pq->request_completed(); }); complete.detach(); }; // NB? PUSH OR PULL pq = Queue(new dmc::PriorityQueue<ClientId,Request>(client_info_f, serv...
C++
== L3_2 then L5_2 = CE97B195BFD4AAD95 L4_2 = L5_2.S4F8775BD915842B1 elseif 19 == L3_2 then L5_2 = CE97B195BFD4AAD95 L4_2 = L5_2.S08BACFE1CC741AC4 elseif 20 == L3_2 then L5_2 = CE97B195BFD4AAD95 L4_2 = L5_2.S67E92C5AE340A235 elseif 21 == L3_2 then L5_2 = CE97B195BFD4...
Lua
70 04 <unknown> uqdech x0, #17 // CHECK-INST: uqdech x0, #17 // CHECK-ENCODING: [0x20,0xfe,0x70,0x04] // CHECK-ERROR: instruction requires: sve // CHECK-UNKNOWN: 20 fe 70 04 <unknown> uqdech x0, #18 // CHECK-INST: uqdech x0, #18 // CHECK-ENCODING: [0x40,0xfe,0x70,0x04] // CHECK-ERROR: instruction requires: sve //...
Assembly
astReserve) { data.lastReserve = storage.store.energy; return; } data.averageResourceUsage = exponentialMovingAverage(storage.store.energy - data.lastReserve, data.averageResourceUsage, 1500); data.lastReserve = storage.store.energy; } static recordCreditChange()...
Typescript
答用户的问题 </角色> <文件内容> {{@pdf2md1_pdf2mdResult}} </文件内容> <用户问题> {{@question1_userChatInput}} </用户问题> """ ) ) workflow.add_node( id="addMemoryVariable1", state=AddMemoryVariableState( variables={ "question1_userChatInput": "string", ...
Markdown
CONFIG_MCF5441x /* TC: enable all peripherals, in the future only enable certain peripherals */ move.l #0xFC04002D, %a1 #if defined(CONFIG_CF_SBF) move.b #23, (%a1) /* dspi */ #endif move.b #46, (%a1) /* DDR */ /* slew settings */ move.l #0xEC094060, %a1 move.b #0, (%a1) /* use vco instead of cpu*2 clock f...
Assembly
fs::File; use std::io::prelude::*; use std::os::unix::fs::PermissionsExt; use std::path::PathBuf; use types::{ test_utils::generate_deterministic_keypair, ChainSpec, DepositData, Hash256, Keypair, PublicKey, SecretKey, Signature, }; const VOTING_KEY_PREFIX: &str = "voting"; const WITHDRAWAL_KEY_PREFIX: &str = ...
Rust
= QuestDialog.START_DIALOG) { return sendQuestDialog(env, 4762); } else { return sendQuestStartDialog(env); } } } else if (qs == null || qs.getStatus() == QuestStatus.REWARD) { if (targetId == 806114) { ...
Java
..])) .collect::<DecodeResult<_>>()?; let mark_filtering_set = if lookup_flags.contains(LookupFlags::USE_MARK_FILTERING_SET) { Some(decode_u16_be(bytes, LookupTableHeader::PACKED_LEN + (header.subtable_count as usize * 2))) ...
Rust
// Copyright (C) 2021-2025 Steffen Itterheim // Refer to included LICENSE file for terms and conditions. using Luny.UnityEngine; using NUnit.Framework; using System; using UnityEditor; using UnityEngine; using Task = System.Threading.Tasks.Task; namespace LunyTests.UnityEngineCoreModule { public sealed class LuaObj...
C#
isMeshInvalid) { std::cout << "please clean up the mesh and retry." << std::endl; exit(-1); } avgEdgeLen = igl::avg_edge_length(V_rest, F); virtualRadius = std::sqrt(surfaceArea / M_PI); for(auto& vNI : vertNormals) { vNI.normalize(); } ...
C++
963 1.849-.495a.5.5 0 01.259.966l-.883.237 1.12.646a.5.5 0 01-.5.866l-1.12-.646.236.883a.5.5 0 11-.966.258l-.495-1.849-3.4-1.963v3.927l1.353 1.353a.5.5 0 01-.707.708l-.647-.647V15.5a.5.5 0 01-.5.5z"/></svg>'; static const String snow2 = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/199...
Dart
L_GROUPS jr nc,@largeRoom @smallRoom: xor a ldh (<hCameraY),a ldh (<hCameraX),a ret @largeRoom: ld a,(wCameraFocusedObject) ld d,a ld a,(wCameraFocusedObjectType) add Object.yh ld e,a ; Update Y ld hl,hCameraY ld a,(de) sub SCREEN_HEIGHT*16/2 jr nc,+ xor a + cp (LARGE_ROOM_HEIGHT-SCREEN_HEIGHT)*16 ...
Assembly
c762e696f2f7632332f76646c2f76646c746573742e565374727563744465707468325f564c6973745f416e79010100024633012ae1e1", HexValue: "52000001e1", }, { Label: "Full", ValueLabel: "vdltest.VStructDepth2_VList_Any{F3: {int64(-123)}}", Value: vdltest.VStructDepth2_VList_Any{ F3: vdltest.VList_Any{ int64(-123)...
Go
} /* * Main routine of our controller. Performs initialization, then runs the message pump. */ func (this *controllerStruct) Operate(numChannels uint32) { batch := numChannels > 0 err := fmt.Errorf("") /* * If we are not in batch processing mode, acquire hardware channels. */ if !batch { err = this.initia...
Go
v r2, #0x40 mov r3, r1 bl Function_2003120 b branch_22209be @ 0x22209aa .thumb branch_22209aa: @ 22209aa :thumb mov r0, #0x30 str r0, [sp, #0x0] mov r0, #0x20 str r0, [sp, #0x4] mov r1, #0x0 ldr r0, [r4, #0x8] mov r2, #0x40 mov r3, r1 bl Function_2003...
Assembly
oxes const sized5 = const SizedBox(height: 5.0); const sized10 = const SizedBox(height: 10.0); const sized20 = const SizedBox(height: 20.0); const sized30 = const SizedBox(height: 30.0); const sized40 = const SizedBox(height: 40.0); const sized50 = const SizedBox(height: 50.0); //search text names const String searchM...
Dart
# ------------------------------------------------------------------------------ # # Description: Utilities for layer definitions # ------------------------------------------------------------------------------ # from torch import nn import math class FC(nn.Module): def __init__(self, in_size, out_size, dropout_...
Python
-tools/create-templates/templates.json"), r#"[ "component-v2/main.cc.tmpl-cpp" ]"#, ); files.insert( Path::new("/out/default/host-tools/create-templates/component-v2/main.cc.tmpl-cpp"), r#"{{PROJECT_NAME}}"#, ); let tree = TemplateTree::from_json_file(...
Rust
.37, 12.58, 14.87, 11.85, 3.49, 3.20, 2.58, 3.45, 3.65, 3.74, 13.79, 18.16, 17.04, 17.02, 13.41, 15.82, 3.52, 2.21, 2.40, 2.88, 3.30, 2.71, 16.50, 13.68, 17.29, 17.16, 14.35, 14.41, 2.16, 4.51, 2.27, 2.73, 3.13, 3.86) categoryofuser = "women between 41 and 60 years of age" ...
Kotlin
let buffer = buffer_pool_manager.fetch_page(page_id).await.unwrap(); assert!(buffer.page.read().await.iter().all(|&v| v == N_ITER)); } } #[tokio::test] async fn test_buffer_pool_manager_concurrent() { const N_PAGES: usize = 64; const POOL_SIZE: usize = 4; const...
Rust
y).length > 0) continue; candidates.push([x, y]); } } candidates.sort((a, b) => { const distA = Math.pow(spawn.pos.x - a[0], 2) + Math.pow(spawn.pos.y - a[1], 2); const distB = Math.pow(spawn.pos.x - b[0], 2) + Math.pow(spawn.pos.y - b[1], 2); return (distA - distB); }); for (let i in ...
Typescript
w rozumieniu ustawy z dnia 5 czerwca 1998 r. o samorządzie powiatowym (Dz. U. 2013 r. poz. 595 i 645); * referendum wojewódzkim w rozumieniu ustawy z dnia 5 czerwca 1998 r. o samorządzie województwa (Dz. U. 2013 r. poz. 596 i 645). W referendum lokalnym, zwanym dalej „referendum”, mieszkańcy jednostki samorządu t...
Markdown
好? 老人说,我家的房子确实不是我的,是我父亲的。因为房子的归属权问题,我帮我父亲和供销社打了近一年的官司。打这个官司我还出了一次车祸,万幸的是只伤了点皮,确实是虚惊一场。我家的确也不安宁,不是我们夫妻间争吵,就是为我那儿子操心,他已经因偷盗被抓了几次了(卯木太冲暗藏贼人的原故)女儿从小就跟我不亲,现在基本不怎么来。儿子前些天又被抓进去了,我找了人,说是后天放出来,也不知后天能否出来(我说能)。我们家一直都不太富裕,二女儿流产了,要不我就有三个孩子了…… 小结:大家通过上例可以看到金口诀解断的神奇,为什么在古代被尊为帝王之学,就是因为其预测玄妙精微,卓尔不群!绿色解断入手式使大家在学习时可以从容入室,直摄真髓,快速进入我在《真易...
Markdown
// - lowerBuf stores the last candidate in lower-case // - rolesBuf stores the calculated roles for each rune in the last // candidate. inputBuf [MaxInputSize]byte lowerBuf [MaxInputSize]byte rolesBuf [MaxInputSize]RuneRole } func (m *Matcher) bestK(i, j int) int { if m.scores[i][j][0].val() < m.scores[i]...
Go
ray<Move>(); this.selectionNeeded = null; // initialize grid as empty first, then add pieces this.grid = new Array(Board.dim); for (let i = 0; i < Board.dim; ++i) this.grid[i] = new Array(Board.dim).fill("void"); // Add pieces to grid for both sides/colors let colors: Color[] = new Array<...
Typescript
], "children": [] } ] }, { "ply": 46, "fen": "r5k1/ppp3pp/8/4Nb2/3P3q/2N1PP2/PP2BRPr/R5K1 w - - 0 24", "id": "ba", "uci": "h8g8", "san": "Kxg8", "comments": [ { "id": "sAXm", "text": "Good job...
Dart
/* plugins_dlg.c * Dialog boxes for plugins * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * This program 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 ...
C
这个环境变中引入的Makefile的“目标”不会起作用,如果环境变量中定义的文件发现错误,make也会不理。 但是在这里我还是`建议不要使用这个环境变量`,因为只要这个变量一被定义,那么当你使用make时,所有的Makefile都会受到它的影响,这绝不是你想看到的。在这里提这个事,只是为了告诉大家,也许有时候你的`Makefile出现了怪事,那么你可以看看当前环境中有没有定义这个变量`。 五、make的工作方式 GNU的make工作时的执行步骤入下:(想来其它的make也是类似)     1、读入所有的Makefile。     2、读入被include的其它Makefile。     3、初始化文件中的变量。     ...
Markdown
------- minimum : int Minimum tile coordinate (note: always 0). maximum : int Maximum tile coordinate (2 ** zoom - 1). Raises ------ InvalidZoomError If zoom level is not a positive integer. Examples -------- >>> minmax(1) (0, 1) >>> minmax(-1) Trac...
Python
.then((res) => { const idDate = getDate(res[0]._id); expect(idDate).toBeInstanceOf(Date); expect(idDate).toEqual(new Date("2017-05-26T17:14:48.252Z")); }); }); test("inserting a new user", () => { expect.assertions(2); ...
Typescript
/* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator https://www.lammps.org/, Sandia National Laboratories LAMMPS development team: developers@lammps.org Copyright (2003) Sandia Corporation. Under the terms of Contract...
C
TryGet) { ParameterExpression outVar = Parameter(memberPair.SourceMember.ClrType, "outVar"); Expression sourceValueExpr = outVar; if (_mapper.Options.ShouldMap(sourceMemberType, targetMemberType)) { Expression targetValueEx...
C#
DataAccess) { ((MTEHatch) aMetaTileEntity).updateTexture((byte) aBaseCasingIndex); return mDataAccessHatches.add((MTEHatchDataAccess) aMetaTileEntity); } return false; } @Override public ChunkCoordIntPair getActiveChunk() { return mCurrentChunk; } @O...
Java
or: Dictionary object ended prematurely."); unsafe { pdf_release_obj(result); } return None; } *self = &p[2..]; Some(result) } fn parse_pdf_literal_string(&mut self) -> Option<*mut pdf_obj> { /* * PDF Literal String */ fn ps_getes...
Rust
LETABFT_INIT_LOG_TERM)) .unwrap(); violetabft_state.mut_hard_state().set_commit(12); engines.violetabft.put_msg(&violetabft_state_key, &violetabft_state).unwrap(); assert!(build_causet_storage().is_err()); let log_key = tuplespaceInstanton::violetabft_log_key(1, 20); ...
Rust
t = new Point(0, 0); x?:number = 0; y?:number = 0; constructor(x:number, y:number) { this.x = x; this.y = y; } get length():number { return this.distance(); } distance(target:Point = null):number { let t = target ? target : Point.ZERO; ...
Typescript
shift(d,cutoff)), Box::new(t2._shift(d,cutoff))) } } pub fn to_term(self) -> Term { let mut vec = Vec::new(); self._to_term(&mut vec,0) } fn _to_term(self, vec: &mut Vec<char> , c: u32) -> Term { match self { D...
Rust
rame `<iframe>`元素 1. 描述:用于在一个页面内嵌入其他页面,这对于合并第三方内容很方便 2. 常用属性: * src属性:指定iframe的路劲。为了提高速度,建议在主内容完成加载后,使用JavaScript设置iframe的src属性。这使页面可以更快地被使用,并减少页面加载时间 * width属性 & height属性:设置宽度和高度 * allowfullscreen属性: 允许通过javascript Fullscreen API 实现全屏显示iframe * name属性:一个targetable名称,可以用于`a | form | base`元素的target属性中,可以...
Markdown
eate(&character).Error; err != nil { c.JSON(http.StatusInternalServerError, models.GroupCharacterResponse{ Success: false, Message: "创建角色失败: " + err.Error(), }) return } c.JSON(http.StatusOK, models.GroupCharacterResponse{ Success: true, Message: "创建角色成功", Data: &character, }) } // GetCharacte...
Go
800.912753a31.254327 31.254327 0 0 0-43.102588-11.65024l-52.937635 30.825282v-61.650563a31.683373 31.683373 0 0 0-31.584362-31.84839 31.650369 31.650369 0 0 0-31.551358 31.84839v61.650563l-52.970639-30.825282a31.386341 31.386341 0 0 0-43.102588 11.65024 32.013408 32.013408 0 0 0 11.55123 43.465627l52.937635 30.825281-...
JavaScript
import math import optax import jax.numpy as jnp from functools import partial from jax import lax from jax.sharding import PartitionSpec as PS # Contrastive loss over 2d-mesh with manually designed parallel collective procedures def contrastive_loss_2dm(ss, tt, scale_by_dim=False): import jax._src.mesh as mesh_l...
Python
/* * MIT License * * Copyright (C) 2024, DragonDreams GmbH (info@dragondreams.ch) * * 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 th...
C
ield] = dynamic_cast<TensorField2D<T,nDim>*>(atomicBlocks[iField]); } processCorner(normalX, normalY, domain, fields); } /* *************** BoundedNTensorFieldBoxProcessing2D ************************ */ template<typename T> void BoundedNTensorFieldBoxProcessingFunctional2D<T>::processBulkGeneric ( Box...
C++
my_safe_itoa(10, (row_data.length()), &buf[row_data.length()-1]); unhashed_string.append(pk_value); unhashed_string.append(HASH_STRING_SEPARATOR); unhashed_string.append(lenStr); my_free(buf); my_free(pk_value); } /* ...
C++
://github.com/cloud-shuttle/leptos-state/discussions) - **Documentation**: This comprehensive guide --- *Ready to build amazing applications with leptos-state? Let's get started! 🚀✨* # 💾 Persistence Layer Design ## Overview Design document for the persistence system - enabling automatic state persistence across br...
Markdown
86YnmjSjaDFxODNi5PNxZnmxqWWjpYvVj2AtP0LMqmsywCPLLEHd5N/8 YZzic7IilRFDGF/Eth9XbAoFWCLINkw6fKXRz4aviKdEAhN0cXMKQlkC+BsUa0Lf b1+6a4KinVvnSr0eAXLbS3ToO39/fR8EtCab4LRarEc9VbjXsCZSKAExQGbY2SS9 9irY7CFJXJv2eul/VTV+lmuNk5Mny5K76qxAwJ/C+IDPXfRa3M50hqY+bAtTyr2S zhkGcuYMXDhpxwTWvGzOW/b3aJzcJRVIiKHpqfiYnODz1TEoYRFsZ5aNOZnLwkUk OQI...
Lua
人妻内射 裸照图片 美女性交真图 色界论坛 新花和尚 买春堂 成人激情图片 激情图片 夜色王朝 品色堂 虐恋花园 色BB吧 人人有色论坛 52异性社区 我要官人 百凤宫 80色区 点色论坛 性福源 色情倚天屠龙记 老师的小穴 纵情兵团 妈妈色 鸿图记 蜜桃成熟时 我做骚妻 性感沙滩2 欲海天龙传 中文搜性网 金鳞岂是池中物 掰穴皮卡丘 色界 丁香社区 爱图公园 色色五月天 鹿城娱乐 色色 幼香阁 隐窝窝 乱伦熟女网 97sese 美女走光 33bbb走光 激情贴图 成人论坛 就去诱惑 浴室自拍 BlowJobs 激情裸体 丽春苑 窝窝客 银民吧 亚洲色 碧香亭 爱色cc 妹妹骚图 宾馆女郎 美腿丝足 好色cc 欢欢娱乐时空 成人午...
Lua
ry/mip-history.js ## 示例 ### 基本用法 ```html <mip-history history="go, -1" class="mip-history-default"> go, -1 </mip-history> <mip-history history="go, -2" class="mip-history-default"> go, -2 </mip-history> <mip-history history="go, 1" class="mip-history-default"> go, 1 </mip-history> <mip-history history="go" class=...
Markdown
# Ultralytics YOLO 🚀, AGPL-3.0 license """ Interface for Baidu's RT-DETR, a Vision Transformer-based real-time object detector. RT-DETR offers real-time performance and high accuracy, excelling in accelerated backends like CUDA with TensorRT. It features an efficient hybrid encoder and IoU-aware query selection for en...
Python
int argc, const char** argv){ ndb_init(); NDBT_TESTSUITE_INSTANCE(NdbRepStress); NdbRepStress.setCreateAllTables(true); return NdbRepStress.execute(argc, argv); } #pragma once #include <bit> #include <cstddef> #include <cstdint> namespace co_context::config { // ========================== CPU configuration ...
C++
obsNamespaceSelector = cmp.Or(cfg.ManagedJobsNamespaceSelector, &metav1.LabelSelector{ MatchExpressions: []metav1.LabelSelectorRequirement{ { Key: corev1.LabelMetadataName, Operator: metav1.LabelSelectorOpNotIn, Values: []string{"kube-system", *cfg.Namespace}, }, }, }) cfg.MultiKueue = c...
Go
ic void DequeueWhile_WithNoItems_DoesNotInvokedPredicate() { // Arrange var queue = new Queue<int>(); var untilPredicate = new Predicate<int>(_ => { Assert.Fail("The 'untilPredicate' should not be invoked with 0 queue items."); return false; }); ...
C#
(p) see1 = see1 xor input.decodeLEUInt(p + i - 4) } else if (i != 0) { seed = seed xor wyr24(input, p, i) } // _wymix32(&seed, &see1) c = seed.toULong() xor 0x53c5ca59u c *= see1.toULong() xor 0x74743c1bu seed = c.toUInt() see1 = (c shr 32...
Kotlin
password: password); close(); } return CustomAlertDialog( title: Text(translate('Socks5 Proxy')), content: ConstrainedBox( constraints: const BoxConstraints(minWidth: 500), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ ...
Dart
local http = { -- 2xx: Success StatusOK = 200, -- 请求成功 StatusCreated = 201, -- 资源创建成功(如创建房间) StatusAccepted = 202, -- 请求已接受,但处理未完成 StatusNoContent = 204, -- 请求成功,但无返回内容 -- 3xx: Redirection StatusMovedPermanently = 301, -- 资源永久重定向 Stat...
Lua
..aOM<$3.StructuredValue>( 1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'fullargspec', subBuilder: $3.StructuredValue.create) ..aOB( 2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' ...
Dart
true; foreach (var element in elements.Take(stopped ? elements.Count - oneForTerminationNotification : elements.Count)) { Contract.Assume(element != null); if (!first) { builder.Append(','); } Contract.Assume(element.HasValue); builder.AppendForm...
C#
= String::from_utf8(b).unwrap(); assert_eq!("Hello World", body_string); } _ => panic!("Got no result"), } } } #[test] fn post_simple() { let _ = env_logger::init(); let mut r = Router::new(); r.get("/", handle...
Rust
Log.d(TAG, "onGranted: permissions=$permissions, all=$all") if (!all) { XToastUtils.warning(getString(R.string.forward_calls) + ": " + getString(R.string.toast_granted_part)) } } ...
Kotlin
.y, (x, y) => { sourceKeeperCallback(x, y); }, 3); }); // Add area around sources as obstacles. _.each(roomIntel.getSourcePositions(), sourceInfo => { handleMapArea(sourceInfo.x, sourceInfo.y, (x, y) => { sourceKeeperCallback(x, y); }, 4); }); // Add area around mineral as obstacl...
Typescript
family () const; #else sa_family_t family () const; #endif const sockaddr *addr () const; socklen_t addrlen () const; const sockaddr *src_addr () const; socklen_t src_addrlen () const; bool has_src_addr () const; protected: int resolve_nic_name (const char *nic_, bool ipv6_, bool is_src_...
C++
fun encrypt_and_decrypt_message() { val message = "Text to encrypt and decrypt." val userCrypto = Crypto.forUser(oneAddressKeyUserManagerMock, oneAddressKeyUserId) val encrypted = userCrypto.encrypt(message, false) val decrypted = userCrypto.decrypt(encrypted) // TODO this ...
Kotlin
{ return ((delegate* unmanaged[MemberFunction]<IGattCharacteristicUuidsStatics2*, Guid*, int>)(lpVtbl[61]))((IGattCharacteristicUuidsStatics2*)Unsafe.AsPointer(ref this), value); } /// <include file='IGattCharacteristicUuidsStatics2.xml' path='doc/member[@name="IGattCharacteristicUuidsStatics2.get_Time...
C#
string, 0) for _, dentry := range dentries { if strings.HasPrefix(dentry, Audit_Module) && strings.HasSuffix(dentry, ShiftedExtension) { oldLogs = append(oldLogs, dentry) } } if len(oldLogs) == 0 { return } fs, err := fileutil.Statfs(a.logDir) if err != nil { log.LogErrorf("[removeLogFile] Get fs sta...
Go
置指定类型的值 /// #[pi_js_export(X = type(bool, usize, String))] pub fn set<'a, X: Clone>(x: X) -> Option<X> { Some(x) } /// /// 刷新指定类型的值 /// #[pi_js_export(X = type(bool, usize, String), Y = type(bool, usize, String))] pub fn flush<'a, X, Y>(mut self, x: X, y: &'a X, z...
Rust
> /// <returns>String presentation of the object</returns> public override string ToString() { var sb = new StringBuilder(); sb.Append("class GetInsurancePrices200Ok {\n"); sb.Append(" Levels: ").Append(Levels).Append("\n"); sb.Append(" TypeId: "...
C#
display:none; } .pdfViewer{ --scale-factor:1; padding-bottom:var(--pdfViewer-padding-bottom); --hcm-highlight-filter:none; --hcm-highlight-selected-filter:none; } @media screen and (forced-colors: active){ .pdfViewer{ --hcm-highlight-filter:invert(100%); } } .pdfViewer .canvasWrapper{ overflow:...
CSS
let x_19 = textureSample(x_20, x_10, x_900.x); } } return; )"; ASSERT_EQ(expect, got); } TEST_F(SpvParserHandleTest, TexelTypeWhenLoop) { // Demonstrates fix for crbug.com/tint/1642 // The problem is the texel value for an image write // can be given in 'var' declaration. // // The texel val...
C++
lastK := sort.SearchStrings(keys, splits[s-1]) for _, j := range reverseProcessOrder { res := expResultsReverse[j] for expIdx := len(res) - 1; expIdx >= 0; expIdx-- { expK := res[expIdx] for k := firstK; k >= lastK; k-- { if keys[k] == expK { r++ remaining[j]-- if remaining[j] == ...
Go
es/edgar/data/934612/000119312523164217/d513767d8k.htm", "devLink": "http://172.18.85.157:8080/ixviewer2plus/?doc=?doc=./../ixviewer-2-getter/filings/0001193125-23-164217/d513767d8k.htm", "cik": "934612", "accessionNum": "000119312523164217", "docString": "d513767d8k" }, { "version": "2.2", "instance_file...
JavaScript
stickLabel.setText(leftText); if (joystickActionData.x() < 0 && Math.abs(joystickActionData.x()) > Math.abs(joystickActionData.y())) { radialMenuSelection = RDXVRRadialMenuSelection.LEFT_RING; } if (joystickActionData.x() > 0 && Math.abs(joystickActionData.x()) > Math.ab...
Java
"""Tests for the sensor provided by the CPU Speed integration.""" from unittest.mock import MagicMock from homeassistant.components.cpuspeed.const import DOMAIN from homeassistant.components.cpuspeed.sensor import ATTR_ARCH, ATTR_BRAND, ATTR_HZ from homeassistant.components.homeassistant import ( DOMAIN as HOME_A...
Python
n we're using stack protection. #if __USE_FORTIFY_LEVEL > 0 #define ignore_result(x) \ do { \ __typeof__(x) _res = x; \ (void)_res; \ } while (0) #elif _MSC_VER >= 1400 #define ignore_result(x) \ do { \ int _res = (int)x; \ (void)_res; ...
C
{@"】", @")"}, {@"`", @"`"}, {@"1", @"1"}, {@"2", @"2"}, {@"3", @"3"}, {@"4", @"4"}, {@"5", @"5"}, {@"6", @"6"}, {@"7", @"7"}, {@"8", @"8"}, {@"9", @"9"}, {@"0", @"0"}, {@...
C#
})) .send() .expect("Failed to perform request"); assert_eq!(resp.status(), StatusCode::OK); let resp = Client::new() .get(url) .header( "SplinterProtocolVersion", protocol::AUTHORIZATION_PROTOCOL_VERSION, ) ...
Rust
/* * Copyright (C) 2017 Twitter, Inc. * * 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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
C
パーティクルを1つ追加 /// </summary> /// <param name="flag"></param> /// <param name="team"></param> /// <param name="wpos"></param> /// <param name="wrot"></param> /// <param name="lpos"></param> /// <param name="lrot"></param> /// <param name="radius"></param> ...
C#
" ,"ttk::button $w.sms.but -text \"change\" -command {\n" ,"set w .surfacemeshsize_dlg;\n" ,"Ng_SurfaceMeshSize setsurfms [$w.face.ent cget -text] [$w.sms.ent get];\n" ,"}\n" ,"ttk::button $w.sms.but2 -text \"all\" -command {\n" ,"set w .surfacemeshsize_dlg;\n" ,"Ng_SurfaceMeshSize setall [$w.sms.ent get];\n" ,"}\n" ,"...
C++
h() > maxSize - bufSize) rotateFiles() } } @file:Suppress("UnstableApiUsage") // Baseline profile generation (emulator): // ./gradlew :app:generateReleaseBaselineProfile // // Benchmark test (connected device): // ./gradlew :baseline:connectedBenchmarkRelease import com.android.build.api.dsl.ManagedVirtualDevice ...
Kotlin
-analyzer instance found attached to current buffer") return false end return true end ---Raises an error with a message based on the given LspResponseError ---@param context string # The context of the error ---@param err LspResponseError # The LSP error the message is based on function M.raise_lsp_e...
Lua
string(s: String) -> String { let mut t = Vec::new(); for c in s.chars() { if c == 'i' { t.reverse(); } else { t.push(c); } } t.into_iter().collect() } } ``` <!-- tabs:end --> <!-- end --> # [2889. 数据重塑:透视](https:/...
Markdown
most four TLS versions. /// </summary> public InputList<string> TlsVersions { get => _tlsVersions ?? (_tlsVersions = new InputList<string>()); set => _tlsVersions = value; } public SecurityPolicyState() { } public static new Securi...
C#
import tkinter import customtkinter from view.fonts.fonts import * class OutputLogFrame(customtkinter.CTkFrame): def __init__(self, parent): """ Creates a 2x1 frame with a text box for outputting log messages. """ super().__init__(parent) # configure grid layout (1x1) ...
Python
/policy-engine/pkg/internal/terraform/states" ) // OrphanResourceInstanceTransformer is a GraphTransformer that adds orphaned // resource instances to the graph. An "orphan" is an instance that is present // in the state but belongs to a resource that is no longer present in the // configuration. // // This is not the...
Go
umlal \vC6\().2d, \vA6\().2s, \vB0\().2s umlal \vC6\().2d, \vA8\().2s, \vB8\().2s mul \vB6\().2s, \vB6\().2s, vconst19.2s umull \vC4\().2d, \vA1\().2s, \vB3\().2s umlal \vC4\().2d, \vA3\().2s, \vB1\().2s umlal \vC4\().2d, \vA5\().2s, \vB9\().2s umlal \vC4\().2d, \vA7\().2s, \vB7\().2s umlal \vC4\().2d, \v...
Assembly
isKts = name.endsWith(".kts") val originLines = readLines() var previousLine = "" bufferedWriter().use { writer -> originLines.forEach { line -> writer.appendLine(line) // in build.gradle exclude publishing { repositories {...} } block val isInPublishingBlock = ...
Kotlin
(180deg, transparent, hsl(0deg, 0%, 40%), transparent);--mdb-divider-blurry-vr-width: 1px;--mdb-divider-blurry-opacity: 0.25;background-image:var(--mdb-divider-blurry-vr-bg-image);width:var(--mdb-divider-blurry-vr-width);opacity:var(--mdb-divider-blurry-opacity)}a{--mdb-link-decoration: none;text-decoration:var(--mdb-l...
CSS
/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) * * lttng/cpuhotplug.h * * Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> */ #ifndef LTTNG_CPUHOTPLUG_H #define LTTNG_CPUHOTPLUG_H struct lttng_cpuhp_node; #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,10,0)) #include ...
C
vmhv_accumulate_time 2: #endif /* Unset guest mode */ li r0, KVM_GUEST_MODE_NONE stb r0, HSTATE_IN_GUEST(r13) lwz r12, STACK_SLOT_TRAP(r1) /* return trap # in r12 */ ld r0, SFS+PPC_LR_STKOFF(r1) addi r1, r1, SFS mtlr r0 blr .balign 32 .global kvm_flush_link_stack kvm_flush_link_stack: /* Save LR into r0 */ ...
Assembly
************************************* *Taktownica by Vat (alias Mr.Nobody)* * ciag instrukcji zawarty miedzy... * * zabiera tyle taktow o ile grafika * * jest przesunieta wzgledem koloru. * ************************************* graphcs equ $f0f0 ;shif, if need! graphct equ $ff00 Begin: ;opt x+ bsr Rez clr.w $484.w MA...
Assembly
0000, adjustment.getValue()); } @Test public void shadowFormatColor() throws Exception { //ExStart:ShadowFormatColor //GistId:65919861586e42e24f61a3ccb65f8f4e //ExFor:ShapeBase.ShadowFormat //ExFor:ShadowFormat //ExFor:ShadowFormat.Color //ExFor:ShadowFor...
Java
_base_ = [ '../_base_/models/faster_rcnn_r50_caffe_c4.py', '../_base_/datasets/coco_detection.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] # use caffe img_norm img_norm_cfg = dict( mean=[103.530, 116.280, 123.675], std=[1.0, 1.0, 1.0], to_rgb=False) train_pipeline = [ ...
Python
; import org.jikesrvm.classloader.TypeReference; import org.jikesrvm.compilers.opt.ClassLoaderProxy; import org.jikesrvm.compilers.opt.OptimizingCompilerException; import org.jikesrvm.util.Services; import org.vmmagic.unboxed.Offset; /** * Represents a location in memory. Used to keep track of memory aliasing. * * ...
Java