<commit_before>'use strict';
const chalk = require('chalk');
const tracery = require(`tracery-grammar`);
const the_pros = require(`./grammar.json`);
const grammar = tracery.createGrammar(the_pros);

grammar.addModifiers(tracery.baseEngModifiers); 

const numExamples = process.argv[2] || 10;
for (let i = 0; i < numExamples; ++i) {
    console.log("\n * " + grammar.flatten('#origin#'));
}<commit_msg>Default node app to print 30 headlines<commit_after>'use strict';
const chalk = require('chalk');
const tracery = require(`tracery-grammar`);
const the_pros = require(`./grammar.json`);
const grammar = tracery.createGrammar(the_pros);

grammar.addModifiers(tracery.baseEngModifiers); 

const numExamples = process.argv[2] || 30;
for (let i = 0; i < numExamples; ++i) {
    console.log("\n * " + grammar.flatten('#origin#'));
}
{'fraction_non_alphanumeric': 0.1717049576783555, 'fraction_numerical': 0.012091898428053204, 'mean_word_length': 5.7317073170731705, 'pattern_counts': {'":': 0, '<': 5, '<?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': '597695', 'n_tokens_mistral': 304, 'n_tokens_neox': 281, 'n_words': 62}