<commit_before>var request = require('request');
var bunyan = require('bunyan');
var rereddit = require('rereddit');
var config = require('config');
var mongoose = require('mongoose');
var xray = require('x-ray');
var _ = require('lodash');
var async = require('async');

// Connect to mongodb
var connect = function () {
  var options = { server: { socketOptions: { keepAlive: 1 } } };
  mongoose.connect(config.db, options);
};
connect();

mongoose.connection.on('error', console.log);
mongoose.connection.on('disconnected', connect);
<commit_msg>scraper update<commit_after>var request = require('request');
var bunyan = require('bunyan');
var config = require('config');
var mongoose = require('mongoose');
var xray = require('x-ray');
var _ = require('lodash');
var async = require('async');

// Connect to mongodb
var connect = function () {
  var options = { server: { socketOptions: { keepAlive: 1 } } };
  mongoose.connect(config.db, options);
};
connect();

mongoose.connection.on('error', console.log);
mongoose.connection.on('disconnected', connect);

{'fraction_non_alphanumeric': 0.17685794920037629, 'fraction_numerical': 0.0018814675446848542, 'mean_word_length': 5.82051282051282, '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': '3656476', 'n_tokens_mistral': 332, 'n_tokens_neox': 333, 'n_words': 82}