public static int oldGenerateClassificationTrainingExamples(Vector instances, Surrogate concept) {
    { int numInstances = instances.length();
      Cons consQuery = Stella.NIL;
      boolean target = false;
      Symbol conceptName = Symbol.internSymbol(concept.symbolName);

      { int i = Stella.NULL_INTEGER;
        int iter000 = 0;
        int upperBound000 = numInstances - 1;

        for (;iter000 <= upperBound000; iter000 = iter000 + 1) {
          i = iter000;
          { TrainingExample example = TrainingExample.newTrainingExample();

            target = TruthValue.trueTruthValueP(Logic.callAsk(Logic.makeQuery(Stella.NIL, Cons.consList(Cons.cons(conceptName, Cons.cons(Logic.objectName(((LogicObject)((instances.theArray)[i]))), Stella.NIL))), Stella.NIL, Stella.NIL)));
            consQuery = Cons.consList(Cons.cons(Symbol.internSymbol(conceptName.symbolName + "-Classification"), Cons.cons(Logic.objectName(((LogicObject)((instances.theArray)[i]))), Stella.NIL)));
            example.query = consQuery;
            example.output = (target ? Stella.TRUE_WRAPPER : Stella.FALSE_WRAPPER);
            example.concept = conceptName;
            example.name = Logic.objectName(((LogicObject)((instances.theArray)[i])));
            example.module = ((Module)(Stella.$MODULE$.get()));
            example.input = Logic.createInputSignature(consQuery);
            example.timestamp = -1;
            Logic.$TRAINING_EXAMPLES$.push(example);
          }
        }
      }
      return (numInstances);
    }
  }