nus-yam/ex-repair huggingface dataset:
Program: 160659
Project: 160659
Buggy source:
@Override public void run(){
  running=true;
  ReflectiveRpcChannel reflectiveRpcChannel=new ReflectiveRpcChannel(serviceFactory.newService(AccessMethod.PROTOCOL_BUFFERS,socket.getRemoteSocketAddress().toString()),protocolBuffersMetaData,sService);
  try {
    while (running) {
      DataInputStream dis=new DataInputStream(socket.getInputStream());
      String serviceName=dis.readUTF();
      String methodName=dis.readUTF();
      MethodDescriptorContainer methodDescriptorContainer=protocolBuffersMetaData.getMethod(serviceName,methodName);
      Builder newBuilder=DynamicMessage.newBuilder(methodDescriptorContainer.getInputDescriptor());
      newBuilder.mergeDelimitedFrom(dis);
      DynamicMessage request=newBuilder.build();
      try {
        Message response=reflectiveRpcChannel.callBlockingMethod(methodDescriptorContainer,request);
        response.writeDelimitedTo(socket.getOutputStream());
      }
 catch (      ServiceException e) {
        e.printStackTrace();
      }
    }
  }
 catch (  IOException e1) {
    e1.printStackTrace();
  }
  socketNotificationsClient.notifyDisconnect();
}

Fixed version (ground truth):
@Override public void run(){
  running=true;
  ReflectiveRpcChannel reflectiveRpcChannel=new ReflectiveRpcChannel(serviceFactory.newService(AccessMethod.PROTOCOL_BUFFERS,socket.getRemoteSocketAddress().toString()),protocolBuffersMetaData,sService);
  try {
    while (running) {
      DataInputStream dis=new DataInputStream(socket.getInputStream());
      String serviceName=dis.readUTF();
      String methodName=dis.readUTF();
      MethodDescriptorContainer methodDescriptorContainer=protocolBuffersMetaData.getMethod(serviceName,methodName);
      Builder newBuilder=DynamicMessage.newBuilder(methodDescriptorContainer.getInputDescriptor());
      newBuilder.mergeDelimitedFrom(dis);
      DynamicMessage request=newBuilder.build();
      Message response=reflectiveRpcChannel.callBlockingMethod(methodDescriptorContainer,request);
      response.writeDelimitedTo(socket.getOutputStream());
    }
  }
 catch (  IOException e) {
    LOGGER.error("String_Node_Str",e);
  }
  socketNotificationsClient.notifyDisconnect();
}
Program: 160660
Project: 160660
Buggy source:
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) @Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),oid,false,null);
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ pid);
  }
  EAttribute eAttribute=bimDatabaseSession.getMetaDataManager().getEAttribute(className,attributeName);
  if (eAttribute == null) {
    throw new UserException("String_Node_Str" + attributeName + "String_Node_Str"+ className);
  }
  if (!eAttribute.isMany()) {
    throw new UserException("String_Node_Str");
  }
  List list=(List)idEObject.eGet(eAttribute);
  list.add(value);
  bimDatabaseSession.store(idEObject);
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) @Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession,Map<Long,IdEObject> created) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),pid,rid,oid,false,null);
  if (idEObject == null) {
    idEObject=created.get(oid);
  }
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ oid+ "String_Node_Str"+ pid);
  }
  EAttribute eAttribute=bimDatabaseSession.getMetaDataManager().getEAttribute(className,attributeName);
  if (eAttribute == null) {
    throw new UserException("String_Node_Str" + attributeName + "String_Node_Str"+ className);
  }
  if (!eAttribute.isMany()) {
    throw new UserException("String_Node_Str");
  }
  List list=(List)idEObject.eGet(eAttribute);
  list.add(value);
  bimDatabaseSession.store(idEObject);
}
Program: 160661
Project: 160661
Buggy source:
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) @Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),oid,false,null);
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ pid);
  }
  EReference eReference=bimDatabaseSession.getMetaDataManager().getEReference(className,referenceName);
  if (eReference == null) {
    throw new UserException("String_Node_Str" + referenceName + "String_Node_Str"+ className);
  }
  if (!eReference.isMany()) {
    throw new UserException("String_Node_Str");
  }
  IdEObject referencedObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(referenceClassName),referenceOid,false,null);
  if (referencedObject == null) {
    throw new UserException("String_Node_Str" + referenceClassName + "String_Node_Str"+ referenceOid+ "String_Node_Str");
  }
  List list=(List)idEObject.eGet(eReference);
  list.add(referencedObject);
  bimDatabaseSession.store(idEObject);
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) @Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession,Map<Long,IdEObject> created) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),pid,rid,oid,false,null);
  if (idEObject == null) {
    idEObject=created.get(oid);
  }
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ oid+ "String_Node_Str"+ pid);
  }
  EReference eReference=bimDatabaseSession.getMetaDataManager().getEReference(className,referenceName);
  if (eReference == null) {
    throw new UserException("String_Node_Str" + referenceName + "String_Node_Str"+ className);
  }
  if (!eReference.isMany()) {
    throw new UserException("String_Node_Str");
  }
  IdEObject referencedObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(referenceClassName),pid,rid,referenceOid,false,null);
  if (referencedObject == null) {
    throw new UserException("String_Node_Str" + referenceClassName + "String_Node_Str"+ referenceOid+ "String_Node_Str");
  }
  List list=(List)idEObject.eGet(eReference);
  list.add(referencedObject);
  bimDatabaseSession.store(idEObject);
}
Program: 160662
Project: 160662
Buggy source:
void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException ;

