<commit_before>window.sirius.Signal::defaults =
  phase: []

# window.sirius.Signal::resolve_references = (deferred, object_with_id) ->
#   deferred.push =>
#     node_id = @get('node_id')
#     node = object_with_id.node[node_id]
#     @set 'node', node
#     throw "Signal instance can't find node for obj id == #{node_id}" unless node
#     node.set('signal', @)

window.sirius.Signal::resolve_references =
  window.sirius.ReferenceHelper.resolver('node_id', 'node', 'node', 'signal', 'Signal', true)

window.sirius.Signal::encode_references = ->
  @set 'node_id', @get('node').id

window.sirius.Signal::phase_with_nema = (nema) ->
  _.find(@get('phase'), (phase) -> phase.get('nema') == nema)

window.sirius.Signal::calc_phase_row_col = ->
  _.each(@get('phase'),
    (ph) ->
      nema = ph.get('nema')
      if nema <= 4<commit_msg>Remove commented code<commit_after>window.sirius.Signal::defaults =
  phase: []

window.sirius.Signal::resolve_references =
  window.sirius.ReferenceHelper.resolver('node_id', 'node', 'node', 'signal', 'Signal', true)

window.sirius.Signal::encode_references = ->
  @set 'node_id', @get('node').id

window.sirius.Signal::phase_with_nema = (nema) ->
  _.find(@get('phase'), (phase) -> phase.get('nema') == nema)

window.sirius.Signal::calc_phase_row_col = ->
  _.each(@get('phase'),
    (ph) ->
      nema = ph.get('nema')
      if nema <= 4
{'fraction_non_alphanumeric': 0.1937590711175617, 'fraction_numerical': 0.001451378809869376, 'mean_word_length': 4.38671875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '2474973', 'n_tokens_mistral': 514, 'n_tokens_neox': 510, 'n_words': 79}