text string | label_name string | labels int64 |
|---|---|---|
ons.to_dict()
if self._state.allowed_mentions
else None
)
view = fields.pop("view", MISSING)
if view is not MISSING:
self._state.prevent_view_updates_for(self.id)
fields["components"] = view.to_components() if view else []
if ... | Python | 1 |
plt.title('U_real', fontsize=fs)
plt.xticks(fontsize=fs-1)
plt.yticks(fontsize=fs-1)
cb.ax.tick_params(labelsize = fs-6)
ax1 = plt.matshow(np.array(unitary).imag, vmax = vmax, vmin = vmin,cmap=cl )
cb1 = plt.colorbar( fraction =0.03, ticks=ticks_)
plt.title('U_ima... | Python | 1 |
attern: String,
runner: Runner,
},
}
use sdl2::event::Event;
use sdl2::image::{InitFlag, LoadTexture};
use sdl2::keyboard::Keycode;
use sdl2::messagebox::ClickedButton;
use sdl2::messagebox::*;
use sdl2::pixels::Color;
use sdl2::rect::Rect;
use sdl2::render::{Canvas, Texture};
use sdl2::video::Window;
// u... | Rust | 0 |
sys.stdout.write("\n")
sys.stdout.flush()
@staticmethod
def _stream_create(params: CompletionCreateParamsStreaming) -> None:
# cast is required for mypy
stream = cast( # pyright: ignore[reportUnnecessaryCast]
Stream[ChatCompletionChunk], get_client().chat.compl... | Python | 1 |
// soft 21 max length is 11 (10*ace_1 + 1*ace_11)
// soft X max length is X-10
assert!(min_len <= amt - 10);
// automatically add the ace worth 1 or 11
let remaining = amt - 11;
let mut cards = vec![Card::new(Rank::RA, rand_suit())];
let mut rng = thread_rng();
// If there is very littl... | Rust | 0 |
#!/usr/bin/env python3
import sys
from create_presentation import create_presentation_from_images
from ppt_converter import convert_pptx_to_pdf, find_libreoffice_executable
from ui_manager import create_slides_menu, convert_pdf_menu, main_menu
def check_libreoffice():
"""Check if LibreOffice is installed and disp... | Python | 1 |
from typing import Dict
from core.ai_singleton import AISingleton
class AIService:
def __init__(self, api_key: str):
self.ai = AISingleton(api_key)
def process_input(self, user_input: str, prompt_template: str = "<<DATA_IAMTDF_1992003_HAHAHHAHAH>>") -> Dict:
"""
Hàm process_input... | Python | 1 |
f.pipe.device, self.pipe.torch_dtype)
if return_inputs: return inputs
# Loss
if self.task == "sft":
models = {name: getattr(self.pipe, name) for name in self.pipe.in_iteration_models}
loss = self.pipe.training_loss(**models, **inputs)
elif self.task == "d... | Python | 1 |
agione_scura:',
'fa': ':دو_زن_دست_در_دست_پوست_طلایی_پوست_آبنوسی:',
'id': ':dua_wanita_bergandengan_warna_kulit_sedang_warna_kulit_gelap:',
'zh': ':手拉手的两个女人_中等肤色较深肤色:',
'ru': ':две_женщины_средний_тон_кожи_очень_темный_тон_кожи:'
},
'\U0001F469\U0001F3FD\U0000200D\U0001F91D\U00002... | Python | 1 |
f.where(
tf.equal(
key_masks,
0),
paddings,
inputs) # (N, T_q, T_k)
# elif type in ("q", "query", "queries"):
# # Generate masks
# masks = tf.sign(tf.reduce_sum(tf.abs(queries), axis=-1)) # (N, T_q)
# masks = tf.expand_dim... | Python | 1 |
pub fn get_yaw_pitch(&self) -> [f64; 2] {
[self.yaw, self.pitch]
}
}
<gh_stars>0
#![allow(unused_imports)]
use std::{
cmp,
fs::File,
io::{BufRead, BufReader},
};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let input = BufReader::new(File::open("input")?);
for line in in... | Rust | 0 |
ry:
yield sock
finally:
epoll.unregister(fd)
finally:
_drop_socket_memberships(sock, groups)
finally:
_close_socket(sock)
@contextmanager
def _pipetrick(epoll):
pipetrick = os.pipe()
try:
epoll.register(pipetrick[0], select.EP... | Python | 1 |
11
val8!(0x11, 2), // 0b1000
val8!(0x11, 2), // 0b1001
val8!(0x11, 2), // 0b1010
val8!(0x11, 2), // 0b1011
val8!(0x10, 3), // 0b1100
val8!(0x10, 3), // 0b1101
val8!(0x0, 3), // 0b1110
val8!(0x0, 3), // 0b1111
// 0b0000 ... ... | Rust | 0 |
logging.warning(f"Event with event_id {event_id} not found")
return []
# Query for seatmaps that have active, broadcast seatpacks for this event
active_seatmap_ids = (
session.query(Seatmap.seatmap_id)
.distinct()
.join(Section, Section.seatm... | Python | 1 |
pub struct UserDictionary {
pub dict: PrefixDict<Vec<u8>>,
pub words_idx_data: Vec<u8>,
pub words_data: Vec<u8>,
}
impl UserDictionary {
pub fn load(user_dict_data: &[u8]) -> LinderaResult<UserDictionary> {
bincode::deserialize(user_dict_data)
.map_err(|err| LinderaErrorKind::Deseri... | Rust | 0 |
raw_rotated_tensor_proto_vec_name, {0: proto_raw}) ;
for k in this.possible_rotation:
if (k == 0):
continue;
workspace.inter_dict[this.rotated_tensor_proto_vec_name][k],(_, __, workspace.inter_dict[this.raw_rotated_tensor_proto_vec_name][k])= this.make_pr... | Python | 1 |
LOAD_FILE.captures(path) {
let filename = format!("client/{}", cap.get(1).unwrap().as_str());
let open_file = File::open(filename);
let body = open_file.map(|file| {
let chunks = FileChunkStream::new(file);
Response::new(Body::wrap_stream(chunks))
});
Box:... | Rust | 0 |
selected_action == "Defender":
self.player.is_defending = True
if not self.enemies:
self.battle_state = "VICTORY"
def execute_enemy_action(self):
acting_enemy = self.enemies.sprites()[self.acting_enemy_index]
damage = acting_enemy.attack_power
if self.player... | Python | 1 |
ReferenceNamerCallback<'a> = Fn(&str, &str, git2::Oid, git2::Oid) -> String + 'a;
// TODO: Allow customizing of this, but only in code
/// Customise how the merge references are named.
pub enum MergeReferenceNamer<'cb> {
/// The default namer will create a reference at `refs/fusionner/{reference}/{target}`
///... | Rust | 0 |
Value::try_from(&variable.r#type)
.map_err(ElementError::Value)
.map_err(|error| Error::Element(location, error))?;
let r#type = value.r#type();
let intermediate = GeneratorType::try_from_semantic(&r#type)
.... | Rust | 0 |
arks for a specific topic and partition.
fn fetch_watermarks<T>(
&self,
topic: &str,
partition: i32,
timeout: T,
) -> KafkaResult<(i64, i64)>
where
T: Into<Timeout>,
Self: Sized;
/// Returns the group membership information for the given group. If no grou... | Rust | 0 |
middleware API).
//! Unstable until the API is finalized. This an unstable feature whose
//! interface may change between patch releases.
//!
//! # Logging and tracing
//!
//! Isahc logs quite a bit of useful information at various levels compatible
//! with the [log](https://docs.rs/log) crate. For even more in-depth... | Rust | 0 |
:
return db.scalars(select(models.Ticket)).all()
def get_ticket(db: Session, ticket_id: int):
return db.scalar(
select(models.Ticket).where(models.Ticket.id == ticket_id)
)
def create_ticket(db: Session, ticket: schemas.TicketCreate):
ticket_dict = ticket.model_dump(exclude_unset=True)
t... | Python | 1 |
SECRET_KEY = "django-insecure-^0*@x2yqssp7hx=%83_aqm5e_ui8g@4_w-w_tar#tb#q^h8go4"
ALLOWED_HOSTS = ["html2bytes.pythonanywhere.com"]
SECURE_SSL_REDIRECT = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') | Python | 1 |
uqations_bboxs.append(page_in_bbox)
for j2 in mid_json.loc['interline_equations',:]:
page_in_text=[]
page_in_bbox=[]
for k2 in j2:
page_in_text.append(k2['latex_text'])
page_in_bbox.append(k2['bbox'])
standard_interline_equations.ap... | Python | 1 |
v) in &self.headers {
e.add_header(k, v);
}
if body {
e.add_length(self.body.len() as u64);
if e.done_headers() {
e.write_body(&self.body);
}
} else {
let res = e.done_headers();
assert!(res == false);
... | Rust | 0 |
update_preserved_catalog(
&db,
&compacting_os_chunks.compacted_parquet_file_paths,
&compacted_and_persisted_chunk,
)
.await?;
(iox_metadata, compacted_and_persisted_chunk)
}; // End of cleanup locking
// Step 5: Update... | Rust | 0 |
0); width * height];
let mut scene = Scene::init();
// Spheres
// Mirror
scene.add(Box::new(Sphere::new(
16.5,
Vec3::new(27.0, 16.5, 47.0),
Material::new(Vec3::new(0.0, 0.0, 0.0), Vec3::new(1.0, 1.0, 1.0), BSDF::Mirror),
)));
// Glass
scene.add(Box::new(Sphere::new... | Rust | 0 |
itle("Probability Density $|\Psi(x,y,t)|^2$")
# label axes
for ax in axes:
ax.set_xlabel("$x$ [a.u.]")
ax.set_ylabel("$y$ [a.u.]")
# update function for animation; evolves the system and updates plots
def update(frame):
global psi_flat
for _ in range(5): # perform several sma... | Python | 1 |
# ОТЛАДКА
a = 0
while True:
a += 0.1
#print(a)
if (a >= 1):
exit(0)
print("Hello")
# УПРАЖНЕНИЯ см. lesson_2.19_(exercise)
#1) Создайте список из 5 чисел.
#2) Напишите функцию, которая находит все отрицательные числа и выводит их.
#3) С помощью отладки пройдите все шаги выполнения программы,... | Python | 1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import unittest
from wifite.tools.airmon import Airmon
sys.path.insert(0, '..')
class TestAirmon(unittest.TestCase):
def test_airmon_start(self):
# From https://github.com/derv82/wifite2/issues/67
stdout = ('\n'
'PHY In... | Python | 1 |
it range write
(@field $(#[$attr:meta])* $t:ty, $id:ident:
w $byte:expr, $lsb:expr, $msb:expr;) => {
paste::item! {
#[inline]
$(#[$attr])*
pub fn [<set_ $id>](&mut self, value: $t) {
::u8bits::set_bit_range(&mut self.0[$byte], $lsb, $msb, value.into()... | Rust | 0 |
reference/android/transition/TransitionSet.html#addTarget(java.lang.Class))
// ///
// /// Required features: "android-transition-Transition", "java-lang-Class"
// #[cfg(any(feature = "all", all(feature = "android-transition-Transition", feature = "java-lang-Class")))]
// pub fn addTarget... | Rust | 0 |
1;
if tries == 0 {
break;
}
}
if read_bytes == 0 {
// Sometimes the hardware returns 0 bytes instead of NAKing the transaction. Ignore this.
return Err(DebugProbeError::ProbeSpecific(
"Tran... | Rust | 0 |
= 25.0;
let mut properties = BTreeMap::new();
properties.insert("name".to_string(), property::Property::Text(name, true));
properties.insert(
"value".to_string(),
property::Property::Unit(10.0, unit::Prefix::None, unit::Unit::Ampere, true),
);
component::Component::new(
comp... | Rust | 0 |
_property(
self.to_glib_none().0 as *mut glib::gobject_ffi::GObject,
b"read-only\0".as_ptr() as *const _,
value.to_glib_none_mut().0,
);
value
.get()
.expect("Return Value for property `read-only` getter")
... | Rust | 0 |
There is no limit to the number of query properties placed on
a class.
"""
class query(object):
def __get__(s, instance, owner):
try:
mapper = class_mapper(owner)
if mapper:
if query_cls:
... | Python | 1 |
C D }
tuple_impls! { A B C D E }
/// Describes the kind of value.
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd)]
pub enum ValueKind {
Undefined,
None,
Bool,
Number,
Char,
String,
Bytes,
Seq,
Map,
}
impl fmt::Display for ValueKind {
fn fmt(&self, f: &mut fmt::For... | Rust | 0 |
broken/eicar.txt/te%3A%5C012%5C000chunked;do_chunked");
assert_evader_response!(tx);
assert_evader_chunked!(tx, "\0chunked");
}
#[test]
fn HttpEvader318() {
let mut t = Test::new(TestConfig());
assert!(!t.run("http-evader-318.t").is_ok());
let tx = t.connp.tx(0).unwrap();
assert_evader_request!... | Rust | 0 |
# -*- coding: utf-8 -*-
import pygcb
def CreateDBObject():
dbObj=pygcb.tcSignatureModel()
dbObj.mzClass='IR_FW_M_H_HP_2_AB_M0.85'
dbObj.aspectModifier_dB=[4.370000,4.370000,4.370000,3.370000,3.370000,2.370000,2.370000,2.370000,2.370000,7.630000,10.180000,11.610000,12.680000,13.650000,14.620000,14.620000,15.... | Python | 1 |
# -*- coding: utf-8 -*-
# Copyright 2017 Zachary Marv (马子昂)
#
# 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... | Python | 1 |
5, 'Z': 5, ' ': 2, '!': 3, '"': 5, '#': 5, '$': 5, '%': 7, '&': 6, "'": 3, '(': 3, ')': 3, '*': 4, '+': 5, ',': 3, '-': 3, '.': 3, '/': 3, ':': 3, ';': 3, '<': 5, '=': 5, '>': 5, '?': 4, '@': 8, '[': 3, '\\': 3, ']': 3, '^': 5, '_': 4, '`': 5, '{': 3, '|': 2, '}': 3, '~': 5},
10: {'0': 5, '1': 5, '2': 5, '3': 5, '4': 5... | Python | 1 |
from typing import Union
from mltk.core.tflite_model.tflite_schema import BuiltinOperator
from .layer import Layer, flat_size, KerasLayer, TfliteLayer
class Activation(Layer):
def __init__(self):
Layer.__init__(self, 'Activation')
def process(self, layer:Union[TfliteLayer,KerasLayer]):
... | Python | 1 |
label: Label::Name0R1,
});
// Name : ∙
m.insert(Label::Name1R0,
Slot{
nt: NT::Name,
alt: 1,
pos: 0,
symbols: vec![
],
label: Label::Name1R0,
});
m
};
}
use... | Rust | 0 |
("*.json"))
if not json_files:
print(f"No JSON files found in '{json_directory}'")
print("Available files:")
all_files = list(input_dir.glob("*"))[:10] # Show first 10 files
for file in all_files:
print(f" {file.name}")
if len(all_files) >= 10:
print... | Python | 1 |
) where
S: Serializer,
{
let mut h = Histogram::<u64>::new_with_bounds(low, high, digits).unwrap();
let random_counts = (fraction_of_counts_len * h.distinct_values() as f64) as usize;
let mut vec = Vec::with_capacity(random_counts);
let mut rng = rand::rngs::SmallRng::from_entropy();
for v in ... | Rust | 0 |
if not settings.FEATURES.get(ENABLE_ENROLLMENT_RESET_FLAG):
return Response('reset not enabled on this environment', status.HTTP_501_NOT_IMPLEMENTED)
try:
org_key = request.data['organization']
except KeyError:
return Response("missing required body content '... | Python | 1 |
import pandas as pd
import numpy as np
from sklearn.linear_model import LinearRegression
import argparse
# Parse command line arguments
parser = argparse.ArgumentParser(description="Train ProbCut models from CSV data")
parser.add_argument("csv_path", type=str, help="Path to the input CSV file")
args = parser.parse_a... | Python | 1 |
(
torch_npu.npu_quant_matmul(
x_int8,
layer.weight,
layer.weight_scale,
bias=None,
output_dtype=torch.int32,
),
pertoken_scale,
)
else:
out... | Python | 1 |
let mut vocabulary = serializer.serialize_seq(Some(added_tokens.len()))?;
for token in added_tokens {
vocabulary.serialize_element(&token)?;
}
vocabulary.end()
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::normalizers::utils::Lowercase;
use crate::normalizer... | Rust | 0 |
: *mut OCIAnyDataSet,
data: *mut *mut OCIAnyData,
) -> sword;
}
extern "C" {
pub fn OCIAnyDataSetEndCreate(
svchp: *mut OCISvcCtx,
errhp: *mut OCIError,
data_set: *mut OCIAnyDataSet,
) -> sword;
}
extern "C" {
pub fn OCIAnyDataSetGetType(
svchp: *mut OCISvcCtx,
... | Rust | 0 |
ync::{Arc, RwLock};
use std::sync::atomic::AtomicUsize;
use std::collections::HashMap;
use cgmath::{Point3, MetricSpace};
use renderer::LineRenderQueue;
use world::Chunk;
use world::generators::{WorldGenerator, PerlinGenerator};
use world::chunk::CHUNK_STATE_DIRTY;
/// A dimension.
pub struct Dimension {
pub chu... | Rust | 0 |
}
unsafe impl Send for TimedValueControlSource {}
unsafe impl Sync for TimedValueControlSource {}
pub const NONE_TIMED_VALUE_CONTROL_SOURCE: Option<&TimedValueControlSource> = None;
pub trait TimedValueControlSourceExt: 'static {
//fn find_control_point_iter(&self, timestamp: gst::ClockTime) -> /*Ignored*/Option... | Rust | 0 |
import torch
def slerp(B, A, factor):
# from https://discuss.pytorch.org/t/help-regarding-slerp-function-for-generative-model-sampling/32475
dims = A.shape
A = A.reshape(dims[0], -1) # flatten to batches
B = B.reshape(dims[0], -1)
low_norm = A / torch.norm(A, dim=1, keepdim=True)
high_norm =... | Python | 1 |
8;
let eth_price = 3000_u128;
let eth_balance = 1_000_000_000 * unit;
let usdc_balance = eth_price * eth_balance;
let fee = Permill::zero();
let admin_fee = Permill::zero();
let assets = CurrencyPair::new(USDC, ETH);
let amounts = vec![usdc_balance, eth_balance];
create_constant_product_amm_pool(assets, amounts... | Rust | 0 |
_set_use_jemalloc(
arg1: *mut rocksdb_LRUCacheOptions,
arg2: *mut rocksdb_JemallocAllocatorOptions,
arg3: *mut rocksdb_Status,
);
}
extern "C" {
pub fn crocksdb_cache_create_lru(arg1: *mut rocksdb_LRUCacheOptions) -> *mut crocksdb_cache_t;
}
extern "C" {
pub fn crocksdb_cache_destroy... | Rust | 0 |
;
fn from_str(s: &str) -> Result<Self, Self::Err> {
Ok(Self::parse(s))
}
}
#[derive(Serialize, Deserialize, Debug)]
pub struct Package {
pub name: String,
pub versions: Vec<PackageVersion>
}
#[derive(Serialize, Deserialize, Debug)]
pub struct ArtifactReference {
pub url: String,
pub sha256: String
}
... | Rust | 0 |
::TCHOICEALT)
|| self.cur_token_is(Token::GCHOICEALT)
{
self.errors.push(Error::PARSER {
#[cfg(feature = "ast-span")]
position: Position {
line: begin_rule_line,
column: begin_rule_col,
range: (ident.span.0, ident.span.1),
... | Rust | 0 |
params, file_stat.name, file_stat.size, age, skip_ok_files
)
break
# Start Checking
if date_inclusion:
yield Result(state=State.OK, summary=f"Date pattern: {date_inclusion}")
check_definition = _define_fileinfo_group_check(files_matching)
if files_stat_fa... | Python | 1 |
his is `Completed`, so be careful
/// not to accidentally let a cutscene run forever.
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CutsceneStatus {
Zooming,
Reversing,
Spawning,
Completed,
}
use CutsceneStatus::*;
/// Zooming works by decreasing the scale of the camera's transform
/// (as it grow... | Rust | 0 |
hedule_id}", channel_id=channel_id, schedule_id=schedule_id
)
return await self._http.request(route)
async def create_schedule(
self,
channel_id: str,
name: str,
start_timestamp: str,
end_timestamp: str,
jump_channel_id: str,
remind_type: sche... | Python | 1 |
if failed_count > 0:
print(f"警告: 共有 {failed_count}/{len(texts)} 个文档嵌入失败")
return results
def embed_query(self, text: str) -> List[float]:
"""将查询文本转换为嵌入向量"""
try:
# 查询应该使用"query"域,临时切换域
original_domain = self.client.spark_embeddin... | Python | 1 |
l Group {
pub fn new(link: &str) -> Group {
let link = link.to_owned();
let id = Self::extract_group_id(&link).expect("Probably your group link is wrong.");
let access_token =
env::var("VK_GROUP_TOKEN").expect("No VK_GROUP_TOKEN environment variable");
Group {
... | Rust | 0 |
ne, (
"root_dir should always be set for the project package"
)
license_files: set[Path] = set()
if isinstance(package.license_files, tuple):
for glob_pattern in package.license_files:
license_files_for_glob = {
license_file.relative_t... | Python | 1 |
passthrough).unwrap());
println!("{}{}{}{}{}", producer, conveyor_1, passthrough, conveyor_2, consumer);
}
}
static RESOURCE_SPEED: ResourceType = ResourceType::new("SPEED");
fn format_port(port: &Ports) -> String {
format!("[{: >5}|{: >5}]", port.get(PortID::A).count(), port.get(PortID::B).count() ... | Rust | 0 |
<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {
#[pallet::weight(10_000 + T::DbWeight::get().writes(1))]
pub fn do_something(origin: OriginFor<T>, something: u32) -> DispatchResultWithPostInfo {
let who = ensure_signed(origin)?;
Something::<T>::put(something);
Self::deposit_event(Event::SomethingSto... | Rust | 0 |
dm,
pins.usb_dp,
&mut pins.port,
);
// let mut serial = SerialPort::new(&usb_bus);
// let mut usb_dev = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0x239a, 0x27dd))
// .product("Serial port")
// .device_class(USB_CLASS_CDC)
// .build();
// loop {
// if !usb_... | Rust | 0 |
ry_text.strip():
error_payload = json.dumps({"type": "error", "message": f"Desculpe, não consegui obter informações detalhadas sobre '{concept}'."})
yield f"data: {error_payload}\n\n"
return
agent_3_input = f"""
RESUMO DO CONCEITO: {concept_summary_text}
INF... | Python | 1 |
#!/usr/bin/env python3
print("2")
print("""
ERROR: THE PROGRAM IS BEING ACTIVELY EXPLOITED BY AN ATTACKER.
The developers have identified a critical flaw in the program that allows leaking sensitive data:
The printf function as implemented in the standard library is leaking the contents of a local file.
Ple... | Python | 1 |
input = vec![199, 200, 208, 210, 200, 207, 240, 269, 260, 263];
let expected = 2;
let actual = count_trend(measurements, Ordering::Less, input);
assert_eq!(expected, actual, "Expected exactly {} occurances of an downward trend", expected);
}
}// ignore-musl - dlsym doesn't see symbols with... | Rust | 0 |
ns from a model conditioned on a prompt, and also returns logits for the generations.
Args:
model (TransformerDecoder): model used for generation
prompt (torch.Tensor): tensor with the token IDs associated with the given prompt,
with shape either [seq_length] or [bsz x seq_length].
... | Python | 1 |
("Roma", contact.city);
assert_eq!("RM", contact.state_province);
assert_eq!("00100", contact.postal_code);
assert_eq!("IT", contact.country);
assert_eq!("2016-01-19T20:50:26Z", contact.created_at);
assert_eq!("2016-01-19T20:50:26Z", contact.updated_at);
}
#[test]
fn update_contact_test() {
let... | Rust | 0 |
import numpy as np
import warnings
def validate_epoch_durations(table,
start_key="Start",
end_key="End",
fail_on_negative_durations=False):
durations = table[end_key] - table[start_key]
min_duration_index = durations.idxmin... | Python | 1 |
iscovery when using an exec path.
#
# RUN: %{lit} %{inputs}/exec-discovery \
# RUN: -j 1 --debug --show-tests --show-suites \
# RUN: -v > %t.out 2> %t.err
# RUN: FileCheck --check-prefix=CHECK-ASEXEC-OUT < %t.out %s
# RUN: FileCheck --check-prefix=CHECK-ASEXEC-ERR < %t.err %s
#
# CHECK-ASEXEC-ERR: loading suite con... | Python | 1 |
u8]) -> usize {
let mut chunks = data.chunks(mat_sz_bytes(&a[0]));
let mut bytes_read = 0;
for i in 0..a.len() {
bytes_read += deserialize_polymatrix(&mut a[i], chunks.next().unwrap());
}
bytes_read
}
pub struct PublicParameters<'a> {
pub v_packing: Vec<PolyMatrixNTT<'a>>, // Ws
pub... | Rust | 0 |
lid_tokens"]
):
filtered_noun_phrases.add(tagged_np["cleaned_text"])
return list(filtered_noun_phrases)
def extract_cfg_matches(self, doc: Doc) -> list[tuple[str, str]]:
"""Return noun phrases that match a given context-free grammar."""
tagged_tokens = [
... | Python | 1 |
3_01FE,// Invlpgbq
0x4003_01FF,// Tlbsync
0x9802_000D,// Prefetchreserved3_m8
0xA002_000D,// Prefetchreserved4_m8
0xA802_000D,// Prefetchreserved5_m8
0xB002_000D,// Prefetchreserved6_m8
0xB802_000D,// Prefetchreserved7_m8
0x0002_00FF,// Ud0
0x4023_01D9,// Vmgexit
0x4002_0037,// Getsecq
0xC404_0049,// VEX_Ldti... | Rust | 0 |
U
r-f @ s& |