MCPcopy Create free account

hub / github.com/IQuestLab/IQuest-Coder-V1 / functions

Functions543 in github.com/IQuestLab/IQuest-Coder-V1

↓ 132 callersMethodget
(cls, name)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/agent/commands.py:55
↓ 63 callersMethodrun
General method to execute code or commands in the container, with a timeout. :param code: The code or command to execute. :p
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:1510
↓ 26 callersMethodfrom_string
Parses a string of the form: <function=FUNCTION_NAME> <parameter=KEY>VALUE</parameter> ... </fun
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/action/action.py:27
↓ 23 callersMethodrun
( self, env: "RepoEnv", # env: RepoEnv use_fn_calling: bool = True, # step li
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/agent/agent.py:822
↓ 14 callersMethodget_patch
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/diff_classes.py:12
↓ 10 callersMethod_count_tokens
Counts the tokens for a list of messages using the litellm library. Adjust as needed depending on the model and library.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/agent/agent.py:149
↓ 10 callersMethodcopy_to_container
()
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:1616
↓ 9 callersMethodclose
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:2242
↓ 9 callersMethodget_patch
Get the diff of the current state of the repository.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:1766
↓ 9 callersMethodrun
(self, test)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/unittest_custom_runner.py:134
↓ 9 callersMethodrun
( self, command: str, path_str: str, file_text: str = None, view_range
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/file_editor.py:152
↓ 8 callersMethodadded_entities
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/diff_classes.py:248
↓ 8 callersFunctionfilter_fn
( commit_datas: list[ParsedCommit], custom_filter_fn: Callable[[ParsedCommit], bool], load_run_par
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/repo_analysis/load_repo_commits.py:24
↓ 8 callersMethodget_file_name_list
( self, test_file: bool = False, exclude_extensions=[ "rst", "
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/diff_classes.py:342
↓ 8 callersMethodis_good_exec
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/repo_analysis/execution_result_analysis.py:60
↓ 8 callersMethodmodified_entities
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/diff_classes.py:256
↓ 8 callersFunctionnormalize_paths
Normalize file paths by removing leading slashes or other differences.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/utils/utils.py:311
↓ 7 callersMethodclose
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/environment/env.py:238
↓ 7 callersFunctionlog_and_run
Logs the command to console and also appends it to logfile_path, then runs it.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/get_bokeh_install_commands.py:74
↓ 7 callersFunctionsetup_logging
(name="r2e", level=logging.WARNING, log_file=None, console=True)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/logging.py:8
↓ 6 callersMethodapply_patch
(self, patch: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:1787
↓ 6 callersMethodedited_entities
( self, allow_test_file=True, ignore_statements=True )
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/diff_classes.py:560
↓ 6 callersFunctionget_logger
Returns a logger configured with RichHandler, ensuring that any existing handlers on this logger are removed first. :param name: Name of
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/utils/log.py:5
↓ 6 callersFunctionlog_and_run
Logs the command to console and also appends it to logfile_path, then runs it.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/get_pandas_install_commands.py:139
↓ 6 callersFunctionsafe_print
(x)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/file_editor.py:72
↓ 6 callersFunctionsafe_print
(x)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/str_replace_editor.py:75
↓ 6 callersFunctionsafe_print
(x)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/r2egym/file_editor.py:72
↓ 5 callersMethod_calculate_reward
(self, get_test_output=False, timeout: int = 300)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:2224
↓ 5 callersMethodrun
( self, command: str, path_str: str, file_text: str = None, view_range
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/r2egym/file_editor.py:152
↓ 5 callersFunctionswebench_parse
(ds, test_output)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/trajectory/swebench_utils.py:84
↓ 5 callersMethodto_bashcmd
Converts this action into a Bash command string. Examples: If function_name == "execute_bash" and parameters = {
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/action/action.py:113
↓ 5 callersMethodto_xml_string
Returns an XML-like string representation of this action. Example: <function=file_editor> <parameter=command>v
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/action/action.py:76
↓ 4 callersMethod_execute_with_retry
( self, func: Callable[[], T], *, op_name: str, max_attempts: Optional
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:419
↓ 4 callersMethod_make_output
Mimics cat -n style numbering, plus maybe_truncate to avoid huge outputs.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/file_editor.py:588
↓ 4 callersMethod_make_output
Mimics cat -n style numbering, plus maybe_truncate to avoid huge outputs.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/str_replace_editor.py:473
↓ 4 callersMethod_make_output
Mimics cat -n style numbering, plus maybe_truncate to avoid huge outputs.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/r2egym/file_editor.py:585
↓ 4 callersMethod_test_id
(self, test)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/unittest_custom_runner.py:121
↓ 4 callersMethod_test_id
(self, test)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/tornado_unittest_runner.py:121
↓ 4 callersFunctionbuild_code_structure
Constructs a CodeStructure object from the given source code. Returns: A CodeStructure object.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/entity_utils.py:149
↓ 4 callersFunctiondecolor_dict_keys
(key)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/repo_analysis/execution_log_parser.py:68
↓ 4 callersMethodfrom_yaml
(cls, yaml_path: Path)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/agent/agent.py:48
↓ 4 callersMethodget_hunk_entity_set
( self, entity_property_name: str, allow_test_file: bool, ignore_statements: bool )
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/diff_classes.py:548
↓ 4 callersMethodget_num_lines_edited
( self, test_file: bool = True, non_test_file: bool = True, include_files: lis
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/diff_classes.py:468
↓ 4 callersFunctionget_prompt
Builds a synthetic issue for the given commit and execution result. It provides LLM with - commit hash - commit message
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/repo_analysis/build_syn_issue.py:125
↓ 4 callersMethodload_from_model_dump_json
(cls, json_string: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/trajectory/trajectory.py:110
↓ 4 callersFunctionparse_log_fn
(repo_name: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/repo_analysis/execution_log_parser.py:38
↓ 4 callersMethodread_path
(path: Path)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/file_editor.py:199
↓ 4 callersMethodread_path
(path: Path)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/r2egym/file_editor.py:199
↓ 4 callersMethodrun_with_retry
(self, code: str, timeout: int = CMD_TIMEOUT, args: str = "", workdir=None, type: str = None)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:1496
↓ 3 callersMethod_lint_check
(self, new_content: str, file_path: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/file_editor.py:612
↓ 3 callersMethod_lint_check
(self, new_content: str, file_path: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/str_replace_editor.py:497
↓ 3 callersMethod_lint_check
(self, new_content: str, file_path: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/r2egym/file_editor.py:609
↓ 3 callersMethodadd_commands
Adds command files to the environment by parsing them, copying them to the Docker container, and making them executable or sourced.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/environment/env.py:79
↓ 3 callersMethodedited_entities
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/diff_classes.py:98
↓ 3 callersFunctionfetch_docker_tags
Fetch all tags for a Docker image from Docker Hub Args: image_name: Name of the Docker image (e.g., 'ubuntu', 'nginx') limit
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/docker_bash_utils/docker_list_tags.py:8
↓ 3 callersFunctionload_commits
(repo_analysis_args: RepoAnalysisLoadArgs)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/repo_analysis/load_repo_commits.py:85
↓ 3 callersFunctionmaybe_truncate
(content: str, truncate_after: Optional[int] = MAX_RESPONSE_LEN)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/file_editor.py:79
↓ 3 callersFunctionmaybe_truncate
(content: str, truncate_after: Optional[int] = MAX_RESPONSE_LEN)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/str_replace_editor.py:82
↓ 3 callersFunctionmaybe_truncate
(content: str, truncate_after: Optional[int] = MAX_RESPONSE_LEN)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/r2egym/file_editor.py:79
↓ 3 callersFunctionpprint_entities
Pretty-prints the given list of entities.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/entity_utils.py:174
↓ 3 callersMethodrun
( self, command: str, path_str: str, file_text: str = None, view_range
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/str_replace_editor.py:151
↓ 3 callersFunctionrun_in_venv
(cmd)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/get_pandas_install_commands.py:171
↓ 3 callersFunctionrun_in_venv
(cmd, **kwargs)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/get_bokeh_install_commands.py:128
↓ 3 callersFunctionrun_subprocess_shell
( command: str, cwd: str, logger: Logger | None = None, capture_output=True, timeout: int
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/bash_utils.py:6
↓ 3 callersMethodstop_container
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:873
↓ 3 callersMethodwrite_file
(self, path: Path, content: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/file_editor.py:582
↓ 3 callersMethodwrite_file
(self, path: Path, content: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/str_replace_editor.py:467
↓ 3 callersMethodwrite_file
(self, path: Path, content: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/r2egym/file_editor.py:579
↓ 2 callersMethod_print_traceback
Helper to print the traceback like pytest does.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/unittest_custom_runner.py:113
↓ 2 callersMethod_print_traceback
Helper to print the traceback like pytest does.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/tornado_unittest_runner.py:113
↓ 2 callersMethodanalyze_commit
Analyze the commit by checking out the 'before' and 'after' versions of each file
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/commit_to_ast.py:27
↓ 2 callersMethodcreate
(self, path: Path, file_text: str)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/file_editor.py:447
↓ 2 callersMethodcreate_swebench_submission
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/trajectory/trajectory.py:559
↓ 2 callersMethoddemux_run_tests
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:1753
↓ 2 callersMethodget_entity_by_name_type
(self, name: str, type: EntityType)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/entity_utils.py:63
↓ 2 callersFunctionget_files
()
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/repo_analysis/recollect_issues.py:13
↓ 2 callersFunctionget_logs_eval
Retrieve evaluation results for a task instance from its corresponding log file Args: log_fp (str): path to log file Returns:
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/trajectory/swebench_utils.py:25
↓ 2 callersMethodget_logs_eval
Retrieve evaluation results for a task instance from its corresponding log file Args: log_fp (str): path to log file
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:1813
↓ 2 callersFunctionget_parsed_commit
Retrieves the ParsedCommit object either from a local JSON file or directly from the Docker image. Args: docker_image (str): The Doc
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/utils/utils.py:327
↓ 2 callersFunctionget_repo_commit_from_image_name
Get the repository and commit from a docker image ID.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/swesmith/utils.py:56
↓ 2 callersFunctionis_small_commit
(commit: ParsedCommit, args: RepoAnalysisLoadArgs)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/repo_analysis/commit_data_heuristics.py:11
↓ 2 callersMethodjson_summary_dict
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/entity_utils.py:48
↓ 2 callersMethodnum_edited_entities
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/diff_classes.py:104
↓ 2 callersMethodparse_commit
Parse a diff message and return a ParsedCommit object
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/parse_diff.py:198
↓ 2 callersMethodread_file
(self, path: Path)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/file_editor.py:576
↓ 2 callersMethodread_file
(self, path: Path)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/str_replace_editor.py:461
↓ 2 callersMethodread_file
(self, path: Path)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/r2egym/file_editor.py:573
↓ 2 callersFunctionread_jsonl
Reads a JSONL file and returns the data as a list of dictionaries.
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/utils/utils.py:55
↓ 2 callersMethodread_path
(path: Path)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/tools/str_replace_editor.py:197
↓ 2 callersFunctionrun_test
(temp_repo_dir: Path, args: RepoAnalysisTestExtractArgs)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/repo_analysis/repo_testextract.py:62
↓ 2 callersMethodrun_tests
(self, timeout: int = 300)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:1747
↓ 2 callersFunctionsmart_sparse_search
Iterate over Python x Jinja2 x NumPy x Pandas x Tornado x Pillow x Contourpy, looking for the first successful build. Return a dict with
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/install_utils/get_bokeh_install_commands.py:224
↓ 2 callersMethodstart_container
( self, docker_image: str, command: str, ctr_name: str, **docker_kwargs )
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:736
↓ 2 callersMethodto_dict
Returns a JSON-like dictionary representation of this action. Example: { "function": "file_editor",
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/action/action.py:97
↓ 2 callersFunctionunparse_entity_without_comment_docs
(entity: Entity | None)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/commit_models/entity_utils.py:212
↓ 1 callersMethodListSandboxImages
(self)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:629
↓ 1 callersMethod_calculate_reward_r2e
(self, get_test_output=False, timeout: int = 300)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:2187
↓ 1 callersMethod_calculate_reward_swebench
(self, get_test_output=False, timeout: int = 300)
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:2058
↓ 1 callersMethod_calculate_reward_swebench_live
Calculate reward for swebench_live tasks Modified from _calculate_reward_swebench for live tasks
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:2078
↓ 1 callersMethod_calculate_reward_swerebench
Calculate reward for swerebench tasks Modified from _calculate_reward_swerebench for swerebench tasks
IQuest-Coder-Eval/SWE-Verified/R2E-Gym/src/r2egym/agenthub/runtime/docker.py:2133
next →1–100 of 543, ranked by callers