<commit_before># Methods added to this helper will be available to all templates in the application.
module ApplicationHelper  
  def orbited_javascript
    [
    "<script src=\"http://#{ORBITED_HOST}:#{ORBITED_PORT}/static/Orbited.js\"></script>",
    '<script>',
    '  document.domain = document.domain;',
    "  Orbited.settings.port = #{ORBITED_PORT};",
    "  Orbited.settings.hostname = '#{ORBITED_HOST}';",
    '  TCPSocket = Orbited.TCPSocket;',
    '</script>',
    "<script src=\"http://#{ORBITED_HOST}:#{ORBITED_PORT}/static/protocols/stomp/stomp.js\"></script>"
    ].join("\n")
  end
end<commit_msg>same as before<commit_after># Methods added to this helper will be available to all templates in the application.
module ApplicationHelper  
  def orbited_javascript
    [
    "<script src=\"http://#{ORBITED_HOST}:#{ORBITED_PORT}/orbited/static/Orbited.js\"></script>",
    '<script>',
    '  document.domain = document.domain;',
    "  Orbited.settings.port = #{ORBITED_PORT};",
    "  Orbited.settings.hostname = '#{ORBITED_HOST}';",
    '  TCPSocket = Orbited.TCPSocket;',
    '</script>',
    "<script src=\"http://#{ORBITED_HOST}:#{ORBITED_PORT}/orbited/static/protocols/stomp/stomp.js\"></script>"
    ].join("\n")
  end
end
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.0, 'mean_word_length': 3.956175298804781, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '105753', 'n_tokens_mistral': 415, 'n_tokens_neox': 438, 'n_words': 73}