<commit_before>import ServerUser from 'socket.io';
import ServerModule from './ServerModule';

var serverUser    = new ServerUser(3000);
let serverModule  = new ServerModule(4123);

let Bridge = {
  modules: {},
  users: {}
};

serverModule.on('connection', (client) => {
  client.on('setDevice', (id, type, version) => {
    console.log(id, type, version);

    IoTz.modules[id] = {
      type:     type,
      version:  version,
      instance: client
    }
  });
});

serverUser.on('connection', (client) => {
  client.on('disconnect', function () {
    console.log('user disconnected');
  });

  client.on('send', () => {

  });

  client.on('ask', () => {

  });
});<commit_msg>Add HTTP server<commit_after>import ServerUser from 'socket.io';
import ServerModule from './ServerModule';
import ServerHttp from 'express';

let serverHttp    = new ServerHttp();
let serverUser    = new ServerUser(3000);
let serverModule  = new ServerModule(4123);

let Bridge = {
  modules: {},
  users: {}
};

serverModule.on('connection', (client) => {
  client.on('setDevice', (id, type, version) => {
    console.log(id, type, version);

    IoTz.modules[id] = {
      type:     type,
      version:  version,
      instance: client
    }
  });
});

serverUser.on('connection', (client) => {
  client.on('disconnect', function () {
    console.log('user disconnected');
  });

  client.on('send', () => {

  });

  client.on('ask', () => {

  });
});

serverHttp.use(ServerHttp.static('public'));
{'fraction_non_alphanumeric': 0.18842530282637954, 'fraction_numerical': 0.010767160161507403, 'mean_word_length': 3.4654654654654653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '53250', 'n_tokens_mistral': 499, 'n_tokens_neox': 476, 'n_words': 99}