<commit_before>var fs = require('fs');

module.exports = function (grunt) {

    var minifiedFiles = {
            'min/langs.min.js'  : ['min/langs.js'],
            'min/moment.min.js' : ['moment.js']
        },
        minLangs = {
            langs: {
                src: ['min/langs.js'],
                dest: 'min/langs.min.js'
            }
        };

    // all the lang files need to be added manually
    fs.readdirSync('./lang').forEach(function (path) {
        if (path.indexOf('.js') > -1) {
            var dest = 'min/lang/' + path,
                src = ['lang/' + path];

            minifiedFiles[dest] = src;
            minLangs[path] = {src: src, dest: dest};
        }
    });

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        concat : {
            langs: {
                src: ['lang/*.js'],
                dest: 'min/langs.js'
            }
        },
        concatlang : {
            langs: {
                src: ['lang/*.js'],
                dest: 'min/langs.js'
            }
        },
        minlang : minLangs,
        minwithcomments : {
            moment: {
                src: ['moment.js'],
                dest: 'min/moment.min.js'
            }
        },
        uglify : {
            my_target: {
                files: minifiedFiles
            },
            options: {
                fromString: true,
                mangle: true,
                compress: {
                    dead_code: false
                },
                output: {
                    ascii_only: true
                }
            }
        },
        nodeunit : {
            all : ["test/**/*.js"]
        },
        jshint: {
            all: ["Gruntfile.js", "moment.js", "lang/**/*.js"],
            test: ["test/moment/*.js"],
            langtest: ["test/lang/*.js"],
            options: {<commit_msg>Move all jshint files to all target<commit_after>var fs = require('fs');

module.exports = function (grunt) {

    var minifiedFiles = {
            'min/langs.min.js'  : ['min/langs.js'],
            'min/moment.min.js' : ['moment.js']
        },
        minLangs = {
            langs: {
                src: ['min/langs.js'],
                dest: 'min/langs.min.js'
            }
        };

    // all the lang files need to be added manually
    fs.readdirSync('./lang').forEach(function (path) {
        if (path.indexOf('.js') > -1) {
            var dest = 'min/lang/' + path,
                src = ['lang/' + path];

            minifiedFiles[dest] = src;
            minLangs[path] = {src: src, dest: dest};
        }
    });

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        concat : {
            langs: {
                src: ['lang/*.js'],
                dest: 'min/langs.js'
            }
        },
        concatlang : {
            langs: {
                src: ['lang/*.js'],
                dest: 'min/langs.js'
            }
        },
        minlang : minLangs,
        minwithcomments : {
            moment: {
                src: ['moment.js'],
                dest: 'min/moment.min.js'
            }
        },
        uglify : {
            my_target: {
                files: minifiedFiles
            },
            options: {
                fromString: true,
                mangle: true,
                compress: {
                    dead_code: false
                },
                output: {
                    ascii_only: true
                }
            }
        },
        nodeunit : {
            all : ["test/**/*.js"]
        },
        jshint: {
            all: ["Gruntfile.js", "moment.js", "lang/**/*.js", "test/**/*.js"],
            options: {
{'fraction_non_alphanumeric': 0.14805825242718446, 'fraction_numerical': 0.0005393743257820927, 'mean_word_length': 0.9951586874663798, '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': '2582692', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1060, 'n_words': 197}