text
string
label_name
string
labels
int64
ul_by_zero_is_zero(&self) { let a = self.a.mul(&[0u64]); assert!(a.is_zero()); } fn a_mul_by_group_order_is_zero(&self) { let a = self.a.mul(&self.group_order); assert!(a.is_zero()); } fn a_mul_by_scalar_wraps_over_group_order(&self) { let scalar = MaxGroupSiz...
Rust
0
::complete::{tag, tag_no_case, take_until, take_while1}, character::complete::{alphanumeric1, one_of, space0, space1}, combinator::{into, map, not, opt, value}, multi::{many1, separated_list1}, sequence::{preceded, tuple}, IResult, }; #[allow(unused_imports)] use std::borrow::Cow; /// Specify one o...
Rust
0
# Generated by Django 3.2.8 on 2024-01-16 15:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_userforeignkey.models.fields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER...
Python
1
# Section 11.2 snippets factorial = 1 for number in range(5, 0, -1): factorial *= number factorial ########################################################################## # (C) Copyright 2019 by Deitel & Associates, Inc. and # # Pearson Education, Inc. All Rights Reserved. ...
Python
1
CheckTestInterfaceMethod0::MIN_VERSION } fn create_header() -> MessageHeader { MessageHeader::new(1, BoundsCheckTestInterfaceMethod0::ORDINAL, message::MESSAGE_HEADER_IS_RESPONSE) } } impl BoundsCheckTestInterfaceResponse for BoundsCheckTestInter...
Rust
0
ᴏ ɴᴏᴛ ʀᴇᴍᴏᴠᴇ ᴄʀᴇᴅɪᴛs ɢɪᴠᴇɴ ɪɴ ᴛʜɪs ʀᴇᴘᴏ #ғɪʀsᴛ ᴀɴᴅ ʟᴀsᴛ ᴡᴀʀɴɪɴɢ ⚠️ DEV_TXT = """<b><u>Sᴩᴇᴄɪᴀʟ Tʜᴀɴᴋꜱ & Dᴇᴠᴇʟᴏᴩᴇʀꜱ</b></u> » 𝗦𝗢𝗨𝗥𝗖𝗘 𝗖𝗢𝗗𝗘 : <a href=https://github.com/DigitalBotz/Digital-Rename-Bot>Digital-Rename-Bot</a> • ❣️ <a href=https://github.com/RknDeveloper>RknDeveloper</a> • ❣️ <a href=https:...
Python
1
.add_handler(source_callback_handler) dispatcher.add_handler(settings_handler) dispatcher.add_handler(help_callback_handler) dispatcher.add_handler(settings_callback_handler) dispatcher.add_handler(migrate_handler) dispatcher.add_error_handler(error_callback) LOGGER.info("Using long polling.")...
Python
1
PlainText::new(self.keeper.naming_unlock(ct.0)) } pub fn seal_blob_data(&self, pt: PlainTextRef) -> CipherText { CipherText::new(self.keeper.data_lock(pt.0)) } pub fn unseal_blob_data(&self, ct: CipherTextRef) -> PlainText { PlainText::new(self.keeper.data_unlock(ct.0)) } pub ...
Rust
0
= Param.Bool( True, "Set inst. trace times to be commit times" ) executeSetTraceTimeOnIssue = Param.Bool( False, "Set inst. trace times to be issue times" ) executeAllowEarlyMemoryIssue = Param.Bool( True, "Allow mem refs to be issued to the LSQ before reaching the head ...
Python
1
ctions if class_created_this_thread { let _ = set_class_data(hwnd, 0, u32::from_le_bytes(*HOOKPROC_MARKER) as usize); } // Setup `HCBT_DESTROYWND` hook // TODO: explain this let thread_id = GetCurrentThreadId(); let hhook = SetWindowsHookExW(WH_CBT, hcbt_dest...
Rust
0
<String>>(search_key)? .iter() .map(|key| { let uuid = key.trim_start_matches(&key_prefix); Uuid::parse_str(uuid).map(|id| id.into()) }) .collect::<Result<_, _>>()?; Ok(blocks) } } #![warn(rust_2018_idioms)] #[macro_use] exter...
Rust
0
t + Sized + QSingletonInit>( _qml_engine: *mut c_void, _js_engine: *mut c_void, ) -> *mut c_void { let result = std::panic::catch_unwind(std::panic::AssertUnwindSafe(move || { let obj_box: Box<RefCell<T>> = Box::new(RefCell::new(T::default())); let obj_ptr = unsafe { ...
Rust
0
Doc::text(")")) //! # } //! # } //! # } //! # impl SExp { //! # pub fn to_pretty(&self, width: usize) -> String { //! # let mut w = Vec::new(); //! # self.to_doc().render(width, &mut w).unwrap(); //! # String::from_utf8(w).unwrap() //! # } //! # } //! # fn main() { //! let at...
Rust
0
ProtobufTypeEnum<EKeyEscrowUsage>>( "usage", |m: &CKeyEscrow_Request| { &m.usage }, |m: &mut CKeyEscrow_Request| { &mut m.usage }, )); fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeStrin...
Rust
0
8 { #[inline(always)] fn from(variant: CMDSRC_A) -> Self { match variant { CMDSRC_A::CMDSRC_0 => 0, CMDSRC_A::CMDSRC_1 => 1, CMDSRC_A::CMDSRC_2 => 2, CMDSRC_A::CMDSRC_3 => 3, CMDSRC_A::CMDSRC_4 => 4, CMDSRC_A::CMDSRC_5 => 5, ...
Rust
0
ignments)] // For last_zero_shift which is used only in 3D. #[allow(unused_variables)] // For last_zero_shift which is used only in 3D. #[inline] fn project_local_point_and_get_feature( &self, pt: &Point<Real>, ) -> (PointProjection, FeatureId) { let (inside, ls_pt, shift) = self...
Rust
0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from collections import defaultdict from odoo import models class AccountChartTemplate(models.AbstractModel): _inherit = "account.chart.template" def _configure_payroll_account_hk(self, companies): ac...
Python
1
) # delete obsolete metric del self._stored_metrics[train_eval][f"{metric}/{split}_sum"] del self._stored_metrics[train_eval][f"count/{split}"] # calculate reward margin if f"{prefix}rewards/chosen" in logs and f"{prefix}rewards/rejected" in logs:...
Python
1
'detection_boxes': outputs['detection_boxes'], 'detection_scores': outputs['detection_scores'], 'detection_classes': outputs['detection_classes'], 'num_detections': outputs['num_detections'], 'source_id': labels['groundtruths']['source_id'], 'image_info': labels['image_inf...
Python
1
> Result<crate::optflow::GPCMatchingParams> { unsafe { sys::cv_optflow_GPCMatchingParams_GPCMatchingParams_const_GPCMatchingParamsR(&params) }.into_result() } } pub trait GPCPatchDescriptorTrait { fn as_raw_GPCPatchDescriptor(&self) -> *const c_void; fn as_raw_mut_GPCPatchDescriptor(&mut self) -> *mut c_void; ...
Rust
0
cursor_t, arg2: *mut unw_proc_info_t) -> ::std::os::raw::c_int; #[link_name = "_Ux86_64_get_reg"] pub fn unw_get_reg(arg1: *mut unw_cursor_t, arg2: ::std::os::raw::c_int,arg3: *mut unw_word_t) -> ::std::os::raw::c_int; #[link_name = "_Ux86_64_set_reg"] pub fn unw_set_reg(arg1: *mut unw_cursor_t,ar...
Rust
0
status: xplm_sys::XPLMMouseStatus, refcon: *mut c_void, ) -> c_int { let window = refcon as *mut Window; if let Some(action) = MouseAction::from_xplm(status) { let position = Point::from((x, y)); let event = MouseEvent::new(position, action); let propagate = (*window).delegate.mouse_...
Rust
0
option::Option<unsafe extern "C" fn(max: u32, init: u32) -> *mut cty::c_void>, pub _semphr_delete: ::core::option::Option<unsafe extern "C" fn(semphr: *mut cty::c_void)>, pub _semphr_take_from_isr: ::core::option::Option< unsafe extern "C" fn(semphr: *mut cty::c_void, hptw: *mut cty::c_void) -> i32, ...
Rust
0
# Copyright 2020, The TensorFlow Authors. # # 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 agreed t...
Python
1
import os import sentencepiece as spm root = os.path.dirname(os.path.abspath(__file__)) def test_spm_compatibility(): """test python API with legacy C++ tool outputs NOTE: hard-coded strings are generated by spm v0.1.82 """ testfile = root + "/tedlium2.txt" nbpe = 100 bpemode = "unigram" ...
Python
1
Upper => "$\\Omega$", // dashes: EscapeChar::EmDash => "---", EscapeChar::EnDash => "--", //arrows: EscapeChar::LeftThin => "$\\leftarrow$", EscapeChar::LeftBold => "$\\Leftarrow$", EscapeChar::RightThin => "$\\rightarrow$", EscapeChar::RightBold => "$\\Ri...
Rust
0
{1163f}', '\u{11640}', GC_Extend), ('\u{116ab}', '\u{116ab}', GC_Extend), ('\u{116ac}', '\u{116ac}', GC_SpacingMark), ('\u{116ad}', '\u{116ad}', GC_Extend), ('\u{116ae}', '\u{116af}', GC_SpacingMark), ('\u{116b0}', '\u{116b5}', GC_Extend), ('\u{116b6}', '\u{116b6}', GC_SpacingMark), ('\u{116b7}'...
Rust
0
from django.contrib import admin from .models import * from django.contrib.auth.admin import UserAdmin class AccountInfoInline(admin.StackedInline): model = UserProfile can_delete = True extra = 0 class CryptoCardsInline(admin.StackedInline): model = CryptoCards extra = 0 class PaymentDetailsInl...
Python
1
0046387915338147005, 0.004668594705548271, 0.9999701968282665]; #[rustfmt::skip] pub const AP0_D60_TO_APPLE_D65: [FType; 9] = [ 2.3288160162776426, -0.9398506893120083, -0.3889653269656337, -0.3469434271947952, 1.4558580948628685, -0.10891466766807431, -0.008726304388860517, -0.19904906033145836, 1.207775...
Rust
0
class: InstanceClass, members: Map<State>) -> InstanceExt<T> { InstanceExt { parent: Box::new(parent), class, members, } } /// Borrow the members of this instance. pub fn members(&self) -> &Map<State> { &self.members } /// Borrow the par...
Rust
0
le::prelude::*, std::{path::Path, process::Command}, }; fn main() { if !run_output!(LogCommand, %"id --user quwue") { run!(LogCommand, %"useradd --system quwue"); } let (StdoutTrimmed(stdout), Status(status)) = run_output!( LogCommand, "psql", "postgres", "-tAc", "SELECT 1 FROM pg_role...
Rust
0
values_neg.transpose([1, 0]) values_pos = values_pos.transpose([1, 0]) # 合并正负类数据 values = np.concatenate((values_neg, values_pos)) # 前三分之二为负类(测试集与噪声集的检测指标),所以标签值为0;后面的三分之一为对抗集的检测指标,为正类,所以标签值为1 labels = np.concatenate((np.zeros([values_neg.shape[0]]), np.ones([values_pos.shape[0]]))) # 返回整理好的检...
Python
1
ye(3), np.zeros(3) elif scaling == "per_traj": pred_aligned = _scale_per_trajectory(gt_points, pred_points) s_, R_, t_ = 1, np.eye(3), np.zeros(3) elif scaling == "sim3": # Flatten all frames/tracks T, N, _ = gt_points.shape gt_flat = gt_point...
Python
1
= CString::new(tz).expect("CString::new failed"); let haskell_tz = unsafe { wcurrentReftime(tz_db.ptr, tz_c_str.as_ptr()) }; let result = DucklingTimeWrapper { ptr: haskell_tz }; Ok(result) } /// Parse a reference timestamp on a given Olson time zone /// /// Parameters /// ---------- /// tz_db: TimeZoneDa...
Rust
0
import pytest from httpx import AsyncClient, ASGITransport from app.main import app @pytest.mark.asyncio async def test_get_bids_feedback(created_tender, authorized_user): tender_id = created_tender["id"] username = authorized_user["username"] async with AsyncClient(transport=ASGITransport(app), base_url...
Python
1
sert_statement .execute([person2.name, "NULL".to_string()]) .unwrap(); let mut query_statement = connection .prepare("SELECT id, name, password FROM person") .unwrap(); let mut person_iter = query_statement .query_map([], |row| { ...
Rust
0
ytes.iter().all(|&b| b == 0) { return Some(Self::zero()); } let mut raw = blst_p2_affine::default(); if unsafe { blst_p2_deserialize(&mut raw, bytes.as_ptr()) != BLST_ERROR::BLST_SUCCESS } { return None; } Some(G2Affine(raw)) } /// Attempts to ...
Rust
0
#!/usr/bin/env python3 import csv import matplotlib import matplotlib.pyplot as plt font = {"family": "normal", "weight": "bold", "size": 22} matplotlib.rcParams.update({"font.size": 22}) file_name = "results.csv" threads = [] p50_values = [] p95_values = [] p99_values = [] p999_values = [] p95_limbo = [] p99_lim...
Python
1
#!/usr/bin/env python3 import rospy from std_msgs.msg import Float64, UInt8 from nav_msgs.msg import Odometry from gazebo_msgs.msg import ModelStates from gazebo_msgs.srv import SetModelState from gazebo_msgs.msg import ModelState def odom_callback(msg): rospy.loginfo(f"Odom Position: {msg.pose.pose.position}") ...
Python
1
x<[Block]>, pub font: Font, pub font_bold: Font, pub changed: BTreeSet<usize>, pub mouse_x: u16, pub mouse_y: u16, pub mouse_left: bool, pub ctrl: bool, pub input: Vec<u8>, pub requested: usize, pub block_handler: BlockHandler, pub alpha: u8, pub selection: Option<(usize,...
Rust
0
.send((con_kill_switch, send, recv)) .await .map_err(LairError::other) }) .await?; } Ok(()) } /// Establish an outgoing client ipc connection to a lair server. pub async fn spawn_ipc_connection( config: Arc<Config>, ) -> LairResult<( ...
Rust
0
)); } match hash_algorithm.getattr("name")?.extract()? { "md5" => Ok(HashType::Md5), "sha1" => Ok(HashType::Sha1), "sha224" => Ok(HashType::Sha224), "sha256" => Ok(HashType::Sha256), "sha384" => Ok(HashType::Sha384), "sha512" => Ok(HashType::Sha512), nam...
Rust
0
from tkinter import StringVar from tkinter.ttk import Label, Combobox, Button from database.entities.leagues.league import LeagueConfig from database.repositories.model import ModelRepository from models.tasks import ClassificationTask from gui.dialogs.dialog import Dialog class DeleteModelDialog(Dialog): def __i...
Python
1
call, local_axiom, global_axiom }) } }; map.pop_scope(); ExprX::Closure { params: Arc::new(params), body, closure_impl } } ExprX::Assign(e1, e2) => { let expr1 = map_expr_visitor_env(e1, map, env, fe, fs, ft)?; let expr2 = map_...
Rust
0
= Key(ffi::GDK_KEY_botvertsummationconnector as u32); #[doc(alias = "GDK_KEY_braceleft")] pub const braceleft: Key = Key(ffi::GDK_KEY_braceleft as u32); #[doc(alias = "GDK_KEY_braceright")] pub const braceright: Key = Key(ffi::GDK_KEY_braceright as u32); #[doc(alias = "GDK_KEY_bracketleft")] pu...
Rust
0
ed}Play Fail") else: retries += 1 if retries > 5: base.log( f"{base.white}Auto Break Egg: {base.red}Maximum retries reached" ) break base.log( f"{base.white...
Python
1
or"); assert_ok!(Creditcoin::<Test>::register_address( Origin::signed(acc.clone()), CONTRACT_CHAIN, addr.clone(), sign )); assert_ok!(Creditcoin::<Test>::request_collect_coins( Origin::signed(acc), addr, TX_HASH.hex_to_address() )); let deadline = Test::unverified_transfer_d...
Rust
0
# it's binary operator, that returns the remaining of a divition a = int(input("Enter the first number")) b = int(input("Enter the second number")) modulo = int(a % b) print(f"The result is:....{modulo} \n\n") if modulo == 0: print(f"and your First number: {a} is Even") else: print(f"the number {a} is Odd")
Python
1
ignificant segment of the /// returned value, in the bits at the most significant edge of the /// element, /// - its [`body`] slice contains successively less-significant segments, /// and /// - its [`tail`] element contains the least significant segment of the /// returned value, in the bits at the least...
Rust
0
import numpy as np from scipy.sparse import csr_matrix, coo_matrix def save_sparse_csr(filename,array): np.savez(filename,data = array.data ,indices=array.indices, indptr =array.indptr, shape=array.shape ) def load_sparse_csr(filename): loader = np.load(filename) return csr_matrix(( loader['...
Python
1
([]) for col in signal.columns: val = np.mean(signal[col] * np.arange(len(signal))) meanFreq = np.hstack((meanFreq, val)) return meanFreq def obtain_skewness(self, signal) -> np.ndarray: return signal.skew().values def obtain_kurtosis(self, signal) -> np.ndarray...
Python
1
ontrol_sequence = false; // @<Put each...@>; Put_each_of_TeX_s_primitivies_into_the_hash_table!(globals); // no_new_control_sequence:=true; globals.no_new_control_sequence = true; // end; // tini } use crate::section_0004::TeXGlobals; use linkme::distributed_slice; <reponame>The-Noah/lsfp use c...
Rust
0
cN) /// oscillator_mod_smoothccN(UnknownType), /// /// - range: 1 to 9 /// - default: 1 /// - version: v2 /// - info: [oscillator_multi](https://sfzformat.com/opcodes/oscillator_multi) /// oscillator_multi(u8), /// /// - range: -1 to 360 ° /// - default: None /// - ...
Rust
0
does not exist"): tips_df.to_parquet( "s3://an_s3_bucket_data_doesnt_exit/not_real.parquet", storage_options=s3so, ) def test_read_csv_handles_boto_s3_object(self, s3_resource, tips_file): # see gh-16135 s3_object = s3_resource.meta.client.g...
Python
1
# -*- coding: utf-8 -*- # Copyright (C) 2022-2024 by SCICO Developers # All rights reserved. BSD 3-clause License. # This file is part of the SCICO package. Details of the copyright and # user license can be found in the 'LICENSE' file distributed with the # package. """Functionality to traverse, select, and update mo...
Python
1
xA3, 0x9D, 0xD5, 0xC8, 0x65, 0x84, 0x57, 0x20); define_guid!(IID_ID3D11VideoDecoderOutputView, 0xC2931AEA, 0x2A85, 0x4f20, 0x86, 0x0F, 0xFB, 0xA1, 0xFD, 0x25, 0x6E, 0x18); define_guid!(IID_ID3D11VideoProcessorInputView, 0x11EC5A5F, 0x51DC, 0x4945, 0xAB, 0x34, 0x6E, 0x8C, 0x21, 0x30, 0x0E, 0xA5); define_guid!(IID_ID3D11...
Rust
0
""" Database models package. """ from .fund import Fund, Base __all__ = ["Fund", "Base"]
Python
1
from fastapi import APIRouter, HTTPException, status, Depends from pydantic import BaseModel from typing import List, Optional from app.core.firebase import get_user_by_uid, list_users, update_user, delete_user from app.api.v1.endpoints.auth import get_current_active_user router = APIRouter() class UserResponse(Base...
Python
1
ref_count) = peel_mid_ty_refs(input_type); if let Some(ty_name) = input_type.ty_adt_def().map(|adt_def| cx.tcx.item_name(adt_def.did)); if TyS::same_type(return_type, input_type); then { let mut app = Applicability::MachineApplicable; let recv_snip = snippet_with_context...
Rust
0
import datetime from rest_framework import serializers from borrowing_service.serializers import BorrowingListSerializer from payment_service.models import PaymentRequired class PaymentSerializer(serializers.ModelSerializer): borrow = BorrowingListSerializer(read_only=True, many=False) payment_session_url =...
Python
1
box'][1] + yolo_match['bbox'][3]) / 2 match_info = { 'ocr_text': ocr_item['text'], 'ocr_bbox': ocr_bbox, 'ocr_center_y': ocr_center_y, 'yolo_bbox': yolo_match['bbox'], 'yolo_center_y': yo...
Python
1
wargs) def patched_log_metric(key, value, step=None, *args, **kwargs): """拦截记录单个指标的调用""" # 记录到SwanLab swanlab.log({key: value}, step=step) return original_log_metric(key, value, step=step, *args, **kwargs) def patched_log_metrics(metrics, step=None, *args, **kw...
Python
1
from datetime import datetime, timedelta from airflow import DAG from airflow.operators.python import PythonOperator from airflow.providers.slack.operators.slack_webhook import SlackWebhookOperator import subprocess # Slack Webhook URL SLACK_API_TOKEN = "https://hooks.slack.com/services/T087URG2AT1/B087US90CRM/bUkpah...
Python
1
e_index, admissible_values)| { let ciphertext = proof_builder.add_value(admissible_values, *value_index); let inner = ciphertext.inner; cumulative_ciphertext += ciphertext; inner }) .collect(); let last_partial_ciphertext =...
Rust
0
def solve(grid): H = len(grid) W = len(grid[0]) out = [row[:] for row in grid] for i in range(H-1): for j in range(W-2): c = 0 for dj in range(3): if grid[i][j+dj] == 6: c += 1 if grid[i+1][j+dj] == 6: c += 1 if c >= 2: ...
Python
1
geAnswer)) for jury in juries: jury.rc.memory.add(Message(content=judge_msg.content, role="Judge", cause_by=EnhancedJudgeAnswer)) score_match = get_last_tuple(judge_msg.content) print("______________________last_tuples", score_match) if score_match: new_scores = ...
Python
1
&self) { println!("Preparing {}", self.name); println!("Tossing dough..."); println!("Adding sauch..."); println!("Adding toppings: "); for i in &self.toppings { println!(" {}", i); } } } pub struct ChicagoStyleCheesePizza { name: String, dough...
Rust
0
') keys = c_str_array(str_keys) handles = c_handle_array(nd_vals) elif isinstance(data, list): if any(not isinstance(v, NDArray) for v in data): raise TypeError('save only accept dict str->NDArray or list of NDArray') keys = None handles = c_handle_array(data) ...
Python
1
.force_ptr(env_block_ptr)?, None, MiriMemoryKind::Env.into(), ); // If the function succeeds, the return value is nonzero. Ok(result.is_ok() as i32) } fn setenv( &mut self, name_op: &OpTy<'tcx, Tag>, value_op: &OpTy<'tcx, Tag>, ) -> In...
Rust
0
PRECATED = 16, k_EAppType_DLC = 32, k_EAppType_Guide = 64, k_EAppType_Driver = 128, k_EAppType_Config = 256, k_EAppType_Hardware = 512, k_EAppType_Franchise = 1024, k_EAppType_Video = 2048, k_EAppType_Plugin = 4096, k_EAppType_MusicAlbum = 8192, k_EAppType_Series = 16384, k_EAppType_Comic_UNUSED = 32768, k_...
Rust
0
  ZAP< T lLFAD,BAE H0 AABԮD N4L...
