<commit_before><div id="react-root"></div>
<script>
  var current_wishlist = [
    <% @wishlist.wishlist_entries.each_with_index do |entry,idx| %>
    <%= ', ' unless idx == 0 %>{
      id: <%= entry.id %>,
      catalog_entry_id: <%= entry.catalog_entry.id %>,
      name: '<%= j entry.catalog_entry.book.title.html_safe %>',
      subname: '',
      imageUrl: '<%= entry.catalog_entry.book.cover_image_url %>',
      author: '<%= j entry.catalog_entry.book.author.html_safe %>',
      description: '<%= j entry.catalog_entry.book.description.html_safe %>',
      level: '<%= j entry.catalog_entry.book.level %>',
      ar_points: '<%= entry.catalog_entry.book.ar_points %>'
    }

    <% end %>
  ];

  var all_active_books = [
    <% CatalogEntry.includes([:catalog, :book]).where('catalogs.active' => true).each_with_index do |entry,idx| %>
    <%= ', ' unless idx == 0 %>{
      catalog_entry_id: <%= entry.id %>,
      name: '<%= j entry.book.title.html_safe %>',
      subname: '',
      imageUrl: '<%= entry.book.cover_image_url %>',
      author: '<%= j entry.book.author.html_safe %>',
      description: '<%= j entry.book.description.html_safe %>',
      level: '<%= j entry.book.level %>',
      ar_points: '<%= entry.book.ar_points %>'
    }
    <% end %>
  ];
  var api_add_url = '<%= @add_url %>';
  var api_delete_url = '<%= @delete_url %>';
  var back_url = '<%= @back_url %>';
  var reader = '<%= j @wishlist.public_name %>';
</script>
<%= javascript_include_tag 'main', 'data-turbolinks-track': 'reload' %><commit_msg>Fixing name display issue on wish list pick page.<commit_after><div id="react-root"></div>
<script>
  var current_wishlist = [
    <% @wishlist.wishlist_entries.each_with_index do |entry,idx| %>
    <%= ', ' unless idx == 0 %>{
      id: <%= entry.id %>,
      catalog_entry_id: <%= entry.catalog_entry.id %>,
      name: '<%= j entry.catalog_entry.book.title.html_safe %>',
      subname: '',
      imageUrl: '<%= entry.catalog_entry.book.cover_image_url %>',
      author: '<%= j entry.catalog_entry.book.author.html_safe %>',
      description: '<%= j entry.catalog_entry.book.description.html_safe %>',
      level: '<%= j entry.catalog_entry.book.level %>',
      ar_points: '<%= entry.catalog_entry.book.ar_points %>'
    }

    <% end %>
  ];

  var all_active_books = [
    <% CatalogEntry.includes([:catalog, :book]).where('catalogs.active' => true).each_with_index do |entry,idx| %>
    <%= ', ' unless idx == 0 %>{
      catalog_entry_id: <%= entry.id %>,
      name: '<%= j entry.book.title.html_safe %>',
      subname: '',
      imageUrl: '<%= entry.book.cover_image_url %>',
      author: '<%= j entry.book.author.html_safe %>',
      description: '<%= j entry.book.description.html_safe %>',
      level: '<%= j entry.book.level %>',
      ar_points: '<%= entry.book.ar_points %>'
    }
    <% end %>
  ];
  var api_add_url = '<%= @add_url %>';
  var api_delete_url = '<%= @delete_url %>';
  var back_url = '<%= @back_url %>';
  var reader = '<%= j @wishlist.public_name.html_safe %>';
</script>
<%= javascript_include_tag 'main' %>
{'fraction_non_alphanumeric': 0.20680713128038897, 'fraction_numerical': 0.0012965964343598054, 'mean_word_length': 3.280166435506241, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 65, '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': '1062230', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1058, 'n_words': 168}