nus-yam/ex-repair huggingface dataset:
Program: 98521
Project: 98521
Buggy source:
public CourseVoVwFull(CourseVo vo,SubjectVoVwSmall subjectVo,ProfessorVoVwFull professorVo){
  this.vo=vo;
  this.subjectVo=subjectVo;
  this.professorVo=professorVo;
}

Fixed version (ground truth):
public CourseVoVwFull(CourseVo vo,SubjectVoVwSmall subjectVo,ProfessorVoVwFull professorVo,String period){
  this.vo=vo;
  this.subjectVo=subjectVo;
  this.professorVo=professorVo;
  this.period=period;
}
Program: 98522
Project: 98522
Buggy source:
public CourseVoVwFull getCourseVoVwFull(long courseId){
  SubjectsFacade subjectFacade=facadeFactory.getSubjectsFacade();
  CourseVoFull course=facadeFactory.getCoursesFacade().getCourse(courseId);
  SubjectVoVwSmall subject=new SubjectVoVwSmall(course.getSubjectVo().getId(),course.getSubjectVo().getName(),course.getSubjectVo().getCode(),subjectFacade.getSubjectsRatingSummary(course.getSubjectVo().getId()));
  ProfessorVoVwFull professor=ProfessorVoVwBuilder.getInstance().getProfessorFull(course.getProfessorVo());
  return new CourseVoVwFull(course.getVo(),subject,professor);
}

Fixed version (ground truth):
public CourseVoVwFull getCourseVoVwFull(long courseId){
  SubjectsFacade subjectFacade=facadeFactory.getSubjectsFacade();
  CourseVoFull course=facadeFactory.getCoursesFacade().getCourse(courseId);
  SubjectVoVwSmall subject=new SubjectVoVwSmall(course.getSubjectVo().getId(),course.getSubjectVo().getName(),course.getSubjectVo().getCode(),subjectFacade.getSubjectsRatingSummary(course.getSubjectVo().getId()));
  ProfessorVoVwFull professor=ProfessorVoVwBuilder.getInstance().getProfessorFull(course.getProfessorVo());
  PeriodVo period=facadeFactory.getPeriodsFacade().getPeriod(course.getVo().getPeriodId());
  String periodString;
  if (period == null) {
    periodString=NO_PERIOD_STRING;
  }
 else {
    periodString=String.valueOf(period.getYear()) + "String_Node_Str" + String.valueOf(period.getSemester());
  }
  return new CourseVoVwFull(course.getVo(),subject,professor,periodString);
}
Program: 98524
Project: 98524
Buggy source:
@Test public void BL_9_3() throws Exception {
  FeedbacksFacade ff=Config.getInstance().getFacadeFactory().getFeedbacksFacade();
  List<FeedbackVo> fvs=ff.getAllFeedbacks();
  for (  FeedbackVo fv : fvs) {
    FeedbackVo result=entityManager.createQuery("String_Node_Str",FeedbackEntity.class).setParameter("String_Node_Str",fv.getId()).getSingleResult().toVo();
    assertNotNull(result);
    assertEquals(result.getId(),fv.getId());
    assertEquals(result.getFeedbackTypeId(),fv.getFeedbackTypeId());
    assertEquals(result.getContent(),fv.getContent());
  }
  int size=entityManager.createQuery("String_Node_Str",Long.class).getSingleResult().intValue();
  assertEquals(size,fvs.size());
}

Fixed version (ground truth):
@Test public void BL_9_3() throws Exception {
  FeedbacksFacade ff=Config.getInstance().getFacadeFactory().getFeedbacksFacade();
  List<FeedbackVo> fvs=ff.getAllFeedbacks(0,(int)ff.countAllFeedbacks());
  for (  FeedbackVo fv : fvs) {
    FeedbackVo result=entityManager.createQuery("String_Node_Str",FeedbackEntity.class).setParameter("String_Node_Str",fv.getId()).getSingleResult().toVo();
    assertNotNull(result);
    assertEquals(result.getId(),fv.getId());
    assertEquals(result.getFeedbackTypeId(),fv.getFeedbackTypeId());
    assertEquals(result.getContent(),fv.getContent());
  }
  int size=entityManager.createQuery("String_Node_Str",Long.class).getSingleResult().intValue();
  assertEquals(size,fvs.size());
}
Program: 98525
Project: 98525
Buggy source:
@Test public void BL_9_4() throws Exception {
  List<Long> feedbackTypeIds=entityManager.createQuery("String_Node_Str",Long.class).getResultList();
  FeedbacksFacade ff=Config.getInstance().getFacadeFactory().getFeedbacksFacade();
  for (  Long id : feedbackTypeIds) {
    List<FeedbackVo> fvs=ff.getFeedbacksByFeedbackType(id);
    for (    FeedbackVo fv : fvs) {
      FeedbackVo result=entityManager.createQuery("String_Node_Str",FeedbackEntity.class).setParameter("String_Node_Str",fv.getId()).getSingleResult().toVo();
      assertNotNull(result);
      assertEquals(result.getId(),fv.getId());
      assertEquals(id,fv.getFeedbackTypeId());
      assertEquals(result.getFeedbackTypeId(),fv.getFeedbackTypeId());
      assertEquals(result.getContent(),fv.getContent());
    }
    int size=entityManager.createQuery("String_Node_Str",Long.class).setParameter("String_Node_Str",id).getSingleResult().intValue();
    assertEquals(size,fvs.size());
  }
}

Fixed version (ground truth):
@Test public void BL_9_4() throws Exception {
  List<Long> feedbackTypeIds=entityManager.createQuery("String_Node_Str",Long.class).getResultList();
  FeedbacksFacade ff=Config.getInstance().getFacadeFactory().getFeedbacksFacade();
  for (  Long id : feedbackTypeIds) {
    List<FeedbackVo> fvs=ff.getFeedbacksByFeedbackType(id,0,(int)ff.countFeedbacksByFeedbackType(id));
    for (    FeedbackVo fv : fvs) {
      FeedbackVo result=entityManager.createQuery("String_Node_Str",FeedbackEntity.class).setParameter("String_Node_Str",fv.getId()).getSingleResult().toVo();
      assertNotNull(result);
      assertEquals(result.getId(),fv.getId());
      assertEquals(id,fv.getFeedbackTypeId());
      assertEquals(result.getFeedbackTypeId(),fv.getFeedbackTypeId());
      assertEquals(result.getContent(),fv.getContent());
    }
    int size=entityManager.createQuery("String_Node_Str",Long.class).setParameter("String_Node_Str",id).getSingleResult().intValue();
    assertEquals(size,fvs.size());
  }
}
Program: 98526
Project: 98526
Buggy source:
@Test public void BL_9_4_1() throws Exception {
  FeedbacksFacade ff=Config.getInstance().getFacadeFactory().getFeedbacksFacade();
  List<FeedbackVo> fvs=ff.getFeedbacksByFeedbackType(Long.MAX_VALUE);
  assertTrue(fvs.isEmpty());
}

