Skip to content

Commit

Permalink
Deploying to gh-pages from @ abc148b 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Virv12 committed Nov 13, 2024
1 parent b738cc3 commit 1e4636b
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 30 deletions.
4 changes: 2 additions & 2 deletions search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search.desc/task_maker_format/task_maker_format-desc-0-.js

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions src/task_maker_format/ioi/dag/task_type/communication.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,21 @@
<a href="#327" id="327">327</a>
<a href="#328" id="328">328</a>
<a href="#329" id="329">329</a>
<a href="#330" id="330">330</a>
<a href="#331" id="331">331</a>
<a href="#332" id="332">332</a>
<a href="#333" id="333">333</a>
<a href="#334" id="334">334</a>
<a href="#335" id="335">335</a>
<a href="#336" id="336">336</a>
<a href="#337" id="337">337</a>
<a href="#338" id="338">338</a>
<a href="#339" id="339">339</a>
<a href="#340" id="340">340</a>
<a href="#341" id="341">341</a>
<a href="#342" id="342">342</a>
<a href="#343" id="343">343</a>
<a href="#344" id="344">344</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>std::sync::{Arc, Mutex};

<span class="kw">use </span>anyhow::{anyhow, Context, Error};
Expand All @@ -342,13 +357,28 @@

<span class="doccomment">/// The type of communication for the solution in a communication task.
</span><span class="attr">#[derive(Debug, Clone, Copy, Serialize, Deserialize, TypeScriptify, Eq, PartialEq)]
#[serde(rename_all = <span class="string">"snake_case"</span>)]
</span><span class="kw">pub enum </span>UserIo {
<span class="doccomment">/// Communication is achieved by using stdin/stdout.
</span>StdIo,
<span class="doccomment">/// Communication is achieved by using the pipes passed in argv.
</span>FifoIo,
}

<span class="kw">impl </span>UserIo {
<span class="doccomment">/// Used for deserialization.
/// Returns UserIo::StdIo.
</span><span class="kw">pub fn </span>std_io() -&gt; <span class="self">Self </span>{
UserIo::StdIo
}

<span class="doccomment">/// Used for deserialization.
/// Returns UserIo::FifoIo.
</span><span class="kw">pub fn </span>fifo_io() -&gt; <span class="self">Self </span>{
UserIo::FifoIo
}
}

<span class="doccomment">/// The internal data of a task of type `Batch`.
</span><span class="attr">#[derive(Debug, Clone, Serialize, Deserialize, TypeScriptify)]
</span><span class="kw">pub struct </span>CommunicationTypeData {
Expand Down
20 changes: 5 additions & 15 deletions src/task_maker_format/ioi/format/italian_yaml/mod.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -916,11 +916,6 @@
<a href="#916" id="916">916</a>
<a href="#917" id="917">917</a>
<a href="#918" id="918">918</a>
<a href="#919" id="919">919</a>
<a href="#920" id="920">920</a>
<a href="#921" id="921">921</a>
<a href="#922" id="922">922</a>
<a href="#923" id="923">923</a>
</pre></div><pre class="rust"><code><span class="doccomment">//! The `italian_yaml` format is defined by [`cms`](https://cms.readthedocs.io/en/v1.4/External%20contest%20formats.html#italian-import-format)
//! and it's the most used format in the Italian Olympiads.
//!
Expand Down Expand Up @@ -1305,7 +1300,8 @@
///
/// Can be either "std_io" for using stdin/stdout, or "fifo_io" for using pipes given in argv.
/// Defaults to "fifo_io".
</span><span class="kw">pub </span>user_io: <span class="prelude-ty">Option</span>&lt;String&gt;,
</span><span class="attr">#[serde(default = <span class="string">"UserIo::fifo_io"</span>)]
</span><span class="kw">pub </span>user_io: UserIo,

<span class="doccomment">/// Compatibility with cms, unused.
</span><span class="kw">pub </span>score_mode: <span class="prelude-ty">Option</span>&lt;String&gt;,
Expand Down Expand Up @@ -1360,7 +1356,8 @@
///
/// Can be either "std_io" for using stdin/stdout, or "fifo_io" for using pipes given in argv.
/// Defaults to "fifo_io".
</span><span class="kw">pub </span>user_io: <span class="prelude-ty">Option</span>&lt;String&gt;,
</span><span class="attr">#[serde(default = <span class="string">"UserIo::std_io"</span>)]
</span><span class="kw">pub </span>user_io: UserIo,
}

<span class="kw">impl </span>TaskYAMLOrig {
Expand Down Expand Up @@ -1787,17 +1784,10 @@
<span class="comment">// Link the manager statically. This makes sure that it will work also outside this machine.
</span>manager.link_static();

<span class="kw">let </span>user_io = <span class="kw">match </span>yaml.user_io.as_deref() {
<span class="prelude-val">None </span>=&gt; UserIo::FifoIo,
<span class="prelude-val">Some</span>(<span class="string">"std_io"</span>) =&gt; UserIo::StdIo,
<span class="prelude-val">Some</span>(<span class="string">"fifo_io"</span>) =&gt; UserIo::FifoIo,
<span class="prelude-val">Some</span>(other) =&gt; <span class="macro">bail!</span>(<span class="string">"Unsupported value \"{}\" for user_io in task.yaml"</span>, other),
};

<span class="prelude-val">Ok</span>(<span class="prelude-val">Some</span>(TaskType::Communication(CommunicationTypeData {
manager: Arc::new(manager),
num_processes: yaml.num_processes.unwrap_or(<span class="number">1</span>),
user_io,
user_io: yaml.user_io,
})))
}

