<commit_before><#include "header.ftl">
<div id="dashboard" ng-attr-id="dashboard" ng-controller="dashboard.controller">
    <input id="quit-button" class="button" type="button" name="dashboard-quit" value="Quit" onclick="window.location='/select-project'">
    <div id="image-analysis-pane"></div>
    <div id="sidebar">
        <div id="sidebar-contents">
            <fieldset>
                <legend>1. Select Project</legend>
                <select id="project-id" name="project-id" size="1" ng-model="currentProjectId" ng-change="switchProject()">
                    <option ng-repeat="project in projectList" value="{{ project.id }}">{{ project.name }}</option>
                </select>
                <input id="new-plot-button" class="button" type="button" name="new-plot" value="2. Analyze New Plot" ng-click="loadRandomPlot()">
            </fieldset>
            <fieldset>
                <legend>3. Assign Values</legend>
                <ul>
                    <li ng-repeat="sample in currentProject.sample_values">
                        <input type="button" name="{{ sample.value + '_' + sample.id }}" value="{{ sample.value }}" style="border-left:1.5rem solid {{ sample.color }}"
                        ng-click="setCurrentValue(sample)">
                    </li>
                </ul>
                <div id="final-plot-options">
                    <table>
                        <tbody>
                            <tr>
                                <td>4.</td>
                                <td>Either</td>
                                <td>
                                    <input id="save-values-button" class="button" type="button" name="save-values" value="Save Assignments" ng-click="saveValues()" style="opacity:0.5" disabled>
                                </td>
                            </tr>
                            <tr>
                                <td> </td>
                                <td>or</td>
                                <td>
                                    <input id="flag-plot-button" class="button" type="button" name="flag-plot" value="Flag Plot as Bad" ng-click="flagPlot()" style="opacity:0.5" disabled>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
        </div>
    </div>
    <div id="imagery-info"><p>{{ currentProject.attribution }}</p></div>
    <input id="user-id" type="hidden" name="user-id" value=${user_id}>
    <input id="initial-project-id" type="hidden" name="initial-project-id" value=${project_id}>
</div>
<script type="text/javascript" src="/js/dashboard.js"></script>
<#include "footer.ftl"><commit_msg>Fixing links in dashboard.ftl to work with Jetty and Tomcat.<commit_after><#include "header.ftl">

<script type="text/javascript" src="js/dashboard.js"></script>

<div id="dashboard" ng-attr-id="dashboard" ng-controller="dashboard.controller">
    <input id="quit-button" class="button" type="button" name="dashboard-quit" value="Quit" onclick="window.location='select-project'">
    <div id="image-analysis-pane"></div>
    <div id="sidebar">
        <div id="sidebar-contents">
            <fieldset>
                <legend>1. Select Project</legend>
                <select id="project-id" name="project-id" size="1" ng-model="currentProjectId" ng-change="switchProject()">
                    <option ng-repeat="project in projectList" value="{{ project.id }}">{{ project.name }}</option>
                </select>
                <input id="new-plot-button" class="button" type="button" name="new-plot" value="2. Analyze New Plot" ng-click="loadRandomPlot()">
            </fieldset>
            <fieldset>
                <legend>3. Assign Values</legend>
                <ul>
                    <li ng-repeat="sample in currentProject.sample_values">
                        <input type="button" name="{{ sample.value + '_' + sample.id }}" value="{{ sample.value }}" style="border-left:1.5rem solid {{ sample.color }}"
                               ng-click="setCurrentValue(sample)">
                    </li>
                </ul>
                <div id="final-plot-options">
                    <table>
                        <tbody>
                            <tr>
                                <td>4.</td>
                                <td>Either</td>
                                <td>
                                    <input id="save-values-button" class="button" type="button" name="save-values" value="Save Assignments" ng-click="saveValues()" style="opacity:0.5" disabled>
                                </td>
                            </tr>
                            <tr>
                                <td> </td>
                                <td>or</td>
                                <td>
                                    <input id="flag-plot-button" class="button" type="button" name="flag-plot" value="Flag Plot as Bad" ng-click="flagPlot()" style="opacity:0.5" disabled>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
        </div>
    </div>
    <div id="imagery-info"><p>{{ currentProject.attribution }}</p></div>
    <input id="user-id" type="hidden" name="user-id" value=${user_id}>
    <input id="initial-project-id" type="hidden" name="initial-project-id" value=${project_id}>
</div>
<#include "footer.ftl">
{'fraction_non_alphanumeric': 0.15728715728715728, 'fraction_numerical': 0.003968253968253968, 'mean_word_length': 1.4921348314606742, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7145604', 'n_tokens_mistral': 1533, 'n_tokens_neox': 1448, 'n_words': 280}