question: public void readExamples ( DataRowReader i , boolean permute , Random random ) { dataList . clear ( ) ; while ( i . hasNext ( ) ) { if ( permute ) { if ( random == null ) { random = new Random ( ) ; } int index = random . nextInt ( dataList . size ( ) + 1 ) ; dataList . add ( index , i . next ( ) ) ; } else { dataList . add ( i . next ( ) ) ; } } }
target:  Reads the examples into memory and permutes the order. Removes all old data rows first.