<commit_before>module.exports = Context;

function Context(vars, parent) {
  this.vars = vars || {};
  this.functions = {};
  this.templates = {};
  this.blocks = {};
  this.parent = parent;
  this.children = [];
}

Context.prototype.create_child = function(vars) {
  var tmp = new Context(vars, this);
  this.children.push(tmp);
  return tmp;
};

Context.prototype.current_child = function() {
  return this.children.length ? this.children[this.children.length-1] : null;
};

Context.prototype.deepest_child = function() {
  if (!this.children.length) {
    return this;
  }

  return this.current_child().deepest_child();
};

Context.prototype.chain = function() {
  return this.parent ? this.parent.chain().concat([this]) : [this];
};

Context.prototype.leave_parent = function() {
  this.parent.children.pop();
  return this.parent;
};<commit_msg>commented out some unused functions<commit_after>module.exports = Context;

function Context(vars, parent) {
  this.vars = vars || {};
  this.functions = {};
  this.templates = {};
  this.blocks = {};
  this.parent = parent;
  this.children = [];
}

Context.prototype.create_child = function(vars) {
  var tmp = new Context(vars, this);
  this.children.push(tmp);
  return tmp;
};

/*
 * These are currently unused - they may be useful in future
 *
Context.prototype.current_child = function() {
  return this.children.length ? this.children[this.children.length-1] : null;
};

Context.prototype.deepest_child = function() {
  if (!this.children.length) {
    return this;
  }

  return this.current_child().deepest_child();
};
*/

Context.prototype.chain = function() {
  return this.parent ? this.parent.chain().concat([this]) : [this];
};

Context.prototype.leave_parent = function() {
  this.parent.children.pop();
  return this.parent;
};
{'fraction_non_alphanumeric': 0.16109253065774806, 'fraction_numerical': 0.0011148272017837235, 'mean_word_length': 4.084985835694051, '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': '4351621', 'n_tokens_mistral': 565, 'n_tokens_neox': 562, 'n_words': 110}