{"size": 948, "ext": "js", "max_stars_repo_path": "source/proto_kick.js", "max_stars_repo_name": "Lvovich/aex", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "source/proto_kick.js", "max_issues_repo_name": "Lvovich/aex", "max_issues_repo_issues_event_min_datetime": "2018-02-27T20:22:05.000Z", "max_issues_repo_issues_event_max_datetime": "2018-02-27T20:22:05.000Z", "max_forks_repo_path": "source/proto_kick.js", "max_forks_repo_name": "Lvovich/aex", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 32.6896551724, "max_line_length": 105, "alphanum_fraction": 0.667721519}
/**
 * Пинает подготовленный запрос на подготовленный адрес.
 *
 * @param {Object}      data            - объект от пользователя, с данными для отправки.
 * @param {function()=} responseHandler - пользовательский обработчик ответа.
 *
 * @return {{xhr:XMLHttpRequest, data:Object}|null}
 */
window['AEX'].prototype['kick'] = function(data, responseHandler)
{
    if (!this.validateUserData(data, responseHandler)) {
        console.warn('AEX.kick: Invalid user data or response handler. Aborted.');
        return null;
    }

    var resObj = this.getExchangeData(data);

    if (resObj.aexBoundary) {
        this.xhr.setRequestHeader('Content-Type', 'multipart/form-data; boundary=' + resObj.aexBoundary);
    }

    this.xhr.handleResponse = responseHandler;

    this.xhr.open('POST', this.opts['target'], true);
    this.xhr.timeout = this.opts['waitingtime'];
    this.xhr.send(resObj.userData);

    return {'xhr':this.xhr, 'data':data};
};