<commit_before>/* jshint node: true */

module.exports = (grunt) => {
	grunt.initConfig({
		// Configuration initialization
		jshint: {
			options: {
				jshintrc: '.jshintrc'
			},
			gruntfile: {
				src: 'Gruntfile.js'
			},
			tasks: {
				src: ['tasks/*.js']
			}
		},

		filter: {
			main: {
				options: {
					countries: 'data/countries.csv'
				},
				src: 'data/migrations.csv',
				dest: 'data/data.csv'
			}
		},

		compile: {
			main: {
				src: 'data/data.csv',
				dest: 'data/data.json'
			}
		},

		concat: {
			js: {
				options: {
					separator: ';'
				},
				src: [
					'lib/modernizr.js',
					'lib/d3.min.js',
					'js/chart.js'
				],
				dest: 'dest/index.js'
			},
			css: {
				options: {
					separator: '\n'
				},
				src: [
					'css/normalize.css',
					'css/style.css'
				],
				dest: 'dest/style.css'
			}
		},

		uglify: {
			js: {
				files: {
					'dest/index.min.js': ['dest/index.js']
				}
			}
		},

		cssmin: {
			css: {
				src: 'dest/style.css',
				dest: 'dest/style.min.css'
			}
		},

		copy: {
			fonts: {
				files: [
					{
						expand: true,
						cwd: 'css/fonts/',
						src: ['*'],
						dest: 'dest/fonts',
						flatten: true
					}
				]
			}
		},

		clean: ['dest']
	});

	grunt.loadTasks('tasks');

	grunt.loadNpmTasks('grunt-contrib-jshint');
	grunt.loadNpmTasks('grunt-contrib-clean');
	grunt.loadNpmTasks('grunt-contrib-concat');
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-cssmin');
	grunt.loadNpmTasks('grunt-contrib-copy');

	grunt.registerTask('build', ['concat', 'cssmin', 'uglify', 'copy']);
	grunt.registerTask('default', ['jshint', 'filter', 'compile', 'build']);
};<commit_msg>added new js files to grunt concat files<commit_after>/* jshint node: true */

module.exports = (grunt) => {
	grunt.initConfig({
		// Configuration initialization
		jshint: {
			options: {
				jshintrc: '.jshintrc'
			},
			gruntfile: {
				src: 'Gruntfile.js'
			},
			tasks: {
				src: ['tasks/*.js']
			}
		},

		filter: {
			main: {
				options: {
					countries: 'data/countries.csv'
				},
				src: 'data/migrations.csv',
				dest: 'data/data.csv'
			}
		},

		compile: {
			main: {
				src: 'data/data.csv',
				dest: 'data/data.json'
			}
		},

		concat: {
			js: {
				options: {
					separator: ';'
				},
				src: [
					'lib/modernizr.js',
					'lib/d3.min.js',
					'js/chart.js',
					'js/periods.js',
					'js/merge.js',
					'js/chord.js'
				],
				dest: 'dest/index.js'
			},
			css: {
				options: {
					separator: '\n'
				},
				src: [
					'css/normalize.css',
					'css/style.css'
				],
				dest: 'dest/style.css'
			}
		},

		uglify: {
			js: {
				files: {
					'dest/index.min.js': ['dest/index.js']
				}
			}
		},

		cssmin: {
			css: {
				src: 'dest/style.css',
				dest: 'dest/style.min.css'
			}
		},

		copy: {
			fonts: {
				files: [
					{
						expand: true,
						cwd: 'css/fonts/',
						src: ['*'],
						dest: 'dest/fonts',
						flatten: true
					}
				]
			}
		},

		clean: ['dest']
	});

	grunt.loadTasks('tasks');

	grunt.loadNpmTasks('grunt-contrib-jshint');
	grunt.loadNpmTasks('grunt-contrib-clean');
	grunt.loadNpmTasks('grunt-contrib-concat');
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-cssmin');
	grunt.loadNpmTasks('grunt-contrib-copy');

	grunt.registerTask('build', ['concat', 'cssmin', 'uglify', 'copy']);
	grunt.registerTask('default', ['jshint', 'filter', 'compile', 'build']);
};
{'fraction_non_alphanumeric': 0.2023088023088023, 'fraction_numerical': 0.0005772005772005772, 'mean_word_length': 2.221189591078067, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1140592', 'n_tokens_mistral': 1851, 'n_tokens_neox': 1408, 'n_words': 200}