<commit_before>var pjson = require("./package.json");

var filename = pjson.name + '-' + pjson.version + '.zip';
var host = "http://localhost/";

module.exports = function(grunt) {  
  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    zip: {
      'dist': {
        src: [
          'app.js',
          'node_modules/nodemon/*',
          'package.json',
          'selfhelp.sh'
        ],
        dest: 'dist/' + filename
      }
    },
    replace: {
      dist: {
        options: {
          patterns: [
            {
              match: 'version',
              replacement: pjson.version
            },
            {
              match: 'downloadURL',
              replacement: host + filename
            }
          ]
        },
        files: [
          {
            expand: true,
            flatten: true,
            src: [ 'versionInfo.json' ],
            dest: 'dist/'
          }
        ]
      }
    }
  });

  // Load the plugin that provides the "uglify" task.
  grunt.loadNpmTasks('grunt-zip');
  grunt.loadNpmTasks('grunt-replace');

  // Default task(s).
  grunt.registerTask('default', [ 'zip', 'replace' ]);
};<commit_msg>Added copying of the selfhelp.sh to the files in the dist directory.<commit_after>var pjson = require("./package.json");

var filename = pjson.name + '-' + pjson.version + '.zip';
var host = "http://localhost/";

module.exports = function(grunt) {  
  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    zip: {
      'dist': {
        src: [
          'app.js',
          'node_modules/nodemon/*',
          'package.json',
          'selfhelp.sh'
        ],
        dest: 'dist/' + filename
      }
    },
    replace: {
      dist: {
        options: {
          patterns: [
            {
              match: 'version',
              replacement: pjson.version
            },
            {
              match: 'downloadURL',
              replacement: host + filename
            }
          ]
        },
        files: [
          {
            expand: true,
            flatten: true,
            src: [ 'versionInfo.json' ],
            dest: 'dist/'
          }
        ]
      }
    },
    copy: grunt.file.copy("selfhelp.sh", "dist/selfhelp.sh")
  });

  // Load the plugin that provides the "uglify" task.
  grunt.loadNpmTasks('grunt-zip');
  grunt.loadNpmTasks('grunt-replace');

  // Default task(s).
  grunt.registerTask('default', [ 'zip', 'replace' ]);
};
{'fraction_non_alphanumeric': 0.15029821073558647, 'fraction_numerical': 0.0, 'mean_word_length': 1.461839530332681, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4571321', 'n_tokens_mistral': 762, 'n_tokens_neox': 760, 'n_words': 144}