From b9b63608ccb2d0c30c34f4e7a46e6bf87332180e Mon Sep 17 00:00:00 2001 From: Jan Maximilian Michal <j.michal@stud.uni-goettingen.de> Date: Mon, 12 Dec 2016 21:33:29 +0000 Subject: [PATCH] A little cleanup --- {old => deprecated_scripts}/01_basics.py | 0 .../02_chomsky_grammar.py | 0 .../04_minimize_dea.py | 0 {old => deprecated_scripts}/05_nea_to_dea.py | 0 deprecated_scripts/README.md | 3 ++ {old => deprecated_scripts}/__init__.py | 0 {old => deprecated_scripts}/util.py | 0 templates/free.class.php | 17 ----------- templates/gap.class.php | 18 ----------- templates/generic.class.php | 18 ----------- templates/multi.class.php | 29 ------------------ templates/numeric.class.php | 30 ------------------- templates/order.class.php | 30 ------------------- templates/select.class.php | 27 ----------------- templates/single.class.php | 29 ------------------ 15 files changed, 3 insertions(+), 198 deletions(-) rename {old => deprecated_scripts}/01_basics.py (100%) rename {old => deprecated_scripts}/02_chomsky_grammar.py (100%) rename {old => deprecated_scripts}/04_minimize_dea.py (100%) rename {old => deprecated_scripts}/05_nea_to_dea.py (100%) create mode 100644 deprecated_scripts/README.md rename {old => deprecated_scripts}/__init__.py (100%) rename {old => deprecated_scripts}/util.py (100%) delete mode 100755 templates/free.class.php delete mode 100755 templates/gap.class.php delete mode 100755 templates/generic.class.php delete mode 100755 templates/multi.class.php delete mode 100755 templates/numeric.class.php delete mode 100755 templates/order.class.php delete mode 100755 templates/select.class.php delete mode 100755 templates/single.class.php diff --git a/old/01_basics.py b/deprecated_scripts/01_basics.py similarity index 100% rename from old/01_basics.py rename to deprecated_scripts/01_basics.py diff --git a/old/02_chomsky_grammar.py b/deprecated_scripts/02_chomsky_grammar.py similarity index 100% rename from old/02_chomsky_grammar.py rename to deprecated_scripts/02_chomsky_grammar.py diff --git a/old/04_minimize_dea.py b/deprecated_scripts/04_minimize_dea.py similarity index 100% rename from old/04_minimize_dea.py rename to deprecated_scripts/04_minimize_dea.py diff --git a/old/05_nea_to_dea.py b/deprecated_scripts/05_nea_to_dea.py similarity index 100% rename from old/05_nea_to_dea.py rename to deprecated_scripts/05_nea_to_dea.py diff --git a/deprecated_scripts/README.md b/deprecated_scripts/README.md new file mode 100644 index 0000000..5f9441f --- /dev/null +++ b/deprecated_scripts/README.md @@ -0,0 +1,3 @@ +These scripts can no longer function with Hallgrim, since they rely on autoilias +which will become obsolete once hallgrim is feature complete. They are kept here +so their logic can be translated into proper scripts. diff --git a/old/__init__.py b/deprecated_scripts/__init__.py similarity index 100% rename from old/__init__.py rename to deprecated_scripts/__init__.py diff --git a/old/util.py b/deprecated_scripts/util.py similarity index 100% rename from old/util.py rename to deprecated_scripts/util.py diff --git a/templates/free.class.php b/templates/free.class.php deleted file mode 100755 index 5c058b0..0000000 --- a/templates/free.class.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php - class autoILIASscript{ - function autoILIASscript(){ - $this->qType = "FREE"; - $this->qTitle = "Freitext Frage"; - $this->qAuthor = "Vorname Name"; - $this->qNumber = 100; - $this->qPoints = 10; - } - - function exe(){ - $question = "Fragentext..."; - $ml = "Musterlösung..."; - return array("q" => $question, "m" => $ml); - } - } -?> diff --git a/templates/gap.class.php b/templates/gap.class.php deleted file mode 100755 index 7dcdb7d..0000000 --- a/templates/gap.class.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php - class autoILIASscript{{ - function autoILIASscript(){{ - $this->qType = "{type}"; - $this->qTitle = "{title}"; - $this->qAuthor = "{author}"; - $this->qNumber = {number}; - $this->qPoints = {points}; - {isComment}$this->gapLength = {gapLength}; - }} - - function exe(){{ - $question = "{question}"; - $ml = "{solution}"; - return array("q" => $question, "m" => $ml); - }} - }} -?> diff --git a/templates/generic.class.php b/templates/generic.class.php deleted file mode 100755 index 7b23e92..0000000 --- a/templates/generic.class.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php - class autoILIASscript{{ - function autoILIASscript(){{ - $this->qType = "{type}"; - $this->qTitle = "{title}"; - $this->qAuthor = "{author}"; - $this->qNumber = {number}; - $this->qPoints = {points}; - {gapComment}$this->gapLength = {gapLength}; - }} - - function exe(){{ - $question = "{question}"; - $ml = "{solution}"; - return array("q" => $question, "m" => $ml); - }} - }} -?> diff --git a/templates/multi.class.php b/templates/multi.class.php deleted file mode 100755 index 21b8d08..0000000 --- a/templates/multi.class.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php - - class autoILIASscript{ - - function autoILIASscript(){ - - $this->qType = "MULTI"; - $this->qTitle = "Mehrfach Auswahl Frage"; - $this->qAuthor = "Vorname Name"; - $this->qNumber = 100; - $this->qPoints = 10; // Gesamtpunktzahl = |Antwortmoeglichkeiten| * $this->qPoints - - } - - function exe(){ - - $question = "Fragentext..."; - - $answer = array(array("A", true), array("B", false), array("C", true)); - - $ml = "Musterlösung..."; - - return array("q" => $question, "a" => $answer, "m" => $ml); - - } - - } - -?> \ No newline at end of file diff --git a/templates/numeric.class.php b/templates/numeric.class.php deleted file mode 100755 index 8751992..0000000 --- a/templates/numeric.class.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - - class autoILIASscript{ - - function autoILIASscript(){ - - $this->qType = "NUMERIC"; - $this->qTitle = "Numerische Frage"; - $this->qAuthor = "Vorname Name"; - $this->qNumber = 100; - $this->qPoints = 10; - //$this->numericFormatstring = ""; - - } - - function exe(){ - - $question = "Fragentext..."; - - $answer = 42; - - $ml = "Musterlösung..."; - - return array("q" => $question, "a" => $answer, "m" => $ml); - - } - - } - -?> \ No newline at end of file diff --git a/templates/order.class.php b/templates/order.class.php deleted file mode 100755 index 7c00c66..0000000 --- a/templates/order.class.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - - class autoILIASscript{ - - function autoILIASscript(){ - - $this->qType = "ORDER"; - $this->qTitle = "Anordnungs Frage"; - $this->qAuthor = "Vorname Name"; - $this->qNumber = 100; - $this->qPoints = 10; - - } - - function exe(){ - - // <span style=\"font-size: x-small;\"><b>Hinweis: </b>GgF. müssen die Terme in der richtigen Reihenfolge durchnummeriert werden.</span> - $question = "Fragentext..."; - - $answer = array("A", "B", "C", "D"); - - $ml = "Musterlösung..."; - - return array("q" => $question, "a" => $answer, "m" => $ml); - - } - - } - -?> \ No newline at end of file diff --git a/templates/select.class.php b/templates/select.class.php deleted file mode 100755 index 2b95cf3..0000000 --- a/templates/select.class.php +++ /dev/null @@ -1,27 +0,0 @@ -<?php - - class autoILIASscript{ - - function autoILIASscript(){ - - $this->qType = "SELECT"; - $this->qTitle = "Auswahllücken Frage"; - $this->qAuthor = "Vorname Name"; - $this->qNumber = 100; - $this->qPoints = 10; - - } - - function exe(){ - - $question = "Fragentext mit Lücken zum Auswählen [select][i(2P)]richtig[/i][i(0P)]falsch[/i][/select]..."; - - $ml = "Musterlösung..."; - - return array("q" => $question, "m" => $ml); - - } - - } - -?> \ No newline at end of file diff --git a/templates/single.class.php b/templates/single.class.php deleted file mode 100755 index cb440d1..0000000 --- a/templates/single.class.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php - - class autoILIASscript{ - - function autoILIASscript(){ - - $this->qType = "SINGLE"; - $this->qTitle = "Auswahl Frage"; - $this->qAuthor = "Vorname Name"; - $this->qNumber = 100; - $this->qPoints = 10; - - } - - function exe(){ - - $question = "Fragentext..."; - - $answer = array(array("A", false), array("B", false), array("C", true)); - - $ml = "Musterlösung..."; - - return array("q" => $question, "a" => $answer, "m" => $ml); - - } - - } - -?> \ No newline at end of file -- GitLab