From 1711367dec5ee2f9236197ec0be0bed34cae488f Mon Sep 17 00:00:00 2001 From: Virv12 <55024474+Virv12@users.noreply.github.com> Date: Tue, 19 Nov 2024 22:41:25 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20olimpiad?= =?UTF-8?q?i-informatica/task-maker-rust@3ab3a7958c037a72fc05f53fde1e58ecd?= =?UTF-8?q?b2a85b7=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task_maker_format/ioi/struct.IOITask.html | 4 ++-- task_maker_format/ioi/struct.UIState.html | 4 ++-- .../struct.EvaluationConfig.html | 2 +- task_maker_format/struct.Solution.html | 2 +- task_maker_format/struct.SourceFile.html | 22 +++++++++---------- .../ui/curses/fn.render_server_status.html | 2 +- task_maker_format/ui/enum.UIMessage.html | 4 ++-- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/task_maker_format/ioi/struct.IOITask.html b/task_maker_format/ioi/struct.IOITask.html index 7e08c776..f1bfbc3f 100644 --- a/task_maker_format/ioi/struct.IOITask.html +++ b/task_maker_format/ioi/struct.IOITask.html @@ -12,7 +12,7 @@ pub input_validator_generator: InputValidatorGenerator, pub testcase_score_aggregator: TestcaseScoreAggregator, pub score_precision: usize, - pub grader_map: Arc<GraderMap>, + pub grader_map: Arc<GraderMap>, pub booklets: Vec<Booklet>, pub difficulty: Option<u8>, pub syllabus_level: Option<u8>, @@ -32,7 +32,7 @@ §testcase_score_aggregator: TestcaseScoreAggregator

The aggregator to use to compute the score of the subtask based on the score of the testcases.

§score_precision: usize

The number of decimal digits when displaying the scores.

-
§grader_map: Arc<GraderMap>

The graders registered for this task.

+
§grader_map: Arc<GraderMap>

The graders registered for this task.

§booklets: Vec<Booklet>

The booklets to compile for this task.

§difficulty: Option<u8>

An integer that defines the difficulty of the task. Used only in booklet compilations.

§syllabus_level: Option<u8>

An integer that defines the level inside a syllabus (for example for the Olympiads in diff --git a/task_maker_format/ioi/struct.UIState.html b/task_maker_format/ioi/struct.UIState.html index 44c5bee5..cae7c65d 100644 --- a/task_maker_format/ioi/struct.UIState.html +++ b/task_maker_format/ioi/struct.UIState.html @@ -6,7 +6,7 @@ pub compilations: HashMap<PathBuf, CompilationStatus>, pub generations: HashMap<SubtaskId, SubtaskGenerationState>, pub evaluations: HashMap<PathBuf, SolutionEvaluationState>, - pub executor_status: Option<ExecutorStatus<SystemTime>>, + pub executor_status: Option<ExecutorStatus<SystemTime>>, pub booklets: HashMap<String, BookletState>, pub diagnostics: DiagnosticContext, }

Expand description

The state of a IOI task, all the information for the UI are stored here.

@@ -17,7 +17,7 @@
§compilations: HashMap<PathBuf, CompilationStatus>

The status of the compilations.

§generations: HashMap<SubtaskId, SubtaskGenerationState>

The state of the generation of the testcases.

§evaluations: HashMap<PathBuf, SolutionEvaluationState>

The status of the evaluations of the solutions.

-
§executor_status: Option<ExecutorStatus<SystemTime>>

The status of the executor.

+
§executor_status: Option<ExecutorStatus<SystemTime>>

The status of the executor.

§booklets: HashMap<String, BookletState>

The status of the booklets

§diagnostics: DiagnosticContext

Diagnostic context.

Implementations§

source§

impl UIState

source

pub fn new(task: &IOITask, config: ExecutionDAGConfig) -> UIState

Make a new UIState.

