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

    // Project configuration.
    grunt.initConfig({
        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            files: [ 'app_admin/**/*.js' ]
        },
        concat: {
            options: {
                separator: '\n'
            },
            scripts_common: {
                src: [
                    'bower_components/jquery/jquery.min.js',
                    'bower_components/bootstrap.zip/js/bootstrap.min.js',
                    'bower_components/angular/angular.min.js',
                    'bower_components/angular-strap/dist/angular-strap.min.js',
                    'bower_components/underscore/underscore-min.js',
                    'bower_components/noty/js/noty/jquery.noty.js',
                    'bower_components/noty/js/noty/themes/default.js',
                    'bower_components/noty/js/noty/layouts/topCenter.js',
                    'bower_components/bootstrap-switch/static/js/bootstrap-switch.js',
                ],
                dest: 'dist/common.js'
            },
            scripts_admin: {
                src: [
                    'app_admin/js/admin/**/*.js'
                ],
                dest: 'dist/admin/admin.js'
            },
            scripts_client: {
                src: [
                    'bower_components/wysihtml5/dist/wysihtml5-0.3.0.min.js',
                    'bower_components/bootstrap-wysihtml5/dist/bootstrap-wysihtml5-0.0.2.min.js',
                    'app_admin/js/client/**/*.js',
                    'app_admin/js/shared/**/*.js'
                ],
                dest: 'dist/client.js'
            },
            css_client: {
                src: [
                    'bower_components/bootstrap-wysihtml5/dist/bootstrap-wysihtml5-0.0.2.css',
                    'bower_components/bootstrap-switch/static/stylesheets/bootstrap-switch.css'
                ],
                dest: 'dist/client.css'
            },
            admin_ui: {
                src: ['app_admin/admin.html', 'app_admin/html/views_admin/*.html'],
                dest: 'dist/admin/index.html'
            },
            client_ui: {
                src: ['app_admin/client.html', 'app_admin/html/views_client/*.html'],
                dest: 'dist/index.html'
            },
        },
        copy: {
            wysi: {
                expand: false,
                flatten: true,
                src: [ 'app_admin/css/wysihtml5_style.css' ],
                dest: 'dist/wysihtml5_style.css'
            },
            favicon: {
                expand: false,
                flatten: true,
                src: [ 'app_admin/favicon.ico' ],
                dest: 'dist/favicon.ico'
            }
        },
        watch: {
            files: [
                'app_admin/**/*.js',
                'app_admin/**/*.html',
                'app_admin/**/*.css',
                'Gruntfile.js'
            ],
            tasks: ['default']
        },
        reload: {
            port: 35729,
            liveReload: {}
        }
    });

    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-reload');

    // Default task.
    grunt.registerTask('default', ['concat', 'copy', 'reload', 'jshint', 'watch']);

};<commit_msg>Fix grunt fork process loop<commit_after>module.exports = function (grunt) {

    // Project configuration.
    grunt.initConfig({
        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            files: [ 'app_admin/**/*.js' ]
        },
        concat: {
            options: {
                separator: '\n'
            },
            scripts_common: {
                src: [
                    'bower_components/jquery/jquery.min.js',
                    'bower_components/bootstrap.zip/js/bootstrap.min.js',
                    'bower_components/angular/angular.min.js',
                    'bower_components/angular-strap/dist/angular-strap.min.js',
                    'bower_components/underscore/underscore-min.js',
                    'bower_components/noty/js/noty/jquery.noty.js',
                    'bower_components/noty/js/noty/themes/default.js',
                    'bower_components/noty/js/noty/layouts/topCenter.js',
                    'bower_components/bootstrap-switch/static/js/bootstrap-switch.js',
                ],
                dest: 'dist/common.js'
            },
            scripts_admin: {
                src: [
                    'app_admin/js/admin/**/*.js'
                ],
                dest: 'dist/admin/admin.js'
            },
            scripts_client: {
                src: [
                    'bower_components/wysihtml5/dist/wysihtml5-0.3.0.min.js',
                    'bower_components/bootstrap-wysihtml5/dist/bootstrap-wysihtml5-0.0.2.min.js',
                    'app_admin/js/client/**/*.js',
                    'app_admin/js/shared/**/*.js'
                ],
                dest: 'dist/client.js'
            },
            css_client: {
                src: [
                    'bower_components/bootstrap-wysihtml5/dist/bootstrap-wysihtml5-0.0.2.css',
                    'bower_components/bootstrap-switch/static/stylesheets/bootstrap-switch.css'
                ],
                dest: 'dist/client.css'
            },
            admin_ui: {
                src: ['app_admin/admin.html', 'app_admin/html/views_admin/*.html'],
                dest: 'dist/admin/index.html'
            },
            client_ui: {
                src: ['app_admin/client.html', 'app_admin/html/views_client/*.html'],
                dest: 'dist/index.html'
            },
        },
        copy: {
            wysi: {
                expand: false,
                flatten: true,
                src: [ 'app_admin/css/wysihtml5_style.css' ],
                dest: 'dist/wysihtml5_style.css'
            },
            favicon: {
                expand: false,
                flatten: true,
                src: [ 'app_admin/favicon.ico' ],
                dest: 'dist/favicon.ico'
            }
        },
        watch: {
            files: [
                'app_admin/**/*.js',
                'app_admin/**/*.html',
                'app_admin/**/*.css',
                'Gruntfile.js'
            ],
            tasks: ['default']
        },
        reload: {
            port: 35729,
            liveReload: {}
        }
    });

    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-reload');

    // Default task.
    grunt.registerTask('default', ['concat', 'copy', 'jshint' ]);
    grunt.registerTask('devel', [ 'reload', 'watch' ]);
};
{'fraction_non_alphanumeric': 0.13685267536938747, 'fraction_numerical': 0.006311863434227514, 'mean_word_length': 1.2196752626552054, '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': '4513846', 'n_tokens_mistral': 2149, 'n_tokens_neox': 2023, 'n_words': 213}