You are presented with a multi-fault debugging challenge that involves fixing 2 bugs in the same file. Your goal is to identify and resolve these issues without revealing the exact fixes.
Bug Descriptions:
Bug 1 (ID: 4):
The first problem revolves around the handling of collection names within a specific class. The current implementation allows for the possibility of collection names being treated as templates, which is not intended. This can lead to unexpected behavior when users attempt to template a collection name that shouldn't be templated at all.
Bug 2 (ID: 5):
The second issue lies in the error message generated when required arguments are missing. The current implementation results in an unordered list of missing arguments, which can create confusion for users. The intended functionality should present a sorted list of these missing arguments, ensuring clarity in error reporting.
Instructions:
The buggy code is located in /app/solution.py.
You must fix ALL bugs in this file to complete the task successfully.
Once you have made the necessary fixes, tests will verify the corrections via the statement from solution import *.
Remember, ALL bugs must be fixed for the task to pass.
Good luck, and happy debugging!
Note (env layout): The buggy starter code is at /setup_files/solution.py. The verifier and tests run against /app/solution.py. Read /setup_files/solution.py, fix the bugs, and write the corrected version to /app/solution.py.