Loading demo.py +2 −2 Original line number Diff line number Diff line Loading @@ -206,11 +206,11 @@ def main(): print() print("Composition:") union = dfa_1.composition(dfa_1, dfa_2, comp.Union) union = dfa_1.union(dfa_1, dfa_2) print(parser.dfa_to_str(union, True)) print() print("Intersection:") intersection = dfa_1.composition(dfa_1, dfa_2, comp.Intersection) intersection = dfa_1.intersection(dfa_1, dfa_2) print(parser.dfa_to_str(intersection, True)) print() Loading evalweb.sh 100644 → 100755 +0 −0 File mode changed from 100644 to 100755. View file evalweb/evalweb.py +2 −1 Original line number Diff line number Diff line Loading @@ -72,10 +72,11 @@ def compare(): missing_word_ce = checker.eq.right_counterexample inf = checker.eq.inf return render_template('result_compare.html', compare=True, ok=result, inf=inf, task_solved=checker.task_solved, alphabets=checker.alphabets, extra_word_ce=extra_word_ce, missing_word_ce=missing_word_ce, is_task=checker.is_task, img_src=checker.img_src, is_task=checker.is_task, img_src=checker.img_src, langs=checker.languages, teacher=checker.teacher, student=checker.student) if request.method == 'POST' and 'example_button' in request.form: Loading evalweb/templates/compare.html +2 −2 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ <div style="width:400px; float:right;"> <textarea style="width:400px;" name="teacher_string" id="teacher_string">{{ teacher_area }}</textarea></div> {{ teacher_form.hidden_tag() }} <div style="float:left;">{{ teacher_form.make }}</div> <div style="float:left;">{{ teacher_form.make(style="list-style:none") }}</div> </div> <label for="student_string">Moje řešení</label><br> Loading @@ -21,7 +21,7 @@ <div style="width:400px; float:right;"> <textarea style="width:400px;" name="student_string" id="student_string">{{ student_area }}</textarea></div> {{ student_form.hidden_tag() }} <div style="float:left;">{{ student_form.make }}</div> <div style="float:left;">{{ student_form.make(style="list-style:none") }}</div> </div> <input type="submit" name="submit_button" value="Porovnej"> Loading evalweb/templates/convert.html +2 −2 Original line number Diff line number Diff line Loading @@ -14,12 +14,12 @@ <div style="width:400px; float:right;"> <textarea style="width:400px;" name="student_string" id="student_string">{{ student_area }}</textarea></div> {{ student_form.hidden_tag() }} <div style="float:left;">{{ student_form.make }}</div> <div style="float:left;">{{ student_form.make(style="list-style:none") }}</div> </div> <label>Převeď na typ</label><br> {{ task_form.hidden_tag() }} {{ task_form.make }} {{ task_form.make(style="list-style:none") }} <input type="submit" name="submit_button" value="Převeď"> </form> Loading Loading
demo.py +2 −2 Original line number Diff line number Diff line Loading @@ -206,11 +206,11 @@ def main(): print() print("Composition:") union = dfa_1.composition(dfa_1, dfa_2, comp.Union) union = dfa_1.union(dfa_1, dfa_2) print(parser.dfa_to_str(union, True)) print() print("Intersection:") intersection = dfa_1.composition(dfa_1, dfa_2, comp.Intersection) intersection = dfa_1.intersection(dfa_1, dfa_2) print(parser.dfa_to_str(intersection, True)) print() Loading
evalweb/evalweb.py +2 −1 Original line number Diff line number Diff line Loading @@ -72,10 +72,11 @@ def compare(): missing_word_ce = checker.eq.right_counterexample inf = checker.eq.inf return render_template('result_compare.html', compare=True, ok=result, inf=inf, task_solved=checker.task_solved, alphabets=checker.alphabets, extra_word_ce=extra_word_ce, missing_word_ce=missing_word_ce, is_task=checker.is_task, img_src=checker.img_src, is_task=checker.is_task, img_src=checker.img_src, langs=checker.languages, teacher=checker.teacher, student=checker.student) if request.method == 'POST' and 'example_button' in request.form: Loading
evalweb/templates/compare.html +2 −2 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ <div style="width:400px; float:right;"> <textarea style="width:400px;" name="teacher_string" id="teacher_string">{{ teacher_area }}</textarea></div> {{ teacher_form.hidden_tag() }} <div style="float:left;">{{ teacher_form.make }}</div> <div style="float:left;">{{ teacher_form.make(style="list-style:none") }}</div> </div> <label for="student_string">Moje řešení</label><br> Loading @@ -21,7 +21,7 @@ <div style="width:400px; float:right;"> <textarea style="width:400px;" name="student_string" id="student_string">{{ student_area }}</textarea></div> {{ student_form.hidden_tag() }} <div style="float:left;">{{ student_form.make }}</div> <div style="float:left;">{{ student_form.make(style="list-style:none") }}</div> </div> <input type="submit" name="submit_button" value="Porovnej"> Loading
evalweb/templates/convert.html +2 −2 Original line number Diff line number Diff line Loading @@ -14,12 +14,12 @@ <div style="width:400px; float:right;"> <textarea style="width:400px;" name="student_string" id="student_string">{{ student_area }}</textarea></div> {{ student_form.hidden_tag() }} <div style="float:left;">{{ student_form.make }}</div> <div style="float:left;">{{ student_form.make(style="list-style:none") }}</div> </div> <label>Převeď na typ</label><br> {{ task_form.hidden_tag() }} {{ task_form.make }} {{ task_form.make(style="list-style:none") }} <input type="submit" name="submit_button" value="Převeď"> </form> Loading