<commit_before>/* istanbul ignore next */
module.exports = function(grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    jsbeautifier: {
      files: ["*.js", "*.json", "!*.min.js"],
      options: {
        js: {
          indentSize: 2
        }
      }
    },
    uglify: {
      options: {
        removeComments: true,
        banner: '/*! <%= pkg.name %> ©<%= grunt.template.today("yyyy") %> <%= pkg.author %> */\n '
      },
      puplish: {
        files: [{
          expand: true,
          cwd: './',
          src: ['*.js', '!Gruntfile.js', '!**/node_modules/**', '!command.js'],
          dest: './publish_files',
          ext: '.js'
        }]
      }
    },
    shell: {
      new_folder: {
        command: 'mkdir publish_files'
      },
      copy: {
        command: 'cp command.js ./publish_files/command.js'
      },
      minify: {
        command: 'grunt uglify:puplish'
      },
      add_readme: {
        command: 'cp ./README.md ./publish_files/README.md'
      },
      cd: {
        command: 'cd ./publish_files'
      },
      publish: {
        command: 'npm publish'
      },
      cd_back: {
        command: 'cd ..'
      },
      remove_folder: {
        command: 'rm -rf publish_files'
      }
    }

  });
  grunt.loadNpmTasks("grunt-jsbeautifier");
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-shell');

  grunt.registerTask('default', ['jsbeautifier']);
  grunt.registerTask('publish', ['shell']);

};<commit_msg>better grunt<commit_after>/* istanbul ignore next */
module.exports = function(grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    jsbeautifier: {
      files: ["*.js", "*.json", "!*.min.js"],
      options: {
        js: {
          indentSize: 2
        }
      }
    },
    uglify: {
      options: {
        removeComments: true,
        banner: '/*! <%= pkg.name %> ©<%= grunt.template.today("yyyy") %> <%= pkg.author %> */\n '
      },
      puplish: {
        files: [{
          expand: true,
          cwd: './',
          src: ['*.js', '!Gruntfile.js', '!**/node_modules/**', '!command.js'],
          dest: './publish_files',
          ext: '.js'
        }]
      }
    },
    shell: {
      publish: {
        command: [
          'mkdir publish_files',
          'cp command.js ./publish_files/command.js',
          'cp ./README.md ./publish_files/README.md',
          'grunt uglify:puplish',
          'cd ./publish_files',
          'npm publish',
          'cd ..',
          'rm -rf publish_files'
        ].join('&&')
      }
    }

  });
  grunt.loadNpmTasks("grunt-jsbeautifier");
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-shell');

  grunt.registerTask('default', ['jsbeautifier']);
  grunt.registerTask('publish', ['shell:publish']);

};
{'fraction_non_alphanumeric': 0.18933239138113742, 'fraction_numerical': 0.0007064641469445425, 'mean_word_length': 1.8235294117647058, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4385898', 'n_tokens_mistral': 998, 'n_tokens_neox': 957, 'n_words': 156}