<commit_before>targets = {
	index_html: {flatten: true, cwd: 'src/', src: 'index.html', dest: 'dist/'},
	weave_html: {flatten: true, cwd: 'src/', src: 'weave.html', dest: 'dist/'},
	css: {flatten: true, cwd: 'src/', src: 'css/*.css', dest: 'dist/'},
	img: {flatten: true, cwd: 'src/', src: 'img/*.*', dest: 'dist/img'},
	fonts: {flatten: true, cwd: 'src/', src: 'css/fonts/*.ttf', dest: 'dist/fonts'},
	olcss: {flatten: true, cwd: 'node_modules/openlayers/css', src: 'ol.css', dest: 'dist/'},
	fontawesomecss: {flatten: true, cwd: 'node_modules/font-awesome/css', src: 'font-awesome.css', dest: 'dist/css/'},
	fontawesomefont: {flatten: true, cwd: 'node_modules/font-awesome/fonts', src: '*', dest: 'dist/fonts/'},
	semantic: {cwd: 'src/semantic', src: '**', dest: 'dist/semantic/'},
	weavesessions: {flatten: true, cwd: 'weave_sessions', src: "*", dest: "dist/"},
	projdb: {flatten: true, cwd: 'src/', src: 'ProjDatabase.zip', dest: "dist/"},
	core: {cwd: "WeaveASJS/bin/js-release/", src: "*.*", dest: "dist/core"},
	weave_dts: {cwd: "WeaveASJS/typings/", src: "weavejs-core.d.ts", dest: "typings/weave/"}
};

fse = require("fs-extra");
fs = require("fs");
glob = require("glob");
path = require("path");
minimist = require('minimist');

function copy_target(target)
{
	glob(target.src, {cwd: target.cwd},
	(err, matches) => {
		matches.forEach((match)=>
		{
			let dest;
			dest = path.join(target.dest, target.flatten ? path.basename(match) : match);
			console.log(path.join(target.cwd, match), dest);
			fse.copySync(path.join(target.cwd, match), dest);
		})
	});
}

argv = minimist(process.argv.slice(2));
target_names = argv._;
if (!target_names.length)
{
	target_names = Object.keys(targets);
}

for (let target_name of target_names)
{
	if (!targets.hasOwnProperty(target_name))<commit_msg>Added -v argument to copy.js<commit_after>targets = {
	index_html: {flatten: true, cwd: 'src/', src: 'index.html', dest: 'dist/'},
	weave_html: {flatten: true, cwd: 'src/', src: 'weave.html', dest: 'dist/'},
	css: {flatten: true, cwd: 'src/', src: 'css/*.css', dest: 'dist/'},
	img: {flatten: true, cwd: 'src/', src: 'img/*.*', dest: 'dist/img'},
	fonts: {flatten: true, cwd: 'src/', src: 'css/fonts/*.ttf', dest: 'dist/fonts'},
	olcss: {flatten: true, cwd: 'node_modules/openlayers/css', src: 'ol.css', dest: 'dist/'},
	fontawesomecss: {flatten: true, cwd: 'node_modules/font-awesome/css', src: 'font-awesome.css', dest: 'dist/css/'},
	fontawesomefont: {flatten: true, cwd: 'node_modules/font-awesome/fonts', src: '*', dest: 'dist/fonts/'},
	semantic: {cwd: 'src/semantic', src: '**', dest: 'dist/semantic/'},
	weavesessions: {flatten: true, cwd: 'weave_sessions', src: "*", dest: "dist/"},
	projdb: {flatten: true, cwd: 'src/', src: 'ProjDatabase.zip', dest: "dist/"},
	core: {cwd: "WeaveASJS/bin/js-release/", src: "*.*", dest: "dist/core"},
	weave_dts: {cwd: "WeaveASJS/typings/", src: "weavejs-core.d.ts", dest: "typings/weave/"}
};

fse = require("fs-extra");
glob = require("glob");
path = require("path");
minimist = require('minimist');

argv = minimist(process.argv.slice(2));
target_names = argv._;

if (!target_names.length)
{
	target_names = Object.keys(targets);
}

function copy_target(target)
{
	glob(target.src, {cwd: target.cwd},
	(err, matches) => {
		matches.forEach((match)=>
		{
			let dest;
			dest = path.join(target.dest, target.flatten ? path.basename(match) : match);
			if (argv.v) console.log(path.join(target.cwd, match), dest);
			fse.copySync(path.join(target.cwd, match), dest);
		})
	});
}

for (let target_name of target_names)
{
	if (!targets.hasOwnProperty(target_name))
{'fraction_non_alphanumeric': 0.22823072656683305, 'fraction_numerical': 0.0005546311702717693, 'mean_word_length': 5.011666666666667, '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': '7610744', 'n_tokens_mistral': 1490, 'n_tokens_neox': 1447, 'n_words': 311}