<commit_before>module.exports = function (grunt) {

	grunt.initConfig({
		pkg: grunt.file.readJSON("package.json"),
        concat: {
            options: {
                separator: '\n',
                process: true
            },
            dist: {
                src: [
                    'src/angular-spring-data-rest-module.js',
                    'src/angular-spring-data-rest-provider.js',
                    'src/angular-spring-data-rest-interceptor-provider.js',
                    'src/angular-spring-data-rest-utils.js',
                ],
                dest: 'dist/<%= pkg.name %>.js'
            }
        },
		uglify: {
			options: {
                banner: "/*!\n * <%= pkg.name %> <%= pkg.version %>\n * Copyright <%= grunt.template.today('yyyy') %> <NAME> (@guy_labs)\n * https://github.com/guylabs/angular-spring-data-rest\n */\n"
			},
            dist: {
                files: {
                    'dist/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
                }
            }
		},
		karma: {
			unit: {
				configFile: "karma.conf.js"
			},
			continuous: {
				configFile: "karma.conf.js",
				singleRun: true
			}
		}
	});

    grunt.loadNpmTasks("grunt-contrib-concat");
	grunt.loadNpmTasks("grunt-contrib-uglify");
	grunt.loadNpmTasks("grunt-karma");

    grunt.registerTask("default", ["karma:continuous", "concat", "uglify"]);

	grunt.registerTask("startTestServer", ["karma:unit:start"]);
	grunt.registerTask("runTests", ["karma:unit:run"]);
	grunt.registerTask("test", ["karma:continuous"]);

};<commit_msg>Wrap the concated files in a function scope..<commit_after>module.exports = function (grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON("package.json"),
        concat: {
            options: {
                banner: "(function() {\n\n'use strict';\n\n",
                footer: '\n})();',
                separator: '\n',
                process: true
            },
            dist: {
                src: [
                    'src/angular-spring-data-rest-module.js',
                    'src/angular-spring-data-rest-provider.js',
                    'src/angular-spring-data-rest-interceptor-provider.js',
                    'src/angular-spring-data-rest-utils.js'
                ],
                dest: 'dist/<%= pkg.name %>.js'
            }
        },
        uglify: {
            options: {
                banner: "/*!\n * <%= pkg.name %> <%= pkg.version %>\n * Copyright <%= grunt.template.today('yyyy') %> <NAME> (@guy_labs)\n * https://github.com/guylabs/angular-spring-data-rest\n */\n"
            },
            dist: {
                files: {
                    'dist/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>']
                }
            }
        },
        karma: {
            unit: {
                configFile: "karma.conf.js"
            },
            continuous: {
                configFile: "karma.conf.js",
                singleRun: true
            }
        }
    });

    grunt.loadNpmTasks("grunt-contrib-concat");
    grunt.loadNpmTasks("grunt-contrib-uglify");
    grunt.loadNpmTasks("grunt-karma");

    grunt.registerTask("default", ["karma:continuous", "concat", "uglify"]);

    grunt.registerTask("startTestServer", ["karma:unit:start"]);
    grunt.registerTask("runTests", ["karma:unit:run"]);
    grunt.registerTask("test", ["karma:continuous"]);

};
{'fraction_non_alphanumeric': 0.1757593630197582, 'fraction_numerical': 0.0, 'mean_word_length': 1.6253869969040247, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '1113856', 'n_tokens_mistral': 1156, 'n_tokens_neox': 1041, 'n_words': 139}