Expand Down
8 changes: 4 additions & 4 deletions task_maker_dag/enum.ProvidedFile.html

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions task_maker_format/ioi/enum.UserIo.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion task_maker_format/ioi/italian_yaml/fn.parse_task.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Given the path to the task directory, try to parse the task inside of it assuming the format is `italian_yaml`."><title>parse_task in task_maker_format::ioi::italian_yaml - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-492a78a4a87dcc01.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="task_maker_format" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0 (f6e511eec 2024-10-15)" data-channel="1.82.0" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../task_maker_format/index.html">task_<wbr>maker_<wbr>format</a><span class="version">0.6.3</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In task_<wbr>maker_<wbr>format::<wbr>ioi::<wbr>italian_<wbr>yaml</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../../index.html">task_maker_format</a>::<wbr><a href="../index.html">ioi</a>::<wbr><a href="index.html">italian_yaml</a>::<wbr><a class="fn" href="#">parse_task</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/task_maker_format/ioi/format/italian_yaml/mod.rs.html#499-709">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn parse_task&lt;P: <a class="trait" href="https://doc.rust-lang.org/1.82.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.82.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;&gt;(
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Given the path to the task directory, try to parse the task inside of it assuming the format is `italian_yaml`."><title>parse_task in task_maker_format::ioi::italian_yaml - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-492a78a4a87dcc01.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="task_maker_format" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0 (f6e511eec 2024-10-15)" data-channel="1.82.0" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../task_maker_format/index.html">task_<wbr>maker_<wbr>format</a><span class="version">0.6.3</span></h2></div><div class="sidebar-elems"><h2><a href="index.html">In task_<wbr>maker_<wbr>format::<wbr>ioi::<wbr>italian_<wbr>yaml</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../../index.html">task_maker_format</a>::<wbr><a href="../index.html">ioi</a>::<wbr><a href="index.html">italian_yaml</a>::<wbr><a class="fn" href="#">parse_task</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/task_maker_format/ioi/format/italian_yaml/mod.rs.html#501-711">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn parse_task&lt;P: <a class="trait" href="https://doc.rust-lang.org/1.82.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.82.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;&gt;(
task_dir: P,
eval_config: &amp;<a class="struct" href="../../struct.EvaluationConfig.html" title="struct task_maker_format::EvaluationConfig">EvaluationConfig</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.82.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../struct.IOITask.html" title="struct task_maker_format::ioi::IOITask">IOITask</a>, <a class="struct" href="https://docs.rs/anyhow/1.0.93/anyhow/struct.Error.html" title="struct anyhow::Error">Error</a>&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Given the path to the task directory, try to parse the task inside of it assuming the format is
Expand Down
2 changes: 1 addition & 1 deletion task_maker_format/ioi/italian_yaml/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The `italian_yaml` format is defined by `cms` and it’s the most used format in the Italian Olympiads."><title>task_maker_format::ioi::italian_yaml - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-492a78a4a87dcc01.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="task_maker_format" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0 (f6e511eec 2024-10-15)" data-channel="1.82.0" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../task_maker_format/index.html">task_<wbr>maker_<wbr>format</a><span class="version">0.6.3</span></h2></div><h2 class="location"><a href="#">Module italian_<wbr>yaml</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#constants">Constants</a></li><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In task_<wbr>maker_<wbr>format::<wbr>ioi</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../../index.html">task_maker_format</a>::<wbr><a href="../index.html">ioi</a>::<wbr><a class="mod" href="#">italian_yaml</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/task_maker_format/ioi/format/italian_yaml/mod.rs.html#1-923">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The <code>italian_yaml</code> format is defined by <a href="https://cms.readthedocs.io/en/v1.4/External%20contest%20formats.html#italian-import-format"><code>cms</code></a>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The `italian_yaml` format is defined by `cms` and it’s the most used format in the Italian Olympiads."><title>task_maker_format::ioi::italian_yaml - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-492a78a4a87dcc01.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="task_maker_format" data-themes="" data-resource-suffix="" data-rustdoc-version="1.82.0 (f6e511eec 2024-10-15)" data-channel="1.82.0" data-search-js="search-a99f1315e7cc5121.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-921df33f47b8780c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-3b12f09e550e0385.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../task_maker_format/index.html">task_<wbr>maker_<wbr>format</a><span class="version">0.6.3</span></h2></div><h2 class="location"><a href="#">Module italian_<wbr>yaml</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#constants">Constants</a></li><li><a href="#functions">Functions</a></li></ul></section><h2><a href="../index.html">In task_<wbr>maker_<wbr>format::<wbr>ioi</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../../index.html">task_maker_format</a>::<wbr><a href="../index.html">ioi</a>::<wbr><a class="mod" href="#">italian_yaml</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/task_maker_format/ioi/format/italian_yaml/mod.rs.html#1-918">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The <code>italian_yaml</code> format is defined by <a href="https://cms.readthedocs.io/en/v1.4/External%20contest%20formats.html#italian-import-format"><code>cms</code></a>
and it’s the most used format in the Italian Olympiads.</p>
<h2 id="gengen-format"><a class="doc-anchor" href="#gengen-format">§</a><code>gen/GEN</code> format</h2>
<p>Here it’s provided the definition of the format of the <code>gen/GEN</code> file, as interpreted by
Expand Down
Loading

0 comments on commit 1e4636b

Please sign in to comment.