<commit_before>class MicroModel
  _events: {}

  get: (key) ->
    @[key]

  set: (key, value, silent) ->
    @[key] = value
    if not @_events[key] or silent
      return
    for callback in @_events[key]
      (callback)()

  onChange: (key, callback) ->
    @_events[key] = @_events[key] or []
    @_events[key].push(callback)

microModule.export(MicroModel)<commit_msg>make @_events private<commit_after>class MicroModel
  _events = {}

  get: (key) ->
    @[key]

  set: (key, value, silent) ->
    @[key] = value
    if not _events[key] or silent
      return
    for callback in _events[key]
      (callback)()

  onChange: (key, callback) ->
    _events[key] = _events[key] or []
    _events[key].push(callback)

microModule.export(MicroModel)
{'fraction_non_alphanumeric': 0.15159574468085107, 'fraction_numerical': 0.0, 'mean_word_length': 3.092391304347826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2460113', 'n_tokens_mistral': 274, 'n_tokens_neox': 264, 'n_words': 63}