<commit_before>'use strict';

const express = require('express');
const app = express();
const path = require('path');
const twilio = require('twilio');
const bodyparser = require('body-parser');

const onConnect = require('./lib/socket').onConnect;
const twilioRoute = require('./lib/twilio');
// twilio.sendTestMessage();

app.use(express.static(path.join(__dirname, 'public')));
app.use(bodyparser.urlencoded({ extended: false }));
app.use(bodyparser.json());
app.post('/twilio/response', twilio.webhook({ validate: false }), twilioRoute.response);

const server = require('http').createServer(app);
const io = require('socket.io')(server);
const redis = require('redis').createClient;
const adapter = require('socket.io-redis');
const pub = redis(process.env.REDIS_PORT, process.env.REDIS_HOST, {
  auth_pass: <PASSWORD>
});
const sub = redis(process.env.REDIS_PORT, process.env.REDIS_HOST, {
  return_buffers: true,
  auth_pass: <PASSWORD>
});
const io = require('socket.io')(server);
io.adapter(adapter({
  pubClient: pub,
  subClient: sub
}));

server.listen(process.env.port || 3000);

io.on('connection', onConnect);
<commit_msg>test without redis<commit_after>'use strict';

const express = require('express');
const app = express();
const path = require('path');
const twilio = require('twilio');
const bodyparser = require('body-parser');

const onConnect = require('./lib/socket').onConnect;
const twilioRoute = require('./lib/twilio');
// twilio.sendTestMessage();

app.use(express.static(path.join(__dirname, 'public')));
app.use(bodyparser.urlencoded({ extended: false }));
app.use(bodyparser.json());
app.post('/twilio/response', twilio.webhook({ validate: false }), twilioRoute.response);

const server = require('http').createServer(app);
const io = require('socket.io')(server);
// const redis = require('redis').createClient;
// const adapter = require('socket.io-redis');
// const pub = redis(process.env.REDIS_PORT, process.env.REDIS_HOST, {
//   auth_pass: <PASSWORD>
// });
// const sub = redis(process.env.REDIS_PORT, process.env.REDIS_HOST, {
//   return_buffers: true,
//   auth_pass: <PASSWORD>
// });
const io = require('socket.io')(server);
// io.adapter(adapter({
  pubClient: pub,
  subClient: sub
}));

server.listen(process.env.port || 3000);

io.on('connection', onConnect);

{'fraction_non_alphanumeric': 0.187797490263955, 'fraction_numerical': 0.0034617048896581565, 'mean_word_length': 5.780058651026393, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2908028', 'n_tokens_mistral': 748, 'n_tokens_neox': 743, 'n_words': 148}