<commit_before>/*
 * grunt-db-migrate
 * https://github.com/unknownexception/grunt-db-migrate
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

/* global process */
module.exports = function (grunt) {
  'use strict';
  grunt.registerTask('migrate', 'Run db-migrate', function (arg1, arg2) {

    var options = this.options();
    var path = require('path');

    console.log(arg1, arg2);
    //var driver = options.driver;
    var done = this.async();

    var args = [path.resolve(process.cwd() + '/node_modules/db-migrate/bin/db-migrate')];

    if (arg1)
      args.push(arg1);
    else
      args.push('up');

    if (arg2)
      args.push(arg2);

    if (options.verbose)
      args.push('--verbose');

    if (options.dir)
      args.push('--migrations-dir=' + options.migrationsDir);
<commit_msg>[FIX] Fixed bug with migrations dir variable<commit_after>/*
 * grunt-db-migrate
 * https://github.com/unknownexception/grunt-db-migrate
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

/* global process */
module.exports = function (grunt) {
  'use strict';
  grunt.registerTask('migrate', 'Run db-migrate', function (arg1, arg2) {

    var options = this.options();
    var path = require('path');

    console.log(arg1, arg2);
    //var driver = options.driver;
    var done = this.async();

    var args = [path.resolve(process.cwd() + '/node_modules/db-migrate/bin/db-migrate')];

    if (arg1)
      args.push(arg1);
    else
      args.push('up');

    if (arg2)
      args.push(arg2);

    if (options.verbose)
      args.push('--verbose');

    if (options.dir)
      args.push('--migrations-dir=' + options.dir);

{'fraction_non_alphanumeric': 0.1699581089168163, 'fraction_numerical': 0.01436265709156194, 'mean_word_length': 2.879350348027842, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3050261', 'n_tokens_mistral': 592, 'n_tokens_neox': 583, 'n_words': 122}