<commit_before><commit_msg>first commit for admin tools<commit_after>var fs = require('fs');
var moment = require('moment');

// Entry Point
if (process.argv.length < 4) {
	console.log("usage: node get-lineup.js {config-file} {radio-ID}");
	process.exit(1);
}

var cwd = path.resolve(path.dirname(process.argv[3]));
var radioId = process.argv[4];
var today = moment().format("YYYY-MM-DD");

var lineupPath = cwd + "/lineups/" + radioId + "-" + today + ".json.compiled";
var compiledLineup = JSON.parse(self.fs.readFileSync(lineupPath, 'utf8'));

console.log(JSON.stringify(compiledLineup, null, 2));
{'fraction_non_alphanumeric': 0.18697829716193656, 'fraction_numerical': 0.01001669449081803, 'mean_word_length': 5.382978723404255, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5914407', 'n_tokens_mistral': 210, 'n_tokens_neox': 204, 'n_words': 44}