<commit_before>var relSolutionPath = 'src/Nancy.AspNet.WebSockets.sln',
    solutionConfig = 'Debug';

module.exports = function (grunt) {

    grunt.initConfig({

        msbuild: {
            options: {
                maxCpuCount: 4,
                buildParameters: {
                    WarningLevel: 2
                },
                verbosity: 'quiet',
                projectConfiguration: [solutionConfig],
            },
            clean: {
                src: [relSolutionPath],
                options: {
                    targets: ['Clean'],
                }
            },
            dev: {
                src: [relSolutionPath],
                options: {
                    targets: ['Build'],
                }
            }
        },

        nugetrestore: {
            restore: {
                src: 'src/**/packages.config',
                dest: 'src/packages'
            }
        },

        exec: {
            jstest: {
                command: 'src\\packages\\Chutzpah.3.3.1\\tools\\chutzpah.console.exe src\\Nancy.AspNet.WebSockets.Sample.Tests\\JavaScript'
            }
        },

        nunit: {
            test: {
                files: {
                    src: [relSolutionPath]
                }
            },
            options: {
                path: 'src/packages/NUnit.Runners.2.6.4/tools',
                config: solutionConfig,
                noshadow: true,
                labels: true
            }
        }

    });

    grunt.loadNpmTasks('grunt-nuget');
    grunt.loadNpmTasks('grunt-msbuild');
    grunt.loadNpmTasks('grunt-exec');
    grunt.loadNpmTasks('grunt-nunit-runner');

    grunt.registerTask('clean', ['msbuild:clean']);
    grunt.registerTask('package-restore', ['nugetrestore:restore']);
    grunt.registerTask('compile', ['msbuild:dev']);
    grunt.registerTask('test', ['exec:jstest', 'nunit:test']);
    grunt.registerTask('default', ['clean', 'package-restore', 'compile', 'test']);

};
<commit_msg>Gruntfile: Made tasks form a chain, like how Maven works. Default task is test.<commit_after>var relSolutionPath = 'src/Nancy.AspNet.WebSockets.sln',
    solutionConfig = 'Debug';

module.exports = function (grunt) {

    grunt.initConfig({

        msbuild: {
            options: {
                maxCpuCount: 4,
                buildParameters: {
                    WarningLevel: 2
                },
                verbosity: 'quiet',
                projectConfiguration: [solutionConfig],
            },
            clean: {
                src: [relSolutionPath],
                options: {
                    targets: ['Clean'],
                }
            },
            dev: {
                src: [relSolutionPath],
                options: {
                    targets: ['Build'],
                }
            }
        },

        nugetrestore: {
            restore: {
                src: 'src/**/packages.config',
                dest: 'src/packages'
            }
        },

        exec: {
            jstest: {
                command: 'src\\packages\\Chutzpah.3.3.1\\tools\\chutzpah.console.exe src\\Nancy.AspNet.WebSockets.Sample.Tests\\JavaScript'
            }
        },

        nunit: {
            test: {
                files: {
                    src: [relSolutionPath]
                }
            },
            options: {
                path: 'src/packages/NUnit.Runners.2.6.4/tools',
                config: solutionConfig,
                noshadow: true,
                labels: true
            }
        }

    });

    grunt.loadNpmTasks('grunt-nuget');
    grunt.loadNpmTasks('grunt-msbuild');
    grunt.loadNpmTasks('grunt-exec');
    grunt.loadNpmTasks('grunt-nunit-runner');

    grunt.registerTask('clean', ['msbuild:clean']);
    grunt.registerTask('package-restore', ['nugetrestore:restore']);
    grunt.registerTask('compile', ['clean', 'package-restore', 'msbuild:dev']);
    grunt.registerTask('test', ['compile', 'exec:jstest', 'nunit:test']);
    grunt.registerTask('default', ['test']);

};

{'fraction_non_alphanumeric': 0.13458683819891143, 'fraction_numerical': 0.0039584364176150424, 'mean_word_length': 1.3424101969872537, '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': '1617816', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1097, 'n_words': 163}