<commit_before>{% extends 'sidebar.html' %}
{% load buildout_config %}
{% load markup %}

{% block contenttitle %}{{project.name}}{% endblock %}

{% block main %}
  <div id="project-{{project.id}}" class="project">
    {% if project.git_repo %}
      <p><strong>Git Repository:</strong> {{project.git_repo}}</p>
    {% endif %}
    
    <p><strong>Directory:</strong> {{project.base_directory}}</p>
    
    {% if project.description %}
      <div class="description">{{project.description|markdown}}</div>
    {% endif %}
    
    <section class="buildout">
      <h2>Buildout Sections</h2>
      {% if not project.buildout_sections %}
        <p>No Buildout sections yet.</p>
      {% endif %}
      {% for name, section in project.buildout_sections %}
      <ul>
        <li class="clearfix">
          <a href="{% url edit_recipe project.id name %}" class="button right grey">Edit</a>
          <a href="{% url delete_recipe project.id name %}" class="button ajax right red confirm">Delete</a>
          <h3>{{name}}</h3>
          {% for key, value in section.items %}
          <ul>
            <li>{{key}} = {{value|configvalue}}</li>
          </ul>
          {% endfor %}
        </li>
      </ul>
      {% endfor %}
      <a href="{% url add_recipe project.id %}" class="left orange button orange">Add Recipe</a>
    </section>
  </div>
{% endblock %}

{% block sidebar %}
  <div class="project">
  <section>
    <h2>Actions</h2>
    <div class="actions clearfix">
      <section class="clearfix">
        <a class="edit" href="{% url edit_project project.id %}" title="Edit Project">Edit Project</a>
        <a class="edit_cfg ajax" href="{% url edit_buildout project.id %}" title="Edit Buildout">Edit Buildout</a>
        <a class="delete confirm" href="{% url delete_project project.id %}" title="Delete Project">Delete Project</a>
      </section>
      
      <section class="clearfix">
        <a class="bootstrap ajax" href="{% url schedule_bootstrap project.id %}" title="Bootstrap Buildout">Bootstrap Buildout</a>
        <a class="buildout ajax" href="{% url schedule_buildout project.id %}" title="Run Buildout">Buildout</a>
        <a class="tests ajax" href="{% url schedule_test project.id %}" title="Run Tests">Test</a>
      </section>
      
      {% if project.github_url and project.git_repo %}<section class="clearfix">{% endif %}      
        {% if project.github_url %}
          <a class="github" href="{{project.github_url}}" title="View on Github">View on Github</a>
        {% endif %}
        {% if project.git_repo %}
          <a class="pull ajax" href="{% url schedule_pull project.id %}" title="Git Pull">Git Pull</a>
        {% endif %}
      {% if project.github_url and project.git_repo %}</section>{% endif %}
      
      {% if project.is_django %}
        <section class="clearfix">
          <a class="syncdb ajax" href="{% url schedule_syncdb project.id %}" title="SyncDB">Syncdb</a>
        {# Ideally this would only show up if we knew south was installed #}
          <a class="migrate ajax" href="{% url schedule_migrate project.id %}" title="Migrate">Migrate</a>
          <a class="startapp" href="{% url startapp project.id %}" title="Start App">Start App</a>
        </section>
      {% endif %}
    </div>
  </section>
  <section>
    <h2>Notifications</h2>
    <ul class="tests live"><commit_msg>Show test status on project detail page.<commit_after>{% extends 'sidebar.html' %}
{% load buildout_config %}
{% load markup %}

{% block contenttitle %}{{project.name}}{% endblock %}

{% block main %}
  <div id="project-{{project.id}}" class="project">
    {% if project.git_repo %}
      <p><strong>Git Repository:</strong> {{project.git_repo}}</p>
    {% endif %}
    
    <p><strong>Directory:</strong> {{project.base_directory}}</p>
    
    {% if project.description %}
      <div class="description">{{project.description|markdown}}</div>
    {% endif %}
    
    <section class="buildout">
      <h2>Buildout Sections</h2>
      {% if not project.buildout_sections %}
        <p>No Buildout sections yet.</p>
      {% endif %}
      {% for name, section in project.buildout_sections %}
      <ul>
        <li class="clearfix">
          <a href="{% url edit_recipe project.id name %}" class="button right grey">Edit</a>
          <a href="{% url delete_recipe project.id name %}" class="button ajax right red confirm">Delete</a>
          <h3>{{name}}</h3>
          {% for key, value in section.items %}
          <ul>
            <li>{{key}} = {{value|configvalue}}</li>
          </ul>
          {% endfor %}
        </li>
      </ul>
      {% endfor %}
      <a href="{% url add_recipe project.id %}" class="left orange button orange">Add Recipe</a>
    </section>
  </div>
{% endblock %}

{% block sidebar %}
  <div class="project">
  <section>
    <h2>Actions</h2>
    <div class="actions clearfix">
      <section class="clearfix">
        <a class="edit" href="{% url edit_project project.id %}" title="Edit Project">Edit Project</a>
        <a class="edit_cfg ajax" href="{% url edit_buildout project.id %}" title="Edit Buildout">Edit Buildout</a>
        <a class="delete confirm" href="{% url delete_project project.id %}" title="Delete Project">Delete Project</a>
      </section>
      
      <section class="clearfix">
        <a class="bootstrap ajax" href="{% url schedule_bootstrap project.id %}" title="Bootstrap Buildout">Bootstrap Buildout</a>
        <a class="buildout ajax" href="{% url schedule_buildout project.id %}" title="Run Buildout">Buildout</a>
        <a class="tests ajax {{ project.test_status|yesno:'success,error' }}" href="{% url schedule_test project.id %}" title="Run Tests">Test</a>
      </section>
      
      {% if project.github_url and project.git_repo %}<section class="clearfix">{% endif %}      
        {% if project.github_url %}
          <a class="github" href="{{project.github_url}}" title="View on Github">View on Github</a>
        {% endif %}
        {% if project.git_repo %}
          <a class="pull ajax" href="{% url schedule_pull project.id %}" title="Git Pull">Git Pull</a>
        {% endif %}
      {% if project.github_url and project.git_repo %}</section>{% endif %}
      
      {% if project.is_django %}
        <section class="clearfix">
          <a class="syncdb ajax" href="{% url schedule_syncdb project.id %}" title="SyncDB">Syncdb</a>
        {# Ideally this would only show up if we knew south was installed #}
          <a class="migrate ajax" href="{% url schedule_migrate project.id %}" title="Migrate">Migrate</a>
          <a class="startapp" href="{% url startapp project.id %}" title="Start App">Start App</a>
        </section>
      {% endif %}
    </div>
  </section>
  <section>
    <h2>Notifications</h2>
    <ul class="tests live">
{'fraction_non_alphanumeric': 0.17518785914247828, 'fraction_numerical': 0.0023574480624723735, 'mean_word_length': 2.910138248847926, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 153, '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': '2762181', 'n_tokens_mistral': 2231, 'n_tokens_neox': 2050, 'n_words': 516}