<commit_before>"use strict";

var wsEndpoint = "/compute/spectrogram/";
var wsPort = 8080;
var ws = new WebSocket(getwsUrl());
ws.binaryType = "arraybuffer";

var OVERLAP = 0.5;

function getwsUrl() {
    var loc = window.location,
        newUri;
    if (loc.protocol === "https:") {
        newUri = "wss:";
    } else {
        newUri = "ws:";
    }
    newUri += "//" + loc.hostname + ":" + wsPort;
    newUri += wsEndpoint;
    return newUri;
}

/* return an object containing the URL parameters */
function getURLParameters() {
    var params = {};
    if (location.search) {
        var parts = location.search.substring(1).split("&");
        for (var i = 0; i < parts.length; i++) {
            var pair = parts[i].split("=");<commit_msg>putz with websocket port<commit_after>"use strict";

var wsEndpoint = "/compute/spectrogram/";
var wsPort = 8080;
var ws = new WebSocket(getwsUrl(wsPort));
ws.binaryType = "arraybuffer";

var OVERLAP = 0.5;

function getwsUrl(wsPort) {
    var loc = window.location,
        newUri;
    if (loc.protocol === "https:") {
        newUri = "wss:";
    } else {
        newUri = "ws:";
    }
    newUri += "//" + loc.hostname + ":" + wsPort;
    newUri += wsEndpoint;
    return newUri;
}

/* return an object containing the URL parameters */
function getURLParameters() {
    var params = {};
    if (location.search) {
        var parts = location.search.substring(1).split("&");
        for (var i = 0; i < parts.length; i++) {
            var pair = parts[i].split("=");
{'fraction_non_alphanumeric': 0.16479894528675015, 'fraction_numerical': 0.01054713249835201, 'mean_word_length': 2.6490384615384617, 'pattern_counts': {'":': 2, '<': 5, '<?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': '467474', 'n_tokens_mistral': 522, 'n_tokens_neox': 499, 'n_words': 130}