<commit_before>/*global module:false*/

module.exports = function(grunt) {
	// Project configuration
	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		meta: {
			js_banner: '/**\n' +
				'* <%= pkg.name %>\n' +
				'*\n' +
				'* @version	<%= pkg.version %>\n' +
				'* @author	<%= pkg.author %>\n' +
				'* @require	jQuery 1.8.3\n' +
				'*			Hammer.js\n' +
				'* @license	<%= pkg.licenses[0].type %> - <%= pkg.licenses[0].url %>\n' +
				'**/\n'
		},
		sass: {
			dev: {
				files: {
					'assets/css/style.css': 'src/sass/style.scss',
					'assets/css/ie.css' : [
						'src/sass/style_small.scss',
						'src/sass/style_medium.scss',
						'src/sass/style_large.scss'
					]
				}
			}
		},
		cssmin: {
			compress: {
				files: {
					'assets/css/style.min.css': ['assets/css/style.css'],
					'assets/css/ie.min.css': ['assets/css/ie.css']
				}
			}
		},
		jasmine: {
			tests: {
				src: 'src/js/**/*.js',
				options: {
					specs: 'test/spec/**/*_spec.js',
					helpers: 'test/spec/**/*_helper.js'
				}
			}
		},
		jshint: {
			options: {
				curly: true,
				eqeqeq: true,
				immed: true,
				latedef: true,
				newcap: true,
				noarg: true,
				sub: true,
				undef: true,
				boss: true,
				eqnull: true,
				browser: true,
				globals: {
					jQuery: true
				}
			},
			all: ['Gruntfile.js', 'src/js/script.js']
		},
		uglify: {
			options: {
				mangle: {
					except: ['jQuery']
				}
			},
			deploy: {
				files: {
					'assets/js/lib.min.js': ['src/js/libs/jquery/*.js', 'src/js/libs/touch/*.js'],
					'assets/js/script.min.js': ['src/js/script.js']
				}
			}
		},
		watch: {
			sass: {
				files: ['src/sass/**/*.scss'],
				tasks: 'sass'
			},
			script: {
				files: '<%= jshint.all %>',
				tasks: ['jshint', 'uglify']
			}
		}
	});

	// Load tasks
	grunt.loadNpmTasks('grunt-contrib-cssmin');
	grunt.loadNpmTasks('grunt-contrib-jasmine');
	grunt.loadNpmTasks('grunt-contrib-jshint');
	grunt.loadNpmTasks('grunt-contrib-sass');
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-watch');

	// Default task(s)
	grunt.registerTask('default', ['sass', 'cssmin', 'jasmine', 'jshint', 'uglify']);
	grunt.registerTask('test', ['jasmine', 'jshint']);
	grunt.registerTask('deploy', ['sass', 'cssmin', 'uglify']);
};<commit_msg>removing unnecessary script array for uglify task<commit_after>/*global module:false*/

module.exports = function(grunt) {
	// Project configuration
	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		meta: {
			js_banner: '/**\n' +
				'* <%= pkg.name %>\n' +
				'*\n' +
				'* @version	<%= pkg.version %>\n' +
				'* @author	<%= pkg.author %>\n' +
				'* @require	jQuery 1.8.3\n' +
				'*			Hammer.js\n' +
				'* @license	<%= pkg.licenses[0].type %> - <%= pkg.licenses[0].url %>\n' +
				'**/\n'
		},
		sass: {
			dev: {
				files: {
					'assets/css/style.css': 'src/sass/style.scss',
					'assets/css/ie.css' : [
						'src/sass/style_small.scss',
						'src/sass/style_medium.scss',
						'src/sass/style_large.scss'
					]
				}
			}
		},
		cssmin: {
			compress: {
				files: {
					'assets/css/style.min.css': ['assets/css/style.css'],
					'assets/css/ie.min.css': ['assets/css/ie.css']
				}
			}
		},
		jasmine: {
			tests: {
				src: 'src/js/**/*.js',
				options: {
					specs: 'test/spec/**/*_spec.js',
					helpers: 'test/spec/**/*_helper.js'
				}
			}
		},
		jshint: {
			options: {
				curly: true,
				eqeqeq: true,
				immed: true,
				latedef: true,
				newcap: true,
				noarg: true,
				sub: true,
				undef: true,
				boss: true,
				eqnull: true,
				browser: true,
				globals: {
					jQuery: true
				}
			},
			all: ['Gruntfile.js', 'src/js/script.js']
		},
		uglify: {
			options: {
				mangle: {
					except: ['jQuery']
				}
			},
			deploy: {
				files: {
					'assets/js/lib.min.js': ['src/js/libs/**/*.js'],
					'assets/js/script.min.js': ['src/js/script.js']
				}
			}
		},
		watch: {
			sass: {
				files: ['src/sass/**/*.scss'],
				tasks: 'sass'
			},
			script: {
				files: '<%= jshint.all %>',
				tasks: ['jshint', 'uglify']
			}
		}
	});

	// Load tasks
	grunt.loadNpmTasks('grunt-contrib-cssmin');
	grunt.loadNpmTasks('grunt-contrib-jasmine');
	grunt.loadNpmTasks('grunt-contrib-jshint');
	grunt.loadNpmTasks('grunt-contrib-sass');
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-watch');

	// Default task(s)
	grunt.registerTask('default', ['sass', 'cssmin', 'jasmine', 'jshint', 'uglify']);
	grunt.registerTask('test', ['jasmine', 'jshint']);
	grunt.registerTask('deploy', ['sass', 'cssmin', 'uglify']);
};
{'fraction_non_alphanumeric': 0.22389033942558748, 'fraction_numerical': 0.002175805047867711, 'mean_word_length': 2.5011424219345013, 'pattern_counts': {'":': 0, '<': 15, '<?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': '5341570', 'n_tokens_mistral': 2390, 'n_tokens_neox': 1912, 'n_words': 269}