<commit_before><!DOCTYPE html>
<html ng-app="TagBBS" ng-controller="MainCtrl">
<meta charset="utf-8">
<title ng-bind="name"></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Use CDN as much as possible to make repo slimmer-->
<!-- CSS Framework -->
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<!-- Angular -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular-route.min.js"></script>
<!-- Markdown Renderer -->
<script src="//cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js"></script>
<!-- YAML -->
<script src="http://nodeca.github.io/js-yaml/js/js-yaml.js"></script>
<!-- Post Editor -->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.21.0/codemirror.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.21.0/codemirror.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.21.0/mode/markdown/markdown.min.js"></script>
<!-- Progress Bar, should replace with a trusted CDN -->
<link rel="stylesheet" type="text/css" href="http://labs.voronianski.com/ngprogress-lite.js/ngprogress-lite.css">
<script src="http://labs.voronianski.com/ngprogress-lite.js/ngprogress-lite.min.js"></script>
<!-- TagBBS -->
<link rel="stylesheet" type="text/css" href="tagbbs.css">
<script src="tagbbs.js"></script>

<body>
<aside>
    <ul class="nav">
        <li ng-show="user"><a href="#{{homepage}}" title="server build: {{version}}"><span class="glyphicon glyphicon-home"></span> {{name}}</a></li>
        <li ng-show="user"><a href="#/test"><span class="glyphicon glyphicon-list"></span> Test</a></li>
        <li ng-show="user"><a href="#/:"><span class="glyphicon glyphicon-file"></span> Put</a></li>
        <li>&nbsp;</li>
        <li ng-hide="user"><a href="#/_/login"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
        <li ng-hide="user"><a href="#/_/register"> Register</a></li>
        <li ng-show="user"><a href="#/@/user:{{user}}" title="my profile"><span class="glyphicon glyphicon-user"></span> <span class="text">{{user}}<span></a>
        <li ng-show="user"><a href="#/_/logout"><span class="glyphicon glyphicon-log-out"></span> <span class="text">Logout<span></a></li>
    </ul>
</aside>
<div class="container">
    <div ng-view></div>
</div>

<script type="text/ng-template" id="login.html">
<form role="form" ng-submit="submit()" class="login center-block">
    <div class="alert alert-danger" ng-show="message">{{message}}</div>
    <div class="form-group">
    <label>User</label>
    <input type="text" class="form-control" placeholder="user id" ng-model="user">
    </div>
    <div class="form-group">
    <label>Password</label>
    <input type="password" class="form-control" placeholder="password" ng-model="pass">
    </div>
    <button type="submit" class="btn btn-default">Login</button>
</form>
</script>

<script type="text/ng-template" id="register.html">
<p>Not yet implemented in the web interface. Please use SSH instead.
<p>Or, you can try login with Username: test and Password: <PASSWORD>.
</script>

<script type="text/ng-template" id="logout.html">
<div>{{error}}</div>
</script>

<script type="text/ng-template" id="list.html">
<form ng-submit="newHandQuery()">
<input class="query-input" type="text" ng-model="query" placeholder="all">
</form>
<div class="btn-toolbar list-pagination">
<div class="btn-group">
<button class="btn btn-primary" ng-click="put()"><span class="glyphicon glyphicon-file"></span> Put</button>
</div>
<div class="btn-group">
<button class="btn btn-default" ng-click="firstPage()"><span class="glyphicon glyphicon-step-backward"></span> <span class="text">First</span></button>
<button class="btn btn-default" ng-click="prevPage()"><span class="glyphicon glyphicon-chevron-left"></span> <span class="text">Prev</span></button>
<button class="btn btn-default" ng-click="nextPage()"><span class="text">Next</span> <span class="glyphicon glyphicon-chevron-right"></span></button>
<button class="btn btn-default" ng-click="lastPage()"><span class="text">Last</span> <span class="glyphicon glyphicon-step-forward"></span></button>
</div>
</div>
<div class="alert alert-warning flash" ng-bind="message" ng-show="message"></div>
<div class="key-range" ng-if="posts"><span class="post-key">{{posts[0].key}}</span> ~ <span class="post-key">{{posts[posts.length-1].key}}</span></div>
<ul class="posts-listing center-block">
    <li ng-repeat="post in posts">
        <a href="#/{{query}}/{{post.key}}">
            <span class="post-key">{{post.key}}</span><span class="post-title">{{post.title}}</span>
        </a>
        <a class="post-author" href="#/@/user:{{post.authors.0}}">@{{post.authors.0}}</a>
        <a class="post-tag" ng-repeat="tag in post.tags" href="#/{{tag}}">#{{tag}}</a>
    </li>
</ul>
</script>

