Program: 17800
Project: 17800
Buggy source:
public static void createMarketWindow(){
  CreateMarketTrainingDialog dialog=new CreateMarketTrainingDialog(EncogWorkBench.getInstance().getMainWindow());
  dialog.getFromDay().setValue(1);
  dialog.getFromMonth().setValue(1);
  dialog.getFromYear().setValue(1995);
  dialog.getToDay().setValue(31);
  dialog.getToMonth().setValue(12);
  dialog.getToYear().setValue(2005);
  dialog.getInputWindow().setValue(7);
  dialog.getOutputWindow().setValue(1);
  if (dialog.process()) {
    String ticker=dialog.getTicker().getValue();
    int fromDay=dialog.getFromDay().getValue();
    int fromMonth=dialog.getFromMonth().getValue();
    int fromYear=dialog.getFromYear().getValue();
    int toDay=dialog.getToDay().getValue();
    int toMonth=dialog.getToMonth().getValue();
    int toYear=dialog.getToYear().getValue();
    int inputWindow=dialog.getInputWindow().getValue();
    int outputWindow=dialog.getOutputWindow().getValue();
    Calendar begin=new GregorianCalendar(fromYear,fromMonth - 1,fromDay);
    Calendar end=new GregorianCalendar(toYear,toMonth - 1,toDay);
    try {
      final MarketLoader loader=new YahooFinanceLoader();
      final MarketNeuralDataSet market=new MarketNeuralDataSet(loader,inputWindow,outputWindow);
      final MarketDataDescription desc=new MarketDataDescription(new TickerSymbol(ticker),MarketDataType.ADJUSTED_CLOSE,true,true);
      market.addDescription(desc);
      if (end.getTimeInMillis() > begin.getTimeInMillis()) {
        EncogWorkBench.displayError("String_Node_Str","String_Node_Str");
        return;
      }
      market.load(begin.getTime(),end.getTime());
      market.generate();
      BasicNeuralDataSet training=new BasicNeuralDataSet();
      for (      NeuralDataPair data : market) {
        training.add(data);
      }
      training.setDescription("String_Node_Str" + ticker);
      EncogWorkBench.getInstance().getCurrentFile().add(EncogDocumentOperations.generateNextID("String_Node_Str"),training);
      EncogWorkBench.getInstance().getMainWindow().redraw();
    }
 catch (    LoaderError e) {
      EncogWorkBench.displayError("String_Node_Str","String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public static void createMarketWindow(){
  CreateMarketTrainingDialog dialog=new CreateMarketTrainingDialog(EncogWorkBench.getInstance().getMainWindow());
  dialog.getFromDay().setValue(1);
  dialog.getFromMonth().setValue(1);
  dialog.getFromYear().setValue(1995);
  dialog.getToDay().setValue(31);
  dialog.getToMonth().setValue(12);
  dialog.getToYear().setValue(2005);
  dialog.getInputWindow().setValue(7);
  dialog.getOutputWindow().setValue(1);
  if (dialog.process()) {
    String ticker=dialog.getTicker().getValue();
    int fromDay=dialog.getFromDay().getValue();
    int fromMonth=dialog.getFromMonth().getValue();
    int fromYear=dialog.getFromYear().getValue();
    int toDay=dialog.getToDay().getValue();
    int toMonth=dialog.getToMonth().getValue();
    int toYear=dialog.getToYear().getValue();
    int inputWindow=dialog.getInputWindow().getValue();
    int outputWindow=dialog.getOutputWindow().getValue();
    Calendar begin=new GregorianCalendar(fromYear,fromMonth - 1,fromDay);
    Calendar end=new GregorianCalendar(toYear,toMonth - 1,toDay);
    try {
      final MarketLoader loader=new YahooFinanceLoader();
      final MarketNeuralDataSet market=new MarketNeuralDataSet(loader,inputWindow,outputWindow);
      final MarketDataDescription desc=new MarketDataDescription(new TickerSymbol(ticker),MarketDataType.ADJUSTED_CLOSE,true,true);
      market.addDescription(desc);
      if (end.getTimeInMillis() < begin.getTimeInMillis()) {
        EncogWorkBench.displayError("String_Node_Str","String_Node_Str");
        return;
      }
      market.load(begin.getTime(),end.getTime());
      market.generate();
      BasicNeuralDataSet training=new BasicNeuralDataSet();
      for (      NeuralDataPair data : market) {
        training.add(data);
      }
      training.setDescription("String_Node_Str" + ticker);
      EncogWorkBench.getInstance().getCurrentFile().add(EncogDocumentOperations.generateNextID("String_Node_Str"),training);
      EncogWorkBench.getInstance().getMainWindow().redraw();
    }
 catch (    LoaderError e) {
      EncogWorkBench.displayError("String_Node_Str","String_Node_Str");
    }
  }
}