<commit_before><div id='existing_image_area' class='dialog_area' <%= "style='display:none;'" if @image.errors.any? %>>
  <input type='hidden' name='selected_image' id='selected_image' />
  <div id='existing_image_area_content' class='clearfix'>
    <ul>
      <% @images.each do |image| %>
        <li<%= " class='selected'" if @image_id == image.id %>>
          <%= image_fu(image, '106x106#c', {
                         :alt => image.title,
                         :title => image.title,
                         :id => "image_#{image.id}",
                         :'data-id' => image.id
                       }) -%>
        </li>
      <% end -%>
    </ul>
  </div>
  <%= images_paginator @images, from_dialog? %>
  <% unless @app_dialog %>
    <div id='existing_image_size_area' class='clearfix'>
      <input type='hidden' name='selected_image_size' id='selected_image_size' />
      <p>
        <input type="checkbox" id="wants_to_resize_image" name="wants_to_resize_image" value="1" checked="checked" />
        <label for='wants_to_resize_image' class='stripped'><strong><%= t('.resize_image').html_safe %></strong></label>
      </p>
      <ul>
        <%
          (sizes = RefinerySetting.find_or_set(:user_image_sizes, {
                     :small => '110x110>',
                     :medium => '225x255>',
                     :large => '450x450>'
                   })
          ).sort_by{|k,v| v}.each_with_index do |(size, pixels), index|
            safe_pixels = pixels.to_s.gsub(/[<>=]/, '')
        -%>
            <li id="image_dialog_size_<%= index %>" class="image_dialog_size <%= 'selected' if size.to_s == 'medium' %>">
              <%= link_to size.to_s, "##{size}",
                          :'data-size' => pixels,
                          :title   => "#{size} image (#{safe_pixels})",
                          :tooltip => "#{size} image (#{safe_pixels})" %>
            </li>
        <% end -%>
      </ul>
    </div>
  <% end %>
  <%= render :partial => "/shared/admin/form_actions",<commit_msg>Not a lot, really, just spacing, plus using CSS for bold.<commit_after><div id='existing_image_area' class='dialog_area' <%= "style='display:none;'" if @image.errors.any? %>>
  <input type='hidden' name='selected_image' id='selected_image' />
  <div id='existing_image_area_content' class='clearfix'>
    <ul>
      <% @images.each do |image| %>
        <li<%= " class='selected'" if @image_id == image.id %>>
          <%= image_fu(image, '106x106#c', {
                         :alt => image.title,
                         :title => image.title,
                         :id => "image_#{image.id}",
                         :'data-id' => image.id
                       }) -%>
        </li>
      <% end -%>
    </ul>
  </div>

  <%= images_paginator @images, from_dialog? %>

  <% unless @app_dialog %>
    <div id='existing_image_size_area' class='clearfix'>
      <input type='hidden' name='selected_image_size' id='selected_image_size' />
      <p>
        <input type="checkbox" id="wants_to_resize_image" name="wants_to_resize_image" value="1" checked="checked" />
        <label for='wants_to_resize_image' class='stripped' style='font-weight: bold;'>
          <%= t('.resize_image').html_safe %>
        </label>
      </p>
      <ul>
        <%
          (sizes = RefinerySetting.find_or_set(:user_image_sizes, {
                     :small => '110x110>',
                     :medium => '225x255>',
                     :large => '450x450>'
                   })
          ).sort_by{|k,v| v}.each_with_index do |(size, pixels), index|
            safe_pixels = pixels.to_s.gsub(/[<>=]/, '')
        -%>
            <li id="image_dialog_size_<%= index %>" class="image_dialog_size<%= ' selected' if size.to_s == 'medium' %>">
              <%= link_to size.to_s, "##{size}",
                          :'data-size' => pixels,
                          :title   => "#{size} image (#{safe_pixels})",
                          :tooltip => "#{size} image (#{safe_pixels})" %>
            </li>
        <% end -%>
      </ul>
    </div>
  <% end %>

  <%= render :partial => "/shared/admin/form_actions",
{'fraction_non_alphanumeric': 0.18455971049457176, 'fraction_numerical': 0.012062726176115802, 'mean_word_length': 1.9341825902335457, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 103, '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': '6442067', 'n_tokens_mistral': 1404, 'n_tokens_neox': 1305, 'n_words': 225}