<commit_before>// Gruntfile with the configuration of grunt-express and grunt-open. No livereload yet!
module.exports = function (grunt) {

  'use strict';

  // Load Grunt tasks declared in the package.json file
  require('load-grunt-tasks')(grunt);

  // Configure Grunt
  grunt.initConfig({
    yeoman: {
            // Configurable paths
            app: 'app',
            dist: 'dist'
      },
     less: {
            development: {
                 options: {
                   yuicompress: true
                },
                files: [{
                    expand: true,        // Enable dynamic expansion.
                    cwd: 'app/css',  // Src matches are relative to this path.
                    src: ['*.less'],     // Actual pattern(s) to match.
                    dest: 'app/css/dist',  // Destination path prefix.
                    ext: '.css',         // Dest filepaths will have this extension.
                }]
            }
      },
     imagemin: {
          dist: {
              files: [{
                  expand: true,
                  cwd: 'app/images',
                  src: '{,*/}*.{gif,jpeg,jpg,png}',
                  dest: 'app/images/optimized'
              }]
          }
      },

     copy: {
            dist: {
                files: [{
                    expand: true,
                    dot: true,
                    cwd: '<%= yeoman.app %>',
                    dest: '<%= yeoman.dist %>',
                    src: [
                        '*.{ico,png,txt}',
                        '.htaccess',
                        'images/*',
                        'js/*.js',
                        '{,*/}*.html'
                    ]
                }]
            },
            styles: {
                expand: true,
                dot: true,
                flatten: true,
                cwd: '<%= yeoman.app %>/css',
                dest: '<%= yeoman.dist %>/css/',
                src: '{,*/}*.css'<commit_msg>fix optimize image in grunt.js<commit_after>// Gruntfile with the configuration of grunt-express and grunt-open. No livereload yet!
module.exports = function (grunt) {

  'use strict';

  // Load Grunt tasks declared in the package.json file
  require('load-grunt-tasks')(grunt);

  // Configure Grunt
  grunt.initConfig({
    yeoman: {
            // Configurable paths
            app: 'app',
            dist: 'dist'
      },
     less: {
            development: {
                 options: {
                   yuicompress: true
                },
                files: [{
                    expand: true,        // Enable dynamic expansion.
                    cwd: 'app/css',  // Src matches are relative to this path.
                    src: ['*.less'],     // Actual pattern(s) to match.
                    dest: 'app/css/dist',  // Destination path prefix.
                    ext: '.css',         // Dest filepaths will have this extension.
                }]
            }
      },
     imagemin: {
          dist: {
              files: [{
                  expand: true,
                   flatten: true,
                  cwd: 'app/images',
                  src: '{,*/}*.{gif,jpeg,jpg,png}',
                  dest: 'app/images/optimized'
              }]
          }
      },

     copy: {
            dist: {
                files: [{
                    expand: true,
                    dot: true,
                    cwd: '<%= yeoman.app %>',
                    dest: '<%= yeoman.dist %>',
                    src: [
                        '*.{ico,png,txt}',
                        '.htaccess',
                        'images/*',
                        'js/*.js',
                        '{,*/}*.html'
                    ]
                }]
            },
            styles: {
                expand: true,
                dot: true,
                flatten: true,
                cwd: '<%= yeoman.app %>/css',
                dest: '<%= yeoman.dist %>/css/',
                src: '{,*/}*.css'
{'fraction_non_alphanumeric': 0.13021744563859036, 'fraction_numerical': 0.0, 'mean_word_length': 0.8744730679156909, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '327363', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1000, 'n_words': 241}