Snippet Extractor

The Snippet Extractor takes a student's submission and extracts the first ten "interesting" lines of code from it. The extracted snippet is shown on various pages on the website.

By default, the first ten lines are shown, ignore leading empty lines. These first ten lines could include things like comments, which are usually not ideal to be presented in a snippet. Each track can customize the snippet extraction, for example to remove said comments.