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

  // load grunt tasks from package.json
  require('load-grunt-tasks')(grunt);

  // Project configuration.
  grunt.initConfig({

    clean: {
      dist: [
        'dist',
        'robert/**/*.pyc',
      ]
    },

    compass: {
      dist: {
        options: {
          sassDir: 'robert/static/sass/',
          cssDir: 'robert/static/css/',
          outputStyle: 'compressed',
        }
      }
    },

    concurrent: {
      server: {
        options: {
          logConcurrentOutput: true,
        },
        tasks: ['watch', 'shell:devserver']
      }
    },

    shell: {
      options: {
        stdout: true,
        stderr: true,
      },
      devserver: {
        command: 'python run_devserver.py',
      },
      freeze: {
        command: 'python freeze.py',
      }
    },

    watch: {
      options: {
        livereload: true,
      },
      python: {
        files: ['robert/**/*.py'],
        tasks: []
      },
      sass: {
        files: ['robert/static/sass/*.scss'],
        tasks: ['compass'],
      },
      templates: {
        files: ['robert/templates/*.html'],
        tasks: [],
      },
      articles: {
        files: ['articles/*.md'],
        tasks: [],
      },
    },
  });

  grunt.registerTask('default', [
    'build',
    'concurrent:server',
  ]);

  grunt.registerTask('build', [
    'clean',
    'compass',
    'shell:freeze',<commit_msg>Add a postbuild task to grunt to remove unnecessary build artifacts<commit_after>module.exports = function(grunt) {

  // load grunt tasks from package.json
  require('load-grunt-tasks')(grunt);

  // Project configuration.
  grunt.initConfig({

    clean: {
      dist: [
        'dist',
        'robert/**/*.pyc',
      ],
      postbuild: [
        'dist/static/sass',
      ],
    },

    compass: {
      dist: {
        options: {
          sassDir: 'robert/static/sass/',
          cssDir: 'robert/static/css/',
          outputStyle: 'compressed',
        }
      }
    },

    concurrent: {
      server: {
        options: {
          logConcurrentOutput: true,
        },
        tasks: ['watch', 'shell:devserver']
      }
    },

    shell: {
      options: {
        stdout: true,
        stderr: true,
      },
      devserver: {
        command: 'python run_devserver.py',
      },
      freeze: {
        command: 'python freeze.py',
      }
    },

    watch: {
      options: {
        livereload: true,
      },
      python: {
        files: ['robert/**/*.py'],
        tasks: []
      },
      sass: {
        files: ['robert/static/sass/*.scss'],
        tasks: ['compass'],
      },
      templates: {
        files: ['robert/templates/*.html'],
        tasks: [],
      },
      articles: {
        files: ['articles/*.md'],
        tasks: [],
      },
    },
  });

  grunt.registerTask('default', [
    'build',
    'concurrent:server',
  ]);

  grunt.registerTask('build', [
    'clean:dist',
    'compass',
    'shell:freeze',
    'clean:postbuild',
{'fraction_non_alphanumeric': 0.16672190918130594, 'fraction_numerical': 0.0, 'mean_word_length': 1.5446880269814502, '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': '6905124', 'n_tokens_mistral': 981, 'n_tokens_neox': 953, 'n_words': 160}