<commit_before><%- cache(content) do -%>
<div class="content_editor" id="<%= content_dom_id(content) %>">
  
  <%- if content.setttings[:display_as] == "checkbox" -%>
  
  <%= check_box_tag(
    content.form_field_name,
    "1",
    content.ingredient == "1",
    :onclick => "Alchemy.handleEssenceCheckbox(this)"
  ) %>
  <label for="<%= content.form_field_id %>" style="display: inline">
    <%= render_content_name(content) %>
  </label>
  
  <%- elsif content.setttings[:display_as] == "select" -%>
  
  <label><%= render_content_name(content) %></label>
  <%- if options[:select_values].blank? -%>
  <%= warning('options[:select_values] is nil', "No select values given. Please provide :select_values as argument to render_essence_editor_by_name() helper inside this element editor view.") %>
  <%- else -%>
  <%- if options[:select_values].is_a?(Hash)
    options_method = grouped_options_for_select(
      options[:select_values],
      content.ingredient,
      ''
    )
    else
      options_method = options_for_select(
        options[:select_values],
        content.ingredient
      )
    end
  %>
  <%= select_tag(
    content.form_field_name,
    options_method,
    {
      :class => "essence_editor_select full_width"
    }
  ) %>
  <%- end -%>
  
  <%- else -%>
  
  <label>
    <%= render_content_name(content) %>
    <%= link_to_confirmation_window(
      render_icon('delete-small'),
      _('Do you really want to delete this content?'),
      content_path(content),
      :class => 'icon_button small',
      :title => _('Remove this content')
    ) if content.setttings[:deletable] %>
  </label>
  <%= text_field_tag(
    content.form_field_name,
    content.ingredient,
    :class => "thin_border auto_resize#{content.setttings[:linkable] ? ' text_with_icon' : ''}"
  ) %>
  
  <%- if content.setttings[:linkable] -%>
  
  <%= hidden_field_tag content.form_field_name(:link), content.essence.link %>
  <%= hidden_field_tag content.form_field_name(:link_title), content.essence.link_title %>
  <%= hidden_field_tag content.form_field_name(:link_class_name), content.essence.link_class_name %>
  <%= hidden_field_tag content.form_field_name(:link_target), content.essence.link_target %>
  
  <a href="#" onclick="Alchemy.LinkOverlay.open(this, 420); return false;" title="<%= _('place_link') -%>" class="icon_button <%= content.linked? ? ' linked' : '' -%>" name="essence_text_<%= content.id -%>" id="edit_link_<%= content.id -%>">
    <span class="icon link"></span>
  </a><commit_msg>removed content.setttings ttttripple tttttttt tttttypo<commit_after><%- cache(content) do -%>
<div class="content_editor" id="<%= content_dom_id(content) %>">
  
  <%- if content.settings[:display_as] == "checkbox" -%>
  
  <%= check_box_tag(
    content.form_field_name,
    "1",
    content.ingredient == "1",
    :onclick => "Alchemy.handleEssenceCheckbox(this)"
  ) %>
  <label for="<%= content.form_field_id %>" style="display: inline">
    <%= render_content_name(content) %>
  </label>
  
  <%- elsif content.settings[:display_as] == "select" -%>
  
  <label><%= render_content_name(content) %></label>
  <%- if options[:select_values].blank? -%>
  <%= warning('options[:select_values] is nil', "No select values given. Please provide :select_values as argument to render_essence_editor_by_name() helper inside this element editor view.") %>
  <%- else -%>
  <%- if options[:select_values].is_a?(Hash)
    options_method = grouped_options_for_select(
      options[:select_values],
      content.ingredient,
      ''
    )
    else
      options_method = options_for_select(
        options[:select_values],
        content.ingredient
      )
    end
  %>
  <%= select_tag(
    content.form_field_name,
    options_method,
    {
      :class => "essence_editor_select full_width"
    }
  ) %>
  <%- end -%>
  
  <%- else -%>
  
  <label>
    <%= render_content_name(content) %>
    <%= link_to_confirmation_window(
      render_icon('delete-small'),
      _('Do you really want to delete this content?'),
      content_path(content),
      :class => 'icon_button small',
      :title => _('Remove this content')
    ) if content.settings[:deletable] %>
  </label>
  <%= text_field_tag(
    content.form_field_name,
    content.ingredient,
    :class => "thin_border auto_resize#{content.settings[:linkable] ? ' text_with_icon' : ''}"
  ) %>
  
  <%- if content.settings[:linkable] -%>
  
  <%= hidden_field_tag content.form_field_name(:link), content.essence.link %>
  <%= hidden_field_tag content.form_field_name(:link_title), content.essence.link_title %>
  <%= hidden_field_tag content.form_field_name(:link_class_name), content.essence.link_class_name %>
  <%= hidden_field_tag content.form_field_name(:link_target), content.essence.link_target %>
  
  <a href="#" onclick="Alchemy.LinkOverlay.open(this, 420); return false;" title="<%= _('place_link') -%>" class="icon_button <%= content.linked? ? ' linked' : '' -%>" name="essence_text_<%= content.id -%>" id="edit_link_<%= content.id -%>">
    <span class="icon link"></span>
  </a>
{'fraction_non_alphanumeric': 0.16989715189873417, 'fraction_numerical': 0.001977848101265823, 'mean_word_length': 3.9001937984496124, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '6979587', 'n_tokens_mistral': 1828, 'n_tokens_neox': 1739, 'n_words': 275}