<script type="text/ng-template" id="show.html">
<div class="btn-toolbar thread-pagination" ng-if="query()"><commit_msg>webui: remove @ for empty authors<commit_after><!DOCTYPE html>
<html ng-app="TagBBS" ng-controller="MainCtrl">
<meta charset="utf-8">
<title ng-bind="name"></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- Use CDN as much as possible to make repo slimmer-->
<!-- CSS Framework -->
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<!-- Angular -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular-route.min.js"></script>
<!-- Markdown Renderer -->
<script src="//cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js"></script>
<!-- YAML -->
<script src="http://nodeca.github.io/js-yaml/js/js-yaml.js"></script>
<!-- Post Editor -->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.21.0/codemirror.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.21.0/codemirror.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/3.21.0/mode/markdown/markdown.min.js"></script>
<!-- Progress Bar, should replace with a trusted CDN -->
<link rel="stylesheet" type="text/css" href="http://labs.voronianski.com/ngprogress-lite.js/ngprogress-lite.css">
<script src="http://labs.voronianski.com/ngprogress-lite.js/ngprogress-lite.min.js"></script>
<!-- TagBBS -->
<link rel="stylesheet" type="text/css" href="tagbbs.css">
<script src="tagbbs.js"></script>

<body>
<aside>
    <ul class="nav">
        <li ng-show="user"><a href="#{{homepage}}" title="server build: {{version}}"><span class="glyphicon glyphicon-home"></span> {{name}}</a></li>
        <li ng-show="user"><a href="#/test"><span class="glyphicon glyphicon-list"></span> Test</a></li>
        <li ng-show="user"><a href="#/:"><span class="glyphicon glyphicon-file"></span> Put</a></li>
        <li>&nbsp;</li>
        <li ng-hide="user"><a href="#/_/login"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
        <li ng-hide="user"><a href="#/_/register"> Register</a></li>
        <li ng-show="user"><a href="#/@/user:{{user}}" title="my profile"><span class="glyphicon glyphicon-user"></span> <span class="text">{{user}}<span></a>
        <li ng-show="user"><a href="#/_/logout"><span class="glyphicon glyphicon-log-out"></span> <span class="text">Logout<span></a></li>
    </ul>
</aside>
<div class="container">
    <div ng-view></div>
</div>

<script type="text/ng-template" id="login.html">
<form role="form" ng-submit="submit()" class="login center-block">
    <div class="alert alert-danger" ng-show="message">{{message}}</div>
    <div class="form-group">
    <label>User</label>
    <input type="text" class="form-control" placeholder="user id" ng-model="user">
    </div>
    <div class="form-group">
    <label>Password</label>
    <input type="password" class="form-control" placeholder="password" ng-model="pass">
    </div>
    <button type="submit" class="btn btn-default">Login</button>
</form>
</script>

<script type="text/ng-template" id="register.html">
<p>Not yet implemented in the web interface. Please use SSH instead.
<p>Or, you can try login with Username: test and Password: <PASSWORD>.
</script>

<script type="text/ng-template" id="logout.html">
<div>{{error}}</div>
</script>

<script type="text/ng-template" id="list.html">
<form ng-submit="newHandQuery()">
<input class="query-input" type="text" ng-model="query" placeholder="all">
</form>
<div class="btn-toolbar list-pagination">
<div class="btn-group">
<button class="btn btn-primary" ng-click="put()"><span class="glyphicon glyphicon-file"></span> Put</button>
</div>
<div class="btn-group">
<button class="btn btn-default" ng-click="firstPage()"><span class="glyphicon glyphicon-step-backward"></span> <span class="text">First</span></button>
<button class="btn btn-default" ng-click="prevPage()"><span class="glyphicon glyphicon-chevron-left"></span> <span class="text">Prev</span></button>
<button class="btn btn-default" ng-click="nextPage()"><span class="text">Next</span> <span class="glyphicon glyphicon-chevron-right"></span></button>
<button class="btn btn-default" ng-click="lastPage()"><span class="text">Last</span> <span class="glyphicon glyphicon-step-forward"></span></button>
</div>
</div>
<div class="alert alert-warning flash" ng-bind="message" ng-show="message"></div>
<div class="key-range" ng-if="posts"><span class="post-key">{{posts[0].key}}</span> ~ <span class="post-key">{{posts[posts.length-1].key}}</span></div>
<ul class="posts-listing center-block">
    <li ng-repeat="post in posts">
        <a href="#/{{query}}/{{post.key}}">
            <span class="post-key">{{post.key}}</span><span class="post-title">{{post.title}}</span>
        </a>
        <a class="post-author" href="#/@/user:{{post.authors.0}}"><span ng-if="post.authors.0">@{{post.authors.0}}</span></a>
        <a class="post-tag" ng-repeat="tag in post.tags" href="#/{{tag}}">#{{tag}}</a>
    </li>
</ul>
</script>

<script type="text/ng-template" id="show.html">
<div class="btn-toolbar thread-pagination" ng-if="query()">
{'fraction_non_alphanumeric': 0.23883061383061382, 'fraction_numerical': 0.006118881118881119, 'mean_word_length': 5.004081632653061, 'pattern_counts': {'":': 0, '<': 361, '<?xml version=': 0, '>': 361, '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': '6226960', 'n_tokens_mistral': 3657, 'n_tokens_neox': 3498, 'n_words': 612}