This joint project with UdeM IR Group sought to finding the best window around a keyword match in a document, a key part of snippet generation in search engines.
This code and subsequent experiments resulted in COLING 2012 paper.
More details at the project repository.