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
31,100
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.Contract
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Union from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, dbtClassMixin @dataclass class Contract(dbtClassMixin): enforced: bool = False alias_types: bool = True checksum: Optional[str] = None
@dataclass class Contract(dbtClassMixin): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
4
3
0
4
4
3
0
1
0
0
31,101
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.DeferRelation
from typing import Any, Dict, List, Optional, Union from dbt.artifacts.resources.v1.config import NodeConfig from dataclasses import dataclass, field from dbt.artifacts.resources.types import NodeType, TimePeriod @dataclass class DeferRelation(HasRelationMetadata): alias: str relation_name: Optional[str] r...
@dataclass class DeferRelation(HasRelationMetadata): @property def identifier(self): pass
4
0
2
0
2
0
1
0.08
1
0
0
0
1
0
1
3
15
1
13
3
10
1
12
2
10
1
2
0
1
31,102
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.DependsOn
from typing import Any, Dict, List, Optional, Union from dataclasses import dataclass, field @dataclass class DependsOn(MacroDependsOn): nodes: List[str] = field(default_factory=list) def add_node(self, value: str): if value not in self.nodes: self.nodes.append(value)
@dataclass class DependsOn(MacroDependsOn): def add_node(self, value: str): pass
3
0
3
0
3
0
2
0
1
1
0
0
1
0
1
2
6
1
5
3
3
0
5
3
3
2
2
1
2
31,103
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.FreshnessThreshold
from typing import Any, Dict, List, Optional, Union from dbt_common.contracts.util import Mergeable from dataclasses import dataclass, field from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, dbtClassMixin @dataclass class FreshnessThreshold(dbtClassMixin, Mergeable): warn_after: Optional[Time] = fie...
@dataclass class FreshnessThreshold(dbtClassMixin, Mergeable): def status(self, age: float) -> 'dbt.artifacts.schemas.results.FreshnessStatus': pass def __bool__(self): pass
4
0
6
1
5
1
2
0.07
2
3
1
0
2
0
2
2
17
3
14
7
10
1
12
7
8
3
1
1
4
31,104
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.HasRelationMetadata
from typing import Any, Dict, List, Optional, Union from dataclasses import dataclass, field from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, dbtClassMixin @dataclass class HasRelationMetadata(dbtClassMixin): database: Optional[str] schema: str @classmethod def __pre_deserialize__(cls,...
@dataclass class HasRelationMetadata(dbtClassMixin): @classmethod def __pre_deserialize__(cls, data): pass @property def quoting_dict(self) -> Dict[str, bool]: pass
6
0
5
0
5
0
2
0.2
1
3
0
4
1
0
2
2
20
2
15
5
10
3
12
3
9
2
1
1
4
31,105
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.InjectedCTE
from dataclasses import dataclass, field from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, dbtClassMixin @dataclass class InjectedCTE(dbtClassMixin): """Used in CompiledNodes as part of ephemeral model processing""" id: str sql: str
@dataclass class InjectedCTE(dbtClassMixin): '''Used in CompiledNodes as part of ephemeral model processing''' pass
2
1
0
0
0
0
0
0.33
1
0
0
0
0
0
0
0
5
1
3
1
2
1
3
1
2
0
1
0
0
31,106
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.MacroDependsOn
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Union from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, dbtClassMixin @dataclass class MacroDependsOn(dbtClassMixin): macros: List[str] = field(default_factory=list) def add_macro(self, value: str): i...
@dataclass class MacroDependsOn(dbtClassMixin): def add_macro(self, value: str): pass
3
0
3
0
3
0
2
0.2
1
1
0
1
1
0
1
1
7
1
5
3
3
1
5
3
3
2
1
1
2
31,107
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.ParsedResource
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Union from dbt.artifacts.resources.base import Docs, FileHash, GraphResource import time @dataclass class ParsedResource(ParsedResourceMandatory): tags: List[str] = field(default_factory=list) description: str = field(defaul...
@dataclass class ParsedResource(ParsedResourceMandatory): def __post_serialize__(self, dct: Dict, context: Optional[Dict]=None): pass
3
0
7
0
7
0
3
0
1
1
0
3
1
0
1
4
23
1
22
16
20
0
22
16
20
3
4
1
3
31,108
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.ParsedResourceMandatory
from dbt.artifacts.resources.v1.config import NodeConfig from dataclasses import dataclass, field from dbt.artifacts.resources.base import Docs, FileHash, GraphResource @dataclass class ParsedResourceMandatory(GraphResource, HasRelationMetadata): alias: str checksum: FileHash config: NodeConfig = field(def...
@dataclass class ParsedResourceMandatory(GraphResource, HasRelationMetadata): @property def identifier(self): pass
4
0
2
0
2
0
1
0
2
0
0
2
1
0
1
3
8
1
7
4
4
0
6
3
4
1
3
0
1
31,109
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.Quoting
from typing import Any, Dict, List, Optional, Union from dataclasses import dataclass, field from dbt_common.contracts.util import Mergeable from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, dbtClassMixin @dataclass class Quoting(dbtClassMixin, Mergeable): database: Optional[bool] = None schema:...
@dataclass class Quoting(dbtClassMixin, Mergeable): pass
2
0
0
0
0
0
0
0
2
0
0
0
0
0
0
0
5
0
5
5
4
0
5
5
4
0
1
0
0
31,110
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.RefArgs
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, dbtClassMixin from typing import Any, Dict, List, Optional, Union from dataclasses import dataclass, field @dataclass class RefArgs(dbtClassMixin): name: str package: Optional[str] = None version: Optional[NodeVersion] = None @property ...
@dataclass class RefArgs(dbtClassMixin): @property def positional_args(self) -> List[str]: pass @property def keyword_args(self) -> Dict[str, Optional[NodeVersion]]: pass
6
0
5
0
5
0
2
0
1
1
0
0
2
0
2
2
18
2
16
7
11
0
12
5
9
2
1
1
4
31,111
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/components.py
components.Time
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, dbtClassMixin from datetime import timedelta from dbt_common.contracts.util import Mergeable from typing import Any, Dict, List, Optional, Union from dataclasses import dataclass, field from dbt.artifacts.resources.types import NodeType, TimePeriod @data...
@dataclass class Time(dbtClassMixin, Mergeable): def exceeded(self, actual_age: float) -> bool: pass def __bool__(self): pass
4
0
4
0
4
0
2
0
2
5
0
0
2
0
2
2
13
2
11
7
8
0
11
7
8
2
1
1
3
31,112
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/config.py
config.ContractConfig
from dbt_common.dataclass_schema import ValidationError, dbtClassMixin from dataclasses import dataclass, field @dataclass class ContractConfig(dbtClassMixin): enforced: bool = False alias_types: bool = True
@dataclass class ContractConfig(dbtClassMixin): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
3
2
0
3
3
2
0
1
0
0
31,113
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/config.py
config.Hook
from dbt_common.dataclass_schema import ValidationError, dbtClassMixin from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Union @dataclass class Hook(dbtClassMixin): sql: str transaction: bool = True index: Optional[int] = None
@dataclass class Hook(dbtClassMixin): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
3
3
0
4
3
3
0
1
0
0
31,114
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/config.py
config.NodeAndTestConfig
from typing import Any, Dict, List, Optional, Union from dbt_common.contracts.config.metadata import Metadata, ShowBehavior from dbt_common.contracts.config.base import BaseConfig, CompareBehavior, MergeBehavior from dataclasses import dataclass, field @dataclass class NodeAndTestConfig(BaseConfig): enabled: bool ...
@dataclass class NodeAndTestConfig(BaseConfig): pass
2
0
0
0
0
0
0
0.08
1
0
0
2
0
0
0
0
28
0
26
8
25
2
8
8
7
0
1
0
0
31,115
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/config.py
config.NodeConfig
from dbt_common.contracts.config.base import BaseConfig, CompareBehavior, MergeBehavior from dbt_common.dataclass_schema import ValidationError, dbtClassMixin from dbt import hooks from dbt_common.contracts.config.materialization import OnConfigurationChangeOption from dbt.artifacts.resources.types import ModelHookType...
@dataclass class NodeConfig(NodeAndTestConfig): def __post_init__(self): pass @classmethod def __pre_deserialize__(cls, data): pass
5
0
13
1
12
1
4
0.1
1
2
1
4
1
0
2
2
81
3
71
26
67
7
34
25
31
4
2
2
7
31,116
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/config.py
config.Severity
class Severity(str): pass
class Severity(str): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
66
2
0
2
1
1
0
2
1
1
0
2
0
0
31,117
fishtown-analytics/dbt
core/dbt/artifacts/resources/v1/config.py
config.TestConfig
from mashumaro.jsonschema.annotations import Pattern from dbt_common.dataclass_schema import ValidationError, dbtClassMixin from typing import Any, Dict, List, Optional, Union from typing_extensions import Annotated from dataclasses import dataclass, field import re from dbt_common.contracts.config.base import BaseConf...
@dataclass class TestConfig(NodeAndTestConfig): def finalize_and_validate(self): ''' The presence of a setting for `store_failures_as` overrides any existing setting for `store_failures`, regardless of level of granularity. If `store_failures_as` is not set, then `store_failures` takes effe...
7
2
26
3
14
9
3
0.49
1
5
0
0
1
0
3
3
101
13
59
23
53
29
34
21
30
4
2
3
9
31,118
fishtown-analytics/dbt
core/dbt/artifacts/exceptions/schemas.py
dbt.artifacts.exceptions.schemas.IncompatibleSchemaError
from dbt_common.exceptions import DbtRuntimeError from typing import Optional class IncompatibleSchemaError(DbtRuntimeError): def __init__(self, expected: str, found: Optional[str]=None) -> None: self.expected = expected self.found = found self.filename = 'input file' super().__ini...
class IncompatibleSchemaError(DbtRuntimeError): def __init__(self, expected: str, found: Optional[str]=None) -> None: pass def add_filename(self, filename: str): pass def get_message(self) -> str: pass
4
0
7
1
6
0
1
0
1
2
0
0
3
4
3
3
26
5
21
12
17
0
17
12
13
2
1
1
4
31,119
fishtown-analytics/dbt
core/dbt/artifacts/resources/base.py
dbt.artifacts.resources.base.BaseResource
from dataclasses import dataclass from dbt_common.dataclass_schema import dbtClassMixin from dbt.artifacts.resources.types import NodeType @dataclass class BaseResource(dbtClassMixin): name: str resource_type: NodeType package_name: str path: str original_file_path: str unique_id: str
@dataclass class BaseResource(dbtClassMixin): pass
2
0
0
0
0
0
0
0
1
0
0
6
0
0
0
0
7
0
7
1
6
0
7
1
6
0
1
0
0
31,120
fishtown-analytics/dbt
core/dbt/artifacts/resources/base.py
dbt.artifacts.resources.base.Docs
from dbt_common.dataclass_schema import dbtClassMixin from dataclasses import dataclass from typing import List, Optional @dataclass class Docs(dbtClassMixin): show: bool = True node_color: Optional[str] = None
@dataclass class Docs(dbtClassMixin): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
3
2
0
3
3
2
0
1
0
0
31,121
fishtown-analytics/dbt
core/dbt/artifacts/resources/base.py
dbt.artifacts.resources.base.FileHash
from dbt_common.dataclass_schema import dbtClassMixin import hashlib from dataclasses import dataclass @dataclass class FileHash(dbtClassMixin): name: str checksum: str @classmethod def empty(cls): return FileHash(name='none', checksum='') @classmethod def path(cls, path: str): ...
@dataclass class FileHash(dbtClassMixin): @classmethod def empty(cls): pass @classmethod def path(cls, path: str): pass def __eq__(self, other): pass def compare(self, contents: str) -> bool: '''Compare the file contents with the given hash''' pass ...
10
2
5
1
4
1
2
0.29
1
2
0
0
2
0
5
5
37
8
24
11
15
7
21
8
15
3
1
1
8
31,122
fishtown-analytics/dbt
core/dbt/artifacts/resources/base.py
dbt.artifacts.resources.base.GraphResource
from typing import List, Optional from dataclasses import dataclass @dataclass class GraphResource(BaseResource): fqn: List[str]
@dataclass class GraphResource(BaseResource): pass
2
0
0
0
0
0
0
0
1
0
0
8
0
0
0
0
2
0
2
1
1
0
2
1
1
0
2
0
0
31,123
fishtown-analytics/dbt
core/dbt/artifacts/resources/types.py
dbt.artifacts.resources.types.AccessType
from dbt_common.dataclass_schema import StrEnum class AccessType(StrEnum): Private = 'private' Protected = 'protected' Public = 'public' @classmethod def is_valid(cls, item): try: cls(item) except ValueError: return False return True
class AccessType(StrEnum): @classmethod def is_valid(cls, item): pass
3
0
6
0
6
0
2
0
1
1
0
0
0
0
1
1
12
1
11
6
8
0
10
5
8
2
1
1
2
31,124
fishtown-analytics/dbt
core/dbt/artifacts/resources/types.py
dbt.artifacts.resources.types.BatchSize
from dbt_common.dataclass_schema import StrEnum class BatchSize(StrEnum): hour = 'hour' day = 'day' month = 'month' year = 'year' def plural(self) -> str: return str(self) + 's'
class BatchSize(StrEnum): def plural(self) -> str: pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
1
8
1
7
6
5
0
7
6
5
1
1
0
1
31,125
fishtown-analytics/dbt
core/dbt/artifacts/resources/types.py
dbt.artifacts.resources.types.ModelLanguage
from dbt_common.dataclass_schema import StrEnum class ModelLanguage(StrEnum): python = 'python' sql = 'sql'
class ModelLanguage(StrEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
3
2
0
3
3
2
0
1
0
0
31,126
fishtown-analytics/dbt
core/dbt/artifacts/resources/types.py
dbt.artifacts.resources.types.NodeType
from dbt_common.dataclass_schema import StrEnum class NodeType(StrEnum): Model = 'model' Analysis = 'analysis' Test = 'test' Snapshot = 'snapshot' Operation = 'operation' Seed = 'seed' RPCCall = 'rpc' SqlOperation = 'sql_operation' Documentation = 'doc' Source = 'source' Mac...
class NodeType(StrEnum): def pluralize(self) -> str: pass
2
0
8
0
8
0
4
0.07
1
1
0
0
1
0
1
1
29
1
27
20
25
2
25
20
23
4
1
1
4
31,127
fishtown-analytics/dbt
core/dbt/artifacts/resources/types.py
dbt.artifacts.resources.types.RunHookType
from dbt_common.dataclass_schema import StrEnum class RunHookType(StrEnum): Start = 'on-run-start' End = 'on-run-end'
class RunHookType(StrEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
3
2
0
3
3
2
0
1
0
0
31,128
fishtown-analytics/dbt
core/dbt/artifacts/resources/types.py
dbt.artifacts.resources.types.TimePeriod
from dbt_common.dataclass_schema import StrEnum class TimePeriod(StrEnum): minute = 'minute' hour = 'hour' day = 'day' def plural(self) -> str: return str(self) + 's'
class TimePeriod(StrEnum): def plural(self) -> str: pass
2
0
2
0
2
0
1
0
1
1
0
0
1
0
1
1
7
1
6
5
4
0
6
5
4
1
1
0
1
31,129
fishtown-analytics/dbt
core/dbt/artifacts/schemas/base.py
dbt.artifacts.schemas.base.ArtifactMixin
from dbt_common.exceptions import DbtInternalError, DbtRuntimeError import dataclasses @dataclasses.dataclass(init=False) class ArtifactMixin(VersionedSchema, Writable, Readable): metadata: BaseArtifactMetadata @classmethod def validate(cls, data): super().validate(data) if cls.dbt_schema_...
@dataclasses.dataclass(init=False) class ArtifactMixin(VersionedSchema, Writable, Readable): @classmethod def validate(cls, data): pass
4
0
4
0
4
0
2
0
3
1
0
4
0
0
1
7
8
1
7
3
4
0
6
2
4
2
2
1
2
31,130
fishtown-analytics/dbt
core/dbt/artifacts/schemas/base.py
dbt.artifacts.schemas.base.BaseArtifactMetadata
from datetime import datetime, timezone from typing import Any, ClassVar, Dict, Optional, Type, TypeVar from dbt_common.dataclass_schema import dbtClassMixin from dbt_common.events.functions import get_metadata_vars from dbt_common.invocation import get_invocation_id, get_invocation_started_at import dataclasses from d...
@dataclasses.dataclass class BaseArtifactMetadata(dbtClassMixin): def __post_serialize__(self, dct: Dict, context: Optional[Dict]=None): pass
3
0
5
0
5
0
2
0
1
1
0
4
1
0
1
1
12
1
11
6
9
0
11
6
9
2
1
1
2
31,131
fishtown-analytics/dbt
core/dbt/artifacts/schemas/base.py
dbt.artifacts.schemas.base.Readable
from dbt_common.exceptions import DbtInternalError, DbtRuntimeError from dbt_common.clients.system import read_json, write_json class Readable: @classmethod def read(cls, path: str): try: data = read_json(path) except (EnvironmentError, ValueError) as exc: raise DbtRunt...
class Readable: @classmethod def read(cls, path: str): pass
3
0
9
1
8
1
2
0.1
0
2
0
1
0
0
1
1
11
1
10
5
7
1
7
3
5
2
0
1
2
31,132
fishtown-analytics/dbt
core/dbt/artifacts/schemas/base.py
dbt.artifacts.schemas.base.SchemaVersion
import dataclasses @dataclasses.dataclass class SchemaVersion: name: str version: int @property def path(self) -> str: return SCHEMA_PATH.format(name=self.name, version=self.version) def __str__(self) -> str: return BASE_SCHEMAS_URL + self.path
@dataclasses.dataclass class SchemaVersion: @property def path(self) -> str: pass def __str__(self) -> str: pass
5
0
2
0
2
0
1
0
0
1
0
0
2
0
2
2
10
2
8
4
4
0
7
3
4
1
0
0
2
31,133
fishtown-analytics/dbt
core/dbt/artifacts/schemas/base.py
dbt.artifacts.schemas.base.VersionedSchema
import functools from typing import Any, ClassVar, Dict, Optional, Type, TypeVar from dbt_common.exceptions import DbtInternalError, DbtRuntimeError from mashumaro.jsonschema import build_json_schema import dataclasses from dbt.artifacts.exceptions import IncompatibleSchemaError from mashumaro.jsonschema.dialects impor...
@dataclasses.dataclass class VersionedSchema(dbtClassMixin): @classmethod @functools.lru_cache def json_schema(cls) -> Dict[str, Any]: pass @classmethod def is_compatible_version(cls, schema_version): pass @classmethod def read_and_check_versions(cls, path: str): pas...
11
1
10
1
7
2
3
0.19
1
5
2
3
0
0
4
4
49
6
36
16
26
7
26
11
21
5
1
3
10
31,134
fishtown-analytics/dbt
core/dbt/artifacts/schemas/base.py
dbt.artifacts.schemas.base.Writable
from dbt_common.clients.system import read_json, write_json class Writable: def write(self, path: str): write_json(path, self.to_dict(omit_none=False, context={'artifact': True}))
class Writable: def write(self, path: str): pass
2
0
2
0
2
1
1
0.33
0
1
0
2
1
0
1
1
3
0
3
2
1
1
3
2
1
1
0
0
1
31,135
fishtown-analytics/dbt
core/dbt/artifacts/schemas/batch_results.py
dbt.artifacts.schemas.batch_results.BatchResults
from dbt_common.dataclass_schema import dbtClassMixin from typing import List, Tuple from dataclasses import dataclass, field @dataclass class BatchResults(dbtClassMixin): successful: List[BatchType] = field(default_factory=list) failed: List[BatchType] = field(default_factory=list) def __add__(self, othe...
@dataclass class BatchResults(dbtClassMixin): def __add__(self, other: BatchResults) -> BatchResults: pass def __len__(self): pass
4
0
4
0
4
0
1
0
1
0
0
0
2
0
2
2
12
2
10
5
7
0
7
5
4
1
1
0
2
31,136
fishtown-analytics/dbt
core/dbt/artifacts/schemas/catalog/v1/catalog.py
dbt.artifacts.schemas.catalog.v1.catalog.CatalogArtifact
from dbt_common.contracts.metadata import CatalogTable from datetime import datetime from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Union from dbt.artifacts.schemas.base import ArtifactMixin, BaseArtifactMetadata, schema_version @dataclass @schema_version('catalog', 1) class Cat...
@dataclass @schema_version('catalog', 1) class CatalogArtifact(CatalogResults, ArtifactMixin): @classmethod def from_results(cls, generated_at: datetime, nodes: Dict[str, CatalogTable], sources: Dict[str, CatalogTable], compile_results: Optional[Any], errors: Optional[List[str]]) -> 'CatalogArtifact': ...
5
0
16
0
16
0
1
0
2
4
1
0
0
0
1
9
20
1
19
11
9
0
5
3
3
1
3
0
1
31,137
fishtown-analytics/dbt
core/dbt/artifacts/schemas/catalog/v1/catalog.py
dbt.artifacts.schemas.catalog.v1.catalog.CatalogMetadata
from dbt.artifacts.schemas.base import ArtifactMixin, BaseArtifactMetadata, schema_version from dataclasses import dataclass, field @dataclass class CatalogMetadata(BaseArtifactMetadata): dbt_schema_version: str = field(default_factory=lambda: str(CatalogArtifact.dbt_schema_version))
@dataclass class CatalogMetadata(BaseArtifactMetadata): pass
2
0
0
0
0
0
0
0
1
2
1
0
0
0
0
1
4
0
4
2
3
0
2
2
1
0
2
0
0
31,138
fishtown-analytics/dbt
core/dbt/artifacts/schemas/catalog/v1/catalog.py
dbt.artifacts.schemas.catalog.v1.catalog.CatalogResults
from dbt_common.contracts.metadata import CatalogTable from typing import Any, Dict, List, Optional, Union from dataclasses import dataclass, field from dbt_common.dataclass_schema import dbtClassMixin @dataclass class CatalogResults(dbtClassMixin): nodes: Dict[str, CatalogTable] sources: Dict[str, CatalogTabl...
@dataclass class CatalogResults(dbtClassMixin): def __post_serialize__(self, dct: Dict, context: Optional[Dict]=None): pass
3
0
5
0
5
0
2
0
1
1
0
1
1
0
1
1
11
1
10
4
8
0
10
4
8
2
1
1
2
31,139
fishtown-analytics/dbt
core/dbt/artifacts/schemas/freshness/v3/freshness.py
dbt.artifacts.schemas.freshness.v3.freshness.FreshnessErrorEnum
from dbt_common.dataclass_schema import StrEnum, dbtClassMixin class FreshnessErrorEnum(StrEnum): runtime_error = 'runtime error'
class FreshnessErrorEnum(StrEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
1
0
0
31,140
fishtown-analytics/dbt
core/dbt/artifacts/schemas/freshness/v3/freshness.py
dbt.artifacts.schemas.freshness.v3.freshness.FreshnessExecutionResultArtifact
from typing import Any, Dict, List, Optional, Sequence, Union from dataclasses import dataclass, field from dbt.artifacts.schemas.base import ArtifactMixin, BaseArtifactMetadata, VersionedSchema, schema_version @dataclass @schema_version('sources', 3) class FreshnessExecutionResultArtifact(ArtifactMixin, VersionedSche...
@dataclass @schema_version('sources', 3) class FreshnessExecutionResultArtifact(ArtifactMixin, VersionedSchema): @classmethod def from_result(cls, base: FreshnessResult): pass
5
0
11
0
11
0
1
0
2
2
2
0
0
0
1
8
20
1
19
7
13
0
7
3
5
1
3
0
1
31,141
fishtown-analytics/dbt
core/dbt/artifacts/schemas/freshness/v3/freshness.py
dbt.artifacts.schemas.freshness.v3.freshness.FreshnessMetadata
from dataclasses import dataclass, field from dbt.artifacts.schemas.base import ArtifactMixin, BaseArtifactMetadata, VersionedSchema, schema_version @dataclass class FreshnessMetadata(BaseArtifactMetadata): dbt_schema_version: str = field(default_factory=lambda: str(FreshnessExecutionResultArtifact.dbt_schema_vers...
@dataclass class FreshnessMetadata(BaseArtifactMetadata): pass
2
0
0
0
0
0
0
0
1
2
1
0
0
0
0
1
4
0
4
2
3
0
2
2
1
0
2
0
0
31,142
fishtown-analytics/dbt
core/dbt/artifacts/schemas/freshness/v3/freshness.py
dbt.artifacts.schemas.freshness.v3.freshness.FreshnessResult
from typing import Any, Dict, List, Optional, Sequence, Union from dbt.artifacts.schemas.results import ExecutionResult, FreshnessStatus, NodeResult, TimingInfo from datetime import datetime from dataclasses import dataclass, field @dataclass class FreshnessResult(ExecutionResult): metadata: FreshnessMetadata ...
@dataclass class FreshnessResult(ExecutionResult): @classmethod def from_node_results(cls, results: List[FreshnessNodeResult], elapsed_time: float, generated_at: datetime): pass def write(self, path): pass
5
0
5
0
5
0
1
0
1
4
2
0
1
0
2
5
16
2
14
10
5
0
8
4
5
1
2
0
2
31,143
fishtown-analytics/dbt
core/dbt/artifacts/schemas/freshness/v3/freshness.py
dbt.artifacts.schemas.freshness.v3.freshness.PartialSourceFreshnessResult
from dataclasses import dataclass, field from dbt.artifacts.schemas.results import ExecutionResult, FreshnessStatus, NodeResult, TimingInfo @dataclass class PartialSourceFreshnessResult(NodeResult): status: FreshnessStatus @property def skipped(self): return False
@dataclass class PartialSourceFreshnessResult(NodeResult): @property def skipped(self): pass
4
0
2
0
2
0
1
0
1
0
0
0
1
0
1
3
6
1
5
3
2
0
4
2
2
1
3
0
1
31,144
fishtown-analytics/dbt
core/dbt/artifacts/schemas/freshness/v3/freshness.py
dbt.artifacts.schemas.freshness.v3.freshness.SourceFreshnessOutput
from dbt.artifacts.resources import FreshnessThreshold from dataclasses import dataclass, field from dbt.artifacts.schemas.results import ExecutionResult, FreshnessStatus, NodeResult, TimingInfo from typing import Any, Dict, List, Optional, Sequence, Union from dbt_common.dataclass_schema import StrEnum, dbtClassMixin ...
@dataclass class SourceFreshnessOutput(dbtClassMixin): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
11
0
11
1
10
0
11
1
10
0
1
0
0
31,145
fishtown-analytics/dbt
core/dbt/artifacts/schemas/freshness/v3/freshness.py
dbt.artifacts.schemas.freshness.v3.freshness.SourceFreshnessResult
from dataclasses import dataclass, field from dbt.contracts.graph.nodes import SourceDefinition from datetime import datetime from dbt.artifacts.schemas.results import ExecutionResult, FreshnessStatus, NodeResult, TimingInfo @dataclass class SourceFreshnessResult(NodeResult): node: SourceDefinition status: Fre...
@dataclass class SourceFreshnessResult(NodeResult): @property def skipped(self): pass
4
0
2
0
2
0
1
0
1
0
0
0
1
0
1
3
10
1
9
3
6
0
8
2
6
1
3
0
1
31,146
fishtown-analytics/dbt
core/dbt/artifacts/schemas/freshness/v3/freshness.py
dbt.artifacts.schemas.freshness.v3.freshness.SourceFreshnessRuntimeError
from dataclasses import dataclass, field from dbt_common.dataclass_schema import StrEnum, dbtClassMixin from typing import Any, Dict, List, Optional, Sequence, Union @dataclass class SourceFreshnessRuntimeError(dbtClassMixin): unique_id: str error: Optional[Union[str, int]] status: FreshnessErrorEnum
@dataclass class SourceFreshnessRuntimeError(dbtClassMixin): pass
2
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
31,147
fishtown-analytics/dbt
core/dbt/artifacts/schemas/manifest/v12/manifest.py
dbt.artifacts.schemas.manifest.v12.manifest.ManifestMetadata
from dataclasses import dataclass, field from dbt.artifacts.resources.v1.components import Quoting from uuid import UUID from typing import Any, Dict, Iterable, List, Mapping, Optional, Tuple, Union from dbt.artifacts.schemas.base import ArtifactMixin, BaseArtifactMetadata, get_artifact_dbt_version, get_artifact_schema...
@dataclass class ManifestMetadata(BaseArtifactMetadata): '''Metadata for the manifest.''' @classmethod def default(cls): pass
4
1
4
0
4
0
1
0.03
1
2
1
0
0
0
1
2
40
2
37
9
34
1
9
8
7
1
2
0
1
31,148
fishtown-analytics/dbt
core/dbt/artifacts/schemas/manifest/v12/manifest.py
dbt.artifacts.schemas.manifest.v12.manifest.WritableManifest
from dbt.artifacts.schemas.upgrades import upgrade_manifest_json, upgrade_manifest_json_dbt_version from dbt.version import __version__ from dataclasses import dataclass, field from dbt.artifacts.resources import Analysis, Documentation, Exposure, GenericTest, Group, HookNode, Macro, Metric, Model, SavedQuery, Seed, Se...
null
9
1
9
0
7
2
1
0.07
1
2
0
0
0
0
3
10
93
3
84
24
77
6
26
21
22
2
3
1
4
31,149
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.BaseResult
from dbt_common.dataclass_schema import StrEnum, dbtClassMixin from dbt_common.utils import cast_to_int, cast_to_str from typing import Any, Callable, Dict, List, Optional, Sequence, Union from dataclasses import dataclass @dataclass class BaseResult(dbtClassMixin): status: Union[RunStatus, TestStatus, FreshnessSt...
@dataclass class BaseResult(dbtClassMixin): @classmethod def __pre_deserialize__(cls, data): pass def to_msg_dict(self): pass
5
0
9
0
9
0
2
0
1
2
0
1
1
0
2
2
29
2
27
5
23
0
18
4
15
3
1
1
4
31,150
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.ExecutionResult
from typing import Any, Callable, Dict, List, Optional, Sequence, Union from dbt_common.dataclass_schema import StrEnum, dbtClassMixin from dataclasses import dataclass @dataclass class ExecutionResult(dbtClassMixin): results: Sequence[BaseResult] elapsed_time: float def __len__(self): return len(...
@dataclass class ExecutionResult(dbtClassMixin): def __len__(self): pass def __iter__(self): pass def __getitem__(self, idx): pass
5
0
2
0
2
0
1
0
1
0
0
2
3
0
3
3
12
3
9
4
5
0
9
4
5
1
1
0
3
31,151
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.FreshnessStatus
from dbt_common.dataclass_schema import StrEnum, dbtClassMixin class FreshnessStatus(StrEnum): Pass = NodeStatus.Pass Warn = NodeStatus.Warn Error = NodeStatus.Error RuntimeErr = NodeStatus.RuntimeErr
class FreshnessStatus(StrEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
5
4
0
5
5
4
0
1
0
0
31,152
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.NodeResult
from dataclasses import dataclass from dbt.contracts.graph.nodes import ResultNode @dataclass class NodeResult(BaseResult): node: ResultNode
@dataclass class NodeResult(BaseResult): pass
2
0
0
0
0
0
0
0
1
0
0
2
0
0
0
2
2
0
2
1
1
0
2
1
1
0
2
0
0
31,153
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.NodeStatus
from dbt_common.dataclass_schema import StrEnum, dbtClassMixin class NodeStatus(StrEnum): Success = 'success' Error = 'error' Fail = 'fail' Warn = 'warn' Skipped = 'skipped' PartialSuccess = 'partial success' Pass = 'pass' RuntimeErr = 'runtime error' NoOp = 'no-op'
class NodeStatus(StrEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
10
0
10
10
9
0
10
10
9
0
1
0
0
31,154
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.RunStatus
from dbt_common.dataclass_schema import StrEnum, dbtClassMixin class RunStatus(StrEnum): Success = NodeStatus.Success Error = NodeStatus.Error Skipped = NodeStatus.Skipped PartialSuccess = NodeStatus.PartialSuccess NoOp = NodeStatus.NoOp
class RunStatus(StrEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
6
5
0
6
6
5
0
1
0
0
31,155
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.RunningStatus
from dbt_common.dataclass_schema import StrEnum, dbtClassMixin class RunningStatus(StrEnum): Started = 'started' Compiling = 'compiling' Executing = 'executing'
class RunningStatus(StrEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
4
3
0
4
4
3
0
1
0
0
31,156
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.TestStatus
from dbt_common.dataclass_schema import StrEnum, dbtClassMixin class TestStatus(StrEnum): __test__ = False Pass = NodeStatus.Pass Error = NodeStatus.Error Fail = NodeStatus.Fail Warn = NodeStatus.Warn Skipped = NodeStatus.Skipped
class TestStatus(StrEnum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
0
7
7
6
0
7
7
6
0
1
0
0
31,157
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.TimingInfo
from datetime import datetime, timezone from dataclasses import dataclass from dbt_common.dataclass_schema import StrEnum, dbtClassMixin from dbt_common.events.helpers import datetime_to_json_string from typing import Any, Callable, Dict, List, Optional, Sequence, Union @dataclass class TimingInfo(dbtClassMixin): ...
@dataclass class TimingInfo(dbtClassMixin): ''' Represents a step in the execution of a node. `name` should be one of: compile, execute, or other Do not call directly, use `collect_timing_info` instead. ''' def begin(self): pass def end(self): pass def to_msg_dict(self...
5
1
4
0
4
0
2
0.33
1
2
0
0
3
0
3
3
24
4
15
7
11
5
15
7
11
3
1
1
5
31,158
fishtown-analytics/dbt
core/dbt/artifacts/schemas/results.py
dbt.artifacts.schemas.results.collect_timing_info
from typing import Any, Callable, Dict, List, Optional, Sequence, Union class collect_timing_info: def __init__(self, name: str, callback: Callable[[TimingInfo], None]) -> None: self.timing_info = TimingInfo(name=name) self.callback = callback def __enter__(self): self.timing_info.beg...
class collect_timing_info: def __init__(self, name: str, callback: Callable[[TimingInfo], None]) -> None: pass def __enter__(self): pass def __exit__(self, exc_type, exc_value, traceback): pass
4
0
3
0
3
0
1
0
0
2
1
0
3
2
3
3
11
2
9
6
5
0
9
6
5
1
0
0
3
31,159
fishtown-analytics/dbt
core/dbt/artifacts/schemas/run/v5/run.py
dbt.artifacts.schemas.run.v5.run.RunExecutionResult
from dataclasses import dataclass, field from dbt.artifacts.schemas.results import BaseResult, ExecutionResult, NodeResult, ResultNode, RunStatus from typing import Any, Dict, Iterable, Optional, Sequence, Tuple from datetime import datetime, timezone @dataclass class RunExecutionResult(ExecutionResult): results: ...
@dataclass class RunExecutionResult(ExecutionResult): def write(self, path: str): pass
3
0
8
0
8
0
1
0
1
2
1
0
1
1
1
1
15
1
14
8
10
0
7
5
5
1
1
0
1
31,160
fishtown-analytics/dbt
core/dbt/artifacts/schemas/run/v5/run.py
dbt.artifacts.schemas.run.v5.run.RunResult
import threading from dbt.artifacts.schemas.results import BaseResult, ExecutionResult, NodeResult, ResultNode, RunStatus from dbt.artifacts.schemas.batch_results import BatchResults from typing import Any, Dict, Iterable, Optional, Sequence, Tuple from dataclasses import dataclass, field @dataclass class RunResult(No...
@dataclass class RunResult(NodeResult): @property def skipped(self): pass @classmethod def from_node(cls, node: ResultNode, status: RunStatus, message: Optional[str]): pass
6
0
8
0
8
0
1
0
1
1
0
0
1
0
2
2
24
2
22
8
17
0
8
6
5
1
1
0
2
31,161
fishtown-analytics/dbt
core/dbt/artifacts/schemas/run/v5/run.py
dbt.artifacts.schemas.run.v5.run.RunResultOutput
from dbt.artifacts.schemas.results import BaseResult, ExecutionResult, NodeResult, ResultNode, RunStatus from typing import Any, Dict, Iterable, Optional, Sequence, Tuple from dbt.artifacts.schemas.batch_results import BatchResults from dataclasses import dataclass, field @dataclass class RunResultOutput(BaseResult): ...
@dataclass class RunResultOutput(BaseResult): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
2
5
0
6
2
5
0
1
0
0
31,162
fishtown-analytics/dbt
core/dbt/artifacts/schemas/run/v5/run.py
dbt.artifacts.schemas.run.v5.run.RunResultsArtifact
from dbt_common.clients.system import write_json from dataclasses import dataclass, field from dbt_common.constants import SECRET_ENV_PREFIX from dbt.artifacts.schemas.results import BaseResult, ExecutionResult, NodeResult, ResultNode, RunStatus from datetime import datetime, timezone from typing import Any, Dict, Iter...
@dataclass @schema_version('run-results', 6) class RunResultsArtifact(ExecutionResult, ArtifactMixin): @classmethod def from_execution_results(cls, results: Sequence[RunResult], elapsed_time: float, generated_at: datetime, args: Dict): pass @classmethod def compatible_previous_versions(cls) -> ...
10
1
14
1
11
2
2
0.17
2
6
2
0
1
0
4
11
65
9
48
22
34
8
23
12
18
3
3
2
6
31,163
fishtown-analytics/dbt
core/dbt/artifacts/schemas/run/v5/run.py
dbt.artifacts.schemas.run.v5.run.RunResultsMetadata
from dataclasses import dataclass, field from dbt.artifacts.schemas.base import ArtifactMixin, BaseArtifactMetadata, get_artifact_schema_version, schema_version @dataclass class RunResultsMetadata(BaseArtifactMetadata): dbt_schema_version: str = field(default_factory=lambda: str(RunResultsArtifact.dbt_schema_versi...
@dataclass class RunResultsMetadata(BaseArtifactMetadata): pass
2
0
0
0
0
0
0
0
1
2
1
0
0
0
0
1
4
0
4
2
3
0
2
2
1
0
2
0
0
31,164
fishtown-analytics/dbt
core/dbt/cli/exceptions.py
dbt.cli.exceptions.CliException
from typing import IO, List, Optional, Union from click.exceptions import ClickException from dbt.utils import ExitCodes class CliException(ClickException): """The base exception class for our implementation of the click CLI. The exit_code attribute is used by click to determine which exit code to produce ...
class CliException(ClickException): '''The base exception class for our implementation of the click CLI. The exit_code attribute is used by click to determine which exit code to produce after an invocation.''' def __init__(self, exit_code: ExitCodes) -> None: pass def show(self, _file: Op...
3
1
2
0
2
1
1
1.2
1
2
1
2
2
1
2
2
12
2
5
4
2
6
5
4
2
1
1
0
2
31,165
fishtown-analytics/dbt
core/dbt/cli/exceptions.py
dbt.cli.exceptions.DbtInternalException
class DbtInternalException(Exception): pass
class DbtInternalException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
31,166
fishtown-analytics/dbt
core/dbt/cli/exceptions.py
dbt.cli.exceptions.DbtUsageException
class DbtUsageException(Exception): pass
class DbtUsageException(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
2
0
2
1
1
0
2
1
1
0
3
0
0
31,167
fishtown-analytics/dbt
core/dbt/cli/exceptions.py
dbt.cli.exceptions.ExceptionExit
from dbt.utils import ExitCodes class ExceptionExit(CliException): """This class wraps any exception that does not contain results thrown while invoking dbt.""" def __init__(self, exception: Exception) -> None: super().__init__(ExitCodes.UnhandledError) self.exception = exception
class ExceptionExit(CliException): '''This class wraps any exception that does not contain results thrown while invoking dbt.''' def __init__(self, exception: Exception) -> None: pass
2
1
3
0
3
0
1
0.25
1
3
1
0
1
1
1
3
6
1
4
3
2
1
4
3
2
1
2
0
1
31,168
fishtown-analytics/dbt
core/dbt/cli/exceptions.py
dbt.cli.exceptions.ResultExit
from dbt.contracts.results import RunExecutionResult from typing import IO, List, Optional, Union from dbt.contracts.graph.manifest import Manifest from dbt.utils import ExitCodes from dbt.artifacts.schemas.catalog import CatalogArtifact class ResultExit(CliException): """This class wraps any exception that contai...
class ResultExit(CliException): '''This class wraps any exception that contains results while invoking dbt, or the results of an invocation that did not succeed but did not throw any exceptions.''' def __init__(self, result: Union[bool, CatalogArtifact, List[str], Manifest, None, RunExecutionResult]=N...
2
1
13
0
13
6
1
0.57
1
7
4
0
1
1
1
3
17
1
14
13
2
8
4
3
2
1
2
0
1
31,169
fishtown-analytics/dbt
core/dbt/cli/flags.py
dbt.cli.flags.Flags
from importlib import import_module from dataclasses import dataclass from dbt.cli.resolvers import default_log_path, default_project_dir from click.core import Group, ParameterSource from dbt.cli.types import Command as CliCommand from dbt.cli.exceptions import DbtUsageException import os from datetime import datetime...
@dataclass(frozen=True) class Flags: '''Primary configuration artifact for running dbt''' def __init__(self, ctx: Optional[Context]=None, project_flags: Optional[ProjectFlags]=None) -> None: pass def _get_params_by_source(ctx: Context, source_type: ParameterSource): '''Generate...
14
6
39
4
26
9
5
0.31
0
13
2
0
8
0
9
9
335
45
223
60
201
70
147
48
135
16
0
3
54
31,170
fishtown-analytics/dbt
core/dbt/cli/main.py
dbt.cli.main.dbtRunner
from click.exceptions import NoSuchOption, UsageError from click.exceptions import Exit as ClickExit from dbt_common.events.base_types import EventMsg from dbt.cli.exceptions import DbtInternalException, DbtUsageException from dbt.contracts.graph.manifest import Manifest from click.exceptions import BadOptionUsage from...
class dbtRunner: def __init__(self, manifest: Optional[Manifest]=None, callbacks: Optional[List[Callable[[EventMsg], None]]]=None) -> None: pass def invoke(self, args: List[str], **kwargs) -> dbtRunnerResult: pass
3
0
28
2
26
1
5
0.04
0
8
6
1
2
2
2
2
57
4
52
13
45
2
27
8
24
8
0
2
10
31,171
fishtown-analytics/dbt
core/dbt/cli/main.py
dbt.cli.main.dbtRunnerResult
from dataclasses import dataclass from typing import Callable, List, Optional, Union from dbt.artifacts.schemas.run import RunExecutionResult from dbt.artifacts.schemas.catalog import CatalogArtifact from dbt.contracts.graph.manifest import Manifest @dataclass class dbtRunnerResult: """Contains the result of an in...
@dataclass class dbtRunnerResult: '''Contains the result of an invocation of the dbtRunner''' pass
2
1
0
0
0
0
0
0.64
0
0
0
0
0
0
0
0
14
2
11
3
10
7
4
3
3
0
0
0
0
31,172
fishtown-analytics/dbt
core/dbt/cli/option_types.py
dbt.cli.option_types.ChoiceTuple
from click import Choice, Context, Parameter, ParamType class ChoiceTuple(Choice): name = 'CHOICE_TUPLE' def convert(self, value, param, ctx): if not isinstance(value, str): for value_item in value: super().convert(value_item, param, ctx) else: super().c...
class ChoiceTuple(Choice): def convert(self, value, param, ctx): pass
2
0
8
1
7
0
3
0
1
2
0
0
1
0
1
1
11
2
9
4
7
0
8
4
6
3
1
2
3
31,173
fishtown-analytics/dbt
core/dbt/cli/option_types.py
dbt.cli.option_types.Package
from click import Choice, Context, Parameter, ParamType class Package(ParamType): """The Click STRING type. Converts string into dict with package name and version. Example package: package-name@1.0.0 package-name """ name = 'NewPackage' def convert(self, value, param, ctx): ...
class Package(ParamType): '''The Click STRING type. Converts string into dict with package name and version. Example package: package-name@1.0.0 package-name ''' def convert(self, value, param, ctx): pass
2
1
9
0
8
1
3
0.6
1
3
0
0
1
0
1
1
18
2
10
4
8
6
10
4
8
3
1
1
3
31,174
fishtown-analytics/dbt
core/dbt/cli/option_types.py
dbt.cli.option_types.Truthy
from click import Choice, Context, Parameter, ParamType class Truthy(ParamType): """The Click Truthy type. Converts strings into a "truthy" type""" name = 'TRUTHY' def convert(self, value, param, ctx): if not isinstance(value, (str, None)): self.fail(f'Cannot load TRUTHY from type {ty...
class Truthy(ParamType): '''The Click Truthy type. Converts strings into a "truthy" type''' def convert(self, value, param, ctx): pass
2
1
9
1
7
1
3
0.22
1
2
0
0
1
0
1
1
14
3
9
3
7
2
8
3
6
3
1
1
3
31,175
fishtown-analytics/dbt
core/dbt/cli/option_types.py
dbt.cli.option_types.WarnErrorOptionsType
from dbt_common.helper_types import WarnErrorOptionsV2 from dbt.events import ALL_EVENT_NAMES from dbt.config.utils import normalize_warn_error_options, parse_cli_yaml_string class WarnErrorOptionsType(YAML): """The Click WarnErrorOptions type. Converts YAML strings into objects.""" name = 'WarnErrorOptionsTyp...
class WarnErrorOptionsType(YAML): '''The Click WarnErrorOptions type. Converts YAML strings into objects.''' def convert(self, value, param, ctx): pass
2
1
11
1
9
1
1
0.18
1
1
0
0
1
0
1
2
16
3
11
4
9
2
6
4
4
1
2
0
1
31,176
fishtown-analytics/dbt
core/dbt/cli/option_types.py
dbt.cli.option_types.YAML
from dbt_common.exceptions import DbtValidationError from dbt.exceptions import OptionNotYamlDictError, ValidationError from click import Choice, Context, Parameter, ParamType from dbt.config.utils import normalize_warn_error_options, parse_cli_yaml_string class YAML(ParamType): """The Click YAML type. Converts YA...
class YAML(ParamType): '''The Click YAML type. Converts YAML strings into objects.''' def convert(self, value, param, ctx): pass
2
1
9
0
8
1
4
0.2
1
3
1
1
1
0
1
1
14
2
10
4
8
2
10
4
8
4
1
1
4
31,177
fishtown-analytics/dbt
core/dbt/cli/options.py
dbt.cli.options.MultiOption
import click import inspect from click.parser import OptionParser, ParsingState from dbt.cli.option_types import ChoiceTuple import typing as t from click import Context class MultiOption(click.Option): def __init__(self, *args, **kwargs) -> None: self.save_other_options = kwargs.pop('save_other_options',...
class MultiOption(click.Option): def __init__(self, *args, **kwargs) -> None: pass def add_to_parser(self, parser: OptionParser, ctx: Context): pass def parser_process(value: str, state: ParsingState): pass def type_cast_value(self, ctx: Context, value: t.Any) ->...
6
0
18
1
15
3
3
0.23
1
5
1
0
3
3
3
3
68
6
53
21
47
12
50
21
44
6
1
4
16
31,178
fishtown-analytics/dbt
core/dbt/cli/types.py
dbt.cli.types.Command
from enum import Enum from typing import List from dbt_common.exceptions import DbtInternalError class Command(Enum): BUILD = 'build' CLEAN = 'clean' COMPILE = 'compile' CLONE = 'clone' DOCS_GENERATE = 'generate' DOCS_SERVE = 'serve' DEBUG = 'debug' DEPS = 'deps' INIT = 'init' L...
class Command(Enum): @classmethod def from_str(cls, s: str) -> 'Command': pass def to_list(self) -> List[str]: pass
4
0
6
0
6
0
2
0
1
2
0
0
1
0
2
51
34
2
32
23
28
0
27
22
24
2
4
1
3
31,179
fishtown-analytics/dbt
core/dbt/clients/jinja.py
dbt.clients.jinja.MacroGenerator
from dbt_common.clients.jinja import CallableMacroGenerator, MacroProtocol, get_template, render_template from typing import Any, Dict, List, NoReturn, Optional, Tuple, Union from contextlib import contextmanager class MacroGenerator(CallableMacroGenerator): def __init__(self, macro: MacroProtocol, context: Optio...
class MacroGenerator(CallableMacroGenerator): def __init__(self, macro: MacroProtocol, context: Optional[Dict[str, Any]]=None, node: Optional[Any]=None, stack: Optional[MacroStack]=None) -> None: pass @contextmanager def track_call(self): pass def __call__(self, *args, **kwargs): ...
5
0
9
0
9
1
2
0.14
1
4
1
1
3
2
3
3
34
2
28
15
17
4
19
8
15
3
1
2
5
31,180
fishtown-analytics/dbt
core/dbt/clients/jinja.py
dbt.clients.jinja.MacroStack
from dbt.exceptions import DbtInternalError, MaterializtionMacroNotUsedError, NoSupportedLanguagesFoundError import threading class MacroStack(threading.local): def __init__(self): super().__init__() self.call_stack = [] @property def depth(self) -> int: return len(self.call_stack...
class MacroStack(threading.local): def __init__(self): pass @property def depth(self) -> int: pass def push(self, name): pass def pop(self, name): pass
6
0
3
0
3
0
1
0
1
2
0
0
4
1
4
8
16
3
13
8
7
0
12
7
7
2
1
1
5
31,181
fishtown-analytics/dbt
core/dbt/clients/jinja.py
dbt.clients.jinja.UnitTestMacroGenerator
from typing import Any, Dict, List, NoReturn, Optional, Tuple, Union class UnitTestMacroGenerator(MacroGenerator): def __init__(self, macro_generator: MacroGenerator, call_return_value: Any) -> None: super().__init__(macro_generator.macro, macro_generator.context, macro_generator.node, macro_generator.sta...
class UnitTestMacroGenerator(MacroGenerator): def __init__(self, macro_generator: MacroGenerator, call_return_value: Any) -> None: pass def __call__(self, *args, **kwargs): pass
3
0
8
0
8
0
1
0.06
1
2
0
0
2
1
2
5
18
1
16
8
9
1
7
4
4
1
2
1
2
31,182
fishtown-analytics/dbt
core/dbt/compilation.py
dbt.compilation.Compiler
from dbt_common.clients.system import make_directory from dbt_common.invocation import get_invocation_id from dbt_common.events.types import Note from dbt.node_types import ModelLanguage, NodeType from dbt.contracts.graph.nodes import GenericTestNode, GraphMemberNode, InjectedCTE, ManifestNode, ManifestSQLNode, ModelNo...
class Compiler: def __init__(self, config) -> None: pass def initialize(self): pass def _create_node_context(self, node: ManifestSQLNode, manifest: Manifest, extra_context: Dict[str, Any]) -> Dict[str, Any]: pass def add_ephemeral_prefix(self, name: str): pass d...
12
2
25
3
17
5
4
0.31
0
19
14
0
11
1
11
11
298
47
193
69
154
60
131
41
118
11
0
3
41
31,183
fishtown-analytics/dbt
core/dbt/compilation.py
dbt.compilation.Linker
from dbt.contracts.graph.manifest import Manifest, UniqueID from dbt.flags import get_flags from dbt.graph import Graph import pickle from typing import Any, Dict, Iterable, List, Optional, Set, Tuple from dbt.node_types import ModelLanguage, NodeType from dbt.contracts.graph.nodes import GenericTestNode, GraphMemberNo...
class Linker: def __init__(self, data=None) -> None: pass def edges(self): pass def nodes(self): pass def find_cycles(self): pass def dependency(self, node1, node2): '''indicate that node1 depends on node2''' pass def add_node(self, node): ...
19
4
19
2
11
7
4
0.64
0
14
4
0
14
1
16
16
328
40
176
84
149
112
152
72
135
11
0
6
62
31,184
fishtown-analytics/dbt
core/dbt/compilation.py
dbt.compilation.SeenDetails
from dbt.contracts.graph.manifest import Manifest, UniqueID from typing import Any, Dict, Iterable, List, Optional, Set, Tuple import dataclasses @dataclasses.dataclass class SeenDetails: node_id: UniqueID visits: int = 0 ancestors: Set[UniqueID] = dataclasses.field(default_factory=set) awaits_tests: S...
@dataclasses.dataclass class SeenDetails: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
7
0
7
4
6
0
5
4
4
0
0
0
0
31,185
fishtown-analytics/dbt
core/dbt/config/profile.py
dbt.config.profile.Profile
from dbt_common.dataclass_schema import ValidationError from dbt.events.types import MissingProfileTarget from .renderer import ProfileRenderer from typing import Any, Dict, Optional, Tuple from dbt.adapters.contracts.connection import Credentials, HasCredentials from dbt.contracts.project import ProfileConfig from dbt...
@dataclass(init=False) class Profile(HasCredentials): def __init__(self, profile_name: str, target_name: str, threads: int, credentials: Credentials) -> None: '''Explicitly defining `__init__` to work around bug in Python 3.9.7 https://bugs.python.org/issue45081 ''' pass def to...
24
7
24
2
16
6
2
0.36
1
13
6
2
5
0
13
13
353
37
233
99
162
85
110
42
93
4
1
2
33
31,186
fishtown-analytics/dbt
core/dbt/config/project.py
dbt.config.project.IsFQNResource
from typing import Any, Dict, List, Mapping, Optional, TypeVar, Union from dbt.node_types import NodeType from typing_extensions import Protocol, runtime_checkable @runtime_checkable class IsFQNResource(Protocol): fqn: List[str] resource_type: NodeType package_name: str
@runtime_checkable class IsFQNResource(Protocol): pass
2
0
0
0
0
0
0
0
1
0
0
1
0
0
0
22
4
0
4
1
3
0
4
1
3
0
4
0
0
31,187
fishtown-analytics/dbt
core/dbt/config/project.py
dbt.config.project.PartialProject
from dbt import deprecations from dbt.contracts.project import PackageConfig from dbt.constants import DBT_PROJECT_FILE_NAME, DEPENDENCIES_FILE_NAME, PACKAGE_LOCK_HASH_KEY, PACKAGES_FILE_NAME from .renderer import DbtProjectYamlRenderer, PackageRenderer from dbt.contracts.project import ProjectFlags, ProjectPackageMeta...
@dataclass class PartialProject(RenderComponents): def render_profile_name(self, renderer) -> Optional[str]: pass def get_rendered(self, renderer: DbtProjectYamlRenderer) -> RenderComponents: pass def render_profile_name(self, renderer) -> Optional[str]: pass def render_packa...
12
1
34
2
29
3
3
0.1
1
13
10
0
6
2
8
8
304
23
255
83
228
26
127
60
118
10
1
3
25
31,188
fishtown-analytics/dbt
core/dbt/config/project.py
dbt.config.project.Project
from .renderer import DbtProjectYamlRenderer, PackageRenderer from dbt.contracts.project import ProjectFlags, ProjectPackageMetadata, SemverString from dbt.contracts.project import PackageConfig from typing import Any, Dict, List, Mapping, Optional, TypeVar, Union from dataclasses import dataclass, field import os from...
@dataclass class Project: @property def all_source_paths(self) -> List[str]: pass @property def generic_test_paths(self): pass @property def fixture_paths(self): pass def __str__(self): pass def __eq__(self, other): pass def to_project_conf...
20
2
9
0
8
1
2
0.09
0
7
4
1
12
0
13
13
186
17
155
35
130
14
96
23
82
3
0
2
24
31,189
fishtown-analytics/dbt
core/dbt/config/project.py
dbt.config.project.RenderComponents
from typing import Any, Dict, List, Mapping, Optional, TypeVar, Union from dataclasses import dataclass, field @dataclass class RenderComponents: project_dict: Dict[str, Any] = field(metadata=dict(description='The project dictionary')) packages_dict: Dict[str, Any] = field(metadata=dict(description='The packag...
@dataclass class RenderComponents: pass
2
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
4
0
4
4
3
0
4
4
3
0
0
0
0
31,190
fishtown-analytics/dbt
core/dbt/config/project.py
dbt.config.project.VarProvider
from dbt.utils import MultiDict, coerce_dict_str, md5 from typing import Any, Dict, List, Mapping, Optional, TypeVar, Union class VarProvider: """Var providers are tied to a particular Project.""" def __init__(self, vars: Dict[str, Dict[str, Any]]) -> None: self.vars = vars def vars_for(self, nod...
class VarProvider: '''Var providers are tied to a particular Project.''' def __init__(self, vars: Dict[str, Dict[str, Any]]) -> None: pass def vars_for(self, node: IsFQNResource, adapter_type: str) -> Mapping[str, Any]: pass def to_dict(self): pass
4
1
3
0
3
0
1
0.22
0
4
2
0
3
1
3
3
14
3
9
6
5
2
9
6
5
1
0
0
3
31,191
fishtown-analytics/dbt
core/dbt/config/renderer.py
dbt.config.renderer.BaseRenderer
from dbt_common.utils import deep_map_render from dbt_common.clients.jinja import catch_jinja from dbt_common.exceptions import CompilationError, RecursionError from typing import Any, Callable, Dict, Optional, Tuple, Union from dbt.exceptions import DbtProjectError from datetime import date from dbt.clients.jinja impo...
class BaseRenderer: def __init__(self, context: Dict[str, Any]) -> None: pass @property def name(self): pass def should_render_keypath(self, keypath: Keypath) -> bool: pass def render_entry(self, value: Any, keypath: Keypath) -> Any: pass def render_value(sel...
8
0
5
0
4
0
2
0.04
0
5
1
3
6
1
6
6
36
7
28
11
20
1
25
9
18
4
0
2
11
31,192
fishtown-analytics/dbt
core/dbt/config/renderer.py
dbt.config.renderer.DbtProjectYamlRenderer
from dbt.context.base import BaseContext from dbt.constants import DEPENDENCIES_FILE_NAME, SECRET_PLACEHOLDER from dbt.context.target import TargetContext from dbt.adapters.contracts.connection import HasCredentials from typing import Any, Callable, Dict, Optional, Tuple, Union class DbtProjectYamlRenderer(BaseRendere...
class DbtProjectYamlRenderer(BaseRenderer): def __init__(self, profile: Optional[HasCredentials]=None, cli_vars: Optional[Dict[str, Any]]=None) -> None: pass @property def name(self): '''Project config''' pass def get_package_renderer(self) -> BaseRenderer: pass d...
10
3
8
1
6
2
2
0.27
1
7
3
0
8
1
8
14
75
12
51
25
35
14
42
18
33
7
1
2
17
31,193
fishtown-analytics/dbt
core/dbt/config/renderer.py
dbt.config.renderer.PackageRenderer
class PackageRenderer(SecretRenderer): @property def name(self): return 'Packages config'
class PackageRenderer(SecretRenderer): @property def name(self): pass
3
0
2
0
2
0
1
0
1
0
0
0
1
0
1
10
4
0
4
3
1
0
3
2
1
1
2
0
1
31,194
fishtown-analytics/dbt
core/dbt/config/renderer.py
dbt.config.renderer.ProfileRenderer
class ProfileRenderer(SecretRenderer): @property def name(self): return 'Profile'
class ProfileRenderer(SecretRenderer): @property def name(self): pass
3
0
2
0
2
0
1
0
1
0
0
0
1
0
1
10
4
0
4
3
1
0
3
2
1
1
2
0
1
31,195
fishtown-analytics/dbt
core/dbt/config/renderer.py
dbt.config.renderer.ProjectPostprocessor
from typing import Any, Callable, Dict, Optional, Tuple, Union class ProjectPostprocessor(Dict[Keypath, Callable[[Any], Any]]): def __init__(self) -> None: super().__init__() self['on-run-start',] = _list_if_none_or_string self['on-run-end',] = _list_if_none_or_string for k in ('mo...
class ProjectPostprocessor(Dict[Keypath, Callable[[Any], Any]]): def __init__(self) -> None: pass def postprocess(self, value: Any, key: Keypath) -> Any: pass
3
0
9
2
8
0
2
0
1
2
0
0
2
0
2
2
20
4
16
5
13
0
16
5
13
2
1
1
4
31,196
fishtown-analytics/dbt
core/dbt/config/renderer.py
dbt.config.renderer.SecretRenderer
from dbt.constants import DEPENDENCIES_FILE_NAME, SECRET_PLACEHOLDER from typing import Any, Callable, Dict, Optional, Tuple, Union from dbt_common.constants import SECRET_ENV_PREFIX from dbt_common.context import get_invocation_context from dbt.context.secret import SecretContext import re class SecretRenderer(BaseRe...
class SecretRenderer(BaseRenderer): def __init__(self, cli_vars: Dict[str, Any]={}) -> None: pass @property def name(self): pass def render_value(self, value: Any, keypath: Optional[Keypath]=None) -> Any: pass
5
0
13
1
9
3
2
0.3
1
5
1
2
3
1
3
9
43
4
30
14
25
9
24
12
20
5
1
2
7
31,197
fishtown-analytics/dbt
core/dbt/config/runtime.py
dbt.config.runtime.RuntimeConfig
from dbt.adapters.contracts.connection import AdapterRequiredConfig, Credentials, HasCredentials from typing import Any, Dict, Iterable, Iterator, Mapping, MutableSet, Optional, Tuple, Type from .profile import Profile from copy import deepcopy from dbt.events.types import UnusedResourceConfigPath from dbt.contracts.gr...
@dataclass class RuntimeConfig(Project, Profile, AdapterRequiredConfig): def __post_init__(self): pass @classmethod def get_profile(cls, project_root: str, cli_vars: Dict[str, Any], args: Any) -> Profile: pass @classmethod def from_parts(cls, project: Project, profile: Profile, args...
23
7
17
1
14
3
2
0.2
3
19
8
0
13
1
17
43
328
33
246
86
199
50
108
54
90
6
2
3
40
31,198
fishtown-analytics/dbt
core/dbt/config/runtime.py
dbt.config.runtime.UnsetCredentials
from dbt.adapters.contracts.connection import AdapterRequiredConfig, Credentials, HasCredentials class UnsetCredentials(Credentials): def __init__(self) -> None: super().__init__('', '') @property def type(self): return None @property def unique_field(self): return None ...
class UnsetCredentials(Credentials): def __init__(self) -> None: pass @property def type(self): pass @property def unique_field(self): pass def connection_info(self, *args, **kwargs): pass def _connection_keys(self): pass
8
0
2
0
2
0
1
0
1
1
0
0
5
0
5
5
17
4
13
8
5
0
11
6
5
1
1
0
5
31,199
fishtown-analytics/dbt
core/dbt/config/runtime.py
dbt.config.runtime.UnsetProfile
from dbt_common.helper_types import DictDefaultEmptyStr, FQNPath, PathSet from dbt.exceptions import ConfigContractBrokenError, DbtProjectError, DbtRuntimeError, NonUniquePackageNameError, UninstalledPackagesFoundError from .profile import Profile class UnsetProfile(Profile): def __init__(self): self.cred...
class UnsetProfile(Profile): def __init__(self): pass def to_target_dict(self): pass def __getattribute__(self, name): pass
4
0
4
0
4
0
1
0
1
1
1
0
3
4
3
16
15
3
12
8
8
0
12
8
8
2
2
1
4