<commit_before>#!/usr/bin/env node
/*******************************************************************************
 * @license
 * Copyright (c) 2013 VMware, Inc. All Rights Reserved.
 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
 * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
 * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
 * You can obtain a current copy of the Eclipse Public License from
 * http://www.opensource.org/licenses/eclipse-1.0.php
 *
 * Contributors:
 * <NAME>, <NAME> - initial version
 ******************************************************************************/
var optimist = require('optimist');
var	options;
var cmd;
	
options = optimist
	.alias('h', 'help')
	.alias('r', 'restart')
	.alias('k', 'kill')
	.usage('Usage: scr [-hr] [file/directory]')
	.argv;

if (options.h) {
	optimist.showHelp();
	process.exit();
} else {
	if (options.r) {
		cmd = '../commands/restart';
	} else if (options.k) {
		cmd = '../commands/kill';
	} else {
		cmd = '../commands/start';<commit_msg>more help text in usage<commit_after>#!/usr/bin/env node
/*******************************************************************************
 * @license
 * Copyright (c) 2013 VMware, Inc. All Rights Reserved.
 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
 * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
 * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
 * You can obtain a current copy of the Eclipse Public License from
 * http://www.opensource.org/licenses/eclipse-1.0.php
 *
 * Contributors:
 * <NAME>, <NAME> - initial version
 ******************************************************************************/
var optimist = require('optimist');
var	options;
var cmd;
	
options = optimist
	.alias('h', 'help')
	.alias('r', 'restart')
	.alias('k', 'kill')
	.usage('Usage: scr [-hrk] [file/directory]')
	.describe('r','restart the server')
	.describe('k','kill the server')
	.describe('h','this help info')
	.argv;

if (options.h) {
	optimist.showHelp();
	process.exit();
} else {
	if (options.r) {
		cmd = '../commands/restart';
	} else if (options.k) {
		cmd = '../commands/kill';
	} else {
		cmd = '../commands/start';
{'fraction_non_alphanumeric': 0.2834008097165992, 'fraction_numerical': 0.005398110661268556, 'mean_word_length': 4.532338308457711, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3887976', 'n_tokens_mistral': 719, 'n_tokens_neox': 669, 'n_words': 198}