<commit_before>\documentclass[11pt,a4paper]{report}


%%% packages

  \usepackage{a4wide}           % set page size etc
  \usepackage{multido}          % used in chapter 3 to repeat text
  \usepackage{setspace}         % provides \onehalfspacing
  \usepackage{url}              % to set URLs, paths, commands ... in tt
  \usepackage{amstext}          % provides \text, which, unlike \mbox, scales
  \usepackage{amsmath}          % provides align and align*, besides others
% \usepackage{times}            % switches to the Times font, saves space
  \usepackage{amssymb,mathptmx} % provides more math symbols
  
  \usepackage{doc} %special logo commands
  \usepackage{datetime} % up-to-date, automatically generated times
  \usepackage{amsfonts}
  \usepackage{multirow}
  % For graphic files
  \usepackage{graphicx}
  \usepackage{epstopdf}
  \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

  \usepackage{algorithm}
  \usepackage{algorithmic}

  \usepackage{pdflscape}
  \usepackage{rotating}
  \usepackage{wrapfig}

  \usepackage{cite} 
  \usepackage{caption}

  \usepackage{fancyhdr}
  \chead{<NAME>}
  \lhead{}
  \rhead{}

  \pagestyle{fancy} % so header appears on each page  
  

%%% new commands
  
  \newcommand{\PD}[2]{\frac{\partial #1}{\partial #2}} % partial derivation
  \newcommand{\dd}{\,\mathrm{d}} % to be used in differentials

%%% One and a half line spacing

% \renewcommand{\baselinestretch}{1.5}
  \onehalfspacing % better than \renewcommand{\baselinestretch}{1.5}


%%% other styles

  \setcounter{secnumdepth}{3}
  \setcounter{tocdepth}{4}



\begin{document}

\thispagestyle{empty}

\include{cover}          % This is the front page

\pagestyle{fancy} % so headers are put on pages
\pagenumbering{roman}    % Set up page numbering
\setcounter{page}{1}

\include{summary}        % Summary
\include{acknowledge}    % Acknowledgements
\tableofcontents
\newpage

\pagenumbering{arabic}   % Set up page numbering
\setcounter{page}{1}

\include{introduction}       % include the chapters
\include{methodology}
\include{background_research}
\include{design_and_implementation}
\include{iteration_1}
\include{evaluation}
\include{conclusion}

\addcontentsline{toc}{chapter}{\numberline { }Bibliography}
\bibliographystyle{plain}
\bibliography{refs}      % include the bibliography

\appendix                % include the appendices
\include{appendixa}
\include{appendixb}
\include{appendixc}
\include{appendixd}

\end{document}<commit_msg>Changed numbering of references to be in the order they first appear in the document<commit_after>\documentclass[11pt,a4paper]{report}


%%% packages

  \usepackage{a4wide}           % set page size etc
  \usepackage{multido}          % used in chapter 3 to repeat text
  \usepackage{setspace}         % provides \onehalfspacing
  \usepackage{url}              % to set URLs, paths, commands ... in tt
  \usepackage{amstext}          % provides \text, which, unlike \mbox, scales
  \usepackage{amsmath}          % provides align and align*, besides others
% \usepackage{times}            % switches to the Times font, saves space
  \usepackage{amssymb,mathptmx} % provides more math symbols
  
  \usepackage{doc} %special logo commands
  \usepackage{datetime} % up-to-date, automatically generated times
  \usepackage{amsfonts}
  \usepackage{multirow}
  % For graphic files
  \usepackage{graphicx}
  \usepackage{epstopdf}
  \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

  \usepackage{algorithm}
  \usepackage{algorithmic}

  \usepackage{pdflscape}
  \usepackage{rotating}
  \usepackage{wrapfig}

  \usepackage{cite} 
  \usepackage{caption}

  \usepackage{fancyhdr}
  \chead{<NAME>}
  \lhead{}
  \rhead{}

  \pagestyle{fancy} % so header appears on each page  
  

%%% new commands
  
  \newcommand{\PD}[2]{\frac{\partial #1}{\partial #2}} % partial derivation
  \newcommand{\dd}{\,\mathrm{d}} % to be used in differentials

%%% One and a half line spacing

% \renewcommand{\baselinestretch}{1.5}
  \onehalfspacing % better than \renewcommand{\baselinestretch}{1.5}


%%% other styles

  \setcounter{secnumdepth}{3}
  \setcounter{tocdepth}{4}



\begin{document}

\thispagestyle{empty}

\include{cover}          % This is the front page

\pagestyle{fancy} % so headers are put on pages
\pagenumbering{roman}    % Set up page numbering
\setcounter{page}{1}

\include{summary}        % Summary
\include{acknowledge}    % Acknowledgements
\tableofcontents
\newpage

\pagenumbering{arabic}   % Set up page numbering
\setcounter{page}{1}

\include{introduction}       % include the chapters
\include{methodology}
\include{background_research}
\include{design_and_implementation}
\include{iteration_1}
\include{evaluation}
\include{conclusion}

\addcontentsline{toc}{chapter}{\numberline { }Bibliography}
\bibliographystyle{unsrt}
\bibliography{refs}      % include the bibliography

\appendix                % include the appendices
\include{appendixa}
\include{appendixb}
\include{appendixc}
\include{appendixd}

\end{document}
{'fraction_non_alphanumeric': 0.12220684200118648, 'fraction_numerical': 0.007909827961241843, 'mean_word_length': 3.8034188034188032, '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': '5725141', 'n_tokens_mistral': 1703, 'n_tokens_neox': 1551, 'n_words': 373}