<commit_before>/* jshint camelcase: false */

module.exports = function (grunt) {
	'use strict';

	var DEBUG = (grunt.cli.tasks[0] !== 'build');

	var config = {
		generateValidationReport: false,
		validateOnWatch: false
	}, gruntConfig = {
		pkg: grunt.file.readJSON('package.json'),

		jshint: {
			files: {
				src: ['app/assets/js/*.js', 'Gruntfile.js'],
				options: {
					jshintrc: true
				}
			}
		},
		csslint: {
			options: {
				csslintrc: '.csslintrc'
			}
		},
		lesslint: {
			src: ['app/assets/less/**/*.less']
		},
		validation: {
			options: {
				stoponerror: true,
				reset: true
			},
			files: {
				src: [
					'app/**/*.html'
				]
			}
		},


		bower: {
			target: {
				rjsConfig: 'app/assets/js/build.js'
			}
		},
		requirejs: {
			compile: {
				options: {
					name: 'app',
					baseUrl: 'app/assets/js',
					out: 'app/assets/build/script.js',
					mainConfigFile: 'app/assets/js/build.js',
					include:  ['lib/require']
				}
			}
		},
		less: {
			files: {
				options: {
					paths: ['app/assets/less', 'app/assets/css'],
					cleancss: true
				},
				files: {
					'app/assets/build/style.css': 'app/assets/less/style.less'
				}
			}
		},

		shell: {
			watchers: {
				command: '(grunt watch && echo) & grunt browser_sync',
				options: {
					stdout: true
				}
			}
		},

		browser_sync: {
			files: {
				src : [
					'app/assets/build/style.css',
					'app/assets/css/**/*.css',
					'<%= requirejs.compile.options.out %>',
					'app/assets/imgs/**/*.jpg',
					'app/assets/imgs/**/*.png',
					'app/**/*.php',
					'app/**/*.html'
				],
				options: {
					server: {
						baseDir: './app/'
					},
					ghostMode: {
						scroll: true,
						links: true,
						forms: true
					}
				}
			}
		},

		watch: {
			less: {
				files: ['app/assets/less/style.less'],
				tasks: ['less'],
				options: {
					interrupt: true
				}
			},

			scripts: {
				files: ['<%= requirejs.compile.options.baseUrl %>/**/*.js'],
				tasks: ['requirejs'],
				options: {
					interrupt: true
				}
			}<commit_msg>Bower watcher, I have added.<commit_after>/* jshint camelcase: false */

module.exports = function (grunt) {
	'use strict';

	var DEBUG = (grunt.cli.tasks[0] !== 'build');

	var config = {
		generateValidationReport: false,
		validateOnWatch: false
	}, gruntConfig = {
		pkg: grunt.file.readJSON('package.json'),

		jshint: {
			files: {
				src: ['app/assets/js/*.js', 'Gruntfile.js'],
				options: {
					jshintrc: true
				}
			}
		},
		csslint: {
			options: {
				csslintrc: '.csslintrc'
			}
		},
		lesslint: {
			src: ['app/assets/less/**/*.less']
		},
		validation: {
			options: {
				stoponerror: true,
				reset: true
			},
			files: {
				src: [
					'app/**/*.html'
				]
			}
		},


		bower: {
			target: {
				rjsConfig: 'app/assets/js/build.js'
			}
		},
		requirejs: {
			compile: {
				options: {
					name: 'app',
					baseUrl: 'app/assets/js',
					out: 'app/assets/build/script.js',
					mainConfigFile: 'app/assets/js/build.js',
					include:  ['lib/require']
				}
			}
		},
		less: {
			files: {
				options: {
					paths: ['app/assets/less', 'app/assets/css'],
					cleancss: true
				},
				files: {
					'app/assets/build/style.css': 'app/assets/less/style.less'
				}
			}
		},

		shell: {
			watchers: {
				command: '(grunt watch && echo) & grunt browser_sync',
				options: {
					stdout: true
				}
			}
		},

		browser_sync: {
			files: {
				src : [
					'app/assets/build/style.css',
					'app/assets/css/**/*.css',
					'<%= requirejs.compile.options.out %>',
					'app/assets/imgs/**/*.jpg',
					'app/assets/imgs/**/*.png',
					'app/**/*.php',
					'app/**/*.html'
				],
				options: {
					server: {
						baseDir: './app/'
					},
					ghostMode: {
						scroll: true,
						links: true,
						forms: true
					}
				}
			}
		},

		watch: {
			less: {
				files: ['app/assets/less/style.less'],
				tasks: ['less'],
				options: {
					interrupt: true
				}
			},

			scripts: {
				files: ['<%= requirejs.compile.options.baseUrl %>/**/*.js', '!app/assets/js/bower/**.*.js'],
				tasks: ['requirejs'],
				options: {
					interrupt: true
				}
			},

			bower: {
				files: ['app/assets/js/bower/**.*.js'],
				tasks: ['bower', 'requirejs'],
				options: {
					interrupt: true
				}
			}
{'fraction_non_alphanumeric': 0.19915750058506904, 'fraction_numerical': 0.000468055230517201, 'mean_word_length': 1.98463687150838, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2913015', 'n_tokens_mistral': 2220, 'n_tokens_neox': 1621, 'n_words': 262}