<commit_before>import _ from 'lodash'

export default function restPlugin(schema) {

  if (!schema.get('created')) {
    schema.add({created: Date})
    schema.path('created').index(true)
  }
  if (!schema.get('modified')) {
    schema.add({modified: Date})
    schema.path('modified').index(true)
  }
<commit_msg>refactor: no name for export function<commit_after>import _ from 'lodash'

export default function(schema) {

  if (!schema.get('created')) {
    schema.add({created: Date})
    schema.path('created').index(true)
  }
  if (!schema.get('modified')) {
    schema.add({modified: Date})
    schema.path('modified').index(true)
  }

{'fraction_non_alphanumeric': 0.17628705148205928, 'fraction_numerical': 0.0, 'mean_word_length': 4.394957983193278, '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': '7203078', 'n_tokens_mistral': 208, 'n_tokens_neox': 203, 'n_words': 38}