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

	// constants for various paths and files to be used by the task configuration
	var BUILD_DIR      = 'dist/';

	var BUILD_DIR_JS   = BUILD_DIR     + 'js/';
	var BUILD_FILE_JS  = BUILD_DIR_JS  + 'script.js';

	var BUILD_DIR_CSS  = BUILD_DIR     + 'css/';
	var BUILD_FILE_CSS = BUILD_DIR_CSS + 'style.min.css';


	var SRC_DIR        = 'src/';

	var SRC_DIR_JS     = SRC_DIR + 'js/';
	var SRC_DIR_CSS    = SRC_DIR + 'css/';
	var SRC_DIR_LESS   = SRC_DIR + 'less/';

	var SRC_FILES_JS   = SRC_DIR_JS   + '*.js';
	var SRC_FILES_CSS  = SRC_DIR_CSS  + '*.css';
	var SRC_FILES_LESS = SRC_DIR_LESS + '*.less';

	var AP_BROWSERS = [
		'Android >= 4',
		'Chrome >= 35',
		'Firefox >= 35',
		'Explorer >= 7',
		'iOS >= 6',
		'Opera >= 20',
		'Safari >= 9'
	];

	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),

		cssflow: {
			options: {
				preprocessor: 'less',
				autoprefixer: {
					browsers: AP_BROWSERS
				}
			},
			build: {
				files: {
					'src/css/style.css': 'src/less/main.less'
				}
			}
		},

		copy: {
			build: {
				cwd: SRC_DIR_CSS,
				src: ['*.css'],
				dest: BUILD_DIR_CSS,
				expand: true
			}
		},

		less: {
			build: {
				files: {
					'src/css/style.css': SRC_FILES_LESS
				}
			}
		},

		uncss: {
			build: {
				files: [
					{ src: 'index.html', dest: 'dist/css/style.uncss.css' }
				],
				options: {
					ignoreSheets: [/fonts.googleapis/]
				}
			}
		},

		cssmin: {
			options: {
				keepSpecialComments: 0
			},
			build: {
				files: {
					'dist/css/style.min.css': 'src/css/style.css'
				}
			},
			dist: {
				files: {
					'dist/css/style.uncss.css': 'dist/css/style.uncss.css'
				}
			}
		},

		jshint: {
			options: {
				curly: true
			},
			beforeconcat: [SRC_FILES_JS],
			afterconcat: ['dist/js/script.js']
		},

		concat: {
			options: {
				seperator: ";"
			},
			build: {
				src: ['src/js/*.js'],
				dest: 'dist/js/script.js'
			}
		},

		uglify: {
			build: {
				files: {
					"dist/js/script.min.js": 'dist/js/script.js'
				}
			}
		},

		watch: {
			styles: {
				options: {
					spawn: false
				},
				files: ['src/less/*.less', 'src/less/**/*.less'],
				tasks: ['cssflow', 'copy'],
			},
			scripts: {
				options: {
					spawn: false
				},
				files: ['src/js//*.js'],
				tasks: ['concat', 'uglify', 'jshint']
			}
		}
	});

	// Load the plugins
	require('load-grunt-tasks')(grunt);

	//Default Task(s)<commit_msg>update 0.5.0-1<commit_after>module.exports = function(grunt) {

	// constants for various paths and files to be used by the task configuration
	var BUILD_DIR      = 'dist/';

	var BUILD_DIR_JS   = BUILD_DIR     + 'js/';
	var BUILD_FILE_JS  = BUILD_DIR_JS  + 'script.js';
	var BUILD_FILES_JS  = BUILD_DIR_JS  + '*.js';

	var BUILD_DIR_CSS  = BUILD_DIR     + 'css/';
	var BUILD_FILE_CSS = BUILD_DIR_CSS + 'style.min.css';
	var BUILD_FILES_CSS = BUILD_DIR_CSS + '*.css';


	var SRC_DIR        = 'src/';

	var SRC_DIR_JS     = SRC_DIR + 'js/';
	var SRC_DIR_CSS    = SRC_DIR + 'css/';
	var SRC_DIR_LESS   = SRC_DIR + 'less/';

	var SRC_FILES_JS   = SRC_DIR_JS   + '*.js';
	var SRC_FILES_CSS  = SRC_DIR_CSS  + '*.css';
	var SRC_FILES_LESS = SRC_DIR_LESS + '*.less';

	var AP_BROWSERS = [
		'Android >= 4',
		'Chrome >= 35',
		'Firefox >= 35',
		'Explorer >= 7',
		'iOS >= 6',
		'Opera >= 20',
		'Safari >= 9'
	];

	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),

		cssflow: {
			options: {
				preprocessor: 'less',
				autoprefixer: {
					browsers: AP_BROWSERS
				}
			},
			build: {
				files: {
					'src/css/style.css': 'src/less/main.less'
				}
			}
		},

		clean: {
			css: [BUILD_FILES_CSS, SRC_FILES_CSS],
			js : [BUILD_FILES_JS]
		},

		copy: {
			build: {
				cwd: SRC_DIR_CSS,
				src: ['*.css'],
				dest: BUILD_DIR_CSS,
				expand: true
			}
		},

		less: {
			build: {
				files: {
					'src/css/style.css': SRC_FILES_LESS
				}
			}
		},

		uncss: {
			build: {
				files: [
					{ src: 'index.html', dest: 'dist/css/style.uncss.css' }
				],
				options: {
					ignoreSheets: [/fonts.googleapis/]
				}
			}
		},

		cssmin: {
			options: {
				keepSpecialComments: 0
			},
			build: {
				files: {
					'dist/css/style.min.css': 'src/css/style.css'
				}
			},
			dist: {
				files: {
					'dist/css/style.uncss.css': 'dist/css/style.uncss.css'
				}
			}
		},

		jshint: {
			options: {
				curly: true,
				globals: {
					jQuery: true
				}
			},
			beforeconcat: [SRC_FILES_JS],
			afterconcat: [BUILD_FILE_JS]
		},

		concat: {
			options: {
				seperator: ";"
			},
			build: {
				src: [SRC_FILES_JS],
				dest: BUILD_FILE_JS
			}
		},

		uglify: {
			build: {
				files: {
					'dist/js/script.min.js': 'dist/js/script.js'
				}
			}
		},

		watch: {
			styles: {
				options: {
					spawn: false
				},
				files: ['src/less/*.less', 'src/less/**/*.less'],
				tasks: ['clean:css', 'cssflow', 'copy']
			},
			scripts: {
				options: {
					spawn: false
				},
				files: ['src/js//*.js'],
				tasks: ['jshint:beforeconcat', 'clean:js', 'concat', 'uglify', 'jshint:afterconcat']
			}
		}
	});

	// Load the plugins
	require('load-grunt-tasks')(grunt);

	//Default Task(s)
{'fraction_non_alphanumeric': 0.17927823050058206, 'fraction_numerical': 0.005044625533566162, 'mean_word_length': 2.2118380062305296, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 17, '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': '1487285', 'n_tokens_mistral': 2733, 'n_tokens_neox': 2167, 'n_words': 372}