<commit_before>// load grunt
module.exports = function (grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    // scss -> css
    sass: {
      dist: {
        options: {
          sourcemap: 'none'
        },
        files: {
          'resources/themes/mrheroux/stylesheets/top.min.css': 'resources/themes/mrheroux/stylesheets/top.scss'
        }
      }
    },
    // css-minify CSS output
    cssmin: {
      // clean-css options for little whitespace
      options: {
        format: {
          breaks: {
            afterAtRule: false,
            afterBlockBegins: false,
            afterBlockEnds: false,
            afterComment: false,
            afterProperty: false,
            afterRuleBegins: false,
            afterRuleEnds: false,
            beforeBlockEnds: false,
            betweenSelectors: false
          },
          indentBy: 0,
          indentWith: 'space',
          spaces: {
            aroundSelectorRelation: false,
            beforeBlockBegins: false,
            beforeValue: false,
          },
          wrapAt: false
        },
      },
      target: {
        files: [{
          src: 'resources/themes/mrheroux/stylesheets/top.min.css',          
	dest: 'resources/themes/mrheroux/stylesheets/top.min.css',
        }]
      }
    },
    // uglify - combined multiple js files into one
    uglify: {
      build: {
        options : {
          sourceMap : true,
          sourceMapName : 'sourceMap.map'
        },
        src : [
          'resources/themes/mrheroux/scripts/jquery/*.js',
	  'resources/themes/mrheroux/scripts/bootstrap-4.0.0/bootstrap.js'
	 
        ],
        dest : 'resources/themes/mrheroux/scripts/script.min.js'
      }
    },
    // compile when tasks are completed using watch plugin
    watch: {
      css: {
        files: [
	  'resources/themes/mrheroux/stylesheets/*.scss',
	  'resources/themes/mrheroux/stylesheets/**/*.scss'
	],
        tasks: ['sass', 'cssmin']
      },
      js: {
        files: [
          'resources/themes/mrheroux/scripts/*.js',
        ],
        tasks: ['uglify']
      }
    }
  });
  // load grunt plugins
  grunt.loadNpmTasks('grunt-contrib-sass');
  grunt.loadNpmTasks('grunt-contrib-cssmin');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // register grun tasks
  grunt.registerTask('default', ['watch']);
};
<commit_msg>Adds support for other themes<commit_after>// load grunt
module.exports = function (grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    // scss -> css
    sass: {
      dist: {
        options: {
          sourcemap: 'none'
        },
        files: {
          'resources/themes/*/stylesheets/top.min.css': 'resources/themes/*/stylesheets/top.scss'
        }
      }
    },
    // css-minify CSS output
    cssmin: {
      // clean-css options for little whitespace
      options: {
        format: {
          breaks: {
            afterAtRule: false,
            afterBlockBegins: false,
            afterBlockEnds: false,
            afterComment: false,
            afterProperty: false,
            afterRuleBegins: false,
            afterRuleEnds: false,
            beforeBlockEnds: false,
            betweenSelectors: false
          },
          indentBy: 0,
          indentWith: 'space',
          spaces: {
            aroundSelectorRelation: false,
            beforeBlockBegins: false,
            beforeValue: false,
          },
          wrapAt: false
        },
      },
      target: {
        files: [{
          src: 'resources/themes/*/stylesheets/top.min.css',          
	dest: 'resources/themes/*/stylesheets/top.min.css',
        }]
      }
    },
    // uglify - combined multiple js files into one
    uglify: {
      build: {
        options : {
          sourceMap : true,
          sourceMapName : 'sourceMap.map'
        },
        src : [
          'resources/themes/*/scripts/jquery/*.js',
	  'resources/themes/*/scripts/bootstrap-4.0.0/bootstrap.js'
	 
        ],
        dest : 'resources/themes/*/scripts/script.min.js'
      }
    },
    // compile when tasks are completed using watch plugin
    watch: {
      css: {
        files: [
	  'resources/themes/*/stylesheets/*.scss',
	  'resources/themes/*/stylesheets/**/*.scss'
	],
        tasks: ['sass', 'cssmin']
      },
      js: {
        files: [
          'resources/themes/*/scripts/*.js',
        ],
        tasks: ['uglify']
      }
    }
  });
  // load grunt plugins
  grunt.loadNpmTasks('grunt-contrib-sass');
  grunt.loadNpmTasks('grunt-contrib-cssmin');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // register grun tasks
  grunt.registerTask('default', ['watch']);
};

{'fraction_non_alphanumeric': 0.13294068153134203, 'fraction_numerical': 0.0016827934371055953, 'mean_word_length': 1.7001703577512777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '447245', 'n_tokens_mistral': 1502, 'n_tokens_neox': 1453, 'n_words': 244}