Fixed version (ground truth):
void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession,Map<Long,IdEObject> created) throws UserException, BimDeadlockException, BimDatabaseException ;
Program: 160663
Project: 160663
Buggy source:
@Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {
  EClass eClass=bimDatabaseSession.getEClassForName(type);
  if (eClass == null) {
    throw new UserException("String_Node_Str" + type + "String_Node_Str");
  }
  IdEObject eObject=(IdEObject)eClass.getEPackage().getEFactoryInstance().create(eClass);
  eObject.setOid(oid);
  eObject.setPid(pid);
  eObject.setRid(rid);
  bimDatabaseSession.store(eObject,pid,rid);
}

Fixed version (ground truth):
@Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession,Map<Long,IdEObject> created) throws UserException, BimDeadlockException, BimDatabaseException {
  EClass eClass=bimDatabaseSession.getEClassForName(type);
  if (eClass == null) {
    throw new UserException("String_Node_Str" + type + "String_Node_Str");
  }
  eObject=(IdEObject)eClass.getEPackage().getEFactoryInstance().create(eClass);
  eObject.setOid(oid);
  eObject.setPid(pid);
  eObject.setRid(rid);
  bimDatabaseSession.store(eObject,pid,rid);
  created.put(oid,eObject);
}
Program: 160664
Project: 160664
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),oid,false,null);
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ pid);
  }
  EAttribute eAttribute=bimDatabaseSession.getMetaDataManager().getEAttribute(className,attributeName);
  if (eAttribute == null) {
    throw new UserException("String_Node_Str" + attributeName + "String_Node_Str"+ className);
  }
  if (!eAttribute.isMany()) {
    throw new UserException("String_Node_Str");
  }
  List list=(List)idEObject.eGet(eAttribute);
  list.remove(index);
  bimDatabaseSession.store(idEObject);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession,Map<Long,IdEObject> created) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),pid,rid,oid,false,null);
  if (idEObject == null) {
    idEObject=created.get(oid);
  }
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ oid+ "String_Node_Str"+ pid);
  }
  EAttribute eAttribute=bimDatabaseSession.getMetaDataManager().getEAttribute(className,attributeName);
  if (eAttribute == null) {
    throw new UserException("String_Node_Str" + attributeName + "String_Node_Str"+ className);
  }
  if (!eAttribute.isMany()) {
    throw new UserException("String_Node_Str");
  }
  List list=(List)idEObject.eGet(eAttribute);
  list.remove(index);
  bimDatabaseSession.store(idEObject);
}
Program: 160665
Project: 160665
Buggy source:
@Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {
  EClass eClass=bimDatabaseSession.getEClassForName(className);
  if (eClass == null) {
    throw new UserException("String_Node_Str" + className);
  }
  IdEObject idEObject=bimDatabaseSession.get(eClass,pid,rid - 1,oid,false,null);
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + oid + "String_Node_Str");
  }
  bimDatabaseSession.delete(idEObject);
}

Fixed version (ground truth):
@Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession,Map<Long,IdEObject> created) throws UserException, BimDeadlockException, BimDatabaseException {
  EClass eClass=bimDatabaseSession.getEClassForName(className);
  if (eClass == null) {
    throw new UserException("String_Node_Str" + className);
  }
  IdEObject idEObject=bimDatabaseSession.get(eClass,pid,rid - 1,oid,false,null);
  if (idEObject == null) {
    idEObject=created.get(oid);
  }
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + oid + "String_Node_Str");
  }
  bimDatabaseSession.delete(idEObject);
}
Program: 160666
Project: 160666
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),oid,false,null);
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ pid);
  }
  EReference eReference=bimDatabaseSession.getMetaDataManager().getEReference(className,referenceName);
  if (eReference == null) {
    throw new UserException("String_Node_Str" + referenceName + "String_Node_Str"+ className);
  }
  if (!eReference.isMany()) {
    throw new UserException("String_Node_Str");
  }
  List list=(List)idEObject.eGet(eReference);
  list.remove(index);
  bimDatabaseSession.store(idEObject);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession,Map<Long,IdEObject> created) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),pid,rid,oid,false,null);
  if (idEObject == null) {
    idEObject=created.get(oid);
  }
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ oid+ "String_Node_Str"+ pid);
  }
  EReference eReference=bimDatabaseSession.getMetaDataManager().getEReference(className,referenceName);
  if (eReference == null) {
    throw new UserException("String_Node_Str" + referenceName + "String_Node_Str"+ className);
  }
  if (!eReference.isMany()) {
    throw new UserException("String_Node_Str");
  }
  List list=(List)idEObject.eGet(eReference);
  list.remove(index);
  bimDatabaseSession.store(idEObject);
}
Program: 160667
Project: 160667
Buggy source:
@Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),oid,false,null);
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ pid);
  }
  EAttribute eAttribute=bimDatabaseSession.getMetaDataManager().getEAttribute(className,attributeName);
  if (eAttribute == null) {
    throw new UserException("String_Node_Str" + attributeName + "String_Node_Str"+ className);
  }
  if (eAttribute.isMany()) {
    throw new UserException("String_Node_Str");
  }
  if (eAttribute.getEType() instanceof EEnum) {
    EEnum eEnum=(EEnum)eAttribute.getEType();
    idEObject.eSet(eAttribute,eEnum.getEEnumLiteral((String)value).getInstance());
  }
 else {
    idEObject.eSet(eAttribute,value);
  }
  if (value instanceof Double) {
    idEObject.eSet(idEObject.eClass().getEStructuralFeature(attributeName + "String_Node_Str"),String.valueOf((Double)value));
  }
  bimDatabaseSession.store(idEObject);
}

