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

    var sources = grunt.file.readJSON('sources.json');
    var karmaFiles = []
    .concat('bower_components/platform/platform.js')
    .concat(sources)
    .concat('test/unit/**/*.js');

    grunt.initConfig({
        karma: {
            options: {
                configFile: 'karma.conf.js',
                files: karmaFiles
            },

            unit: {

            },

            build: {
                singleRun: true,
                reporters: ['progress', 'coverage'],
                preprocessors: {
                    '**/src/**/*.js': 'coverage'
                }
            }
        },

        jshint: {
            options: {
                jshintrc: true
            },
            build: [
                'gruntfile.js',
                'src/**/*.js',
                'test/**/*.js'
            ]
        },

        concat: {
            build: {
                src: sources,
                dest: 'build/nmouse.js'
            }
        },

        uglify: {
            options: {
                wrap: 'nmouse',
                compress: {
                    global_defs: {
                        'DEBUG': false
                    },
                    dead_code: true
                }
            },
            build: {
                files: {
                    'release/nmouse.js': ['build/nmouse.js']
                }

            }
        }
    });

    grunt.loadNpmTasks('grunt-karma');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-uglify');

    grunt.registerTask('unit', ['karma:unit']);<commit_msg>Changed to use release folder for both min and non-min files Added -min to minified file<commit_after>module.exports = function(grunt) {

    var sources = grunt.file.readJSON('sources.json');
    var karmaFiles = []
    .concat('bower_components/platform/platform.js')
    .concat(sources)
    .concat('test/unit/**/*.js');

    grunt.initConfig({
        karma: {
            options: {
                configFile: 'karma.conf.js',
                files: karmaFiles
            },

            unit: {

            },

            build: {
                singleRun: true,
                reporters: ['progress', 'coverage'],
                preprocessors: {
                    '**/src/**/*.js': 'coverage'
                }
            }
        },

        jshint: {
            options: {
                jshintrc: true
            },
            build: [
                'gruntfile.js',
                'src/**/*.js',
                'test/**/*.js'
            ]
        },

        concat: {
            build: {
                src: sources,
                dest: 'release/nmouse.js'
            }
        },

        uglify: {
            options: {
                wrap: 'nmouse',
                compress: {
                    global_defs: {
                        'DEBUG': false
                    },
                    dead_code: true
                }
            },
            build: {
                files: {
                    'release/nmouse-min.js': ['release/nmouse.js']
                }

            }
        }
    });

    grunt.loadNpmTasks('grunt-karma');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-uglify');

    grunt.registerTask('unit', ['karma:unit']);
{'fraction_non_alphanumeric': 0.13243320884803217, 'fraction_numerical': 0.0, 'mean_word_length': 1.0138808559861192, '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': '1114623', 'n_tokens_mistral': 1011, 'n_tokens_neox': 943, 'n_words': 136}