<commit_before>window.Scheduler =
  
  loadTicketDetails: (url, callback)->
    return unless url
    $.get url, (ticket)->
      html = """
      <div class="modal hide" tabindex="-1">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
          <h3>#{ticket.summary}</h3>
        </div>
        <div class="modal-body">
          #{ticket.description}
        </div>
      </div>
      """
      $modal = $(html).modal()
      $modal.on('hidden', callback) if callback
    
$.tablesorter.addParser
  id: 'inputs'
  is: (s)-> false # don't auto-detect
  format: (text, table, td)->
    $(td).find('input').val()
  type: 'numeric'

$.tablesorter.addParser
  id: 'timestamp'
  is: (s)-> false # don't auto-detect
  format: (text, table, td)-> $(td).attr('data-timestamp')
  type: 'text'

$.tablesorter.addParser
  id: 'sequence'
  is: (s)-> false # don't auto-detect
  format: (text, table, td)-><commit_msg>[skip] Removed redundant definition of 'timestamp' parser (1m)<commit_after>window.Scheduler =
  
  loadTicketDetails: (url, callback)->
    return unless url
    $.get url, (ticket)->
      html = """
      <div class="modal hide" tabindex="-1">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
          <h3>#{ticket.summary}</h3>
        </div>
        <div class="modal-body">
          #{ticket.description}
        </div>
      </div>
      """
      $modal = $(html).modal()
      $modal.on('hidden', callback) if callback
    
$.tablesorter.addParser
  id: 'inputs'
  is: (s)-> false # don't auto-detect
  format: (text, table, td)->
    $(td).find('input').val()
  type: 'numeric'

$.tablesorter.addParser
  id: 'sequence'
  is: (s)-> false # don't auto-detect
  format: (text, table, td)->
{'fraction_non_alphanumeric': 0.19075451647183847, 'fraction_numerical': 0.0037194473963868225, 'mean_word_length': 2.7213438735177866, 'pattern_counts': {'":': 0, '<': 23, '<?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': '1882951', 'n_tokens_mistral': 625, 'n_tokens_neox': 611, 'n_words': 145}