diff --git a/task_maker_format/struct.EvaluationConfig.html b/task_maker_format/struct.EvaluationConfig.html index 39f00f01..e4359f44 100644 --- a/task_maker_format/struct.EvaluationConfig.html +++ b/task_maker_format/struct.EvaluationConfig.html @@ -20,7 +20,7 @@ &self, base_dir: &Path, patterns: Vec<&str>, - grader_map: Option<Arc<GraderMap>>, + grader_map: Option<Arc<GraderMap>>, eval: &mut EvaluationData, ) -> Vec<Solution>

Search all the solutions matching the provided pattern in the provided base directory, excluding all the graders in the grader_map, if provided.

diff --git a/task_maker_format/struct.Solution.html b/task_maker_format/struct.Solution.html index 85a52e5e..e5de2b4b 100644 --- a/task_maker_format/struct.Solution.html +++ b/task_maker_format/struct.Solution.html @@ -7,7 +7,7 @@

Implementations§

source§

impl Solution

source

pub fn new( path: &Path, base_dir: &Path, - grader_map: Option<Arc<GraderMap>>, + grader_map: Option<Arc<GraderMap>>, eval: &mut EvaluationData, ) -> Option<Self>

Create a new Solution for a given source file.

Returns None if the language is unknown.

diff --git a/task_maker_format/struct.SourceFile.html b/task_maker_format/struct.SourceFile.html index e2c8569c..84bd7853 100644 --- a/task_maker_format/struct.SourceFile.html +++ b/task_maker_format/struct.SourceFile.html @@ -5,7 +5,7 @@ path: P, base_path: P3, description: S, - grader_map: Option<Arc<GraderMap>>, + grader_map: Option<Arc<GraderMap>>, write_bin_to: Option<P2>, ) -> Option<SourceFile>

Make a new SourceFile. See task_maker_lang::SourceFile for the details.

@@ -26,7 +26,7 @@ ) -> Result<Option<ExecutionUuid>, Error>

Prepare an execution of the source file, eventually adding the compilation to the DAG. The compilation messages are sent to the UI.

source

pub fn executable(&self, eval: &mut EvaluationData) -> Result<FileUuid, Error>

Prepare the source file if needed and return the executable file.

-

Methods from Deref<Target = SourceFile>§

source

