-
Notifications
You must be signed in to change notification settings - Fork 0
Cursor/halvix code review proposal 16d5 #5
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
Merged
Merged
Conversation
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
Co-authored-by: pierre.juillard <[email protected]>
This commit introduces the new TOTAL2b index calculation methodology, which offers a simpler and more predictable approach to index composition. The documentation has been significantly updated to detail both TOTAL2 and TOTAL2b, including their differences, configuration, and calculation algorithms.
Key changes include:
- **Introduction of TOTAL2b:** A new calculation method with a freeze period for new coins and price scaling instead of iterative capping.
- **Documentation Overhaul:** Comprehensive updates to `docs/TOTAL2_CALCULATION.md` explaining both methodologies, their parameters, and nuances.
- **Code Refactoring:**
- Separation of base processing logic into `processor_base.py`.
- Dedicated modules for `processor_total2.py` (legacy) and `processor_total2b.py` (new).
- Introduction of a factory function `get_processor` in `data/__init__.py` and `data/processor.py` for selecting the appropriate processor.
- **Testing Enhancements:** Added tests for the new `Total2bProcessor` and the `get_processor` factory function.
- **Configuration Updates:** Added new configuration parameters specific to TOTAL2b (e.g., `FREEZE_PERIOD_DAYS`, `MIN_COINS_FOR_SCALING`).
- **CLI Option:** Added `--index-type` option to `main.py` to select between `total2` and `total2b`.
This refactoring aims to improve code clarity, maintainability, and provide users with a more robust and understandable index calculation.
Co-authored-by: pierre.juillard <[email protected]>
Co-authored-by: pierre.juillard <[email protected]>
Co-authored-by: pierre.juillard <[email protected]>
Co-authored-by: pierre.juillard <[email protected]>
Co-authored-by: pierre.juillard <[email protected]>
Co-authored-by: pierre.juillard <[email protected]>
Co-authored-by: pierre.juillard <[email protected]>
Co-authored-by: pierre.juillard <[email protected]>
Co-authored-by: pierre.juillard <[email protected]>
Co-authored-by: pierre.juillard <[email protected]>
This commit refactors the TOTAL2 processor to implement actual price capping for new coins entering the index during their warmup period. It also updates documentation and configuration to reflect these changes. Co-authored-by: pierre.juillard <[email protected]>
|
You have run out of free Bugbot PR reviews for this billing cycle. This will reset on January 11. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
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.
No description provided.