<commit_before>#!/bin/bash

set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"


print_row() {
  echo "
<tr>
  <td class="version">$1</td>
  <td class="formats">
    <a href=\"docs/$1/index.html\">HTML</a> |
    <a href=\"docs/$1/hyper.pdf\">PDF</a>
  </td>
</tr>
"
}

versions=$(aws s3 ls hyper.wickstrom.tech/docs/ | awk '{print $2}' | sed 's/\///' | $DIR/sort_by_semver.py)
latest=$(echo $versions | head -n 1)

echo "
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Hyper</title>
  <meta name="keywords" content="http web purescript middleware routing type-safe">
  <meta name="description" content="Hyper is an experimental middleware architecture for HTTP servers written in PureScript.">
  <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <link rel="shortcut icon" href="static/favicon.png">

  <meta name="twitter:card" content="summary">
  <meta name="twitter:creator" content="owickstrom">
  <meta name="twitter:title" content="Hyper">
  <meta name="twitter:url" content="http://hyper.wickstrom.tech">
  <meta name="twitter:description" content="Hyper is an experimental middleware architecture for HTTP servers written in PureScript.">
  <meta name="twitter:image:src" content="http://hyper.wickstrom.tech/static/icon-large.png">

  <meta property="og:type" content="article" />
  <meta property="og:article:author" content="<NAME>" />
  <meta property="og:article:section" content="Technology" />
  <meta property="og:article:keyword" content="http web purescript middleware routing type-safe" />
  <meta property="og:title" content="Hyper" />
  <meta property="og:description" content="Hyper is an experimental middleware architecture for HTTP servers written in PureScript.">
  <meta property="og:type" content="article" />
  <meta property="og:url" content="http://hyper.wickstrom.tech" />
  <meta property="og:image" content="http://hyper.wickstrom.tech/static/icon-large.png" />

  <link rel="stylesheet" href="static/style.css">
  <link rel="stylesheet" href="static/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="static/overrides.css">
  <link href=\"https://fonts.googleapis.com/css?family=Fira+Mono|Fira+Sans:400,400i,600\" rel=\"stylesheet\">
  <style>
  #index {
    max-width: 700px;
  }
  #index h1 {
    text-align: center;
    margin: 2em 0 1em;
  }
  #index .rubric {
    text-align: center;
    font-style: normal;
    margin: 0 0 3rem;
  }
  .versions tr:first-child .version {
  }
  .versions tr:first-child .version:after {
    content: ' Latest';
    text-transform: uppercase;
    color: #579E00;
    font-weight: bold;
    font-size: 80%;
    vertical-align: super;
    letter-spacing: .06em;
  }
  </style>
</head>
<body>
<div class="container" id="index">
  <div class="row">
    <div class="col-xs-12">
      <h1><commit_msg>Use single quotes in bash script<commit_after>#!/bin/bash

set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"


print_row() {
  echo "
<tr>
  <td class="version">$1</td>
  <td class="formats">
    <a href=\"docs/$1/index.html\">HTML</a> |
    <a href=\"docs/$1/hyper.pdf\">PDF</a>
  </td>
</tr>
"
}

versions=$(aws s3 ls hyper.wickstrom.tech/docs/ | awk '{print $2}' | sed 's/\///' | $DIR/sort_by_semver.py)
latest=$(echo $versions | head -n 1)

echo "
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Hyper</title>

  <meta name='keywords' content='http web purescript middleware routing type-safe'>
  <meta name='description' content='Hyper is an experimental middleware architecture for HTTP servers written in PureScript.'>
  <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
  <meta name='apple-mobile-web-app-capable' content='yes'>
  <link rel='shortcut icon' href='static/favicon.png'>

  <meta name='twitter:card' content='summary'>
  <meta name='twitter:creator' content='owickstrom'>
  <meta name='twitter:title' content='Hyper'>
  <meta name='twitter:url' content='http://hyper.wickstrom.tech'>
  <meta name='twitter:description' content='Hyper is an experimental middleware architecture for HTTP servers written in PureScript.'>
  <meta name='twitter:image:src' content='http://hyper.wickstrom.tech/static/icon-large.png'>

  <meta property='og:type' content='article' />
  <meta property='og:article:author' content='<NAME>' />
  <meta property='og:article:section' content='Technology' />
  <meta property='og:article:keyword' content='http web purescript middleware routing type-safe' />
  <meta property='og:title' content='Hyper' />
  <meta property='og:description' content='Hyper is an experimental middleware architecture for HTTP servers written in PureScript.'>
  <meta property='og:type' content='article' />
  <meta property='og:url' content='http://hyper.wickstrom.tech' />
  <meta property='og:image' content='http://hyper.wickstrom.tech/static/icon-large.png' />

  <link rel='stylesheet' href='static/style.css'>
  <link rel='stylesheet' href='static/bootstrap/css/bootstrap.min.css'>
  <link rel='stylesheet' href='static/overrides.css'>
  <link href='https://fonts.googleapis.com/css?family=Fira+Mono|Fira+Sans:400,400i,600' rel='stylesheet'>
  <style>
  #index {
    max-width: 700px;
  }
  #index h1 {
    text-align: center;
    margin: 2em 0 1em;
  }
  #index .rubric {
    text-align: center;
    font-style: normal;
    margin: 0 0 3rem;
  }
  .versions tr:first-child .version {
  }
  .versions tr:first-child .version:after {
    content: ' Latest';
    text-transform: uppercase;
    color: #579E00;
    font-weight: bold;
    font-size: 80%;
    vertical-align: super;
    letter-spacing: .06em;
  }
  </style>
</head>
<body>
<div class="container" id="index">
  <div class="row">
    <div class="col-xs-12">
      <h1>
{'fraction_non_alphanumeric': 0.18148395721925134, 'fraction_numerical': 0.014371657754010695, 'mean_word_length': 4.546802594995366, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 2, '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': '6785616', 'n_tokens_mistral': 2133, 'n_tokens_neox': 2017, 'n_words': 442}