#!/usr/bin/env python3
# coding: utf-8
import sys, jsonpickle
from sandboxio import output, get_context, get_answers


missing_evaluator_stderr = """\
The key 'evaluator' was not found in the context.
When using this grader, the PL must declare a script inside a key 'evaluator'. This script have
access to every variable declared in the PL and its 'before' script.
It should declare a variable 'grade' which should contain a tuple (int, feedback) where int is the grade between [0, 100]."""
missing_grade_stderr = """\
'evaluator' did not declare the variable 'grade'. 
The script have access to every variable declared in the PL and its 'before' script.
It should declare a variable 'grade' which should contain a tuple (int, feedback) where int is the grade between [0, 100]."""
if __name__ == "__main__":
    if len(sys.argv) < 5:
        msg = ("Sandbox did not call grader properly:\n"
               + "Usage: python3 grader.py [input_json] [output_json] [answer_file] [feedback_file]")
        print(msg, file=sys.stderr)
        sys.exit(1)
    dic=get_context()
    
    
    studentdic = get_answers()
    dic["text"]=" Passez à l'exercice suivant "
    dic["form"]= ""
        
    output(100," Merci de votre réponse  ",dic)







3efa81ad68ff3b3bcfb712d0c947be1c20ea85be
<mask token>

<mask token>
if __name__ == '__main__':
    if len(sys.argv) < 5:
        msg = ('Sandbox did not call grader properly:\n' +
            'Usage: python3 grader.py [input_json] [output_json] [answer_file] [feedback_file]'
            )
        print(msg, file=sys.stderr)
        sys.exit(1)
    dic = get_context()
    studentdic = get_answers()
    dic['text'] = " Passez à l'exercice suivant "
    dic['form'] = ''
    output(100, ' Merci de votre réponse  ', dic)

<mask token>
missing_evaluator_stderr = """The key 'evaluator' was not found in the context.
When using this grader, the PL must declare a script inside a key 'evaluator'. This script have
access to every variable declared in the PL and its 'before' script.
It should declare a variable 'grade' which should contain a tuple (int, feedback) where int is the grade between [0, 100]."""
missing_grade_stderr = """'evaluator' did not declare the variable 'grade'. 
The script have access to every variable declared in the PL and its 'before' script.
It should declare a variable 'grade' which should contain a tuple (int, feedback) where int is the grade between [0, 100]."""
if __name__ == '__main__':
    if len(sys.argv) < 5:
        msg = ('Sandbox did not call grader properly:\n' +
            'Usage: python3 grader.py [input_json] [output_json] [answer_file] [feedback_file]'
            )
        print(msg, file=sys.stderr)
        sys.exit(1)
    dic = get_context()
    studentdic = get_answers()
    dic['text'] = " Passez à l'exercice suivant "
    dic['form'] = ''
    output(100, ' Merci de votre réponse  ', dic)

import sys, jsonpickle
from sandboxio import output, get_context, get_answers
missing_evaluator_stderr = """The key 'evaluator' was not found in the context.
When using this grader, the PL must declare a script inside a key 'evaluator'. This script have
access to every variable declared in the PL and its 'before' script.
It should declare a variable 'grade' which should contain a tuple (int, feedback) where int is the grade between [0, 100]."""
missing_grade_stderr = """'evaluator' did not declare the variable 'grade'. 
The script have access to every variable declared in the PL and its 'before' script.
It should declare a variable 'grade' which should contain a tuple (int, feedback) where int is the grade between [0, 100]."""
if __name__ == '__main__':
    if len(sys.argv) < 5:
        msg = ('Sandbox did not call grader properly:\n' +
            'Usage: python3 grader.py [input_json] [output_json] [answer_file] [feedback_file]'
            )
        print(msg, file=sys.stderr)
        sys.exit(1)
    dic = get_context()
    studentdic = get_answers()
    dic['text'] = " Passez à l'exercice suivant "
    dic['form'] = ''
    output(100, ' Merci de votre réponse  ', dic)

#!/usr/bin/env python3
# coding: utf-8
import sys, jsonpickle
from sandboxio import output, get_context, get_answers


missing_evaluator_stderr = """\
The key 'evaluator' was not found in the context.
When using this grader, the PL must declare a script inside a key 'evaluator'. This script have
access to every variable declared in the PL and its 'before' script.
It should declare a variable 'grade' which should contain a tuple (int, feedback) where int is the grade between [0, 100]."""
missing_grade_stderr = """\
'evaluator' did not declare the variable 'grade'. 
The script have access to every variable declared in the PL and its 'before' script.
It should declare a variable 'grade' which should contain a tuple (int, feedback) where int is the grade between [0, 100]."""
if __name__ == "__main__":
    if len(sys.argv) < 5:
        msg = ("Sandbox did not call grader properly:\n"
               + "Usage: python3 grader.py [input_json] [output_json] [answer_file] [feedback_file]")
        print(msg, file=sys.stderr)
        sys.exit(1)
    dic=get_context()
    
    
    studentdic = get_answers()
    dic["text"]=" Passez à l'exercice suivant "
    dic["form"]= ""
        
    output(100," Merci de votre réponse  ",dic)






