<commit_before>var program = require('commander');
var graphite = require('graphite');
var fs = require('fs');
var path = require('path');
var _ = require('lodash');
var pkg = require('./package.json');
var elasticData = require('./elastic_data');
var influxData = require('./influx_data');
var influxData08 = require('./influx_data08');
var promData = require('./prom_data');

var dataDir = './data/';

program
  .version(pkg.version)
        .option('-g, --graphite <graphite>', 'Graphite address')
	.option('-i, --import', 'Run import for x days')
	.option('-l, --live', 'Live feed data')
	.option('-o, --opentsdb', 'Live feed data in to opentsdb')
	.option('--influxdb', 'Live feed data into to influxdb')
        .option('--influxdb08', 'Live feed data into to influxdb08')
	.option('--kairosdb', 'Live feed data into to kairosdb')
	.option('--elasticsearch', 'Live feed data into to kairosdb')
	.option('--prom', 'Live feed data into to kairosdb')
	.option('-d, --days <days>', 'Days');

program.parse(process.argv);

var graphiteUrl = 'plaintext://' + program.graphite;

if (program['import']) {
	import_data();
}

if (program.live) {
	live_data();
}<commit_msg>fixed typo<commit_after>var program = require('commander');
var graphite = require('graphite');
var fs = require('fs');
var path = require('path');
var _ = require('lodash');
var pkg = require('./package.json');
var elasticData = require('./elastic_data');
var influxData = require('./influx_data');
var influxData08 = require('./influx_data08');
var promData = require('./prom_data');

var dataDir = './data/';

program
  .version(pkg.version)
        .option('-g, --graphite <graphite>', 'Graphite address')
	.option('-i, --import', 'Run import for x days')
	.option('-l, --live', 'Live feed data')
	.option('-o, --opentsdb', 'Live feed data in to opentsdb')
	.option('--influxdb', 'Live feed data into to influxdb')
        .option('--influxdb08', 'Live feed data into to influxdb08')
	.option('--kairosdb', 'Live feed data into to kairosdb')
	.option('--elasticsearch', 'Live feed data into to kairosdb')
	.option('--prom', 'Live feed data into to prometheus')
	.option('-d, --days <days>', 'Days');

program.parse(process.argv);

var graphiteUrl = 'plaintext://' + program.graphite;

if (program['import']) {
	import_data();
}

if (program.live) {
	live_data();
}
{'fraction_non_alphanumeric': 0.19940094137783482, 'fraction_numerical': 0.0068463842533162175, 'mean_word_length': 4.362385321100917, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1701726', 'n_tokens_mistral': 800, 'n_tokens_neox': 773, 'n_words': 219}