<commit_before>"use strict";

module.exports = function (grunt) {

	var deployPath = "deploy/",
		graphPath = deployPath + "js/<%= pkg.name %>.js",
		minGraphPath = deployPath + "js/<%= pkg.name %>.min.js",
		appPath = deployPath + "js/<%= pkg.name %>-app.js",
		minAppPath = deployPath + "js/<%= pkg.name %>-app.min.js";

	// Project configuration.
	grunt.initConfig({
		pkg: grunt.file.readJSON("package.json"),
		bowerrc: grunt.file.readJSON(".bowerrc"),
		bump: {
			options: {
				files: ["bower.json", "package.json"],
				updateConfigs: ["pkg"],
				commit: false,
				commitMessage: "Release v%VERSION%",
				commitFiles: ["bower.json", "package.json"],
				createTag: false,
				tagName: "v%VERSION%",
				tagMessage: "Version %VERSION%",
				push: false
			}
		},
		clean: {
			js: [deployPath]
		},
		concat: {
			options: {
				process: function (src, filepath) {
					return "// Source: " + filepath + "\n" + src;
				}
			},
			graph: {
				src: ["src/js/header.js", "src/js/graph/**/*.js"],
				dest: graphPath
			},
			app: {
				src: ["src/js/app/header.js", "src/js/app/**/*.js"],
				dest: appPath
			}
		},
		connect: {
			devserver: {
				options: {
					protocol: "http",
					hostname: "localhost",
					port: 8000,
					base: deployPath,
					directory: deployPath,
					livereload: true,
					open: "http://localhost:8000/webvowl.html",
					middleware: function (connect, options) {
						return [
							connect.favicon("favicon.ico"),
							connect.static(options.base[0]),
							connect.directory(options.base)
						];
					}
				}
			}
		},
		copy: {
			dependencies: {
				files: [
					{expand: true, cwd: "<%= bowerrc.directory %>/d3/", src: ["d3*.js"], dest: deployPath + "/js/"},
					{expand: true, cwd: "<%= bowerrc.directory %>/jquery/", src: ["jquery.min.js", "jquery.min.js"], dest: deployPath + "/js/"}
				]
			},
			static: {
				files: [
					{expand: true, cwd: "src/css/", src: ["**"], dest: deployPath + "css/"},
					{expand: true, cwd: "src/js/data/", src: ["**"], dest: deployPath + "js/data/"},
					{expand: true, src: ["license.txt", "favicon.ico"], dest: deployPath}
				]
			}
		},
		htmlbuild: {
			dist: {
				src: "src/webvowl.html",<commit_msg>Fix copying of jquery files<commit_after>"use strict";

module.exports = function (grunt) {

	var deployPath = "deploy/",
		graphPath = deployPath + "js/<%= pkg.name %>.js",
		minGraphPath = deployPath + "js/<%= pkg.name %>.min.js",
		appPath = deployPath + "js/<%= pkg.name %>-app.js",
		minAppPath = deployPath + "js/<%= pkg.name %>-app.min.js";

	// Project configuration.
	grunt.initConfig({
		pkg: grunt.file.readJSON("package.json"),
		bowerrc: grunt.file.readJSON(".bowerrc"),
		bump: {
			options: {
				files: ["bower.json", "package.json"],
				updateConfigs: ["pkg"],
				commit: false,
				commitMessage: "Release v%VERSION%",
				commitFiles: ["bower.json", "package.json"],
				createTag: false,
				tagName: "v%VERSION%",
				tagMessage: "Version %VERSION%",
				push: false
			}
		},
		clean: {
			js: [deployPath]
		},
		concat: {
			options: {
				process: function (src, filepath) {
					return "// Source: " + filepath + "\n" + src;
				}
			},
			graph: {
				src: ["src/js/header.js", "src/js/graph/**/*.js"],
				dest: graphPath
			},
			app: {
				src: ["src/js/app/header.js", "src/js/app/**/*.js"],
				dest: appPath
			}
		},
		connect: {
			devserver: {
				options: {
					protocol: "http",
					hostname: "localhost",
					port: 8000,
					base: deployPath,
					directory: deployPath,
					livereload: true,
					open: "http://localhost:8000/webvowl.html",
					middleware: function (connect, options) {
						return [
							connect.favicon("favicon.ico"),
							connect.static(options.base[0]),
							connect.directory(options.base)
						];
					}
				}
			}
		},
		copy: {
			dependencies: {
				files: [
					{expand: true, cwd: "<%= bowerrc.directory %>/d3/", src: ["d3*.js"], dest: deployPath + "/js/"},
					{expand: true, cwd: "<%= bowerrc.directory %>/jquery/", src: ["jquery.min.js", "jquery.min.map"], dest: deployPath + "/js/"}
				]
			},
			static: {
				files: [
					{expand: true, cwd: "src/css/", src: ["**"], dest: deployPath + "css/"},
					{expand: true, cwd: "src/js/data/", src: ["**"], dest: deployPath + "js/data/"},
					{expand: true, src: ["license.txt", "favicon.ico"], dest: deployPath}
				]
			}
		},
		htmlbuild: {
			dist: {
				src: "src/webvowl.html",
{'fraction_non_alphanumeric': 0.2073639033205331, 'fraction_numerical': 0.004969505308335216, 'mean_word_length': 2.686927560366361, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6832478', 'n_tokens_mistral': 2077, 'n_tokens_neox': 1610, 'n_words': 329}