<commit_before>#!/usr/bin/env python3
# vim:fileencoding=utf-8:ft=python
#
# Author: <NAME> <<EMAIL>>
# $Date$
#
# To the extent possible under law, <NAME> has waived all copyright and
# related or neighboring rights to mkhistory.py. This work is published from
# the Netherlands. See http://creativecommons.org/publicdomain/zero/1.0/

"""Script to format a Git log for LaTeX"""

import os
import subprocess
import sys

# The following texts determine how the commits are generated. Change them to
# suit your preferences.
header = r"""% -*- latex -*-
% Automatisch gegenereerd door tools/mkhistory.py

\chapter{Wijzigingen}

Dit hoofdstuk wordt automatisch gegenereerd uit het \texttt{git}
revisiecontrolesysteem. De meest recente wijzigingen staan bovenaan.

"""
commithdr = r'wijziging:'
authorhdr = r'door:'
datehdr = r'datum:'

# If you change the commithdr, authorhdr or datehdr, you might have to change
# the widths in the begintable text below.
begintable = r"""\begingroup\hspace{-\tabcolsep}
\begin{tabular}{p{0.1\textwidth}p{0.8\textwidth}}
"""
endtable = r"""\end{tabular}\endgroup

"""

<commit_msg>Reformatted Python scripts with yapf.<commit_after>#!/usr/bin/env python3
# vim:fileencoding=utf-8:ft=python
#
# Author: <NAME> <<EMAIL>>
# $Date$
#
# To the extent possible under law, <NAME> has waived all copyright and
# related or neighboring rights to mkhistory.py. This work is published from
# the Netherlands. See http://creativecommons.org/publicdomain/zero/1.0/

"""Script to format a Git log for LaTeX"""

import os
import subprocess
import sys

# The following texts determine how the commits are generated. Change them to
# suit your preferences.
header = r"""% -*- latex -*-
% Automatisch gegenereerd door tools/mkhistory.py

\chapter{Wijzigingen}

Dit hoofdstuk wordt automatisch gegenereerd uit het \texttt{git}
revisiecontrolesysteem. De meest recente wijzigingen staan bovenaan.

"""

commithdr = r'wijziging:'
authorhdr = r'door:'
datehdr = r'datum:'

# If you change the commithdr, authorhdr or datehdr, you might have to change
# the widths in the begintable text below.
begintable = r"""\begingroup\hspace{-\tabcolsep}
\begin{tabular}{p{0.1\textwidth}p{0.8\textwidth}}
"""

endtable = r"""\end{tabular}\endgroup

"""


{'fraction_non_alphanumeric': 0.119449378330373, 'fraction_numerical': 0.007104795737122558, 'mean_word_length': 4.83678756476684, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '706141', 'n_tokens_mistral': 755, 'n_tokens_neox': 747, 'n_words': 238}