<commit_before>% latex template author: <NAME>
% let compiler know which file is the root file
% !TEX root = indoctrinatr-technical-documentation.tex

\chapter{Template Structure}


\section{Files in Template}
\dirtree{%
	.1 /.
	<% list_of_files.each do |item| %>
	<%= item.to_latex %>
	<% end %>
}

<% @files.each do |file| %>
\section{<%= file.name.to_latex -%>}

\begin{lstlisting}<%="[language=#{file.language}]" unless file.language == 'unspecified' %>
<%= file.content.gsub('\end{lstlisting}', '\end{lstlisting}'.to_latex) %><%# this escaping is important, so that lstlisting does not break. \begin lstlisting is ignored %>
\end{lstlisting}

<% end %>

\chapter{Variables}
		
\begin{tabu}{ l l l l X }
	\textbf{Variable} & \textbf{Presentation} & \textbf{Default Value} & \textbf{Required} & \textbf{Description} \\
	<% @attributes.each do |attribute| %>
		\texttt{<%= attribute['name'].to_latex -%>}
		& <%= attribute['presentation'].to_latex -%>
		& <%= attribute['default_value'].to_latex -%>
		& <%= 'true' if attribute['required'] == 'true' -%> <%# empty if false or not set. Wish by Søren for better readability-%>
		& <%= attribute['description'].to_latex -%>\\
	<% end %>
\end{tabu}
<commit_msg>fix documentation formatting for long default values<commit_after>% latex template author: <NAME>
% let compiler know which file is the root file
% !TEX root = indoctrinatr-technical-documentation.tex

\chapter{Template Structure}


\section{Files in Template}
\dirtree{%
	.1 /.
	<% list_of_files.each do |item| %>
	<%= item.to_latex %>
	<% end %>
}

<% @files.each do |file| %>
\section{<%= file.name.to_latex -%>}

\begin{lstlisting}<%="[language=#{file.language}]" unless file.language == 'unspecified' %>
<%= file.content.gsub('\end{lstlisting}', '\end{lstlisting}'.to_latex) %><%# this escaping is important, so that lstlisting does not break. \begin lstlisting is ignored %>
\end{lstlisting}

<% end %>

\chapter{Variables}
		
\begin{tabu}{ l l X l X }
	\textbf{Variable} & \textbf{Presentation} & \textbf{Default Value} & \textbf{Required} & \textbf{Description} \\
	<% @attributes.each do |attribute| %>
		\texttt{<%= attribute['name'].to_latex -%>}
		& <%= attribute['presentation'].to_latex -%>
		& <%= attribute['default_value'].to_latex -%>
		& <%= 'true' if attribute['required'] == 'true' -%> <%# empty if false or not set. Wish by Søren for better readability-%>
		& <%= attribute['description'].to_latex -%>\\
	<% end %>
\end{tabu}

{'fraction_non_alphanumeric': 0.19617419617419618, 'fraction_numerical': 0.000814000814000814, 'mean_word_length': 4.498881431767338, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '5222120', 'n_tokens_mistral': 948, 'n_tokens_neox': 846, 'n_words': 196}