<commit_before>window.AutoCompletedChannelView = Backbone.Marionette.ItemView.extend(
  tagName: "li"

  triggers:
    "mouseenter": "mouseEnter",
    "mouseleave": "mouseLeave"

  template: "channels/_auto_completed_channel"

  initialize: ->
    this.queryRegex = new RegExp(this.options.query, "gi")

  templateHelpers: ->
    view = this
    return { highlightedTitle: -> this.title.replace(view.queryRegex, "<em>$&</em>")}

  onRender: ->
    if this.model.get('user_channel' )
      this.$el.addClass('user-channel')

  activate: ->
    this.$el.addClass 'active'

  deActivate: ->
    this.$el.removeClass 'active'

)<commit_msg>monkeytails take up less chars ;)<commit_after>window.AutoCompletedChannelView = Backbone.Marionette.ItemView.extend(
  tagName: "li"

  triggers:
    "mouseenter": "mouseEnter",
    "mouseleave": "mouseLeave"

  template: "channels/_auto_completed_channel"

  initialize: ->
    @queryRegex = new RegExp(@options.query, "gi")

  templateHelpers: ->
    view = this
    return { highlightedTitle: -> @title.replace(view.queryRegex, "<em>$&</em>")}

  onRender: ->
    if @model.get('user_channel' )
      @$el.addClass('user-channel')

  activate: ->
    @$el.addClass 'active'

  deActivate: ->
    @$el.removeClass 'active'

)
{'fraction_non_alphanumeric': 0.15664556962025317, 'fraction_numerical': 0.0, 'mean_word_length': 3.7735849056603774, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 19, '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': '5393368', 'n_tokens_mistral': 430, 'n_tokens_neox': 414, 'n_words': 71}