Fixed version (ground truth):
@Test public void BL_9_4_1() throws Exception {
  FeedbacksFacade ff=Config.getInstance().getFacadeFactory().getFeedbacksFacade();
  List<FeedbackVo> fvs=ff.getFeedbacksByFeedbackType(Long.MAX_VALUE,0,1);
  assertTrue(fvs.isEmpty());
}
Program: 98528
Project: 98528
Buggy source:
@Override public boolean equals(Object object){
  if (object == null) {
    return false;
  }
  if (!(object instanceof CourseEntity)) {
    return false;
  }
  final ConfirmationKeyEntity other=(ConfirmationKeyEntity)object;
  if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
    return false;
  }
  if (this.expirationDate != other.expirationDate && (this.expirationDate == null || !this.expirationDate.equals(other.expirationDate))) {
    return false;
  }
  if ((this.confirmationKey == null) ? (other.confirmationKey != null) : !this.confirmationKey.equals(other.confirmationKey)) {
    return false;
  }
  if (this.user != other.user && (this.user == null || !this.user.equals(other.user))) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean equals(Object object){
  if (object == null) {
    return false;
  }
  if (!(object instanceof ConfirmationKeyEntity)) {
    return false;
  }
  final ConfirmationKeyEntity other=(ConfirmationKeyEntity)object;
  if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
    return false;
  }
  if (this.expirationDate != other.expirationDate && (this.expirationDate == null || !this.expirationDate.equals(other.expirationDate))) {
    return false;
  }
  if ((this.confirmationKey == null) ? (other.confirmationKey != null) : !this.confirmationKey.equals(other.confirmationKey)) {
    return false;
  }
  if (this.user != other.user && (this.user == null || !this.user.equals(other.user))) {
    return false;
  }
  return true;
}
Program: 98529
Project: 98529
Buggy source:
@Override public FeedbackTypeDao getFeedbackTypeDao(){
  if (feedbackTypeDao == null) {
    feedbackTypeDao=new SqlFeedbackTypeDao(new SimpleDeleteBehavior<FeedbackTypeEntity>());
  }
  return feedbackTypeDao;
}

Fixed version (ground truth):
@Override public FeedbackTypeDao getFeedbackTypeDao(){
  if (feedbackTypeDao == null) {
    feedbackTypeDao=new SQLFeedbackTypeDao(new SimpleRemoveBehavior<FeedbackTypeEntity>());
  }
  return feedbackTypeDao;
}
Program: 98530
Project: 98530
Buggy source:
@Override public FeedbackDao getFeedbackDao(){
  if (feedbackDao == null) {
    feedbackDao=new SqlFeedbackDao(new SimpleDeleteBehavior<FeedbackEntity>());
  }
  return feedbackDao;
}

Fixed version (ground truth):
@Override public FeedbackDao getFeedbackDao(){
  if (feedbackDao == null) {
    feedbackDao=new SQLFeedbackDao(new SimpleRemoveBehavior<FeedbackEntity>());
  }
  return feedbackDao;
}
Program: 98531
Project: 98531
Buggy source:
@Override public BinaryRatingDao<SubjectRatingEntity> getSubjectRatingDao(){
  if (subjectRatingDao == null) {
    subjectRatingDao=new SqlSubjectRatingDao();
  }
  return subjectRatingDao;
}

Fixed version (ground truth):
@Override public BinaryRatingDao<SubjectRatingEntity> getSubjectRatingDao(){
  if (subjectRatingDao == null) {
    subjectRatingDao=new SQLSubjectRatingDao();
  }
  return subjectRatingDao;
}
Program: 98532
Project: 98532
Buggy source:
private MySqlDaoBuilder(){
}

Fixed version (ground truth):
public MySqlDaoBuilder(){
  try {
    Class.forName("String_Node_Str").newInstance();
  }
 catch (  Exception ex) {
    ex.printStackTrace();
  }
}
Program: 98533
Project: 98533
Buggy source:
@Override public PeriodDao getPeriodDao(){
  if (periodDao == null) {
    periodDao=new SqlPeriodDao(new PeriodDeleteBehavior(this,new SimpleDeleteBehavior<PeriodEntity>()));
  }
  return periodDao;
}

Fixed version (ground truth):
@Override public PeriodDao getPeriodDao(){
  if (periodDao == null) {
    periodDao=new SQLPeriodDao(new PeriodRemoveBehavior(this,new SimpleRemoveBehavior<PeriodEntity>()));
  }
  return periodDao;
}
Program: 98534
Project: 98534
Buggy source:
@Override public ProfessorDao getProfessorDao(){
  if (professorDao == null) {
    professorDao=new SqlProfessorDao(new ProfessorsDeleteBehavior(this,new SimpleDeleteBehavior<ProfessorEntity>()));
  }
  return professorDao;
}

Fixed version (ground truth):
@Override public ProfessorDao getProfessorDao(){
  if (professorDao == null) {
    professorDao=new SQLProfessorDao(new ProfessorsRemoveBehavior(this,new SimpleRemoveBehavior<ProfessorEntity>()));
  }
  return professorDao;
}
Program: 98535
Project: 98535
Buggy source:
@Override public CourseDao getCourseDao(){
  if (courseDao == null) {
    courseDao=new SqlCourseDao(new CoursesDeleteBehavior(this,new SimpleDeleteBehavior<CourseEntity>()));
  }
  return courseDao;
}

Fixed version (ground truth):
@Override public CourseDao getCourseDao(){
  if (courseDao == null) {
    courseDao=new SQLCourseDao(new CoursesRemoveBehavior(this,new SimpleRemoveBehavior<CourseEntity>()));
  }
  return courseDao;
}
Program: 98536
Project: 98536
Buggy source:
@Override public ConfirmationKeyDao getConfirmationKeyDao(){
  if (confirmationKeyDao == null) {
    confirmationKeyDao=new SqlConfirmationKeyDao(new SimpleDeleteBehavior<ConfirmationKeyEntity>());
  }
  return confirmationKeyDao;
}

