<commit_before>fs = require 'fs'
module.exports = (grunt) ->
	grunt.initConfig
		pkg: grunt.file.readJSON('package.json')
		# CSS
		less:
			options:
				strictMath: true
				strictUnits: true
				sourceMap: false # We're going to be post-processing the compiled output
			css:
				src:  'css/rohbot.less'
				dest: 'build/css/rohbot.css'
		myth:
			css:
				src:  'build/css/rohbot.css'
				dest: 'build/style.css'
		# JS
		coffee:
			classes:
				src: 'js/classes/*.coffee'
				dest: 'build/js/rohbot-classes.js'
			js:
				src:  'js/*.coffee'
				dest: 'build/js/rohbot-coffee.js'
		concat:
			js:
				src:  ['build/js/rohbot-classes.js','build/js/rohbot-coffee.js', 'build/js/rohbot.js']
				dest: 'build/rohbot.js'
			jslib:
				src:  'jslib/*.min.js'
				dest: 'build/jslibs.min.js'
		# templates
		htmlmin:
			options:
				collapseWhitespace: true
			templates:
				src: 'templates/*'
				dest: 'build/'
				expand: true
		hogan:
			templates:
				templates: 'build/templates/*.mustache'
				output: 'build/templates.js'
				binderName: 'hulk'
		# Other
		copy:
			js:
				src:  'js/*.js'
				dest: 'build/js/'
				expand:  true
				flatten: true
			img:
				src:  'img/*'
				dest: 'dist/'
				expand:  true
				flatten: true
			index:
				src:  'index.htm'
				dest: 'build/'
			deploy:
				src:  'build/*'
				dest: 'dist/'
				expand: true
				flatten: true
				filter: 'isFile'
		clean:
			dist:  'dist'
			build: 'build'

	grunt.loadNpmTasks 'grunt-contrib-less'
	grunt.loadNpmTasks 'grunt-contrib-copy'
	grunt.loadNpmTasks 'grunt-contrib-concat'
	grunt.loadNpmTasks 'grunt-contrib-clean'
	grunt.loadNpmTasks 'grunt-contrib-coffee'
	grunt.loadNpmTasks 'grunt-contrib-htmlmin'
	grunt.loadNpmTasks 'grunt-myth'
	grunt.loadNpmTasks 'grunt-hogan'

	grunt.registerTask 'default', [
		'setup'
		'clean:dist'
		'css'
		'js'
		'templates'
		'misc'
		'deploy'
	]

	grunt.registerTask 'setup', () ->
		fs.mkdirSync 'build' unless fs.existsSync 'build'
		grunt.task.run 'concat:jslib' unless fs.existsSync 'build/jslibs.min.js'

	grunt.registerTask 'css', [
		'less:css'
		'myth:css'
	]

	grunt.registerTask 'js', [
		'coffee:classes'
		'coffee:js'
		'copy:js'
		'concat:js'
	]

	grunt.registerTask 'templates', [
		'copy:index'
		'htmlmin:templates'
		'hogan:templates'
	]

	grunt.registerTask 'misc', [
		'copy:img'
	]

	grunt.registerTask 'deploy', [
		'copy:deploy'
	]
<commit_msg>:s/deploy/dist/<commit_after>fs = require 'fs'
module.exports = (grunt) ->
	grunt.initConfig
		pkg: grunt.file.readJSON('package.json')
		# CSS
		less:
			options:
				strictMath: true
				strictUnits: true
				sourceMap: false # We're going to be post-processing the compiled output
			css:
				src:  'css/rohbot.less'
				dest: 'build/css/rohbot.css'
		myth:
			css:
				src:  'build/css/rohbot.css'
				dest: 'build/style.css'
		# JS
		coffee:
			classes:
				src: 'js/classes/*.coffee'
				dest: 'build/js/rohbot-classes.js'
			js:
				src:  'js/*.coffee'
				dest: 'build/js/rohbot-coffee.js'
		concat:
			js:
				src:  ['build/js/rohbot-classes.js','build/js/rohbot-coffee.js', 'build/js/rohbot.js']
				dest: 'build/rohbot.js'
			jslib:
				src:  'jslib/*.min.js'
				dest: 'build/jslibs.min.js'
		# templates
		htmlmin:
			options:
				collapseWhitespace: true
			templates:
				src: 'templates/*'
				dest: 'build/'
				expand: true
		hogan:
			templates:
				templates: 'build/templates/*.mustache'
				output: 'build/templates.js'
				binderName: 'hulk'
		# Other
		copy:
			js:
				src:  'js/*.js'
				dest: 'build/js/'
				expand:  true
				flatten: true
			img:
				src:  'img/*'
				dest: 'dist/'
				expand:  true
				flatten: true
			index:
				src:  'index.htm'
				dest: 'build/'
			dist:
				src:  'build/*'
				dest: 'dist/'
				expand: true
				flatten: true
				filter: 'isFile'
		clean:
			dist:  'dist'
			build: 'build'

	grunt.loadNpmTasks 'grunt-contrib-less'
	grunt.loadNpmTasks 'grunt-contrib-copy'
	grunt.loadNpmTasks 'grunt-contrib-concat'
	grunt.loadNpmTasks 'grunt-contrib-clean'
	grunt.loadNpmTasks 'grunt-contrib-coffee'
	grunt.loadNpmTasks 'grunt-contrib-htmlmin'
	grunt.loadNpmTasks 'grunt-myth'
	grunt.loadNpmTasks 'grunt-hogan'

	grunt.registerTask 'default', [
		'setup'
		'clean:dist'
		'css'
		'js'
		'templates'
		'misc'
		'dist'
	]

	grunt.registerTask 'setup', () ->
		fs.mkdirSync 'build' unless fs.existsSync 'build'
		grunt.task.run 'concat:jslib' unless fs.existsSync 'build/jslibs.min.js'

	grunt.registerTask 'css', [
		'less:css'
		'myth:css'
	]

	grunt.registerTask 'js', [
		'coffee:classes'
		'coffee:js'
		'copy:js'
		'concat:js'
	]

	grunt.registerTask 'templates', [
		'copy:index'
		'htmlmin:templates'
		'hogan:templates'
	]

	grunt.registerTask 'misc', [
		'copy:img'
	]

	grunt.registerTask 'dist', [
		'copy:dist'
	]

{'fraction_non_alphanumeric': 0.15478187919463088, 'fraction_numerical': 0.0, 'mean_word_length': 2.902618657937807, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3995875', 'n_tokens_mistral': 2365, 'n_tokens_neox': 1970, 'n_words': 358}