<commit_before>\documentclass[11pt]{book}

% Essential
\usepackage[USenglish,english,american]{babel}
\usepackage{titling}

% Optional
\usepackage[hidelinks]{hyperref}
\usepackage{amsmath,amsthm,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{tikz}
\usepackage{multicol}
\usepackage{float}
\usepackage[official]{eurosym}
\usepackage{xcolor}
\usepackage{subfiles}
\usepackage{framed}
\usepackage[strict]{changepage}
\usepackage{tabularx}
\usepackage{mdframed}

%\usepackage[printwatermark]{xwatermark}
%\newwatermark[allpages,color=gray!50,angle=45,scale=3,xpos=0,ypos=0]{DRAFT}


% Titleplage
\title{SORTES}
\date{\today}
\author{<NAME>}
 
% Margins
\setlength{\topmargin}{0in}
\setlength{\footskip}{0.5in}
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textheight}{8.5in}

% Listings 
\lstset{
	basicstyle=\scriptsize,
	breaklines=true,
	captionpos=b,
	extendedchars=true,
	frame=lines,
	numbers=left,
	numberstyle=\tiny,
	keywordstyle=\bfseries,
	showstringspaces=false,
	tabsize=2,
	title=\lstname 
}

\lstdefinestyle{cstyle}{
  language=C
}

% Personal Preferences
\setlength\parindent{0pt}

% Figure Path
\graphicspath{{images/}{../images/}}


% Theorem Styles
\theoremstyle{definition}
\newtheorem{asmdefn}{Definition}[section]
\newtheorem{asmexmp}{Example}[section]

%Listing with file as first argument and options as second.
\newcommand\includelisting[2]{
    \IfFileExists{code/#1}{
		\lstinputlisting[ #2 ]{code/#1}
    }{
		\lstinputlisting[ #2 ]{../code/#1}
    }
}

% Boxed Theorems
\newenvironment{exmp}
  {\begin{mdframed}\begin{asmexmp}}
  {\end{asmexmp}\end{mdframed}}
  
\newenvironment{defn}
  {\begin{mdframed}\begin{asmdefn}}
  {\end{asmdefn}\end{mdframed}}
    
  

% Blockquote
\newenvironment{blockquote}{%
  \def\FrameCommand{%
    \hspace{1pt}%
    
    {\color{black}\vrule width 4pt}%
    {\color{lightgray}\vrule width 4pt}%
    \colorbox{lightgray}%
  }%
  \MakeFramed{\advance\hsize-\width\FrameRestore}%
  \noindent\hspace{-4.55pt}% disable indenting first paragraph
  \begin{adjustwidth}{}{7pt}%
  \vspace{2pt}\vspace{2pt}%
}
{%
  \vspace{2pt}\end{adjustwidth}\endMakeFramed%
}



\begin{document}

\frontmatter

% Title Page
\maketitle

% Table of Contents Page
\tableofcontents

\mainmatter
\part{Real-Time Systems}
\subfile{chapters/chapter1}
\subfile{chapters/chapter2}
\subfile{chapters/chapter3}
\subfile{chapters/chapter4}
\part{Asynchronous State Graphs}
\subfile{chapters/chapter5}
\subfile{chapters/chapter6}
\subfile{chapters/chapter7}


% Appendix
\appendix 

% References
\bibliographystyle{plain}
\bibliography{references}
\nocite{*}

\end{document}<commit_msg>Added index to the main.tex. Let's index this!.<commit_after>\documentclass[11pt]{book}

% Essential
\usepackage[USenglish,english,american]{babel}
\usepackage{titling}

% Optional
\usepackage[hidelinks]{hyperref}
\usepackage{amsmath,amsthm,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{tikz}
\usepackage{multicol}
\usepackage{float}
\usepackage[official]{eurosym}
\usepackage{xcolor}
\usepackage{subfiles}
\usepackage{framed}
\usepackage[strict]{changepage}
\usepackage{tabularx}
\usepackage{mdframed}
\usepackage{makeidx}

%\usepackage[printwatermark]{xwatermark}
%\newwatermark[allpages,color=gray!50,angle=45,scale=3,xpos=0,ypos=0]{DRAFT}


% Titleplage
\title{SORTES}
\date{\today}
\author{<NAME>}
 
% Margins
\setlength{\topmargin}{0in}
\setlength{\footskip}{0.5in}
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textheight}{8.5in}

% Listings 
\lstset{
	basicstyle=\scriptsize,
	breaklines=true,
	captionpos=b,
	extendedchars=true,
	frame=lines,
	numbers=left,
	numberstyle=\tiny,
	keywordstyle=\bfseries,
	showstringspaces=false,
	tabsize=2,
	title=\lstname 
}

\lstdefinestyle{cstyle}{
  language=C
}

% Personal Preferences
\setlength\parindent{0pt}

% Figure Path
\graphicspath{{images/}{../images/}}

% Ensures an index is made.
\makeindex

% Theorem Styles
\theoremstyle{definition}
\newtheorem{asmdefn}{Definition}[section]
\newtheorem{asmexmp}{Example}[section]

%Listing with file as first argument and options as second.
\newcommand\includelisting[2]{
    \IfFileExists{code/#1}{
		\lstinputlisting[ #2 ]{code/#1}
    }{
		\lstinputlisting[ #2 ]{../code/#1}
    }
}

% Boxed Theorems
\newenvironment{exmp}
  {\begin{mdframed}\begin{asmexmp}}
  {\end{asmexmp}\end{mdframed}}
  
\newenvironment{defn}
  {\begin{mdframed}\begin{asmdefn}}
  {\end{asmdefn}\end{mdframed}}
    
  

% Blockquote
\newenvironment{blockquote}{%
  \def\FrameCommand{%
    \hspace{1pt}%
    
    {\color{black}\vrule width 4pt}%
    {\color{lightgray}\vrule width 4pt}%
    \colorbox{lightgray}%
  }%
  \MakeFramed{\advance\hsize-\width\FrameRestore}%
  \noindent\hspace{-4.55pt}% disable indenting first paragraph
  \begin{adjustwidth}{}{7pt}%
  \vspace{2pt}\vspace{2pt}%
}
{%
  \vspace{2pt}\end{adjustwidth}\endMakeFramed%
}



\begin{document}

\frontmatter

% Title Page
\maketitle

% Table of Contents Page
\tableofcontents

\mainmatter
\part{Real-Time Systems}
\subfile{chapters/chapter1}
\subfile{chapters/chapter2}
\subfile{chapters/chapter3}
\subfile{chapters/chapter4}
\part{Asynchronous State Graphs}
\subfile{chapters/chapter5}
\subfile{chapters/chapter6}
\subfile{chapters/chapter7}


% Appendix
\appendix 

% Index 
\printindex


% References
\bibliographystyle{plain}
\bibliography{references}
\nocite{*}

\end{document}
{'fraction_non_alphanumeric': 0.15852551298347559, 'fraction_numerical': 0.01561648810604685, 'mean_word_length': 5.676363636363637, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2662816', 'n_tokens_mistral': 2200, 'n_tokens_neox': 2029, 'n_words': 283}