<commit_before>class @Activities
  constructor: ->
    Pager.init 20, true
    $(".event-filter .btn").bind "click", (event) =>
      event.preventDefault()
      @toggleFilter($(event.currentTarget))
      @reloadActivities()

  reloadActivities: ->
    $(".content_list").html ''
    Pager.init 20, true


  toggleFilter: (sender) ->
    sender.parent().toggleClass "active"
    event_filters = $.cookie("event_filter")
    filter = sender.attr("id").split("_")[0]
    if event_filters
      event_filters = event_filters.split(",")
    else
      event_filters = new Array()

    index = event_filters.indexOf(filter)
    if index is -1<commit_msg>Fix tab toggle on activity<commit_after>class @Activities
  constructor: ->
    Pager.init 20, true
    $(".event-filter .btn").bind "click", (event) =>
      event.preventDefault()
      @toggleFilter($(event.currentTarget))
      @reloadActivities()

  reloadActivities: ->
    $(".content_list").html ''
    Pager.init 20, true


  toggleFilter: (sender) ->
    sender.toggleClass "active"
    event_filters = $.cookie("event_filter")
    filter = sender.attr("id").split("_")[0]
    if event_filters
      event_filters = event_filters.split(",")
    else
      event_filters = new Array()

    index = event_filters.indexOf(filter)
    if index is -1
{'fraction_non_alphanumeric': 0.14777947932618682, 'fraction_numerical': 0.009188361408882083, 'mean_word_length': 3.1891025641025643, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1448686', 'n_tokens_mistral': 411, 'n_tokens_neox': 396, 'n_words': 83}