<commit_before>{% include 'partials/toc.html.twig' %}

<article itemscope itemtype="https://schema.org/Article">
	<meta itemprop="mainEntityOfPage" content="{{ page.url(true) }}"/>
	<meta itemprop="author" content="{{ config.site.author.name }}" />
	<meta itemprop="headline" content="{{ page.title }}" />
	<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
		<meta itemprop="name" content="{{ config.site.author.name }}" />
		<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
			<meta itemprop="url" content="{{ url('theme://images/flask.png', true) }}" />
			<meta itemprop="height" content="512" />
			<meta itemprop="width" content="512" />
		</div>
	</div>
	<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
		<meta itemprop="url" content="{{ url('theme://images/flask.png', true) }}" />
		<meta itemprop="height" content="512" />
		<meta itemprop="width" content="512" />
	</div>

	{% set header_image = page.header.header_image|defined(true) %}
	{% set header_image_width  = page.header.header_image_width|defined(900) %}
	{% set header_image_height = page.header.header_image_height|defined(300) %}
	{% set header_image_file = page.header.header_image_file %}

	<header>
		<h1>{{ page.title }}</h1>
	</header>

	<div class="list-blog-header">
		<a href="https://github.com/tomzx/blog.tomrochette.com-content/commits/master{{ page.url }}" title="View page history on GitHub"><i class="fa fa-history"></i> History</a> /
		<a href="https://github.com/tomzx/blog.tomrochette.com-content/edit/master{{ page.url }}/{{ page.name }}" title="Edit page on GitHub"><i class="fa fa-edit"></i> Edit</a> /
		<a href="{{ page.url }}?format=pdf" title="Download as PDF"><i class="fa fa-file-pdf-o"></i> PDF</a> /
		<a href="{{ page.url }}?format=epub" title="Download as EPUB"><i class="fa fa-file-o"></i> EPUB</a> /
		<a href="{{ page.url }}?format=bib" title="Download BIB bibliography"><i class="fa fa-book"></i> BIB</a>
		<br/>
		{% if page.header.created %}
			<span title="The date of creation of the article">Created: <span itemprop="dateCreated https://schema.org/datePublished">{{ page.header.created|date('F j, Y') }}</span></span> /
		{% endif %}
		<span title="The date the article was last edited">Updated: <span itemprop="dateModified">{{ page.date|date('F j, Y') }}</span></span> /
		<span title="The state of completion of the article">Status: {{ page.header.taxonomy.status ?: 'unknown'  }}</span> /
		<span title="At an average of 200 words per minute">{{ ceil(str_word_count(page.content)/200) }} min read (~{{ str_word_count(page.content) }} words)</span>
		<br/>

		{% if page.taxonomy.tag %}
			<span class="tags" itemprop="keywords">
			<i class="fa fa-tag" style="vertical-align: text-bottom" title="Tags"></i>
			{% for tag in page.taxonomy.tag %}
				<a href="/tag{{ config.system.param_sep }}{{ tag }}">{{ tag }}</a>
			{% endfor %}
		</span><commit_msg>Add twitter share button to article page<commit_after>{% include 'partials/toc.html.twig' %}

<article itemscope itemtype="https://schema.org/Article">
	<meta itemprop="mainEntityOfPage" content="{{ page.url(true) }}"/>
	<meta itemprop="author" content="{{ config.site.author.name }}" />
	<meta itemprop="headline" content="{{ page.title }}" />
	<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
		<meta itemprop="name" content="{{ config.site.author.name }}" />
		<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
			<meta itemprop="url" content="{{ url('theme://images/flask.png', true) }}" />
			<meta itemprop="height" content="512" />
			<meta itemprop="width" content="512" />
		</div>
	</div>
	<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
		<meta itemprop="url" content="{{ url('theme://images/flask.png', true) }}" />
		<meta itemprop="height" content="512" />
		<meta itemprop="width" content="512" />
	</div>

	{% set header_image = page.header.header_image|defined(true) %}
	{% set header_image_width  = page.header.header_image_width|defined(900) %}
	{% set header_image_height = page.header.header_image_height|defined(300) %}
	{% set header_image_file = page.header.header_image_file %}

	<header>
		<h1>{{ page.title }}</h1>
	</header>

	<div class="list-blog-header">
		<a href="https://github.com/tomzx/blog.tomrochette.com-content/commits/master{{ page.url }}" title="View page history on GitHub"><i class="fa fa-history"></i> History</a> /
		<a href="https://github.com/tomzx/blog.tomrochette.com-content/edit/master{{ page.url }}/{{ page.name }}" title="Edit page on GitHub"><i class="fa fa-edit"></i> Edit</a> /
		<a href="{{ page.url }}?format=pdf" title="Download as PDF"><i class="fa fa-file-pdf-o"></i> PDF</a> /
		<a href="{{ page.url }}?format=epub" title="Download as EPUB"><i class="fa fa-file-o"></i> EPUB</a> /
		<a href="{{ page.url }}?format=bib" title="Download BIB bibliography"><i class="fa fa-book"></i> BIB</a> /
		<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
		<br/>
		{% if page.header.created %}
			<span title="The date of creation of the article">Created: <span itemprop="dateCreated https://schema.org/datePublished">{{ page.header.created|date('F j, Y') }}</span></span> /
		{% endif %}
		<span title="The date the article was last edited">Updated: <span itemprop="dateModified">{{ page.date|date('F j, Y') }}</span></span> /
		<span title="The state of completion of the article">Status: {{ page.header.taxonomy.status ?: 'unknown'  }}</span> /
		<span title="At an average of 200 words per minute">{{ ceil(str_word_count(page.content)/200) }} min read (~{{ str_word_count(page.content) }} words)</span>
		<br/>

		{% if page.taxonomy.tag %}
			<span class="tags" itemprop="keywords">
			<i class="fa fa-tag" style="vertical-align: text-bottom" title="Tags"></i>
			{% for tag in page.taxonomy.tag %}
				<a href="/tag{{ config.system.param_sep }}{{ tag }}">{{ tag }}</a>
			{% endfor %}
		</span>
{'fraction_non_alphanumeric': 0.21476291347563956, 'fraction_numerical': 0.008799087502036826, 'mean_word_length': 4.862464183381089, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '981164', 'n_tokens_mistral': 2256, 'n_tokens_neox': 2073, 'n_words': 436}