nus-yam/ex-repair huggingface dataset:
Program: 60397
Project: 60397
Buggy source:
/** 
 * Deletes any object matching provided key.
 * @param key any object key or name
 * @return Response object featuring the deleted any object enriched with propagation status information- ProvisioningResult as Entity
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Deletes any object matching provided key.
 * @param key any object key or name
 * @return Response object featuring the deleted any object enriched with propagation status information- ProvisioningResult as Entity
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String key);
Program: 60398
Project: 60398
Buggy source:
/** 
 * Creates a new anyTypeClass.
 * @param anyTypeClassTO anyTypeClass to be created
 * @return Response object featuring Location header of created anyTypeClass
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull AnyTypeClassTO anyTypeClassTO);

Fixed version (ground truth):
/** 
 * Creates a new anyTypeClass.
 * @param anyTypeClassTO anyTypeClass to be created
 * @return Response object featuring Location header of created anyTypeClass
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull AnyTypeClassTO anyTypeClassTO);
Program: 60399
Project: 60399
Buggy source:
/** 
 * Updates the anyTypeClass matching the provided key.
 * @param anyTypeClassTO anyTypeClass to be stored
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull AnyTypeClassTO anyTypeClassTO);

Fixed version (ground truth):
/** 
 * Updates the anyTypeClass matching the provided key.
 * @param anyTypeClassTO anyTypeClass to be stored
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull AnyTypeClassTO anyTypeClassTO);
Program: 60400
Project: 60400
Buggy source:
/** 
 * Deletes the anyTypeClass matching the provided key.
 * @param key anyTypeClass key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response delete(@NotNull @PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Deletes the anyTypeClass matching the provided key.
 * @param key anyTypeClass key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String key);
Program: 60401
Project: 60401
Buggy source:
/** 
 * Deletes the anyType matching the provided key.
 * @param key anyType key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response delete(@NotNull @PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Deletes the anyType matching the provided key.
 * @param key anyType key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String key);
Program: 60402
Project: 60402
Buggy source:
/** 
 * Creates / updates the configuration parameter with the given schema.
 * @param value parameter value
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response set(@NotNull AttrTO value);

Fixed version (ground truth):
/** 
 * Creates / updates the configuration parameter with the given schema.
 * @param value parameter value
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response set(@NotNull AttrTO value);
Program: 60403
Project: 60403
Buggy source:
/** 
 * Deletes the configuration parameter with matching schema.
 * @param schema configuration parameter schema
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String schema);

Fixed version (ground truth):
/** 
 * Deletes the configuration parameter with matching schema.
 * @param schema configuration parameter schema
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String schema);
Program: 60404
Project: 60404
Buggy source:
/** 
 * Restores the connector configuration history instance matching the provided key.
 * @param key connector configuration history instance key to be restored
 * @return an empty response if operation was successful
 */
