<commit_before>var mysql       = require('mysql'),
    printit     = require('printit'),
    settings    = require('../../settings');
    
var log = printit({
    prefix: "database",
    date: true
});

var mysqlConnection = mysql.createConnection(settings.db);

mysqlConnection.connect((err) => {
    if err {
        log.error(err.name);
        console.error(err.stack);
        process.exit();
    }
    
    log.info("Connected to database with ID " + connection.threadId);
});
<commit_msg>Fixed typos (damn you CoffeeScript)<commit_after>var mysql       = require('mysql'),
    printit     = require('printit'),
    settings    = require('../../settings');
    
var log = printit({
    prefix: "database",
    date: true
});

var mysqlConnection = mysql.createConnection(settings.db.mysql);

mysqlConnection.connect((err) => {
    if(err) {
        log.error(err.name);
        console.error(err.stack);
        process.exit();
    }
    
    log.info("Connected to database with ID " + mysqlConnection.threadId);
});

{'fraction_non_alphanumeric': 0.1572265625, 'fraction_numerical': 0.0, 'mean_word_length': 2.727272727272727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6681716', 'n_tokens_mistral': 303, 'n_tokens_neox': 300, 'n_words': 61}