VIP 👤
🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links 🔌 API & Routers
Продвинутый

Legacy Code Refactoring and Modernization

#refactoring #code-review #optimization #documentation

Analyze and refactor a legacy codebase to modern standards, fixing smells and adding documentation.

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.