Code Review Assistant
Find bugs, security issues and readability problems, then get a fixed version.
Review the following code for bugs, security issues and readability. Reason step by step, list problems by severity, and provide a corrected version with brief explanations. Language: [language]. Code: [paste code]