<commit_before>class window.TS.LinkFinder
  constructor: (@elements) ->

  enable: ->
    setTimeout(->
      $('.ts-link-finder, .medium-editor-toolbar-input').textcomplete [
        {
          match: /^\/(\w*)$/
          index: 1
          search: (term, callback) ->
            $.ajax
              method: 'GET'
              url: window.TS.ADMIN_PAGES_URL
              dataType: 'json'
              contentType: 'application/json'
              data: {path: term}
              success: (data, status) -> 
                callback(data.pages)
          replace: (page) -> page.path.substring(1)
          template: (page) -> "#{page.title} (#{page.path})"
        }
      ], 
        zIndex: 10000
    , 500)
    
  disable: -><commit_msg>removed substring of the first char<commit_after>class window.TS.LinkFinder
  constructor: (@elements) ->

  enable: ->
    setTimeout(->
      $('.ts-link-finder, .medium-editor-toolbar-input').textcomplete [
        {
          match: /^\/(\w*)$/
          index: 1
          search: (term, callback) ->
            $.ajax
              method: 'GET'
              url: window.TS.ADMIN_PAGES_URL
              dataType: 'json'
              contentType: 'application/json'
              data: {path: term}
              success: (data, status) -> 
                callback(data.pages)
          replace: (page) -> page.path#.substring(1)
          template: (page) -> "#{page.title} (#{page.path})"
        }
      ], 
        zIndex: 10000
    , 500)
    
  disable: ->
{'fraction_non_alphanumeric': 0.15055884286653518, 'fraction_numerical': 0.013149243918474688, 'mean_word_length': 1.4707792207792207, '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': '938204', 'n_tokens_mistral': 470, 'n_tokens_neox': 445, 'n_words': 89}