<commit_before><?php
/**
 * ClipIt - JuxtaLearn Web Space
 * PHP version:     >= 5.2
 * Creation date:   2013-10-10
 * Last update:     $Date$
 * @author          <NAME> <<EMAIL>>, URJC JuxtaLearn Team
 * @version         $Version$
 * @link            http://www.juxtalearn.eu
 * @license         GNU Affero General Public License v3
 * @package         ClipIt
 * @subpackage      clipit_api
 */

/**
 * Expose class functions for the ClipIt REST API
 */
function expose_quiz_functions() {
    $api_suffix = "clipit.quiz.";
    $class_suffix = "ClipitQuiz::";
    expose_common_functions($api_suffix, $class_suffix);
    expose_function(
        $api_suffix . "get_task", $class_suffix . "get_task", array(
        "id" => array("type" => "int", "required" => true)
    ), "Get Task in which Quiz is inside of", 'GET', false, true
    );
    expose_function(
        $api_suffix . "add_quiz_questions", $class_suffix . "add_quiz_questions", array(
            "id" => array("type" => "int", "required" => true),
            "quiz_question_array" => array("type" => "array", "required" => true)
        ), "Add Quiz Questions by Id", 'POST', false, true
    );
    expose_function(
        $api_suffix . "set_quiz_questions", $class_suffix . "set_quiz_questions", array(
            "id" => array("type" => "int", "required" => true),
            "quiz_question_array" => array("type" => "array", "required" => true)
        ), "Set Quiz Questions by Id", 'POST', false, true
    );
    expose_function(
        $api_suffix . "remove_quiz_questions", $class_suffix . "remove_quiz_questions", array(<commit_msg>11-02-2015<commit_after><?php
/**
 * ClipIt - JuxtaLearn Web Space
 * PHP version:     >= 5.2
 * Creation date:   2013-10-10
 * Last update:     $Date$
 * @author          <NAME> <<EMAIL>>, URJC JuxtaLearn Team
 * @version         $Version$
 * @link            http://www.juxtalearn.eu
 * @license         GNU Affero General Public License v3
 * @package         ClipIt
 * @subpackage      clipit_api
 */

/**
 * Expose class functions for the ClipIt REST API
 */
function expose_quiz_functions() {
    $api_suffix = "clipit.quiz.";
    $class_suffix = "ClipitQuiz::";
    expose_common_functions($api_suffix, $class_suffix);
    expose_function(
        $api_suffix . "get_task", $class_suffix . "get_task", array(
            "id" => array("type" => "int", "required" => true)
        ), "Get Task in which Quiz is inside of", 'GET', false, true
    );
    expose_function(
        $api_suffix . "add_quiz_questions", $class_suffix . "add_quiz_questions", array(
            "id" => array("type" => "int", "required" => true),
            "quiz_question_array" => array("type" => "array", "required" => true)
        ), "Add Quiz Questions by Id", 'POST', false, true
    );
    expose_function(
        $api_suffix . "set_quiz_questions", $class_suffix . "set_quiz_questions", array(
            "id" => array("type" => "int", "required" => true),
            "quiz_question_array" => array("type" => "array", "required" => true)
        ), "Set Quiz Questions by Id", 'POST', false, true
    );
    expose_function(
        $api_suffix . "remove_quiz_questions", $class_suffix . "remove_quiz_questions", array(
{'fraction_non_alphanumeric': 0.1545144275519702, 'fraction_numerical': 0.00930809804529941, 'mean_word_length': 2.8063754427390792, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4627246', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1041, 'n_words': 253}