text
string
label_name
string
labels
int64
Γροιλανδία', 'el-polyton': 'Γροιλανδία', 'en': 'Greenland', 'en-Dsrt': '𐐘𐑉𐐨𐑌𐑊𐐲𐑌𐐼', 'eo': 'Gronlando', 'es': 'Groenlandia', 'et': 'Gröönimaa', 'eu': 'Groenlandia', 'ewo': 'Goelán', 'fa': 'گرینلند', 'ff': 'Gorwendland', 'ff-Adlm': '𞤘𞤭𞤪𞤤𞤢𞤲𞤣𞤭', 'ff-Latn': 'Gorwendland', 'fi': 'Grönlanti', 'fil': 'Greenland'...
Python
1
sociated with this process. In addition there are facilities for converting thumb instructions into their ARM counterpart, used for when the processor is in thumb mode. */ /* The different types of ARM instructions */ #[derive(Debug, PartialEq, Clone, Copy)] pub enum ArmInstType { DataProcessing, PSRTransfer,...
Rust
0
Args: models: List of models that can be queried. datasets: List of datasets that can be queried. model_to_split_mapping: List of tuples, indicating how each model should query the dataset. More specifically, for model #i: model_to_split_mappi...
Python
1
''' ps.py Linux parsers for the following commands: * ps -ef * ps -ef | grep {grep} ''' # Python import re # Metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, Any, Optional # parser utils from genie.libs.parser.utils.common import Common # ===========...
Python
1
_token(conn: &PgConnection, token_: &str) -> AppResult<ApiToken> { use crate::schema::api_tokens::dsl::*; use diesel::{dsl::now, update}; if !token_.starts_with(TOKEN_PREFIX) { return Err(InsecurelyGeneratedTokenRevoked::boxed()); } let tokens = api_tokens ...
Rust
0
for i in range(n_amps-1, -1, -1): coef = sqrt(coef_norm) * sin(ilc_params[i]) coefs[i] = coef coef_norm -= coef**2 # the remainder of coef_norm is |c_0|^2 coefs.insert(0, -sqrt(coef_norm)) # second, recast {c_n} into tau, {alpha_i}; # c_0 = cos(tau); c_n = sin(tau) * alpha_n...
Python
1
_id.to_string()), crate::progenitor_support::encode_path(&article_id.to_string()), ); self.client.delete(&url, None).await } /** * Retrieves a list all of article authors. * * This function performs a `GET` to the `/admin/api/2020-04/articles/authors.json` endpoint. ...
Rust
0
1000, 5000, *list(range(10000, 1000001, 10000))] parser.add_argument('--ip', type=str, default="127.0.0.1") parser.add_argument('--port', type=int, default=6009) parser.add_argument('--detect_anomaly', action='store_true', default=False) parser.add_argument("--test_iterations", nargs="+", type=int, defa...
Python
1
from environment import Environment import restraining_bolt as rb from automaton import DFA if __name__ == '__main__': env = Environment('layouts/basic.txt', risk=1) automata = [] # The merchant ought not extract wood # Viol: F(at_tree & Extract) def trans0a(l): if 'at_tree' in l and 'Extr...
Python
1
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ dataset.py ] # Synopsis [ the dataset that applies the spec augment pre-training task ] # Author [ Andy T. Liu (https://github.com/andi611) ] # Copyright [ ...
Python
1
pl From<HttpError> for Error { fn from(e: HttpError) -> Error { Error::HttpError(e) } } /// Used to load "bootstrap" information from the HTTP API of another Lighthouse beacon node. /// /// Bootstrapping information includes things like genesis and finalized states and blocks, and /// libp2p connection...
Rust
0
ol_piv_qr.unpack(); let mut qr = q * r; p.inv_permute_columns(&mut qr); assert!(relative_eq!(m, qr, epsilon = 1.0e-7)); } #[cfg(feature = "proptest-support")] mod proptest_tests { macro_rules! gen_tests( ($module: ident, $scalar: expr ,$scalar_type: ty) => { mod $module { ...
Rust
0
import sys import os import subprocess try: import pyautogui from PyQt5.QtCore import QUrl from PyQt5.QtWidgets import QApplication from PyQt5.QtWebEngineWidgets import QWebEngineView from PyQt5.QtNetwork import QNetworkProxy from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5....
Python
1
>>> log_to_real(Poly(x + 3*y/2 + S(1)/2, x, domain='QQ[y]'), ... Poly(3*y**2 + 1, y, domain='ZZ'), x, y) 2*sqrt(3)*atan(2*sqrt(3)*x/3 + sqrt(3)/3)/3 >>> log_to_real(Poly(x**2 - 1, x, domain='ZZ'), ... Poly(-2*y + 1, y, domain='ZZ'), x, y) log(x**2 - 1)/2 See Also ======...
Python
1
faults to 0x0c. pub fn new( i2c_bus: i32, i2c_addr: Option<u16>, sensitivity: Sensitivity, sample_rate: SampleRate) -> Result<Ak8963, LinuxI2CError> { let mut i2c_dev = LinuxI2CDevice::new( get_i2c_bus_path(i2c_bus), i2c_addr.unwrap_or(0x0c))?; let fa...
Rust
0
# web weixin agent import os, sys import json, re import time import asyncio import quamash import requests from PyQt5.QtCore import * from PyQt5.QtNetwork import QNetworkReply from PyQt5.QtDBus import * from .wxcommon import * from .wxsession import * from .wxprotocol import * from .txbase import TXBase, AgentCooki...
Python
1
= collections.defaultdict(list) @contextmanager def timed(self, name): self.records[name] start_time = time.perf_counter() try: yield finally: end_time = time.perf_counter() - start_time self.records[name].append(end_time) def print_resul...
Python
1
key_mapping[f"transformer.resblocks.{layer}.ln_1.bias"] = f"blocks.{layer}.norm1.bias" key_mapping[f"transformer.resblocks.{layer}.mlp.c_fc.weight"] = f"blocks.{layer}.mlp.fc1.weight" key_mapping[f"transformer.resblocks.{layer}.mlp.c_fc.bias"] = f"blocks.{layer}.mlp.fc1.bias" key_mapping[f"tra...
Python
1
fn(T, usize, usize, usize, *mut bool); // fn (&self, sender: usize, dragObject: *mut usize) pub type TStartDockEvent<T> = fn(T, usize, *mut usize); // fn (&self, sender: usize, dockClient: usize, influenceRect: *mut TRect, mousePos: *mut TPoint, canDock: *mut bool) pub type TGetSiteInfoEvent<T> = fn(T, usize, usize, ...
Rust
0
.clone(); let segment_gc_running = metric_builder .gauge("running_task_total") .finish() .expect("metric should be well-formed"); let segment_gc_waiting = metric_builder .gauge("waiting_task_total") .finish() .expect("metric should ...
Rust
0
WalletKeys::SeedWordsFile => { let sw_file = get_seed_words_file(&wallet_dir); let seed_words = fs::read_to_string(sw_file.clone()).context("loading seed words")?; let mnemonic = Mnemonic::from_phrase(&seed_words, Language::English).map_err(|e| { anyhow!( ...
Rust
0
imates:", finetune_means) print("The means of the errors:", error_means) #print("The error variances:", error_var) # print result if result.success: M_num = 2**10 optimized_m = result.x optimized_f = 2* np.pi * optimized_m / (M_num * T) p...
Python
1
import marimo __generated_with = "0.14.17" app = marimo.App(width="full") @app.cell def _(): import marimo as mo return (mo,) @app.cell def _(mo): mo.md("""# Eval Finder Widget Example""") return @app.cell def _(mo): mo.md( """ ## Widget Features The Eval Finder Widget provi...
Python
1
"sequence_name": seq_dir.name, "path_to_pdb": str(pdb_path.resolve()) } # add confidence json keys with confidence_json_path.open() as f: confidence_data = json.load(f) for key, val in confidence_data.items(): if key in ("chains_ptm", "pair_chain...
Python
1
esult); println!(); println!("Time: {:.7}", end); } <filename>src/mcu.rs use bare_metal::Peripheral; use volatile_register; use core; /// We'd like to use bitflags! in here, but the atdf files /// don't hold complete information so we need a weaker implementation /// that allows the user to poke in what they n...
Rust
0
if i%100000 == 0 {println!("{}/{} {}", i, str.len(), now.elapsed().as_millis());} if true { let mut max_potential_match = 25; loop { let mpm_fix = std::cmp::min(str.len()-i, max_potential_match); let matchlen = find_longest_match_disk(&text, &mut table, &str[i..i+mpm_fix]).0; ...
Rust
0
# coding: utf-8 """ Xero Accounting API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel ...
Python
1
import re import pandas as pd import numpy as np from pymongo import MongoClient def train_test_split(df, n=3, frac=0.25): """Filter out users with >3 ratings. For users with 3 rating, put 2 ratings in training set, 1 rating in test set. For users with more than 3 ratings, divide the total number of rating...
Python
1
#!/usr/bin/env python3 """Utility to show pywikibot colors.""" # # (C) Pywikibot team, 2016-2024 # # Distributed under the terms of the MIT license. # from __future__ import annotations import pywikibot from pywikibot.backports import batched from pywikibot.userinterfaces.terminal_interface_base import colors def ma...
Python
1
ecimalField(max_digits=20, decimal_places=4, null=True, blank=True) cantidad = models.DecimalField(max_digits=20, decimal_places=4, null=True, blank=True) cargo = models.DecimalField(max_digits=20, decimal_places=2, null=True, blank=True) abono = models.DecimalField(max_digits=20, decimal_places=2, null=Tru...
Python
1
jobs else "Bilinmiyor" # Özet tablosu summary_table = Table(title="Multiplayer Özet", box=ROUNDED) summary_table.add_column("İstatistik", style="bright_cyan") summary_table.add_column("Değer", style="bright_yellow") summary_table.add_row("Toplam Oyuncu", str(to...
Python
1
PushLong, 0x6), Expr.Equ, Expr.Return, ), 'loc_4DF', ) OP_99(0x00FE, 0x06, 0x07, 1350) Jump('loc_58B') def _loc_4DF(): pass label('loc_4DF') If( ( (Expr.PushReg, 0x1), (Expr.PushLong, 0x7), Expr.Equ, ...
Python
1
Class','<B=0'), ('BufferLength','<L=0'), ('BufferOffset','<H=(self.SIZE + 64 + len(self["AlignPad"]))'), ('Reserved','<H=0'), ('AdditionalInformation','<L=0'), ('FileID',':',SMB2_FILEID), ('_AlignPad','_-AlignPad','self["BufferOffset"] - (64 + self["StructureSize"] - 1)'), ...
Python
1
h.canonicalize().expect(&format!( "Cannot resolve {} at {:?}", name, program_path.display() )) } <reponame>M4tsuri/OrustS //! Support for some useful ATA PIO commands //! See https://wiki.osdev.org/ATA_PIO_Mode pub mod pio; #[cfg(feature = "alloc")] extern crate alloc; #[cfg(feature = "al...
Rust
0
itme_one = int(input('Itme one: ')) itme_two = int(input('Itme two: ')) itme_three = int(input('Itme three: ')) total = itme_one +\ itme_two +\ itme_three print(total)
Python
1
#!/usr/bin/env python import os def cmd(s): print s return os.popen(s).read() def cmd2(s): print s if os.system(s): raise RuntimeError return def backup_cassandra(dc, hosts): TARGET = "/backups/cassandra-dc%s"%(dc,) # first rsync the live snapshots and backups directories f...
Python
1
rsion::V1_1, &extensions, None) { /// Ok(i) => i, /// Err(err) => panic!("Couldn't build instance: {:?}", err) /// }; /// ``` /// /// # Layers /// /// When creating an `Instance`, you have the possibility to pass a list of **layers** that will /// be activated on the newly-created instance. The list of availabl...
Rust
0
UnicodeDecodeError as ue: salvage = dec(bs, 'replace')[0] if 'start' in ue.__dict__: # XXX 'start' is in bytes, not characters. This is wrong for multibyte # encodings pos = _position(salvage, ue.start) else: pos = None _logEvent(loggedEvents, logging.UnicodeError({"exception"...
Python
1
o i need present_queue ??"); // Create vertex buffer let vertex_datas: Vec<Vector3<f32>> = vec![ Vector3::new(-0.5, -0.5, 0.0), Vector3::new(0.0, 0.5, 0.0), Vector3::new(0.5, -0.5, 0.0) ]; let vertex_stride = std::mem::size...
Rust
0
:engine::prelude::*; use futures::executor::block_on; use std::path::Path; pub fn init(window: &mut winit::window::Window) -> Result<Engine, EngineError> { let engine = block_on(Engine::new(window, &Path::new("src/demo"))); // engine.set_music(include_bytes!("assets/musa.mp3")); // let buffer = Rc::new(t...
Rust
0
"""Command is active if at least one CAM job exists""" if FreeCAD.ActiveDocument is not None: for o in FreeCAD.ActiveDocument.Objects: if o.Name[:3] == "Job": return True return False def Activated(self): """Activate the simulation""" ...
Python
1
= "< X axis translation."] pub const _spinChunkScan3dCoordinateReferenceSelectorEnums_ChunkScan3dCoordinateReferenceSelector_TranslationX : _spinChunkScan3dCoordinateReferenceSelectorEnums = 3 ; #[doc = "< Y axis translation."] pub const _spinChunkScan3dCoordinateReferenceSelectorEnums_ChunkScan3dCoordinateReferenceSel...
Rust
0
f.assertEqual(e.code, 0) self.assertTrue( (self.test_dir / "ControlParams_000/InitialData.yaml").exists() ) # Test with pipeline directory try: generate_id_command( common_args + [ "-d", str(s...
Python
1
wiki " + "page for modprobed-db.", required=False, dest='should_modprobed_db', action='store_true') io_parser_group.add_argument( "-j", "--ncores", help="The number of cores to use during makepkg. Must be an integer value. Unspecified or <1 will default to all available cores (from `nproc`)...
Python
1
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.TemplateFormFields import TemplateFormFields class TemplateFormConfig(object): def __init__(self): self._fields = None self._open_card_mini_app_id = None ...
Python
1
_bias, Ld4_bias, Ld8_bias, Ld1_acq, Ld2_acq, Ld4_acq, Ld8_acq, Ld8_fill, Ld1_c_clr, Ld2_c_clr, Ld4_c_clr, Ld8_c_clr, Ld1_c_nc, Ld2_c_nc, Ld4_c_nc, Ld8_c_nc, Ld1_c_clr_acq, Ld2_c_clr_acq, Ld4_c_clr_acq, Ld8_c_clr_acq, St1, St2, St4, ...
Rust
0
spi, spi::Pins { sclk, sdo, sdi: Option::<gpio::Gpio21<gpio::Unknown>>::None, cs: Some(cs), }, config, )?, dc.into_output()?, ); let reset = rst.into_output()?; let mut display = ...
Rust
0
IND, CallKind::DelegateCall) { state.message.value } else { value }, input_data: input_region .map(|MemoryRegion { offset, size }| { state.memory[offset..offset + size.get()].to_vec().into() }) .unwrap_or_default(), ...
Rust
0
) -> Self { let title_txt = graphics::Text::new(ctx, title, assets.get_font("ui").unwrap()).unwrap(); Self { top_left, title_text: title_txt, shape, } } pub fn update(&mut self, _: &mut Context, _: &Assets, new_value: Option<PieceType>) { ...
Rust
0
class Solution: def buddyStrings(self, s: str, goal: str) -> bool: d1 = Counter(s) d2 = Counter(goal) if len(s) != len(goal): return False if s == goal: for i in d1: if d1[i] >= 2: return True return False ...
Python
1
'c: 'a, { /* * Target := SuperName | NullName * NullName := 0x00 */ comment_scope( DebugVerbosity::AllScopes, "Target", choice!(null_name().map(|_| Ok(Target::Null)), super_name()), ) } pub fn super_name<'a, 'c>() -> impl Parser<'a, 'c, Target> where 'c: 'a, {...
Rust
0
ain, we can just write 1 here, but when we use left shift, // it's easier to see that we're trying to write bit index #0. ptr.add(2).write_volatile(1 << 0); // Enable receiver buffer interrupts, which is at bit index // 0 of the interrupt enable register (IER at offset ...
Rust
0
me False sage: t2 == t3 True """ old_value = None try: with open(fn) as file: old_value = file.read() except OSError: pass if value != old_value: # We try to remove the file, in case it exists. This is to # automatically break ha...
Python
1
} } #[derive(Clone, Debug, PartialEq, Serialize)] pub struct MergeRaw<'script> { pub start: Location, pub end: Location, pub target: ImutExprRaw<'script>, pub expr: ImutExprRaw<'script>, } impl<'script> Upable<'script> for MergeRaw<'script> { type Target = Merge<'script>; fn up<'registry>(self...
Rust
0
getObjPoints()) # hoge cv2.imwrite("./data/charuco.png", img) marker_size_meter = 0.012 tex_size_meter = compute_tex_size( img.shape[:2][::-1], board.getChessboardSize(), marker_size_meter ) pix2meter = tex_size_meter[0] / img.shape[1] vertices, uvs, faces = make_board_mesh(tex_s...
Python
1
che() # Get NaN values to interpolate maskNaN = ~np.isnan(slr_image) # Create and fill a dataset with NaN values previously obtained: mask_driver = gdal.GetDriverByName('MEM').Create('', original_driver.RasterXSize, original_driver.RasterYSize, grd_image_driver.RasterCo...
Python
1
#========================================================================= # Prob17p01_seq_mem_8x8b_1r1w_rf_test #========================================================================= # SPDX-License-Identifier: MIT # Author : Christopher Batten, NVIDIA # Date : May 20, 2024 from pyhdl_eval.cfg import Config, In...
Python
1
#[cfg(feature = "mpi-venc")] impl_as_bundle_many!( VENC_ATTR_H264_S, // VENC_ATTR_H265_S, VENC_ATTR_JPEG_S, VENC_ATTR_MJPEG_S, // VENC_ATTR_PRORES_S, VENC_ATTR_S, VENC_CHN_ATTR_S, VENC_CHN_STATUS_S, // VENC_GOP_ATTR_S, // VENC_GOP_ADVSMARTP_S, // VENC_GOP_BIPREDB_S, // ...
Rust
0
_63M35, TWO_63M35]; // p224P is the order of the field, represented as a p224FieldElement. const P224_P: [u32; 8] = [1, 0, 0, 0xffff000, 0xfffffff, 0xfffffff, 0xfffffff, 0xfffffff]; type P224FieldElement = [u32; 8]; const PFE_DF: [u32; 8] = [0u32; 8]; /// LargeFieldElement also represents an element of the field. Th...
Rust
0
import requests import string, json, requests, random from os import system from time import sleep import socket import time from pystyle import Colorate, Colors, Center print(Colorate.Horizontal(Colors.red_to_blue, """ ██╗ ██╗██╗██████╗ ██╗ ██╗███████╗ ███████╗██╗ ██╗███████╗ ██║ ██║██║██╔══██╗██║ ██║██╔...
Python
1
#[allow(unused_mut)] let mut entry_3689 = list_3688.entry(); crate::query_ser::serialize_structure_crate_model_filter(entry_3689, item_3687)?; } list_3688.finish(); } #[allow(unused_mut)] let mut scope_3690 = writer.prefix("VolumeId"); if let Some(var_...
Rust
0
fuse::NodeName::from_bytes(b"entry_b").unwrap(), NonZeroU64::new(cursor).unwrap(), ); entry.set_file_type(fuse::FileType::Symlink); return send_reply.ok(&resp).unwrap(); } if cursor == 2 { cursor += 1; let entry = resp.add_entry( fuse::NodeId::new(12).unwrap(), fuse::NodeName::from_byte...
Rust
0
s' dot11_decoder = Dot11Decoder() dot11_decoder.FCS_at_end(False) dot11_decoder.set_key_manager(self.km) dot11_decoder.decode(self.dot11frame) wepdata = dot11_decoder.get_protocol(Dot11WEPData) # The encrypted ICV is 0x361b0253, but it not the real, # we...
Python
1
d under the MIT license. #[macro_use] extern crate serde_derive; use self::installations::InstallationsClient; use self::measurements::MeasurementsClient; #[macro_use] mod models; mod client; mod installations; mod measurements; pub struct AirlyClient { installations: InstallationsClient, measurements: Meas...
Rust
0
2. owner is NEVER changed again. // 3. The pointer to owner and dependent never changes, even when moved. // 4. The only access to owner and dependent is as immutable reference. // 5. owner lives longer than dependent. #[doc(hidden)] pub struct JoinedCell<Owner, Dependent> { pub owner: Owner, pub dependent: De...
Rust
0
ER, Copy = SDL_SCANCODE_COPY, CrSel = SDL_SCANCODE_CRSEL, CurrencySubUnit = SDL_SCANCODE_CURRENCYSUBUNIT, CurrencyUnit = SDL_SCANCODE_CURRENCYUNIT, Cut = SDL_SCANCODE_CUT, D = SDL_SCANCODE_D, DecimalSeparator = SDL_SCANCODE_DECIMALSEPARATOR, Delete = SDL_SCANCODE_DELETE, DisplaySwitch = SDL_SCANCODE_D...
Rust
0
############################################################################## # # An example of embedding images into a worksheet cells using the XlsxWriter # Python module. # # This is the equivalent of Excel's menu option to insert an image using the # option to "Place in Cell" which is only available in Excel 365 v...
Python
1
start_shutdown { testnet_runtime::StatusCode::Shutdown } else { testnet_runtime::StatusCode::Error }, }, sudo: testnet_runtime::SudoConfig { // Assign network admin rights. key: root_key.clone(), }, tokens: ...
Rust
0
ata = torch.randn([2, 16], dtype=torch.float32, device=torch.cuda.current_device()) with tempfile.TemporaryDirectory() as tempdir: with raises_with_cause(RuntimeError, match='The weight consumers can either be ALL replicated or ALL partitioned'): parallelize( m, ...
Python
1
# # Copyright (C) 2023, Inria # GRAPHDECO research group, https://team.inria.fr/graphdeco # All rights reserved. # # This software is free for non-commercial, research and evaluation use # under the terms of the LICENSE.md file. # # For inquiries contact george.drettakis@inria.fr # import numpy as np import torch fro...
Python
1
>(self.base.control).unwrap() }; if let Some(ref mut child) = self.child { child.on_removed_from_container(frame2); } unsafe { self.base.on_removed_from_container(); } } fn parent(&self) -> Option<&dyn controls::Member> { self.base.parent() } ...
Rust
0
s_count': len(day_data) }) # Count successful days (not intervals) successful_days = sum(1 for result in daily_results if result['daily_status'] == 'Success') total_days = len(daily_results) # Calculate success rate based on days success_rate_percent = (successful_days / total_days...
Python
1
agesize=100&sort=sal&bid=f8b2a997-94ad-4551-83fc-99ad7772c3c7' rel='True'><div class='menu-banner-inner-img'><img alt='Love Republic ' data-original='//images.wbstatic.net/poster/ru/menuright1/c352x428/LoveRepublic_27_112.jpg' src='//static.wbstatic.net/i/blank.gif' data-id='f8b2a997-94ad-4551-83fc-99ad7772c3c7' /></di...
Python
1
), ( hex!("499FDF9E895E719CFD64E67F07D38E3226AA7B63678949E6E49B241A60E823E4"), hex!("CAC2F6C4B54E855190F044E4A7B3D464464279C27A3F95BCC65F40D403A13F5B"), ), ( hex!("D7924D4F7D43EA965A465AE3095FF41131E5946F3C85F79E44ADBCF8E27E080E"), hex!("581E2872A8...
Rust
0
h torch.no_grad(): text_features = clip_encode_text(prompts, model, tokenizer, device=device, model_from=model_from, normalize=True) text_features = text_features.mean(dim=0) attributes_embeddings.append(text_features) attributes_embeddings = torch.stack(attributes_embeddings, dim=0) ...
Python
1
""" Revision ID: 0178_add_filename Revises: 0177_add_virus_scan_statuses Create Date: 2018-03-14 16:15:01.886998 """ import sqlalchemy as sa from alembic import op revision = "0178_add_filename" down_revision = "0177_add_virus_scan_statuses" def upgrade(): # Deleting the data here is ok because a full migrati...
Python
1
# Shared constant values that apply across all ceph components that manage # smb services (mgr module, cephadm mgr module, cephadm binary, etc) # Generic/common names SMB = 'smb' CTDB = 'ctdb' # Feature names CEPHFS_PROXY = 'cephfs-proxy' CLUSTERED = 'clustered' DOMAIN = 'domain' REMOTE_CONTROL = 'remote-control' S...
Python
1
x[i].style.opacity = deselectedOpacity; } } } showValue.innerHTML = `x: ${(plot.dataX[s][a]).toFixed(xSigDigits+2)}, y: ${(plot.dataY[s][a]).toFixed(ySigDigits+2)}`; }, false); c.addEventListener('mouseout', function() { ...
Rust
0
self.meta_learner.update_metrics("test_agent", metric) # Get historical performance score = self.meta_learner._get_historical_performance("test_agent") # Check score self.assertIsNotNone(score) self.assertTrue(0 <= score <= 1) # Check non-existent agent score...
Python
1
ImageAttachmentDescription { _attachment_image_format: *format, _attachment_image_samples: sample_count, _attachment_load_operation: vk::AttachmentLoadOp::CLEAR, _attachment_store_operation: vk::AttachmentStoreOp::STORE, _attachment_init...
Rust
0
""" 訓練パイプライン使用例 開発者定着予測システムの訓練パイプラインの使用方法を示すサンプルスクリプト。 """ import logging from pathlib import Path import numpy as np import pandas as pd from gerrit_retention.scripts.run_full_training_pipeline import FullTrainingPipeline from gerrit_retention.utils.logger import setup_logger def create_sample_data(): """サンプル...
Python
1
'filledverysmallsquare': '▪', 'fjlig': 'fj', 'flat': '♭', 'fllig': 'fl', 'fltns': '▱', 'fnof': 'ƒ', 'fopf': '𝕗', 'forall': '∀', 'fork': '⋔', 'forkv': '⫙', 'fouriertrf': 'ℱ', 'fpartint': '⨍', 'frac12': '½', 'frac13': '⅓', 'frac14': '¼', 'frac15': '⅕', 'fra...
Python
1
x, parent_index, child_l_index, child_l_aabb, child_r_index, child_r_aabb ); } BVHNode::Leaf { ...
Rust
0
-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. :param include_subaccounts: Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account...
Python
1
delete_many; mod delete_many_relations; mod delete_mutation_relations; mod insert_null_in_required_field; mod non_embedded_upsert; mod update; mod update_many; mod upsert; pub(crate) mod request; pub(crate) mod response; use std::num::NonZeroU64; use std::time::Duration; use snafu::{ResultExt, Snafu}; use tonic::Sta...
Rust
0
xetex_ini::loaded_font_design_size; use crate::xetex_ini::loaded_font_flags; use crate::xetex_ini::loaded_font_letter_space; use crate::xetex_ini::loaded_font_mapping; use crate::xetex_ini::BCHAR_LABEL; use crate::xetex_ini::DEPTH_BASE; use crate::xetex_ini::FONT_AREA; use crate::xetex_ini::FONT_BCHAR; use crate::xetex...
Rust
0
} } #[derive(Debug)] pub struct RwCursorImpl<'c>(pub(crate) lmdb::RwCursor<'c>); impl<'c> BackendRoCursor<'c> for RwCursorImpl<'c> { type Iter = IterImpl<'c, lmdb::RwCursor<'c>>; fn into_iter(self) -> Self::Iter { IterImpl::new(self.0, lmdb::RwCursor::iter) } fn into_iter_from<K>(self, key: ...
Rust
0
t SYMBOL_RANGE_START: u32 = 1; /// /// fn intern_bytes<T>(&mut self, symbol: T) -> Result<Self::Symbol, Self::Error> /// where /// T: Into<Cow<'static, [u8]>> /// { /// let boxed = Box::<[u8]>::from(symbol.into()); /// Box::leak(boxed); /// self.0 += 1; /// let sym = ...
Rust
0
import random def escolher_palavra(palavras): return random.choice(palavras) def exibir_forca(tentativas): forca = """ _______ | | | O | /|\\ | | | / \\ - """ if tentativas <= 6: return forca[:31 - tentativas] else: ...
Python
1
reqwest::Client::new() .delete(&uri) .bearer_auth(self.token.as_ref().unwrap().token.secret()) .header("Content-Type", "application/json") .send() .await .unwrap(); let body = resp.text().await.unwrap(); Ok(body) } } /// Helpe...
Rust
0
der Public Domain / CC0 1.0 Universal # # Improves the speed of all varieties of sandskiffs. They were already # pretty good, honestly, but this makes them better. {harpoon} {rocket} {saw} #</{mod_name}> """.format( mod_name=mod_name, mod_version=mod_version, harpoon=hotfix_stri...
Python
1
> { self.write(reg::INTLEVEL, COMMON_BLOCK_OFFSET, &intlevel.to_be_bytes()) } /// Get the interrupt status. /// /// `1` indicates the interrupt is raised. /// /// # Example /// /// ``` /// # use embedded_hal_mock as hal; /// # let spi = hal::spi::Mock::new(&[ /// # ...
Rust
0
rencyId; type Balance = Balance; type NativeCurrency = Balances; type MultiCurrency = Tokens; type WeightInfo = (); type AdminOrigin = EnsureSignedBy<RootAccount, AccountId>; type GovernanceRegistry = NoopRegistry; type CurrencyValidator = ValidateCurrencyId; } parameter_types! { pub const MinBalance: Balance ...
Rust
0
ration, // The jitter is the amount of per-request response time randomness, // as a fraction of `delay`. The average response time will be // `delay * (1 + jitter)` and will have an exponential distribution // with λ=1. #[serde(default)] jitter: f64, // The concurrency scale is the rate a...
Rust
0
ent): with open('result/Shell_results.txt', 'a') as writer: writer.write('http://' + site + '/tmp/vuln.php' + '\n') wsoShellUploaderModule.UploadWso2(site + '/tmp/vuln.php') IndexCheck = requests.get('http://' + site + '/vuln.htm', time...
Python
1
_unit: __BindgenBitfieldUnit<[u8; 4usize], u16> = Default::default(); __bindgen_bitfield_unit.set(0usize, 8u8, { let type_: u32 = unsafe { ::std::mem::transmute(type_) }; type_ as u64 }); __bindgen_bitfield_unit.set(8usize, 8u8, { let max_resp_time...
Rust
0
f length >= 2", "key": "length_param", "source": "query"}, {"message": "Expected `int`, got `str`", "key": "int_header", "source": "header"}, {"message": "Expected `int`, got `str`", "key": "int_cookie", "source": "cookie"}, ] def test_parse_values_from_connection_kwargs_with_multiple_...
Python
1
map(|(id, key)| (id.as_str(), key)) .collect(); let msg = match enc_alg_auth { AuthCryptAlg::A256cbcHs512Ecdh1puA256kw => jwe::encrypt::< AesKey<<KEY>>, Ecdh1PU<'_, P256KeyPair>, P256KeyPair, Aes...
Rust
0
from django.db import models from api.models.user import User class WorkspaceUser(models.Model): class Role(models.TextChoices): OWNER = "Owner" EDITOR = "Editor" VIEWER = "Viewer" workspace = models.ForeignKey( "Workspace", on_delete=models.CASCADE, related_name="workspace_u...
Python
1
4); } #[test] fn test_size_x2() { assert_eq!(size_of::<f16x2_stub>(), 4); } pub mod icon; pub use icon::Icon; <filename>ShellSort/src/shell_sort.rs use std::iter; use std::mem; #[inline] unsafe fn take_at<T>(a: &mut [T], i: usize) -> T { mem::replace(&mut a[i], mem::uninitialized()) } pub fn shell_sort<T: Ord...
Rust
0