<commit_before>scrollHandler = ->
  url = $(".actvty-pagination .next_page a").attr("href")
  if url and $(window).scrollTop() > $(document).height() - $(window).height() - 300
    $(".actvty-pagination").text "Nicht so schnell..."
    showSpinner()
    $.getScript url
  return

if $(".actvty-pagination").length
  $(window).scroll(scrollHandler)
  $(window).scroll()
  $(document).on 'page:load', ->
    $(window).off "scroll", scrollHandler

showActivitiesClickHandler = ->
  $(this).closest(".grouped-activities").children(".activity").each ->
    $(this).slideDown()
  $(this).parent().hide()

$(".show-activities").click showActivitiesClickHandler

for id of window.unread["activity"]
  $("#activity-#{id} .unread-flag").show();<commit_msg>Fix adding of unread astericks<commit_after>scrollHandler = ->
  url = $(".actvty-pagination .next_page a").attr("href")
  if url and $(window).scrollTop() > $(document).height() - $(window).height() - 300
    $(".actvty-pagination").text "Nicht so schnell..."
    showSpinner()
    $.getScript url
  return

if $(".actvty-pagination").length
  $(window).scroll(scrollHandler)
  $(window).scroll()
  $(document).on 'page:load', ->
    $(window).off "scroll", scrollHandler

showActivitiesClickHandler = ->
  $(this).closest(".grouped-activities").children(".activity").each ->
    $(this).slideDown()
  $(this).parent().hide()

$(".show-activities").click showActivitiesClickHandler

$.turboInit ->
  for k, v of window.unread["activity"]
    $("#activity-#{v} .unread-flag").show();
{'fraction_non_alphanumeric': 0.21386527141922826, 'fraction_numerical': 0.003924133420536298, 'mean_word_length': 4.34965034965035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '821524', 'n_tokens_mistral': 493, 'n_tokens_neox': 491, 'n_words': 87}