<commit_before><?php

/*
 * Copyright (C) 2013 Kolibre
 *
 * This file is part of Kolibre-KADOS.
 * Kolibre-KADOS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 2.1 of the License, or
 * at your option) any later version.
 *
 * Kolibre-KADOS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Kolibre-KADOS. If not, see <http://www.gnu.org/licenses/>.
 */

require_once('AbstractType.class.php');

class setProgressState extends AbstractType {

    /**
     * @var string
     */
    public $contentID;

    /**
     * @var string
     NOTE: state should follow the following restrictions
     *     You can have one of the following value:
     *     [START,PAUSE,RESUME,FINISH]
     */
    public $state;


    /******************** public functions ********************/

    /**
     * constructor for class setProgress
     */
    function __construct($_contentID = NULL, $_state = NULL) {
        if (is_string($_contentID)) $this->setContentID($_contentID);
        if (is_string($_state)) $this->setState($_state);
    }


    /******************** class get set methods ********************/

    /**
     * getter for contentID
     */
    function getContentID() {
        return $this->contentID;
    }

    /**
     * setter for contentID
     */<commit_msg>Tidy up function documentation<commit_after><?php

/*
 * Copyright (C) 2013 Kolibre
 *
 * This file is part of Kolibre-KADOS.
 * Kolibre-KADOS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 2.1 of the License, or
 * at your option) any later version.
 *
 * Kolibre-KADOS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Kolibre-KADOS. If not, see <http://www.gnu.org/licenses/>.
 */

require_once('AbstractType.class.php');

class setProgressState extends AbstractType {

    /**
     * @var string
     */
    public $contentID;

    /**
     * @var string
     *     NOTE: type should follow the following restrictions
     *     You can have one of the following value
     *     START
     *     PAUSE
     *     RESUME
     *     FINISH
     */
    public $state;


    /******************** public functions ********************/

    /**
     * constructor for class setProgress
     */
    function __construct($_contentID = NULL, $_state = NULL) {
        if (is_string($_contentID)) $this->setContentID($_contentID);
        if (is_string($_state)) $this->setState($_state);
    }


    /******************** class get set methods ********************/

    /**
     * getter for contentID
     */
    function getContentID() {
        return $this->contentID;
    }

    /**
     * setter for contentID
     */
{'fraction_non_alphanumeric': 0.13492990654205608, 'fraction_numerical': 0.0035046728971962616, 'mean_word_length': 2.788716814159292, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '6331910', 'n_tokens_mistral': 949, 'n_tokens_neox': 920, 'n_words': 346}