nus-yam/ex-repair huggingface dataset:
Program: 20102
Project: 20102
Buggy source:
@Override public void approve(Projet projet){
}

Fixed version (ground truth):
@Transactional @Override public void approve(Projet projet){
}
Program: 20103
Project: 20103
Buggy source:
@Override public void approve(Tdr tdr){
}

Fixed version (ground truth):
@Transactional @Override public void approve(Tdr tdr){
}
Program: 20104
Project: 20104
Buggy source:
@Override public void computeTdb(Tdr tdr){
  TdrTdb tdrTdb=tdr.getTdrTdb();
  tdrTdb.setMontantDisponible(tdrTdb.getDotationGlobale() - tdrTdb.getSommeUtilisee());
  List<Projet> projets=tdr.getProjets();
  double sommeUtilisee=0;
  int nbBeneficiaires=0;
  int nbAdultesIsoles=0;
  int nbEnfants=0;
  int nbJeunes=0;
  int nbSeniors=0;
  for (  Projet projet : projets) {
    if ("String_Node_Str".equals(projet.getStatus())) {
      sommeUtilisee=sommeUtilisee + projet.getTotalBenefs().getMontantApv();
      nbBeneficiaires=nbBeneficiaires + projet.getTotalBenefs().getNbBeneficiaires();
      nbAdultesIsoles=nbAdultesIsoles + projet.getAdultesIsolesBenefs().getNbBeneficiaires();
      nbEnfants=nbEnfants + projet.getEnfantsBenefs().getNbBeneficiaires();
      nbJeunes=nbJeunes + projet.getJeunesBenefs().getNbBeneficiaires();
      nbSeniors=nbSeniors + projet.getSeniorsBenefs().getNbBeneficiaires();
    }
  }
  tdrTdb.setNbAdultesIsoles(nbAdultesIsoles);
  tdrTdb.setNbEnfants(nbEnfants);
  tdrTdb.setNbJeunes(nbJeunes);
  tdrTdb.setNbSeniors(nbSeniors);
  tdrTdb.setSommeUtilisee(sommeUtilisee);
  tdrTdb.setMontantDisponible(tdrTdb.getDotationGlobale() - tdrTdb.getSommeUtilisee());
  tdrTdb.setNbBeneficiairesApv(nbBeneficiaires);
  this.update(tdr);
  this.publish(tdr);
}

Fixed version (ground truth):
@Transactional @Override public void computeTdb(Tdr tdr){
  TdrTdb tdrTdb=tdr.getTdrTdb();
  tdrTdb.setMontantDisponible(tdrTdb.getDotationGlobale() - tdrTdb.getSommeUtilisee());
  List<Projet> projets=tdr.getProjets();
  double sommeUtilisee=0;
  int nbBeneficiaires=0;
  int nbAdultesIsoles=0;
  int nbEnfants=0;
  int nbJeunes=0;
  int nbSeniors=0;
  for (  Projet projet : projets) {
    if ("String_Node_Str".equals(projet.getStatus())) {
      sommeUtilisee=sommeUtilisee + projet.getTotalBenefs().getMontantApv();
      nbBeneficiaires=nbBeneficiaires + projet.getTotalBenefs().getNbBeneficiaires();
      nbAdultesIsoles=nbAdultesIsoles + projet.getAdultesIsolesBenefs().getNbBeneficiaires();
      nbEnfants=nbEnfants + projet.getEnfantsBenefs().getNbBeneficiaires();
      nbJeunes=nbJeunes + projet.getJeunesBenefs().getNbBeneficiaires();
      nbSeniors=nbSeniors + projet.getSeniorsBenefs().getNbBeneficiaires();
    }
  }
  tdrTdb.setNbAdultesIsoles(nbAdultesIsoles);
  tdrTdb.setNbEnfants(nbEnfants);
  tdrTdb.setNbJeunes(nbJeunes);
  tdrTdb.setNbSeniors(nbSeniors);
  tdrTdb.setSommeUtilisee(sommeUtilisee);
  tdrTdb.setMontantDisponible(tdrTdb.getDotationGlobale() - tdrTdb.getSommeUtilisee());
  tdrTdb.setNbBeneficiairesApv(nbBeneficiaires);
  this.update(tdr);
  this.publish(tdr);
}
Program: 20105
Project: 20105
Buggy source:
/** 
 * Returns level indicators, in the given period (default : daily) TODO add criteria as required by UI : * endpointId & slaOrOlaName * or wider : at least environment and subprojectId (or only global environment) ; possibly componentId...  OPT paginated navigation
 * @param periodStart : if null day start, if both null returns all in the current day
 * @param periodEnd : if null now, if both null returns all in the current day
 * @param pageSize OPT pagination : number of indicators per page
 * @param pageStart OPT pagination : index of the first indicator to return (starts with 0)
 * @return SlaOrOlaIndicators array of SlaOrOlaIndicator
 * @throws Exception 
 */
@GET @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public SlaOrOlaIndicators getSlaOrOlaIndicators(@QueryParam("String_Node_Str") String endpointId,@QueryParam("String_Node_Str") String slaOrOlaName,@QueryParam("String_Node_Str") String environment,@QueryParam("String_Node_Str") String projectId,@QueryParam("String_Node_Str") Date periodStart,@QueryParam("String_Node_Str") Date periodEnd,@QueryParam("String_Node_Str") int pageSize,@QueryParam("String_Node_Str") int pageStart) throws Exception ;

Fixed version (ground truth):
/** 
 * Returns level indicators, in the given period (default : daily) TODO add criteria as required by UI : * endpointId & slaOrOlaName * or wider : at least environment and subprojectId (or only global environment) ; possibly componentId...  OPT paginated navigation Produces : { "slaOrOlaIndicators":[ { "timestamp":1358093865529, "endpointId":"test", "slaOrOlaName":"testSlaIndicator", "serviceLevelHealth":"gold", "serviceLevelViolation":false } ] }
 * @param periodStart : if null day start, if both null returns all in the current day
 * @param periodEnd : if null now, if both null returns all in the current day
 * @param pageSize OPT pagination : number of indicators per page
 * @param pageStart OPT pagination : index of the first indicator to return (starts with 0)
 * @return SlaOrOlaIndicators array of SlaOrOlaIndicator
 * @throws Exception 
 */
