<commit_before><!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><NAME></title>

  <script type="text/javascript" src="/static/js/jquery-2.1.0.min.js"></script>

  <link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
  <script type="text/javascript" src="/static/js/bootstrap.min.js"></script>

  <link rel="stylesheet" href="/static/css/font-awesome.min.css">

  <link rel="stylesheet" href="/static/css/application.css" type="text/css" />

  <link rel="icon" type="image/png" href="/static/img/favicon-196x196.png" sizes="196x196">
  <link rel="icon" type="image/png" href="/static/img/favicon-160x160.png" sizes="160x160">
  <link rel="icon" type="image/png" href="/static/img/favicon-96x96.png" sizes="96x96">
  <link rel="icon" type="image/png" href="/static/img/favicon-16x16.png" sizes="16x16">
  <link rel="icon" type="image/png" href="/static/img/favicon-32x32.png" sizes="32x32">

</head>

<body>
<div id="wrap">
  <div id="header">
    <nav class="navbar navbar-default" role="navigation">
      <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="row">
          <div class="col-md-12">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <h2><a href="/">dimsdale.net</a></h2>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="navbar-collapse">
              <ul class="nav navbar-nav navbar-right">
                <li><a href="/">Home</a></li>
                <li><a href="/about-me/">About Me</a></li>
                <li><a href="/projects/">Projects</a></li>
                <li><a href="/resume/">Resume</a></li>
                <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">more <b class="caret"></b></a>
                  <ul class="dropdown-menu">
                    <li><a href="https://jenkins.dimsdale.net">Jenkins<i class="fa fa-lock"></i></a></li>
                    <li><a href="https://recipes.dimsdale.net">Recipes<i class="fa fa-lock"></i></a></li>
                  </ul>
                </li>
              </ul>
            </div><!-- /.navbar-collapse -->
          </div><!-- /.col-md-12 -->
        </div><!-- /.row -->
      </div>
    </nav>
  </div>
  <div class="container page"><commit_msg>Header gets name from host in http headers (bypassing built in apache function).<commit_after><?php

function get_http_headers() {
	$headers = '';
	foreach ($_SERVER as $header => $value) {
		if (substr($header, 0, 5) == 'HTTP_') {
			$header = substr($header, 5);
			$header = str_replace('_', ' ', $header);
			$header = strtolower($header);
			$header = ucwords($header);
			$header = str_replace(' ', '-', $header);
			$headers[$header] = $value;
		}
   }
   return $headers; 
}

$host = "";
foreach (get_http_headers() as $header => $value) {
    if ($header == "Host") {
        $host = $value;
        if (strpos($host, "www.") === 0) {
            $host = substr($host, 4);
        }
    }
}
print <<< EOT
<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><NAME></title>

  <script type="text/javascript" src="/static/js/jquery-2.1.0.min.js"></script>

  <link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
  <script type="text/javascript" src="/static/js/bootstrap.min.js"></script>

  <link rel="stylesheet" href="/static/css/font-awesome.min.css">

  <link rel="stylesheet" href="/static/css/application.css" type="text/css" />

  <link rel="icon" type="image/png" href="/static/img/favicon-196x196.png" sizes="196x196">
  <link rel="icon" type="image/png" href="/static/img/favicon-160x160.png" sizes="160x160">
  <link rel="icon" type="image/png" href="/static/img/favicon-96x96.png" sizes="96x96">
  <link rel="icon" type="image/png" href="/static/img/favicon-16x16.png" sizes="16x16">
  <link rel="icon" type="image/png" href="/static/img/favicon-32x32.png" sizes="32x32">

</head>

<body>
<div id="wrap">
  <div id="header">
    <nav class="navbar navbar-default" role="navigation">
      <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="row">
          <div class="col-md-12">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <h2><a href="/">$host</a></h2>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="navbar-collapse">
              <ul class="nav navbar-nav navbar-right">
                <li><a href="/">Home</a></li>
                <li><a href="/about-me/">About Me</a></li>
                <li><a href="/projects/">Projects</a></li>
                <li><a href="/resume/">Resume</a></li>
                <li class="dropdown">
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">more <b class="caret"></b></a>
                  <ul class="dropdown-menu">
                    <li><a href="https://jenkins.dimsdale.net">Jenkins<i class="fa fa-lock"></i></a></li>
                    <li><a href="https://recipes.dimsdale.net">Recipes<i class="fa fa-lock"></i></a></li>
                  </ul>
                </li>
              </ul>
            </div><!-- /.navbar-collapse -->
          </div><!-- /.col-md-12 -->
        </div><!-- /.row -->
      </div>
    </nav>
  </div>
  <div class="container page">
EOT;
?>
{'fraction_non_alphanumeric': 0.20965164589325663, 'fraction_numerical': 0.01933525087887504, 'mean_word_length': 2.4371224601867105, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 194, 'https://': 4, 'lorem ipsum': 0, 'www.': 1, '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': '3195572', 'n_tokens_mistral': 2146, 'n_tokens_neox': 1990, 'n_words': 375}