Fixed version (ground truth):
@Override public ConfirmationKeyDao getConfirmationKeyDao(){
  if (confirmationKeyDao == null) {
    confirmationKeyDao=new SQLConfirmationKeyDao(new SimpleRemoveBehavior<ConfirmationKeyEntity>());
  }
  return confirmationKeyDao;
}
Program: 98537
Project: 98537
Buggy source:
@Override public CommentDao getCommentDao(){
  if (commentDao == null) {
    commentDao=new SqlCommentDao(new CommentsDeleteBehavior(this,new SimpleDeleteBehavior<CommentEntity>()));
  }
  return commentDao;
}

Fixed version (ground truth):
@Override public CommentDao getCommentDao(){
  if (commentDao == null) {
    commentDao=new SQLCommentDao(new CommentsRemoveBehavior(this,new SimpleRemoveBehavior<CommentEntity>()));
  }
  return commentDao;
}
Program: 98538
Project: 98538
Buggy source:
@Override public CourseRatingDao getCourseRatingDao(){
  if (courseRatingDao == null) {
    courseRatingDao=new SqlCourseRatingDao(new SimpleDeleteBehavior<CourseRatingEntity>());
  }
  return courseRatingDao;
}

Fixed version (ground truth):
@Override public CourseRatingDao getCourseRatingDao(){
  if (courseRatingDao == null) {
    courseRatingDao=new SQLCourseRatingDao(new SimpleRemoveBehavior<CourseRatingEntity>());
  }
  return courseRatingDao;
}
Program: 98539
Project: 98539
Buggy source:
@Override public SubjectDao getSubjectDao(){
  if (subjectDao == null) {
    subjectDao=new SqlSubjectDao(new SubjectsDeleteBehavior(this,new SimpleDeleteBehavior<SubjectEntity>()));
  }
  return subjectDao;
}

Fixed version (ground truth):
@Override public SubjectDao getSubjectDao(){
  if (subjectDao == null) {
    subjectDao=new SQLSubjectDao(new SubjectsRemoveBehavior(this,new SimpleRemoveBehavior<SubjectEntity>()));
  }
  return subjectDao;
}
Program: 98540
Project: 98540
Buggy source:
@Override public ForgottenPasswordKeyDao getForgottenPasswordKeyDao(){
  if (forgottenPasswordKeyDao == null) {
    forgottenPasswordKeyDao=new SqlForgottenPasswordKeyDao(new SimpleDeleteBehavior<ForgottenPasswordKeyEntity>());
  }
  return forgottenPasswordKeyDao;
}

Fixed version (ground truth):
@Override public ForgottenPasswordKeyDaoInterface getForgottenPasswordKeyDao(){
  if (forgottenPasswordKeyDao == null) {
    forgottenPasswordKeyDao=new ForgottenPasswordKeyDao(new SimpleRemoveBehavior<ForgottenPasswordKeyEntity>());
  }
  return forgottenPasswordKeyDao;
}
Program: 98541
Project: 98541
Buggy source:
@Override public ProgramDao getProgramDao(){
  if (programDao == null) {
    programDao=new SqlProgramDao(new SimpleDeleteBehavior<ProgramEntity>());
  }
  return programDao;
}

Fixed version (ground truth):
@Override public ProgramDao getProgramDao(){
  if (programDao == null) {
    programDao=new SQLProgramDao(new SimpleRemoveBehavior<ProgramEntity>());
  }
  return programDao;
}
Program: 98542
Project: 98542
Buggy source:
@Override public BinaryRatingDao<CommentRatingEntity> getCommentRatingDao(){
  if (commentRatingDao == null) {
    commentRatingDao=new SqlCommentRatingDao();
  }
  return commentRatingDao;
}

Fixed version (ground truth):
@Override public BinaryRatingDao<CommentRatingEntity> getCommentRatingDao(){
  if (commentRatingDao == null) {
    commentRatingDao=new SQLCommentRatingDao();
  }
  return commentRatingDao;
}
Program: 98543
Project: 98543
Buggy source:
@Override public UserDao getUserDao(){
  if (userDao == null) {
    userDao=new SqlUserDao(new UsersDeleteBehavior(this,new SimpleDeleteBehavior<UserEntity>()));
  }
  return userDao;
}

Fixed version (ground truth):
@Override public UserDao getUserDao(){
  if (userDao == null) {
    userDao=new SQLUserDao(new UsersRemoveBehavior(this,new SimpleRemoveBehavior<UserEntity>()));
  }
  return userDao;
}
Program: 98544
Project: 98544
Buggy source:
@Override public BinaryRatingDao<ProfessorRatingEntity> getProfessorRatingDao(){
  if (professorRatingDao == null) {
    professorRatingDao=new SqlProfessorRatingDao();
  }
  return professorRatingDao;
}

Fixed version (ground truth):
@Override public BinaryRatingDao<ProfessorRatingEntity> getProfessorRatingDao(){
  if (professorRatingDao == null) {
    professorRatingDao=new SQLProfessorRatingDao();
  }
  return professorRatingDao;
}
Program: 98545
Project: 98545
Buggy source:
public List<CommentVo> getCommentsByCourseId(long courseId){
  EntityManager entityManager=null;
  List<CommentVo> commentVos=new ArrayList<CommentVo>();
  try {
    entityManager=getEntityManagerFactory().createEntityManager();
    commentVos=getServiceFactory().createCommentsService().getByCourseId(entityManager,courseId);
  }
 catch (  Exception exception) {
    getServiceFactory().getLogService().error(exception.getMessage(),exception);
    throw new RuntimeException(exception);
  }
 finally {
    FacadesHelperImplementation.closeEntityManager(entityManager);
  }
  return commentVos;
}

Fixed version (ground truth):
public List<CommentVo> getCommentsByCourseId(long courseId){
  EntityManager entityManager=null;
  List<CommentVo> commentVos;
  try {
    entityManager=getEntityManagerFactory().createEntityManager();
    commentVos=getServiceFactory().createCommentsService().getByCourseId(entityManager,courseId);
  }
 catch (  Exception exception) {
    getServiceFactory().getLogService().error(exception.getMessage(),exception);
    throw new RuntimeException(exception);
  }
 finally {
    FacadesHelperImplementation.closeEntityManager(entityManager);
  }
  return commentVos;
}
Program: 98546
Project: 98546
Buggy source:
public List<PeriodVo> listPeriods(){
  List<PeriodVo> periodVos=new ArrayList<PeriodVo>();
  EntityManager entityManager=null;
  try {
    entityManager=getEntityManagerFactory().createEntityManager();
    periodVos=getServiceFactory().getPeriodsService().list(entityManager);
  }
 catch (  Exception enException) {
    getServiceFactory().getLogService().error(enException.getMessage(),enException);
    throw new RuntimeException(enException);
  }
 finally {
    FacadesHelperImplementation.closeEntityManager(entityManager);
  }
  return periodVos;
}

