<commit_before>'use strict';


// Declare app level module which depends on filters, and services
angular.module('myApp', [
        'ngRoute',
        'myApp.filters',
        'myApp.services',
        'myApp.directives',
        'myApp.controllers'
    ]).
    filter('toHumanReadableFormat',function () {
        return function (input) {
            var seconds, minutes = 0;
            var millisec

            function pad(n, width, z) {
                z = z || '0';
                n = n + '';
                return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
            }

            millisec = String(input).slice(-3);
            input /= 1000;
            seconds = pad(Math.round(input % 60), 2, 0);
            input /= 60;
            minutes = (input % 60).toFixed(0);
            console.log("seconds:", seconds);
            return [minutes, seconds, millisec].join(':')
        }
    }).
    config(['$routeProvider', function ($routeProvider) {
        $routeProvider.when('/view0', {templateUrl: 'partials/partial0.html', controller: 'GeneralForEvent'});
        $routeProvider.when('/view1', {templateUrl: 'partials/partial1.html', controller: 'GeneralForTrial'});
        $routeProvider.when('/view2', {templateUrl: 'partials/partial1.html', controller: 'GeneralForTrial'});
        $routeProvider.otherwise({redirectTo: '/view1'});
    }]);
<commit_msg>human readable format of time<commit_after>'use strict';


// Declare app level module which depends on filters, and services
angular.module('myApp', [
        'ngRoute',
        'myApp.filters',
        'myApp.services',
        'myApp.directives',
        'myApp.controllers'
    ]).
    filter('toHumanReadableFormat',function () {
        return function (input) {
            var seconds, minutes = 0;
            var millisec

            function pad(n, width, z) {
                z = z || '0';
                n = n + '';
                return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
            }

            millisec = pad(Math.floor(input % 1000), 3, 0);
            input /= 1000;
            seconds = pad(Math.floor(input % 60), 2, 0);
            input /= 60;
            minutes = pad(Math.floor(input % 60), 2, 0);
            console.log("seconds:", seconds);
            return [minutes, seconds, millisec].join(':')
        }
    }).
    config(['$routeProvider', function ($routeProvider) {
        $routeProvider.when('/view0', {templateUrl: 'partials/partial0.html', controller: 'GeneralForEvent'});
        $routeProvider.when('/view1', {templateUrl: 'partials/partial1.html', controller: 'GeneralForTrial'});
        $routeProvider.when('/view2', {templateUrl: 'partials/partial1.html', controller: 'GeneralForTrial'});
        $routeProvider.otherwise({redirectTo: '/view1'});
    }]);

{'fraction_non_alphanumeric': 0.15578947368421053, 'fraction_numerical': 0.018947368421052633, 'mean_word_length': 2.1748329621380846, 'pattern_counts': {'":': 0, '<': 3, '<?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': '172940', 'n_tokens_mistral': 870, 'n_tokens_neox': 808, 'n_words': 181}