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

{% block title %}{{ article.title }} - {{ block.super }}{% endblock %}

{% block head %}
    <link rel="stylesheet" type="text/css" href="{% static 'blog/content/article.css' %}" />
{% endblock %}

{% block precontent %}
{% endblock %}

{% block content %}
    <div id="sharebar">
        <a href="https://twitter.com/share?text={{ article.title }}&url={{ request.build_absolute_uri|urlencode }}"><i class="fa fa-twitter-square fa-2x"></i></a>
        <a href="https://www.facebook.com/sharer/sharer.php?u={{ request.build_absolute_uri|urlencode }}"><i class="fa fa-facebook-square fa-2x"></i></a>
        <a href="https://plus.google.com/share?url={{ request.build_absolute_uri|urlencode }}"><i class="fa fa-google-plus-square fa-2x"></i></a>
        <a href="https://reddit.com/submit?title={{ article.title }}&url={{ request.build_absolute_uri|urlencode }}"><i class="fa fa-reddit-square fa-2x"></i></a>
    </div>
    <h1 class="article-title">{{ article.title }}</h1>
    <p class="article-meta">{{ article.last_modified|date:'j F, Y' }}</p>
    {{ article.body|safe }}
{% endblock %}

{% block scripts %}
    <script src="{% static 'blog/scripts/article.js' %}"></script><commit_msg>added Disqus to blog articles<commit_after>{% extends "layout.html" %}
{% load staticfiles %}

{% block title %}{{ article.title }} - {{ block.super }}{% endblock %}

{% block head %}
    <link rel="stylesheet" type="text/css" href="{% static 'blog/content/article.css' %}" />
{% endblock %}

{% block precontent %}
{% endblock %}

{% block content %}
    <div id="sharebar">
        <a href="https://twitter.com/share?text={{ article.title }}&url={{ request.build_absolute_uri|urlencode }}"><i class="fa fa-twitter-square fa-2x"></i></a>
        <a href="https://www.facebook.com/sharer/sharer.php?u={{ request.build_absolute_uri|urlencode }}"><i class="fa fa-facebook-square fa-2x"></i></a>
        <a href="https://plus.google.com/share?url={{ request.build_absolute_uri|urlencode }}"><i class="fa fa-google-plus-square fa-2x"></i></a>
        <a href="https://reddit.com/submit?title={{ article.title }}&url={{ request.build_absolute_uri|urlencode }}"><i class="fa fa-reddit-square fa-2x"></i></a>
    </div>
    <h1 class="article-title">{{ article.title }}</h1>
    <p class="article-meta">{{ article.last_modified|date:'j F, Y' }}</p>
    {{ article.body|safe }}
    <hr />
    <div id="disqus_thread"></div>
    <script>
        /**
        * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
        * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
        */
    
        var disqus_config = function () {
            this.page.url = '{{ request.build_absolute_uri }}';
            this.page.identifier = '{{ request.path }}';
            this.page.title = '{{ article.title }}';
        };
    
        (function() { // DON'T EDIT BELOW THIS LINE
        var d = document, s = d.createElement('script');

        s.src = '//hamtamtots.disqus.com/embed.js';

        s.setAttribute('data-timestamp', +new Date());
        (d.head || d.body).appendChild(s);
        })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
{% endblock %}

{% block scripts %}
    <script src="{% static 'blog/scripts/article.js' %}"></script>
    <script id="dsq-count-scr" src="//hamtamtots.disqus.com/count.js" async></script>
{'fraction_non_alphanumeric': 0.20836774015964768, 'fraction_numerical': 0.0033030553261767133, 'mean_word_length': 3.536828963795256, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 64, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, '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': '7137053', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1207, 'n_words': 233}