<commit_before>'use strict';

import React from "react";
import Chat from "./Chat.jsx";

const mqtt = require('mqtt'),
    axios = require('axios');

export default class ChatList extends React.Component {
    constructor(props) {
        super(props);

        const username = this.props.username;

        const client = mqtt.connect('ws://mqtt-chat.tk:8883', {
            clientId: username<commit_msg>fix: connect to correct hostname<commit_after>'use strict';

import React from "react";
import Chat from "./Chat.jsx";

const mqtt = require('mqtt'),
    axios = require('axios');

export default class ChatList extends React.Component {
    constructor(props) {
        super(props);

        const username = this.props.username;

        const client = mqtt.connect(`ws://${window.location.hostname}:8883`, {
            clientId: username
{'fraction_non_alphanumeric': 0.12971698113207547, 'fraction_numerical': 0.009433962264150943, 'mean_word_length': 3.2663316582914574, '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': '946516', 'n_tokens_mistral': 249, 'n_tokens_neox': 241, 'n_words': 65}