index
int64
0
50.7k
project_path
stringclasses
279 values
completion_path
stringlengths
57
199
signature_postion
stringlengths
3
11
class_position
stringlengths
3
11
function_name
stringlengths
1
62
class_name
stringlengths
0
55
body_position
stringlengths
3
11
body_position_with_comments
stringlengths
3
11
masked_class
stringlengths
14
8.32k
masked_class_with_comment
stringlengths
14
8.32k
func_body
stringlengths
9
6.72k
func_body_with_comment
stringlengths
9
6.72k
len_func_body
int64
1
643
len_input
int64
10
2.02k
len_output
int64
4
1.9k
total
int64
20
2.05k
file_code
stringlengths
14
442k
file_code_with_comment
stringlengths
14
442k
31,524
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B/megatron_mini/core/tensor_parallel/utils.py
103,105
88,109
vocab_range_from_global_vocab_size
VocabUtility
105,109
105,109
class VocabUtility: """ Split the vocabulary into `world_size` chunks and return the first and last index of the vocabulary belonging to the `rank` partition: Note that indices in [fist, last) """ @staticmethod def vocab_range_from_per_partition_vocab_size( per_partition_vocab_...
class VocabUtility: """ Split the vocabulary into `world_size` chunks and return the first and last index of the vocabulary belonging to the `rank` partition: Note that indices in [fist, last) """ @staticmethod def vocab_range_from_per_partition_vocab_size( per_partition_vocab_...
per_partition_vocab_size = divide(global_vocab_size, world_size) return VocabUtility.vocab_range_from_per_partition_vocab_size( per_partition_vocab_size, rank, world_size )
per_partition_vocab_size = divide(global_vocab_size, world_size) return VocabUtility.vocab_range_from_per_partition_vocab_size( per_partition_vocab_size, rank, world_size )
10
226
78
304
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. import torch from typing import List, Sequence, Tuple from megatron_mini.core.utils import divide from megatron_mini.core import parallel_state def split_tensor_along_last_dim( tensor: torch.Tensor, num_partitions: int, contiguous_split_chunk...
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. import torch from typing import List, Sequence, Tuple from megatron_mini.core.utils import divide from megatron_mini.core import parallel_state def split_tensor_along_last_dim( tensor: torch.Tensor, num_partitions: int, contiguous_split_chunk...
31,525
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B/megatron_mini/core/utils.py
76,77
1,119
make_viewless_tensor
85,96
77,96
"""Utility functions used throughout Megatron core""" from functools import reduce import operator import torch def ensure_divisibility(numerator, denominator): """Ensure that numerator is divisible by the denominator.""" assert numerator % denominator == 0, "{} is not divisible by {}".format( numera...
"""Utility functions used throughout Megatron core""" from functools import reduce import operator import torch def ensure_divisibility(numerator, denominator): """Ensure that numerator is divisible by the denominator.""" assert numerator % denominator == 0, "{} is not divisible by {}".format( numera...
# return tensor as-is, if not a 'view' if inp._base is None: return inp # create viewless tensor if keep_graph: return MakeViewlessTensor.apply(inp, requires_grad) else: return _kernel_make_viewless_tensor(inp, requires_grad)
''' Entry-point for creating viewless tensors. This method should be used, rather than calling 'MakeViewlessTensor' or '_kernel_make_viewless_tensor' directly. This method acts as a switch for determining if an autograd function or a regular method should be used to create the tensor. ''' ...
27
1,133
100
1,233
"""Utility functions used throughout Megatron core""" from functools import reduce import operator import torch def ensure_divisibility(numerator, denominator): """Ensure that numerator is divisible by the denominator.""" assert numerator % denominator == 0, "{} is not divisible by {}".format( numera...
"""Utility functions used throughout Megatron core""" from functools import reduce import operator import torch def ensure_divisibility(numerator, denominator): """Ensure that numerator is divisible by the denominator.""" assert numerator % denominator == 0, "{} is not divisible by {}".format( numera...
31,526
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B/megatron_mini/core/utils.py
30,31
22,42
get_tensor
GlobalMemoryBuffer
31,42
31,42
class GlobalMemoryBuffer: """Global buffer to avoid dynamic memory allocations. Caller should ensure that buffers of the same name are not used concurrently.""" def __init__(self): self.buffer = {} def get_tensor(self, tensor_shape, dtype, name): FILL_FUNC_BODY
class GlobalMemoryBuffer: """Global buffer to avoid dynamic memory allocations. Caller should ensure that buffers of the same name are not used concurrently.""" def __init__(self): self.buffer = {} def get_tensor(self, tensor_shape, dtype, name): FILL_FUNC_BODY
required_len = reduce(operator.mul, tensor_shape, 1) if self.buffer.get((name, dtype), None) is None or \ self.buffer[(name, dtype)].numel() < required_len: self.buffer[(name, dtype)] = \ torch.empty(required_len, dtype=dtype, ...
required_len = reduce(operator.mul, tensor_shape, 1) if self.buffer.get((name, dtype), None) is None or \ self.buffer[(name, dtype)].numel() < required_len: self.buffer[(name, dtype)] = \ torch.empty(required_len, dtype=dtype, ...
28
85
152
237
"""Utility functions used throughout Megatron core""" from functools import reduce import operator import torch def ensure_divisibility(numerator, denominator): """Ensure that numerator is divisible by the denominator.""" assert numerator % denominator == 0, "{} is not divisible by {}".format( numera...
"""Utility functions used throughout Megatron core""" from functools import reduce import operator import torch def ensure_divisibility(numerator, denominator): """Ensure that numerator is divisible by the denominator.""" assert numerator % denominator == 0, "{} is not divisible by {}".format( numera...
31,527
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B/megatron_mini/core/utils.py
72,74
60,76
backward
MakeViewlessTensor
74,76
74,76
class MakeViewlessTensor(torch.autograd.Function): ''' Autograd function to make a viewless tensor. This function should be used in cases where the computation graph needs to be propagated, but we only want a viewless tensor (e.g., ParallelTransformer's hidden_states). Call this function by passing...
class MakeViewlessTensor(torch.autograd.Function): ''' Autograd function to make a viewless tensor. This function should be used in cases where the computation graph needs to be propagated, but we only want a viewless tensor (e.g., ParallelTransformer's hidden_states). Call this function by passing...
return grad_output, None
return grad_output, None
3
172
11
183
"""Utility functions used throughout Megatron core""" from functools import reduce import operator import torch def ensure_divisibility(numerator, denominator): """Ensure that numerator is divisible by the denominator.""" assert numerator % denominator == 0, "{} is not divisible by {}".format( numera...
"""Utility functions used throughout Megatron core""" from functools import reduce import operator import torch def ensure_divisibility(numerator, denominator): """Ensure that numerator is divisible by the denominator.""" assert numerator % denominator == 0, "{} is not divisible by {}".format( numera...
31,529
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B/megatron_mini/global_vars.py
37,38
1,43
_ensure_var_is_not_initialized
39,43
38,43
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron global variables.""" import os import sys import torch _GLOBAL_ARGS = None def get_args(): """Return arguments.""" _ensure_var_is_initialized(_GLOBAL_ARGS, 'args') return _GLOBAL_ARGS def set_global_variables(args): """Set...
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron global variables.""" import os import sys import torch _GLOBAL_ARGS = None def get_args(): """Return arguments.""" _ensure_var_is_initialized(_GLOBAL_ARGS, 'args') return _GLOBAL_ARGS def set_global_variables(args): """Set...
assert var is None, '{} is already initialized.'.format(name)
"""Make sure the input variable is not None.""" assert var is None, '{} is already initialized.'.format(name)
8
304
25
329
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron global variables.""" import os import sys import torch _GLOBAL_ARGS = None def get_args(): """Return arguments.""" _ensure_var_is_initialized(_GLOBAL_ARGS, 'args') return _GLOBAL_ARGS def set_global_variables(args): """Set...
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron global variables.""" import os import sys import torch _GLOBAL_ARGS = None def get_args(): """Return arguments.""" _ensure_var_is_initialized(_GLOBAL_ARGS, 'args') return _GLOBAL_ARGS def set_global_variables(args): """Set...
31,530
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B/megatron_mini/initialize.py
56,57
1,136
_initialize_distributed
58,121
57,121
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron initialization.""" import random import os import time import sys import numpy as np import torch from datetime import timedelta from megatron_mini import get_args from megatron_mini.core import mpu, tensor_parallel from megatron_mini.argumen...
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron initialization.""" import random import os import time import sys import numpy as np import torch from datetime import timedelta from megatron_mini import get_args from megatron_mini.core import mpu, tensor_parallel from megatron_mini.argumen...
args = get_args() device_count = torch.cuda.device_count() if torch.distributed.is_initialized(): if args.rank == 0: print('torch distributed is already initialized, ' 'skipping initialization ...', flush=True) args.rank = torch.distributed.get_rank() ...
"""Initialize torch.distributed and core model parallel.""" args = get_args() device_count = torch.cuda.device_count() if torch.distributed.is_initialized(): if args.rank == 0: print('torch distributed is already initialized, ' 'skipping initialization ...', flush...
179
772
739
1,511
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron initialization.""" import random import os import time import sys import numpy as np import torch from datetime import timedelta from megatron_mini import get_args from megatron_mini.core import mpu, tensor_parallel from megatron_mini.argumen...
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron initialization.""" import random import os import time import sys import numpy as np import torch from datetime import timedelta from megatron_mini import get_args from megatron_mini.core import mpu, tensor_parallel from megatron_mini.argumen...
31,531
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B
/home/hieuvd/dung_repo/raw/stars_02/aixcoder-plugin_aiXcoder-7B/aiXcoder-7B/megatron_mini/model/module.py
38,39
13,112
initialize_word_embeddings
MegatronModule
39,112
39,112
class MegatronModule(torch.nn.Module): """Megatron specific extensions of torch Module with support for pipelining.""" def __init__(self, share_word_embeddings=True): super(MegatronModule, self).__init__() self.share_word_embeddings = share_word_embeddings def state_dict_for_save_chec...
class MegatronModule(torch.nn.Module): """Megatron specific extensions of torch Module with support for pipelining.""" def __init__(self, share_word_embeddings=True): super(MegatronModule, self).__init__() self.share_word_embeddings = share_word_embeddings def state_dict_for_save_chec...
args = get_args() if not self.share_word_embeddings: raise Exception('initialize_word_embeddings() was called but ' 'share_word_embeddings is false') # This function just initializes the word embeddings in the final stage # when we are using pipel...
args = get_args() if not self.share_word_embeddings: raise Exception('initialize_word_embeddings() was called but ' 'share_word_embeddings is false') # This function just initializes the word embeddings in the final stage # when we are using pipel...
361
283
1,081
1,364
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron Module""" import torch from torch.autograd import Variable from torch.nn.parameter import Parameter from megatron_mini import get_args from megatron_mini.core import mpu, tensor_parallel class MegatronModule(torch.nn.Module): """Megatro...
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Megatron Module""" import torch from torch.autograd import Variable from torch.nn.parameter import Parameter from megatron_mini import get_args from megatron_mini.core import mpu, tensor_parallel class MegatronModule(torch.nn.Module): """Megatro...
31,532
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/examples/read_properties.py
8,9
1,37
main
9,35
9,35
# coding: utf-8 # from tidevice._usbmux import Usbmux from tidevice import Device from pprint import pprint def main(): FILL_FUNC_BODYif __name__ == "__main__": main()
# coding: utf-8 # from tidevice._usbmux import Usbmux from tidevice import Device from pprint import pprint def main(): FILL_FUNC_BODYif __name__ == "__main__": main()
u = Usbmux() # List devices devices = u.device_list() pprint(devices) buid = u.read_system_BUID() print("BUID:", buid) d = Device() dev_pkey = d.get_value("DevicePublicKey", no_session=True) print("DevicePublicKey:", dev_pkey) wifi_address = d.get_value("WiFiAddress",...
u = Usbmux() # List devices devices = u.device_list() pprint(devices) buid = u.read_system_BUID() print("BUID:", buid) d = Device() dev_pkey = d.get_value("DevicePublicKey", no_session=True) print("DevicePublicKey:", dev_pkey) wifi_address = d.get_value("WiFiAddress",...
47
67
238
305
# coding: utf-8 # from tidevice._usbmux import Usbmux from tidevice import Device from pprint import pprint def main(): FILL_FUNC_BODYif __name__ == "__main__": main()
# coding: utf-8 # from tidevice._usbmux import Usbmux from tidevice import Device from pprint import pprint def main(): FILL_FUNC_BODYif __name__ == "__main__": main()
31,533
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_crash.py
26,27
18,36
preview
CrashManager
27,33
27,33
class CrashManager: def __init__(self, copy_conn: PlistSocketProxy): self._afc = Sync(copy_conn) @property def afc(self) -> Sync: return self._afc def preview(self): FILL_FUNC_BODY def remove_all(self): self._afc.rmtree("/") logger.info("Crash file purged from de...
class CrashManager: def __init__(self, copy_conn: PlistSocketProxy): self._afc = Sync(copy_conn) @property def afc(self) -> Sync: return self._afc def preview(self): FILL_FUNC_BODY def remove_all(self): self._afc.rmtree("/") logger.info("Crash file purged from de...
logger.info("List of crash logs") if self.afc.listdir("/"): self.afc.treeview("/") else: logger.info("No crashes")
logger.info("List of crash logs") if self.afc.listdir("/"): self.afc.treeview("/") else: logger.info("No crashes")
10
114
55
169
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Created on Thu Oct 19 2023 16:03:14 by codeskyblue """ from genericpath import isdir from ._sync import Sync import logging from ._proto import LOG from ._safe_socket import PlistSocketProxy logger = logging.getLogger(__name__) # Ref: https://github.com/libimobiled...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Created on Thu Oct 19 2023 16:03:14 by codeskyblue """ from genericpath import isdir from ._sync import Sync import logging from ._proto import LOG from ._safe_socket import PlistSocketProxy logger = logging.getLogger(__name__) # Ref: https://github.com/libimobiled...
31,535
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_imagemounter.py
172,175
138,230
mount
ImageMounter
176,188
175,188
class ImageMounter(PlistSocketProxy): SERVICE_NAME = "com.apple.mobile.mobile_image_mounter" def prepare(self): """ Note: LookupImage might stuck and no response """ return super().prepare() def lookup(self, image_type="Developer") -> List[bytes]: """ Ch...
class ImageMounter(PlistSocketProxy): SERVICE_NAME = "com.apple.mobile.mobile_image_mounter" def prepare(self): """ Note: LookupImage might stuck and no response """ return super().prepare() def lookup(self, image_type="Developer") -> List[bytes]: """ Ch...
assert os.path.isfile(image_path), image_path assert os.path.isfile(image_signature_path), image_signature_path logger.debug("image path: %s, %s", image_path, image_signature_path) with open(image_signature_path, 'rb') as f: signature_content = f.read() ...
""" Mount developer disk image from local files """ assert os.path.isfile(image_path), image_path assert os.path.isfile(image_signature_path), image_signature_path logger.debug("image path: %s, %s", image_path, image_signature_path) with open(image_signature_path, 'rb') ...
32
717
165
882
# coding: utf-8 # import os import shutil import tempfile import time import typing import zipfile from typing import List import retry import requests from ._safe_socket import PlistSocketProxy from ._utils import get_app_dir, logger from .exceptions import DeveloperImageError, MuxError, MuxServiceError, DownloadEr...
# coding: utf-8 # import os import shutil import tempfile import time import typing import zipfile from typing import List import retry import requests from ._safe_socket import PlistSocketProxy from ._utils import get_app_dir, logger from .exceptions import DeveloperImageError, MuxError, MuxServiceError, DownloadEr...
31,537
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_proto.py
42,44
25,48
wrap_text
Color
44,48
44,48
class Color(enum.Enum): END = '\033[0m' BOLD = '\033[1m' # Foreground BLACK = '\33[30m' RED = '\33[31m' GREEN = '\33[32m' YELLOW = '\33[33m' BLUE = '\33[34m' VIOLET = '\33[35m' BEIGE = '\33[36m' WHITE = '\33[37m' # Background BG_GREEN = '\033[42m' @staticmethod...
class Color(enum.Enum): END = '\033[0m' BOLD = '\033[1m' # Foreground BLACK = '\33[30m' RED = '\33[31m' GREEN = '\33[32m' YELLOW = '\33[33m' BLUE = '\33[34m' VIOLET = '\33[35m' BEIGE = '\33[36m' WHITE = '\33[37m' # Background BG_GREEN = '\033[42m' @staticmethod...
prefix = ''.join([c.value for c in colors]) return prefix + text + Color.END.value
prefix = ''.join([c.value for c in colors]) return prefix + text + Color.END.value
13
199
34
233
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = [ 'Color', 'AFC_MAGIC', 'AFCMode', 'AFC', 'AFCStatus', 'AFCPacket', 'LOCKDOWN_PORT', 'PROGRAM_NAME', 'SYSMON_PROC_ATTRS', 'SYSMON_SYS_ATTRS', 'MODELS', 'LockdownService', "UsbmuxReplyCode", "InstrumentsService", "LOG", "StatResult", "UsbmuxMessageType", ...
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = [ 'Color', 'AFC_MAGIC', 'AFCMode', 'AFC', 'AFCStatus', 'AFCPacket', 'LOCKDOWN_PORT', 'PROGRAM_NAME', 'SYSMON_PROC_ATTRS', 'SYSMON_SYS_ATTRS', 'MODELS', 'LockdownService', "UsbmuxReplyCode", "InstrumentsService", "LOG", "StatResult", "UsbmuxMessageType", ...
31,538
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_proto.py
355,356
344,363
is_dir
StatResult
356,358
356,358
@dataclass class StatResult: st_name: str st_ifmt: str st_size: int st_blocks: int st_nlink: int st_ctime: datetime.datetime st_mtime: datetime.datetime st_linktarget: str = None def is_dir(self) -> bool: FILL_FUNC_BODY def is_link(self) -> bool: return self.st_ifmt == "S...
@dataclass class StatResult: st_name: str st_ifmt: str st_size: int st_blocks: int st_nlink: int st_ctime: datetime.datetime st_mtime: datetime.datetime st_linktarget: str = None def is_dir(self) -> bool: FILL_FUNC_BODY def is_link(self) -> bool: return self.st_ifmt == "S...
return self.st_ifmt == "S_IFDIR"
return self.st_ifmt == "S_IFDIR"
4
135
19
154
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = [ 'Color', 'AFC_MAGIC', 'AFCMode', 'AFC', 'AFCStatus', 'AFCPacket', 'LOCKDOWN_PORT', 'PROGRAM_NAME', 'SYSMON_PROC_ATTRS', 'SYSMON_SYS_ATTRS', 'MODELS', 'LockdownService', "UsbmuxReplyCode", "InstrumentsService", "LOG", "StatResult", "UsbmuxMessageType", ...
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = [ 'Color', 'AFC_MAGIC', 'AFCMode', 'AFC', 'AFCStatus', 'AFCPacket', 'LOCKDOWN_PORT', 'PROGRAM_NAME', 'SYSMON_PROC_ATTRS', 'SYSMON_SYS_ATTRS', 'MODELS', 'LockdownService', "UsbmuxReplyCode", "InstrumentsService", "LOG", "StatResult", "UsbmuxMessageType", ...
31,540
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_safe_socket.py
219,220
181,238
recv_packet
PlistSocket
220,238
220,238
class PlistSocket(SafeStreamSocket): def __init__(self, addr: str, tag: int = 0): super().__init__(addr) if isinstance(addr, PlistSocket): self._tag = addr._tag self._first = addr._first else: self._tag = tag self._first = True self.pre...
class PlistSocket(SafeStreamSocket): def __init__(self, addr: str, tag: int = 0): super().__init__(addr) if isinstance(addr, PlistSocket): self._tag = addr._tag self._first = addr._first else: self._tag = tag self._first = True self.pre...
if self._first or header_size == 16: # first receive header = self.recvall(16) (length, version, resp, tag) = struct.unpack("IIII", header) length -= 16 # minus header length self._first = False else: header = self.recvall(4) (len...
if self._first or header_size == 16: # first receive header = self.recvall(16) (length, version, resp, tag) = struct.unpack("IIII", header) length -= 16 # minus header length self._first = False else: header = self.recvall(4) (len...
60
388
208
596
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = ['SafeStreamSocket', 'PlistSocket', 'PlistSocketProxy'] import logging import os import plistlib import socket import ssl import struct import threading import typing import weakref from typing import Any, Union from ._proto import UsbmuxMessageType, LOG from ._ut...
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = ['SafeStreamSocket', 'PlistSocket', 'PlistSocketProxy'] import logging import os import plistlib import socket import ssl import struct import threading import typing import weakref from typing import Any, Union from ._proto import UsbmuxMessageType, LOG from ._ut...
31,541
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_safe_socket.py
271,272
238,293
recv_packet
PlistSocketProxy
272,274
272,274
class PlistSocketProxy: def __init__(self, psock: typing.Union[PlistSocket, "PlistSocketProxy"]): if isinstance(psock, PlistSocketProxy): psock._finalizer.detach() self.__dict__.update(psock.__dict__) else: assert isinstance(psock, PlistSocket) self._p...
class PlistSocketProxy: def __init__(self, psock: typing.Union[PlistSocket, "PlistSocketProxy"]): if isinstance(psock, PlistSocketProxy): psock._finalizer.detach() self.__dict__.update(psock.__dict__) else: assert isinstance(psock, PlistSocket) self._p...
return self.psock.recv_packet(header_size)
return self.psock.recv_packet(header_size)
2
481
22
503
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = ['SafeStreamSocket', 'PlistSocket', 'PlistSocketProxy'] import logging import os import plistlib import socket import ssl import struct import threading import typing import weakref from typing import Any, Union from ._proto import UsbmuxMessageType, LOG from ._ut...
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = ['SafeStreamSocket', 'PlistSocket', 'PlistSocketProxy'] import logging import os import plistlib import socket import ssl import struct import threading import typing import weakref from typing import Any, Union from ._proto import UsbmuxMessageType, LOG from ._ut...
31,542
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_safe_socket.py
154,155
48,181
switch_to_ssl
SafeStreamSocket
156,174
155,174
class SafeStreamSocket: def __init__(self, addr: Union[str, typing.Tuple[str, int], socket.socket, Any]): """ Args: addr: can be /var/run/usbmuxd or localhost:27015 or (localhost, 27015) """ self._id = acquire_uid() self._dup_soc...
class SafeStreamSocket: def __init__(self, addr: Union[str, typing.Tuple[str, int], socket.socket, Any]): """ Args: addr: can be /var/run/usbmuxd or localhost:27015 or (localhost, 27015) """ self._id = acquire_uid() self._dup_soc...
logger.debug("Socket(%d): switch to ssl", self.id) assert os.path.isfile(pemfile) # https://docs.python.org/zh-cn/3/library/ssl.html#ssl.SSLContext context = ssl.SSLContext(ssl.PROTOCOL_TLS) try: context.verify_mode = ssl.CERT_NONE # try to fix ssl.SSLEOFErro...
""" wrap socket to SSLSocket """ logger.debug("Socket(%d): switch to ssl", self.id) assert os.path.isfile(pemfile) # https://docs.python.org/zh-cn/3/library/ssl.html#ssl.SSLContext context = ssl.SSLContext(ssl.PROTOCOL_TLS) try: context.verify_mode = ...
58
1,010
290
1,300
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = ['SafeStreamSocket', 'PlistSocket', 'PlistSocketProxy'] import logging import os import plistlib import socket import ssl import struct import threading import typing import weakref from typing import Any, Union from ._proto import UsbmuxMessageType, LOG from ._ut...
# coding: utf-8 # codeskyblue 2020/06/03 # __all__ = ['SafeStreamSocket', 'PlistSocket', 'PlistSocketProxy'] import logging import os import plistlib import socket import ssl import struct import threading import typing import weakref from typing import Any, Union from ._proto import UsbmuxMessageType, LOG from ._ut...
31,544
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_usbmux.py
110,111
23,159
_gen_host_id
Usbmux
111,115
111,115
class Usbmux: def __init__(self, address: Optional[Union[str, tuple]] = None): if address is None: if os.name == "posix": # linux or darwin address = "/var/run/usbmuxd" elif os.name == "nt": # windows address = ('127.0.0.1', 27015) else: ...
class Usbmux: def __init__(self, address: Optional[Union[str, tuple]] = None): if address is None: if os.name == "posix": # linux or darwin address = "/var/run/usbmuxd" elif os.name == "nt": # windows address = ('127.0.0.1', 27015) else: ...
hostname = platform.node() hostid = uuid.uuid3(uuid.NAMESPACE_DNS, hostname) return str(hostid).upper()
hostname = platform.node() hostid = uuid.uuid3(uuid.NAMESPACE_DNS, hostname) return str(hostid).upper()
9
1,510
48
1,558
# coding: utf-8 # created: codeskyblue 2020/06 import logging import os import platform import plistlib import pprint import socket import sys import typing import uuid from typing import Optional, Union from ._types import DeviceInfo from ._proto import PROGRAM_NAME, ConnectionType, UsbmuxReplyCode, LOG from ._safe_...
# coding: utf-8 # created: codeskyblue 2020/06 import logging import os import platform import plistlib import pprint import socket import sys import typing import uuid from typing import Optional, Union from ._types import DeviceInfo from ._proto import PROGRAM_NAME, ConnectionType, UsbmuxReplyCode, LOG from ._safe_...
31,546
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_utils.py
156,157
130,168
wait
BaseService
157,159
157,159
class BaseService(metaclass=abc.ABCMeta): def __init__(self): self._stopped = threading.Event() self._stopped.set() @property def running(self) -> bool: return not self._stopped.is_set() def set_running(self, running: bool): if running: self._stopped.cle...
class BaseService(metaclass=abc.ABCMeta): def __init__(self): self._stopped = threading.Event() self._stopped.set() @property def running(self) -> bool: return not self._stopped.is_set() def set_running(self, running: bool): if running: self._stopped.cle...
return self._stopped.wait(timeout)
return self._stopped.wait(timeout)
2
263
15
278
# coding: utf-8 # author: codeskyblue # created: 2020/09 import abc import contextlib import io import logging import os import socket import subprocess import sys import threading import time import typing import packaging.version from ._proto import PROGRAM_NAME logger = logging.getLogger(PROGRAM_NAME) is_atty = ...
# coding: utf-8 # author: codeskyblue # created: 2020/09 import abc import contextlib import io import logging import os import socket import subprocess import sys import threading import time import typing import packaging.version from ._proto import PROGRAM_NAME logger = logging.getLogger(PROGRAM_NAME) is_atty = ...
31,547
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_utils.py
89,90
74,130
format_size
ProgressReader
90,97
90,97
class ProgressReader(io.IOBase): def __init__(self, reader: typing.IO, total_size: int): self._reader = reader self._total_size = total_size self._begin = time.time() self._copied = 0 self._stdout_writelen = 0 def read(self, size: int) -> bytes: chunk = self._rea...
class ProgressReader(io.IOBase): def __init__(self, reader: typing.IO, total_size: int): self._reader = reader self._total_size = total_size self._begin = time.time() self._copied = 0 self._stdout_writelen = 0 def read(self, size: int) -> bytes: chunk = self._rea...
assert nbytes >= 0 units = [("MB", 1 << 20), ("KB", 1 << 10), ("Bytes", 1)] for unit_name, min_size in units: if nbytes >= min_size: return "{:.1f} {}".format(nbytes / min_size, unit_name) return "0 Bytes"
assert nbytes >= 0 units = [("MB", 1 << 20), ("KB", 1 << 10), ("Bytes", 1)] for unit_name, min_size in units: if nbytes >= min_size: return "{:.1f} {}".format(nbytes / min_size, unit_name) return "0 Bytes"
34
646
99
745
# coding: utf-8 # author: codeskyblue # created: 2020/09 import abc import contextlib import io import logging import os import socket import subprocess import sys import threading import time import typing import packaging.version from ._proto import PROGRAM_NAME logger = logging.getLogger(PROGRAM_NAME) is_atty = ...
# coding: utf-8 # author: codeskyblue # created: 2020/09 import abc import contextlib import io import logging import os import socket import subprocess import sys import threading import time import typing import packaging.version from ._proto import PROGRAM_NAME logger = logging.getLogger(PROGRAM_NAME) is_atty = ...
31,548
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/_utils.py
201,202
168,208
_stop
ThreadService
205,208
202,208
class ThreadService(BaseService): def __init__(self, thread_func: typing.Callable): """ Args: thread_func: first argument must be stop_event(threading.Event) passed by this class Example of thread_func: def tfoo(stop_event: threading.Event): w...
class ThreadService(BaseService): def __init__(self, thread_func: typing.Callable): """ Args: thread_func: first argument must be stop_event(threading.Event) passed by this class Example of thread_func: def tfoo(stop_event: threading.Event): w...
self._stop_event.set()
""" notifition thread to stop through stop_event """ self._stop_event.set()
1
299
15
314
# coding: utf-8 # author: codeskyblue # created: 2020/09 import abc import contextlib import io import logging import os import socket import subprocess import sys import threading import time import typing import packaging.version from ._proto import PROGRAM_NAME logger = logging.getLogger(PROGRAM_NAME) is_atty = ...
# coding: utf-8 # author: codeskyblue # created: 2020/09 import abc import contextlib import io import logging import os import socket import subprocess import sys import threading import time import typing import packaging.version from ._proto import PROGRAM_NAME logger = logging.getLogger(PROGRAM_NAME) is_atty = ...
31,549
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/session.py
17,18
12,37
get_plistsocket
Session
18,20
18,20
class Session: def __init__(self, s: PlistSocketProxy, session_id: str): self.__ps = s self.__session_id = session_id def get_plistsocket(self) -> PlistSocketProxy: FILL_FUNC_BODY def close(self): s = self.__ps s.send_packet({ "Request": "StopSession", ...
class Session: def __init__(self, s: PlistSocketProxy, session_id: str): self.__ps = s self.__session_id = session_id def get_plistsocket(self) -> PlistSocketProxy: FILL_FUNC_BODY def close(self): s = self.__ps s.send_packet({ "Request": "StopSession", ...
return self.__ps
return self.__ps
2
202
10
212
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Created on Wed Jan 11 2023 17:00:08 by codeskyblue """ from .exceptions import MuxServiceError from ._safe_socket import PlistSocketProxy from ._proto import PROGRAM_NAME class Session: def __init__(self, s: PlistSocketProxy, session_id: str): self.__ps ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Created on Wed Jan 11 2023 17:00:08 by codeskyblue """ from .exceptions import MuxServiceError from ._safe_socket import PlistSocketProxy from ._proto import PROGRAM_NAME class Session: def __init__(self, s: PlistSocketProxy, session_id: str): self.__ps ...
31,550
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/struct2.py
105,106
1,119
_example
106,117
106,117
# coding: utf-8 # # Created: codeskyblue 2020/06/01 # import struct from collections import namedtuple from functools import partial import typing class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._for...
# coding: utf-8 # # Created: codeskyblue 2020/06/01 # import struct from collections import namedtuple from functools import partial import typing class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._for...
Message = Struct("Message", U32("length"), U16("magic", 0x1234)) m = Message.parse(b"\x12\x00\x00\x00\x12\x35") assert m.length == 0x12 assert m.magic == 0x3512 buf = Message.build(length=7) assert buf == b'\x07\x00\x00\x00\x34\x12'
Message = Struct("Message", U32("length"), U16("magic", 0x1234)) m = Message.parse(b"\x12\x00\x00\x00\x12\x35") assert m.length == 0x12 assert m.magic == 0x3512 buf = Message.build(length=7) assert buf == b'\x07\x00\x00\x00\x34\x12'
24
894
150
1,044
# coding: utf-8 # # Created: codeskyblue 2020/06/01 # import struct from collections import namedtuple from functools import partial import typing class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._for...
# coding: utf-8 # # Created: codeskyblue 2020/06/01 # import struct from collections import namedtuple from functools import partial import typing class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._for...
31,551
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/struct2.py
20,22
12,40
name
Field
22,24
22,24
class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._format = format self._default = default self._struct = struct.Struct(format) @property def name(self): FILL_FUNC_BODY @proper...
class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._format = format self._default = default self._struct = struct.Struct(format) @property def name(self): FILL_FUNC_BODY @proper...
return self._name
return self._name
2
174
9
183
# coding: utf-8 # # Created: codeskyblue 2020/06/01 # import struct from collections import namedtuple from functools import partial import typing class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._for...
# coding: utf-8 # # Created: codeskyblue 2020/06/01 # import struct from collections import namedtuple from functools import partial import typing class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._for...
31,552
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice
/home/hieuvd/dung_repo/raw/stars_02/alibaba_tidevice/tidevice/tidevice/struct2.py
87,88
58,105
build
Struct
88,105
88,105
class Struct(object): def __init__(self, typename: str, *fields, byteorder="<"): self._fields = [self._convert_field(f) for f in fields] self._typename = typename self._fmt = byteorder + ''.join([f.format for f in self._fields]) self._field_names = [] for f in self._fields: ...
class Struct(object): def __init__(self, typename: str, *fields, byteorder="<"): self._fields = [self._convert_field(f) for f in fields] self._typename = typename self._fmt = byteorder + ''.join([f.format for f in self._fields]) self._field_names = [] for f in self._fields: ...
if args: assert len(args) == 1 assert isinstance(args[0], dict) kwargs = args[0] buffer = bytearray() for f in self._fields: value = kwargs.get(f.name) if value is None: if f.default is None: raise V...
if args: assert len(args) == 1 assert isinstance(args[0], dict) kwargs = args[0] buffer = bytearray() for f in self._fields: value = kwargs.get(f.name) if value is None: if f.default is None: raise V...
44
340
152
492
# coding: utf-8 # # Created: codeskyblue 2020/06/01 # import struct from collections import namedtuple from functools import partial import typing class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._for...
# coding: utf-8 # # Created: codeskyblue 2020/06/01 # import struct from collections import namedtuple from functools import partial import typing class Field(object): def __init__(self, name, default=None, format=None): assert format, "format should not empty" self._name = name self._for...
31,555
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/auto_scaler.py
64,66
55,76
from_config
ScalerConfig
66,76
66,76
@attr.s class ScalerConfig: max_idle_time_min = attr.ib(validator=instance_of(int), default=15) polling_interval_time_min = attr.ib(validator=instance_of((float, int)), default=5) max_spin_up_time_min = attr.ib(validator=instance_of(int), default=30) workers_prefix = attr.ib(default="dynamic_worker") ...
@attr.s class ScalerConfig: max_idle_time_min = attr.ib(validator=instance_of(int), default=15) polling_interval_time_min = attr.ib(validator=instance_of((float, int)), default=5) max_spin_up_time_min = attr.ib(validator=instance_of(int), default=30) workers_prefix = attr.ib(default="dynamic_worker") ...
return cls( max_idle_time_min=config['hyper_params']['max_idle_time_min'], polling_interval_time_min=config['hyper_params']['polling_interval_time_min'], max_spin_up_time_min=config['hyper_params']['max_spin_up_time_min'], workers_prefix=config['hyper_params']['wo...
return cls( max_idle_time_min=config['hyper_params']['max_idle_time_min'], polling_interval_time_min=config['hyper_params']['polling_interval_time_min'], max_spin_up_time_min=config['hyper_params']['max_spin_up_time_min'], workers_prefix=config['hyper_params']['wo...
9
173
152
325
import re from collections import defaultdict, deque from enum import Enum from itertools import chain from threading import Event, Thread from time import sleep, time import attr from attr.validators import instance_of from .cloud_driver import CloudDriver from .. import Task from ..backend_api import Session from ....
import re from collections import defaultdict, deque from enum import Enum from itertools import chain from threading import Event, Thread from time import sleep, time import attr from attr.validators import instance_of from .cloud_driver import CloudDriver from .. import Task from ..backend_api import Session from ....
31,558
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/cloud_driver.py
159,161
61,190
from_config
CloudDriver
161,180
161,180
@attr.s class CloudDriver(ABC): # git git_user = attr.ib() git_pass = attr.ib() # clearml extra_clearml_conf = attr.ib() api_server = attr.ib() web_server = attr.ib() files_server = attr.ib() access_key = attr.ib() secret_key = attr.ib() auth_token = attr.ib() # Other ...
@attr.s class CloudDriver(ABC): # git git_user = attr.ib() git_pass = attr.ib() # clearml extra_clearml_conf = attr.ib() api_server = attr.ib() web_server = attr.ib() files_server = attr.ib() access_key = attr.ib() secret_key = attr.ib() auth_token = attr.ib() # Other ...
session = Session() hyper_params, configurations = config['hyper_params'], config['configurations'] opts = { 'git_user': hyper_params['git_user'], 'git_pass': hyper_params['git_pass'], 'extra_clearml_conf': configurations['extra_clearml_conf'], 'ap...
session = Session() hyper_params, configurations = config['hyper_params'], config['configurations'] opts = { 'git_user': hyper_params['git_user'], 'git_pass': hyper_params['git_pass'], 'extra_clearml_conf': configurations['extra_clearml_conf'], 'ap...
41
1,087
268
1,355
import logging from abc import ABC, abstractmethod from os import environ import attr from ..backend_api import Session from ..backend_api.session.defs import ENV_AUTH_TOKEN env_git_user = 'CLEARML_AUTOSCALER_GIT_USER' env_git_pass = 'CLEARML_AUTOSCALER_GIT_PASSWORD' bash_script_template = '''\ #!/bin/bash set -x ...
import logging from abc import ABC, abstractmethod from os import environ import attr from ..backend_api import Session from ..backend_api.session.defs import ENV_AUTH_TOKEN env_git_user = 'CLEARML_AUTOSCALER_GIT_USER' env_git_pass = 'CLEARML_AUTOSCALER_GIT_PASSWORD' bash_script_template = '''\ #!/bin/bash set -x ...
31,560
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/hpbandster/bandster.py
49,50
27,113
compute
_TrainsBandsterWorker
50,113
50,113
class _TrainsBandsterWorker(Worker): def __init__( self, *args, # type: Any optimizer, # type: OptimizerBOHB base_task_id, # type: str queue_name, # type: str objective, # type: Objective sleep_interval=0, # type: float ...
class _TrainsBandsterWorker(Worker): def __init__( self, *args, # type: Any optimizer, # type: OptimizerBOHB base_task_id, # type: str queue_name, # type: str objective, # type: Objective sleep_interval=0, # type: float ...
# type: (dict, float, Any) -> dict """ Simple example for a compute function The loss is just a the config + some noise (that decreases with the budget) For dramatization, the function can sleep for a given interval to emphasizes the speed ups achievable with parallel wor...
# type: (dict, float, Any) -> dict """ Simple example for a compute function The loss is just a the config + some noise (that decreases with the budget) For dramatization, the function can sleep for a given interval to emphasizes the speed ups achievable with parallel wor...
218
270
824
1,094
from time import sleep, time from typing import Any, Optional, Sequence from ..optimization import Objective, SearchStrategy from ..parameters import ( DiscreteParameterRange, UniformParameterRange, RandomSeed, UniformIntegerParameterRange, Parameter, ) from ...task import Task try: # noinspection PyPackageRe...
from time import sleep, time from typing import Any, Optional, Sequence from ..optimization import Objective, SearchStrategy from ..parameters import ( DiscreteParameterRange, UniformParameterRange, RandomSeed, UniformIntegerParameterRange, Parameter, ) from ...task import Task try: # noinspection PyPackageRe...
31,561
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/monitor.py
143,144
10,188
_get_projects_ids
Monitor
144,170
144,170
class Monitor(object): """ Base class for monitoring Tasks on the system. Inherit to implement specific logic """ def __init__(self): # type: () -> () self._timestamp = None self._previous_timestamp = None self._task_name_filter = None self._project_names_re ...
class Monitor(object): """ Base class for monitoring Tasks on the system. Inherit to implement specific logic """ def __init__(self): # type: () -> () self._timestamp = None self._previous_timestamp = None self._task_name_filter = None self._project_names_re ...
# type: () -> Optional[Sequence[str]] """ Convert project names / regular expressions into project IDs :return: list of project ids (strings) """ if not self._project_ids and not self._project_names_re: return None # refresh project ids every 5 minut...
# type: () -> Optional[Sequence[str]] """ Convert project names / regular expressions into project IDs :return: list of project ids (strings) """ if not self._project_ids and not self._project_names_re: return None # refresh project ids every 5 minut...
95
1,383
279
1,662
from datetime import datetime from time import time, sleep from typing import Optional, Sequence from ..backend_api.session.client import APIClient from ..backend_interface.util import exact_match_regex from ..task import Task class Monitor(object): """ Base class for monitoring Tasks on the system. Inhe...
from datetime import datetime from time import time, sleep from typing import Optional, Sequence from ..backend_api.session.client import APIClient from ..backend_interface.util import exact_match_regex from ..task import Task class Monitor(object): """ Base class for monitoring Tasks on the system. Inhe...
31,563
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/optuna/optuna.py
30,31
18,100
objective
OptunaObjective
31,100
31,100
class OptunaObjective(object): def __init__(self, base_task_id, queue_name, optimizer, max_iteration_per_job, min_iteration_per_job, sleep_interval, config_space): # type: (str, str, OptimizerOptuna, int, Optional[int], float, dict) -> None self.base_task_id = base_task_id s...
class OptunaObjective(object): def __init__(self, base_task_id, queue_name, optimizer, max_iteration_per_job, min_iteration_per_job, sleep_interval, config_space): # type: (str, str, OptimizerOptuna, int, Optional[int], float, dict) -> None self.base_task_id = base_task_id s...
# type: (optuna.Trial) -> Optional[float] """ return metric value for a specified set of parameter, pulled from the trail object :param optuna.Trial trial: optuna.Trial object :return: metric value float """ parameter_override = {} for name, (func_name, p...
# type: (optuna.Trial) -> Optional[float] """ return metric value for a specified set of parameter, pulled from the trail object :param optuna.Trial trial: optuna.Trial object :return: metric value float """ parameter_override = {} for name, (func_name, p...
225
205
871
1,076
from time import sleep from typing import Any, Optional, Sequence from ..optimization import Objective, SearchStrategy from ..parameters import (DiscreteParameterRange, Parameter, UniformIntegerParameterRange, UniformParameterRange, LogUniformParameterRange) from ...task import Task try: ...
from time import sleep from typing import Any, Optional, Sequence from ..optimization import Objective, SearchStrategy from ..parameters import (DiscreteParameterRange, Parameter, UniformIntegerParameterRange, UniformParameterRange, LogUniformParameterRange) from ...task import Task try: ...
31,564
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/parameters.py
289,290
273,308
get_value
DiscreteParameterRange
290,298
290,298
class DiscreteParameterRange(Parameter): """ Discrete randomly sampled hyperparameter object. """ def __init__(self, name, values=()): # type: (str, Sequence[Any]) -> () """ Uniformly sample values form a list of discrete options. :param str name: The parameter name. Ma...
class DiscreteParameterRange(Parameter): """ Discrete randomly sampled hyperparameter object. """ def __init__(self, name, values=()): # type: (str, Sequence[Any]) -> () """ Uniformly sample values form a list of discrete options. :param str name: The parameter name. Ma...
# type: () -> Mapping[str, Any] """ Return uniformly sampled value from the valid list of values. :return: {self.name: random entry from self.value} """ return {self.name: self._random.choice(self.values)}
# type: () -> Mapping[str, Any] """ Return uniformly sampled value from the valid list of values. :return: {self.name: random entry from self.value} """ return {self.name: self._random.choice(self.values)}
27
242
79
321
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
31,565
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/parameters.py
216,217
173,221
to_list
LogUniformParameterRange
217,221
217,221
class LogUniformParameterRange(UniformParameterRange): """ Logarithmic uniform randomly sampled hyperparameter object. """ def __init__( self, name, # type: str min_value, # type: float max_value, # type: float base=10, # type: float ...
class LogUniformParameterRange(UniformParameterRange): """ Logarithmic uniform randomly sampled hyperparameter object. """ def __init__( self, name, # type: str min_value, # type: float max_value, # type: float base=10, # type: float ...
values_list = super().to_list() return [{self.name: self.base**v[self.name]} for v in values_list]
values_list = super().to_list() return [{self.name: self.base**v[self.name]} for v in values_list]
10
466
44
510
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
31,566
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/parameters.py
76,77
36,111
to_dict
Parameter
77,88
77,88
class Parameter(RandomSeed): """ The base hyperparameter optimization object. """ _class_type_serialize_name = 'type' def __init__(self, name): # type: (Optional[str]) -> () """ Create a new Parameter for hyperparameter optimization :param str name: The new Paramete...
class Parameter(RandomSeed): """ The base hyperparameter optimization object. """ _class_type_serialize_name = 'type' def __init__(self, name): # type: (Optional[str]) -> () """ Create a new Parameter for hyperparameter optimization :param str name: The new Paramete...
# type: () -> Mapping[str, Union[str, Parameter]] """ Return a dict representation of the Parameter object. Used for serialization of the Parameter object. :return: dict representation of the object (serialization). """ serialize = {self._class_type_serialize_name: str(...
# type: () -> Mapping[str, Union[str, Parameter]] """ Return a dict representation of the Parameter object. Used for serialization of the Parameter object. :return: dict representation of the object (serialization). """ serialize = {self._class_type_serialize_name: str(...
52
522
171
693
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
31,567
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/parameters.py
346,347
308,378
to_list
ParameterSet
347,367
347,367
class ParameterSet(Parameter): """ Discrete randomly sampled Hyper-Parameter object. """ def __init__(self, parameter_combinations=()): # type: (Sequence[Mapping[str, Union[float, int, str, Parameter]]]) -> () """ Uniformly sample values form a list of discrete options (combinat...
class ParameterSet(Parameter): """ Discrete randomly sampled Hyper-Parameter object. """ def __init__(self, parameter_combinations=()): # type: (Sequence[Mapping[str, Union[float, int, str, Parameter]]]) -> () """ Uniformly sample values form a list of discrete options (combinat...
# type: () -> Sequence[Mapping[str, Any]] """ Return a list of all the valid values of the Parameter. :return: list of dicts {name: value} """ combinations = [] for combination in self.values: single_option = {} for k, v in combination.ite...
# type: () -> Sequence[Mapping[str, Any]] """ Return a list of all the valid values of the Parameter. :return: list of dicts {name: value} """ combinations = [] for combination in self.values: single_option = {} for k, v in combination.ite...
67
498
194
692
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
31,568
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/parameters.py
14,16
7,36
set_random_seed
RandomSeed
16,25
16,25
class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @staticmethod def set_random_seed(seed=1337): FILL_FUNC_BODY @staticmethod def get_random_seed(): # type: () -> int ""...
class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @staticmethod def set_random_seed(seed=1337): FILL_FUNC_BODY @staticmethod def get_random_seed(): # type: () -> int ""...
# type: (int) -> () """ Set global seed for all hyperparameter strategy random number sampling. :param int seed: The random seed. """ RandomSeed._seed = seed RandomSeed._random = BaseRandom(seed)
# type: (int) -> () """ Set global seed for all hyperparameter strategy random number sampling. :param int seed: The random seed. """ RandomSeed._seed = seed RandomSeed._random = BaseRandom(seed)
29
145
75
220
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
31,569
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/parameters.py
259,260
221,273
to_list
UniformIntegerParameterRange
260,273
260,273
class UniformIntegerParameterRange(Parameter): """ Uniform randomly sampled integer Hyperparameter object. """ def __init__(self, name, min_value, max_value, step_size=1, include_max_value=True): # type: (str, int, int, int, bool) -> () """ Create a parameter to be sampled by th...
class UniformIntegerParameterRange(Parameter): """ Uniform randomly sampled integer Hyperparameter object. """ def __init__(self, name, min_value, max_value, step_size=1, include_max_value=True): # type: (str, int, int, int, bool) -> () """ Create a parameter to be sampled by th...
# type: () -> Sequence[Mapping[str, int]] """ Return a list of all the valid values of the Parameter. If ``self.step_size`` is not defined, return 100 points between minmax values. :return: list of dicts {name: int} """ values = list(range(self.min_value, self.ma...
# type: () -> Sequence[Mapping[str, int]] """ Return a list of all the valid values of the Parameter. If ``self.step_size`` is not defined, return 100 points between minmax values. :return: list of dicts {name: int} """ values = list(range(self.min_value, self.ma...
58
463
171
634
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
31,570
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/parameters.py
157,158
111,173
to_list
UniformParameterRange
158,173
158,173
class UniformParameterRange(Parameter): """ Uniform randomly sampled hyperparameter object. """ def __init__( self, name, # type: str min_value, # type: float max_value, # type: float step_size=None, # type: Optional[float] inc...
class UniformParameterRange(Parameter): """ Uniform randomly sampled hyperparameter object. """ def __init__( self, name, # type: str min_value, # type: float max_value, # type: float step_size=None, # type: Optional[float] inc...
# type: () -> Sequence[Mapping[str, float]] """ Return a list of all the valid values of the Parameter. If ``self.step_size`` is not defined, return 100 points between min/max values. :return: list of dicts {name: float} """ step_size = self.step_size or (self.ma...
# type: () -> Sequence[Mapping[str, float]] """ Return a list of all the valid values of the Parameter. If ``self.step_size`` is not defined, return 100 points between min/max values. :return: list of dicts {name: float} """ step_size = self.step_size or (self.ma...
79
540
228
768
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
import sys from itertools import product from random import Random as BaseRandom from typing import Mapping, Any, Sequence, Optional, Union class RandomSeed(object): """ The base class controlling random sampling for every optimization strategy. """ _random = BaseRandom(1337) _seed = 1337 @st...
31,571
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/scheduler.py
33,34
17,80
update
BaseScheduleJob
34,41
34,41
@attrs class BaseScheduleJob(object): name = attrib(type=str, default=None) base_task_id = attrib(type=str, default=None) base_function = attrib(type=Callable, default=None) queue = attrib(type=str, default=None) target_project = attrib(type=str, default=None) single_instance = attrib(type=bool,...
@attrs class BaseScheduleJob(object): name = attrib(type=str, default=None) base_task_id = attrib(type=str, default=None) base_function = attrib(type=Callable, default=None) queue = attrib(type=str, default=None) target_project = attrib(type=str, default=None) single_instance = attrib(type=bool,...
# type: (Union[Dict, BaseScheduleJob]) -> BaseScheduleJob converters = {a.name: a.converter for a in getattr(self, "__attrs_attrs__", [])} for k, v in (a_job.to_dict(full=True) if not isinstance(a_job, dict) else a_job).items(): if v is not None and not callable(getattr(self, k, v)):...
# type: (Union[Dict, BaseScheduleJob]) -> BaseScheduleJob converters = {a.name: a.converter for a in getattr(self, "__attrs_attrs__", [])} for k, v in (a_job.to_dict(full=True) if not isinstance(a_job, dict) else a_job).items(): if v is not None and not callable(getattr(self, k, v)):...
46
712
155
867
import json import logging from datetime import datetime from threading import Thread, enumerate as enumerate_threads from time import sleep, time from typing import List, Union, Optional, Callable, Sequence, Dict from attr import attrs, attrib from dateutil.relativedelta import relativedelta from .controller import ...
import json import logging from datetime import datetime from threading import Thread, enumerate as enumerate_threads from time import sleep, time from typing import List, Union, Optional, Callable, Sequence, Dict from attr import attrs, attrib from dateutil.relativedelta import relativedelta from .controller import ...
31,573
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/scheduler.py
306,307
298,310
to_dict
ExecutedJob
307,310
307,310
@attrs class ExecutedJob(object): name = attrib(type=str, default=None) started = attrib(type=datetime, converter=datetime_from_isoformat, default=None) finished = attrib(type=datetime, converter=datetime_from_isoformat, default=None) task_id = attrib(type=str, default=None) thread_id = attrib(type=...
@attrs class ExecutedJob(object): name = attrib(type=str, default=None) started = attrib(type=datetime, converter=datetime_from_isoformat, default=None) finished = attrib(type=datetime, converter=datetime_from_isoformat, default=None) task_id = attrib(type=str, default=None) thread_id = attrib(type=...
return {k: v for k, v in self.__dict__.items() if full or not str(k).startswith("_")}
return {k: v for k, v in self.__dict__.items() if full or not str(k).startswith("_")}
13
133
38
171
import json import logging from datetime import datetime from threading import Thread, enumerate as enumerate_threads from time import sleep, time from typing import List, Union, Optional, Callable, Sequence, Dict from attr import attrs, attrib from dateutil.relativedelta import relativedelta from .controller import ...
import json import logging from datetime import datetime from threading import Thread, enumerate as enumerate_threads from time import sleep, time from typing import List, Union, Optional, Callable, Sequence, Dict from attr import attrs, attrib from dateutil.relativedelta import relativedelta from .controller import ...
31,576
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/trigger.py
34,35
16,60
build_query
BaseTrigger
35,42
35,42
@attrs class BaseTrigger(BaseScheduleJob): _only_fields = {"id", "name", "last_update", } _update_field = None project = attrib(default=None, type=str) match_name = attrib(default=None, type=str) tags = attrib(default=None, type=list) # type: List[str] required_tags = attrib(default=None, type...
@attrs class BaseTrigger(BaseScheduleJob): _only_fields = {"id", "name", "last_update", } _update_field = None project = attrib(default=None, type=str) match_name = attrib(default=None, type=str) tags = attrib(default=None, type=list) # type: List[str] required_tags = attrib(default=None, type...
return { 'name': self.match_name or None, 'project': [self.project] if self.project else None, 'tags': ((self.tags or []) + (self.required_tags or [])) or None, self._update_field: ">{}".format(ref_time.isoformat() if ref_time else self.last_update.isoformat()) ...
return { 'name': self.match_name or None, 'project': [self.project] if self.project else None, 'tags': ((self.tags or []) + (self.required_tags or [])) or None, self._update_field: ">{}".format(ref_time.isoformat() if ref_time else self.last_update.isoformat()) ...
29
558
105
663
import json import logging from datetime import datetime from threading import enumerate as enumerate_threads from typing import List, Optional, Dict, Union, Callable from attr import attrs, attrib from .job import ClearmlJob from .scheduler import BaseScheduleJob, BaseScheduler, ExecutedJob from ..task import Task f...
import json import logging from datetime import datetime from threading import enumerate as enumerate_threads from typing import List, Optional, Dict, Union, Callable from attr import attrs, attrib from .job import ClearmlJob from .scheduler import BaseScheduleJob, BaseScheduler, ExecutedJob from ..task import Task f...
31,577
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/trigger.py
90,91
80,105
build_query
DatasetTrigger
91,105
91,105
@attrs class DatasetTrigger(BaseTrigger): _task_param = '${dataset.id}' _key = "tasks" _only_fields = {"id", "name", "last_update", "status", "completed", "tags"} _update_field = "last_update" on_publish = attrib(type=bool, default=None) on_archive = attrib(type=bool, default=None) def bui...
@attrs class DatasetTrigger(BaseTrigger): _task_param = '${dataset.id}' _key = "tasks" _only_fields = {"id", "name", "last_update", "status", "completed", "tags"} _update_field = "last_update" on_publish = attrib(type=bool, default=None) on_archive = attrib(type=bool, default=None) def bui...
query = super(DatasetTrigger, self).build_query(ref_time) query.update({ 'system_tags': list(set(query.get('system_tags', []) + ['dataset'])), 'task_types': list(set(query.get('task_types', []) + [str(Task.TaskTypes.data_processing)])), 'status': ['published' if self....
query = super(DatasetTrigger, self).build_query(ref_time) query.update({ 'system_tags': list(set(query.get('system_tags', []) + ['dataset'])), 'task_types': list(set(query.get('task_types', []) + [str(Task.TaskTypes.data_processing)])), 'status': ['published' if self....
34
138
184
322
import json import logging from datetime import datetime from threading import enumerate as enumerate_threads from typing import List, Optional, Dict, Union, Callable from attr import attrs, attrib from .job import ClearmlJob from .scheduler import BaseScheduleJob, BaseScheduler, ExecutedJob from ..task import Task f...
import json import logging from datetime import datetime from threading import enumerate as enumerate_threads from typing import List, Optional, Dict, Union, Callable from attr import attrs, attrib from .job import ClearmlJob from .scheduler import BaseScheduleJob, BaseScheduler, ExecutedJob from ..task import Task f...
31,578
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/trigger.py
70,71
60,80
build_query
ModelTrigger
71,80
71,80
@attrs class ModelTrigger(BaseTrigger): _task_param = '${model.id}' _key = "models" _only_fields = {"id", "name", "last_update", "ready", "tags"} _update_field = "last_update" on_publish = attrib(type=bool, default=None) on_archive = attrib(type=bool, default=None) def build_query(self, re...
@attrs class ModelTrigger(BaseTrigger): _task_param = '${model.id}' _key = "models" _only_fields = {"id", "name", "last_update", "ready", "tags"} _update_field = "last_update" on_publish = attrib(type=bool, default=None) on_archive = attrib(type=bool, default=None) def build_query(self, re...
query = super(ModelTrigger, self).build_query(ref_time) if self.on_publish: query.update({'ready': True}) if self.on_archive: system_tags = list(set(query.get('system_tags', []) + ['archived'])) query.update({'system_tags': system_tags}) return query ...
query = super(ModelTrigger, self).build_query(ref_time) if self.on_publish: query.update({'ready': True}) if self.on_archive: system_tags = list(set(query.get('system_tags', []) + ['archived'])) query.update({'system_tags': system_tags}) return query ...
20
132
106
238
import json import logging from datetime import datetime from threading import enumerate as enumerate_threads from typing import List, Optional, Dict, Union, Callable from attr import attrs, attrib from .job import ClearmlJob from .scheduler import BaseScheduleJob, BaseScheduler, ExecutedJob from ..task import Task f...
import json import logging from datetime import datetime from threading import enumerate as enumerate_threads from typing import List, Optional, Dict, Union, Callable from attr import attrs, attrib from .job import ClearmlJob from .scheduler import BaseScheduleJob, BaseScheduler, ExecutedJob from ..task import Task f...
31,579
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/automation/trigger.py
134,135
105,148
verify
TaskTrigger
135,148
135,148
@attrs class TaskTrigger(BaseTrigger): _task_param = '${task.id}' _key = "tasks" _only_fields = {"id", "name", "last_update", "status", "completed", "tags"} _update_field = "last_update" metrics = attrib(default=None, type=str) variant = attrib(default=None, type=str) threshold = attrib(def...
@attrs class TaskTrigger(BaseTrigger): _task_param = '${task.id}' _key = "tasks" _only_fields = {"id", "name", "last_update", "status", "completed", "tags"} _update_field = "last_update" metrics = attrib(default=None, type=str) variant = attrib(default=None, type=str) threshold = attrib(def...
# type: () -> None super(TaskTrigger, self).verify() if (self.metrics or self.variant or self.threshold is not None) and \ not (self.metrics and self.variant and self.threshold is not None): raise ValueError("You must provide metric/variant/threshold") valid_s...
# type: () -> None super(TaskTrigger, self).verify() if (self.metrics or self.variant or self.threshold is not None) and \ not (self.metrics and self.variant and self.threshold is not None): raise ValueError("You must provide metric/variant/threshold") valid_s...
80
458
242
700
import json import logging from datetime import datetime from threading import enumerate as enumerate_threads from typing import List, Optional, Dict, Union, Callable from attr import attrs, attrib from .job import ClearmlJob from .scheduler import BaseScheduleJob, BaseScheduler, ExecutedJob from ..task import Task f...
import json import logging from datetime import datetime from threading import enumerate as enumerate_threads from typing import List, Optional, Dict, Union, Callable from attr import attrs, attrib from .job import ClearmlJob from .scheduler import BaseScheduleJob, BaseScheduler, ExecutedJob from ..task import Task f...
31,581
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/schema/action.py
9,10
1,35
sequence_of
10,16
10,16
import attr from attr.validators import and_, instance_of, optional from six import string_types # noinspection PyTypeChecker sequence = instance_of((list, tuple)) def sequence_of(types): FILL_FUNC_BODY@attr.s class Action(object): name = attr.ib() version = attr.ib() service = attr.ib() definitions_...
import attr from attr.validators import and_, instance_of, optional from six import string_types # noinspection PyTypeChecker sequence = instance_of((list, tuple)) def sequence_of(types): FILL_FUNC_BODY@attr.s class Action(object): name = attr.ib() version = attr.ib() service = attr.ib() definitions_...
def validator(_, attrib, value): assert all(isinstance(x, types) for x in value), attrib.name return and_(sequence, validator)
def validator(_, attrib, value): assert all(isinstance(x, types) for x in value), attrib.name return and_(sequence, validator)
15
340
52
392
import attr from attr.validators import and_, instance_of, optional from six import string_types # noinspection PyTypeChecker sequence = instance_of((list, tuple)) def sequence_of(types): FILL_FUNC_BODY@attr.s class Action(object): name = attr.ib() version = attr.ib() service = attr.ib() definitions_...
import attr from attr.validators import and_, instance_of, optional from six import string_types # noinspection PyTypeChecker sequence = instance_of((list, tuple)) def sequence_of(types): FILL_FUNC_BODY@attr.s class Action(object): name = attr.ib() version = attr.ib() service = attr.ib() definitions_...
31,582
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
210,212
165,222
credentials
CreateCredentialsResponse
212,222
212,222
class CreateCredentialsResponse(Response): """ Response of auth.create_credentials endpoint. :param credentials: Created credentials :type credentials: Credentials """ _service = "auth" _action = "create_credentials" _version = "2.13" _schema = { "definitions": { ...
class CreateCredentialsResponse(Response): """ Response of auth.create_credentials endpoint. :param credentials: Created credentials :type credentials: Credentials """ _service = "auth" _action = "create_credentials" _version = "2.13" _schema = { "definitions": { ...
if value is None: self._property_credentials = None return if isinstance(value, dict): value = Credentials.from_dict(value) else: self.assert_isinstance(value, "credentials", Credentials) self._property_credentials = value
if value is None: self._property_credentials = None return if isinstance(value, dict): value = Credentials.from_dict(value) else: self.assert_isinstance(value, "credentials", Credentials) self._property_credentials = value
21
348
89
437
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,583
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
119,121
73,144
last_used
CredentialKey
121,130
121,130
class CredentialKey(NonStrictDataModel): """ :param access_key: :type access_key: str :param last_used: :type last_used: datetime.datetime :param last_used_from: :type last_used_from: str """ _schema = { "properties": { "access_key": {"description": "", "type": [...
class CredentialKey(NonStrictDataModel): """ :param access_key: :type access_key: str :param last_used: :type last_used: datetime.datetime :param last_used_from: :type last_used_from: str """ _schema = { "properties": { "access_key": {"description": "", "type": [...
if value is None: self._property_last_used = None return self.assert_isinstance(value, "last_used", six.string_types + (datetime,)) if not isinstance(value, datetime): value = parse_datetime(value) self._property_last_used = value
if value is None: self._property_last_used = None return self.assert_isinstance(value, "last_used", six.string_types + (datetime,)) if not isinstance(value, datetime): value = parse_datetime(value) self._property_last_used = value
23
563
90
653
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,584
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
63,65
19,73
secret_key
Credentials
65,73
65,73
class Credentials(NonStrictDataModel): """ :param access_key: Credentials access key :type access_key: str :param secret_key: Credentials secret key :type secret_key: str """ _schema = { "properties": { "access_key": { "description": "Credentials access k...
class Credentials(NonStrictDataModel): """ :param access_key: Credentials access key :type access_key: str :param secret_key: Credentials secret key :type secret_key: str """ _schema = { "properties": { "access_key": { "description": "Credentials access k...
if value is None: self._property_secret_key = None return self.assert_isinstance(value, "secret_key", six.string_types) self._property_secret_key = value
if value is None: self._property_secret_key = None return self.assert_isinstance(value, "secret_key", six.string_types) self._property_secret_key = value
14
385
65
450
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,585
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
257,259
222,280
user
EditUserRequest
259,266
259,266
class EditUserRequest(Request): """ Edit a users' auth data properties :param user: User ID :type user: str :param role: The new user's role within the company :type role: str """ _service = "auth" _action = "edit_user" _version = "2.13" _schema = { "definitions": ...
class EditUserRequest(Request): """ Edit a users' auth data properties :param user: User ID :type user: str :param role: The new user's role within the company :type role: str """ _service = "auth" _action = "edit_user" _version = "2.13" _schema = { "definitions": ...
if value is None: self._property_user = None return self.assert_isinstance(value, "user", six.string_types) self._property_user = value
if value is None: self._property_user = None return self.assert_isinstance(value, "user", six.string_types) self._property_user = value
14
396
57
453
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,586
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
333,335
280,343
fields
EditUserResponse
335,343
335,343
class EditUserResponse(Response): """ Response of auth.edit_user endpoint. :param updated: Number of users updated (0 or 1) :type updated: float :param fields: Updated fields names and values :type fields: dict """ _service = "auth" _action = "edit_user" _version = "2.13" ...
class EditUserResponse(Response): """ Response of auth.edit_user endpoint. :param updated: Number of users updated (0 or 1) :type updated: float :param fields: Updated fields names and values :type fields: dict """ _service = "auth" _action = "edit_user" _version = "2.13" ...
if value is None: self._property_fields = None return self.assert_isinstance(value, "fields", (dict,)) self._property_fields = value
if value is None: self._property_fields = None return self.assert_isinstance(value, "fields", (dict,)) self._property_fields = value
14
417
57
474
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,587
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
412,414
361,445
credentials
GetCredentialsResponse
414,416
414,416
class GetCredentialsResponse(Response): """ Response of auth.get_credentials endpoint. :param credentials: List of credentials for the user own company, each with an empty secret field. :type credentials: Sequence[CredentialKey] :param additional_credentials: The user credentials for the us...
class GetCredentialsResponse(Response): """ Response of auth.get_credentials endpoint. :param credentials: List of credentials for the user own company, each with an empty secret field. :type credentials: Sequence[CredentialKey] :param additional_credentials: The user credentials for the us...
return self._property_credentials
return self._property_credentials
2
759
12
771
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,588
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
479,481
445,491
expiration_sec
LoginRequest
481,491
481,491
class LoginRequest(Request): """ Get a token based on supplied credentials (key/secret). Intended for use by users with key/secret credentials that wish to obtain a token for use with other services. Token will be limited by the same permissions that exist for the credentials...
class LoginRequest(Request): """ Get a token based on supplied credentials (key/secret). Intended for use by users with key/secret credentials that wish to obtain a token for use with other services. Token will be limited by the same permissions that exist for the credentials...
if value is None: self._property_expiration_sec = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "expiration_sec", six.integer_types) self._property_expiration_sec = value
if value is None: self._property_expiration_sec = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "expiration_sec", six.integer_types) self._property_expiration_sec = value
22
347
95
442
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,589
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
519,521
491,529
token
LoginResponse
521,529
521,529
class LoginResponse(Response): """ Response of auth.login endpoint. :param token: Token string :type token: str """ _service = "auth" _action = "login" _version = "2.13" _schema = { "definitions": {}, "properties": { "token": {"description": "Token stri...
class LoginResponse(Response): """ Response of auth.login endpoint. :param token: Token string :type token: str """ _service = "auth" _action = "login" _version = "2.13" _schema = { "definitions": {}, "properties": { "token": {"description": "Token stri...
if value is None: self._property_token = None return self.assert_isinstance(value, "token", six.string_types) self._property_token = value
if value is None: self._property_token = None return self.assert_isinstance(value, "token", six.string_types) self._property_token = value
14
213
59
272
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,590
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
558,560
529,568
access_key
RevokeCredentialsRequest
560,568
560,568
class RevokeCredentialsRequest(Request): """ Revokes (and deletes) a set (key, secret) of credentials for the authenticated user. :param access_key: Credentials key :type access_key: str """ _service = "auth" _action = "revoke_credentials" _version = "2.13" _schema = { ...
class RevokeCredentialsRequest(Request): """ Revokes (and deletes) a set (key, secret) of credentials for the authenticated user. :param access_key: Credentials key :type access_key: str """ _service = "auth" _action = "revoke_credentials" _version = "2.13" _schema = { ...
if value is None: self._property_access_key = None return self.assert_isinstance(value, "access_key", six.string_types) self._property_access_key = value
if value is None: self._property_access_key = None return self.assert_isinstance(value, "access_key", six.string_types) self._property_access_key = value
14
273
65
338
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,591
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/auth.py
600,602
568,612
revoked
RevokeCredentialsResponse
602,612
602,612
class RevokeCredentialsResponse(Response): """ Response of auth.revoke_credentials endpoint. :param revoked: Number of credentials revoked :type revoked: int """ _service = "auth" _action = "revoke_credentials" _version = "2.13" _schema = { "definitions": {}, "prop...
class RevokeCredentialsResponse(Response): """ Response of auth.revoke_credentials endpoint. :param revoked: Number of credentials revoked :type revoked: int """ _service = "auth" _action = "revoke_credentials" _version = "2.13" _schema = { "definitions": {}, "prop...
if value is None: self._property_revoked = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "revoked", six.integer_types) self._property_revoked = value
if value is None: self._property_revoked = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "revoked", six.integer_types) self._property_revoked = value
22
261
89
350
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
""" auth service This service provides authentication management and authorization validation for the entire system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import parse as par...
31,592
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1161,1163
1095,1171
errors_info
AddBatchResponse
1163,1171
1163,1171
class AddBatchResponse(Response): """ Response of events.add_batch endpoint. :param added: :type added: int :param errors: :type errors: int :param errors_info: :type errors_info: dict """ _service = "events" _action = "add_batch" _version = "2.13" _schema = { ...
class AddBatchResponse(Response): """ Response of events.add_batch endpoint. :param added: :type added: int :param errors: :type errors: int :param errors_info: :type errors_info: dict """ _service = "events" _action = "add_batch" _version = "2.13" _schema = { ...
if value is None: self._property_errors_info = None return self.assert_isinstance(value, "errors_info", (dict,)) self._property_errors_info = value
if value is None: self._property_errors_info = None return self.assert_isinstance(value, "errors_info", (dict,)) self._property_errors_info = value
14
541
63
604
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,593
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1054,1056
862,1070
event
AddRequest
1056,1070
1056,1070
class AddRequest(CompoundRequest): """ Adds a single event """ _service = "events" _action = "add" _version = "2.13" _item_prop_name = "event" _schema = { "anyOf": [ {"$ref": "#/definitions/metrics_scalar_event"}, {"$ref": "#/definitions/metrics_vector_e...
class AddRequest(CompoundRequest): """ Adds a single event """ _service = "events" _action = "add" _version = "2.13" _item_prop_name = "event" _schema = { "anyOf": [ {"$ref": "#/definitions/metrics_scalar_event"}, {"$ref": "#/definitions/metrics_vector_e...
self.assert_isinstance( value, "event", ( MetricsScalarEvent, MetricsVectorEvent, MetricsImageEvent, MetricsPlotEvent, TaskLogEvent, ), ) self._property_event = value ...
self.assert_isinstance( value, "event", ( MetricsScalarEvent, MetricsVectorEvent, MetricsImageEvent, MetricsPlotEvent, TaskLogEvent, ), ) self._property_event = value ...
14
1,814
88
1,902
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,594
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1273,1275
1171,1324
iters
DebugImagesRequest
1275,1284
1275,1284
class DebugImagesRequest(Request): """ Get the debug image events for the requested amount of iterations per each task's metric :param metrics: List metrics for which the envents will be retreived :type metrics: Sequence[TaskMetric] :param iters: Max number of latest iterations for which to return ...
class DebugImagesRequest(Request): """ Get the debug image events for the requested amount of iterations per each task's metric :param metrics: List metrics for which the envents will be retreived :type metrics: Sequence[TaskMetric] :param iters: Max number of latest iterations for which to return ...
if value is None: self._property_iters = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "iters", six.integer_types) self._property_iters = value
if value is None: self._property_iters = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "iters", six.integer_types) self._property_iters = value
22
1,269
87
1,356
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,595
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1363,1365
1324,1388
metrics
DebugImagesResponse
1365,1374
1365,1374
class DebugImagesResponse(Response): """ Response of events.debug_images endpoint. :param metrics: Debug image events grouped by task metrics and iterations :type metrics: Sequence[dict] :param scroll_id: Scroll ID for getting more results :type scroll_id: str """ _service = "events" ...
class DebugImagesResponse(Response): """ Response of events.debug_images endpoint. :param metrics: Debug image events grouped by task metrics and iterations :type metrics: Sequence[dict] :param scroll_id: Scroll ID for getting more results :type scroll_id: str """ _service = "events" ...
if value is None: self._property_metrics = None return self.assert_isinstance(value, "metrics", (list, tuple)) self.assert_isinstance(value, "metrics", (dict,), is_array=True) self._property_metrics = value
if value is None: self._property_metrics = None return self.assert_isinstance(value, "metrics", (list, tuple)) self.assert_isinstance(value, "metrics", (dict,), is_array=True) self._property_metrics = value
19
445
87
532
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,596
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1437,1439
1388,1447
allow_locked
DeleteForTaskRequest
1439,1447
1439,1447
class DeleteForTaskRequest(Request): """ Delete all task event. *This cannot be undone!* :param task: Task ID :type task: str :param allow_locked: Allow deleting events even if the task is locked :type allow_locked: bool """ _service = "events" _action = "delete_for_task" _vers...
class DeleteForTaskRequest(Request): """ Delete all task event. *This cannot be undone!* :param task: Task ID :type task: str :param allow_locked: Allow deleting events even if the task is locked :type allow_locked: bool """ _service = "events" _action = "delete_for_task" _vers...
if value is None: self._property_allow_locked = None return self.assert_isinstance(value, "allow_locked", (bool,)) self._property_allow_locked = value
if value is None: self._property_allow_locked = None return self.assert_isinstance(value, "allow_locked", (bool,)) self._property_allow_locked = value
14
424
66
490
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,597
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1478,1480
1447,1488
deleted
DeleteForTaskResponse
1480,1488
1480,1488
class DeleteForTaskResponse(Response): """ Response of events.delete_for_task endpoint. :param deleted: Number of deleted events :type deleted: bool """ _service = "events" _action = "delete_for_task" _version = "2.13" _schema = { "definitions": {}, "properties": {...
class DeleteForTaskResponse(Response): """ Response of events.delete_for_task endpoint. :param deleted: Number of deleted events :type deleted: bool """ _service = "events" _action = "delete_for_task" _version = "2.13" _schema = { "definitions": {}, "properties": {...
if value is None: self._property_deleted = None return self.assert_isinstance(value, "deleted", (bool,)) self._property_deleted = value
if value is None: self._property_deleted = None return self.assert_isinstance(value, "deleted", (bool,)) self._property_deleted = value
14
240
60
300
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,598
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1551,1553
1488,1574
line_type
DownloadTaskLogRequest
1553,1560
1553,1560
class DownloadTaskLogRequest(Request): """ Get an attachment containing the task's log :param task: Task ID :type task: str :param line_type: Line format type :type line_type: str :param line_format: Line string format. Used if the line type is 'text' :type line_format: str """ ...
class DownloadTaskLogRequest(Request): """ Get an attachment containing the task's log :param task: Task ID :type task: str :param line_type: Line format type :type line_type: str :param line_format: Line string format. Used if the line type is 'text' :type line_format: str """ ...
if value is None: self._property_line_type = None return self.assert_isinstance(value, "line_type", six.string_types) self._property_line_type = value
if value is None: self._property_line_type = None return self.assert_isinstance(value, "line_type", six.string_types) self._property_line_type = value
14
643
63
706
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,599
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1723,1725
1587,1733
scroll_id
GetDebugImageSampleRequest
1725,1733
1725,1733
class GetDebugImageSampleRequest(Request): """ Return the debug image per metric and variant for the provided iteration :param task: Task ID :type task: str :param metric: Metric name :type metric: str :param variant: Metric variant :type variant: str :param iteration: The iteration...
class GetDebugImageSampleRequest(Request): """ Return the debug image per metric and variant for the provided iteration :param task: Task ID :type task: str :param metric: Metric name :type metric: str :param variant: Metric variant :type variant: str :param iteration: The iteration...
if value is None: self._property_scroll_id = None return self.assert_isinstance(value, "scroll_id", six.string_types) self._property_scroll_id = value
if value is None: self._property_scroll_id = None return self.assert_isinstance(value, "scroll_id", six.string_types) self._property_scroll_id = value
14
1,118
65
1,183
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,600
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1817,1819
1771,1857
tasks
GetMultiTaskPlotsRequest
1819,1828
1819,1828
class GetMultiTaskPlotsRequest(Request): """ Get 'plot' events for the given tasks :param tasks: List of task IDs :type tasks: Sequence[str] :param iters: Max number of latest iterations for which to return debug images :type iters: int :param scroll_id: Scroll ID of previous call (used for...
class GetMultiTaskPlotsRequest(Request): """ Get 'plot' events for the given tasks :param tasks: List of task IDs :type tasks: Sequence[str] :param iters: Max number of latest iterations for which to return debug images :type iters: int :param scroll_id: Scroll ID of previous call (used for...
if value is None: self._property_tasks = None return self.assert_isinstance(value, "tasks", (list, tuple)) self.assert_isinstance(value, "tasks", six.string_types, is_array=True) self._property_tasks = value
if value is None: self._property_tasks = None return self.assert_isinstance(value, "tasks", (list, tuple)) self.assert_isinstance(value, "tasks", six.string_types, is_array=True) self._property_tasks = value
19
664
89
753
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,601
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1909,1911
1857,1960
plots
GetMultiTaskPlotsResponse
1911,1918
1911,1918
class GetMultiTaskPlotsResponse(Response): """ Response of events.get_multi_task_plots endpoint. :param plots: Plots mapping (keyed by task name) :type plots: dict :param returned: Number of results returned :type returned: int :param total: Total number of results available for this query ...
class GetMultiTaskPlotsResponse(Response): """ Response of events.get_multi_task_plots endpoint. :param plots: Plots mapping (keyed by task name) :type plots: dict :param returned: Number of results returned :type returned: int :param total: Total number of results available for this query ...
if value is None: self._property_plots = None return self.assert_isinstance(value, "plots", (dict,)) self._property_plots = value
if value is None: self._property_plots = None return self.assert_isinstance(value, "plots", (dict,)) self._property_plots = value
14
790
58
848
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,602
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
1987,1989
1960,2014
task
GetScalarMetricDataRequest
1989,1991
1989,1991
class GetScalarMetricDataRequest(Request): """ get scalar metric data for task :param task: task ID :type task: str :param metric: type of metric :type metric: str """ _service = "events" _action = "get_scalar_metric_data" _version = "2.13" _schema = { "definitions"...
class GetScalarMetricDataRequest(Request): """ get scalar metric data for task :param task: task ID :type task: str :param metric: type of metric :type metric: str """ _service = "events" _action = "get_scalar_metric_data" _version = "2.13" _schema = { "definitions"...
return self._property_task
return self._property_task
2
410
11
421
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,603
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2084,2086
2014,2124
returned
GetScalarMetricDataResponse
2086,2095
2086,2095
class GetScalarMetricDataResponse(Response): """ Response of events.get_scalar_metric_data endpoint. :param events: task scalar metric events :type events: Sequence[dict] :param returned: amount of events returned :type returned: int :param total: amount of events in task :type total: i...
class GetScalarMetricDataResponse(Response): """ Response of events.get_scalar_metric_data endpoint. :param events: task scalar metric events :type events: Sequence[dict] :param returned: amount of events returned :type returned: int :param total: amount of events in task :type total: i...
if value is None: self._property_returned = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "returned", six.integer_types) self._property_returned = value
if value is None: self._property_returned = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "returned", six.integer_types) self._property_returned = value
22
818
87
905
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,604
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2150,2152
2124,2160
task
GetScalarMetricsAndVariantsRequest
2152,2160
2152,2160
class GetScalarMetricsAndVariantsRequest(Request): """ get task scalar metrics and variants :param task: task ID :type task: str """ _service = "events" _action = "get_scalar_metrics_and_variants" _version = "2.13" _schema = { "definitions": {}, "properties": {"task...
class GetScalarMetricsAndVariantsRequest(Request): """ get task scalar metrics and variants :param task: task ID :type task: str """ _service = "events" _action = "get_scalar_metrics_and_variants" _version = "2.13" _schema = { "definitions": {}, "properties": {"task...
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
14
230
59
289
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,605
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2184,2186
2160,2198
metrics
GetScalarMetricsAndVariantsResponse
2186,2188
2186,2188
class GetScalarMetricsAndVariantsResponse(Response): """ Response of events.get_scalar_metrics_and_variants endpoint. :param metrics: :type metrics: dict """ _service = "events" _action = "get_scalar_metrics_and_variants" _version = "2.13" _schema = { "definitions": {}, ...
class GetScalarMetricsAndVariantsResponse(Response): """ Response of events.get_scalar_metrics_and_variants endpoint. :param metrics: :type metrics: dict """ _service = "events" _action = "get_scalar_metrics_and_variants" _version = "2.13" _schema = { "definitions": {}, ...
return self._property_metrics
return self._property_metrics
2
291
12
303
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,606
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2298,2300
2198,2327
batch_size
GetTaskEventsRequest
2300,2302
2300,2302
class GetTaskEventsRequest(Request): """ Scroll through task events, sorted by timestamp :param task: Task ID :type task: str :param order: 'asc' (default) or 'desc'. :type order: str :param scroll_id: Pass this value on next call to get next page :type scroll_id: str :param batch_s...
class GetTaskEventsRequest(Request): """ Scroll through task events, sorted by timestamp :param task: Task ID :type task: str :param order: 'asc' (default) or 'desc'. :type order: str :param scroll_id: Pass this value on next call to get next page :type scroll_id: str :param batch_s...
return self._property_batch_size
return self._property_batch_size
2
1,034
13
1,047
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,607
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2408,2410
2327,2435
total
GetTaskEventsResponse
2410,2412
2410,2412
class GetTaskEventsResponse(Response): """ Response of events.get_task_events endpoint. :param events: Events list :type events: Sequence[dict] :param returned: Number of results returned :type returned: int :param total: Total number of results available for this query :type total: flo...
class GetTaskEventsResponse(Response): """ Response of events.get_task_events endpoint. :param events: Events list :type events: Sequence[dict] :param returned: Number of results returned :type returned: int :param total: Total number of results available for this query :type total: flo...
return self._property_total
return self._property_total
2
845
11
856
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,608
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2461,2463
2435,2471
task
GetTaskLatestScalarValuesRequest
2463,2471
2463,2471
class GetTaskLatestScalarValuesRequest(Request): """ Get the tasks's latest scalar values :param task: Task ID :type task: str """ _service = "events" _action = "get_task_latest_scalar_values" _version = "2.13" _schema = { "definitions": {}, "properties": {"task": {...
class GetTaskLatestScalarValuesRequest(Request): """ Get the tasks's latest scalar values :param task: Task ID :type task: str """ _service = "events" _action = "get_task_latest_scalar_values" _version = "2.13" _schema = { "definitions": {}, "properties": {"task": {...
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
14
230
59
289
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,609
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2527,2529
2471,2539
metrics
GetTaskLatestScalarValuesResponse
2529,2539
2529,2539
class GetTaskLatestScalarValuesResponse(Response): """ Response of events.get_task_latest_scalar_values endpoint. :param metrics: :type metrics: Sequence[dict] """ _service = "events" _action = "get_task_latest_scalar_values" _version = "2.13" _schema = { "definitions": {}...
class GetTaskLatestScalarValuesResponse(Response): """ Response of events.get_task_latest_scalar_values endpoint. :param metrics: :type metrics: Sequence[dict] """ _service = "events" _action = "get_task_latest_scalar_values" _version = "2.13" _schema = { "definitions": {}...
if value is None: self._property_metrics = None return self.assert_isinstance(value, "metrics", (list, tuple)) self.assert_isinstance(value, "metrics", (dict,), is_array=True) self._property_metrics = value
if value is None: self._property_metrics = None return self.assert_isinstance(value, "metrics", (list, tuple)) self.assert_isinstance(value, "metrics", (dict,), is_array=True) self._property_metrics = value
19
432
89
521
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,610
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2639,2641
2539,2675
navigate_earlier
GetTaskLogRequest
2641,2648
2641,2648
class GetTaskLogRequest(Request): """ Get 'log' events for this task :param task: Task ID :type task: str :param batch_size: The amount of log events to return :type batch_size: int :param navigate_earlier: If set then log events are retreived from the latest to the earliest ones (i...
class GetTaskLogRequest(Request): """ Get 'log' events for this task :param task: Task ID :type task: str :param batch_size: The amount of log events to return :type batch_size: int :param navigate_earlier: If set then log events are retreived from the latest to the earliest ones (i...
if value is None: self._property_navigate_earlier = None return self.assert_isinstance(value, "navigate_earlier", (bool,)) self._property_navigate_earlier = value
if value is None: self._property_navigate_earlier = None return self.assert_isinstance(value, "navigate_earlier", (bool,)) self._property_navigate_earlier = value
14
1,221
67
1,288
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,611
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2721,2723
2675,2761
events
GetTaskLogResponse
2723,2732
2723,2732
class GetTaskLogResponse(Response): """ Response of events.get_task_log endpoint. :param events: Log items list :type events: Sequence[dict] :param returned: Number of log events returned :type returned: int :param total: Total number of log events available for this query :type total: ...
class GetTaskLogResponse(Response): """ Response of events.get_task_log endpoint. :param events: Log items list :type events: Sequence[dict] :param returned: Number of log events returned :type returned: int :param total: Total number of log events available for this query :type total: ...
if value is None: self._property_events = None return self.assert_isinstance(value, "events", (list, tuple)) self.assert_isinstance(value, "events", (dict,), is_array=True) self._property_events = value
if value is None: self._property_events = None return self.assert_isinstance(value, "events", (list, tuple)) self.assert_isinstance(value, "events", (dict,), is_array=True) self._property_events = value
19
598
83
681
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,612
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2811,2813
2761,2841
tasks
GetTaskMetricsRequest
2813,2822
2813,2822
class GetTaskMetricsRequest(Request): """ For each task, get a list of metrics for which the requested event type was reported :param tasks: Task IDs :type tasks: Sequence[str] :param event_type: Event type :type event_type: EventTypeEnum """ _service = "events" _action = "get_task...
class GetTaskMetricsRequest(Request): """ For each task, get a list of metrics for which the requested event type was reported :param tasks: Task IDs :type tasks: Sequence[str] :param event_type: Event type :type event_type: EventTypeEnum """ _service = "events" _action = "get_task...
if value is None: self._property_tasks = None return self.assert_isinstance(value, "tasks", (list, tuple)) self.assert_isinstance(value, "tasks", six.string_types, is_array=True) self._property_tasks = value
if value is None: self._property_tasks = None return self.assert_isinstance(value, "tasks", (list, tuple)) self.assert_isinstance(value, "tasks", six.string_types, is_array=True) self._property_tasks = value
19
555
89
644
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,613
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2873,2875
2841,2885
metrics
GetTaskMetricsResponse
2875,2885
2875,2885
class GetTaskMetricsResponse(Response): """ Response of events.get_task_metrics endpoint. :param metrics: List of task with their metrics :type metrics: Sequence[dict] """ _service = "events" _action = "get_task_metrics" _version = "2.13" _schema = { "definitions": {}, ...
class GetTaskMetricsResponse(Response): """ Response of events.get_task_metrics endpoint. :param metrics: List of task with their metrics :type metrics: Sequence[dict] """ _service = "events" _action = "get_task_metrics" _version = "2.13" _schema = { "definitions": {}, ...
if value is None: self._property_metrics = None return self.assert_isinstance(value, "metrics", (list, tuple)) self.assert_isinstance(value, "metrics", (dict,), is_array=True) self._property_metrics = value
if value is None: self._property_metrics = None return self.assert_isinstance(value, "metrics", (list, tuple)) self.assert_isinstance(value, "metrics", (dict,), is_array=True) self._property_metrics = value
19
261
89
350
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,614
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
2940,2942
2885,2965
iters
GetTaskPlotsRequest
2942,2951
2942,2951
class GetTaskPlotsRequest(Request): """ Get all 'plot' events for this task :param task: Task ID :type task: str :param iters: Max number of latest iterations for which to return debug images :type iters: int :param scroll_id: Scroll ID of previous call (used for getting more results) :...
class GetTaskPlotsRequest(Request): """ Get all 'plot' events for this task :param task: Task ID :type task: str :param iters: Max number of latest iterations for which to return debug images :type iters: int :param scroll_id: Scroll ID of previous call (used for getting more results) :...
if value is None: self._property_iters = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "iters", six.integer_types) self._property_iters = value
if value is None: self._property_iters = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "iters", six.integer_types) self._property_iters = value
22
590
87
677
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,615
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
3018,3020
2965,3071
plots
GetTaskPlotsResponse
3020,3029
3020,3029
class GetTaskPlotsResponse(Response): """ Response of events.get_task_plots endpoint. :param plots: Plots list :type plots: Sequence[dict] :param returned: Number of results returned :type returned: int :param total: Total number of results available for this query :type total: float ...
class GetTaskPlotsResponse(Response): """ Response of events.get_task_plots endpoint. :param plots: Plots list :type plots: Sequence[dict] :param returned: Number of results returned :type returned: int :param total: Total number of results available for this query :type total: float ...
if value is None: self._property_plots = None return self.assert_isinstance(value, "plots", (list, tuple)) self.assert_isinstance(value, "plots", (dict,), is_array=True) self._property_plots = value
if value is None: self._property_plots = None return self.assert_isinstance(value, "plots", (list, tuple)) self.assert_isinstance(value, "plots", (dict,), is_array=True) self._property_plots = value
19
786
87
873
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,616
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
3095,3097
3071,3105
task
GetVectorMetricsAndVariantsRequest
3097,3105
3097,3105
class GetVectorMetricsAndVariantsRequest(Request): """ :param task: Task ID :type task: str """ _service = "events" _action = "get_vector_metrics_and_variants" _version = "2.13" _schema = { "definitions": {}, "properties": {"task": {"description": "Task ID", "type": "str...
class GetVectorMetricsAndVariantsRequest(Request): """ :param task: Task ID :type task: str """ _service = "events" _action = "get_vector_metrics_and_variants" _version = "2.13" _schema = { "definitions": {}, "properties": {"task": {"description": "Task ID", "type": "str...
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
14
218
59
277
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,617
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
3137,3139
3105,3149
metrics
GetVectorMetricsAndVariantsResponse
3139,3149
3139,3149
class GetVectorMetricsAndVariantsResponse(Response): """ Response of events.get_vector_metrics_and_variants endpoint. :param metrics: :type metrics: Sequence[dict] """ _service = "events" _action = "get_vector_metrics_and_variants" _version = "2.13" _schema = { "definition...
class GetVectorMetricsAndVariantsResponse(Response): """ Response of events.get_vector_metrics_and_variants endpoint. :param metrics: :type metrics: Sequence[dict] """ _service = "events" _action = "get_vector_metrics_and_variants" _version = "2.13" _schema = { "definition...
if value is None: self._property_metrics = None return self.assert_isinstance(value, "metrics", (list, tuple)) self.assert_isinstance(value, "metrics", (dict,), is_array=True) self._property_metrics = value
if value is None: self._property_metrics = None return self.assert_isinstance(value, "metrics", (list, tuple)) self.assert_isinstance(value, "metrics", (dict,), is_array=True) self._property_metrics = value
19
264
89
353
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,618
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
438,440
324,487
metric
MetricsImageEvent
440,447
440,447
class MetricsImageEvent(NonStrictDataModel): """ An image or video was dumped to storage for debugging :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float :param task: Task ID (required) :type task: str :param iter: Iteration :type iter...
class MetricsImageEvent(NonStrictDataModel): """ An image or video was dumped to storage for debugging :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float :param task: Task ID (required) :type task: str :param iter: Iteration :type iter...
if value is None: self._property_metric = None return self.assert_isinstance(value, "metric", six.string_types) self._property_metric = value
if value is None: self._property_metric = None return self.assert_isinstance(value, "metric", six.string_types) self._property_metric = value
14
1,240
57
1,297
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,619
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
610,612
487,659
metric
MetricsPlotEvent
612,619
612,619
class MetricsPlotEvent(NonStrictDataModel): """ An entire plot (not single datapoint) and it's layout. Used for plotting ROC curves, confidence matrices, etc. when evaluating the net. :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float...
class MetricsPlotEvent(NonStrictDataModel): """ An entire plot (not single datapoint) and it's layout. Used for plotting ROC curves, confidence matrices, etc. when evaluating the net. :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float...
if value is None: self._property_metric = None return self.assert_isinstance(value, "metric", six.string_types) self._property_metric = value
if value is None: self._property_metric = None return self.assert_isinstance(value, "metric", six.string_types) self._property_metric = value
14
1,457
57
1,514
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,620
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
104,106
20,168
task
MetricsScalarEvent
106,113
106,113
class MetricsScalarEvent(NonStrictDataModel): """ Used for reporting scalar metrics during training task :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float :param task: Task ID (required) :type task: str :param iter: Iteration :type it...
class MetricsScalarEvent(NonStrictDataModel): """ Used for reporting scalar metrics during training task :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float :param task: Task ID (required) :type task: str :param iter: Iteration :type it...
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
14
1,111
57
1,168
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,621
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
284,286
168,324
metric
MetricsVectorEvent
286,293
286,293
class MetricsVectorEvent(NonStrictDataModel): """ Used for reporting vector metrics during training task :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float :param task: Task ID (required) :type task: str :param iter: Iteration :type it...
class MetricsVectorEvent(NonStrictDataModel): """ Used for reporting vector metrics during training task :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float :param task: Task ID (required) :type task: str :param iter: Iteration :type it...
if value is None: self._property_metric = None return self.assert_isinstance(value, "metric", six.string_types) self._property_metric = value
if value is None: self._property_metric = None return self.assert_isinstance(value, "metric", six.string_types) self._property_metric = value
14
1,166
57
1,223
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,622
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
3233,3235
3149,3248
key
MultiTaskScalarMetricsIterHistogramRequest
3235,3248
3235,3248
class MultiTaskScalarMetricsIterHistogramRequest(Request): """ Used to compare scalar stats histogram of multiple tasks :param tasks: List of task Task IDs. Maximum amount of tasks is 10 :type tasks: Sequence[str] :param samples: The amount of histogram points to return. Optional, the default ...
class MultiTaskScalarMetricsIterHistogramRequest(Request): """ Used to compare scalar stats histogram of multiple tasks :param tasks: List of task Task IDs. Maximum amount of tasks is 10 :type tasks: Sequence[str] :param samples: The amount of histogram points to return. Optional, the default ...
if value is None: self._property_key = None return if isinstance(value, six.string_types): try: value = ScalarKeyEnum(value) except ValueError: pass else: self.assert_isinstance(value, "key", enum.Enum) ...
if value is None: self._property_key = None return if isinstance(value, six.string_types): try: value = ScalarKeyEnum(value) except ValueError: pass else: self.assert_isinstance(value, "key", enum.Enum) ...
25
829
103
932
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,623
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
3332,3334
3261,3342
navigate_earlier
NextDebugImageSampleRequest
3334,3342
3334,3342
class NextDebugImageSampleRequest(Request): """ Get the image for the next variant for the same iteration or for the next iteration :param task: Task ID :type task: str :param scroll_id: Scroll ID from the previous call to get_debug_image_sample :type scroll_id: str :param navigate_earlier:...
class NextDebugImageSampleRequest(Request): """ Get the image for the next variant for the same iteration or for the next iteration :param task: Task ID :type task: str :param scroll_id: Scroll ID from the previous call to get_debug_image_sample :type scroll_id: str :param navigate_earlier:...
if value is None: self._property_navigate_earlier = None return self.assert_isinstance(value, "navigate_earlier", (bool,)) self._property_navigate_earlier = value
if value is None: self._property_navigate_earlier = None return self.assert_isinstance(value, "navigate_earlier", (bool,)) self._property_navigate_earlier = value
14
711
69
780
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,624
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
3458,3460
3380,3473
key
ScalarMetricsIterHistogramRequest
3460,3473
3460,3473
class ScalarMetricsIterHistogramRequest(Request): """ Get histogram data of all the vector metrics and variants in the task :param task: Task ID :type task: str :param samples: The amount of histogram points to return (0 to return all the points). Optional, the default value is 6000. :t...
class ScalarMetricsIterHistogramRequest(Request): """ Get histogram data of all the vector metrics and variants in the task :param task: Task ID :type task: str :param samples: The amount of histogram points to return (0 to return all the points). Optional, the default value is 6000. :t...
if value is None: self._property_key = None return if isinstance(value, six.string_types): try: value = ScalarKeyEnum(value) except ValueError: pass else: self.assert_isinstance(value, "key", enum.Enum) ...
if value is None: self._property_key = None return if isinstance(value, six.string_types): try: value = ScalarKeyEnum(value) except ValueError: pass else: self.assert_isinstance(value, "key", enum.Enum) ...
25
742
103
845
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,625
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
3501,3503
3473,3513
images
ScalarMetricsIterHistogramResponse
3503,3513
3503,3513
class ScalarMetricsIterHistogramResponse(Response): """ Response of events.scalar_metrics_iter_histogram endpoint. :param images: :type images: Sequence[dict] """ _service = "events" _action = "scalar_metrics_iter_histogram" _version = "2.13" _schema = { "definitions": {},...
class ScalarMetricsIterHistogramResponse(Response): """ Response of events.scalar_metrics_iter_histogram endpoint. :param images: :type images: Sequence[dict] """ _service = "events" _action = "scalar_metrics_iter_histogram" _version = "2.13" _schema = { "definitions": {},...
if value is None: self._property_images = None return self.assert_isinstance(value, "images", (list, tuple)) self.assert_isinstance(value, "images", (dict,), is_array=True) self._property_images = value
if value is None: self._property_images = None return self.assert_isinstance(value, "images", (list, tuple)) self.assert_isinstance(value, "images", (dict,), is_array=True) self._property_images = value
19
244
85
329
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,626
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
835,837
738,862
worker
TaskLogEvent
837,839
837,839
class TaskLogEvent(NonStrictDataModel): """ A log event associated with a task. :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float :param task: Task ID (required) :type task: str :param level: Log level. :type level: LogLevelEnum :...
class TaskLogEvent(NonStrictDataModel): """ A log event associated with a task. :param timestamp: Epoch milliseconds UTC, will be set by the server if not set. :type timestamp: float :param task: Task ID (required) :type task: str :param level: Log level. :type level: LogLevelEnum :...
return self._property_worker
return self._property_worker
2
956
11
967
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,627
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
715,717
685,738
task
TaskMetric
717,724
717,724
class TaskMetric(NonStrictDataModel): """ :param task: Task ID :type task: str :param metric: Metric name. If not specified then all metrics for this task will be returned :type metric: str """ _schema = { "properties": { "metric": { "description"...
class TaskMetric(NonStrictDataModel): """ :param task: Task ID :type task: str :param metric: Metric name. If not specified then all metrics for this task will be returned :type metric: str """ _schema = { "properties": { "metric": { "description"...
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
14
349
57
406
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,628
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
3549,3551
3513,3585
task
VectorMetricsIterHistogramRequest
3551,3558
3551,3558
class VectorMetricsIterHistogramRequest(Request): """ Get histogram data of all the scalar metrics and variants in the task :param task: Task ID :type task: str :param metric: :type metric: str :param variant: :type variant: str """ _service = "events" _action = "vector_met...
class VectorMetricsIterHistogramRequest(Request): """ Get histogram data of all the scalar metrics and variants in the task :param task: Task ID :type task: str :param metric: :type metric: str :param variant: :type variant: str """ _service = "events" _action = "vector_met...
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
if value is None: self._property_task = None return self.assert_isinstance(value, "task", six.string_types) self._property_task = value
14
499
57
556
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,629
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/events.py
3613,3615
3585,3625
images
VectorMetricsIterHistogramResponse
3615,3625
3615,3625
class VectorMetricsIterHistogramResponse(Response): """ Response of events.vector_metrics_iter_histogram endpoint. :param images: :type images: Sequence[dict] """ _service = "events" _action = "vector_metrics_iter_histogram" _version = "2.13" _schema = { "definitions": {},...
class VectorMetricsIterHistogramResponse(Response): """ Response of events.vector_metrics_iter_histogram endpoint. :param images: :type images: Sequence[dict] """ _service = "events" _action = "vector_metrics_iter_histogram" _version = "2.13" _schema = { "definitions": {},...
if value is None: self._property_images = None return self.assert_isinstance(value, "images", (list, tuple)) self.assert_isinstance(value, "images", (dict,), is_array=True) self._property_images = value
if value is None: self._property_images = None return self.assert_isinstance(value, "images", (list, tuple)) self.assert_isinstance(value, "images", (dict,), is_array=True) self._property_images = value
19
240
85
325
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
""" events service Provides an API for running tasks to report events collected by the system. """ import enum import six from clearml.backend_api.session import ( Request, BatchRequest, Response, NonStrictDataModel, CompoundRequest, schema_property, StringEnum, ) class MetricsScalarEven...
31,630
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
640,642
575,655
metadata
AddOrUpdateMetadataRequest
642,655
642,655
class AddOrUpdateMetadataRequest(Request): """ Add or update model metadata :param model: ID of the model :type model: str :param metadata: Metadata items to add or update :type metadata: Metadata """ _service = "models" _action = "add_or_update_metadata" _version = "2.13" _...
class AddOrUpdateMetadataRequest(Request): """ Add or update model metadata :param model: ID of the model :type model: str :param metadata: Metadata items to add or update :type metadata: Metadata """ _service = "models" _action = "add_or_update_metadata" _version = "2.13" _...
if value is None: self._property_metadata = None return self.assert_isinstance(value, "metadata", (list, tuple)) if any(isinstance(v, dict) for v in value): value = [ MetadataItem.from_dict(v) if isinstance(v, dict) else v for v in value ...
if value is None: self._property_metadata = None return self.assert_isinstance(value, "metadata", (list, tuple)) if any(isinstance(v, dict) for v in value): value = [ MetadataItem.from_dict(v) if isinstance(v, dict) else v for v in value ...
41
524
141
665
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
31,631
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
687,689
655,699
updated
AddOrUpdateMetadataResponse
689,699
689,699
class AddOrUpdateMetadataResponse(Response): """ Response of models.add_or_update_metadata endpoint. :param updated: Number of models updated (0 or 1) :type updated: int """ _service = "models" _action = "add_or_update_metadata" _version = "2.13" _schema = { "definitions":...
class AddOrUpdateMetadataResponse(Response): """ Response of models.add_or_update_metadata endpoint. :param updated: Number of models updated (0 or 1) :type updated: int """ _service = "models" _action = "add_or_update_metadata" _version = "2.13" _schema = { "definitions":...
if value is None: self._property_updated = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "updated", six.integer_types) self._property_updated = value
if value is None: self._property_updated = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "updated", six.integer_types) self._property_updated = value
22
263
86
349
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
31,632
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
731,733
699,743
ids
ArchiveManyRequest
733,743
733,743
class ArchiveManyRequest(Request): """ Archive models :param ids: Entities to move :type ids: Sequence[str] """ _service = "models" _action = "archive_many" _version = "2.13" _schema = { "definitions": {}, "properties": { "ids": { "descri...
class ArchiveManyRequest(Request): """ Archive models :param ids: Entities to move :type ids: Sequence[str] """ _service = "models" _action = "archive_many" _version = "2.13" _schema = { "definitions": {}, "properties": { "ids": { "descri...
if value is None: self._property_ids = None return self.assert_isinstance(value, "ids", (list, tuple)) self.assert_isinstance(value, "ids", six.string_types, is_array=True) self._property_ids = value
if value is None: self._property_ids = None return self.assert_isinstance(value, "ids", (list, tuple)) self.assert_isinstance(value, "ids", six.string_types, is_array=True) self._property_ids = value
19
248
87
335
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
31,633
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
789,791
743,801
archived
ArchiveManyResponse
791,801
791,801
class ArchiveManyResponse(Response): """ Response of models.archive_many endpoint. :param archived: Number of models archived :type archived: int """ _service = "models" _action = "archive_many" _version = "2.13" _schema = { "definitions": {}, "failures": { ...
class ArchiveManyResponse(Response): """ Response of models.archive_many endpoint. :param archived: Number of models archived :type archived: int """ _service = "models" _action = "archive_many" _version = "2.13" _schema = { "definitions": {}, "failures": { ...
if value is None: self._property_archived = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "archived", six.integer_types) self._property_archived = value
if value is None: self._property_archived = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "archived", six.integer_types) self._property_archived = value
22
377
89
466
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
31,635
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
1174,1176
1143,1201
id
CreateResponse
1176,1178
1176,1178
class CreateResponse(Response): """ Response of models.create endpoint. :param id: ID of the model :type id: str :param created: Was the model created :type created: bool """ _service = "models" _action = "create" _version = "2.13" _schema = { "definitions": {}, ...
class CreateResponse(Response): """ Response of models.create endpoint. :param id: ID of the model :type id: str :param created: Was the model created :type created: bool """ _service = "models" _action = "create" _version = "2.13" _schema = { "definitions": {}, ...
return self._property_id
return self._property_id
2
406
11
417
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
31,636
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
1357,1359
1321,1369
ids
DeleteManyRequest
1359,1369
1359,1369
class DeleteManyRequest(Request): """ Delete models :param ids: Entities to move :type ids: Sequence[str] """ _service = "models" _action = "delete_many" _version = "2.13" _schema = { "definitions": {}, "force": { "description": "Force. Required if there...
class DeleteManyRequest(Request): """ Delete models :param ids: Entities to move :type ids: Sequence[str] """ _service = "models" _action = "delete_many" _version = "2.13" _schema = { "definitions": {}, "force": { "description": "Force. Required if there...
if value is None: self._property_ids = None return self.assert_isinstance(value, "ids", (list, tuple)) self.assert_isinstance(value, "ids", six.string_types, is_array=True) self._property_ids = value
if value is None: self._property_ids = None return self.assert_isinstance(value, "ids", (list, tuple)) self.assert_isinstance(value, "ids", six.string_types, is_array=True) self._property_ids = value
19
299
87
386
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
31,637
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
1438,1440
1369,1450
urls
DeleteManyResponse
1440,1450
1440,1450
class DeleteManyResponse(Response): """ Response of models.delete_many endpoint. :param deleted: Number of models deleted :type deleted: int :param urls: :type urls: Sequence[str] """ _service = "models" _action = "delete_many" _version = "2.13" _schema = { "defini...
class DeleteManyResponse(Response): """ Response of models.delete_many endpoint. :param deleted: Number of models deleted :type deleted: int :param urls: :type urls: Sequence[str] """ _service = "models" _action = "delete_many" _version = "2.13" _schema = { "defini...
if value is None: self._property_urls = None return self.assert_isinstance(value, "urls", (list, tuple)) self.assert_isinstance(value, "urls", six.string_types, is_array=True) self._property_urls = value
if value is None: self._property_urls = None return self.assert_isinstance(value, "urls", (list, tuple)) self.assert_isinstance(value, "urls", six.string_types, is_array=True) self._property_urls = value
19
572
91
663
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
31,638
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
1486,1488
1450,1511
model
DeleteMetadataRequest
1488,1495
1488,1495
class DeleteMetadataRequest(Request): """ Delete metadata from model :param model: ID of the model :type model: str :param keys: The list of metadata keys to delete :type keys: Sequence[str] """ _service = "models" _action = "delete_metadata" _version = "2.13" _schema = { ...
class DeleteMetadataRequest(Request): """ Delete metadata from model :param model: ID of the model :type model: str :param keys: The list of metadata keys to delete :type keys: Sequence[str] """ _service = "models" _action = "delete_metadata" _version = "2.13" _schema = { ...
if value is None: self._property_model = None return self.assert_isinstance(value, "model", six.string_types) self._property_model = value
if value is None: self._property_model = None return self.assert_isinstance(value, "model", six.string_types) self._property_model = value
14
414
57
471
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
31,639
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
1543,1545
1511,1555
updated
DeleteMetadataResponse
1545,1555
1545,1555
class DeleteMetadataResponse(Response): """ Response of models.delete_metadata endpoint. :param updated: Number of models updated (0 or 1) :type updated: int """ _service = "models" _action = "delete_metadata" _version = "2.13" _schema = { "definitions": {}, "prope...
class DeleteMetadataResponse(Response): """ Response of models.delete_metadata endpoint. :param updated: Number of models updated (0 or 1) :type updated: int """ _service = "models" _action = "delete_metadata" _version = "2.13" _schema = { "definitions": {}, "prope...
if value is None: self._property_updated = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "updated", six.integer_types) self._property_updated = value
if value is None: self._property_updated = None return if isinstance(value, float) and value.is_integer(): value = int(value) self.assert_isinstance(value, "updated", six.integer_types) self._property_updated = value
22
251
86
337
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
31,640
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml
/home/hieuvd/dung_repo/raw/stars_02/allegroai_clearml/clearml/clearml/backend_api/services/v2_13/models.py
1237,1239
1201,1260
model
DeleteRequest
1239,1246
1239,1246
class DeleteRequest(Request): """ Delete a model. :param model: Model ID :type model: str :param force: Force. Required if there are tasks that use the model as an execution model, or if the model's creating task is published. :type force: bool """ _service = "models" _acti...
class DeleteRequest(Request): """ Delete a model. :param model: Model ID :type model: str :param force: Force. Required if there are tasks that use the model as an execution model, or if the model's creating task is published. :type force: bool """ _service = "models" _acti...
if value is None: self._property_model = None return self.assert_isinstance(value, "model", six.string_types) self._property_model = value
if value is None: self._property_model = None return self.assert_isinstance(value, "model", six.string_types) self._property_model = value
14
408
57
465
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...
""" models service This service provides a management interface for models (results of training tasks) stored in the system. """ from datetime import datetime import six from clearml.backend_api.session import ( Request, Response, NonStrictDataModel, schema_property, ) from dateutil.parser import pars...