text
string
label_name
string
labels
int64
/// Slice refers to some heap allocated data in wasm. /// A pointer to this can be returned over ffi boundaries. /// /// This is the same as cosmwasm::memory::Slice /// but defined here to allow wasm impl #[repr(C)] #[derive(Default, Clone, Copy, Debug)] pub struct Slice { pub offset: u32, pub len: u32, } unsa...
Rust
0
"""sfba -- Simple module for constructing scriptable FBAs (faceless background applications). Provides functions for starting and stopping a Carbon event loop, and re-exports aemreceive's contents for convenience. (C) 2005 HAS """ import Carbon.CarbonEvt as _Evt from aemreceive import * # re-export for convenience ...
Python
1
} #[doc = "`1110`"] #[inline(always)] pub fn pg_eint4(self) -> &'a mut W { self.variant(PG4_SELECT_A::PG_EINT4) } #[doc = "`1`"] #[inline(always)] pub fn output(self) -> &'a mut W { self.variant(PG4_SELECT_A::OUTPUT) } #[doc = "`11`"] #[inline(always)] pu...
Rust
0
@skip_mps def test_save_load_local(self): return super().test_save_load_local()
Python
1
from __future__ import print_function, division import numpy as np import wotan.constants as constants from wotan.helpers import cleaned_array def pspline( time, flux, edge_cutoff, max_splines, stdev_cut, return_nsplines, verbose ): try: from pygam import LinearGAM, s...
Python
1
# # @lc app=leetcode.cn id=1807 lang=python3 # # [1807] 替换字符串中的括号内容 # # 题目还是非常有趣的,类似于实现编程语言的print格式化功能。 # 解法1(T45% S68%): 首先将knowledge转为哈希表加速查询,由于key不会重复所以非常简单;然后一次遍历字符串s,如果发现左括号则不断试探直到找到右括号,将中间的字符串作为token在哈希表中查找对应的结果,否则直接加入新字符串中 # @lc code=start class Solution: def evaluate(self, s: str, knowledge: List[List[str...
Python
1
]: inputs = inputs.to(device) labels = labels.to(device) output = model(inputs).to(device).float() _,prediction = torch.max(output,1) correct_predictions += (prediction == labels).sum().item() print('Test Set Prediction: ', (correct_predictions/dataset_si...
Python
1
from flask import render_template, request, redirect, url_for, flash from . import bp from .. import db from ..models import TipoCambio @bp.route('/tipos_cambio') def list_tipos_cambio(): tipos = TipoCambio.query.order_by(TipoCambio.moneda).all() return render_template('tipos_cambio.html', tipos=tipos) @bp....
Python
1
().map(|r| r.right).max().unwrap(); let mut no_overlaps: BTreeSet<ID> = rectangles.iter().map(|r| r.id).collect(); (0..max_x).for_each(|x| { let mut active_rects = rectangles.iter().filter(|&r| r.xrange.contains(&x)); let mut furthest = match active_rects.next() { ...
Rust
0
})); world.push(Sphere { c: Vec3 { x: 0.0, y: 0.5, z: 0.0, }, r: 0.5, mat: Some(sphere_mat), }); world.into_bvh(rng); ( (width as f64 / ar) as usize, Scene { ...
Rust
0
--wandb_group", type=str, default=None) parser.add_argument("--wandb_project", type=str, default="openrlhf_train_sft") parser.add_argument( "--wandb_run_name", type=str, default="sft_%s" % datetime.now().strftime("%m%dT%H:%M"), ) # TensorBoard parameters parser.add_argument(...
Python
1
f relevance_level == "medium": border_color = "#ffc107" # Yellow else: border_color = "#6c757d" # Gray with st.container(): # Create a styled container st.markdown(f""" <div style=" border-left: 4px solid {border_color}; padding: 1rem; ...
Python
1
# @Time : 2024/2/9 11:39 # @Author : zhangchenming from stereo.modeling.trainer_template import TrainerTemplate from .cfnet import CFNet as cfnet __all__ = { 'CFNet': cfnet, } class Trainer(TrainerTemplate): def __init__(self, args, cfgs, local_rank, global_rank, logger, tb_writer): model = __all_...
Python
1
#Словари #изменение значения определенного элемента. Изменить год на 2018 thisdict = { "brand" : "Ford", "model" : "Mustang", "year" : 1964 } thisdict["year"] = 2018 print(thisdict)
Python
1
() = ::protobuf::VERSION_2_17_0; #[derive(PartialEq,Clone,Default)] pub struct RemoteFusedGraphExecuteInfo { // message fields pub remote_graph: ::protobuf::SingularPtrField<super::graph::GraphDef>, pub graph_input_node_name: ::protobuf::RepeatedField<::std::string::String>, pub graph_output_node_name...
Rust
0
r(&l.params, &r.params, |l, r| eq_generic_param(l, r)) && over(&l.where_clause.predicates, &r.where_clause.predicates, |l, r| { eq_where_predicate(l, r) }) } pub fn eq_where_predicate(l: &WherePredicate, r: &WherePredicate) -> bool { use WherePredicate::*; match (l, r) { (Bo...
Rust
0
'#0020071047V为了慎重起见,\n', '还是向雾香小姐报告昨天的事比较好。', TxtCtl.Enter, ), ) CloseMessageWindow() ChrTalk( 0x0101, ( '#0010071048V#006F啊,也对……', TxtCtl.Enter, TxtCtl.Clear, '#0010071049V提妲,\n', '稍微绕个道好吗?', ...
Python
1
if lang == "en" || en.trim().is_empty() || lang.trim().is_empty() { en } else if let Some(translated) = translated_pairs::MAP.get(lang).and_then(|l| l.get(en)) { translated } else { #[cfg(feature = "realtime")] realtime::notify_unknown(lang, en); #[cfg(not(feature = ...
Rust
0
assert_eq!(resulting_edges, expected_resulting_edges); let max_id = edges .par_iter() .map(|node| node.id.unwrap()) .max_by(|a, b| a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal)) .unwrap(); assert_eq!( expected_resulting_edges.l...
Rust
0
ation(&self, program: &WebGlProgram, index: u32, name: &str); } macro_rules! impl_context { ($($type:ty { $($defs:tt)* })+) => { $(impl PartialWebGlShaders for $type { //Put all the common methods here: fn awsm_create_program(&self) -> Result<WebGlProgram, Error> { ...
Rust
0
values(), &other.match_keys.values()) } #[must_use] pub fn from_matchkeys(match_keys: HashMap<String, Ciphertext>) -> EncryptedMatchkeys { EncryptedMatchkeys { match_keys } } #[must_use] pub fn threshold_decrypt( &self, matchkey_decrypt: &ThresholdDecryptionKey, ) -...
Rust
0
get_mask = decoder.create_self_attention_mask(self.params["max_decoder_length"]) predictions = {} if training: predictions = self._decode( target_ids, target_mask, start_token_ids, encoder_output, encoder_mask, ...
Python
1
number of channels, H and W are image height and width. return_tensors (`str` or [`~utils.TensorType`], *optional*, defaults to `'np'`): If set, will return tensors of a particular framework. Acceptable values are: - `'tf'`: Return TensorFlow `tf.constant` obj...
Python
1
Point::new(0, 0), Size::new(width, height - 10), state.clone()); let window2 = Window::new(buf2, Point::new(0, height - 10), Size::new(width, 10), state.clone()...
Rust
0
if let Some(current_line) = current_line.or_else(|| self.map.last().map(|t| t.1)) { self.map.push((instruction_index, current_line)); } } /// Returns the line where the instruction at `instruction_index` were defined pub fn line(&self, instruction_index: usize) -> Option<Line> { ...
Rust
0
est_sealer_compatibility() { let mut rng = thread_rng(); let ctx = GPUContext::default(TEST_CONFIG, TreeOptions::Enabled { rows_to_discard: 2 }).unwrap(); let mut gpu = GPU::new(ctx, TEST_CONFIG).unwrap(); for _ in 0..10 { let data = Layer::random(&mut rng, TEST_...
Rust
0
::LocalPartition; use rustcoalescence_algorithms::{Algorithm, AlgorithmArguments}; use rustcoalescence_scenarios::Scenario; use rust_cuda::{ common::RustToCuda, host::CudaDropWrapper, rustacuda::{ function::{BlockSize, GridSize}, prelude::{Stream, StreamFlags}, }, }; mod arguments; mo...
Rust
0
print("======" "DESAFIO 8" "======") m = int(input("Digite um valor em metros: ")) km = m / 1000 hm = m / 100 dcm = m / 10 dc = m * 10 c = m * 100 mm = m * 1000 print("O valor de {}m pode ser lido como, {}km, {}hm, {} dcm, {}dc, {}cm ou {}mm".format(m, km, hm, dcm, dc, c, mm))
Python
1
for v in value.split(): out.append(try_cast(v, name[1:])) value = out else: value = try_cast(value, name) xprot.update({name: value}) return xprot def parse_buffer(buffer): reASCCONV = re.compile( r'### ASCCONV BEGIN[^\n]*\n(.*)\s##...
Python
1
import argparse def main(): """ A simple command line utility for accessing trimesh functions. To display a mesh: > trimesh hi.stl To convert a mesh: > trimesh hi.stl -e hey.glb To print some information about a mesh: > trimesh hi.stl --statistics """ from .exchange.lo...
Python
1
""" Classes and Modules that represent sensor related objects .. codeauthor:: Ross Wiklins .. codeauthor:: James Brusey .. codeauthor:: Daniel Goldsmith <djgoldsmith@googlemail.com> """ from sqlalchemy import Column, Float, ForeignKey, Integer from . import meta class Sensor(meta.Base, meta.InnoDBMix): """C...
Python
1
et=0, axis1=0, axis2=1, out=None): return ivy.trace(a, offset=offset, axis1=axis1, axis2=axis2, out=out) @to_ivy_arrays_and_back def trapezoid(y, x=None, dx=1.0, axis=-1, out=None): return ivy.trapz(y, x=x, dx=dx, axis=axis, out=out) def trapz(y, x=None, dx=1.0, axis=-1, out=None): return trapezoid(y, x...
Python
1
>10-100 #![allow(unused_imports)] use ate::prelude::*; use clap::Parser; use std::ffi::OsString; use std::path::{Path, PathBuf}; use std::sync::Arc; #[cfg(feature = "bus")] use tokera::bus::*; use tokera::cmd::*; use tokera::error::*; use tokera::opt::*; use tokera::prelude::*; use tokio::sync::mpsc; use tracing::{debu...
Rust
0
"address": { "city": "Anytown", "country": "USA", "state": "New York", "street": "101 Main Street" /* Update schema to support multiple addresses: "work": { "city": "Anytown", "country": "USA", "state": "New York", ...
Rust
0
# Generated by Django 5.1.1 on 2024-11-20 22:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("bloomerp", "0048_remove_userlistviewpreference_is_main"), ] operations = [ migrations.AlterModelOptions( name="file", options...
Python
1
ESS_STAGE21: LibRaw_progress = 2097152; pub const LibRaw_progress_LIBRAW_PROGRESS_STAGE22: LibRaw_progress = 4194304; pub const LibRaw_progress_LIBRAW_PROGRESS_STAGE23: LibRaw_progress = 8388608; pub const LibRaw_progress_LIBRAW_PROGRESS_STAGE24: LibRaw_progress = 16777216; pub const LibRaw_progress_LIBRAW_PROGRESS_STA...
Rust
0
0xf8, 0x54, 0x2f, 0x33, 0xe5, 0x7f, 0xb4, 0x13, 0x02, 0xa3, 0xa1, 0x8b, 0x1c, 0x6f, 0x19, 0xd6, 0x42, 0xb3, 0x24, 0x4b, 0x04, 0x30, 0x10, 0x02, 0x23, 0x6f, 0x10, 0x03, 0x4b, 0x0e, 0x33, 0x55, 0x22, 0xa4, 0x78, 0xec, 0xd2, 0x4a, 0x11, 0x8b, 0xfc, 0xff, 0x14, 0x7a, 0xed, 0x06, 0x47, 0x86, 0xfc, 0x...
Rust
0
from langchain_community.document_loaders import PyPDFDirectoryLoader from langchain.text_splitter import CharacterTextSplitter from langchain.vectorstores.chroma import Chroma from langchain.embeddings import OllamaEmbeddings import os from dotenv import load_dotenv load_dotenv() CHROMA_DB = "./chroma_db" MODEL = os...
Python
1
import torch import cv2 import torchvision from detector import LandmarksDetector from video_process import VideoProcess import numpy as np import random import math from tqdm import tqdm import argparse import os from pathlib import Path import cProfile def load_video(data_filename): return torchvision.io.read_vi...
Python
1
\ \x0aMenu 1.0 Menu.q\ ml\x0aMenuBar 1.0 M\ enuBar.qml\x0aMenuB\ arItem 1.0 MenuB\ arItem.qml\x0aMenuI\ tem 1.0 MenuItem\ .qml\x0aMenuSeparat\ or 1.0 MenuSepar\ ator.qml\x0aToolBar\ 1.0 ToolBar.qml\ \x0aStackView 1.0 S\ tackView.qml\x0aPag\ e 1.0 Page.qml\x0aP\ rogressBar 1.0 P\ rogressBar.qml\x0aR\ adioButton 1.0 R\ ...
Python
1
Sender. let msg = msg.unpack::<M>()?; let res = self._send(msg, timeout).await; Some(res) }) } } } } subscribe!(Send); impl Default for Subscribe { fn default() -> Self { Self { inner: Default:...
Rust
0
from collections import defaultdict from typing import List def main(inp: str)->int: print_procedures = [] res = 0 before = defaultdict(list) after = defaultdict(list) for line in inp.splitlines(): if '|' in line: a, b = line.strip().split('|') before[a] += [b] ...
Python
1
=> CCC230, // Small High Lam Alef '\u{06DA}' => CCC230, // Small High Jeem '\u{06DB}' => CCC230, // Small High Three Dots '\u{06DC}' => CCC230, // Small High Seen '\u{06DF}' => CCC230, // Small High Rounded Zero '\u{06E0}' => CCC230, // Small High Upright Rectangular Zero ...
Rust
0
5], [0, 0, 0], [6, 7, 8], [-2, -3, -4]]], dtype=torch.float32).cuda() # points (n, 3) in lidar coordinate point_indices = points_in_boxes_batch(points=pts, boxes=boxes) expected_point_indices = torch.tensor( [[[1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [0, 1], [0, 0], [0, 0], [0, 0], [0...
Python
1
nalFlowSpecifyGRR( i_l_flow_cntrs.com_object, i_l_owner_grr.com_object ) ) def list_internal_flows(self) -> SchListOfObjects: """ .. note:: :class: toggle CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)) ...
Python
1
append(dbi_score_1) ari_score_1_lst.append(ari_score_1) nmi_score_1_lst.append(nmi_score_1) # df_evaluation = pd.DataFrame() # df_evaluation['accuracy_score'] = acc_1_lst df_evaluation['silhouette_score'] = sh_score_1_lst df_evaluation['calinski_harabasz_score'] = ch_score_1_lst df_evalu...
Python
1
import asyncio import bleak import numpy as np from bleak import BleakClient device_id = "3C71D8C0-B1AF-5976-A47F-5D7A96267F67" #Please enter the id of your device (that is, the device id used to connect to your BT device here) storage_uuid = "30295781-4301-EABD-2904-2849ADFEAE43" #dont change this storage_read_uuid =...
Python
1
import argparse import datetime # Data/Input Paths def input_paths(parser): parser.add_argument( "--noise", default=False, action="store_true", ) parser.add_argument( "--dataset", type=str, # default="gibson", default="mp3d", ) parser.add_argu...
Python
1
Error while attempting to authenticate"); error!(err); } } } Msg::Complete(_) => { // handled by lib.rs unreachable!(); } } } pub fn view(model: &Model) -> Node<Msg> { let storage: storage::Storage = seed::storage::...
Rust
0
.com", ] CSRF_TRUSTED_ORIGINS = [ "https://read-and-write.example.com", ] STRIPE_KEY = os.getenv('STRIPE_KEY') # Настройки для Celery # URL-адрес брокера сообщений CELERY_BROKER_URL = os.getenv('CELERY_BROKER_URL') # Например, Redis, который по умолчанию работает на порту 6379 # URL-адрес брокера результатов,...
Python
1
return Err(io::Error::last_os_error()); } else { return Ok(unsafe { st.assume_init() }); } } pub fn fstatat(dir: RawFd, path: &dyn AsRef<Path>) -> io::Result<stat64> { let mut st = MaybeUninit::<stat64>::uninit(); let s = to_cstring(path); #[cfg(not(target_os = "macos"))] let ...
Rust
0
import numpy as np from gym import utils from gym.envs.mujoco import mujoco_env class ReacherEnv(mujoco_env.MujocoEnv, utils.EzPickle): def __init__(self): utils.EzPickle.__init__(self) mujoco_env.MujocoEnv.__init__(self, "reacher.xml", 2) def step(self, a): vec = self.get_body_com("f...
Python
1
if self._saldo + valor >= 0: self._saldo -= valor self._extrato.append(f'Dia: {dia} - Saque: {descricao} - R$ {valor:.2f}') return True else: print(f'Conta: {self._nroConta} - Saque: {valor:.2f} - Saldo insuficiente!') ...
Python
1
from pyspark.ml.evaluation import MulticlassClassificationEvaluator from pyspark.mllib.evaluation import MulticlassMetrics from pyspark.sql.functions import col # Convert DataFrame to RDD predictionAndLabels = predictions.select(['prediction', 'label']).rdd.map(lambda row: (float(row['prediction']), float(row['label']...
Python
1
ract_segments(self, msg: SegmentExtractTool) -> str: """Method to handle a segmentExtractTool message from LLM""" spec = msg.segment_list if len(self.message_history) == 0: return DONE + " " + NO_ANSWER if spec is None or spec.strip() in ["", NO_ANSWER]: return DO...
Python
1
edelta(seconds=30), ] + _common_mismatch ) def not_hourly(request): """ Several timedelta-like and DateOffset instances that are _not_ compatible with Hourly frequencies. """ return request.param @pytest.fixture( params=[ np.timedelta64(4, "h"), pd.Timedelta(hours=23).t...
Python
1
_client = BybitInverseSwapWSClient::new(tx, None); ws_client.subscribe(&channels); ws_client.run(duration); } _ => panic!("Unknown market_type {}", market_type), } } extern crate libc; use core::ptr; use Allocator; /// System setting for MacOS pub struct System { _priv:...
Rust
0
, turning off exploration can reduce jitter but may harm performance explore=True, log_interval=None, ): initialize_ray(test_mode=False, num_gpus=1) # 27 29 30 37 39 env_config = get_eval_config(config)["env_config"] env_config.update(dict( start_scenari...
Python
1
.timepoints[1].to_instance(), self.timepoints[2].to_instance(), self.timepoints[3].to_instance(), ], } } } impl EmissiveStaticI { pub fn with_uniform_timepoints(general: GeneralI, timepoint: TimepointI) -> Self { Self { general, ...
Rust
0
# Booking should be confirmed normally status = result.get("status", {}) assert "booking_3" in status and status["booking_3"] == "confirmed" # Additional test to check redundant duplication in logs and alerts accumulation def test_redundant_logs_and_alerts(): real_time_data = { "sensorA": 85, ...
Python
1
""" Illustrate forward, backward and centered finite differences in four figures. """ from pysketcher import * #test_test() xaxis = 2 drawing_tool.set_coordinate_system(0, 7, 2, 6, axis=True) f = SketchyFunc1('$B(x)$') x = 4 # point where we want the slide p = (x, f(x)) # curve point r = 0.1 ...
Python
1
import os import time import subprocess import sys if len(sys.argv) < 3: print("USAGE: capture.py INTERFACE USERNAME") exit(0) INTERFACE = sys.argv[1] USERNAME = sys.argv[2] print(f"{INTERFACE=}") print(f"{USERNAME=}") LOG_DIR = f"/ctf/logs/pcaps" DEST_DIR = f"/ctf/logs/test_pcap" EVE_FILE = "/var/log/surica...
Python
1
e<T>, } impl<T> Clone for MySender<T> { fn clone(&self) -> Self { self.count.fetch_add(1, Ordering::SeqCst); //println!("clone sender: {:x}, {}", self as *const Self as usize, self.count.load(Ordering::SeqCst)); MySender{count: self.count.clone(), __queue: self.__queue.clone()} } } impl<...
Rust
0
# Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ from nagini_contracts.contracts import * from nagini_contracts.thread import Thread, MayStart, getArg, getMethod from nagini_contracts.obligations import MustTerminate class Cell: def __init__(self) -> None: ...
Python
1
(2, "token")); // instantiate by "creator", with admin "creator" let info = mock_info("creator", &coins(1000, "earth")); let msg = InstantiateMsg { admin: Addr::unchecked("admin"), }; let res = instantiate(deps.as_mut(), mock_env(), info, msg).unwrap(); assert_eq!(0, res.messages.len())...
Rust
0
writer] encoded in /// [unsigned LEB128]. /// /// # Errors /// /// If this function encounters an error when performing an I/O operation, /// then this function immediately returns an [`Error::Io`] to propagate the /// [`io::Error`] returned by an internal call to [`Write::write_all`]. /...
Rust
0
#!/usr/bin/env python import sys from vtkmodules.vtkCommonCore import ( VTK_LINEAR_INTERPOLATION, vtkObjectFactory, ) from vtkmodules.vtkCommonDataModel import vtkPiecewiseFunction from vtkmodules.vtkIOImage import vtkNrrdReader from vtkmodules.vtkRenderingCore import ( vtkColorTransferFunction, vtkRend...
Python
1
// Part 1 let part1 = sum_to_target(&ints[..], 2020); match part1 { Some((a, b)) => println!("{} * {} = {}", a, b, a * b), _ => println!("Noooes"), } // Part 2 for (i, c) in ints.iter().enumerate() { let remain = &ints[i..]; let part_target = target - c; if ...
Rust
0
d."); } } #[cfg(all(not(feature = "test"), not(feature = "fetch-prebuilt")))] pub fn library(&self) { let src_files = &[ "aaudio/AAudioLoader.cpp", "aaudio/AudioStreamAAudio.cpp", "common/AudioSourceCaller.cpp", "common/AudioStream.cpp", ...
Rust
0
.1 >= fixed.1 .0 && split.2 .0 <= fixed.2 .1 && split.2 .1 >= fixed.2 .0 } pub fn nonoverlap(fixed: &Cuboid, split: Cuboid) -> HashSet<Cuboid> { if overlaps(fixed, &split) { let mut out = HashSet::new(); assert!(split.0 .0 <= split.0 .1); assert!(split.1 .0 <= split.1 .1);...
Rust
0
&[u8] ) -> R { stack_format( |out| { let _ = out.write_fmt( args ); }, callback ) } pub fn stack_null_terminate< R, F >( input: &[u8], callback: F ) -> R where F: FnOnce( &[u8] ) -> R { stack_format( |out| { let _ = out.write_all( input ); let _ = out.write_all( &[0] ); }, ...
Rust
0
''' The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value, and the median is the mean of the two middle values. For example, for arr = [2,3,4], the median is 3. For example, for arr = [2,3], the median is (2 + 3) / 2 = 2.5. Implement the MedianFinder class...
Python
1
gauss_layer(inp, gdim, x_mu_nl, x_logvar_nl, gname) out, x_mu, x_logvar, x_sample = [], [], [], [] for t in xrange(x.get_shape().as_list()[1]): if t > 0: tf.get_variable_scope().reuse_variables() out_t, state_t, x_mu_t, x_logvar_t, x_sample_t = decoder_step( z1_z2, ...
Python
1
cCsddg}|dur|j}|jt|jkrZ|j|j|vr8qZn||j|j|jd7_qt|S)aParse an RFC 2822 atom. Optional atomends specifies a different set of end token delimiters (the default is to use self.atomends). This is used e.g. in getphrasel...
Python
1
} // Clear screen canvas.set_draw_color(Color::WHITE); canvas.clear(); // Process this frame's events for event in event_pump.poll_iter() { match event { Event::KeyDown { keycode: Some(Keycode::Escape), .. ...
Rust
0
lds[1]) + " " + str(intervalds[2])+":"+str(intervalds[3])+":"+str(intervalds[4])+"."+str(intervalds[5]).zfill(6)+"\"") elif (firstresponse.value[i].type == sqlresponse_pb2.BLOB): sys.stdout.write("x'") sys.stdout.write(column.value.encode("hex")) sys....
Python
1
'\u{393}', '\u{394}', '\u{395}', '\u{396}', '\u{397}', '\u{398}', '\u{399}', '\u{39a}', '\u{39b}', '\u{39c}', '\u{39d}', '\u{39e}', '\u{39f}', '\u{3a0}', '\u{3a1}', '\u{fffd}', '\u{3a3}', '\u{3a4}', '\u{3a5}', '\u{3a6}', '\u{3a7}', '\u{3a8}', '\u{3a9}', '\u{3aa}', '\u{3ab}', '\u{3ac}', '\u{3ad}', '\u{3a...
Rust
0
timer = Timer::take(); let dur = Duration::from_millis(100); task::spawn(async move { loop { Red.on(); timer.wait(dur).await; Red.off(); timer.wait(dur).await; Red.on(); timer.wait(dur).await; Red.off(); tim...
Rust
0
ics of Prophecy Daniel's visions reveal the interference patterns of competing systems: - **Beast Systems**: Destructive empire frequencies that consume and dominate - **Kingdom Stone**: Divine frequency that grows to fill all space - **Son of Man**: Perfect human consciousness pattern that br...
Python
1
"), ("_MULT9_CORE_", "mult9"), ("_PREADD9_CORE_", "preadd9"), ("_MULT18X36_CORE_", "mult18x36"), ("_MULT18_CORE_", "mult18"), ("_REG18_CORE_", "reg18"), ("_ACC54_CORE_", "acc54"), ("_MULT36_CORE_", "mult36"), ("_LRAM_CORE", "lram"), ("_PLL_CORE_", ...
Rust
0
*; mod standard_die; pub use standard_die::*; mod exploding_die; pub use exploding_die::*; /// Performs an `XdY` style dice roll, such as `3d6`. /// /// * If `sides` is 0 or less, the output will be 0. /// * If `count` is negative the output will be negative. /// * Runs in `O(abs(count))` time. /// * Expected `count...
Rust
0
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap def plot_3d_earth(): # Create a Basemap instance for Orthographic projection m = Basemap(projection='ortho', lat_0=0, lon_0=0) # Draw coastlines, countries, and continents m.drawcoastlines(linewidth=0.5) m....
Python
1
collection(|&inst, &block| (inst, block)), block_terminators: self .block_terminators .as_collection(|&block, term| (block, term.clone())), block_descriptors: self .block_descriptors .as_collection(|&block, desc| (block, desc.clone(...
Rust
0
""" 高级搜索示例 """ import asyncio from arxiv_search import ArxivClient, SearchQuery, SearchFieldQuery async def advanced_search_example(): """高级组合搜索示例""" print("=== 高级组合搜索示例 ===") async with ArxivClient() as client: # 组合搜索:标题包含"deep learning",摘要包含"neural network" papers = await client.adva...
Python
1
write reference to some bits in memory. This slice must /// be trimmed to have a width no more than the `U::BITS` width of the /// type being stored. This can be accomplished with range indexing on a /// larger slice. /// - `value`: A value, whose `self.len()` least significant bits will be /// stored into...
Rust
0
`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [lpuart2_rx_select_input](lpuart2_rx_select_input) module"] pub type LPUART2_RX_...
Rust
0
import pandas as pd from io import BytesIO def format_df_to_string(df): for col in df.columns: if df[col].dtype != "datetime64[ns]": df[col] = df[col].astype(str) return df def student_results_to_dataframe(student_results): df = pd.DataFrame.from_dict(student_results, orient="index")...
Python
1
SupplyPalletId::<T>::put::<T::AccountId>(supply_pallet_id); StartHeight::<T>::put(self.start_height); Inflation::<T>::put(self.inflation); } } #[pallet::pallet] pub struct Pallet<T>(_); // The pallet's dispatchable functions. #[pallet::call] impl<T: ...
Rust
0
!AC'%C#&C'=C%>A$C'#C'%C'c# S/nURR5IShvN nUR5nURU5 U(dOMM[ 5nUR U5upEU$NN7f)NrSrr8r...
Python
1
_int(seeding_seeders[i]) page_seeding_size += size page_seeding_info.append([seeders, size]) self.seeding += page_seeding self.seeding_size += page_seeding_size self.seeding_info.extend(page_seeding_info) # 是否存在下页数据 next_page = None next...
Python
1
/// Note that this value is always NULL, as there are no contents in the Err variant pub err: *mut std::ffi::c_void, } #[repr(C)] /// A CResult_TrustedCommitmentTransactionNoneZ represents the result of a fallible operation, /// containing a crate::lightning::ln::chan_utils::TrustedCommitmentTransaction on success an...
Rust
0
s.""" print("\n[COMPUTER] COMANDOS PARA ABRIR IMÁGENES") print("=" * 50) if os.name == 'nt': # Windows print("🪟 COMANDOS WINDOWS:") for viz in visualizations: print(f"start \"{viz['path']}\"") else: # Linux/Mac print(" COMAN...
Python
1
from gi.repository import Gtk # type: ignore from ignis.base_widget import BaseWidget from ignis.window_manager import WindowManager from ignis.exceptions import WindowNotFoundError from ignis.gobject import IgnisProperty window_manager = WindowManager.get_default() class RegularWindow(Gtk.Window, BaseWidget): ...
Python
1
)] Module { line: u64, name: Option<String>, filename: String, }, #[serde(rename = "assert_return")] AssertReturn { line: u64, action: Action, expected: Vec<RuntimeValue>, }, #[serde(rename = "assert_return_canonical_nan")] AssertReturnCanonica...
Rust
0
3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END: UINT = 0xffffffff; pub const D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START: UINT = 0xfffffff8; pub const D3D12_PACKED_TILE: UINT = 0xffffffff; pub const D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT: UINT = 15; pub const D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT: UINT = 16; pub c...
Rust
0
self.openai_client.chat.completions.create( model="gpt-4o", max_tokens=1000, messages=[{ "role": "user", "content": f"""Analyze the browser automation result and provide a customer-friendly response. The result c...
Python
1
OsStr>> = self.matches.values_of_os("FILE").map(|vs| vs.collect()); if files.is_none() { return Ok(vec![new_stdin_input( filenames_or_none.next().unwrap_or(None), )]); } let files_or_none: Box<dyn Iterator<Item = _>> = match files { Some(ref f...
Rust
0
Box::pin(fut) /// } /// } /// ``` /// /// # Client /// /// A client consumes a service by using a `Service` value. The client may /// issue requests by invoking `call` and passing the request as an argument. /// It then receives the response by waiting for the returned future. /// /// As an example, here is how a R...
Rust
0
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Fastext vectors, e.g. use with filename "models:fasttext_vectors/wiki.en.vec". """ import os import torchtext.vocab ...
Python
1
").string(var_359); } if let Some(var_360) = &input.csv_input_template { object.key("csvInputTemplate").string(var_360); } Ok(()) } pub fn serialize_structure_crate_model_model_output_configuration( object: &mut aws_smithy_json::serialize::JsonObjectWriter, input: &crate::model::ModelOu...
Rust
0