tessl install tessl/pypi-python-bidi@0.6.0Python Bidi layout wrapping the Rust crate unicode-bidi
Agent Success
Agent success rate when using this tile
93%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.09x
Baseline
Agent success rate without this tile
85%
{
"context": "This criteria evaluates how well the engineer uses the python-bidi package's multi-encoding support capability to process bidirectional text in different character encodings while maintaining proper input/output type correspondence.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses get_display()",
"description": "Solution imports and calls the get_display() function from the bidi package to process bidirectional text",
"max_score": 30
},
{
"name": "Bytes input handling",
"description": "Solution correctly passes bytes (not strings) as the first parameter to get_display() for proper encoding handling",
"max_score": 20
},
{
"name": "Encoding parameter usage",
"description": "Solution uses the encoding parameter of get_display() to specify the character encoding (e.g., encoding='cp1255')",
"max_score": 25
},
{
"name": "Bytes output preservation",
"description": "Solution ensures get_display() returns bytes in the same encoding as the input, leveraging the package's automatic type matching behavior",
"max_score": 20
},
{
"name": "Multiple encodings support",
"description": "Solution handles all required encodings (UTF-8, CP1255, ISO-8859-8) using get_display() with appropriate encoding parameters",
"max_score": 5
}
]
}