<commit_before>
// namespace
Window.application = {
  editor:"",
  apiLimit:1500
};

// Dom Ready
$(function(){

  // Initilize CodeMirror Editor
  Window.application.editor = CodeMirror.fromTextArea(document.getElementById("in"), {
    mode: 'gfm',// github-flavored-markdown
    lineNumbers: true,
    matchBrackets: true,
    theme: "default",
    onFocus:function(){
      $(".CodeMirror-scroll").addClass("focus");
    },
    onBlur:function(){
      $(".CodeMirror-scroll").removeClass("focus");
    },
    onCursorActivity: function() {
      Window.application.editor.setLineClass(hlLine, null, null);
      hlLine = Window.application.editor.setLineClass(Window.application.editor.getCursor().line, null, "activeline");
    }
  });
  var hlLine = Window.application.editor.setLineClass(0, "activeline");

  // Initialize html view<commit_msg>trigger tooltip when button is focused<commit_after>
// namespace
Window.application = {
  editor:"",
  apiLimit:1500
};

// Dom Ready
$(function(){

  $(".btn").each(function(){
    var self = this;
    $(self).bind("focus",$(self).tooltip({
      placement:"bottom",
      delay: { show: 300, hide: 100 }
    }))
  });
  // Initilize CodeMirror Editor
  Window.application.editor = CodeMirror.fromTextArea(document.getElementById("in"), {
    mode: 'gfm',// github-flavored-markdown
    lineNumbers: true,
    matchBrackets: true,
    theme: "default",
    onFocus:function(){
      $(".CodeMirror-scroll").addClass("focus");
    },
    onBlur:function(){
      $(".CodeMirror-scroll").removeClass("focus");
    },
    onCursorActivity: function() {
      Window.application.editor.setLineClass(hlLine, null, null);
      hlLine = Window.application.editor.setLineClass(Window.application.editor.getCursor().line, null, "activeline");
    }
  });
  var hlLine = Window.application.editor.setLineClass(0, "activeline");

  // Initialize html view
{'fraction_non_alphanumeric': 0.16491043203371972, 'fraction_numerical': 0.008429926238145416, 'mean_word_length': 3.7238805970149254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '302931', 'n_tokens_mistral': 600, 'n_tokens_neox': 564, 'n_words': 99}