<reponame>YangAzure/rubric-sampling-public
r"""Utilities specific to problem 2 (out of 8)."""

from __future__ import division
from __future__ import print_function
from __future__ import absolute_import

import os
from ..utils import DATASETS_ROOT


IX_TO_LABEL = {
    0: 'For loop: no loop',
    1: 'For loop: armslength',
    2: 'Single shape: body incorrect',
    3: 'For loop: repeat instead of for',
    4: 'Move: forward/backward confusion',
    5: 'For loop: correct end',
    6: 'Correct body order (CW)',
    7: 'Single shape: for instead of repeat',
    8: 'For loop: wrong end',
    9: 'Move: constant',
    10: 'Correct loop structure',
    11: 'Turn: wrong constant',
    12: 'Move: no move',
    13: 'Single shape: armslength',
    14: 'For loop: wrong delta',
    15: 'For loop: clockwise strategy is incorrect',
    16: 'Precondition mismatch',
    17: 'Correct CW turn start',
    18: 'Turn: left/Right confusion',
    19: 'Turn: no turn',
    20: 'Single body (correct)',
    21: 'For loop: wrong start',
    22: 'For loop params correct order',
    23: 'Correct inner loop structure',
    24: 'Single shape: missing repeat',
    25: 'CWTurnStart: incorrect',
    26: 'Correct repeat num',
    27: 'Single shape: wrong iter #',
    28: 'Correct body order (CCW)',
}
LOOP_LABELS_IX = [0, 1, 2, 3, 7, 8, 13, 14, 15, 16, 21, 22, 24, 27]
GEOMETRY_LABELS_IX = [4, 9, 11, 12, 18, 19]

STUDENT_PCFG_PARAMS = [95, 5, 80, 5, 5, 2, 10, 10, 100, 10, 10, 2, 10, 100, 2, 2, 2, 2, 2, 2, 93, 7, 100, 100, 100, 50, 20, 100, 100, 10, 100, 10, 90, 90, 10, 100, 3, 100, 50, 50, 30, 30, 10, 10, 5, 100, 5, 90, 5, 5, 5, 5, 100, 100, 3, 100, 3, 100, 1, 1, 25, 20, 20, 10, 50, 0.05]
TEACHER_PCFG_PARAMS = None

RUBRIC_DIR = os.path.join(os.path.dirname(__file__), '../../../rubrics')
STUDENT_PCFG_PATH = os.path.join(RUBRIC_DIR, 'p2', 'student.cfg')
TEACHER_PCFG_PATH = None


r"""Utilities specific to problem 2 (out of 8)."""

from __future__ import division
from __future__ import print_function
from __future__ import absolute_import

import os
from ..utils import DATASETS_ROOT


IX_TO_LABEL = {
    0: 'For loop: no loop',
    1: 'For loop: armslength',
    2: 'Single shape: body incorrect',
    3: 'For loop: repeat instead of for',
    4: 'Move: forward/backward confusion',
    5: 'For loop: correct end',
    6: 'Correct body order (CW)',
    7: 'Single shape: for instead of repeat',
    8: 'For loop: wrong end',
    9: 'Move: constant',
    10: 'Correct loop structure',
    11: 'Turn: wrong constant',
    12: 'Move: no move',
    13: 'Single shape: armslength',
    14: 'For loop: wrong delta',
    15: 'For loop: clockwise strategy is incorrect',
    16: 'Precondition mismatch',
    17: 'Correct CW turn start',
    18: 'Turn: left/Right confusion',
    19: 'Turn: no turn',
    20: 'Single body (correct)',
    21: 'For loop: wrong start',
    22: 'For loop params correct order',
    23: 'Correct inner loop structure',
    24: 'Single shape: missing repeat',
    25: 'CWTurnStart: incorrect',
    26: 'Correct repeat num',
    27: 'Single shape: wrong iter #',
    28: 'Correct body order (CCW)',
}
LOOP_LABELS_IX = [0, 1, 2, 3, 7, 8, 13, 14, 15, 16, 21, 22, 24, 27]
GEOMETRY_LABELS_IX = [4, 9, 11, 12, 18, 19]

STUDENT_PCFG_PARAMS = [95, 5, 80, 5, 5, 2, 10, 10, 100, 10, 10, 2, 10, 100, 2, 2, 2, 2, 2, 2, 93, 7, 100, 100, 100, 50, 20, 100, 100, 10, 100, 10, 90, 90, 10, 100, 3, 100, 50, 50, 30, 30, 10, 10, 5, 100, 5, 90, 5, 5, 5, 5, 100, 100, 3, 100, 3, 100, 1, 1, 25, 20, 20, 10, 50, 0.05]
TEACHER_PCFG_PARAMS = None

RUBRIC_DIR = os.path.join(os.path.dirname(__file__), '../../../rubrics')
STUDENT_PCFG_PATH = os.path.join(RUBRIC_DIR, 'p2', 'student.cfg')
TEACHER_PCFG_PATH = None
Utilities specific to problem 2 (out of 8). #',