<commit_before>{% extends "base.html" %}
{% block title %} {{ auction.name }} {% endblock %}
{% block head %}
        h1 {
            text-align: center;
            text-decoration: underline;
        }

        .span12 {
            text-align: center;
        }
        h4 {
            text-align: center;
            color: red;
        }
        span10 {
            text-align: left;
        }
        pre {
            text-align: left;
        }
{% endblock %}
{% block content %}
        <div class="container">
            <h1>{{ auction.name }}</h1>
            <div class="row show-grid">
                <div class="span12">
                    Auction #{{ auction.auction_id }}
                    <br><br>
                    <div id="status">Loading auction status...</div>
                    <br>
                    {% if auction.picture_filename %}
                    <img src="/user_images/{{ auction.picture_filename }}">
                    {% endif %}
                    <br>
                    {{ auction.description }}
                    <br><br>
                </div>
                {% if not auction.current_bid %}
                <div class="span offset2">
                    To register for and bid in this auction, run
                    <pre>$ python cli.py --server [server hostname] \
                --keyfile [pregenerated ElGamal key] \
                --btcfile [bitcoin wallet file] \
                {{ auction.auction_id }}</pre>
                    and follow the instructions.
                </div>
                {% endif %}
            </div>
        </div>
        <script src="http://code.jquery.com/jquery-latest.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                window.setInterval(function() {
                    $.get("/auctions/{{ auction.auction_id }}/status", function(data) {
                        data = JSON.parse(data);
                        console.log(data['waiting_on']);
                        if (data['started']) {
                            var status = "<h4>Status: Waiting on bidder #" + data['waiting_on'] + "</h4>";
                            $("#status").html(status);
                        }
                        else {
                            $("#status").html("<h4>This auction has not yet begun.</h4>");
                        }
                    });
                }, 1000);
            });
        </script>
{% endblock %}<commit_msg>Minor aesthetic change to Detail<commit_after>{% extends "base.html" %}
{% block title %} {{ auction.name }} {% endblock %}
{% block head %}
        h1 {
            text-align: center;
            text-decoration: underline;
        }

        .span12 {
            text-align: center;
        }
        h4 {
            text-align: center;
            color: red;
        }
        span10 {
            text-align: left;
        }
        pre {
            text-align: left;
        }
{% endblock %}
{% block content %}
        <div class="container">
            <h1>{{ auction.name }}</h1>
            <div class="row show-grid">
                <div class="span12">
                    Auction #{{ auction.auction_id }}
                    <br><br>
                    <div id="status">Loading auction status...</div>
                    <br>
                    {% if auction.picture_filename %}
                    <img src="/user_images/{{ auction.picture_filename }}">
                    {% endif %}
                    <br>
                    {{ auction.description }}
                    <br><br>
                </div>
                {% if not auction.current_bid %}
                <div class="span offset2">
                    To register for and bid in this auction, run
                    <pre>$ python cli.py --server [server hostname] \
                --keyfile [pregenerated ElGamal key] \
                --btcfile [bitcoin wallet file] \
                {{ auction.auction_id }}</pre>
                    and follow the instructions.
                </div>
                {% endif %}
            </div><br>
        </div>
        <script src="http://code.jquery.com/jquery-latest.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                window.setInterval(function() {
                    $.get("/auctions/{{ auction.auction_id }}/status", function(data) {
                        data = JSON.parse(data);
                        console.log(data['waiting_on']);
                        if (data['started']) {
                            var status = "<h4>Status: Waiting on bidder #" + data['waiting_on'] + "</h4>";
                            $("#status").html(status);
                        }
                        else {
                            $("#status").html("<h4>This auction has not yet begun.</h4>");
                        }
                    });
                }, 1000);
            });
        </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.13590303993641964, 'fraction_numerical': 0.007550168885356646, 'mean_word_length': 1.0572129137719657, 'pattern_counts': {'":': 0, '<': 62, '<?xml version=': 0, '>': 62, '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': '4306021', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1212, 'n_words': 268}