<commit_before>module.exports = function (grunt) {
  'use strict';

  // Project configuration.
  grunt.initConfig({
    // secret.json contains the host, username and password for a server to
    // run the tests on.
    secret: grunt.file.readJSON('secret.json'),
    test: {
      files: ['test/**/*.js']
    },
    nodeunit: {
      files: ['test/**/*.js']
    },
    beautify: {
      files: '<%= jshint.files %>'
    },
    watch: {
      files: '<%= jshint.files %>',
      tasks: 'default'
    },
    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        boss: true,
        eqnull: true,
        node: true,
        globals: {
          exports: true
        }
      },
      files: ['grunt.js', 'tasks/**/*.js', 'test/**/*.js']
    },
    sftp: {
      test: {
        files: {
          "./": "tasks/**/*.js"
        },
        options: {
          host: '<%= secret.host %>',
          username: '<%= secret.username %>',
          // password auth
          password: '<%= <PASSWORD> %>'
          // private key auth
          /*
          privateKey: grunt.file.read('id_rsa'),
          passphrase: '<%= <PASSWORD>.passphrase %>',
          */
          // create directories
          /*
          path: "/tmp/does/not/exist/",
          createDirectories: true
          */
        }
      }
    },
    sshexec: {
      test: {
        // single command
        // command: 'uptime',
        // multiple commands
        command: ['uptime', 'ls', 'uptime'],
        options: {
          host: '<%= secret.host %>',
          username: '<%= secret.username %>',
          // password auth
          password: '<%= <PASSWORD> %>'
          // private key auth
          /*
          privateKey: grunt.file.read('id_rsa'),
          passphrase: '<%= <PASSWORD>.<PASSWORD> %>',
          */
        }
      }
    }
  });

  // Actually load this plugin's tasks
  grunt.loadTasks('tasks');

  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-beautify');
  grunt.loadNpmTasks('grunt-bump');
  grunt.loadNpmTasks('grunt-contrib-nodeunit');

  // Default task.
  grunt.registerTask('default', ['jshint','nodeunit']);

  grunt.registerTask('tidy', ['beautify']);

};<commit_msg>show sshexec:test using private key. tidy<commit_after>module.exports = function (grunt) {
  'use strict';

  var secret = grunt.file.readJSON('secret.json');

  // Project configuration.
  grunt.initConfig({
    // secret.json contains the host, username and password for a server to
    // run the tests on.
    secret: secret,
    test: {
      files: ['test/**/*.js']
    },
    nodeunit: {
      files: ['test/**/*.js']
    },
    beautify: {
      files: '<%= jshint.files %>'
    },
    watch: {
      files: '<%= jshint.files %>',
      tasks: 'default'
    },
    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        boss: true,
        eqnull: true,
        node: true,
        globals: {
          exports: true
        }
      },
      files: ['Gruntfile.js', 'tasks/**/*.js', 'test/**/*.js']
    },
    sftp: {
      test: {
        files: {
          "./": "tasks/**/*.js"
        },
        options: {
          host: '<%= secret.host %>',
          username: '<%= secret.username %>',
          // password auth
          password: '<%= <PASSWORD> %>'
          // private key auth
/*
          privateKey: grunt.file.read('id_rsa'),
          passphrase: '<%= secret.passphrase %>',
          */
          // create directories
/*
          path: "/tmp/does/not/exist/",
          createDirectories: true
          */
        }
      }
    },
    sshexec: {
      test: {
        // single command
        // command: 'uptime',
        // multiple commands
        command: ['uptime', 'ls', 'uptime'],
        options: {
          host: secret.host,
          username: secret.username,
          // private key auth
          privateKey: grunt.file.read(secret.privateKeyPath),
          passphrase: <PASSWORD>
        }
      }
    }
  });

  // Actually load this plugin's tasks
  grunt.loadTasks('tasks');

  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-beautify');
  grunt.loadNpmTasks('grunt-bump');
  grunt.loadNpmTasks('grunt-contrib-nodeunit');

  // Default task.
  grunt.registerTask('default', ['jshint', 'nodeunit']);

  grunt.registerTask('tidy', ['beautify']);

};
{'fraction_non_alphanumeric': 0.17040552200172562, 'fraction_numerical': 0.0, 'mean_word_length': 1.652745995423341, 'pattern_counts': {'":': 2, '<': 26, '<?xml version=': 0, '>': 26, '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': '2165413', 'n_tokens_mistral': 1495, 'n_tokens_neox': 1460, 'n_words': 285}