<commit_before>/*global module:false*/
module.exports = function(grunt) {

	var path = require('path');
	require("load-grunt-tasks")(grunt);
	grunt.registerTask("default",
		["clean:dist", "copy:dist", "requirejs-transformconfig:dist", "requirejs", "concat", "processhtml", "clean:after-dist"]);
	grunt.registerTask("release", ["default", "clean:release", "copy:release"]);

	function includeSource(patterns) {
		return grunt.util._.map(grunt.file.expand(patterns), function(file) {
			return path.join('<%= pkg.name %>', file.replace(/\.js$/, ''));
		});
	}

	// Project configuration.
	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		bowerDir: 'bower_components',
		clean: {
			dist: "dist/",
			"after-dist": ["dist/<%= bowerDir %>", "dist/main.js"],
			release: "release/"
		},
		copy: {
			dist: {
				files: [
					{
						'dist/': ['widget/**/*', 'main.js']
					},<commit_msg>Avoid using path.join to generate module path, which breaks on Windows.<commit_after>/*global module:false*/
module.exports = function(grunt) {

	var path = require('path');
	require("load-grunt-tasks")(grunt);
	grunt.registerTask("default",
		["clean:dist", "copy:dist", "requirejs-transformconfig:dist", "requirejs", "concat", "processhtml", "clean:after-dist"]);
	grunt.registerTask("release", ["default", "clean:release", "copy:release"]);

	function includeSource(patterns) {
		return grunt.util._.map(grunt.file.expand(patterns), function(file) {
			return ['<%= pkg.name %>', file.replace(/\.js$/, '')].join('/');
		});
	}

	// Project configuration.
	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		bowerDir: 'bower_components',
		clean: {
			dist: "dist/",
			"after-dist": ["dist/<%= bowerDir %>", "dist/main.js"],
			release: "release/"
		},
		copy: {
			dist: {
				files: [
					{
						'dist/': ['widget/**/*', 'main.js']
					},
{'fraction_non_alphanumeric': 0.22246104245029555, 'fraction_numerical': 0.0, 'mean_word_length': 4.32, 'pattern_counts': {'":': 2, '<': 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': '5800398', 'n_tokens_mistral': 726, 'n_tokens_neox': 645, 'n_words': 112}