<commit_before>var utility = exports,
    async = require('async'),
    spawn = require('child_process').spawn,
    BigNumber = require('big-number').n,
    request = require('request'),
    winston = require('winston');
var transports = [new(winston.transports.Console)({
        'timestamp': true
    }),
    new(winston.transports.File)({
        filename: 'utility.log',
        level: 'info'
    })
];
var logger = new(winston.Logger)({
    transports: transports
});
var redis = require('redis');
var parseRedisUrl = require('parse-redis-url')(redis);
var url = process.env.REDIS_URL || "redis://127.0.0.1:6379";
var options = parseRedisUrl.parse(url);
var client = redis.createClient(options.port, options.host, {auth_pass:options.password});
utility.redis = client;
utility.kue = require('kue');
utility.jobs = utility.kue.createQueue({
    redis: options
});
utility.jobs.promote();
utility.db = require('monk')(process.env.MONGO_URL || "mongodb://localhost/dota");
utility.matches = utility.db.get('matches');
utility.matches.index('match_id', {<commit_msg>auth twice?<commit_after>var utility = exports,
    async = require('async'),
    spawn = require('child_process').spawn,
    BigNumber = require('big-number').n,
    request = require('request'),
    winston = require('winston');
var transports = [new(winston.transports.Console)({
        'timestamp': true
    }),
    new(winston.transports.File)({
        filename: 'utility.log',
        level: 'info'
    })
];
var logger = new(winston.Logger)({
    transports: transports
});
var redis = require('redis');
var parseRedisUrl = require('parse-redis-url')(redis);
var url = process.env.REDIS_URL || "redis://127.0.0.1:6379";
var options = parseRedisUrl.parse(url);
var client = redis.createClient(options.port, options.host, {auth_pass:options.password});
client.auth(options.password);
utility.redis = client;
utility.kue = require('kue');
utility.jobs = utility.kue.createQueue({
    redis: options
});
utility.jobs.promote();
utility.db = require('monk')(process.env.MONGO_URL || "mongodb://localhost/dota");
utility.matches = utility.db.get('matches');
utility.matches.index('match_id', {
{'fraction_non_alphanumeric': 0.17753120665742025, 'fraction_numerical': 0.009246417013407305, 'mean_word_length': 4.59173126614987, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6454178', 'n_tokens_mistral': 744, 'n_tokens_neox': 723, 'n_words': 124}