<commit_before>(function () {
    'use strict';

    function ChannelStreamRequest() {
        this.headers = [];
        this.body = null;
        this.url = '';
        this.request = null;
        this.handleError = function (request, respText) {
            console.error('request', request);
            console.error('respText', respText);
        };
        this.handleResponse = function (request, respText) {
            console.info('request', request);
            console.info('respText', respText);
        };
        this.handleRequest = function (request) {
        };
        this.handleStateChange = function () {
            var result = this.request.responseText;
            try {
                result = JSON.parse(result);
            } catch (exc) {

            }
            if (this.request.readyState === XMLHttpRequest.DONE) {
                if (this.request.status && this.request.status <= 400) {
                    this.handleResponse(this.request, result);
                } else {
                    this.handleError(this.request, result);
                }
            }
            else {
                this.handleRequest(this.request);
            }
        };
        this.execute = function () {
            this.request = new XMLHttpRequest();
            this.request.onreadystatechange = this.handleStateChange.bind(this);
            if (this.headers) {
                for (var i = 0; i < this.headers.length; i++) {
                    this.request.setRequestHeader(
                        this.headers[i].name, this.headers[i].value);
                }
            }
            if (this.body) {
                this.request.open('POST', this.url);
                this.request.setRequestHeader('Content-Type', 'application/json');
                this.request.send(JSON.stringify(this.body));
            }
            else {
                this.request.open(this.type, this.url);
            }
        };
    }

    var ChannelStreamConnection = {
        debug: false,
<commit_msg>js client: add missing send()<commit_after>(function () {
    'use strict';

    function ChannelStreamRequest() {
        this.headers = [];
        this.body = null;
        this.url = '';
        this.request = null;
        this.handleError = function (request, respText) {
            console.error('request', request);
            console.error('respText', respText);
        };
        this.handleResponse = function (request, respText) {
            console.info('request', request);
            console.info('respText', respText);
        };
        this.handleRequest = function (request) {
        };
        this.handleStateChange = function () {
            var result = this.request.responseText;
            try {
                result = JSON.parse(result);
            } catch (exc) {

            }
            if (this.request.readyState === XMLHttpRequest.DONE) {
                if (this.request.status && this.request.status <= 400) {
                    this.handleResponse(this.request, result);
                } else {
                    this.handleError(this.request, result);
                }
            }
            else {
                this.handleRequest(this.request);
            }
        };
        this.execute = function () {
            this.request = new XMLHttpRequest();
            this.request.onreadystatechange = this.handleStateChange.bind(this);
            if (this.headers) {
                for (var i = 0; i < this.headers.length; i++) {
                    this.request.setRequestHeader(
                        this.headers[i].name, this.headers[i].value);
                }
            }
            if (this.body) {
                this.request.open('POST', this.url);
                this.request.setRequestHeader('Content-Type', 'application/json');
                this.request.send(JSON.stringify(this.body));
            }
            else {
                this.request.open('GET', this.url);
                this.request.send();
            }
        };
    }

    var ChannelStreamConnection = {
        debug: false,

{'fraction_non_alphanumeric': 0.12151346107203492, 'fraction_numerical': 0.0019403347077370846, 'mean_word_length': 1.4131070801638386, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '6485512', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1018, 'n_words': 179}