<commit_before>const
  { addOmission } = require('./PrototypeMethods')
  require('colors')

function Comparison(language){
  this.language = language
  this.root = language
  this.omissions = []
  this.nestOmissions = []
}

Comparison.prototype.isNotOmitted = function(nest){
  //the nest doesn't exist if it is in the NestOmissions and it's state is
  return !this.nestOmissions.find((nestOmission) => nest.id === nestOmission.id && !nestOmission.doesExist)
}

Comparison.prototype.addOmittedNest = function(nest){
  //add the nest and its children
  nest.pushMyselfIntoOmissions(this.nestOmissions)
}

Comparison.prototype.addOmittedNestProps = function (nest) {
  this.nestOmissions.push(nest)
}

Comparison.prototype.addOmission = addOmission

Comparison.prototype.logOmissions =  function() {
  let omString = ''
  this.omissions.forEach((omission) => {
    omString += `   -- ${omission} \n`
  })
  console.log(
    `  ${String(this.root).red} \n${String(omString).yellow}`
  )
}

module.exports = Comparison
<commit_msg>- incomplete comment<commit_after>const
  { addOmission } = require('./PrototypeMethods')
  require('colors')

function Comparison(language){
  this.language = language
  this.root = language
  this.omissions = []
  this.nestOmissions = []
}

Comparison.prototype.isNotOmitted = function(nest){
  //the nest doesn't exist if it is in the NestOmissions and neset.doesExist===false
  return !this.nestOmissions.find((nestOmission) => nest.id === nestOmission.id && !nestOmission.doesExist)
}

Comparison.prototype.addOmittedNest = function(nest){
  //add the nest and its children
  nest.pushMyselfIntoOmissions(this.nestOmissions)
}

Comparison.prototype.addOmittedNestProps = function (nest) {
  this.nestOmissions.push(nest)
}

Comparison.prototype.addOmission = addOmission

Comparison.prototype.logOmissions =  function() {
  let omString = ''
  this.omissions.forEach((omission) => {
    omString += `   -- ${omission} \n`
  })
  console.log(
    `  ${String(this.root).red} \n${String(omString).yellow}`
  )
}

module.exports = Comparison

{'fraction_non_alphanumeric': 0.1361661033317238, 'fraction_numerical': 0.0, 'mean_word_length': 4.496021220159151, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4290548', 'n_tokens_mistral': 694, 'n_tokens_neox': 664, 'n_words': 122}