Fixed version (ground truth):
@Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession,Map<Long,IdEObject> created) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),pid,rid,oid,false,null);
  if (idEObject == null) {
    idEObject=created.get(oid);
  }
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ oid+ "String_Node_Str"+ pid);
  }
  EAttribute eAttribute=bimDatabaseSession.getMetaDataManager().getEAttribute(className,attributeName);
  if (eAttribute == null) {
    throw new UserException("String_Node_Str" + attributeName + "String_Node_Str"+ className);
  }
  if (eAttribute.isMany()) {
    throw new UserException("String_Node_Str");
  }
  if (eAttribute.getEType() instanceof EEnum) {
    EEnum eEnum=(EEnum)eAttribute.getEType();
    idEObject.eSet(eAttribute,eEnum.getEEnumLiteral((String)value).getInstance());
  }
 else {
    idEObject.eSet(eAttribute,value);
  }
  if (value instanceof Double) {
    idEObject.eSet(idEObject.eClass().getEStructuralFeature(attributeName + "String_Node_Str"),String.valueOf((Double)value));
  }
  bimDatabaseSession.store(idEObject);
}
Program: 160668
Project: 160668
Buggy source:
@Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),oid,false,null);
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ pid);
  }
  EReference eReference=bimDatabaseSession.getMetaDataManager().getEReference(className,referenceName);
  if (eReference == null) {
    throw new UserException("String_Node_Str" + referenceName + "String_Node_Str"+ className);
  }
  if (eReference.isMany()) {
    throw new UserException("String_Node_Str");
  }
  IdEObject referencedObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(referencedClassName),referenceOid,false,null);
  if (referencedObject == null) {
    throw new UserException("String_Node_Str" + referencedClassName + "String_Node_Str"+ referenceOid+ "String_Node_Str");
  }
  idEObject.eSet(eReference,referencedObject);
  bimDatabaseSession.store(idEObject);
}

Fixed version (ground truth):
@Override public void execute(int pid,int rid,BimDatabaseSession bimDatabaseSession,Map<Long,IdEObject> created) throws UserException, BimDeadlockException, BimDatabaseException {
  IdEObject idEObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(className),pid,rid,oid,false,null);
  if (idEObject == null) {
    idEObject=created.get(oid);
  }
  if (idEObject == null) {
    throw new UserException("String_Node_Str" + className + "String_Node_Str"+ oid+ "String_Node_Str"+ pid);
  }
  EReference eReference=bimDatabaseSession.getMetaDataManager().getEReference(className,referenceName);
  if (eReference == null) {
    throw new UserException("String_Node_Str" + referenceName + "String_Node_Str"+ className);
  }
  if (eReference.isMany()) {
    throw new UserException("String_Node_Str");
  }
  IdEObject referencedObject=bimDatabaseSession.get(bimDatabaseSession.getEClassForName(referencedClassName),pid,rid,referenceOid,false,null);
  if (referencedObject == null) {
    throw new UserException("String_Node_Str" + referencedClassName + "String_Node_Str"+ referenceOid+ "String_Node_Str");
  }
  idEObject.eSet(eReference,referencedObject);
  bimDatabaseSession.store(idEObject);
}
Program: 160671
Project: 160671
Buggy source:
public CheckinPart2DatabaseAction(BimServer bimServer,BimDatabaseSession bimDatabaseSession,AccessMethod accessMethod,IfcModelInterface ifcModel,long actingUoid,long croid,boolean merge){
  super(bimDatabaseSession,accessMethod);
  this.bimServer=bimServer;
  this.ifcModel=ifcModel;
  this.actingUoid=actingUoid;
  this.croid=croid;
  this.merge=merge;
}

Fixed version (ground truth):
public CheckinPart2DatabaseAction(BimServer bimServer,BimDatabaseSession bimDatabaseSession,AccessMethod accessMethod,IfcModelInterface ifcModel,long actingUoid,long croid,boolean merge,boolean clean){
  super(bimDatabaseSession,accessMethod);
  this.bimServer=bimServer;
  this.ifcModel=ifcModel;
  this.actingUoid=actingUoid;
  this.croid=croid;
  this.merge=merge;
  this.clean=clean;
}
Program: 160673
Project: 160673
Buggy source:
public ActionState convertFromSObject(SActionState input){
  return ActionState.values()[input.ordinal()];
}

Fixed version (ground truth):
public LongActionState convertFromSObject(SLongActionState input,BimDatabaseSession session){
  if (input == null) {
    return null;
  }
  LongActionState result=StoreFactory.eINSTANCE.createLongActionState();
  result.setOid(input.getOid());
  result.setProgress(input.getProgress());
  result.setState(ActionState.values()[input.getState().ordinal()]);
  return result;
}
Program: 160674
Project: 160674
Buggy source:
public SActionState convertToSObject(ActionState input){
  return SActionState.values()[input.ordinal()];
}

Fixed version (ground truth):
public SLongActionState convertToSObject(LongActionState input){
  if (input == null) {
    return null;
  }
  SLongActionState result=new SLongActionState();
  result.setOid(input.getOid());
  result.setProgress(input.getProgress());
  result.setState(SActionState.values()[input.getState().ordinal()]);
  return result;
}
Program: 160676
Project: 160676
Buggy source:
public void addToObjectsToCommit(IdEObject idEObject) throws BimDatabaseException {
  if (idEObject.getOid() == -1) {
    throw new BimDatabaseException("String_Node_Str");
  }
  objectsToCommit.put(idEObject,idEObject.getOid());
}

