Skip to content

Commit b1a8235

Browse files
committed
Merge manuale
1 parent 196f643 commit b1a8235

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

cms/service/EvaluationService.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def ignore_operation(self, operation):
586586
"that cannot be found.", operation)
587587
raise
588588
self._ignore[shard] = True
589-
self._worker[shard].ignore_operation()
589+
self._worker[shard].ignore_job()
590590

591591
def get_status(self):
592592
"""Returns a dict with info about the current status of all

docs/Configuring a contest.rst

-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ Having a finite set of both contest- and task-tokens can be very confusing, for
5353

5454
Note that "token sets" are "intangible": they're just a counter shown to the user, computed dynamically every time. Yet, once a token is used, a Token object will be created, stored in the database and associated with the submission it was used on.
5555

56-
.. note::
57-
The full-feedback mode introduced in IOI 2013 has not been ported upstream yet (see :gh_issue:`246`). Note that although disabling tokens and making all testcases public would give full feedback, the final scores would be computed differently: the one of the latest submission would be used instead of the maximum among all submissions. To achieve the correct scoring behavior, get in touch with the developers or check `the ML archives <http://www.freelists.org/post/contestms/applying-tokens-automatically,1>`_.
58-
5956
Changing token rules during a contest may lead to inconsistencies. Do so at your own risk!
6057

6158

docs/External contest formats.rst

+12-11
Original file line numberDiff line numberDiff line change
@@ -123,42 +123,43 @@ The following are optional files, that must be present for certain task types or
123123

124124
.. _externalcontestformats_task-description:
125125

126-
.. _externalcontestformats_task-directory:
126+
Task description
127+
----------------
127128

128129
The task YAML files require the following keys.
129130

130-
The content of the task directory is used both to retrieve the task data and to infer the type of the task.
131+
- ``name`` (string; also accepted: ``nome_breve``): the name used to reference internally to this task; it is exposed in the URLs.
131132

132-
These are the required files.
133+
- ``title`` (string; also accepted: ``nome``): the long name (title) used in the web interface.
133134

134-
- :file:`task.yaml`: this file contains the name of the task and describes some of its properties; its content is detailed :ref:`below <externalcontestformats_task-description>`; in order to retain backward compatibility, this file can also be provided in the file :file:`{task_name.yaml}` in the root directory of the *contest*.
135+
- ``n_input`` (integer): number of test cases to be evaluated for this task; the actual test cases are retrieved from the :ref:`task directory <externalcontestformats_task-directory>`.
135136

136137
- ``score_mode``: the score mode for the task, as in :ref:`configuringacontest_score`; it can be ``max_tokened_last`` (for the legacy behavior), or ``max`` (for the modern behavior).
137138

138139
- ``token_mode``: the token mode for the task, as in :ref:`configuringacontest_tokens`; it can be ``disabled``, ``infinite`` or ``finite``; if this is not specified, the loader will try to infer it from the remaining token parameters (in order to retain compatibility with the past), but you are not advised to relay on this behavior.
139140

140141
The following are optional keys.
141142

142-
- :file:`input/input{%d}.txt` and :file:`output/output{%d}.txt` for all integers :samp:`{%d}` between 0 (included) and ``n_input`` (excluded): these are of course the input and reference output files.
143+
- ``time_limit`` (float; also accepted: ``timeout``): the timeout limit for this task in seconds; defaults to no limitations.
143144

144-
The following are optional files, that must be present for certain task types or score types.
145+
- ``memory_limit`` (integer; also accepted: ``memlimit``): the memory limit for this task in megabytes; defaults to no limitations.
145146

146-
- :file:`gen/GEN`: in the Italian environment, this file describes the parameters for the input generator: each line not composed entirely by white spaces or comments (comments start with ``#`` and end with the end of the line) represents an input file. Here, it is used, in case it contains specially formatted comments, to signal that the score type is :ref:`scoretypes_groupmin`. If a line contains only a comment of the form :samp:`# ST: {score}` then it marks the beginning of a new group assigning at most :samp:`{score}` points, containing all subsequent testcases until the next special comment. If the file does not exists, or does not contain any special comments, the task is given the :ref:`scoretypes_sum` score type.
147+
- ``public_testcases`` (string; also accepted: ``risultati``): a comma-separated list of test cases (identified by their numbers, starting from 0) that are marked as public, hence their results are available to contestants even without using tokens.
147148

148149
- ``token_*``: additional token parameters for the task, see :ref:`configuringacontest_tokens` (the names of the parameters are the same as the internal names described there).
149150

150-
- :file:`sol/*.h` and :file:`sol/*lib.pas`: if a grader is present, all other files in the :file:`sol` directory that end with ``.h`` or ``lib.pas`` are treated as auxiliary files needed by the compilation of the grader with the submitted solution.
151+
- ``max_*_number`` and ``min_*_interval`` (integers): limitations for the task, see :ref:`configuringacontest_limitations` (the names of the parameters are the same as the internal names described there); by default they're all unset.
151152

152153
- ``output_only`` (boolean): if set to True, the task is created with the :ref:`tasktypes_outputonly` type; defaults to False.
153154

154-
- :file:`check/manager`: (also accepted: :file:`cor/manager`) for tasks of type :ref:`tasktypes_communication`, this executable is the program that reads the input and communicates with the user solution.
155+
The following are optional keys that must be present for some task type or score type.
155156

156-
- :file:`sol/stub.%l`: for tasks of type :ref:`tasktypes_communication`, this is the piece of code that is compiled together with the user submitted code, and is usually used to manage the communication with :file:`manager`. Again, all supported languages must be present.
157+
- ``total_value`` (float): for tasks using the :ref:`scoretypes_sum` score type, this is the maximum score for the task and defaults to 100.0; for other score types, the maximum score is computed from the :ref:`task directory <externalcontestformats_task-directory>`.
157158

158159
- ``infile`` and ``outfile`` (strings): for :ref:`tasktypes_batch` tasks, these are the file names for the input and output files; default to :file:`input.txt` and :file:`output.txt`; if left empty, :file:`stdin` and :file:`stdout` are used.
159160

161+
- ``primary_language`` (string): the statement will be imported with this language code; defaults to ``it`` (Italian), in order to ensure backward compatibility.
160162

161-
.. _externalcontestformats_task-description:
162163

163164
Polygon format
164165
==============

0 commit comments

Comments
 (0)