<commit_before>/**
 * © <NAME>, 2014-2015
 * Site: http://alexbuzin.me/
 * Email: <EMAIL>
*/

/**
 * WhitestormJS plugin loop
 *
 * @param  {Function} func - Function to be executed
 */
WHS.loop = function( func ) {

    this.loop = {
        func: func,
        id: WHS.loops.length,
        enabled: false
    };

    WHS.loops.push( this.loop );

}

/**
 * Starts the loop
 */
WHS.loop.prototype.start = function() {

    this.loop.enabled = true;

};

/**
 * Stops the loop
 */
WHS.loop.prototype.stop = function() {

    this.loop.enabled = false;

};

/**
 * Removes loop from WHS.loops array.
 */
WHS.loop.prototype.remove = function() {

    this.loop.enabled = false;

    WHS.loops.filter( el => {
    	return el !== this.loop;
    });

};<commit_msg>loop\<commit_after>/**
 * © <NAME>, 2014-2015
 * Site: http://alexbuzin.me/
 * Email: <EMAIL>
*/

/**
 * WhitestormJS plugin loop
 *
 * @param  {Function} func - Function to be executed
 */
WHS.loop = function( func ) {

    this.loop = {
        func: func,
        id: WHS.loops.length,
        clock: new THREE.Clock(),
        enabled: false
    };

    WHS.loops.push( this.loop );

}

/**
 * Starts the loop
 */
WHS.loop.prototype.start = function() {

    this.loop.clock.start();

    this.loop.enabled = true;

};

/**
 * Stops the loop
 */
WHS.loop.prototype.stop = function() {

    this.loop.clock.stop();

    this.loop.enabled = false;

};

/**
 * Removes loop from WHS.loops array.
 */
WHS.loop.prototype.remove = function() {

    this.loop.clock.stop();

    this.loop.enabled = false;

    WHS.loops.filter( el => {
    	return el !== this.loop;
    });

};
{'fraction_non_alphanumeric': 0.1784841075794621, 'fraction_numerical': 0.009779951100244499, 'mean_word_length': 2.241584158415842, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7178693', 'n_tokens_mistral': 623, 'n_tokens_neox': 589, 'n_words': 122}