Fixed version (ground truth):
public void addToObjectsToCommit(IdEObject idEObject) throws BimDatabaseException {
  if (idEObject.getOid() == -1) {
    throw new BimDatabaseException("String_Node_Str");
  }
  objectsToCommit.forcePut(idEObject,idEObject.getOid());
}
Program: 160681
Project: 160681
Buggy source:
@SuppressWarnings("String_Node_Str") private static void removeReplaceLinks(IfcModel model,IdEObject mainObject,IdEObject objectToRemove){
  if (mainObject.eClass() != objectToRemove.eClass()) {
    throw new RuntimeException("String_Node_Str");
  }
  if (mainObject == objectToRemove) {
    return;
  }
  for (  IdEObject idEObject : model.getValues()) {
    for (    EReference eReference : idEObject.eClass().getEAllReferences()) {
      Object value=idEObject.eGet(eReference);
      if (eReference.isMany()) {
        List<IdEObject> list=(List<IdEObject>)value;
        for (        IdEObject val : list) {
          if (val == objectToRemove) {
            if (!list.contains(mainObject)) {
              list.set(list.indexOf(val),mainObject);
            }
 else {
              System.out.println();
            }
          }
        }
      }
 else {
        if (value == objectToRemove) {
          idEObject.eSet(eReference,mainObject);
        }
      }
    }
  }
  model.remove(objectToRemove);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private static void removeReplaceLinks(IfcModel model,IdEObject mainObject,IdEObject objectToRemove){
  if (mainObject.eClass() != objectToRemove.eClass()) {
    throw new RuntimeException("String_Node_Str");
  }
  for (  IdEObject idEObject : model.getValues()) {
    for (    EReference eReference : idEObject.eClass().getEAllReferences()) {
      Object value=idEObject.eGet(eReference);
      if (eReference.isMany()) {
        List<IdEObject> list=(List<IdEObject>)value;
        for (        IdEObject val : list) {
          if (val == objectToRemove) {
            if (!list.contains(mainObject)) {
              list.set(list.indexOf(val),mainObject);
            }
          }
        }
      }
 else {
        if (value == objectToRemove) {
          idEObject.eSet(eReference,mainObject);
        }
      }
    }
  }
  model.remove(objectToRemove);
}
Program: 160682
Project: 160682
Buggy source:
private void writeEffect(PrintWriter out,String name,float[] colors){
  out.println("String_Node_Str");
  out.println("String_Node_Str" + name + "String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str" + colors[0] + "String_Node_Str"+ colors[1]+ "String_Node_Str"+ colors[2]+ "String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
}

Fixed version (ground truth):
private void writeEffect(PrintWriter out,String name,float[] colors){
  out.println("String_Node_Str" + name + "String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str" + colors[0] + "String_Node_Str"+ colors[1]+ "String_Node_Str"+ colors[2]+ "String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
  out.println("String_Node_Str");
}
Program: 160683
Project: 160683
Buggy source:
private void writeEffects(PrintWriter out){
  writeEffect(out,"String_Node_Str",new float[]{0.137255f,0.403922f,0.870588f});
  writeEffect(out,"String_Node_Str",new float[]{0.837255f,0.203922f,0.270588f});
  writeEffect(out,"String_Node_Str",new float[]{0.637255f,0.603922f,0.670588f});
  writeEffect(out,"String_Node_Str",new float[]{0.537255f,0.337255f,0.237255f});
  writeEffect(out,"String_Node_Str",new float[]{0.637255f,0.603922f,0.670588f});
  writeEffect(out,"String_Node_Str",new float[]{0.2f,0.2f,0.8f});
  writeEffect(out,"String_Node_Str",new float[]{0.137255f,0.203922f,0.270588f});
  writeEffect(out,"String_Node_Str",new float[]{0.437255f,0.603922f,0.370588f});
  writeEffect(out,"String_Node_Str",new float[]{0.437255f,0.603922f,0.370588f});
  out.println("String_Node_Str");
}

Fixed version (ground truth):
private void writeEffects(PrintWriter out){
  out.println("String_Node_Str");
  writeEffect(out,"String_Node_Str",new float[]{0.137255f,0.403922f,0.870588f});
  writeEffect(out,"String_Node_Str",new float[]{0.837255f,0.203922f,0.270588f});
  writeEffect(out,"String_Node_Str",new float[]{0.637255f,0.603922f,0.670588f});
  writeEffect(out,"String_Node_Str",new float[]{0.537255f,0.337255f,0.237255f});
  writeEffect(out,"String_Node_Str",new float[]{0.637255f,0.603922f,0.670588f});
  writeEffect(out,"String_Node_Str",new float[]{0.2f,0.2f,0.8f});
  writeEffect(out,"String_Node_Str",new float[]{0.137255f,0.203922f,0.270588f});
  writeEffect(out,"String_Node_Str",new float[]{0.437255f,0.603922f,0.370588f});
  writeEffect(out,"String_Node_Str",new float[]{0.437255f,0.603922f,0.370588f});
  out.println("String_Node_Str");
}
Program: 160686
Project: 160686
Buggy source:
private void maybeAddSubscriberMethod(PsiMethod element){
  PsiTypeElement methodParameter=OttoLineMarkerProvider.getMethodParameter(element);
  if (methodParameter != null) {
    String canonicalText=methodParameter.getType().getCanonicalText();
    VirtualFile virtualFile=methodParameter.getContainingFile().getVirtualFile();
synchronized (fileToEventClasses) {
      Set<String> eventClasses=getEventClasses(virtualFile);
      eventClasses.add(canonicalText);
    }
  }
}

Fixed version (ground truth):
private void maybeAddSubscriberMethod(PsiMethod element){
  PsiTypeElement methodParameter=OttoLineMarkerProvider.getMethodParameter(element);
  if (methodParameter != null) {
    String canonicalText=methodParameter.getType().getCanonicalText();
    PsiFile containingFile=methodParameter.getContainingFile();
    if (containingFile != null) {
      VirtualFile virtualFile=containingFile.getVirtualFile();
      if (virtualFile != null) {
synchronized (fileToEventClasses) {
          Set<String> eventClasses=getEventClasses(virtualFile);
          eventClasses.add(canonicalText);
        }
      }
    }
  }
}
Program: 160687
Project: 160687
Buggy source:
@Nullable public PsiMethod getBusPostMethod(Project project){
  JavaPsiFacade javaPsiFacade=JavaPsiFacade.getInstance(project);
  GlobalSearchScope globalSearchScope=GlobalSearchScope.allScope(project);
  PsiClass busClass=javaPsiFacade.findClass(getBusClassName(),globalSearchScope);
  if (busClass != null) {
    for (    PsiMethod psiMethod : busClass.getMethods()) {
      if (psiMethod.getName().equals("String_Node_Str"))       return psiMethod;
    }
  }
  return null;
}

Fixed version (ground truth):
@Nullable public PsiMethod getBusPostMethod(Project project){
  JavaPsiFacade javaPsiFacade=JavaPsiFacade.getInstance(project);
  GlobalSearchScope globalSearchScope=GlobalSearchScope.allScope(project);
  PsiClass busClass=javaPsiFacade.findClass(getBusClassName(),globalSearchScope);
  if (busClass != null) {
    for (    PsiMethod psiMethod : busClass.getMethods()) {
      if (psiMethod.getName().equals("String_Node_Str")) {
        return psiMethod;
      }
    }
  }
  return null;
}
Program: 160688
Project: 160688
Buggy source:
public static boolean isAnnotatedWithProducer(PsiMethod method){
  for (  SubscriberMetadata info : subscribers) {
    if (info.getProducerClassName() == null)     continue;
    PsiAnnotation annotation=PsiConsultantImpl.findAnnotationOnMethod(method,info.getProducerClassName());
    if (annotation != null)     return true;
  }
  return false;
}

Fixed version (ground truth):
public static boolean isAnnotatedWithProducer(PsiMethod method){
  for (  SubscriberMetadata info : subscribers) {
    if (info.getProducerClassName() == null) {
      continue;
    }
    PsiAnnotation annotation=PsiConsultantImpl.findAnnotationOnMethod(method,info.getProducerClassName());
    if (annotation != null) {
      return true;
    }
  }
  return false;
}
Program: 160689
Project: 160689
Buggy source:
@Nullable public static SubscriberMetadata getSubscriberMetadata(PsiMethod method){
  for (  SubscriberMetadata info : subscribers) {
    PsiAnnotation annotation=PsiConsultantImpl.findAnnotationOnMethod(method,info.getSubscriberAnnotationClassName());
    if (annotation != null)     return info;
  }
  return null;
}

Fixed version (ground truth):
@Nullable public static SubscriberMetadata getSubscriberMetadata(PsiMethod method){
  for (  SubscriberMetadata info : subscribers) {
    PsiAnnotation annotation=PsiConsultantImpl.findAnnotationOnMethod(method,info.getSubscriberAnnotationClassName());
    if (annotation != null) {
      return info;
    }
  }
  return null;
}
Program: 160690
Project: 160690
Buggy source:
public static boolean isBusPostMethod(PsiMethod candidate,Project project){
  if (!candidate.getName().equals("String_Node_Str"))   return false;
  for (  SubscriberMetadata subscriber : subscribers) {
    PsiMethod busPostMethod=subscriber.getBusPostMethod(project);
    if (candidate.equals(busPostMethod))     return true;
  }
  return false;
}

Fixed version (ground truth):
public static boolean isBusPostMethod(PsiMethod candidate,Project project){
  if (!candidate.getName().equals("String_Node_Str")) {
    return false;
  }
  for (  SubscriberMetadata subscriber : subscribers) {
    PsiMethod busPostMethod=subscriber.getBusPostMethod(project);
    if (candidate.equals(busPostMethod)) {
      return true;
    }
  }
  return false;
}
Program: 160691
Project: 160691
Buggy source:
@Override public void run(){
  if (LOGGER.isDebugEnabled()) {
    LOGGER.debug(String.format("String_Node_Str",searchScope,System.currentTimeMillis() - startTime));
  }
}

Fixed version (ground truth):
@Override public void run(){
  PsiManager manager=PsiManager.getInstance(myProject);
  DaemonCodeAnalyzer codeAnalyzer=DaemonCodeAnalyzer.getInstance(myProject);
synchronized (fileToEventClasses) {
    for (    VirtualFile virtualFile : fileToEventClasses.keySet()) {
      PsiFile psiFile=manager.findFile(virtualFile);
      if (psiFile == null)       continue;
      codeAnalyzer.restart(psiFile);
    }
  }
}
Program: 160692
Project: 160692
Buggy source:
private void findEventsViaMethodsAnnotatedSubscribe(){
  performSearch(ProjectScope.getProjectScope(myProject));
  optimizeEventClassIndex();
}

Fixed version (ground truth):
private void findEventsViaMethodsAnnotatedSubscribe(){
  performSearch(ProjectScope.getProjectScope(myProject));
}
Program: 160694
Project: 160694
Buggy source:
public static AnnotationFieldKind valueOf(ProcessingEnvironment processingEnv,TypeMirror type){
  TypeMirror componentType=componentTypeOf(type);
  if (componentType.getKind().isPrimitive()) {
    return PRIMITIVE;
  }
 else   if (String.class.getCanonicalName().equals(componentType.toString())) {
    return STRING;
  }
 else   if (Class.class.getCanonicalName().equals(componentType.toString())) {
    return CLASS;
  }
 else {
    ImmutableList<String> superTypesClassNames=FluentIterable.from(processingEnv.getTypeUtils().directSupertypes(componentType)).transform(Functions.toStringFunction()).toList();
    if (superTypesClassNames.contains(Annotation.class.getCanonicalName())) {
      return ANNOTATION;
    }
 else {
      return ENUM;
    }
  }
}

Fixed version (ground truth):
public static AnnotationFieldKind valueOf(ProcessingEnvironment processingEnv,TypeMirror type){
  TypeMirror componentType=componentTypeOf(type);
  if (componentType.getKind().isPrimitive()) {
    return PRIMITIVE;
  }
 else   if (String.class.getCanonicalName().equals(componentType.toString())) {
    return STRING;
  }
 else   if (Class.class.getCanonicalName().equals(TypeHelper.rawTypeFrom(componentType.toString()))) {
    return CLASS;
  }
 else {
    ImmutableList<String> superTypesClassNames=FluentIterable.from(processingEnv.getTypeUtils().directSupertypes(componentType)).transform(Functions.toStringFunction()).toList();
    if (superTypesClassNames.contains(Annotation.class.getCanonicalName())) {
      return ANNOTATION;
    }
 else {
      return ENUM;
    }
  }
}
Program: 160695
Project: 160695
Buggy source:
String getValueCodeInstanciation(){
  if (AnnotationFieldKind.ANNOTATION.equals(this.kind)) {
    return "String_Node_Str";
  }
 else   if (isArray) {
    return String.format("String_Node_Str",type,Joiner.on("String_Node_Str").join((List)value));
  }
 else {
    return "String_Node_Str" + kind.transformSingleValueToExpression(value,this);
  }
}

Fixed version (ground truth):
String getValueCodeInstanciation(){
  if (AnnotationFieldKind.ANNOTATION.equals(this.kind)) {
    return "String_Node_Str";
  }
 else   if (isArray) {
    return String.format("String_Node_Str",TypeHelper.rawTypeFrom(type.toString()),Joiner.on("String_Node_Str").join((List)value));
  }
 else {
    return "String_Node_Str" + kind.transformSingleValueToExpression(value,this);
  }
}
Program: 160697
Project: 160697
Buggy source:
private static int compareByPriorityAndName(int p1,Name<?> n1,int p2,Name<?> n2){
  int c=p1 - p2;
  if (c == 0) {
    return n1.asId().compareTo(n2.asId());
  }
 else {
    return c;
  }
}

Fixed version (ground truth):
private static int compareByPriorityAndName(int p1,Name<?> n1,int p2,Name<?> n2){
  int priorityComparison=Integer.compare(p1,p2);
  if (priorityComparison == 0) {
    return n1.asId().compareTo(n2.asId());
  }
 else {
    return priorityComparison;
  }
}
Program: 160698
Project: 160698
Buggy source:
@Override public T readBody(RestxRequest req,RestxContext ctx) throws IOException {
  InputStream contentStream=req.getContentStream();
  if (contentStream.available() == 0) {
    contentStream.close();
    return null;
  }
  return reader.readValue(contentStream);
}

Fixed version (ground truth):
@Override public T readBody(RestxRequest req,RestxContext ctx) throws IOException {
  return readNullableValue(reader,req.getContentStream());
}
Program: 160699
Project: 160699
Buggy source:
public static ParameterExpressionBuilder createFromMapQueryObjectFromRequest(RestxAnnotationProcessor.ResourceMethodParameter parameter,EndpointParameterKind kind){
  return new ParameterExpressionBuilder(String.format("String_Node_Str",parameter.type,parameter.reqParamName,kind.name()),kind.name());
}

Fixed version (ground truth):
public static ParameterExpressionBuilder createFromMapQueryObjectFromRequest(RestxAnnotationProcessor.ResourceMethodParameter parameter,EndpointParameterKind kind){
  return new ParameterExpressionBuilder(String.format("String_Node_Str",TypeHelper.isParameterizedType(parameter.type) ? "String_Node_Str" + parameter.type + "String_Node_Str" : "String_Node_Str",TypeHelper.rawTypeFrom(parameter.type),parameter.reqParamName,kind.name()),kind.name());
}
Program: 160700
Project: 160700
Buggy source:
@Provides public RestxRouteFilter routeFilterExample(){
  return new RestxRouteFilter(){
    @Override public Optional<RestxHandlerMatch> match(    RestxRoute route){
      if (route instanceof ExampleRoute) {
        return Optional.of(new RestxHandlerMatch(new StdRestxRequestMatch("String_Node_Str"),new RestxHandler(){
          @Override public void handle(          RestxRequestMatch match,          RestxRequest req,          RestxResponse resp,          RestxContext ctx) throws IOException {
            resp.getWriter().write("String_Node_Str");
            ctx.nextHandlerMatch().handle(req,resp,ctx);
            resp.getWriter().write("String_Node_Str");
          }
        }
));
      }
 else {
        return Optional.absent();
      }
    }
  }
;
}

Fixed version (ground truth):
@Provides(priority=12000) public RestxRouteFilter routeFilterExample(){
  return new RestxRouteFilter(){
    @Override public Optional<RestxHandlerMatch> match(    RestxRoute route){
      if (route instanceof ExampleRoute) {
        return Optional.of(new RestxHandlerMatch(new StdRestxRequestMatch("String_Node_Str"),new RestxHandler(){
          @Override public void handle(          RestxRequestMatch match,          RestxRequest req,          RestxResponse resp,          RestxContext ctx) throws IOException {
            resp.getWriter().write("String_Node_Str");
            ctx.nextHandlerMatch().handle(req,resp,ctx);
            resp.getWriter().write("String_Node_Str");
          }
        }
));
      }
 else {
        return Optional.absent();
      }
    }
  }
;
}
Program: 160701
Project: 160701
Buggy source:
protected boolean isSimpleCORSRequest(RestxRequest req){
  return SIMPLE_METHODS.contains(req.getHttpMethod());
}

Fixed version (ground truth):
protected boolean isSimpleCORSRequest(RestxRequest req){
  if (!SIMPLE_METHODS.contains(req.getHttpMethod())) {
    return false;
  }
  Optional<String> origin=req.getHeader("String_Node_Str");
  if (!origin.isPresent()) {
    return false;
  }
  Optional<String> host=req.getHeader("String_Node_Str");
  if (!host.isPresent()) {
    return true;
  }
  if (origin.get().endsWith(host.get())) {
    logger.debug("String_Node_Str",req);
    return false;
  }
 else {
    return true;
  }
}
Program: 160702
Project: 160702
Buggy source:
@Override public Optional<RestxHandlerMatch> match(RestxRequest req){
  Optional<String> origin=req.getHeader("String_Node_Str");
  if ("String_Node_Str".equals(req.getHttpMethod()) && origin.isPresent()) {
    CORS cors=CORS.check(authorizers,req,origin.get(),"String_Node_Str",req.getRestxPath());
    if (cors.isAccepted()) {
      return Optional.of(new RestxHandlerMatch(new StdRestxRequestMatch("String_Node_Str",req.getRestxPath(),ImmutableMap.<String,String>of(),ImmutableMap.of("String_Node_Str",cors)),this));
    }
  }
  return Optional.absent();
}

Fixed version (ground truth):
@Override public Optional<RestxHandlerMatch> match(RestxRequest req){
  Optional<String> origin=req.getHeader("String_Node_Str");
  if (origin.isPresent() && isSimpleCORSRequest(req)) {
    CORS cors=CORS.check(authorizers,req,origin.get(),req.getHttpMethod(),req.getRestxPath());
    if (cors.isAccepted()) {
      return Optional.of(new RestxHandlerMatch(new StdRestxRequestMatch("String_Node_Str",req.getRestxPath(),ImmutableMap.<String,String>of(),ImmutableMap.of("String_Node_Str",cors)),this));
    }
 else {
      logger.info("String_Node_Str",origin.get(),req.getHttpMethod());
      return unauthorized(req);
    }
  }
  return Optional.absent();
}
Program: 160703
Project: 160703
Buggy source:
@Override public Optional<RestxHandlerMatch> match(RestxRequest req){
  Optional<String> acrMethod=req.getHeader("String_Node_Str");
  Optional<String> origin=req.getHeader("String_Node_Str");
  if ("String_Node_Str".equals(req.getHttpMethod()) && acrMethod.isPresent()) {
    CORS cors=CORS.check(authorizers,req,origin.get(),acrMethod.get(),req.getRestxPath());
    if (cors.isAccepted()) {
      return Optional.of(new RestxHandlerMatch(new StdRestxRequestMatch("String_Node_Str",req.getRestxPath(),ImmutableMap.<String,String>of(),ImmutableMap.of("String_Node_Str",cors)),this));
    }
  }
  return Optional.absent();
}

Fixed version (ground truth):
@Override public Optional<RestxHandlerMatch> match(RestxRequest req){
  Optional<String> acrMethod=req.getHeader("String_Node_Str");
  if ("String_Node_Str".equals(req.getHttpMethod()) && acrMethod.isPresent()) {
    Optional<String> origin=req.getHeader("String_Node_Str");
    CORS cors=CORS.check(authorizers,req,origin.get(),acrMethod.get(),req.getRestxPath());
    if (cors.isAccepted()) {
      return Optional.of(new RestxHandlerMatch(new StdRestxRequestMatch("String_Node_Str",req.getRestxPath(),ImmutableMap.<String,String>of(),ImmutableMap.of("String_Node_Str",cors)),this));
    }
 else {
      logger.info("String_Node_Str",origin.get(),acrMethod.get());
      return unauthorized(req);
    }
  }
  return Optional.absent();
}
Program: 160704
Project: 160704
Buggy source:
@Test public void should_handle_auto_startable_in_dev_mode() throws Exception {
  Factory.LocalMachines.threadLocal().addMachine(new SingletonFactoryMachine<>(-1000,NamedComponent.of(String.class,"String_Node_Str","String_Node_Str")));
  try {
    SimpleWebServer server=SimpleWebServer.builder().setRouterPath("String_Node_Str").setPort(WebServers.findAvailablePort()).build();
    server.start();
    try {
      HttpRequest httpRequest=HttpRequest.get(server.baseUrl() + "String_Node_Str");
      assertThat(httpRequest.code()).isEqualTo(200);
      assertThat(httpRequest.body().trim()).isEqualTo("String_Node_Str" + "String_Node_Str" + server.getServerId() + "String_Node_Str"+ server.baseUrl()+ "String_Node_Str");
      httpRequest=HttpRequest.get(server.baseUrl() + "String_Node_Str");
      assertThat(httpRequest.code()).isEqualTo(200);
      assertThat(httpRequest.body().trim()).isEqualTo("String_Node_Str" + "String_Node_Str" + server.getServerId() + "String_Node_Str"+ server.baseUrl()+ "String_Node_Str");
    }
  finally {
      server.stop();
    }
  }
  finally {
    Factory.LocalMachines.threadLocal().clear();
  }
}

Fixed version (ground truth):
@Test public void should_handle_auto_startable_in_dev_mode() throws Exception {
  Factory.LocalMachines.threadLocal().addMachine(new SingletonFactoryMachine<>(-1000,NamedComponent.of(String.class,"String_Node_Str","String_Node_Str")));
  try {
    SimpleWebServer server=SimpleWebServer.builder().setRouterPath("String_Node_Str").setPort(WebServers.findAvailablePort()).build();
    server.start();
    try {
      HttpTestClient client=HttpTestClient.withBaseUrl(server.baseUrl());
      HttpRequest httpRequest=client.GET("String_Node_Str");
      assertThat(httpRequest.code()).isEqualTo(200);
      assertThat(httpRequest.body().trim()).isEqualTo("String_Node_Str" + "String_Node_Str" + server.getServerId() + "String_Node_Str"+ server.baseUrl()+ "String_Node_Str");
      httpRequest=client.GET("String_Node_Str");
      assertThat(httpRequest.code()).isEqualTo(200);
      assertThat(httpRequest.body().trim()).isEqualTo("String_Node_Str" + "String_Node_Str" + server.getServerId() + "String_Node_Str"+ server.baseUrl()+ "String_Node_Str");
    }
  finally {
      server.stop();
    }
  }
  finally {
    Factory.LocalMachines.threadLocal().clear();
  }
}
Program: 160705
Project: 160705
Buggy source:
public File getStoreFile(String path){
  String basePath=settings.recorderBasePath();
  return new File(basePath + "String_Node_Str" + path);
}

Fixed version (ground truth):
public File getStoreFile(String path){
  if (path.startsWith("String_Node_Str")) {
    return new File(path);
  }
 else {
    String basePath=settings.recorderBasePath();
    return new File(basePath + "String_Node_Str" + path);
  }
}
Program: 160707
Project: 160707
Buggy source:
@Override public void close() throws Exception {
  System.out.println("String_Node_Str" + baos.size() + "String_Node_Str"+ stopwatch.stop());
  if (realWriter != null) {
    CharStreams.copy(CharStreams.asCharSource(baos.toString(Charsets.UTF_8.name())).openStream(),realWriter);
  }
 else   if (realOS != null) {
    ByteStreams.copy(ByteStreams.asByteSource(baos.toByteArray()).openStream(),realOS);
  }
  super.close();
  RestxSpec restxSpec=new RestxSpec(specPath,title,ImmutableList.copyOf(givens.values()),ImmutableList.<When>of(new WhenHttpRequest(method,path,cookies,new String(requestBody,Charsets.UTF_8),new ThenHttpResponse(status.getCode(),baos.toString(Charsets.UTF_8.name())))));
  System.out.println("String_Node_Str" + restxSpec + "String_Node_Str"+ "String_Node_Str");
  recordedSpec.setId(id).setSpec(restxSpec).setMethod(method).setPath(path).setDuration(new Duration(recordedSpec.getRecordTime(),new DateTime(System.currentTimeMillis()))).setCapturedResponseSize(baos.size());
}

Fixed version (ground truth):
@Override public void close() throws Exception {
  if (writer != null) {
    writer.flush();
  }
  System.out.println("String_Node_Str" + baos.size() + "String_Node_Str"+ stopwatch.stop());
  if (realWriter != null) {
    CharStreams.copy(CharStreams.asCharSource(baos.toString(Charsets.UTF_8.name())).openStream(),realWriter);
  }
 else   if (realOS != null) {
    ByteStreams.copy(ByteStreams.asByteSource(baos.toByteArray()).openStream(),realOS);
  }
  super.close();
  Iterator<AutoCloseable> iterator=givenTapes.iterator();
  while (iterator.hasNext()) {
    AutoCloseable givenTape=iterator.next();
    try {
      givenTape.close();
      iterator.remove();
    }
 catch (    Exception e) {
    }
  }
  DateTimeUtils.setCurrentMillisSystem();
  RestxSpec restxSpec=new RestxSpec(specPath,title,ImmutableList.copyOf(givens.values()),ImmutableList.<When>of(new WhenHttpRequest(method,path,cookies,new String(requestBody,Charsets.UTF_8),new ThenHttpResponse(status.getCode(),baos.toString(Charsets.UTF_8.name())))));
  System.out.println("String_Node_Str" + restxSpec + "String_Node_Str"+ "String_Node_Str");
  recordedSpec.setId(id).setSpec(restxSpec).setMethod(method).setPath(path).setDuration(new Duration(recordedSpec.getRecordTime(),DateTime.now())).setCapturedResponseSize(baos.size());
}
Program: 160708
Project: 160708
Buggy source:
private Class<?> getCTJacksonViewClass(Type valueType,String contentType,Class<?> defaultClazz){
  int parameterIndex=contentType.indexOf(JACKSON_VIEW_PARAMETER);
  if (parameterIndex != -1) {
    String className=contentType.substring(parameterIndex + JACKSON_VIEW_PARAMETER.length());
    try {
      return Class.forName(className);
    }
 catch (    ClassNotFoundException e) {
      logger.error("String_Node_Str" + "String_Node_Str",className,valueType,contentType);
      throw new IllegalStateException(e);
    }
  }
  return defaultClazz;
}

Fixed version (ground truth):
private Class<?> getCTJacksonViewClass(Type valueType,String contentType,Class<?> defaultClazz){
  int parameterIndex=contentType.indexOf(JACKSON_VIEW_PARAMETER);
  if (parameterIndex != -1) {
    String className=contentType.substring(parameterIndex + JACKSON_VIEW_PARAMETER.length());
    try {
      return Class.forName(className,true,Thread.currentThread().getContextClassLoader());
    }
 catch (    ClassNotFoundException e) {
      logger.error("String_Node_Str" + "String_Node_Str",className,valueType,contentType);
      throw new IllegalStateException(e);
    }
  }
  return defaultClazz;
}