@POST @Path("String_Node_Str") Response restore(@NotNull @PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Restores the connector configuration history instance matching the provided key.
 * @param key connector configuration history instance key to be restored
 * @return an empty response if operation was successful
 */
@POST @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response restore(@NotNull @PathParam("String_Node_Str") String key);
Program: 60405
Project: 60405
Buggy source:
/** 
 * Deletes the connector configuration history instance matching the provided key.
 * @param key connector configuration history instance key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response delete(@NotNull @PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Deletes the connector configuration history instance matching the provided key.
 * @param key connector configuration history instance key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String key);
Program: 60406
Project: 60406
Buggy source:
/** 
 * Reload all connector bundles and instances.
 * @return an empty response if operation was successful
 */
@POST @Path("String_Node_Str") Response reload();

Fixed version (ground truth):
/** 
 * Reload all connector bundles and instances.
 * @return an empty response if operation was successful
 */
@POST @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response reload();
Program: 60407
Project: 60407
Buggy source:
/** 
 * Creates a new connector instance.
 * @param connInstanceTO connector instance to be created
 * @return Response object featuring Location header of created connector instance
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull ConnInstanceTO connInstanceTO);

Fixed version (ground truth):
/** 
 * Creates a new connector instance.
 * @param connInstanceTO connector instance to be created
 * @return Response object featuring Location header of created connector instance
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull ConnInstanceTO connInstanceTO);
Program: 60408
Project: 60408
Buggy source:
/** 
 * Updates the connector instance matching the provided key.
 * @param connInstanceTO connector instance to be stored
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull ConnInstanceTO connInstanceTO);

Fixed version (ground truth):
/** 
 * Updates the connector instance matching the provided key.
 * @param connInstanceTO connector instance to be stored
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull ConnInstanceTO connInstanceTO);
Program: 60409
Project: 60409
Buggy source:
/** 
 * Checks whether the connection to resource could be established.
 * @param connInstanceTO connector instance to be used for connection check
 * @return an empty response if operation was successful
 */
@POST @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response check(@NotNull ConnInstanceTO connInstanceTO);

Fixed version (ground truth):
/** 
 * Checks whether the connection to resource could be established.
 * @param connInstanceTO connector instance to be used for connection check
 * @return an empty response if operation was successful
 */
@POST @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response check(@NotNull ConnInstanceTO connInstanceTO);
Program: 60410
Project: 60410
Buggy source:
/** 
 * Deletes the connector instance matching the provided key.
 * @param key connector instance key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response delete(@NotNull @PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Deletes the connector instance matching the provided key.
 * @param key connector instance key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String key);
Program: 60411
Project: 60411
Buggy source:
/** 
 * Creates a new domain.
 * @param domainTO domain to be created
 * @return Response object featuring Location header of created domain
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull DomainTO domainTO);

Fixed version (ground truth):
/** 
 * Creates a new domain.
 * @param domainTO domain to be created
 * @return Response object featuring Location header of created domain
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull DomainTO domainTO);
Program: 60412
Project: 60412
Buggy source:
/** 
 * Updates the domain matching the provided key.
 * @param domainTO domain to be stored
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull DomainTO domainTO);

Fixed version (ground truth):
/** 
 * Updates the domain matching the provided key.
 * @param domainTO domain to be stored
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull DomainTO domainTO);
Program: 60413
Project: 60413
Buggy source:
/** 
 * Deletes the domain matching the provided key.
 * @param key domain key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response delete(@NotNull @PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Deletes the domain matching the provided key.
 * @param key domain key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String key);
Program: 60414
Project: 60414
Buggy source:
/** 
 * Creates a new dynamic realm.
 * @param dynDynRealmTO dynamic realm to be created
 * @return Response object featuring Location header of created dynamic realm
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull DynRealmTO dynDynRealmTO);

Fixed version (ground truth):
/** 
 * Creates a new dynamic realm.
 * @param dynDynRealmTO dynamic realm to be created
 * @return Response object featuring Location header of created dynamic realm
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull DynRealmTO dynDynRealmTO);
Program: 60415
Project: 60415
Buggy source:
/** 
 * Updates the dynamic realm matching the provided key.
 * @param dynDynRealmTO dynamic realm to be stored
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull DynRealmTO dynDynRealmTO);

Fixed version (ground truth):
/** 
 * Updates the dynamic realm matching the provided key.
 * @param dynDynRealmTO dynamic realm to be stored
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull DynRealmTO dynDynRealmTO);
Program: 60416
Project: 60416
Buggy source:
/** 
 * Deletes the dynamic realm matching the provided key.
 * @param key dynamic realm key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response delete(@NotNull @PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Deletes the dynamic realm matching the provided key.
 * @param key dynamic realm key to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String key);
Program: 60417
Project: 60417
Buggy source:
/** 
 * Deletes the executable execution matching the provided key.
 * @param executionKey key of executable execution to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response deleteExecution(@NotNull @PathParam("String_Node_Str") String executionKey);

Fixed version (ground truth):
/** 
 * Deletes the executable execution matching the provided key.
 * @param executionKey key of executable execution to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response deleteExecution(@NotNull @PathParam("String_Node_Str") String executionKey);
Program: 60418
Project: 60418
Buggy source:
/** 
 * Deletes the executions belonging matching the given query.
 * @param query query conditions
 * @return bulk action result
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) BulkActionResult deleteExecutions(@BeanParam BulkExecDeleteQuery query);

Fixed version (ground truth):
/** 
 * Deletes the executions belonging matching the given query.
 * @param query query conditions
 * @return bulk action result
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) BulkActionResult deleteExecutions(@BeanParam BulkExecDeleteQuery query);
Program: 60419
Project: 60419
Buggy source:
/** 
 * (De)provision all members of the given group from / onto all the resources associated to it.
 * @param key group key
 * @param actionType action type to perform on all group members
 * @return execution report for the task generated on purpose
 */
@POST @Path("String_Node_Str") ExecTO bulkMembersAction(@NotNull @PathParam("String_Node_Str") String key,@NotNull @PathParam("String_Node_Str") BulkMembersActionType actionType);

Fixed version (ground truth):
/** 
 * (De)provision all members of the given group from / onto all the resources associated to it.
 * @param key group key
 * @param actionType action type to perform on all group members
 * @return execution report for the task generated on purpose
 */
@POST @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) ExecTO bulkMembersAction(@NotNull @PathParam("String_Node_Str") String key,@NotNull @PathParam("String_Node_Str") BulkMembersActionType actionType);
Program: 60420
Project: 60420
Buggy source:
/** 
 * Creates or updates (if existing) the logger with matching name.
 * @param type LoggerType to be selected
 * @param logger Logger to be created or updated
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull @PathParam("String_Node_Str") LoggerType type,@NotNull LoggerTO logger);

Fixed version (ground truth):
/** 
 * Creates or updates (if existing) the logger with matching name.
 * @param type LoggerType to be selected
 * @param logger Logger to be created or updated
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response update(@NotNull @PathParam("String_Node_Str") LoggerType type,@NotNull LoggerTO logger);
Program: 60421
Project: 60421
Buggy source:
/** 
 * Deletes the logger with matching name.
 * @param type LoggerType to be selected
 * @param name Logger name to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response delete(@NotNull @PathParam("String_Node_Str") LoggerType type,@NotNull @PathParam("String_Node_Str") String name);

Fixed version (ground truth):
/** 
 * Deletes the logger with matching name.
 * @param type LoggerType to be selected
 * @param name Logger name to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") LoggerType type,@NotNull @PathParam("String_Node_Str") String name);
Program: 60422
Project: 60422
Buggy source:
/** 
 * Sets the template for the given key and format, if available.
 * @param key mail template
 * @param format template format
 * @param templateIn template to be set
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") Response setFormat(@NotNull @PathParam("String_Node_Str") String key,@NotNull @PathParam("String_Node_Str") MailTemplateFormat format,InputStream templateIn);

Fixed version (ground truth):
/** 
 * Sets the template for the given key and format, if available.
 * @param key mail template
 * @param format template format
 * @param templateIn template to be set
 * @return an empty response if operation was successful
 */
