<commit_before>%let lectureNotes = not book

%if submit
\documentclass{book}
%else
\documentclass[oneside]{book} % use one-side as long as we edit the book (easier to read in pdf reader).
%endif %submit
%if book
\usepackage{mathpazo}
%endif
%if book
\usepackage[bindingoffset=0cm,a4paper,centering,totalheight=200mm,textwidth=120mm,includefoot,includehead,
%            showframe=true, showcrop=true, verbose
           ]{geometry}
%Publisher instructions:
%\usepackage[ paperheight  =297mm,paperwidth   =210mm,  % or: "paper=a4paper"
%             layoutheight =200mm,layoutwidth  =120mm,
%             layoutvoffset= 48.9mm,layouthoffset= 45mm,
%             centering,
%             margin=0pt, includehead, includefoot,
%             footskip=0mm,
%             showframe=true, showcrop=true, verbose
%           ]{geometry}
% It might need a little tweaking.
% This version, although not using A4 paper, also works
%\usepackage[%
%        papersize={156mm,234mm}, %7in,10in},
%        lmargin=18.9mm,
%        rmargin=18.9mm,
%        tmargin=22mm,
%        bmargin=22mm,
%        includefoot,
%        includehead,
%        showframe=true, showcrop=true, verbose
%        ]{geometry}
%else
\usepackage[margin=2cm,a4paper]{geometry}
% \usepackage{a4wide} (the above is even more compact and easier to control)
%endif
\usepackage{layout}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mathrsfs}
%\usepackage{textgreek}
%include polycode.fmt
%include ../L/dslm.format
%%% Somewhat updated version of polycode.fmt from the lhs2TeX dist.
% %include dslmagda.fmt
%%% Our own formatting directives
%include dslm.format
\usepackage{imakeidx}
\usepackage{natbib}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
%if book
\usepackage[colorlinks=true,allcolors=blue]{hyperref}
%else
\usepackage{hyperref}
%endif
\usepackage{colortbl}
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\usepackage{newunicodechar}
%include newunicodedefs.tex
\usepackage[type={CC},modifier={by-nc-sa},version={4.0}]{doclicense}
\RequirePackage{amsfonts}
\usepackage[capitalize]{cleveref} % \cref
\usepackage{tikz}
%\usepackage[labelfont=bf]{caption}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{tikz-cd}
\usetikzlibrary{trees,graphs,quotes,fit,shapes,matrix}
\usepackage{lineno}
\usepackage{enumitem}
\usepackage{pdfpages}
\usepackage{tabu}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{proposition}{Proposition}
\newcommand\jp[1]{\todo{JP: #1}}
\newcommand\ci[1]{\todo{CI: #1}}
\newcommand\pj[1]{\todo{PJ: #1}}
%\newcommand\extraMaterial{\(\ast\)}
\newcommand\extraMaterial{*}
\newcommand\pedantic[1]{\footnote{Pedantic remark: #1}}

\providecommand\mathbbm{\mathbb}


%if submit
\newcommand{\todo}[2][?]{}
%else
\newcommand{\todo}[2][?]{\marginpar{\raggedright\tiny{}TODO: #2}}
%endif

\newcommand{\addtoindex}[1]{#1\index{#1}}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}

\theoremstyle{definition}
\newtheorem{exercise}{Exercise}[chapter]
% Old exercise style (until 2017-11-08): \renewcommand*{\theenumi}{\textbf{E\thesection.\arabic{enumi}}}
\newenvironment{solution}% environment name
{% begin code
  \textbf{Solution:}%
}%
{}% end code
\newenvironment{example}% environment name
{% begin code<commit_msg>formatting<commit_after>%let lectureNotes = not book

%if submit
\documentclass{book}
%else
\documentclass[oneside]{book} % use one-side as long as we edit the book (easier to read in pdf reader).
%endif %submit
%if book
\usepackage{mathpazo}
%endif
%if book
\usepackage[bindingoffset=0cm,a4paper,centering,totalheight=200mm,textwidth=120mm,includefoot,includehead,
%            showframe=true, showcrop=true, verbose
           ]{geometry}
%Publisher instructions:
%\usepackage[ paperheight  =297mm,paperwidth   =210mm,  % or: "paper=a4paper"
%             layoutheight =200mm,layoutwidth  =120mm,
%             layoutvoffset= 48.9mm,layouthoffset= 45mm,
%             centering,
%             margin=0pt, includehead, includefoot,
%             footskip=0mm,
%             showframe=true, showcrop=true, verbose
%           ]{geometry}
% It might need a little tweaking.
% This version, although not using A4 paper, also works
%\usepackage[%
%        papersize={156mm,234mm}, %7in,10in},
%        lmargin=18.9mm,
%        rmargin=18.9mm,
%        tmargin=22mm,
%        bmargin=22mm,
%        includefoot,
%        includehead,
%        showframe=true, showcrop=true, verbose
%        ]{geometry}
%else
\usepackage[margin=2cm,a4paper]{geometry}
% \usepackage{a4wide} (the above is even more compact and easier to control)
%endif
\usepackage{layout}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{mathrsfs}
%\usepackage{textgreek}
%include polycode.fmt
%include ../L/dslm.format
%%% Somewhat updated version of polycode.fmt from the lhs2TeX dist.
% %include dslmagda.fmt
%%% Our own formatting directives
%include dslm.format
\usepackage{imakeidx}
\usepackage{natbib}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
%if book
\usepackage[colorlinks=true,allcolors=blue]{hyperref}
%else
\usepackage{hyperref}
%endif
\usepackage{colortbl}
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\usepackage{newunicodechar}
%include newunicodedefs.tex
\usepackage[type={CC},modifier={by-nc-sa},version={4.0}]{doclicense}
\RequirePackage{amsfonts}
\usepackage[capitalize]{cleveref} % \cref
\usepackage{tikz}
%\usepackage[labelfont=bf]{caption}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{tikz-cd}
\usetikzlibrary{trees,graphs,quotes,fit,shapes,matrix}
\usepackage{lineno}
\usepackage{enumitem}
\usepackage{pdfpages}
\usepackage{tabu}
\newcommand\jp[1]{\todo{JP: #1}}
\newcommand\ci[1]{\todo{CI: #1}}
\newcommand\pj[1]{\todo{PJ: #1}}
%\newcommand\extraMaterial{\(\ast\)}
\newcommand\extraMaterial{*}
\newcommand\pedantic[1]{\footnote{Pedantic remark: #1}}

\providecommand\mathbbm{\mathbb}


%if submit
\newcommand{\todo}[2][?]{}
%else
\newcommand{\todo}[2][?]{\marginpar{\raggedright\tiny{}TODO: #2}}
%endif

\newcommand{\addtoindex}[1]{#1\index{#1}}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}

\theoremstyle{definition}
\newtheorem{exercise}{Exercise}[chapter]
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{lemma}{Lemma}[chapter]
\newtheorem{definition}{Definition}[chapter]
\newtheorem{proposition}{Proposition}[chapter]
% Old exercise style (until 2017-11-08): \renewcommand*{\theenumi}{\textbf{E\thesection.\arabic{enumi}}}
\newenvironment{solution}% environment name
{% begin code
  \textbf{Solution:}%
}%
{}% end code
\newenvironment{example}% environment name
{% begin code
{'fraction_non_alphanumeric': 0.15191585274229902, 'fraction_numerical': 0.02464312546957175, 'mean_word_length': 5.249765258215962, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6388745', 'n_tokens_mistral': 2431, 'n_tokens_neox': 2204, 'n_words': 418}