QR Code image generator with customizable image formats, error correction levels, and styling options
{
"context": "This criteria evaluates the engineer's ability to use the qrcode package's version selection features, including explicit version specification, version-to-dimension mapping, and automatic version determination for given data.",
"type": "weighted_checklist",
"checklist": [
{
"name": "QRCode class usage",
"description": "Uses qrcode.QRCode class to create QR code objects with configurable parameters",
"max_score": 15
},
{
"name": "Version parameter",
"description": "Correctly sets the version parameter (1-40) when instantiating QRCode objects to explicitly control QR code size",
"max_score": 20
},
{
"name": "Error correction mapping",
"description": "Maps error correction string inputs ('L', 'M', 'Q', 'H') to qrcode.constants (ERROR_CORRECT_L, ERROR_CORRECT_M, ERROR_CORRECT_Q, ERROR_CORRECT_H)",
"max_score": 10
},
{
"name": "Version dimensions",
"description": "Correctly determines QR code dimensions for a given version, either by using modules_count attribute from QRCode object or by applying the version formula (17 + 4*version)",
"max_score": 15
},
{
"name": "Version auto-fitting",
"description": "Uses best_fit() method with a starting version parameter, or creates QRCode with version=None and make(fit=True) to find minimum version for data",
"max_score": 25
},
{
"name": "QRCode workflow",
"description": "Follows correct qrcode workflow: instantiate QRCode, call add_data() with data, call make() to compile, then access version or other attributes",
"max_score": 15
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10