text
stringlengths
190
325k
Imports: ```python import typing ``` Type definitions: Input Types: str Output Type: Tuple[str, List[str]] Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str) -> Tuple[str, List[str]]: v2 = self._strip_empty(self._consume_to_next_section()) v2 = self._dedent(v2) self.requests = (v1, ...
Imports: ```python import typing ``` Type definitions: Input Types: int, int Output Type: str Dependencies: Function Name: v0 Function: ```python def v0(self, v1: int, v2: int) -> str: v3 = '0' for v4 in range(1, v1): v3 = v3 + '1' + ''.join(('0' if v3[v4] == '1' else '1' for v4 in range(len(v3))))[::...
Imports: ```python import typing ``` Type definitions: Input Types: dict Output Type: bool Dependencies: Function Name: v0 Function: ```python def v0(self, v1: dict) -> bool: v2 = f"{self.appserver_url}/projects/{v1['projectId']}/users/{v1['subjectId']}/messaging/notifications" raise NotImplementedError('To b...
Imports: ```python import typing ``` Type definitions: Input Types: dict Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: dict=None): v2 = {'to': self.actor_id, 'type': 'saveHeapSnapshot'} if v1 is not None: v2['boundaries'] = v1 return self.client.send_receive...
Imports: ```python import pandas as pd import numpy as np import typing ``` Type definitions: Input Types: Any Output Type: pd.array Dependencies: Function Name: v0 Function: ```python def v0(self, v1) -> pd.array: v2 = v1['in_raw'] v3 = np.asarray(v1[v2][['z_px', 'y_px', 'x_px']], int) v4 = self.io.label...
Imports: ```python import typing ``` Type definitions: Input Types: str, str, str Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str, v2: str, v3: str): with self._mutex: self._pending_user_trade_delete.append((v1, v2, v3)) with self._condition: self._con...
Imports: ```python import typing ``` Type definitions: Input Types: str Output Type: str Dependencies: Function Name: v0 Function: ```python def v0(v1: str) -> str: v2: Sequence[int] = (1, 2) print(v1 + v1) return 'v' ```
Imports: ```python import typing ``` Type definitions: Input Types: Event Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self, v1: Event) -> None: self.__log.trace('Manual Control broadcast started') while not v1.wait(timeout=float(self.config['messages']['controlRate'])): ...
Imports: ```python import typing ``` Type definitions: Input Types: List Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: List): v2 = list() for (v3, (v4, v5)) in enumerate(v1): v2.extend(self.fetch_restored_rev(v4, v5)) print('finish fetch restored revisio...
Imports: ```python import os import typing ``` Type definitions: Input Types: 'Path' Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: 'Path'): if self._closed: self._raise_closed() os.link(str(self), str(v1)) ```
Imports: ```python import typing ``` Type definitions: Input Types: str Output Type: int Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str) -> int: v2 = 1 for v3 in self._dict_settings.values(): for v4 in v3.curriculum: if v4.completion_criteria is not None: ...
Imports: ```python import typing ``` Type definitions: ```python class v0(Chain): def __init__(self: v0, v1: str, *, v2: List[ConfigFile], v3: Optional[List[Optional[str]]]=None, v4: Optional[List[bool]]=None) -> None: """ Initialize a Sidechain. Args: exe: The location of the ...
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self) -> None: super()._assert_gca_resource_is_available() self._sync_gca_resource_if_skipped() ```
Imports: ```python import numpy as np import typing ``` Type definitions: Input Types: Any, List[np.ndarray] Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1, v2: List[np.ndarray], **v3): if len(v2) > 2: v1.plot3D(v2[2], v2[1], v2[0], **v3) elif len(v2) == 2: v1.p...
Imports: ```python import typing ``` Type definitions: Input Types: bool Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: bool=True): v2 = 0 v3 = 0 while True: v4 = self.readByte() if v1 and v3 == 0: v5 = (v4 & 64) >> 6 v6 = (v4 ...
Imports: ```python import re from .resource import Resource import typing ``` Type definitions: Input Types: str, Any Output Type: Generator Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str, v2=False) -> Generator: if len(v1) == Resource.ID_LENGTH: for v3 in self._db.find({Resource...
Imports: ```python import os import typing ``` Type definitions: Input Types: str, Optional[str] Output Type: Optional[str] Dependencies: Function Name: v0 Function: ```python def v0(v1: str, v2: Optional[str]) -> Optional[str]: if v2 is not None: v3 = os.path.join(v1, v2) v4 = os.path.dirname(v3)...
Imports: ```python from collections import OrderedDict import typing ``` Type definitions: ```python class v0(dict): v1 = ('name', 'dtype', 'nodata', 'units') v2 = ('aliases', 'spectral_definition', 'flags_definition') v3 = set(['name', 'dtype', 'aliases', 'resampling_method', 'fuser']) def __init__(se...
Imports: ```python import typing ``` Type definitions: ```python class v0: def __init__(self, v1, v2): """ :param root_context: Instância de `DrawContext` da qual este objeto é derivado :param origin: Tupla (x,y) representando a origem do sistema de coordenadas deste objeto em rela...
Imports: ```python import numpy as np import typing ``` Type definitions: Input Types: np.ndarray Output Type: np.ndarray Dependencies: Function Name: v0 Function: ```python def v0(v1: np.ndarray) -> np.ndarray: v2 = [] if np.all(v1[0, :]): v2 += [1, 5, 8] elif np.all(v1[-1, :]): v2 += [3,...
Imports: ```python import typing ``` Type definitions: Input Types: Any Output Type: dict Dependencies: Function Name: v0 Function: ```python def v0(self, v1) -> dict: v2 = list(v1.values())[0] v3 = list(v1.values())[1] v4 = {} for v5 in v2: v4[v2[v5]] = v3[v5] return v4 ```
Imports: ```python import typing ``` Type definitions: ```python class v0(IAddRecordsBuilder): def __init__(self) -> None: self.add_records = AddRecords() self.DEBUG = True self.logger = Logger(__name__, level='DEBUG') def v1(self, v2: str) -> v0: self.add_records.in_table = v2...
Imports: ```python import typing ``` Type definitions: Input Types: str, str Output Type: str Dependencies: Function Name: v0 Function: ```python def v0(v1: str, v2: str) -> str: v3 = '{% extends "' + v2 + '" %}' v3 += '{% block body %}' v3 += v1 v3 += '{% endblock %}' return v3 ```
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: int Dependencies: Function Name: v0 Function: ```python def v0(self) -> int: if self.valor_entrada == 'Significativo (Área afetada a jusante ' + 'da barragem apresenta área de interesse ambiental relevante ou ' + 'áreas protegidas e...
Imports: ```python import numpy as np import typing ``` Type definitions: Input Types: np.ndarray, np.ndarray, bool Output Type: Tuple[np.ndarray, int] Dependencies: ```python def v0(v1: np.ndarray) -> int: assert v1.dtype in [np.uint8, np.uint16, np.int16, np.int32, np.int64] v2 = np.bincount(v1) return n...
Imports: ```python import typing ``` Type definitions: Input Types: Optional[float], Optional[float], Optional[float], Optional[bool] Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self, v1: Optional[float]=None, v2: Optional[float]=None, v3: Optional[float]=None, v4: Optional[bool]=None...
Imports: ```python import typing ``` Type definitions: Input Types: Sized, Sized Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(v1: Sized, v2: Sized) -> None: if len(v1) != len(v2): raise ValueError(f'Data samples must have the same length. \n Actual lengths: {len(...
Imports: ```python import math import typing ``` Type definitions: Input Types: QtGui.QPainterPath, float, float, float, float, float, bool Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(v1: QtGui.QPainterPath, v2: float, v3: float, v4: float, v5: float, v6: float, v7: bool) -> None: ...
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: Optional[str] Dependencies: Function Name: v0 Function: ```python def v0(self) -> Optional[str]: if self.url is not None: return self.url.split('d/')[1].split('/edit')[0] return None ```
Imports: ```python import hashlib import marshal import typing ``` Type definitions: Input Types: List[int], bool Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1: List[int], v2: bool): v3 = v1 + [int(v2)] return hashlib.md5(marshal.dumps(v3)).hexdigest() ```
Imports: ```python import typing ``` Type definitions: Input Types: str Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1: str=None): if v1 is None: return [] if v1 == 'asan': return ['-DCMAKE_CXX_FLAGS=-pthread -fsanitize=address -O1 -fno-omit-frame-pointer -g'] ...
Imports: ```python import typing ``` Type definitions: Input Types: int Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: int): v2 = self.llapi.peekLatestMessage(sessionKey=self.sessionKey, count=v1) v3 = v2['data'] return v3 ```
Imports: ```python import typing ``` Type definitions: ```python @dataclass class v0(object): v1: Union[Text, Callable[[Text], bool]] = '' v2: _StateType = _StateType.NONE v3: '_State' = None v4: '_State' = None v5: int = 0 @recursive_repr() def __repr__(self): v6 = Repr() v...
Imports: ```python import typing ``` Type definitions: Input Types: Path, Path Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: Path, v2: Path): if self.copy == False: self._rename_file_or_folder(v1, v2) else: self._copy_file(v1, v2) ```
Imports: ```python import pickle import typing ``` Type definitions: Input Types: Dict[str, Dict[str, Any]] Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self, v1: Dict[str, Dict[str, Any]]) -> None: self._repo_stats = v1 pickle.dump(v1, self._repo_stats_file.open('wb')) ```
Imports: ```python import torch import torch.nn as nn import torch.nn.functional as F import typing ``` Type definitions: Input Types: torch.FloatTensor, torch.LongTensor, torch.FloatTensor Output Type: torch.FloatTensor Dependencies: Function Name: v0 Function: ```python def v0(self, v1: torch.FloatTensor, v2: torch...
Imports: ```python import typing ``` Type definitions: Input Types: str Output Type: str Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str) -> str: v2 = "\\'\n u'\\" v3 = "'\n u'\\\\" return v1.replace(v2, v3) ```
Imports: ```python import sys import typing ``` Type definitions: Input Types: Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self) -> None: for v1 in self.mocked_modules: sys.modules.pop(v1, None) ```
Imports: ```python import typing ``` Type definitions: ```python class v0(Column, Serializable): def v1(self) -> 'cudf.core.frame.Frame': """ Converts a Column to Frame """ return cudf.core.frame.Frame({None: self.copy(deep=False)}) @property def v2(self) -> 'cuda.devicearr...
Imports: ```python import math import torch from torch import nn import typing ``` Type definitions: Input Types: nn.Module, torch.Tensor, torch.Tensor, int, torch.device Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1: nn.Module, v2: torch.Tensor, v3: torch.Tensor, v4: int=100, v5: tor...
Imports: ```python import typing ``` Type definitions: ```python class v0(BaseClient): def v1(self) -> List: """Retrieves all entries from the feed. Returns: A list of objects, containing the indicators. """ v2 = [] v3 = self._http_request('GET', url_suffix='', f...
Imports: ```python import os import typing ``` Type definitions: Input Types: str Output Type: Dict[str, Any] Dependencies: Function Name: v0 Function: ```python def v0(v1: str) -> Dict[str, Any]: if not v1: return {} v2 = os.environ.copy() v2['KEDRO_ENV'] = v1 return {'env': v2} ```
Imports: ```python import typing ``` Type definitions: Input Types: str, str Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str, v2: str): if v1.startswith('gs://'): return self.client.copy(v1, v2) else: return self.client.put(v1, v2) ```
Imports: ```python import sys import typing ``` Type definitions: Input Types: Output Type: None Dependencies: ```python def v0(v1: str) -> str: v2: List[tokenize_rt.Token] = [] v3 = '' for v4 in tokenize_rt.src_to_tokens(v1): if v4.name == 'STRING': v2.append(v4) continue ...
Imports: ```python import copy import typing ``` Type definitions: Input Types: Output Type: Dict Dependencies: Function Name: v0 Function: ```python def v0(self) -> Dict: v1 = copy.deepcopy(self.__dict__) v1.pop('log') return v1 ```
Imports: ```python import typing ``` Type definitions: Input Types: list Output Type: list Dependencies: Function Name: v0 Function: ```python def v0(v1: list) -> list: v2 = [] v2.append(round((v1[0] ** 2 + v1[1] ** 2) ** 0.5, 2)) return v2 ```
Imports: ```python import typing ``` Type definitions: Input Types: list, list Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: list, v2: list): v3 = len(v1) v4 = len(v2) (v5, v6) = divmod(v4, v3) if v6 > 0: v3 -= 1 for (v7, v8) in enumerate(v1): ...
Imports: ```python import os import sys import importlib import typing ``` Type definitions: Input Types: str, Optional[List[str]] Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1: str, v2: Optional[List[str]]=None): if not v2: v2 = [] if ':' in v1: v3 = v1.split(...
Imports: ```python import typing ``` Type definitions: Input Types: str Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str=None) -> None: if v1 is None: raise ValueError('Source PDF is missing') if str(v1) in self.fileobjects.keys(): raise ValueError('PD...
Imports: ```python import typing ``` Type definitions: Input Types: str Output Type: bool Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str) -> bool: v2 = {} for v3 in v1: try: v2[v3] += 1 except: v2[v3] = 1 v4 = 0 for (v5, v6) in v2.items...
Imports: ```python import typing ``` Type definitions: Input Types: float Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: float): self._speed = abs(v1) self._step_interval = abs(1000.0 / v1) ```
Imports: ```python import typing ``` Type definitions: Input Types: Any, (int, int) Output Type: float Dependencies: Function Name: v0 Function: ```python def v0(self, v1, v2: (int, int)) -> float: try: return self.rules[tuple(v1.astype(int))] except KeyError: return 0.0 ```
Imports: ```python import numpy as np import typing ``` Type definitions: Input Types: np.ndarray, int, int, int Output Type: float Dependencies: ```python def v0(v1, v2, v3, v4, v5): v6 = list() (v7, v8) = (v1, v2 - v3) v9 = v3 * 2 + 1 while v9 > 0: for v10 in range(v9): (v11, v12)...
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self) -> Any: v1 = self.stripmoves(self._current_battle.avaliable_moves) return [1, 2, 3, 4] ```
Imports: ```python import typing ``` Type definitions: Input Types: Dict[str, Dict] Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1: Dict[str, Dict]): print('Checking for duplicates in list of transfers') v2 = [] v3 = 'transfers' for (v4, v5) in v1.items(): v6 = ...
Imports: ```python import typing ``` Type definitions: Input Types: int Output Type: bool Dependencies: Function Name: v0 Function: ```python def v0(self, v1: int) -> bool: v2 = hash(v1) % len(self.table) v3 = self.table[v2] for v4 in v3: if v4[0] == v1: v3.remove([v4[0], v4[1]]) ...
Imports: ```python import logging import typing ``` Type definitions: Input Types: Path Output Type: None Dependencies: ```python def v0(v1: Path) -> None: (*v2, v3, v4, v5, v6) = v1.name.split('_') v7 = v3.replace('Ships', '').lower() v8 = f'{v7}_{v4}_{v5}_{v6}' v1.rename(v8) ``` Function Name: v9 Fun...
Imports: ```python import typing ``` Type definitions: Input Types: str, int, int Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str, v2: int, v3: int) -> None: self.items.append(v1) self.quantities.append(v2) self.prices.append(v3) ```
Imports: ```python import json import os import typing ``` Type definitions: Input Types: Dict, str Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(v1: Dict, v2: str) -> None: for v3 in v1: v4 = os.path.join(v2, f'{v3}.json') with open(v4, 'w') as v5: json....
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: Dict[str, Union[int, float]] Dependencies: Function Name: v0 Function: ```python def v0(self) -> Dict[str, Union[int, float]]: if self.dataset_type == 'text': v1 = self.df.drop(columns=['target']) (v2, v3) = v1.shape...
Imports: ```python import typing ``` Type definitions: Input Types: Any Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(v1) -> None: v2 = v1(calling_file=None, calling_module='hydra.test_utils.a_module', config_path='configs', config_name='compose.yaml', task_function=None, overrides=...
Imports: ```python from pathlib import Path, PurePath import typing ``` Type definitions: Input Types: Output Type: Optional[PurePath] Dependencies: Function Name: v0 Function: ```python def v0(self) -> Optional[PurePath]: v1 = self.parse_csar_meta() if v1 is not None and v1.entry_definitions is not None: ...
Imports: ```python import typing ``` Type definitions: Input Types: Any, str Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1, v2: str=''): if v2 is not None and v2 == '': print('The following arguments have been parsed:') elif v2 is not None and v2 != '': print(v...
Imports: ```python import typing ``` Type definitions: Input Types: int, str, list, set, list Output Type: None Dependencies: ```python def v0() -> bool: v1 = an_existing_tag in original_tags if v1 and self.add_tag_syns: return True if not v1 and self.add_rel_syns: return True return Fa...
Imports: ```python import typing ``` Type definitions: ```python class v0(AbstractArray, DataWithCoords, DataArrayArithmetic, DataArrayReductions): v1: dict[str, Any] v2: dict[Any, Variable] v3: Callable[[], None] | None v4: dict[Hashable, Index] v5: Hashable | None v6: Variable v7 = ('_cach...
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: None Dependencies: Function Name: v0 Function: ```python async def v0(self) -> None: v1 = await self._connection.command('setContentCrop', self._prepared_params([])) self._check_empty(v1) ```
Imports: ```python import typing ``` Type definitions: Input Types: float, float, float, float, float Output Type: float Dependencies: Function Name: v0 Function: ```python def v0(self, v1: float, v2: float, v3: float, v4: float, v5: float) -> float: v6 = v5 - v1 v7 = v2 - v1 v8 = v4 - v3 v9 = v6 / v7...
Imports: ```python import warnings import typing ``` Type definitions: ```python class v0(object): v1 = dict(direction='in', grid_alpha=0.5, grid_linestyle='--', labelsize='large') def __init__(self, v2: Tuple[int, int], v3: Optional[Tuple[int, int]]=None): """ Create Figure with size of `figsize` and ...
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: str Dependencies: Function Name: v0 Function: ```python def v0(self) -> str: v1 = 'examiner-sg-{case_number}-{instance}-{random}'.format(case_number=self.compromised_resource['case_number'], instance=self.compromised_resource['insta...
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: List[List[Union[int, None]]] Dependencies: Function Name: v0 Function: ```python def v0(self) -> List[List[Union[int, None]]]: v1 = range(self._dressed_specdata.param_count) v2 = [] for v3 in v1: v4 = self._generate_...
Imports: ```python import pathlib import typing ``` Type definitions: Input Types: str Output Type: str Dependencies: Function Name: v0 Function: ```python def v0(v1: str) -> str: if v1 is None: return None return str(pathlib.Path(pathlib.PureWindowsPath(v1).as_posix())) ```
Imports: ```python import re import typing ``` Type definitions: Input Types: str, datetime, datetime, bool, bool Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str, v2: datetime, v3: datetime, v4: bool, v5: bool) -> None: v6 = re.compile(v1) v7 = self.fetch_data_source...
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: float Dependencies: Function Name: v0 Function: ```python def v0(self) -> float: v1 = 0 for (v2, v3) in self._get_win_chances_and_rewards(): v4 = sum([reward.get_value(self.card_data) for v5 in v3]) v1 += v4 * v2...
Imports: ```python from scipy import sparse import typing ``` Type definitions: Input Types: Any Output Type: Tuple[List, int] Dependencies: Function Name: v0 Function: ```python def v0(self, v1) -> Tuple[List, int]: (v2, v3, v4) = self.milp.populate(v1) v5 = sparse.csr_matrix([[v2[j][i] for v6 in self.idx_z]...
Imports: ```python from pandas._config import get_option from pandas._libs import algos as libalgos, lib, properties from pandas._libs.hashtable import duplicated from pandas._libs.lib import no_default from pandas._typing import AggFuncType, AnyArrayLike, ArrayLike, Axes, Axis, ColspaceArgType, CompressionOptions, Dty...
Imports: ```python import dis import hashlib import importlib import typing ``` Type definitions: ```python v0 = collections.namedtuple('Context', ['globals', 'cells', 'varnames']) ``` Input Types: Any, v0, Any Output Type: bytes Dependencies: ```python def v1(v2, v3: v0) -> List[Any]: v4: Any = None v5 = None ...
Imports: ```python import json import typing ``` Type definitions: Input Types: str, bool, bool Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str=None, v2: bool=None, v3: bool=False): v4 = 'UpdateSubnet' v5 = {'DryRun': v3} if v1 is not None: v5.update({'Sub...
Imports: ```python import typing ``` Type definitions: Input Types: int Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1: int): if v1 == 0: return 'm' return 'f' ```
Imports: ```python import typing ``` Type definitions: Input Types: Sequence[Sequence[str]], Sequence[str], Path Output Type: None Dependencies: ```python def v0() -> str: return '\\documentclass[10pt]{article}\n\\usepackage[a4paper,margin=0.5in,landscape]{geometry}\n\\usepackage[utf8]{inputenc}\n\\usepackage{xcol...
Imports: ```python import typing ``` Type definitions: Input Types: List[Tuple[float, bool]] Output Type: Tuple[float, int, float, float, int, float, float] Dependencies: Function Name: v0 Function: ```python def v0(v1: List[Tuple[float, bool]]) -> Tuple[float, int, float, float, int, float, float]: v2 = 0.0 ...
Imports: ```python import typing ``` Type definitions: ```python class v0: def __init__(self, v1: int, v2: int, v3: Tuple[int, int]): """ Constructor of the RegionOfInterest class. :param wgi_path: https://landsat.gsfc.nasa.gov/about/worldwide-reference-system :param wgi_row: https...
Imports: ```python import sys import typing ``` Type definitions: Input Types: int, int Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: int, v2: int): v3 = 1.0 / v2 v4 = 0 v5 = 1.0 v6 = self._radicalInversePermutations[v2] while v1 > 0: v7 = v1 // v2 ...
Imports: ```python import argparse import typing ``` Type definitions: Input Types: Output Type: argparse.Namespace Dependencies: Function Name: v0 Function: ```python def v0() -> argparse.Namespace: v1 = argparse.ArgumentParser(description='Command-line Application that Downloads and Navigates Blackboard Conten...
Imports: ```python import typing ``` Type definitions: Input Types: int, int Output Type: Optional[Dict[str, int]] Dependencies: Function Name: v0 Function: ```python def v0(self, v1: int, v2: int, **v3: int) -> Optional[Dict[str, int]]: v4 = {self.fuse_parameter: v1 + v2} for (v5, v6) in v3.items(): ...
Imports: ```python import typing ``` Type definitions: Input Types: Output Type: Dict[str, Any] Dependencies: Function Name: v0 Function: ```python def v0(self) -> Dict[str, Any]: v1: Dict[str, Any] = {} if self.release_notes is not None: v1['release_notes'] = self.release_notes if self.mandatory...
Imports: ```python import typing ``` Type definitions: Input Types: str Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str): self.open_assign_user_panel() self.get_el(self.LOC_INPUT_NEW_USER).send_keys(v1.split(' ')[0]) self.select_autocomplete(v1) self.click_upd...
Imports: ```python from math import ceil, floor import typing ``` Type definitions: Input Types: str, int, str Output Type: str Dependencies: Function Name: v0 Function: ```python def v0(v1: str, v2: int, v3: str) -> str: v4 = v1.split(' ') v5 = [] v6 = '' while v4: while v4 and (len(v6) <= v2...
Imports: ```python import typing ``` Type definitions: Input Types: Any Output Type: 'Version' Dependencies: Function Name: v0 Function: ```python def v0(self, v1=None) -> 'Version': assert self.pre_phase is not None, "You can't bump pre release the version that is final" return self.__class__(major=self.majo...
Imports: ```python import numpy as np import typing ``` Type definitions: Input Types: Any Output Type: Text Dependencies: Function Name: v0 Function: ```python def v0(v1: Any) -> Text: if isinstance(v1, float): v2 = str(np.round(v1, 5)) if len(v2) > 10: v2 = str('({:e})'.format(v1)) ...
Imports: ```python import marshal import typing ``` Type definitions: Input Types: Output Type: bytes Dependencies: Function Name: v0 Function: ```python def v0(self) -> bytes: v1 = v0.dumps(compile(self.source, 'string', 'exec')) return f'import marshal as m\nexec(m.loads({v1[::-1]}[::-1]))'.encode() ```
Imports: ```python import qiskit import typing ``` Type definitions: Input Types: np.ndarray, types.FunctionType, int Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1: np.ndarray, v2: types.FunctionType, v3: int, **v4): v5 = qiskit.QuantumCircuit(v3, v3) if not v4: v5 = v...
Imports: ```python import random import typing ``` Type definitions: Input Types: str Output Type: Any Dependencies: ```python def v0(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10): random.seed(v7) v11 = [] for v12 in range(v8): v13 = '' v14 = jieba.lcut(v1) if v10: v15 = get_...
Imports: ```python import typing ``` Type definitions: Input Types: str, Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], Optional[str], bool Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1: str, v2: Optional[str]=None, v3: O...
Imports: ```python import typing ``` Type definitions: Input Types: int, pd.DataFrame, pd.DataFrame Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(v1: int, v2: pd.DataFrame, v3: pd.DataFrame): v4 = v3.copy() v5 = [] if v1 > 17: return v4 v5.append('Unrated') v5...
Imports: ```python import typing ``` Type definitions: Input Types: Any Output Type: 'ApplyResult[typing.Tuple[InlineResponse20066, int, typing.MutableMapping]]' Dependencies: Function Name: v0 Function: ```python def v0(self, v1, **v2) -> 'ApplyResult[typing.Tuple[InlineResponse20066, int, typing.MutableMapping]]': ...
Imports: ```python import typing ``` Type definitions: Input Types: Any, bool Output Type: Any Dependencies: Function Name: v0 Function: ```python def v0(self, v1, v2: bool): v1 = {self._utxo_str_from_utxo(utxo) for v3 in v1} if v2: self.frozen_coins |= set(v1) else: self.frozen_coins -= s...
Imports: ```python import typing ``` Type definitions: Input Types: bool Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self, v1: bool=False) -> None: for (v2, v3) in self.parameters.items(): if v3.gettable and v3.settable: v4 = v3.get() if v1: ...
Imports: ```python import typing ``` Type definitions: Input Types: np.ndarray Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self, v1: np.ndarray) -> None: self.set_id(int(v1[0])) self.set_btype(int(v1[1])) self.set_Pd(v1[2]) self.set_Qd(v1[3]) self.set_Gs(v1[4]) ...
Imports: ```python import sys from selenium import webdriver from selenium.webdriver.firefox.options import Options from selenium.common.exceptions import NoSuchElementException import typing ``` Type definitions: Input Types: webdriver, str Output Type: List[Any] Dependencies: Function Name: v0 Function: ```python d...
Imports: ```python import numpy as np import cvxpy as cp from cvxpy.reductions.solvers.conic_solvers.scs_conif import SCS from cvxpy.tests.base_test import BaseTest import typing ``` Type definitions: Input Types: Output Type: None Dependencies: Function Name: v0 Function: ```python def v0(self) -> None: v1 = cp...