<commit_before>{% extends "base.html" %}
{% block title %}List of Topics{% endblock %}
{% block head %}
    {{ super() }}
    <style type="text/css">
        @import url(https://fonts.googleapis.com/css?family=Shadows+Into+Light);
        .unused { font-weight: bold; }
        #tableGrid {width: 500px;  font-family: 'Shadows Into Light', cursive; }
        th {font-size: 24pt;}
        tbody {font-size: 14pt;}
        #random {float: right;}

    </style>
    <script type="text/javascript">
        var data = [
{'title':"A book with more than 500 pages",'used':'9/2015'},
{'title':"A classic romance",'used':'9/2015'},
{'title':"A book that became a movie",'used':'5/2015'},
{'title':"A book published this year",'used':''},
{'title':"A book with a number in the title",'used':'6/2015'},
{'title':"A book written by someone under 30",'used':'10/2015'},
{'title':"A book with paranormal characters",'used':'7/2015'},
{'title':"A funny book",'used':''},
{'title':"A book recommended by an author",'used':''},
{'title':"A romantic mystery/suspense/thriller",'used':'9/2015'},
{'title':"A book with a one word title",'used':'8/2015'},
{'title':"A book of short stories",'used':'10/2015'},
{'title':"A book set in a different country",'used':''},
{'title':"A nonfiction book",'used':'5/2015'},
{'title':"A popular author's first book",'used':''},
{'title':"A book from an author you love but haven't read yet",'used':'4/2015'},
{'title':"A book a friend recommended",'used':'6/2015'},
{'title':"A NY Times bestseller",'used':'4/2015'},
{'title':"A re-adaptation of a popular story",'used':''},
{'title':"A freebie you've downloaded",'used':''},
{'title':"A book that hits close to home",'used':''},
{'title':"A book you can finish in a day",'used':''},
{'title':"A book with antonyms in the title",'used':''},
{'title':"A book set somewhere you've always wanted to go",'used':'3/2015'},
{'title':"A book that came out the year you graduated college",'used':'7/2015'},
{'title':"A book with bad reviews",'used':''},
{'title':"A trilogy",'used':'8/2015'},
{'title':"A book about childhood friends",'used':'8/2015'},
{'title':"A book with a love triangle",'used':'3/2015'},
{'title':"A dystopian book",'used':'6/2015'},
{'title':"A book set in high school",'used':''},
{'title':"A book with a color in the title",'used':'4/2015'},
{'title':"A book that made you cry",'used':''},
{'title':"A book with magic",'used':'5/2015'},
{'title':"A book by a male author",'used':''},
{'title':"A book by an author you've never heard of",'used':''},
{'title':"A book you own but have never read",'used':'3/2015'},
{'title':"A book that takes place in your hometown",'used':'7/2015'},
{'title':"A book published during a year that is significant to you",'used':'10/2015'},
{'title':"A book set during winter",'used':''},


        ];
        $( document ).ready(function() {

        for (var i=0; i<data.length; i++){
            var item=data[i];
            var used=item['used'];
            if (used===''){
                item['d']=new Date();
            }else{
                var parts=used.split("/");

                item['d']=new Date(parts[1],parts[0]);
            }
        }
        data.sort(function(a, b) {
            var dateA = a['d'];
            var dateB = b['d'];
            if (dateA > dateB){
                return -1;
            }
            if (dateA < dateB){
                return 1;
                }
            return 0;
        });

        var count=1;
 for (var i=0; i<data.length; i++){
    var item=data[i];
    if (item['used']===''){
        $('#topicsTable').append('<tr id="tr'
         + count +
         '"><td>'
         + count +
         '</td><td class="unused">'
         +item['title'] +
         '</td><td></td></tr>');
        count=count+1;

    }
 }
 count=count-1;
 function getI(min, max){
    return Math.floor(Math.random() * (max - min + 1)) + min;
 }


  for (var i=0; i<data.length; i++){
    var item=data[i];
    if (item['used']!==''){
        $('#topicsTable').append('<tr><td></td><td>'+item['title'] +'</td><td>'+ item['used'] +'</td></tr>');

    }
 }
  $('#random').click(function() {
    for (var i=1; i<count+1; i++) {
    $('#tr' + i).removeClass("danger");
    }
    var a = getI(1, count);
    var b = a;
      while (b===a){
      b=getI(1, count);
      }
     var c = b;
      while (c===b || c===a){
      c=getI(1, count);
    }
    $('#tr' + a).addClass("danger");
    $('#tr' + b).addClass("danger");
    $('#tr' + c).addClass("danger");
        });

});

    </script>
{% endblock %}
{% block content %}
<table class="table table-bordered" id="tableGrid">

    <thead>
        <tr>
            <th>#</th>
            <th>TITLE <button id="random" class="btn btn-info btn-lg"><span class="glyphicon glyphicon-random"></span></button></th>
            <th>READ</th>
        </tr>
    </thead>
    <tbody id="topicsTable">
    </tbody>
</table>

{% endblock %}<commit_msg>blue titles<commit_after>{% extends "base.html" %}
{% block title %}List of Topics{% endblock %}
{% block head %}
    {{ super() }}
    <style type="text/css">
        @import url(https://fonts.googleapis.com/css?family=Shadows+Into+Light);
        .unused {color: font-weight: bold; }
        #tableGrid {width: 500px;  font-family: 'Shadows Into Light', cursive; }
        th {font-size: 24pt;}
        tbody {font-size: 14pt;}
        #random {float: right;}
        #title {color: #5bc0de;}
        #read {color: #5bc0de;}
        #num {color: #5bc0de;}

    </style>
    <script type="text/javascript">
        var data = [
{'title':"A book with more than 500 pages",'used':'9/2015'},
{'title':"A classic romance",'used':'9/2015'},
{'title':"A book that became a movie",'used':'5/2015'},
{'title':"A book published this year",'used':''},
{'title':"A book with a number in the title",'used':'6/2015'},
{'title':"A book written by someone under 30",'used':'10/2015'},
{'title':"A book with paranormal characters",'used':'7/2015'},
{'title':"A funny book",'used':''},
{'title':"A book recommended by an author",'used':''},
{'title':"A romantic mystery/suspense/thriller",'used':'9/2015'},
{'title':"A book with a one word title",'used':'8/2015'},
{'title':"A book of short stories",'used':'10/2015'},
{'title':"A book set in a different country",'used':''},
{'title':"A nonfiction book",'used':'5/2015'},
{'title':"A popular author's first book",'used':''},
{'title':"A book from an author you love but haven't read yet",'used':'4/2015'},
{'title':"A book a friend recommended",'used':'6/2015'},
{'title':"A NY Times bestseller",'used':'4/2015'},
{'title':"A re-adaptation of a popular story",'used':''},
{'title':"A freebie you've downloaded",'used':''},
{'title':"A book that hits close to home",'used':''},
{'title':"A book you can finish in a day",'used':''},
{'title':"A book with antonyms in the title",'used':''},
{'title':"A book set somewhere you've always wanted to go",'used':'3/2015'},
{'title':"A book that came out the year you graduated college",'used':'7/2015'},
{'title':"A book with bad reviews",'used':''},
{'title':"A trilogy",'used':'8/2015'},
{'title':"A book about childhood friends",'used':'8/2015'},
{'title':"A book with a love triangle",'used':'3/2015'},
{'title':"A dystopian book",'used':'6/2015'},
{'title':"A book set in high school",'used':''},
{'title':"A book with a color in the title",'used':'4/2015'},
{'title':"A book that made you cry",'used':''},
{'title':"A book with magic",'used':'5/2015'},
{'title':"A book by a male author",'used':''},
{'title':"A book by an author you've never heard of",'used':''},
{'title':"A book you own but have never read",'used':'3/2015'},
{'title':"A book that takes place in your hometown",'used':'7/2015'},
{'title':"A book published during a year that is significant to you",'used':'10/2015'},
{'title':"A book set during winter",'used':''},


        ];
        $( document ).ready(function() {

        for (var i=0; i<data.length; i++){
            var item=data[i];
            var used=item['used'];
            if (used===''){
                item['d']=new Date();
            }else{
                var parts=used.split("/");

                item['d']=new Date(parts[1],parts[0]);
            }
        }
        data.sort(function(a, b) {
            var dateA = a['d'];
            var dateB = b['d'];
            if (dateA > dateB){
                return -1;
            }
            if (dateA < dateB){
                return 1;
                }
            return 0;
        });

        var count=1;
 for (var i=0; i<data.length; i++){
    var item=data[i];
    if (item['used']===''){
        $('#topicsTable').append('<tr id="tr'
         + count +
         '"><td>'
         + count +
         '</td><td class="unused">'
         +item['title'] +
         '</td><td></td></tr>');
        count=count+1;

    }
 }
 count=count-1;
 function getI(min, max){
    return Math.floor(Math.random() * (max - min + 1)) + min;
 }


  for (var i=0; i<data.length; i++){
    var item=data[i];
    if (item['used']!==''){
        $('#topicsTable').append('<tr><td></td><td>'+item['title'] +'</td><td>'+ item['used'] +'</td></tr>');

    }
 }
  $('#random').click(function() {
    for (var i=1; i<count+1; i++) {
    $('#tr' + i).removeClass("danger");
    }
    var a = getI(1, count);
    var b = a;
      while (b===a){
      b=getI(1, count);
      }
     var c = b;
      while (c===b || c===a){
      c=getI(1, count);
    }
    $('#tr' + a).addClass("danger");
    $('#tr' + b).addClass("danger");
    $('#tr' + c).addClass("danger");
        });

});

    </script>
{% endblock %}
{% block content %}
<table class="table table-bordered" id="tableGrid">

    <thead>
        <tr>
            <th id="num">#</th>
            <th id="title">TITLE <button id="random" class="btn btn-info btn-lg"><span class="glyphicon glyphicon-random"></span></button></th>
            <th id="read">READ</th>
        </tr>
    </thead>
    <tbody id="topicsTable">
    </tbody>
</table>

{% endblock %}
{'fraction_non_alphanumeric': 0.23717308844080656, 'fraction_numerical': 0.03094430025953284, 'mean_word_length': 3.08605220228385, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 81, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1267815', 'n_tokens_mistral': 3682, 'n_tokens_neox': 3353, 'n_words': 870}