{"size": 1700, "ext": "js", "max_stars_repo_path": "src/js/definitions.js", "max_stars_repo_name": "artfultom/whom-i-know", "max_stars_repo_stars_event_min_datetime": "2015-05-25T12:43:00.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-28T13:46:02.000Z", "max_issues_repo_path": "src/js/definitions.js", "max_issues_repo_name": "artfultom/whom-i-know", "max_issues_repo_issues_event_min_datetime": "2015-05-26T10:26:56.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-28T17:07:26.000Z", "max_forks_repo_path": "src/js/definitions.js", "max_forks_repo_name": "artfultom/whom-i-know", "max_forks_repo_forks_event_min_datetime": "2015-05-25T12:42:51.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-28T13:46:40.000Z"}
{"max_stars_count": 88, "max_issues_count": 4, "max_forks_count": 55, "avg_line_length": 29.3103448276, "max_line_length": 78, "alphanum_fraction": 0.5017647059}
if (!String.prototype.format) {
    String.prototype.format = function() {
        var args = arguments;
        return this.replace(/{(\d+)}/g, function(match, number) {
            return typeof args[number] !== 'undefined' ? args[number] : match;
        });
    };
} else {
    console.error('String.prototype.format already exists');
}

if (!Array.prototype.cutIntoPieces) {
    Array.prototype.cutIntoPieces = function(pieceSize) {
        var result = [];
        var temp = this.slice(0);

        while (temp.length > 0) {
            result.push(temp.splice(0, pieceSize));
        }

        return result;
    };
} else {
    console.error('Array.prototype.cutIntoPieces already exists');
}

var httpUtils = {
    hashParam: function(paramName, value) {
        var sPageURL = window.location.hash.substring(1);
        var sURLVariables = sPageURL.split('&');

        if (value === undefined) {
            var result = sURLVariables
                .filter(function(item) {
                    return item.split('=')[0] === paramName;
                })
                .map(function(item) {
                    return item.split('=')[1];
                });

            return result.length > 1 ? result : result[0];
        } else {
            var changed = sURLVariables.some(function(param, index, self) {
                if (param.split('=')[0] === paramName) {
                    self[index] = paramName + '=' + value;

                    return true;
                }
            });

            if (!changed) {
                sURLVariables.push(paramName + '=' + value);
            }

            window.location.hash = '#' + sURLVariables.join('&');
        }
    }
};