<commit_before>
// Internal Libs
var path = require('path');
// External Deps
var pg = require('pg'),
    cp = require('child_process'),
    S = require('string');

module.exports = function (grunt) {
  var log = function (args, depth) { console.log(require('util').inspect(args, { colors: true, depth: depth })); };


  grunt.task.registerTask('dump', 'Dump a database using pg_dump in your system', function () {
    var done = this.async();

    // Check installation of pg_dump in the system
    cp.exec('pg_dump', function (err, stdout, stderr) {
      if (err) {
        if (err.code === 127) {
          grunt.fail.fatal('Using the dump Task requires pg_dump installed on your system, please check https://github.com/adunstan/postgresql-dev/tree/master/src/bin/pg_dump');
        }
      }
    });

  });

};<commit_msg>'dump' Task now make use of utilities<commit_after>
// Internal Libs
var path = require('path');
// External Deps
var pg = require('pg'),
    cp = require('child_process'),
    S = require('string');
// Debugging dirtyness
var log = function (args, depth) { console.log(require('util').inspect(args, { colors: true, depth: depth })); };

module.exports = function (grunt) {
  grunt.registerTask('dump-execute', 'Dump a database using pg_dump in your system', function () {
    var done = this.async();
    
  });
  grunt.registerTask('dump', ['check-pg_dump', 'dump-execute']);

};

{'fraction_non_alphanumeric': 0.16394606103619588, 'fraction_numerical': 0.0021291696238466998, 'mean_word_length': 3.563106796116505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1299821', 'n_tokens_mistral': 445, 'n_tokens_neox': 435, 'n_words': 123}