<commit_before>import createProperty from './property'
import factory from './factory'

export default function(data, parent) {
  const object = { ...createProperty(data, parent) }

  object.properties = data.properties.map(property => factory(property, object))

  for (const property of object.properties) {
    object[property.id] = property.value || property.items || property
  }

  return object
}
<commit_msg>fix: include data on object properties to make json debugger work<commit_after>import createProperty from './property'
import factory from './factory'

export default function(data, parent) {
  const object = { ...createProperty(data, parent), data }

  object.properties = data.properties.map(property => factory(property, object))

  for (const property of object.properties) {
    object[property.id] = property.value || property.items || property
  }

  return object
}

{'fraction_non_alphanumeric': 0.11685393258426967, 'fraction_numerical': 0.0, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '90889', 'n_tokens_mistral': 236, 'n_tokens_neox': 229, 'n_words': 73}