@PUT @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response setFormat(@NotNull @PathParam("String_Node_Str") String key,@NotNull @PathParam("String_Node_Str") MailTemplateFormat format,InputStream templateIn);
Program: 60423
Project: 60423
Buggy source:
/** 
 * Removes the template for the given key and format, if available.
 * @param key mail template
 * @param format template format
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response removeFormat(@NotNull @PathParam("String_Node_Str") String key,@NotNull @PathParam("String_Node_Str") MailTemplateFormat format);

Fixed version (ground truth):
/** 
 * Removes the template for the given key and format, if available.
 * @param key mail template
 * @param format template format
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response removeFormat(@NotNull @PathParam("String_Node_Str") String key,@NotNull @PathParam("String_Node_Str") MailTemplateFormat format);
Program: 60424
Project: 60424
Buggy source:
/** 
 * Creates a new mail template.
 * @param mailTemplateTO Creates a new mail template.
 * @return Response object featuring Location header of created mail template
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull MailTemplateTO mailTemplateTO);

Fixed version (ground truth):
/** 
 * Creates a new mail template.
 * @param mailTemplateTO Creates a new mail template.
 * @return Response object featuring Location header of created mail template
 */
@POST @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response create(@NotNull MailTemplateTO mailTemplateTO);
Program: 60425
Project: 60425
Buggy source:
/** 
 * Deletes the mail template matching the given key.
 * @param key key for mail template to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") Response delete(@NotNull @PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Deletes the mail template matching the given key.
 * @param key key for mail template to be deleted
 * @return an empty response if operation was successful
 */
@DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@NotNull @PathParam("String_Node_Str") String key);
Program: 60426
Project: 60426
Buggy source:
@Override public long size(){
  return restClient.count(TaskType.NOTIFICATION);
}

Fixed version (ground truth):
@Override public long size(){
  return restClient.listNotificationTasks(notification,anyTypeKind,entityKey,1,-1,getSort()).size();
}
Program: 60427
Project: 60427
Buggy source:
private void claimForm(final String taskId){
  try {
    restClient.claimForm(taskId);
    SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED));
  }
 catch (  SyncopeClientException scee) {
    SyncopeConsoleSession.get().error(getString(Constants.ERROR) + "String_Node_Str" + scee.getMessage());
  }
}

Fixed version (ground truth):
private void claimForm(final String taskId){
  try {
    restClient.claimForm(taskId);
  }
 catch (  SyncopeClientException scee) {
    SyncopeConsoleSession.get().error(getString(Constants.ERROR) + "String_Node_Str" + scee.getMessage());
  }
}
Program: 60428
Project: 60428
Buggy source:
@Override public void onClick(final AjaxRequestTarget target,final WorkflowFormTO ignore){
  final IModel<WorkflowFormTO> formModel=new CompoundPropertyModel<>(model.getObject());
  modal.setFormModel(formModel);
  final WorkflowFormTO formTO=formModel.getObject();
  final UserTO newUserTO;
  final UserTO previousUserTO;
  if (formTO.getUserPatch() == null) {
    newUserTO=formTO.getUserTO();
    previousUserTO=null;
  }
 else   if (formTO.getUserTO() == null) {
    previousUserTO=new UserTO();
    previousUserTO.setKey(formTO.getUserPatch().getKey());
    newUserTO=AnyOperations.patch(previousUserTO,formTO.getUserPatch());
  }
 else {
    formTO.getUserTO().setKey(formTO.getUserPatch().getKey());
    newUserTO=AnyOperations.patch(formTO.getUserTO(),formTO.getUserPatch());
    previousUserTO=formTO.getUserTO();
  }
  AjaxWizard.EditItemActionEvent<UserTO> editItemActionEvent=new AjaxWizard.EditItemActionEvent<>(newUserTO,target);
  editItemActionEvent.forceModalPanel(new ApprovalUserWizardBuilder(target,formModel.getObject(),previousUserTO,newUserTO,new AnyTypeRestClient().read(AnyTypeKind.USER.name()).getClasses(),FormLayoutInfoUtils.fetch(Collections.singletonList(AnyTypeKind.USER.name())).getLeft(),pageRef).build(BaseModal.CONTENT_ID,AjaxWizard.Mode.EDIT));
  send(ApprovalDirectoryPanel.this,Broadcast.EXACT,editItemActionEvent);
}

