<commit_before>Factlink.Prepare = function() {
  var hasFocus = false;
  var el;
  var factId;
  var facts;
  var self = this;
  var pageX;
  var pageY;
  var loadingTimeoutID;
  var loading = false;

  function initialize(tmpl) {
    var createFact = Factlink.createFactFromSelection;

    el = $(tmpl());
    el.appendTo(Factlink.el);
    el.hide();

    el.bind('mouseup', function(e) {
      e.stopPropagation();
    }).bind('click', function(e) {
      e.preventDefault();

      self.startLoading();

      createFact();
    });

    bindAddEvidenceClick();
  }

  function bindAddEvidenceClick() {
    el.delegate(".fl-created","click", function(e) {
      if ( facts.length > 0 ) {
        facts[0].click();
        self.hide(100);
      }
    });
  }

  this.show = function(top, left) {<commit_msg>stop propagation of click on the add fact link button<commit_after>Factlink.Prepare = function() {
  var hasFocus = false;
  var el;
  var factId;
  var facts;
  var self = this;
  var pageX;
  var pageY;
  var loadingTimeoutID;
  var loading = false;

  function initialize(tmpl) {
    var createFact = Factlink.createFactFromSelection;

    el = $(tmpl());
    el.appendTo(Factlink.el);
    el.hide();

    el.bind('mouseup', function(e) {
      e.stopPropagation();
    }).bind('click', function(e) {
      e.preventDefault();
      e.stopPropagation();

      self.startLoading();

      createFact();
    });

    bindAddEvidenceClick();
  }

  function bindAddEvidenceClick() {
    el.delegate(".fl-created","click", function(e) {
      if ( facts.length > 0 ) {
        facts[0].click();
        self.hide(100);
      }
    });
  }

  this.show = function(top, left) {
{'fraction_non_alphanumeric': 0.1497326203208556, 'fraction_numerical': 0.0059417706476530005, 'mean_word_length': 2.6768558951965065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7201522', 'n_tokens_mistral': 573, 'n_tokens_neox': 548, 'n_words': 116}