<commit_before>#!/usr/bin/env node

var path = require('path');
var amberc = require('amber-dev/lib/amberc');

// get parameters passed to the command line script
// discard the first two parameters which are the node binary and the script name
var parameters = process.argv.slice(2);

// check if at least one parameter was passed to the script
if (1 > parameters.length) {
	print_usage();
	process.exit();
}


// Get Amber root directory from the location of this script so that
// we can find the st and js directories etc.
var amber_dir = path.normalize(path.join(__dirname, '..', '..', 'node_modules', 'amber'));

var compiler = new amberc.Compiler(amber_dir);

var configuration = handle_options(parameters);

compiler.main(configuration);


/**
 * Process given program options and update defaults values.
 * Followed by check_for_closure_compiler() and then collect_files().
 */
function handle_options(optionsArray) {
	var programName = [];
	var currentItem = optionsArray.shift();
	var defaults = amberc.createDefaultConfiguration();

	while(undefined !== currentItem) {<commit_msg>cli: Important detail for -d to work re-added.<commit_after>#!/usr/bin/env node

var path = require('path');
var amberc = require('amber-dev/lib/amberc');

// get parameters passed to the command line script
// discard the first two parameters which are the node binary and the script name
var parameters = process.argv.slice(2);

// check if at least one parameter was passed to the script
if (1 > parameters.length) {
	print_usage();
	process.exit();
}


// Get Amber root directory from the location of this script so that
// we can find the st and js directories etc.
var amber_dir = path.normalize(path.join(__dirname, '..', '..', 'node_modules', 'amber'));

var configuration = handle_options(parameters);

var compiler = new amberc.Compiler(amber_dir);

compiler.main(configuration);


/**
 * Process given program options and update defaults values.
 * Followed by check_for_closure_compiler() and then collect_files().
 */
function handle_options(optionsArray) {
	var programName = [];
	var currentItem = optionsArray.shift();
	var defaults = amberc.createDefaultConfiguration();

	while(undefined !== currentItem) {
{'fraction_non_alphanumeric': 0.11547135769057285, 'fraction_numerical': 0.0018042399639152007, 'mean_word_length': 4.672634271099744, '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': '5315365', 'n_tokens_mistral': 625, 'n_tokens_neox': 609, 'n_words': 225}