<commit_before>module.exports = function(grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    babel: {
      options: {
        sourceMap: true,
        presets: ['es2015', 'react']
      },
      dist: {
        files: [
          {
            expand: true,
            cwd: 'ui/js',
            src: ['*.js'],
            ext: '.js',
            dest: 'ui/'
          }
        ]
      }
    },
    watch: {
      scripts: {
        files: ['**/*.jsx'],
        tasks: ['babel'],
        options: {
          spawn: false,
        },
      },
    }
  });
  
  grunt.loadNpmTasks('grunt-babel');
  grunt.loadNpmTasks('load-grunt-tasks');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.registerTask('default', ['babel']);
};
<commit_msg>Update grunt setup to compile JSX properly<commit_after>module.exports = function(grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    babel: {
      options: {
        sourceMap: true,
        presets: ['es2015', 'react']
      },
      dist: {
        files: [
          {
            expand: true,
            cwd: 'ui/js',
            src: ['*.js', '*.jsx'],
            ext: '.js',
            dest: 'ui/'
          }
        ]
      }
    },
    watch: {
      scripts: {
        files: ['**/*.jsx'],
        tasks: ['babel'],
        options: {
          spawn: false,
        },
      },
    }
  });
  
  grunt.loadNpmTasks('grunt-babel');
  grunt.loadNpmTasks('load-grunt-tasks');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.registerTask('default', ['babel']);
};

{'fraction_non_alphanumeric': 0.17911392405063292, 'fraction_numerical': 0.005063291139240506, 'mean_word_length': 1.5707317073170732, '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': '1497063', 'n_tokens_mistral': 540, 'n_tokens_neox': 525, 'n_words': 83}