body_hash
stringlengths
64
64
body
stringlengths
23
109k
docstring
stringlengths
1
57k
path
stringlengths
4
198
name
stringlengths
1
115
repository_name
stringlengths
7
111
repository_stars
float64
0
191k
lang
stringclasses
1 value
body_without_docstring
stringlengths
14
108k
unified
stringlengths
45
133k
94935a6a354b7be507cded2a7819259aad10b57210928b5c93c8ece66945e363
def __init__(self) -> None: 'Initializes an Environment instance.\n\n Note: Environment is a singleton class, which means this method will\n only get called once. All following `Environment()` calls will return\n the previously initialized instance.\n ' self._components: Dict[(str, '...
Initializes an Environment instance. Note: Environment is a singleton class, which means this method will only get called once. All following `Environment()` calls will return the previously initialized instance.
src/zenml/environment.py
__init__
halvgaard/zenml
1
python
def __init__(self) -> None: 'Initializes an Environment instance.\n\n Note: Environment is a singleton class, which means this method will\n only get called once. All following `Environment()` calls will return\n the previously initialized instance.\n ' self._components: Dict[(str, '...
def __init__(self) -> None: 'Initializes an Environment instance.\n\n Note: Environment is a singleton class, which means this method will\n only get called once. All following `Environment()` calls will return\n the previously initialized instance.\n ' self._components: Dict[(str, '...
80c59ba65f235f09c021d43a659f84648c31789e5bb9b53529a4640f803783fd
@property def step_is_running(self) -> bool: 'Returns if a step is currently running.' from zenml.steps import STEP_ENVIRONMENT_NAME return self.has_component(STEP_ENVIRONMENT_NAME)
Returns if a step is currently running.
src/zenml/environment.py
step_is_running
halvgaard/zenml
1
python
@property def step_is_running(self) -> bool: from zenml.steps import STEP_ENVIRONMENT_NAME return self.has_component(STEP_ENVIRONMENT_NAME)
@property def step_is_running(self) -> bool: from zenml.steps import STEP_ENVIRONMENT_NAME return self.has_component(STEP_ENVIRONMENT_NAME)<|docstring|>Returns if a step is currently running.<|endoftext|>
11dc3e5350b9006788133483d887da559b79e21f97ed7e95988cd4bfecdb167a
@staticmethod def get_system_info() -> Dict[(str, Any)]: 'Information about the operating system.' system = platform.system() if (system == 'Windows'): (release, version, csd, ptype) = platform.win32_ver() return {'os': 'windows', 'windows_version_release': release, 'windows_version': versio...
Information about the operating system.
src/zenml/environment.py
get_system_info
halvgaard/zenml
1
python
@staticmethod def get_system_info() -> Dict[(str, Any)]: system = platform.system() if (system == 'Windows'): (release, version, csd, ptype) = platform.win32_ver() return {'os': 'windows', 'windows_version_release': release, 'windows_version': version, 'windows_version_service_pack': csd, '...
@staticmethod def get_system_info() -> Dict[(str, Any)]: system = platform.system() if (system == 'Windows'): (release, version, csd, ptype) = platform.win32_ver() return {'os': 'windows', 'windows_version_release': release, 'windows_version': version, 'windows_version_service_pack': csd, '...
f71d89bfbdb5260b538149919278568007827be8d466b2cde41c61389528af0a
@staticmethod def python_version() -> str: 'Returns the python version of the running interpreter.' return platform.python_version()
Returns the python version of the running interpreter.
src/zenml/environment.py
python_version
halvgaard/zenml
1
python
@staticmethod def python_version() -> str: return platform.python_version()
@staticmethod def python_version() -> str: return platform.python_version()<|docstring|>Returns the python version of the running interpreter.<|endoftext|>
971af81d175643b01ca57fdf26b18eed72c507887b86920c7b4d4d58c885fab9
@staticmethod def in_docker() -> bool: 'If the current python process is running in a docker container.' try: with open('/proc/1/cgroup', 'rt') as ifh: info = ifh.read() return (('docker' in info) or ('kubepod' in info)) except (FileNotFoundError, Exception): return F...
If the current python process is running in a docker container.
src/zenml/environment.py
in_docker
halvgaard/zenml
1
python
@staticmethod def in_docker() -> bool: try: with open('/proc/1/cgroup', 'rt') as ifh: info = ifh.read() return (('docker' in info) or ('kubepod' in info)) except (FileNotFoundError, Exception): return False
@staticmethod def in_docker() -> bool: try: with open('/proc/1/cgroup', 'rt') as ifh: info = ifh.read() return (('docker' in info) or ('kubepod' in info)) except (FileNotFoundError, Exception): return False<|docstring|>If the current python process is running in a do...
d9e6d2ea64bd3d29f224578c153805c6fb3c265ff069b0ad0cb01804299f7344
@staticmethod def in_google_colab() -> bool: 'If the current python process is running in a Google Colab.' return ('COLAB_GPU' in os.environ)
If the current python process is running in a Google Colab.
src/zenml/environment.py
in_google_colab
halvgaard/zenml
1
python
@staticmethod def in_google_colab() -> bool: return ('COLAB_GPU' in os.environ)
@staticmethod def in_google_colab() -> bool: return ('COLAB_GPU' in os.environ)<|docstring|>If the current python process is running in a Google Colab.<|endoftext|>
258aac353539845bc1ae80bce391f656c249afb32026bc9aa382f83b21c549d0
@staticmethod def in_notebook() -> bool: 'If the current python process is running in a notebook.' try: from IPython import get_ipython if (get_ipython() is None): return False else: return True except ImportError: return False
If the current python process is running in a notebook.
src/zenml/environment.py
in_notebook
halvgaard/zenml
1
python
@staticmethod def in_notebook() -> bool: try: from IPython import get_ipython if (get_ipython() is None): return False else: return True except ImportError: return False
@staticmethod def in_notebook() -> bool: try: from IPython import get_ipython if (get_ipython() is None): return False else: return True except ImportError: return False<|docstring|>If the current python process is running in a notebook.<|endoftext|>
b2a751d54faac3d0c136b6f26b8750aa7b448c28f2552f33fd5b4afb93cfdb4b
@staticmethod def in_paperspace_gradient() -> bool: 'If the current python process is running in Paperspace Gradient.' return ('PAPERSPACE_NOTEBOOK_REPO_ID' in os.environ)
If the current python process is running in Paperspace Gradient.
src/zenml/environment.py
in_paperspace_gradient
halvgaard/zenml
1
python
@staticmethod def in_paperspace_gradient() -> bool: return ('PAPERSPACE_NOTEBOOK_REPO_ID' in os.environ)
@staticmethod def in_paperspace_gradient() -> bool: return ('PAPERSPACE_NOTEBOOK_REPO_ID' in os.environ)<|docstring|>If the current python process is running in Paperspace Gradient.<|endoftext|>
25b684a08bcc2d130ab8cf6ee0f1707df1d1a3d141c386bd1024ef875d7f7f56
def register_component(self, component: 'BaseEnvironmentComponent') -> 'BaseEnvironmentComponent': 'Registers an environment component.\n\n Args:\n name: the environment component name.\n component: a BaseEnvironmentComponent instance.\n\n Returns:\n The newly register...
Registers an environment component. Args: name: the environment component name. component: a BaseEnvironmentComponent instance. Returns: The newly registered environment component, or the environment component that was already registered under the given name.
src/zenml/environment.py
register_component
halvgaard/zenml
1
python
def register_component(self, component: 'BaseEnvironmentComponent') -> 'BaseEnvironmentComponent': 'Registers an environment component.\n\n Args:\n name: the environment component name.\n component: a BaseEnvironmentComponent instance.\n\n Returns:\n The newly register...
def register_component(self, component: 'BaseEnvironmentComponent') -> 'BaseEnvironmentComponent': 'Registers an environment component.\n\n Args:\n name: the environment component name.\n component: a BaseEnvironmentComponent instance.\n\n Returns:\n The newly register...
a29ff4be4e9b7645c3213d13354a4ff569cf21793f26a3b67ae5e23da1337d06
def deregister_component(self, component: 'BaseEnvironmentComponent') -> None: 'Deregisters an environment component.\n\n Args:\n component: a BaseEnvironmentComponent instance.\n ' if (self._components.get(component.NAME) is component): del self._components[component.NAME] ...
Deregisters an environment component. Args: component: a BaseEnvironmentComponent instance.
src/zenml/environment.py
deregister_component
halvgaard/zenml
1
python
def deregister_component(self, component: 'BaseEnvironmentComponent') -> None: 'Deregisters an environment component.\n\n Args:\n component: a BaseEnvironmentComponent instance.\n ' if (self._components.get(component.NAME) is component): del self._components[component.NAME] ...
def deregister_component(self, component: 'BaseEnvironmentComponent') -> None: 'Deregisters an environment component.\n\n Args:\n component: a BaseEnvironmentComponent instance.\n ' if (self._components.get(component.NAME) is component): del self._components[component.NAME] ...
9043425b500d8a5394ae5a66155f55b5842a82e39e1fdd290b817618bdd4f9c0
def get_component(self, name: str) -> Optional['BaseEnvironmentComponent']: 'Get the environment component with a known name.\n\n Args:\n name: the environment component name.\n\n Returns:\n The environment component that is registered under the given name,\n or None i...
Get the environment component with a known name. Args: name: the environment component name. Returns: The environment component that is registered under the given name, or None if no such component is registered.
src/zenml/environment.py
get_component
halvgaard/zenml
1
python
def get_component(self, name: str) -> Optional['BaseEnvironmentComponent']: 'Get the environment component with a known name.\n\n Args:\n name: the environment component name.\n\n Returns:\n The environment component that is registered under the given name,\n or None i...
def get_component(self, name: str) -> Optional['BaseEnvironmentComponent']: 'Get the environment component with a known name.\n\n Args:\n name: the environment component name.\n\n Returns:\n The environment component that is registered under the given name,\n or None i...
a18277f905067529a6336732d95972dfc6bac962e0fa76d74ecb74bca85b9adb
def get_components(self) -> Dict[(str, 'BaseEnvironmentComponent')]: 'Get all registered environment components.' return self._components.copy()
Get all registered environment components.
src/zenml/environment.py
get_components
halvgaard/zenml
1
python
def get_components(self) -> Dict[(str, 'BaseEnvironmentComponent')]: return self._components.copy()
def get_components(self) -> Dict[(str, 'BaseEnvironmentComponent')]: return self._components.copy()<|docstring|>Get all registered environment components.<|endoftext|>
bc3553351b05836cf8918d7663698e52aff6dbb69bafd362968ddb288e8d906e
def has_component(self, name: str) -> bool: 'Check if the environment component with a known name is currently\n available.\n\n Args:\n name: the environment component name.\n\n Returns:\n `True` if an environment component with the given name is\n currently reg...
Check if the environment component with a known name is currently available. Args: name: the environment component name. Returns: `True` if an environment component with the given name is currently registered for the given name, `False` otherwise.
src/zenml/environment.py
has_component
halvgaard/zenml
1
python
def has_component(self, name: str) -> bool: 'Check if the environment component with a known name is currently\n available.\n\n Args:\n name: the environment component name.\n\n Returns:\n `True` if an environment component with the given name is\n currently reg...
def has_component(self, name: str) -> bool: 'Check if the environment component with a known name is currently\n available.\n\n Args:\n name: the environment component name.\n\n Returns:\n `True` if an environment component with the given name is\n currently reg...
9eb90bcd2451f9bc8a2e43b69969221b2d43d3b0bd222b2064ad0e3770b90558
def __getitem__(self, name: str) -> 'BaseEnvironmentComponent': 'Get the environment component with the given name.\n\n Args:\n name: the environment component name.\n\n Returns:\n `BaseEnvironmentComponent` instance that was registered for the\n given name.\n\n ...
Get the environment component with the given name. Args: name: the environment component name. Returns: `BaseEnvironmentComponent` instance that was registered for the given name. Raises: KeyError: if no environment component is registered for the given name.
src/zenml/environment.py
__getitem__
halvgaard/zenml
1
python
def __getitem__(self, name: str) -> 'BaseEnvironmentComponent': 'Get the environment component with the given name.\n\n Args:\n name: the environment component name.\n\n Returns:\n `BaseEnvironmentComponent` instance that was registered for the\n given name.\n\n ...
def __getitem__(self, name: str) -> 'BaseEnvironmentComponent': 'Get the environment component with the given name.\n\n Args:\n name: the environment component name.\n\n Returns:\n `BaseEnvironmentComponent` instance that was registered for the\n given name.\n\n ...
7349247186b882ba31df65e696eb29211ff63466eaaf164948a084bee4c6aa71
@property def step_environment(self) -> 'StepEnvironment': 'Get the current step environment component, if one is available.\n\n This should only be called in the context of a step function.\n\n Returns:\n The `StepEnvironment` that describes the current step.\n ' from zenml.step...
Get the current step environment component, if one is available. This should only be called in the context of a step function. Returns: The `StepEnvironment` that describes the current step.
src/zenml/environment.py
step_environment
halvgaard/zenml
1
python
@property def step_environment(self) -> 'StepEnvironment': 'Get the current step environment component, if one is available.\n\n This should only be called in the context of a step function.\n\n Returns:\n The `StepEnvironment` that describes the current step.\n ' from zenml.step...
@property def step_environment(self) -> 'StepEnvironment': 'Get the current step environment component, if one is available.\n\n This should only be called in the context of a step function.\n\n Returns:\n The `StepEnvironment` that describes the current step.\n ' from zenml.step...
f30e737bbcbfa7b70fafbfb378b5e4f2532b16331d0ff8f8dfb3e96fa35c77ec
def __new__(mcs, name: str, bases: Tuple[(Type[Any], ...)], dct: Dict[(str, Any)]) -> 'EnvironmentComponentMeta': 'Hook into creation of an BaseEnvironmentComponent class.' cls = cast(Type['BaseEnvironmentComponent'], super().__new__(mcs, name, bases, dct)) if (name != 'BaseEnvironmentComponent'): a...
Hook into creation of an BaseEnvironmentComponent class.
src/zenml/environment.py
__new__
halvgaard/zenml
1
python
def __new__(mcs, name: str, bases: Tuple[(Type[Any], ...)], dct: Dict[(str, Any)]) -> 'EnvironmentComponentMeta': cls = cast(Type['BaseEnvironmentComponent'], super().__new__(mcs, name, bases, dct)) if (name != 'BaseEnvironmentComponent'): assert (cls.NAME and (cls.NAME != _BASE_ENVIRONMENT_COMPONE...
def __new__(mcs, name: str, bases: Tuple[(Type[Any], ...)], dct: Dict[(str, Any)]) -> 'EnvironmentComponentMeta': cls = cast(Type['BaseEnvironmentComponent'], super().__new__(mcs, name, bases, dct)) if (name != 'BaseEnvironmentComponent'): assert (cls.NAME and (cls.NAME != _BASE_ENVIRONMENT_COMPONE...
898252aa69910b56d792c697cfd1af7b2e03f8dad4e8f768e551d740e13ec9cc
def __init__(self) -> None: 'Initialize an environment component.' self._active = False
Initialize an environment component.
src/zenml/environment.py
__init__
halvgaard/zenml
1
python
def __init__(self) -> None: self._active = False
def __init__(self) -> None: self._active = False<|docstring|>Initialize an environment component.<|endoftext|>
7ee0b9ea9f3d7fca729383683beb0ed09e3657de967ad243324707b0ebfac6c1
def activate(self) -> None: 'Activate the environment component and register it in the global\n Environment.\n\n Raises:\n RuntimeError: if the component is already active.\n ' if self._active: raise RuntimeError(f'Environment component {self.NAME} is already active.') ...
Activate the environment component and register it in the global Environment. Raises: RuntimeError: if the component is already active.
src/zenml/environment.py
activate
halvgaard/zenml
1
python
def activate(self) -> None: 'Activate the environment component and register it in the global\n Environment.\n\n Raises:\n RuntimeError: if the component is already active.\n ' if self._active: raise RuntimeError(f'Environment component {self.NAME} is already active.') ...
def activate(self) -> None: 'Activate the environment component and register it in the global\n Environment.\n\n Raises:\n RuntimeError: if the component is already active.\n ' if self._active: raise RuntimeError(f'Environment component {self.NAME} is already active.') ...
c495672d7f997c657e964428f750bc8bec244f39d5237b32c7a4549ad4e9dc89
def deactivate(self) -> None: 'Deactivate the environment component and deregister it from the\n global Environment.\n\n Raises:\n RuntimeError: if the component is not active.\n ' if (not self._active): raise RuntimeError(f'Environment component {self.NAME} is not active...
Deactivate the environment component and deregister it from the global Environment. Raises: RuntimeError: if the component is not active.
src/zenml/environment.py
deactivate
halvgaard/zenml
1
python
def deactivate(self) -> None: 'Deactivate the environment component and deregister it from the\n global Environment.\n\n Raises:\n RuntimeError: if the component is not active.\n ' if (not self._active): raise RuntimeError(f'Environment component {self.NAME} is not active...
def deactivate(self) -> None: 'Deactivate the environment component and deregister it from the\n global Environment.\n\n Raises:\n RuntimeError: if the component is not active.\n ' if (not self._active): raise RuntimeError(f'Environment component {self.NAME} is not active...
0b70d569a3d29dd06a24d3cbbdb01cc777b17bd76213406c9620390a85c579f7
@property def active(self) -> bool: 'Check if the environment component is currently active.' return self._active
Check if the environment component is currently active.
src/zenml/environment.py
active
halvgaard/zenml
1
python
@property def active(self) -> bool: return self._active
@property def active(self) -> bool: return self._active<|docstring|>Check if the environment component is currently active.<|endoftext|>
3260879633334beb2dce7bbf5b73544303224f46e96e3aad2781874a08f8c7ee
def __enter__(self) -> 'BaseEnvironmentComponent': 'Environment component context entry point.\n\n Returns:\n The BaseEnvironmentComponent instance.\n ' self.activate() return self
Environment component context entry point. Returns: The BaseEnvironmentComponent instance.
src/zenml/environment.py
__enter__
halvgaard/zenml
1
python
def __enter__(self) -> 'BaseEnvironmentComponent': 'Environment component context entry point.\n\n Returns:\n The BaseEnvironmentComponent instance.\n ' self.activate() return self
def __enter__(self) -> 'BaseEnvironmentComponent': 'Environment component context entry point.\n\n Returns:\n The BaseEnvironmentComponent instance.\n ' self.activate() return self<|docstring|>Environment component context entry point. Returns: The BaseEnvironmentComponent inst...
9aac9d885dbae3319dc849584d6ae5e63ce3021b3c17d293123f1d82b1cc3729
def __exit__(self, *args: Any) -> None: 'Environment component context exit point.' self.deactivate()
Environment component context exit point.
src/zenml/environment.py
__exit__
halvgaard/zenml
1
python
def __exit__(self, *args: Any) -> None: self.deactivate()
def __exit__(self, *args: Any) -> None: self.deactivate()<|docstring|>Environment component context exit point.<|endoftext|>
e10d1c61bd50e0bb63a7adc6e2db139d1458345169f695e8f3ad37ec2a41bd19
def get_title(article): 'Utility function to format the title of an article...' return truncate_title(article.title)
Utility function to format the title of an article...
wiki/plugins/notifications/util.py
get_title
Si-elegans/Web-based_GUI_Tools
3
python
def get_title(article): return truncate_title(article.title)
def get_title(article): return truncate_title(article.title)<|docstring|>Utility function to format the title of an article...<|endoftext|>
c45a6be957f8d35992ef373407c7a492616623be36c651ba6cb90f5fe4fcfe2b
def truncate_title(title): 'Truncate a title (of an article, file, image etc) to be displayed in notifications messages.' if (not title): return _('(none)') if (len(title) > 25): return ('%s...' % title[:22]) return title
Truncate a title (of an article, file, image etc) to be displayed in notifications messages.
wiki/plugins/notifications/util.py
truncate_title
Si-elegans/Web-based_GUI_Tools
3
python
def truncate_title(title): if (not title): return _('(none)') if (len(title) > 25): return ('%s...' % title[:22]) return title
def truncate_title(title): if (not title): return _('(none)') if (len(title) > 25): return ('%s...' % title[:22]) return title<|docstring|>Truncate a title (of an article, file, image etc) to be displayed in notifications messages.<|endoftext|>
d8bcb89eda442fd6d840b2a8f502944c22635ea0911acea43d68010e1a51615d
def __rshift__(self, _: AbstractState, /) -> AbstractState: 'Overload >> operator to set state execution order.\n\n You cannot set a next state on a ChoiceState, SucceedState, or FailState\n as they are terminal states.\n\n Args:\n _: The other state besides self.\n\n Raises:\...
Overload >> operator to set state execution order. You cannot set a next state on a ChoiceState, SucceedState, or FailState as they are terminal states. Args: _: The other state besides self. Raises: AWSStepFuncsValueError: Raised when trying to set next state on a terminal state.
src/awsstepfuncs/state.py
__rshift__
suzil/awsstepfuncs
3
python
def __rshift__(self, _: AbstractState, /) -> AbstractState: 'Overload >> operator to set state execution order.\n\n You cannot set a next state on a ChoiceState, SucceedState, or FailState\n as they are terminal states.\n\n Args:\n _: The other state besides self.\n\n Raises:\...
def __rshift__(self, _: AbstractState, /) -> AbstractState: 'Overload >> operator to set state execution order.\n\n You cannot set a next state on a ChoiceState, SucceedState, or FailState\n as they are terminal states.\n\n Args:\n _: The other state besides self.\n\n Raises:\...
6f3731cdda46946174b048e6c2aa2fc34ff7792631f2e53cce6c010e40a9cf73
def __init__(self, *args: Any, error: str, cause: str, **kwargs: Any): 'Initialize a Fail State.\n\n Args:\n args: Args to pass to parent classes.\n error: The name of the error.\n cause: A human-readable error message.\n kwargs: Kwargs to pass to parent classes.\n...
Initialize a Fail State. Args: args: Args to pass to parent classes. error: The name of the error. cause: A human-readable error message. kwargs: Kwargs to pass to parent classes.
src/awsstepfuncs/state.py
__init__
suzil/awsstepfuncs
3
python
def __init__(self, *args: Any, error: str, cause: str, **kwargs: Any): 'Initialize a Fail State.\n\n Args:\n args: Args to pass to parent classes.\n error: The name of the error.\n cause: A human-readable error message.\n kwargs: Kwargs to pass to parent classes.\n...
def __init__(self, *args: Any, error: str, cause: str, **kwargs: Any): 'Initialize a Fail State.\n\n Args:\n args: Args to pass to parent classes.\n error: The name of the error.\n cause: A human-readable error message.\n kwargs: Kwargs to pass to parent classes.\n...
d6ac24064d972177b0326b1be3b0cceefe402fb27a7202c8a1552d2da3ac1663
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled['Error'] = self.error compiled['Cause'] = self.cause...
Compile the state to Amazon States Language. Returns: A dictionary representing the compiled state in Amazon States Language.
src/awsstepfuncs/state.py
compile
suzil/awsstepfuncs
3
python
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled['Error'] = self.error compiled['Cause'] = self.cause...
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled['Error'] = self.error compiled['Cause'] = self.cause...
d7cc422329b1d1e9f39f920c5ca1157384db3df02b4425e545dbb42081c16204
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Fail State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
Execute the Fail State. Args: state_input: The input state data. resource_to_mock_fn: A mapping of resource URIs to mock functions to use if the state performs a task. Raises: FailStateError: Always raised with the error and cause.
src/awsstepfuncs/state.py
_execute
suzil/awsstepfuncs
3
python
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Fail State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Fail State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
0d6e65e5fae010704e1d71fd09a24a3b6751e60b7703b67bc76739f2fa6336ae
def __str__(self) -> str: 'Create a human-readable string representation of a state.\n\n Returns:\n Human-readable string representation of a state.\n ' return f'{self.__class__.__name__}({self.name!r}, error={self.error!r}, cause={self.cause!r})'
Create a human-readable string representation of a state. Returns: Human-readable string representation of a state.
src/awsstepfuncs/state.py
__str__
suzil/awsstepfuncs
3
python
def __str__(self) -> str: 'Create a human-readable string representation of a state.\n\n Returns:\n Human-readable string representation of a state.\n ' return f'{self.__class__.__name__}({self.name!r}, error={self.error!r}, cause={self.cause!r})'
def __str__(self) -> str: 'Create a human-readable string representation of a state.\n\n Returns:\n Human-readable string representation of a state.\n ' return f'{self.__class__.__name__}({self.name!r}, error={self.error!r}, cause={self.cause!r})'<|docstring|>Create a human-readable str...
050522e83eb02622a5378ee00ab1a237e48add9898d6f5291a9310d7471576b0
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Succeed State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
Execute the Succeed State. Args: state_input: The input state data. resource_to_mock_fn: A mapping of resource URIs to mock functions to use if the state performs a task. Returns: The output of the state, the same as its input.
src/awsstepfuncs/state.py
_execute
suzil/awsstepfuncs
3
python
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Succeed State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Succeed State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
983b626112cc0bc5867743b95da4eabcb0d7b1b8447bba45824e9de5a8808040
def __init__(self, *args: Any, choices: List[AbstractChoice], default: Optional[AbstractState]=None, **kwargs: Any): 'Initialize a Choice State.\n\n Args:\n args: Args to pass to parent classes.\n choices: The branches of the Choice State.\n default: The default state to tran...
Initialize a Choice State. Args: args: Args to pass to parent classes. choices: The branches of the Choice State. default: The default state to transition to if none of the choices evaluate to true. kwargs: Kwargs to pass to parent classes.
src/awsstepfuncs/state.py
__init__
suzil/awsstepfuncs
3
python
def __init__(self, *args: Any, choices: List[AbstractChoice], default: Optional[AbstractState]=None, **kwargs: Any): 'Initialize a Choice State.\n\n Args:\n args: Args to pass to parent classes.\n choices: The branches of the Choice State.\n default: The default state to tran...
def __init__(self, *args: Any, choices: List[AbstractChoice], default: Optional[AbstractState]=None, **kwargs: Any): 'Initialize a Choice State.\n\n Args:\n args: Args to pass to parent classes.\n choices: The branches of the Choice State.\n default: The default state to tran...
2abe64f18c4c1edf2df7f65956247be9a69333c9df52d77ec63ef9c17c02092c
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled.pop('End') return compiled
Compile the state to Amazon States Language. Returns: A dictionary representing the compiled state in Amazon States Language.
src/awsstepfuncs/state.py
compile
suzil/awsstepfuncs
3
python
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled.pop('End') return compiled
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled.pop('End') return compiled<|docstring|>Compile the s...
10586c5f350217bef889fdf62eb1e6aef1043374a7804e6c66f752d3562a5055
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Choice State.\n\n Sets the next state.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if th...
Execute the Choice State. Sets the next state. Args: state_input: The input state data. resource_to_mock_fn: A mapping of resource URIs to mock functions to use if the state performs a task. Raises: NoChoiceMatchedError: Raised when no choice is true and no default is set. Returns: The outpu...
src/awsstepfuncs/state.py
_execute
suzil/awsstepfuncs
3
python
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Choice State.\n\n Sets the next state.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if th...
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Choice State.\n\n Sets the next state.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if th...
854a87916a32259bdf320a47cd40ac938661052b3905f1d819043b425790cbb8
def __init__(self, *args: Any, seconds: Optional[int]=None, timestamp: Optional[datetime]=None, seconds_path: Optional[str]=None, timestamp_path: Optional[str]=None, **kwargs: Any): 'Initialize a Wait State.\n\n Args:\n args: Args to pass to parent classes.\n seconds: The number of seco...
Initialize a Wait State. Args: args: Args to pass to parent classes. seconds: The number of seconds to wait. timestamp: Wait until the specified time. seconds_path: A Reference Path to the number of seconds to wait. timestamp_path: A Reference Path to the timestamp to wait until. kwargs: Kwargs...
src/awsstepfuncs/state.py
__init__
suzil/awsstepfuncs
3
python
def __init__(self, *args: Any, seconds: Optional[int]=None, timestamp: Optional[datetime]=None, seconds_path: Optional[str]=None, timestamp_path: Optional[str]=None, **kwargs: Any): 'Initialize a Wait State.\n\n Args:\n args: Args to pass to parent classes.\n seconds: The number of seco...
def __init__(self, *args: Any, seconds: Optional[int]=None, timestamp: Optional[datetime]=None, seconds_path: Optional[str]=None, timestamp_path: Optional[str]=None, **kwargs: Any): 'Initialize a Wait State.\n\n Args:\n args: Args to pass to parent classes.\n seconds: The number of seco...
93f4ed07730cade6b297d9ed97708f9cab6bf9433ae18aab9cfc1eb0d866d31a
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() if (seconds := self.seconds): compiled['Seconds'] = secon...
Compile the state to Amazon States Language. Returns: A dictionary representing the compiled state in Amazon States Language.
src/awsstepfuncs/state.py
compile
suzil/awsstepfuncs
3
python
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() if (seconds := self.seconds): compiled['Seconds'] = secon...
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() if (seconds := self.seconds): compiled['Seconds'] = secon...
75b6c03052519ce23857614b7b075aa54bcc1ec99997890455c81342e7fc5e0f
def __str__(self) -> str: 'Create a human-readable string representation of a state.\n\n Returns:\n Human-readable string representation of a state.\n ' output = f'{self.__class__.__name__}({self.name!r}' if (seconds := self.seconds): output += f', seconds={seconds!r}' i...
Create a human-readable string representation of a state. Returns: Human-readable string representation of a state.
src/awsstepfuncs/state.py
__str__
suzil/awsstepfuncs
3
python
def __str__(self) -> str: 'Create a human-readable string representation of a state.\n\n Returns:\n Human-readable string representation of a state.\n ' output = f'{self.__class__.__name__}({self.name!r}' if (seconds := self.seconds): output += f', seconds={seconds!r}' i...
def __str__(self) -> str: 'Create a human-readable string representation of a state.\n\n Returns:\n Human-readable string representation of a state.\n ' output = f'{self.__class__.__name__}({self.name!r}' if (seconds := self.seconds): output += f', seconds={seconds!r}' i...
aea05070a8c4a371ecea70d50e6c0980ef9a20d3e7b89a690695f092e391a482
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: "Execute the Wait State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
Execute the Wait State. Args: state_input: The input state data. resource_to_mock_fn: A mapping of resource URIs to mock functions to use if the state performs a task. Raises: StateSimulationError: Raised when seconds_path doesn't point to an integer. Returns: The output of the state, same as...
src/awsstepfuncs/state.py
_execute
suzil/awsstepfuncs
3
python
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: "Execute the Wait State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: "Execute the Wait State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
40de94c747608de1f8245e39df357a3a9140636785508d01c2cc159a16657b60
def _wait_seconds(self, seconds: int) -> None: 'Wait for the specified number of seconds.' self.print(f'Waiting {seconds} seconds', style=Style.DIM) time.sleep(seconds)
Wait for the specified number of seconds.
src/awsstepfuncs/state.py
_wait_seconds
suzil/awsstepfuncs
3
python
def _wait_seconds(self, seconds: int) -> None: self.print(f'Waiting {seconds} seconds', style=Style.DIM) time.sleep(seconds)
def _wait_seconds(self, seconds: int) -> None: self.print(f'Waiting {seconds} seconds', style=Style.DIM) time.sleep(seconds)<|docstring|>Wait for the specified number of seconds.<|endoftext|>
b7fb97dcc51425dea8f32f7688d79d4c63f3017ecb04a9a9cdcdb31126202dd2
def __init__(self, *args: Any, result: Any=None, **kwargs: Any): 'Initialize a Pass State.\n\n Args:\n args: Args to pass to parent classes.\n result: If present, its value is treated as the output of a virtual\n task, and placed as prescribed by the "ResultPath" field.\n...
Initialize a Pass State. Args: args: Args to pass to parent classes. result: If present, its value is treated as the output of a virtual task, and placed as prescribed by the "ResultPath" field. kwargs: Kwargs to pass to parent classes.
src/awsstepfuncs/state.py
__init__
suzil/awsstepfuncs
3
python
def __init__(self, *args: Any, result: Any=None, **kwargs: Any): 'Initialize a Pass State.\n\n Args:\n args: Args to pass to parent classes.\n result: If present, its value is treated as the output of a virtual\n task, and placed as prescribed by the "ResultPath" field.\n...
def __init__(self, *args: Any, result: Any=None, **kwargs: Any): 'Initialize a Pass State.\n\n Args:\n args: Args to pass to parent classes.\n result: If present, its value is treated as the output of a virtual\n task, and placed as prescribed by the "ResultPath" field.\n...
45acc48b255c1ad54eebd1503c658facbc85a7fbcc00fa714820f64e00cabc40
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() if (result := self.result): compiled['Result'] = result ...
Compile the state to Amazon States Language. Returns: A dictionary representing the compiled state in Amazon States Language.
src/awsstepfuncs/state.py
compile
suzil/awsstepfuncs
3
python
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() if (result := self.result): compiled['Result'] = result ...
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() if (result := self.result): compiled['Result'] = result ...
fa6e6da93580d2b2df65dc678761ea40ec8061e56a9f7ea02a1dadcf8834eea3
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Pass State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
Execute the Pass State. Args: state_input: The input state data. resource_to_mock_fn: A mapping of resource URIs to mock functions to use if the state performs a task. Returns: The output of the state, same as input if result is not provided.
src/awsstepfuncs/state.py
_execute
suzil/awsstepfuncs
3
python
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Pass State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Pass State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
490ccac270d7eb48a443dcc989facceb18685b7dd403666ba0ac94ea066c36b3
def __init__(self, *args: Any, resource: str, timeout_seconds: Optional[int]=None, **kwargs: Any): 'Initialize a Task State.\n\n Args:\n args: Args to pass to parent classes.\n resource: A URI, especially an ARN that uniquely identifies the\n specific task to execute.\n ...
Initialize a Task State. Args: args: Args to pass to parent classes. resource: A URI, especially an ARN that uniquely identifies the specific task to execute. timeout_seconds: How long the task is allowed to run before throwing a timeout exception. Defaults to 60 seconds if not specified. ...
src/awsstepfuncs/state.py
__init__
suzil/awsstepfuncs
3
python
def __init__(self, *args: Any, resource: str, timeout_seconds: Optional[int]=None, **kwargs: Any): 'Initialize a Task State.\n\n Args:\n args: Args to pass to parent classes.\n resource: A URI, especially an ARN that uniquely identifies the\n specific task to execute.\n ...
def __init__(self, *args: Any, resource: str, timeout_seconds: Optional[int]=None, **kwargs: Any): 'Initialize a Task State.\n\n Args:\n args: Args to pass to parent classes.\n resource: A URI, especially an ARN that uniquely identifies the\n specific task to execute.\n ...
666d4eaf0e1da054ca89d4a6dc531dcb630fdb4f4c496cb99a4a64d214abde91
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled['Resource'] = self.resource if (timeout_seconds := s...
Compile the state to Amazon States Language. Returns: A dictionary representing the compiled state in Amazon States Language.
src/awsstepfuncs/state.py
compile
suzil/awsstepfuncs
3
python
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled['Resource'] = self.resource if (timeout_seconds := s...
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled['Resource'] = self.resource if (timeout_seconds := s...
dd06ac5bbb8d834af203a7f8175ee58229d466b80f9c34b59534c09200019238
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: "Execute the Task State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
Execute the Task State. Args: state_input: The input state data. resource_to_mock_fn: A mapping of resource URIs to mock functions to use if the state performs a task. Raises: TaskFailedError: Raised if there is an exception when executing the mock function. Returns: The output of the...
src/awsstepfuncs/state.py
_execute
suzil/awsstepfuncs
3
python
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: "Execute the Task State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: "Execute the Task State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
fce2675463546cfa8c2f164520e805beeffa74a615692ddeb6b977cd8e221754
def __init__(self, *args: Any, iterator: StateMachine, items_path: str='$', max_concurrency: int, **kwargs: Any): 'Initialize a Map State.\n\n Args:\n args: Args to pass to parent classes.\n iterator: The state machine which will process each element of the\n array.\n ...
Initialize a Map State. Args: args: Args to pass to parent classes. iterator: The state machine which will process each element of the array. items_path: A Reference Path identifying where in the effective input the array field is found. max_concurrency: The upper bound on how many invo...
src/awsstepfuncs/state.py
__init__
suzil/awsstepfuncs
3
python
def __init__(self, *args: Any, iterator: StateMachine, items_path: str='$', max_concurrency: int, **kwargs: Any): 'Initialize a Map State.\n\n Args:\n args: Args to pass to parent classes.\n iterator: The state machine which will process each element of the\n array.\n ...
def __init__(self, *args: Any, iterator: StateMachine, items_path: str='$', max_concurrency: int, **kwargs: Any): 'Initialize a Map State.\n\n Args:\n args: Args to pass to parent classes.\n iterator: The state machine which will process each element of the\n array.\n ...
26112a254feeb6a5fbadfc80064c0e66ea794c9d943d6051592e8b641cbf3902
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled['ItemsPath'] = self.items_path compiled['MaxConcurre...
Compile the state to Amazon States Language. Returns: A dictionary representing the compiled state in Amazon States Language.
src/awsstepfuncs/state.py
compile
suzil/awsstepfuncs
3
python
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled['ItemsPath'] = self.items_path compiled['MaxConcurre...
def compile(self) -> Dict[(str, Any)]: 'Compile the state to Amazon States Language.\n\n Returns:\n A dictionary representing the compiled state in Amazon States\n Language.\n ' compiled = super().compile() compiled['ItemsPath'] = self.items_path compiled['MaxConcurre...
41c790cef4249f98ee943c6828c289a8645d3f85d031b5bee212addbc1faacbe
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Map State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
Execute the Map State. Args: state_input: The input state data. resource_to_mock_fn: A mapping of resource URIs to mock functions to use if the state performs a task. Raises: StateSimulationError: Raised when items_path does not evaluate to a list. Returns: The output of the state by ...
src/awsstepfuncs/state.py
_execute
suzil/awsstepfuncs
3
python
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Map State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
def _execute(self, state_input: Any, resource_to_mock_fn: ResourceToMockFn) -> Any: 'Execute the Map State.\n\n Args:\n state_input: The input state data.\n resource_to_mock_fn: A mapping of resource URIs to mock functions to\n use if the state performs a task.\n\n ...
c1eb901c48e65d7a04952321835dc7a5dd6a7745e0df6cf86dce2058cc4e37f8
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, reverse: Optional[pulumi.Input[str]]=None, server: Optional[pulumi.Input[str]]=None, __props__=None, __name__=None, __opts__=None): '\n **DEPRECATED**: This resource is deprecated and will be removed in `v2.0+`.\n ...
**DEPRECATED**: This resource is deprecated and will be removed in `v2.0+`. Please use `InstanceIP` instead. Provides IPs for servers. This allows IPs to be created, updated and deleted. For additional details please refer to [API documentation](https://developer.scaleway.com/#ips). ## Example Usage ```python import...
sdk/python/pulumi_scaleway/ip.py
__init__
Kamaradeivanov/pulumi-scaleway-1
0
python
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, reverse: Optional[pulumi.Input[str]]=None, server: Optional[pulumi.Input[str]]=None, __props__=None, __name__=None, __opts__=None): '\n **DEPRECATED**: This resource is deprecated and will be removed in `v2.0+`.\n ...
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, reverse: Optional[pulumi.Input[str]]=None, server: Optional[pulumi.Input[str]]=None, __props__=None, __name__=None, __opts__=None): '\n **DEPRECATED**: This resource is deprecated and will be removed in `v2.0+`.\n ...
53d6f8681d81e4b798a99dee531247d3917060fef22fc141398267884df0b319
@staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None, ip: Optional[pulumi.Input[str]]=None, reverse: Optional[pulumi.Input[str]]=None, server: Optional[pulumi.Input[str]]=None) -> 'IP': "\n Get an existing IP resource's state with the given name, id, an...
Get an existing IP resource's state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the ...
sdk/python/pulumi_scaleway/ip.py
get
Kamaradeivanov/pulumi-scaleway-1
0
python
@staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None, ip: Optional[pulumi.Input[str]]=None, reverse: Optional[pulumi.Input[str]]=None, server: Optional[pulumi.Input[str]]=None) -> 'IP': "\n Get an existing IP resource's state with the given name, id, an...
@staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None, ip: Optional[pulumi.Input[str]]=None, reverse: Optional[pulumi.Input[str]]=None, server: Optional[pulumi.Input[str]]=None) -> 'IP': "\n Get an existing IP resource's state with the given name, id, an...
af69a1935479117285aaf01930846a8bce7c0ed2637e77880137be2b30bb01f4
@property @pulumi.getter def ip(self) -> pulumi.Output[str]: '\n IP of the new resource\n ' return pulumi.get(self, 'ip')
IP of the new resource
sdk/python/pulumi_scaleway/ip.py
ip
Kamaradeivanov/pulumi-scaleway-1
0
python
@property @pulumi.getter def ip(self) -> pulumi.Output[str]: '\n \n ' return pulumi.get(self, 'ip')
@property @pulumi.getter def ip(self) -> pulumi.Output[str]: '\n \n ' return pulumi.get(self, 'ip')<|docstring|>IP of the new resource<|endoftext|>
6340d43562c87f5b09e054e208df3cbbb70d3f7fde27e38702b52c8019f34a40
@property @pulumi.getter def reverse(self) -> pulumi.Output[str]: '\n Please us the IPReverseDNS resource instead.\n ' return pulumi.get(self, 'reverse')
Please us the IPReverseDNS resource instead.
sdk/python/pulumi_scaleway/ip.py
reverse
Kamaradeivanov/pulumi-scaleway-1
0
python
@property @pulumi.getter def reverse(self) -> pulumi.Output[str]: '\n \n ' return pulumi.get(self, 'reverse')
@property @pulumi.getter def reverse(self) -> pulumi.Output[str]: '\n \n ' return pulumi.get(self, 'reverse')<|docstring|>Please us the IPReverseDNS resource instead.<|endoftext|>
1cf5f8263eb9a871de7abad4816286b9eeefabe5f289486c41ee3d7a5ea796c5
@property @pulumi.getter def server(self) -> pulumi.Output[str]: '\n ID of server to associate IP with\n ' return pulumi.get(self, 'server')
ID of server to associate IP with
sdk/python/pulumi_scaleway/ip.py
server
Kamaradeivanov/pulumi-scaleway-1
0
python
@property @pulumi.getter def server(self) -> pulumi.Output[str]: '\n \n ' return pulumi.get(self, 'server')
@property @pulumi.getter def server(self) -> pulumi.Output[str]: '\n \n ' return pulumi.get(self, 'server')<|docstring|>ID of server to associate IP with<|endoftext|>
e979f6b9286299138c77c180c094c15a95e111042813596082161d003cece5cb
def tag_dict(obj, *args, **kwargs): 'Create a TaggedDict instance. Will either be a TaggedOrderedDict\n or TaggedPlainDict depending on the type of `obj`.' if isinstance(obj, OrderedDict): return _TaggedOrderedDict(obj, *args, **kwargs) else: return _TaggedPlainDict(obj, *args, **kwargs)
Create a TaggedDict instance. Will either be a TaggedOrderedDict or TaggedPlainDict depending on the type of `obj`.
dynamic_rest/tagged.py
tag_dict
PaulWay/dynamic-rest
690
python
def tag_dict(obj, *args, **kwargs): 'Create a TaggedDict instance. Will either be a TaggedOrderedDict\n or TaggedPlainDict depending on the type of `obj`.' if isinstance(obj, OrderedDict): return _TaggedOrderedDict(obj, *args, **kwargs) else: return _TaggedPlainDict(obj, *args, **kwargs)
def tag_dict(obj, *args, **kwargs): 'Create a TaggedDict instance. Will either be a TaggedOrderedDict\n or TaggedPlainDict depending on the type of `obj`.' if isinstance(obj, OrderedDict): return _TaggedOrderedDict(obj, *args, **kwargs) else: return _TaggedPlainDict(obj, *args, **kwargs)<...
4d36764f580ea20b54bb676b958c8c4128f04bae4d583b9718b8fef68161b16e
def get_substc_and_add_dummy_atoms(reactant, bond_rearrangement, shift_factor): 'Get all the substitution centers in a molecule. A substitution centre is\n defined as atom that upon reaction has a bond made and broken\n simultaneously\n\n Arguments:\n reactant (autode.complex.ReactantComplex):\n\n ...
Get all the substitution centers in a molecule. A substitution centre is defined as atom that upon reaction has a bond made and broken simultaneously Arguments: reactant (autode.complex.ReactantComplex): bond_rearrangement (autode.bond_rearrangement.BondRearrangement): shift_factor (float): The multiplie...
autode/substitution.py
get_substc_and_add_dummy_atoms
tlestang/autodE
90
python
def get_substc_and_add_dummy_atoms(reactant, bond_rearrangement, shift_factor): 'Get all the substitution centers in a molecule. A substitution centre is\n defined as atom that upon reaction has a bond made and broken\n simultaneously\n\n Arguments:\n reactant (autode.complex.ReactantComplex):\n\n ...
def get_substc_and_add_dummy_atoms(reactant, bond_rearrangement, shift_factor): 'Get all the substitution centers in a molecule. A substitution centre is\n defined as atom that upon reaction has a bond made and broken\n simultaneously\n\n Arguments:\n reactant (autode.complex.ReactantComplex):\n\n ...
e33e207f15b58852105c682bf194ad63a1bd093183af82735510521efd1283c2
def add_dummy_atom(reactant, bond_rearrangement): '\n Add a dummy atom above or below the plane of the reactant as a temporary\n X atom\n\n Arguments:\n reactant (autode.complex.ReactantComplex):\n bond_rearrangement (autode.bond_rearrangement.BondRearrangement):\n ' logger.info('Addin...
Add a dummy atom above or below the plane of the reactant as a temporary X atom Arguments: reactant (autode.complex.ReactantComplex): bond_rearrangement (autode.bond_rearrangement.BondRearrangement):
autode/substitution.py
add_dummy_atom
tlestang/autodE
90
python
def add_dummy_atom(reactant, bond_rearrangement): '\n Add a dummy atom above or below the plane of the reactant as a temporary\n X atom\n\n Arguments:\n reactant (autode.complex.ReactantComplex):\n bond_rearrangement (autode.bond_rearrangement.BondRearrangement):\n ' logger.info('Addin...
def add_dummy_atom(reactant, bond_rearrangement): '\n Add a dummy atom above or below the plane of the reactant as a temporary\n X atom\n\n Arguments:\n reactant (autode.complex.ReactantComplex):\n bond_rearrangement (autode.bond_rearrangement.BondRearrangement):\n ' logger.info('Addin...
b770e01441e9617966e5916aeaea72f599e5acedd77cc6b95c00abe8e46d0e21
def attack_cost(reactant, subst_centres, attacking_mol_idx, a=1.0, b=1.0, c=1.0, d=10.0): "\n Calculate the 'attack cost' for a molecule attacking in e.g. a\n substitution or elimination reaction::\n\n C = Σ_ac a * (r_ac - r^0_ac)^2 + Σ_acx b * (1 - cos(θ)) +\n Σ_acx c*(1 + cos(φ)) ...
Calculate the 'attack cost' for a molecule attacking in e.g. a substitution or elimination reaction:: C = Σ_ac a * (r_ac - r^0_ac)^2 + Σ_acx b * (1 - cos(θ)) + Σ_acx c*(1 + cos(φ)) + Σ_ij d/r_ij^4 where:: cos(θ) = (v_ann • v_cx / |v_ann||v_cx|) cos(φ) = (v_ca • v_cx / |v_ca||v_cx|) Re...
autode/substitution.py
attack_cost
tlestang/autodE
90
python
def attack_cost(reactant, subst_centres, attacking_mol_idx, a=1.0, b=1.0, c=1.0, d=10.0): "\n Calculate the 'attack cost' for a molecule attacking in e.g. a\n substitution or elimination reaction::\n\n C = Σ_ac a * (r_ac - r^0_ac)^2 + Σ_acx b * (1 - cos(θ)) +\n Σ_acx c*(1 + cos(φ)) ...
def attack_cost(reactant, subst_centres, attacking_mol_idx, a=1.0, b=1.0, c=1.0, d=10.0): "\n Calculate the 'attack cost' for a molecule attacking in e.g. a\n substitution or elimination reaction::\n\n C = Σ_ac a * (r_ac - r^0_ac)^2 + Σ_acx b * (1 - cos(θ)) +\n Σ_acx c*(1 + cos(φ)) ...
a253c973d1ef10a3c7d34a4bc3f926cd65501fb71d090e1cd1d844425b600720
def get_cost_rotate_translate(x, reactant, subst_centres, attacking_mol_idx): '\n Get the cost for placing an attacking mol given a specified rotation and\n translation\n\n Arguments:\n x (np.ndarray): Length 11\n reactant (autode.complex.ReactantComplex):\n subst_centres (list(autode....
Get the cost for placing an attacking mol given a specified rotation and translation Arguments: x (np.ndarray): Length 11 reactant (autode.complex.ReactantComplex): subst_centres (list(autode.substitution.SubstitutionCentre)): attacking_mol_idx (int): Index of the attacking molecule Returns: (floa...
autode/substitution.py
get_cost_rotate_translate
tlestang/autodE
90
python
def get_cost_rotate_translate(x, reactant, subst_centres, attacking_mol_idx): '\n Get the cost for placing an attacking mol given a specified rotation and\n translation\n\n Arguments:\n x (np.ndarray): Length 11\n reactant (autode.complex.ReactantComplex):\n subst_centres (list(autode....
def get_cost_rotate_translate(x, reactant, subst_centres, attacking_mol_idx): '\n Get the cost for placing an attacking mol given a specified rotation and\n translation\n\n Arguments:\n x (np.ndarray): Length 11\n reactant (autode.complex.ReactantComplex):\n subst_centres (list(autode....
30dc9b637842e4e48ece8f6b29c0e70315f2af0f60a482d9bbee50d288d735ca
def set_attack_r0(self, species, shift_factor): 'Set the ideal distance between a and c atoms in a substitution\n centre' r0 = get_avg_bond_length(atom_i_label=species.atoms[self.a_atom].label, atom_j_label=species.atoms[self.c_atom].label) self.r0_ac = (shift_factor * r0) return None
Set the ideal distance between a and c atoms in a substitution centre
autode/substitution.py
set_attack_r0
tlestang/autodE
90
python
def set_attack_r0(self, species, shift_factor): 'Set the ideal distance between a and c atoms in a substitution\n centre' r0 = get_avg_bond_length(atom_i_label=species.atoms[self.a_atom].label, atom_j_label=species.atoms[self.c_atom].label) self.r0_ac = (shift_factor * r0) return None
def set_attack_r0(self, species, shift_factor): 'Set the ideal distance between a and c atoms in a substitution\n centre' r0 = get_avg_bond_length(atom_i_label=species.atoms[self.a_atom].label, atom_j_label=species.atoms[self.c_atom].label) self.r0_ac = (shift_factor * r0) return None<|docstring|...
0d65ac9e5b30ab1838a4183218c0fe0df038039e5c0c48fd1f07432f3aa24e05
def __init__(self, a_atom_idx, c_atom_idx, x_atom_idx, a_atom_nn_idxs): '\n Substitution centre has the following structure::\n\n H H H\n | |/\n N-- H C -- Cl\n / /\n H H\n\n\n where::\n ...
Substitution centre has the following structure:: H H H | |/ N-- H C -- Cl / / H H where:: a_atom = N c_atom = C x_atom = Cl a_atom_nn = H, H, H (bonded to N) all given as their atom indexes in a ReactantComplex
autode/substitution.py
__init__
tlestang/autodE
90
python
def __init__(self, a_atom_idx, c_atom_idx, x_atom_idx, a_atom_nn_idxs): '\n Substitution centre has the following structure::\n\n H H H\n | |/\n N-- H C -- Cl\n / /\n H H\n\n\n where::\n ...
def __init__(self, a_atom_idx, c_atom_idx, x_atom_idx, a_atom_nn_idxs): '\n Substitution centre has the following structure::\n\n H H H\n | |/\n N-- H C -- Cl\n / /\n H H\n\n\n where::\n ...
8fd561a59cf3e95df66b4c245cacc8b6bc97e52de2f353afe325322fbd2c5590
def handle_deluxe_set_user_chat(session, context): 'Make a set a deluxe set.' sticker_set = session.query(StickerSet).get(context.payload) if (CallbackResult(context.action).name == 'ok'): sticker_set.deluxe = True elif (CallbackResult(context.action).name == 'ban'): sticker_set.deluxe =...
Make a set a deluxe set.
stickerfinder/telegram/callback_handlers/sticker_set.py
handle_deluxe_set_user_chat
fan-tom/sticker-finder
82
python
def handle_deluxe_set_user_chat(session, context): sticker_set = session.query(StickerSet).get(context.payload) if (CallbackResult(context.action).name == 'ok'): sticker_set.deluxe = True elif (CallbackResult(context.action).name == 'ban'): sticker_set.deluxe = False keyboard = get_...
def handle_deluxe_set_user_chat(session, context): sticker_set = session.query(StickerSet).get(context.payload) if (CallbackResult(context.action).name == 'ok'): sticker_set.deluxe = True elif (CallbackResult(context.action).name == 'ban'): sticker_set.deluxe = False keyboard = get_...
1c65f9d7fe656bfddb127816f5a8188ba89c1bdf6bcbf62a354d43aaaf6b0ac6
def fact(): 'Gets the assigned user from the nomad plist' result = '' username = SCDynamicStoreCopyConsoleUser(None, None, None)[0] if username: result = CFPreferencesCopyAppValue('UserShortName', ('/Users/%s/Library/Preferences/com.trusourcelabs.NoMAD.plist' % username)) return {factoid: re...
Gets the assigned user from the nomad plist
artifacts/nomad_user.py
fact
chilcote/unearth
71
python
def fact(): result = username = SCDynamicStoreCopyConsoleUser(None, None, None)[0] if username: result = CFPreferencesCopyAppValue('UserShortName', ('/Users/%s/Library/Preferences/com.trusourcelabs.NoMAD.plist' % username)) return {factoid: result}
def fact(): result = username = SCDynamicStoreCopyConsoleUser(None, None, None)[0] if username: result = CFPreferencesCopyAppValue('UserShortName', ('/Users/%s/Library/Preferences/com.trusourcelabs.NoMAD.plist' % username)) return {factoid: result}<|docstring|>Gets the assigned user from t...
72bf97e3a7dc645c711a628ed3eadd8752b32efbfb0770c44ffd4467c2ff4c3c
def check_collision(map_group: pygame.sprite.Group, old_rect: pygame.rect, new_rect: pygame.rect, right_callback, left_callback, top_callback, bottom_callback) -> pygame.rect: '\n Gestion des collisions. La position du sprite est modifiée en fonction de la collision.\n\n Paramètres:\n - map_group: groupe d...
Gestion des collisions. La position du sprite est modifiée en fonction de la collision. Paramètres: - map_group: groupe de sprites représentant la carte - old_rect: ancienne position du sprite - new_rect: nouvelle position voulue du sprite - right_callback: fonction à exécuter quand le sprite va vers la droite - left_...
src/utils/collision.py
check_collision
Pas-de-sushi/shoot-clash
0
python
def check_collision(map_group: pygame.sprite.Group, old_rect: pygame.rect, new_rect: pygame.rect, right_callback, left_callback, top_callback, bottom_callback) -> pygame.rect: '\n Gestion des collisions. La position du sprite est modifiée en fonction de la collision.\n\n Paramètres:\n - map_group: groupe d...
def check_collision(map_group: pygame.sprite.Group, old_rect: pygame.rect, new_rect: pygame.rect, right_callback, left_callback, top_callback, bottom_callback) -> pygame.rect: '\n Gestion des collisions. La position du sprite est modifiée en fonction de la collision.\n\n Paramètres:\n - map_group: groupe d...
eb6dfa9ae1374b983b5349c62bfc15053e9b9f9a56a00b67e9ca1d5ab055e5a0
def copy_for_crash_restart(olddir, newdir): ' Simulate a crash from olddir and restart in newdir. ' shutil.rmtree(newdir, ignore_errors=True) os.mkdir(newdir) for fname in os.listdir(olddir): fullname = os.path.join(olddir, fname) if (os.path.isfile(fullname) and ('WiredTiger.lock' not i...
Simulate a crash from olddir and restart in newdir.
src/third_party/wiredtiger/test/suite/test_txn19.py
copy_for_crash_restart
benety/mongo
0
python
def copy_for_crash_restart(olddir, newdir): ' ' shutil.rmtree(newdir, ignore_errors=True) os.mkdir(newdir) for fname in os.listdir(olddir): fullname = os.path.join(olddir, fname) if (os.path.isfile(fullname) and ('WiredTiger.lock' not in fullname) and ('Tmplog' not in fullname) and ('Pr...
def copy_for_crash_restart(olddir, newdir): ' ' shutil.rmtree(newdir, ignore_errors=True) os.mkdir(newdir) for fname in os.listdir(olddir): fullname = os.path.join(olddir, fname) if (os.path.isfile(fullname) and ('WiredTiger.lock' not in fullname) and ('Tmplog' not in fullname) and ('Pr...
5628b1ca30e9a8571d200171b80d5ca0abebd554ecb80d189d2897defa7327c6
def test_corrupt_log(self): ' Corrupt the log and restart with different kinds of recovery ' create_params = 'key_format=i,value_format=S'.format(self.key_format) self.session.create(self.uri, create_params) self.inserts([x for x in range(0, self.nrecords)]) newdir = 'RESTART' copy_for_crash_res...
Corrupt the log and restart with different kinds of recovery
src/third_party/wiredtiger/test/suite/test_txn19.py
test_corrupt_log
benety/mongo
0
python
def test_corrupt_log(self): ' ' create_params = 'key_format=i,value_format=S'.format(self.key_format) self.session.create(self.uri, create_params) self.inserts([x for x in range(0, self.nrecords)]) newdir = 'RESTART' copy_for_crash_restart(self.home, newdir) self.close_conn() self.corru...
def test_corrupt_log(self): ' ' create_params = 'key_format=i,value_format=S'.format(self.key_format) self.session.create(self.uri, create_params) self.inserts([x for x in range(0, self.nrecords)]) newdir = 'RESTART' copy_for_crash_restart(self.home, newdir) self.close_conn() self.corru...
c416d26f0dc65ed85d4bd06ec776265f67fbc9096d4e5576c7cf070b7c8d2fb1
def _close_objects(*objs): 'If the objects have a `close` method, closes them.' for obj in objs: if hasattr(obj, 'close'): obj.close()
If the objects have a `close` method, closes them.
axelrod/tournament.py
_close_objects
JosephLazzaro/Axelrod
596
python
def _close_objects(*objs): for obj in objs: if hasattr(obj, 'close'): obj.close()
def _close_objects(*objs): for obj in objs: if hasattr(obj, 'close'): obj.close()<|docstring|>If the objects have a `close` method, closes them.<|endoftext|>
11a08380d31c8c9026d33dc36156c25d9d150ab9d50eb16ae47d94cf0aab77ce
def __init__(self, players: List[Player], name: str='axelrod', game: Game=None, turns: int=None, prob_end: float=None, repetitions: int=10, noise: float=0, edges: List[Tuple]=None, match_attributes: dict=None, seed: int=None) -> None: "\n Parameters\n ----------\n players : list\n A ...
Parameters ---------- players : list A list of axelrod.Player objects name : string A name for the tournament game : axelrod.Game The game object used to score the tournament turns : integer The number of turns per match prob_end : float The probability of a given turn ending a match repetitions : i...
axelrod/tournament.py
__init__
JosephLazzaro/Axelrod
596
python
def __init__(self, players: List[Player], name: str='axelrod', game: Game=None, turns: int=None, prob_end: float=None, repetitions: int=10, noise: float=0, edges: List[Tuple]=None, match_attributes: dict=None, seed: int=None) -> None: "\n Parameters\n ----------\n players : list\n A ...
def __init__(self, players: List[Player], name: str='axelrod', game: Game=None, turns: int=None, prob_end: float=None, repetitions: int=10, noise: float=0, edges: List[Tuple]=None, match_attributes: dict=None, seed: int=None) -> None: "\n Parameters\n ----------\n players : list\n A ...
941607cc4f5e94eff9014ef1156ca45729ef39bd2cf62ca5c485cc87f1f95ce2
def setup_output(self, filename=None): 'assign/create `filename` to `self`. If file should be deleted once\n `play` is finished, assign a file descriptor.' temp_file_descriptor = None if (filename is None): (temp_file_descriptor, filename) = mkstemp() self.filename = filename self._te...
assign/create `filename` to `self`. If file should be deleted once `play` is finished, assign a file descriptor.
axelrod/tournament.py
setup_output
JosephLazzaro/Axelrod
596
python
def setup_output(self, filename=None): 'assign/create `filename` to `self`. If file should be deleted once\n `play` is finished, assign a file descriptor.' temp_file_descriptor = None if (filename is None): (temp_file_descriptor, filename) = mkstemp() self.filename = filename self._te...
def setup_output(self, filename=None): 'assign/create `filename` to `self`. If file should be deleted once\n `play` is finished, assign a file descriptor.' temp_file_descriptor = None if (filename is None): (temp_file_descriptor, filename) = mkstemp() self.filename = filename self._te...
06519dc785f48e90726344f1aa83118c998828815a4aae870c888f73aab17a25
def play(self, build_results: bool=True, filename: str=None, processes: int=None, progress_bar: bool=True) -> ResultSet: '\n Plays the tournament and passes the results to the ResultSet class\n\n Parameters\n ----------\n build_results : bool\n whether or not to build a result...
Plays the tournament and passes the results to the ResultSet class Parameters ---------- build_results : bool whether or not to build a results set filename : string name of output file processes : integer The number of processes to be used for parallel processing progress_bar : bool Whether or not to ...
axelrod/tournament.py
play
JosephLazzaro/Axelrod
596
python
def play(self, build_results: bool=True, filename: str=None, processes: int=None, progress_bar: bool=True) -> ResultSet: '\n Plays the tournament and passes the results to the ResultSet class\n\n Parameters\n ----------\n build_results : bool\n whether or not to build a result...
def play(self, build_results: bool=True, filename: str=None, processes: int=None, progress_bar: bool=True) -> ResultSet: '\n Plays the tournament and passes the results to the ResultSet class\n\n Parameters\n ----------\n build_results : bool\n whether or not to build a result...
ba2e6eb598091323b1e50224368ad59712b5fff228aa83171a8b334a91da92f4
def _run_serial(self, build_results: bool=True) -> bool: 'Run all matches in serial.' chunks = self.match_generator.build_match_chunks() (out_file, writer) = self._get_file_objects(build_results) progress_bar = self._get_progress_bar() for chunk in chunks: results = self._play_matches(chunk,...
Run all matches in serial.
axelrod/tournament.py
_run_serial
JosephLazzaro/Axelrod
596
python
def _run_serial(self, build_results: bool=True) -> bool: chunks = self.match_generator.build_match_chunks() (out_file, writer) = self._get_file_objects(build_results) progress_bar = self._get_progress_bar() for chunk in chunks: results = self._play_matches(chunk, build_results=build_results...
def _run_serial(self, build_results: bool=True) -> bool: chunks = self.match_generator.build_match_chunks() (out_file, writer) = self._get_file_objects(build_results) progress_bar = self._get_progress_bar() for chunk in chunks: results = self._play_matches(chunk, build_results=build_results...
a864911ce4d8aa02ca21c18c9f82af87603195cbcdd56bbd3d6374388ede7c76
def _get_file_objects(self, build_results=True): 'Returns the file object and writer for writing results or\n (None, None) if self.filename is None' file_obj = None writer = None if (self.filename is not None): file_obj = open(self.filename, 'w') writer = csv.writer(file_obj, line...
Returns the file object and writer for writing results or (None, None) if self.filename is None
axelrod/tournament.py
_get_file_objects
JosephLazzaro/Axelrod
596
python
def _get_file_objects(self, build_results=True): 'Returns the file object and writer for writing results or\n (None, None) if self.filename is None' file_obj = None writer = None if (self.filename is not None): file_obj = open(self.filename, 'w') writer = csv.writer(file_obj, line...
def _get_file_objects(self, build_results=True): 'Returns the file object and writer for writing results or\n (None, None) if self.filename is None' file_obj = None writer = None if (self.filename is not None): file_obj = open(self.filename, 'w') writer = csv.writer(file_obj, line...
4c7c2db4104acf4c35d04d457b36e2089f38d219e659a9ac1d48e2c8734fffff
def _write_interactions_to_file(self, results, writer): 'Write the interactions to csv.' for (index_pair, interactions) in results.items(): repetition = 0 for (interaction, results) in interactions: if (results is not None): (scores, score_diffs, turns, score_per_turn...
Write the interactions to csv.
axelrod/tournament.py
_write_interactions_to_file
JosephLazzaro/Axelrod
596
python
def _write_interactions_to_file(self, results, writer): for (index_pair, interactions) in results.items(): repetition = 0 for (interaction, results) in interactions: if (results is not None): (scores, score_diffs, turns, score_per_turns, score_diffs_per_turns, initia...
def _write_interactions_to_file(self, results, writer): for (index_pair, interactions) in results.items(): repetition = 0 for (interaction, results) in interactions: if (results is not None): (scores, score_diffs, turns, score_per_turns, score_diffs_per_turns, initia...
571be68f52f31430b6735978b87bfefdf75b147ab962e40429b94c0d8d230e54
def _run_parallel(self, processes: int=2, build_results: bool=True) -> bool: '\n Run all matches in parallel\n\n Parameters\n ----------\n build_results : bool\n whether or not to build a results set\n processes : int\n How many processes to use.\n ' ...
Run all matches in parallel Parameters ---------- build_results : bool whether or not to build a results set processes : int How many processes to use.
axelrod/tournament.py
_run_parallel
JosephLazzaro/Axelrod
596
python
def _run_parallel(self, processes: int=2, build_results: bool=True) -> bool: '\n Run all matches in parallel\n\n Parameters\n ----------\n build_results : bool\n whether or not to build a results set\n processes : int\n How many processes to use.\n ' ...
def _run_parallel(self, processes: int=2, build_results: bool=True) -> bool: '\n Run all matches in parallel\n\n Parameters\n ----------\n build_results : bool\n whether or not to build a results set\n processes : int\n How many processes to use.\n ' ...
1418c418b654b9d59f2dddc6eacaf60ed7eca335c8edba782794275f1d8c2183
def _n_workers(self, processes: int=2) -> int: '\n Determines the number of parallel processes to use.\n\n Returns\n -------\n integer\n ' if (2 <= processes <= cpu_count()): n_workers = processes else: n_workers = cpu_count() return n_workers
Determines the number of parallel processes to use. Returns ------- integer
axelrod/tournament.py
_n_workers
JosephLazzaro/Axelrod
596
python
def _n_workers(self, processes: int=2) -> int: '\n Determines the number of parallel processes to use.\n\n Returns\n -------\n integer\n ' if (2 <= processes <= cpu_count()): n_workers = processes else: n_workers = cpu_count() return n_workers
def _n_workers(self, processes: int=2) -> int: '\n Determines the number of parallel processes to use.\n\n Returns\n -------\n integer\n ' if (2 <= processes <= cpu_count()): n_workers = processes else: n_workers = cpu_count() return n_workers<|docstrin...
3680ab4e652b3640b04d180c051cb7599581675c25fd155cb12d5dd2e4ace738
def _start_workers(self, workers: int, work_queue: Queue, done_queue: Queue, build_results: bool=True) -> bool: '\n Initiates the sub-processes to carry out parallel processing.\n\n Parameters\n ----------\n workers : integer\n The number of sub-processes to create\n wo...
Initiates the sub-processes to carry out parallel processing. Parameters ---------- workers : integer The number of sub-processes to create work_queue : multiprocessing.Queue A queue containing an entry for each round robin to be processed done_queue : multiprocessing.Queue A queue containing the output di...
axelrod/tournament.py
_start_workers
JosephLazzaro/Axelrod
596
python
def _start_workers(self, workers: int, work_queue: Queue, done_queue: Queue, build_results: bool=True) -> bool: '\n Initiates the sub-processes to carry out parallel processing.\n\n Parameters\n ----------\n workers : integer\n The number of sub-processes to create\n wo...
def _start_workers(self, workers: int, work_queue: Queue, done_queue: Queue, build_results: bool=True) -> bool: '\n Initiates the sub-processes to carry out parallel processing.\n\n Parameters\n ----------\n workers : integer\n The number of sub-processes to create\n wo...
b3e86f31aedcdd74eb259be33ecd7d6bc03031109df23da61a50f4f935e4ee02
def _process_done_queue(self, workers: int, done_queue: Queue, build_results: bool=True): '\n Retrieves the matches from the parallel sub-processes\n\n Parameters\n ----------\n workers : integer\n The number of sub-processes in existence\n done_queue : multiprocessing....
Retrieves the matches from the parallel sub-processes Parameters ---------- workers : integer The number of sub-processes in existence done_queue : multiprocessing.Queue A queue containing the output dictionaries from each round robin build_results : bool whether or not to build a results set
axelrod/tournament.py
_process_done_queue
JosephLazzaro/Axelrod
596
python
def _process_done_queue(self, workers: int, done_queue: Queue, build_results: bool=True): '\n Retrieves the matches from the parallel sub-processes\n\n Parameters\n ----------\n workers : integer\n The number of sub-processes in existence\n done_queue : multiprocessing....
def _process_done_queue(self, workers: int, done_queue: Queue, build_results: bool=True): '\n Retrieves the matches from the parallel sub-processes\n\n Parameters\n ----------\n workers : integer\n The number of sub-processes in existence\n done_queue : multiprocessing....
13669a4ed37ee234ff217754bfc3b6d91b517f2e01c1da4e07ab5d0de8e708d9
def _worker(self, work_queue: Queue, done_queue: Queue, build_results: bool=True): '\n The work for each parallel sub-process to execute.\n\n Parameters\n ----------\n work_queue : multiprocessing.Queue\n A queue containing an entry for each round robin to be processed\n ...
The work for each parallel sub-process to execute. Parameters ---------- work_queue : multiprocessing.Queue A queue containing an entry for each round robin to be processed done_queue : multiprocessing.Queue A queue containing the output dictionaries from each round robin build_results : bool whether or no...
axelrod/tournament.py
_worker
JosephLazzaro/Axelrod
596
python
def _worker(self, work_queue: Queue, done_queue: Queue, build_results: bool=True): '\n The work for each parallel sub-process to execute.\n\n Parameters\n ----------\n work_queue : multiprocessing.Queue\n A queue containing an entry for each round robin to be processed\n ...
def _worker(self, work_queue: Queue, done_queue: Queue, build_results: bool=True): '\n The work for each parallel sub-process to execute.\n\n Parameters\n ----------\n work_queue : multiprocessing.Queue\n A queue containing an entry for each round robin to be processed\n ...
2a50fbdd865f6d6fd6798a950e94f4e501d3a9de11b0743b27c8bde645a15ec1
def _play_matches(self, chunk, build_results=True): '\n Play matches in a given chunk.\n\n Parameters\n ----------\n chunk : tuple (index pair, match_parameters, repetitions)\n match_parameters are also a tuple: (turns, game, noise)\n build_results : bool\n w...
Play matches in a given chunk. Parameters ---------- chunk : tuple (index pair, match_parameters, repetitions) match_parameters are also a tuple: (turns, game, noise) build_results : bool whether or not to build a results set Returns ------- interactions : dictionary Mapping player index pairs to results ...
axelrod/tournament.py
_play_matches
JosephLazzaro/Axelrod
596
python
def _play_matches(self, chunk, build_results=True): '\n Play matches in a given chunk.\n\n Parameters\n ----------\n chunk : tuple (index pair, match_parameters, repetitions)\n match_parameters are also a tuple: (turns, game, noise)\n build_results : bool\n w...
def _play_matches(self, chunk, build_results=True): '\n Play matches in a given chunk.\n\n Parameters\n ----------\n chunk : tuple (index pair, match_parameters, repetitions)\n match_parameters are also a tuple: (turns, game, noise)\n build_results : bool\n w...
82f96d8927bedf6d5822badea835311583b242db50e92921c50647bd5a5038c7
def v2_edges_department_profile_list(self, **kwargs): 'v2_edges_department_profile_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v2_edges_departm...
v2_edges_department_profile_list # noqa: E501 获取对象列表 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.v2_edges_department_profile_list(async_req=True) >>> result = thread.get() :param async_req bool :param str ord...
src/sdk/bkuser_sdk/api/edges_api.py
v2_edges_department_profile_list
wklken/bk-user
0
python
def v2_edges_department_profile_list(self, **kwargs): 'v2_edges_department_profile_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v2_edges_departm...
def v2_edges_department_profile_list(self, **kwargs): 'v2_edges_department_profile_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v2_edges_departm...
8aa730018a13c852a6edad53edefaa29ba2da479a436feaadf09febb23144141
def v2_edges_department_profile_list_with_http_info(self, **kwargs): 'v2_edges_department_profile_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v...
v2_edges_department_profile_list # noqa: E501 获取对象列表 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.v2_edges_department_profile_list_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool...
src/sdk/bkuser_sdk/api/edges_api.py
v2_edges_department_profile_list_with_http_info
wklken/bk-user
0
python
def v2_edges_department_profile_list_with_http_info(self, **kwargs): 'v2_edges_department_profile_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v...
def v2_edges_department_profile_list_with_http_info(self, **kwargs): 'v2_edges_department_profile_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v...
76637c6abc37089be8a564c1af8dc0c93d2f8a0604807e702acfe08e1eab7b11
def v2_edges_leader_list(self, **kwargs): 'v2_edges_leader_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v2_edges_leader_list(async_req=True)\n ...
v2_edges_leader_list # noqa: E501 获取对象列表 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.v2_edges_leader_list(async_req=True) >>> result = thread.get() :param async_req bool :param str ordering: Which field to us...
src/sdk/bkuser_sdk/api/edges_api.py
v2_edges_leader_list
wklken/bk-user
0
python
def v2_edges_leader_list(self, **kwargs): 'v2_edges_leader_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v2_edges_leader_list(async_req=True)\n ...
def v2_edges_leader_list(self, **kwargs): 'v2_edges_leader_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v2_edges_leader_list(async_req=True)\n ...
2f63a088d897182b77f79d0c88a9342f177b7c96ab33c146eb8cd7593d4e33bc
def v2_edges_leader_list_with_http_info(self, **kwargs): 'v2_edges_leader_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v2_edges_leader_list_with...
v2_edges_leader_list # noqa: E501 获取对象列表 # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.v2_edges_leader_list_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str ordering: Wh...
src/sdk/bkuser_sdk/api/edges_api.py
v2_edges_leader_list_with_http_info
wklken/bk-user
0
python
def v2_edges_leader_list_with_http_info(self, **kwargs): 'v2_edges_leader_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v2_edges_leader_list_with...
def v2_edges_leader_list_with_http_info(self, **kwargs): 'v2_edges_leader_list # noqa: E501\n\n 获取对象列表 # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.v2_edges_leader_list_with...
95bb636f2d836c7906e97cdb62f0e85893750ff6257f6e4d57da8f0e80270745
def randbytes(n): 'Generate n random bytes.' return random.getrandbits((n * 8)).to_bytes(n, 'little')
Generate n random bytes.
tests/test_uploads.py
randbytes
ericswpark/drf-chunked-upload
68
python
def randbytes(n): return random.getrandbits((n * 8)).to_bytes(n, 'little')
def randbytes(n): return random.getrandbits((n * 8)).to_bytes(n, 'little')<|docstring|>Generate n random bytes.<|endoftext|>
fb427361bdbc3ea4dbb709c995badd75fb33fa8c81b8560616095fe5933fd2ec
@click.command() @click.option('--host', default=LABEL_API_HOST, help='Host / IP to listen on') @click.option('--port', default=LABEL_API_PORT, help='Port to listen on') @click.option('--model', default=BROTHER_QL_MODEL, help='brother_ql model') @click.option('--backend', default=BROTHER_QL_BACKEND, help='brother_ql ba...
Start the label_api software
backend.py
cli
WaeCo/ptouch-editor-label-renderer
0
python
@click.command() @click.option('--host', default=LABEL_API_HOST, help='Host / IP to listen on') @click.option('--port', default=LABEL_API_PORT, help='Port to listen on') @click.option('--model', default=BROTHER_QL_MODEL, help='brother_ql model') @click.option('--backend', default=BROTHER_QL_BACKEND, help='brother_ql ba...
@click.command() @click.option('--host', default=LABEL_API_HOST, help='Host / IP to listen on') @click.option('--port', default=LABEL_API_PORT, help='Port to listen on') @click.option('--model', default=BROTHER_QL_MODEL, help='brother_ql model') @click.option('--backend', default=BROTHER_QL_BACKEND, help='brother_ql ba...
fc44993e1bba7e9c5b4e7647897d5ad5c46677aecaed02af235a51e616735363
def __init__(self, channel): 'Constructor.\n\n Args:\n channel: A grpc.Channel.\n ' self.Params = channel.unary_unary('/injective.peggy.v1.Query/Params', request_serializer=injective_dot_peggy_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, response_deserializer=injective_do...
Constructor. Args: channel: A grpc.Channel.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
__init__
CtheSky/sdk-python
10
python
def __init__(self, channel): 'Constructor.\n\n Args:\n channel: A grpc.Channel.\n ' self.Params = channel.unary_unary('/injective.peggy.v1.Query/Params', request_serializer=injective_dot_peggy_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, response_deserializer=injective_do...
def __init__(self, channel): 'Constructor.\n\n Args:\n channel: A grpc.Channel.\n ' self.Params = channel.unary_unary('/injective.peggy.v1.Query/Params', request_serializer=injective_dot_peggy_dot_v1_dot_query__pb2.QueryParamsRequest.SerializeToString, response_deserializer=injective_do...
0181e919afb111b4b581304ec4eace4a987f6092b073c3ceab2ecdd69e086773
def Params(self, request, context): 'Deployments queries deployments\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Deployments queries deployments
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
Params
CtheSky/sdk-python
10
python
def Params(self, request, context): '\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def Params(self, request, context): '\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Deployments queries deployments<|endoftext|>
143dfe8956d67842cd50a72cf23192c979c422758ef01dbabc6d0182a5289896
def CurrentValset(self, request, context): 'valset\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
valset
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
CurrentValset
CtheSky/sdk-python
10
python
def CurrentValset(self, request, context): '\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def CurrentValset(self, request, context): '\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>valset<|endoftext|>
ad0446089a8272dccd49b667476b5c68c268043db346f26ea79bae1e21904831
def ValsetRequest(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
ValsetRequest
CtheSky/sdk-python
10
python
def ValsetRequest(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def ValsetRequest(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
2d7c401ba8dfdbd9a478db25aa3a1375b045429b7c18b3c15762733f74d3499c
def ValsetConfirm(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
ValsetConfirm
CtheSky/sdk-python
10
python
def ValsetConfirm(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def ValsetConfirm(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
0d440717819b733ead1c781238f66502fa5f115e4e71b3c415aec3f037a1fe0a
def ValsetConfirmsByNonce(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
ValsetConfirmsByNonce
CtheSky/sdk-python
10
python
def ValsetConfirmsByNonce(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def ValsetConfirmsByNonce(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
56249a6df141e9d097c0a12c6cca1eb972a02b0ee17a7c98eede6f55202f2b26
def LastValsetRequests(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
LastValsetRequests
CtheSky/sdk-python
10
python
def LastValsetRequests(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def LastValsetRequests(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
8b53ce9452ca8f369fdbd93ce4d6958ead1a51dbdbf6319256b57bacbf1f5025
def LastPendingValsetRequestByAddr(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
LastPendingValsetRequestByAddr
CtheSky/sdk-python
10
python
def LastPendingValsetRequestByAddr(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def LastPendingValsetRequestByAddr(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
fa8aa039c563b9fecfe3d9fba50fbba5854ea013e82b759776ef3130c2e74232
def LastEventByAddr(self, request, context): 'claim\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
claim
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
LastEventByAddr
CtheSky/sdk-python
10
python
def LastEventByAddr(self, request, context): '\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def LastEventByAddr(self, request, context): '\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>claim<|endoftext|>
32d63630eeae2e5d881bf2f5aebeb3959412534b43608b651894a5c31dc02f12
def GetPendingSendToEth(self, request, context): 'batch\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
batch
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
GetPendingSendToEth
CtheSky/sdk-python
10
python
def GetPendingSendToEth(self, request, context): '\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def GetPendingSendToEth(self, request, context): '\n ' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>batch<|endoftext|>
c54a20dc918b8a3032b0d5675e283f205af8a68d160c70068a2f5a405c3b9c00
def BatchFees(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
BatchFees
CtheSky/sdk-python
10
python
def BatchFees(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def BatchFees(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
897fee9dfa1795c70fb3f90b72406c5218c5830e9780594f531f9a41bb9a9ef2
def OutgoingTxBatches(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
OutgoingTxBatches
CtheSky/sdk-python
10
python
def OutgoingTxBatches(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def OutgoingTxBatches(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
8346f2ac53093d673e7407df6357dcde102f4b093ba3b6de3f5335ed0b92b886
def LastPendingBatchRequestByAddr(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
LastPendingBatchRequestByAddr
CtheSky/sdk-python
10
python
def LastPendingBatchRequestByAddr(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def LastPendingBatchRequestByAddr(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
c07ae6b483c884d0dd67346fe7bc2f0434d0b20542f3a58c46c91576e8c5ff73
def BatchRequestByNonce(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
BatchRequestByNonce
CtheSky/sdk-python
10
python
def BatchRequestByNonce(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def BatchRequestByNonce(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
628f60eb31750ed369b398b71763ac031ad7981a8f5caef3e12e20fb9c0e2e35
def BatchConfirms(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
BatchConfirms
CtheSky/sdk-python
10
python
def BatchConfirms(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def BatchConfirms(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
7b18568eff64709a10bff08049a1079fcecd748b2315351fb5856f0fca95bc94
def ERC20ToDenom(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
ERC20ToDenom
CtheSky/sdk-python
10
python
def ERC20ToDenom(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def ERC20ToDenom(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>
49b144efec5e189cc83706bba0d264514d3a422c2503a71d996660d1a75615cc
def DenomToERC20(self, request, context): 'Missing associated documentation comment in .proto file.' context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
Missing associated documentation comment in .proto file.
pyinjective/proto/injective/peggy/v1/query_pb2_grpc.py
DenomToERC20
CtheSky/sdk-python
10
python
def DenomToERC20(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
def DenomToERC20(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')<|docstring|>Missing associated documentation comment in .proto file.<|endoftext|>