<commit_before>{% extends "admin/base.html" %}

{% block content %}
<div class="container">
  <div>
    <form action="." method="GET">
      User name contains: <input type="text" name="uname"/>
      User ID contains: <input type="text" name="uid"/>
      Migrated: <input type="radio" name="migrated" value="migrated" {% if args.get('migrated') == 'migrated' %}checked{% endif %} />
      Unmigrated: <input type="radio" name="migrated"  value="unmigrated" {% if args.get('migrated') == 'unmigrated' %}checked{% endif %} />
      All: <input type="radio" name="migrated"  value="all" {% if args.get('migrated') != 'migrated' and args.get('migrated') != 'unmigrated' %}checked{% endif %}/>
      <input type="submit" value="Search"/>
    </form>
  </div>
  <div>
    <h3>Page {{ page }} of {{ pages }}</h3>
    {% for p in range(0,pages) %}
      {% if p+1 == page %}
        {{ p+1 }}
      {% else %}
        <a href="{{ request.path }}?{{ querystring }}&page={{ p+1 }}">{{ p+1 }}</a>
      {% endif %}
    {% endfor %}
  </div>
  {% for user in users %}
    <div>
    <h3>{{ user.uname }}</h3>
    <strong>UID:</strong> {{ user.uid }}<br/>
    <strong>Migrated:</strong> {{ user.migrated }}<br/>
    <h4>Files</h4>
    <ul>
    {% for file in user.files %}
      <li>{{ file }}</li>
    {% endfor %}
    </ul>
    <h4>StoryMaps</h4>
    {% for storymap in user.storymaps.values() %}
      <div>
        <h5>{{ storymap.title }}</h5>
        <strong>ID:</strong> {{ storymap.id }} <br/> 
        <strong>Draft:</strong> {{ storymap.draft_on }} <br/>
        <strong>Published:</strong> {{ storymap.published_on }} <br/>
      </div>
    {% endfor %}
    </div>
  {% endfor %}
</div>
{% endblock content %}
<commit_msg>Adds migrated badge to admin users<commit_after>{% extends "admin/base.html" %}

{% block content %}
<div class="container">
  <div>
    <form action="." method="GET">
      User name contains: <input type="text" name="uname"/>
      User ID contains: <input type="text" name="uid"/>
      Migrated: <input type="radio" name="migrated" value="migrated" {% if args.get('migrated') == 'migrated' %}checked{% endif %} />
      Unmigrated: <input type="radio" name="migrated"  value="unmigrated" {% if args.get('migrated') == 'unmigrated' %}checked{% endif %} />
      All: <input type="radio" name="migrated"  value="all" {% if args.get('migrated') != 'migrated' and args.get('migrated') != 'unmigrated' %}checked{% endif %}/>
      <input type="submit" value="Search"/>
    </form>
  </div>
  <div>
    <h3>Page {{ page }} of {{ pages }}</h3>
    {% for p in range(0,pages) %}
      {% if p+1 == page %}
        {{ p+1 }}
      {% else %}
        <a href="{{ request.path }}?{{ querystring }}&page={{ p+1 }}">{{ p+1 }}</a>
      {% endif %}
    {% endfor %}
  </div>
  {% for user in users %}
    <div>
    <h3>{{ user.uname }}
    <span class="badge badge-{% if user.migrated %}success{% else %}important{% endif %}">{% if not user.migrated %}un{% endif %}migrated</span>
    </h3>
    <strong>UID:</strong> {{ user.uid }}<br/>
    <h4>Files</h4>
    <ul>
    {% for file in user.files %}
      <li>{{ file }}</li>
    {% endfor %}
    </ul>
    <h4>StoryMaps</h4>
    {% for storymap in user.storymaps.values() %}
      <div>
        <h5>{{ storymap.title }}</h5>
        <strong>ID:</strong> {{ storymap.id }} <br/> 
        <strong>Draft:</strong> {{ storymap.draft_on }} <br/>
        <strong>Published:</strong> {{ storymap.published_on }} <br/>
      </div>
    {% endfor %}
    </div>
  {% endfor %}
</div>
{% endblock content %}

{'fraction_non_alphanumeric': 0.23193702558335677, 'fraction_numerical': 0.00843407365757661, 'mean_word_length': 2.867391304347826, 'pattern_counts': {'":': 0, '<': 100, '<?xml version=': 0, '>': 100, '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': '4523557', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1265, 'n_words': 291}