<commit_before><html>
  <head>
    <meta http-equiv="content-type" content="text/html">
    <title>HUSL: Random Syntax Highlighting Color Schemes</title>
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
    <style type="text/css" media="screen">
      body { margin: 5% 20%; background-color: black; }
      .scheme, .author, pre, .block { font-family: "menlo", monospace; }
  	  .block { display: inline-block; font-size: 13px; font-weight: bold; padding: 10px; margin: 0 5px 10px 0; }
  	  pre {
  	    font-size: 14px;
  	    padding: 10px 20px;
  	  }
      #explanation {
        margin-left: 10px;
        color: #222;
      }
      #credits {
        margin-left: 10px;
        color: #666;
      }
      .well {
        padding: 10px;
      }
      .twitter-share-button {
        margin-top: 5px;
      }
    </style>
    <script src="../js/jquery-1.7.2.min.js"></script>
    <script src="../js/underscore-min.js"></script>
    <script src="../js/seedrandom.js"></script>
    <script src="../js/husl.min.js"></script>
    <script>
      function generateSeed() {
        var seed = "";
        for (var i = 0; i<=5; i++) {
          seed += _.random(0, 9);
        }
        return seed;
      }
      function shuffle() {
        var data = [];
        // 6 hues to pick from
        var h = _.random(0, 360);
        var H = _.map([0, 60, 120, 180, 240, 300], function(offset){
          return (h + offset) % 360;
        });
        // 8 shades of low-saturated color
        var backS = _.random(5, 40);
        var darkL = _.random(0, 10);
        var rangeL = 90 - darkL;
        for (var i = 0; i <= 7; i++) {
          data.push($.husl.toHex(H[0], backS, darkL + rangeL * Math.pow(i/7, 1.5)));
        }
        // 8 Random shades
        var minS = _.random(30, 70);
        var maxS = minS + 30;
        var minL = _.random(50, 70);
        var maxL = minL + 20;
        for (var j = 0; j <= 7; j++) {
          var h = H[_.random(0, 5)];
          var s = _.random(minS, maxS);
          var l = _.random(minL, maxL);
          data.push($.husl.toHex(h, s, l));
        }
        // Update colors and download links
        var params = [];
        for (var k = 0; k <= 15; k++) {
          var color = data[k];
          var key = 'base0' + k.toString(16).toUpperCase();
          $('.' + key).css('color', color);
          $('.' + key + '-background').css('background-color', color);
          params.push(key + '=' + color.substring(1));
        }
        params = params.join('&');
        $('#vim').attr('href', 'http://base16-api.herokuapp.com/vim?' + params);
        $('#textmate').attr('href', 'http://base16-api.herokuapp.com/textmate?' + params);<commit_msg>Move base16api from Heroku<commit_after><html>
  <head>
    <meta http-equiv="content-type" content="text/html">
    <title>HUSL: Random Syntax Highlighting Color Schemes</title>
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
    <style type="text/css" media="screen">
      body { margin: 5% 20%; background-color: black; }
      .scheme, .author, pre, .block { font-family: "menlo", monospace; }
  	  .block { display: inline-block; font-size: 13px; font-weight: bold; padding: 10px; margin: 0 5px 10px 0; }
  	  pre {
  	    font-size: 14px;
  	    padding: 10px 20px;
  	  }
      #explanation {
        margin-left: 10px;
        color: #222;
      }
      #credits {
        margin-left: 10px;
        color: #666;
      }
      .well {
        padding: 10px;
      }
      .twitter-share-button {
        margin-top: 5px;
      }
    </style>
    <script src="../js/jquery-1.7.2.min.js"></script>
    <script src="../js/underscore-min.js"></script>
    <script src="../js/seedrandom.js"></script>
    <script src="../js/husl.min.js"></script>
    <script>
      function generateSeed() {
        var seed = "";
        for (var i = 0; i<=5; i++) {
          seed += _.random(0, 9);
        }
        return seed;
      }
      function shuffle() {
        var data = [];
        // 6 hues to pick from
        var h = _.random(0, 360);
        var H = _.map([0, 60, 120, 180, 240, 300], function(offset){
          return (h + offset) % 360;
        });
        // 8 shades of low-saturated color
        var backS = _.random(5, 40);
        var darkL = _.random(0, 10);
        var rangeL = 90 - darkL;
        for (var i = 0; i <= 7; i++) {
          data.push($.husl.toHex(H[0], backS, darkL + rangeL * Math.pow(i/7, 1.5)));
        }
        // 8 Random shades
        var minS = _.random(30, 70);
        var maxS = minS + 30;
        var minL = _.random(50, 70);
        var maxL = minL + 20;
        for (var j = 0; j <= 7; j++) {
          var h = H[_.random(0, 5)];
          var s = _.random(minS, maxS);
          var l = _.random(minL, maxL);
          data.push($.husl.toHex(h, s, l));
        }
        // Update colors and download links
        var params = [];
        for (var k = 0; k <= 15; k++) {
          var color = data[k];
          var key = 'base0' + k.toString(16).toUpperCase();
          $('.' + key).css('color', color);
          $('.' + key + '-background').css('background-color', color);
          params.push(key + '=' + color.substring(1));
        }
        params = params.join('&');
        $('#vim').attr('href', 'http://base16api.boronine.com/vim?' + params);
        $('#textmate').attr('href', 'http://base16api.boronine.com/textmate?' + params);
{'fraction_non_alphanumeric': 0.18258788882753543, 'fraction_numerical': 0.03865267807840972, 'mean_word_length': 1.8126293995859213, 'pattern_counts': {'":': 0, '<': 45, '<?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': '4123590', 'n_tokens_mistral': 2016, 'n_tokens_neox': 1836, 'n_words': 450}