<commit_before><div class="container">
  <h1>History</h1>
  <h4>Any time any information about a case is updated, a new version is created. This page shows the history of this article and lists all the changes that have been made to the article over time.  </h4>

  <ul>
    <% @versions.each do |version| %>
      <li>
        <%= l(version.created_at, format: "%-d.%m.%Y %H:%M:%S %Z") %><br/>
        Event ID: <%= version.id %><br/>
        <b>Target:</b> <%= version.item_type %>
        <small>(<%= Article.find(version.item_id).title %>)</small>; <b>action</b> <%= version.event %>;<br/>
        <b>Remote address:</b> <%= version.ip %><br/>
        <b>User:</b>
          <% if version.whodunnit && version.whodunnit != 'Guest' %>
            <% user = User.find_by_id(version.whodunnit) %>
            <% if user %>
              <%= user.try(:name) %>
              (last seen at <%= l(user.last_sign_in_at, format: "%-d.%m.%Y %H:%M:%S") %>)
            <% end %>
          <% else %>
            Guest
          <% end %>
        <div>
          Changeset:
          <% if version.comment.present? %>
            <pre><%= version.comment %></pre>
          <% else %>
            <pre>No edit summary is available for this version.</pre><commit_msg>editing history page intro text<commit_after><div class="container">
  <h1>History</h1>
  <h4>Any time any information about a case is updated, a new version is created. This page tracks the changes made to the case over time including summaries to explain those changes where possible. As of now, the changes to the following attributes are tracked: address fields, content sections for overview, community_action and litigation as well as the article's title, date, photo and video links. </h4>


<list of case properties that are tracked>
These properties are not currently being tracked, but will be in the future:
<list of case properties that are not being tracked>”

  <ul>
    <% @versions.each do |version| %>
      <li>
        <%= l(version.created_at, format: "%-d.%m.%Y %H:%M:%S %Z") %><br/>
        Event ID: <%= version.id %><br/>
        <b>Target:</b> <%= version.item_type %>
        <small>(<%= Article.find(version.item_id).title %>)</small>; <b>action</b> <%= version.event %>;<br/>
        <b>Remote address:</b> <%= version.ip %><br/>
        <b>User:</b>
          <% if version.whodunnit && version.whodunnit != 'Guest' %>
            <% user = User.find_by_id(version.whodunnit) %>
            <% if user %>
              <%= user.try(:name) %>
              (last seen at <%= l(user.last_sign_in_at, format: "%-d.%m.%Y %H:%M:%S") %>)
            <% end %>
          <% else %>
            Guest
          <% end %>
        <div>
          Changeset:
          <% if version.comment.present? %>
            <pre><%= version.comment %></pre>
          <% else %>
            <pre>No edit summary is available for this version.</pre>
{'fraction_non_alphanumeric': 0.16838134430727023, 'fraction_numerical': 0.0027434842249657062, 'mean_word_length': 2.3147727272727274, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '4421807', 'n_tokens_mistral': 962, 'n_tokens_neox': 868, 'n_words': 268}