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,300 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.BaseNode | from dbt.artifacts.resources import BaseResource, ColumnInfo, CompiledResource, DependsOn, Docs
from dataclasses import dataclass, field
from dbt.node_types import REFABLE_NODE_TYPES, VERSIONED_NODE_TYPES, AccessType, NodeType
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union... | @dataclass
class BaseNode(BaseResource):
'''All nodes or node-like objects in this file should have this as a base class'''
@classmethod
def resource_class(cls) -> Type[BaseResource]:
'''Should be overriden by any class inheriting BaseNode'''
pass
@property
def search_name(self):
... | 24 | 2 | 2 | 0 | 2 | 0 | 1 | 0.19 | 1 | 1 | 0 | 6 | 10 | 1 | 12 | 12 | 55 | 12 | 36 | 24 | 13 | 7 | 26 | 13 | 13 | 1 | 2 | 0 | 12 |
31,301 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.BatchContext | from dbt_common.dataclass_schema import dbtClassMixin
from datetime import datetime
from dataclasses import dataclass, field
@dataclass
class BatchContext(dbtClassMixin):
id: str
event_time_start: datetime
event_time_end: datetime
def __post_serialize__(self, data, context):
new_data = super()... | @dataclass
class BatchContext(dbtClassMixin):
def __post_serialize__(self, data, context):
pass | 3 | 0 | 12 | 0 | 5 | 7 | 1 | 0.78 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 17 | 1 | 9 | 3 | 7 | 7 | 9 | 3 | 7 | 1 | 1 | 0 | 1 |
31,302 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.CompiledNode | from dbt.artifacts.resources import BaseResource, ColumnInfo, CompiledResource, DependsOn, Docs
from dataclasses import dataclass, field
from dbt.artifacts.resources import InjectedCTE
@dataclass
class CompiledNode(CompiledResource, ParsedNode):
"""Contains attributes necessary for SQL files and nodes with refs, s... | @dataclass
class CompiledNode(CompiledResource, ParsedNode):
'''Contains attributes necessary for SQL files and nodes with refs, sources, etc,
so all ManifestNodes except SeedNode.'''
@property
def empty(self):
pass
def set_cte(self, cte_id: str, sql: str):
'''This is the equivalent... | 9 | 2 | 5 | 0 | 3 | 2 | 2 | 0.5 | 2 | 2 | 1 | 8 | 4 | 0 | 4 | 42 | 28 | 4 | 16 | 9 | 8 | 8 | 13 | 6 | 8 | 3 | 6 | 2 | 6 |
31,303 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.Documentation | from dataclasses import dataclass, field
from dbt.artifacts.resources import Documentation as DocumentationResource
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
@dataclass
class Documentation(DocumentationResource, BaseNode):
@classmethod
def resource... | @dataclass
class Documentation(DocumentationResource, BaseNode):
@classmethod
def resource_class(cls) -> Type[DocumentationResource]:
pass
@property
def search_name(self):
pass
def same_contents(self, other: Optional['Documentation']) -> bool:
pass | 7 | 0 | 3 | 0 | 3 | 1 | 1 | 0.18 | 2 | 1 | 0 | 0 | 2 | 0 | 3 | 15 | 15 | 2 | 11 | 6 | 5 | 2 | 9 | 4 | 5 | 2 | 3 | 1 | 4 |
31,304 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.Exposure | from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
from dbt.artifacts.resources import Exposure as ExposureResource
@dataclass
class Exposure(NodeInfoMixin, GraphNode, ExposureResource):
@property
def depends_on_node... | @dataclass
class Exposure(NodeInfoMixin, GraphNode, ExposureResource):
@property
def depends_on_nodes(self):
pass
@property
def search_name(self):
pass
@classmethod
def resource_class(cls) -> Type[ExposureResource]:
pass
def same_depends_on(self, old: 'Exposure') ->... | 20 | 0 | 4 | 0 | 3 | 0 | 1 | 0.04 | 3 | 3 | 0 | 0 | 13 | 0 | 14 | 30 | 68 | 14 | 52 | 19 | 33 | 2 | 34 | 15 | 19 | 2 | 4 | 1 | 16 |
31,305 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.GenericTestNode | from dbt.artifacts.resources import GenericTest as GenericTestResource
from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
@dataclass
class GenericTestNode(GenericTestResource, TestShouldStoreFailures, CompiledNode):
@cla... | @dataclass
class GenericTestNode(GenericTestResource, TestShouldStoreFailures, CompiledNode):
@classmethod
def resource_class(cls) -> Type[GenericTestResource]:
pass
def same_contents(self, other, adapter_type: Optional[str]) -> bool:
pass
@property
def test_node_type(self):
... | 7 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 3 | 2 | 0 | 0 | 2 | 0 | 3 | 47 | 14 | 3 | 11 | 6 | 5 | 0 | 9 | 4 | 5 | 2 | 7 | 1 | 4 |
31,306 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.GraphNode | from dataclasses import dataclass, field
from dbt.artifacts.resources import GraphResource
@dataclass
class GraphNode(GraphResource, BaseNode):
"""Nodes in the DAG. Macro and Documentation don't have fqn."""
def same_fqn(self, other) -> bool:
return self.fqn == other.fqn | @dataclass
class GraphNode(GraphResource, BaseNode):
'''Nodes in the DAG. Macro and Documentation don't have fqn.'''
def same_fqn(self, other) -> bool:
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.33 | 2 | 1 | 0 | 7 | 1 | 0 | 1 | 13 | 5 | 1 | 3 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 3 | 0 | 1 |
31,307 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.Group | from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
from dbt.artifacts.resources import Group as GroupResource
@dataclass
class Group(GroupResource, BaseNode):
@classmethod
def resource_class(cls) -> Type[GroupResourc... | @dataclass
class Group(GroupResource, BaseNode):
@classmethod
def resource_class(cls) -> Type[GroupResource]:
pass
def to_logging_dict(self) -> Dict[str, Union[str, Dict[str, str]]]:
pass | 5 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 2 | 1 | 0 | 0 | 1 | 2 | 2 | 14 | 11 | 1 | 10 | 6 | 6 | 0 | 5 | 3 | 2 | 1 | 3 | 0 | 2 |
31,308 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.HasRelationMetadata | from dbt.artifacts.resources import HasRelationMetadata as HasRelationMetadataResource
from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
@dataclass
class HasRelationMetadata(HasRelationMetadataResource):
@classmethod
... | @dataclass
class HasRelationMetadata(HasRelationMetadataResource):
@classmethod
def __pre_deserialize__(cls, data):
pass
@property
def quoting_dict(self) -> Dict[str, bool]:
pass | 6 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 3 | 0 | 2 | 1 | 0 | 2 | 4 | 14 | 1 | 13 | 5 | 8 | 0 | 10 | 3 | 7 | 2 | 2 | 1 | 4 |
31,309 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.HookNode | from dbt.artifacts.resources import HookNode as HookNodeResource
from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
@dataclass
class HookNode(HookNodeResource, CompiledNode):
@classmethod
def resource_class(cls) -> T... | @dataclass
class HookNode(HookNodeResource, CompiledNode):
@classmethod
def resource_class(cls) -> Type[HookNodeResource]:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 43 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
31,310 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.Macro | from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
from dbt.artifacts.resources import Macro as MacroResource
@dataclass
class Macro(MacroResource, BaseNode):
@classmethod
def resource_class(cls) -> Type[MacroResourc... | @dataclass
class Macro(MacroResource, BaseNode):
@classmethod
def resource_class(cls) -> Type[MacroResource]:
pass
def same_contents(self, other: Optional['Macro']) -> bool:
pass
@property
def depends_on_macros(self):
pass | 7 | 0 | 3 | 0 | 3 | 1 | 1 | 0.18 | 2 | 1 | 0 | 0 | 2 | 0 | 3 | 15 | 15 | 2 | 11 | 6 | 5 | 2 | 9 | 4 | 5 | 2 | 3 | 1 | 4 |
31,311 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.Metric | from dbt.artifacts.resources import Metric as MetricResource
from dataclasses import dataclass, field
from dbt.artifacts.resources import MetricInputMeasure
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
@dataclass
class Metric(GraphNode, MetricResource):
@... | @dataclass
class Metric(GraphNode, MetricResource):
@property
def depends_on_nodes(self):
pass
@property
def search_name(self):
pass
@classmethod
def resource_class(cls) -> Type[MetricResource]:
pass
def same_description(self, old: 'Metric') -> bool:
pass
... | 17 | 0 | 4 | 0 | 3 | 0 | 1 | 0.11 | 2 | 2 | 1 | 0 | 11 | 0 | 12 | 28 | 59 | 12 | 45 | 17 | 29 | 5 | 30 | 14 | 17 | 3 | 4 | 2 | 15 |
31,312 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.ModelNode | from dbt.artifacts.resources import FileHash
from dbt.artifacts.resources import BaseResource, ColumnInfo, CompiledResource, DependsOn, Docs
from dbt.exceptions import ContractBreakingChangeError, ParsingError, ValidationError
from dbt.artifacts.schemas.batch_results import BatchResults
from dbt.events.types import See... | @dataclass
class ModelNode(ModelResource, CompiledNode):
def __post_serialize__(self, dct: Dict, context: Optional[Dict]=None):
pass
@classmethod
def resource_class(cls) -> Type[ModelResource]:
pass
@classmethod
def from_args(cls, args: ModelNodeArgs) -> 'ModelNode':
pass
... | 27 | 2 | 24 | 2 | 19 | 3 | 5 | 0.15 | 2 | 15 | 8 | 1 | 14 | 2 | 16 | 59 | 411 | 47 | 317 | 67 | 291 | 49 | 165 | 56 | 148 | 26 | 7 | 4 | 74 |
31,313 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.NodeInfoMixin | from dbt_common.events.contextvars import set_log_contextvars
from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
@dataclass
class NodeInfoMixin:
_event_status: Dict[str, Any] = field(default_factory=dict)
@property
... | @dataclass
class NodeInfoMixin:
@property
def node_info(self):
pass
def update_event_status(self, **kwargs):
pass
def clear_event_status(self):
pass | 6 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 0 | 2 | 0 | 5 | 3 | 0 | 3 | 3 | 31 | 3 | 28 | 8 | 23 | 0 | 11 | 7 | 7 | 2 | 0 | 1 | 4 |
31,314 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.ParsedMacroPatch | from dbt.artifacts.resources import MacroArgument
from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
@dataclass
class ParsedMacroPatch(ParsedPatch):
arguments: List[MacroArgument] = field(default_factory=list) | @dataclass
class ParsedMacroPatch(ParsedPatch):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 3 | 0 | 0 |
31,315 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.ParsedNode | from dataclasses import dataclass, field
import os
from mashumaro.types import SerializableType
from dbt.artifacts.resources import ModelConfig, ModelFreshness, NodeConfig, NodeVersion, ParsedResource, ParsedResourceMandatory
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union,... | @dataclass
class ParsedNode(ParsedResource, NodeInfoMixin, ParsedNodeMandatory, SerializableType):
def get_target_write_path(self, target_path: str, subdirectory: str, split_suffix: Optional[str]=None):
pass
def write_node(self, project_root: str, compiled_path, compiled_code: str):
pass
... | 19 | 0 | 9 | 0 | 7 | 1 | 2 | 0.16 | 4 | 14 | 9 | 2 | 14 | 0 | 15 | 37 | 145 | 19 | 109 | 32 | 89 | 17 | 79 | 28 | 63 | 10 | 5 | 2 | 37 |
31,316 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.ParsedNodeMandatory | from dbt.artifacts.resources import HasRelationMetadata as HasRelationMetadataResource
from dataclasses import dataclass, field
from dbt.artifacts.resources import ModelConfig, ModelFreshness, NodeConfig, NodeVersion, ParsedResource, ParsedResourceMandatory
@dataclass
class ParsedNodeMandatory(ParsedResourceMandatory,... | @dataclass
class ParsedNodeMandatory(ParsedResourceMandatory, GraphNode, HasRelationMetadata):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 1 | 0 | 0 | 0 | 18 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
31,317 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.ParsedNodePatch | from dbt.artifacts.resources import TimeSpine
from dataclasses import dataclass, field
from dbt.artifacts.resources import ModelConfig, ModelFreshness, NodeConfig, NodeVersion, ParsedResource, ParsedResourceMandatory
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args... | @dataclass
class ParsedNodePatch(ParsedPatch):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 9 | 0 | 9 | 3 | 8 | 0 | 9 | 3 | 8 | 0 | 3 | 0 | 0 |
31,318 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.ParsedPatch | from dbt.artifacts.resources import BaseResource, ColumnInfo, CompiledResource, DependsOn, Docs
from dataclasses import dataclass, field
from dbt.contracts.graph.unparsed import HasYamlMetadata, TestDef, UnitTestOverrides, UnparsedColumn, UnparsedSourceDefinition, UnparsedSourceTableDefinition
from typing import Any, D... | @dataclass
class ParsedPatch(HasYamlMetadata):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 0 | 0 | 1 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 2 | 0 | 0 |
31,319 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.ParsedSingularTestPatch | from dataclasses import dataclass, field
@dataclass
class ParsedSingularTestPatch(ParsedPatch):
pass | @dataclass
class ParsedSingularTestPatch(ParsedPatch):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
31,320 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.SavedQuery | from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
from dbt.artifacts.resources import SavedQuery as SavedQueryResource
@dataclass
class SavedQuery(NodeInfoMixin, GraphNode, SavedQueryResource):
@classmethod
def reso... | @dataclass
class SavedQuery(NodeInfoMixin, GraphNode, SavedQueryResource):
@classmethod
def resource_class(cls) -> Type[SavedQueryResource]:
pass
def same_metrics(self, old: 'SavedQuery') -> bool:
pass
def same_group_by(self, old: 'SavedQuery') -> bool:
pass
def same_desc... | 15 | 0 | 5 | 0 | 4 | 0 | 2 | 0.06 | 3 | 3 | 0 | 0 | 11 | 0 | 12 | 30 | 68 | 14 | 51 | 17 | 37 | 3 | 39 | 16 | 26 | 6 | 5 | 3 | 19 |
31,321 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.SeedNode | from dataclasses import dataclass, field
from dbt_common.events.functions import warn_or_error
from dbt.exceptions import ContractBreakingChangeError, ParsingError, ValidationError
from dbt.artifacts.resources import Seed as SeedResource
from dbt.events.types import SeedExceedsLimitAndPathChanged, SeedExceedsLimitCheck... | @dataclass
class SeedNode(SeedResource, ParsedNode):
@classmethod
def resource_class(cls) -> Type[SeedResource]:
pass
def same_seeds(self, other: 'SeedNode') -> bool:
pass
@property
def empty(self):
'''Seeds are never empty'''
pass
def _disallow_implicit_depend... | 25 | 2 | 6 | 0 | 5 | 1 | 1 | 0.19 | 2 | 7 | 5 | 0 | 12 | 2 | 13 | 51 | 100 | 15 | 72 | 29 | 48 | 14 | 38 | 18 | 24 | 5 | 6 | 2 | 17 |
31,322 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.SemanticModel | from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
from dbt.artifacts.resources import SemanticModel as SemanticModelResource
@dataclass
class SemanticModel(GraphNode, SemanticModelResource):
@property
def depends_on... | @dataclass
class SemanticModel(GraphNode, SemanticModelResource):
@property
def depends_on_nodes(self):
pass
@property
def depends_on_macros(self):
pass
@classmethod
def resource_class(cls) -> Type[SemanticModelResource]:
pass
def same_model(self, old: 'SemanticMode... | 18 | 0 | 3 | 0 | 3 | 0 | 1 | 0.05 | 2 | 1 | 0 | 0 | 12 | 0 | 13 | 37 | 58 | 13 | 43 | 17 | 26 | 2 | 29 | 14 | 15 | 2 | 4 | 1 | 14 |
31,323 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.SingularTestNode | from dbt.artifacts.resources import SingularTest as SingularTestResource
from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
@dataclass
class SingularTestNode(SingularTestResource, TestShouldStoreFailures, CompiledNode):
... | @dataclass
class SingularTestNode(SingularTestResource, TestShouldStoreFailures, CompiledNode):
@classmethod
def resource_class(cls) -> Type[SingularTestResource]:
pass
@property
def test_node_type(self):
pass | 6 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 3 | 0 | 0 | 0 | 1 | 0 | 2 | 46 | 8 | 1 | 7 | 5 | 2 | 0 | 5 | 3 | 2 | 1 | 7 | 0 | 2 |
31,324 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.SnapshotNode | from dbt.artifacts.resources import Snapshot as SnapshotResource
from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
@dataclass
class SnapshotNode(SnapshotResource, CompiledNode):
@classmethod
def resource_class(cls) ... | @dataclass
class SnapshotNode(SnapshotResource, CompiledNode):
@classmethod
def resource_class(cls) -> Type[SnapshotResource]:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 44 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
31,325 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.SourceDefinition | from dataclasses import dataclass, field
from dbt.artifacts.resources import SourceDefinition as SourceDefinitionResource
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
from dbt.flags import get_flags
from dbt.artifacts.resources import BaseResource, ColumnInfo, ... | @dataclass
class SourceDefinition(NodeInfoMixin, GraphNode, SourceDefinitionResource, HasRelationMetadata):
@classmethod
def resource_class(cls) -> Type[SourceDefinitionResource]:
pass
def same_database_representation(self, other: 'SourceDefinition') -> bool:
pass
def same_quoting(sel... | 32 | 0 | 4 | 0 | 3 | 1 | 1 | 0.13 | 4 | 2 | 1 | 0 | 18 | 0 | 19 | 39 | 109 | 21 | 78 | 38 | 42 | 10 | 46 | 22 | 26 | 2 | 5 | 1 | 21 |
31,326 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.SqlNode | from dataclasses import dataclass, field
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
from dbt.artifacts.resources import SqlOperation as SqlOperationResource
@dataclass
class SqlNode(SqlOperationResource, CompiledNode):
@classmethod
def resource_clas... | @dataclass
class SqlNode(SqlOperationResource, CompiledNode):
@classmethod
def resource_class(cls) -> Type[SqlOperationResource]:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 43 | 4 | 0 | 4 | 3 | 1 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
31,327 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.TestShouldStoreFailures | from dbt.flags import get_flags
class TestShouldStoreFailures:
@property
def should_store_failures(self):
if self.config.store_failures:
return self.config.store_failures
return get_flags().STORE_FAILURES
@property
def is_relational(self):
if self.should_store_fail... |
class TestShouldStoreFailures:
@property
def should_store_failures(self):
pass
@property
def is_relational(self):
pass | 5 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 2 | 2 | 12 | 1 | 11 | 5 | 6 | 0 | 9 | 3 | 6 | 2 | 0 | 1 | 4 |
31,328 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.UnitTestDefinition | from dataclasses import dataclass, field
from dbt.artifacts.resources import UnitTestDefinition as UnitTestDefinitionResource
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
import hashlib
@dataclass
class UnitTestDefinition(NodeInfoMixin, GraphNode, UnitTestDefi... | @dataclass
class UnitTestDefinition(NodeInfoMixin, GraphNode, UnitTestDefinitionResource):
@classmethod
def resource_class(cls) -> Type[UnitTestDefinitionResource]:
pass
@property
def depends_on_nodes(self):
pass
@property
def tags(self) -> List[str]:
pass
@property
... | 12 | 0 | 5 | 1 | 4 | 0 | 2 | 0.07 | 3 | 2 | 0 | 0 | 5 | 1 | 6 | 22 | 37 | 8 | 27 | 16 | 16 | 2 | 23 | 12 | 16 | 3 | 4 | 2 | 11 |
31,329 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.UnitTestNode | from dataclasses import dataclass, field
from dbt.contracts.graph.model_config import UnitTestNodeConfig
from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Type, Union, get_args
from dbt.contracts.graph.unparsed import HasYamlMetadata, TestDef, UnitTestOverrides, UnparsedColumn, UnparsedS... | @dataclass
class UnitTestNode(CompiledNode):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 42 | 6 | 0 | 6 | 5 | 5 | 0 | 6 | 5 | 5 | 0 | 7 | 0 | 0 |
31,330 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.UnitTestSourceDefinition | from dbt.artifacts.resources import Quoting as QuotingResource
from dataclasses import dataclass, field
@dataclass
class UnitTestSourceDefinition(ModelNode):
source_name: str = 'undefined'
quoting: QuotingResource = field(default_factory=QuotingResource)
@property
def search_name(self):
return... | @dataclass
class UnitTestSourceDefinition(ModelNode):
@property
def search_name(self):
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 60 | 7 | 1 | 6 | 5 | 3 | 0 | 5 | 4 | 3 | 1 | 8 | 0 | 1 |
31,331 | fishtown-analytics/dbt | core/dbt/contracts/graph/nodes.py | dbt.contracts.graph.nodes.UnpatchedSourceDefinition | from dbt.node_types import REFABLE_NODE_TYPES, VERSIONED_NODE_TYPES, AccessType, NodeType
from dbt.contracts.graph.unparsed import HasYamlMetadata, TestDef, UnitTestOverrides, UnparsedColumn, UnparsedSourceDefinition, UnparsedSourceTableDefinition
from dataclasses import dataclass, field
from dbt.exceptions import Cont... | @dataclass
class UnpatchedSourceDefinition(BaseNode):
def get_full_source_name(self):
pass
def get_source_representation(self):
pass
def validate_data_tests(self, is_root_project: bool):
'''
sources parse tests differently than models, so we need to do some validation
... | 14 | 1 | 7 | 0 | 6 | 1 | 3 | 0.13 | 1 | 4 | 1 | 0 | 8 | 0 | 8 | 20 | 73 | 10 | 56 | 18 | 43 | 7 | 46 | 14 | 37 | 6 | 3 | 3 | 22 |
31,332 | fishtown-analytics/dbt | core/dbt/contracts/graph/semantic_manifest.py | dbt.contracts.graph.semantic_manifest.SemanticManifest | from dbt.flags import get_flags
from dbt_semantic_interfaces.implementations.saved_query import PydanticSavedQuery
from dbt_semantic_interfaces.implementations.semantic_manifest import PydanticSemanticManifest
from dbt_common.events.base_types import EventLevel
from dbt_semantic_interfaces.implementations.semantic_mode... |
class SemanticManifest:
def __init__(self, manifest: Manifest) -> None:
pass
def validate(self) -> bool:
pass
def write_json_to_file(self, file_path: str):
pass
def _get_pydantic_semantic_manifest(self) -> PydanticSemanticManifest:
pass | 5 | 0 | 46 | 4 | 38 | 4 | 7 | 0.1 | 0 | 9 | 5 | 0 | 4 | 1 | 4 | 4 | 186 | 19 | 152 | 36 | 147 | 15 | 75 | 36 | 70 | 16 | 0 | 3 | 28 |
31,333 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.HasCode | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
@dataclass
class HasCode(dbtClassMixin):
raw_code: str
language: str
@property
def empty(self):
return not self.raw_code.strip() | @dataclass
class HasCode(dbtClassMixin):
@property
def empty(self):
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 3 | 1 | 0 | 1 | 1 | 7 | 1 | 6 | 3 | 3 | 0 | 5 | 2 | 3 | 1 | 1 | 0 | 1 |
31,334 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.HasColumnAndTestProps | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class HasColumnAndTestProps(HasColumnProps):
data_tests: List[TestDef] = field(default_factory=list)
tests: List[TestDef] = field(default_factory=list) | @dataclass
class HasColumnAndTestProps(HasColumnProps):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 3 | 4 | 1 | 3 | 3 | 2 | 0 | 2 | 0 | 0 |
31,335 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.HasColumnDocs | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class HasColumnDocs(dbtClassMixin):
columns: Sequence[HasColumnProps] = field(default_f... | @dataclass
class HasColumnDocs(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
31,336 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.HasColumnProps | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dataclasses import dataclass, field
from dbt_common.contracts.config.properties import AdditionalPropertiesMixin
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt.artifacts.resourc... | @dataclass
class HasColumnProps(AdditionalPropertiesMixin, ExtensibleDbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 4 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 7 | 7 | 0 | 8 | 7 | 7 | 0 | 1 | 0 | 0 |
31,337 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.HasColumnTests | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class HasColumnTests(dbtClassMixin):
columns: Sequence[UnparsedColumn] = field(default_... | @dataclass
class HasColumnTests(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 1 | 0 | 0 |
31,338 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.HasConfig | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class HasConfig:
config: Dict[str, Any] = field(default_factory=dict) | @dataclass
class HasConfig:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
31,339 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.HasYamlMetadata | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dataclasses import dataclass, field
@dataclass
class HasYamlMetadata(dbtClassMixin):
original_file_path: str
yaml_key: str
package_name: str
@property
def file_id(self):
return f'{... | @dataclass
class HasYamlMetadata(dbtClassMixin):
@property
def file_id(self):
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 5 | 1 | 0 | 1 | 1 | 8 | 1 | 7 | 3 | 4 | 0 | 6 | 2 | 4 | 1 | 1 | 0 | 1 |
31,340 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.Maturity | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
class Maturity(StrEnum):
low = 'low'
medium = 'medium'
high = 'high'
def __lt__(self, other):
if not isinstance(other, Maturity):
return NotImplemented
order = (Maturity... |
class Maturity(StrEnum):
def __lt__(self, other):
pass
def __gt__(self, other):
pass
def __ge__(self, other):
pass
def __le__(self, other):
pass | 5 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 4 | 0 | 4 | 4 | 25 | 4 | 21 | 9 | 16 | 0 | 21 | 9 | 16 | 2 | 1 | 1 | 8 |
31,341 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.MetricFilter | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
@dataclass
class MetricFilter(dbtClassMixin):
field: str
operator: str
value: str | @dataclass
class MetricFilter(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 4 | 1 | 3 | 1 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
31,342 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.MetricTime | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dbt_common.contracts.util import Mergeable
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class MetricTime(dbtClassMixin, Mergeable):... | @dataclass
class MetricTime(dbtClassMixin, Mergeable):
def __bool__(self):
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 6 | 1 | 5 | 4 | 3 | 0 | 5 | 4 | 3 | 1 | 1 | 0 | 1 |
31,343 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.MetricTimePeriod | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
class MetricTimePeriod(StrEnum):
day = 'day'
week = 'week'
month = 'month'
year = 'year'
def plural(self) -> str:
return str(self) + 's' |
class MetricTimePeriod(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,344 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.SourcePatch | from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, ExposureType, ExternalTable, FreshnessThreshold, MacroArgument, MaturityType, MeasureAggregationParameters, NodeVersion, Owner, Quoting, TimeSpine, UnitTestInputFixture, UnitTestNodeVersions, UnitTestOutputFixture, UnitT... | @dataclass
class SourcePatch(dbtClassMixin):
def to_patch_dict(self) -> Dict[str, Any]:
pass
def get_table_named(self, name: str) -> Optional[SourceTablePatch]:
pass | 4 | 0 | 9 | 1 | 8 | 0 | 4 | 0 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 2 | 42 | 4 | 38 | 23 | 35 | 0 | 32 | 23 | 29 | 4 | 1 | 3 | 8 |
31,345 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.SourceTablePatch | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dataclasses import dataclass, field
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, ExposureType, ExternalTable, FreshnessThreshold, MacroArgument, MaturityTy... | @dataclass
class SourceTablePatch(dbtClassMixin):
def to_patch_dict(self) -> Dict[str, Any]:
pass | 3 | 0 | 11 | 2 | 9 | 0 | 4 | 0.04 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 29 | 3 | 26 | 20 | 24 | 1 | 26 | 20 | 24 | 4 | 1 | 2 | 4 |
31,346 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedAnalysisUpdate | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dataclasses import dataclass, field
@dataclass
class UnparsedAnalysisUpdate(HasConfig, HasColumnDocs, HasColumnProps, HasYamlMetadata):
access: Optional[str] = None | @dataclass
class UnparsedAnalysisUpdate(HasConfig, HasColumnDocs, HasColumnProps, HasYamlMetadata):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 2 | 0 | 0 |
31,347 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedBaseNode | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
@dataclass
class UnparsedBaseNode(dbtClassMixin):
package_name: str
path: str
original_file_path: str
@property
def file_id(self):
return f'{sel... | @dataclass
class UnparsedBaseNode(dbtClassMixin):
@property
def file_id(self):
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 3 | 1 | 0 | 1 | 1 | 8 | 1 | 7 | 3 | 4 | 0 | 6 | 2 | 4 | 1 | 1 | 0 | 1 |
31,348 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedColumn | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class UnparsedColumn(HasConfig, HasColumnAndTestProps):
quote: Optional[bool] = None
tags: List[str] = field(default_factory=list)
granularity: Optional[str] = None | @dataclass
class UnparsedColumn(HasConfig, HasColumnAndTestProps):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 4 | 3 | 1 | 4 | 4 | 3 | 0 | 3 | 0 | 0 |
31,349 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedConversionTypeParams | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dbt_semantic_interfaces.type_enums import ConversionCalculationType, PeriodAggregation
from dataclasses import dataclass, field
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionVali... | @dataclass
class UnparsedConversionTypeParams(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0 | 9 | 4 | 8 | 1 | 7 | 4 | 6 | 0 | 1 | 0 | 0 |
31,350 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedCumulativeTypeParams | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dbt_semantic_interfaces.type_enums import ConversionCalculationType, PeriodAggregation
from dataclasses import dataclass, field
@dataclass... | @dataclass
class UnparsedCumulativeTypeParams(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,351 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedDimension | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class UnparsedDimension(dbtClassMixin):
name: str
type: str
description: Option... | @dataclass
class UnparsedDimension(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0 | 9 | 7 | 8 | 1 | 9 | 7 | 8 | 0 | 1 | 0 | 0 |
31,352 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedDimensionTypeParams | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, ExposureType, ExternalTable, FreshnessThreshold, MacroArgument, MaturityType, MeasureAggregationParameters, ... | @dataclass
class UnparsedDimensionTypeParams(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 2 | 2 | 1 | 3 | 2 | 2 | 0 | 1 | 0 | 0 |
31,353 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedDocumentation | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dbt.node_types import NodeType
from dataclasses import dataclass, field
@dataclass
class UnparsedDocumentation(dbtClassMixin):
package_name: str
path: str
original_file_path: str
@property
... | @dataclass
class UnparsedDocumentation(dbtClassMixin):
@property
def file_id(self):
pass
@property
def resource_type(self):
pass | 6 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 2 | 0 | 2 | 2 | 12 | 2 | 10 | 5 | 5 | 0 | 8 | 3 | 5 | 1 | 1 | 0 | 2 |
31,354 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedDocumentationFile | from dataclasses import dataclass, field
@dataclass
class UnparsedDocumentationFile(UnparsedDocumentation):
file_contents: str | @dataclass
class UnparsedDocumentationFile(UnparsedDocumentation):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
31,355 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedEntity | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
@dataclass
class UnparsedEntity(dbtClassMixin):
name: str
type: str
description: Optional[... | @dataclass
class UnparsedEntity(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | 8 | 6 | 7 | 1 | 8 | 6 | 7 | 0 | 1 | 0 | 0 |
31,356 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedExport | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dataclasses import dataclass, field
@dataclass
class UnparsedExport(dbtClassMixin):
"""Configuration for writing query results to a ta... | @dataclass
class UnparsedExport(dbtClassMixin):
'''Configuration for writing query results to a table.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 3 | 2 | 2 | 1 | 3 | 2 | 2 | 0 | 1 | 0 | 0 |
31,357 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedExposure | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dataclasses import dataclass, field
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, Exp... | @dataclass
class UnparsedExposure(dbtClassMixin):
@classmethod
def validate(cls, data):
pass | 4 | 0 | 9 | 1 | 7 | 1 | 4 | 0.05 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 23 | 2 | 20 | 11 | 17 | 1 | 19 | 10 | 17 | 4 | 1 | 2 | 4 |
31,358 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedGroup | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, Exp... | @dataclass
class UnparsedGroup(dbtClassMixin):
@classmethod
def validate(cls, data):
pass | 4 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 9 | 1 | 8 | 3 | 5 | 0 | 7 | 2 | 5 | 2 | 1 | 1 | 2 |
31,359 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedMacro | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt.node_types import NodeType
@dataclass
class UnparsedMacro(UnparsedBaseNode, HasCode):
resource_type: Literal[NodeType.Macro] | @dataclass
class UnparsedMacro(UnparsedBaseNode, HasCode):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
31,360 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedMacroUpdate | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dataclasses import dataclass, field
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, ExposureType, ExternalTable, FreshnessThreshold, MacroArgument, MaturityType, MeasureAggregationParameters, ... | @dataclass
class UnparsedMacroUpdate(HasConfig, HasColumnProps, HasYamlMetadata):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 2 | 0 | 0 |
31,361 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedMeasure | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, ExposureType, ExternalTable, FreshnessThreshold, MacroArgument, MaturityType, MeasureAggregationParameters, NodeVer... | @dataclass
class UnparsedMeasure(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 11 | 9 | 10 | 1 | 11 | 9 | 10 | 0 | 1 | 0 | 0 |
31,362 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedMetric | import re
from dataclasses import dataclass, field
from dbt.exceptions import ParsingError
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class UnparsedMetric(dbtClassMixin):
... | @dataclass
class UnparsedMetric(dbtClassMixin):
@classmethod
def validate(cls, data):
pass | 4 | 0 | 19 | 1 | 16 | 2 | 7 | 0.14 | 1 | 2 | 1 | 0 | 0 | 0 | 1 | 1 | 34 | 2 | 28 | 10 | 25 | 4 | 25 | 9 | 23 | 7 | 1 | 2 | 7 |
31,363 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedMetricInput | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
@dataclass
class UnparsedMetricInput(dbtClassMixin):
name: str
filter: Union[str, List[str], N... | @dataclass
class UnparsedMetricInput(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 6 | 5 | 5 | 1 | 6 | 5 | 5 | 0 | 1 | 0 | 0 |
31,364 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedMetricInputMeasure | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
@dataclass
class UnparsedMetricInputMeasure(dbtClassMixin):
name: str
filter: Union[str, List[... | @dataclass
class UnparsedMetricInputMeasure(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 6 | 5 | 5 | 1 | 6 | 5 | 5 | 0 | 1 | 0 | 0 |
31,365 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedMetricTypeParams | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
@dataclass
class UnparsedMetricTypeParams(dbtClassMixin):
measure: Optional[Union[UnparsedMetricIn... | @dataclass
class UnparsedMetricTypeParams(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 10 | 9 | 1 | 10 | 10 | 9 | 0 | 1 | 0 | 0 |
31,366 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedModelUpdate | from dbt.exceptions import ParsingError
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, ExposureType, ExternalTable, FreshnessThreshold, MacroArgument, MaturityType, MeasureAggregationParameters, NodeVersion, Owner, Quoting, TimeSpine, UnitTestInputFixture, UnitTestNo... | @dataclass
class UnparsedModelUpdate(UnparsedNodeUpdate):
def __post_init__(self) -> None:
pass
def get_columns_for_version(self, version: NodeVersion) -> List[UnparsedColumn]:
pass
def get_tests_for_version(self, version: NodeVersion) -> List[TestDef]:
pass | 5 | 0 | 27 | 2 | 25 | 0 | 7 | 0 | 1 | 5 | 2 | 0 | 3 | 1 | 3 | 4 | 92 | 10 | 82 | 25 | 78 | 0 | 51 | 25 | 47 | 14 | 4 | 3 | 22 |
31,367 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedNode | from dbt.node_types import NodeType
from dataclasses import dataclass, field
@dataclass
class UnparsedNode(UnparsedBaseNode, HasCode):
name: str
resource_type: NodeType
@property
def search_name(self):
return self.name | @dataclass
class UnparsedNode(UnparsedBaseNode, HasCode):
@property
def search_name(self):
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 0 | 0 | 1 | 1 | 0 | 1 | 3 | 7 | 1 | 6 | 3 | 3 | 0 | 5 | 2 | 3 | 1 | 2 | 0 | 1 |
31,368 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedNodeUpdate | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class UnparsedNodeUpdate(HasConfig, HasColumnTests, HasColumnAndTestProps, HasYamlMetadata):
quote_columns: Optional[bool] = None
access: Optional[str] = None | @dataclass
class UnparsedNodeUpdate(HasConfig, HasColumnTests, HasColumnAndTestProps, HasYamlMetadata):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 3 | 0 | 0 |
31,369 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedNonAdditiveDimension | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
@dataclass
class UnparsedNonAdditiveDimension(dbtClassMixin):
name: str
window_choice: str
... | @dataclass
class UnparsedNonAdditiveDimension(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 2 | 3 | 1 | 4 | 2 | 3 | 0 | 1 | 0 | 0 |
31,370 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedQueryParams | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
@dataclass
class UnparsedQueryParams(dbtClassMixin):
metrics: List[str] = field(default_factory=li... | @dataclass
class UnparsedQueryParams(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 6 | 6 | 5 | 1 | 6 | 6 | 5 | 0 | 1 | 0 | 0 |
31,371 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedRunHook | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dataclasses import dataclass, field
from dbt.node_types import NodeType
@dataclass
class UnparsedRunHook(UnparsedNode):
resource_type: Literal[NodeType.Operation]
index: Optional[int] = None | @dataclass
class UnparsedRunHook(UnparsedNode):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 3 | 0 | 3 | 2 | 2 | 0 | 3 | 2 | 2 | 0 | 3 | 0 | 0 |
31,372 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedSavedQuery | from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, ExposureType, ExternalTable, FreshnessThreshold, MacroArgument, MaturityType, MeasureAggregationParameters, NodeVersion, Owner, Quoting, TimeSpine, U... | @dataclass
class UnparsedSavedQuery(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 0 | 11 | 6 | 10 | 2 | 8 | 6 | 7 | 0 | 1 | 0 | 0 |
31,373 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedSemanticModel | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, Exp... | @dataclass
class UnparsedSemanticModel(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 11 | 9 | 10 | 1 | 11 | 9 | 10 | 0 | 1 | 0 | 0 |
31,374 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedSingularTestUpdate | from dataclasses import dataclass, field
@dataclass
class UnparsedSingularTestUpdate(HasConfig, HasColumnProps, HasYamlMetadata):
pass | @dataclass
class UnparsedSingularTestUpdate(HasConfig, HasColumnProps, HasYamlMetadata):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
31,375 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedSourceDefinition | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, Exp... | @dataclass
class UnparsedSourceDefinition(dbtClassMixin):
@classmethod
def validate(cls, data):
pass
@property
def yaml_key(self) -> 'str':
pass
def __post_serialize__(self, dct: Dict, context: Optional[Dict]=None):
pass | 7 | 0 | 5 | 0 | 5 | 0 | 3 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 3 | 3 | 38 | 4 | 34 | 22 | 28 | 0 | 32 | 20 | 28 | 5 | 1 | 3 | 8 |
31,376 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedSourceTableDefinition | from dataclasses import dataclass, field
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Docs, ExposureType, ExternalTable, FreshnessThreshold, MacroArgument, MaturityType, MeasureAggregationParameters, ... | @dataclass
class UnparsedSourceTableDefinition(HasColumnTests, HasColumnAndTestProps):
def __post_serialize__(self, dct: Dict, context: Optional[Dict]=None):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 2 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 16 | 1 | 15 | 11 | 13 | 0 | 15 | 11 | 13 | 2 | 3 | 1 | 2 |
31,377 | fishtown-analytics/dbt | core/dbt/contracts/graph/unparsed.py | dbt.contracts.graph.unparsed.UnparsedVersion | import datetime
import dbt_common.helper_types
from typing import Any, Dict, List, Literal, Optional, Sequence, Union
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, StrEnum, ValidationError, dbtClassMixin
from dbt.artifacts.resources import ConstantPropertyInput, Defaults, DimensionValidityParams, Doc... | @dataclass
class UnparsedVersion(dbtClassMixin):
def __lt__(self, other):
pass
@property
def include_exclude(self) -> dbt_common.helper_types.IncludeExclude:
pass
@property
def unparsed_columns(self) -> List:
pass
@property
def formatted_v(self) -> str:
pass
... | 10 | 0 | 5 | 0 | 5 | 0 | 2 | 0.02 | 1 | 4 | 1 | 0 | 5 | 2 | 5 | 5 | 48 | 6 | 42 | 23 | 33 | 1 | 35 | 20 | 29 | 4 | 1 | 3 | 9 |
31,378 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.Configuration | from dataclasses import dataclass, field
from typing import Any, ClassVar, Dict, List, Optional, Union
@dataclass
class Configuration(Project, ProfileConfig):
cli_vars: Dict[str, Any] = field(default_factory=dict, metadata={'preserve_underscore': True})
quoting: Optional[ConfiguredQuoting] = None | @dataclass
class Configuration(Project, ProfileConfig):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 6 | 0 | 6 | 3 | 5 | 0 | 3 | 3 | 2 | 0 | 2 | 0 | 0 |
31,379 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.ConfiguredQuoting | from dataclasses import dataclass, field
from typing import Any, ClassVar, Dict, List, Optional, Union
@dataclass
class ConfiguredQuoting(Quoting):
identifier: bool = True
schema: bool = True
database: Optional[bool] = None
project: Optional[bool] = None
snowflake_ignore_case: Optional[bool] = None | @dataclass
class ConfiguredQuoting(Quoting):
pass | 2 | 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 | 2 | 0 | 0 |
31,380 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.Downloads | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, ValidationError, dbtClassMixin, dbtMashConfig
@dataclass
class Downloads(ExtensibleDbtClassMixin):
tarball: str | @dataclass
class Downloads(ExtensibleDbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
31,381 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.GitPackage | from typing import Any, ClassVar, Dict, List, Optional, Union
from dataclasses import dataclass, field
@dataclass
class GitPackage(Package):
git: str
revision: Optional[RawVersion] = None
warn_unpinned: Optional[bool] = field(default=None, metadata={'alias': 'warn-unpinned'})
subdirectory: Optional[str... | @dataclass
class GitPackage(Package):
def get_revisions(self) -> List[str]:
pass | 3 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 12 | 1 | 11 | 6 | 9 | 0 | 10 | 6 | 8 | 2 | 2 | 1 | 2 |
31,382 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.LocalPackage | from typing import Any, ClassVar, Dict, List, Optional, Union
from dataclasses import dataclass, field
@dataclass
class LocalPackage(Package):
local: str
unrendered: Dict[str, Any] = field(default_factory=dict)
name: Optional[str] = None | @dataclass
class LocalPackage(Package):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 2 | 2 | 0 | 3 | 2 | 2 | 0 | 2 | 0 | 0 |
31,383 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.Package | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, ValidationError, dbtClassMixin, dbtMashConfig
from typing import Any, ClassVar, Dict, List, Optional, Union
@dataclass
class Package(dbtClassMixin):
def __post_serialize__(self, data, context: Optional[Dict])... | @dataclass
class Package(dbtClassMixin):
def __post_serialize__(self, data, context: Optional[Dict]):
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 5 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
31,384 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.PackageConfig | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, ValidationError, dbtClassMixin, dbtMashConfig
from dataclasses import dataclass, field
from typing import Any, ClassVar, Dict, List, Optional, Union
@dataclass
class PackageConfig(dbtClassMixin):
packages: List[PackageSpec]
@classmethod
def ... | @dataclass
class PackageConfig(dbtClassMixin):
@classmethod
def validate(cls, data):
pass | 4 | 0 | 28 | 0 | 27 | 1 | 9 | 0.03 | 1 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 32 | 1 | 30 | 4 | 27 | 1 | 17 | 3 | 15 | 9 | 1 | 3 | 9 |
31,385 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.PrivatePackage | from dataclasses import dataclass, field
from typing import Any, ClassVar, Dict, List, Optional, Union
@dataclass
class PrivatePackage(Package):
private: str
provider: Optional[str] = None
revision: Optional[RawVersion] = None
warn_unpinned: Optional[bool] = field(default=None, metadata={'alias': 'warn... | @dataclass
class PrivatePackage(Package):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 6 | 6 | 0 | 7 | 6 | 6 | 0 | 2 | 0 | 0 |
31,386 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.ProfileConfig | from typing import Any, ClassVar, Dict, List, Optional, Union
from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, ValidationError, dbtClassMixin, dbtMashConfig
@dataclass
class ProfileConfig(dbtClassMixin):
profile_name: str
target_name: str
threads: in... | @dataclass
class ProfileConfig(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 | 0 | 5 | 1 | 4 | 1 | 5 | 1 | 4 | 0 | 1 | 0 | 0 |
31,387 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.Project | from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, ValidationError, dbtClassMixin, dbtMashConfig
from typing import Any, ClassVar, Dict, List, Optional, Union
from dataclasses import dataclass, field
from dbt.adapters.contracts.connection import QueryComment
from dbt_common.helper_types import NoValue
fro... | @dataclass
class Project(dbtClassMixin):
class Config(dbtMashConfig):
@classmethod
def validate(cls, data):
pass | 5 | 0 | 22 | 0 | 21 | 1 | 7 | 0.06 | 1 | 4 | 0 | 1 | 0 | 0 | 1 | 1 | 104 | 2 | 98 | 48 | 94 | 6 | 59 | 47 | 56 | 7 | 1 | 3 | 7 |
31,388 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.ProjectFlags | from dataclasses import dataclass, field
from typing import Any, ClassVar, Dict, List, Optional, Union
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, ValidationError, dbtClassMixin, dbtMashConfig
@dataclass
class ProjectFlags(ExtensibleDbtClassMixin):
cache_selected_only: Optional[bool] = None
... | @dataclass
class ProjectFlags(ExtensibleDbtClassMixin):
@property
def project_only_flags(self) -> Dict[str, Any]:
pass | 4 | 0 | 12 | 0 | 12 | 0 | 1 | 0.02 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 46 | 2 | 43 | 32 | 40 | 1 | 32 | 31 | 30 | 1 | 1 | 0 | 1 |
31,389 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.ProjectList | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, ValidationError, dbtClassMixin, dbtMashConfig
from typing import Any, ClassVar, Dict, List, Optional, Union
@dataclass
class ProjectList(dbtClassMixin):
projects: Dict[str, Project] | @dataclass
class ProjectList(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
31,390 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.ProjectPackageMetadata | from typing import Any, ClassVar, Dict, List, Optional, Union
from dataclasses import dataclass, field
@dataclass
class ProjectPackageMetadata:
name: str
packages: List[PackageSpec]
@classmethod
def from_project(cls, project):
return cls(name=project.project_name, packages=project.packages.pac... | @dataclass
class ProjectPackageMetadata:
@classmethod
def from_project(cls, project):
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 7 | 1 | 6 | 3 | 3 | 0 | 5 | 2 | 3 | 1 | 0 | 0 | 1 |
31,391 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.Quoting | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, ValidationError, dbtClassMixin, dbtMashConfig
from dbt_common.contracts.util import Mergeable
from typing import Any, ClassVar, Dict, List, Optional, Union
@dataclass
class Quoting(dbtClassMixin, Mergeable):
s... | @dataclass
class Quoting(dbtClassMixin, Mergeable):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 1 | 0 | 0 |
31,392 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.RegistryPackage | from typing import Any, ClassVar, Dict, List, Optional, Union
from dataclasses import dataclass, field
@dataclass
class RegistryPackage(Package):
package: str
version: Union[RawVersion, List[RawVersion]]
install_prerelease: Optional[bool] = False
unrendered: Dict[str, Any] = field(default_factory=dict)... | @dataclass
class RegistryPackage(Package):
def get_versions(self) -> List[str]:
pass | 3 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 11 | 1 | 10 | 4 | 8 | 0 | 9 | 4 | 7 | 2 | 2 | 1 | 2 |
31,393 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.RegistryPackageMetadata | from dataclasses import dataclass, field
from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, ValidationError, dbtClassMixin, dbtMashConfig
@dataclass
class RegistryPackageMetadata(ExtensibleDbtClassMixin, ProjectPackageMetadata):
downloads: Downloads | @dataclass
class RegistryPackageMetadata(ExtensibleDbtClassMixin, ProjectPackageMetadata):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 5 | 0 | 5 | 4 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
31,394 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.SemverString | from mashumaro.types import SerializableType
class SemverString(str, SerializableType):
def _serialize(self) -> str:
return self
@classmethod
def _deserialize(cls, value: str) -> 'SemverString':
return SemverString(value) |
class SemverString(str, SerializableType):
def _serialize(self) -> str:
pass
@classmethod
def _deserialize(cls, value: str) -> 'SemverString':
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 0 | 2 | 68 | 7 | 1 | 6 | 4 | 2 | 0 | 5 | 3 | 2 | 1 | 2 | 0 | 2 |
31,395 | fishtown-analytics/dbt | core/dbt/contracts/project.py | dbt.contracts.project.TarballPackage | from dataclasses import dataclass, field
from typing import Any, ClassVar, Dict, List, Optional, Union
@dataclass
class TarballPackage(Package):
tarball: str
name: str
unrendered: Dict[str, Any] = field(default_factory=dict) | @dataclass
class TarballPackage(Package):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 2 | 3 | 0 | 4 | 2 | 3 | 0 | 2 | 0 | 0 |
31,396 | fishtown-analytics/dbt | core/dbt/contracts/selection.py | dbt.contracts.selection.SelectorDefinition | from dataclasses import dataclass
from dbt_common.dataclass_schema import dbtClassMixin
from typing import Any, Dict, List, Union
@dataclass
class SelectorDefinition(dbtClassMixin):
name: str
definition: Union[str, Dict[str, Any]]
description: str = ''
default: bool = False | @dataclass
class SelectorDefinition(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 3 | 4 | 0 | 5 | 3 | 4 | 0 | 1 | 0 | 0 |
31,397 | fishtown-analytics/dbt | core/dbt/contracts/selection.py | dbt.contracts.selection.SelectorFile | from dataclasses import dataclass
from dbt_common.dataclass_schema import dbtClassMixin
from typing import Any, Dict, List, Union
@dataclass
class SelectorFile(dbtClassMixin):
selectors: List[SelectorDefinition]
version: int = 2 | @dataclass
class SelectorFile(dbtClassMixin):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 2 | 2 | 0 | 3 | 2 | 2 | 0 | 1 | 0 | 0 |
31,398 | fishtown-analytics/dbt | core/dbt/contracts/sql.py | dbt.contracts.sql.RemoteCompileResult | from dataclasses import dataclass, field
from datetime import datetime, timezone
from dbt.artifacts.schemas.base import VersionedSchema, schema_version
@dataclass
@schema_version('remote-compile-result', 1)
class RemoteCompileResult(RemoteCompileResultMixin):
generated_at: datetime = field(default_factory=lambda: ... | @dataclass
@schema_version('remote-compile-result', 1)
class RemoteCompileResult(RemoteCompileResultMixin):
@property
def error(self) -> None:
pass | 5 | 0 | 3 | 0 | 2 | 1 | 1 | 0.2 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 5 | 7 | 1 | 5 | 4 | 2 | 1 | 4 | 3 | 2 | 1 | 3 | 0 | 1 |
31,399 | fishtown-analytics/dbt | core/dbt/contracts/sql.py | dbt.contracts.sql.RemoteCompileResultMixin | from dataclasses import dataclass, field
from dbt.artifacts.schemas.results import ExecutionResult, TimingInfo
from typing import Any, Dict, List, Optional, Sequence
from dbt.contracts.graph.nodes import ResultNode
from dbt.artifacts.schemas.base import VersionedSchema, schema_version
@dataclass
class RemoteCompileRes... | @dataclass
class RemoteCompileResultMixin(VersionedSchema):
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 4 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 2 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.