<commit_before>module.exports = function(grunt) {
  grunt.initConfig({
    js_src: ['m/**/index.js', 'u/**/index.js', 'm/**/*.js', 'g/*.js', 'g/**/index.js', 'g/**/*.js', 'u/**/*.js'],
    js_test_src: ['test/m/**/index.js', 'test/g/**/index.js', 'test/u/**/index.js', 'test/m/**/*.js', 'test/g/**/*.js', 'test/u/**/*.js'],
    handlebars: {
      dist: {
        src: 'templates/*.html',
        dest: 'g/jst.js',
        options: {
          processName: function(filePath) {
              return filePath.replace(/^templates\//, '').replace(/\.html$/, '');
          }
        }
      }
    },
    jshint: {
      dist: {
        src: '<%= js_src %>',
        options: {
          curly: false,
          laxbreak: true,
          eqeqeq: true,
          latedef: true,
          newcap: true,
          noarg: true,
          sub: true,
          undef: true,
          boss: true,
          eqnull: true,
          browser: true,
          globals: {
            $: false,
            _: false,
            console: false,
            Backbone: false,
            HumanView: false,
            HumanModel: false,
            Handlebars: false,
            M: false,
            G: false,
            U: false,
            JST: false
          }
        }
      },
      test: {
        src: '<%= js_test_src %>',
        options: {
          curly: false,
          laxbreak: true,
          eqeqeq: true,
          latedef: true,
          newcap: true,
          noarg: true,
          sub: true,
          undef: true,
          boss: true,
          eqnull: true,
          browser: true,
          globals: {
            $: false,
            _: false,
            Backbone: false,
            HumanView: false,
            HumanModel: false,
            Handlebars: false,
            M: false,
            G: false,
            U: false,
            JST: false,
            expect: false,
            describe: false,
            it: false
          }
        }
      }
    },
    uglify: {
      dist : {
        src: '<%= js_src %>',
        dest : 'dist/danda-ui.min.js',
        options: {
          mangle: true,
          compress: true,
          report: 'gzip',
          sourceMap: 'dist/danda-ui.map',
          sourceMapRoot: '/js/source',
          sourceMappingURL: 'danda-ui.map',
        }
      }
    },
    stylus: {
      compile: {
        files: {
          'dist/css/danda-ui.css': ['css/*.styl']
        },
        options: {
          paths: ['css', 'dist/css'],
          import: ['theme/dark'],
          'include css': true
        }
      }
    },
    watch: {
      files: ['<%= js_src %>', '<%= js_test_src %>', 'css/**.styl', 'templates/*.html'],
      tasks: ['handlebars', 'jshint', 'uglify', 'stylus']
    }
  });

  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch'); 
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-stylus');
  grunt.loadNpmTasks('grunt-contrib-handlebars');

  grunt.registerTask('default', ['handlebars', 'jshint', 'uglify', 'stylus']);
};
<commit_msg>Added font icon css file to watch list<commit_after>module.exports = function(grunt) {
  grunt.initConfig({
    js_src: ['m/**/index.js', 'u/**/index.js', 'm/**/*.js', 'g/*.js', 'g/**/index.js', 'g/**/*.js', 'u/**/*.js'],
    js_test_src: ['test/m/**/index.js', 'test/g/**/index.js', 'test/u/**/index.js', 'test/m/**/*.js', 'test/g/**/*.js', 'test/u/**/*.js'],
    handlebars: {
      dist: {
        src: 'templates/*.html',
        dest: 'g/jst.js',
        options: {
          processName: function(filePath) {
              return filePath.replace(/^templates\//, '').replace(/\.html$/, '');
          }
        }
      }
    },
    jshint: {
      dist: {
        src: '<%= js_src %>',
        options: {
          curly: false,
          laxbreak: true,
          eqeqeq: true,
          latedef: true,
          newcap: true,
          noarg: true,
          sub: true,
          undef: true,
          boss: true,
          eqnull: true,
          browser: true,
          globals: {
            $: false,
            _: false,
            console: false,
            Backbone: false,
            HumanView: false,
            HumanModel: false,
            Handlebars: false,
            M: false,
            G: false,
            U: false,
            JST: false
          }
        }
      },
      test: {
        src: '<%= js_test_src %>',
        options: {
          curly: false,
          laxbreak: true,
          eqeqeq: true,
          latedef: true,
          newcap: true,
          noarg: true,
          sub: true,
          undef: true,
          boss: true,
          eqnull: true,
          browser: true,
          globals: {
            $: false,
            _: false,
            Backbone: false,
            HumanView: false,
            HumanModel: false,
            Handlebars: false,
            M: false,
            G: false,
            U: false,
            JST: false,
            expect: false,
            describe: false,
            it: false
          }
        }
      }
    },
    uglify: {
      dist : {
        src: '<%= js_src %>',
        dest : 'dist/danda-ui.min.js',
        options: {
          mangle: true,
          compress: true,
          report: 'gzip',
          sourceMap: 'dist/danda-ui.map',
          sourceMapRoot: '/js/source',
          sourceMappingURL: 'danda-ui.map',
        }
      }
    },
    stylus: {
      compile: {
        files: {
          'dist/css/danda-ui.css': ['css/*.styl']
        },
        options: {
          paths: ['css', 'dist/css'],
          import: ['theme/dark'],
          'include css': true
        }
      }
    },
    watch: {
      files: ['<%= js_src %>', '<%= js_test_src %>', 'css/**.styl', 'templates/*.html', 'dist/css/danda-icons.css'],
      tasks: ['handlebars', 'jshint', 'uglify', 'stylus']
    }
  });

  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch'); 
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-stylus');
  grunt.loadNpmTasks('grunt-contrib-handlebars');

  grunt.registerTask('default', ['handlebars', 'jshint', 'uglify', 'stylus']);
};

{'fraction_non_alphanumeric': 0.1715615471031937, 'fraction_numerical': 0.0, 'mean_word_length': 1.374095238095238, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '5764885', 'n_tokens_mistral': 2060, 'n_tokens_neox': 2031, 'n_words': 374}