for (int i = 2; i <= context.size(); i++) {
List<String> subList = context.subList(0, i);
long phraseCount = lm.getCount(subList);
double thisP = (double) (phraseCount + 1) / (firstWordCount + 1);
maxCoverage++;
<BUG>debug("    P for " + subList + ": %.20f\n", thisP);

if (phraseCount == 0) {

debug("    # zero matches for '%s'\n", subList);
} else {</BUG>
coverage++;

for (int i = 2; i <= context.size(); i++) {
List<String> subList = context.subList(0, i);
long phraseCount = lm.getCount(subList);
double thisP = (double) (phraseCount + 1) / (firstWordCount + 1);
maxCoverage++;
debug("    P for " + subList + ": %.20f (%d)\n", thisP, phraseCount);
if (phraseCount > 0) {
coverage++;
