<commit_before>'use strict';

module.exports = function (grunt) {

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

    grunt.initConfig({
        config: {
            hosts: {
                runtime: '0.0.0.0'
            },
            paths: {
                tmp: '.tmp',
                base: require('path').resolve(),
                src: 'src/webapp',
                test: 'test/webapp',
                results: 'results',
                instrumented: 'instrumented',
                config: 'config',
                build: 'build'
            }
        },
        clean: {
            files: [
                '<%=config.paths.tmp%>',
                '<%=config.paths.results%>',
                '<%=config.paths.instrumented%>',
                '<%=config.paths.build%>'
            ]
        },
        jshint: {
            options: {
                jshintrc: '<%=config.paths.base%>/.jshintrc',
                reporter: require('jshint-junit-reporter'),
                reporterOutput: '<%=config.paths.results%>/jshint/jshint.xml'
            },
            files: {
                src: ['<%=config.paths.src%>/**/*.js']
            }
        },
        karma: {
            options: {
                singleRun: true,
                reporters: ['progress', 'coverage', 'junit']
            },
            unit: {
                configFile: '<%=config.paths.config%>/karma.conf.js'
            }
        },
        less: {
            development: {
                options: {
                    sourceMap: true,
                    dumpLineNumbers: 'comments',
                    relativeUrls: true
                },
                files: {
                    "<%=config.paths.src%>/css/jpointme.css": "<%=config.paths.src%>/css/jpointme.less"
                }
            }
        },
        concat: {
            options: {
                separator: grunt.util.linefeed + ';' + grunt.util.linefeed
            },
            angular: {
                files: {
                    'build/js/angular.min.js': ['bower_components/angular/angular.min.js']
                }
            },
            modules: {
                files: {
                    'build/js/modules.min.js': ['bower_components/angular-*/*.min.js']
                }
            },
            plugins: {
                files: {
                    'build/js/plugins.min.js': [
                        'bower_components/jquery/dist/jquery.min.js',
                        'bower_components/bootstrap/js/carousel.js',
                        'bower_components/firebase/firebase.js',
                        'bower_components/angularfire/dist/angularfire.min.js'
                    ]
                }
            },
            jpointme: {
                files: {
                    '.tmp/js/jpointme.js': [
                        '<%=config.paths.src%>/js/jpointme.js',
                        '<%=config.paths.src%>/js/**/*.js']
                }
            }
        },
        uglify: {
            options: {
                banner: '/*! j.point.me <%= grunt.template.today("dd-mm-yyyy HH:MM:ss") %> */\n'
            },
            jpointme: {
                files: {
                    'build/js/jpointme.min.js': ['.tmp/js/jpointme.js']
                }
            }
        },
        instrument: {
            files: '<%=config.paths.src%>/**/*.js',
            options: {
                basePath: '<%=config.paths.instrumented%>',<commit_msg>Added firebase to modules instead of plugins.<commit_after>'use strict';

module.exports = function (grunt) {

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

    grunt.initConfig({
        config: {
            hosts: {
                runtime: '0.0.0.0'
            },
            paths: {
                tmp: '.tmp',
                base: require('path').resolve(),
                src: 'src/webapp',
                test: 'test/webapp',
                results: 'results',
                instrumented: 'instrumented',
                config: 'config',
                build: 'build'
            }
        },
        clean: {
            files: [
                '<%=config.paths.tmp%>',
                '<%=config.paths.results%>',
                '<%=config.paths.instrumented%>',
                '<%=config.paths.build%>'
            ]
        },
        jshint: {
            options: {
                jshintrc: '<%=config.paths.base%>/.jshintrc',
                reporter: require('jshint-junit-reporter'),
                reporterOutput: '<%=config.paths.results%>/jshint/jshint.xml'
            },
            files: {
                src: ['<%=config.paths.src%>/**/*.js']
            }
        },
        karma: {
            options: {
                singleRun: true,
                reporters: ['progress', 'coverage', 'junit']
            },
            unit: {
                configFile: '<%=config.paths.config%>/karma.conf.js'
            }
        },
        less: {
            development: {
                options: {
                    sourceMap: true,
                    dumpLineNumbers: 'comments',
                    relativeUrls: true
                },
                files: {
                    "<%=config.paths.src%>/css/jpointme.css": "<%=config.paths.src%>/css/jpointme.less"
                }
            }
        },
        concat: {
            options: {
                separator: grunt.util.linefeed + ';' + grunt.util.linefeed
            },
            angular: {
                files: {
                    'build/js/angular.min.js': ['bower_components/angular/angular.min.js']
                }
            },
            modules: {
                files: {
                    'build/js/modules.min.js': [
                        'bower_components/angular-*/*.min.js',
                        'bower_components/firebase/firebase.js',
                        'bower_components/angularfire/dist/angularfire.min.js'
                    ]
                }
            },
            plugins: {
                files: {
                    'build/js/plugins.min.js': [
                        'bower_components/jquery/dist/jquery.min.js',
                        'bower_components/bootstrap/js/carousel.js'
                    ]
                }
            },
            jpointme: {
                files: {
                    '.tmp/js/jpointme.js': [
                        '<%=config.paths.src%>/js/jpointme.js',
                        '<%=config.paths.src%>/js/**/*.js']
                }
            }
        },
        uglify: {
            options: {
                banner: '/*! j.point.me <%= grunt.template.today("dd-mm-yyyy HH:MM:ss") %> */\n'
            },
            jpointme: {
                files: {
                    'build/js/jpointme.min.js': ['.tmp/js/jpointme.js']
                }
            }
        },
        instrument: {
            files: '<%=config.paths.src%>/**/*.js',
            options: {
                basePath: '<%=config.paths.instrumented%>',
{'fraction_non_alphanumeric': 0.14695898161244697, 'fraction_numerical': 0.0011315417256011315, 'mean_word_length': 0.9696378830083565, 'pattern_counts': {'":': 2, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, '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': '7407249', 'n_tokens_mistral': 2032, 'n_tokens_neox': 1905, 'n_words': 227}