<commit_before>showLoadedMessage = ->
  loaded_message = new Factlink.Views.Notification
    message: 'Factlink is loaded'

  loaded_message.render()

$(window).on 'factlink.factsLoaded', ->
  if Factlink? and FactlinkConfig? and FactlinkConfig.client == 'bookmarklet'
    showLoadedMessage()<commit_msg>Simplified check<commit_after>showLoadedMessage = ->
  loaded_message = new Factlink.Views.Notification
    message: 'Factlink is loaded'

  loaded_message.render()

$(window).on 'factlink.factsLoaded', ->
  if FactlinkConfig?.client == 'bookmarklet'
    showLoadedMessage()
{'fraction_non_alphanumeric': 0.11591695501730104, 'fraction_numerical': 0.0, 'mean_word_length': 5.293478260869565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3202695', 'n_tokens_mistral': 179, 'n_tokens_neox': 168, 'n_words': 34}