{"size": 1356, "ext": "js", "max_stars_repo_path": "demo/app.js", "max_stars_repo_name": "massiveart/husky-base", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "demo/app.js", "max_issues_repo_name": "massiveart/husky-base", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "demo/app.js", "max_forks_repo_name": "massiveart/husky-base", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.7894736842, "max_line_length": 98, "alphanum_fraction": 0.4668141593}
require.config({
    baseUrl: '../'
});

require(['src/husky'], function(husky) {

    'use strict';


    function main() {
        zone.reset();

        var app = husky({ debug: true });
        app.start().then(function() {
            app.logger.log(app);
            app.logger.log('Bootstrapping the application took ' + zone.time() + ' of CPU time.');
        }, function() {
            app.logger.log(arguments);
        });
    }


    /*
     * This zone starts a timer at the start of each task,
     * and stops it at the end. It accumulates the total run
     * time internally, exposing it via `zone.time()`
     */
    var profilingZone = (function() {
        var time = 0,
            // use the high-res timer if available
            timer = performance ?
                performance.now.bind(performance) :
                Date.now.bind(Date);
        return {
            beforeTask: function() {
                this.start = timer();
            },
            afterTask: function() {
                time += timer() - this.start;
            },
            time: function() {
                return Math.floor(time * 100) / 100 + 'ms';
            },
            reset: function() {
                time = 0;
            }
        };
    }());


    /*
     * Bootstrap the app
     */
    zone.fork(profilingZone).run(main);

});
