<commit_before><!DOCTYPE html>
<html>
  <head>
    <title>What colour is it?</title>
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css">
    <style>
      body {
        color: #fff;
        font-family: 'Open Sans', sans-serif;
        margin: 0;
        padding: 0;
        text-align: center;
        transition: background-color .4s linear;
      }
      #container {
        position: absolute;
        bottom: 0;
        height: 65%;
        width: 100%;
      }
      #time {
        font-size: 6vw;
      }
      #color {
        font-size: 2vw;
        margin-top: 6vw;
      }
    </style>
  </head>
  <body>
    <div id="container">
      <div id="time">time</div>
      <div id="color"></div>
    </div>

    <script>
      var timeDiv = document.getElementById('time');
      var colorDiv = document.getElementById('color');

      function padInt(n) {
        return (n < 10 ? '0' : '') + n;
      }

      function update() {
        var now = new Date();
        var h = padInt(now.getHours());
        var m = padInt(now.getMinutes());
        var s = padInt(now.getSeconds());
        timeDiv.textContent = h + ' : ' + m + ' : ' + s;
        var color = '#' + h + m + s;
        colorDiv.textContent = color;<commit_msg>Change the time to colour algorithm<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>What colour is it?</title>
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css">
    <style>
      body {
        color: #fff;
        font-family: 'Open Sans', sans-serif;
        margin: 0;
        padding: 0;
        text-align: center;
        transition: background-color .4s linear;
      }
      #container {
        position: absolute;
        bottom: 0;
        height: 65%;
        width: 100%;
      }
      #time {
        font-size: 6vw;
      }
      #color {
        font-size: 2vw;
        margin-top: 6vw;
      }
    </style>
  </head>
  <body>
    <div id="container">
      <div id="time">time</div>
      <div id="color"></div>
    </div>

    <script>
      const COLOUR_BOUND = 0xffffff + 1;
      const timeDiv = document.getElementById('time');
      const colorDiv = document.getElementById('color');

      var useDaily = true;

      function padInt(n) {
        return (n < 10 ? '0' : '') + n;
      }

      function dateToColourTimestamp(date) {
        const seconds = Math.floor(date.getTime() / 1000);
        return '#' + (seconds % COLOUR_BOUND).toString(16);
      }

      function dateToColourDaily(date) {
        const seconds = date.getHours() * 3600 + date.getMinutes() * 60 + date.getSeconds();
        var hex = seconds.toString(16);
        while (hex.length < 6) {
          hex = '0' + hex;
        }
        return '#' + hex;
      }

      function update() {
        const now = new Date();
        const color = useDaily ? dateToColourDaily(now) : dateToColourTimestamp(now);
        const h = padInt(now.getHours());
        const m = padInt(now.getMinutes());
        const s = padInt(now.getSeconds());
        timeDiv.textContent = h + ' : ' + m + ' : ' + s;
        colorDiv.textContent = color;
{'fraction_non_alphanumeric': 0.1510678391959799, 'fraction_numerical': 0.016959798994974875, 'mean_word_length': 1.9139981701738336, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 37, 'https://': 0, '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': '6028169', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1016, 'n_words': 234}