Refactor codebase for Trip Advisor Dataset Loader - #48
Merged
Conversation
Updated `new_reviewer` to accept an optional `anomalous_score` and default it to 0, allowing more flexibility during reviewer creation. Modified `add_review` to include an optional `_time` parameter for more precise review tracking. These changes enhance method usability and support for additional data.
These files were removed as they are either outdated, redundant, or no longer necessary for the current functionality of the project. Their removal helps maintain a cleaner and more manageable codebase.
This update modifies various files to reformat code for a maximum line length of 79 characters, as specified in the updated `pyproject.toml`. The changes improve readability and adhere to Python's PEP 8 style guide.
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.
Summary
This pull request consolidates several refactoring changes to improve code quality, readability, and usability across the project:
pyproject.tomlupdated accordingly).run_greedy.pyandtestMinTree.pyto simplify the project structure.new_reviewerandadd_reviewmethods by adding optional parameters (anomalous_scoreand_time, respectively) to accommodate more flexible use cases.Additional Notes
These changes streamline the codebase and enhance its maintainability while preserving current functionality.