Program: 188627
Project: 188627
Buggy source:
private TransferredResource createCorpora() throws InterruptedException, IOException, FileAlreadyExistsException, NotFoundException, GenericException, RequestNotValidException {
  TransferredResourcesScanner f=RodaCoreFactory.getTransferredResourcesScanner();
  String parentUUID=f.createFolder(null,"String_Node_Str").getUUID();
  String test1UUID=f.createFolder(parentUUID,CORPORA_TEST1).getUUID();
  String test2UUID=f.createFolder(parentUUID,"String_Node_Str").getUUID();
  String test3UUID=f.createFolder(parentUUID,"String_Node_Str").getUUID();
  f.createFile(parentUUID,CORPORA_TEST1_TXT,generateContentData());
  f.createFile(parentUUID,"String_Node_Str",generateContentData());
  f.createFile(parentUUID,"String_Node_Str",generateContentData());
  f.createFile(test1UUID,CORPORA_TEST1_TXT,generateContentData());
  f.createFile(test1UUID,"String_Node_Str",generateContentData());
  f.createFile(test1UUID,"String_Node_Str",generateContentData());
  f.createFile(test2UUID,CORPORA_TEST1_TXT,generateContentData());
  f.createFile(test2UUID,"String_Node_Str",generateContentData());
  f.createFile(test2UUID,"String_Node_Str",generateContentData());
  f.createFile(test3UUID,CORPORA_TEST1_TXT,generateContentData());
  f.createFile(test3UUID,"String_Node_Str",generateContentData());
  f.createFile(test3UUID,"String_Node_Str",generateContentData());
  f.createFile(parentUUID,CORPORA_PDF,getClass().getResourceAsStream("String_Node_Str" + CORPORA_PDF));
  index.commit(TransferredResource.class);
  TransferredResource transferredResource=index.retrieve(TransferredResource.class,UUID.nameUUIDFromBytes("String_Node_Str".getBytes()).toString());
  return transferredResource;
}

Fixed version (ground truth):
private TransferredResource createCorpora() throws InterruptedException, IOException, FileAlreadyExistsException, NotFoundException, GenericException, RequestNotValidException, AlreadyExistsException {
  TransferredResourcesScanner f=RodaCoreFactory.getTransferredResourcesScanner();
  String parentUUID=f.createFolder(null,"String_Node_Str").getUUID();
  String test1UUID=f.createFolder(parentUUID,CORPORA_TEST1).getUUID();
  String test2UUID=f.createFolder(parentUUID,"String_Node_Str").getUUID();
  String test3UUID=f.createFolder(parentUUID,"String_Node_Str").getUUID();
  f.createFile(parentUUID,CORPORA_TEST1_TXT,generateContentData());
  f.createFile(parentUUID,"String_Node_Str",generateContentData());
  f.createFile(parentUUID,"String_Node_Str",generateContentData());
  f.createFile(test1UUID,CORPORA_TEST1_TXT,generateContentData());
  f.createFile(test1UUID,"String_Node_Str",generateContentData());
  f.createFile(test1UUID,"String_Node_Str",generateContentData());
  f.createFile(test2UUID,CORPORA_TEST1_TXT,generateContentData());
  f.createFile(test2UUID,"String_Node_Str",generateContentData());
  f.createFile(test2UUID,"String_Node_Str",generateContentData());
  f.createFile(test3UUID,CORPORA_TEST1_TXT,generateContentData());
  f.createFile(test3UUID,"String_Node_Str",generateContentData());
  f.createFile(test3UUID,"String_Node_Str",generateContentData());
  f.createFile(parentUUID,CORPORA_PDF,getClass().getResourceAsStream("String_Node_Str" + CORPORA_PDF));
  index.commit(TransferredResource.class);
  TransferredResource transferredResource=index.retrieve(TransferredResource.class,UUID.nameUUIDFromBytes("String_Node_Str".getBytes()).toString());
  return transferredResource;
}