Extact_code can detect single-line code now#2
Merged
Merged
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.
|
Contributor
|
Could you add test to cover the new code? |
pcdeadeasy
reviewed
Sep 19, 2023
pcdeadeasy
reviewed
Sep 19, 2023
pcdeadeasy
left a comment
Contributor
There was a problem hiding this comment.
Please address the suggestion to add the comment
Contributor
Author
|
sonichi
reviewed
Sep 20, 2023
Closed
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Dec 27, 2023
#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 <gagb@users.noreply.github.com> Co-authored-by: Chi Wang <wang.chi@microsoft.com>
3 tasks
whiskyboy
pushed a commit
to whiskyboy/autogen
that referenced
this pull request
Apr 17, 2024
* 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 <wang.chi@microsoft.com>
whiskyboy
pushed a commit
to whiskyboy/autogen
that referenced
this pull request
Apr 17, 2024
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 <gagb@users.noreply.github.com> Co-authored-by: Chi Wang <wang.chi@microsoft.com>
randombet
pushed a commit
to randombet/autogen
that referenced
this pull request
Sep 26, 2024
…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 <bnujli@gmail.com> Co-authored-by: Qingyun Wu <qingyun0327@gmail.com> Co-authored-by: Chi Wang <4250911+sonichi@users.noreply.github.com>
jackgerrits
pushed a commit
that referenced
this pull request
Oct 2, 2024
Skills refactor, CLI calls local kernel
jackgerrits
pushed a commit
that referenced
this pull request
Oct 2, 2024
jackgerrits
added a commit
that referenced
this pull request
Oct 2, 2024
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.pyOr, you can write
Otherwise, do
source download.shfor 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