def _get_atom_map(self):
    """Gets (utterance, program) pairs, used for adding brackets to programs."""
    atoms = [
        ("turn left", "I_TURN_LEFT"),
        ("turn right", "I_TURN_RIGHT"),
        ("walk left", "I_TURN_LEFT I_WALK"),
        ("run left", "I_TURN_LEFT I_RUN"),
        ("look left", "I_TURN_LEFT I_LOOK"),
        ("jump left", "I_TURN_LEFT I_JUMP"),
        ("walk right", "I_TURN_RIGHT I_WALK"),
        ("run right", "I_TURN_RIGHT I_RUN"),
        ("look right", "I_TURN_RIGHT I_LOOK"),
        ("jump right", "I_TURN_RIGHT I_JUMP"),
        ("walk", "I_WALK"),
        ("run", "I_RUN"),
        ("look", "I_LOOK"),
        ("jump", "I_JUMP"),
        ("turn opposite left", "I_TURN_LEFT I_TURN_LEFT"),
        ("turn opposite right", "I_TURN_RIGHT I_TURN_RIGHT"),
        ("walk opposite left", "I_TURN_LEFT I_TURN_LEFT I_WALK"),
        ("walk opposite right", "I_TURN_RIGHT I_TURN_RIGHT I_WALK"),
        ("run opposite left", "I_TURN_LEFT I_TURN_LEFT I_RUN"),
        ("run opposite right", "I_TURN_RIGHT I_TURN_RIGHT I_RUN"),
        ("look opposite left", "I_TURN_LEFT I_TURN_LEFT I_LOOK"),
        ("look opposite right", "I_TURN_RIGHT I_TURN_RIGHT I_LOOK"),
        ("jump opposite left", "I_TURN_LEFT I_TURN_LEFT I_JUMP"),
        ("jump opposite right", "I_TURN_RIGHT I_TURN_RIGHT I_JUMP"),
        ("turn around left", "I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT I_TURN_LEFT"),
        ("turn around right",
         "I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT I_TURN_RIGHT"),
        ("walk around left",
         "I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT I_WALK I_TURN_LEFT"
         " I_WALK"),
        ("walk around right",
         "I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK I_TURN_RIGHT I_WALK "
         "I_TURN_RIGHT I_WALK"),
        ("run around left",
         "I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN I_TURN_LEFT I_RUN"
        ),
        ("run around right",
         "I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN I_TURN_RIGHT I_RUN "
         "I_TURN_RIGHT I_RUN"),
        ("look around left",
         "I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT I_LOOK I_TURN_LEFT"
         " I_LOOK"),
        ("look around right", "I_TURN_RIGHT I_LOOK I_TURN_RIGHT I_LOOK "
         "I_TURN_RIGHT I_LOOK "
         "I_TURN_RIGHT I_LOOK"),
        ("jump around left",
         "I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT I_JUMP I_TURN_LEFT"
         ""
         " I_JUMP"),
        ("jump around right",
         "I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP I_TURN_RIGHT I_JUMP "
         "I_TURN_RIGHT I_JUMP"),
    ]
    atom_map = {atom[0]: atom[1] for atom in atoms}
    # Adds "X twice" actions.
    atom_map.update({
        "{} twice".format(atom[0]): "{} {}".format(atom[1], atom[1])
        for atom in atoms
    })
    # Adds "X thrice" actions.
    atom_map.update({
        "{} thrice".format(atom[0]):
        "{} {} {}".format(atom[1], atom[1], atom[1]) for atom in atoms
    })
    return atom_map
Gets (utterance, program) pairs, used for adding brackets to programs.
language/compir/dataset_parsers/scan_parser.py