<commit_before>/*global WebSocket:true*/
var DataChannel = require("data-channel")
    , WebSocket = require("ws")

    , hasProtocol = /^wss?:\/\//

module.exports = Stream

function Stream(uri) {
    if (!hasProtocol.test(uri)) {
        uri = "ws://" + uri
    }

    var ws = new WebSocket(uri + "/echo/websocket")

    return DataChannel(ws)
}<commit_msg>wrong sockjs uri<commit_after>/*global WebSocket:true*/
var DataChannel = require("data-channel")
    , WebSocket = require("ws")

    , hasProtocol = /^wss?:\/\//

module.exports = Stream

function Stream(uri) {
    if (!hasProtocol.test(uri)) {
        uri = "ws://" + uri
    }

    var ws = new WebSocket(uri + "/websocket")

    return DataChannel(ws)
}
{'fraction_non_alphanumeric': 0.1713091922005571, 'fraction_numerical': 0.0, 'mean_word_length': 2.9505494505494507, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5717793', 'n_tokens_mistral': 247, 'n_tokens_neox': 234, 'n_words': 52}