-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Extact_code can detect single-line code now #2
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2 +/- ##
===========================================
+ Coverage 34.22% 67.62% +33.39%
===========================================
Files 17 17
Lines 1911 1921 +10
Branches 416 453 +37
===========================================
+ Hits 654 1299 +645
+ Misses 1207 516 -691
- Partials 50 106 +56
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Could you add test to cover the new code? |
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.
Please address the suggestion to add the comment
|
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.
Looks good to me.
#925) * Filter out candidates with the same name but different instructions, file IDs, and function names * polish * improve log * improving log * improve log * Improve function signature (#2) * try to fix ci * try to fix ci --------- Co-authored-by: gagb <[email protected]> Co-authored-by: Chi Wang <[email protected]>
* Extact_code can detect single-line code now * Add comments for RE * Add test case and adjust UNKNOWN behavior * Remove tmp test files * Update autogen/code_utils.py --------- Co-authored-by: Chi Wang <[email protected]>
microsoft#925) * Filter out candidates with the same name but different instructions, file IDs, and function names * polish * improve log * improving log * improve log * Improve function signature (microsoft#2) * try to fix ci * try to fix ci --------- Co-authored-by: gagb <[email protected]> Co-authored-by: Chi Wang <[email protected]>
…sted chat (speaker_selection_method='auto') (microsoft#2) * Initial commit with ability to add transforms to GroupChat * Added tests * Tidy up * Tidy up of variable names and commented out test * Tidy up comment * Update import to relative * Added documentation topic for transform messages for speaker selection. * Formatting for test_groupchat.py * Further formatting on test_groupchat.py * Tweak to test * Added Long Context Handling to tag for documentation --------- Co-authored-by: Li Jiang <[email protected]> Co-authored-by: Qingyun Wu <[email protected]> Co-authored-by: Chi Wang <[email protected]>
Skills refactor, CLI calls local kernel
Why are these changes needed?
A parameter is added. Default to False.
When True, it will also detect single-line code.
For instance,
data = """
hello, how are you.
You can run
python main.py
Or, you can write
Otherwise, do
source download.sh
for it.I would also want to extract variable
x
.Is that ok?
"""
extract_code(data, detect_single_line_code=True)
We will get
Related issue number
Checks