<commit_before>var espower = require('./index'),
    esprima = require('esprima'),
    escodegen = require('escodegen');

var jsCode = process.argv[2];
var jsAst = esprima.parse(jsCode, {tolerant: true, loc: true, tokens: true});
var modifiedAst = espower(jsAst);

console.log(escodegen.generate(modifiedAst));
<commit_msg>chore(espower): update script for debugging<commit_after>var espower = require('./index'),
    acorn = require('acorn'),
    escodegen = require('escodegen');

var jsCode = process.argv[2];
var parserOptions = {ecmaVersion: 6, locations: true};
var jsAst = acorn.parse(jsCode, parserOptions);
var modifiedAst = espower(jsAst);

console.log(escodegen.generate(modifiedAst));

{'fraction_non_alphanumeric': 0.15351506456241032, 'fraction_numerical': 0.00430416068866571, 'mean_word_length': 6.195876288659794, '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': '7066197', 'n_tokens_mistral': 231, 'n_tokens_neox': 226, 'n_words': 51}