"* Industry Relevance: Ensure the instruction pertains to the {{ industry_sector }} sector and {{ topic }} topic.\n"
"* Code Complexity: Tailor the instruction to the {{ code_complexity }} level. Utilize relevant {{ code_concept }} where appropriate to match the complexity level.\n"
"* Clarity and Specificity: Make the problem statement clear and unambiguous. Provide sufficient context to understand the requirements without being overly verbose.\n"
"* Response Formatting: Do not include any markers such as ### Response ### in the instruction.\n"
description="Pythonic Code and Best Practices (Does the code follow Python conventions and best practices?)",
options={
4:"The code exemplifies Pythonic principles, making excellent use of Python-specific constructs, standard library modules and programming idioms; follows all relevant PEPs.",
3:"The code closely follows Python conventions and adheres to many best practices; good use of Python-specific constructs, standard library modules and programming idioms.",
2:"The code generally follows Python conventions but has room for better alignment with Pythonic practices.",
1:"The code loosely follows Python conventions, with several deviations from best practices.",
0:"The code does not follow Python conventions or best practices, using non-Pythonic approaches.",
description="Readability and Maintainability (Is the Python code easy to understand and maintain?)",
options={
4:(
"The code is excellently formatted, follows PEP 8 guidelines, is elegantly concise and clear, uses meaningful variable names, "
"ensuring high readability and ease of maintenance; organizes complex logic well. Docstrings are given in a Google Docstring format."
),
3:"The code is well-formatted in the sense of code-as-documentation, making it relatively easy to understand and maintain; uses descriptive names and organizes logic clearly.",
2:"The code is somewhat readable with basic formatting and some comments, but improvements are needed; needs better use of descriptive names and organization.",
1:"The code has minimal formatting, making it hard to understand; lacks meaningful names and organization.",
0:"The code is unreadable, with no attempt at formatting or description.",
description="Efficiency and Performance (Is the code optimized for performance?)",
options={
4:"The solution is highly efficient, using appropriate data structures and algorithms; avoids unnecessary computations and optimizes for both time and space complexity.",
3:"The solution is efficient, with good use of Python's built-in functions and libraries; minor areas for optimization.",
2:"The solution is moderately efficient, but misses some opportunities for optimization; uses some inefficient patterns.",