id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
19,000
lra/mackup
mackup/main.py
mackup.main.ColorFormatCodes
class ColorFormatCodes: BLUE = '\x1b[34m' BOLD = '\x1b[1m' NORMAL = '\x1b[0m'
class ColorFormatCodes: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
4
0
4
4
3
0
4
4
3
0
0
0
0
19,001
iterative/dvc
dvc/annotations.py
dvc.annotations.Annotation
from typing import Any, ClassVar, Optional from funcy import compact from dataclasses import asdict, dataclass, field, fields @dataclass class Annotation: PARAM_DESC: ClassVar[str] = 'desc' PARAM_TYPE: ClassVar[str] = 'type' PARAM_LABELS: ClassVar[str] = 'labels' PARAM_META: ClassVar[str] = 'meta' ...
@dataclass class Annotation: def to_dict(self) -> dict[str, str]: pass
3
0
2
0
2
0
1
0
0
2
0
0
1
0
1
1
13
2
11
10
9
0
11
10
9
1
0
0
1
19,002
iterative/dvc
dvc/annotations.py
dvc.annotations.Artifact
from typing import Any, ClassVar, Optional from funcy import compact from dataclasses import asdict, dataclass, field, fields @dataclass class Artifact: PARAM_PATH: ClassVar[str] = 'path' PARAM_DESC: ClassVar[str] = 'desc' PARAM_TYPE: ClassVar[str] = 'type' PARAM_LABELS: ClassVar[str] = 'labels' PA...
@dataclass class Artifact: def to_dict(self) -> dict[str, str]: pass
3
0
2
0
2
0
1
0
0
2
0
0
1
0
1
1
15
2
13
11
11
0
13
11
11
1
0
0
1
19,003
iterative/dvc
dvc/api/data.py
dvc.api.data._OpenContextManager
from contextlib import _GeneratorContextManager as GCM class _OpenContextManager(GCM): def __init__(self, func, args, kwds): self.gen = func(*args, **kwds) self.func, self.args, self.kwds = (func, args, kwds) def __getattr__(self, name): raise AttributeError('dvc.api.open() should be ...
class _OpenContextManager(GCM): def __init__(self, func, args, kwds): pass def __getattr__(self, name): pass
3
0
3
0
3
1
1
0.17
1
1
0
0
2
4
2
31
7
1
6
5
3
1
6
5
3
1
6
0
2
19,004
iterative/dvc
dvc/api/dataset.py
dvc.api.dataset.DVCDataset
from typing import Literal, TypedDict, Union class DVCDataset(TypedDict): type: Literal['dvc'] url: str path: str sha: str
class DVCDataset(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
1
4
0
5
1
4
0
1
0
0
19,005
iterative/dvc
dvc/api/dataset.py
dvc.api.dataset.DatachainDataset
from typing import Literal, TypedDict, Union class DatachainDataset(TypedDict): type: Literal['dc'] name: str version: int
class DatachainDataset(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
19,006
iterative/dvc
dvc/api/dataset.py
dvc.api.dataset.URLDataset
from typing import Literal, TypedDict, Union class URLDataset(TypedDict): type: Literal['url'] files: list[str] path: str
class URLDataset(TypedDict): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
1
3
0
4
1
3
0
1
0
0
19,007
iterative/dvc
dvc/cachemgr.py
dvc.cachemgr.CacheManager
from dvc_data.hashfile.hash import DEFAULT_ALGORITHM from typing import TYPE_CHECKING, Optional import os from dvc.fs import GitFileSystem, Schemes class CacheManager: CACHE_DIR = 'cache' FILES_DIR = 'files' FS_DIR = 'fs' def __init__(self, repo): self._repo = repo self.config = config...
class CacheManager: def __init__(self, repo): pass @property def fs_cache(self): '''Filesystem-based cache. Currently used as a temporary location to download files that we don't yet have a regular oid (e.g. md5) for. ''' pass def _init_odb(self, scheme...
11
2
11
1
9
1
2
0.1
0
3
0
0
7
3
7
7
89
15
67
32
54
7
49
28
39
6
0
3
16
19,008
iterative/dvc
dvc/cli/__init__.py
dvc.cli.DvcParserError
class DvcParserError(Exception): """Base class for CLI parser errors.""" def __init__(self): super().__init__('parser error')
class DvcParserError(Exception): '''Base class for CLI parser errors.''' def __init__(self): pass
2
1
2
0
2
0
1
0.33
1
1
0
0
1
0
1
11
5
1
3
2
1
1
3
2
1
1
3
0
1
19,009
iterative/dvc
dvc/cli/command.py
dvc.cli.command.CmdBase
from abc import ABC, abstractmethod import os from typing import TYPE_CHECKING, Any class CmdBase(ABC): UNINITIALIZED = False def __init__(self, args: Any): from dvc.repo import Repo os.chdir(args.cd) self.repo: Repo = Repo(uninitialized=self.UNINITIALIZED, _wait_for_lock=args.wait_for...
class CmdBase(ABC): def __init__(self, args: Any): pass def do_run(self): pass @abstractmethod def run(self): pass
5
0
4
1
4
0
1
0
1
3
2
50
3
3
3
23
19
5
14
10
8
0
13
9
8
1
4
1
3
19,010
iterative/dvc
dvc/cli/command.py
dvc.cli.command.CmdBaseNoRepo
import os class CmdBaseNoRepo(CmdBase): def __init__(self, args): self.args = args os.chdir(args.cd) def do_run(self): return self.run()
class CmdBaseNoRepo(CmdBase): def __init__(self, args): pass def do_run(self): pass
3
0
3
1
3
0
1
0
1
0
0
15
2
1
2
25
8
2
6
4
3
0
6
4
3
1
5
0
2
19,011
iterative/dvc
dvc/cli/formatter.py
dvc.cli.formatter.HelpFormatter
import argparse class HelpFormatter(argparse.HelpFormatter): def _get_default_metavar_for_optional(self, action: argparse.Action) -> str: return action.dest
class HelpFormatter(argparse.HelpFormatter): def _get_default_metavar_for_optional(self, action: argparse.Action) -> str: pass
2
0
2
0
2
0
1
0
1
2
0
2
1
0
1
27
3
0
3
2
1
0
3
2
1
1
2
0
1
19,012
iterative/dvc
dvc/cli/formatter.py
dvc.cli.formatter.RawDescriptionHelpFormatter
import argparse class RawDescriptionHelpFormatter(HelpFormatter, argparse.RawDescriptionHelpFormatter): pass
class RawDescriptionHelpFormatter(HelpFormatter, argparse.RawDescriptionHelpFormatter): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
28
2
0
2
1
1
0
2
1
1
0
3
0
0
19,013
iterative/dvc
dvc/cli/formatter.py
dvc.cli.formatter.RawTextHelpFormatter
import argparse class RawTextHelpFormatter(HelpFormatter, argparse.RawTextHelpFormatter): pass
class RawTextHelpFormatter(HelpFormatter, argparse.RawTextHelpFormatter): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
29
2
0
2
1
1
0
2
1
1
0
4
0
0
19,014
iterative/dvc
dvc/cli/parser.py
dvc.cli.parser.DvcParser
from dvc.log import logger import argparse class DvcParser(argparse.ArgumentParser): """Custom parser class for dvc CLI.""" def error(self, message, cmd_cls=None): logger.error(message) _find_parser(self, cmd_cls) def parse_args(self, args=None, namespace=None): args, argv = self....
class DvcParser(argparse.ArgumentParser): '''Custom parser class for dvc CLI.''' def error(self, message, cmd_cls=None): pass def parse_args(self, args=None, namespace=None): pass
3
1
6
0
5
2
2
0.4
1
0
0
0
2
0
2
52
16
2
10
5
7
4
10
5
7
2
3
1
3
19,015
iterative/dvc
dvc/cli/utils.py
dvc.cli.utils.DictAction
import argparse class DictAction(argparse.Action): def __init__(self, *args, **kwargs): kwargs.setdefault('metavar', '<name>=<value>') super().__init__(*args, **kwargs) def __call__(self, parser, args, values, option_string=None): d = getattr(args, self.dest) or {} if isinstan...
class DictAction(argparse.Action): def __init__(self, *args, **kwargs): pass def __call__(self, parser, args, values, option_string=None): pass
3
0
11
2
9
1
3
0.05
1
3
0
0
2
0
2
9
23
4
19
7
16
1
15
7
12
4
3
2
5
19,016
iterative/dvc
dvc/commands/add.py
dvc.commands.add.CmdAdd
from dvc.cli.command import CmdBase from dvc.log import logger class CmdAdd(CmdBase): def validate_args(self) -> None: from dvc.exceptions import InvalidArgumentError args = self.args invalid_opt = None if args.to_remote or args.out: message = "{option} can't be used wi...
class CmdAdd(CmdBase): def validate_args(self) -> None: pass def run(self): pass
3
0
26
3
24
0
7
0
1
3
2
0
2
0
2
25
54
6
48
8
43
0
34
8
29
9
5
2
13
19,017
iterative/dvc
dvc/commands/artifacts.py
dvc.commands.artifacts.CmdArtifactsGet
from dvc.cli.command import CmdBaseNoRepo from dvc.log import logger from dvc.exceptions import DvcException class CmdArtifactsGet(CmdBaseNoRepo): def run(self): from dvc.repo.artifacts import Artifacts from dvc.scm import CloneError from dvc.ui import ui if self.args.show_url: ...
class CmdArtifactsGet(CmdBaseNoRepo): def run(self): pass def _show_url(self): pass
3
0
26
3
23
0
3
0
1
3
3
0
2
0
2
27
53
6
47
11
39
0
24
11
16
4
6
1
5
19,018
iterative/dvc
dvc/commands/cache.py
dvc.commands.cache.CmdCacheDir
import os from dvc.commands.config import CmdConfig from dvc.ui import ui class CmdCacheDir(CmdConfig): def run(self): if self.args.value is None and (not self.args.unset): from dvc.config import ConfigError if self.args.level: conf = self.config.read(level=self.arg...
class CmdCacheDir(CmdConfig): def run(self): pass
2
0
26
1
24
1
6
0.04
1
1
1
0
1
0
1
36
27
1
25
5
22
1
23
5
20
6
7
3
6
19,019
iterative/dvc
dvc/commands/cache.py
dvc.commands.cache.CmdCacheMigrate
from dvc.cli.command import CmdBase class CmdCacheMigrate(CmdBase): def run(self): from dvc.cachemgr import migrate_2_to_3 from dvc.repo.commit import commit_2_to_3 migrate_2_to_3(self.repo, dry=self.args.dry) if self.args.dvc_files: commit_2_to_3(self.repo, dry=self.ar...
class CmdCacheMigrate(CmdBase): def run(self): pass
2
0
8
1
7
0
2
0
1
0
0
0
1
1
1
24
9
1
8
5
4
0
8
4
4
2
5
1
2
19,020
iterative/dvc
dvc/commands/check_ignore.py
dvc.commands.check_ignore.CmdCheckIgnore
from dvc.cli.command import CmdBase from dvc.ui import ui class CmdCheckIgnore(CmdBase): def __init__(self, args): super().__init__(args) self.ignore_filter = self.repo.dvcignore def _show_results(self, result: 'CheckIgnoreResult'): if not result.match and (not self.args.details): ...
class CmdCheckIgnore(CmdBase): def __init__(self, args): pass def _show_results(self, result: 'CheckIgnoreResult'): pass def _check_one_file(self, target): pass def _interactive_mode(self): pass def _normal_mode(self): pass def _check_args(self): ...
8
0
9
1
8
0
3
0
1
4
1
0
7
1
7
30
69
13
56
17
47
0
55
17
46
6
5
2
24
19,021
iterative/dvc
dvc/commands/checkout.py
dvc.commands.checkout.CmdCheckout
from dvc.cli.command import CmdBase from dvc.ui import ui from dvc.exceptions import CheckoutError class CmdCheckout(CmdBase): def run(self): from dvc.utils.humanize import get_summary stats, exc = (None, None) try: result = self.repo.checkout(targets=self.args.targets, with_de...
class CmdCheckout(CmdBase): def run(self): pass
2
0
31
4
27
0
5
0
1
2
1
0
1
0
1
24
32
4
28
7
25
0
20
6
17
5
5
1
5
19,022
iterative/dvc
dvc/commands/commit.py
dvc.commands.commit.CmdCommit
from dvc.log import logger from dvc.cli.command import CmdBase class CmdCommit(CmdBase): def run(self): from dvc.exceptions import DvcException if not self.args.targets: self.args.targets = [None] for target in self.args.targets: try: self.repo.commi...
class CmdCommit(CmdBase): def run(self): pass
2
0
19
2
17
0
5
0
1
1
1
0
1
0
1
24
20
2
18
4
15
0
12
4
9
5
5
2
5
19,023
iterative/dvc
dvc/commands/completion.py
dvc.commands.completion.CmdCompletion
from dvc.cli.command import CmdBaseNoRepo from dvc.cli.completion import get_preamble from dvc.ui import ui class CmdCompletion(CmdBaseNoRepo): def run(self): import shtab shell = self.args.shell parser = self.args.parser script = shtab.complete(parser, shell=shell, preamble=get_pr...
class CmdCompletion(CmdBaseNoRepo): def run(self): pass
2
0
8
1
7
0
1
0
1
0
0
0
1
0
1
26
9
1
8
6
5
0
8
6
5
1
6
0
1
19,024
iterative/dvc
dvc/commands/config.py
dvc.commands.config.CmdConfig
from dvc.log import logger from funcy import set_in import os from dvc.ui import ui from dvc.cli.command import CmdBaseNoRepo class CmdConfig(CmdBaseNoRepo): def __init__(self, args): from dvc.config import Config super().__init__(args) self.config = Config.from_cwd(validate=False) de...
class CmdConfig(CmdBaseNoRepo): def __init__(self, args): pass def run(self): pass def _list(self): pass def _get(self, remote_or_db, section, opt): pass def _set(self, remote_or_db, section, opt): pass def _check(self, conf, remote_or_db, section, ...
13
0
12
2
10
0
3
0
1
5
3
5
8
1
10
35
136
32
104
34
85
0
89
31
72
5
6
3
32
19,025
iterative/dvc
dvc/commands/daemon.py
dvc.commands.daemon.CmdDaemonAnalytics
from dvc.log import logger class CmdDaemonAnalytics(CmdDaemonBase): def run(self): from dvc import analytics logger.info('Sending analytics') analytics.send(self.args.target) return 0
class CmdDaemonAnalytics(CmdDaemonBase): def run(self): pass
2
0
7
2
5
0
1
0
1
0
0
0
1
0
1
26
8
2
6
3
3
0
6
3
3
1
7
0
1
19,026
iterative/dvc
dvc/commands/daemon.py
dvc.commands.daemon.CmdDaemonBase
from dvc.cli.command import CmdBaseNoRepo class CmdDaemonBase(CmdBaseNoRepo): pass
class CmdDaemonBase(CmdBaseNoRepo): pass
1
0
0
0
0
0
0
0
1
0
0
2
0
0
0
25
2
0
2
1
1
0
2
1
1
0
6
0
0
19,027
iterative/dvc
dvc/commands/daemon.py
dvc.commands.daemon.CmdDaemonUpdater
from dvc.log import logger class CmdDaemonUpdater(CmdDaemonBase): def run(self): import os from dvc.config import Config from dvc.repo import Repo from dvc.updater import Updater root_dir = Repo.find_root() dvc_dir = os.path.join(root_dir, Repo.DVC_DIR) tmp_...
class CmdDaemonUpdater(CmdDaemonBase): def run(self): pass
2
0
18
4
14
0
1
0
1
3
3
0
1
0
1
26
19
4
15
12
9
0
15
12
9
1
7
0
1
19,028
iterative/dvc
dvc/commands/dag.py
dvc.commands.dag.CmdDAG
from dvc.ui import ui from dvc.cli.command import CmdBase class CmdDAG(CmdBase): def run(self): graph = _build(self.repo, target=self.args.target, full=self.args.full, outs=self.args.outs) if self.args.dot: ui.write(_show_dot(graph)) elif self.args.mermaid or self.args.markdown...
class CmdDAG(CmdBase): def run(self): pass
2
0
17
2
15
0
3
0
1
0
0
0
1
1
1
24
18
2
16
4
14
0
9
3
7
3
5
2
3
19,029
iterative/dvc
dvc/commands/data.py
dvc.commands.data.CmdDataStatus
from dvc.ui import ui from dvc.cli.command import CmdBase from dvc.utils import colorize from dvc.log import logger from funcy import chunks, compact, log_durations from typing import TYPE_CHECKING, ClassVar class CmdDataStatus(CmdBase): COLORS: ClassVar[dict[str, str]] = {'not_in_remote': 'red', 'not_in_cache': '...
class CmdDataStatus(CmdBase): @staticmethod def _process_status(status: 'DataStatus'): '''Flatten stage status, and filter empty stage status contents.''' pass @classmethod def _show_status(cls, status: 'DataStatus') -> int: pass def run(self) -> int: pass
6
1
23
2
20
2
7
0.05
1
3
0
0
1
0
3
26
107
11
95
27
89
5
54
23
50
12
5
3
20
19,030
iterative/dvc
dvc/commands/data_sync.py
dvc.commands.data_sync.CmdDataBase
from dvc.cli.command import CmdBase class CmdDataBase(CmdBase): def log_summary(self, stats): from dvc.ui import ui from dvc.utils.humanize import get_summary default_msg = 'Everything is up to date.' if not self.args.remote and (not self.repo.config['core'].get('remote')): ...
class CmdDataBase(CmdBase): def log_summary(self, stats): pass
2
0
10
3
7
0
2
0
1
0
0
4
1
0
1
24
11
3
8
5
4
0
8
5
4
2
5
1
2
19,031
iterative/dvc
dvc/commands/data_sync.py
dvc.commands.data_sync.CmdDataFetch
from dvc.log import logger class CmdDataFetch(CmdDataBase): def run(self): from dvc.exceptions import DvcException try: processed_files_count = self.repo.fetch(targets=self.args.targets, jobs=self.args.jobs, remote=self.args.remote, all_branches=self.args.all_branches, all_tags=self.ar...
class CmdDataFetch(CmdDataBase): def run(self): pass
2
0
22
1
21
0
2
0
1
1
1
0
1
0
1
25
23
1
22
4
19
0
10
4
7
2
6
1
2
19,032
iterative/dvc
dvc/commands/data_sync.py
dvc.commands.data_sync.CmdDataPull
from dvc.log import logger class CmdDataPull(CmdDataBase): def log_summary(self, result): from dvc.commands.checkout import log_changes stats = result.pop('stats', {}) log_changes(result) super().log_summary(stats) def run(self): from dvc.exceptions import CheckoutErro...
class CmdDataPull(CmdDataBase): def log_summary(self, result): pass def run(self): pass
3
0
16
2
14
0
2
0
1
3
2
0
2
0
2
26
33
4
29
7
24
0
16
6
11
3
6
2
4
19,033
iterative/dvc
dvc/commands/data_sync.py
dvc.commands.data_sync.CmdDataPush
from dvc.log import logger class CmdDataPush(CmdDataBase): def run(self): from dvc.exceptions import DvcException try: processed_files_count = self.repo.push(targets=self.args.targets, jobs=self.args.jobs, remote=self.args.remote, all_branches=self.args.all_branches, all_tags=self.args...
class CmdDataPush(CmdDataBase): def run(self): pass
2
0
21
1
20
0
2
0
1
1
1
0
1
0
1
25
22
1
21
4
18
0
10
4
7
2
6
1
2
19,034
iterative/dvc
dvc/commands/dataset.py
dvc.commands.dataset.CmdDatasetAdd
from typing import TYPE_CHECKING, Optional from dvc.cli.command import CmdBase from dvc.exceptions import DvcException class CmdDatasetAdd(CmdBase): @classmethod def display(cls, name: str, dataset: 'Dataset', action: str='Adding'): from dvc.ui import ui assert dataset.lock url = datas...
class CmdDatasetAdd(CmdBase): @classmethod def display(cls, name: str, dataset: 'Dataset', action: str='Adding'): pass def run(self): pass
4
0
22
3
19
0
6
0
1
2
1
0
1
0
2
25
46
6
40
16
35
0
36
13
32
6
5
2
12
19,035
iterative/dvc
dvc/commands/dataset.py
dvc.commands.dataset.CmdDatasetUpdate
from typing import TYPE_CHECKING, Optional from dvc.log import logger from dvc.cli.command import CmdBase class CmdDatasetUpdate(CmdBase): def display(self, name: str, dataset: 'Dataset', new: 'Dataset'): from dvc.commands.checkout import log_changes from dvc.ui import ui action = 'Updatin...
class CmdDatasetUpdate(CmdBase): def display(self, name: str, dataset: 'Dataset', new: 'Dataset'): pass def run(self): pass
3
0
34
4
30
0
7
0
1
6
2
0
2
0
2
25
69
9
60
17
52
0
50
16
42
8
5
3
13
19,036
iterative/dvc
dvc/commands/destroy.py
dvc.commands.destroy.CmdDestroy
from dvc.cli.command import CmdBase from dvc.log import logger class CmdDestroy(CmdBase): def run(self): from dvc.exceptions import DvcException from dvc.ui import ui try: statement = 'This will destroy all information about your pipelines, all data files, as well as cache in ....
class CmdDestroy(CmdBase): def run(self): pass
2
0
23
3
20
1
3
0.05
1
1
1
0
1
0
1
24
24
3
21
5
17
1
13
5
9
3
5
2
3
19,037
iterative/dvc
dvc/commands/diff.py
dvc.commands.diff.CmdDiff
import os from dvc.log import logger from dvc.ui import ui from dvc.cli.command import CmdBase class CmdDiff(CmdBase): @staticmethod def _show_diff(diff, hide_missing=False): """ Given a diff structure, generate a string of paths separated by new lines and grouped together by their sta...
class CmdDiff(CmdBase): @staticmethod def _show_diff(diff, hide_missing=False): ''' Given a diff structure, generate a string of paths separated by new lines and grouped together by their state. A group's header is colored to enhance readability, for example: Added:...
4
1
54
10
36
9
10
0.23
1
2
1
0
1
0
2
25
111
21
73
20
68
17
48
19
44
10
5
4
19
19,038
iterative/dvc
dvc/commands/du.py
dvc.commands.du.CmdDU
from dvc.ui import ui from dvc.cli.command import CmdBaseNoRepo class CmdDU(CmdBaseNoRepo): def run(self): from dvc.repo import Repo from dvc.utils.humanize import naturalsize entries = Repo.du(self.args.url, self.args.path, rev=self.args.rev, summarize=self.args.summarize, config=self.arg...
class CmdDU(CmdBaseNoRepo): def run(self): pass
2
0
15
1
14
0
1
0
1
1
1
0
1
0
1
26
16
1
15
5
11
0
7
5
3
1
6
0
1
19,039
iterative/dvc
dvc/commands/experiments/apply.py
dvc.commands.experiments.apply.CmdExperimentsApply
from dvc.cli.command import CmdBase from dvc.ui import ui class CmdExperimentsApply(CmdBase): def run(self): if not self.args.force: ui.write("The --no-force option is deprecated and will be removed in a future DVC release. To revert the result of 'exp apply', run:\n\n\tgit reset --hard\n\tgit...
class CmdExperimentsApply(CmdBase): def run(self): pass
2
0
11
1
10
0
2
0
1
0
0
0
1
0
1
24
12
1
11
2
9
0
6
2
4
2
5
1
2
19,040
iterative/dvc
dvc/commands/experiments/branch.py
dvc.commands.experiments.branch.CmdExperimentsBranch
from dvc.cli.command import CmdBase class CmdExperimentsBranch(CmdBase): def run(self): self.repo.experiments.branch(self.args.experiment, self.args.branch) return 0
class CmdExperimentsBranch(CmdBase): def run(self): pass
2
0
4
1
3
0
1
0
1
0
0
0
1
0
1
24
5
1
4
2
2
0
4
2
2
1
5
0
1
19,041
iterative/dvc
dvc/commands/experiments/clean.py
dvc.commands.experiments.clean.CmdExperimentsClean
from dvc.cli.command import CmdBase class CmdExperimentsClean(CmdBase): def run(self): self.repo.experiments.clean() return 0
class CmdExperimentsClean(CmdBase): def run(self): pass
2
0
3
0
3
0
1
0
1
0
0
0
1
0
1
24
4
0
4
2
2
0
4
2
2
1
5
0
1
19,042
iterative/dvc
dvc/commands/experiments/diff.py
dvc.commands.experiments.diff.CmdExperimentsDiff
from dvc.ui import ui from dvc.log import logger from dvc.commands.metrics import DEFAULT_PRECISION from dvc.cli.command import CmdBase from dvc.exceptions import DvcException class CmdExperimentsDiff(CmdBase): def run(self): try: diff = self.repo.experiments.diff(a_rev=self.args.a_rev, b_rev=...
class CmdExperimentsDiff(CmdBase): def run(self): pass
2
0
37
4
31
2
7
0.06
1
2
1
0
1
0
1
24
38
4
32
7
29
2
17
7
14
7
5
3
7
19,043
iterative/dvc
dvc/commands/experiments/exec_run.py
dvc.commands.experiments.exec_run.CmdExecutorRun
from dvc.cli.command import CmdBaseNoRepo from dvc.log import logger class CmdExecutorRun(CmdBaseNoRepo): """Run an experiment executor.""" def run(self): from dvc.repo.experiments.executor.base import BaseExecutor, ExecutorInfo from dvc.utils.serialize import load_json info = Executor...
class CmdExecutorRun(CmdBaseNoRepo): '''Run an experiment executor.''' def run(self): pass
2
1
15
1
14
0
1
0.07
1
2
2
0
1
0
1
26
18
2
15
5
11
1
7
5
3
1
6
0
1
19,044
iterative/dvc
dvc/commands/experiments/ls.py
dvc.commands.experiments.ls.CmdExperimentsList
from dvc.log import logger from dvc.ui import ui from dvc.exceptions import InvalidArgumentError from dvc.cli.command import CmdBase class CmdExperimentsList(CmdBase): def run(self): name_only = self.args.name_only sha_only = self.args.sha_only git_remote = self.args.git_remote if ...
class CmdExperimentsList(CmdBase): def run(self): pass
2
0
41
4
37
0
9
0
1
1
1
0
1
0
1
24
42
4
38
11
34
0
25
11
21
9
5
3
9
19,045
iterative/dvc
dvc/commands/experiments/pull.py
dvc.commands.experiments.pull.CmdExperimentsPull
from dvc.cli.command import CmdBase from dvc.ui import ui class CmdExperimentsPull(CmdBase): def run(self): pulled_exps = self.repo.experiments.pull(self.args.git_remote, self.args.experiment, all_commits=self.args.all_commits, rev=self.args.rev, num=self.args.num, force=self.args.force, pull_cache=self.a...
class CmdExperimentsPull(CmdBase): def run(self): pass
2
0
29
2
27
0
3
0
1
0
0
0
1
0
1
24
30
2
28
3
26
0
9
3
7
3
5
1
3
19,046
iterative/dvc
dvc/commands/experiments/push.py
dvc.commands.experiments.push.CmdExperimentsPush
from dvc.ui import ui from typing import Any from dvc.cli.command import CmdBase class CmdExperimentsPush(CmdBase): @staticmethod def log_result(result: dict[str, Any], remote: str): from dvc.utils import humanize def join_exps(exps): return humanize.join([f'[bold]{e}[/]' for e in...
class CmdExperimentsPush(CmdBase): @staticmethod def log_result(result: dict[str, Any], remote: str): pass def join_exps(exps): pass def run(self): pass
5
0
23
2
20
0
4
0
1
4
1
0
1
0
2
25
69
8
61
17
54
0
33
10
27
8
5
1
12
19,047
iterative/dvc
dvc/commands/experiments/queue_worker.py
dvc.commands.experiments.queue_worker.CmdQueueWorker
from dvc.cli.command import CmdBase class CmdQueueWorker(CmdBase): """Run the exp queue worker.""" def run(self): self.repo.experiments.celery_queue.worker.start(self.args.name, fsapp_clean=self.args.clean) return 0
class CmdQueueWorker(CmdBase): '''Run the exp queue worker.''' def run(self): pass
2
1
5
0
5
0
1
0.17
1
0
0
0
1
0
1
24
8
1
6
2
4
1
4
2
2
1
5
0
1
19,048
iterative/dvc
dvc/commands/experiments/remove.py
dvc.commands.experiments.remove.CmdExperimentsRemove
from dvc.cli.command import CmdBase from dvc.exceptions import InvalidArgumentError from dvc.ui import ui class CmdExperimentsRemove(CmdBase): def check_arguments(self): if not any([self.args.all_commits, self.args.rev, self.args.queue]) ^ bool(self.args.experiment): raise InvalidArgumentError...
class CmdExperimentsRemove(CmdBase): def check_arguments(self): pass def run(self): pass
3
0
16
2
15
0
2
0
1
3
1
0
2
0
2
25
34
4
30
5
26
0
12
5
8
2
5
1
4
19,049
iterative/dvc
dvc/commands/experiments/rename.py
dvc.commands.experiments.rename.CmdExperimentsRename
from dvc.ui import ui from dvc.exceptions import InvalidArgumentError from dvc.cli.command import CmdBase class CmdExperimentsRename(CmdBase): def run(self): from dvc.utils import humanize if not (self.args.experiment and self.args.name): raise InvalidArgumentError('An experiment to re...
class CmdExperimentsRename(CmdBase): def run(self): pass
2
0
19
2
17
0
3
0
1
2
1
0
1
0
1
24
20
2
18
4
15
0
10
4
7
3
5
1
3
19,050
iterative/dvc
dvc/commands/experiments/run.py
dvc.commands.experiments.run.CmdExperimentsRun
from dvc.commands.repro import CmdRepro class CmdExperimentsRun(CmdRepro): def run(self): self.repo.experiments.run(name=self.args.name, queue=self.args.queue, run_all=self.args.run_all, jobs=self.args.jobs, params=self.args.set_param, tmp_dir=self.args.tmp_dir, copy_paths=self.args.copy_paths, message=se...
class CmdExperimentsRun(CmdRepro): def run(self): pass
2
0
14
1
13
0
1
0
1
0
0
0
1
0
1
27
15
1
14
2
12
0
4
2
2
1
6
0
1
19,051
iterative/dvc
dvc/commands/experiments/save.py
dvc.commands.experiments.save.CmdExperimentsSave
from dvc.log import logger from dvc.cli.command import CmdBase from dvc.exceptions import DvcException from dvc.ui import ui class CmdExperimentsSave(CmdBase): def run(self): try: ref = self.repo.experiments.save(targets=self.args.targets, name=self.args.name, recursive=self.args.recursive, fo...
class CmdExperimentsSave(CmdBase): def run(self): pass
2
0
21
2
19
0
3
0
1
1
1
0
1
0
1
24
22
2
20
4
18
0
12
4
10
3
5
1
3
19,052
iterative/dvc
dvc/commands/experiments/show.py
dvc.commands.experiments.show.CmdExperimentsShow
from dvc.cli.command import CmdBase from dvc.commands.metrics import DEFAULT_PRECISION from dvc.log import logger from dvc.exceptions import DvcException from dvc.ui import ui class CmdExperimentsShow(CmdBase): def run(self): from dvc.repo.experiments.show import tabulate try: exps = s...
class CmdExperimentsShow(CmdBase): def run(self): pass
2
0
51
3
48
0
5
0
1
1
1
0
1
0
1
24
52
3
49
8
46
0
16
8
13
5
5
1
5
19,053
iterative/dvc
dvc/commands/freeze.py
dvc.commands.freeze.CmdFreeze
class CmdFreeze(CmdFreezeBase): def run(self): return self._run(self.repo.freeze, 'freeze')
class CmdFreeze(CmdFreezeBase): def run(self): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
25
3
0
3
2
1
0
3
2
1
1
6
0
1
19,054
iterative/dvc
dvc/commands/freeze.py
dvc.commands.freeze.CmdFreezeBase
from dvc.log import logger from dvc.exceptions import DvcException from dvc.cli.command import CmdBase class CmdFreezeBase(CmdBase): def _run(self, func, name): ret = 0 for target in self.args.targets: try: func(target) except DvcException: l...
class CmdFreezeBase(CmdBase): def _run(self, func, name): pass
2
0
9
0
9
0
3
0
1
1
1
2
1
0
1
24
10
0
10
4
8
0
10
4
8
3
5
2
3
19,055
iterative/dvc
dvc/commands/freeze.py
dvc.commands.freeze.CmdUnfreeze
class CmdUnfreeze(CmdFreezeBase): def run(self): return self._run(self.repo.unfreeze, 'unfreeze')
class CmdUnfreeze(CmdFreezeBase): def run(self): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
25
3
0
3
2
1
0
3
2
1
1
6
0
1
19,056
iterative/dvc
dvc/commands/gc.py
dvc.commands.gc.CmdGC
from dvc.cli.command import CmdBase import os from dvc.ui import ui from dvc.log import logger class CmdGC(CmdBase): def run(self): from dvc.repo.gc import _validate_args _validate_args(all_branches=self.args.all_branches, all_tags=self.args.all_tags, all_commits=self.args.all_commits, all_experim...
class CmdGC(CmdBase): def run(self): pass
2
0
79
12
66
2
14
0.03
1
0
0
0
1
0
1
24
80
12
67
5
64
2
35
5
32
14
5
2
14
19,057
iterative/dvc
dvc/commands/get.py
dvc.commands.get.CmdGet
from dvc.cli.command import CmdBaseNoRepo from dvc.log import logger from dvc.exceptions import DvcException class CmdGet(CmdBaseNoRepo): def _show_url(self): from dvc.api import get_url from dvc.ui import ui url = get_url(self.args.path, repo=self.args.url, rev=self.args.rev, remote=self....
class CmdGet(CmdBaseNoRepo): def _show_url(self): pass def run(self): pass def _get_file_from_repo(self): pass
4
0
15
1
13
0
2
0
1
3
3
0
3
0
3
28
47
6
41
9
33
0
23
9
15
3
6
1
6
19,058
iterative/dvc
dvc/commands/get_url.py
dvc.commands.get_url.CmdGetUrl
from dvc.exceptions import DvcException from dvc.cli.command import CmdBaseNoRepo from dvc.log import logger class CmdGetUrl(CmdBaseNoRepo): def run(self): from dvc.config import Config from dvc.repo import Repo try: Repo.get_url(self.args.url, out=self.args.out, jobs=self.args...
class CmdGetUrl(CmdBaseNoRepo): def run(self): pass
2
0
17
1
16
0
2
0
1
3
3
0
1
0
1
26
18
1
17
4
13
0
10
4
6
2
6
1
2
19,059
iterative/dvc
dvc/commands/git_hook.py
dvc.commands.git_hook.CmdHookBase
from dvc.exceptions import NotDvcRepoError from dvc.cli.command import CmdBaseNoRepo class CmdHookBase(CmdBaseNoRepo): def run(self): from dvc.repo import Repo try: repo = Repo() repo.close() except NotDvcRepoError: return 0 return self._run() ...
class CmdHookBase(CmdBaseNoRepo): def run(self): pass def _run(self): pass
3
0
6
1
5
0
2
0
1
3
2
4
2
0
2
27
14
3
11
4
7
0
11
4
7
2
6
1
3
19,060
iterative/dvc
dvc/commands/git_hook.py
dvc.commands.git_hook.CmdMergeDriver
class CmdMergeDriver(CmdHookBase): def _run(self): from dvc.dvcfile import load_file from dvc.repo import Repo dvc = Repo() try: ancestor = load_file(dvc, self.args.ancestor, verify=False) our = load_file(dvc, self.args.our, verify=False) their = ...
class CmdMergeDriver(CmdHookBase): def _run(self): pass
2
0
16
4
12
0
1
0
1
1
1
0
1
0
1
28
17
4
13
7
9
0
12
7
8
1
7
1
1
19,061
iterative/dvc
dvc/commands/git_hook.py
dvc.commands.git_hook.CmdPostCheckout
import os class CmdPostCheckout(CmdHookBase): def _run(self): flag = os.environ.get('PRE_COMMIT_CHECKOUT_TYPE') if flag is None and len(self.args.args) >= 3: flag = self.args.args[2] if flag != '1': return 0 if os.path.isdir(os.path.join('.git', 'rebase-merg...
class CmdPostCheckout(CmdHookBase): def _run(self): pass
2
0
21
4
10
7
4
0.64
1
0
0
0
1
0
1
28
22
4
11
4
8
7
11
4
8
4
7
1
4
19,062
iterative/dvc
dvc/commands/git_hook.py
dvc.commands.git_hook.CmdPreCommit
class CmdPreCommit(CmdHookBase): def _run(self): from dvc.cli import main return main(['status'])
class CmdPreCommit(CmdHookBase): def _run(self): pass
2
0
4
1
3
0
1
0
1
0
0
0
1
0
1
28
5
1
4
3
1
0
4
3
1
1
7
0
1
19,063
iterative/dvc
dvc/commands/git_hook.py
dvc.commands.git_hook.CmdPrePush
class CmdPrePush(CmdHookBase): def _run(self): from dvc.cli import main return main(['push'])
class CmdPrePush(CmdHookBase): def _run(self): pass
2
0
4
1
3
0
1
0
1
0
0
0
1
0
1
28
5
1
4
3
1
0
4
3
1
1
7
0
1
19,064
iterative/dvc
dvc/commands/imp.py
dvc.commands.imp.CmdImport
from dvc.log import logger from dvc.cli.command import CmdBase from dvc.exceptions import DvcException class CmdImport(CmdBase): def run(self): from dvc.scm import CloneError try: self.repo.imp(self.args.url, self.args.path, out=self.args.out, rev=self.args.rev, no_exec=self.args.no_ex...
class CmdImport(CmdBase): def run(self): pass
2
0
28
1
27
0
3
0
1
2
2
0
1
0
1
24
29
1
28
3
25
0
12
3
9
3
5
1
3
19,065
iterative/dvc
dvc/commands/imp_db.py
dvc.commands.imp_db.CmdImportDb
from dvc.cli.command import CmdBase, CmdBaseNoRepo class CmdImportDb(CmdBase): def run(self): self.repo.imp_db(sql=self.args.sql, table=self.args.table, output_format=self.args.output_format, out=self.args.out, force=self.args.force, connection=self.args.conn) return 0
class CmdImportDb(CmdBase): def run(self): pass
2
0
10
0
10
0
1
0
1
0
0
0
1
0
1
24
11
0
11
2
9
0
4
2
2
1
5
0
1
19,066
iterative/dvc
dvc/commands/imp_db.py
dvc.commands.imp_db.CmdTestDb
from dvc.ui import ui from dvc.cli.command import CmdBase, CmdBaseNoRepo class CmdTestDb(CmdBaseNoRepo): def run(self): from dvc.config import Config from dvc.database import client from dvc.exceptions import DvcException connection = self.args.conn db_config = Config.from_...
class CmdTestDb(CmdBaseNoRepo): def run(self): pass
2
0
21
2
19
0
5
0
1
2
2
0
1
0
1
26
22
2
20
9
15
0
20
8
15
5
6
1
5
19,067
iterative/dvc
dvc/commands/imp_url.py
dvc.commands.imp_url.CmdImportUrl
from dvc.exceptions import DvcException from dvc.cli.command import CmdBase from dvc.log import logger class CmdImportUrl(CmdBase): def run(self): try: self.repo.imp_url(self.args.url, out=self.args.out, no_exec=self.args.no_exec, no_download=self.args.no_download, remote=self.args.remote, to_...
class CmdImportUrl(CmdBase): def run(self): pass
2
0
24
0
24
0
2
0
1
1
1
0
1
0
1
24
25
0
25
2
23
0
8
2
6
2
5
1
2
19,068
iterative/dvc
dvc/commands/init.py
dvc.commands.init.CmdInit
from dvc.log import logger from dvc.cli.command import CmdBaseNoRepo class CmdInit(CmdBaseNoRepo): def run(self): from dvc.exceptions import InitError from dvc.repo import Repo try: with Repo.init(self.args.directory, no_scm=self.args.no_scm, force=self.args.force, subdir=self....
class CmdInit(CmdBaseNoRepo): def run(self): pass
2
0
17
1
16
0
2
0
1
2
2
0
1
1
1
26
18
1
17
5
13
0
12
5
8
2
6
2
2
19,069
iterative/dvc
dvc/commands/install.py
dvc.commands.install.CmdInstall
from dvc.cli.command import CmdBase from dvc.log import logger from dvc.exceptions import DvcException class CmdInstall(CmdBase): def run(self): try: self.repo.install(self.args.use_pre_commit_tool) except DvcException: logger.exception('failed to install DVC Git hooks') ...
class CmdInstall(CmdBase): def run(self): pass
2
0
7
0
7
0
2
0
1
1
1
0
1
0
1
24
8
0
8
2
6
0
8
2
6
2
5
1
2
19,070
iterative/dvc
dvc/commands/ls/__init__.py
dvc.commands.ls.CmdList
from dvc.exceptions import DvcException from dvc.cli.command import CmdBaseNoRepo from dvc.ui import ui from dvc.log import logger class CmdList(CmdBaseNoRepo): def _show_tree(self): from dvc.repo.ls import ls_tree entries = ls_tree(self.args.url, self.args.path, rev=self.args.rev, dvc_only=self.a...
class CmdList(CmdBaseNoRepo): def _show_tree(self): pass def _show_list(self): pass def run(self): pass
4
0
19
1
18
0
3
0
1
3
2
0
3
0
3
28
61
5
56
8
50
0
26
8
20
5
6
2
9
19,071
iterative/dvc
dvc/commands/ls/__init__.py
dvc.commands.ls.TreePart
class TreePart: Edge = '├── ' Line = '│ ' Corner = '└── ' Blank = ' '
class TreePart: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
5
5
4
0
5
5
4
0
0
0
0
19,072
iterative/dvc
dvc/commands/ls/ls_colors.py
dvc.commands.ls.ls_colors.LsColors
import os class LsColors: default = 'rs=0:di=01;34:ex=01;32' def __init__(self, lscolors=None): self._extensions = {} self._codes = {} self._load(lscolors or os.environ.get('LS_COLORS') or LsColors.default) def _load(self, lscolors): for item in lscolors.split(':'): ...
class LsColors: def __init__(self, lscolors=None): pass def _load(self, lscolors): pass def format(self, entry): pass def _format(self, text, code=None, ext=None): pass
5
0
10
1
9
0
4
0
0
1
0
0
4
2
4
4
47
9
38
14
33
0
37
14
32
5
0
2
14
19,073
iterative/dvc
dvc/commands/ls_url.py
dvc.commands.ls_url.CmdListUrl
from .ls import show_entries, show_tree from dvc.cli.command import CmdBaseNoRepo class CmdListUrl(CmdBaseNoRepo): def _show_tree(self, config): from dvc.fs import parse_external_url from dvc.repo.ls import _ls_tree fs, fs_path = parse_external_url(self.args.url, fs_config=self.args.fs_con...
class CmdListUrl(CmdBaseNoRepo): def _show_tree(self, config): pass def _show_list(self, config): pass def run(self): pass
4
0
10
1
9
0
2
0
1
2
2
0
3
0
3
28
33
5
28
12
20
0
20
12
12
2
6
1
5
19,074
iterative/dvc
dvc/commands/metrics.py
dvc.commands.metrics.CmdMetricsBase
from dvc.cli.command import CmdBase class CmdMetricsBase(CmdBase): UNINITIALIZED = True
class CmdMetricsBase(CmdBase): pass
1
0
0
0
0
0
0
0
1
0
0
2
0
0
0
23
2
0
2
2
1
0
2
2
1
0
5
0
0
19,075
iterative/dvc
dvc/commands/metrics.py
dvc.commands.metrics.CmdMetricsDiff
from dvc.ui import ui class CmdMetricsDiff(CmdMetricsBase): def run(self): import os from os.path import relpath diff_result = self.repo.metrics.diff(a_rev=self.args.a_rev, b_rev=self.args.b_rev, targets=self.args.targets, all=self.args.all) errored = [rev for rev, err in diff_resu...
class CmdMetricsDiff(CmdMetricsBase): def run(self): pass
2
0
39
6
33
0
3
0
1
0
0
0
1
0
1
24
40
6
34
9
29
0
16
9
11
3
6
1
3
19,076
iterative/dvc
dvc/commands/metrics.py
dvc.commands.metrics.CmdMetricsShow
from dvc.utils.serialize import encode_exception from dvc.ui import ui class CmdMetricsShow(CmdMetricsBase): def run(self): from dvc.repo.metrics.show import to_relpath from dvc.utils import errored_revisions metrics = self.repo.metrics.show(self.args.targets, all_branches=self.args.all_br...
class CmdMetricsShow(CmdMetricsBase): def run(self): pass
2
0
37
5
32
0
3
0
1
0
0
0
1
0
1
24
38
5
33
7
28
0
13
6
8
3
6
1
3
19,077
iterative/dvc
dvc/commands/move.py
dvc.commands.move.CmdMove
from dvc.cli.command import CmdBase from dvc.exceptions import DvcException from dvc.log import logger class CmdMove(CmdBase): def run(self): try: self.repo.move(self.args.src, self.args.dst) except DvcException: msg = f"failed to move '{self.args.src}' -> '{self.args.dst}'...
class CmdMove(CmdBase): def run(self): pass
2
0
8
0
8
0
2
0
1
1
1
0
1
0
1
24
9
0
9
3
7
0
9
3
7
2
5
1
2
19,078
iterative/dvc
dvc/commands/params.py
dvc.commands.params.CmdParamsDiff
from dvc.cli.command import CmdBase from dvc.ui import ui class CmdParamsDiff(CmdBase): UNINITIALIZED = True def run(self): import os from os.path import relpath diff_result = self.repo.params.diff(a_rev=self.args.a_rev, b_rev=self.args.b_rev, targets=self.args.targets, all=self.args.a...
class CmdParamsDiff(CmdBase): def run(self): pass
2
0
39
6
33
0
3
0
1
0
0
0
1
0
1
24
42
7
35
10
30
0
17
10
12
3
5
1
3
19,079
iterative/dvc
dvc/commands/plots.py
dvc.commands.plots.CmdPlots
from dvc.exceptions import DvcException from dvc.log import logger from funcy import compact, first, get_in from dvc.ui import ui import os from dvc.cli.command import CmdBase class CmdPlots(CmdBase): def _func(self, *args, **kwargs): raise NotImplementedError def _props(self): from dvc.schem...
class CmdPlots(CmdBase): def _func(self, *args, **kwargs): pass def _props(self): pass def _html_template_path(self): pass def run(self) -> int: pass
5
0
24
3
21
1
5
0.02
1
6
1
3
4
0
4
27
101
16
84
20
75
2
59
20
50
14
5
4
19
19,080
iterative/dvc
dvc/commands/plots.py
dvc.commands.plots.CmdPlotsDiff
class CmdPlotsDiff(CmdPlots): UNINITIALIZED = True def _func(self, *args, **kwargs): return self.repo.plots.diff(*args, revs=self.args.revisions, experiment=self.args.experiment, **kwargs)
class CmdPlotsDiff(CmdPlots): def _func(self, *args, **kwargs): pass
2
0
7
0
7
0
1
0
1
0
0
0
1
0
1
28
10
1
9
3
7
0
4
3
2
1
6
0
1
19,081
iterative/dvc
dvc/commands/plots.py
dvc.commands.plots.CmdPlotsModify
class CmdPlotsModify(CmdPlots): def run(self): self.repo.plots.modify(self.args.target, props=self._props(), unset=self.args.unset) return 0
class CmdPlotsModify(CmdPlots): def run(self): pass
2
0
5
0
5
0
1
0
1
0
0
0
1
0
1
28
6
0
6
2
4
0
4
2
2
1
6
0
1
19,082
iterative/dvc
dvc/commands/plots.py
dvc.commands.plots.CmdPlotsShow
class CmdPlotsShow(CmdPlots): UNINITIALIZED = True def _func(self, *args, **kwargs): return self.repo.plots.show(*args, **kwargs)
class CmdPlotsShow(CmdPlots): def _func(self, *args, **kwargs): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
28
5
1
4
3
2
0
4
3
2
1
6
0
1
19,083
iterative/dvc
dvc/commands/plots.py
dvc.commands.plots.CmdPlotsTemplates
from dvc.log import logger from dvc.cli.command import CmdBase from dvc.ui import ui from dvc.exceptions import DvcException class CmdPlotsTemplates(CmdBase): def run(self): from dvc.exceptions import InvalidArgumentError from dvc_render.vega_templates import TEMPLATES try: tar...
class CmdPlotsTemplates(CmdBase): def run(self): pass
2
0
20
3
17
0
6
0
1
2
2
0
1
0
1
24
21
3
18
6
14
0
18
6
14
6
5
4
6
19,084
iterative/dvc
dvc/commands/queue/kill.py
dvc.commands.queue.kill.CmdQueueKill
from dvc.cli.command import CmdBase class CmdQueueKill(CmdBase): """Kill exp task in queue.""" def run(self): self.repo.experiments.celery_queue.kill(revs=self.args.task, force=self.args.force) return 0
class CmdQueueKill(CmdBase): '''Kill exp task in queue.''' def run(self): pass
2
1
6
1
5
0
1
0.17
1
0
0
0
1
0
1
24
9
2
6
2
4
1
4
2
2
1
5
0
1
19,085
iterative/dvc
dvc/commands/queue/logs.py
dvc.commands.queue.logs.CmdQueueLogs
from dvc.cli.command import CmdBase class CmdQueueLogs(CmdBase): """Show output logs for a queued experiment.""" def run(self): self.repo.experiments.celery_queue.logs(rev=self.args.task, encoding=self.args.encoding, follow=self.args.follow) return 0
class CmdQueueLogs(CmdBase): '''Show output logs for a queued experiment.''' def run(self): pass
2
1
8
1
7
0
1
0.13
1
0
0
0
1
0
1
24
11
2
8
2
6
1
4
2
2
1
5
0
1
19,086
iterative/dvc
dvc/commands/queue/remove.py
dvc.commands.queue.remove.CmdQueueRemove
from dvc.cli.command import CmdBase from dvc.exceptions import InvalidArgumentError from dvc.ui import ui class CmdQueueRemove(CmdBase): """Remove exp in queue.""" def check_arguments(self): clear_flag = any([self.args.all, self.args.queued, self.args.failed, self.args.success]) if not clear_f...
class CmdQueueRemove(CmdBase): '''Remove exp in queue.''' def check_arguments(self): pass def run(self): pass
3
1
20
2
18
0
3
0.03
1
2
1
0
2
0
2
25
44
6
37
6
34
1
19
6
16
4
5
1
6
19,087
iterative/dvc
dvc/commands/queue/start.py
dvc.commands.queue.start.CmdQueueStart
from dvc.ui import ui from dvc.cli.command import CmdBase class CmdQueueStart(CmdBase): """Start exp queue workers.""" def run(self): started = self.repo.experiments.celery_queue.start_workers(self.args.jobs) suffix = 's' if started > 1 else '' ui.write(f"Started '{started}' new experi...
class CmdQueueStart(CmdBase): '''Start exp queue workers.''' def run(self): pass
2
1
7
2
5
0
2
0.17
1
0
0
0
1
0
1
24
10
3
6
4
4
1
6
4
4
2
5
0
2
19,088
iterative/dvc
dvc/commands/queue/status.py
dvc.commands.queue.status.CmdQueueStatus
from dvc.compare import TabularData from dvc.ui import ui from dvc.cli.command import CmdBase class CmdQueueStatus(CmdBase): """Show queue task and worker status.""" def run(self) -> int: from dvc.repo.experiments.show import format_time result = self.repo.experiments.celery_queue.status() ...
class CmdQueueStatus(CmdBase): '''Show queue task and worker status.''' def run(self) -> int: pass
2
1
31
4
27
0
3
0.04
1
2
1
0
1
0
1
24
34
5
28
11
25
1
20
11
17
3
5
2
3
19,089
iterative/dvc
dvc/commands/queue/stop.py
dvc.commands.queue.stop.CmdQueueStop
from dvc.ui import ui from dvc.cli.command import CmdBase class CmdQueueStop(CmdBase): """Stop exp queue workers.""" def run(self): self.repo.experiments.celery_queue.shutdown(kill=self.args.kill) if self.args.kill: ui.write('All running tasks in the queue have been killed.Queue wo...
class CmdQueueStop(CmdBase): '''Stop exp queue workers.''' def run(self): pass
2
1
12
2
10
0
2
0.09
1
0
0
0
1
0
1
24
15
3
11
2
9
1
7
2
5
2
5
1
2
19,090
iterative/dvc
dvc/commands/remote.py
dvc.commands.remote.CmdRemote
from dvc.commands.config import CmdConfig class CmdRemote(CmdConfig): def __init__(self, args): super().__init__(args) if getattr(self.args, 'name', None): self.args.name = self.args.name.lower() def _check_exists(self, conf): from dvc.config import ConfigError if ...
class CmdRemote(CmdConfig): def __init__(self, args): pass def _check_exists(self, conf): pass
3
0
5
1
4
0
2
0
1
2
1
6
2
0
2
37
12
3
9
4
5
0
9
4
5
2
7
1
4
19,091
iterative/dvc
dvc/commands/remote.py
dvc.commands.remote.CmdRemoteAdd
from dvc.ui import ui class CmdRemoteAdd(CmdRemote): def run(self): from dvc.config import ConfigError if self.args.default: ui.write(f"Setting '{self.args.name}' as a default remote.") with self.config.edit(self.args.level) as conf: if self.args.name in conf['remot...
class CmdRemoteAdd(CmdRemote): def run(self): pass
2
0
18
4
14
0
4
0
1
1
1
0
1
0
1
38
19
4
15
4
12
0
12
3
9
4
8
2
4
19,092
iterative/dvc
dvc/commands/remote.py
dvc.commands.remote.CmdRemoteDefault
from dvc.ui import ui class CmdRemoteDefault(CmdRemote): def run(self): from dvc.config import ConfigError if self.args.name is None and (not self.args.unset): conf = self.config.read(self.args.level) try: ui.write(conf['core']['remote']) except ...
class CmdRemoteDefault(CmdRemote): def run(self): pass
2
0
26
1
25
0
5
0
1
2
1
0
1
0
1
38
27
1
26
5
23
0
18
5
15
5
8
4
5
19,093
iterative/dvc
dvc/commands/remote.py
dvc.commands.remote.CmdRemoteList
from dvc.ui import ui class CmdRemoteList(CmdRemote): def run(self): conf = self.config.read(self.args.level) default_remote = conf['core'].get('remote') for name, remote_conf in conf['remote'].items(): if name == default_remote: text = f"{name}\t{remote_conf['u...
class CmdRemoteList(CmdRemote): def run(self): pass
2
0
5
0
5
0
2
0
1
0
0
0
1
0
1
38
6
0
6
4
4
0
6
4
4
2
8
1
2
19,094
iterative/dvc
dvc/commands/remote.py
dvc.commands.remote.CmdRemoteModify
class CmdRemoteModify(CmdRemote): def run(self): from dvc.config import merge with self.config.edit(self.args.level) as conf: merged = self.config.load_config_to_level(self.args.level) merge(merged, conf) self._check_exists(merged) if self.args.name n...
class CmdRemoteModify(CmdRemote): def run(self): pass
2
0
16
2
14
0
3
0
1
0
0
0
1
0
1
38
17
2
15
6
12
0
14
5
11
3
8
2
3
19,095
iterative/dvc
dvc/commands/remote.py
dvc.commands.remote.CmdRemoteRemove
class CmdRemoteRemove(CmdRemote): def run(self): with self.config.edit(self.args.level) as conf: self._check_exists(conf) del conf['remote'][self.args.name] up_to_level = self.args.level or 'repo' for level in reversed(self.config.LEVELS): with self.confi...
class CmdRemoteRemove(CmdRemote): def run(self): pass
2
0
16
3
12
1
4
0.08
1
1
0
0
1
0
1
38
17
3
13
5
11
1
13
4
11
4
8
3
4
19,096
iterative/dvc
dvc/commands/remote.py
dvc.commands.remote.CmdRemoteRename
class CmdRemoteRename(CmdRemote): def _rename_default(self, conf): if conf['core'].get('remote') == self.args.name: conf['core']['remote'] = self.args.new def run(self): from dvc.config import ConfigError all_config = self.config.load_config_to_level(None) if self.a...
class CmdRemoteRename(CmdRemote): def _rename_default(self, conf): pass def run(self): pass
3
0
13
2
11
0
3
0
1
2
1
0
2
0
2
39
28
5
23
9
19
0
21
7
17
4
8
2
6
19,097
iterative/dvc
dvc/commands/remove.py
dvc.commands.remove.CmdRemove
from dvc.cli.command import CmdBase from dvc.exceptions import DvcException from dvc.log import logger class CmdRemove(CmdBase): def run(self): for target in self.args.targets: try: self.repo.remove(target, outs=self.args.outs) except DvcException: l...
class CmdRemove(CmdBase): def run(self): pass
2
0
8
0
8
0
3
0
1
1
1
0
1
0
1
24
9
0
9
3
7
0
9
3
7
3
5
2
3
19,098
iterative/dvc
dvc/commands/repro.py
dvc.commands.repro.CmdRepro
from dvc.cli.command import CmdBase from dvc.commands.status import CmdDataStatus class CmdRepro(CmdBase): def run(self): from dvc.ui import ui stages = self.repo.reproduce(**self._common_kwargs, **self._repro_kwargs) if len(stages) == 0: ui.write(CmdDataStatus.UP_TO_DATE_MSG) ...
class CmdRepro(CmdBase): def run(self): pass @property def _common_kwargs(self): pass @property def _repro_kwargs(self): pass
6
0
11
1
10
0
1
0
1
1
1
1
3
0
3
26
37
4
33
8
26
0
12
6
7
2
5
1
4
19,099
iterative/dvc
dvc/commands/root.py
dvc.commands.root.CmdRoot
from dvc.utils import relpath from dvc.cli.command import CmdBaseNoRepo class CmdRoot(CmdBaseNoRepo): def run(self): from dvc.repo import Repo from dvc.ui import ui ui.write(relpath(Repo.find_root())) return 0
class CmdRoot(CmdBaseNoRepo): def run(self): pass
2
0
6
1
5
0
1
0
1
1
1
0
1
0
1
26
7
1
6
4
2
0
6
4
2
1
6
0
1