<commit_before><%page args="abstract,track_class,contrib_type"/>

%% header

\setlength{\headheight}{20pt}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}


{
    \small
    \sffamily
    \noindent
    ${_(u"Abstract ID")} : \textbf {${abstract.getId()}}
}

\vspace{2em}

\begin{center}
    \textbf {
        \LARGE
        \sffamily
        ${abstract.getTitle()}
    }
\end{center}

\vspace{1em}

% for field in fields:

    {\bf
        \noindent
        \large
        ${field.getCaption()}
    }
    \vspace{0.5em}

    \begin{addmargin}[1em]{1em}
        %% Markdown content
        \rmfamily {
            \allsectionsfont{\rmfamily}
            \sectionfont{\normalsize\rmfamily}
            \subsectionfont{\small\rmfamily}
            \small
            ${md_convert(str(abstract.getField(field.getId())).decode('utf-8')).encode('utf-8')}
        }
        \vspace{1.5em}
    \end{addmargin}

%endfor

\vspace{1.5em}

<%include file="person_list.tpl" args="caption=_('Primary author(s)'), list=abstract.getPrimaryAuthorsList()" />
<%include file="person_list.tpl" args="caption=_('Co-author(s)'), list=abstract.getCoAuthorList()" />
<%include file="person_list.tpl" args="caption=_('Presenter(s)'), list=abstract.getSpeakerList()" />

\vspace{0.5em}

% if track_class:
{
    {
        \bf
        \noindent ${_("Track Classification")} :
    }
    ${latex_escape(track_class)}
}
% endif

% if contrib_type:
{
    {
        \bf
        \noindent ${_("Contribution Type")} :
    }
    ${latex_escape(contrib_type.getName())}
}
% endif

% if abstract.getComments():
    \vspace{0.5em}
    \textbf{${_("Comments:")}}
    \begin{addmargin}[1em]{1em}
        ${abstract.getComments()}
    \end{addmargin}
% endif

<%block name="management_data">
</%block>

\vspace{0.5em}

${_("Submitted by {0} on {1}").format(
    r"\textbf{{{0}}}".format(abstract.getSubmitter().getFullName()),
    r"\textbf{{{0}}}".format(abstract.getSubmissionDate().strftime("%A %d %B %Y")))}}
\fancyfoot[C]{\color{gray} ${_("Last modified:")} ${abstract.getModificationDate().strftime("%A %d %B %Y")}}<commit_msg>[FIX] superfluous } breaking pdf generation<commit_after><%page args="abstract,track_class,contrib_type"/>

%% header

\setlength{\headheight}{20pt}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}


{
    \small
    \sffamily
    \noindent
    ${_(u"Abstract ID")} : \textbf {${abstract.getId()}}
}

\vspace{2em}

\begin{center}
    \textbf {
        \LARGE
        \sffamily
        ${abstract.getTitle()}
    }
\end{center}

\vspace{1em}

% for field in fields:

    {\bf
        \noindent
        \large
        ${field.getCaption()}
    }
    \vspace{0.5em}

    \begin{addmargin}[1em]{1em}
        %% Markdown content
        \rmfamily {
            \allsectionsfont{\rmfamily}
            \sectionfont{\normalsize\rmfamily}
            \subsectionfont{\small\rmfamily}
            \small
            ${md_convert(str(abstract.getField(field.getId())).decode('utf-8')).encode('utf-8')}
        }
        \vspace{1.5em}
    \end{addmargin}

%endfor

\vspace{1.5em}

<%include file="person_list.tpl" args="caption=_('Primary author(s)'), list=abstract.getPrimaryAuthorsList()" />
<%include file="person_list.tpl" args="caption=_('Co-author(s)'), list=abstract.getCoAuthorList()" />
<%include file="person_list.tpl" args="caption=_('Presenter(s)'), list=abstract.getSpeakerList()" />

\vspace{0.5em}

% if track_class:
{
    {
        \bf
        \noindent ${_("Track Classification")} :
    }
    ${latex_escape(track_class)}
}
% endif

% if contrib_type:
{
    {
        \bf
        \noindent ${_("Contribution Type")} :
    }
    ${latex_escape(contrib_type.getName())}
}
% endif

% if abstract.getComments():
    \vspace{0.5em}
    \textbf{${_("Comments:")}}
    \begin{addmargin}[1em]{1em}
        ${abstract.getComments()}
    \end{addmargin}
% endif

<%block name="management_data">
</%block>

\vspace{0.5em}

${_("Submitted by {0} on {1}").format(
    r"\textbf{{{0}}}".format(abstract.getSubmitter().getFullName()),
    r"\textbf{{{0}}}".format(abstract.getSubmissionDate().strftime("%A %d %B %Y")))}
\fancyfoot[C]{\color{gray} ${_("Last modified:")} ${abstract.getModificationDate().strftime("%A %d %B %Y")}}
{'fraction_non_alphanumeric': 0.19758351101634683, 'fraction_numerical': 0.01279317697228145, 'mean_word_length': 3.115009746588694, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '9006', 'n_tokens_mistral': 1532, 'n_tokens_neox': 1527, 'n_words': 207}