VIP 👤
🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna 🔌 API & Router AI
Продвинутый

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.