<commit_before>var fs = require('fs');

module.exports = function ( grunt ) {
	var projectName = 'mytravis';

  grunt.initConfig({
    lint: {
      files: ['js/**/*.src.js', 'specs/**/*.spec.js']
    },

    concat: {
      js: {
        src: ['js/**/*.js'],
        dest: 'build/'+projectName+'.src.js'
      },

      css: {
        src: ['css/**/*.css'],
        dest: 'build/'+projectName+'.src.css'
      }
    },

    min: {
      dist: {
        src: [''+projectName+'.src.js'],
        dest: ''+projectName+'.min.js'
      },

      build: {
        src: ['build/'+projectName+'.src.js'],
        dest: 'build/'+projectName+'.min.js'
      },
    },

    // Not working
    cssmin: {
      dist: {
        src: [''+projectName+'.src.css'],
        dest: ''+projectName+'.min.css'
      },

      build: {
        src: ['build/'+projectName+'.src.css'],
        dest: 'build/'+projectName+'.min.css'
      }
    },
    
    imgs: {
			build: {
				src: 'imgs',
				dest: 'build'
			}
    },

    //watch: {
        //files: ['js/**/*.js', 'css/**/*.css'],
        //tasks: 'reload'
    //},

    zip: {
      dist: {
        exclude: ['./.git\*', './node_modules\*', './imgs/screenshots\*'],
        src: '.',
        dest: ''+projectName+'.zip'
      }
    }
  });

  // Aliased tasks (for readability purposes on "build" task)
  grunt.registerTask('o:cssmin', 'cssmin:build');
  grunt.registerTask('o:jsmin', 'min:build');
  grunt.registerTask('o:jslint', 'lint');
  grunt.registerTask('o:min', 'min:dist');
  grunt.registerTask('o:zip', 'zip:dist');
  grunt.registerTask('o:test', 'test');
  grunt.registerTask('o:imgs', 'imgs');
  grunt.registerTask('o:build', 'o:test o:jslint concat o:jsmin o:imgs');

  
  grunt.registerMultiTask('imgs', 'Copy images to the build folder', function () {
      var done = this.async();

      if (fs.existsSync(this.data.src)) {<commit_msg>Simplifying tasks on grunt.js<commit_after>var fs = require('fs');

module.exports = function ( grunt ) {
	var projectName = 'mytravis';

  grunt.initConfig({
    lint: {
      files: ['js/**/*.src.js', 'specs/**/*.spec.js']
    },

    min: {
      build: {
        src: ['build/'+projectName+'.src.js'],
        dest: 'build/'+projectName+'.min.js'
      },
    },

    // Not working
    cssmin: {
      build: {
        src: ['build/'+projectName+'.src.css'],
        dest: 'build/'+projectName+'.min.css'
      }
    },
    
    imgs: {
			build: {
				src: 'imgs',
				dest: 'build'
			}
    },

    zip: {
      dist: {
        exclude: ['./.git\*', './node_modules\*', './imgs/screenshots\*'],
        src: '.',
        dest: ''+projectName+'.zip'
      }
    }
  });

  // Aliased tasks (for readability purposes on "build" task)
  grunt.registerTask('o:cssmin', 'cssmin:build');
  grunt.registerTask('o:jsmin', 'min:build');
  grunt.registerTask('o:jslint', 'lint');
  grunt.registerTask('o:min', 'min:dist');
  grunt.registerTask('o:zip', 'zip:dist');
  grunt.registerTask('o:test', 'test');
  grunt.registerTask('o:imgs', 'imgs');
  grunt.registerTask('o:build', 'o:test o:jslint o:jsmin o:imgs');

  
  grunt.registerMultiTask('imgs', 'Copy images to the build folder', function () {
      var done = this.async();

      if (fs.existsSync(this.data.src)) {
{'fraction_non_alphanumeric': 0.22167638931532085, 'fraction_numerical': 0.0, 'mean_word_length': 2.331288343558282, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6728319', 'n_tokens_mistral': 1234, 'n_tokens_neox': 1185, 'n_words': 197}