<commit_before>{% extends 'Layout.twig' %}

{% block content %}

    <h1 class="lead pull-left" style="margin-top:0">
        {% if project.provider %}
            <i class="icon-{{ project.provider }}"></i>
        {% endif %}
        {{ project.short_repo }}
    </h1>
    {% if app.user and app.user.isAdmin %}
        <div class="pull-right">
            <a href="/project/run/{{ project._id }}" class="btn btn-success btn-mini">
                <i class="icon-play"></i> Run Test
            </a>

            <a class="btn btn-primary btn-mini" id="edit_project" href="javascript::void(0)">
                <i class="icon-cog"></i> Edit Project
            </a>
        </div>
    {% endif %}
    <div style="clear:both"></div>

    {% if app.user and app.user.isAdmin %}

        <div class="row-fluid" id="edit_project_row">
            <ul class="nav span3 nav-tabs nav-stacked project_nav">
                <li>
                    <a class="active" href="#" data-content="project_settings">Settings</a>
                </li>
                <li>
                    <a data-content="project_ssh_keys" href="#">SSH Keys</a>
                </li>
                <li>
                    <a data-content="project_env" href="#">Enviroment Variables</a>
                </li>
            </ul>
            <div class="span9">

                <form method="post" action="">
                    <fieldset>

                        <div class="project_content" id="project_settings">
                            <label>Repository</label>
                            <input name="repo" class="span12" type="text" value="{{ project.repo }}">

                            <label for="email">Notifications Email</label>
                            <input id="email" name="email" class="span12" type="email" value="{{ project.email }}">

                            <label>Github Token</label>
                            <input name="github_token" class="span12" type="text" value="{{ project.github.token }}">

                        </div>

                        <div class="hide project_content" id="project_ssh_keys"><commit_msg>Hide project edit row by default<commit_after>{% extends 'Layout.twig' %}

{% block content %}

    <h1 class="lead pull-left" style="margin-top:0">
        {% if project.provider %}
            <i class="icon-{{ project.provider }}"></i>
        {% endif %}
        {{ project.short_repo }}
    </h1>
    {% if app.user and app.user.isAdmin %}
        <div class="pull-right">
            <a href="/project/run/{{ project._id }}" class="btn btn-success btn-mini">
                <i class="icon-play"></i> Run Test
            </a>

            <a class="btn btn-primary btn-mini" id="edit_project" href="javascript::void(0)">
                <i class="icon-cog"></i> Edit Project
            </a>
        </div>
    {% endif %}
    <div style="clear:both"></div>

    {% if app.user and app.user.isAdmin %}

        <div class="row-fluid hide" id="edit_project_row">
            <ul class="nav span3 nav-tabs nav-stacked project_nav">
                <li>
                    <a class="active" href="#" data-content="project_settings">Settings</a>
                </li>
                <li>
                    <a data-content="project_ssh_keys" href="#">SSH Keys</a>
                </li>
                <li>
                    <a data-content="project_env" href="#">Enviroment Variables</a>
                </li>
            </ul>
            <div class="span9">

                <form method="post" action="">
                    <fieldset>

                        <div class="project_content" id="project_settings">
                            <label>Repository</label>
                            <input name="repo" class="span12" type="text" value="{{ project.repo }}">

                            <label for="email">Notifications Email</label>
                            <input id="email" name="email" class="span12" type="email" value="{{ project.email }}">

                            <label>Github Token</label>
                            <input name="github_token" class="span12" type="text" value="{{ project.github.token }}">

                        </div>

                        <div class="hide project_content" id="project_ssh_keys">
{'fraction_non_alphanumeric': 0.15821312238250348, 'fraction_numerical': 0.005583992554676594, 'mean_word_length': 1.5635062611806798, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '2867472', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1139, 'n_words': 247}