Refactors code for readability, performance, and maintainability with explanations.
Refactor the following code to improve [refactor_goals].
Language: [language] Framework: [framework] Constraints (do not change): [constraints]
Original code:
[code]
For the refactored version:
Output:
Send to AI
comma-separated
0 / 256
0 / 128
0 / 128
0 / 512
0 / 8192
0 / 128