<commit_before>'user strict';

module.exports = function(grunt) {

    var externalStyleFiles = grunt.file.readJSON('externalStyles.json'),
        externalScriptFiles = grunt.file.readJSON('externalScripts.json');

    require('time-grunt')(grunt);

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        less: {
            compile: {
                options: {
                    cleancss: true
                },
                files: { "public/styles/app.css" : externalStyleFiles.concat('public_src/styles/main.less') }
            }
        },
        ngmin: {
            externalScripts: {
                files: {
                    "grunt_tmp/externalScripts.js" : externalScriptFiles
                }
            },
            mainScript: {
                files: {
                    "grunt_tmp/main.js": "public_src/scripts/main.js"
                }
            },
            controllers: {
                files: {
                    "grunt_tmp/controllers.js": "public_src/scripts/controllers/**/*.js"
                }
            },
            services: {
                files: {
                    "grunt_tmp/services.js" : "public_src/scripts/services/**/*.js"
                }
            },
            directives: {
                files: {
                    "grunt_tmp/directives.js" : "public_src/scripts/directives/**/*.js"
                }
            }
        },
        uglify: {
            options: {
                report: 'min',
                mangle: true,
            },
            externalScripts: {
                files: {
                    "grunt_tmp/externalScripts.min.js" : "grunt_tmp/externalScripts.js"
                }
            },
            mainScript: {
                files: {
                    "grunt_tmp/main.min.js" : "grunt_tmp/main.js"
                }
            },
            controllers: {
                files: {
                    "grunt_tmp/controllers.min.js" : "grunt_tmp/controllers.js"
                }
            },
            services: {
                files: {
                    "grunt_tmp/services.min.js" : "grunt_tmp/services.js"
                }
            },
            directives: {
                files: {
                    "grunt_tmp/directives.min.js" : "grunt_tmp/directives.js"
                }
            }
        },
        concat: {
            dist: {
                files: {
                    'public/scripts/app.js': [
                        'grunt_tmp/externalScripts.min.js',
                        'grunt_tmp/main.min.js',
                        'grunt_tmp/controllers.min.js',
                        'grunt_tmp/services.min.js',
                        'grunt_tmp/directives.min.js'
                    ]
                }
            }
        },
        clean: {
            files: ['grunt_tmp/']
        },
        watch: {
            options: {
                livereload: true
            },
            less: {
                files: ['public_src/styles/**/*.less'],
                tasks: ['less']
            },
            html: {
                files: ['index.html', 'public/views/**/*.html'],
            },
            mainScript: {
                files: ['public_src/scripts/main.js'],
                tasks: ['ngmin:mainScript', 'uglify:mainScript', 'concat'],
            },
            controllers: {
                files: ['public_src/scripts/controllers/*.js'],
                tasks: ['ngmin:controllers', 'uglify:controllers', 'concat'],
            },
            services: {
                files: ['public_src/scripts/services/*.js'],
                tasks: ['ngmin:services', 'uglify:services', 'concat'],
            },
            directives: {
                files: ['public_src/scripts/directives/*.js'],
                tasks: ['ngmin:directives', 'uglify:directives', 'concat'],
            }
        },
    });

    grunt.loadNpmTasks('grunt-ngmin');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-less');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-clean');

    grunt.registerTask('default', ['watch']);
    grunt.registerTask('build', ['clean', 'less', 'ngmin', 'uglify', 'concat']);

};
<commit_msg>added proper directory for grunt watch on index.html file, this fixes issue #1<commit_after>'user strict';

module.exports = function(grunt) {

    var externalStyleFiles = grunt.file.readJSON('externalStyles.json'),
        externalScriptFiles = grunt.file.readJSON('externalScripts.json');

    require('time-grunt')(grunt);

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        less: {
            compile: {
                options: {
                    cleancss: true
                },
                files: { "public/styles/app.css" : externalStyleFiles.concat('public_src/styles/main.less') }
            }
        },
        ngmin: {
            externalScripts: {
                files: {
                    "grunt_tmp/externalScripts.js" : externalScriptFiles
                }
            },
            mainScript: {
                files: {
                    "grunt_tmp/main.js": "public_src/scripts/main.js"
                }
            },
            controllers: {
                files: {
                    "grunt_tmp/controllers.js": "public_src/scripts/controllers/**/*.js"
                }
            },
            services: {
                files: {
                    "grunt_tmp/services.js" : "public_src/scripts/services/**/*.js"
                }
            },
            directives: {
                files: {
                    "grunt_tmp/directives.js" : "public_src/scripts/directives/**/*.js"
                }
            }
        },
        uglify: {
            options: {
                report: 'min',
                mangle: true,
            },
            externalScripts: {
                files: {
                    "grunt_tmp/externalScripts.min.js" : "grunt_tmp/externalScripts.js"
                }
            },
            mainScript: {
                files: {
                    "grunt_tmp/main.min.js" : "grunt_tmp/main.js"
                }
            },
            controllers: {
                files: {
                    "grunt_tmp/controllers.min.js" : "grunt_tmp/controllers.js"
                }
            },
            services: {
                files: {
                    "grunt_tmp/services.min.js" : "grunt_tmp/services.js"
                }
            },
            directives: {
                files: {
                    "grunt_tmp/directives.min.js" : "grunt_tmp/directives.js"
                }
            }
        },
        concat: {
            dist: {
                files: {
                    'public/scripts/app.js': [
                        'grunt_tmp/externalScripts.min.js',
                        'grunt_tmp/main.min.js',
                        'grunt_tmp/controllers.min.js',
                        'grunt_tmp/services.min.js',
                        'grunt_tmp/directives.min.js'
                    ]
                }
            }
        },
        clean: {
            files: ['grunt_tmp/']
        },
        watch: {
            options: {
                livereload: true
            },
            less: {
                files: ['public_src/styles/**/*.less'],
                tasks: ['less']
            },
            html: {
                files: ['public/index.html', 'public/views/**/*.html'],
            },
            mainScript: {
                files: ['public_src/scripts/main.js'],
                tasks: ['ngmin:mainScript', 'uglify:mainScript', 'concat'],
            },
            controllers: {
                files: ['public_src/scripts/controllers/*.js'],
                tasks: ['ngmin:controllers', 'uglify:controllers', 'concat'],
            },
            services: {
                files: ['public_src/scripts/services/*.js'],
                tasks: ['ngmin:services', 'uglify:services', 'concat'],
            },
            directives: {
                files: ['public_src/scripts/directives/*.js'],
                tasks: ['ngmin:directives', 'uglify:directives', 'concat'],
            }
        },
    });

    grunt.loadNpmTasks('grunt-ngmin');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-less');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-clean');

    grunt.registerTask('default', ['watch']);
    grunt.registerTask('build', ['clean', 'less', 'ngmin', 'uglify', 'concat']);

};

{'fraction_non_alphanumeric': 0.13354676423507889, 'fraction_numerical': 0.0001143379830779785, 'mean_word_length': 1.1496682231506512, 'pattern_counts': {'":': 4, '<': 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': '6767520', 'n_tokens_mistral': 2503, 'n_tokens_neox': 2373, 'n_words': 282}