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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
327,200 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/flagging/groupers/enums.py | enums.GroupBy | from enum import StrEnum
class GroupBy(StrEnum):
ALL = 'all'
APP = 'app'
CODEOWNER = 'codeowner'
FILE = 'file'
FILE_CHUNK = 'file_chunk'
HOT_COLD = 'hot_cold'
INSTANCE = 'instance' |
class GroupBy(StrEnum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 68 | 8 | 0 | 8 | 8 | 7 | 0 | 8 | 8 | 7 | 0 | 3 | 0 | 0 |
327,201 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/enums.py | enums.ImportType | from enum import IntEnum, auto
from graph_sitter.shared.decorators.docs import apidoc
@apidoc
class ImportType(IntEnum):
"""Import types for each import object. Determines what the import resolves to, and what symbols are imported.
Attributes:
DEFAULT_EXPORT: Imports all default exports. Resolves to t... | @apidoc
class ImportType(IntEnum):
'''Import types for each import object. Determines what the import resolves to, and what symbols are imported.
Attributes:
DEFAULT_EXPORT: Imports all default exports. Resolves to the file.
NAMED_EXPORT: Imports a named export. Resolves to the symbol export.
... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 2.43 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 25 | 2 | 7 | 7 | 6 | 17 | 7 | 7 | 6 | 0 | 3 | 0 | 0 |
327,202 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/flagging/enums.py | enums.MessageType | from enum import IntFlag, auto
from graph_sitter.shared.decorators.docs import apidoc
@apidoc
class MessageType(IntFlag):
"""Destination of the message
Attributes:
CODEGEN: Rendered in the diff preview
GITHUB: Posted as a comment on the PR
SLACK: Sent over slack
"""
CODEGEN = a... | @apidoc
class MessageType(IntFlag):
'''Destination of the message
Attributes:
CODEGEN: Rendered in the diff preview
GITHUB: Posted as a comment on the PR
SLACK: Sent over slack
'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 12 | 2 | 4 | 4 | 3 | 6 | 4 | 4 | 3 | 0 | 3 | 0 | 0 |
327,203 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/enums.py | enums.NodeType | from enum import IntEnum, auto
class NodeType(IntEnum):
"""NodeType is an enumeration class that defines different types of nodes within the graph."""
REPO = auto()
FILE = auto()
IMPORT = auto()
EXPORT = auto()
SYMBOL = auto()
EXTERNAL = auto()
EXPRESSION = auto() |
class NodeType(IntEnum):
'''NodeType is an enumeration class that defines different types of nodes within the graph.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 10 | 1 | 8 | 8 | 7 | 8 | 8 | 8 | 7 | 0 | 3 | 0 | 0 |
327,204 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/git/schemas/enums.py | enums.RepoVisibility | from enum import StrEnum, auto
class RepoVisibility(StrEnum):
PRIVATE = auto()
PUBLIC = auto()
INTERNAL = auto() |
class RepoVisibility(StrEnum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 68 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 3 | 0 | 0 |
327,205 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/git/schemas/enums.py | enums.SetupOption | from enum import StrEnum, auto
class SetupOption(StrEnum):
CLONE = auto()
PULL_OR_CLONE = auto()
SKIP = auto()
INIT = auto() |
class SetupOption(StrEnum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 68 | 9 | 0 | 5 | 5 | 4 | 4 | 5 | 5 | 4 | 0 | 3 | 0 | 0 |
327,206 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/enums.py | enums.SymbolType | from enum import IntEnum, auto
class SymbolType(IntEnum):
"""TODO: names should be all uppercase"""
Function = auto()
Class = auto()
GlobalVar = auto()
Interface = auto()
Type = auto()
Enum = auto()
Namespace = auto() |
class SymbolType(IntEnum):
'''TODO: names should be all uppercase'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 10 | 1 | 8 | 8 | 7 | 1 | 8 | 8 | 7 | 0 | 3 | 0 | 0 |
327,207 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/visualizations/enums.py | enums.VizNode | from dataclasses import dataclass
@dataclass(frozen=True)
class VizNode:
name: str | None = None
text: str | None = None
code: str | None = None
color: str | None = None
shape: str | None = None
start_point: tuple | None = None
emoji: str | None = None
end_point: tuple | None = None
... | @dataclass(frozen=True)
class VizNode:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 11 | 11 | 10 | 0 | 11 | 11 | 10 | 0 | 0 | 0 | 0 |
327,208 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/runner/sandbox/executor.py | executor.SandboxExecutor | from graph_sitter.codebase.factory.codebase_factory import CodebaseType
from graph_sitter.visualizations.viz_utils import get_graph_json
from graph_sitter.shared.performance.stopwatch_utils import stopwatch
from graph_sitter.git.models.pr_options import PROptions
from graph_sitter.shared.exceptions.control_flow import ... |
class SandboxExecutor:
'''Responsible for executing the user defined codemod in the sandbox.'''
def __init__(self, codebase: CodebaseType):
pass
async def find_flags(self, execute_func: Callable) -> list[CodeFlag]:
'''Runs the execute_func in find_mode to find flags'''
pass
a... | 10 | 7 | 17 | 2 | 13 | 2 | 2 | 0.16 | 0 | 19 | 10 | 0 | 8 | 0 | 8 | 8 | 151 | 22 | 111 | 36 | 93 | 18 | 89 | 26 | 80 | 5 | 0 | 2 | 19 |
327,209 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/typescript/detached_symbols/jsx/expression.py | expression.JSXExpression | from graph_sitter.core.interfaces.unwrappable import Unwrappable
from graph_sitter.shared.decorators.docs import noapidoc, ts_apidoc
from graph_sitter.core.interfaces.editable import Editable
from graph_sitter.core.dataclasses.usage import UsageKind
from typing import Self, override
from graph_sitter.compiled.autocommi... | @ts_apidoc
class JSXExpression(Unwrappable['Function | JSXElement | JSXProp']):
'''Abstract representation of TSX/JSX expression'''
def __init__(self, *args, **kwargs):
pass
@cached_property
@reader
def statement(self) -> Editable[Self] | None:
'''Returns the editable component of t... | 15 | 4 | 9 | 2 | 5 | 3 | 2 | 0.47 | 1 | 4 | 2 | 0 | 5 | 0 | 5 | 8 | 60 | 13 | 32 | 13 | 16 | 15 | 23 | 9 | 15 | 5 | 2 | 2 | 12 |
327,210 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/typescript/expressions/expression_type.py | expression_type.TSExpressionType | from tree_sitter import Node as TSNode
from graph_sitter.core.expressions import Expression
from typing import TYPE_CHECKING, Generic, TypeVar
from graph_sitter.core.node_id_factory import NodeId
from graph_sitter.shared.decorators.docs import ts_apidoc
from graph_sitter.typescript.expressions.named_type import TSNamed... | @ts_apidoc
class TSExpressionType(TSNamedType, Generic[Parent]):
'''Type defined by evaluation of an expression
Attributes:
expression: The expression to evaluate that yields the type
'''
def __init__(self, ts_node: TSNode, file_node_id: NodeId, ctx: 'CodebaseContext', parent: Parent):
... | 3 | 1 | 3 | 0 | 3 | 0 | 1 | 0.8 | 2 | 1 | 0 | 0 | 1 | 0 | 1 | 42 | 12 | 3 | 5 | 2 | 3 | 4 | 5 | 2 | 3 | 1 | 7 | 0 | 1 |
327,211 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/author.py | extensions.github.types.author.GitHubAuthor | from pydantic import BaseModel
class GitHubAuthor(BaseModel):
name: str
email: str
username: str |
class GitHubAuthor(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 5 | 0 | 0 |
327,212 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/base.py | extensions.github.types.base.GitHubEvent | from pydantic import BaseModel, Field
class GitHubEvent(BaseModel):
action: str | None = None
issue: GitHubIssue | None = None
pull_request: GitHubPullRequest | None = None
repository: GitHubRepository
sender: GitHubUser |
class GitHubEvent(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 0 | 6 | 4 | 5 | 0 | 6 | 4 | 5 | 0 | 5 | 0 | 0 |
327,213 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/base.py | extensions.github.types.base.GitHubInstallation | from pydantic import BaseModel, Field
class GitHubInstallation(BaseModel):
code: str
installation_id: str
setup_action: str = 'install' |
class GitHubInstallation(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 0 | 4 | 2 | 3 | 0 | 4 | 2 | 3 | 0 | 5 | 0 | 0 |
327,214 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/base.py | extensions.github.types.base.GitHubIssue | from pydantic import BaseModel, Field
class GitHubIssue(BaseModel):
id: int
node_id: str
number: int
title: str
body: str | None
user: GitHubUser
state: str
comments: int |
class GitHubIssue(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 9 | 0 | 9 | 1 | 8 | 0 | 9 | 1 | 8 | 0 | 5 | 0 | 0 |
327,215 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/base.py | extensions.github.types.base.GitHubPullRequest | from pydantic import BaseModel, Field
class GitHubPullRequest(BaseModel):
id: int
node_id: str
number: int
title: str
body: str | None
user: GitHubUser
state: str
head: dict
base: dict
merged: bool | None = None |
class GitHubPullRequest(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 11 | 0 | 11 | 2 | 10 | 0 | 11 | 2 | 10 | 0 | 5 | 0 | 0 |
327,216 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/base.py | extensions.github.types.base.GitHubRepository | from pydantic import BaseModel, Field
class GitHubRepository(BaseModel):
id: int
node_id: str
name: str
full_name: str
private: bool
owner: GitHubUser |
class GitHubRepository(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 5 | 0 | 0 |
327,217 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/base.py | extensions.github.types.base.GitHubUser | from pydantic import BaseModel, Field
class GitHubUser(BaseModel):
login: str
id: int
node_id: str
type: str |
class GitHubUser(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 5 | 0 | 5 | 1 | 4 | 0 | 5 | 1 | 4 | 0 | 5 | 0 | 0 |
327,218 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/base.py | extensions.github.types.base.GitHubWebhookHeaders | from pydantic import BaseModel, Field
class GitHubWebhookHeaders(BaseModel):
event_type: str = Field(..., alias='x-github-event')
delivery_id: str = Field(..., alias='x-github-delivery')
hook_id: str = Field(..., alias='x-github-hook-id')
installation_target_id: str = Field(..., alias='x-github-hook-in... |
class GitHubWebhookHeaders(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
327,219 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/base.py | extensions.github.types.base.GitHubWebhookPayload | from pydantic import BaseModel, Field
class GitHubWebhookPayload(BaseModel):
headers: GitHubWebhookHeaders
event: GitHubEvent |
class GitHubWebhookPayload(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 5 | 0 | 0 |
327,220 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/commit.py | extensions.github.types.commit.GitHubCommit | from pydantic import BaseModel
from .author import GitHubAuthor
class GitHubCommit(BaseModel):
id: str
tree_id: str
distinct: bool
message: str
timestamp: str
url: str
author: GitHubAuthor
committer: GitHubAuthor
added: list[str]
removed: list[str]
modified: list[str] |
class GitHubCommit(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 12 | 0 | 12 | 1 | 11 | 0 | 12 | 1 | 11 | 0 | 5 | 0 | 0 |
327,221 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/enterprise.py | extensions.github.types.enterprise.GitHubEnterprise | from pydantic import BaseModel
class GitHubEnterprise(BaseModel):
id: int
slug: str
name: str
node_id: str
avatar_url: str
description: str
website_url: str
html_url: str
created_at: str
updated_at: str |
class GitHubEnterprise(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 11 | 0 | 11 | 1 | 10 | 0 | 11 | 1 | 10 | 0 | 5 | 0 | 0 |
327,222 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/installation.py | extensions.github.types.installation.GitHubInstallation | from pydantic import BaseModel
class GitHubInstallation(BaseModel):
id: int
node_id: str |
class GitHubInstallation(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 5 | 0 | 0 |
327,223 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/label.py | extensions.github.types.label.GitHubLabel | from pydantic import BaseModel
class GitHubLabel(BaseModel):
id: int
node_id: str
url: str
name: str
color: str
default: bool
description: str | None |
class GitHubLabel(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 8 | 0 | 8 | 1 | 7 | 0 | 8 | 1 | 7 | 0 | 5 | 0 | 0 |
327,224 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/organization.py | extensions.github.types.organization.GitHubOrganization | from pydantic import BaseModel
class GitHubOrganization(BaseModel):
login: str
id: int
node_id: str
url: str
repos_url: str
events_url: str
hooks_url: str
issues_url: str
members_url: str
public_members_url: str
avatar_url: str
description: str |
class GitHubOrganization(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 13 | 0 | 13 | 1 | 12 | 0 | 13 | 1 | 12 | 0 | 5 | 0 | 0 |
327,225 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/pull_request.py | extensions.github.types.pull_request.PullRequest | from pydantic import BaseModel
from .base import GitHubRepository, GitHubUser
class PullRequest(BaseModel):
url: str
id: int
node_id: str
html_url: str
diff_url: str
patch_url: str
issue_url: str
number: int
state: str
locked: bool
title: str
user: GitHubUser
body: s... |
class PullRequest(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 44 | 0 | 44 | 1 | 43 | 0 | 44 | 1 | 43 | 0 | 5 | 0 | 0 |
327,226 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/pull_request.py | extensions.github.types.pull_request.PullRequestLabeledEvent | from pydantic import BaseModel
from typing import Literal
class PullRequestLabeledEvent(BaseModel):
action: Literal['labeled']
number: int
pull_request: PullRequest
label: Label
repository: dict
sender: dict |
class PullRequestLabeledEvent(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 7 | 0 | 7 | 1 | 6 | 2 | 7 | 1 | 6 | 0 | 5 | 0 | 0 |
327,227 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/pull_request.py | extensions.github.types.pull_request.PullRequestLinks | from pydantic import BaseModel
class PullRequestLinks(BaseModel):
self: dict
html: dict
issue: dict
comments: dict
review_comments: dict
review_comment: dict
commits: dict
statuses: dict |
class PullRequestLinks(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 9 | 0 | 9 | 1 | 8 | 0 | 9 | 1 | 8 | 0 | 5 | 0 | 0 |
327,228 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/pull_request.py | extensions.github.types.pull_request.PullRequestRef | from pydantic import BaseModel
from .base import GitHubRepository, GitHubUser
class PullRequestRef(BaseModel):
label: str
ref: str
sha: str
user: GitHubUser
repo: GitHubRepository |
class PullRequestRef(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 5 | 0 | 0 |
327,229 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/push.py | extensions.github.types.push.PushEvent | from .base import GitHubRepository, GitHubUser
from .installation import GitHubInstallation
from .commit import GitHubCommit
from .enterprise import GitHubEnterprise
from .pusher import GitHubPusher
from pydantic import BaseModel
from .organization import GitHubOrganization
class PushEvent(BaseModel):
ref: str
... |
class PushEvent(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 17 | 0 | 17 | 1 | 16 | 0 | 17 | 1 | 16 | 0 | 5 | 0 | 0 |
327,230 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/github/types/pusher.py | extensions.github.types.pusher.GitHubPusher | from pydantic import BaseModel
class GitHubPusher(BaseModel):
name: str
email: str |
class GitHubPusher(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 5 | 0 | 0 |
327,231 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/graph/neo4j_exporter.py | extensions.graph.neo4j_exporter.Neo4jExporter | from neo4j import GraphDatabase
from graph_sitter.extensions.graph.utils import SimpleGraph
class Neo4jExporter:
"""Class to handle exporting the codebase graph to Neo4j."""
def __init__(self, uri: str, username: str, password: str):
"""Initialize Neo4j connection."""
self.driver = GraphDataba... |
class Neo4jExporter:
'''Class to handle exporting the codebase graph to Neo4j.'''
def __init__(self, uri: str, username: str, password: str):
'''Initialize Neo4j connection.'''
pass
def close(self):
'''Close the Neo4j connection.'''
pass
def clear_database(self):
... | 5 | 5 | 10 | 2 | 7 | 2 | 2 | 0.26 | 0 | 4 | 1 | 0 | 4 | 1 | 4 | 4 | 44 | 10 | 27 | 14 | 22 | 7 | 21 | 12 | 16 | 5 | 0 | 2 | 8 |
327,232 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/graph/utils.py | extensions.graph.utils.BaseNode | from dataclasses import dataclass, field
import uuid
@dataclass(kw_only=True)
class BaseNode:
label: str
properties: dict = field(default_factory=dict)
id: str = field(default_factory=lambda: str(uuid.uuid4()))
def __hash__(self):
"""Make the relation hashable based on its id."""
retur... | @dataclass(kw_only=True)
class BaseNode:
def __hash__(self):
'''Make the relation hashable based on its id.'''
pass
def __eq__(self, other):
'''Define equality based on id.'''
pass | 4 | 2 | 4 | 0 | 3 | 1 | 2 | 0.2 | 0 | 2 | 1 | 2 | 2 | 0 | 2 | 2 | 14 | 2 | 10 | 4 | 7 | 2 | 10 | 4 | 7 | 2 | 0 | 1 | 3 |
327,233 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/graph/utils.py | extensions.graph.utils.Node | from dataclasses import dataclass, field
@dataclass(kw_only=True)
class Node(BaseNode):
"""Simple node class with label and properties."""
name: str
full_name: str | null | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 5 | 1 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
327,234 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/graph/utils.py | extensions.graph.utils.NodeLabel | from enum import Enum
class NodeLabel(Enum):
CLASS = 'Class'
METHOD = 'Method'
FUNCTION = 'Func' |
class NodeLabel(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 |
327,235 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/graph/utils.py | extensions.graph.utils.Relation | from dataclasses import dataclass, field
@dataclass(kw_only=True)
class Relation(BaseNode):
"""Simple relation class connecting two nodes."""
source_id: str
target_id: str
def __hash__(self):
"""Make the relation hashable based on its id."""
return hash(self.id)
def __eq__(self, o... | @dataclass(kw_only=True)
class Relation(BaseNode):
'''Simple relation class connecting two nodes.'''
def __hash__(self):
'''Make the relation hashable based on its id.'''
pass
def __eq__(self, other):
'''Define equality based on id.'''
pass | 4 | 3 | 4 | 0 | 3 | 1 | 2 | 0.33 | 1 | 0 | 0 | 0 | 2 | 0 | 2 | 4 | 15 | 3 | 9 | 3 | 6 | 3 | 9 | 3 | 6 | 2 | 1 | 1 | 3 |
327,236 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/graph/utils.py | extensions.graph.utils.RelationLabel | from enum import Enum
class RelationLabel(Enum):
DEFINES = 'DEFINES'
INHERITS_FROM = 'INHERITS_FROM'
CALLS = 'CALLS' |
class RelationLabel(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 |
327,237 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/graph/utils.py | extensions.graph.utils.SimpleGraph | class SimpleGraph:
"""Basic graph implementation using sets of nodes and relations."""
def __init__(self):
self.nodes: dict[str, Node] = {}
self.relations: set[Relation] = set()
self.existing_relations: set[str] = set()
def add_node(self, node: Node) -> None:
"""Add a node ... | class SimpleGraph:
'''Basic graph implementation using sets of nodes and relations.'''
def __init__(self):
pass
def add_node(self, node: Node) -> None:
'''Add a node to the graph.'''
pass
def add_relation(self, relation: Relation) -> None:
'''Add a relation to the grap... | 4 | 3 | 4 | 0 | 4 | 1 | 1 | 0.25 | 0 | 5 | 2 | 0 | 3 | 3 | 3 | 3 | 18 | 3 | 12 | 8 | 8 | 3 | 12 | 8 | 8 | 2 | 0 | 1 | 4 |
327,238 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/index/code_index.py | extensions.index.code_index.CodeIndex | from pathlib import Path
import numpy as np
from abc import ABC, abstractmethod
from graph_sitter.core.codebase import Codebase
class CodeIndex(ABC):
"""Abstract base class for semantic code search indices.
This class defines the interface for different code indexing implementations.
Implementations can i... |
class CodeIndex(ABC):
'''Abstract base class for semantic code search indices.
This class defines the interface for different code indexing implementations.
Implementations can index at different granularities (files, symbols, etc.)
and use different embedding strategies.
Attributes:
codeba... | 24 | 16 | 12 | 2 | 6 | 4 | 2 | 0.68 | 1 | 12 | 1 | 2 | 15 | 4 | 15 | 35 | 212 | 48 | 98 | 52 | 74 | 67 | 89 | 45 | 73 | 6 | 4 | 2 | 28 |
327,239 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/index/file_index.py | extensions.index.file_index.FileIndex | import numpy as np
from graph_sitter.core.codebase import Codebase
from graph_sitter.core.file import File
from graph_sitter.extensions.index.code_index import CodeIndex
import pickle
from pathlib import Path
from openai import OpenAI
import tiktoken
from tqdm import tqdm
import modal
class FileIndex(CodeIndex):
"... |
class FileIndex(CodeIndex):
'''A semantic search index over codebase files.
This implementation indexes entire files, splitting large files into chunks
if they exceed the token limit.
'''
def __init__(self, codebase: Codebase):
'''Initialize the file index.
Args:
codeba... | 18 | 15 | 21 | 3 | 14 | 5 | 4 | 0.36 | 1 | 19 | 2 | 0 | 15 | 5 | 15 | 50 | 347 | 64 | 212 | 80 | 194 | 76 | 205 | 71 | 189 | 10 | 5 | 4 | 66 |
327,240 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/index/symbol_index.py | extensions.index.symbol_index.SymbolIndex | import pickle
from graph_sitter.extensions.index.code_index import CodeIndex
from graph_sitter.core.symbol import Symbol
from graph_sitter.core.codebase import Codebase
from pathlib import Path
import tiktoken
from openai import OpenAI
from tqdm import tqdm
class SymbolIndex(CodeIndex):
"""A semantic search index ... |
class SymbolIndex(CodeIndex):
'''A semantic search index over codebase symbols.
This implementation indexes individual symbols (functions, classes, etc.)
rather than entire files. This allows for more granular search results.
'''
def __init__(self, codebase: Codebase):
'''Initialize the sy... | 11 | 9 | 13 | 2 | 9 | 3 | 3 | 0.4 | 1 | 12 | 2 | 0 | 9 | 5 | 9 | 44 | 142 | 27 | 84 | 47 | 73 | 34 | 83 | 43 | 73 | 6 | 5 | 4 | 25 |
327,241 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/linear/linear_client.py | extensions.linear.linear_client.LinearClient | from urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter
from graph_sitter.extensions.linear.types import LinearComment, LinearIssue, LinearTeam, LinearUser
import requests
import os
class LinearClient:
api_headers: dict
api_endpoint = 'https://api.linear.app/graphql'
def __init__(se... |
class LinearClient:
def __init__(self, access_token: str | None=None, team_id: str | None=None, max_retries: int=3, backoff_factor: float=0.5):
pass
def get_issue(self, issue_id: str) -> LinearIssue:
pass
def get_issue_comments(self, issue_id: str) -> list[LinearComment]:
pass
... | 9 | 4 | 34 | 3 | 28 | 3 | 3 | 0.11 | 0 | 14 | 4 | 0 | 8 | 3 | 8 | 8 | 282 | 30 | 227 | 63 | 218 | 26 | 94 | 59 | 85 | 4 | 0 | 2 | 20 |
327,242 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/linear/types.py | extensions.linear.types.LinearEvent | from pydantic import BaseModel
class LinearEvent(BaseModel):
"""Represents a Linear webhook event."""
action: str
type: str
data: LinearIssue | LinearComment
url: str
created_at: str | None = None
organization_id: str | None = None
team_id: str | None = None |
class LinearEvent(BaseModel):
'''Represents a Linear webhook event.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 10 | 1 | 8 | 4 | 7 | 6 | 8 | 4 | 7 | 0 | 5 | 0 | 0 |
327,243 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/linear/types.py | extensions.linear.types.LinearIssue | from pydantic import BaseModel
class LinearIssue(BaseModel):
id: str
title: str
description: str | None = None
priority: int | None = None
team_id: str | None = None |
class LinearIssue(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 0 | 6 | 4 | 5 | 0 | 6 | 4 | 5 | 0 | 5 | 0 | 0 |
327,244 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/linear/types.py | extensions.linear.types.LinearTeam | from pydantic import BaseModel
class LinearTeam(BaseModel):
"""Represents a Linear team."""
id: str
name: str
key: str |
class LinearTeam(BaseModel):
'''Represents a Linear team.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 6 | 1 | 4 | 1 | 3 | 1 | 4 | 1 | 3 | 0 | 5 | 0 | 0 |
327,245 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/swebench/enums.py | extensions.swebench.enums.SWEBenchDataset | from enum import Enum
class SWEBenchDataset(Enum):
LITE = 'princeton-nlp/SWE-bench_Lite'
FULL = 'princeton-nlp/SWE-bench'
VERIFIED = 'princeton-nlp/SWE-bench-verified' |
class SWEBenchDataset(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 |
327,246 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/swebench/enums.py | extensions.swebench.enums.SWEBenchLiteSubset | from enum import Enum
class SWEBenchLiteSubset(Enum):
LITE_SMALL = 'lite_small'
LITE_MEDIUM = 'lite_medium'
LITE_LARGE = 'lite_large' |
class SWEBenchLiteSubset(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 |
327,247 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/swebench/utils.py | extensions.swebench.utils.SweBenchExample | from dataclasses import dataclass
@dataclass
class SweBenchExample:
"""A single example from the SWE-bench dataset."""
repo: str
instance_id: str
base_commit: str
patch: str
test_patch: str
problem_statement: str
hints_text: str | None
created_at: str
version: str
fail_to_pa... | @dataclass
class SweBenchExample:
'''A single example from the SWE-bench dataset.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 1 | 14 | 1 | 13 | 1 | 14 | 1 | 13 | 0 | 0 | 0 | 0 |
327,248 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/core/external/external_process.py | external_process.ExternalProcess | import threading
import time
import os
from abc import ABC, abstractmethod
class ExternalProcess(ABC):
"""Base class for all additional extrnal services that require a separate process.
Examples include language engines, dependency managers, etc.
Attributes:
repo_path (str): Path to the repositor... |
class ExternalProcess(ABC):
'''Base class for all additional extrnal services that require a separate process.
Examples include language engines, dependency managers, etc.
Attributes:
repo_path (str): Path to the repository root directory
base_path (str | None): Optional subdirectory path w... | 9 | 1 | 6 | 0 | 5 | 1 | 2 | 0.34 | 1 | 4 | 0 | 3 | 7 | 0 | 7 | 27 | 68 | 13 | 41 | 11 | 32 | 14 | 39 | 10 | 31 | 5 | 4 | 1 | 13 |
327,249 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/flagging/groupers/file_chunk_grouper.py | file_chunk_grouper.FileChunkGrouper | from graph_sitter.codebase.flagging.code_flag import CodeFlag
from graph_sitter.shared.string.csv_utils import comma_separated_to_list, list_to_comma_separated
from graph_sitter.codebase.flagging.groupers.base_grouper import BaseGrouper
from graph_sitter.codebase.flagging.group import Group
from graph_sitter.git.repo_o... |
class FileChunkGrouper(BaseGrouper):
'''Group flags by a chunk of files.
Ex: if chunk size is 10 then a Group only contains flags from max 10 unique files.
TODO: currently only supports a harcoded chunk size of 5.
Segment is a comma separated list of filenames.
'''
@staticmethod
def create_... | 5 | 1 | 8 | 0 | 8 | 0 | 2 | 0.26 | 1 | 7 | 4 | 0 | 0 | 0 | 2 | 5 | 28 | 4 | 19 | 14 | 14 | 5 | 17 | 12 | 14 | 2 | 1 | 1 | 4 |
327,250 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/flagging/groupers/file_grouper.py | file_grouper.FileGrouper | from graph_sitter.codebase.flagging.code_flag import CodeFlag
from graph_sitter.codebase.flagging.groupers.enums import GroupBy
from graph_sitter.git.repo_operator.repo_operator import RepoOperator
from graph_sitter.codebase.flagging.groupers.base_grouper import BaseGrouper
from graph_sitter.codebase.flagging.group imp... |
class FileGrouper(BaseGrouper):
'''Group flags by file.
Segment is the filename.
'''
@staticmethod
def create_all_groups(flags: list[CodeFlag], repo_operator: RepoOperator | None=None) -> list[Group]:
pass
@staticmethod
def create_single_group(flags: list[CodeFlag], segment: str, re... | 5 | 1 | 6 | 0 | 6 | 0 | 2 | 0.19 | 1 | 7 | 4 | 0 | 0 | 0 | 2 | 5 | 22 | 3 | 16 | 11 | 11 | 3 | 14 | 9 | 11 | 2 | 1 | 1 | 4 |
327,251 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/io/file_io.py | file_io.FileIO | from concurrent.futures import ThreadPoolExecutor
from functools import lru_cache
from graph_sitter.codebase.io.io import IO, BadWriteError
from pathlib import Path
class FileIO(IO):
"""IO implementation that writes files to disk, and tracks pending changes."""
files: dict[Path, bytes]
allowed_paths: list[... |
class FileIO(IO):
'''IO implementation that writes files to disk, and tracks pending changes.'''
def __init__(self, allowed_paths: list[Path] | None=None):
pass
@lru_cache(maxsize=10000)
def _verify_path(self, path: Path) -> None:
pass
def write_bytes(self, path: Path, content: by... | 11 | 1 | 5 | 0 | 5 | 0 | 2 | 0.02 | 1 | 7 | 1 | 0 | 9 | 0 | 9 | 38 | 58 | 10 | 47 | 14 | 36 | 1 | 44 | 13 | 34 | 5 | 5 | 2 | 18 |
327,252 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/flagging/flags.py | flags.Flags | from graph_sitter.codebase.flagging.enums import MessageType
from graph_sitter.shared.decorators.docs import noapidoc
from dataclasses import dataclass, field
from graph_sitter.codebase.flagging.code_flag import CodeFlag
from graph_sitter.codebase.flagging.group import Group
@dataclass
class Flags:
_flags: list[Co... | @dataclass
class Flags:
def flag_instance(self, symbol: Symbol | None=None, message: str | None=None, message_type: MessageType=MessageType.GITHUB | MessageType.CODEGEN, message_recipient: str | None=None) -> CodeFlag[Symbol]:
'''Flags a symbol, file or import to enable enhanced tracking of changes and spl... | 8 | 3 | 14 | 2 | 6 | 6 | 2 | 0.8 | 0 | 6 | 3 | 0 | 4 | 1 | 4 | 4 | 64 | 10 | 30 | 18 | 17 | 24 | 20 | 10 | 15 | 3 | 0 | 1 | 7 |
327,253 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/cli/utils/function_finder.py | function_finder.CodegenFunctionVisitor | import ast
from graph_sitter.shared.enums.programming_language import ProgrammingLanguage
class CodegenFunctionVisitor(ast.NodeVisitor):
def __init__(self):
self.functions: list[DecoratedFunction] = []
def get_function_name(self, node: ast.Call) -> str:
keywords = {k.arg: k.value for k in nod... |
class CodegenFunctionVisitor(ast.NodeVisitor):
def __init__(self):
pass
def get_function_name(self, node: ast.Call) -> str:
pass
def get_subdirectories(self, node: ast.Call) -> list[str] | None:
pass
def get_language(self, node: ast.Call) -> ProgrammingLanguage | None:
... | 12 | 5 | 14 | 1 | 11 | 3 | 4 | 0.26 | 1 | 5 | 2 | 0 | 11 | 2 | 11 | 14 | 170 | 26 | 117 | 34 | 105 | 30 | 90 | 34 | 78 | 10 | 2 | 5 | 41 |
327,254 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/cli/utils/function_finder.py | function_finder.DecoratedFunction | import importlib.util
import dataclasses
from pathlib import Path
from graph_sitter.shared.enums.programming_language import ProgrammingLanguage
from dataclasses import dataclass
import importlib
@dataclass
class DecoratedFunction:
"""Represents a function decorated with @codegen."""
name: str
source: str
... | @dataclass
class DecoratedFunction:
'''Represents a function decorated with @codegen.'''
def run(self, codebase) -> str | None:
'''Import and run the actual function from its file.
Args:
codebase: The codebase to run the function on
Returns:
The result of running... | 4 | 3 | 29 | 6 | 16 | 8 | 5 | 0.4 | 0 | 3 | 0 | 0 | 2 | 0 | 2 | 2 | 72 | 14 | 42 | 18 | 39 | 17 | 42 | 18 | 39 | 5 | 0 | 2 | 10 |
327,255 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/typescript/expressions/function_type.py | function_type.TSFunctionType | from graph_sitter.core.expressions.type import Type
from typing import TYPE_CHECKING, Generic, Self, TypeVar, override
from graph_sitter.core.symbol_groups.collection import Collection
from graph_sitter.core.interfaces.importable import Importable
from graph_sitter.shared.decorators.docs import noapidoc, ts_apidoc
from... | @ts_apidoc
class TSFunctionType(Type[Parent], Generic[Parent]):
'''Function type definition.
Example:
a: (a: number) => number
Attributes:
return_type: Return type of the function.
name: This lets parameters generate their node_id properly.
'''
def __init__(self, ts_node: TS... | 16 | 3 | 7 | 1 | 4 | 2 | 2 | 0.62 | 2 | 9 | 5 | 0 | 6 | 0 | 6 | 37 | 69 | 14 | 34 | 16 | 19 | 21 | 26 | 12 | 19 | 2 | 5 | 1 | 9 |
327,256 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/python/expressions/generic_type.py | generic_type.PyGenericType | from graph_sitter.python.expressions.named_type import PyNamedType
from typing import TYPE_CHECKING, Generic, Self, TypeVar
from tree_sitter import Node as TSNode
from graph_sitter.core.expressions.generic_type import GenericType
from graph_sitter.shared.decorators.docs import py_apidoc
from graph_sitter.core.symbol_gr... | @py_apidoc
class PyGenericType(PyNamedType[Parent], GenericType['PyType', Parent], Generic[Parent]):
'''Generic python type.
Examples:
list[int]
'''
def _get_name_node(self) -> TSNode | None:
pass
def _get_parameters(self) -> Collection['PyType', Self] | None:
pass | 4 | 1 | 9 | 0 | 9 | 0 | 3 | 0.22 | 3 | 1 | 1 | 0 | 2 | 3 | 2 | 49 | 25 | 3 | 18 | 6 | 15 | 4 | 17 | 5 | 14 | 3 | 7 | 1 | 6 |
327,257 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/typescript/expressions/generic_type.py | generic_type.TSGenericType | from graph_sitter.shared.decorators.docs import ts_apidoc
from typing import Self, TypeVar
from graph_sitter.core.symbol_groups.dict import Dict
from graph_sitter.core.symbol_groups.collection import Collection
from graph_sitter.core.expressions.generic_type import GenericType
from tree_sitter import Node as TSNode
@t... | @ts_apidoc
class TSGenericType(GenericType['TSType', Parent]):
'''Generic type
Examples:
`Array<Type>`
'''
def _get_name_node(self) -> TSNode:
pass
def _get_parameters(self) -> Collection[Self, Self] | Dict[Self, Self] | None:
pass | 4 | 1 | 3 | 0 | 3 | 0 | 1 | 0.57 | 1 | 2 | 2 | 0 | 2 | 2 | 2 | 48 | 14 | 3 | 7 | 6 | 4 | 4 | 7 | 5 | 4 | 1 | 7 | 0 | 2 |
327,258 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/shared/logging/get_logger.py | get_logger.StdErrFilter | import logging
class StdErrFilter(logging.Filter):
def filter(self, record):
return record.levelno >= logging.ERROR |
class StdErrFilter(logging.Filter):
def filter(self, record):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 3 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
327,259 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/shared/logging/get_logger.py | get_logger.StdOutFilter | import logging
class StdOutFilter(logging.Filter):
def filter(self, record):
return record.levelno < logging.ERROR |
class StdOutFilter(logging.Filter):
def filter(self, record):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 3 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
327,260 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/attribution/git_history.py | git_history.GitAttributionTracker | from collections import defaultdict, deque
import pygit2
from datetime import datetime
from graph_sitter.core.symbol import Symbol
from pygit2 import Commit, Patch
from pygit2.enums import CheckoutStrategy, DeltaStatus, SortMode
import time
from intervaltree import IntervalTree
from graph_sitter.core.file import Source... |
class GitAttributionTracker:
'''Tracks attribution information for code symbols based on git history.'''
def __init__(self, codebase: Codebase, ai_authors: list[str] | None=None):
'''Initialize the attribution tracker.
Args:
codebase: The codebase to analyze
ai_authors:... | 14 | 12 | 31 | 5 | 21 | 6 | 5 | 0.31 | 0 | 14 | 3 | 0 | 13 | 11 | 13 | 13 | 419 | 74 | 275 | 111 | 261 | 84 | 250 | 107 | 236 | 19 | 0 | 5 | 65 |
327,261 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/git/clients/git_repo_client.py | git_repo_client.GitRepoClient | from datetime import datetime
from github.Tag import Tag
from github.CheckSuite import CheckSuite
from github.Branch import Branch
from github.Repository import Repository
from graph_sitter.git.clients.github_client import GithubClient
from github.IssueComment import IssueComment
from graph_sitter.git.schemas.repo_conf... |
class GitRepoClient:
'''Wrapper around PyGithub's Remote Repository.'''
def __init__(self, repo_config: RepoConfig, access_token: str | None=None) -> None:
pass
def _create_github_client(self, token: str) -> GithubClient:
pass
def _create_client(self) -> Repository:
pass
... | 43 | 9 | 8 | 0 | 7 | 1 | 2 | 0.3 | 0 | 25 | 3 | 0 | 40 | 0 | 40 | 40 | 437 | 65 | 290 | 127 | 208 | 88 | 232 | 74 | 191 | 5 | 0 | 3 | 79 |
327,262 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/git/clients/github_client.py | github_client.GithubClient | from github import Consts
from github.Organization import Organization
from github.Repository import Repository
from github.MainClass import Github
from github.GithubException import UnknownObjectException
class GithubClient:
"""Manages interaction with GitHub"""
base_url: str
_client: Github
def __in... |
class GithubClient:
'''Manages interaction with GitHub'''
def __init__(self, token: str | None=None, base_url: str=Consts.DEFAULT_BASE_URL):
pass
@property
def client(self) -> Github:
pass
def get_repo_by_full_name(self, full_name: str) -> Repository | None:
pass
def ... | 6 | 1 | 5 | 0 | 5 | 0 | 2 | 0.16 | 0 | 6 | 0 | 0 | 4 | 0 | 4 | 4 | 35 | 6 | 25 | 8 | 19 | 4 | 24 | 5 | 19 | 3 | 0 | 1 | 8 |
327,263 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/git/models/github_named_user_context.py | github_named_user_context.GithubNamedUserContext | from pydantic import BaseModel
class GithubNamedUserContext(BaseModel):
"""Represents a GitHub user parsed from a webhook payload"""
login: str
email: str | None = None
@classmethod
def from_payload(cls, payload: dict) -> 'GithubNamedUserContext':
return cls(login=payload.get('login'), ema... |
class GithubNamedUserContext(BaseModel):
'''Represents a GitHub user parsed from a webhook payload'''
@classmethod
def from_payload(cls, payload: dict) -> 'GithubNamedUserContext':
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.17 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 83 | 9 | 2 | 6 | 4 | 3 | 1 | 5 | 3 | 3 | 1 | 5 | 0 | 1 |
327,264 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/flagging/code_flag.py | graph_sitter.codebase.flagging.code_flag.CodeFlag | from typing import Generic, TypeVar
from dataclasses import dataclass
from graph_sitter.codebase.flagging.enums import MessageType
@dataclass
class CodeFlag(Generic[Symbol]):
symbol: Symbol
message: str | None = None
message_type: MessageType = MessageType.GITHUB | MessageType.CODEGEN
message_recipient... | @dataclass
class CodeFlag(Generic[Symbol]):
@property
def hash(self) -> str:
pass
@property
def filepath(self) -> str:
pass
def __eq__(self, other):
pass
def __repr__(self):
pass | 8 | 0 | 4 | 0 | 4 | 0 | 2 | 0.14 | 1 | 1 | 0 | 0 | 4 | 0 | 4 | 6 | 25 | 4 | 21 | 10 | 14 | 3 | 19 | 8 | 14 | 4 | 1 | 1 | 8 |
327,265 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/core/dataclasses/usage.py | graph_sitter.core.dataclasses.usage.Usage | from graph_sitter.shared.decorators.docs import apidoc
from dataclasses import dataclass
from dataclasses_json import dataclass_json
@apidoc
@dataclass_json
@dataclass(frozen=True)
class Usage:
"""A reference to an exportable object in a file.
Attributes:
match: The exact match of the usage
us... | @apidoc
@dataclass_json
@dataclass(frozen=True)
class Usage:
'''A reference to an exportable object in a file.
Attributes:
match: The exact match of the usage
usage_symbol: The symbol this object is used in
imported_by: The import statement that brought this symbol into scope, or None if... | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 1.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 2 | 6 | 1 | 5 | 8 | 6 | 1 | 5 | 0 | 0 | 0 | 0 |
327,266 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/core/dataclasses/usage.py | graph_sitter.core.dataclasses.usage.UsageKind | from enum import IntEnum, IntFlag, auto, unique
from graph_sitter.shared.decorators.docs import apidoc
@apidoc
class UsageKind(IntEnum):
"""SymbolUsageType is an enumeration class that defines different types of symbol usage within Python code.
Attributes:
SUBCLASS: Used in symbol inheritance.
... | @apidoc
class UsageKind(IntEnum):
'''SymbolUsageType is an enumeration class that defines different types of symbol usage within Python code.
Attributes:
SUBCLASS: Used in symbol inheritance.
TYPED_PARAMETER: Used as a typed parameter in a function/method.
TYPE_ANNOTATION: Used as a type... | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 32 | 2 | 14 | 14 | 13 | 16 | 14 | 14 | 13 | 0 | 3 | 0 | 0 |
327,267 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/core/dataclasses/usage.py | graph_sitter.core.dataclasses.usage.UsageType | from graph_sitter.shared.decorators.docs import apidoc
from enum import IntEnum, IntFlag, auto, unique
@unique
@apidoc
class UsageType(IntFlag):
"""Describes how a symbol is used elsewhere. Used in conjunction with get_usages
Attributes:
DIRECT: Direct imports and usages within the same file
C... | @unique
@apidoc
class UsageType(IntFlag):
'''Describes how a symbol is used elsewhere. Used in conjunction with get_usages
Attributes:
DIRECT: Direct imports and usages within the same file
CHAINED: Chained references (ie: module.foo)
INDIRECT: Indirect usages with the same name
... | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 1.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 14 | 2 | 5 | 5 | 4 | 7 | 5 | 5 | 4 | 0 | 3 | 0 | 0 |
327,268 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/lsp/server.py | graph_sitter.extensions.lsp.server.GraphSitterLanguageServer | from graph_sitter.extensions.lsp.codemods.base import CodeAction
from graph_sitter.extensions.lsp.progress import LSPProgress
from graph_sitter.extensions.lsp.utils import get_path
from graph_sitter.extensions.lsp.io import LSPIO
from pygls.lsp.server import LanguageServer
from graph_sitter.extensions.lsp.range import ... |
class GraphSitterLanguageServer(LanguageServer):
def __init__(self, *args: Any, **kwargs: Any) -> None:
pass
def get_file(self, uri: str) -> SourceFile | File:
pass
def get_symbol(self, uri: str, position: Position) -> Symbol | None:
pass
def get_node_under_cursor(self, uri:... | 8 | 0 | 9 | 0 | 9 | 0 | 3 | 0.03 | 1 | 9 | 4 | 0 | 7 | 0 | 7 | 7 | 78 | 7 | 69 | 28 | 61 | 2 | 68 | 28 | 60 | 7 | 1 | 4 | 21 |
327,269 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/python/detached_symbols/code_block.py | graph_sitter.python.detached_symbols.code_block.PyCodeBlock | from graph_sitter.core.statements.import_statement import ImportStatement
from graph_sitter.core.statements.statement import Statement, StatementType
from graph_sitter.core.statements.block_statement import BlockStatement
from typing import TYPE_CHECKING, Generic, Self, TypeVar
from graph_sitter.core.detached_symbols.c... | @py_apidoc
class PyCodeBlock(CodeBlock[Parent, 'PyAssignment'], Generic[Parent]):
'''Extends CodeBlock for Python codebases.'''
@noapidoc
@reader
def _parse_statements(self) -> MultiLineCollection[Statement, Self]:
pass
@property
@reader
def with_statements(self) -> list[WithStatemen... | 11 | 3 | 11 | 1 | 7 | 3 | 2 | 0.39 | 2 | 9 | 6 | 0 | 4 | 3 | 4 | 39 | 55 | 9 | 33 | 13 | 23 | 13 | 18 | 7 | 13 | 3 | 2 | 2 | 6 |
327,270 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/python/symbol_groups/comment_group.py | graph_sitter.python.symbol_groups.comment_group.PyCommentGroup | from graph_sitter.python.statements.comment import PyComment
from graph_sitter.core.symbol_groups.comment_group import CommentGroup
from docstring_parser import Docstring, DocstringStyle, parse
from graph_sitter.shared.decorators.docs import noapidoc, py_apidoc
from graph_sitter.enums import SymbolType
from graph_sitte... | @py_apidoc
class PyCommentGroup(CommentGroup):
'''A group of related symbols that represent a comment or docstring in Python
For example:
```
# Comment 1
# Comment 2
# Comment 3
```
would be 3 individual comments (accessible via `symbols`), but together they form a `CommentGroup` (access... | 17 | 4 | 34 | 4 | 22 | 8 | 7 | 0.43 | 1 | 8 | 5 | 0 | 2 | 1 | 5 | 64 | 228 | 34 | 138 | 53 | 121 | 60 | 123 | 43 | 114 | 21 | 7 | 4 | 48 |
327,271 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/typescript/detached_symbols/jsx/element.py | graph_sitter.typescript.detached_symbols.jsx.element.JSXElement | from graph_sitter.typescript.detached_symbols.jsx.prop import JSXProp
from graph_sitter.core.expressions import Expression, Value
from graph_sitter.core.expressions.name import Name
from graph_sitter.compiled.autocommit import commiter
from typing import TYPE_CHECKING, Generic, TypeVar, override
from graph_sitter.core.... | @ts_apidoc
class JSXElement(Expression[Parent], HasName, Generic[Parent]):
'''Abstract representation of TSX/JSX elements, e.g. `<MyComponent />`. This allows for many React-specific modifications, like adding props, changing the name, etc.'''
def __init__(self, ts_node: TSNode, file_node_id: NodeId, ctx: Code... | 34 | 11 | 11 | 2 | 5 | 5 | 2 | 0.79 | 3 | 5 | 2 | 0 | 12 | 0 | 12 | 14 | 172 | 33 | 78 | 43 | 45 | 62 | 56 | 30 | 43 | 3 | 1 | 2 | 20 |
327,272 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/typescript/detached_symbols/parameter.py | graph_sitter.typescript.detached_symbols.parameter.TSParameter | from typing import TYPE_CHECKING, override
from graph_sitter.core.autocommit.decorators import writer
from graph_sitter.typescript.expressions.type import TSType
from graph_sitter.shared.decorators.docs import noapidoc, ts_apidoc
from graph_sitter.core.dataclasses.usage import UsageKind
from graph_sitter.compiled.autoc... | @ts_apidoc
class TSParameter(Parameter[TSType, Collection['TSParameter', 'TSFunction']]):
'''A class representing a TypeScript function parameter with extensive type analysis capabilities.
This class provides functionality to inspect and manipulate TypeScript function parameters,
including support for destr... | 21 | 6 | 19 | 3 | 8 | 9 | 3 | 1 | 1 | 9 | 5 | 0 | 7 | 1 | 7 | 32 | 162 | 29 | 67 | 25 | 47 | 67 | 52 | 19 | 44 | 8 | 4 | 3 | 22 |
327,273 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/flagging/group.py | group.Group | from dataclasses import dataclass
from dataclasses_json import dataclass_json
from graph_sitter.codebase.flagging.groupers.enums import GroupBy
from graph_sitter.codebase.flagging.code_flag import CodeFlag
@dataclass_json
@dataclass
class Group:
group_by: GroupBy
segment: str
flags: list[CodeFlag] | None =... | @dataclass_json
@dataclass
class Group:
pass | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 2 | 4 | 0 | 5 | 2 | 4 | 0 | 0 | 0 | 0 |
327,274 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/gscli/backend/typestub_utils.py | gscli.backend.typestub_utils.FieldRemover | import ast
from collections.abc import Callable
class FieldRemover(ast.NodeTransformer):
def __init__(self, conditions: list[Callable[[ast.FunctionDef], bool]]):
self.conditions = conditions
def visit_ClassDef(self, node: ast.ClassDef) -> ast.ClassDef:
body = []
for child in node.body... |
class FieldRemover(ast.NodeTransformer):
def __init__(self, conditions: list[Callable[[ast.FunctionDef], bool]]):
pass
def visit_ClassDef(self, node: ast.ClassDef) -> ast.ClassDef:
pass
def should_remove(self, node: ast.AnnAssign | ast.Assign) -> bool:
pass | 4 | 0 | 8 | 0 | 7 | 0 | 4 | 0.04 | 1 | 3 | 0 | 0 | 3 | 1 | 3 | 7 | 27 | 3 | 23 | 8 | 19 | 1 | 21 | 8 | 17 | 6 | 3 | 4 | 11 |
327,275 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/gscli/backend/typestub_utils.py | gscli.backend.typestub_utils.MethodRemover | import ast
from collections.abc import Callable
class MethodRemover(ast.NodeTransformer):
def __init__(self, conditions: list[Callable[[ast.FunctionDef], bool]]):
self.conditions = conditions
def visit_ClassDef(self, node: ast.ClassDef) -> ast.ClassDef:
body = []
for child in node.bod... |
class MethodRemover(ast.NodeTransformer):
def __init__(self, conditions: list[Callable[[ast.FunctionDef], bool]]):
pass
def visit_ClassDef(self, node: ast.ClassDef) -> ast.ClassDef:
pass
def visit_FunctionDef(self, node: ast.FunctionDef) -> ast.FunctionDef | None:
pass
def s... | 5 | 0 | 7 | 1 | 6 | 0 | 2 | 0 | 1 | 3 | 0 | 0 | 4 | 1 | 4 | 8 | 30 | 5 | 25 | 10 | 20 | 0 | 23 | 10 | 18 | 3 | 3 | 2 | 9 |
327,276 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/python/interfaces/has_block.py | has_block.PyHasBlock | from graph_sitter.python.symbol_groups.comment_group import PyCommentGroup
from graph_sitter.python.detached_symbols.code_block import PyCodeBlock
from graph_sitter.core.autocommit import reader, writer
from graph_sitter.shared.decorators.docs import py_apidoc
from functools import cached_property
from graph_sitter.cor... | @py_apidoc
class PyHasBlock(HasBlock[PyCodeBlock, PyDecorator]):
'''Extends HasBlock for Python codebases.'''
@property
@reader
def is_decorated(self) -> bool:
'''Returns whether the symbol is decorated with decorators.
Checks if the symbol has a parent and if that parent's type is a dec... | 13 | 5 | 17 | 3 | 6 | 8 | 3 | 1.03 | 1 | 6 | 3 | 6 | 4 | 0 | 4 | 13 | 79 | 16 | 31 | 10 | 19 | 32 | 22 | 6 | 17 | 5 | 2 | 2 | 10 |
327,277 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/typescript/interfaces/has_block.py | has_block.TSHasBlock | from graph_sitter.compiled.utils import find_all_descendants
from graph_sitter.core.statements.statement import StatementType
from typing import TYPE_CHECKING, Self
from graph_sitter.core.detached_symbols.code_block import CodeBlock
from graph_sitter.core.autocommit import reader, writer
from functools import cached_pr... | @ts_apidoc
class TSHasBlock(HasBlock['TSCodeBlock', TSDecorator]):
'''A TypeScript base class that provides block-level code organization and decorator handling capabilities.
This class extends the concept of block scoping for TypeScript code elements like classes and functions.
It provides functionality fo... | 18 | 7 | 21 | 3 | 9 | 9 | 4 | 0.91 | 1 | 9 | 5 | 9 | 6 | 0 | 6 | 15 | 150 | 26 | 65 | 26 | 48 | 59 | 52 | 20 | 45 | 6 | 2 | 3 | 21 |
327,278 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/flagging/groupers/instance_grouper.py | instance_grouper.InstanceGrouper | from graph_sitter.codebase.flagging.group import Group
from graph_sitter.codebase.flagging.code_flag import CodeFlag
from graph_sitter.codebase.flagging.groupers.enums import GroupBy
from graph_sitter.codebase.flagging.groupers.base_grouper import BaseGrouper
from graph_sitter.git.repo_operator.repo_operator import Rep... |
class InstanceGrouper(BaseGrouper):
'''Group flags by flags. haha
One Group per flag.
'''
@staticmethod
def create_all_groups(flags: list[CodeFlag], repo_operator: RepoOperator | None=None) -> list[Group]:
pass
@staticmethod
def create_single_group(flags: list[CodeFlag], segment: st... | 5 | 1 | 5 | 0 | 5 | 1 | 2 | 0.31 | 1 | 9 | 4 | 0 | 0 | 0 | 2 | 5 | 20 | 3 | 13 | 9 | 8 | 4 | 11 | 6 | 8 | 2 | 1 | 1 | 3 |
327,279 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/io/io.py | io.BadWriteError | class BadWriteError(Exception):
pass | class BadWriteError(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
327,280 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/lsp/io.py | io.File | from pygls.workspace import TextDocument, Workspace
from pathlib import Path
from lsprotocol import types
from lsprotocol.types import CreateFile, CreateFileOptions, DeleteFile, Position, Range, RenameFile, TextEdit
from dataclasses import dataclass
@dataclass
class File:
doc: TextDocument | None
path: Path
... | @dataclass
class File:
@property
def deleted(self) -> bool:
pass
@property
def created(self) -> bool:
pass
@property
def identifier(self) -> types.OptionalVersionedTextDocumentIdentifier:
pass | 8 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 3 | 3 | 18 | 3 | 15 | 10 | 8 | 0 | 12 | 7 | 8 | 1 | 0 | 0 | 3 |
327,281 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/codebase/io/io.py | io.IO | from abc import ABC, abstractmethod
from pathlib import Path
class IO(ABC):
def write_file(self, path: Path, content: str | bytes | None) -> None:
if content is None:
self.untrack_file(path)
elif isinstance(content, str):
self.write_text(path, content)
else:
... |
class IO(ABC):
def write_file(self, path: Path, content: str | bytes | None) -> None:
pass
def write_text(self, path: Path, content: str) -> None:
pass
@abstractmethod
def write_bytes(self, path: Path, content: bytes) -> None:
pass
@abstractmethod
def read_bytes(self, ... | 16 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 5 | 0 | 2 | 9 | 0 | 9 | 29 | 38 | 8 | 30 | 16 | 14 | 0 | 22 | 10 | 12 | 3 | 4 | 1 | 11 |
327,282 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/lsp/io.py | io.LSPIO | from graph_sitter.codebase.io.io import IO
from pygls.workspace import TextDocument, Workspace
import pprint
from attr import asdict
from pathlib import Path
from graph_sitter.codebase.io.file_io import FileIO
from lsprotocol import types
from lsprotocol.types import CreateFile, CreateFileOptions, DeleteFile, Position,... |
class LSPIO(IO):
def __init__(self, workspace: Workspace):
pass
def _get_doc(self, path: Path) -> TextDocument:
pass
def _get_file(self, path: Path) -> File:
pass
def read_text(self, path: Path) -> str:
pass
def read_bytes(self, path: Path) -> bytes:
pas... | 15 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 1 | 11 | 2 | 0 | 14 | 0 | 14 | 43 | 115 | 14 | 101 | 31 | 86 | 0 | 99 | 31 | 84 | 6 | 5 | 2 | 34 |
327,283 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/codemods/canonical/js_to_esm_codemod/js_to_esm_codemod.py | js_to_esm_codemod.JsToEsmCodemod | from codemods.codemod import Codemod
from graph_sitter.writer_decorators import canonical
from graph_sitter.core.codebase import Codebase
from tests.shared.skills.decorators import skill, skill_impl
from tests.shared.skills.skill import Skill
from graph_sitter.shared.enums.programming_language import ProgrammingLanguag... | @skill(canonical=True, prompt="Generate a Python function named `execute` within a class `JsToEsmCodemod` that iterates through all files in a given `codebase`. For each file, check\nif its name contains '.router'. If it does, convert the file to ESM format and update its filename to have a '.ts' extension, preserving ... | 5 | 1 | 11 | 0 | 7 | 4 | 3 | 0.5 | 2 | 1 | 1 | 0 | 1 | 0 | 1 | 32 | 17 | 2 | 10 | 7 | 7 | 5 | 9 | 6 | 7 | 3 | 5 | 2 | 3 |
327,284 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/output/jsonable.py | jsonable.JSONable | from graph_sitter.output.placeholder import Placeholder
from tree_sitter import Node as TSNode
from functools import cached_property
from graph_sitter.shared.decorators.docs import noapidoc
from graph_sitter.output.inspect import is_noapidoc, only_default_args
from graph_sitter.codebase.span import Span
from graph_sitt... | @noapidoc
class JSONable(ABC):
@noapidoc
def _list_members(self, include_methods: bool=True) -> dict[str, object]:
'''Lists all valid members (properties/attributes/methods) of this object.'''
pass
@noapidoc
def json(self, max_depth: int=2, methods: bool=True) -> JSON:
pass
... | 17 | 2 | 11 | 1 | 8 | 2 | 4 | 0.15 | 1 | 9 | 3 | 1 | 5 | 0 | 5 | 25 | 71 | 9 | 54 | 17 | 40 | 8 | 46 | 12 | 40 | 10 | 4 | 4 | 22 |
327,285 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/core/external/language_engine.py | language_engine.LanguageEngine | from abc import abstractmethod
from graph_sitter.core.external.external_process import ExternalProcess
class LanguageEngine(ExternalProcess):
"""Base class for all third part language engine support.
This class provides the foundation for integrating external language analysis engines.
It handles initiali... |
class LanguageEngine(ExternalProcess):
'''Base class for all third part language engine support.
This class provides the foundation for integrating external language analysis engines.
It handles initialization, startup, and status tracking of the engine.
'''
@abstractmethod
def get_return_type(... | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 28 | 10 | 2 | 4 | 3 | 1 | 4 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
327,286 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/clients/linear.py | linear.LinearClient | import requests
import json
class LinearClient:
api_headers: dict
api_endpoint = 'https://api.linear.app/graphql'
def __init__(self, access_token: str):
self.access_token = access_token
self.api_headers = {'Content-Type': 'application/json', 'Authorization': self.access_token}
def get... |
class LinearClient:
def __init__(self, access_token: str):
pass
def get_issue(self, issue_id: str) -> LinearIssue:
pass
def get_issue_comments(self, issue_id: str) -> list[LinearComment]:
pass
def comment_on_issue(self, issue_id: str, body: str) -> dict:
'''issue_id ... | 7 | 1 | 21 | 1 | 19 | 1 | 2 | 0.03 | 0 | 8 | 3 | 0 | 6 | 1 | 6 | 6 | 133 | 13 | 117 | 36 | 110 | 3 | 50 | 36 | 43 | 3 | 0 | 1 | 10 |
327,287 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/clients/linear.py | linear.LinearComment | from pydantic import BaseModel
class LinearComment(BaseModel):
id: str
body: str
user: LinearUser | None = None |
class LinearComment(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 0 | 4 | 2 | 3 | 0 | 4 | 2 | 3 | 0 | 5 | 0 | 0 |
327,288 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/clients/linear.py | linear.LinearIssue | from pydantic import BaseModel
class LinearIssue(BaseModel):
id: str
title: str
description: str | None = None |
class LinearIssue(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 4 | 0 | 4 | 2 | 3 | 0 | 4 | 2 | 3 | 0 | 5 | 0 | 0 |
327,289 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/extensions/clients/linear.py | linear.LinearUser | from pydantic import BaseModel
class LinearUser(BaseModel):
id: str
name: str |
class LinearUser(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 5 | 0 | 0 |
327,290 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/git/repo_operator/local_git_repo.py | local_git_repo.LocalGitRepo | import giturlparse
from graph_sitter.git.utils.language import determine_project_language
from graph_sitter.git.schemas.repo_config import RepoConfig
from functools import cached_property
import os
from graph_sitter.git.clients.git_repo_client import GitRepoClient
from git import Repo
from pathlib import Path
from git.... |
class LocalGitRepo:
def __init__(self, repo_path: Path):
pass
@cached_property
def git_cli(self) -> Repo:
pass
@cached_property
def name(self) -> str:
pass
@cached_property
def owner(self) -> str | None:
pass
@cached_property
def full_name(self) -> s... | 20 | 2 | 4 | 0 | 4 | 0 | 2 | 0.04 | 0 | 5 | 2 | 0 | 11 | 0 | 11 | 11 | 70 | 14 | 54 | 27 | 34 | 2 | 46 | 16 | 34 | 3 | 0 | 2 | 19 |
327,291 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/typescript/expressions/lookup_type.py | lookup_type.TSLookupType | from tree_sitter import Node as TSNode
from graph_sitter.core.expressions.type import Type
from graph_sitter.core.expressions import Expression
from graph_sitter.core.node_id_factory import NodeId
from graph_sitter.shared.decorators.docs import noapidoc, ts_apidoc
from collections.abc import Generator
from graph_sitter... | @ts_apidoc
class TSLookupType(Type[Parent], Generic[Parent]):
'''Type lookup
Examples:
a["key"]
Attributes:
type: The type of the TypeScript object being looked up.
lookup: The expression used for the lookup operation.
'''
def __init__(self, ts_node: TSNode, file_node_id: No... | 11 | 2 | 5 | 1 | 3 | 2 | 1 | 0.65 | 2 | 5 | 2 | 0 | 4 | 1 | 4 | 35 | 42 | 9 | 20 | 9 | 10 | 13 | 15 | 6 | 10 | 2 | 5 | 1 | 5 |
327,292 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/codemods/canonical/mark_as_internal_codemod/mark_as_internal_codemod.py | mark_as_internal_codemod.MarkAsInternalCodemod | from tests.shared.skills.skill import Skill
from codemods.codemod import Codemod
from pathlib import Path
from graph_sitter.shared.enums.programming_language import ProgrammingLanguage
from graph_sitter.core.codebase import Codebase
from graph_sitter.writer_decorators import canonical
from tests.shared.skills.decorator... | @skill(canonical=True, prompt="Generate a TypeScript codemod that marks functions as internal by adding the @internal tag to their docstrings. The codemod should check if a function\nis only used within the same directory or subdirectory, ensuring it is not exported, re-exported, or overloaded. If the function's docstr... | 6 | 1 | 14 | 1 | 10 | 4 | 5 | 0.56 | 2 | 4 | 1 | 0 | 1 | 0 | 1 | 32 | 31 | 3 | 18 | 9 | 14 | 10 | 16 | 8 | 13 | 8 | 5 | 6 | 9 |
327,293 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/codemods/canonical/mark_internal_to_module/mark_internal_to_module.py | mark_internal_to_module.MarkInternalToModule | from graph_sitter.core.codebase import Codebase
from graph_sitter.core.dataclasses.usage import UsageKind
from codemods.codemod import Codemod
from graph_sitter.writer_decorators import canonical
from graph_sitter.shared.enums.programming_language import ProgrammingLanguage
from tests.shared.skills.skill import Skill
f... | @skill(canonical=True, prompt='Generate a Python codemod that iterates through all functions in the `app` directory of a codebase. For each function that is not private and is not\nbeing imported anywhere, rename it to be internal by prefixing its name with an underscore. Ensure that the function checks the file path t... | 5 | 1 | 9 | 0 | 6 | 3 | 5 | 0.44 | 2 | 2 | 2 | 0 | 1 | 0 | 1 | 32 | 15 | 2 | 9 | 5 | 6 | 4 | 8 | 4 | 6 | 5 | 5 | 4 | 5 |
327,294 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/typescript/external/mega_racer.py | mega_racer.MegaRacer | from py_mini_racer._context import Context
from py_mini_racer import MiniRacer, init_mini_racer
from py_mini_racer._set_timeout import INSTALL_SET_TIMEOUT
class MegaRacer(MiniRacer):
"""MegaRacer is a patch on MiniRacer that allows for more memory.
Original MiniRacer:
MiniRacer evaluates JavaScript co... |
class MegaRacer(MiniRacer):
'''MegaRacer is a patch on MiniRacer that allows for more memory.
Original MiniRacer:
MiniRacer evaluates JavaScript code using a V8 isolate.
A MiniRacer instance can be explicitly closed using the close() method, or by using
the MiniRacer as a context manage... | 2 | 1 | 5 | 0 | 4 | 1 | 1 | 2.8 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 25 | 6 | 5 | 4 | 3 | 14 | 5 | 4 | 3 | 1 | 1 | 0 | 1 |
327,295 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/graph_sitter/shared/performance/memory_utils.py | memory_utils.MemoryStats | from dataclasses import dataclass
@dataclass
class MemoryStats:
memory_rss_gb: float
memory_vms_gb: float | @dataclass
class MemoryStats:
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 |
327,296 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/codemods/canonical/migrate_class_attributes/migrate_class_attributes.py | migrate_class_attributes.MigrateClassAttributes | from graph_sitter.writer_decorators import canonical
from codemods.codemod import Codemod
from graph_sitter.core.codebase import PyCodebaseType
from tests.shared.skills.skill import Skill
import textwrap
from tests.shared.skills.decorators import skill, skill_impl
from graph_sitter.shared.enums.programming_language imp... | @skill(canonical=True, prompt="Generate a Python codemod that migrates class attributes from a source class named 'RequestResetPassword' to a destination class named\n'UserGroupsSettingsControlPanel'. The migrated attributes should be made private in the source class by renaming them with a leading underscore.\nAdditio... | 5 | 1 | 31 | 5 | 20 | 6 | 4 | 0.39 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 32 | 39 | 7 | 23 | 9 | 20 | 9 | 14 | 8 | 12 | 4 | 5 | 2 | 4 |
327,297 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/examples/examples/sqlalchemy_1.6_to_2.0/input_repo/models.py | models.Book | from database import Base
from sqlalchemy import Column, Integer, String, ForeignKey
class Book(Base):
__tablename__ = 'books'
id = Column(Integer, primary_key=True, index=True)
title = Column(String, index=True)
author = Column(String, index=True)
description = Column(String)
publisher_id = Co... |
class Book(Base):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 1 | 7 | 6 | 6 | 0 | 7 | 6 | 6 | 0 | 1 | 0 | 0 |
327,298 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/examples/examples/sqlalchemy_1.6_to_2.0/input_repo/models.py | models.Publisher | from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm import relationship
from database import Base
class Publisher(Base):
__tablename__ = 'publishers'
id = Column(Integer, primary_key=True, index=True)
name = Column(String, unique=True, index=True)
books = relationship('Book',... |
class Publisher(Base):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 5 | 4 | 4 | 0 | 5 | 4 | 4 | 0 | 1 | 0 | 0 |
327,299 | codegen-sh/graph-sitter | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/codegen-sh_graph-sitter/src/codemods/canonical/move_enums_codemod/move_enums_codemod.py | move_enums_codemod.MoveEnumsCodemod | from graph_sitter.writer_decorators import canonical
from codemods.codemod import Codemod
from graph_sitter.core.codebase import Codebase
from tests.shared.skills.skill import Skill
from tests.shared.skills.decorators import skill, skill_impl
from graph_sitter.shared.enums.programming_language import ProgrammingLanguag... | @skill(canonical=True, prompt="Generate a Python codemod that moves all enum classes from various files in a codebase to a single file named 'enums.py'. The codemod should check if\n'enums.py' already exists in the current directory; if not, it should create it. For each enum class found, the codemod should move the cl... | 5 | 1 | 20 | 2 | 11 | 7 | 6 | 0.57 | 2 | 1 | 1 | 0 | 1 | 0 | 1 | 32 | 26 | 4 | 14 | 8 | 11 | 8 | 12 | 7 | 10 | 6 | 5 | 5 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.