Fixed version (ground truth):
public List<PeriodVo> listPeriods(){
  List<PeriodVo> periodVos;
  EntityManager entityManager=null;
  try {
    entityManager=getEntityManagerFactory().createEntityManager();
    periodVos=getServiceFactory().getPeriodsService().list(entityManager);
  }
 catch (  Exception enException) {
    getServiceFactory().getLogService().error(enException.getMessage(),enException);
    throw new RuntimeException(enException);
  }
 finally {
    FacadesHelperImplementation.closeEntityManager(entityManager);
  }
  return periodVos;
}
Program: 98547
Project: 98547
Buggy source:
@Override public boolean equals(Object obj){
  if (obj == null) {
    return false;
  }
  final ConfirmationKeyEntity other=(ConfirmationKeyEntity)obj;
  if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
    return false;
  }
  if (this.expirationDate != other.expirationDate && (this.expirationDate == null || !this.expirationDate.equals(other.expirationDate))) {
    return false;
  }
  if ((this.confirmationKey == null) ? (other.confirmationKey != null) : !this.confirmationKey.equals(other.confirmationKey)) {
    return false;
  }
  if (this.user != other.user && (this.user == null || !this.user.equals(other.user))) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean equals(Object object){
  if (object == null) {
    return false;
  }
  if (!(object instanceof CourseEntity)) {
    return false;
  }
  final ConfirmationKeyEntity other=(ConfirmationKeyEntity)object;
  if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
    return false;
  }
  if (this.expirationDate != other.expirationDate && (this.expirationDate == null || !this.expirationDate.equals(other.expirationDate))) {
    return false;
  }
  if ((this.confirmationKey == null) ? (other.confirmationKey != null) : !this.confirmationKey.equals(other.confirmationKey)) {
    return false;
  }
  if (this.user != other.user && (this.user == null || !this.user.equals(other.user))) {
    return false;
  }
  return true;
}
Program: 98548
Project: 98548
Buggy source:
public List<courseInfo> getCourses(){
  return courses;
}

Fixed version (ground truth):
public List<CourseInfo> getCourses(){
  return courses;
}
Program: 98549
Project: 98549
Buggy source:
@Before public void setUp(){
  entityManager=FacadesTestHelper.createEntityManagerFactory().createEntityManager();
}

Fixed version (ground truth):
@Before public void setUp(){
}
Program: 98550
Project: 98550
Buggy source:
@Override public FeedbackTypeDao getFeedbackTypeDao(){
  if (feedbackTypeDao == null) {
    feedbackTypeDao=new SQLFeedbackTypeDao(new SimpleRemoveBehavior<FeedbackTypeEntity>());
  }
  return feedbackTypeDao;
}

Fixed version (ground truth):
@Override public FeedbackTypeDao getFeedbackTypeDao(){
  if (feedbackTypeDao == null) {
    feedbackTypeDao=new SqlFeedbackTypeDao(new SimpleDeleteBehavior<FeedbackTypeEntity>());
  }
  return feedbackTypeDao;
}
Program: 98551
Project: 98551
Buggy source:
@Override public FeedbackDao getFeedbackDao(){
  if (feedbackDao == null) {
    feedbackDao=new SQLFeedbackDao(new SimpleRemoveBehavior<FeedbackEntity>());
  }
  return feedbackDao;
}

Fixed version (ground truth):
@Override public FeedbackDao getFeedbackDao(){
  if (feedbackDao == null) {
    feedbackDao=new SqlFeedbackDao(new SimpleDeleteBehavior<FeedbackEntity>());
  }
  return feedbackDao;
}
Program: 98552
Project: 98552
Buggy source:
@Override public BinaryRatingDao<SubjectRatingEntity> getSubjectRatingDao(){
  if (subjectRatingDao == null) {
    subjectRatingDao=new SQLSubjectRatingDao();
  }
  return subjectRatingDao;
}

Fixed version (ground truth):
@Override public BinaryRatingDao<SubjectRatingEntity> getSubjectRatingDao(){
  if (subjectRatingDao == null) {
    subjectRatingDao=new SqlSubjectRatingDao();
  }
  return subjectRatingDao;
}
Program: 98553
Project: 98553
Buggy source:
@Override public PeriodDao getPeriodDao(){
  if (periodDao == null) {
    periodDao=new SQLPeriodDao(new PeriodRemoveBehavior(this,new SimpleRemoveBehavior<PeriodEntity>()));
  }
  return periodDao;
}

Fixed version (ground truth):
@Override public PeriodDao getPeriodDao(){
  if (periodDao == null) {
    periodDao=new SqlPeriodDao(new PeriodDeleteBehavior(this,new SimpleDeleteBehavior<PeriodEntity>()));
  }
  return periodDao;
}
Program: 98554
Project: 98554
Buggy source:
@Override public ProfessorDao getProfessorDao(){
  if (professorDao == null) {
    professorDao=new SQLProfessorDao(new ProfessorsRemoveBehavior(this,new SimpleRemoveBehavior<ProfessorEntity>()));
  }
  return professorDao;
}

Fixed version (ground truth):
@Override public ProfessorDao getProfessorDao(){
  if (professorDao == null) {
    professorDao=new SqlProfessorDao(new ProfessorsDeleteBehavior(this,new SimpleDeleteBehavior<ProfessorEntity>()));
  }
  return professorDao;
}
Program: 98555
Project: 98555
Buggy source:
@Override public CourseDao getCourseDao(){
  if (courseDao == null) {
    courseDao=new SQLCourseDao(new CoursesRemoveBehavior(this,new SimpleRemoveBehavior<CourseEntity>()));
  }
  return courseDao;
}

Fixed version (ground truth):
@Override public CourseDao getCourseDao(){
  if (courseDao == null) {
    courseDao=new SqlCourseDao(new CoursesDeleteBehavior(this,new SimpleDeleteBehavior<CourseEntity>()));
  }
  return courseDao;
}
Program: 98556
Project: 98556
Buggy source:
@Override public ConfirmationKeyDao getConfirmationKeyDao(){
  if (confirmationKeyDao == null) {
    confirmationKeyDao=new SQLConfirmationKeyDao(new SimpleRemoveBehavior<ConfirmationKeyEntity>());
  }
  return confirmationKeyDao;
}

