<commit_before><% content_for :javascript do %>
  <script>
    <%= render 'backbone/currentUser' %>

    // layout can probably be eliminated by replacing it by a constant
    // I think it's always the same -- mark
    layout = '<%= @layout %>';
    fact_text = '<%= j params[:fact] %>';
    title = '<%= j params[:title] %>';
    url = '<%= j params[:url] %>';

    (new ClientController).newFact(layout, fact_text, title, url)
  </script>
<% end %><commit_msg>Tell Rails that the javascript is HTML-safe, which it is since it has been escaped for Javascript.<commit_after><% content_for :javascript do %>
  <script>
    <%= render 'backbone/currentUser' %>

    // layout can probably be eliminated by replacing it by a constant
    // I think it's always the same -- mark
    layout = '<%= @layout %>';
    fact_text = '<%= j(params[:fact]).html_safe %>';
    title = '<%= j(params[:title]).html_safe %>';
    url = '<%= j(params[:url]).html_safe %>';

    (new ClientController).newFact(layout, fact_text, title, url)
  </script>
<% end %>
{'fraction_non_alphanumeric': 0.17624521072796934, 'fraction_numerical': 0.0, 'mean_word_length': 3.409282700421941, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '3847088', 'n_tokens_mistral': 340, 'n_tokens_neox': 311, 'n_words': 99}