<commit_before>// Timer - a very simple JavaScript class to for creating a timer
// Author: <NAME>
// Website: http://jsalovaara.com

;function Timer (url) {

    // Class variables
    var start = null,
        stop = null;

    this.start = function () {
        start = new Date().getTime();
    }

    this.stop = function () {
        stop = new Date().getTime();
    }

    this.getFinalTime = function () {
        return (stop - start);
    }

    this.getCurrentTime = function () {
        return (new Date().getTime() - start);
    }

    var  fixZeros = function (neededLength, number) {
        var neededPadding = neededLength - String(number).length;
        var number = String(number);
        for (var i = 0; i < neededPadding; i++) {
            number = "0" + String(number);
        };
        return number;
    }

    this.getFormattedTime = function (milliseconds) {
        var pastTime = milliseconds;
        var minutes = Math.floor(pastTime / 60000);
        pastTime = pastTime - minutes * 60000;
        var seconds = Math.floor(pastTime / 1000);
        pastTime = pastTime - seconds * 100;
        var mSeconds = pastTime;
        
        return fixZeros(2, minutes) + ":" + fixZeros(2, seconds) + ":" + fixZeros(2, mSeconds);
    }

}
<commit_msg>changed timer to give only 2 mSecs<commit_after>// Timer - a very simple JavaScript class to for creating a timer
// Author: <NAME>
// Website: http://jsalovaara.com

;function Timer (url) {

    // Class variables
    var start = null,
        stop = null;

    this.start = function () {
        start = new Date().getTime();
    }

    this.stop = function () {
        stop = new Date().getTime();
    }

    this.getFinalTime = function () {
        return (stop - start);
    }

    this.getCurrentTime = function () {
        return (new Date().getTime() - start);
    }

    var  fixZeros = function (neededLength, number) {
        var neededPadding = neededLength - String(number).length;
        var number = String(number);
        for (var i = 0; i < neededPadding; i++) {
            number = "0" + String(number);
        };
        return number;
    }

    this.getFormattedTime = function (milliseconds) {
        var pastTime = milliseconds;
        var minutes = Math.floor(pastTime / 60000);
        pastTime = pastTime - minutes * 60000;
        var seconds = Math.floor(pastTime / 1000);
        pastTime = pastTime - seconds * 10000;
        var mSeconds = pastTime;
        
        return fixZeros(2, minutes) + ":" + fixZeros(2, seconds) + ":" + fixZeros(2, mSeconds);
    }

}

{'fraction_non_alphanumeric': 0.12756088132972554, 'fraction_numerical': 0.01816776188635485, 'mean_word_length': 2.0772889417360285, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 5, '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': '1485839', 'n_tokens_mistral': 810, 'n_tokens_neox': 750, 'n_words': 212}