Fixed version (ground truth):
@Override public ConfirmationKeyDao getConfirmationKeyDao(){
  if (confirmationKeyDao == null) {
    confirmationKeyDao=new SqlConfirmationKeyDao(new SimpleDeleteBehavior<ConfirmationKeyEntity>());
  }
  return confirmationKeyDao;
}
Program: 98557
Project: 98557
Buggy source:
@Override public CommentDao getCommentDao(){
  if (commentDao == null) {
    commentDao=new SQLCommentDao(new CommentsRemoveBehavior(this,new SimpleRemoveBehavior<CommentEntity>()));
  }
  return commentDao;
}

Fixed version (ground truth):
@Override public CommentDao getCommentDao(){
  if (commentDao == null) {
    commentDao=new SqlCommentDao(new CommentsDeleteBehavior(this,new SimpleDeleteBehavior<CommentEntity>()));
  }
  return commentDao;
}
Program: 98558
Project: 98558
Buggy source:
@Override public CourseRatingDao getCourseRatingDao(){
  if (courseRatingDao == null) {
    courseRatingDao=new SQLCourseRatingDao(new SimpleRemoveBehavior<CourseRatingEntity>());
  }
  return courseRatingDao;
}

Fixed version (ground truth):
@Override public CourseRatingDao getCourseRatingDao(){
  if (courseRatingDao == null) {
    courseRatingDao=new SqlCourseRatingDao(new SimpleDeleteBehavior<CourseRatingEntity>());
  }
  return courseRatingDao;
}
Program: 98559
Project: 98559
Buggy source:
@Override public SubjectDao getSubjectDao(){
  if (subjectDao == null) {
    subjectDao=new SQLSubjectDao(new SubjectsRemoveBehavior(this,new SimpleRemoveBehavior<SubjectEntity>()));
  }
  return subjectDao;
}

Fixed version (ground truth):
@Override public SubjectDao getSubjectDao(){
  if (subjectDao == null) {
    subjectDao=new SqlSubjectDao(new SubjectsDeleteBehavior(this,new SimpleDeleteBehavior<SubjectEntity>()));
  }
  return subjectDao;
}
Program: 98560
Project: 98560
Buggy source:
@Override public ForgottenPasswordKeyDaoInterface getForgottenPasswordKeyDao(){
  if (forgottenPasswordKeyDao == null) {
    forgottenPasswordKeyDao=new ForgottenPasswordKeyDao(new SimpleRemoveBehavior<ForgottenPasswordKeyEntity>());
  }
  return forgottenPasswordKeyDao;
}

Fixed version (ground truth):
@Override public ForgottenPasswordKeyDao getForgottenPasswordKeyDao(){
  if (forgottenPasswordKeyDao == null) {
    forgottenPasswordKeyDao=new SqlForgottenPasswordKeyDao(new SimpleDeleteBehavior<ForgottenPasswordKeyEntity>());
  }
  return forgottenPasswordKeyDao;
}
Program: 98561
Project: 98561
Buggy source:
@Override public ProgramDao getProgramDao(){
  if (programDao == null) {
    programDao=new SQLProgramDao(new SimpleRemoveBehavior<ProgramEntity>());
  }
  return programDao;
}

Fixed version (ground truth):
@Override public ProgramDao getProgramDao(){
  if (programDao == null) {
    programDao=new SqlProgramDao(new SimpleDeleteBehavior<ProgramEntity>());
  }
  return programDao;
}
Program: 98562
Project: 98562
Buggy source:
@Override public BinaryRatingDao<CommentRatingEntity> getCommentRatingDao(){
  if (commentRatingDao == null) {
    commentRatingDao=new SQLCommentRatingDao();
  }
  return commentRatingDao;
}

Fixed version (ground truth):
@Override public BinaryRatingDao<CommentRatingEntity> getCommentRatingDao(){
  if (commentRatingDao == null) {
    commentRatingDao=new SqlCommentRatingDao();
  }
  return commentRatingDao;
}
Program: 98563
Project: 98563
Buggy source:
@Override public UserDao getUserDao(){
  if (userDao == null) {
    userDao=new SQLUserDao(new UsersRemoveBehavior(this,new SimpleRemoveBehavior<UserEntity>()));
  }
  return userDao;
}

Fixed version (ground truth):
@Override public UserDao getUserDao(){
  if (userDao == null) {
    userDao=new SqlUserDao(new UsersDeleteBehavior(this,new SimpleDeleteBehavior<UserEntity>()));
  }
  return userDao;
}
Program: 98564
Project: 98564
Buggy source:
@Override public BinaryRatingDao<ProfessorRatingEntity> getProfessorRatingDao(){
  if (professorRatingDao == null) {
    professorRatingDao=new SQLProfessorRatingDao();
  }
  return professorRatingDao;
}

Fixed version (ground truth):
@Override public BinaryRatingDao<ProfessorRatingEntity> getProfessorRatingDao(){
  if (professorRatingDao == null) {
    professorRatingDao=new SqlProfessorRatingDao();
  }
  return professorRatingDao;
}
Program: 98565
Project: 98565
Buggy source:
public String signUp() throws IOException {
  FacesContext fc=FacesContext.getCurrentInstance();
  if (authCheck.isLoggedIn()) {
    fc.getExternalContext().responseSendError(401,"String_Node_Str");
  }
  UsersFacade usersFacade=Config.getInstance().getFacadeFactory().getUsersFacade();
  UserVo user=new UserVo();
  user.setUserName(getUserName());
  user.setPassword(getPassword());
  user.setFirstName(getFirstName());
  user.setLastName(getLastName());
  List<Long> programsList=new ArrayList<Long>();
  if (programId != null) {
    programsList.add(programId);
  }
  user.setProgramsId(programsList);
  user.setRole(Role.STUDENT);
  try {
    usersFacade.addUser(user);
    return "String_Node_Str";
  }
 catch (  InvalidVoException ex) {
    fc.addMessage("String_Node_Str",new FacesMessage(ex.getMessage()));
    return "String_Node_Str";
  }
}

