<commit_before><html>
  <head>
    <title>Pimp my Logs!</title>
    <link rel="StyleSheet" rev="StyleSheet" href="/main.css" type="text/css" />
    <script src="/jquery-2.0.3.min.js"></script>
  </head>
  
  <body>
    <div id="driving">
      <p>
        <a href="#" id="day">1 day</a>
        | <a href="#" id="week">1 week</a>
        | <a href="#" id="month">1 month</a>
        | <a href="#" id="year">1 year</a> <small>(SLOW)</small>
        | <a href="#" id="all">all</a> <small>(SLOW++)</small>
        | search : <input type="text" id="search" />
      </p>
    </div>
    <h1>@channel </h1>
    <hr />
    <div id="loadingDiv">
      <img src="/spinner.gif" />
    </div>
    <div id="logs">
    </div>
    <div id="footer">
      <p>PimpMyLogs, minimal UI for IRC logs - <a href="http://git.fridim.org/fridim/pimpmylogs/">Source code</a></p>
    </div>
    <script>
      $("#search").change(function() {
          $("#logs").load("/search", "q="+ $(this).val()); 
          });
      $("#day").click(function() {
            $("#logs").load("/logs/day"); 
          });
      $("#week").click(function() {
            $("#logs").load("/logs/week"); 
          });
      $("#month").click(function() {
            $("#logs").load("/logs/month"); 
          });
      $("#year").click(function() {
            $("#logs").load("/logs/year"); 
          });
      $("#all").click(function() {
            $("#logs").load("/logs/all"); 
          });
      $(document).bind("ajaxStart.mine", function() {
        $('#loadingDiv').show();
      });

      $(document).bind("ajaxStop.mine", function() {
        $('#loadingDiv').hide();
      });

      $('#loadingDiv').hide();  // hide it initially

      // If a link to a specific time was given, then load it

      var l = $(location).attr('hash');
      if (l) {
        var timestamp = Date.parse(l.slice(1,11))/1000;
        $("#logs").load("/search", "t="+ timestamp, function() {<commit_msg>link are relative, works better behind proxy<commit_after><html>
<head>
<title>Pimp my Logs!</title>
<link rel="StyleSheet" rev="StyleSheet" href="main.css" type="text/css" />
<script src="jquery-2.0.3.min.js"></script>
</head>
  
  <body>
    <div id="driving">
      <p>
        <a href="#" id="day">1 day</a>
        | <a href="#" id="week">1 week</a>
        | <a href="#" id="month">1 month</a>
        | <a href="#" id="year">1 year</a> <small>(SLOW)</small>
        | <a href="#" id="all">all</a> <small>(SLOW++)</small>
        | search : <input type="text" id="search" />
      </p>
    </div>
    <h1>@|channel|</h1>
    <hr />
    <div id="loadingDiv">
      <img src="spinner.gif" />
    </div>
    <div id="logs">
    </div>
    <div id="footer">
      <p>PimpMyLogs, minimal UI for IRC logs - <a href="http://git.fridim.org/fridim/pimpmylogs/">Source code</a></p>
    </div>
    <script>
      $("#search").change(function() {
          $("#logs").load("search", "q="+ $(this).val()); 
          });
      $("#day").click(function() {
            $("#logs").load("logs/day"); 
          });
      $("#week").click(function() {
            $("#logs").load("logs/week"); 
          });
      $("#month").click(function() {
            $("#logs").load("logs/month"); 
          });
      $("#year").click(function() {
            $("#logs").load("logs/year"); 
          });
      $("#all").click(function() {
            $("#logs").load("logs/all"); 
          });
      $(document).bind("ajaxStart.mine", function() {
        $('#loadingDiv').show();
      });

      $(document).bind("ajaxStop.mine", function() {
        $('#loadingDiv').hide();
      });

      $('#loadingDiv').hide();  // hide it initially

      // If a link to a specific time was given, then load it

      var l = $(location).attr('hash');
      if (l) {
        var timestamp = Date.parse(l.slice(1,11))/1000;
        $("#logs").load("search", "t="+ timestamp, function() {
{'fraction_non_alphanumeric': 0.25637755102040816, 'fraction_numerical': 0.00816326530612245, 'mean_word_length': 2.19299674267101, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, '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': '4472012', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1310, 'n_words': 237}