<commit_before>$ ->
  $(document).on 'click', '.pjax, .pagination a, .pjax_links a', (e) ->
    if e.which > 1 || e.metaKey || e.ctrlKey
      return
    else if $.support.pjax
      e.preventDefault()
      container = $(this).data('pjax-container')
      unless container
        table = $(this).closest('table.index_table')
        if table[0]
          container = "##{table.attr('id')}"
        else
          container = '[data-pjax-container]'

      $.pjax
        container: container
        url: $(this).data('href') || $(this).attr('href')
        timeout: 50000
        push: container == '#list'
    else if $(this).data('href')
      e.preventDefault()
      window.location = $(this).data('href')

  unless gon.test
    $(document).on 'submit', '.pjax-form', (e) -><commit_msg>fix pjax inner container support<commit_after>$ ->
  $(document).on 'click', '.pjax, .pagination a, .pjax_links a', (e) ->
    if e.which > 1 || e.metaKey || e.ctrlKey
      return
    else if $.support.pjax
      e.preventDefault()
      container = $(this).data('pjax-container')
      unless container
        table = $(this).closest('table.index_table:not(#list)')
        if table[0]
          container = "##{table.attr('id')}"
        else
          container = '[data-pjax-container]'

      main_pjax_wrap = container == '[data-pjax-container]'
      $.pjax
        container: container
        url: $(this).data('href') || $(this).attr('href')
        timeout: 50000
        push: main_pjax_wrap
        scrollTo: main_pjax_wrap
    else if $(this).data('href')
      e.preventDefault()
      window.location = $(this).data('href')

  unless gon.test
    $(document).on 'submit', '.pjax-form', (e) ->
{'fraction_non_alphanumeric': 0.17792131532589547, 'fraction_numerical': 0.008220786846741044, 'mean_word_length': 2.394422310756972, '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': '6339874', 'n_tokens_mistral': 550, 'n_tokens_neox': 533, 'n_words': 118}