@GET @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public SlaOrOlaIndicators getSlaOrOlaIndicators(@QueryParam("String_Node_Str") String endpointId,@QueryParam("String_Node_Str") String slaOrOlaName,@QueryParam("String_Node_Str") String environment,@QueryParam("String_Node_Str") String projectId,@QueryParam("String_Node_Str") Date periodStart,@QueryParam("String_Node_Str") Date periodEnd,@QueryParam("String_Node_Str") int pageSize,@QueryParam("String_Node_Str") int pageStart) throws Exception ;
Program: 20106
Project: 20106
Buggy source:
/** 
 * Creates (OPT or udpdates) each of the given indicator, for the given endpointId, levelName and timestamp. NB. endpointId et slaOrOlaName sont à récupérer du modèle EasySOA des Specifications et mettre dans la configuration de la plateforme de monitoring (d'abord manuellement puis récupérés automatiquement au démarrage étant donné l'id du sous-projet de déploiement versionné) 
 * @param SlaOrOlaIndicators : array of SlaOrOlaIndicator{endpointId, slaOrOlaName, timestamp, serviceLevelHealth=gold/silver/bronze, serviceLevelViolation=true/false}) where endpointId is the nuxeo id of the endpoint
 * @throws Exception
 */
@POST @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public void updateSlaOlaIndicators(@FormParam("String_Node_Str") SlaOrOlaIndicators SlaOrOlaIndicators) throws Exception ;

Fixed version (ground truth):
/** 
 * Creates (OPT or udpdates) each of the given indicator, for the given endpointId, levelName and timestamp. NB. endpointId et slaOrOlaName sont à récupérer du modèle EasySOA des Specifications et mettre dans la configuration de la plateforme de monitoring (d'abord manuellement puis récupérés automatiquement au démarrage étant donné l'id du sous-projet de déploiement versionné) 
 * @param SlaOrOlaIndicators : array of SlaOrOlaIndicatorConsumes : { "slaOrOlaIndicators":[ { "timestamp":1358093865529, "endpointId":"test", "slaOrOlaName":"testSlaIndicator", "serviceLevelHealth":"gold", "serviceLevelViolation":false } ] } where endpointId is the nuxeo id of the endpoint
 * @throws Exception
 */
@POST @Path("String_Node_Str") @Produces(MediaType.APPLICATION_JSON) public void updateSlaOlaIndicators(SlaOrOlaIndicators SlaOrOlaIndicators) throws Exception ;
Program: 20108
Project: 20108
Buggy source:
/** 
 * Init the tests
 * @throws Exception
 */
