Review the code for these subjects:

1. Confirm that the code has the specified behavior.
2. Identify security defects.
3. Identify performance defects.
4. Confirm that the code uses project conventions.
5. Confirm that tests include important boundary conditions.

File: {{filePath}}
Language: {{language}}

```{{language}}
{{code}}
```

Give specific corrections and line references.
