<commit_before>jQuery ->
  $('.edit-tag-button').on 'click', ->
    id = $(this).attr('data-id')
    $('.field-container[data-id='+id+']').removeClass("hide")

  $('.remove-tag-field').on 'click', (e) ->
    e.preventDefault()
    id = $(this).attr('data-id')
    $('.field-container[data-id='+id+']').addClass("hide")
  $('.papers').on 'click', '.paper-tag', (e) ->
    e.preventDefault()
    tag_name = $(@).data("tag-name")
    $(".paper-tag[data-tag-name='#{tag_name}']").parents("tr").find("input[type=checkbox]").prop('checked', true)
    false
  $('.papers').on 'click', '.paper-state', (e) ->
    e.preventDefault()
    state = $(@).data 'state'
    $(".paper-state[data-state='#{state}']").parents('tr').find("input[type=checkbox]").prop 'checked', true
    false

  # Toggle paper's checkbox
  $paper_checkboxes = $("input[name='notification[ids][]']")
  $check_all_checkbox = $('#notification_check_all')

  $check_all_checkbox.on 'click', (e) ->
    check_status = $check_all_checkbox.prop('checked')
    $paper_checkboxes.prop('checked', check_status) # Toggle it
  # For tags
  window.CreateTagsInput = (url) ->
    source = new Bloodhound({
        datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
        queryTokenizer: Bloodhound.tokenizers.whitespace,
        prefetch: url,
    })
    source.initialize()
    $(".paper_tag_list > input").tagsinput({
      freeInput: true,
      typeaheadjs: {
        source: source.ttAdapter()
        hint: true,
        highlight: true,
        minLength: 0

      }
    })
<commit_msg>#47 disable tags caching<commit_after>jQuery ->
  $('.edit-tag-button').on 'click', ->
    id = $(this).attr('data-id')
    $('.field-container[data-id='+id+']').removeClass("hide")

  $('.remove-tag-field').on 'click', (e) ->
    e.preventDefault()
    id = $(this).attr('data-id')
    $('.field-container[data-id='+id+']').addClass("hide")
  $('.papers').on 'click', '.paper-tag', (e) ->
    e.preventDefault()
    tag_name = $(@).data("tag-name")
    $(".paper-tag[data-tag-name='#{tag_name}']").parents("tr").find("input[type=checkbox]").prop('checked', true)
    false
  $('.papers').on 'click', '.paper-state', (e) ->
    e.preventDefault()
    state = $(@).data 'state'
    $(".paper-state[data-state='#{state}']").parents('tr').find("input[type=checkbox]").prop 'checked', true
    false

  # Toggle paper's checkbox
  $paper_checkboxes = $("input[name='notification[ids][]']")
  $check_all_checkbox = $('#notification_check_all')

  $check_all_checkbox.on 'click', (e) ->
    check_status = $check_all_checkbox.prop('checked')
    $paper_checkboxes.prop('checked', check_status) # Toggle it
  # For tags
  window.CreateTagsInput = (url) ->
    source = new Bloodhound({
        datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'),
        queryTokenizer: Bloodhound.tokenizers.whitespace,
        prefetch: {
          url: url,
          cache: false,
        }
    })
    source.initialize()
    $(".paper_tag_list > input").tagsinput({
      freeInput: true,
      typeaheadjs: {
        source: source.ttAdapter()
        displayKey: 'name',
        hint: true,
        highlight: true,
        minLength: 0

      }
    })

{'fraction_non_alphanumeric': 0.21299188007495315, 'fraction_numerical': 0.0012492192379762648, 'mean_word_length': 3.3225371120107963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '3820924', 'n_tokens_mistral': 1083, 'n_tokens_neox': 1072, 'n_words': 164}