<commit_before>$ !->

  $ \#page_2 .hide!
  $ \#page_3 .hide!

  state = 3
  pre-state = 1
  winWidth = $ window .width!

  $.getJSON \/loadEvent (json) !->
    console.log json
    for let event in json
      console.log event
      $ \#ss-container .append("
        <div class='ss-row ss-large'>
          <div class='ss-left'>
            <h3>
              <span>November 22, 2011</span>
              <a href='#'> #{event.tittle} </a>
            </h3>
          </div>
          <div class='ss-right'>
            <a href='#' class='ss-circle ss-circle-3'> #{event.content} </a>
          </div>
        </div>
      ")
    scroll!

  for let i from 1 to state
    $('#icon_'+i).click !->
      return if i == pre-state

      pre-state_ = pre-state
      pre-state := i

      $ "\#page_#i" .show!
      $('#icon_'+i).addClass \active
      $('#icon_'+pre-state_).removeClass \active

      if i == 1
        <- $ \#book .animate {right: $('#page_'+i).position!.left}, 500
        <- $ \#ss-links .animate {left: "10px"}, 100
        $ "\#page_#pre-state_" .hide
      else if pre-state_ == 1
        $ \#ss-links .animate {left: "-#{$ \#ss-links .width!}"}, 100<commit_msg>fixed overflow-x bug<commit_after>$ !->

  $ \#page_2 .hide!
  $ \#page_3 .hide!

  state = 3
  pre-state = 1
  winWidth = $ window .width!

  $.getJSON \/loadEvent (json) !->
    console.log json
    for let event in json
      console.log event
      $ \#ss-container .append("
        <div class='ss-row ss-large'>
          <div class='ss-left'>
            <h3>
              <span>November 22, 2011</span>
              <a href='#'> #{event.tittle} </a>
            </h3>
          </div>
          <div class='ss-right'>
            <a href='#' class='ss-circle ss-circle-3'> #{event.content} </a>
          </div>
        </div>
      ")
    scroll!

  for let i from 1 to state
    $('#icon_'+i).click !->
      return if i == pre-state

      pre-state_ = pre-state
      pre-state := i

      $ "\#page_#i" .show!
      $('#icon_'+i).addClass \active
      $('#icon_'+pre-state_).removeClass \active

      if i == 1
        <- $ \#book .animate {right: $('#page_'+i).position!.left}, 500
        <- $ \#ss-links .animate {left: "10px"}, 100
        $ "\#page_#pre-state_" .hide!
      else if pre-state_ == 1
        $ \#ss-links .animate {left: "-#{$ \#ss-links .width!}"}, 100
{'fraction_non_alphanumeric': 0.19477234401349072, 'fraction_numerical': 0.022765598650927487, 'mean_word_length': 1.6722972972972974, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, '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': '853889', 'n_tokens_mistral': 888, 'n_tokens_neox': 801, 'n_words': 199}