<commit_before>define [], ->
  class SelectionList

    isList: true

    constructor: ->
      @_sels = []

    addSelection: (sel) ->
      eId = sel.getId()
      if @_sels[eId]?
        console.log "duplicate selection"
      else
        @_sels[eId] = sel
        sel.select()

    select: ->
      undefined

    deselect: ->
      for key, value of @_sels
        value.deselect()<commit_msg>deselecting for selectionlist<commit_after>define [], ->
  class SelectionList

    isList: true

    constructor: ->
      @_sels = []

    addSelection: (sel) ->
      eId = sel.getId()
      if @_sels[eId]?
        # duplicate selection, remove from selection
        sel.deselect()
        delete @_sels[eId]
      else
        @_sels[eId] = sel
        sel.select()

    select: ->
      undefined

    deselect: ->
      for key, value of @_sels
        value.deselect()
{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.0, 'mean_word_length': 1.8349514563106797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '3731089', 'n_tokens_mistral': 289, 'n_tokens_neox': 280, 'n_words': 64}