<commit_before>a = require('./prettytable.js');

// a.fieldNames(["City name", "Area", "Population", "ann"]);

// a.add_row(["Adelaide",1295, 1158259, 600.5])
// a.add_row(["Brisbane",5905, 1857594, 1146.4])
// a.add_row(["Darwin", 112, 120900, 1714.7])
// a.add_row(["Hobart", 1357, 205556, 619.5])
// a.add_row(["Sydney", 2058, 4336374, 1214.8])
// a.add_row(["Melbourne", 1566, 3806092, 646.9])
// a.add_row(["Perth", 5386, 1554769, 869.4])

// var table = a.toString();
// a.print();
// console.log(table);

a.csv("./test.csv");
// a.print();<commit_msg>added tests for json file<commit_after>a = require('./prettytable.js');

// a.fieldNames(["City name", "Area", "Population", "ann"]);

// a.add_row(["Adelaide",1295, 1158259, 600.5])
// a.add_row(["Brisbane",5905, 1857594, 1146.4])
// a.add_row(["Darwin", 112, 120900, 1714.7])
// a.add_row(["Hobart", 1357, 205556, 619.5])
// a.add_row(["Sydney", 2058, 4336374, 1214.8])
// a.add_row(["Melbourne", 1566, 3806092, 646.9])
// a.add_row(["Perth", 5386, 1554769, 869.4])

// var table = a.toString();
// a.print();
// console.log(table);

// a.csv("./test.csv");
// a.print();

a.json("./test.json")
{'fraction_non_alphanumeric': 0.27902946273830154, 'fraction_numerical': 0.18197573656845753, 'mean_word_length': 4.065789473684211, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2569711', 'n_tokens_mistral': 669, 'n_tokens_neox': 514, 'n_words': 84}