<commit_before>var elf         = require ( "../runtime/runtime" );

var AST = elf.Object.clone(function () {
  this.ErrorWalker = require ( "../utils/error_walker" );
  this.SexpWalker  = require ( "../utils/sexp_walker" );

  this.create = function (nodes) {
    return this.clone({ nodes: nodes })
  };

  this.errors = function (source) {
    return this.ErrorWalker.walk(this, source);
  };

  this.toSexp = function () {
    var sexp = this.SexpWalker.walk(this);
    return sexp.join('\n');
  };
});

module.exports = AST;<commit_msg>removed errors from the ast object<commit_after>var elf         = require ( "../runtime/runtime" );

var AST = elf.Object.clone(function () {
  this.ErrorWalker = require ( "../utils/error_walker" );
  this.SexpWalker  = require ( "../utils/sexp_walker" );

  this.create = function (nodes) {
    return this.clone({ nodes: nodes })
  };

  this.toSexp = function () {
    var sexp = this.SexpWalker.walk(this);
    return sexp.join('\n');
  };
});

module.exports = AST;
{'fraction_non_alphanumeric': 0.17309594460929772, 'fraction_numerical': 0.0, 'mean_word_length': 3.0318725099601593, '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': '4964828', 'n_tokens_mistral': 346, 'n_tokens_neox': 327, 'n_words': 68}