<commit_before>module JuviaRails
  module ViewHelpers

    def juvia_comments(topic_key = nil)
      str = <<-EOF
        <div id='juvia_comments'></div>
    
        <script type="text/javascript" class="juvia">
          (function() {
              var options = {
                  container    : '#juvia_comments',
                  site_key     : '#{JuviaRails.configuration.site_key}',
                  topic_key    : '#{topic_key}' || location.href,
                  topic_url    : location.href,
                  topic_title  : document.title || location.href,
                  include_base : !window.Juvia,
                  include_css  : !window.Juvia,
                  comment_order: '#{JuviaRails.configuration.comment_order}'
              };

              function makeQueryString(options) {
                  var key, params = [];
                  for (key in options) {
                      params.push(
                          encodeURIComponent(key) +<commit_msg>escape topic_key in js embed<commit_after>module JuviaRails
  module ViewHelpers

    def juvia_comments(topic_key = nil)
      str = <<-EOF
        <div id='juvia_comments'></div>
    
        <script type="text/javascript" class="juvia">
          (function() {
              var options = {
                  container    : '#juvia_comments',
                  site_key     : '#{JuviaRails.configuration.site_key}',
                  topic_key    : '#{j topic_key}' || location.href,
                  topic_url    : location.href,
                  topic_title  : document.title || location.href,
                  include_base : !window.Juvia,
                  include_css  : !window.Juvia,
                  comment_order: '#{JuviaRails.configuration.comment_order}'
              };

              function makeQueryString(options) {
                  var key, params = [];
                  for (key in options) {
                      params.push(
                          encodeURIComponent(key) +
{'fraction_non_alphanumeric': 0.09995002498750624, 'fraction_numerical': 0.0, 'mean_word_length': 1.4296116504854368, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, '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': '4128409', 'n_tokens_mistral': 546, 'n_tokens_neox': 519, 'n_words': 97}