<commit_before># Add a default clickhandler so we can use hrefs
Backbone.View::defaultClickHandler = (e) ->
  # Return if a modifier key is pressed or when Backbone has not properly been initialized
  # Make sure we return "true" so other functions can determine what happened
  # Note that the capitalization in Backbone.[H]istory is intentional
  return true  if e.metaKey or e.ctrlKey or e.altKey or not Backbone.History.started
  routeTo = $(e.target).closest("a").attr("href")
  Backbone.View::navigateTo routeTo<commit_msg>Better support for CMD+click backbone links<commit_after># Add a default clickhandler so we can use hrefs
Backbone.View::defaultClickHandler = (e, routeTo=null) ->
  routeTo ||= $(e.target).closest("a").attr("href")

  # Return if a modifier key is pressed or when Backbone has not properly been initialized
  # Make sure we return "true" so other functions can determine what happened
  # Note that the capitalization in Backbone.[H]istory is intentional
  if e.metaKey or e.ctrlKey or e.altKey
    window.open routeTo, "_blank"
  else if not Backbone.History.started
    window.open routeTo
  else
    Backbone.View::navigateTo routeTo
{'fraction_non_alphanumeric': 0.0823327615780446, 'fraction_numerical': 0.0, 'mean_word_length': 4.504716981132075, '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': '132308', 'n_tokens_mistral': 339, 'n_tokens_neox': 326, 'n_words': 134}