<commit_before>{% extends "base.html" %}
{% block title %}{{ article.title }}{% endblock %}
{% block content %}
<section id="content">
    <script>
    function edit_link () {
        var github_base = "https://github.com/dchud/data.onebiglibrary.net/edit/master/content/";
        var path = "{{ article }}";
        var path_segments = path.split('/');
        var basename = path_segments[path_segments.length-1];
        var href = github_base + basename ;
        return href;
    }
    </script>
    <article>
        <header>
            <h2>{{ article.title}}</h2>
            <p class='small'>
                Published {{ article.date.strftime('%x') }}
                <i class='fa fa-angle-right'></i>
                <a href='javascript:open(edit_link());' alt='edit' title='edit'><i class='fa fa-edit fa-lg'></i></a>
            </p>
        </header>
        <div class="entry-content">
        {{ article.content }}
        </div><!-- /.entry-content -->
    </article>

<hr>
{% for a in articles %}
    {% if a == article %}
        <h4>
        {% if not loop.last %}
        {% set loop_prev = loop.index0 + 1 %}
        {% set prev_article = articles[loop_prev] %}
        <span class='pull-left'>
            <i class='fa fa-angle-left fa-lg'></i>
            <em class='small'>previous</em>
            <a href="{{ SITEURL }}/{{ prev_article.url }}">{{ prev_article.title }}</a>
        </span>
        {% endif %}

        {% if not loop.first %}<commit_msg>added separate github view link<commit_after>{% extends "base.html" %}
{% block title %}{{ article.title }}{% endblock %}
{% block content %}
<section id="content">
    <script>
    function github_link (link_type) {
        var github_base = "https://github.com/dchud/data.onebiglibrary.net/blob/master/content/";
        if(link_type == 'edit') {
            github_base = "https://github.com/dchud/data.onebiglibrary.net/edit/master/content/";
        }
        var path = "{{ article }}";
        var path_segments = path.split('/');
        var basename = path_segments[path_segments.length-1];
        var href = github_base + basename ;
        return href;
    }
    </script>
    <article>
        <header>
            <h2>{{ article.title}}</h2>
            <p class='small'>
                Published {{ article.date.strftime('%x') }}
                <i class='fa fa-angle-right'></i>
                <a href='javascript:open(github_link("view"));' alt='view in github' title='view in github'><i class='fa fa-file-text-o fa-lg'></i></a>
                <i class='fa fa-angle-right'></i>
                <a href='javascript:open(github_link("edit"));' alt='edit in github' title='edit in github'><i class='fa fa-pencil fa-lg'></i></a>
            </p>
        </header>
        <div class="entry-content">
        {{ article.content }}
        </div><!-- /.entry-content -->
    </article>

<hr>
{% for a in articles %}
    {% if a == article %}
        <h4>
        {% if not loop.last %}
        {% set loop_prev = loop.index0 + 1 %}
        {% set prev_article = articles[loop_prev] %}
        <span class='pull-left'>
            <i class='fa fa-angle-left fa-lg'></i>
            <em class='small'>previous</em>
            <a href="{{ SITEURL }}/{{ prev_article.url }}">{{ prev_article.title }}</a>
        </span>
        {% endif %}

        {% if not loop.first %}
{'fraction_non_alphanumeric': 0.18673803151947665, 'fraction_numerical': 0.003568242640499554, 'mean_word_length': 2.038843721770551, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 3, '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': '7293273', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1044, 'n_words': 221}