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 evaluation criteria assesses how effectively the engineer uses the python-bidi package, specifically the get_display() function, to solve bidirectional text display problems. The focus is on proper usage of the package's API and understanding of its capabilities for handling mixed-direction text.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses get_display()",
"description": "The implementation imports and uses the get_display() function from the bidi package (or bidi.algorithm module) as the primary mechanism for converting bidirectional text to display order",
"max_score": 40
},
{
"name": "Handles str input",
"description": "The implementation correctly passes string input directly to get_display() and returns the result, leveraging the package's built-in string handling",
"max_score": 20
},
{
"name": "Handles bytes input",
"description": "The implementation correctly passes bytes input to get_display() with the appropriate encoding parameter, utilizing the package's encoding support",
"max_score": 20
},
{
"name": "Preserves input type",
"description": "The implementation leverages get_display()'s automatic type preservation where str input returns str and bytes input returns bytes, without manual type conversion",
"max_score": 10
},
{
"name": "Encoding parameter usage",
"description": "The implementation correctly passes the encoding parameter to get_display() when processing bytes, using the package's built-in encoding parameter rather than manual encoding/decoding",
"max_score": 10
}
]
}