<commit_before>'use strict';

module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        jshint: {
            all: [
                'Gruntfile.js',
                'tasks/*.js',
                '<%= nodeunit.tests %>',
            ],
            options: {
                jshintrc: '.jshintrc',
            },
        },

        // Before generating any new files, remove any previously-created files.
        clean: {
            tests: ['temp'],
        },

        // Work on a copy of the files because they will be renamed during testing.
        concat: {
            aToB: {
                flatten: true,
                expand: true,
                src: ['test/fixtures/coelacanth.txt'],
                dest: 'test/fixtures/temp.txt',
            },
            cToA: {
                flatten: true,
                expand: true,
                src: ['test/fixtures/something.js'],
                dest: 'test/fixtures/coelacanth.txt',
            },
            bToC: {
                flatten: true,
                expand: true,
                src: ['test/fixtures/temp.txt'],
                dest: 'test/fixtures/something.js',
            },
        },
        
        git_changedfiles : {
            
        },
        
        // Unit tests.
        nodeunit: {
            tests: ['test/*_test.js'],
        },

    });

    // Actually load this plugin's task(s).
    grunt.loadTasks('tasks');

    // These plugins provide necessary tasks.
    grunt.loadNpmTasks('grunt-rev');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-nodeunit');

    // Whenever the "test" task is run, first clean the "tmp" dir, then run this
    // plugin's task(s), then test the result.
    grunt.registerTask('test', ['clean', 'copy', 'git_changedfiles', 'nodeunit']);

    // By default, lint and run all tests.
    grunt.registerTask('default', ['jshint', 'test']);
<commit_msg>Correct config for concetenating one file into another<commit_after>'use strict';

module.exports = function(grunt) {

    // Project configuration.
    grunt.initConfig({
        jshint: {
            all: [
                'Gruntfile.js',
                'tasks/*.js',
                '<%= nodeunit.tests %>',
            ],
            options: {
                jshintrc: '.jshintrc',
            },
        },

        // Before generating any new files, remove any previously-created files.
        clean: {
            tests: ['temp'],
        },

		loginJs : { files: { "build/output/login.js" : [
			"login/src/app/view/**/*.js",
			"login/src/**/*.js"
		]}},
        
        // Work on a copy of the files because they will be renamed during testing.
        concat: {
            aToB: {
                files: {
                    'test/fixtures/something.js':['test/fixtures/coelacanth.txt']
                }
            },
            bToA: {
                files: {
                    'test/fixtures/coelacanth.txt':['test/fixtures/something.js']
                }
            }
        },
        
        git_changedfiles : {
            
        },
        
        // Unit tests.
        nodeunit: {
            tests: ['test/*_test.js'],
        },

    });

    // Actually load this plugin's task(s).
    grunt.loadTasks('tasks');

    // These plugins provide necessary tasks.
    grunt.loadNpmTasks('grunt-rev');
    grunt.loadNpmTasks('grunt-contrib-copy');
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-nodeunit');

    // Whenever the "test" task is run, first clean the "tmp" dir, then run this
    // plugin's task(s), then test the result.
    grunt.registerTask('test', ['clean', 'concat:aToB', 'git_changedfiles', 'nodeunit']);

    // By default, lint and run all tests.
    grunt.registerTask('default', ['jshint', 'test']);

{'fraction_non_alphanumeric': 0.13944321261394432, 'fraction_numerical': 0.0, 'mean_word_length': 1.5343320848938826, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5577932', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1167, 'n_words': 244}