<commit_before>module.exports = function(grunt) {
    // Load grunt tasks automatically
    require('load-grunt-tasks')(grunt);
    grunt.loadNpmTasks('grunt-coveralls');
    grunt.loadNpmTasks("gruntify-eslint");
    grunt.loadNpmTasks('grunt-karma');

    // Project configuration.
    grunt.initConfig({
        instrument: {
            files: [
                'test/Unosquare.Tubular.WebTest/testApp.js',
                'src/Unosquare.Tubular/Javascript/tubular*-bundle.js'
                //'src/Unosquare.Tubular/Javascript/tubular/*.js',
                //'src/Unosquare.Tubular/Javascript/tubular-odata/*.js',
                //'src/Unosquare.Tubular/Javascript/tubular-localdata/*.js'
            ],
            options: {
                basePath: 'instrumented/'
            }
        },
        'string-replace': {
            dist: {
                files: { 'instrumented/': 'test/Unosquare.Tubular.WebTest/index*.html' },
                options: {
                    replacements: [
                        {
                            pattern: /\.\.\/\.\.\/src\/Unosquare\.Tubular\/Javascript\/tubular/g,
                            replacement: '/instrumented/src/Unosquare.Tubular/Javascript/tubular'
                        }
                    ]
                }
            }
        },
        connect: {
            server: {
                options: {
                    port: 9000,
                    hostname: 'localhost',
                    base: ''
                }
            }
        },
        protractor_coverage: {
            options: {
                noColor: false,
                keepAlive: false,
                collectorPort: 9001,
                webdriverManagerUpdate: true,
                configFile: "test/e2e-tests/protractor.conf.grunt.js"
            },
            remote: {
                options: {
                    coverageDir: 'coverage',
                    args: {
                        baseUrl: 'http://localhost:9000/instrumented/test/Unosquare.Tubular.WebTest/',
                        browser: process.env.TRAVIS_OS_NAME == "osx" ? "chrome" : "firefox"
                        
                    }
                }
            },
            local: {
                options: {
                    args: {
                        baseUrl: "http://localhost:9000/test/Unosquare.Tubular.WebTest/",
                        browser: "firefox"
                    }
                }
            }
        },
        makeReport: {
            src: 'coverage/*.json',
            options: {
                type: 'lcov',
                dir: 'coverage',
                print: 'detail'
            }
        },
        coveralls: {
            options: {
                force: true
            },
            local: {
                src: 'coverage/*.info'
            }
        },
        eslint: {
            options: {
                configFile: '.eslintrc.json',
                format: 'html',
                outputFile: 'report/eslint/index.html',
                silent: true
            },
            src: ["src/Unosquare.Tubular/Javascript/tubular**/**.js"]
        },
        karma: {
            options: {
                configFile: 'karma.conf.js',
                browsers: ['Firefox']
            },
            ci: {
                singleRun: true
            },
            dev: {
                singleRun: true,
                preprocessors: {
                },
                reporters: ['progress', 'jasmine-runner']
            }

        }
    });

    grunt.registerTask('test', [
        'instrument',
        'string-replace',
        'connect:server',
        'protractor_coverage:remote',
        'makeReport',
        'coveralls:local'
    ]);

    grunt.registerTask('test-local', [
        'connect:server',
        'protractor_coverage:local'
    ]);

    grunt.registerTask("lint", ["eslint"]);
    // Default task.
    grunt.registerTask('unit', ['karma:dev']);
    grunt.registerTask('unit:ci', ['karma:ci']);
};<commit_msg>fixing grunt file<commit_after>module.exports = function(grunt) {
    // Load grunt tasks automatically
    require('load-grunt-tasks')(grunt);
    grunt.loadNpmTasks('grunt-coveralls');
    grunt.loadNpmTasks("gruntify-eslint");
    grunt.loadNpmTasks('grunt-karma');

    // Project configuration.
    grunt.initConfig({
        instrument: {
            files: [
                'test/Unosquare.Tubular.WebTest/testApp.js',
                'src/Unosquare.Tubular/Javascript/tubular*-bundle.js'
                //'src/Unosquare.Tubular/Javascript/tubular/*.js',
                //'src/Unosquare.Tubular/Javascript/tubular-odata/*.js',
                //'src/Unosquare.Tubular/Javascript/tubular-localdata/*.js'
            ],
            options: {
                basePath: 'instrumented/'
            }
        },
        'string-replace': {
            dist: {
                files: { 'instrumented/': 'test/Unosquare.Tubular.WebTest/index*.html' },
                options: {
                    replacements: [
                        {
                            pattern: /\.\.\/\.\.\/src\/Unosquare\.Tubular\/Javascript\/tubular/g,
                            replacement: '/instrumented/src/Unosquare.Tubular/Javascript/tubular'
                        }
                    ]
                }
            }
        },
        connect: {
            server: {
                options: {
                    port: 9000,
                    hostname: 'localhost',
                    base: ''
                }
            }
        },
        protractor_coverage: {
            options: {
                noColor: false,
                keepAlive: false,
                collectorPort: 9001,
                webdriverManagerUpdate: true,
                configFile: "test/e2e-tests/protractor.conf.grunt.js"
            },
            remote: {
                options: {
                    coverageDir: 'coverage',
                    args: {
                        baseUrl: 'http://localhost:9000/instrumented/test/Unosquare.Tubular.WebTest/',
                        browser: process.env.TRAVIS_OS_NAME == "osx" ? "chrome" : "firefox"
                        
                    }
                }
            },
            local: {
                options: {
                    args: {
                        baseUrl: "http://localhost:9000/test/Unosquare.Tubular.WebTest/",
                        browser: "firefox"
                    }
                }
            }
        },
        makeReport: {
            src: 'coverage/*.json',
            options: {
                type: 'lcov',
                dir: 'coverage',
                print: 'detail'
            }
        },
        coveralls: {
            options: {
                force: true
            },
            local: {
                src: 'coverage/*.info'
            }
        },
        eslint: {
            options: {
                configFile: '.eslintrc.json',
                format: 'html',
                outputFile: 'report/eslint/index.html',
                silent: true
            },
            src: ["src/Unosquare.Tubular/Javascript/tubular**/**.js"]
        },
        karma: {
            options: {
                configFile: 'karma.conf.js',
                browsers: ['Firefox']
            },
            ci: {
                singleRun: true
            },
            dev: {
                singleRun: false,
                autoWatch: true,
                preprocessors: {
                },
                reporters: ['progress']
            }

        }
    });

    grunt.registerTask('test', [
        'instrument',
        'string-replace',
        'connect:server',
        'protractor_coverage:remote',
        'makeReport',
        'coveralls:local'
    ]);

    grunt.registerTask('test-local', [
        'connect:server',
        'protractor_coverage:local'
    ]);

    grunt.registerTask("lint", ["eslint"]);
    // Default task.
    grunt.registerTask('unit', ['karma:dev']);
    grunt.registerTask('unit:ci', ['karma:ci']);
};
{'fraction_non_alphanumeric': 0.12490761271249076, 'fraction_numerical': 0.004188223700418822, 'mean_word_length': 1.0456034265558074, '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': '6759768', 'n_tokens_mistral': 2342, 'n_tokens_neox': 2177, 'n_words': 275}