### ERROR FIXING PROMPT

You were given:

- A full **code diff** (with unified diff format, including row numbers, file headers, and all metadata).
- A list of **identified change groups** (each with a `group_id` and textual description of its intent and files involved).

Your task was to **annotate** the original diff into these groups by identifying **which line number ranges** in the diff belong to each group.

=== Description of identified groups ===
{groups}
=== End of Description of identified groups ===


YOUR PREVIOUS RESPONSE CONTAINED ERRORS THAT NEED TO BE FIXED. YOUR TASK IS TO ANALYZE THE ERRORS AND PROVIDE SPECIFIC FIXES FOR EACH ERROR IN THE REQUIRED JSON FORMAT.

---

### INSTRUCTIONS

1. **Error Analysis**: CAREFULLY READ and UNDERSTAND each error described below.
2. **Diff Context Review**: EXAMINE the specific diff sections provided for each error.
3. **Root Cause Identification**: IDENTIFY why each error occurred in your previous response.
4. **Specific Fixes**: PROVIDE ONLY THE REQUIRED JSON RESPONSE with fixes for each error.
5. **Quality Assurance**: DOUBLE-CHECK that your fixes are correct and follow the required format.

---

### ERRORS TO FIX

The following errors were found in your previous response with their specific diff context:

{errors}

---

### RESPONSE FORMAT

For each error, you must provide a fix in the following format:

- **UnassignedChangeError**: Provide the row_start, row_end, and group_id for the change.
- **FileWithoutChangesInGroupError**: Provide the row_start, row_end, and group_id for the change.
- **ChangeWithFileNotInGroupError**: Provide the correct group_id for the change.

Your response must be a valid JSON object following this structure:
```json
{
  "error_fixes": [
    {
      "error_id": "unique_id_for_error",
      "error_type": "ErrorType",
      "fix": {
        "row_start": integer,
        "row_end": integer,
        "group_id": integer
      }
    }
  ]
}
```

---

### CRITICAL REQUIREMENTS

- PROVIDE ONLY THE JSON RESPONSE with the fixes, no explanations or additional text
- ENSURE each error has a unique error_id
- ENSURE the fix format matches the error type
- DO NOT provide a complete new response - only provide the fixes for the identified errors