<commit_before>/** @module database */
"use strict";
var mysql       = require( 'mysql' );
var crypto      = require( 'crypto' );
var Q           = require( 'q' );
var _           = require( 'lodash' )._;
var revalidator = require( 'revalidator' );
var moment      = require( 'moment' );

var server = require( '../server' );
var mailer = require( './mailer' );

var app         = server.app;
var bridgeError = server.error;
var config      = server.config;
var connection  = null;

var recoveryStateUserMap = {};

connection = mysql.createConnection( server.config.database );

connection.connect( function(err) {<commit_msg>configured node-mysql to not auto convert dates for more robust date handling.<commit_after>/** @module database */
"use strict";
var mysql       = require( 'mysql' );
var crypto      = require( 'crypto' );
var Q           = require( 'q' );
var _           = require( 'lodash' );
var revalidator = require( 'revalidator' );
var moment      = require( 'moment' );

var server = require( '../server' );
var mailer = require( './mailer' );

var app         = server.app;
var bridgeError = server.error;
var config      = server.config;
var connection  = null;

var recoveryStateUserMap = {};

var dbConfig = _.merge( server.config.database, {
    dateStrings: true
} );

connection = mysql.createConnection( dbConfig );

connection.connect( function(err) {
{'fraction_non_alphanumeric': 0.14213197969543148, 'fraction_numerical': 0.0, 'mean_word_length': 3.1691842900302114, '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': '1149983', 'n_tokens_mistral': 398, 'n_tokens_neox': 399, 'n_words': 127}