Fixed version (ground truth):
@Override public void onClick(final AjaxRequestTarget target,final WorkflowFormTO ignore){
  final IModel<WorkflowFormTO> formModel=new CompoundPropertyModel<>(model.getObject());
  modal.setFormModel(formModel);
  final WorkflowFormTO formTO=formModel.getObject();
  final UserTO newUserTO;
  final UserTO previousUserTO;
  if (formTO.getUserPatch() == null) {
    newUserTO=formTO.getUserTO();
    previousUserTO=null;
  }
 else   if (formTO.getUserTO() == null) {
    previousUserTO=new UserTO();
    previousUserTO.setKey(formTO.getUserPatch().getKey());
    newUserTO=AnyOperations.patch(previousUserTO,formTO.getUserPatch());
  }
 else {
    formTO.getUserTO().setKey(formTO.getUserPatch().getKey());
    newUserTO=AnyOperations.patch(formTO.getUserTO(),formTO.getUserPatch());
    previousUserTO=formTO.getUserTO();
  }
  AjaxWizard.EditItemActionEvent<UserTO> editItemActionEvent=new AjaxWizard.EditItemActionEvent<>(newUserTO,target);
  editItemActionEvent.forceModalPanel(new ApprovalUserWizardBuilder(formModel.getObject(),previousUserTO,newUserTO,new AnyTypeRestClient().read(AnyTypeKind.USER.name()).getClasses(),FormLayoutInfoUtils.fetch(Collections.singletonList(AnyTypeKind.USER.name())).getLeft(),pageRef).build(BaseModal.CONTENT_ID,AjaxWizard.Mode.EDIT));
  send(ApprovalDirectoryPanel.this,Broadcast.EXACT,editItemActionEvent);
}
Program: 60429
Project: 60429
Buggy source:
@Override protected Serializable onApplyInternal(final AnyWrapper<UserTO> modelObject){
  UserTO inner=modelObject.getInnerObject();
  ProvisioningResult<UserTO> actual;
  if (formTO.getUserPatch() == null) {
    actual=new ProvisioningResult<>();
    UserTO user=new UserWorkflowRestClient().executeTask("String_Node_Str",inner);
    actual.setEntity(user);
    claimForm(restClient.getFormForUser(actual.getEntity().getKey()).getTaskId());
    ((BasePage)pageRef.getPage()).getNotificationPanel().refresh(target);
  }
 else {
    UserPatch patch=AnyOperations.diff(inner,formTO.getUserTO(),false);
    if (StringUtils.isNotBlank(inner.getPassword())) {
      PasswordPatch passwordPatch=new PasswordPatch.Builder().value(inner.getPassword()).onSyncope(true).resources(inner.getResources()).build();
      patch.setPassword(passwordPatch);
    }
    if (patch.isEmpty()) {
      actual=new ProvisioningResult<>();
      actual.setEntity(inner);
    }
 else {
      actual=userRestClient.update(getOriginalItem().getInnerObject().getETagValue(),patch);
      claimForm(restClient.getFormForUser(actual.getEntity().getKey()).getTaskId());
      ((BasePage)pageRef.getPage()).getNotificationPanel().refresh(target);
    }
  }
  return actual;
}

Fixed version (ground truth):
@Override protected Serializable onApplyInternal(final AnyWrapper<UserTO> modelObject){
  UserTO inner=modelObject.getInnerObject();
  ProvisioningResult<UserTO> actual;
  if (formTO.getUserPatch() == null) {
    actual=new ProvisioningResult<>();
    UserTO user=new UserWorkflowRestClient().executeTask("String_Node_Str",inner);
    actual.setEntity(user);
    claimForm(restClient.getFormForUser(actual.getEntity().getKey()).getTaskId());
  }
 else {
    UserPatch patch=AnyOperations.diff(inner,formTO.getUserTO(),false);
    if (StringUtils.isNotBlank(inner.getPassword())) {
      PasswordPatch passwordPatch=new PasswordPatch.Builder().value(inner.getPassword()).onSyncope(true).resources(inner.getResources()).build();
      patch.setPassword(passwordPatch);
    }
    if (patch.isEmpty()) {
      actual=new ProvisioningResult<>();
      actual.setEntity(inner);
    }
 else {
      actual=userRestClient.update(getOriginalItem().getInnerObject().getETagValue(),patch);
      claimForm(restClient.getFormForUser(actual.getEntity().getKey()).getTaskId());
    }
  }
  return actual;
}
Program: 60431
Project: 60431
Buggy source:
ApprovalUserWizardBuilder(final AjaxRequestTarget target,final WorkflowFormTO formTO,final UserTO previousUserTO,final UserTO userTO,final List<String> anyTypeClasses,final UserFormLayoutInfo formLayoutInfo,final PageReference pageRef){
  super(previousUserTO,userTO,anyTypeClasses,formLayoutInfo,pageRef);
  this.formTO=formTO;
  this.target=target;
}

Fixed version (ground truth):
ApprovalUserWizardBuilder(final WorkflowFormTO formTO,final UserTO previousUserTO,final UserTO userTO,final List<String> anyTypeClasses,final UserFormLayoutInfo formLayoutInfo,final PageReference pageRef){
  super(previousUserTO,userTO,anyTypeClasses,formLayoutInfo,pageRef);
  this.formTO=formTO;
}
Program: 60432
Project: 60432
Buggy source:
@Transactional @Override public void refreshDynMemberships(final Any<?> any){
  findAll().forEach(dynRealm -> {
    Optional<? extends DynRealmMembership> memb=dynRealm.getDynMembership(any.getType());
    if (memb.isPresent()) {
      Query delete=entityManager().createNativeQuery("String_Node_Str" + DYNMEMB_TABLE + "String_Node_Str");
      delete.setParameter(1,dynRealm.getKey());
      delete.setParameter(2,any.getKey());
      delete.executeUpdate();
      if (searchDAO().matches(any,SearchCondConverter.convert(memb.get().getFIQLCond()))) {
        Query insert=entityManager().createNativeQuery("String_Node_Str" + DYNMEMB_TABLE + "String_Node_Str");
        insert.setParameter(1,any.getKey());
        insert.setParameter(2,dynRealm.getKey());
        insert.executeUpdate();
      }
    }
  }
);
}

