\documentclass[12pt]{report}
\topmargin=0in
\headheight=0in
\headsep=0in
\oddsidemargin=0in
\evensidemargin=0in
\textwidth=6.5in
\textheight=9in

\usepackage{setspace}
\usepackage{graphicx}
\usepackage{algorithmic,cite,footmisc,multirow,url}
\usepackage{color}
\usepackage{pslatex}
\usepackage{fullpage}
\usepackage{listings}
\usepackage{float}
\usepackage{epsfig}
\usepackage[table]{xcolor}
\usepackage{amsmath, amsthm, amssymb}

\usepackage{cite,url}



\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{verbatim}
\usepackage{fancyvrb}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{timtricks}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{times}
\usepackage{cite}
\usepackage{float}


\newcommand{\nbc}{~Na\"{i}ve Bayes~}
\newcommand{\hyp}[1]{Hypothesis~\ref{hyp:#1}}
\newcommand{\app}[1]{Appendix~\ref{a:#1}}
\newcommand{\tab}[1]{Table~\ref{tb:#1}}
\newcommand{\sect}[1]{Section~\ref{#1}}
\newcommand{\chap}[1]{Chapter~\ref{#1}}
\newcommand{\dbsp}{\linespread{1.5} \rm}
\newcommand{\ssp}{\linespread{1.0} \rm}
\newcommand{\att}{~AT\&T~}
\newcounter{over}
\newcounter{max}
\newcommand{\fred}[2]{\setcounter{over}{#2}\addtocounter{over}{#1}}
\newcommand{\boxplot}[5]{
\begin{picture}(100, 7)
\put(#1, 2){\line(0, 1){4}}
\put(#1, 4){\line(1, 0){#2}}
\put(#3, 4){\circle*{3}}
\put(#3, 4){\line(1, 0){#4}}
\put(#5, 2){\line(0, 1){4}}
\put(50, 3){\line(0, 1){4}}
\end{picture}
}

\hyphenation{op-tical net-works semi-conduc-tor}


\definecolor{lightergray}{gray}{.7}
\newcommand*\lightergray{\color{lightergray}}


\newcommand{\W}{$\mathcal{W}$}
\usepackage{rotating}

\usepackage{eso-pic}
\usepackage{color}
\usepackage{type1cm}
\usepackage[table]{xcolor}
\newcommand{\xx}{{\cellcolor[rgb]{0.8,0.8,0.8}}}
%\makeatletter
%  \AddToShipoutPicture{%
%    \setlength{\@tempdimb}{.5\paperwidth}%
%    \setlength{\@tempdimc}{.5\paperheight}%
%    \setlength{\unitlength}{1pt}%
%      \makebox(600,900){\rotatebox{45}{\textcolor[gray]{0.80}{\fontsize{5cm}{5cm}\selectfont{Draft v5}}}}}
%\makeatother
\newenvironment{smallitem}
 {\setlength{\topsep}{0pt}
                     \setlength{\partopsep}{0pt}
  \setlength{\parskip}{0pt}
  \begin{itemize}
   \setlength{\leftmargin}{.2in}
  \setlength{\parsep}{0pt}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt}}
 {\end{itemize}}
\newenvironment{smallenum}
 {\setlength{\topsep}{0pt}
  \setlength{\partopsep}{0pt}
  \setlength{\parskip}{0pt}
  \begin{enumerate}
  \setlength{\leftmargin}{.2in}
  \setlength{\parsep}{0pt}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt}}
 {\end{enumerate}}

\definecolor{listinggray}{gray}{0.9}

\singlespacing

\begin{document}
\thispagestyle{empty}

\title{W2: A Simple, Flexible, Case-Based Recommendation Engine for Software Quality Optimization}
\author{\normalsize Adam M. Brady \\ \\ 
\normalsize Thesis submitted to the \\
\normalsize College of Engineering and Mineral Resources \\
\normalsize at West Virginia University \\
\normalsize in partial fulfillment of the requirements \\
\normalsize for the degree of \\ \\
\normalsize Master of Science \\
\normalsize in \\
\normalsize Computer Science \\ \\
\normalsize Tim Menzies, Ph.D., Chair \\
\normalsize Cynthia Tanner \\
\normalsize Tim McGraw, Ph.D. \\ \\
\normalsize Lane Department of Computer Science and Electrical Engineering \\ \\
\normalsize Morgantown, West Virginia \\
\normalsize 2011 \\ \\
\normalsize Keywords: Data Mining, Toolkit, Software Defect Prediction, Bash, Awk, Scripting \\ \\
\normalsize \copyright~2011 Adam M. Brady
}

\date{}
\maketitle

\begin{abstract}
\begin{center}
W2: A Simple, Flexible, Case-Based Recommendation Engine for Software Quality Optimization\vspace{1.5ex} \\
Adam M. Brady
\end{center}
\input{abstract}
\end{abstract}

\chapter*{Dedication}
\renewcommand{\thepage}{\roman{page}}
\setcounter{page}{3}

\begin{center}
\textit{For mom.} \\
\end{center}
\pagenumbering{roman}
\chapter*{Acknowledgments}

My utmost thanks to my family for their unwaivering praise and support, even if they still have no idea what I actually do. I also want to thank my advisor, Dr. Menzies, for showing me the exciting, bizarre misadventure that is academia.

Finally, I offer my gratitude to my fellow researchers and friends, for mitigating my sanity loss when teaching, classes, and research became too much.

\singlespacing

\tableofcontents
\listoffigures
%\listoftables
\pagebreak
\pagenumbering{arabic}

\doublespacing

\chapter{Introduction} %1
\setcounter{page}{1}
\pagenumbering{arabic}
\label{introduction}
\input{introduction}

\chapter{Related Work} %2
\label{related}
\input{related}

\chapter{The {\W}2 Algorithm}\label{sect:inst}
\input{w}

\chapter{Experiments with {\W}2}
\label{experiments}
\input{experiments}

\chapter{Model-Based vs. Case-Based Algorithms}
\label{sect:modelvinstance}
\input{model-v-instance}

\chapter{Discussion}
\label{discussion}
\input{discussion}

\chapter{Conclusion}
\label{conclusion}
\input{conclusion}

\pagebreak

\appendix
\chapter{{\W}2 Source Code}
\label{source}
\input{source}

\chapter{Example Dataset and Project Descriptions}
\label{sect:dataset}
\input{dataset}

\bibliographystyle{plain}
\bibliography{refs,local_refs,myrefs,thesis}
\end{document}
