!752 p { File f = getNewestFile(allEventLogs()); assertNotNull("Not chat log found", f); printStructure(f); L log = collect(scanEventLogForPosts(f), "text"); printStructure("Log: ", log); int i = lastIndexOfStartsWith(log, "!learn"); if (i < 0) { print("No !learn command found"); ret; } new Matches mm; print("cmd: " + log.get(i)); assertTrue(match("!learn *-*", log.get(i), mm)); int m = mm.psi(0), n = mm.psi(1); print("i=" + i +", m=" + m + ", n=" + n); L part = subList(log, i-n, i-m); printStructureLines(part); /*for (S s : part) print(indent(s));*/ }