<commit_before>var rsvp = require('rsvp'),
    postgrator = require('postgrator'),
    log = require('loglevel');

module.exports = function(postgresUrl) {
  return function() {
    return new rsvp.Promise(function (resolve, reject) {
      postgrator.setConfig({
        migrationDirectory: __dirname + '/migrations',
        schemaTable: 'xmlforms_migrations',
        driver: 'pg',
        logProgress: log.getLevel() <= log.levels.DEBUG,
        connectionString: postgresUrl
      });

      postgrator.migrate('201606281159', function(err, migrations) {
        if (err) {
          reject(err);
        } else {
          postgrator.endConnection(function() {
            resolve(migrations);
          });
        }
      });
    });
  };
};
<commit_msg>Update migration date<commit_after>var rsvp = require('rsvp'),
    postgrator = require('postgrator'),
    log = require('loglevel');

module.exports = function(postgresUrl) {
  return function() {
    return new rsvp.Promise(function (resolve, reject) {
      postgrator.setConfig({
        migrationDirectory: __dirname + '/migrations',
        schemaTable: 'xmlforms_migrations',
        driver: 'pg',
        logProgress: log.getLevel() <= log.levels.DEBUG,
        connectionString: postgresUrl
      });

      postgrator.migrate('201711101200', function(err, migrations) {
        if (err) {
          reject(err);
        } else {
          postgrator.endConnection(function() {
            resolve(migrations);
          });
        }
      });
    });
  };
};

{'fraction_non_alphanumeric': 0.13577023498694518, 'fraction_numerical': 0.015665796344647518, 'mean_word_length': 2.460496613995485, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6927563', 'n_tokens_mistral': 461, 'n_tokens_neox': 453, 'n_words': 78}