Fixed version (ground truth):
public String signUp() throws IOException {
  FacesContext fc=FacesContext.getCurrentInstance();
  if (authCheck.isLoggedIn()) {
    fc.getExternalContext().responseSendError(401,"String_Node_Str");
  }
  UsersFacade usersFacade=Config.getInstance().getFacadeFactory().getUsersFacade();
  UserVo user=new UserVo();
  user.setUserName(getUserName());
  user.setPassword(getPassword());
  user.setFirstName(getFirstName());
  user.setLastName(getLastName());
  List<Long> programsList=new ArrayList<Long>();
  if (programId != null) {
    programsList.add(programId);
  }
  user.setProgramsId(programsList);
  user.setRole(Role.STUDENT);
  try {
    usersFacade.addUser(user);
    return "String_Node_Str";
  }
 catch (  MultipleMessageException ex) {
    fc.addMessage("String_Node_Str",new FacesMessage(ex.getMessage()));
    Config.getInstance().getServiceFactory().createLogService().error(ex.getMessage(),ex);
    return "String_Node_Str";
  }
}
Program: 98566
Project: 98566
Buggy source:
public void preRenderView(){
  try {
    course=Config.getInstance().getFacadeFactory().getCoursesFacade().getCourse(id);
    comments=Config.getInstance().getFacadeFactory().getCommentsFacade().getCommentsByCourseId(id);
  }
 catch (  Exception ex) {
    ex.printStackTrace();
    Config.getInstance().getServiceFactory().createLogService().error(ex);
  }
}

Fixed version (ground truth):
public void preRenderView(){
  try {
    course=Config.getInstance().getFacadeFactory().getCoursesFacade().getCourse(id);
    comments=Config.getInstance().getFacadeFactory().getCommentsFacade().getCommentsByCourseId(id);
    System.out.println("String_Node_Str" + course.getId());
    for (    CommentVoVwFull comment : comments) {
      System.out.println(comment.getContent());
    }
  }
 catch (  Exception ex) {
    Config.getInstance().getServiceFactory().createLogService().error(ex.getMessage(),ex);
  }
}
Program: 98567
Project: 98567
Buggy source:
public UserVo addUser(UserVo vo) throws InvalidVoException {
  EntityManager em=null;
  EntityTransaction tx=null;
  UserVo user=null;
  try {
    em=getEntityManagerFactory().createEntityManager();
    user=getServiceFactory().createUsersService().create(em,user);
  }
 catch (  InvalidVoException ex) {
    throw ex;
  }
catch (  Exception e) {
    if (em != null && tx != null) {
      tx.rollback();
    }
    getServiceFactory().createLogService().error(e.getMessage(),e);
  }
 finally {
    if (em != null) {
      em.clear();
      em.close();
    }
  }
  return user;
}

Fixed version (ground truth):
public UserVo addUser(UserVo vo) throws InvalidVoException {
  EntityManager em=null;
  EntityTransaction tx=null;
  try {
    em=getEntityManagerFactory().createEntityManager();
    vo=getServiceFactory().createUsersService().create(em,vo);
  }
 catch (  InvalidVoException ex) {
    throw ex;
  }
catch (  Exception e) {
    if (em != null && tx != null) {
      tx.rollback();
    }
    getServiceFactory().createLogService().error(e.getMessage(),e);
  }
 finally {
    if (em != null) {
      em.clear();
      em.close();
    }
  }
  return vo;
}
Program: 98568
Project: 98568
Buggy source:
public void validateVo(EntityManager em,UserVo vo) throws InvalidVoException {
  if (vo == null) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getFirstName() == null) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getLastName() == null) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getUserName() == null) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getUserName().length() > MAX_USERNAME_LENGTH || vo.getUserName().length() < MIN_USERNAME_LENGTH) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getPassword() == null) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getPassword().length() > MAX_USER_PASSWORD_LENGTH || vo.getUserName().length() < MIN_USER_PASSWORD_LENGTH) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getProgramsId() == null) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getProgramsId().isEmpty()) {
    throw new InvalidVoException("String_Node_Str");
  }
  for (  Long programId : vo.getProgramsId()) {
    if (programId == null) {
      throw new InvalidVoException("String_Node_Str");
    }
    if (this.getDaoFactory().getProgramDao().getById(em,programId) == null) {
      throw new InvalidVoException("String_Node_Str");
    }
  }
  if (vo.getRol() == null) {
    throw new InvalidVoException("String_Node_Str");
  }
}

Fixed version (ground truth):
public void validateVo(EntityManager em,UserVo vo) throws InvalidVoException {
  if (vo == null) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getFirstName() == null || vo.getFirstName().isEmpty()) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getLastName() == null || vo.getLastName().isEmpty()) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getUserName() == null || vo.getUserName().isEmpty()) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getUserName().length() > MAX_USERNAME_LENGTH || vo.getUserName().length() < MIN_USERNAME_LENGTH) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getPassword() == null || vo.getPassword().isEmpty()) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getPassword().length() > MAX_USER_PASSWORD_LENGTH || vo.getPassword().length() < MIN_USER_PASSWORD_LENGTH) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getProgramsId() == null) {
    throw new InvalidVoException("String_Node_Str");
  }
  if (vo.getProgramsId().isEmpty()) {
    throw new InvalidVoException("String_Node_Str");
  }
  for (  Long programId : vo.getProgramsId()) {
    if (programId == null) {
      throw new InvalidVoException("String_Node_Str");
    }
    if (this.getDaoFactory().getProgramDao().getById(em,programId) == null) {
      throw new InvalidVoException("String_Node_Str");
    }
  }
  if (vo.getRol() == null) {
    throw new InvalidVoException("String_Node_Str");
  }
}
Program: 98569
Project: 98569
Buggy source:
@Test public void testGetSpanishMessage(){
  String message=Config.getInstance().getFacadeFactory().getExceptionsFacade().getMessage("String_Node_Str",Locale.forLanguageTag("String_Node_Str"));
  String expectedMessage="String_Node_Str";
  assertEquals(expectedMessage,message);
}

Fixed version (ground truth):
@Test public void testGetSpanishMessage(){
  String message=Config.getInstance().getFacadeFactory().getExceptionsFacade().getMessage("String_Node_Str",new Locale("String_Node_Str"));
  String expectedMessage="String_Node_Str";
  assertEquals(expectedMessage,message);
}
Program: 98570
Project: 98570
Buggy source:
/** 
 * Returns a feedback type entity which name matches the given name
 * @param em the entity manager
 * @param name the name
 * @return a feedback type entity
 */