Fixed version (ground truth):
@Transactional @Override public void refreshDynMemberships(final Any<?> any){
  findAll().forEach(dynRealm -> {
    Optional<? extends DynRealmMembership> memb=dynRealm.getDynMembership(any.getType());
    if (memb.isPresent()) {
      Query delete=entityManager().createNativeQuery("String_Node_Str" + DYNMEMB_TABLE + "String_Node_Str");
      delete.setParameter(1,dynRealm.getKey());
      delete.setParameter(2,any.getKey());
      delete.executeUpdate();
      if (jpaAnySearchDAO().matches(any,SearchCondConverter.convert(memb.get().getFIQLCond()))) {
        Query insert=entityManager().createNativeQuery("String_Node_Str" + DYNMEMB_TABLE + "String_Node_Str");
        insert.setParameter(1,any.getKey());
        insert.setParameter(2,dynRealm.getKey());
        insert.executeUpdate();
      }
    }
  }
);
}
Program: 60433
Project: 60433
Buggy source:
@Override public DynRealm save(final DynRealm dynRealm){
  DynRealm merged=entityManager().merge(dynRealm);
  clearDynMembers(merged);
  merged.getDynMemberships().stream().map(memb -> searchDAO().search(SearchCondConverter.convert(memb.getFIQLCond()),memb.getAnyType().getKind())).forEachOrdered(matching -> {
    matching.forEach(any -> {
      Query insert=entityManager().createNativeQuery("String_Node_Str" + DYNMEMB_TABLE + "String_Node_Str");
      insert.setParameter(1,any.getKey());
      insert.setParameter(2,merged.getKey());
      insert.executeUpdate();
      publisher.publishEvent(new AnyCreatedUpdatedEvent<>(this,any,AuthContextUtils.getDomain()));
    }
);
  }
);
  return merged;
}

Fixed version (ground truth):
@Override public DynRealm save(final DynRealm dynRealm){
  DynRealm merged=entityManager().merge(dynRealm);
  clearDynMembers(merged);
  merged.getDynMemberships().stream().map(memb -> jpaAnySearchDAO().search(SearchCondConverter.convert(memb.getFIQLCond()),memb.getAnyType().getKind())).forEachOrdered(matching -> {
    matching.forEach(any -> {
      Query insert=entityManager().createNativeQuery("String_Node_Str" + DYNMEMB_TABLE + "String_Node_Str");
      insert.setParameter(1,any.getKey());
      insert.setParameter(2,merged.getKey());
      insert.executeUpdate();
      publisher.publishEvent(new AnyCreatedUpdatedEvent<>(this,any,AuthContextUtils.getDomain()));
    }
);
  }
);
  return merged;
}
Program: 60435
Project: 60435
Buggy source:
public ApprovalDetails(final PageReference pageRef,final WorkflowFormTO formTO){
  super(MultilevelPanel.SECOND_LEVEL_ID);
  final UserTO newUserTO;
  final UserTO previousUserTO;
  if (formTO.getUserPatch() == null) {
    newUserTO=formTO.getUserTO();
    previousUserTO=null;
  }
 else {
    formTO.getUserTO().setKey(formTO.getUserPatch().getKey());
    newUserTO=AnyOperations.patch(formTO.getUserTO(),formTO.getUserPatch());
    previousUserTO=formTO.getUserTO();
  }
  add(new UserWizardBuilder(previousUserTO,newUserTO,new AnyTypeRestClient().read(AnyTypeKind.USER.name()).getClasses(),new UserFormLayoutInfo(),pageRef).build(AjaxWizard.Mode.READONLY));
}

Fixed version (ground truth):
public ApprovalDetails(final PageReference pageRef,final WorkflowFormTO formTO){
  super(MultilevelPanel.SECOND_LEVEL_ID);
  final UserTO newUserTO;
  final UserTO previousUserTO;
  if (formTO.getUserPatch() == null) {
    newUserTO=formTO.getUserTO();
    previousUserTO=null;
  }
 else   if (formTO.getUserTO() == null) {
    previousUserTO=new UserTO();
    previousUserTO.setKey(formTO.getUserPatch().getKey());
    newUserTO=AnyOperations.patch(previousUserTO,formTO.getUserPatch());
  }
 else {
    formTO.getUserTO().setKey(formTO.getUserPatch().getKey());
    newUserTO=AnyOperations.patch(formTO.getUserTO(),formTO.getUserPatch());
    previousUserTO=formTO.getUserTO();
  }
  add(new UserWizardBuilder(previousUserTO,newUserTO,new AnyTypeRestClient().read(AnyTypeKind.USER.name()).getClasses(),new UserFormLayoutInfo(),pageRef).build(AjaxWizard.Mode.READONLY));
}
Program: 60436
Project: 60436
Buggy source:
@Override public void onClose(final AjaxRequestTarget target){
  target.add(realmChoicePanel.reloadRealmTree(target));
  if (modal.getContent() instanceof ResultPage) {
    updateRealmContent(RealmTO.class.cast(ResultPage.class.cast(modal.getContent()).getItem()),selectedIndex);
    target.add(content);
  }
  modal.show(false);
}

