<commit_before><%
var contest_id = models.contest;
var contest = app.contests[contest_id];
var chart = app.charts[models.chart];
%>

<div class="row">
    <div class="col-md-3">
        <h2>Add new series:</h2>
        <div class="form-horizontal">
            <div class="form-group">
                <label for="chart_type" class="col-sm-5 control-label">Chart type:</label>
                <div class="col-sm-7">
                    <select id="chart_type" class="selectpicker form-control">
                        <option value="line">line</option>
                        <option value="pie">pie</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="parameter" class="col-sm-5 control-label">X-axis:</label>
                <div class="col-sm-7">
                    <select id="parameter" class="selectpicker form-control">
                        <option value="run_cnt">run count</option>
                        <%if (contest.scoring == "school") {%>
                        <option value="points">points</option>
                        <%}%>
                        <option value="place">place</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="group_by" class="col-sm-5 control-label">Y-axis:</label>
                <div class="col-sm-7">
                    <select id="group_by" class="selectpicker form-control">
                        <%_.each(chart.group_by, function (f, name) {
                        %>
                        <option value="<%=name%>"><%=name%></option>
                        <%
                        });%>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="aggregation" class="col-sm-5 control-label">Aggregation:</label>
                <div class="col-sm-7">
                    <select id="aggregation" class="selectpicker form-control">
                        <option value="sum">sum</option>
                        <option value="avg">average</option>
                        <option value="min">minimum</option>
                        <option value="max">maximum</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="period" class="col-sm-5 control-label">Time period:</label>
                <div class="col-sm-7">
                    <input type="text" size="20" id="period" class="form-control" value="10">
                </div>
            </div>
            <div class="form-group">
                <label for="color" class="col-sm-5 control-label">Color:</label>
                <div class="col-sm-7">
                    <div id="colorpicker" class="input-group colorpicker-component">
                        <input type="text" value="black" class="form-control" /><commit_msg>charts: Fix mixed up x- and y-axis<commit_after><%
var contest_id = models.contest;
var contest = app.contests[contest_id];
var chart = app.charts[models.chart];
%>

<div class="row">
    <div class="col-md-3">
        <h2>Add new series:</h2>
        <div class="form-horizontal">
            <div class="form-group">
                <label for="chart_type" class="col-sm-5 control-label">Chart type:</label>
                <div class="col-sm-7">
                    <select id="chart_type" class="selectpicker form-control">
                        <option value="line">line</option>
                        <option value="pie">pie</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="group_by" class="col-sm-5 control-label">X-axis:</label>
                <div class="col-sm-7">
                    <select id="group_by" class="selectpicker form-control">
                        <%_.each(chart.group_by, function (f, name) {
                        %>
                        <option value="<%=name%>"><%=name%></option>
                        <%
                        });%>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="parameter" class="col-sm-5 control-label">Y-axis:</label>
                <div class="col-sm-7">
                    <select id="parameter" class="selectpicker form-control">
                        <option value="run_cnt">run count</option>
                        <%if (contest.scoring == "school") {%>
                        <option value="points">points</option>
                        <%}%>
                        <option value="place">place</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="aggregation" class="col-sm-5 control-label">Aggregation:</label>
                <div class="col-sm-7">
                    <select id="aggregation" class="selectpicker form-control">
                        <option value="sum">sum</option>
                        <option value="avg">average</option>
                        <option value="min">minimum</option>
                        <option value="max">maximum</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="period" class="col-sm-5 control-label">Time period:</label>
                <div class="col-sm-7">
                    <input type="text" size="20" id="period" class="form-control" value="10">
                </div>
            </div>
            <div class="form-group">
                <label for="color" class="col-sm-5 control-label">Color:</label>
                <div class="col-sm-7">
                    <div id="colorpicker" class="input-group colorpicker-component">
                        <input type="text" value="black" class="form-control" />
{'fraction_non_alphanumeric': 0.15294117647058825, 'fraction_numerical': 0.006296603148301574, 'mean_word_length': 1.362426614481409, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 157, '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': '5693214', 'n_tokens_mistral': 1644, 'n_tokens_neox': 1525, 'n_words': 288}