<commit_before>var express = require('express')
var bodyParser = require('body-parser')
var path = require('path')
var db = require('./server/db')
var morgan = require('morgan');

//SOCKET requires
var app = require('express')();
var server = require('http').Server(app);
var io = require('socket.io')(server);
//SOCKET
server.listen(8080, function() {
  console.log('listening on portato 8080')
});

app.get('/', function (req, res) {
  res.sendFile(__dirname + '/app/dist');
});

io.on('connection', function(socket){
  socket.on('chat message', function(msg){
    io.emit('chat message', msg);
  });
});

socket.on('disconnect', () => {
  console.log('A user disconnected');
})


//MIDDLEWARE
app.use(morgan('dev'));
app.use(bodyParser.json())<commit_msg>Fixing conflicts with merge<commit_after>var express = require('express')
var bodyParser = require('body-parser')
var path = require('path')
var db = require('./server/db')
var morgan = require('morgan');
var app = require('express')();
var server = require('http').Server(app);
var io = require('socket.io')(server);


server.listen(8080, function() {
  console.log('listening on portato 8080')
});

app.get('/', function (req, res) {
  res.sendFile(__dirname + '/app/dist');
});

io.on('connection', function(socket){
  socket.on('chat message', function(msg){
    io.emit('chat message', msg);
  });
});

//MIDDLEWARE
app.use(morgan('dev'));
app.use(bodyParser.json())
{'fraction_non_alphanumeric': 0.21133659902029392, 'fraction_numerical': 0.01119664100769769, 'mean_word_length': 5.441441441441442, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6973573', 'n_tokens_mistral': 481, 'n_tokens_neox': 465, 'n_words': 103}