public FeedbackTypeEntity getByName(EntityManager em,String name){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return (FeedbackTypeEntity)em.createNamedQuery("String_Node_Str",FeedbackTypeEntity.class).setParameter("String_Node_Str",name).getSingleResult();
  }
 catch (  NoResultException ex) {
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Returns a feedback type entity which name matches the given name
 * @param em the entity manager
 * @param name the name
 * @return a feedback type entity
 */
public FeedbackTypeEntity getByName(EntityManager em,String name){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return em.createNamedQuery("String_Node_Str",FeedbackTypeEntity.class).setParameter("String_Node_Str",name).getSingleResult();
  }
 catch (  NoResultException ex) {
    return null;
  }
}
Program: 98571
Project: 98571
Buggy source:
/** 
 * Returns a period entity which year and semester match the given arguments
 * @param em the entity manager
 * @param year the year
 * @param semester the semester
 * @return the matched period entity or null if there is no such entity
 */
public PeriodEntity getByYearAndSemester(EntityManager em,int year,int semester){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return (PeriodEntity)em.createNamedQuery("String_Node_Str",PeriodEntity.class).setParameter("String_Node_Str",year).setParameter("String_Node_Str",semester).getSingleResult();
  }
 catch (  NoResultException ex) {
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Returns a period entity which year and semester match the given arguments
 * @param em the entity manager
 * @param year the year
 * @param semester the semester
 * @return the matched period entity or null if there is no such entity
 */
public PeriodEntity getByYearAndSemester(EntityManager em,int year,int semester){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return em.createNamedQuery("String_Node_Str",PeriodEntity.class).setParameter("String_Node_Str",year).setParameter("String_Node_Str",semester).getSingleResult();
  }
 catch (  NoResultException ex) {
    return null;
  }
}
Program: 98572
Project: 98572
Buggy source:
/** 
 * Returns a list of period entities which year is equal to the year argument
 * @param em the entity manager
 * @param year the year
 * @return a list of matched period entities
 */
public List<PeriodEntity> getByYear(EntityManager em,int year){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return (List<PeriodEntity>)em.createNamedQuery("String_Node_Str",PeriodEntity.class).setParameter("String_Node_Str",year).getResultList();
}

Fixed version (ground truth):
/** 
 * Returns a list of period entities which year is equal to the year argument
 * @param em the entity manager
 * @param year the year
 * @return a list of matched period entities
 */
public List<PeriodEntity> getByYear(EntityManager em,int year){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return em.createNamedQuery("String_Node_Str",PeriodEntity.class).setParameter("String_Node_Str",year).getResultList();
}
Program: 98573
Project: 98573
Buggy source:
/** 
 * Returns a list of subject entities associated with a specific professor
 * @param em the entity manager
 * @param professorId the professor's id
 * @return a list of matched subject entities
 */
public List<SubjectEntity> getByProfessorId(EntityManager em,long professorId){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return (List<SubjectEntity>)em.createNamedQuery("String_Node_Str",SubjectEntity.class).setParameter("String_Node_Str",professorId).getResultList();
}

Fixed version (ground truth):
/** 
 * Returns a list of subject entities associated with a specific professor
 * @param em the entity manager
 * @param professorId the professor's id
 * @return a list of matched subject entities
 */
public List<SubjectEntity> getByProfessorId(EntityManager em,long professorId){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return em.createNamedQuery("String_Node_Str",SubjectEntity.class).setParameter("String_Node_Str",professorId).getResultList();
}
Program: 98574
Project: 98574
Buggy source:
/** 
 * Returns a list of subject entities which name contains the argument name
 * @param em the entity manager
 * @param name the subject's name
 * @return a list of matched subject entities
 */
public List<SubjectEntity> getByName(EntityManager em,String name){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return (List<SubjectEntity>)em.createNamedQuery("String_Node_Str",SubjectEntity.class).setParameter("String_Node_Str","String_Node_Str" + name + "String_Node_Str").getResultList();
}

Fixed version (ground truth):
/** 
 * Returns a list of subject entities which name contains the argument name
 * @param em the entity manager
 * @param name the subject's name
 * @return a list of matched subject entities
 */
