//for ( q = 0; q < queries; q++ ) System.out.println( "Query " + q + ": " + new IntArrayList( docForQuery[ q ] ) );
String split[];
int words[] = new int[ 1024 ];
final FastBufferedReader reader = new FastBufferedReader( new InputStreamReader( System.in, "UTF-8" ) );
int lineNumber = 0;
int numberOfPartialQueries = queries;
ProgressLogger pl = new ProgressLogger( LOGGER );
pl.itemsName = "Klines";
pl.expectedUpdates = maxDoc / 1000;
pl.start( "Generating queries..." );
MutableString line = new MutableString();
while( reader.readLine( line ) != null && numberOfPartialQueries > 0 ) {
if ( used[ lineNumber ] ) {
for ( q = 0; q < queries; q++ )
if ( coveredForQuery[ q ] < docperquery && docForQuery[ q ][ coveredForQuery[ q ] ] == lineNumber ) {
split = line.toString().split( " " );
int nw = split.length;