Fixed version (ground truth):
@Override public void onClose(final AjaxRequestTarget target){
  target.add(realmChoicePanel.reloadRealmTree(target));
  if (modal.getContent() instanceof ResultPage) {
    Serializable result=ResultPage.class.cast(modal.getContent()).getResult();
    updateRealmContent(RealmTO.class.cast(ProvisioningResult.class.cast(result).getEntity()),selectedIndex);
    target.add(content);
  }
  modal.show(false);
}
Program: 60437
Project: 60437
Buggy source:
@Override protected void setWindowClosedReloadCallback(final BaseModal<?> modal){
  modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    private static final long serialVersionUID=8804221891699487139L;
    @Override public void onClose(    final AjaxRequestTarget target){
      target.add(realmChoicePanel.reloadRealmTree(target));
      if (modal.getContent() instanceof ResultPage) {
        updateRealmContent(RealmTO.class.cast(ResultPage.class.cast(modal.getContent()).getItem()),selectedIndex);
        target.add(content);
      }
      modal.show(false);
    }
  }
);
}

Fixed version (ground truth):
@Override protected void setWindowClosedReloadCallback(final BaseModal<?> modal){
  modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
    private static final long serialVersionUID=8804221891699487139L;
    @Override public void onClose(    final AjaxRequestTarget target){
      target.add(realmChoicePanel.reloadRealmTree(target));
      if (modal.getContent() instanceof ResultPage) {
        Serializable result=ResultPage.class.cast(modal.getContent()).getResult();
        updateRealmContent(RealmTO.class.cast(ProvisioningResult.class.cast(result).getEntity()),selectedIndex);
        target.add(content);
      }
      modal.show(false);
    }
  }
);
}
Program: 60439
Project: 60439
Buggy source:
public ResultPage(final T item,final Serializable result){
  super(BaseModal.CONTENT_ID);
  setOutputMarkupId(true);
  this.item=item;
  add(customResultBody("String_Node_Str",item,result));
  final ActionsPanel<T> panel=new ActionsPanel<>("String_Node_Str",null);
  add(panel);
  panel.add(new ActionLink<T>(){
    private static final long serialVersionUID=3257738274365467945L;
    @Override public void onClick(    final AjaxRequestTarget target,    final T ignore){
      closeAction(target);
    }
  }
,ActionLink.ActionType.CLOSE,StringUtils.EMPTY).hideLabel();
  panel.setRenderBodyOnly(true);
}

Fixed version (ground truth):
public ResultPage(final T item,final Serializable result){
  super(BaseModal.CONTENT_ID);
  setOutputMarkupId(true);
  this.item=item;
  this.result=result;
  add(customResultBody("String_Node_Str",item,result));
  final ActionsPanel<T> panel=new ActionsPanel<>("String_Node_Str",null);
  add(panel);
  panel.add(new ActionLink<T>(){
    private static final long serialVersionUID=3257738274365467945L;
    @Override public void onClick(    final AjaxRequestTarget target,    final T ignore){
      closeAction(target);
    }
  }
,ActionLink.ActionType.CLOSE,StringUtils.EMPTY).hideLabel();
  panel.setRenderBodyOnly(true);
}
Program: 60440
Project: 60440
Buggy source:
@Override public void onEvent(final IEvent<?> event){
  if (event.getPayload() instanceof SearchClausePanel.SearchEvent) {
    final AjaxRequestTarget target=SearchClausePanel.SearchEvent.class.cast(event.getPayload()).getTarget();
    final String precond;
    if (realmTO.getFullPath().startsWith(SyncopeConstants.ROOT_REALM)) {
      precond=StringUtils.EMPTY;
    }
 else {
      precond=String.format("String_Node_Str",realmTO.getKey());
    }
switch (anyTypeTO.getKind()) {
case USER:
      UserDirectoryPanel.class.cast(AnyPanel.this.directoryPanel).search(precond + SearchUtils.buildFIQL(AnyPanel.this.searchPanel.getModel().getObject(),SyncopeClient.getUserSearchConditionBuilder(),AnyPanel.this.searchPanel.getAvailableSchemaTypes()),target);
    break;
case GROUP:
  GroupDirectoryPanel.class.cast(AnyPanel.this.directoryPanel).search(precond + SearchUtils.buildFIQL(AnyPanel.this.searchPanel.getModel().getObject(),SyncopeClient.getGroupSearchConditionBuilder(),AnyPanel.this.searchPanel.getAvailableSchemaTypes()),target);
break;
case ANY_OBJECT:
AnyObjectDirectoryPanel.class.cast(AnyPanel.this.directoryPanel).search(precond + SearchUtils.buildFIQL(AnyPanel.this.searchPanel.getModel().getObject(),SyncopeClient.getAnyObjectSearchConditionBuilder(anyTypeTO.getKey()),AnyPanel.this.searchPanel.getAvailableSchemaTypes()),target);
break;
default :
}
target.add(directoryPanel);
}
 else {
super.onEvent(event);
}
}