public List<SubjectEntity> getByName(EntityManager em,String name){
  if (em == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return em.createNamedQuery("String_Node_Str",SubjectEntity.class).setParameter("String_Node_Str","String_Node_Str" + name + "String_Node_Str").getResultList();
}
Program: 98575
Project: 98575
Buggy source:
@EventHandler public void onRawMessage(RawMessageEvent event){
  if (event.message.command.equals("String_Node_Str")) {
    event.setHandled();
    String[] sender=event.message.prefix.split("String_Node_Str");
    IRCUser user=event.network.getUser(sender[0]);
    BotAPI.console.sendMessageToConsole("String_Node_Str",user.getUsername(),event.message.params[0]);
    user.setUsername(event.message.params[0]);
    BotAPI.eventBus.postEvent(new UserNicknameChangedEvent(user,sender[0]));
  }
 else   if (event.message.command.equals("String_Node_Str")) {
    event.setHandled();
    String[] sender=event.message.prefix.split("String_Node_Str");
    IRCUser user=event.network.getUser(sender[0]);
    BotAPI.console.sendMessageToConsole("String_Node_Str",event.message.params[0],user.getUsername(),event.message.trailing);
    String prefix=BotAPI.configuration.getCommandPrefix();
    if (event.message.params[0].startsWith(prefix)) {
      UserCommandEvent commandEvent=new UserCommandEvent(user,event.message.params[0],event.message.trailing.substring(prefix.length()));
      if (BotAPI.eventBus.postEvent(commandEvent)) {
        BotAPI.serverConnection.addToSendQueue("String_Node_Str",event.message.params[0],user.getUsername());
      }
    }
 else {
      BotAPI.eventBus.postEvent(new UserMessageEvent(user,event.message.params[0],event.message.trailing));
    }
  }
}

Fixed version (ground truth):
@EventHandler public void onRawMessage(RawMessageEvent event){
  if (event.message.command.equals("String_Node_Str")) {
    event.setHandled();
    String[] sender=event.message.prefix.split("String_Node_Str");
    IRCUser user=event.network.getUser(sender[0]);
    BotAPI.console.sendMessageToConsole("String_Node_Str",user.getUsername(),event.message.trailing);
    user.setUsername(event.message.trailing);
    BotAPI.eventBus.postEvent(new UserNicknameChangedEvent(user,sender[0]));
  }
 else   if (event.message.command.equals("String_Node_Str")) {
    event.setHandled();
    String[] sender=event.message.prefix.split("String_Node_Str");
    IRCUser user=event.network.getUser(sender[0]);
    BotAPI.console.sendMessageToConsole("String_Node_Str",event.message.params[0],user.getUsername(),event.message.trailing);
    String prefix=BotAPI.configuration.getCommandPrefix();
    if (event.message.params[0].startsWith(prefix)) {
      UserCommandEvent commandEvent=new UserCommandEvent(user,event.message.params[0],event.message.trailing.substring(prefix.length()));
      if (BotAPI.eventBus.postEvent(commandEvent)) {
        BotAPI.serverConnection.addToSendQueue("String_Node_Str",event.message.params[0],user.getUsername());
      }
    }
 else {
      BotAPI.eventBus.postEvent(new UserMessageEvent(user,event.message.params[0],event.message.trailing));
    }
  }
}
Program: 98576
Project: 98576
Buggy source:
public PluginInfo getPluginInfo(File file){
  if (file == null || !file.exists() || !file.isFile()) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  JarFile jar=null;
  try {
    jar=new JarFile(file);
    JarEntry info=jar.getJarEntry("String_Node_Str");
    if (info == null) {
      throw null;
    }
    JSONObject object=new JSONObject(jar.getInputStream(info));
    return new PluginInfo(object);
  }
 catch (  IOException e) {
    throw new PluginException(String.format("String_Node_Str",file),e);
  }
 finally {
    if (jar != null) {
      try {
        jar.close();
      }
 catch (      IOException e) {
      }
    }
  }
}

Fixed version (ground truth):
public PluginInfo getPluginInfo(File file){
  if (file == null || !file.exists() || !file.isFile()) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  JarFile jar=null;
  try {
    jar=new JarFile(file);
    JarEntry info=jar.getJarEntry("String_Node_Str");
    if (info == null) {
      return null;
    }
    JSONObject object=new JSONObject(jar.getInputStream(info));
    return new PluginInfo(object);
  }
 catch (  IOException e) {
    throw new PluginException(String.format("String_Node_Str",file),e);
  }
 finally {
    if (jar != null) {
      try {
        jar.close();
      }
 catch (      IOException e) {
      }
    }
  }
}
Program: 98578
Project: 98578
Buggy source:
public void run(){
  if (!launched) {
    launched=true;
    return;
  }
  try {
    while (reciever.isRunning()) {
      pos++;
      if (pos == 60) {
        pos=0;
        try {
          URL changes=new URL("String_Node_Str");
          BufferedReader in=new BufferedReader(new InputStreamReader(changes.openStream()));
          String inputLine;
          while ((inputLine=in.readLine()) != null) {
            if (inputLine.equalsIgnoreCase("String_Node_Str")) {
              break;
            }
            reciever.inputBuffer.put(reciever.index++,"String_Node_Str" + chan + "String_Node_Str"+ inputLine);
          }
          in.close();
        }
 catch (        Exception ex) {
        }
      }
      Thread.sleep(1000L);
    }
  }
 catch (  InterruptedException ex) {
    ex.printStackTrace();
  }
}

Fixed version (ground truth):
public void run(){
  if (!launched) {
    launched=true;
    return;
  }
  try {
    while (reciever.isRunning()) {
      pos++;
      if (pos == 60) {
        pos=0;
        try {
          URL changes=new URL("String_Node_Str");
          BufferedReader in=new BufferedReader(new InputStreamReader(changes.openStream()));
          String inputLine;
          while ((inputLine=in.readLine()) != null) {
            if (inputLine.equalsIgnoreCase("String_Node_Str")) {
              break;
            }
synchronized (reciever.inputBuffer) {
              reciever.inputBuffer.put(reciever.index++,"String_Node_Str" + chan + "String_Node_Str"+ inputLine);
            }
          }
          in.close();
        }
 catch (        Exception ex) {
        }
      }
      Thread.sleep(1000L);
    }
  }
 catch (  InterruptedException ex) {
    ex.printStackTrace();
  }
}
Program: 98579
Project: 98579
Buggy source:
@Override public void run(){
  try {
    Thread.sleep(120000L);
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
    BotAPI.console.shutdown();
    return;
  }
  try {
    this.connection.connect(this.connection.getNickname());
  }
 catch (  Throwable e) {
    e.printStackTrace();
    BotAPI.console.shutdown();
  }
}

Fixed version (ground truth):
@Override public void run(){
  try {
    Thread.sleep(60000L);
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
    BotAPI.console.shutdown();
    return;
  }
  try {
    this.connection.connect(this.connection.getNickname());
  }
 catch (  Throwable e) {
    e.printStackTrace();
    BotAPI.console.shutdown();
  }
}
Program: 98581
Project: 98581
Buggy source:
public boolean datasetsAreEquivalent(){
  if (sourceDataSet == null || targetDataSet == null)   return false;
  Iterator<Node> iterSource=sourceDataSet.listGraphNodes();
  Iterator<Node> iterTarget=targetDataSet.listGraphNodes();
  if (sourceDataSet.isEmpty() != targetDataSet.isEmpty())   return false;
  if (sourceDataSet.isEmpty() && targetDataSet.isEmpty()) {
    sourceModel=loadModel(sourceFileName,sourceModel);
    targetModel=loadModel(targetFileName,targetModel);
    return modelsAreEquivalent();
  }
  for (; iterSource.hasNext(); ) {
    Node node=iterSource.next();
    Graph sourceGraph=sourceDataSet.getGraph(node);
    Graph targetGraph=targetDataSet.getGraph(node);
    if (!sourceGraph.isIsomorphicWith(targetGraph))     return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean datasetsAreEquivalent(){
  if (sourceDataSet == null || targetDataSet == null)   return false;
  Iterator<Node> iterSource=sourceDataSet.listGraphNodes();
  Iterator<Node> iterTarget=targetDataSet.listGraphNodes();
  if (sourceDataSet.isEmpty() != targetDataSet.isEmpty())   return false;
  if (!iterSource.hasNext() && !iterTarget.hasNext()) {
    sourceModel=loadModel(sourceFileName,sourceModel);
    targetModel=loadModel(targetFileName,targetModel);
    return modelsAreEquivalent();
  }
  for (; iterSource.hasNext(); ) {
    Node node=iterSource.next();
    Graph sourceGraph=sourceDataSet.getGraph(node);
    Graph targetGraph=targetDataSet.getGraph(node);
    if (!sourceGraph.isIsomorphicWith(targetGraph))     return false;
  }
  return true;
}