<commit_before>jQuery(function() {

  var current_selection = '';

  jQuery(document).on('mouseup', 'body', function() {
    current_selection = window.getSelection().toString();
  })

  jQuery('.split-off-ticket').bind('click', function(event) {
    if (current_selection != '') {
      var url = jQuery(this).attr('href') + '.json';
      var data = {
        selected_text: current_selection
      };

      jQuery.ajax({
        url: url,
        type: 'post',
        data: data,
        success: function(result) {
          window.location = result.ticket_path;
        }
      });

      event.preventDefault();
    }
  });
});<commit_msg>javascript: use `return false` rather than `event.preventDefault()`.<commit_after>jQuery(function() {

  var current_selection = '';

  jQuery(document).on('mouseup', 'body', function() {
    current_selection = window.getSelection().toString();
  })

  jQuery('.split-off-ticket').bind('click', function(event) {
    if (current_selection != '') {
      var url = jQuery(this).attr('href') + '.json';
      var data = {
        selected_text: current_selection
      };

      jQuery.ajax({
        url: url,
        type: 'post',
        data: data,
        success: function(result) {
          window.location = result.ticket_path;
        }
      });

      return false;
    }
  });
});
{'fraction_non_alphanumeric': 0.16579536967886482, 'fraction_numerical': 0.0, 'mean_word_length': 2.4986945169712795, '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': '647920', 'n_tokens_mistral': 396, 'n_tokens_neox': 383, 'n_words': 71}