Fixed version (ground truth):
@Override public void onEvent(final IEvent<?> event){
  if (event.getPayload() instanceof SearchClausePanel.SearchEvent) {
    final AjaxRequestTarget target=SearchClausePanel.SearchEvent.class.cast(event.getPayload()).getTarget();
    final String precond;
    if (realmTO.getFullPath().startsWith(SyncopeConstants.ROOT_REALM)) {
      precond=StringUtils.EMPTY;
    }
 else {
      precond=String.format("String_Node_Str",realmTO.getKey());
    }
switch (anyTypeTO.getKind()) {
case USER:
      UserDirectoryPanel.class.cast(AnyPanel.this.directoryPanel).search(precond + SearchUtils.buildFIQL(AnyPanel.this.searchPanel.getModel().getObject(),SyncopeClient.getUserSearchConditionBuilder(),AnyPanel.this.searchPanel.getAvailableSchemaTypes()),target);
    break;
case GROUP:
  GroupDirectoryPanel.class.cast(AnyPanel.this.directoryPanel).search(precond + SearchUtils.buildFIQL(AnyPanel.this.searchPanel.getModel().getObject(),SyncopeClient.getGroupSearchConditionBuilder(),AnyPanel.this.searchPanel.getAvailableSchemaTypes()),target);
break;
case ANY_OBJECT:
AnyObjectDirectoryPanel.class.cast(AnyPanel.this.directoryPanel).search(precond + SearchUtils.buildFIQL(AnyPanel.this.searchPanel.getModel().getObject(),SyncopeClient.getAnyObjectSearchConditionBuilder(anyTypeTO.getKey()),AnyPanel.this.searchPanel.getAvailableSchemaTypes()),target);
break;
default :
}
}
 else {
super.onEvent(event);
}
}
Program: 60442
Project: 60442
Buggy source:
protected abstract String getPrefDetailView();

Fixed version (ground truth):
protected static final String getPrefDetailView(final String type){
  return String.format(Constants.PREF_ANY_DETAILS_VIEW,type);
}
Program: 60443
Project: 60443
Buggy source:
protected abstract String getPrefDerivedAttributeView();

Fixed version (ground truth):
protected static final String getPrefDerivedAttributeView(final String type){
  return String.format(Constants.PREF_ANY_DER_ATTRS_VIEW,type);
}
Program: 60444
Project: 60444
Buggy source:
@Override public void onSubmit(final AjaxRequestTarget target,final Form<?> form){
  if (selectedDetails.size() + selectedPlainSchemas.size() + selectedDerSchemas.size() > MAX_SELECTIONS) {
    SyncopeConsoleSession.get().error(getString("String_Node_Str"));
    onError(target,form);
  }
 else {
    final Map<String,List<String>> prefs=new HashMap<>();
    prefs.put(getPrefDetailView(),selectedDetails);
    prefs.put(getPrefPlainAttributeView(),selectedPlainSchemas);
    prefs.put(getPrefDerivedAttributeView(),selectedDerSchemas);
    prefMan.setList(getRequest(),getResponse(),prefs);
    SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED));
    modal.close(target);
    ((BasePage)pageRef.getPage()).getNotificationPanel().refresh(target);
  }
}

Fixed version (ground truth):
@Override public void onSubmit(final AjaxRequestTarget target,final Form<?> form){
  if (selectedDetails.size() + selectedPlainSchemas.size() + selectedDerSchemas.size() > MAX_SELECTIONS) {
    SyncopeConsoleSession.get().error(getString("String_Node_Str"));
    onError(target,form);
  }
 else {
    final Map<String,List<String>> prefs=new HashMap<>();
    prefs.put(DisplayAttributesModalPanel.getPrefDetailView(type),selectedDetails);
    prefs.put(DisplayAttributesModalPanel.getPrefPlainAttributeView(type),selectedPlainSchemas);
    prefs.put(DisplayAttributesModalPanel.getPrefDerivedAttributeView(type),selectedDerSchemas);
    prefMan.setList(getRequest(),getResponse(),prefs);
    SyncopeConsoleSession.get().info(getString(Constants.OPERATION_SUCCEEDED));
    modal.close(target);
    ((BasePage)pageRef.getPage()).getNotificationPanel().refresh(target);
  }
}
Program: 60445
Project: 60445
Buggy source:
protected abstract Class<? extends AnyTO> getTOClass();

Fixed version (ground truth):
protected static final Class<? extends AnyTO> getTOClass(final String type){
  if (type.equalsIgnoreCase(AnyTypeKind.USER.name())) {
    return UserTO.class;
  }
 else   if (type.equalsIgnoreCase(AnyTypeKind.USER.name())) {
    return GroupTO.class;
  }
 else {
    return AnyObjectTO.class;
  }
}
Program: 60446
Project: 60446
Buggy source:
protected abstract String getPrefPlainAttributeView();

Fixed version (ground truth):
protected static final String getPrefPlainAttributeView(final String type){
  return String.format(Constants.PREF_ANY_PLAIN_ATTRS_VIEW,type);
}
Program: 60448
Project: 60448
Buggy source:
@Override public void onClick(final AjaxRequestTarget target){
  action.getLink().onClick(target,obj);
}

Fixed version (ground truth):
@Override public void onClick(final AjaxRequestTarget target){
  beforeOnClick(target);
  action.getLink().onClick(target,obj);
}
Program: 60451
Project: 60451
Buggy source:
public static MailTemplateManagerService getMailTemplateManagerService() throws IOException {
synchronized (MAIL_TEMPLATE_MONITOR) {
    if (MAIL_TEMPLATE_MANAGER_SERVICE == null) {
      ConnectionParams connParams=getConnectionParams();
      MAIL_TEMPLATE_MANAGER_SERVICE=new MailTemplateManagerService(connParams.getUrl(),connParams.getUsername(),connParams.getPassword());
    }
  }
  return MAIL_TEMPLATE_MANAGER_SERVICE;
}

