<commit_before>var common = require('../common');
var async  = require('async');

module.exports.connect = function(cb) {
  common.createConnection(function(err, conn) {
    if (err) throw err;
    cb(conn);
  });
};

module.exports.dropSync = function (models, done) {
  if (!Array.isArray(models)) {
    models = [models];
  }

  async.eachSeries(models, function(item, cb) {
    item.drop(function(err) {
      if (err) throw err
      item.sync(function(err) {
        if (err) throw err
        cb();
      });
    });
  }, function() {
    done();
  });
};<commit_msg>Converts indentation from 2 spaces to tabs in test/support/spec_helper.js<commit_after>var common = require('../common');
var async  = require('async');

module.exports.connect = function(cb) {
	common.createConnection(function (err, conn) {
		if (err) throw err;
		cb(conn);
	});
};

module.exports.dropSync = function (models, done) {
	if (!Array.isArray(models)) {
		models = [models];
	}

	async.eachSeries(models, function (item, cb) {
		item.drop(function (err) {
			if (err) throw err

			item.sync(function (err) {
				if (err) throw err

				return cb();
			});
		});
	}, done);
};
{'fraction_non_alphanumeric': 0.17353951890034364, 'fraction_numerical': 0.000859106529209622, 'mean_word_length': 3.2988929889298895, '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': '2984299', 'n_tokens_mistral': 411, 'n_tokens_neox': 389, 'n_words': 90}