rbx.cp 0.5.45__py3-none-any.whl → 0.5.47__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. rbx/box/checkers.py +81 -28
  2. rbx/box/cli.py +12 -10
  3. rbx/box/generators.py +77 -40
  4. rbx/box/packaging/boca/packager.py +44 -7
  5. rbx/box/packaging/main.py +7 -0
  6. rbx/box/packaging/moj/packager.py +88 -8
  7. rbx/box/packaging/packager.py +7 -2
  8. rbx/box/packaging/polygon/packager.py +5 -4
  9. rbx/box/solutions.py +7 -5
  10. rbx/box/statements/builders.py +22 -3
  11. rbx/box/stresses.py +0 -1
  12. rbx/box/tasks.py +18 -8
  13. rbx/box/testcase_utils.py +66 -0
  14. rbx/grading/judge/sandbox.py +29 -1
  15. rbx/grading/judge/sandboxes/isolate.py +12 -2
  16. rbx/grading/judge/sandboxes/stupid_sandbox.py +17 -5
  17. rbx/grading/judge/sandboxes/timeit.py +12 -3
  18. rbx/grading/processing_context.py +48 -0
  19. rbx/grading/steps.py +24 -13
  20. rbx/resources/packagers/boca/checker.sh +8 -6
  21. rbx/resources/packagers/boca/compare.sh +48 -0
  22. rbx/resources/packagers/boca/interactive/c +207 -0
  23. rbx/resources/packagers/boca/interactive/cc +207 -0
  24. rbx/resources/packagers/boca/interactive/cpp +207 -0
  25. rbx/resources/packagers/boca/interactive/java +240 -0
  26. rbx/resources/packagers/boca/interactive/kt +231 -0
  27. rbx/resources/packagers/boca/interactive/py2 +209 -0
  28. rbx/resources/packagers/boca/interactive/py3 +209 -0
  29. rbx/resources/packagers/boca/interactor_compile.sh +45 -0
  30. rbx/resources/packagers/boca/run/bkp +163 -0
  31. rbx/resources/packagers/boca/run/c +19 -19
  32. rbx/resources/packagers/boca/run/cc +19 -19
  33. rbx/resources/packagers/boca/run/cpp +19 -19
  34. rbx/resources/packagers/boca/run/java +51 -51
  35. rbx/resources/packagers/boca/run/kt +30 -30
  36. rbx/resources/packagers/boca/run/py2 +42 -42
  37. rbx/resources/packagers/boca/run/py3 +42 -42
  38. rbx/resources/packagers/moj/scripts/c/compile.sh +19 -0
  39. rbx/resources/packagers/moj/scripts/c/prep.sh +5 -0
  40. rbx/resources/packagers/moj/scripts/c/run.sh +16 -0
  41. rbx/resources/packagers/moj/scripts/compare.sh +32 -6
  42. rbx/resources/packagers/moj/scripts/cpp/compile.sh +19 -0
  43. rbx/resources/packagers/moj/scripts/cpp/prep.sh +5 -0
  44. rbx/resources/packagers/moj/scripts/cpp/run.sh +16 -0
  45. rbx/resources/packagers/moj/scripts/interactor_prep.sh +14 -0
  46. rbx/resources/packagers/moj/scripts/interactor_run.sh +38 -0
  47. rbx/resources/packagers/moj/scripts/java/compile.sh +12 -0
  48. rbx/resources/packagers/moj/scripts/java/prep.sh +8 -0
  49. rbx/resources/packagers/moj/scripts/java/run.sh +17 -0
  50. rbx/resources/packagers/moj/scripts/py2/compile.sh +7 -0
  51. rbx/resources/packagers/moj/scripts/py2/prep.sh +5 -0
  52. rbx/resources/packagers/moj/scripts/py2/run.sh +16 -0
  53. rbx/resources/packagers/moj/scripts/py3/compile.sh +7 -0
  54. rbx/resources/packagers/moj/scripts/py3/prep.sh +5 -0
  55. rbx/resources/packagers/moj/scripts/py3/run.sh +16 -0
  56. {rbx_cp-0.5.45.dist-info → rbx_cp-0.5.47.dist-info}/METADATA +1 -1
  57. {rbx_cp-0.5.45.dist-info → rbx_cp-0.5.47.dist-info}/RECORD +60 -33
  58. rbx/resources/packagers/boca/compare +0 -53
  59. {rbx_cp-0.5.45.dist-info → rbx_cp-0.5.47.dist-info}/LICENSE +0 -0
  60. {rbx_cp-0.5.45.dist-info → rbx_cp-0.5.47.dist-info}/WHEEL +0 -0
  61. {rbx_cp-0.5.45.dist-info → rbx_cp-0.5.47.dist-info}/entry_points.txt +0 -0
@@ -1,53 +0,0 @@
1
- #!/bin/bash
2
- # ////////////////////////////////////////////////////////////////////////////////
3
- # //BOCA Online Contest Administrator
4
- # // Copyright (C) 2003-2012 by BOCA Development Team (bocasystem@gmail.com)
5
- # //
6
- # // This program is free software: you can redistribute it and/or modify
7
- # // it under the terms of the GNU General Public License as published by
8
- # // the Free Software Foundation, either version 3 of the License, or
9
- # // (at your option) any later version.
10
- # //
11
- # // This program is distributed in the hope that it will be useful,
12
- # // but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- # // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- # // GNU General Public License for more details.
15
- # // You should have received a copy of the GNU General Public License
16
- # // along with this program. If not, see <http://www.gnu.org/licenses/>.
17
- # ////////////////////////////////////////////////////////////////////////////////
18
- # // Last modified 21/jul/2012 by cassio@ime.usp.br
19
- #
20
- # This script receives:
21
- # $1 team_output
22
- # $2 sol_output
23
- # $3 problem_input (might be used by some specific checkers, here it is not)
24
- #
25
- # BOCA reads the last line of the standard output
26
- # and pass it to judges
27
- #
28
- if [ ! -r "$1" -o ! -r "$2" ]; then
29
- echo "Parameter problem"
30
- exit 43
31
- fi
32
-
33
- # Next lines of this script just compares team_output and sol_output,
34
- # although it is possible to change them to more complex evaluations.
35
- output=`../checker.exe $3 $1 $2 2>&1 >/dev/null`
36
- EC=$?
37
-
38
- echo "checker exitcode = $EC"
39
- echo "$output"
40
-
41
- if [ $EC -eq 0 ]; then
42
- echo "checker found no differences"
43
- exit 4
44
- elif [ $EC -eq 1 ]; then
45
- echo "checker found differences"
46
- exit 6
47
- elif [ $EC -eq 2 ]; then
48
- echo "checker failed"
49
- exit 5
50
- elif [ $EC -ne 3 ]; then
51
- echo "unkown compare error $EC"
52
- exit 43
53
- fi