<commit_before>#!/usr/bin/env node
var copy = require('dryice').copy;
var bio_inc = require('./include_libs');

var build_dir = "build";
var do_build_game = function() {
	copy({
		source: bio_inc.game_src
		, dest: bio_inc.game_build
//		, filter: copy.filter.uglifyjs
	});
};
var do_build_home = function() {
	copy({
		source: bio_inc.home_css_src
		, dest: bio_inc.home_css_build
	});
};
var do_build_api = function() {
	copy({
		source: bio_inc.api_css_src
		, dest: bio_inc.api_css_build
	});
};
var do_build_dashboard = function() {
	copy({
		source: bio_inc.dashboard_css_src
		, dest: bio_inc.dashboard_css_build
	});
	copy({
		source: bio_inc.dashboard_src
		, dest: bio_inc.dashboard_build
//		, filter: copy.filter.uglifyjs
	});
};

var do_build_set_username = function() {
	copy({
		source: bio_inc.set_username_css_src
		, dest: bio_inc.set_username_css_build
	});
	copy({
		source: bio_inc.set_username_src
		, dest: bio_inc.set_username_build
//		, filter: copy.filter.uglifyjs
	});
};


if(require.main === module) { //Called directly
	var target = process.argv[2];
	var build_game = false;
	var build_home = false;
	var build_api = false;
	var build_dashboard = false;
	var build_set_username = false;

	if(target === "all") {
		build_game = true;
		build_home = true;
		build_api = true;
		build_dashboard = true;
		build_set_username = true;
	} else if(target === "game") {
		build_game = true;
	} else {
		console.log("--- Brawl.IO Build Tool ---");
		console.log("");
		console.log("Options:");
		console.log("  all       Builds everything");
		console.log("  game      Builds the Brawl.IO game");
		process.exit(0);
	}

	if(build_game) {
		console.log("Building game...");
		do_build_game();
	}
	if(build_home) {
		console.log("Building home CSS files...");
		do_build_home();
	}
	if(build_api) {
		console.log("Building API CSS files...");
		do_build_api();
	}
	if(build_dashboard) {
		console.log("Building Dashboard files...");
		do_build_dashboard();
	}
	if(build_set_username) {
		console.log("Building username set files...");
		do_build_set_username();
	}
	console.log("Done!");
} else { //required
	exports.build = function(callback) {
		do_build_game();
		do_build_home();
		do_build_api();
		do_build_dashboard();
		do_build_set_username();
		if(callback) {
			callback();
		}
	};
}
<commit_msg>Removing debug flags<commit_after>#!/usr/bin/env node
var copy = require('dryice').copy;
var bio_inc = require('./include_libs');

var build_dir = "build";
var do_build_game = function() {
	copy({
		source: bio_inc.game_src
		, dest: bio_inc.game_build
		, filter: copy.filter.uglifyjs
	});
};
var do_build_home = function() {
	copy({
		source: bio_inc.home_css_src
		, dest: bio_inc.home_css_build
	});
};
var do_build_api = function() {
	copy({
		source: bio_inc.api_css_src
		, dest: bio_inc.api_css_build
	});
};
var do_build_dashboard = function() {
	copy({
		source: bio_inc.dashboard_css_src
		, dest: bio_inc.dashboard_css_build
	});
	copy({
		source: bio_inc.dashboard_src
		, dest: bio_inc.dashboard_build
		, filter: copy.filter.uglifyjs
	});
};

var do_build_set_username = function() {
	copy({
		source: bio_inc.set_username_css_src
		, dest: bio_inc.set_username_css_build
	});
	copy({
		source: bio_inc.set_username_src
		, dest: bio_inc.set_username_build
		, filter: copy.filter.uglifyjs
	});
};


if(require.main === module) { //Called directly
	var target = process.argv[2];
	var build_game = false;
	var build_home = false;
	var build_api = false;
	var build_dashboard = false;
	var build_set_username = false;

	if(target === "all") {
		build_game = true;
		build_home = true;
		build_api = true;
		build_dashboard = true;
		build_set_username = true;
	} else if(target === "game") {
		build_game = true;
	} else {
		console.log("--- Brawl.IO Build Tool ---");
		console.log("");
		console.log("Options:");
		console.log("  all       Builds everything");
		console.log("  game      Builds the Brawl.IO game");
		process.exit(0);
	}

	if(build_game) {
		console.log("Building game...");
		do_build_game();
	}
	if(build_home) {
		console.log("Building home CSS files...");
		do_build_home();
	}
	if(build_api) {
		console.log("Building API CSS files...");
		do_build_api();
	}
	if(build_dashboard) {
		console.log("Building Dashboard files...");
		do_build_dashboard();
	}
	if(build_set_username) {
		console.log("Building username set files...");
		do_build_set_username();
	}
	console.log("Done!");
} else { //required
	exports.build = function(callback) {
		do_build_game();
		do_build_home();
		do_build_api();
		do_build_dashboard();
		do_build_set_username();
		if(callback) {
			callback();
		}
	};
}

{'fraction_non_alphanumeric': 0.15559853857726197, 'fraction_numerical': 0.0008596604341285192, 'mean_word_length': 4.0313513513513515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1023242', 'n_tokens_mistral': 1849, 'n_tokens_neox': 1753, 'n_words': 328}