<commit_before>module.exports = (grunt) ->

	grunt.initConfig

		pkg: grunt.file.readJSON 'package.json'

		coffee:

			assets:
				files:
					'cache/.temp/main.js': 'assets/coffee/*.coffee'

			leafs:
				files:
					'cache/.temp/leafs.js': 'leafs/*/client.coffee'

			tracking:
				files:
					'cache/.temp/tracking.js': 'tracking/ackee.coffee'

		sass:

			assets:
				files: [{
					expand: true
					cwd: 'assets/scss/'
					src: ['*.scss']
					dest: 'cache/.temp/assets_css/'
					ext: '.css'
				}]

			leafs:
				files:
					'cache/.temp/leafs.css': 'cache/.temp/leafs.scss'

		concat:

			css:
				options:
					separator: "\n"
				src: [
					'bower_components/normalize.css/normalize.css'
					'bower_components/basicModal/dist/basicModal.min.css'
					'bower_components/basicContext/dist/basicContext.min.css'
					'bower_components/basicNotification/dist/basicNotification.min.css'
					'assets/css/*.css'
					'cache/.temp/assets_css/*.css'
				]
				dest: 'cache/.temp/main.css'

			js:
				options:
					separator: "\n"
				src: [
					'bower_components/jQuery/dist/jquery.min.js'
					'bower_components/js-md5/js/md5.min.js'
					'bower_components/mousetrap/mousetrap.min.js'
					'bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.min.js'
					'bower_components/basicModal/dist/basicModal.min.js'
					'bower_components/basicContext/dist/basicContext.min.js'
					'bower_components/basicNotification/dist/basicNotification.min.js'
					'bower_components/basicFit/dist/basicFit.min.js'
					'assets/js/*.js'
					'cache/.temp/main.js'
				]
				dest: 'cache/.temp/main.js'

			leafs:
				options:
					separator: "\n"
				src: 'leafs/*/*.scss',
				dest: 'cache/.temp/leafs.scss'

			json:
				options:
					banner: '['
					separator: ','
					footer: ']'
				src: 'leafs/*/package.json'
				dest: 'cache/leafs.json'

			tracking:
				options:
					separator: "\n"
				src: [
					'bower_components/json2/json2.js'
					'bower_components/platform/platform.js'
					'cache/.temp/tracking.js'
				]
				dest: 'cache/.temp/tracking.js'

		uglify:

			assets:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n'
				files:
					'cache/main.js': 'cache/.temp/main.js'

			leafs:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n'
				files:
					'cache/leafs.js': 'cache/.temp/leafs.js'

			tracking:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n'
				files:
					'cache/tracking.js': 'cache/.temp/tracking.js'

		cssmin:

			assets:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */'
				files:
					'cache/main.css': 'cache/.temp/main.css'

			leafs:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */'
				files:
					'cache/leafs.css': 'cache/.temp/leafs.css'

		watch:

			js:
				files: [
					'assets/coffee/*.coffee'
					'assets/js/*.js'
				]
				tasks: ['js']
				options:
					spawn: false
					interrupt: true

			scss:
				files: [
					'assets/scss/*.scss'
					'assets/css/*.css'
				]
				tasks: ['css']
				options:
					spawn: false
					interrupt: true

			leafs:
				files: 'leafs/*/*'
				tasks: ['leafs']
				options:
					spawn: false
					interrupt: true

			tracking:
				files: 'tracking/*'
				tasks: ['tracking']
				options:
					spawn: false
					interrupt: true

		concurrent:
			main: ['js', 'css', 'leafs', 'tracking']

		clean: ['cache/.temp/']

	require('load-grunt-tasks')(grunt)

	grunt.registerTask 'default', ->
		grunt.task.run [
			'concurrent'
			'temp'
		]

	grunt.registerTask 'js', [
		'coffee:assets'
		'concat:js'
		'uglify:assets'
	]
	grunt.registerTask 'css', [
		'sass:assets'
		'concat:css'
		'cssmin:assets'
	]
	grunt.registerTask 'leafs', [
		'coffee:leafs'
		'concat:leafs'
		'concat:json'
		'sass:leafs'
		'uglify:leafs'
		'cssmin:leafs'
	]
	grunt.registerTask 'tracking', [
		'coffee:tracking'
		'concat:tracking'
		'uglify:tracking'
	]
	grunt.registerTask 'temp', [
		'clean'
	]<commit_msg>Added livereload to grunt<commit_after>module.exports = (grunt) ->

	grunt.initConfig

		pkg: grunt.file.readJSON 'package.json'

		coffee:

			assets:
				files:
					'cache/.temp/main.js': 'assets/coffee/*.coffee'

			leafs:
				files:
					'cache/.temp/leafs.js': 'leafs/*/client.coffee'

			tracking:
				files:
					'cache/.temp/tracking.js': 'tracking/ackee.coffee'

		sass:

			assets:
				files: [{
					expand: true
					cwd: 'assets/scss/'
					src: ['*.scss']
					dest: 'cache/.temp/assets_css/'
					ext: '.css'
				}]

			leafs:
				files:
					'cache/.temp/leafs.css': 'cache/.temp/leafs.scss'

		concat:

			css:
				options:
					separator: "\n"
				src: [
					'bower_components/normalize.css/normalize.css'
					'bower_components/basicModal/dist/basicModal.min.css'
					'bower_components/basicContext/dist/basicContext.min.css'
					'bower_components/basicNotification/dist/basicNotification.min.css'
					'assets/css/*.css'
					'cache/.temp/assets_css/*.css'
				]
				dest: 'cache/.temp/main.css'

			js:
				options:
					separator: "\n"
				src: [
					'bower_components/jQuery/dist/jquery.min.js'
					'bower_components/js-md5/js/md5.min.js'
					'bower_components/mousetrap/mousetrap.min.js'
					'bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.min.js'
					'bower_components/basicModal/dist/basicModal.min.js'
					'bower_components/basicContext/dist/basicContext.min.js'
					'bower_components/basicNotification/dist/basicNotification.min.js'
					'bower_components/basicFit/dist/basicFit.min.js'
					'assets/js/*.js'
					'cache/.temp/main.js'
				]
				dest: 'cache/.temp/main.js'

			leafs:
				options:
					separator: "\n"
				src: 'leafs/*/*.scss',
				dest: 'cache/.temp/leafs.scss'

			json:
				options:
					banner: '['
					separator: ','
					footer: ']'
				src: 'leafs/*/package.json'
				dest: 'cache/leafs.json'

			tracking:
				options:
					separator: "\n"
				src: [
					'bower_components/json2/json2.js'
					'bower_components/platform/platform.js'
					'cache/.temp/tracking.js'
				]
				dest: 'cache/.temp/tracking.js'

		uglify:

			assets:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n'
				files:
					'cache/main.js': 'cache/.temp/main.js'

			leafs:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n'
				files:
					'cache/leafs.js': 'cache/.temp/leafs.js'

			tracking:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n'
				files:
					'cache/tracking.js': 'cache/.temp/tracking.js'

		cssmin:

			assets:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */'
				files:
					'cache/main.css': 'cache/.temp/main.css'

			leafs:
				options:
					banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */'
				files:
					'cache/leafs.css': 'cache/.temp/leafs.css'

		watch:

			js:
				files: [
					'assets/coffee/*.coffee'
					'assets/js/*.js'
				]
				tasks: ['js']
				options:
					spawn: false
					interrupt: true
					livereload: true

			scss:
				files: [
					'assets/scss/*.scss'
					'assets/css/*.css'
				]
				tasks: ['css']
				options:
					spawn: false
					interrupt: true
					livereload: true

			leafs:
				files: 'leafs/*/*'
				tasks: ['leafs']
				options:
					spawn: false
					interrupt: true
					livereload: true

			tracking:
				files: 'tracking/*'
				tasks: ['tracking']
				options:
					spawn: false
					interrupt: true
					livereload: true

		concurrent:
			main: ['js', 'css', 'leafs', 'tracking']

		clean: ['cache/.temp/']

	require('load-grunt-tasks')(grunt)

	grunt.registerTask 'default', ->
		grunt.task.run [
			'concurrent'
			'temp'
		]

	grunt.registerTask 'js', [
		'coffee:assets'
		'concat:js'
		'uglify:assets'
	]
	grunt.registerTask 'css', [
		'sass:assets'
		'concat:css'
		'cssmin:assets'
	]
	grunt.registerTask 'leafs', [
		'coffee:leafs'
		'concat:leafs'
		'concat:json'
		'sass:leafs'
		'uglify:leafs'
		'cssmin:leafs'
	]
	grunt.registerTask 'tracking', [
		'coffee:tracking'
		'concat:tracking'
		'uglify:tracking'
	]
	grunt.registerTask 'temp', [
		'clean'
	]
{'fraction_non_alphanumeric': 0.18331374853113983, 'fraction_numerical': 0.0009400705052878966, 'mean_word_length': 2.499588815789474, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 37, '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': '7009693', 'n_tokens_mistral': 4378, 'n_tokens_neox': 3200, 'n_words': 465}