-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic Git options for data interpreter and target file name extraction utilities #1048
Conversation
2. update repo parse and git ops
""" | ||
|
||
# 使用正则表达式匹配所有 “[start of 任意字符.py]” | ||
matches = re.findall(r"\[start of ([^\]]+\.py)\]", codetext) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this function only aim to support parsing Python code? Because of the regex with a '.py' suffix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, currently, it is only available for Python scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
} | ||
) | ||
|
||
def clone_repo(self, repo_name: str, path: str, token: str = None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provide a cp method instead of clone
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add
add cp option
/review |
1 similar comment
/review |
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review 🔍
Code feedback:
|
PR Review 🔍
Code feedback:
|
Features
Add git reset and checkout options, which are helpful in checking files related to specific issues.
Add git clone options to make it easier to clone repositories.
Use EnvManager for local repository management.
Add a basic parser to extract files from code text based on the input from swe-bench.
Feature Docs
Influence
Result
Here is the runtime result (batch) for the default SCIKIT_LEARN_IDS.
Other