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
328,000
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.EnumDTO
from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from enum import Enum from strawchemy.dto.base import DTOBase, DTOFieldDefinition, ModelFieldT, ModelT class EnumDTO(DTOBase[Any], Enum): __field_definitions__: dict[str, GraphQLFieldDefinition] @property ...
class EnumDTO(DTOBase[Any], Enum): @property def field_definition(self) -> GraphQLFieldDefinition: pass
3
0
1
0
1
0
1
0
2
1
1
0
1
0
1
52
5
1
4
3
2
0
4
2
2
1
4
0
1
328,001
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.Filter
import dataclasses from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from typing_extensions import Self, override from dataclasses import dataclass @dataclass class Filter: and_: list[Union[Union[Self, GraphQLComparison], AggregationFilter]] = dataclasses.field(d...
@dataclass class Filter: def __bool__(self) -> bool: pass
3
0
2
0
2
0
1
0
0
1
0
0
1
0
1
1
7
1
6
5
4
0
6
5
4
1
0
0
1
328,002
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.FilterFunctionInfo
from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from dataclasses import dataclass @dataclass class FilterFunctionInfo: function: AggregationFunction enum_fields: type[EnumDTO] aggregation_type: AggregationType comparison_type: type[GraphQLComparison...
@dataclass class FilterFunctionInfo: @property def field_name(self) -> str: pass
4
0
4
0
4
0
2
0
0
1
0
0
1
0
1
1
14
2
12
5
9
0
11
4
9
2
0
1
2
328,003
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.FunctionArgFieldDefinition
from dataclasses import dataclass @dataclass(eq=False, repr=False) class FunctionArgFieldDefinition(FunctionFieldDefinition): def __post_init__(self) -> None: super().__post_init__() self.is_function_arg = True
@dataclass(eq=False, repr=False) class FunctionArgFieldDefinition(FunctionFieldDefinition): def __post_init__(self) -> None: pass
3
0
3
0
3
0
1
0
1
1
0
0
1
1
1
30
4
0
4
3
2
0
4
3
2
1
4
0
1
328,004
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.FunctionFieldDefinition
from strawchemy.dto.base import DTOBase, DTOFieldDefinition, ModelFieldT, ModelT from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from typing_extensions import Self, override from dataclasses import dataclass @dataclass(eq=False, repr=False) class FunctionFieldDefin...
@dataclass(eq=False, repr=False) class FunctionFieldDefinition(GraphQLFieldDefinition): def __post_init__(self) -> None: pass @override @classmethod def from_field(cls, field_def: DTOFieldDefinition[ModelT, ModelFieldT], *, function: Union[FilterFunctionInfo, OutputFunctionInfo], **kwargs: Any)...
8
0
6
0
6
0
1
0
1
5
2
1
2
1
3
29
25
3
22
14
9
0
9
6
5
1
3
0
3
328,005
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.GraphQLFieldDefinition
from sqlalchemy.orm import DeclarativeBase, QueryableAttribute from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from dataclasses import dataclass from typing_extensions import Self, override from strawchemy.dto.base import DTOBase, DTOFieldDefinition, ModelFieldT, Mo...
@dataclass(eq=False, repr=False) class GraphQLFieldDefinition(DTOFieldDefinition[DeclarativeBase, QueryableAttribute[Any]]): def _hash_identity(self) -> Hashable: pass @classmethod def from_field(cls, field_def: DTOFieldDefinition[ModelT, ModelFieldT], **kwargs: Any) -> Self: pass @prop...
20
0
4
0
4
0
1
0
1
6
0
2
9
0
10
26
62
11
51
24
35
0
30
16
19
3
2
1
12
328,006
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.GraphQLFilterDTO
from sqlalchemy.orm import DeclarativeBase, QueryableAttribute import strawberry class GraphQLFilterDTO(UnmappedStrawberryGraphQLDTO[DeclarativeBase]): @property def dto_set_fields(self) -> set[str]: return {name for name in self.__dto_field_definitions__ if getattr(self, name) is not strawberry.UNSET...
class GraphQLFilterDTO(UnmappedStrawberryGraphQLDTO[DeclarativeBase]): @property def dto_set_fields(self) -> set[str]: pass
3
0
2
0
2
0
1
0
1
2
0
3
1
0
1
3
4
0
4
3
1
0
3
2
1
1
4
0
1
328,007
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.MappedStrawberryGraphQLDTO
from strawchemy.dto.base import DTOBase, DTOFieldDefinition, ModelFieldT, ModelT from strawchemy.dto.backend.strawberry import MappedStrawberryDTO, StrawberryDTO class MappedStrawberryGraphQLDTO(StrawchemyDTOAttributes, MappedStrawberryDTO[ModelT]): ...
class MappedStrawberryGraphQLDTO(StrawchemyDTOAttributes, MappedStrawberryDTO[ModelT]): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
3
1
0
1
1
1
0
2
1
1
0
4
0
0
328,008
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.OrderByDTO
from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from .typing import GraphQLPurpose, OrderByDTOT, QueryNodeType from msgspec import Struct, field, json class OrderByDTO(GraphQLFilterDTO): def tree(self, _node: Optional[QueryNodeType]=None) -> QueryNodeType: ...
class OrderByDTO(GraphQLFilterDTO): def tree(self, _node: Optional[QueryNodeType]=None) -> QueryNodeType: pass
2
0
16
1
15
0
4
0
1
4
4
0
1
0
1
4
17
1
16
8
14
0
15
8
13
4
5
2
4
328,009
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.OrderByEnum
from enum import Enum class OrderByEnum(Enum): ASC = 'ASC' ASC_NULLS_FIRST = 'ASC_NULLS_FIRST' ASC_NULLS_LAST = 'ASC_NULLS_LAST' DESC = 'DESC' DESC_NULLS_FIRST = 'DESC_NULLS_FIRST' DESC_NULLS_LAST = 'DESC_NULLS_LAST'
class OrderByEnum(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
7
0
7
7
6
0
7
7
6
0
4
0
0
328,010
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.OrderByRelationFilterDTO
from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from typing_extensions import Self, override from msgspec import Struct, field, json from .typing import GraphQLPurpose, OrderByDTOT, QueryNodeType class OrderByRelationFilterDTO(RelationFilterDTO, Generic[OrderByDTOT...
class OrderByRelationFilterDTO(RelationFilterDTO, Generic[OrderByDTOT], frozen=True): @override def __bool__(self) -> bool: pass
3
0
2
0
2
0
1
0
3
1
0
0
1
0
1
31
6
1
5
4
2
0
4
3
2
1
3
0
1
328,011
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.OutputFunctionInfo
from strawchemy.dto.types import DTOConfig, DTOFieldConfig, DTOMissing, Purpose from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from dataclasses import dataclass @dataclass class OutputFunctionInfo: function: AggregationFunction output_type: Any require...
@dataclass class OutputFunctionInfo: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0
5
3
4
0
5
3
4
0
0
0
0
328,012
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.QueryGraphMetadata
from dataclasses import dataclass @dataclass class QueryGraphMetadata: root_aggregations: bool = False
@dataclass class QueryGraphMetadata: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
0
0
0
328,013
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.QueryNode
from dataclasses import dataclass from strawchemy.utils import camel_to_snake import dataclasses from strawchemy.dto.types import DTOConfig, DTOFieldConfig, DTOMissing, Purpose from typing_extensions import Self, override from strawchemy.graph import AnyNode, GraphMetadata, MatchOn, Node, NodeMetadata, NodeT from typin...
@dataclass(eq=False) class QueryNode(Node[GraphQLFieldDefinition, QueryNodeMetadata]): @classmethod @override def _node_hash_identity(cls, node: Node[GraphQLFieldDefinition, QueryNodeMetadata]) -> Hashable: pass @override def _update_new_child(self, child: NodeT) -> NodeT: pass ...
14
0
8
0
8
0
1
0
1
16
9
1
2
0
5
43
57
5
52
25
29
0
20
10
14
2
2
1
7
328,014
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.QueryNodeMetadata
import dataclasses from dataclasses import dataclass from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload @dataclass class QueryNodeMetadata: relation_filter: RelationFilterDTO = dataclasses.field(default_factory=RelationFilterDTO) order_by: Optional[OrderByEnum...
@dataclass class QueryNodeMetadata: @property def is_transform(self) -> bool: pass
4
0
2
0
2
0
1
0
0
1
0
0
1
0
1
1
9
1
8
7
5
0
7
6
5
1
0
0
1
328,015
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.RelationFilterDTO
from typing_extensions import Self, override from msgspec import Struct, field, json from functools import cached_property from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload class RelationFilterDTO(Struct, frozen=True, dict=True): limit: Optional[int] = None o...
class RelationFilterDTO(Struct, frozen=True, dict=True): @cached_property def _json(self) -> bytes: pass def __bool__(self) -> bool: pass @override def __hash__(self) -> int: pass
6
0
2
0
2
0
1
0
3
3
0
1
3
0
3
30
14
3
11
8
5
0
9
6
5
1
2
0
3
328,016
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.StrawchemyDTOAttributes
from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from strawchemy.sqlalchemy.hook import QueryHook from .typing import GraphQLPurpose, OrderByDTOT, QueryNodeType class StrawchemyDTOAttributes: __strawchemy_description__: ClassVar[str] = 'GraphQL type' __straw...
class StrawchemyDTOAttributes: pass
1
0
0
0
0
0
0
0
0
0
0
4
0
0
0
0
8
0
8
8
7
0
8
8
7
0
0
0
0
328,017
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto.UnmappedStrawberryGraphQLDTO
from strawchemy.dto.base import DTOBase, DTOFieldDefinition, ModelFieldT, ModelT from strawchemy.dto.backend.strawberry import MappedStrawberryDTO, StrawberryDTO class UnmappedStrawberryGraphQLDTO(StrawchemyDTOAttributes, StrawberryDTO[ModelT]): ...
class UnmappedStrawberryGraphQLDTO(StrawchemyDTOAttributes, StrawberryDTO[ModelT]): pass
1
0
0
0
0
0
0
0
2
0
0
3
0
0
0
2
1
0
1
1
1
0
2
1
1
0
3
0
0
328,018
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto._ArgumentValue
from strawchemy.dto.base import DTOBase, DTOFieldDefinition, ModelFieldT, ModelT from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from sqlalchemy.orm import DeclarativeBase, QueryableAttribute class _ArgumentValue: __field_definitions__: ClassVar[dict[str, DTOFi...
class _ArgumentValue: pass
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
4
1
3
1
2
0
3
1
2
0
0
0
0
328,019
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/dto.py
strawchemy.strawberry.dto._Key
from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from typing_extensions import Self, override class _Key(Generic[T]): """A class to represent a key with multiple components. The key is a sequence of components joined by a separator (default: ":"). It ca...
class _Key(Generic[T]): '''A class to represent a key with multiple components. The key is a sequence of components joined by a separator (default: ":"). It can be constructed from a sequence of components or a single string. Components can be of any type, but must be convertible to a string. The k...
15
1
3
0
3
0
2
0.35
1
6
0
1
10
1
10
10
61
15
34
18
19
12
29
14
18
3
1
1
15
328,020
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/exceptions.py
strawchemy.strawberry.exceptions.StrawchemyFieldError
class StrawchemyFieldError(Exception): ...
class StrawchemyFieldError(Exception): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
10
1
0
1
1
1
0
2
1
1
0
3
0
0
328,021
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations.AggregationInspector
from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStrawberryGraphQLDTO from functools import cached_property from sqlalchemy.orm import DeclarativeBase from strawchemy.dto.exceptions import DTOError from typing impo...
class AggregationInspector: def __init__(self, mapper: Strawchemy) -> None: pass def _supports_aggregations(self, *function: AggregationFunction) -> bool: pass @cached_property def _statistical_aggregations(self) -> list[AggregationFunction]: pass def _min_max_filters(sel...
12
0
24
1
23
0
4
0
0
27
16
0
10
10
10
10
248
16
232
50
212
0
88
34
77
9
0
2
35
328,022
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._CountFieldsDTOFactory
from typing import TYPE_CHECKING, Any, ClassVar, Optional, TypeVar, cast from typing_extensions import override from .enum import EnumDTOBackend, EnumDTOFactory from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStra...
class _CountFieldsDTOFactory(EnumDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, EnumDTO], None]]=None) -> str: pass
3
0
4
0
4
0
1
0
1
6
4
0
1
0
1
23
6
0
6
5
1
0
3
2
1
1
3
0
1
328,023
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._FunctionArgDTOFactory
from typing import TYPE_CHECKING, Any, ClassVar, Optional, TypeVar, cast from strawchemy.dto.backend.strawberry import StrawberrryDTOBackend from .enum import EnumDTOBackend, EnumDTOFactory from typing_extensions import override from .base import GraphQLDTOFactory from strawchemy.strawberry.dto import DTOKey, EnumDTO, ...
class _FunctionArgDTOFactory(GraphQLDTOFactory[UnmappedStrawberryGraphQLDTO[DeclarativeBase]]): def __init__(self, mapper: Strawchemy, backend: Optional[DTOBackend[UnmappedStrawberryGraphQLDTO[DeclarativeBase]]]=None, handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None) -> None: pass @ov...
9
0
17
0
17
0
2
0
1
22
14
8
5
1
5
35
97
5
92
58
38
0
17
10
11
3
3
1
8
328,024
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._MinMaxDateFieldsDTOFactory
from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStrawberryGraphQLDTO from typing import TYPE_CHECKING, Any, ClassVar, Optional, TypeVar, cast from datetime import date, datetime, time, timedelta from typing_extens...
class _MinMaxDateFieldsDTOFactory(_FunctionArgDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, UnmappedStrawberryGraphQLDTO[ModelT]], None]]=None) -> str: pass
3
0
7
0
7
0
1
0
1
6
4
0
1
0
1
36
11
1
10
9
2
0
4
3
2
1
4
0
1
328,025
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._MinMaxDateTimeFieldsDTOFactory
from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStrawberryGraphQLDTO from datetime import date, datetime, time, timedelta from typing_extensions import override from typing import TYPE_CHECKING, Any, ClassVar, Opt...
class _MinMaxDateTimeFieldsDTOFactory(_FunctionArgDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, UnmappedStrawberryGraphQLDTO[ModelT]], None]]=None) -> str: pass
3
0
7
0
7
0
1
0
1
6
4
0
1
0
1
36
11
1
10
9
2
0
4
3
2
1
4
0
1
328,026
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._MinMaxFieldsDTOFactory
from decimal import Decimal from datetime import date, datetime, time, timedelta from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStrawberryGraphQLDTO from typing_extensions import override from typing import TYPE_...
class _MinMaxFieldsDTOFactory(_FunctionArgDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, UnmappedStrawberryGraphQLDTO[ModelT]], None]]=None) -> str: pass
3
0
7
0
7
0
1
0
1
6
4
0
1
0
1
36
11
1
10
9
2
0
4
3
2
1
4
0
1
328,027
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._MinMaxNumericFieldsDTOFactory
from decimal import Decimal from typing import TYPE_CHECKING, Any, ClassVar, Optional, TypeVar, cast from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStrawberryGraphQLDTO from typing_extensions import override cla...
class _MinMaxNumericFieldsDTOFactory(_FunctionArgDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, UnmappedStrawberryGraphQLDTO[ModelT]], None]]=None) -> str: pass
3
0
7
0
7
0
1
0
1
6
4
0
1
0
1
36
11
1
10
9
2
0
4
3
2
1
4
0
1
328,028
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._MinMaxStringFieldsDTOFactory
from typing_extensions import override from typing import TYPE_CHECKING, Any, ClassVar, Optional, TypeVar, cast from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStrawberryGraphQLDTO class _MinMaxStringFieldsDTOFac...
class _MinMaxStringFieldsDTOFactory(_FunctionArgDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, UnmappedStrawberryGraphQLDTO[ModelT]], None]]=None) -> str: pass
3
0
7
0
7
0
1
0
1
6
4
0
1
0
1
36
11
1
10
9
2
0
4
3
2
1
4
0
1
328,029
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._MinMaxTimeFieldsDTOFactory
from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStrawberryGraphQLDTO from typing_extensions import override from typing import TYPE_CHECKING, Any, ClassVar, Optional, TypeVar, cast from datetime import date, datet...
class _MinMaxTimeFieldsDTOFactory(_FunctionArgDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, UnmappedStrawberryGraphQLDTO[ModelT]], None]]=None) -> str: pass
3
0
7
0
7
0
1
0
1
6
4
0
1
0
1
36
11
1
10
9
2
0
4
3
2
1
4
0
1
328,030
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._NumericFieldsDTOFactory
from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStrawberryGraphQLDTO from typing_extensions import override from decimal import Decimal from typing import TYPE_CHECKING, Any, ClassVar, Optional, TypeVar, cast cla...
class _NumericFieldsDTOFactory(_FunctionArgDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, UnmappedStrawberryGraphQLDTO[ModelT]], None]]=None) -> str: pass
3
0
7
0
7
0
1
0
1
6
4
0
1
0
1
36
11
1
10
9
2
0
4
3
2
1
4
0
1
328,031
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/aggregations.py
strawchemy.strawberry.factories.aggregations._SumFieldsDTOFactory
from decimal import Decimal from typing_extensions import override from datetime import date, datetime, time, timedelta from strawchemy.strawberry.dto import DTOKey, EnumDTO, FilterFunctionInfo, FunctionArgFieldDefinition, GraphQLFieldDefinition, OutputFunctionInfo, UnmappedStrawberryGraphQLDTO from typing import TYPE_...
class _SumFieldsDTOFactory(_FunctionArgDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, UnmappedStrawberryGraphQLDTO[ModelT]], None]]=None) -> str: pass
3
0
7
0
7
0
1
0
1
6
4
0
1
0
1
36
11
1
10
9
2
0
4
3
2
1
4
0
1
328,032
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/base.py
strawchemy.strawberry.factories.base.GraphQLDTOFactory
from strawchemy.utils import get_annotations from strawchemy.graph import Node from strawchemy.exceptions import StrawchemyError from strawchemy.strawberry._instance import MapperModelInstance from strawchemy.strawberry.dto import BooleanFilterDTO, DTOKey, GraphQLFieldDefinition, MappedStrawberryGraphQLDTO, OrderByDTO,...
class GraphQLDTOFactory(DTOFactory[DeclarativeBase, QueryableAttribute[Any], GraphQLDTOT]): def __init__(self, mapper: Strawchemy, backend: DTOBackend[GraphQLDTOT], handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None, **kwargs: Any) -> None: pass def _type_info(self, dto: type[Strawchem...
23
0
19
0
19
0
2
0
1
31
18
4
14
1
15
30
296
18
278
143
156
0
85
39
66
4
2
2
31
328,033
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/base.py
strawchemy.strawberry.factories.base.StrawchemyMappedFactory
from typing_extensions import TypeAlias, dataclass_transform, override from strawchemy.types import DefaultOffsetPagination from strawchemy.strawberry.dto import BooleanFilterDTO, DTOKey, GraphQLFieldDefinition, MappedStrawberryGraphQLDTO, OrderByDTO, StrawchemyDTOAttributes, UnmappedStrawberryGraphQLDTO from collectio...
class StrawchemyMappedFactory(GraphQLDTOFactory[MappedGraphQLDTOT]): def _root_input_config(self, model: type[Any], dto_config: DTOConfig, mode: GraphQLPurpose) -> DTOConfig: pass @dataclass_transform(order_default=True, kw_only_default=True) def type(self, model: type[T], *, include: Optional[Inc...
8
0
33
0
32
1
3
0.02
1
22
10
1
4
0
4
34
137
3
132
63
75
2
27
10
22
8
3
3
12
328,034
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/base.py
strawchemy.strawberry.factories.base.StrawchemyUnMappedDTOFactory
from typing_extensions import TypeAlias, dataclass_transform, override from strawchemy.dto.types import DTOAuto, DTOConfig, DTOScope, Purpose from strawchemy.types import DefaultOffsetPagination from collections.abc import Generator, Sequence from strawchemy.strawberry.dto import BooleanFilterDTO, DTOKey, GraphQLFieldD...
class StrawchemyUnMappedDTOFactory(GraphQLDTOFactory[UnmappedGraphQLDTOT]): @dataclass_transform(order_default=True, kw_only_default=True) def input(self, model: type[T], *, include: Optional[IncludeFields]=None, exclude: Optional[ExcludeFields]=None, partial: Optional[bool]=None, type_map: Optional[Mapping[A...
5
0
36
0
36
0
1
0
1
15
6
1
2
0
2
32
75
1
74
40
34
0
5
3
2
1
3
0
2
328,035
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/base.py
strawchemy.strawberry.factories.base._ChildOptions
from typing import TYPE_CHECKING, Any, Literal, Optional, TypeVar, Union, get_type_hints import dataclasses from strawchemy.types import DefaultOffsetPagination @dataclasses.dataclass(eq=True, frozen=True) class _ChildOptions: pagination: Union[DefaultOffsetPagination, bool] = False order_by: bool = False
@dataclasses.dataclass(eq=True, frozen=True) class _ChildOptions: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
3
2
0
3
3
2
0
0
0
0
328,036
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/enum.py
strawchemy.strawberry.factories.enum.EnumDTOBackend
from types import new_class from typing_extensions import override from collections.abc import Iterable from strawchemy.strawberry.dto import EnumDTO, GraphQLFieldDefinition from inspect import getmodule from sqlalchemy.orm import DeclarativeBase, QueryableAttribute from strawchemy.utils import snake_to_lower_camel_cas...
class EnumDTOBackend(DTOBackend[EnumDTO]): def __init__(self, to_camel: bool=True) -> None: pass @override def build(self, name: str, model: type[DeclarativeBase], field_definitions: Iterable[DTOFieldDefinition[DeclarativeBase, QueryableAttribute[Any]]], base: Optional[type[Any]]=None, values: Opt...
9
0
9
1
8
0
1
0.03
1
11
3
1
2
2
3
30
42
5
37
22
20
1
21
11
15
3
6
1
7
328,037
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/enum.py
strawchemy.strawberry.factories.enum.EnumDTOFactory
from strawchemy.dto.types import DTOConfig, ExcludeFields, IncludeFields, Purpose from enum import Enum from sqlalchemy.orm import DeclarativeBase, QueryableAttribute from strawchemy.strawberry.dto import EnumDTO, GraphQLFieldDefinition from strawchemy.dto.base import DTOBackend, DTOBase, DTOFactory, DTOFieldDefinition...
class EnumDTOFactory(DTOFactory[DeclarativeBase, QueryableAttribute[Any], EnumDTO]): def __init__(self, inspector: SQLAlchemyGraphQLInspector, backend: Optional[DTOBackend[EnumDTO]]=None, handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None) -> None: pass @override def dto_name(self, ...
12
0
13
0
13
0
1
0
1
21
11
3
7
0
7
22
106
7
99
61
39
0
18
9
10
2
2
1
8
328,038
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/enum.py
strawchemy.strawberry.factories.enum.UpsertConflictFieldsEnumDTOBackend
from sqlalchemy.orm import DeclarativeBase, QueryableAttribute from typing_extensions import override from strawchemy.dto.base import DTOBackend, DTOBase, DTOFactory, DTOFieldDefinition, Relation from strawchemy.strawberry.dto import EnumDTO, GraphQLFieldDefinition from typing import TYPE_CHECKING, Any, Optional, TypeV...
class UpsertConflictFieldsEnumDTOBackend(EnumDTOBackend): def __init__(self, inspector: SQLAlchemyGraphQLInspector, to_camel: bool=True) -> None: pass @override def build(self, name: str, model: type[DeclarativeBase], field_definitions: Iterable[DTOFieldDefinition[DeclarativeBase, QueryableAttribu...
4
0
12
0
12
0
1
0
1
9
3
0
2
3
2
32
27
1
26
17
14
0
10
8
7
1
7
0
2
328,039
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/inputs.py
strawchemy.strawberry.factories.inputs.AggregateFilterDTOFactory
from typing import TYPE_CHECKING, Any, Optional, TypeVar, Union from strawchemy.strawberry._registry import RegistryTypeInfo from strawchemy.strawberry.dto import AggregateFieldDefinition, AggregateFilterDTO, AggregationFunctionFilterDTO, BooleanFilterDTO, DTOKey, FilterFunctionInfo, FunctionArgFieldDefinition, Functio...
class AggregateFilterDTOFactory(_BaseStrawchemyFilterFactory[AggregateFilterDTO]): def __init__(self, mapper: Strawchemy, backend: Optional[DTOBackend[AggregateFilterDTO]]=None, handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None, aggregation_builder: Optional[AggregationInspector]=None) -> None: ...
9
0
24
0
24
0
2
0
1
23
16
0
5
2
5
39
128
4
124
51
84
0
31
17
25
4
5
2
10
328,040
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/inputs.py
strawchemy.strawberry.factories.inputs.BooleanFilterDTOFactory
from strawchemy.dto.base import DTOBackend, DTOBase, DTOFieldDefinition, Relation from typing import TYPE_CHECKING, Any, Optional, TypeVar, Union from strawchemy.dto.backend.strawberry import StrawberrryDTOBackend from strawchemy.strawberry.dto import AggregateFieldDefinition, AggregateFilterDTO, AggregationFunctionFil...
class BooleanFilterDTOFactory(_FilterDTOFactory[BooleanFilterDTO]): def __init__(self, mapper: Strawchemy, backend: Optional[DTOBackend[BooleanFilterDTO]]=None, handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None, aggregate_filter_factory: Optional[AggregateFilterDTOFactory]=None, **kwargs: Any) -> ...
2
0
17
0
17
0
1
0
1
8
4
0
1
0
1
42
18
0
18
10
8
0
3
2
1
1
6
0
1
328,041
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/inputs.py
strawchemy.strawberry.factories.inputs.OrderByDTOFactory
from strawberry import UNSET from strawchemy.dto.base import DTOBackend, DTOBase, DTOFieldDefinition, Relation from strawchemy.strawberry._registry import RegistryTypeInfo from typing import TYPE_CHECKING, Any, Optional, TypeVar, Union from strawchemy.dto.backend.strawberry import StrawberrryDTOBackend from strawchemy....
class OrderByDTOFactory(_FilterDTOFactory[OrderByDTO]): def __init__(self, mapper: Strawchemy, backend: Optional[DTOBackend[OrderByDTO]]=None, handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None, aggregation_filter_factory: Optional[AggregateFilterDTOFactory]=None) -> None: pass @overrid...
12
0
16
0
16
0
1
0
1
23
16
0
7
0
7
48
124
8
116
50
75
0
32
17
24
3
6
2
9
328,042
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/inputs.py
strawchemy.strawberry.factories.inputs._BaseStrawchemyFilterFactory
from strawchemy.dto.types import DTOConfig, DTOMissing, Purpose from .base import StrawchemyUnMappedDTOFactory, UnmappedGraphQLDTOT from typing import TYPE_CHECKING, Any, Optional, TypeVar, Union from typing_extensions import override from strawchemy.strawberry.typing import AggregationFunction, GraphQLFilterDTOT, Grap...
class _BaseStrawchemyFilterFactory(StrawchemyUnMappedDTOFactory[UnmappedGraphQLDTOT]): @classmethod @override def graphql_type(cls, dto_config: DTOConfig) -> GraphQLType: pass @override def input(self, model: type[DeclarativeT], *, include: Optional[IncludeFields]=None, exclude: Optional[E...
6
0
17
0
17
0
1
0
1
10
2
2
1
0
2
34
39
1
38
21
16
0
5
3
2
1
4
0
2
328,043
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/inputs.py
strawchemy.strawberry.factories.inputs._FilterDTOFactory
from strawchemy.graph import Node from collections.abc import Generator, Sequence from strawchemy.strawberry.typing import AggregationFunction, GraphQLFilterDTOT, GraphQLPurpose from strawchemy.dto.types import DTOConfig, DTOMissing, Purpose from strawchemy.dto.base import DTOBackend, DTOBase, DTOFieldDefinition, Relat...
class _FilterDTOFactory(_BaseStrawchemyFilterFactory[GraphQLFilterDTOT]): def __init__(self, mapper: Strawchemy, backend: DTOBackend[GraphQLFilterDTOT], handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None, aggregation_filter_factory: Optional[AggregateFilterDTOFactory]=None, **kwargs: Any) -> None: ...
12
0
13
0
13
0
2
0
1
18
11
2
7
1
7
41
104
7
97
56
48
0
33
15
25
6
5
3
12
328,044
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/types.py
strawchemy.strawberry.factories.types.AggregateDTOFactory
from strawchemy.strawberry.dto import AggregateDTO, AggregateFieldDefinition, DTOKey, EnumDTO, FunctionFieldDefinition, GraphQLFieldDefinition, MappedStrawberryGraphQLDTO from sqlalchemy.orm import DeclarativeBase, QueryableAttribute from .base import GraphQLDTOFactory, MappedGraphQLDTOT, StrawchemyMappedFactory, _Chil...
class AggregateDTOFactory(GraphQLDTOFactory[AggregateDTOT]): def __init__(self, mapper: Strawchemy, backend: DTOBackend[AggregateDTOT], handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None, aggregation_builder: Optional[AggregationInspector]=None, **kwargs: Any) -> None: pass @override ...
8
0
12
0
12
0
2
0
1
17
10
0
4
1
4
34
56
4
52
35
22
0
16
10
11
4
3
0
7
328,045
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/types.py
strawchemy.strawberry.factories.types.DistinctOnFieldsDTOFactory
from typing import TYPE_CHECKING, Any, Optional, TypeVar, Union from strawchemy.strawberry.dto import AggregateDTO, AggregateFieldDefinition, DTOKey, EnumDTO, FunctionFieldDefinition, GraphQLFieldDefinition, MappedStrawberryGraphQLDTO from strawchemy.dto.types import DTOConfig, DTOMissing, Purpose from strawchemy.graph...
class DistinctOnFieldsDTOFactory(EnumDTOFactory): @override def dto_name(self, base_name: str, dto_config: DTOConfig, node: Optional[Node[Relation[Any, EnumDTO], None]]=None) -> str: pass
3
0
4
0
4
0
1
0
1
6
4
0
1
0
1
23
6
0
6
5
1
0
3
2
1
1
3
0
1
328,046
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/types.py
strawchemy.strawberry.factories.types.InputFactory
from .enum import EnumDTOFactory, UpsertConflictFieldsEnumDTOBackend from strawchemy.dto.types import DTOConfig, DTOMissing, Purpose from sqlalchemy.orm import DeclarativeBase, QueryableAttribute from strawchemy.utils import get_annotations, non_optional_type_hint, snake_to_camel from .base import GraphQLDTOFactory, Ma...
class InputFactory(TypeDTOFactory[MappedGraphQLDTOT]): def __init__(self, mapper: Strawchemy, backend: DTOBackend[MappedGraphQLDTOT], handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None, **kwargs: Any) -> None: pass def _identifier_input(self, field: DTOFieldDefinition[DeclarativeBase, ...
20
0
17
0
16
0
2
0.02
1
30
20
1
11
4
11
52
200
12
188
117
95
3
64
35
52
7
5
2
22
328,047
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/types.py
strawchemy.strawberry.factories.types.RootAggregateTypeDTOFactory
from sqlalchemy.orm import DeclarativeBase, QueryableAttribute from strawchemy.strawberry.dto import AggregateDTO, AggregateFieldDefinition, DTOKey, EnumDTO, FunctionFieldDefinition, GraphQLFieldDefinition, MappedStrawberryGraphQLDTO from strawchemy.dto.backend.strawberry import StrawberrryDTOBackend from strawchemy.dt...
class RootAggregateTypeDTOFactory(TypeDTOFactory[MappedGraphQLDTOT]): def __init__(self, mapper: Strawchemy, backend: DTOBackend[MappedGraphQLDTOT], handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None, type_factory: Optional[TypeDTOFactory[MappedGraphQLDTOT]]=None, aggregation_factory: Optional[Aggr...
8
0
21
0
21
0
2
0
1
19
11
0
4
2
4
45
89
3
86
50
43
0
22
12
17
3
5
1
6
328,048
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/types.py
strawchemy.strawberry.factories.types.TypeDTOFactory
from .inputs import OrderByDTOFactory from strawchemy.constants import AGGREGATIONS_KEY, JSON_PATH_KEY, NODES_KEY from typing_extensions import Self, override from collections.abc import Generator from strawberry.annotation import StrawberryAnnotation from strawchemy.dto.types import DTOConfig, DTOMissing, Purpose from...
class TypeDTOFactory(StrawchemyMappedFactory[MappedGraphQLDTOT]): def __init__(self, mapper: Strawchemy, backend: DTOBackend[MappedGraphQLDTOT], handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None, aggregation_factory: Optional[AggregateDTOFactory[AggregateDTOT]]=None, order_by_factory: Optional[Ord...
12
0
24
0
23
0
3
0
1
27
16
2
7
2
7
41
178
9
169
87
99
0
57
25
49
11
4
3
24
328,049
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/factories/types.py
strawchemy.strawberry.factories.types.UpsertConflictFieldsDTOFactory
from strawchemy.strawberry.dto import AggregateDTO, AggregateFieldDefinition, DTOKey, EnumDTO, FunctionFieldDefinition, GraphQLFieldDefinition, MappedStrawberryGraphQLDTO from strawchemy.dto.types import DTOConfig, DTOMissing, Purpose from .enum import EnumDTOFactory, UpsertConflictFieldsEnumDTOBackend from typing impo...
class UpsertConflictFieldsDTOFactory(EnumDTOFactory): def __init__(self, inspector: SQLAlchemyGraphQLInspector, backend: Optional[UpsertConflictFieldsEnumDTOBackend]=None, handle_cycles: bool=True, type_map: Optional[dict[Any, Any]]=None) -> None: pass @override def dto_name(self, base_name: str, ...
6
0
9
0
9
0
1
0
1
12
7
0
3
0
3
25
35
3
32
23
12
0
10
6
6
1
3
0
3
328,050
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.ArrayFilter
from typing_extensions import override from sqlalchemy.dialects import postgresql as pg from dataclasses import dataclass from strawberry import UNSET from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Union, cast from sqlalchemy import cast as sqla_cast from sqlalchemy import ARRAY, JSON, ColumnElement, Dialec...
@dataclass(frozen=True) class ArrayFilter(EqualityFilter): @override def to_expressions(self, dialect: Dialect, model_attribute: Union[ColumnElement[ARRAY[Any]], QueryableAttribute[ARRAY[Any]]]) -> list[ColumnElement[bool]]: pass
4
0
13
1
12
0
4
0
1
4
0
0
1
0
1
27
17
2
15
7
10
0
12
4
10
4
7
1
4
328,051
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.BaseDateFilter
from strawberry import UNSET from typing_extensions import override from dataclasses import dataclass from sqlalchemy import ARRAY, JSON, ColumnElement, Dialect, Integer, Text, and_, func, not_, null, or_, type_coerce from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Union, cast from sqlalchemy import cast as ...
@dataclass(frozen=True) class BaseDateFilter(FilterProtocol): def _sqlite_date(self, dialect: Dialect, model_attribute: Union[ColumnElement[date], QueryableAttribute[date]]) -> list[ColumnElement[bool]]: pass def _postgres_date(self, dialect: Dialect, model_attribute: Union[ColumnElement[date], Querya...
7
0
30
2
28
0
8
0
1
5
0
2
4
0
4
29
125
11
114
18
100
0
66
9
61
9
6
1
31
328,052
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.BaseTimeFilter
from sqlalchemy import ARRAY, JSON, ColumnElement, Dialect, Integer, Text, and_, func, not_, null, or_, type_coerce from dataclasses import dataclass from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Union, cast from sqlalchemy import cast as sqla_cast from typing_extensions import override @dataclass(frozen=...
@dataclass(frozen=True) class BaseTimeFilter(FilterProtocol): def _sqlite_time(self, dialect: Dialect, model_attribute: Union[ColumnElement[date], QueryableAttribute[date]]) -> list[ColumnElement[bool]]: pass def _extract_time(self, dialect: Dialect, model_attribute: Union[ColumnElement[date], Queryab...
6
0
14
2
12
0
3
0
1
5
0
2
3
0
3
28
49
9
40
14
29
0
26
7
22
4
6
1
10
328,053
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.DateFilter
from dataclasses import dataclass @dataclass(frozen=True) class DateFilter(BaseDateFilter, OrderFilter): comparison: DateComparison
@dataclass(frozen=True) class DateFilter(BaseDateFilter, OrderFilter): pass
2
0
0
0
0
0
0
0
2
0
0
0
0
0
0
31
2
0
2
1
1
0
2
1
1
0
8
0
0
328,054
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.DateTimeFilter
from dataclasses import dataclass @dataclass(frozen=True) class DateTimeFilter(BaseDateFilter, BaseTimeFilter, OrderFilter): comparison: DateTimeComparison
@dataclass(frozen=True) class DateTimeFilter(BaseDateFilter, BaseTimeFilter, OrderFilter): pass
2
0
0
0
0
0
0
0
3
0
0
0
0
0
0
34
2
0
2
1
1
0
2
1
1
0
8
0
0
328,055
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.EqualityFilter
from strawberry import UNSET from sqlalchemy import ARRAY, JSON, ColumnElement, Dialect, Integer, Text, and_, func, not_, null, or_, type_coerce from dataclasses import dataclass from typing_extensions import override from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Union, cast @dataclass(frozen=True) class ...
@dataclass(frozen=True) class EqualityFilter(FilterProtocol): @override def to_expressions(self, dialect: Dialect, model_attribute: Union[QueryableAttribute[Any], ColumnElement[Any]]) -> list[ColumnElement[bool]]: pass
4
0
21
2
19
0
7
0
1
3
0
3
1
0
1
26
25
3
22
8
15
0
15
3
13
7
6
1
7
328,056
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.FilterProtocol
from dataclasses import dataclass from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Union, cast from sqlalchemy import ARRAY, JSON, ColumnElement, Dialect, Integer, Text, and_, func, not_, null, or_, type_coerce @dataclass(frozen=True) class FilterProtocol(Protocol): comparison: GraphQLComparison def...
@dataclass(frozen=True) class FilterProtocol(Protocol): def to_expressions(self, dialect: Dialect, model_attribute: Union[QueryableAttribute[Any], ColumnElement[Any]]) -> list[ColumnElement[bool]]: pass
3
0
4
0
4
0
1
0
1
3
0
4
1
0
1
25
7
1
6
4
2
0
4
2
2
1
5
0
1
328,057
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.JSONFilter
from sqlalchemy import ARRAY, JSON, ColumnElement, Dialect, Integer, Text, and_, func, not_, null, or_, type_coerce from typing_extensions import override from sqlalchemy.dialects import postgresql as pg from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Union, cast from sqlalchemy.dialects import mysql from sq...
@dataclass(frozen=True) class JSONFilter(EqualityFilter): def _postgres_json(self, model_attribute: Union[ColumnElement[JSON], QueryableAttribute[JSON]]) -> list[ColumnElement[bool]]: pass def _mysql_json(self, model_attribute: Union[ColumnElement[JSON], QueryableAttribute[JSON]]) -> list[ColumnElemen...
7
0
19
1
18
0
5
0
1
3
0
0
4
0
4
30
84
9
75
20
61
0
46
11
41
6
7
1
20
328,058
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.OrderFilter
from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Union, cast from sqlalchemy import ARRAY, JSON, ColumnElement, Dialect, Integer, Text, and_, func, not_, null, or_, type_coerce from dataclasses import dataclass from typing_extensions import override from strawberry import UNSET @dataclass(frozen=True) class ...
@dataclass(frozen=True) class OrderFilter(EqualityFilter): @override def to_expressions(self, dialect: Dialect, model_attribute: Union[QueryableAttribute[Any], ColumnElement[Any]]) -> list[ColumnElement[bool]]: pass
4
0
15
2
13
0
5
0
1
4
0
5
1
0
1
27
19
3
16
6
11
0
13
3
11
5
7
1
5
328,059
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.TextFilter
from sqlalchemy import ARRAY, JSON, ColumnElement, Dialect, Integer, Text, and_, func, not_, null, or_, type_coerce from dataclasses import dataclass from typing_extensions import override from strawberry import UNSET from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Union, cast @dataclass(frozen=True) class ...
@dataclass(frozen=True) class TextFilter(OrderFilter): def _like_expressions(self, model_attribute: Union[QueryableAttribute[str], ColumnElement[str]]) -> list[ColumnElement[bool]]: pass def _regexp_expressions(self, dialect: Dialect, model_attribute: Union[QueryableAttribute[str], ColumnElement[str]]...
6
0
19
2
18
0
6
0
1
4
0
0
3
0
3
30
64
8
56
18
43
0
45
9
41
7
8
2
18
328,060
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.TimeDeltaFilter
from typing_extensions import override from dataclasses import dataclass from sqlalchemy import ARRAY, JSON, ColumnElement, Dialect, Integer, Text, and_, func, not_, null, or_, type_coerce from typing import TYPE_CHECKING, Any, ClassVar, Protocol, Union, cast from sqlalchemy import cast as sqla_cast @dataclass(frozen=...
@dataclass(frozen=True) class TimeDeltaFilter(OrderFilter): def _postgres_interval(self, dialect: Dialect, model_attribute: Union[ColumnElement[timedelta], QueryableAttribute[timedelta]]) -> list[ColumnElement[bool]]: pass def _mysql_interval(self, dialect: Dialect, model_attribute: Union[ColumnElemen...
7
0
23
2
21
0
5
0
1
4
0
0
4
0
4
31
98
12
86
19
72
0
43
10
38
5
8
1
19
328,061
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/base.py
strawchemy.strawberry.filters.base.TimeFilter
from dataclasses import dataclass @dataclass(frozen=True) class TimeFilter(BaseTimeFilter, OrderFilter): comparison: TimeComparison
@dataclass(frozen=True) class TimeFilter(BaseTimeFilter, OrderFilter): pass
2
0
0
0
0
0
0
0
2
0
0
0
0
0
0
30
2
0
2
1
1
0
2
1
1
0
8
0
0
328,062
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/geo.py
strawchemy.strawberry.filters.geo.GeoComparison
from strawberry import UNSET import strawberry from .inputs import GraphQLComparison from strawchemy.strawberry.geo import GeoJSON from typing import Any, Optional, TypeVar, Union @strawberry.input class GeoComparison(GraphQLComparison): """Geo comparison class for GraphQL filters. This class provides a set o...
null
2
1
0
0
0
0
0
1.8
1
0
0
0
0
0
0
3
16
4
5
5
4
9
5
5
4
0
1
0
0
328,063
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/geo.py
strawchemy.strawberry.filters.geo.GeoFilter
from .base import FilterProtocol from dataclasses import dataclass from sqlalchemy.orm import QueryableAttribute from typing_extensions import override from sqlalchemy import ColumnElement, Dialect, null from typing import Any, Optional, TypeVar, Union from geoalchemy2 import functions as geo_func @dataclass(frozen=Tr...
@dataclass(frozen=True) class GeoFilter(FilterProtocol): @override def to_expressions(self, dialect: Dialect, model_attribute: Union[QueryableAttribute[Any], ColumnElement[Any]]) -> list[ColumnElement[bool]]: pass
4
0
24
2
22
0
5
0
1
3
0
0
1
0
1
26
28
3
25
6
20
0
11
3
9
5
6
1
5
328,064
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs.ArrayComparison
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter from strawberry import UNSET, Private import strawberry @strawberry.input(name='ArrayCompa...
null
2
1
0
0
0
0
0
1.8
2
0
0
0
0
0
0
5
18
4
5
5
4
9
5
5
4
0
2
0
0
328,065
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs.DateComparison
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter from datetime import date, datetime, time, timedelta from strawberry import UNSET, Private ...
null
2
1
0
0
0
0
0
1.3
1
0
0
0
0
0
0
5
27
4
10
10
9
13
10
10
9
0
3
0
0
328,066
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs.DateTimeComparison
import strawberry from datetime import date, datetime, time, timedelta from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union from strawberry impo...
@strawberry.input(name='DateTimeComparison', description=_DESCRIPTION.format(field='DateTime fields')) class DateTimeComparison(OrderComparison[datetime]): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
5
15
2
13
13
12
0
13
13
12
0
3
0
0
328,067
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs.EqualityComparison
from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter from strawberry import UNSET, Private from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union import strawberry @strawberry.input(name='GenericCom...
null
2
1
0
0
0
0
0
1.57
2
0
0
4
0
0
0
5
22
4
7
7
6
11
7
7
6
0
1
0
0
328,068
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs.GraphQLComparison
from strawberry import UNSET, Private from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter from sqlalchemy import Dialect from strawchemy.strawberry.typing import QueryNodeType from typing import TYPE_CHECKING, Any, G...
class GraphQLComparison: '''Base class for GraphQL comparison filters. This class provides a foundation for creating comparison filters that can be used in GraphQL queries. It defines the basic structure and methods for comparing fields of a specific type. Attributes: _description: A class ...
6
1
3
0
3
0
1
0.6
0
4
0
2
3
0
3
3
30
6
15
9
7
9
11
5
7
2
0
1
4
328,069
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs.OrderComparison
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter from strawberry import UNSET, Private import strawberry @strawberry.input(name='OrderCompa...
null
2
1
0
0
0
0
0
1.5
1
0
0
5
0
0
0
5
19
4
6
6
5
9
6
6
5
0
2
0
0
328,070
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs.TextComparison
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter import strawberry from strawberry import UNSET, Private @strawberry.input(name='TextCompar...
null
2
1
0
0
0
0
0
1.06
1
0
0
0
0
0
0
5
37
4
16
16
15
17
16
16
15
0
3
0
0
328,071
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs.TimeComparison
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter import strawberry from datetime import date, datetime, time, timedelta from strawberry impo...
null
2
1
0
0
0
0
0
1.6
1
0
0
0
0
0
0
5
17
4
5
5
4
8
5
5
4
0
3
0
0
328,072
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs.TimeDeltaComparison
from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union from strawberry import UNSET, Private from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter import strawberry from datetime import date, datetime...
@strawberry.input(name='IntervalComparison', description=_DESCRIPTION.format(field='Interval fields')) class TimeDeltaComparison(OrderComparison[timedelta]): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
5
7
1
6
6
5
0
6
6
5
0
3
0
0
328,073
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs._JSONComparison
from strawberry import UNSET, Private from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union class _JSONComparison(EqualityComparison[dict[str, A...
class _JSONComparison(EqualityComparison[dict[str, Any]]): '''JSON comparison class for GraphQL filters. This class provides a set of JSON comparison operators that can be used to filter data based on containment, key existence, and other JSON-specific properties. Attributes: contains: Filt...
1
1
0
0
0
0
0
1.57
1
0
0
0
0
0
0
5
22
4
7
7
6
11
7
7
6
0
2
0
0
328,074
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/filters/inputs.py
strawchemy.strawberry.filters.inputs._SQLiteJSONComparison
from strawberry import UNSET, Private from .base import ArrayFilter, DateFilter, DateTimeFilter, EqualityFilter, FilterProtocol, JSONFilter, OrderFilter, TextFilter, TimeDeltaFilter, TimeFilter from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union class _SQLiteJSONComparison(EqualityComparison[dict[...
class _SQLiteJSONComparison(EqualityComparison[dict[str, Any]]): '''JSON comparison class for GraphQL filters. This class provides a set of JSON comparison operators that can be used to filter data based on containment, key existence, and other JSON-specific properties. Attributes: contains...
1
1
0
0
0
0
0
2.2
1
0
0
0
0
0
0
5
20
4
5
5
4
11
5
5
4
0
2
0
0
328,075
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/geo.py
strawchemy.strawberry.geo._GeometryHolder
from dataclasses import dataclass from geojson_pydantic.geometries import Geometry as PydanticGeometry @dataclass class _GeometryHolder: geo: PydanticGeometry
@dataclass class _GeometryHolder: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
0
0
0
328,076
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/input.py
strawchemy.strawberry.mutation.input.Input
from strawchemy.dto.base import DTOFieldDefinition, MappedDTO, ToMappedProtocol, VisitorProtocol from typing import TYPE_CHECKING, Any, Generic, Literal, Optional, TypeVar, Union, cast, final from sqlalchemy.orm import MapperProperty, RelationshipDirection, object_mapper from collections.abc import Hashable, Iterator, ...
class Input(Generic[InputModel]): def __init__(self, dtos: Union[MappedGraphQLDTO[InputModel], Sequence[MappedGraphQLDTO[InputModel]]], _validation_: Optional[ValidationProtocol[InputModel]]=None, **override: Any) -> None: pass @classmethod def _model_identity(cls, model: DeclarativeBase) -> Hasha...
8
0
17
0
17
0
4
0.02
1
18
8
0
5
6
6
8
110
7
101
43
84
2
65
33
58
9
1
4
26
328,077
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/input.py
strawchemy.strawberry.mutation.input.LevelInput
from dataclasses import dataclass, field @dataclass class LevelInput: inputs: list[_FilteredRelationInput] = field(default_factory=list)
@dataclass class LevelInput: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
2
2
1
0
2
2
1
0
0
0
0
328,078
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/input.py
strawchemy.strawberry.mutation.input.RelationInput
from typing_extensions import Self, TypeAlias, override from .types import RelationType, ToManyCreateInput, ToManyUpdateInput, ToManyUpsertInput, ToOneInput, ToOneUpsertInput from typing import TYPE_CHECKING, Any, Generic, Literal, Optional, TypeVar, Union, cast, final from sqlalchemy.orm import MapperProperty, Relatio...
class RelationInput(_UnboundRelationInput): def __init__(self, attribute: MapperProperty[Any], related: type[DeclarativeBase], parent: DeclarativeBase, relation_type: RelationType, set_: Union[list[DeclarativeBase], None, type[_Unset]]=_Unset, add: Optional[list[DeclarativeBase]]=None, remove: Optional[list[Decla...
7
0
13
0
13
0
2
0
1
8
3
0
4
4
5
8
70
5
65
24
45
0
24
10
18
3
1
1
10
328,079
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/input.py
strawchemy.strawberry.mutation.input.UpsertData
from dataclasses import dataclass, field from collections.abc import Hashable, Iterator, Sequence from .types import RelationType, ToManyCreateInput, ToManyUpdateInput, ToManyUpsertInput, ToOneInput, ToOneUpsertInput from typing_extensions import Self, TypeAlias, override import dataclasses from typing import TYPE_CHEC...
@dataclass(frozen=True) class UpsertData: @classmethod def from_upsert_input(cls, data: Union[ToOneUpsertInput[Any, Any, Any], ToManyUpsertInput[Any, Any, Any]]) -> Self: pass def __iter__(self) -> Iterator[DeclarativeBase]: pass
5
0
5
0
5
0
2
0
0
5
2
0
1
0
2
2
16
2
14
8
10
0
9
7
6
2
0
0
3
328,080
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/input.py
strawchemy.strawberry.mutation.input._FilteredRelationInput
from dataclasses import dataclass, field @dataclass class _FilteredRelationInput: relation: RelationInput instance: DeclarativeBase
@dataclass class _FilteredRelationInput: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
0
0
0
328,081
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/input.py
strawchemy.strawberry.mutation.input._InputVisitor
from .types import RelationType, ToManyCreateInput, ToManyUpdateInput, ToManyUpsertInput, ToOneInput, ToOneUpsertInput from typing import TYPE_CHECKING, Any, Generic, Literal, Optional, TypeVar, Union, cast, final from strawchemy.dto.inspectors.sqlalchemy import SQLAlchemyInspector import dataclasses from strawchemy.dt...
@dataclass class _InputVisitor(VisitorProtocol[DeclarativeBaseT], Generic[DeclarativeBaseT, InputModel]): @override def field_value(self, parent: ToMappedProtocol[DeclarativeBaseT], field: DTOFieldDefinition[DeclarativeBase, QueryableAttribute[Any]], value: Any, level: int) -> Any: pass @override ...
6
0
35
1
33
1
10
0.03
2
15
10
0
2
0
2
28
79
5
72
28
54
2
42
13
39
13
6
3
20
328,082
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/input.py
strawchemy.strawberry.mutation.input._UnboundRelationInput
from sqlalchemy.orm import MapperProperty, RelationshipDirection, object_mapper from typing import TYPE_CHECKING, Any, Generic, Literal, Optional, TypeVar, Union, cast, final from .types import RelationType, ToManyCreateInput, ToManyUpdateInput, ToManyUpsertInput, ToOneInput, ToOneUpsertInput class _UnboundRelationInp...
class _UnboundRelationInput: def __init__(self, attribute: MapperProperty[Any], related: type[DeclarativeBase], relation_type: RelationType, set_: Union[list[DeclarativeBase], None, type[_Unset]]=_Unset, add: Optional[list[DeclarativeBase]]=None, remove: Optional[list[DeclarativeBase]]=None, create: Optional[list...
4
0
12
0
12
0
3
0
0
8
3
1
3
10
3
3
38
2
36
26
20
0
21
14
17
5
0
2
10
328,083
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/input.py
strawchemy.strawberry.mutation.input._Unset
from typing import TYPE_CHECKING, Any, Generic, Literal, Optional, TypeVar, Union, cast, final @final class _Unset: ...
@final class _Unset: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1
1
0
2
1
1
0
0
0
0
328,084
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.ErrorId
from enum import Enum, auto class ErrorId(Enum): ERROR = 'ERROR' VALIDATION_ERROR = 'VALIDATION_ERROR' LOCALIZED_VALIDATION_ERROR = 'LOCALIZED_VALIDATION_ERROR'
class ErrorId(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
4
0
4
4
3
0
4
4
3
0
4
0
0
328,085
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.ErrorType
from typing import TYPE_CHECKING, Any, ClassVar, Generic, Optional, TypeVar, Union import strawberry @strawberry.interface(description='Base interface for expected errors', name='ErrorType') class ErrorType: """Base class for GraphQL errors.""" __error_types__: ClassVar[set[type[Any]]] = set() id: str = Er...
@strawberry.interface(description='Base interface for expected errors', name='ErrorType') class ErrorType: '''Base class for GraphQL errors.''' def __init_subclass__(cls) -> None: pass
3
1
4
0
4
0
2
0.14
0
0
0
2
1
0
1
1
11
3
7
3
5
1
7
3
5
2
0
1
2
328,086
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.LocalizedErrorType
import strawberry @strawberry.type(description='Indicate validation error type and location.', name='LocalizedErrorType') class LocalizedErrorType(ErrorType): """Match inner shape of pydantic ValidationError.""" id = ErrorId.LOCALIZED_VALIDATION_ERROR.value loc: list[str] = strawberry.field(default_factory...
@strawberry.type(description='Indicate validation error type and location.', name='LocalizedErrorType') class LocalizedErrorType(ErrorType): '''Match inner shape of pydantic ValidationError.''' pass
2
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
1
7
1
5
2
4
1
5
2
4
0
1
0
0
328,087
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.RelationType
from enum import Enum, auto class RelationType(Enum): TO_ONE = auto() TO_MANY = auto()
class RelationType(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
3
0
3
3
2
0
3
3
2
0
4
0
0
328,088
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.RequiredToManyUpdateInput
from typing import TYPE_CHECKING, Any, ClassVar, Generic, Optional, TypeVar, Union from typing_extensions import override import strawberry from strawchemy.dto.types import DTOUnset from strawberry import UNSET from strawchemy.dto.base import MappedDTO, ToMappedProtocol, VisitorProtocol @strawberry.input(description=_...
@strawberry.input(description=_TO_MANY_UPDATE_DESCRIPTION) class RequiredToManyUpdateInput(ToMappedProtocol[Any], Generic[T, RelationInputT, UpdateFieldsT, ConflictFieldsT]): @override def to_mapped(self, visitor: Optional[VisitorProtocol[Any]]=None, override: Optional[dict[str, Any]]=None, level: int=0) -> Un...
4
0
11
0
11
0
3
0
2
7
2
1
1
0
1
26
18
1
17
12
9
0
11
6
9
3
6
1
3
328,089
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.RequiredToOneInput
from strawberry import UNSET from strawchemy.dto.types import DTOUnset from strawchemy.dto.base import MappedDTO, ToMappedProtocol, VisitorProtocol from typing import TYPE_CHECKING, Any, ClassVar, Generic, Optional, TypeVar, Union import strawberry from typing_extensions import override @strawberry.input(description=_...
@strawberry.input(description=_TO_ONE_DESCRIPTION) class RequiredToOneInput(ToOneInput[T, RelationInputT, UpdateFieldsT, ConflictFieldsT]): @override def to_mapped(self, visitor: Optional[VisitorProtocol[Any]]=None, override: Optional[dict[str, Any]]=None, level: int=0) -> Union[Any, type[DTOUnset]]: p...
4
0
10
0
10
0
2
0
1
8
2
0
1
0
1
27
16
1
15
12
7
0
9
6
7
2
7
1
2
328,090
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.ToManyCreateInput
from typing import TYPE_CHECKING, Any, ClassVar, Generic, Optional, TypeVar, Union from strawberry import UNSET from strawchemy.dto.types import DTOUnset from strawchemy.dto.base import MappedDTO, ToMappedProtocol, VisitorProtocol from typing_extensions import override import strawberry @strawberry.input(description=_...
@strawberry.input(description=_TO_MANY_DESCRIPTION) class ToManyCreateInput(ToMappedProtocol[Any], Generic[T, RelationInputT, UpdateFieldsT, ConflictFieldsT]): @override def to_mapped(self, visitor: Optional[VisitorProtocol[Any]]=None, override: Optional[dict[str, Any]]=None, level: int=0) -> Union[list[Any], ...
4
0
14
0
14
0
4
0
2
8
2
0
1
0
1
26
21
1
20
13
12
0
14
7
12
4
6
1
4
328,091
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.ToManyUpdateInput
from strawchemy.dto.types import DTOUnset import strawberry from typing_extensions import override from strawchemy.dto.base import MappedDTO, ToMappedProtocol, VisitorProtocol from strawberry import UNSET from typing import TYPE_CHECKING, Any, ClassVar, Generic, Optional, TypeVar, Union @strawberry.input(description=_...
@strawberry.input(description=_TO_MANY_UPDATE_DESCRIPTION) class ToManyUpdateInput(RequiredToManyUpdateInput[T, RelationInputT, UpdateFieldsT, ConflictFieldsT]): @override def to_mapped(self, visitor: Optional[VisitorProtocol[Any]]=None, override: Optional[dict[str, Any]]=None, level: int=0) -> Union[list[Any]...
4
0
10
0
10
0
2
0
1
9
2
0
1
0
1
27
18
1
17
14
9
0
11
8
9
2
7
1
2
328,092
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.ToManyUpsertInput
import strawberry from strawberry import UNSET from typing import TYPE_CHECKING, Any, ClassVar, Generic, Optional, TypeVar, Union from strawchemy.dto.base import MappedDTO, ToMappedProtocol, VisitorProtocol from typing_extensions import override @strawberry.input(description='Add new objects or update if existing') cl...
@strawberry.input(description='Add new objects or update if existing') class ToManyUpsertInput(ToMappedProtocol[Any], Generic[UpdateFieldsT, ConflictFieldsT, RelationInputT]): @override def to_mapped(self, visitor: Optional[VisitorProtocol[Any]]=None, override: Optional[dict[str, Any]]=None, level: int=0) -> l...
4
0
7
0
7
0
1
0
2
6
1
0
1
0
1
26
13
1
12
9
4
0
6
3
4
1
6
0
1
328,093
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.ToOneInput
from strawchemy.dto.base import MappedDTO, ToMappedProtocol, VisitorProtocol from strawberry import UNSET from strawchemy.dto.types import DTOUnset from typing_extensions import override import strawberry from typing import TYPE_CHECKING, Any, ClassVar, Generic, Optional, TypeVar, Union @strawberry.input(description=_...
@strawberry.input(description=_TO_ONE_DESCRIPTION) class ToOneInput(ToMappedProtocol[Any], Generic[T, RelationInputT, UpdateFieldsT, ConflictFieldsT]): @override def to_mapped(self, visitor: Optional[VisitorProtocol[Any]]=None, override: Optional[dict[str, Any]]=None, level: int=0) -> Union[Any, type[DTOUnset]...
4
0
14
0
14
0
4
0
2
7
2
1
1
0
1
26
20
1
19
12
11
0
13
6
11
4
6
1
4
328,094
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.ToOneUpsertInput
from typing_extensions import override from typing import TYPE_CHECKING, Any, ClassVar, Generic, Optional, TypeVar, Union import strawberry from strawberry import UNSET from strawchemy.dto.base import MappedDTO, ToMappedProtocol, VisitorProtocol @strawberry.input(description='Add new object or update if existing') cla...
@strawberry.input(description='Add new object or update if existing') class ToOneUpsertInput(ToMappedProtocol[Any], Generic[UpdateFieldsT, ConflictFieldsT, RelationInputT]): @override def to_mapped(self, visitor: Optional[VisitorProtocol[Any]]=None, override: Optional[dict[str, Any]]=None, level: int=0) -> Any...
4
0
7
0
7
0
1
0
2
5
1
0
1
0
1
26
13
1
12
10
4
0
6
4
4
1
6
0
1
328,095
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/mutation/types.py
strawchemy.strawberry.mutation.types.ValidationErrorType
import strawberry @strawberry.type(description='Input is malformed or invalid.', name='ValidationErrorType') class ValidationErrorType(ErrorType): """Input is malformed or invalid.""" id = ErrorId.VALIDATION_ERROR.value errors: list[LocalizedErrorType]
@strawberry.type(description='Input is malformed or invalid.', name='ValidationErrorType') class ValidationErrorType(ErrorType): '''Input is malformed or invalid.''' pass
2
1
0
0
0
0
0
0.33
1
0
0
0
0
0
0
1
5
1
3
1
2
1
3
1
2
0
1
0
0
328,096
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/repository/_async.py
strawchemy.strawberry.repository._async.StrawchemyAsyncRepository
from typing import TYPE_CHECKING, Any, Optional, TypeVar from dataclasses import dataclass from strawchemy.strawberry._utils import default_session_getter, dto_model_from_type, strawberry_contained_user_type from ._base import GraphQLResult, StrawchemyRepository from strawchemy.sqlalchemy.repository import SQLAlchemyGr...
@dataclass class StrawchemyAsyncRepository(StrawchemyRepository[T]): '''Asynchronous repository implementation for GraphQL data access. This class provides asynchronous methods for querying and mutating data through GraphQL, using SQLAlchemy's asynchronous API under the hood. Args: type: The Str...
12
11
20
2
9
8
1
0.94
1
8
5
0
10
2
10
17
230
36
100
56
60
94
37
25
26
1
2
0
10
328,097
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/repository/_base.py
strawchemy.strawberry.repository._base.GraphQLResult
from ._node import StrawberryQueryNode from collections.abc import Collection, Sequence from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from dataclasses import dataclass from strawchemy.dto.base import ModelT @dataclass class GraphQLResult(Generic[ModelT, T]): ...
@dataclass class GraphQLResult(Generic[ModelT, T]): '''Container for GraphQL query results with conversion utilities. This class provides methods to convert raw query results into their corresponding GraphQL types, handling both single results and collections. Attributes: query_result: The raw q...
15
6
7
1
2
4
1
1.54
1
3
0
0
8
0
8
10
80
19
24
15
13
37
22
10
13
2
1
1
10
328,098
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/repository/_base.py
strawchemy.strawberry.repository._base.StrawchemyRepository
from strawberry.types.nodes import FragmentSpread, InlineFragment, SelectedField, Selection from collections.abc import Collection, Sequence from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, Optional, TypeVar, Union, overload from strawberry.types import get_object_definition, has_object_definition fro...
@dataclass class StrawchemyRepository(Generic[T]): '''Base repository for GraphQL data access in Strawchemy. This class provides the core functionality for building and executing GraphQL queries against a database, with support for filtering, ordering, and field selection. Args: type: The Strawb...
8
1
19
2
17
0
4
0.13
1
19
11
2
4
0
5
7
132
22
97
45
80
13
64
33
57
12
1
2
21
328,099
gazorby/strawchemy
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/gazorby_strawchemy/src/strawchemy/strawberry/repository/_node.py
strawchemy.strawberry.repository._node.StrawberryQueryNode
from strawchemy.dto.types import DTOMissing from typing import TYPE_CHECKING, Any, Generic, Optional, TypeVar, Union, cast from strawchemy.graph import GraphError from strawberry.types import get_object_definition from strawchemy.strawberry._instance import MapperModelInstance from strawchemy.constants import AGGREGATI...
@dataclass(eq=False, repr=False) class StrawberryQueryNode(QueryNode, Generic[T]): @property def strawberry_type(self) -> type[T]: pass def _model_instance_attribute(self) -> Optional[str]: pass @classmethod def _default_type_kwargs(cls, node: StrawberryQueryNode[Any]) -> dict[str,...
11
2
12
1
9
2
3
0.17
2
9
2
0
6
0
7
52
91
10
69
22
59
12
48
19
40
8
3
3
19