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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
325,500 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/file_selection/graph.py | core.steps.action_plan.srf.file_selection.graph.FileSelectionGraph | from pathlib import Path
from deep_next.core.steps.action_plan.srf.list_dir import ls_dir
from deep_next.core.steps.action_plan.srf.file_selection.analysis_model import Analysis, RelevantFile, analysis_parser, example_output_next_steps, example_output_select_files
from langchain_core.runnables import RunnableConfig
fro... |
class FileSelectionGraph(BaseGraph):
def __init__(self):
pass
def _build(self):
pass
def create_init_state(self, query: str, root_path: Path) -> State:
pass
def __call__(self, query: str, root_path: Path, print_conversations: bool=False) -> list[RelevantFile]:
pass | 5 | 0 | 13 | 2 | 12 | 0 | 2 | 0 | 1 | 10 | 5 | 0 | 4 | 0 | 4 | 34 | 56 | 9 | 47 | 17 | 33 | 0 | 20 | 8 | 15 | 3 | 5 | 2 | 6 |
325,501 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/file_selection/graph.py | core.steps.action_plan.srf.file_selection.graph.SelectFilesPrompt | import textwrap
class SelectFilesPrompt:
role_description = textwrap.dedent('\n You are an advanced codebase analysis agent designed to take action based on the current knowledge analysis provided to you. Your task is to decide whether to continue the investigation by using the provided tool... |
class SelectFilesPrompt:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 6 | 27 | 4 | 26 | 3 | 4 | 4 | 3 | 0 | 0 | 0 | 0 |
325,502 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/file_selection/graph.py | core.steps.action_plan.srf.file_selection.graph.State | from pathlib import Path
import operator
from langchain_core.messages import AIMessage, AnyMessage, HumanMessage, SystemMessage
from deep_next.core.steps.action_plan.srf.file_selection.analysis_model import Analysis, RelevantFile, analysis_parser, example_output_next_steps, example_output_select_files
from typing impor... |
class State(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 | 2 | 10 | 1 | 9 | 3 | 10 | 1 | 9 | 0 | 1 | 0 | 0 |
325,503 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/file_selection/graph.py | core.steps.action_plan.srf.file_selection.graph._Node | import json
from deep_next.core.steps.action_plan.srf.file_selection.utils import tools_to_json, validate_files
from loguru import logger
from langgraph.prebuilt import tools_condition
from deep_next.common.llm import LLMConfigType, create_llm
from deep_next.core.steps.action_plan.srf.file_selection.analysis_model impo... |
class _Node:
@staticmethod
def analyze_knowledge(state: State) -> dict:
'''
Analyze the knowledge and provide the next steps for the investigation.
The analysis is based on the following pieces of information:
- The issue statement,
- The `_root_path_ls`,
- The ... | 7 | 1 | 17 | 2 | 12 | 3 | 2 | 0.23 | 0 | 6 | 4 | 0 | 0 | 0 | 3 | 3 | 57 | 9 | 39 | 14 | 32 | 9 | 19 | 10 | 15 | 2 | 0 | 1 | 5 |
325,504 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/file_selection/tools/acr/search_tools.py | core.steps.action_plan.srf.file_selection.tools.acr.search_tools.SearchBackend | from deep_next.core.steps.action_plan.srf.file_selection.tools.acr.utils import catch_all_and_log, find_python_files, get_class_signature, get_code_region_containing_code, get_code_snippets, parse_python_file
from functools import cache
from collections import defaultdict, namedtuple
class SearchBackend:
def __in... |
class SearchBackend:
def __init__(self, project_path: str):
pass
def _build_index(self):
'''
With all source code of the project, build two indexes:
1. From class name to (source file, start line, end line)
2. From function name to (source file, start line, end line)
... | 29 | 14 | 32 | 4 | 20 | 8 | 5 | 0.4 | 0 | 8 | 1 | 0 | 17 | 6 | 18 | 18 | 610 | 94 | 371 | 163 | 313 | 147 | 257 | 124 | 238 | 8 | 0 | 4 | 81 |
325,505 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/file_selection/tools/acr/search_tools.py | core.steps.action_plan.srf.file_selection.tools.acr.search_tools.SearchResult | from dataclasses import dataclass
from pathlib import Path
@dataclass
class SearchResult:
"""Dataclass to hold search results."""
file_path: str
start: int | None
end: int | None
class_name: str | None
func_name: str | None
code: str
@staticmethod
def to_relative_path(file_path: st... | @dataclass
class SearchResult:
'''Dataclass to hold search results.'''
@staticmethod
def to_relative_path(file_path: str, project_root: str) -> str:
'''Convert an absolute path to a path relative to the project root.
Args:
- file_path (str): The absolute path.
- proje... | 12 | 8 | 11 | 0 | 8 | 2 | 3 | 0.26 | 0 | 3 | 0 | 0 | 4 | 0 | 7 | 7 | 95 | 10 | 69 | 34 | 58 | 18 | 58 | 31 | 50 | 8 | 0 | 3 | 20 |
325,506 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/graph.py | core.steps.action_plan.srf.graph.SRFError | class SRFError(Exception):
"""Raised when SRF fails to find any relevant files.""" | class SRFError(Exception):
'''Raised when SRF fails to find any relevant files.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
325,507 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/graph.py | core.steps.action_plan.srf.graph.SelectRelatedFilesGraph | from deep_next.core.config import SRFConfig
from langgraph.graph import END
from deep_next.core.base_graph import BaseGraph
from pathlib import Path
from langgraph.constants import START
from deep_next.core.steps.action_plan.srf.file_selection.analysis_model import RelevantFile
class SelectRelatedFilesGraph(BaseGraph)... |
class SelectRelatedFilesGraph(BaseGraph):
def __init__(self, n_cycles: int | None=None):
pass
def _add_independent_file_selection_nodes(self) -> None:
pass
def _add_independent_file_selection_nodes_edges(self, to_node) -> None:
pass
def _build(self):
pass
def cr... | 7 | 0 | 10 | 1 | 9 | 0 | 1 | 0 | 1 | 11 | 4 | 0 | 6 | 1 | 6 | 36 | 66 | 10 | 56 | 20 | 41 | 0 | 24 | 12 | 17 | 2 | 5 | 1 | 8 |
325,508 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/graph.py | core.steps.action_plan.srf.graph._Node | from deep_next.core.config import SRFConfig
from deep_next.core.steps.action_plan.srf.file_selection.graph import file_selection_graph
from langchain_core.runnables import RunnableConfig
from loguru import logger
class _Node:
@staticmethod
def single_file_selection_cycle(state: _State) -> dict:
"""
... |
class _Node:
@staticmethod
def single_file_selection_cycle(state: _State) -> dict:
'''
Run a single cycle of file selection.
This function is called multiple times in
the SRF process and the unique results are combined at the end for lower
variance.
'''
... | 5 | 1 | 24 | 2 | 19 | 3 | 2 | 0.15 | 0 | 7 | 3 | 0 | 0 | 0 | 2 | 2 | 52 | 5 | 41 | 10 | 36 | 6 | 16 | 7 | 13 | 2 | 0 | 1 | 4 |
325,509 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srf/graph.py | core.steps.action_plan.srf.graph._State | import operator
from deep_next.core.steps.action_plan.srf.file_selection.analysis_model import RelevantFile
from pathlib import Path
from typing import Annotated, TypedDict
class _State(TypedDict):
root_path: Path
query: str
_cycle_results: Annotated[list[RelevantFile], operator.add]
_cycle_invalid_res... |
class _State(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.38 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 2 | 8 | 1 | 7 | 3 | 8 | 1 | 7 | 0 | 1 | 0 | 0 |
325,510 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/_agentless.py | core.steps.action_plan.srs._agentless.CompressTransformer | import libcst as cst
import libcst.matchers as m
class CompressTransformer(cst.CSTTransformer):
DESCRIPTION = str = 'Replaces function body with ...'
replacement_string = '"__FUNC_BODY_REPLACEMENT_STRING__"'
def __init__(self, keep_constant=True, keep_indent=False):
self.keep_constant = keep_const... |
class CompressTransformer(cst.CSTTransformer):
def __init__(self, keep_constant=True, keep_indent=False):
pass
def leave_Module(self, original_node: cst.Module, updated_node: cst.Module) -> cst.Module:
pass
def leave_ClassDef(self, original_node: cst.ClassDef, updated_node: cst.ClassDef)... | 5 | 0 | 12 | 0 | 11 | 1 | 1 | 0.08 | 1 | 0 | 0 | 0 | 4 | 2 | 4 | 4 | 56 | 4 | 48 | 19 | 37 | 4 | 19 | 13 | 14 | 2 | 1 | 1 | 5 |
325,511 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/_agentless.py | core.steps.action_plan.srs._agentless.GlobalVariableVisitor | import libcst as cst
import libcst.matchers as m
class GlobalVariableVisitor(cst.CSTVisitor):
METADATA_DEPENDENCIES = (cst.metadata.PositionProvider,)
def __init__(self):
self.global_assigns = []
def leave_Module(self, original_node: cst.Module):
assigns = []
for stmt in original_... |
class GlobalVariableVisitor(cst.CSTVisitor):
def __init__(self):
pass
def leave_Module(self, original_node: cst.Module):
pass | 3 | 0 | 6 | 0 | 6 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 2 | 1 | 2 | 2 | 16 | 2 | 14 | 9 | 11 | 0 | 12 | 9 | 9 | 3 | 1 | 2 | 4 |
325,512 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/_agentless.py | core.steps.action_plan.srs._agentless.GlobalVariableVisitorParsing | import libcst as cst
class GlobalVariableVisitorParsing(cst.CSTVisitor):
METADATA_DEPENDENCIES = (cst.metadata.PositionProvider,)
def __init__(self):
self.assigns = []
def leave_Assign(self, original_node: cst.Module):
stmt = original_node
start_pos = self.get_metadata(cst.metadat... |
class GlobalVariableVisitorParsing(cst.CSTVisitor):
def __init__(self):
pass
def leave_Assign(self, original_node: cst.Module):
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 1 | 2 | 2 | 11 | 2 | 9 | 8 | 6 | 0 | 9 | 8 | 6 | 1 | 1 | 0 | 2 |
325,513 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/common.py | core.steps.action_plan.srs.common.ExistingCodeContext | from pydantic import BaseModel, Field
class ExistingCodeContext(BaseModel):
overview_description: str = Field(description='Overview of the code context')
code_context: list[FileCodeContext] = Field(default_factory=list, description='Code context for localization')
def dump(self) -> str:
return '\n... |
class ExistingCodeContext(BaseModel):
def dump(self) -> str:
pass | 2 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 13 | 1 | 12 | 4 | 10 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
325,514 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/common.py | core.steps.action_plan.srs.common.FileCodeContext | from pathlib import Path
from pydantic import BaseModel, Field
class FileCodeContext(BaseModel):
path: Path = Field(description='Path to the file')
reasoning: str = Field(description='Reasoning for the code context')
localization_code_snippet: str = Field(description='Class, function, or line of code that ... |
class FileCodeContext(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 7 | 0 | 7 | 4 | 6 | 0 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
325,515 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/graph.py | core.steps.action_plan.srs.graph.SelectRelatedSnippetsGraph | from deep_next.core.config import SRSConfig
from langgraph.constants import START
from pathlib import Path
from langgraph.graph import END
from deep_next.core.steps.action_plan.srs._agentless import create_structure, transfer_arb_locs_to_locs
from deep_next.core.base_graph import BaseGraph
class SelectRelatedSnippetsG... |
class SelectRelatedSnippetsGraph(BaseGraph):
def __init__(self):
pass
def _add_independent_snippets_selection_nodes(self) -> None:
pass
def _add_independent_snippets_selection_nodes_edges(self, to_node) -> None:
pass
def _build(self):
pass
def create_init_state(... | 7 | 0 | 11 | 1 | 10 | 0 | 2 | 0.03 | 1 | 10 | 3 | 0 | 6 | 0 | 6 | 36 | 72 | 9 | 61 | 22 | 43 | 2 | 24 | 11 | 17 | 2 | 5 | 1 | 9 |
325,516 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/graph.py | core.steps.action_plan.srs.graph._Node | from deep_next.core.steps.action_plan.srs.localize_lines import localize_line_from_coarse_function_locs
from deep_next.core.steps.action_plan.srs.localize_function import localize_function_from_compressed_files
from deep_next.core.config import SRSConfig
from deep_next.core.steps.action_plan.srs._agentless import creat... |
class _Node:
@staticmethod
def localize_function(state: _State) -> dict:
'''Localize the function in the given file.'''
pass
@staticmethod
def localize_lines(state: _State) -> dict:
pass
@staticmethod
def combine_results(state: _State) -> dict:
pass | 7 | 1 | 12 | 2 | 10 | 0 | 1 | 0.03 | 0 | 3 | 2 | 0 | 0 | 0 | 3 | 3 | 42 | 7 | 34 | 14 | 27 | 1 | 15 | 11 | 11 | 2 | 0 | 1 | 4 |
325,517 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/graph.py | core.steps.action_plan.srs.graph._State | from pathlib import Path
from typing import Annotated, TypedDict
class _State(TypedDict):
problem_statement: str
files: list[Path]
structure: dict
_localized_functions: Annotated[dict[str, str], _operator_merge_values_of_dict]
'A dict mapping file names to names of localized classes, methods, funct... |
class _State(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.78 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 2 | 9 | 1 | 8 | 7 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
325,518 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/localize_function.py | core.steps.action_plan.srs.localize_function.Prompt | import textwrap
class Prompt:
file_content_in_block_template = textwrap.dedent('\n ### File: {file_name} ###\n ```python\n {file_content}\n ```\n ')
get_relevant_classes_and_func_from_compressed_files_prompt = textwrap.dedent('\n Please look through the following Issue... |
class Prompt:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 44 | 8 | 33 | 3 | 32 | 4 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
325,519 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/action_plan/srs/localize_lines.py | core.steps.action_plan.srs.localize_lines.Prompt | import textwrap
class Prompt:
obtain_relevant_code_combine_top_n_prompt = textwrap.dedent('\n Please review the following Issue Description and relevant files,\n and provide a set of locations that need to be edited to fix the issue.\n The locations can be specified as class names, function or... |
class Prompt:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 26 | 5 | 19 | 2 | 18 | 2 | 2 | 2 | 1 | 0 | 0 | 0 | 0 |
325,520 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/code_review/graph.py | core.steps.code_review.graph.CodeReviewGraph | from deep_next.core.base_graph import BaseGraph
from langgraph.graph import END, START
from pathlib import Path
class CodeReviewGraph(BaseGraph):
"""Implementation of "Develop Edits" step in LangGraph."""
def __init__(self):
super().__init__(_State)
def _build(self) -> None:
self.add_quic... |
class CodeReviewGraph(BaseGraph):
'''Implementation of "Develop Edits" step in LangGraph.'''
def __init__(self):
pass
def _build(self) -> None:
pass
def create_init_state(self, root_path: Path, issue_statement: str, project_knowledge: str, git_diff: str, include_code_fragments: bool=... | 5 | 1 | 11 | 1 | 10 | 1 | 1 | 0.07 | 1 | 7 | 3 | 0 | 4 | 0 | 4 | 34 | 51 | 6 | 42 | 21 | 23 | 3 | 16 | 7 | 11 | 1 | 5 | 0 | 4 |
325,521 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/code_review/graph.py | core.steps.code_review.graph.CodeReviewResult | from pydantic import BaseModel, Field
class CodeReviewResult(BaseModel):
issues: list[tuple[str, str]] = Field(default_factory=list, description='Code review issues found during the code review process.')
completed: dict[str, bool] = Field(default_factory=dict, description='Code review completed status for eac... |
class CodeReviewResult(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 10 | 1 | 9 | 3 | 8 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
325,522 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/code_review/graph.py | core.steps.code_review.graph._Node | from deep_next.core.io import read_txt
from unidiff import PatchSet
from deep_next.core.steps.code_review.review_code import review_code as _review_code
from pathlib import Path
class _Node:
@staticmethod
def select_code(state: _State) -> dict:
modified_files_paths = []
for patch in PatchSet(s... |
class _Node:
@staticmethod
def select_code(state: _State) -> dict:
pass
@staticmethod
def review_code(state: _State) -> dict:
pass | 5 | 0 | 15 | 1 | 14 | 0 | 2 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 2 | 2 | 34 | 3 | 31 | 9 | 26 | 0 | 12 | 7 | 9 | 3 | 0 | 2 | 4 |
325,523 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/code_review/graph.py | core.steps.code_review.graph._State | from pathlib import Path
from pydantic import BaseModel, Field
class _State(BaseModel):
root_path: Path = Field(description='Path to the root project directory.')
issue_statement: str = Field(description='The issue title and body.')
project_knowledge: str = Field(description='Knowledge about the project, s... |
class _State(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 27 | 2 | 23 | 8 | 22 | 2 | 8 | 8 | 7 | 0 | 5 | 0 | 0 |
325,524 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/code_review/model/base.py | core.steps.code_review.model.base.CodeReviewModel | from pydantic import BaseModel
class CodeReviewModel(BaseModel):
issues: list[str]
'Issues found in the code while performing code review.' |
class CodeReviewModel(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 82 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
325,525 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/code_review/model/base.py | core.steps.code_review.model.base.CodeReviewer | from typing import NamedTuple
from langchain.output_parsers import PydanticOutputParser
class CodeReviewer(NamedTuple):
name: str
parser: PydanticOutputParser
example_output: CodeReviewModel |
class CodeReviewer(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
325,526 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/code_review/model/code_style.py | core.steps.code_review.model.code_style.CodeStyleCodeReview | from deep_next.core.steps.code_review.model.base import CodeReviewer, CodeReviewModel
from pydantic import Field
class CodeStyleCodeReview(CodeReviewModel):
issues: list[str] = Field(default_factory=list, description=_issues_desc) |
class CodeStyleCodeReview(CodeReviewModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
325,527 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/code_review/model/diff_consistency.py | core.steps.code_review.model.diff_consistency.DiffConsistencyCodeReview | from deep_next.core.steps.code_review.model.base import CodeReviewer, CodeReviewModel
from pydantic import Field
class DiffConsistencyCodeReview(CodeReviewModel):
issues: list[str] = Field(default_factory=list, description=_issues_desc) |
class DiffConsistencyCodeReview(CodeReviewModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 2 | 0 | 2 | 2 | 1 | 0 | 2 | 2 | 1 | 0 | 6 | 0 | 0 |
325,528 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/code_review/review_code.py | core.steps.code_review.review_code.Prompt | import textwrap
class Prompt:
role_description = textwrap.dedent("\n You are one of many code reviewers. Your task is to review a merge request\n containing code changes. Focus only on fragments of code that are being impacted\n by the merge request. Don't bother looking at the rest of the cod... |
class Prompt:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 74 | 11 | 59 | 7 | 58 | 5 | 7 | 7 | 6 | 0 | 0 | 0 | 0 |
325,529 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/graph.py | core.steps.gather_project_knowledge.graph.GatherProjectKnowledgeGraph | from langgraph.graph import END
from deep_next.core.base_graph import BaseGraph
from langgraph.constants import START
from pathlib import Path
class GatherProjectKnowledgeGraph(BaseGraph):
"""Graph to gather project knowledge."""
def __init__(self):
super().__init__(_State)
def _build(self) -> No... |
class GatherProjectKnowledgeGraph(BaseGraph):
'''Graph to gather project knowledge.'''
def __init__(self):
pass
def _build(self) -> None:
pass
def create_init_state(self, root_path: Path) -> _State:
pass
def __call__(self, root_path: Path) -> str:
pass | 5 | 1 | 6 | 1 | 5 | 1 | 1 | 0.15 | 1 | 5 | 2 | 0 | 4 | 0 | 4 | 34 | 29 | 6 | 20 | 7 | 15 | 3 | 18 | 7 | 13 | 1 | 5 | 0 | 4 |
325,530 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/graph.py | core.steps.gather_project_knowledge.graph._Node | import textwrap
from deep_next.core.steps.gather_project_knowledge.project_description import gather_project_description_graph
from deep_next.core.steps.gather_project_knowledge.project_map import tree
class _Node:
@staticmethod
def create_project_map(state: _State) -> dict:
project_map = tree(path=st... |
class _Node:
@staticmethod
def create_project_map(state: _State) -> dict:
pass
@staticmethod
def create_project_description(state: _State) -> dict:
pass
@staticmethod
def parse_final_state(state: _State) -> dict:
pass | 7 | 0 | 10 | 1 | 9 | 0 | 1 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 3 | 3 | 36 | 6 | 30 | 11 | 23 | 0 | 11 | 8 | 7 | 1 | 0 | 0 | 3 |
325,531 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/graph.py | core.steps.gather_project_knowledge.graph._State | from pydantic import BaseModel, Field
from pathlib import Path
class _State(BaseModel):
root_path: Path = Field(description='Path to the root project directory.')
project_description: str | None = Field(default=None, description='Natural language summary of the project structure and purpose.')
project_map:... |
class _State(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 13 | 0 | 13 | 5 | 12 | 0 | 5 | 5 | 4 | 0 | 5 | 0 | 0 |
325,532 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/project_description/data_model.py | core.steps.gather_project_knowledge.project_description.data_model.ExistingProjectDescriptionContext | from pydantic import BaseModel, Field
class ExistingProjectDescriptionContext(BaseModel):
overview_description: str = Field(default='', description='Overview of the project')
project_description_context: list[ProjectDescriptionContext] = Field(default_factory=list, description='List of project description cont... |
class ExistingProjectDescriptionContext(BaseModel):
def to_str(self) -> str:
pass | 2 | 0 | 16 | 3 | 13 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 23 | 4 | 19 | 7 | 17 | 0 | 13 | 7 | 11 | 2 | 5 | 1 | 2 |
325,533 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/project_description/data_model.py | core.steps.gather_project_knowledge.project_description.data_model.ExistingQuestionContext | from pydantic import BaseModel, Field
class ExistingQuestionContext(BaseModel):
overview_description: str = Field(default='', description='Overview description of the project')
question_context: list[QuestionContext] = Field(default_factory=list, description='List of questions to the git repository')
def ... |
class ExistingQuestionContext(BaseModel):
def dump(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 83 | 10 | 1 | 9 | 4 | 7 | 0 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
325,534 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/project_description/data_model.py | core.steps.gather_project_knowledge.project_description.data_model.ProjectDescriptionContext | from pydantic import BaseModel, Field
class ProjectDescriptionContext(BaseModel):
reasoning: str = Field(default='', description='Reasoning for the observation')
key_observation: str = Field(default='', description='Key observation') |
class ProjectDescriptionContext(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
325,535 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/project_description/data_model.py | core.steps.gather_project_knowledge.project_description.data_model.QuestionContext | from pydantic import BaseModel, Field
class QuestionContext(BaseModel):
reasoning: str = Field(default='', description='Reasoning for the question')
question: str = Field(default='', description='Question to the git repository') |
class QuestionContext(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
325,536 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/project_description/generate_project_description.py | core.steps.gather_project_knowledge.project_description.generate_project_description.Prompt | import textwrap
class Prompt:
task_description = textwrap.dedent('\n As a senior python developer that prepares documentation for newcomers to support onboarding process...\n\n Please analyze the key technical capabilities and characteristics of the "{project_name}" project based on given context.\n ... |
class Prompt:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 45 | 7 | 35 | 3 | 34 | 5 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
325,537 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/project_description/generate_questions.py | core.steps.gather_project_knowledge.project_description.generate_questions.Prompt | import textwrap
class Prompt:
task_description = textwrap.dedent('\n As a senior python developer that prepares documentation for newcomers to support onboarding process...\n\n Please look through the following GitHub Problem Description for project "{project_name}".\n Provide questions to the... |
class Prompt:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 31 | 5 | 26 | 3 | 25 | 2 | 3 | 3 | 2 | 0 | 0 | 0 | 0 |
325,538 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/project_description/graph.py | core.steps.gather_project_knowledge.project_description.graph.GatherProjectDescriptionGraph | from pathlib import Path
from deep_next.core.base_graph import BaseGraph
from langgraph.graph import END
from deep_next.core.project_info import ProjectInfo, get_project_info
from langgraph.constants import START
class GatherProjectDescriptionGraph(BaseGraph):
"""Implementation of "Gather Project Description" step... |
class GatherProjectDescriptionGraph(BaseGraph):
'''Implementation of "Gather Project Description" step in LangGraph'''
def __init__(self):
pass
def _build(self) -> None:
pass
def create_init_state(self, root_path: Path) -> _State:
pass
def __call__(self, root_path: Path)... | 5 | 1 | 5 | 0 | 4 | 1 | 1 | 0.18 | 1 | 5 | 2 | 0 | 4 | 0 | 4 | 34 | 25 | 5 | 17 | 7 | 12 | 3 | 17 | 7 | 12 | 1 | 5 | 0 | 4 |
325,539 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/project_description/graph.py | core.steps.gather_project_knowledge.project_description.graph._Node | from deep_next.core.steps.gather_project_knowledge.project_description.generate_project_description import generate_project_description
from langchain_core.runnables import RunnableConfig
from deep_next.core.steps.gather_project_knowledge.project_map import tree
from pathlib import Path
from deep_next.core.steps.gather... |
class _Node:
@staticmethod
def generate_questions(state: _State) -> dict:
pass
@staticmethod
def get_srf_context(state: _State) -> dict:
pass
@staticmethod
def project_description(state: _State) -> dict:
pass | 7 | 0 | 13 | 1 | 11 | 0 | 1 | 0 | 0 | 4 | 2 | 0 | 0 | 0 | 3 | 3 | 44 | 6 | 38 | 15 | 29 | 0 | 13 | 10 | 9 | 1 | 0 | 0 | 3 |
325,540 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/gather_project_knowledge/project_description/graph.py | core.steps.gather_project_knowledge.project_description.graph._State | from pathlib import Path
from pydantic import BaseModel, Field
from deep_next.core.project_info import ProjectInfo, get_project_info
class _State(BaseModel):
root_path: Path
questions: str = Field(default='<MISSING>')
related_files: list[Path] = Field(default_factory=list)
project_info: ProjectInfo
... |
class _State(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 11 | 2 | 6 | 4 | 5 | 3 | 6 | 4 | 5 | 0 | 5 | 0 | 0 |
325,541 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/acr.py | core.steps.implement.acr.Edit | from pprint import pformat
from dataclasses import dataclass
@dataclass
class Edit:
filename: str
before: str
after: str
def __str__(self):
return f'{self.filename}\nBefore:\n{pformat(self.before)}\nAfter:\n{pformat(self.after)}\n'
def __repr__(self):
return str(self) | @dataclass
class Edit:
def __str__(self):
pass
def __repr__(self):
pass | 4 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 2 | 2 | 14 | 2 | 12 | 3 | 9 | 0 | 8 | 3 | 5 | 1 | 0 | 0 | 2 |
325,542 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/acr.py | core.steps.implement.acr.Writable | from typing import TextIO
class Writable(TextIO):
"""dummy output stream for pylint"""
def __init__(self) -> None:
self.content: list[str] = []
def write(self, s: str) -> int:
self.content.append(s)
return len(s)
def read(self, n: int=0) -> str:
return '\n'.join(self.... |
class Writable(TextIO):
'''dummy output stream for pylint'''
def __init__(self) -> None:
pass
def write(self, s: str) -> int:
pass
def read(self, n: int=0) -> str:
pass | 4 | 1 | 2 | 0 | 2 | 0 | 1 | 0.13 | 1 | 3 | 0 | 0 | 3 | 1 | 3 | 31 | 12 | 3 | 8 | 5 | 4 | 1 | 8 | 5 | 4 | 1 | 3 | 0 | 3 |
325,543 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/apply_patch/common.py | core.steps.implement.apply_patch.common.ApplyPatchError | class ApplyPatchError(Exception):
pass | class ApplyPatchError(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 |
325,544 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/apply_patch/common.py | core.steps.implement.apply_patch.common.CodeMatch | from dataclasses import dataclass
from rapidfuzz.distance import Levenshtein as levenshtein_distance
@dataclass(frozen=True)
class CodeMatch:
start: int
'The index of the starting line of the best match.'
end: int
'The index od the ending line of the best match.'
distance: int
'The Levenshtein ... | @dataclass(frozen=True)
class CodeMatch:
@classmethod
def from_text(cls, orig_text: str, start: int, end: int, ref_to_match: str) -> CodeMatch:
'''Create a CodeFragment from the original text.'''
pass
def __lt__(self, other):
pass
def __le__(self, other):
pass
def... | 9 | 1 | 3 | 0 | 3 | 0 | 1 | 0.17 | 0 | 2 | 0 | 0 | 5 | 0 | 6 | 6 | 33 | 6 | 23 | 10 | 13 | 4 | 16 | 7 | 9 | 1 | 0 | 0 | 6 |
325,545 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/apply_patch/common.py | core.steps.implement.apply_patch.common.Frame | import numpy as np
from scipy.stats import pearsonr
class Frame:
"""
A frame represents a place in a code file and its similarity to a given code patch.
A frame is defined by:
- a start and end line of a code file,
- lines between the start and end line that are similar to lines the code patch,
... |
class Frame:
'''
A frame represents a place in a code file and its similarity to a given code patch.
A frame is defined by:
- a start and end line of a code file,
- lines between the start and end line that are similar to lines the code patch,
- the coverage of lines in the code patch by the li... | 9 | 3 | 9 | 1 | 6 | 2 | 2 | 0.51 | 0 | 5 | 2 | 0 | 6 | 4 | 6 | 6 | 73 | 14 | 39 | 20 | 30 | 20 | 30 | 17 | 23 | 3 | 0 | 2 | 10 |
325,546 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/apply_patch/common.py | core.steps.implement.apply_patch.common.LineMatch | from dataclasses import dataclass
@dataclass(frozen=True)
class LineMatch:
idx: int
'The index of the line in some file.'
distance: int
'The Levenshtein distance between the line in some file and a reference line.'
def __lt__(self, other):
return self.distance < other.distance
def __l... | @dataclass(frozen=True)
class LineMatch:
def __lt__(self, other):
pass
def __le__(self, other):
pass
def __gt__(self, other):
pass
def __ge__(self, other):
pass
def __eq__(self, other):
pass | 7 | 0 | 2 | 0 | 2 | 0 | 1 | 0.15 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 20 | 5 | 13 | 6 | 7 | 2 | 13 | 6 | 7 | 1 | 0 | 0 | 5 |
325,547 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/apply_patch/common.py | core.steps.implement.apply_patch.common.RankingList | from sortedcontainers import SortedList
class RankingList(SortedList):
"""
A sorted list that only keeps a given number of best values.
The list is sorted in ascending order by default. The list can be configured to keep
the best values in the list, either by keeping the smallest values or the largest... |
class RankingList(SortedList):
'''
A sorted list that only keeps a given number of best values.
The list is sorted in ascending order by default. The list can be configured to keep
the best values in the list, either by keeping the smallest values or the largest.
The list can also be configured to ... | 8 | 3 | 8 | 1 | 7 | 1 | 2 | 0.28 | 1 | 3 | 0 | 0 | 6 | 3 | 6 | 6 | 65 | 10 | 43 | 25 | 21 | 12 | 26 | 10 | 19 | 4 | 1 | 1 | 13 |
325,548 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/develop_patch.py | core.steps.implement.develop_patch.ParsePatchesError | class ParsePatchesError(Exception):
"""Raised for issues encountered during parse patches process.""" | class ParsePatchesError(Exception):
'''Raised for issues encountered during parse patches process.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
325,549 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/graph.py | core.steps.implement.graph.ImplementGraph | from deep_next.core.base_graph import BaseGraph
from deep_next.core.steps.action_plan.data_model import ActionPlan, Step
from langgraph.graph import END, START
from pathlib import Path
class ImplementGraph(BaseGraph):
"""Implementation of "Implement" step in LangGraph."""
def __init__(self):
super()._... |
class ImplementGraph(BaseGraph):
'''Implementation of "Implement" step in LangGraph.'''
def __init__(self):
pass
def _build(self) -> None:
pass
def create_init_state(self, root_path: Path, issue_statement: str, action_plan: ActionPlan) -> _State:
pass
def __call__(self, ... | 5 | 1 | 9 | 1 | 7 | 1 | 1 | 0.22 | 1 | 6 | 3 | 0 | 4 | 0 | 4 | 34 | 42 | 9 | 27 | 11 | 18 | 6 | 19 | 7 | 14 | 1 | 5 | 0 | 4 |
325,550 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/graph.py | core.steps.implement.graph._Node | from deep_next.core.steps.implement.git_diff import generate_diff
import tenacity
from deep_next.core.steps.implement.develop_patch import ParsePatchesError, develop_all_patches, develop_single_file_patches, parse_and_apply_patches
from deep_next.core.steps.implement.apply_patch.common import ApplyPatchError
from deep_... |
class _Node:
@staticmethod
def select_next_step(state: _State) -> dict:
pass
@staticmethod
@tenacity.retry(stop=tenacity.stop_after_attempt(5), retry=tenacity.retry_if_exception_type((ApplyPatchError, ParsePatchesError, ValueError)), reraise=True)
def code_development(state: _State) -> _St... | 11 | 1 | 9 | 1 | 8 | 1 | 1 | 0.04 | 0 | 3 | 2 | 0 | 0 | 0 | 4 | 4 | 56 | 6 | 48 | 16 | 23 | 2 | 16 | 8 | 11 | 1 | 0 | 0 | 4 |
325,551 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/graph.py | core.steps.implement.graph._State | from deep_next.core.steps.action_plan.data_model import ActionPlan, Step
from pydantic import BaseModel, Field, model_validator
from pathlib import Path
from copy import deepcopy
class _State(BaseModel):
root_path: Path = Field(description='Path to the root project directory.')
issue_statement: str = Field(des... |
class _State(BaseModel):
@model_validator(mode='after')
def initialize_steps_remaining(self) -> '_State':
pass | 3 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 83 | 24 | 3 | 21 | 9 | 18 | 0 | 11 | 8 | 9 | 2 | 5 | 1 | 2 |
325,552 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/prompt_all_at_once_implemetation.py | core.steps.implement.prompt_all_at_once_implemetation.PromptAllAtOnceImplementation | import textwrap
class PromptAllAtOnceImplementation:
task_description = textwrap.dedent('\n You are a Senior Python Developer hired to contribute into an existing Python codebase.\n Your only responsibility is to write source code.\n\n Ensure that each piece of the code you modify integrates s... |
class PromptAllAtOnceImplementation:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 254 | 47 | 193 | 7 | 192 | 21 | 7 | 7 | 6 | 0 | 0 | 0 | 0 |
325,553 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/prompt_single_file_implementation.py | core.steps.implement.prompt_single_file_implementation.PromptSingleFileImplementation | import textwrap
class PromptSingleFileImplementation:
task_description = textwrap.dedent("\n You are a Senior Python Developer hired to contribute into an existing Python codebase.\n Your only responsibility is to write source code.\n\n Ensure that each piece of the code you modify integrates ... |
class PromptSingleFileImplementation:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 237 | 47 | 182 | 7 | 181 | 14 | 7 | 7 | 6 | 0 | 0 | 0 | 0 |
325,554 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/core/deep_next/core/steps/implement/utils.py | core.steps.implement.utils.CodePatch | from pathlib import Path
from dataclasses import dataclass
@dataclass
class CodePatch:
file_path: Path
before: str
after: str
error_type: str | None = None
diff: str = '' | @dataclass
class CodePatch:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 3 | 5 | 0 | 6 | 3 | 5 | 0 | 0 | 0 | 0 |
325,555 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/git.py | git.BranchCheckoutError | class BranchCheckoutError(GitRepositoryError):
"""Branch checkout error.""" | class BranchCheckoutError(GitRepositoryError):
'''Branch checkout error.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
325,556 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/git.py | git.BranchExistsError | class BranchExistsError(GitRepositoryError):
"""Branch already exists error.""" | class BranchExistsError(GitRepositoryError):
'''Branch already exists error.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
325,557 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/git.py | git.FeatureBranch | from loguru import logger
from contextlib import contextmanager
class FeatureBranch:
def __init__(self, name: str, git_repo: 'GitRepository'):
self.name = name
self._git_repo = git_repo
self.repo_dir = git_repo.repo_dir
def commit_all(self, commit_msg: str) -> None:
logger.inf... |
class FeatureBranch:
def __init__(self, name: str, git_repo: 'GitRepository'):
pass
def commit_all(self, commit_msg: str) -> None:
pass
def push_to_remote(self) -> None:
pass
@contextmanager
def create_changes(self, commit_msg: str):
'''Context manager to create c... | 6 | 1 | 7 | 1 | 6 | 0 | 1 | 0.04 | 0 | 2 | 0 | 0 | 4 | 3 | 4 | 4 | 33 | 8 | 24 | 10 | 18 | 1 | 23 | 8 | 18 | 2 | 0 | 1 | 5 |
325,558 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/git.py | git.GitRepository | from loguru import logger
from deep_next.common.cmd import RunCmdError, run_command
import subprocess
from pathlib import Path
class GitRepository:
def __init__(self, repo_dir: Path):
self.repo_dir = repo_dir
if not (repo_dir / '.git').exists():
raise ValueError(f"Provided invalid git ... |
class GitRepository:
def __init__(self, repo_dir: Path):
pass
def get_feature_branch(self, feature_branch: str) -> FeatureBranch:
'''Get feature branch.'''
pass
def new_feature_branch(self, ref_branch: str, feature_branch: str) -> FeatureBranch:
pass
def _reset_and_c... | 13 | 9 | 12 | 1 | 9 | 1 | 2 | 0.08 | 0 | 10 | 5 | 0 | 10 | 1 | 11 | 11 | 139 | 24 | 106 | 18 | 93 | 9 | 64 | 14 | 52 | 5 | 0 | 2 | 22 |
325,559 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/git.py | git.GitRepositoryError | class GitRepositoryError(Exception):
"""Git repository error.""" | class GitRepositoryError(Exception):
'''Git repository error.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
325,560 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/handle_mr/hitl.py | handle_mr.hitl.ActionPlanParserError | class ActionPlanParserError(Exception):
"""Action plan parser error.""" | class ActionPlanParserError(Exception):
'''Action plan parser error.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
325,561 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/handle_mr/hitl.py | handle_mr.hitl._State | from enum import Enum, auto
class _State(Enum):
ACTION_PLAN_PROPOSITION_REQUEST = auto()
AWAITING_HUMAN_FEEDBACK = auto()
ACTION_PLAN_INVALID_FORMAT = auto()
ACTION_PLAN_FIX_REQUEST = auto()
ACTION_PLAN_IMPLEMENTATION_REQUEST = auto() |
class _State(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 6 | 0 | 6 | 6 | 5 | 0 | 6 | 6 | 5 | 0 | 4 | 0 | 0 |
325,562 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/common/deep_next/common/llm.py | llm.LLMConfig | from pydantic import BaseModel
import yaml
from deep_next.common.config import MONOREPO_ROOT_PATH
class LLMConfig(BaseModel):
model: Model
seed: int | None
temperature: float | None
config: dict | None = None
@classmethod
def load(cls, config_type: LLMConfigType=LLMConfigType.DEFAULT) -> LLMCo... |
class LLMConfig(BaseModel):
@classmethod
def load(cls, config_type: LLMConfigType=LLMConfigType.DEFAULT) -> LLMConfig:
pass | 3 | 0 | 5 | 1 | 4 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 83 | 12 | 2 | 10 | 6 | 7 | 0 | 9 | 4 | 7 | 1 | 5 | 1 | 1 |
325,563 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/common/deep_next/common/llm.py | llm.LLMConfigType | from enum import Enum
class LLMConfigType(str, Enum):
PROJECT_KNOWLEDGE = 'project-knowledge'
ACTION_PLAN = 'action-plan'
SRF_ANALYZE = 'srf-analyze'
SRF_TOOLS = 'srf-tools'
SRS_ANALYZE = 'srs-analyze'
IMPLEMENT = 'implement'
CODE_REVIEW = 'code-review'
DEFAULT = 'default' |
class LLMConfigType(str, Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 9 | 0 | 9 | 9 | 8 | 0 | 9 | 9 | 8 | 0 | 4 | 0 | 0 |
325,564 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/common/deep_next/common/llm.py | llm.Model | from enum import Enum
class Model(str, Enum):
AWS_CLAUDE_3_5_SONNET_20240620_V1_0 = 'anthropic.claude-3-5-sonnet-20240620-v1:0'
AWS_CLAUDE_3_7_SONNET_20240620_V1_0 = 'anthropic.claude-3-7-sonnet-20250219-v1:0'
AWS_DEEPSEEK_R1_v1_0 = 'us.deepseek.r1-v1:0'
AWS_MISTRAL_7B_INSTRUCT_V0_2 = 'mistral.mistral-... |
class Model(str, Enum):
@property
def provider(self) -> Provider:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 1 | 116 | 24 | 3 | 21 | 20 | 18 | 0 | 20 | 19 | 18 | 1 | 4 | 0 | 1 |
325,565 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/common/deep_next/common/llm.py | llm.Provider | from enum import Enum
class Provider(str, Enum):
BEDROCK = 'aws-bedrock'
OPENAI = 'openai'
OLLAMA = 'ollama' |
class Provider(str, Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
325,566 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/common/deep_next/common/llm.py | llm._ChatBedrock | from langchain_core.language_models import BaseChatModel, LanguageModelInput
from langchain_aws import ChatBedrock
from typing import Any, Callable, Iterable, Optional
from langchain_core.runnables import RunnableConfig
from langchain_core.messages import AIMessage, BaseMessage, HumanMessage, SystemMessage, ToolMessage... |
class _ChatBedrock(ChatBedrock):
@staticmethod
def _align_input_system_to_human(messages: Iterable) -> list:
pass
@staticmethod
def _align_input_tool_to_human(messages: Iterable) -> list:
pass
@staticmethod
def _remove_tool_calls_from_ai(messages: Iterable, trim_empty: bool=Tru... | 10 | 0 | 17 | 3 | 14 | 0 | 4 | 0 | 1 | 6 | 0 | 0 | 1 | 0 | 5 | 5 | 100 | 20 | 80 | 26 | 60 | 0 | 41 | 12 | 35 | 5 | 1 | 2 | 18 |
325,567 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/slack.py | slack.SlackConnector | from slack_sdk.errors import SlackApiError
from slack_sdk import WebClient
import os
from loguru import logger
class SlackConnector:
def __init__(self, token: str | None=None, channel: str | None=None) -> None:
"""Initializes Slack connector.
Parameters:
token: Slack bot token.
... |
class SlackConnector:
def __init__(self, token: str | None=None, channel: str | None=None) -> None:
'''Initializes Slack connector.
Parameters:
token: Slack bot token.
channel: Slack channel ID or name.
'''
pass
def post(self, message: str) -> None:
... | 3 | 2 | 10 | 1 | 6 | 3 | 2 | 0.46 | 0 | 3 | 1 | 0 | 2 | 3 | 2 | 2 | 22 | 3 | 13 | 7 | 10 | 6 | 13 | 6 | 10 | 3 | 0 | 1 | 4 |
325,568 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/slack.py | slack.SlackConnectorError | class SlackConnectorError(Exception):
"""Custom exception for SlackConnector""" | class SlackConnectorError(Exception):
'''Custom exception for SlackConnector'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
325,569 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/vcs_config.py | vcs_config.EnvVars | class EnvVars:
VCS = 'VCS_PROVIDER'
ACCESS_TOKEN = 'VCS_ACCESS_TOKEN'
REPO_PATH = 'VCS_REPO_PATH'
BASE_URL = 'VCS_BASE_URL' | class EnvVars:
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 0 | 0 | 0 |
325,570 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/vcs_config.py | vcs_config.GitHubConfig | from typing import Literal
class GitHubConfig(VCSConfig):
vcs: Literal['github'] = 'github'
@property
def clone_url(self) -> str:
return f'https://{self.access_token}@github.com/{self.repo_path}.git' |
class GitHubConfig(VCSConfig):
@property
def clone_url(self) -> str:
pass | 3 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 84 | 6 | 1 | 5 | 4 | 2 | 0 | 4 | 3 | 2 | 1 | 6 | 0 | 1 |
325,571 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/vcs_config.py | vcs_config.GitLabConfig | from typing import Literal
from pydantic import BaseModel, Field
class GitLabConfig(VCSConfig):
vcs: Literal['gitlab'] = 'gitlab'
base_url: str = Field(default='gitlab.com', description='GitLab instance base URL')
@property
def clone_url(self) -> str:
return f'https://gitlab-ci-token:{self.acc... |
class GitLabConfig(VCSConfig):
@property
def clone_url(self) -> str:
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 84 | 10 | 1 | 9 | 5 | 6 | 0 | 5 | 4 | 3 | 1 | 6 | 0 | 1 |
325,572 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/apps/app/deep_next/app/vcs_config.py | vcs_config.VCSConfig | from abc import ABC, abstractmethod
from pydantic import BaseModel, Field
from typing import Literal
class VCSConfig(BaseModel, ABC):
vcs: Literal['github', 'gitlab'] = Field(description='Version control system')
access_token: str = Field(description='Access token for the VCS')
repo_path: str = Field(descr... |
class VCSConfig(BaseModel, ABC):
@property
@abstractmethod
def clone_url(self) -> str:
'''Abstract property for clone URL.'''
pass | 4 | 1 | 2 | 0 | 1 | 1 | 1 | 0.13 | 2 | 1 | 0 | 2 | 1 | 0 | 1 | 83 | 10 | 1 | 8 | 7 | 4 | 1 | 6 | 6 | 4 | 1 | 5 | 0 | 1 |
325,573 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/base.py | version_control_provider.base.BaseComment | from abc import ABC, abstractmethod
class BaseComment(ABC):
@property
@abstractmethod
def body(self) -> str:
"""Returns the body of the comment."""
@abstractmethod
def edit(self, body: str) -> None:
"""Edit the comment."""
@abstractmethod
def author(self) -> str:
... |
class BaseComment(ABC):
@property
@abstractmethod
def body(self) -> str:
'''Returns the body of the comment.'''
pass
@abstractmethod
def edit(self, body: str) -> None:
'''Edit the comment.'''
pass
@abstractmethod
def author(self) -> str:
'''Returns t... | 8 | 3 | 2 | 0 | 1 | 1 | 1 | 0.38 | 1 | 1 | 0 | 2 | 3 | 0 | 3 | 23 | 13 | 2 | 8 | 7 | 0 | 3 | 4 | 4 | 0 | 1 | 4 | 0 | 3 |
325,574 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/base.py | version_control_provider.base.BaseConnector | from abc import ABC, abstractmethod
from enum import Enum
from deep_next.app.config import Label
class BaseConnector(ABC):
@abstractmethod
def list_issues(self, label: str | Enum | None=None) -> list[BaseIssue]:
"""Fetches all issues"""
@abstractmethod
def get_issue(self, issue_no: int) -> Ba... |
class BaseConnector(ABC):
@abstractmethod
def list_issues(self, label: str | Enum | None=None) -> list[BaseIssue]:
'''Fetches all issues'''
pass
@abstractmethod
def get_issue(self, issue_no: int) -> BaseIssue:
'''Fetches a single issue.'''
pass
@abstractmethod
d... | 11 | 5 | 2 | 0 | 1 | 1 | 1 | 0.38 | 1 | 7 | 3 | 2 | 5 | 0 | 5 | 25 | 22 | 4 | 13 | 13 | 0 | 5 | 6 | 6 | 0 | 1 | 4 | 0 | 5 |
325,575 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/base.py | version_control_provider.base.BaseIssue | from datetime import datetime
from deep_next.connectors.version_control_provider.utils import label_to_str
from enum import Enum
from abc import ABC, abstractmethod
class BaseIssue(ABC):
@property
@abstractmethod
def url(self) -> str:
""""""
@property
@abstractmethod
def labels(self) ... |
class BaseIssue(ABC):
@property
@abstractmethod
def url(self) -> str:
''''''
pass
@property
@abstractmethod
def labels(self) -> list[str]:
''''''
pass
@property
@abstractmethod
def no(self) -> int:
''''''
pass
@property
@abstr... | 34 | 9 | 3 | 0 | 2 | 1 | 1 | 0.22 | 1 | 7 | 1 | 2 | 13 | 0 | 14 | 34 | 68 | 13 | 46 | 35 | 6 | 10 | 21 | 16 | 6 | 1 | 4 | 0 | 14 |
325,576 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/base.py | version_control_provider.base.BaseMR | from abc import ABC, abstractmethod
from deep_next.app.config import Label
class BaseMR(ABC):
@property
@abstractmethod
def related_issue(self) -> BaseIssue | None:
"""Returns the issue related to the MR, if any."""
@property
@abstractmethod
def source_branch_name(self) -> str:
... |
class BaseMR(ABC):
@property
@abstractmethod
def related_issue(self) -> BaseIssue | None:
'''Returns the issue related to the MR, if any.'''
pass
@property
@abstractmethod
def source_branch_name(self) -> str:
'''Returns the source branch of the MR.'''
pass
@... | 42 | 16 | 2 | 0 | 1 | 1 | 1 | 0.35 | 1 | 8 | 4 | 2 | 16 | 0 | 16 | 36 | 77 | 15 | 46 | 35 | 0 | 16 | 17 | 17 | 0 | 1 | 4 | 0 | 16 |
325,577 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/base.py | version_control_provider.base.CodeReviewCommentThread | from pydantic import BaseModel
class CodeReviewCommentThread(BaseModel):
thread_id: int
file_path: str
code_lines: str
comments: list[str] |
class CodeReviewCommentThread(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 |
325,578 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/github_vcs.py | version_control_provider.github_vcs.GitHubComment | from github.IssueComment import IssueComment
from deep_next.connectors.version_control_provider.base import BaseComment, BaseConnector, BaseIssue, BaseMR, CodeReviewCommentThread
class GitHubComment(BaseComment):
def __init__(self, comment: IssueComment):
self._comment = comment
@property
def bod... |
class GitHubComment(BaseComment):
def __init__(self, comment: IssueComment):
pass
@property
def body(self) -> str:
pass
def edit(self, body: str) -> None:
pass
@property
def author(self) -> str:
pass | 7 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 4 | 1 | 4 | 27 | 14 | 3 | 11 | 8 | 4 | 0 | 9 | 6 | 4 | 1 | 5 | 0 | 4 |
325,579 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/github_vcs.py | version_control_provider.github_vcs.GitHubConnector | from github.GithubException import UnknownObjectException
from typing import List
import re
from deep_next.app.config import Label
from deep_next.connectors.version_control_provider.utils import label_to_str
from github.Repository import Repository
from github import Github
from loguru import logger
from github.PullReq... |
class GitHubConnector(BaseConnector):
def __init__(self, *_, token: str, repo_name: str):
pass
def list_issues(self, label: str | Enum | None=None) -> List[GitHubIssue]:
pass
def get_issue(self, issue_no: int) -> GitHubIssue:
pass
def _has_label(self, raw_mr: PullRequest, la... | 10 | 3 | 10 | 1 | 8 | 1 | 2 | 0.07 | 1 | 13 | 3 | 0 | 7 | 2 | 8 | 33 | 86 | 14 | 68 | 27 | 50 | 5 | 38 | 18 | 29 | 3 | 5 | 2 | 13 |
325,580 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/github_vcs.py | version_control_provider.github_vcs.GitHubIssue | from deep_next.connectors.version_control_provider.base import BaseComment, BaseConnector, BaseIssue, BaseMR, CodeReviewCommentThread
from deep_next.connectors.version_control_provider.utils import label_to_str
from github.IssueComment import IssueComment
from loguru import logger
from deep_next.app.common import forma... |
class GitHubIssue(BaseIssue):
def __init__(self, issue: Issue):
pass
@property
def url(self) -> str:
pass
@property
def labels(self) -> list[str]:
pass
@property
def no(self) -> int:
pass
@property
def title(self) -> str:
pass
@property
... | 18 | 2 | 4 | 0 | 3 | 0 | 1 | 0.07 | 1 | 8 | 1 | 0 | 11 | 2 | 11 | 45 | 59 | 12 | 45 | 26 | 21 | 3 | 33 | 14 | 21 | 2 | 5 | 1 | 14 |
325,581 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/github_vcs.py | version_control_provider.github_vcs.GitHubMR | from collections import defaultdict
from deep_next.connectors.version_control_provider.utils import label_to_str
from deep_next.app.common import format_comment_with_header
from deep_next.connectors.version_control_provider.base import BaseComment, BaseConnector, BaseIssue, BaseMR, CodeReviewCommentThread
from deep_nex... |
class GitHubMR(BaseMR):
def __init__(self, pr: PullRequest, related_issue: GitHubIssue):
pass
@property
def related_issue(self) -> GitHubIssue:
'''Returns the related issue if exists.'''
pass
@property
def source_branch_name(self) -> str:
pass
@property
def ... | 28 | 10 | 6 | 1 | 5 | 1 | 1 | 0.11 | 1 | 9 | 4 | 0 | 17 | 2 | 17 | 53 | 126 | 27 | 89 | 45 | 57 | 10 | 63 | 31 | 45 | 3 | 5 | 2 | 23 |
325,582 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/gitlab_vcs.py | version_control_provider.gitlab_vcs.GitLabComment | from deep_next.connectors.version_control_provider.base import BaseComment, BaseConnector, BaseIssue, BaseMR
from gitlab.v4.objects.discussions import ProjectIssueDiscussion
class GitLabComment(BaseComment):
def __init__(self, comment: ProjectIssueDiscussion):
self._comment = comment
@property
de... |
class GitLabComment(BaseComment):
def __init__(self, comment: ProjectIssueDiscussion):
pass
@property
def body(self) -> str:
pass
def edit(self, body: str) -> None:
pass
@property
def author(self) -> str:
pass | 7 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 | 1 | 4 | 27 | 14 | 3 | 11 | 8 | 4 | 0 | 9 | 6 | 4 | 1 | 5 | 0 | 4 |
325,583 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/gitlab_vcs.py | version_control_provider.gitlab_vcs.GitLabConnector | from loguru import logger
from enum import Enum
from gitlab.v4.objects.issues import ProjectIssue
from deep_next.connectors.version_control_provider.utils import label_to_str
from gitlab.v4.objects.merge_requests import ProjectMergeRequest
import gitlab
from deep_next.connectors.version_control_provider.base import Bas... |
class GitLabConnector(BaseConnector):
def __init__(self, *_, access_token: str, repo_name: str, base_url: str):
'''Create connection with GitLab project.'''
pass
def list_issues(self, label: str | Enum | None=None) -> list[GitLabIssue]:
'''Fetches all issues'''
pass
def g... | 7 | 6 | 12 | 1 | 10 | 2 | 2 | 0.17 | 1 | 8 | 4 | 0 | 6 | 4 | 6 | 31 | 78 | 13 | 59 | 28 | 45 | 10 | 38 | 18 | 31 | 3 | 5 | 2 | 13 |
325,584 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/gitlab_vcs.py | version_control_provider.gitlab_vcs.GitLabConnectorError | class GitLabConnectorError(Exception):
"""Generic GitLab connector error.""" | class GitLabConnectorError(Exception):
'''Generic GitLab connector error.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
325,585 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/gitlab_vcs.py | version_control_provider.gitlab_vcs.GitLabIssue | from deep_next.app.common import format_comment_with_header
from gitlab.v4.objects.discussions import ProjectIssueDiscussion
from enum import Enum
from deep_next.connectors.version_control_provider.utils import label_to_str
from loguru import logger
from deep_next.connectors.version_control_provider.base import BaseCom... |
class GitLabIssue(BaseIssue):
def __init__(self, issue: ProjectIssue):
pass
@property
def url(self) -> str:
pass
@property
def labels(self) -> list[str]:
pass
@property
def no(self) -> int:
pass
@property
def title(self) -> str:
pass
@pro... | 18 | 2 | 5 | 1 | 4 | 0 | 1 | 0.05 | 1 | 5 | 0 | 0 | 11 | 2 | 11 | 45 | 76 | 18 | 56 | 31 | 32 | 3 | 42 | 19 | 30 | 4 | 5 | 1 | 15 |
325,586 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/gitlab_vcs.py | version_control_provider.gitlab_vcs.GitLabMR | from deep_next.app.config import Label
from gitlab.v4.objects.merge_requests import ProjectMergeRequest
from deep_next.connectors.version_control_provider.base import BaseComment, BaseConnector, BaseIssue, BaseMR
from deep_next.connectors.version_control_provider.utils import label_to_str
from deep_next.app.common impo... |
class GitLabMR(BaseMR):
def __init__(self, mr: ProjectMergeRequest):
pass
@property
def source_branch_name(self) -> str:
pass
@property
def target_branch_name(self) -> str:
pass
@property
def url(self) -> str:
pass
@property
def no(self) -> int:
... | 24 | 7 | 5 | 1 | 4 | 1 | 1 | 0.17 | 1 | 7 | 3 | 0 | 14 | 1 | 14 | 50 | 89 | 20 | 59 | 32 | 33 | 10 | 47 | 21 | 32 | 3 | 5 | 2 | 18 |
325,587 | stxnext/deep-next | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/stxnext_deep-next/libs/connectors/deep_next/connectors/version_control_provider/gitlab_vcs.py | version_control_provider.gitlab_vcs.ResourceNotFoundError | class ResourceNotFoundError(GitLabConnectorError):
"""Resource not found error.""" | class ResourceNotFoundError(GitLabConnectorError):
'''Resource not found error.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
325,588 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/commands/download.py | hcli.commands.download.BackNavigationResult | class BackNavigationResult:
"""Special result class to indicate backspace navigation."""
pass | class BackNavigationResult:
'''Special result class to indicate backspace navigation.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
325,589 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/env.py | hcli.env.ENV | import os
from . import __version__
class ENV:
"""Environment configuration mirroring the Deno version."""
HCLI_API_KEY: str | None = os.getenv('HCLI_API_KEY')
HCLI_DEBUG: bool = os.getenv('HCLI_DEBUG', '').lower() in ('true', 'yes', 'on', '1')
HCLI_API_URL: str = os.getenv('HCLI_API_URL', 'https://api... |
class ENV:
'''Environment configuration mirroring the Deno version.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 35 | 6 | 26 | 23 | 25 | 3 | 23 | 23 | 22 | 0 | 0 | 0 | 0 |
325,590 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/asset.py | hcli.lib.api.asset.Asset | from pydantic import BaseModel
class Asset(BaseModel):
email: str | None = None
filename: str
size: int = 0
key: str
code: str | None = None
created_at: str | None = None
expires_at: str | None = None
url: str | None = None
version: int = 0
metadata: dict | None = None |
class Asset(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 11 | 0 | 11 | 9 | 10 | 0 | 11 | 9 | 10 | 0 | 5 | 0 | 0 |
325,591 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/asset.py | hcli.lib.api.asset.AssetAPI | import hashlib
from .common import get_api_client
import httpx
from pathlib import Path
from hcli.env import ENV
class AssetAPI:
"""File sharing API client."""
async def get_bucket(self, bucket: str):
client = await get_api_client()
data = await client.get_json(f'/api/assets/buckets/{bucket}')... |
class AssetAPI:
'''File sharing API client.'''
async def get_bucket(self, bucket: str):
pass
async def upload_asset(self, bucket: str, file_path: str, allowed_segments: list[str] | None=None, allowed_emails: list[str] | None=None, metadata: dict | None=None, force: bool=False, code: str | None=None) ... | 9 | 7 | 14 | 1 | 11 | 1 | 2 | 0.13 | 0 | 13 | 7 | 0 | 8 | 0 | 8 | 8 | 119 | 18 | 89 | 45 | 71 | 12 | 63 | 34 | 54 | 7 | 0 | 2 | 17 |
325,592 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/asset.py | hcli.lib.api.asset.Bucket | from pydantic import BaseModel
class Bucket(BaseModel):
filename: str
metadata: Metadata
requiredMetadata: dict[str, RequiredField] |
class Bucket(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 |
325,593 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/asset.py | hcli.lib.api.asset.Metadata | from pydantic import BaseModel
class Metadata(BaseModel):
name: str |
class Metadata(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
325,594 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/asset.py | hcli.lib.api.asset.PagedAsset | from pydantic import BaseModel
class PagedAsset(BaseModel):
"""Paged response wrapper."""
offset: int
limit: int
total: int
items: list[Asset] |
class PagedAsset(BaseModel):
'''Paged response wrapper.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 7 | 1 | 5 | 1 | 4 | 1 | 5 | 1 | 4 | 0 | 5 | 0 | 0 |
325,595 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/asset.py | hcli.lib.api.asset.PagingFilter | from pydantic import BaseModel
class PagingFilter(BaseModel):
"""Paging filter parameters."""
limit: int | None = 1000
offset: int | None = 0 |
class PagingFilter(BaseModel):
'''Paging filter parameters.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 5 | 1 | 3 | 3 | 2 | 1 | 3 | 3 | 2 | 0 | 5 | 0 | 0 |
325,596 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/asset.py | hcli.lib.api.asset.RequiredField | from pydantic import BaseModel
class RequiredField(BaseModel):
description: str
example: str |
class RequiredField(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 |
325,597 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/asset.py | hcli.lib.api.asset.TreeNode | from pydantic import BaseModel
class TreeNode(BaseModel):
name: str
type: str = 'file'
children: 'list[TreeNode] | None' = None
asset: Asset |
class TreeNode(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 5 | 0 | 5 | 3 | 4 | 0 | 5 | 3 | 4 | 0 | 5 | 0 | 0 |
325,598 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/asset.py | hcli.lib.api.asset.UploadResponse | from pydantic import BaseModel
class UploadResponse(BaseModel):
"""Upload response."""
bucket: str
key: str
version: int
code: str
url: str
download_url: str |
class UploadResponse(BaseModel):
'''Upload response.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 9 | 1 | 7 | 1 | 6 | 1 | 7 | 1 | 6 | 0 | 5 | 0 | 0 |
325,599 | HexRaysSA/ida-hcli | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/HexRaysSA_ida-hcli/src/hcli/lib/api/auth.py | hcli.lib.api.auth.AuthAPI | from .common import get_api_client
class AuthAPI:
"""Authentication API client."""
async def whoami(self) -> AuthUser:
"""Get current user information."""
client = await get_api_client()
data = await client.get_json('/api/whoami')
return AuthUser(**data) |
class AuthAPI:
'''Authentication API client.'''
async def whoami(self) -> AuthUser:
'''Get current user information.'''
pass | 2 | 2 | 5 | 0 | 4 | 1 | 1 | 0.4 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 8 | 1 | 5 | 4 | 3 | 2 | 5 | 4 | 3 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.