Продвинутый
Legacy Code Refactoring and Modernization
Analyze and refactor a legacy codebase to modern standards, fixing smells and adding documentation.
📝 Prompt Inhoud
Analyze the following legacy Python code snippet. Identify code smells, potential security vulnerabilities, and areas for optimization. Refactor the code to follow PEP 8 guidelines, utilize modern Python features (type hinting, f-strings, context managers), and improve performance. Additionally, generate Docstrings for all functions and classes in NumPy style format.