if (m_Seed > 0) {  getInputFormat().randomize(new Random(m_Seed));
Instances instances;  if (!isFirstBatchDone()) { if (m_Seed > 0) {  getInputFormat().randomize(new Random(m_Seed)); }   getInputFormat().stratify(m_NumFolds); if (!m_Inverse) { instances = getInputFormat().testCV(m_NumFolds, m_Fold - 1); } else { instances = getInputFormat().trainCV(m_NumFolds, m_Fold - 1); }
  public boolean batchFinished() {    if (getInputFormat() == null) {      throw new IllegalStateException("No input instance format defined");    }    if (m_Seed > 0) {      // User has provided a random number seed.      getInputFormat().randomize(new Random(m_Seed));    }    // Select out a fold    getInputFormat().stratify(m_NumFolds);    Instances instances;    if (!m_Inverse) {      instances = getInputFormat().testCV(m_NumFolds, m_Fold - 1);    } else {      instances = getInputFormat().trainCV(m_NumFolds, m_Fold - 1);    }    for (int i = 0; i < instances.numInstances(); i++) {      push(instances.instance(i));    }    m_NewBatch = true;    return (numPendingOutput() != 0);  }