-
Notifications
You must be signed in to change notification settings - Fork 0
Move to flac #72
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
base: base-sha/a5336ef9e38cf2b71edeb9cc6b0012fb56d6087d
Are you sure you want to change the base?
Move to flac #72
Conversation
I'd rather have Opus but Apple are knuckheads
This is a benchmark review for experiment This pull request was cloned from Experiment configurationreview_config:
# User configuration for the review
# - benchmark - use the user config from the benchmark reviews
# - <value> - use the value directly
user_config:
enable_ai_review: true
enable_rule_comments: false
enable_complexity_comments: benchmark
enable_docstring_comments: benchmark
enable_security_comments: benchmark
enable_tests_comments: benchmark
enable_comment_suggestions: benchmark
enable_approvals: true
ai_review_config:
# The model responses to use for the experiment
# - benchmark - use the model responses from the benchmark reviews
# - llm - call the language model to generate responses
model_responses:
comments_model: benchmark
comment_validation_model: benchmark
comment_suggestion_model: benchmark
complexity_model: benchmark
docstrings_model: benchmark
security_model: benchmark
tests_model: benchmark
# The pull request dataset to run the experiment on
pull_request_dataset:
- https://github.com/albumentations-team/albumentations/pull/1679
- https://github.com/gdsfactory/kfactory/pull/301
- https://github.com/gdsfactory/kfactory/pull/300
- https://github.com/jquagga/ttt/pull/70
- https://github.com/gdsfactory/kfactory/pull/298
- https://github.com/gdsfactory/gplugins/pull/385
- https://github.com/shreejitverma/MScFE690-Capstone/pull/7
- https://github.com/gdsfactory/gdsfactory/pull/2694
- https://github.com/yelinaung/advent_of_code_2023/pull/8
- https://github.com/fairdataihub/fairdataihub.org/pull/620
- https://github.com/jquagga/ttt/pull/75
- https://github.com/jquagga/ttt/pull/77
- https://github.com/aboutmydreams/aiis.read/pull/16
- https://github.com/usama-maxenius/image-editor/pull/71
- https://github.com/okisdev/ChatChat/pull/322
- https://github.com/okisdev/ChatChat/pull/323
- https://github.com/iphysresearch/Eryn/pull/1
- https://github.com/W-zrd/unishare_mobile/pull/9
- https://github.com/wassupluke/recipe-emailer/pull/24
- https://github.com/jquagga/ttt/pull/79
- https://github.com/Remi-Gau/nilearn/pull/50
- https://github.com/gdsfactory/gdsfactory/pull/2697
- https://github.com/0ussamaBernou/my-portfolio/pull/8
- https://github.com/kloudlite/web/pull/195
- https://github.com/ElectronicBabylonianLiterature/ebl-api/pull/546
- https://github.com/okisdev/ChatChat/pull/319
- https://github.com/strawberry-graphql/strawberry/pull/3469
- https://github.com/ShiroePL/EasternTalesShelf/pull/44
- https://github.com/jquagga/ttt/pull/78
- https://github.com/W-zrd/unishare_mobile/pull/10
- https://github.com/erxes/erxes/pull/5157
- https://github.com/jquagga/ttt/pull/67
- https://github.com/jquagga/ttt/pull/76
- https://github.com/jkool702/openwrt/pull/41
- https://github.com/jquagga/ttt/pull/73
- https://github.com/W-zrd/unishare_mobile/pull/8
- https://github.com/UCL/dxss/pull/63
- https://github.com/shreejitverma/MScFE690-Capstone/pull/6
- https://github.com/DevCycleHQ/go-server-sdk/pull/248
- https://github.com/Quarticai/graphene-django-extras/pull/104
- https://github.com/wassupluke/recipe-emailer/pull/29
- https://github.com/erxes/erxes/pull/5158
- https://github.com/0ussamaBernou/my-portfolio/pull/6
- https://github.com/2lambda123/kwenta/pull/50
- https://github.com/dciborow/action-pylint/pull/14
- https://github.com/ShiroePL/EasternTalesShelf/pull/45
- https://github.com/W-zrd/unishare_mobile/pull/6
- https://github.com/gdsfactory/gdsfactory/pull/2696
- https://github.com/megasanjay/scholar-stack-mvp/pull/159
- https://github.com/W-zrd/unishare_mobile/pull/7
review_comment_labels:
- label: correct
question: Is this comment correct?
- label: helpful
question: Is this comment helpful?
- label: comment-type
question: Is the comment type correct?
- label: comment-area
question: Is the comment area correct?
- label: llm-test
question: Should this comment become an LLM test?
# Benchmark reviews generated by running
# python -m scripts.experiment benchmark <experiment_name>
benchmark_reviews: []
|
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.
Hey @sourcery-ai-experiments-bot - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Docstrings: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
@@ -224,7 +224,7 @@ def audio_notification(audiofile, apobj, body, title): | |||
Examples: | |||
audio_notification(audiofile, apobj, body, title) | |||
""" | |||
opusfile = Path(audiofile).with_suffix(".opus") | |||
flacfile = Path(audiofile).with_suffix(".flac") |
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.
suggestion (edge_case_not_handled): Consider verifying the existence of the audio file before conversion.
Adding a check to ensure the audio file exists before attempting to convert it can prevent runtime errors if the file is missing.
flacfile = Path(audiofile).with_suffix(".flac") | |
from pathlib import Path | |
audiofile = "example_audio" | |
flacfile = Path(audiofile).with_suffix(".flac") | |
if flacfile.exists(): | |
# Proceed with the existing code to handle the file | |
pass | |
else: | |
print(f"Error: The file {flacfile} does not exist.") |
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.
Is this comment correct?
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.
Is this comment helpful?
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.
Is the comment type correct?
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.
Is the comment area correct?
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.
Should this comment become an LLM test?
# Remove opusfile; audiofile and json unlinked later | ||
Path.unlink(opusfile) | ||
# Remove flacfile; audiofile and json unlinked later | ||
Path.unlink(flacfile) |
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.
suggestion (edge_case_not_handled): Consider handling potential exceptions when unlinking the file.
Using a try-except block around the file deletion could prevent unhandled exceptions if the file does not exist or is locked, enhancing the robustness of the function.
Path.unlink(flacfile) | |
try: | |
Path.unlink(flacfile) | |
except FileNotFoundError: | |
pass |
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.
Is this comment correct?
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.
Is this comment helpful?
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.
Is the comment type correct?
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.
Is the comment area correct?
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.
Should this comment become an LLM test?
No description provided.