Fixed version (ground truth):
public static MailTemplateManagerService getMailTemplateManagerService() throws IOException {
synchronized (MAIL_TEMPLATE_MONITOR) {
    ConnectionParams connParams=getConnectionParams();
    MAIL_TEMPLATE_MANAGER_SERVICE=new MailTemplateManagerService(connParams.getUrl(),connParams.getUsername(),connParams.getPassword());
  }
  return MAIL_TEMPLATE_MANAGER_SERVICE;
}
Program: 60452
Project: 60452
Buggy source:
public static ConnectionParams getConnectionParams(){
  Preferences prefs=NbPreferences.forModule(ResourceExplorerTopComponent.class);
  ConnectionParams connectionParams=ConnectionParams.builder().scheme(prefs.get("String_Node_Str","String_Node_Str")).host(prefs.get("String_Node_Str","String_Node_Str")).port(prefs.get("String_Node_Str","String_Node_Str")).username(prefs.get("String_Node_Str",StringUtils.EMPTY)).password(prefs.get("String_Node_Str",StringUtils.EMPTY)).build();
  return connectionParams;
}

Fixed version (ground truth):
public static ConnectionParams getConnectionParams(){
  Preferences prefs=NbPreferences.forModule(ResourceExplorerTopComponent.class);
  return ConnectionParams.builder().scheme(prefs.get("String_Node_Str","String_Node_Str")).host(prefs.get("String_Node_Str","String_Node_Str")).port(prefs.get("String_Node_Str","String_Node_Str")).username(prefs.get("String_Node_Str",StringUtils.EMPTY)).password(prefs.get("String_Node_Str",StringUtils.EMPTY)).build();
}
Program: 60453
Project: 60453
Buggy source:
public static ReportTemplateManagerService getReportTemplateManagerService() throws IOException {
synchronized (REPORT_TEMPLATE_MONITOR) {
    if (REPORT_TEMPLATE_MANAGER_SERVICE == null) {
      ConnectionParams connParams=getConnectionParams();
      REPORT_TEMPLATE_MANAGER_SERVICE=new ReportTemplateManagerService(connParams.getUrl(),connParams.getUsername(),connParams.getPassword());
    }
  }
  return REPORT_TEMPLATE_MANAGER_SERVICE;
}

Fixed version (ground truth):
public static ReportTemplateManagerService getReportTemplateManagerService() throws IOException {
synchronized (REPORT_TEMPLATE_MONITOR) {
    ConnectionParams connParams=getConnectionParams();
    REPORT_TEMPLATE_MANAGER_SERVICE=new ReportTemplateManagerService(connParams.getUrl(),connParams.getUsername(),connParams.getPassword());
  }
  return REPORT_TEMPLATE_MANAGER_SERVICE;
}
Program: 60454
Project: 60454
Buggy source:
public static MailTemplateManagerService getMailTemplateManagerService() throws IOException {
synchronized (MAIL_TEMPLATE_MONITOR) {
    if (MAIL_TEMPLATE_MANAGER_SERVICE == null) {
      UserProperties userProperties=getUserProperties();
      MAIL_TEMPLATE_MANAGER_SERVICE=new MailTemplateManagerService(userProperties.getUrl(),userProperties.getUserName(),userProperties.getPassword());
    }
  }
  return MAIL_TEMPLATE_MANAGER_SERVICE;
}

Fixed version (ground truth):
public static MailTemplateManagerService getMailTemplateManagerService() throws IOException {
synchronized (MAIL_TEMPLATE_MONITOR) {
    if (MAIL_TEMPLATE_MANAGER_SERVICE == null) {
      ConnectionParams connParams=getConnectionParams();
      MAIL_TEMPLATE_MANAGER_SERVICE=new MailTemplateManagerService(connParams.getUrl(),connParams.getUsername(),connParams.getPassword());
    }
  }
  return MAIL_TEMPLATE_MANAGER_SERVICE;
}
Program: 60455
Project: 60455
Buggy source:
public static ReportTemplateManagerService getReportTemplateManagerService() throws IOException {
synchronized (REPORT_TEMPLATE_MONITOR) {
    if (REPORT_TEMPLATE_MANAGER_SERVICE == null) {
      UserProperties userProperties=getUserProperties();
      REPORT_TEMPLATE_MANAGER_SERVICE=new ReportTemplateManagerService(userProperties.getUrl(),userProperties.getUserName(),userProperties.getPassword());
    }
  }
  return REPORT_TEMPLATE_MANAGER_SERVICE;
}

Fixed version (ground truth):
public static ReportTemplateManagerService getReportTemplateManagerService() throws IOException {
synchronized (REPORT_TEMPLATE_MONITOR) {
    if (REPORT_TEMPLATE_MANAGER_SERVICE == null) {
      ConnectionParams connParams=getConnectionParams();
      REPORT_TEMPLATE_MANAGER_SERVICE=new ReportTemplateManagerService(connParams.getUrl(),connParams.getUsername(),connParams.getPassword());
    }
  }
  return REPORT_TEMPLATE_MANAGER_SERVICE;
}