<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="text" omit-xml-declaration="yes"/>
  <xsl:template match="map/node">
\documentclass[usepdftitle=false,professionalfonts,compress]{beamer}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{color}

\usetheme[]{Warsaw}
\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}[frame number]

\title{<xsl:value-of select="@TEXT"/>}
\author{<NAME>}
\subtitle{CS1400}
\date{}

\lstset{language=C++,
keywordstyle=\color{blue},
stringstyle=\color{red},
commentstyle=\color{green},
morecomment=[l][\color{magenta}]{\#}
}
\begin{document}
\frame[plain]{
\frametitle{}
\titlepage
}

<xsl:for-each select="node">
  \section{<xsl:value-of select="@TEXT"/>}
  <xsl:for-each select="node">
  \subsection{<xsl:value-of select="@TEXT"/>}
  <xsl:for-each select="node">
    <xsl:choose>
      <xsl:when test="@LOCALIZED_STYLE_REF='styles.important'">
\begin{frame}[fragile]
\frametitle{<xsl:value-of select="@TEXT"/>}
\begin{lstlisting}
<xsl:for-each select="node">
<xsl:value-of select="@TEXT"/>
<xsl:text>&#xa;</xsl:text>
</xsl:for-each>
\end{lstlisting}    
\end{frame}
      </xsl:when>
      <xsl:otherwise>
    \begin{frame}
    \frametitle{<xsl:value-of select="@TEXT"/>}
    <xsl:if test="node">
      \begin{itemize}
  <xsl:for-each select="node">
    \item <xsl:value-of select="@TEXT"/>
<xsl:if test="node">
      \begin{itemize}
  <xsl:for-each select="node">
    \item <xsl:value-of select="@TEXT"/>
      <xsl:if test="@LOCALIZED_STYLE_REF='styles.topic'">
        \pause
      </xsl:if>
</xsl:for-each>
      \end{itemize}
    </xsl:if>

      <xsl:if test="@LOCALIZED_STYLE_REF='styles.topic'">
        \pause
      </xsl:if>
</xsl:for-each>
      \end{itemize}
    </xsl:if>
    \end{frame}
  </xsl:otherwise>
  </xsl:choose>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
    <xsl:text>
\end{document}
</xsl:text>
  </xsl:template>
</xsl:stylesheet>
<commit_msg>Add appendix for textbook correspondence<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="text" omit-xml-declaration="yes"/>
  <xsl:template match="map/node">
\documentclass[usepdftitle=false,professionalfonts,compress]{beamer}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{color}

\usetheme[]{Warsaw}
\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}[frame number]

\title{<xsl:value-of select="@TEXT"/>}
\author{<NAME>}
\subtitle{CS1400}
\date{}

\lstset{language=C++,
keywordstyle=\color{blue},
stringstyle=\color{red},
commentstyle=\color{green},
morecomment=[l][\color{magenta}]{\#}
}

\newcommand{\writeTextBookRefs}{}

\begin{document}
\frame[plain]{
\frametitle{}
\titlepage
}

<xsl:for-each select="node">
  \section{<xsl:value-of select="@TEXT"/>}
  <xsl:for-each select="node">
  \subsection{<xsl:value-of select="@TEXT"/>}
  <xsl:for-each select="node">
    <xsl:choose>
      <xsl:when test="@LOCALIZED_STYLE_REF='styles.important'">
\begin{frame}[fragile]
\frametitle{<xsl:value-of select="@TEXT"/>}
\begin{lstlisting}
<xsl:for-each select="node">
<xsl:value-of select="@TEXT"/>
<xsl:text>&#xa;</xsl:text>
</xsl:for-each>
\end{lstlisting}    
\end{frame}
      </xsl:when>
      <xsl:otherwise>
    \begin{frame}
    \frametitle{<xsl:value-of select="@TEXT"/>}
<xsl:for-each select="attribute">
      <xsl:if test="@NAME='textbook'">
\label{textbook:<xsl:value-of select="@VALUE"/>}
      </xsl:if>
      </xsl:for-each>
    <xsl:if test="node">
      \begin{itemize}
        <xsl:for-each select="node">
    \item <xsl:value-of select="@TEXT"/>
<xsl:if test="node">
      \begin{itemize}
  <xsl:for-each select="node">
    \item <xsl:value-of select="@TEXT"/>
      <xsl:if test="@LOCALIZED_STYLE_REF='styles.topic'">
        \pause
      </xsl:if>
</xsl:for-each>
      \end{itemize}
    </xsl:if>

      <xsl:if test="@LOCALIZED_STYLE_REF='styles.topic'">
        \pause
      </xsl:if>
</xsl:for-each>
      \end{itemize}
    </xsl:if>
    \end{frame}
  </xsl:otherwise>
  </xsl:choose>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
\appendix
\begin{frame}
\frametitle{Textbook sections covered:}
\begin{itemize}
<xsl:for-each select="node/node/node/attribute">
<xsl:sort select="@VALUE"/>
\item Section <xsl:value-of select="@VALUE"/> (frame \ref{textbook:<xsl:value-of select="@VALUE"/>})
</xsl:for-each>
\end{itemize}
\end{frame}
\end{document}
  </xsl:template>
</xsl:stylesheet>

{'fraction_non_alphanumeric': 0.2150984682713348, 'fraction_numerical': 0.00612691466083151, 'mean_word_length': 4.692403486924035, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 2, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '6500110', 'n_tokens_mistral': 1896, 'n_tokens_neox': 1725, 'n_words': 239}