DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:judge

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:judge [2016-01-29 15:42] smmsadrnezhplugin:judge [2020-02-01 17:09] (current) Aleksandr
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Adds a judgement facility for computer science training wikis.+description: Adds a judgement facility for computer science training wikis
 author     : S. M. Masoud Sadrnezhaad author     : S. M. Masoud Sadrnezhaad
 email      : masoud@sadrnezhaad.ir  email      : masoud@sadrnezhaad.ir 
 type       : syntax type       : syntax
 lastupdate : 2016-01-18 lastupdate : 2016-01-18
-compatible :  +compatible : !Binky, Ponder Stibbons 
-depends    : +depends    : sqlite
 conflicts  conflicts 
 similar    :  similar    : 
 tags       : judge, plugins tags       : judge, plugins
  
-downloadurl: http://github.com/smmsadrnezh/dokuwiki-plugin-judge/zipball/master +downloadurl: https://github.com/smmsadrnezh/dokuwiki-plugin-judge/zipball/master 
-bugtracker : http://github.com/smmsadrnezh/dokuwiki-plugin-judge/issues +bugtracker : https://github.com/smmsadrnezh/dokuwiki-plugin-judge/issues 
-sourcerepo : http://github.com/smmsadrnezh/dokuwiki-plugin-judge/+sourcerepo : https://github.com/smmsadrnezh/dokuwiki-plugin-judge/
 donationurl:  donationurl: 
  
Line 23: Line 23:
 //:!: This is a prereleased version. Don't use it in production environment unless you are sure about what you are doing.// //:!: This is a prereleased version. Don't use it in production environment unless you are sure about what you are doing.//
  
 +**Note:** it's not compatible with [[:old_changes#release_2013-12-08_binky|Binky]] because it use template actions but it's compatible with last version.
  
 ===== Description ===== ===== Description =====
  
-The aim of Judge system is to test the correctness of programs and user's answers to questions related to computer science. The main difference between this plugin and other similar judge systems is it's simplicity and minimalistic design and making use of integrated tools of a Wiki software for defining the questions and their answers or test cases. Other main features of this system is the dependency of where users submit their answers or write questions from the other system which run the codes and send back the result, simplicity of nominating a question for judgement, controlling user's access to questions, submissions or answers. The installation process is straightforward and do not need to hack the core of Dokuwiki to use this system with.+The aim of Judge system is to test the correctness of programs and user's answers to questions related to computer science. The main difference between this plugin and other similar judge systems is it's simplicity and minimalistic design and making use of integrated tools of a Wiki software for defining the questions and their answers or test cases. Other main features of this system is the dependency of where users submit their answers or write questions from the other system which run the codes and send back the result, simplicity of nominating a question for judgement, controlling user's access to questions, submissions or answers. The installation process is straightforward and do not need to hack the core of DokuWiki to use this system with.
  
 ===== Installation ===== ===== Installation =====
  
-The installation process is straightforward. Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the pluginFor manual install just download this repository, rename it to "judge" and put it in /lib/plugins/. visit [[:Plugins]] to see more about how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. 
  
 Set the directory which submission codes uploaded into after the installation. You must make this directory outside of directories which is in the web. Set the directory which submission codes uploaded into after the installation. You must make this directory outside of directories which is in the web.
Line 41: Line 42:
 Use the following syntax to create a simple judge block in the page: Use the following syntax to create a simple judge block in the page:
  
-<code> +  {{judge}}
-{{judge}} +
-</code>+
  
 ==== Demo ==== ==== Demo ====
Line 51: Line 50:
 ===== Syntax ===== ===== Syntax =====
  
-^ Parameter Name      ^ Description       ^ How plugin find the value   ^ Default Value          ^  Optional/Mandatory          ^ +^ Parameter Name  ^ Description       ^ How plugin find the value   ^ Default Value          ^  Optional/Mandatory          ^ 
-| submit_id    | unique number for every submission |generated by the plugin|auto increment|Mandatory| +| submit_id     | unique number for every submission  | generated by the plugin   auto increment  | Mandatory  
-| timestamp    | submission time |saving current time on submission insert|.now|Mandatory| +| timestamp     | submission time |saving current time on submission insert   .now  | Mandatory  
-| problem_name    | unique name of every question which is equal to page id of the problem | plugin syntax parameters||Mandatory| +| problem_name  | unique name of every question which is equal to page id of the problem  | plugin syntax parameters   | Mandatory  
-| username    | username of submitter |dokueiki this user||Mandatory| +| username      | username of submitter   dokuwiki this user   | Mandatory  
-| language    | programming language of submission |syntax parameters or user choice when submit ل file format|java|Mandatory| +| language      | programming language of submission |syntax parameters or user choice when submit ل file format   java  | Mandatory  
-| type    | two possible values: output-only and test-case | syntax parameter|test-case|Mandatory| +| type          | two possible values: output-only and test-case  | syntax parameter |  test-case  | Mandatory  
-| status_code    | 0 means running and 1 means done |first it's 0. when the answer specefied it became 1|0|Mandatory| +| status_code   | 0 means running and 1 means done |first it's 0. when the answer specified it became 1    | Mandatory  
-| valid_number    | string which show the run status of programs |set by program which run the codes|null|Optional| +| valid_number  | string which show the run status of programs |set by program which run the codes   null  | Optional  
-| runtime    | the time of running the codes |set by program which run the codes|null|Optional|+| runtime       | the time of running the codes |set by program which run the codes   null  | Optional  |
  
 Basic syntax: Basic syntax:
-<code>{{judge key=value}}</code>+''%%{{judge key=value}}%%''
   * **key** can be one of this:   * **key** can be one of this:
-    * //problem_name//    --- id of question page +    * ''problem_name'' --- ID of question page 
-    * //type// --- test-case/output-only +    * ''type'' --- test-case/output-only 
-    * //language// --- programming language for test-case kind of questions +    * ''language'' --- programming language for test-case kind of questions 
-    * //runtime// --- maximum runtime of the program +    * ''runtime'' --- maximum runtime of the program 
-    * //method// --- tester.cpp/tester.java/diff+    * ''method'' --- tester.cpp/tester.java/diff
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
plugin/judge.1454078548.txt.gz · Last modified: 2016-01-29 15:42 by smmsadrnezh

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki