{"task": {"agent_timeout": 1800, "task": "polyglot_java_protein-translation", "verifier_timeout": 1800, "instruction": "# Instructions\n\nTranslate RNA sequences into proteins.\n\nRNA can be broken into three-nucleotide sequences called codons, and then translated to a protein like so:\n\nRNA: `\"AUGUUUUCU\"` => translates to\n\nCodons: `\"AUG\", \"UUU\", \"UCU\"`\n=> which become a protein with the following sequence =>\n\nProtein: `\"Methionine\", \"Phenylalanine\", \"Serine\"`\n\nThere are 64 codons which in turn correspond to 20 amino acids; however, all of the codon sequences and resulting amino acids are not important in this exercise.\nIf it works for one codon, the program should work for all of them.\nHowever, feel free to expand the list in the test suite to include them all.\n\nThere are also three terminating codons (also known as 'STOP' codons); if any of these codons are encountered (by the ribosome), all translation ends and the protein is terminated.\n\nAll subsequent codons after are ignored, like this:\n\nRNA: `\"AUGUUUUCUUAAAUG\"` =>\n\nCodons: `\"AUG\", \"UUU\", \"UCU\", \"UAA\", \"AUG\"` =>\n\nProtein: `\"Methionine\", \"Phenylalanine\", \"Serine\"`\n\nNote the stop codon `\"UAA\"` terminates the translation and the final methionine is not translated into the protein sequence.\n\nBelow are the codons and resulting amino acids needed for the exercise.\n\n| Codon              | Amino Acid    |\n| :----------------- | :------------ |\n| AUG                | Methionine    |\n| UUU, UUC           | Phenylalanine |\n| UUA, UUG           | Leucine       |\n| UCU, UCC, UCA, UCG | Serine        |\n| UAU, UAC           | Tyrosine      |\n| UGU, UGC           | Cysteine      |\n| UGG                | Tryptophan    |\n| UAA, UAG, UGA      | STOP          |\n\nLearn more about [protein translation on Wikipedia][protein-translation].\n\n[protein-translation]: https://en.wikipedia.org/wiki/Translation_(biology)\n\n----\nUse the instructions above to modify the supplied files: ProteinTranslator.java\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": "java", "cpus": 1, "instruction_truncated": false, "category": "coding-exercises", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "aider_polyglot", "tags": ["aider_polyglot", "exercise:protein-translation", "java"]}, "runs": []}