<commit_before>/* global module:false */
module.exports = function(grunt) {
   
   var dep = grunt.file.readJSON('dep.json');
   var dep_files = dep.map(function(el) {
      return el.file;
   });
   
   // Project configuration.
   grunt.initConfig({
      app: grunt.file.readJSON('package.json'),
      meta: {
         banner: grunt.file.read('banner.js')
      },
      jshint: {
         options: {
            jshintrc: '.jshintrc'
         },
         gruntfile: {
            src: 'Gruntfile.js'
         },
         files: [ 'jsxc.lib.webrtc.js', 'jsxc.lib.js' ]
      },
      copy: {
         main: {
            files: [ {
               expand: true,
               src: [ 'lib/strophe.jingle/*.js', 'lib/otr/build/**', 'lib/otr/lib/dsa-webworker.js', 'lib/otr/lib/sm-webworker.js', 'lib/otr/lib/const.js', 'lib/otr/lib/helpers.js', 'lib/otr/lib/dsa.js', 'lib/otr/vendor/*.js', 'lib/*.js', 'jsxc.lib.js', 'jsxc.lib.webrtc.js', 'LICENSE', 'sound/**' ],
               dest: 'build/'
            } ]
         },
         i18next: {
          nonull: true,
          src: 'lib/i18next/release/i18next-latest.min.js',
          dest: 'build/'
         }
      },
      clean: [ 'build/' ],
      usebanner: {
         dist: {
            options: {
               position: 'top',
               banner: '<%= meta.banner %>'
            },
            files: {
               src: [ 'build/*.js' ]
            }
         }
      },
      replace: {
         version: {
            src: [ 'build/jsxc.lib.js', 'build/lib/translation.json' ],
            overwrite: true,
            replacements: [
              {
                from: '< $ app.version $ >',
                to: "<%= app.version %>"
              },
              {
                from: '{"de"',
                to: 'var I18next = {"de"'
              },
              {
                from: '}}}',
                to: '}}};'
              }
            ]
         }<commit_msg>Create own replace task for locales<commit_after>/* global module:false */
module.exports = function(grunt) {
   
   var dep = grunt.file.readJSON('dep.json');
   var dep_files = dep.map(function(el) {
      return el.file;
   });
   
   // Project configuration.
   grunt.initConfig({
      app: grunt.file.readJSON('package.json'),
      meta: {
         banner: grunt.file.read('banner.js')
      },
      jshint: {
         options: {
            jshintrc: '.jshintrc'
         },
         gruntfile: {
            src: 'Gruntfile.js'
         },
         files: [ 'jsxc.lib.webrtc.js', 'jsxc.lib.js' ]
      },
      copy: {
         main: {
            files: [ {
               expand: true,
               src: [ 'lib/strophe.jingle/*.js', 'lib/otr/build/**', 'lib/otr/lib/dsa-webworker.js', 'lib/otr/lib/sm-webworker.js', 'lib/otr/lib/const.js', 'lib/otr/lib/helpers.js', 'lib/otr/lib/dsa.js', 'lib/otr/vendor/*.js', 'lib/*.js', 'jsxc.lib.js', 'jsxc.lib.webrtc.js', 'LICENSE', 'sound/**' ],
               dest: 'build/'
            } ]
         },
         i18next: {
          nonull: true,
          src: 'lib/i18next/release/i18next-latest.min.js',
          dest: 'build/'
         }
      },
      clean: [ 'build/' ],
      usebanner: {
         dist: {
            options: {
               position: 'top',
               banner: '<%= meta.banner %>'
            },
            files: {
               src: [ 'build/*.js' ]
            }
         }
      },
      replace: {
         version: {
            src: [ 'build/jsxc.lib.js' ],
            overwrite: true,
            replacements: [
              {
                from: '< $ app.version $ >',
                to: "<%= app.version %>"
              }
            ]
         },
         locales: {
           src: [ 'build/lib/translation.json' ],
           overwrite: true,
           replacements: [
             {
               from: /^{/g,
               to: 'var I18next = {'
             },
             {
               from: /}$/g,
               to: '};'
             }
           ]
         }
{'fraction_non_alphanumeric': 0.17058677890566973, 'fraction_numerical': 0.003961376578360981, 'mean_word_length': 1.138697723663314, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '47300', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1314, 'n_words': 192}