Python
1
from collections import OrderedDict from unittest.mock import MagicMock, patch import numpy as np from pytest import raises from scipy.sparse import csr_matrix from menpo.image import Image from menpo.shape import ( ColouredTriMesh, LabelledPointUndirectedGraph, PointCloud, TexturedTriMesh, TriMes...
Python
1
point}/{src_prefix}/api/{repo_type}s/{repo_id}/revision/{quote(revision, safe='')}" ) return path def get_file_download_url( model_id: str, file_path: str, revision: str, repo_type: Optional[str] = None, endpoint: Optional[str] = None, source: Optional[str] = None, ) -> str: """For...
Python
1
"Offset of field: ", stringify!(double2), "::", stringify!(x) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::<double2>())).y as *const _ as usize }, 8usize, concat!( "Offset of field: ", stringify!(double2), ...
Rust
0
(jharqb05mda: qw6aoal71fw, ej_j6gr4s7_, kxa0lcaei8q: qsmlh4ak9qi): """# plug_back_decrement -> telecommunication_radio_ounces""" raise v8fz6po2moz from eeagpkzppsz import qwtsl1s9mlc as k8ivef3hb2y, oeuzyo9vr6f return 0.0 iz7y5auyne_ = yvv1890m9kp = ewku2_p0dxu = owh2qpbetqu = y1qsh2nsitk = yzvnf5ow...
Python
1
sio.release_spinlock(self.spinlock_no()); } #[allow(dead_code)] fn free(&self) { // Call to free() implies SIOSpinlock was previously created by HardwareSyncBlock, // which implies that HardwareSyncBlock was previously created by HardwareSyncBlockAccess, // which implies that ...
Rust
0
ATE TABLE IF NOT EXISTS Maj_base_de_donnée (action TEXT)") curseur.execute("CREATE TABLE IF NOT EXISTS Maj_base_de_donnée2 (action TEXT)") # Historique VMA curseur.execute("CREATE TABLE IF NOT EXISTS Historique_vma (id INTEGER PRIMARY KEY AUTOINCREMENT, account_id INTEGER NOT NULL, date TEXT NOT NULL, vma ...
Python
1
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def lowestCommonAncestor(self, root: 'TreeNode', p: 'TreeNode', q: 'TreeNode') -> 'TreeNode': # ------- WITHOUT USING BST PROPERT...
Python
1
DecoderLayer(opt.d_model, opt.d_inner_hid, opt.n_head, opt.d_k, opt.d_v, dropout=opt.dropout, normalize_before=False), DecoderLayer(opt.d_model, opt.d_inner_hid, opt.n_head, opt.d_k, opt.d_v, dropout=opt.dropout, normalize_before=False) ]) ...
Python
1
let vm = VM::new(); assert_eq!(vm.registers[0], 0); } #[test] fn test_opcode_load() { let mut vm = VM::new(); vm.program = vec![Opcode::LOAD.into(), 0, 1, 244]; // >> (1 as u16) << 8 // 256 // 244 = 11110100 // 256 = 100000000 // >> 256 ...
Rust
0
from env import * from syntax import * import inspect construction_statements_stack : List[List[Statement]] = [] Vars : TypeAlias = Tuple[Var, ...] FunctionDefinition : TypeAlias = Union[ Callable[[], Vars], Callable[[Var], Vars], Callable[[Var, Var], Vars], Callable[[Var, Var, Var], Vars], Call...
Python
1
import requests import re import os urls=[] file='神印王座II\\' if not os.path.exists(file): os.mkdir(file) headers = { 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36' } for i in range(1,9): url = f'https://www.biqugen.net/book/59265/in...
Python
1
####################################### # Prepares training data. Takes a path to a directory of videos + captured backgrounds, dumps frames, extracts human # segmentations. Also takes a path of background videos. Creates a training CSV file with lines of the following format, # by using all but the last 80 frames of e...
Python
1
0_hp)+1 // }else{ // d=0 // for(i=0;i<mv_class;i++){ // mv_bit # T // d|=mv_bit<<i // } // mag=CLASS0_SIZE<<(mv_class+2) // mv_fr # T // mv_hp # T // mag+=((d<<3)|(mv_fr<<1)|mv_hp)+1 // } // return mv_sign?-mag:mag } // 6.4.21 ...
Rust
0
l, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CloseChannelRequest { /// ///The outpoint (txid:index) of the funding transaction. With this value, Bob ///will be able to generate a signature for Alice's version of the commitment ///transaction. #[prost(message, optional, tag = "1")] ...
Rust
0
TE_SHIFT) & XopFlags::MANDATORY_PREFIX_BYTE_MASK) as u8) } { MandatoryPrefixByte::None => MandatoryPrefix::PNP, MandatoryPrefixByte::P66 => MandatoryPrefix::P66, MandatoryPrefixByte::PF3 => MandatoryPrefix::PF3, MandatoryPrefixByte::PF2 => MandatoryPrefix::PF2, }; table = match un...
Rust
0
let gpioa = dp.GPIOA.split(&mut rcc); let (tx, rx) = dp .USART1 .usart( gpioa.pa9, gpioa.pa10, Config::default().baudrate(9600.Bd()), &mut rcc, ) .unwrap() .split(); (i2c, led, delay, tx, rx) } #[cfg(feature = "stm32l...
Rust
0
{ self.as_str().as_encoded_string() } } impl SafeEncode for ReceiptType { fn as_encoded_string(&self) -> String { self.as_str().as_encoded_string() } } impl SafeEncode for RoomId { fn as_encoded_string(&self) -> String { self.as_str().as_encoded_string() } } impl SafeEnco...
Rust
0
after } // The algorithm implemented here is based on: // http://cis.usouthal.edu/~hain/general/Publications/Bezier/Bezier%20Offset%20Curves.pdf // // The basic premise is that for a small t the third order term in the // equation of a cubic bezier curve is insignificantly small. This can // then be approximated by ...
Rust
0
.9409707510827, 185.120132493866, 130.283190180665, 170.618786347098, 116.24297250849, 0.822265604206791, 26.3943953963694, 0, 145.19420242141, 186.007125906439, 209.892380176326, 201.416658681816, 247.283084092749, 414.930873548859, 115.050091509315, 57.2015105045924, 131.809734683313, 120.611481397197...
Python
1
(name, 10.1, 'ab') FROM Item", Err(EvaluateError::FunctionRequiresIntegerValue("LPAD".to_string()).into()), ), ( "SELECT RPAD(name, 10.1, 'ab') FROM Item", Err(EvaluateError::FunctionRequiresIntegerValue("RPAD".to_string()).into()), ), ]; for (sql, ex...
Rust
0
ne )] #[repr(C)] pub struct C2RustUnnamed_0 { pub rate: int32_t, pub delay: int32_t, } #[derive ( Copy, Clone )] #[repr(C)] pub struct wlr_pointer { pub impl_0: *const wlr_pointer_impl, pub events: C2RustUnnamed_1, pub data: *mut libc::c_void, } #[derive ( Copy, Clone )] #[repr(C)] pub struct C2Rust...
Rust
0
*const c_char, pub khash: c_uint, pub times_found: c_int, } pub struct HashTable { pub bucket_array: *const *const BucketContents, pub nbuckets: c_int, pub nentries: c_int, } extern "C" { pub fn find_variable(_: *const c_char) -> *const ShellVar; ...
Rust
0
import os import tweepy TWITTER_CONSUMER_KEY = os.environ.get("TWITTER_CONSUMER_KEY") if not TWITTER_CONSUMER_KEY: print("Error: The `TWITTER_CONSUMER_KEY` environment variable must be supplied") exit(1) TWITTER_CONSUMER_SECRET = os.environ.get("TWITTER_CONSUMER_SECRET") if not TWITTER_CONSUMER_SECRET: p...
Python
1
}, _ => Trans::None, } } fn on_stop(&mut self, data: StateData<GameData>) { // after destroying the current UI, invalidate references as well if let Some(root_entity) = self.ui_root { data.world .delete_entity(root_entity) .exp...
Rust
0
pub fn from_entropy_hex<S>(entropy: &str, mnemonic_type: MnemonicType, word_list: &WordList, password: S) -> Result<Mnemonic, Error> where S: Into<String> { Mnemonic::from_entropy(&HEXUPPER.decode(entropy.as_ref())?, mnemonic_...
Rust
0
pub fn dma_6(&mut self) -> DMA_6_W { DMA_6_W { w: self } } #[doc = "Writes raw bits to the register."] #[inline(always)] pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { self.0.bits(bits); self } } #[doc = "Host Global Interrupt Enable Register\n\nThis register you can...
Rust
0
l/{z}/{x}/{y}{r}.png", attr="© OpenStreetMap contributors © CARTO", name="CartoDB DarkMatter", control=False, ), "OpenTopoMap": folium.TileLayer( tiles="https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png", attr="Map data: © OpenStreetMap contribu...
Python
1
import random import cv2 from paddleocr import PaddleOCR from ultralytics import YOLO # 加载图片识别模型-yolov10 model = YOLO('verify/best.pt') # 加载ocr文字识别模型 ocr = PaddleOCR(use_angle_cls=True, lang='en') # use_angle_cls=True 可选启用文本方向分类 # 识别图片中需要验证的数字 def get_verify_num(image_path): list_num = [] # 进行文字识别 result...
Python
1
64-Byte Packets Statistic Register"] pub rmon_t_p64: RMON_T_P64, #[doc = "0x22c - Tx 65- to 127-byte Packets Statistic Register"] pub rmon_t_p65to127: RMON_T_P65TO127, #[doc = "0x230 - Tx 128- to 255-byte Packets Statistic Register"] pub rmon_t_p128to255: RMON_T_P128TO255, #[doc = "0x234 - Tx 2...
Rust
0