<commit_before>{% extends "layout.html" %}

{% block css %}
    <link href="/static/css/vendor/editor/github.css" rel="stylesheet">
    <link href="/static/css/vendor/github.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.3/css/bootstrap-select.min.css">
    {{ super() }}
{% endblock %}

{% block js %}
    {{super()}}
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.3/js/bootstrap-select.min.js"></script>
    <script src="/static/js/utils.js"></script>
{% endblock %}


{% block header %}
    <h1 id="title" class="tagline gradient-text">{{article.title}}</h1>
        <h4 id="author"><small>written by <a href="/user/{{article.author_name}}">{{article.author_real_name if article.author_real_name else article.author_name}}</a></small></h4>

    {% if article.stacks %}
        <h5 id="related"><small>Related to {{article.stacks|join(',')}}</small></h5>
    {% endif %}
    <hr>
{% endblock %}

{% block body %}
<div class="row">
    <div id="share-column" class="col-md-2">
        <div class="navbar-left-article affix">
            {% include 'signup_form.html' %}

            <br/><br/>

            <a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=Loved%20this%20article%20on%20{{article.title}}">Tweet</a>

            <br/> <br/>

            <div class="fb-like" data-href="{{canonical_url}}" data-layout="button_count" data-action="like" data-show-faces="false"></div>

            <br/> <br/>

            <div class="create-tutorial">
                <a href="/write/" class="emphasize">Create tutorial</a>
            </div>

            <!-- Load Facebook SDK for JavaScript -->
            <div id="fb-root"></div>
        </div><!-- affix -->
    </div> <!-- column -->

    <div id="article" class="col-md-8">
        <p> {{article.content|safe}} </p>

        {% if allow_edits %}
            <p>
            <a href="{{url_for('write', article_path=article.path, branch=visible_branch)}}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit article</a>
            </p>
        {% endif %}
        {% if allow_delete %}
            <p>
                <button type="button" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#delete-confirmation">
                    <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> Delete article
                </button>
                {% include 'confirm_delete.html' %}
            </p>
        {% endif %}

        <p>
            <a href="{{article.external_url}}" target="_blank">View on Github</a>
        </p>
<commit_msg>Move glyphicon on article links to left to match external links look<commit_after>{% extends "layout.html" %}

{% block css %}
    <link href="/static/css/vendor/editor/github.css" rel="stylesheet">
    <link href="/static/css/vendor/github.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.3/css/bootstrap-select.min.css">
    {{ super() }}
{% endblock %}

{% block js %}
    {{super()}}
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.3/js/bootstrap-select.min.js"></script>
    <script src="/static/js/utils.js"></script>
{% endblock %}


{% block header %}
    <h1 id="title" class="tagline gradient-text">{{article.title}}</h1>
        <h4 id="author"><small>written by <a href="/user/{{article.author_name}}">{{article.author_real_name if article.author_real_name else article.author_name}}</a></small></h4>

    {% if article.stacks %}
        <h5 id="related"><small>Related to {{article.stacks|join(',')}}</small></h5>
    {% endif %}
    <hr>
{% endblock %}

{% block body %}
<div class="row">
    <div id="share-column" class="col-md-2">
        <div class="navbar-left-article affix">
            {% include 'signup_form.html' %}

            <br/><br/>

            <a class="twitter-share-button" href="https://twitter.com/intent/tweet?text=Loved%20this%20article%20on%20{{article.title}}">Tweet</a>

            <br/> <br/>

            <div class="fb-like" data-href="{{canonical_url}}" data-layout="button_count" data-action="like" data-show-faces="false"></div>

            <br/> <br/>

            <div class="create-tutorial">
                <a href="/write/" class="emphasize">Create tutorial</a>
            </div>

            <!-- Load Facebook SDK for JavaScript -->
            <div id="fb-root"></div>
        </div><!-- affix -->
    </div> <!-- column -->

    <div id="article" class="col-md-8">
        <p> {{article.content|safe}} </p>

        {% if allow_edits %}
            <p>
            <a href="{{url_for('write', article_path=article.path, branch=visible_branch)}}">Edit article <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
            </p>
        {% endif %}
        {% if allow_delete %}
            <p>
                <button type="button" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#delete-confirmation">
                    Delete article <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                </button>
                {% include 'confirm_delete.html' %}
            </p>
        {% endif %}

        <p>
            <a href="{{article.external_url}}" target="_blank">View on Github</a>
        </p>

{'fraction_non_alphanumeric': 0.199368850937442, 'fraction_numerical': 0.008167811397809541, 'mean_word_length': 2.549407114624506, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, 'https://': 6, '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': '4535984', 'n_tokens_mistral': 1806, 'n_tokens_neox': 1656, 'n_words': 291}