{"task": {"agent_timeout": 1800, "task": "polyglot_javascript_ocr-numbers", "verifier_timeout": 1800, "instruction": "# Instructions\n\nGiven a 3 x 4 grid of pipes, underscores, and spaces, determine which number is represented, or whether it is garbled.\n\n## Step One\n\nTo begin with, convert a simple binary font to a string containing 0 or 1.\n\nThe binary font uses pipes and underscores, four rows high and three columns wide.\n\n```text\n     _   #\n    | |  # zero.\n    |_|  #\n         # the fourth row is always blank\n```\n\nIs converted to \"0\"\n\n```text\n         #\n      |  # one.\n      |  #\n         # (blank fourth row)\n```\n\nIs converted to \"1\"\n\nIf the input is the correct size, but not recognizable, your program should return '?'\n\nIf the input is the incorrect size, your program should return an error.\n\n## Step Two\n\nUpdate your program to recognize multi-character binary strings, replacing garbled numbers with ?\n\n## Step Three\n\nUpdate your program to recognize all numbers 0 through 9, both individually and as part of a larger string.\n\n```text\n _\n _|\n|_\n\n```\n\nIs converted to \"2\"\n\n```text\n      _  _     _  _  _  _  _  _  #\n    | _| _||_||_ |_   ||_||_|| | # decimal numbers.\n    ||_  _|  | _||_|  ||_| _||_| #\n                                 # fourth line is always blank\n```\n\nIs converted to \"1234567890\"\n\n## Step Four\n\nUpdate your program to handle multiple numbers, one per line.\nWhen converting several lines, join the lines with commas.\n\n```text\n    _  _\n  | _| _|\n  ||_  _|\n\n    _  _\n|_||_ |_\n  | _||_|\n\n _  _  _\n  ||_||_|\n  ||_| _|\n\n```\n\nIs converted to \"123,456,789\".\n\n----\nUse the instructions above to modify the supplied files: ocr-numbers.js\nDon't change the names of existing functions or classes, as they may be referenced from other code like unit tests.\nOnly use standard libraries; don't install additional packages.\n", "memory": "4g", "runnable": false, "difficulty": "medium", "language": "javascript", "cpus": 1, "instruction_truncated": false, "category": "coding-exercises", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "aider_polyglot", "tags": ["aider_polyglot", "exercise:ocr-numbers", "javascript"]}, "runs": []}