<commit_before>
module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    less: {
      development: {
        options: {
          paths: ["wikked/assets"]
        },
        files: {
          "wikked/static/css/wikked.min.css": "wikked/assets/css/wikked.less",
          "wikked/static/css/jouvence.min.css": "wikked/assets/css/jouvence.less"
        }
      },
      production: {
        options: {
          paths: ["wikked/assets"],
          compress: true
        },
        files: {
          "wikked/static/css/wikked.min.css": "wikked/assets/css/wikked.less",
          "wikked/static/css/jouvence.min.css": "wikked/assets/css/jouvence.less"
        }
      }
    },
    requirejs: {
      development: {
        options: {
          optimize: "none",
          baseUrl: "wikked/assets/js",
          mainConfigFile: "wikked/assets/js/wikked-dev.js",
          dir: "wikked/static/js",
          modules: [
          {
              name: "wikked.app",
              include: ["require.js"]
          },
          {
              name: "wikked.edit",
              exclude: ["wikked.app"]
          }
          ]
        }
      },
      production: {
        options: {
          optimize: "uglify",
          baseUrl: "wikked/assets/js",
          mainConfigFile: "wikked/assets/js/wikked.js",
          dir: "wikked/static/js",
          modules: [
          {
              name: "wikked.app",
              include: ["require.js"]
          },
          {
              name: "wikked.edit",
              exclude: ["wikked.app"]
          }
          ]
        }
      }
    },
    imagemin: {
      all: {
        files: [{
              expand: true,
              cwd: 'wikked/assets/',
              dest: 'wikked/static/',
              src: ['img/*.{png,jpg,gif}']
        }]
      }
    },
    copy: {
      development: {
        files: [
          //{expand: true, cwd: 'wikked/assets/', dest: 'wikked/static/', src: ['img/**']},
          {expand: true, cwd: 'wikked/assets/font-awesome', dest: 'wikked/static/', src: ['fonts/**']}
        ]
      },
      dev_scripts: {
        files: [
          {expand: true, cwd: 'wikked/assets/', dest: 'wikked/static/', src: ['js/wikked.js', 'js/wikked/**']}
        ]
      },
      production: {
        files: [
          {expand: true, cwd: 'wikked/assets/', dest: 'wikked/static/', src: ['js/require.js']},
          {expand: true, cwd: 'wikked/assets/font-awesome', dest: 'wikked/static/', src: ['fonts/**']}
        ]
      }
    },
    jshint: {
      all: ['wikked/assets/js/wikked.js', 'wikked/assets/js/wikked/**/*.js'],
      gruntfile: ['Gruntfile.js']
    },
    watch: {
      scripts: {
        files: ['wikked/assets/js/wikked.js', 'wikked/assets/js/wikked/**'],
        tasks: ['jshint:all', 'copy:dev_scripts']
      },
      styles: {
        files: ['wikked/assets/css/**/*.less'],
        tasks: ['less:development']
      },
      gruntfile: {
        files: ['Gruntfile.js'],
        tasks: ['jshint:gruntfile']
      }
    }
  });

  // Load plugins.
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-requirejs');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-imagemin');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // Default task(s).
  grunt.registerTask('default', ['jshint', 'less:production', 'requirejs:production', 'imagemin:all', 'copy:production']);

  // Other tasks.
  grunt.registerTask('dev', ['less:development', 'requirejs:development', 'copy:production', 'copy:development']);
};

<commit_msg>cm: Remove `imagemin` temporarily.<commit_after>
module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    less: {
      development: {
        options: {
          paths: ["wikked/assets"]
        },
        files: {
          "wikked/static/css/wikked.min.css": "wikked/assets/css/wikked.less",
          "wikked/static/css/jouvence.min.css": "wikked/assets/css/jouvence.less"
        }
      },
      production: {
        options: {
          paths: ["wikked/assets"],
          compress: true
        },
        files: {
          "wikked/static/css/wikked.min.css": "wikked/assets/css/wikked.less",
          "wikked/static/css/jouvence.min.css": "wikked/assets/css/jouvence.less"
        }
      }
    },
    requirejs: {
      development: {
        options: {
          optimize: "none",
          baseUrl: "wikked/assets/js",
          mainConfigFile: "wikked/assets/js/wikked-dev.js",
          dir: "wikked/static/js",
          modules: [
          {
              name: "wikked.app",
              include: ["require.js"]
          },
          {
              name: "wikked.edit",
              exclude: ["wikked.app"]
          }
          ]
        }
      },
      production: {
        options: {
          optimize: "uglify",
          baseUrl: "wikked/assets/js",
          mainConfigFile: "wikked/assets/js/wikked.js",
          dir: "wikked/static/js",
          modules: [
          {
              name: "wikked.app",
              include: ["require.js"]
          },
          {
              name: "wikked.edit",
              exclude: ["wikked.app"]
          }
          ]
        }
      }
    },
    imagemin: {
      all: {
        files: [{
              expand: true,
              cwd: 'wikked/assets/',
              dest: 'wikked/static/',
              src: ['img/*.{png,jpg,gif}']
        }]
      }
    },
    copy: {
      development: {
        files: [
          //{expand: true, cwd: 'wikked/assets/', dest: 'wikked/static/', src: ['img/**']},
          {expand: true, cwd: 'wikked/assets/font-awesome', dest: 'wikked/static/', src: ['fonts/**']}
        ]
      },
      dev_scripts: {
        files: [
          {expand: true, cwd: 'wikked/assets/', dest: 'wikked/static/', src: ['js/wikked.js', 'js/wikked/**']}
        ]
      },
      production: {
        files: [
          {expand: true, cwd: 'wikked/assets/', dest: 'wikked/static/', src: ['js/require.js']},
          {expand: true, cwd: 'wikked/assets/font-awesome', dest: 'wikked/static/', src: ['fonts/**']}
        ]
      }
    },
    jshint: {
      all: ['wikked/assets/js/wikked.js', 'wikked/assets/js/wikked/**/*.js'],
      gruntfile: ['Gruntfile.js']
    },
    watch: {
      scripts: {
        files: ['wikked/assets/js/wikked.js', 'wikked/assets/js/wikked/**'],
        tasks: ['jshint:all', 'copy:dev_scripts']
      },
      styles: {
        files: ['wikked/assets/css/**/*.less'],
        tasks: ['less:development']
      },
      gruntfile: {
        files: ['Gruntfile.js'],
        tasks: ['jshint:gruntfile']
      }
    }
  });

  // Load plugins.
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-requirejs');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-imagemin');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // Default task(s).
  grunt.registerTask('default', ['jshint', 'less:production', 'requirejs:production', 'copy:production']);

  // Other tasks.
  grunt.registerTask('dev', ['less:development', 'requirejs:development', 'copy:production', 'copy:development']);
};


{'fraction_non_alphanumeric': 0.17913678798538762, 'fraction_numerical': 0.0, 'mean_word_length': 1.760268857356236, 'pattern_counts': {'":': 8, '<': 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': '4839057', 'n_tokens_mistral': 2486, 'n_tokens_neox': 2454, 'n_words': 350}