pub fn execute<S>( +

Methods from Deref<Target = SourceFile>§

pub fn execute<S>( &self, dag: &mut ExecutionDAG, description: S, @@ -78,14 +78,14 @@

§Examples
assert!(comp.is_none()); // customize the execution... dag.add_execution(exec);
-
source

pub fn copy_exe(&mut self)

Force the executable to be copied to write_bin_to regardless of the option of the DAG.

-

Compile the source file to a statically-linked binary.

-
source

pub fn executable( +

pub fn copy_exe(&mut self)

Force the executable to be copied to write_bin_to regardless of the option of the DAG.

+

Compile the source file to a statically-linked binary.

+

pub fn executable( &self, dag: &mut ExecutionDAG, ) -> Result<(Uuid, Option<Uuid>), Error>

Prepare the source file if needed and return the executable file. If the compilation step was not executed yet the handle to the compilation execution is also returned.

-
source

pub fn name(&self) -> String

The file name of the source file.

+

pub fn name(&self) -> String

The file name of the source file.

use task_maker_lang::SourceFile;
 use std::path::PathBuf;
@@ -93,20 +93,20 @@ 
§Examples
let source = SourceFile::new("path/to/sourcefile.cpp", "", None, None::<PathBuf>).unwrap(); assert_eq!(source.name(), "sourcefile.cpp");
-
source

pub fn relative_path(&self) -> &Path

The path to the file, relative to the base_dir if possible. If the file is not inside the +

pub fn relative_path(&self) -> &Path

The path to the file, relative to the base_dir if possible. If the file is not inside the base dir, the full path is returned.

-
source

pub fn write_bin_to(&self) -> Option<PathBuf>

The optional destination of where to copy the executable if copy-exe option is set.

+

pub fn write_bin_to(&self) -> Option<PathBuf>

The optional destination of where to copy the executable if copy-exe option is set.

use task_maker_lang::SourceFile;
 
 let source = SourceFile::new("path/to/sourcefile.cpp", "", None, Some("exec")).unwrap();
 
 assert_eq!(source.write_bin_to(), Some("exec".into()));
-
source

pub fn prepare(&self, dag: &mut ExecutionDAG) -> Result<Option<Uuid>, Error>

Prepare the source file setting the executable and eventually compiling the source file.

-
source

pub fn language(&self) -> &dyn Language

The language of the source file.

+

pub fn prepare(&self, dag: &mut ExecutionDAG) -> Result<Option<Uuid>, Error>

Prepare the source file setting the executable and eventually compiling the source file.

+

pub fn language(&self) -> &dyn Language

The language of the source file.

Trait Implementations§

source§

impl Clone for SourceFile

source§

fn clone(&self) -> SourceFile

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SourceFile

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DerefMut for SourceFile

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<'de> Deserialize<'de> for SourceFile

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for SourceFile

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Deref for SourceFile

source§

type Target = SourceFile

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Auto Trait Implementations§

§

impl Freeze for SourceFile

§

impl !RefUnwindSafe for SourceFile

§

impl Send for SourceFile

§

impl Sync for SourceFile

§

impl Unpin for SourceFile

§

impl !UnwindSafe for SourceFile

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Deref for SourceFile

source§

type Target = SourceFile

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Auto Trait Implementations§

§

impl Freeze for SourceFile

§

impl !RefUnwindSafe for SourceFile

§

impl Send for SourceFile

§

impl Sync for SourceFile

§

impl Unpin for SourceFile

§

impl !UnwindSafe for SourceFile

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where diff --git a/task_maker_format/ui/curses/fn.render_server_status.html b/task_maker_format/ui/curses/fn.render_server_status.html index fd8d4c51..810da2ab 100644 --- a/task_maker_format/ui/curses/fn.render_server_status.html +++ b/task_maker_format/ui/curses/fn.render_server_status.html @@ -1,7 +1,7 @@ render_server_status in task_maker_format::ui::curses - Rust

Function task_maker_format::ui::curses::render_server_status

source ·
pub fn render_server_status(
     frame: &mut Frame<'_>,
     rect: Rect,
-    status: Option<&ExecutorStatus<SystemTime>>,
+    status: Option<&ExecutorStatus<SystemTime>>,
     loading: char,
     frame_index: usize,
 )
Expand description

Draw the server status block.

diff --git a/task_maker_format/ui/enum.UIMessage.html b/task_maker_format/ui/enum.UIMessage.html index dfd7ecd0..1a996c56 100644 --- a/task_maker_format/ui/enum.UIMessage.html +++ b/task_maker_format/ui/enum.UIMessage.html @@ -1,7 +1,7 @@ UIMessage in task_maker_format::ui - Rust

Enum task_maker_format::ui::UIMessage

source ·
pub enum UIMessage {
 
Show 22 variants StopUI, ServerStatus { - status: ExecutorStatus<SystemTime>, + status: ExecutorStatus<SystemTime>, }, Solutions { solutions: Vec<SolutionInfo>, @@ -100,7 +100,7 @@
}
Expand description

A message sent to the UI.

Variants§

§

StopUI

A message asking the UI to exit.

§

ServerStatus

An update on the status of the executor.

-

Fields

§status: ExecutorStatus<SystemTime>

The status of the executor.

+

Fields

§status: ExecutorStatus<SystemTime>

The status of the executor.

§

Solutions

The list of solutions that will be evaluated.

Fields

§solutions: Vec<SolutionInfo>

The information of the solutions to evaluate.

§

Compilation

An update on the compilation status.