text string | label_name string | labels int64 |
|---|---|---|
to be provided")
exit(1)
if video_dir and not ensure_path_exists(video_dir):
logger.error("Path %s does not exist", video_dir)
exit(1)
if text_file and not ensure_path_exists(text_file):
logger.error("Path %s does not exist", text_file)
exit(1)
if video_dir:
... | Python | 1 |
structure"]
impl crate::Readable for AESCTL {}
#[doc = "`write(|w| ..)` method takes [aesctl::W](aesctl::W) writer structure"]
impl crate::Writable for AESCTL {}
#[doc = "AES Input/Output Buffer Control"]
pub mod aesctl;
#[doc = "Crypto Data Length LSW\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`... | Rust | 0 |
svg_path
def formatPath( * args):
"""
Accepts a series of pseudo svg path arguments 'M', 'L', 'C' , and point objects.
Returns path_string which is a string formatted for use as the 'd' path attribute in an svg object.
"""
tokens = [] # initialize an empty array
# put all the parameters in * ... | Python | 1 |
&Vec<i32>, input: i32) -> i32 {
let program = &mut intcode.to_vec();
if let (_, Some(res)) = intcode_computer::run_intcode(program, &mut vec![input], 0) {
res
} else {
program[0]
}
}
use std::collections::HashMap;
use std::cmp::min;
//1 <= n <= 100
// 0 <= minProfit <= 100
// 1 <= group.length <= 100
// 1 <= ... | Rust | 0 |
'tag>],
) -> MResult<()>
{
let store = ctx.documents_fields_counts_store;
let reader = ctx.reader;
'documents: for doc in documents {
doc.bare_matches.sort_unstable_by_key(|bm| (bm.query_index, Reverse(bm.is_exact)));
// mark the document if we find a "one word... | Rust | 0 |
s
------
FluxSurfaceError
If the flux surface at the point in the equilibrium is not an open flux surface
Notes
-----
Less mathematically accurate. Will return exact intersection point. Sensitive to
equilibrium grid discretisation. Presently does not correctly work for flux surfaces
... | Python | 1 |
: String,
/// connected: is player connected to the server?
pub connected: bool,
}
/// PlayerId identifies a player in the lobby.
///
/// Specifically, it's value can be used to index players in the lobby to get information such as
/// name and table position.
//
// NB: note that this means that the server wan... | Rust | 0 |
/// quote:
///
/// ```compile_fail
/// quote! {
/// /// try to interpolate: #ident
/// ///
/// /// ...
/// }
/// ```
///
/// ```compile_fail
/// quote! {
/// #[doc = "try to interpolate: #ident"]
/// }
/// ```
///
/// Macro calls in a doc attribute are not valid syntax:
///
/// ```compile_fail
/// quot... | Rust | 0 |
o_add.into_iter() {
let add_addr = deps.api.addr_validate(&add.addr)?;
MEMBERS.update(deps.storage, &add_addr, height, |old| -> StdResult<_> {
total -= old.unwrap_or_default();
total += add.points;
diffs.push(MemberDiff::new(add.addr, old, Some(add.points)));
... | Rust | 0 |
import argparse
import os
import random
import openslide
from preprocess import (
create_tissue_mask,
create_tissue_tiles,
crop_rect_from_slide,
make_tile_QC_fig,
tile_is_not_empty,
)
parser = argparse.ArgumentParser(
description="Script to sample tiles from a WSI and save them as individual ... | Python | 1 |
at(descriptor, DescriptorFormat.AGENT2AGENT)
def from_agent_card(agent_card: Dict[str, Any]) -> AgentDescriptor:
"""Convert an Agent2Agent protocol AgentCard to an AgentDescriptor."""
return from_format(agent_card, DescriptorFormat.AGENT2AGENT)
def is_agent_card_compatible(descriptor: AgentDescriptor) -> bo... | Python | 1 |