<commit_before>var mysql  = require('mysql');
var config = require(__dirname + '/../config.js');
var movie = require(__dirname + '/movie.js');

var connection = mysql.createConnection({
  host     : config.db.host,
  user     : config.db.user,
  password : <PASSWORD>,
  database : config.db.database,
  supportBigNumbers: true
});

exports.mysql = mysql;
exports.connection = connection;


var insert = function(table, values){
   var sql = 'INSERT INTO ' + table + ' (%keys) VALUES (%values)';
   var k = [];
   var v = [];
   for (var key in values) {
      k.push(key);
      v.push("'" + values[key]  + "'");
   }
   sql.replace('%keys', k.join());
   sql.replace('%values', v.join());
   connection.connect();
   utils.log(sql);
   //connection.query(sql);
   connection.end();
};

exports.insert = insert;

exports.movie = movie;<commit_msg>mojo ripper<commit_after>var mysql  = require('mysql');
var config = require(__dirname + '/../config.js');


var connection = mysql.createConnection({
  host     : config.db.host,
  user     : config.db.user,
  password : <PASSWORD>,
  database : config.db.database,
  supportBigNumbers: true
});

exports.mysql = mysql;
exports.connection = connection;


var insert = function(table, values){
   var sql = 'INSERT INTO ' + table + ' (%keys) VALUES (%values)';
   var k = [];
   var v = [];
   for (var key in values) {
      k.push(key);
      v.push("'" + values[key]  + "'");
   }
   sql.replace('%keys', k.join());
   sql.replace('%values', v.join());
   connection.connect();
   utils.log(sql);
   //connection.query(sql);
   connection.end();
};

exports.insert = insert;

exports.movie = require('./movie.js');
{'fraction_non_alphanumeric': 0.1873873873873874, 'fraction_numerical': 0.0, 'mean_word_length': 3.2938144329896906, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4842279', 'n_tokens_mistral': 550, 'n_tokens_neox': 535, 'n_words': 124}