tessl install tessl/pypi-w3lib@2.3.0Library of web-related functions for HTML manipulation, HTTP processing, URL handling, and encoding detection
Agent Success
Agent success rate when using this tile
84%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.91x
Baseline
Agent success rate without this tile
92%
{
"context": "This evaluation assesses how well the engineer uses the w3lib package to implement BOM detection functionality. The focus is on proper usage of w3lib's encoding detection capabilities, specifically the read_bom function, rather than implementing custom BOM detection logic.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses read_bom",
"description": "Implementation imports and uses w3lib.encoding.read_bom function as the primary mechanism for BOM detection",
"max_score": 40
},
{
"name": "Correct function integration",
"description": "The detect_bom function correctly calls read_bom with the binary data parameter and returns its result directly or with minimal transformation",
"max_score": 25
},
{
"name": "Proper return format",
"description": "Function returns a tuple of (encoding_name or None, bom_bytes) matching the expected API signature and read_bom's output format",
"max_score": 20
},
{
"name": "No custom BOM logic",
"description": "Implementation does not contain manual BOM detection logic (byte comparison, hardcoded BOM sequences, or custom parsing) and relies on w3lib functionality",
"max_score": 15
}
]
}