text string | label_name string | labels int64 |
|---|---|---|
.field("one", "u8")
.field("two", "u8");
let expected = format_code(r#"
#[allow(dead_code)]
struct Foo {
one: u8,
two: u8,
}"#)?;
let generated = format_code(scope.to_string())?;
assert_eq!(generated, expected);
Ok(())
}
#[test]
fn struct_with_generics_1() -> io::Result<()> {... | Rust | 0 |
752 52752 52752 55056 55056 55056 55056 57336 57336 57336 59256 59256 59256 61664 61664 61664 61664 63776 63776 63776 63776 66592 66592 66592 66592 68808 68808 68808 71112; 712 1480 2216 2984 3752 4392 5160 5992 ... | Python | 1 |
# Copyright (c) 2025, Vnimy and contributors
# For license information, please see license.txt
import json
import frappe
from frappe import _
from frappe.utils import getdate
from frappe.model.document import Document
from zelin_ac.zelin_accounting.report.supplier_reconciliation_report.supplier_reconciliation_report i... | Python | 1 |
mbers.len() > 1 {
let slice = numbers[0];
let len = slice.len();
let dec = slice.find('.').unwrap_or(len);
largest_dec = len - dec;
padding = dec;
match parse_float(slice) {
Ok(n) => n,
Err(s) => {
show_error!("{}", s);
... | Rust | 0 |
import bpy
import csv
from bpy import context
#YOU NEED TO CONVERT THE MIDI TO A CSV FIRST AND PUT THAT CSV IN THE SAME DIRECTORY AS YOUR .BLEND FILE
#SCROLL TO LINE 80 AND CHANGE THE NAME OF THE FILE
#SELECT THE OBJECT TO BE ANIMATED, THEN DESELECT EVERYTHING IN 3D AND NLA EDITOR, THEN YOU CAN RUN THE SCRIPT
delay =... | Python | 1 |
self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u8 & 0x01) << 7);
self.w
}
}
impl R {
#[doc = "Bit 0 - Send Break"]
#[inline(always)]
pub fn sbk(&self) -> SBK_R {
SBK_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Receiver Wakeup Control"]
#[inline(always)]
pu... | Rust | 0 |
from PySide2 import QtWidgets, QtCore
from movie import Movie, get_movies
class App(QtWidgets.QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("Ciné Club")
self.setup_ui()
self.setup_connections()
self.populate_movies()
def setup_ui(self):
s... | Python | 1 |
import numpy as np
import torch
import torchvision
from dda import AutoDDA
def get_dataloader(batch_size=128, num_workers=5, split='train', shuffle=False, augment=True):
if augment:
transforms = torchvision.transforms.Compose(
[torchvision.transforms.RandomHorizontalFlip(),
... | Python | 1 |
etric_names,
dict(job=job, instance=instance),
"prometheus", self.PROMETHEUS_RESOURCE_TYPE)
for metric in metrics:
enforce("post measures", metric)
measures_to_batch.update(
dict((metric.id, measures[metric.name]) for metr... | Python | 1 |
from typing import Union
import numpy as np
from scipy.spatial import ConvexHull, Delaunay
def in_hull(p, hull):
"""
Test if points in `p` are in `hull`
`p` should be a `NxK` coordinates of `N` points in `K` dimensions
`hull` is either a scipy.spatial.Delaunay object or the `MxK` array of the
co... | Python | 1 |
from api_calls import get_and_save_all_dataframes
import time
# Timestamp al inicio del programa
inicio = time.time()
print(f"Inicio del programa: {inicio}")
get_and_save_all_dataframes()
# Timestamp al final del programa
fin = time.time()
print(f"Fin del programa: {fin}")
# Puedes calcular también el tiempo de ... | Python | 1 |
# Form implementation generated from reading ui file 'about.ui'
#
# Created by: PyQt6 UI code generator 6.6.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_Dial... | Python | 1 |
variables_str = ", ".join(f"{{{var}}}" for var in required_variables)
prompt_description = (
f" The prompt section being optimized contains the following f-string variables to be templated in: {variables_str}."
" You must retain all of these variables in your improved prompt. No other i... | Python | 1 |
Hello this is Jack
| Python | 1 |
or()
>>> metric.update(randn(10,), randn(10,))
>>> fig_, ax_ = metric.plot()
.. plot::
:scale: 75
>>> from torch import randn
>>> # Example plotting multiple values
>>> from torchmetrics.regression import MeanAbsolutePercentageError
... | Python | 1 |
l(ColumnDef::new(Column::V5).string())
.to_owned();
// 创建表格
let builder = conn.get_database_backend();
conn.execute(builder.build(&stmt))
.await
.map_err(|err| CasbinError::from(AdapterError(Box::new(Error::DbErr(err)))))
... | Rust | 0 |
type([]):
ret = ListMap(item)
ret_list += ret
else:
ret_list.append(item)
return ret_list
def TargetGetList(env, postfix):
global source_ext
global source_list
target = env['target']
source_ext = postfix
for item in target:
walk_children(it... | Python | 1 |
vita-example
use crate::GlobPattern;
use std::borrow::{Borrow, Cow};
/// Used to order `GlobPattern`s by prefix
#[derive(Debug, Clone, Copy)]
#[repr(transparent)]
pub struct PrefixInterface<S: ?Sized>(pub GlobPattern<S>);
impl<T, S> AsRef<[T]> for PrefixInterface<S>
where
S: AsRef<[T]>,
{
fn as_ref(&self) -> ... | Rust | 0 |
ETH1_MAC_ADDRESS,
subnet,
)
.await;
network_test_realm
.join_multicast_group(
&mut multicast_address,
expect_hermetic_interface_id(ETH1_INTERFACE_NAME, &realm).await,
)
.await
.expect("join_multicast_group failed")
.expect("joi... | Rust | 0 |
e("six_of_clubs".to_string()));
draw_calls.push(DrawCall::load_texture("seven_of_clubs".to_string()));
draw_calls.push(DrawCall::load_texture("eight_of_clubs".to_string()));
draw_calls.push(DrawCall::load_texture("nine_of_clubs".to_string()));
draw_calls.push(DrawCall::load_texture("ten_of_clubs... | Rust | 0 |
, 4), (3, 6), (4, 8), (5, 10)]
);
assert_eq!(l.read_cache(&3), Some(6));
assert_eq!(
get_internal_vec(&l),
vec![(1, 2), (3, 6), (2, 4), (4, 8), (5, 10)]
);
assert_eq!(l.read_cache(&5), Some(10));
assert_eq!(
get_internal_vec(&l),
... | Rust | 0 |
.iter()
.fold(self.ty.clone(), |acc, elem| {
acc.instantiate(*elem, fresh.next_type_variable())
})
}
pub(crate) fn generalize_all(ty: Type) -> Self {
Self {
quantified_variables: ty.free_variables(),
ty,
}
}
pu... | Rust | 0 |
vector(-4.0,6.0,8.0);
let trans1 = translation(5.0,-3.0,2.0);
let trans2 = scaling(2.0,2.0,2.0);
let trans3 = scaling(2.0,3.0,4.0);
println!("{:?}", multiply_matrix_tup(trans1, p1));
println!("{:?}", multiply_matrix_tup(invert(trans1),p1));
println!("{}", tuples::equal_tuples(multiply_matrix_t... | Rust | 0 |
nome = input("Digite seu nome: ")
idade = input("Qual sua idade: ")
cidade = input("Em qual cidade você mora: ")
altura = input("Digite sua altura: ")
print("Seu nome é",nome,"você tem",idade,"anos, com",altura,"de altura. Atualmente você mora em",cidade) | Python | 1 |
# end for
# end for
############################################################################
##On The Fly Section
############################################################################
print("Deactivating and Activating BFDv6 Interface On the fly")
activation = ixNet.getAttribute(bfdv61, '-active')
ixN... | Python | 1 |
het sentiment [positive, negative, neutral] is. Geef het resultaat terug in JSON-indeling met alleen de sleutels 'aspect' en 'sentiment'"
f"Tekst: '{sentence}'."
),
}
]
if args.lang=='ru':
messages = [
... | Python | 1 |
# tests/test_sanity_check.py
import pytest
import subprocess
import os
import sys
import importlib
def test_check_hailo_runtime_installed():
"""Test if the Hailo runtime is installed."""
try:
subprocess.run(['hailortcli', '--version'], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
... | Python | 1 |
alue."))
class DateTimeLocalField(DateTimeField):
"""
Same as :class:`~wtforms.fields.DateTimeField`, but represents an
``<input type="datetime-local">``.
"""
widget = widgets.DateTimeLocalInput()
def __init__(self, *args, **kwargs):
kwargs.setdefault(
"format",
... | Python | 1 |
import matplotlib.pyplot as plt
import numpy as np
# # 模拟的数据
# categories = ['Pour', 'Bottle upright', 'Item in drawer', 'Brush']
# base_means = [0.8, 0.8, 0.6, 0.7]
# camera_means = [0.9, 0.7, 0.3, 0.6]
# clutter_means = [0.8, 0.8, 0, 0]
# ins_means = [0.8, 0.9, 0, 0]
# x = np.arange(len(categories)) # x轴的位置
# width... | Python | 1 |
21;
pub const PAGE_DOWN: u32 = 0x22;
pub const END: u32 = 0x23;
pub const HOME: u32 = 0x24;
pub const INSERT: u32 = 0x2D;
pub const DELETE: u32 = 0x2E;
pub const UP: u32 = 0x26;
pub const DOWN: u32 = 0x28;
pub const LEFT: u32 = 0x25;
pub const RIGHT: u32 = 0x27;
pub const MULTIPL... | Rust | 0 |
connect(config: &UserConfig) -> std::io::Result<Stream> {
use std::io::{Error, ErrorKind};
let conn: tokio_native_tls::TlsConnector = native_tls::TlsConnector::new()
.map_err(|err| Error::new(ErrorKind::Other, err))?
.into();
let stream = tokio::net::TcpStream::connect(crate::TWITCH_IRC_A... | Rust | 0 |
'max_gap': self.config['spiculation']['max_gap'],
'scale_factors': self.config['spiculation']['scale_factors'],
'angle_range': self.config['spiculation']['angle_range']
}
# 验证处理图像的有效性
processing_img = self.original.copy()
if processing_img.size == 0:
... | Python | 1 |
'''
This file is to prepare the dataset in csv file following the format required by Opne-SORA
'''
import os, sys, shutil
import json
import csv
# Import files from the local folder
root_path = os.path.abspath('.')
sys.path.append(root_path)
# from curation_pipeline.prepare_bridge_v1 import read_bridge_v1
# from ... | Python | 1 |
from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='active_subspaces',
version='0.1',
description='Tools to apply active subspaces to analyze models and data.',
long_description=readme(),
classifiers=[
'Development Status :: 3... | Python | 1 |
Must be of size `
/// - `gftbls`: Pointer to start of space for concatenated output tables
/// generated from input coefficients. Must be of size `32×k×f`.
pub fn ec_init_tables(k: u32, f: u32, a: &[u8], gftbls: &mut [u8]) {
assert_eq!(a.len(), (f * k) as usize);
assert_eq!(gftbls.len(), (32 * f ... | Rust | 0 |
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import math
class CosineWarmUp:
def __init__(self, cfg):
self.cfg = cfg
self.last_epoch = 0
def... | Python | 1 |
, invalid.
(_, e) if (e >= 32) => return None,
// If m is larger than the remaining bytes, overflow.
// Otherwise, avoid overflows in base^exponent.
(m, e) if (e == 31 && m > u8::MAX.into()) => return None,
(m, e) if (e == 31 && m <= u8::MAX.into()) => (m << 1... | Rust | 0 |
525i32, atoms_len);
}
unsafe extern "C" fn read_surface_hints(mut xwm: *mut wlr_xwm,
mut xsurface:
*mut wlr_xwayland_surface,
mut reply:
*m... | Rust | 0 |
nt=frequent)
epoch_end_callback = mx.callback.do_checkpoint(prefix)
learning_rate, lr_scheduler = get_lr_scheduler(learning_rate, lr_refactor_step,
lr_refactor_ratio, num_example, batch_size, begin_epoch)
optimizer_params={'learning_rate':learning_rate,
'momentum':momentum,
... | Python | 1 |
expires = parsedate_tz(response_headers["expires"])
if expires is not None:
expires_time = calendar.timegm(expires) - date
else:
expires_time = None
logger.debug(
"Caching b/c of... | Python | 1 |
_exhaustive]
pub enum InvalidConnectionName {}
#[class(standard)]
#[derive(Clone, Eq, PartialEq, Hash, Debug)]
#[non_exhaustive]
pub enum SqlRoutineException {
#[subclass("002")]
ModifyingSqlDataNotPermitted,
#[subclass("003")]
ProhibitedSqlStatementAttempted,
#[subclass("004")]
ReadingSqlDataN... | Rust | 0 |
based on how they are labelled and what character they generate.
/// For example, `KeyLabel::A` is the key to the right of the Caps Lock on a QWERTY keyboard,
/// whereas it is the key to the right of Tab on an AZERTY keyboard.
///
/// The main use case for `KeyLabel` is when you need to display a key name to the play... | Rust | 0 |
let b4 = b"testing 123 tasting!";
let k4 = 1;
res = levenshtein_search_naive_with_opts(a4, b4, k4, SearchType::All, LEVENSHTEIN_COSTS, false).collect();
assert!(res == vec![Match{start: 0, end: 4, k: 1}, Match{start: 12, end: 16, k: 1}]);
let a5 = b"tst";
let b5 = b"testing 123 tasting!";
r... | Rust | 0 |
_raw).float(),
'tgt_pcd_raw': torch.from_numpy(tgt_pcd_raw).float(),
'sample': sample,
'matching_mask': matching_mask,
'node_corr': node_corr
}
return dict_inputs
def calibrate_neighbors(dataset, config, collate_fn, keep_ratio=0.8, samples_threshold=2000):
timer = Timer()
... | Python | 1 |
ert_eq!(result.measurement_sequence_number(), None);
}
#[test]
fn mac_address_not_set() {
let value: [u8; 13] = [
0x17, 0x01, 0x45, 0x35, 0x58, 0xFC, 0x18, 0xFB, 0x19, 0xFA, 0x1A, 0x08, 0x86,
];
let result = SensorValuesV3::try_from(&value[..]).unwrap();
assert_e... | Rust | 0 |
r {
ty_names: HashSet::new(),
lt_names: HashSet::new(),
};
visit_item_trait(&mut visitor, trait_def);
fn char_to_ident(c: u8) -> Ident {
let arr = [c];
let s = ::std::str::from_utf8(&arr).unwrap();
Ident::new(s, param_span())
}
// Find suitable type name (T... | Rust | 0 |
import pickle
import os
import numpy as np
FACES_FILE = 'dataset1/faces.pkl'
NAMES_FILE = 'dataset1/names.pkl'
def load_database():
if not os.path.exists(FACES_FILE) or not os.path.exists(NAMES_FILE):
return np.array([]), []
with open(FACES_FILE, 'rb') as f:
faces_db = pickle.load(f)
with... | Python | 1 |
fn set_compression(&mut self, compression: Compression) {
self.config.compression = compression;
}
/// Retrieves the current `KafkaClient::set_compression` setting.
#[inline]
pub fn compression(&self) -> Compression {
self.config.compression
}
/// Sets the maximum time in mill... | Rust | 0 |
= #ast[stmt]{let x : $(ty) = $(abc);};
check_pp(ext_cx, *stmt2, pprust::print_stmt, ~"let x: int = 23;");
let pat = #ast[pat]{some(_)};
check_pp(ext_cx, pat, pprust::print_pat, ~"some(_)");
// issue #1785
let x = #ast{1};
let test1 = #ast{1+$(x)};
check_pp(ext_cx, test1, pprust::print_exp... | Rust | 0 |
from posthog.test.base import BaseTest
from posthog.models.filters.lifecycle_filter import LifecycleFilter
from posthog.utils import relative_date_parse
class TestLifecycleFilter(BaseTest):
def test_filter_properties(self):
target_date = "2023-05-15"
lifecycle_type = "new"
filter = Lifecy... | Python | 1 |
m.read_u8_read_only(i), 0xBB);
}
for i in 8..12 {
assert_eq!(m.read_u8_read_only(i), 0xCC);
}
for i in 12..16 {
assert_eq!(m.read_u8_read_only(i), 0xDD);
}
for i in 16..20 {
assert_eq!(m.read_u8_read_only(i), 0xEE);
}
fo... | Rust | 0 |
Replicate Chunk {} cannot recover...".format(replicate_package.slot_hash, replicate_package.row_index))
# else:
# # 可以恢复,那么验证 merkle
# merkle_proof: MerkleProof = replicate_package.merkle_proof
# if not merkle_proof.verify(reco... | Python | 1 |
1d(args):
args = make_args_1d(**args)
bs = 4
xmaxs = [40, 45]
device = "cpu"
module = importlib.import_module('neural_sp.models.seq2seq.encoders.conv')
(channels, kernel_sizes, strides, poolings), is_1dconv = module.parse_cnn_config(
args['channels'], args['kernel_sizes'],
args... | Python | 1 |
# -*- coding: utf-8 -*-
from .functions import *
class VideoUtils(object):
"""
@brief 专用于处理视频文件
"""
def video_info(self, input_video) -> dict or bool:
"""
@brief 调用ffprobe获取视频信息
@param input_video 输入视频
@return 返回视频信息字典,未识别视频返回False
"""
... | Python | 1 |
ey", "volcano", "baseball player", "bridegroom", "scuba diver", "rapeseed", "daisy", "yellow lady's slipper", "corn", "acorn", "rose hip", "horse chestnut seed", "coral fungus", "agaric", "gyromitra", "stinkhorn mushroom", "earth star", "hen-of-the-woods", "bolete", "ear", "toilet paper"]
ALL_CLASSES = {
'mnist_te... | Python | 1 |
ult for Gift64 {
fn default() -> Self {
Gift64::new()
}
}
#[cfg(test)]
mod tests {
use super::super::super::cipher;
#[test]
fn encryption_decryption_test() {
let cipher = cipher::name_to_cipher("gift64").unwrap();
let key = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ... | Rust | 0 |
odule::*;
for module in &modules {
match *module {
Json => {
self.output_format = OutputFormat::Json;
}
}
}
Ok(())
}
fn compile(self) -> Result<()> {
let root = RelativePathBuf::from(".");
for... | Rust | 0 |
send_community = True, ),
static = graphiant_sdk.models._v1_extranets_get_200_response_policies_inner_branches_excluded_devices_inner_ipsec_tunnels_inner_static._v1_extranets_get_200_response_policies_inner_branches_excludedDevices_inner_ipsecTunnels_inner_static(
... | Python | 1 |
ident)
{$(
fn $method:ident(&mut self $(,$p:ident : $t:ty)*) -> $rtr:ty
),+}
) => {
#[repr(C)] #[allow(missing_copy_implementations)]
pub struct $vtbl {
pub parent: $crate::$pvtbl
$(,pub $method: unsafe extern "system" fn(
This: *mu... | Rust | 0 |
(remote_only_config, encoding='utf8') as f:
llm_config = pytoml.load(f)['llm']
secrets = load_secret()
llm_config['server']['remote_type'] = 'step'
llm_config['server']['remote_api_key'] = secrets['step']
# llm_config['server']['remote_llm_model'] = 'auto'
print('testing {}'.format(llm_conf... | Python | 1 |
Feature>,
{
pub fn new(iter: I, alignment_start: sam::record::Position) -> Self {
Self {
iter,
reference_position: i32::from(alignment_start) as usize,
read_position: 1,
}
}
/// Returns the current reference position and read position.
///
/// Th... | Rust | 0 |
f mock_process_model(self, model):
"""Mock method to append processed models."""
processed_models.append(model)
monkeypatch.setattr(Command, "_should_process_model", classmethod(mock_should_process_model))
monkeypatch.setattr(Command, "_process_model", mock_process_model)
... | Python | 1 |
and are not noisy.",
"Yeah, I think it's a good environment for learning English.",
"The quick brown fox jumps over the lazy dog.",
"Last Friday in three week’s time I saw a spotted striped blue worm shake hands with a legless lizard.",
];
let data1 = vec![
"Joe made the sugar ... | Rust | 0 |
.nif", 0x7C5A_2F3A, 0x3C3C_A450),
(r"meshes\f\furn_coalpile00.nif", 0x7C5A_2F3A, 0x3C85_D99D),
(r"meshes\f\furn_de_table_07.nif", 0x7C5A_2F3A, 0x46B9_2BC2),
(r"meshes\f\furn_de_table_06.nif", 0x7C5A_2F3A, 0x46B9_2BC6),
(r"meshes\f\furn_de_table_05.nif", 0x7C5A_2F3A, 0x46B9_2BCA),
(r"meshes\f\fu... | Rust | 0 |
map_configuration_from(
&mut self,
mut stream: fkeymap::ConfigurationRequestStream,
) -> Result<(), Error> {
while let Some(fkeymap::ConfigurationRequest::SetLayout { keymap, responder, .. }) = stream
.try_next()
.await
.context("while trying to serve fuch... | Rust | 0 |
d::os::raw::c_char,
index: ::std::os::raw::c_int,
) -> HapiResult;
}
extern "C" {
pub fn HAPI_RevertParmToDefaults(
session: *const HAPI_Session,
node_id: HAPI_NodeId,
parm_name: *const ::std::os::raw::c_char,
) -> HapiResult;
}
extern "C" {
pub fn HAPI_SetParmExpression(... | Rust | 0 |
ncoding::Offset,
) -> Result<(), Box<::std::error::Error>>
where
B: $crate::encoding::serialize::WriteBufferWrapper,
{
use $crate::encoding::serialize::json::reexport::from_value;
let value: $name = from_value(value.clone())?;
... | Rust | 0 |
self.op.1 as _,
Some(on_event),
p as *mut ::std::os::raw::c_void,
);
}
}
}
unsafe extern "C" fn on_event(_: *mut ffi::uiEntry, reg: *mut ::std::os::raw::c_void) {
::ui::on_event(reg);
}
impl AsRef<Opaque> for Entry {
fn as_ref(&self) -> &Opaque {
... | Rust | 0 |
cursor_str, self.cursor);
try_str_match!(CookieToken::Semicolon, ";", cursor_str, self.cursor);
try_str_match!(CookieToken::DoubleQuote, "\"", cursor_str, self.cursor);
try_fn_match!(
CookieToken::Whitespace,
matching::is_whitespace_char,
self.char_indices,
... | Rust | 0 |
Database": "Άνοιγμα βάσης δεδομένων",
"saveDatabaseAs": "Αποθήκευση βάσης δεδομένων ως ...",
"newChat": "Νέα συνομιλία",
"saveChat": "Αποθήκευση συνομιλίας",
"printChat": "Εκτύπωση συνομιλίας",
"replace": "Αντικατάσταση '",
"replaceWith": "Αντικατάσταση με:",
"replaceAll": "Αντικατάσταση ALL... | Python | 1 |
unBootcamp(self):
_logger.debug('ManualChapterView. Requested bootcamp start.')
self.bootcamp.runBootcamp()
def showChapterView(self, chapterIndex=0, pageIndex=0):
self._isChapterViewOnScreen = True
chapterView = self.getChapterView()
if chapterView:
chapterView.... | Python | 1 |
*np.log(2*np.pi) + \
-np.sum(np.log(np.diag(LA)))*output_dim + \
0.5*num_data*output_dim*np.log(precision) + \
-0.5*precision*np.sum(np.square(Y)) + \
0.5*np.sum(np.square(b)) + \
trace_term
# Com... | Python | 1 |
import random
def getInteger(promt , min = None):
while True:
try :
value = int(input(promt))
if min is not None or value > min :
return value
else :
print(f"Please enter a number greater than {min}.")
except ValueError:
... | Python | 1 |
from Py4GWCoreLib import *
MODULE_NAME = "Color Picker"
def configure():
pass
button_color:Tuple[float, float, float, float] = Color(90,0,10,255).to_tuple_normalized() # RGBA format
hovered_color:Tuple[float, float, float, float] = Color(160,0,15,255).to_tuple_normalized() # RGBA format
active_color:Tuple[floa... | Python | 1 |
shader: CookedShader = coerce_result_string(
bincode::deserialize::<CookedShader>(&bytes)
.map_err(|x| format!("Failed to deserialize cooked shader: {:?}", x)),
)?;
let code = rafx_api_vulkan::util::read_spv(&mut Cursor::new(&cooked_shader.spv))?;
log::trace!(
... | Rust | 0 |
a
d @ s d Z ddlmZ ddlZddlZddlZg dZdZdZdZdZ dd Z
d d
Zdd Zd
d Z
dd Zdd Zdd ZeefddZeefddZdS )zPseudo terminal utilities. )selectN)openptyforkspawn c C s< |