<commit_before>/**
 * Created by Armin on 25.05.2017.
 */
'use strict';

module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
            },
            build: {
                src: 'public/javascripts/bundle.js',
                dest: 'public/javascripts/bundle.min.js'
            }
        },
        nodeunit: {
            files: ['public/javascripts/tests/**/*.js']
        },
        jshint: {
            files: ['**/*.js', // Alle javascript files außer nachfolgende
                    '!Gruntfile.js',
                    '!node_modules/**',
                    '!tts-token.js',
                    '!stt-token.js',
                    '!public/javascripts/jquery.leanModal.min.js',
                    '!public/javascripts/bundle.js',
                    '!public/javascripts/bundle.min.js'],
            options: {
                "curly": true,
                "eqeqeq": true,
                "immed": true,
                "latedef": "nofunc",
                "newcap": true,
                "noarg": true,
                "sub": true,
                "undef": true,
                "unused": true,
                "boss": true,
                "eqnull": true,
                "node": true,
                "globals": {
                    "jQuery": true,
                    "require": true,
                    "__dirname": true,
                    "module": true,
                    "Promise": true,
                    "window": true,
                    "document": true,
                    "localStorage": true
                },
                "reporterOutput": "" // This is to ommit bug!
            }
        },

        // run once  --> grunt watch
        // After that every change on a file matching the patterns used bellow
        // will execute the corresponding task
        watch: {
            unittest: {
                files: '<%= nodeunit.files %>',
                tasks: ['nodeunit']
            },
            linting: {
                files: '<%= jshint.files %>',
                tasks: ['jshint']
            }
            /*,
            uglify: {
                files: '<%= uglify.build.src %>',
                tasks: ['uglify']
            }*/
        }<commit_msg>JSHint Fehler entfernt<commit_after>/**
 * Created by Armin on 25.05.2017.
 */
'use strict';

module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
            },
            build: {
                src: 'public/javascripts/bundle.js',
                dest: 'public/javascripts/bundle.min.js'
            }
        },
        nodeunit: {
            files: ['public/javascripts/tests/**/*.js']
        },
        jshint: {
            files: ['**/*.js', // Alle javascript files außer nachfolgende
                    '!Gruntfile.js',
                    '!node_modules/**',
                    '!tts-token.js',
                    '!stt-token.js',
                    '!public/javascripts/jquery.leanModal.min.js',
                    '!public/javascripts/bundle.js',
                    '!public/javascripts/bundle.min.js'],
            options: {
                "curly": true,
                "eqeqeq": true,
                "immed": true,
                "latedef": "nofunc",
                "newcap": true,
                "noarg": true,
                "sub": true,
                "undef": true,
                "unused": true,
                "boss": true,
                "eqnull": true,
                "node": true,
                "globals": {
                    "jQuery": true,
                    "require": true,
                    "__dirname": true,
                    "module": true,
                    "Promise": true,
                    "window": true,
                    "document": true,
                    "localStorage": true,
                    "$": true
                },
                "reporterOutput": "" // This is to ommit bug!
            }
        },

        // run once  --> grunt watch
        // After that every change on a file matching the patterns used bellow
        // will execute the corresponding task
        watch: {
            unittest: {
                files: '<%= nodeunit.files %>',
                tasks: ['nodeunit']
            },
            linting: {
                files: '<%= jshint.files %>',
                tasks: ['jshint']
            }
            /*,
            uglify: {
                files: '<%= uglify.build.src %>',
                tasks: ['uglify']
            }*/
        }
{'fraction_non_alphanumeric': 0.13952071486596263, 'fraction_numerical': 0.003249390739236393, 'mean_word_length': 0.9995939910678034, 'pattern_counts': {'":': 45, '<': 13, '<?xml version=': 0, '>': 15, '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': '4279447', 'n_tokens_mistral': 1398, 'n_tokens_neox': 1277, 'n_words': 261}