@Before public void init() throws Exception {
  Session session=directoryService.open("String_Node_Str");
  try {
    Map<String,Object> properties=new HashMap<String,Object>();
    properties.put("String_Node_Str",ENDPOINT_ID);
    properties.put("String_Node_Str",INDICATOR_NAME);
    properties.put("String_Node_Str",SERVICE_LEVEL_HEALTH);
    properties.put("String_Node_Str",false);
    Calendar calendar=new GregorianCalendar();
    calendar.set(2012,12,13,17,17,45);
    properties.put("String_Node_Str",calendar);
    session.createEntry(properties);
    session.commit();
    session.close();
  }
 catch (  Exception ex) {
    session.rollback();
    session.close();
    ex.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * Init the tests
 * @throws Exception
 */
@Before public void init() throws Exception {
  if (!initDone) {
    Session session=directoryService.open("String_Node_Str");
    try {
      Map<String,Object> properties=new HashMap<String,Object>();
      properties.put("String_Node_Str",ENDPOINT_ID);
      properties.put("String_Node_Str",INDICATOR_NAME);
      properties.put("String_Node_Str",SERVICE_LEVEL_HEALTH);
      properties.put("String_Node_Str",false);
      Calendar calendar=new GregorianCalendar();
      calendar.set(2012,12,13,17,17,45);
      properties.put("String_Node_Str",calendar);
      session.createEntry(properties);
      session.commit();
      session.close();
    }
 catch (    Exception ex) {
      session.rollback();
      session.close();
      ex.printStackTrace();
    }
    initDone=true;
  }
}
Program: 20111
Project: 20111
Buggy source:
@Override public ArrayOfString contactClient(String identifiantClient,String nomContact,String prenomContact,String fonctionContact,String telephone,String email,String numEtVoie,String codePostal,String ville,String pays){
  ArrayOfString arrayOfString=new ArrayOfString();
  ContactClient contactClient=clientService.createContactClient(identifiantClient,nomContact,prenomContact,fonctionContact,telephone,email,numEtVoie,codePostal,ville,pays);
  arrayOfString.string.add(contactClient.getIdentifiantClient());
  return arrayOfString;
}

Fixed version (ground truth):
@Override public ArrayOfString contactClient(String identifiantClient,String nomContact,String prenomContact,String fonctionContact,String telephone,String email,String numEtVoie,String codePostal,String ville,String pays){
  ArrayOfString arrayOfString=new ArrayOfString();
  ContactClient contactClient=clientService.createContactClient(identifiantClient,nomContact,prenomContact,fonctionContact,telephone,email,numEtVoie,codePostal,ville,pays);
  arrayOfString.getString().add(contactClient.getIdentifiantClient());
  return arrayOfString;
}
Program: 20112
Project: 20112
Buggy source:
@Override public ArrayOfString informationAPV(String identifiantClient,String bilanLibelle,Integer nombre,Integer bilanAnnee){
  ArrayOfString arrayOfString=new ArrayOfString();
  InformationAPV informationApv=clientService.createInformationApv(identifiantClient,bilanLibelle,nombre,bilanAnnee);
  arrayOfString.string.add(informationApv.getIdentifiantClient());
  return arrayOfString;
}

Fixed version (ground truth):
@Override public ArrayOfString informationAPV(String identifiantClient,String bilanLibelle,Integer nombre,Integer bilanAnnee){
  ArrayOfString arrayOfString=new ArrayOfString();
  InformationAPV informationApv=clientService.createInformationApv(identifiantClient,bilanLibelle,nombre,bilanAnnee);
  arrayOfString.getString().add(informationApv.getIdentifiantClient());
  return arrayOfString;
}
Program: 20113
Project: 20113
Buggy source:
@Override public ArrayOfString client(String identifiantClient,String raisonSociale,Integer anciennete,String typeStructure,String numEtVoie,String email,String codePostal,String ville,String pays,String tel,String rib,String formeJuridique,String siren,BigDecimal dotGlobAPVN,BigDecimal dontReliquatN1,BigDecimal dontDotN,BigDecimal nbBenefPrevN,BigDecimal montantUtiliseN,BigDecimal nbBenefN){
  ArrayOfString arrayOfString=new ArrayOfString();
  Client client=clientService.createClient(identifiantClient,raisonSociale,siren,email);
  arrayOfString.string.add(client.getIdentifiantClient());
  return arrayOfString;
}

Fixed version (ground truth):
@Override public ArrayOfString client(String identifiantClient,String raisonSociale,Integer anciennete,String typeStructure,String numEtVoie,String email,String codePostal,String ville,String pays,String tel,String rib,String formeJuridique,String siren,BigDecimal dotGlobAPVN,BigDecimal dontReliquatN1,BigDecimal dontDotN,BigDecimal nbBenefPrevN,BigDecimal montantUtiliseN,BigDecimal nbBenefN){
  ArrayOfString arrayOfString=new ArrayOfString();
  Client client=clientService.createClient(identifiantClient,raisonSociale,siren,email);
  arrayOfString.getString().add(client.getIdentifiantClient());
  return arrayOfString;
}
Program: 20114
Project: 20114
Buggy source:
@Override public String classify(CoreSession documentManager,DocumentModel model) throws Exception {
  if (!Deliverable.DOCTYPE.equals(model.getType())) {
    return null;
  }
  Deliverable deliverable=model.getAdapter(Deliverable.class);
  if (!MavenDeliverable.NATURE.equals(deliverable.getNature())) {
    return null;
  }
  try {
    MavenDeliverable mavenDeliverable=model.getAdapter(MavenDeliverable.class);
    String groupId=mavenDeliverable.getGroupId();
    String classification="String_Node_Str", groupPrefix="String_Node_Str";
    String[] groups=groupId.split("String_Node_Str");
    for (    String group : groups) {
      classification+=groupPrefix + group + "String_Node_Str";
      groupPrefix+=group + "String_Node_Str";
    }
    if (groups.length > 1) {
      classification=classification.replaceFirst("String_Node_Str","String_Node_Str");
    }
    return classification;
  }
 catch (  Exception e) {
    logger.warn("String_Node_Str" + e.getMessage());
    return null;
  }
}

Fixed version (ground truth):
@Override public String classify(CoreSession documentManager,DocumentModel model) throws Exception {
  if (!Deliverable.DOCTYPE.equals(model.getType())) {
    return null;
  }
  Deliverable deliverable=model.getAdapter(Deliverable.class);
  if (!MavenDeliverable.NATURE.equals(deliverable.getNature())) {
    return null;
  }
  try {
    MavenDeliverable mavenDeliverable=model.getAdapter(MavenDeliverable.class);
    if (mavenDeliverable == null) {
      throw new NullPointerException("String_Node_Str");
    }
    String groupId=mavenDeliverable.getGroupId();
    String classification="String_Node_Str", groupPrefix="String_Node_Str";
    String[] groups=groupId.split("String_Node_Str");
    for (    String group : groups) {
      classification+=groupPrefix + group + "String_Node_Str";
      groupPrefix+=group + "String_Node_Str";
    }
    if (groups.length > 1) {
      classification=classification.replaceFirst("String_Node_Str","String_Node_Str");
    }
    return classification;
  }
 catch (  Exception e) {
    logger.warn("String_Node_Str" + e.getMessage());
    return null;
  }
}
Program: 20115
Project: 20115
Buggy source:
public void resetInheritedFacets(DocumentModel model) throws Exception {
  SchemaManager schemaManager=Framework.getService(SchemaManager.class);
  for (  String inheritedFacet : getInheritedFacets(model.getFacets())) {
    CompositeType facetToReset=schemaManager.getFacet(inheritedFacet);
    for (    Schema schemaToReset : facetToReset.getSchemas()) {
      for (      Field fieldToReset : schemaToReset.getFields()) {
        model.setPropertyValue(fieldToReset.getName().toString(),null);
      }
    }
  }
}

Fixed version (ground truth):
public void resetInheritedFacets(DocumentModel model) throws Exception {
  SchemaManager schemaManager=Framework.getService(SchemaManager.class);
  for (  String inheritedFacet : getInheritedFacets(model.getFacets())) {
    CompositeType facetToReset=schemaManager.getFacet(inheritedFacet);
    InheritedFacetDescriptor inheritedFacetDesc=inheritedFacets.get(inheritedFacet);
    boolean isFacetInherited=false;
    for (    TransferLogic transferLogic : inheritedFacetDesc.transferLogicList) {
      if (model.getType().equals(transferLogic.to)) {
        isFacetInherited=true;
        break;
      }
    }
    if (isFacetInherited) {
      for (      Schema schemaToReset : facetToReset.getSchemas()) {
        for (        Field fieldToReset : schemaToReset.getFields()) {
          model.setPropertyValue(fieldToReset.getName().toString(),null);
        }
      }
    }
  }
}
Program: 20116
Project: 20116
Buggy source:
/** 
 * Transform a SoaNodeInformation object to a WSDLInformation object
 * @param nodeInformation
 * @return
 */
public static WSDLInformation mapToWSDLInformation(DocumentModel nodeModel,String nuxeoBaseUrl) throws Exception {
  WSDLInformation wsdlInformation=new WSDLInformation();
  wsdlInformation.setSoaName((String)nodeModel.getPropertyValue("String_Node_Str"));
  wsdlInformation.setProjectID("String_Node_Str");
  wsdlInformation.setName((String)nodeModel.getPropertyValue("String_Node_Str"));
  wsdlInformation.setDescription((String)nodeModel.getPropertyValue("String_Node_Str"));
  wsdlInformation.setNuxeoID(nodeModel.getId());
  wsdlInformation.setObjectType(nodeModel.getType());
  wsdlInformation.setEndpoint("String_Node_Str");
  Blob blob=(Blob)nodeModel.getPropertyValue("String_Node_Str");
  if (blob != null) {
    wsdlInformation.setWsdlDownloadUrl(buildWsdlDownloadUrl(nuxeoBaseUrl,nodeModel.getId(),blob.getFilename()));
  }
 else {
    wsdlInformation.setWsdlDownloadUrl("String_Node_Str");
  }
  return wsdlInformation;
}

Fixed version (ground truth):
/** 
 * Transform a SoaNodeInformation object to a WSDLInformation object
 * @param nodeInformation
 * @return
 */
public static WSDLInformation mapToWSDLInformation(DocumentModel nodeModel,String nuxeoBaseUrl) throws Exception {
  WSDLInformation wsdlInformation=new WSDLInformation();
  wsdlInformation.setSoaName((String)nodeModel.getPropertyValue("String_Node_Str"));
  wsdlInformation.setProjectID("String_Node_Str");
  wsdlInformation.setName((String)nodeModel.getPropertyValue("String_Node_Str"));
  wsdlInformation.setDescription((String)nodeModel.getPropertyValue("String_Node_Str"));
  wsdlInformation.setNuxeoID(nodeModel.getId());
  wsdlInformation.setObjectType(nodeModel.getType());
  wsdlInformation.setEndpoint("String_Node_Str");
  try {
    Blob blob=(Blob)nodeModel.getPropertyValue("String_Node_Str");
    if (blob != null) {
      wsdlInformation.setWsdlDownloadUrl(buildWsdlDownloadUrl(nuxeoBaseUrl,nodeModel.getId(),blob.getFilename()));
    }
 else {
      wsdlInformation.setWsdlDownloadUrl("String_Node_Str");
    }
  }
 catch (  Exception ex) {
    wsdlInformation.setWsdlDownloadUrl("String_Node_Str");
  }
  return wsdlInformation;
}
Program: 20117
Project: 20117
Buggy source:
/** 
 * Init the tests
 * @throws Exception
 */
@Before public void init() throws Exception {
  if (!initDone) {
    HashMap<String,Object> isProperties=new HashMap<String,Object>();
    discoveryService.runDiscovery(documentManager,INFORMATIONSERVICE_TEST_WITHOUT_POPRTTYPE_ID,isProperties,null);
    isProperties.put(WsdlInfo.XPATH_WSDL_PORTTYPE_NAME,"String_Node_Str");
    discoveryService.runDiscovery(documentManager,INFORMATIONSERVICE_TEST_ID,isProperties,null);
    isProperties.put("String_Node_Str","String_Node_Str");
    isProperties.put("String_Node_Str","String_Node_Str");
    isProperties.put("String_Node_Str","String_Node_Str");
    isProperties.put("String_Node_Str","String_Node_Str");
    isProperties.put("String_Node_Str","String_Node_Str");
    DocumentModel infoService=discoveryService.runDiscovery(documentManager,INFORMATIONSERVICE_TEST_WITH_PLATFORM_METAS_ID,isProperties,null);
    infoService.setPropertyValue(SoaNode.XPATH_SOANAME,anotherName);
    infoService.setPropertyValue("String_Node_Str",anotherTitle);
    infoService.setPropertyValue("String_Node_Str",anotherDescription);
    StringBlob blob=new StringBlob("String_Node_Str");
    blob.setFilename("String_Node_Str");
    infoService.setPropertyValue("String_Node_Str",blob);
    documentManager.saveDocument(infoService);
    isProperties=new HashMap<String,Object>();
    discoveryService.runDiscovery(documentManager,ENDPOINT_TEST,isProperties,null);
    documentManager.save();
    initDone=true;
  }
}

Fixed version (ground truth):
/** 
 * Init the tests
 * @throws Exception
 */
@Before public void init() throws Exception {
  if (!initDone) {
    HashMap<String,Object> isProperties=new HashMap<String,Object>();
    discoveryService.runDiscovery(documentManager,INFORMATIONSERVICE_TEST_WITHOUT_POPRTTYPE_ID,isProperties,null);
    isProperties.put(WsdlInfo.XPATH_WSDL_PORTTYPE_NAME,"String_Node_Str");
    discoveryService.runDiscovery(documentManager,INFORMATIONSERVICE_TEST_ID,isProperties,null);
    isProperties.put("String_Node_Str","String_Node_Str");
    isProperties.put("String_Node_Str","String_Node_Str");
    isProperties.put("String_Node_Str","String_Node_Str");
    isProperties.put("String_Node_Str","String_Node_Str");
    isProperties.put("String_Node_Str","String_Node_Str");
    DocumentModel infoService=discoveryService.runDiscovery(documentManager,INFORMATIONSERVICE_TEST_WITH_PLATFORM_METAS_ID,isProperties,null);
    infoService.setPropertyValue(SoaNode.XPATH_SOANAME,anotherName);
    infoService.setPropertyValue("String_Node_Str",anotherTitle);
    infoService.setPropertyValue("String_Node_Str",anotherDescription);
    documentManager.saveDocument(infoService);
    isProperties=new HashMap<String,Object>();
    discoveryService.runDiscovery(documentManager,ENDPOINT_TEST,isProperties,null);
    documentManager.save();
    initDone=true;
  }
}
Program: 20118
Project: 20118
Buggy source:
/** 
 * Test the queryWSDLInterfaces REST operation
 */
@Test public void queryWSDLInterfacesTest(){
  logTestName(logger);
  Client client=createAuthenticatedHTTPClient();
  WebResource discoveryRequest=client.resource(simpleRegistryService.getRootURL()).path("String_Node_Str").queryParam("String_Node_Str","String_Node_Str").queryParam("String_Node_Str","String_Node_Str");
  WSDLInformation[] wsdlInformations=discoveryRequest.get(WSDLInformation[].class);
  Assert.assertNotNull(wsdlInformations);
  WSDLInformation firstWSDLInformation=wsdlInformations[0];
  Assert.assertEquals("String_Node_Str",firstWSDLInformation.getSoaName());
  WSDLInformation secondWSDLInformation=wsdlInformations[1];
  Assert.assertEquals("String_Node_Str",secondWSDLInformation.getSoaName());
  discoveryRequest=client.resource(simpleRegistryService.getRootURL()).path("String_Node_Str").queryParam("String_Node_Str","String_Node_Str");
  wsdlInformations=discoveryRequest.get(WSDLInformation[].class);
  Assert.assertNotNull(wsdlInformations);
  firstWSDLInformation=wsdlInformations[0];
  Assert.assertEquals("String_Node_Str",firstWSDLInformation.getSoaName());
  Assert.assertEquals("String_Node_Str",firstWSDLInformation.getDescription());
}

Fixed version (ground truth):
/** 
 * Test the queryWSDLInterfaces REST operation
 */
@Test public void queryWSDLInterfacesTest(){
  logTestName(logger);
  Client client=createAuthenticatedHTTPClient();
  WebResource discoveryRequest=client.resource(simpleRegistryService.getRootURL()).path("String_Node_Str").queryParam("String_Node_Str","String_Node_Str").queryParam("String_Node_Str","String_Node_Str");
  WSDLInformation[] wsdlInformations=discoveryRequest.get(WSDLInformation[].class);
  Assert.assertNotNull(wsdlInformations);
  WSDLInformation firstWSDLInformation=wsdlInformations[0];
  Assert.assertEquals("String_Node_Str",firstWSDLInformation.getSoaName());
  WSDLInformation secondWSDLInformation=wsdlInformations[1];
  Assert.assertEquals("String_Node_Str",secondWSDLInformation.getSoaName());
  discoveryRequest=client.resource(simpleRegistryService.getRootURL()).path("String_Node_Str").queryParam("String_Node_Str","String_Node_Str");
  wsdlInformations=discoveryRequest.get(WSDLInformation[].class);
  Assert.assertNotNull(wsdlInformations);
  firstWSDLInformation=wsdlInformations[0];
  Assert.assertEquals("String_Node_Str",firstWSDLInformation.getSoaName());
  Assert.assertEquals("String_Node_Str",firstWSDLInformation.getDescription());
  discoveryRequest=client.resource(simpleRegistryService.getRootURL()).path("String_Node_Str");
  wsdlInformations=discoveryRequest.get(WSDLInformation[].class);
  Assert.assertNotNull(wsdlInformations);
  Assert.assertEquals(3,wsdlInformations.length);
}
Program: 20119
Project: 20119
Buggy source:
@Test public void testSourceHandlers() throws Exception {
  ClientBuilder clientBuilder=new ClientBuilder();
  clientBuilder.setNuxeoSitesUrl(NUXEO_URL);
  RegistryApi registryApi=clientBuilder.constructRegistryApi();
  JavaDocBuilder builder=new JavaDocBuilder();
  builder.addSourceTree(new File("String_Node_Str"));
  JavaSource[] sources=builder.getSources();
  MavenDeliverableInformation mavenDeliverable=new MavenDeliverableInformation("String_Node_Str");
  List<SoaNodeInformation> soaNodeResults=runHandlers(sources,mavenDeliverable,new CodeDiscoveryRegistryClient(registryApi),new SystemStreamLog());
  Assert.assertTrue("String_Node_Str",soaNodeResults.size() > 0);
  logger.info("String_Node_Str");
  logger.info("String_Node_Str");
  for (  SoaNodeInformation soaNode : soaNodeResults) {
    logger.info("String_Node_Str" + soaNode.getSoaNodeId());
    logger.info("String_Node_Str" + soaNode.getProperties());
    logger.info("String_Node_Str" + soaNode.getParentDocuments());
  }
}

Fixed version (ground truth):
@Test public void testSourceHandlers() throws Exception {
  ClientBuilder clientBuilder=new ClientBuilder();
  clientBuilder.setNuxeoSitesUrl(EasySOAWebEngineFeature.NUXEO_URL);
  RegistryApi registryApi=clientBuilder.constructRegistryApi();
  JavaDocBuilder builder=new JavaDocBuilder();
  builder.addSourceTree(new File("String_Node_Str"));
  JavaSource[] sources=builder.getSources();
  MavenDeliverableInformation mavenDeliverable=new MavenDeliverableInformation("String_Node_Str");
  List<SoaNodeInformation> soaNodeResults=runHandlers(sources,mavenDeliverable,new CodeDiscoveryRegistryClient(registryApi),new SystemStreamLog());
  Assert.assertTrue("String_Node_Str",soaNodeResults.size() > 0);
  logger.info("String_Node_Str");
  logger.info("String_Node_Str");
  for (  SoaNodeInformation soaNode : soaNodeResults) {
    logger.info("String_Node_Str" + soaNode.getSoaNodeId());
    logger.info("String_Node_Str" + soaNode.getProperties());
    logger.info("String_Node_Str" + soaNode.getParentDocuments());
  }
}
Program: 20121
Project: 20121
Buggy source:
@Override public Map<String,JavaServiceInterfaceInformation> findWSInterfaces(CodeDiscoveryMojo codeDiscovery,JavaSource[] sources,MavenDeliverableInformation mavenDeliverable,CodeDiscoveryRegistryClient registryClient,Log log) throws Exception {
  Map<String,JavaServiceInterfaceInformation> wsInjectableTypeSet=new HashMap<String,JavaServiceInterfaceInformation>();
  for (  JavaSource source : sources) {
    JavaClass[] classes=source.getClasses();
    for (    JavaClass c : classes) {
      boolean isWs=ParsingUtils.hasAnnotation(c,ANN_WS);
      boolean isInterface=c.isInterface();
      if (isWs && isInterface || ParsingUtils.hasAnnotation(c,ANN_XML_WSCLIENT) || ParsingUtils.hasAnnotation(c,ANN_WSPROVIDER) || ParsingUtils.hasAnnotation(c,ANN_XML_WSPROVIDER)) {
        wsInjectableTypeSet.put(c.getFullyQualifiedName(),new JavaServiceInterfaceInformation(mavenDeliverable.getGroupId(),mavenDeliverable.getArtifactId(),c.getFullyQualifiedName()));
      }
    }
  }
  Map<Type,MavenDeliverableInformation> mavenInfos=new HashMap<Type,MavenDeliverableInformation>();
  MavenProject mavenProject=codeDiscovery.getMavenProject();
  if (mavenProject != null) {
    for (    Object dependencyObject : mavenProject.getDependencyArtifacts()) {
      Artifact dependency=(Artifact)dependencyObject;
      URLClassLoader jarClassloader=new URLClassLoader(new URL[]{dependency.getFile().toURI().toURL()});
      Enumeration<URL> resources=jarClassloader.getResources("String_Node_Str");
      wsInjectableTypeSet.putAll(exploreResourcesForInterfaces(jarClassloader,resources));
    }
  }
  return wsInjectableTypeSet;
}

Fixed version (ground truth):
@Override public Map<String,JavaServiceInterfaceInformation> findWSInterfaces(CodeDiscoveryMojo codeDiscovery,JavaSource[] sources,MavenDeliverableInformation mavenDeliverable,CodeDiscoveryRegistryClient registryClient,Log log) throws Exception {
  Map<String,JavaServiceInterfaceInformation> wsInjectableTypeSet=new HashMap<String,JavaServiceInterfaceInformation>();
  for (  JavaSource source : sources) {
    JavaClass[] classes=source.getClasses();
    for (    JavaClass c : classes) {
      boolean isWs=ParsingUtils.hasAnnotation(c,ANN_WS);
      boolean isInterface=c.isInterface();
      if (isWs && isInterface || ParsingUtils.hasAnnotation(c,ANN_XML_WSCLIENT) || ParsingUtils.hasAnnotation(c,ANN_WSPROVIDER) || ParsingUtils.hasAnnotation(c,ANN_XML_WSPROVIDER)) {
        wsInjectableTypeSet.put(c.getFullyQualifiedName(),new JavaServiceInterfaceInformation(mavenDeliverable.getGroupId(),mavenDeliverable.getArtifactId(),c.getFullyQualifiedName()));
      }
    }
  }
  return wsInjectableTypeSet;
}
Program: 20122
Project: 20122
Buggy source:
private void addConsumerFoundInInjectedMember(List<JavaServiceConsumptionInformation> discoveredConsumptions,AbstractJavaEntity injectedMember,Type injectedType,String beanPropertyName,HashSet<String> injectedBeanProperties,Map<String,JavaServiceInterfaceInformation> serviceInterfaces,MavenDeliverable mavenDeliverable) throws Exception {
  if (injectedBeanProperties.contains(beanPropertyName)) {
    return;
  }
  String injectionAnnotation=getInjectionAnnotation(injectedMember);
  if (allInjected || injectionAnnotation != null) {
    if (serviceInterfaces.containsKey(injectedType)) {
      discoveredConsumptions.add(new JavaServiceConsumptionInformation(mavenDeliverable.getSoaNodeId(),null,injectedType.toGenericString(),injectedType.getJavaClass().getSource().getURL().toString()));
      injectedBeanProperties.add(beanPropertyName);
    }
  }
}

Fixed version (ground truth):
private void addConsumerFoundInInjectedMember(List<JavaServiceConsumptionInformation> discoveredConsumptions,AbstractJavaEntity injectedMember,Type injectedType,String beanPropertyName,HashSet<String> injectedBeanProperties,Map<String,JavaServiceInterfaceInformation> serviceInterfaces,MavenDeliverable mavenDeliverable) throws Exception {
  if (injectedBeanProperties.contains(beanPropertyName)) {
    return;
  }
  String injectionAnnotation=getInjectionAnnotation(injectedMember);
  if (allInjected || injectionAnnotation != null) {
    if (serviceInterfaces.containsKey(injectedType.getFullyQualifiedName())) {
      discoveredConsumptions.add(new JavaServiceConsumptionInformation(mavenDeliverable.getSoaNodeId(),null,injectedType.toGenericString(),injectedType.getJavaClass().getSource().getURL().toString()));
      injectedBeanProperties.add(beanPropertyName);
    }
  }
}
Program: 20123
Project: 20123
Buggy source:
public List<JavaServiceConsumptionInformation> find(JavaClass c,MavenDeliverable mavenDeliverable,Map<String,JavaServiceInterfaceInformation> serviceInterfaces) throws Exception {
  List<JavaServiceConsumptionInformation> foundConsumptions=new ArrayList<JavaServiceConsumptionInformation>();
  for (  String importedClassName : c.getSource().getImports()) {
    Type importedClassType=new Type(importedClassName);
    for (    String serviceInterface : serviceInterfaces.keySet()) {
      if (importedClassType.equals(serviceInterface)) {
        foundConsumptions.add(new JavaServiceConsumptionInformation(mavenDeliverable.getSoaNodeId(),c.getFullyQualifiedName(),importedClassName,serviceInterface));
      }
    }
  }
  return foundConsumptions;
}

Fixed version (ground truth):
public List<JavaServiceConsumptionInformation> find(JavaClass c,MavenDeliverable mavenDeliverable,Map<String,JavaServiceInterfaceInformation> serviceInterfaces) throws Exception {
  List<JavaServiceConsumptionInformation> foundConsumptions=new ArrayList<JavaServiceConsumptionInformation>();
  for (  String importedClassName : c.getSource().getImports()) {
    Type importedClassType=new Type(importedClassName);
    for (    String serviceInterface : serviceInterfaces.keySet()) {
      if (importedClassType.getFullyQualifiedName().equals(serviceInterface)) {
        foundConsumptions.add(new JavaServiceConsumptionInformation(mavenDeliverable.getSoaNodeId(),c.getFullyQualifiedName(),importedClassName,serviceInterface));
      }
    }
  }
  return foundConsumptions;
}
Program: 20129
Project: 20129
Buggy source:
public void createNewLocalizationObject(){
  this.l10n=new Localization(getCurrentLanguage());
  setCurrentLanguage(l10n.getCurrentLanguage());
}

Fixed version (ground truth):
public void createNewLocalizationObject(){
  this.l10n=new Localization(getCurrentLanguage());
  this.l10n.setRegexEngine(new RegexSearchReplace());
}
Program: 20130
Project: 20130
Buggy source:
public Localization(String initialLanguage){
  if (initialLanguage == null || initialLanguage.equals("String_Node_Str")) {
    String currentUserLang=System.getProperty("String_Node_Str").toLowerCase();
    if (currentUserLang.equals("String_Node_Str")) {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
 else     if (currentUserLang.equals("String_Node_Str")) {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
 else     if (currentUserLang.equals("String_Node_Str")) {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
 else     if (currentUserLang.equals("String_Node_Str")) {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
 else {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
  }
 else {
    currentLanguage=initialLanguage;
    currentLanguageJSON=loadLanguageFile(initialLanguage);
  }
  regexEngine=new RegexSearchReplace();
}

Fixed version (ground truth):
public Localization(String initialLanguage){
  if (initialLanguage == null || initialLanguage.equals("String_Node_Str")) {
    String currentUserLang=System.getProperty("String_Node_Str").toLowerCase();
    if (currentUserLang.equals("String_Node_Str")) {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
 else     if (currentUserLang.equals("String_Node_Str")) {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
 else     if (currentUserLang.equals("String_Node_Str")) {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
 else     if (currentUserLang.equals("String_Node_Str")) {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
 else {
      currentLanguage="String_Node_Str";
      currentLanguageJSON=loadLanguageFile("String_Node_Str");
    }
  }
 else {
    currentLanguage=initialLanguage;
    currentLanguageJSON=loadLanguageFile(initialLanguage);
  }
  GuiManager.getInstance().setCurrentLanguage(currentLanguage);
  GuiManager.getInstance().setCurrentLanguageJSONObject(currentLanguageJSON);
}
Program: 20131
Project: 20131
Buggy source:
/** 
 * Returns the component used for drawing the cell.  This method is used to configure the renderer appropriately before drawing.
 * @param table      - JTable object
 * @param value      - the value of the cell to be rendered.
 * @param isSelected - isSelected   true if the cell is to be rendered with the selection highlighted;otherwise false.
 * @param hasFocus   - if true, render cell appropriately.
 * @param row        - The row index of the cell being drawn.
 * @param column     - The column index of the cell being drawn.
 * @return - Returns the component used for drawing the cell.
 */
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column){
  renderer.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
  setForeground(renderer.getForeground());
  setBackground(renderer.getBackground());
  setBorder(new CompoundBorder(new MatteBorder(0,0,1,1,Color.WHITE),new EmptyBorder(new Insets(5,5,5,5))));
  setFont(renderer.getFont());
  setText(renderer.getText());
  TableColumnModel columnModel=table.getColumnModel();
  setSize(columnModel.getColumn(column).getWidth(),0);
  int height_wanted=(int)getPreferredSize().getHeight();
  addSize(table,row,column,height_wanted);
  height_wanted=findTotalMaximumRowSize(table,row);
  if (height_wanted != table.getRowHeight(row)) {
    table.setRowHeight(row,height_wanted);
  }
  return this;
}

Fixed version (ground truth):
/** 
 * Returns the component used for drawing the cell.  This method is used to configure the renderer appropriately before drawing.
 * @param table      - JTable object
 * @param value      - the value of the cell to be rendered.
 * @param isSelected - isSelected   true if the cell is to be rendered with the selection highlighted;otherwise false.
 * @param hasFocus   - if true, render cell appropriately.
 * @param row        - The row index of the cell being drawn.
 * @param column     - The column index of the cell being drawn.
 * @return - Returns the component used for drawing the cell.
 */
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column){
  renderer.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
  setForeground(renderer.getForeground());
  setBackground(renderer.getBackground());
  setBorder(new CompoundBorder(new MatteBorder(0,0,1,1,Color.WHITE),new EmptyBorder(new Insets(5,5,5,5))));
  setFont(renderer.getFont());
  setText(renderer.getText());
  TableColumnModel columnModel=table.getColumnModel();
  setSize(columnModel.getColumn(column).getWidth(),26);
  int height_wanted=(int)getPreferredSize().getHeight();
  addSize(table,row,column,height_wanted);
  height_wanted=findTotalMaximumRowSize(table,row);
  if (height_wanted != table.getRowHeight(row)) {
    table.setRowHeight(row,height_wanted);
  }
  return this;
}
Program: 20133
Project: 20133
Buggy source:
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int col){
  renderer.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,col);
  setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
  setVerticalAlignment(NORTH);
  setForeground(renderer.getForeground());
  setBackground(renderer.getBackground());
  setFont(renderer.getFont());
  setText(value.toString());
  return this;
}

Fixed version (ground truth):
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int col){
  renderer.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,col);
  setBorder(new CompoundBorder(new MatteBorder(0,0,1,1,Color.WHITE),new EmptyBorder(new Insets(5,5,5,5))));
  setVerticalAlignment(NORTH);
  setForeground(renderer.getForeground());
  setBackground(renderer.getBackground());
  setFont(renderer.getFont());
  setText(value.toString());
  return this;
}
Program: 20134
Project: 20134
Buggy source:
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column){
  renderer.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
  setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
  setVerticalAlignment(NORTH);
  setForeground(renderer.getForeground());
  setBackground(renderer.getBackground());
  setFont(renderer.getFont());
  if (value instanceof Severity) {
    setText(paginaEPUBChecker.l10n.getString(((Severity)value).toString()));
    setIcon(iconForLogLevel((Severity)value));
  }
  return this;
}

Fixed version (ground truth):
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column){
  renderer.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
  setBorder(new CompoundBorder(new MatteBorder(0,1,1,1,Color.WHITE),new EmptyBorder(new Insets(5,5,5,5))));
  setVerticalAlignment(NORTH);
  setForeground(renderer.getForeground());
  setBackground(renderer.getBackground());
  setFont(renderer.getFont());
  if (value instanceof Severity) {
    setText(paginaEPUBChecker.l10n.getString(((Severity)value).toString()));
    setIcon(iconForLogLevel((Severity)value));
  }
  return this;
}
Program: 20135
Project: 20135
Buggy source:
/** 
 * Returns the component used for drawing the cell.  This method is used to configure the renderer appropriately before drawing.
 * @param table      - JTable object
 * @param value      - the value of the cell to be rendered.
 * @param isSelected - isSelected   true if the cell is to be rendered with the selection highlighted;otherwise false.
 * @param hasFocus   - if true, render cell appropriately.
 * @param row        - The row index of the cell being drawn.
 * @param column     - The column index of the cell being drawn.
 * @return - Returns the component used for drawing the cell.
 */
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column){
  renderer.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
  setForeground(renderer.getForeground());
  setBackground(renderer.getBackground());
  setBorder(new EmptyBorder(5,5,5,5));
  setFont(renderer.getFont());
  setText(renderer.getText());
  TableColumnModel columnModel=table.getColumnModel();
  setSize(columnModel.getColumn(column).getWidth(),0);
  int height_wanted=(int)getPreferredSize().getHeight();
  addSize(table,row,column,height_wanted);
  height_wanted=findTotalMaximumRowSize(table,row);
  if (height_wanted != table.getRowHeight(row)) {
    table.setRowHeight(row,height_wanted);
  }
  return this;
}

Fixed version (ground truth):
/** 
 * Returns the component used for drawing the cell.  This method is used to configure the renderer appropriately before drawing.
 * @param table      - JTable object
 * @param value      - the value of the cell to be rendered.
 * @param isSelected - isSelected   true if the cell is to be rendered with the selection highlighted;otherwise false.
 * @param hasFocus   - if true, render cell appropriately.
 * @param row        - The row index of the cell being drawn.
 * @param column     - The column index of the cell being drawn.
 * @return - Returns the component used for drawing the cell.
 */
public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected,boolean hasFocus,int row,int column){
  renderer.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
  setForeground(renderer.getForeground());
  setBackground(renderer.getBackground());
  setBorder(new CompoundBorder(new MatteBorder(0,0,1,1,Color.WHITE),new EmptyBorder(new Insets(5,5,5,5))));
  setFont(renderer.getFont());
  setText(renderer.getText());
  TableColumnModel columnModel=table.getColumnModel();
  setSize(columnModel.getColumn(column).getWidth(),0);
  int height_wanted=(int)getPreferredSize().getHeight();
  addSize(table,row,column,height_wanted);
  height_wanted=findTotalMaximumRowSize(table,row);
  if (height_wanted != table.getRowHeight(row)) {
    table.setRowHeight(row,height_wanted);
  }
  return this;
}
Program: 20138
Project: 20138
Buggy source:
private static JSONObject loadLanguageFile(String language) throws IOException {
  return JSON.parseString(JSON.readResourceAsString(Localization.class,"String_Node_Str" + language + "String_Node_Str"));
}

Fixed version (ground truth):
private static JSONObject loadLanguageFile(String language){
  try {
    return JSON.parseString(JSON.readResourceAsString(Localization.class,"String_Node_Str" + language + "String_Node_Str"));
  }
 catch (  IOException e) {
    paginaEPUBChecker.programLanguage="String_Node_Str";
    return loadLanguageFile("String_Node_Str");
  }
}
Program: 20139
Project: 20139
Buggy source:
public Localization(){
  lang=null;
  try {
    if (paginaEPUBChecker.programLanguage.equals("String_Node_Str")) {
      String locale=System.getProperty("String_Node_Str");
      if (locale.equals("String_Node_Str")) {
        paginaEPUBChecker.programLanguage="String_Node_Str";
        lang=loadLanguageFile("String_Node_Str");
      }
 else       if (locale.equals("String_Node_Str")) {
        paginaEPUBChecker.programLanguage="String_Node_Str";
        lang=loadLanguageFile("String_Node_Str");
      }
 else {
        paginaEPUBChecker.programLanguage="String_Node_Str";
        lang=loadLanguageFile("String_Node_Str");
      }
    }
 else {
      lang=loadLanguageFile(paginaEPUBChecker.programLanguage);
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
    System.exit(1);
  }
}

Fixed version (ground truth):
public Localization(){
  lang=null;
  if (paginaEPUBChecker.programLanguage.equals("String_Node_Str")) {
    String locale=System.getProperty("String_Node_Str");
    if (locale.equals("String_Node_Str")) {
      paginaEPUBChecker.programLanguage="String_Node_Str";
      lang=loadLanguageFile("String_Node_Str");
    }
 else     if (locale.equals("String_Node_Str")) {
      paginaEPUBChecker.programLanguage="String_Node_Str";
      lang=loadLanguageFile("String_Node_Str");
    }
 else     if (locale.equals("String_Node_Str")) {
      paginaEPUBChecker.programLanguage="String_Node_Str";
      lang=loadLanguageFile("String_Node_Str");
    }
 else {
      paginaEPUBChecker.programLanguage="String_Node_Str";
      lang=loadLanguageFile("String_Node_Str");
    }
  }
 else {
    lang=loadLanguageFile(paginaEPUBChecker.programLanguage);
  }
}
Program: 20141
Project: 20141
Buggy source:
/** 
 * Creates a new   {@link ComplianceMatcher} against the provided {@link RuleSet}.
 * @param ruleSet
 */
public ComplianceMatcher(RuleSet ruleSet){
  this.ruleSet=ruleSet;
}

Fixed version (ground truth):
/** 
 * Creates a new   {@link ComplianceMatcher} against the provided {@link RuleSet}.
 * @param ruleSet the {@link RuleSet} to be used
 */
public ComplianceMatcher(RuleSet ruleSet){
  this.ruleSet=ruleSet;
}
Program: 20142
Project: 20142
Buggy source:
/** 
 * Delete a message that does not exist.
 */
public void testDeleteAMessageThatDoesNotExist() throws BurrowException {
  String id="String_Node_Str";
  try {
    backend.execute(queue.deleteMessage(id));
    fail("String_Node_Str");
  }
 catch (  CommandException e) {
  }
}

Fixed version (ground truth):
/** 
 * Delete a message that does not exist.
 */
public void testDeleteAMessageThatDoesNotExist() throws BurrowException {
  String id="String_Node_Str";
  try {
    backend.execute(queue.deleteMessage(id));
    fail("String_Node_Str");
  }
 catch (  MessageNotFoundException e) {
  }
}