<commit_before><div class="viewable">
  <h2><%= datum.label %></h2>
  <div class="content">
    <%= datum.allow_rich_text? ? datum.value : simple_format(datum.value) %>
  </div>
</div>
<div class="editable">
  <%= f.label :value, datum.label, :for => "datum_#{datum.id}_value" %>
  <div class="fullwidth">
  <% if datum.multiline? %>
    <%= f.text_area :value, :class => (datum.allow_rich_text? ? 'editor' : 'normal'), :id => "datum_#{datum.id}_value" %>
  <% else %>
    <%= f.text_field :value, :id => "datum_#{datum.id}_value" %>
  <% end %>
  </div>
  <% if datum._parent_document.is_a?(Page) %>
  <div class="submit">
    <%= f.submit t(:save) %>
  </div>
  <% end %>
</div><commit_msg>rich text html should be safe<commit_after><div class="viewable">
  <h2><%= datum.label %></h2>
  <div class="content">
    <%= datum.allow_rich_text? ? datum.value.html_safe : simple_format(datum.value) %>
  </div>
</div>
<div class="editable">
  <%= f.label :value, datum.label, :for => "datum_#{datum.id}_value" %>
  <div class="fullwidth">
  <% if datum.multiline? %>
    <%= f.text_area :value, :class => (datum.allow_rich_text? ? 'editor' : 'normal'), :id => "datum_#{datum.id}_value" %>
  <% else %>
    <%= f.text_field :value, :id => "datum_#{datum.id}_value" %>
  <% end %>
  </div>
  <% if datum._parent_document.is_a?(Page) %>
  <div class="submit">
    <%= f.submit t(:save) %>
  </div>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.24184397163120566, 'fraction_numerical': 0.0028368794326241137, 'mean_word_length': 3.9858657243816253, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 57, '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': '4811998', 'n_tokens_mistral': 611, 'n_tokens_neox': 574, 'n_words': 98}