nus-yam/ex-repair huggingface dataset:
Program: 153872
Project: 153872
Buggy source:
/** 
 * Shows user edit form
 */
@OnlyForGlobal @AuthenticationRequired public void getEditUser(){
  User user=this.userManager.getUser(this.currentUser());
  out("String_Node_Str",user.getName());
  out("String_Node_Str",user.getPhoneNumber());
  out("String_Node_Str",user.getDescription());
  success(EDIT_USER_TPL);
}

Fixed version (ground truth):
/** 
 * Shows user edit form
 */
@OnlyForGlobal @AuthenticationRequired public void getEditUser(){
  User user=this.userManager.getUser(this.currentUser());
  out("String_Node_Str",user.getName());
  out("String_Node_Str",user.getPhoneNumber());
  out("String_Node_Str",user.getDescription());
  out("String_Node_Str",this.authorizationManager.getActiveUserDomains(this.currentUser()));
  success(EDIT_USER_TPL);
}
Program: 153873
Project: 153873
Buggy source:
public DomainUser(String userId,String domain,boolean isActive2){
  this.userId=userId;
}

Fixed version (ground truth):
public DomainUser(String userId,String domain,boolean isActive){
  this.userId=userId;
  this.isActive=isActive;
}
Program: 153874
Project: 153874
Buggy source:
/** 
 * A validator that check if the transfer's amount is positive 
 */
public static synchronized Validator getAmountValidator(){
  if (valueValidator == null) {
    valueValidator=new Validator();
    valueValidator.add("String_Node_Str",new AmountRule());
  }
  return valueValidator;
}

Fixed version (ground truth):
/** 
 * A validator that check if the transfer's amount is positive 
 */
public static synchronized Validator getAmountValidator(){
  if (valueValidator == null) {
    valueValidator=new Validator();
  }
  return valueValidator;
}
Program: 153875
Project: 153875
Buggy source:
/** 
 * A validator that check if the destination account exists and has authorization at the specified domain
 */
public static synchronized Validator getDestinationValidator(){
  if (destinationValidator == null) {
    destinationValidator=new Validator();
    destinationValidator.add("String_Node_Str",new DestinationRule());
  }
  return destinationValidator;
}

Fixed version (ground truth):
/** 
 * A validator that check if the destination account exists and has authorization at the specified domain
 */
public static synchronized Validator getDestinationValidator(){
  if (destinationValidator == null) {
    destinationValidator=new Validator();
  }
  return destinationValidator;
}
Program: 153876
Project: 153876
Buggy source:
/** 
 * Updates the activities of a specific role of a specific domain.
 * @param domain domain that the role belongs to
 * @param roleName roleName to have its activities updated
 * @param activities activities to be set on role
 */
public void updateRoleActivities(String domain,String roleName,Collection<String> activities){
  Role role=this.getRole(domain,roleName);
  role.updateActivities(activities);
}

Fixed version (ground truth):
/** 
 * Updates the activities of a specific role of a specific domain.
 * @param domain domain that the role belongs to
 * @param roleName roleName to have its activities updated
 * @param activities activities to be set on role
 */
public void updateRoleActivities(String domain,String roleName,Collection<String> activities){
  Role role=this.getRole(domain,roleName);
  role.updateActivities(activities);
  this.roleDAO.save(role);
}
Program: 153877
Project: 153877
Buggy source:
public void postShareBank(){
  Validator requiredValidator=BankValidators.getRequiredValidator();
  Validator destinationValidator=BankValidators.getDestinationValidator();
  if (requiredValidator.isValid() && destinationValidator.isValid()) {
    this.accountManager.transact(this.subDomain(),this.in("String_Node_Str"),new BigDecimal(this.in("String_Node_Str")),this.in("String_Node_Str"),TransactionType.valueOf(this.in("String_Node_Str")));
    this.redirect(ADMIN_URL);
  }
 else {
    this.out("String_Node_Str",this.accountManager.getBalance(this.subDomain()));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.invalid(ADMIN_TPL);
  }
}

Fixed version (ground truth):
/** 
 * Transfer from bank account to a user account
 */
public void postShareBank(){
  Validator requiredValidator=BankValidators.getRequiredValidator();
  Validator destinationValidator=BankValidators.getDestinationValidator();
  if (requiredValidator.isValid() && destinationValidator.isValid()) {
    this.accountManager.transact(this.subDomain(),this.in("String_Node_Str"),new BigDecimal(this.in("String_Node_Str")),this.in("String_Node_Str"),TransactionType.valueOf(this.in("String_Node_Str")));
    this.redirect(ADMIN_URL);
  }
 else {
    this.echo();
    this.out("String_Node_Str",this.accountManager.getBalance(this.subDomain()));
    this.invalid(ADMIN_TPL);
  }
}
Program: 153878
Project: 153878
Buggy source:
public void setAccountManager(AccountManager accountManager){
  this.accountManager=accountManager;
}

Fixed version (ground truth):
/** 
 * Method used by the Injector
 */
public void setAccountManager(AccountManager accountManager){
  this.accountManager=accountManager;
}
Program: 153879
Project: 153879
Buggy source:
public void getStatementBank(){
  this.out("String_Node_Str",this.accountManager.getBalance(this.currentUser()));
  this.success(STATEMENT_TPL);
}

Fixed version (ground truth):
/** 
 * Gets the current user current balance
 */
public void getStatementBank(){
  this.out("String_Node_Str",this.accountManager.getBalance(this.currentUser()));
  this.success(STATEMENT_TPL);
}
Program: 153880
Project: 153880
Buggy source:
public void getAdminBank(){
  this.out("String_Node_Str",this.accountManager.getBalance(this.subDomain()));
  this.success(ADMIN_TPL);
}

Fixed version (ground truth):
/** 
 * Gets the bank admin interface
 */
public void getAdminBank(){
  this.out("String_Node_Str",this.accountManager.getBalance(this.subDomain()));
  this.success(ADMIN_TPL);
}
Program: 153881
Project: 153881
Buggy source:
public void postBallastBank(){
  Validator requiredValidator=BankValidators.getRequiredValidator();
  Validator comparableValidator=BankValidators.getAmountValidator();
  if (requiredValidator.isValid() && comparableValidator.isValid()) {
    this.accountManager.insertBallast(this.subDomain(),new BigDecimal(this.in("String_Node_Str")),this.in("String_Node_Str"));
    this.redirect(ADMIN_URL);
  }
 else {
    this.out("String_Node_Str",this.accountManager.getBalance(this.subDomain()));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.invalid(ADMIN_TPL);
  }
}

Fixed version (ground truth):
/** 
 * Transfer from system account to bank account
 */
public void postBallastBank(){
  Validator requiredValidator=BankValidators.getRequiredValidator();
  Validator comparableValidator=BankValidators.getAmountValidator();
  if (requiredValidator.isValid() && comparableValidator.isValid()) {
    this.accountManager.insertBallast(this.subDomain(),new BigDecimal(this.in("String_Node_Str")),this.in("String_Node_Str"));
    this.redirect(ADMIN_URL);
  }
 else {
    this.echo();
    this.out("String_Node_Str",this.accountManager.getBalance(this.subDomain()));
    this.invalid(ADMIN_TPL);
  }
}
Program: 153882
Project: 153882
Buggy source:
public void getIndexBank(){
  this.out("String_Node_Str",this.accountManager.getBalance(this.currentUser()));
  this.out("String_Node_Str",this.accountManager.getLastNTransactions(this.currentUser(),5));
  this.success(INDEX_TPL);
}

Fixed version (ground truth):
/** 
 * Shows the initial bank page for a user
 */
public void getIndexBank(){
  this.out("String_Node_Str",this.accountManager.getBalance(this.currentUser()));
  this.out("String_Node_Str",this.accountManager.getLastNTransactions(this.currentUser(),5));
  this.success(INDEX_TPL);
}
Program: 153883
Project: 153883
Buggy source:
public void getTransferBank(){
  this.out("String_Node_Str",this.accountManager.getBalance(this.currentUser()));
  this.out("String_Node_Str",this.accountManager.getLastNTransactions(this.currentUser(),5));
  this.success(TRANSFER_TPL);
}

Fixed version (ground truth):
/** 
 * Shows the page for transfers between users
 */
public void getTransferBank(){
  this.out("String_Node_Str",this.accountManager.getBalance(this.currentUser()));
  this.out("String_Node_Str",this.accountManager.getLastNTransactions(this.currentUser(),5));
  this.success(TRANSFER_TPL);
}
Program: 153884
Project: 153884
Buggy source:
public void postTransactionsBank(){
  List<BankTransaction> transactions=new LinkedList<BankTransaction>();
  transactions.add(new BankTransaction("String_Node_Str","String_Node_Str",new BigDecimal(50),TransactionType.DEPOSIT,"String_Node_Str"));
  transactions.add(new BankTransaction("String_Node_Str","String_Node_Str",new BigDecimal(50),TransactionType.DEPOSIT,"String_Node_Str"));
  out("String_Node_Str","String_Node_Str");
  out("String_Node_Str","String_Node_Str");
  out("String_Node_Str",transactions);
  jsonSuccess();
}

Fixed version (ground truth):
/** 
 * Posts parameters to get user's transactions
 */
public void postTransactionsBank(){
  this.out("String_Node_Str",this.accountManager.getTransactionsByDateRange(currentUser(),Formatter.parse(in("String_Node_Str")),Formatter.parse(in("String_Node_Str"))));
  jsonSuccess();
}
Program: 153885
Project: 153885
Buggy source:
public void postTransfer(){
  Validator requiredValidator=BankValidators.getRequiredValidator();
  Validator destinationValidator=BankValidators.getDestinationValidator();
  if (requiredValidator.isValid() && destinationValidator.isValid()) {
    this.accountManager.transact(this.currentUser(),this.in("String_Node_Str"),new BigDecimal(this.in("String_Node_Str")),this.in("String_Node_Str"),TransactionType.valueOf(this.in("String_Node_Str")));
    this.redirect(BASE_URL);
  }
 else {
    this.out("String_Node_Str",this.accountManager.getBalance(this.currentUser()));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.out("String_Node_Str",this.in("String_Node_Str"));
    this.invalid(TRANSFER_TPL);
  }
}

Fixed version (ground truth):
/** 
 * Posts a transfer between users
 */
public void postTransfer(){
  Validator requiredValidator=BankValidators.getRequiredValidator();
  Validator destinationValidator=BankValidators.getDestinationValidator();
  if (requiredValidator.isValid() && destinationValidator.isValid()) {
    this.accountManager.transact(this.currentUser(),this.in("String_Node_Str"),new BigDecimal(this.in("String_Node_Str")),this.in("String_Node_Str"),TransactionType.valueOf(this.in("String_Node_Str")));
    this.redirect(BASE_URL);
  }
 else {
    this.out("String_Node_Str",this.accountManager.getBalance(this.currentUser()));
    this.echo();
    this.invalid(TRANSFER_TPL);
  }
}
Program: 153886
Project: 153886
Buggy source:
public static synchronized Validator getRequiredValidator(){
  if (requiredValidator == null) {
    requiredValidator=new Validator();
    requiredValidator.add("String_Node_Str",new RequiredRule(),"String_Node_Str");
    requiredValidator.add("String_Node_Str",new RequiredRule(),"String_Node_Str");
    requiredValidator.add("String_Node_Str",new RequiredRule(),"String_Node_Str");
  }
  return requiredValidator;
}

Fixed version (ground truth):
/** 
 * A validator for transfers that checks the required fields
 */
public static synchronized Validator getRequiredValidator(){
  if (requiredValidator == null) {
    requiredValidator=new Validator();
    requiredValidator.add("String_Node_Str",new RequiredRule(),"String_Node_Str");
    requiredValidator.add("String_Node_Str",new RequiredRule(),"String_Node_Str");
    requiredValidator.add("String_Node_Str",new RequiredRule(),"String_Node_Str");
  }
  return requiredValidator;
}
Program: 153887
Project: 153887
Buggy source:
public static synchronized Validator getDestinationValidator(){
  if (destinationValidator == null) {
    destinationValidator=new Validator();
    destinationValidator.add("String_Node_Str",new DestinationRule(),"String_Node_Str");
  }
  return destinationValidator;
}

Fixed version (ground truth):
/** 
 * A validator that check if the destination account exists and has authorization at the specified domain
 */
public static synchronized Validator getDestinationValidator(){
  if (destinationValidator == null) {
    destinationValidator=new Validator();
    destinationValidator.add("String_Node_Str",new DestinationRule(),"String_Node_Str");
  }
  return destinationValidator;
}
Program: 153888
Project: 153888
Buggy source:
public static synchronized Validator getAmountValidator(){
  if (valueValidator == null) {
    valueValidator=new Validator();
    valueValidator.add("String_Node_Str",new AmountRule(),"String_Node_Str");
  }
  return valueValidator;
}

Fixed version (ground truth):
/** 
 * A validator that check if the transfer's amount is positive 
 */
public static synchronized Validator getAmountValidator(){
  if (valueValidator == null) {
    valueValidator=new Validator();
    valueValidator.add("String_Node_Str",new AmountRule(),"String_Node_Str");
  }
  return valueValidator;
}
Program: 153889
Project: 153889
Buggy source:
public Set<ActionSpec> getModuleActions(){
  Set<ActionSpec> actions=new TreeSet<ActionSpec>();
  actions.add(new ActionSpec("String_Node_Str",true));
  return actions;
}

Fixed version (ground truth):
public Set<ActionSpec> getModuleActions(){
  Set<ActionSpec> actions=new HashSet<ActionSpec>();
  actions.add(new ActionSpec("String_Node_Str",true));
  return actions;
}
Program: 153890
Project: 153890
Buggy source:
@Override public void eventPublished(Event event){
  DomainCreatedEvent domainEvent=(DomainCreatedEvent)event;
  String domainName=domainEvent.getNamespace();
  String domainAdmin=domainEvent.getAdminID();
  logger.info("String_Node_Str" + domainName + "String_Node_Str"+ domainAdmin);
  this.authorizationManager.createRole(domainName,USERS_ROLE_NAME);
  this.authorizationManager.createRole(domainName,ADMINS_ROLE_NAME);
  for (  Module m : Module.values()) {
    ModuleSpec moduleSpec=m.getModuleSpec();
    if (moduleSpec.getModuleType() == Type.DOMAIN || moduleSpec.getModuleType() == Type.APPLICATION_DOMAIN) {
      logger.debug("String_Node_Str",m.name(),domainName);
      ApplicationDomainModuleSpec spec=(ApplicationDomainModuleSpec)moduleSpec;
      for (      ActionSpec action : spec.getModuleActions()) {
        String name=action.getAction();
        logger.debug("String_Node_Str",m.toString(),name);
        this.authorizationManager.addActivitiesToRole(domainName,ADMINS_ROLE_NAME,name);
        if (!action.isAdministrativeOnly()) {
          this.authorizationManager.addActivitiesToRole(domainName,USERS_ROLE_NAME,name);
        }
      }
    }
  }
  logger.info("String_Node_Str",domainName,domainAdmin);
  this.authorizationManager.addUsersToRole(domainName,ADMINS_ROLE_NAME,domainAdmin);
  this.authorizationManager.addUsersToRole(domainName,USERS_ROLE_NAME,domainAdmin);
}

Fixed version (ground truth):
@Override public void eventPublished(Event event){
  DomainCreatedEvent domainEvent=(DomainCreatedEvent)event;
  String domainName=domainEvent.getNamespace();
  String domainAdmin=domainEvent.getAdminID();
  logger.info("String_Node_Str" + domainName + "String_Node_Str"+ domainAdmin);
  this.authorizationManager.createRole(domainName,USERS_ROLE_NAME);
  this.authorizationManager.createRole(domainName,ADMINS_ROLE_NAME);
  for (  Module m : Module.values()) {
    ModuleSpec moduleSpec=m.getModuleSpec();
    if (moduleSpec.getModuleType() == Type.DOMAIN || moduleSpec.getModuleType() == Type.APPLICATION_DOMAIN) {
      logger.debug("String_Node_Str",m.name(),domainName);
      ApplicationDomainModuleSpec spec=(ApplicationDomainModuleSpec)moduleSpec;
      for (      ActionSpec action : spec.getModuleActions()) {
        String name=action.getAction();
        logger.debug("String_Node_Str",m.toString(),name);
        this.authorizationManager.addActivitiesToRole(domainName,ADMINS_ROLE_NAME,name);
        if (!action.isAdministrativeOnly()) {
          this.authorizationManager.addActivitiesToRole(domainName,USERS_ROLE_NAME,name);
        }
      }
    }
  }
  logger.info("String_Node_Str",domainName,domainAdmin);
  this.authorizationManager.addUsersToRole(domainName,ADMINS_ROLE_NAME,domainAdmin);
  this.authorizationManager.addUsersToRole(domainName,USERS_ROLE_NAME,domainAdmin);
  PersistenceManagerPool.forceClose();
}
Program: 153891
Project: 153891
Buggy source:
@Override public Set<ActionSpec> getModuleActions(){
  Set<ActionSpec> actions=new TreeSet<ActionSpec>();
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  return actions;
}

Fixed version (ground truth):
@Override public Set<ActionSpec> getModuleActions(){
  Set<ActionSpec> actions=new HashSet<ActionSpec>();
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  return actions;
}
Program: 153892
Project: 153892
Buggy source:
@Override public Set<ActionSpec> getModuleActions(){
  Set<ActionSpec> actions=new TreeSet<ActionSpec>();
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  return actions;
}

Fixed version (ground truth):
@Override public Set<ActionSpec> getModuleActions(){
  Set<ActionSpec> actions=new HashSet<ActionSpec>();
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  return actions;
}
Program: 153893
Project: 153893
Buggy source:
@Override protected void processEvent(Event event){
  String namespace=((NamespaceEvent)event).getNamespace();
  log.info("String_Node_Str" + namespace);
  this.configurationManager.createDomainConfiguration(namespace);
  for (  Module m : Module.values()) {
    ModuleSpec moduleSpec=m.getModuleSpec();
    if (moduleSpec.getModuleType() == Type.DOMAIN) {
      log.debug("String_Node_Str",m.name(),namespace);
      this.configurationManager.enableModule(m);
    }
  }
}

Fixed version (ground truth):
@Override protected void processEvent(Event event){
  String namespace=((NamespaceEvent)event).getNamespace();
  log.info("String_Node_Str" + namespace);
  this.configurationManager.createDomainConfiguration(namespace);
  for (  Module m : Module.values()) {
    ModuleSpec moduleSpec=m.getModuleSpec();
    if (moduleSpec.getModuleType() == Type.DOMAIN) {
      log.debug("String_Node_Str",m.name(),namespace);
      this.configurationManager.enableModule(m);
    }
  }
  PersistenceManagerPool.forceClose();
}
Program: 153894
Project: 153894
Buggy source:
@Override public void processEvent(Event event){
  DomainUploadEvent uploadEvent=(DomainUploadEvent)event;
  this.configurationManager.updateAvatarKey(uploadEvent.getBlobKey());
}

Fixed version (ground truth):
@Override public void processEvent(Event event){
  DomainUploadEvent uploadEvent=(DomainUploadEvent)event;
  this.configurationManager.updateAvatarKey(uploadEvent.getBlobKey());
  PersistenceManagerPool.forceClose();
}
Program: 153895
Project: 153895
Buggy source:
@Override public Set<ActionSpec> getModuleActions(){
  Set<ActionSpec> actions=new TreeSet<ActionSpec>();
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  return actions;
}

Fixed version (ground truth):
@Override public Set<ActionSpec> getModuleActions(){
  Set<ActionSpec> actions=new HashSet<ActionSpec>();
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str"));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  actions.add(new ActionSpec("String_Node_Str",true));
  return actions;
}
Program: 153896
Project: 153896
Buggy source:
@Override public void eventPublished(Event event){
  UserUploadEvent uploadEvent=(UserUploadEvent)event;
  log.debug("String_Node_Str",uploadEvent.getTarget(),uploadEvent.getBlobKey());
  this.usersManager.updateAvatarKey(uploadEvent.getTarget(),uploadEvent.getBlobKey());
}

Fixed version (ground truth):
@Override public void eventPublished(Event event){
  UserUploadEvent uploadEvent=(UserUploadEvent)event;
  this.usersManager.updateAvatarKey(uploadEvent.getTarget(),uploadEvent.getBlobKey());
  PersistenceManagerPool.forceClose();
}
Program: 153897
Project: 153897
Buggy source:
/** 
 * Creates the domain at Rout53
 * @throws Route53Exception if some error occurs when accessing route53 API
 */
public void createDomain(String domainName,String adminID){
  if (this.hasApplicationConfiguration()) {
    ApplicationConfiguration appConf=this.applicationConfigurationDAO.get(APPLICATION_NAME);
    Route53Util.createDomain(domainName,appConf.getRoute53AccessKeyID(),appConf.getRoute53AccessKeySecret(),appConf.getRoute53ZoneID());
    eventBus.publish(new DomainCreatedEvent(domainName,adminID));
  }
 else {
    if (Boolean.parseBoolean(getProperty(NOT_ROUTE53_PROPERTY))) {
      log.info("String_Node_Str",NOT_ROUTE53_PROPERTY);
      eventBus.publish(new DomainCreatedEvent(domainName,adminID));
    }
 else {
      throw new DataDoesNotExistsException("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * Creates the domain at Rout53
 * @throws Route53Exception if some error occurs when accessing route53 API
 */
public void createDomain(String domainName,String adminID){
  if (this.hasApplicationConfiguration()) {
    if (!Boolean.parseBoolean(getProperty(NOT_ROUTE53_PROPERTY))) {
      ApplicationConfiguration appConf=this.applicationConfigurationDAO.get(APPLICATION_NAME);
      Route53Util.createDomain(domainName,appConf.getRoute53AccessKeyID(),appConf.getRoute53AccessKeySecret(),appConf.getRoute53ZoneID());
    }
 else {
      log.info("String_Node_Str",NOT_ROUTE53_PROPERTY);
    }
    eventBus.publish(new DomainCreatedEvent(domainName,adminID));
  }
 else {
    throw new DataDoesNotExistsException("String_Node_Str");
  }
}
Program: 153898
Project: 153898
Buggy source:
/** 
 * Changes current namespace to global namespace, storing the actual namespace to be restored later.
 */
public static void changeToGlobalNamespace(){
  changeToNamespace(getGlobalNamespace());
}

Fixed version (ground truth):
/** 
 * Changes current namespace to global namespace, storing the actual namespace to be restored later.
 */
public static void changeToGlobalNamespace(){
  changeToNamespace(GLOBAL_NAMESPACE);
}
Program: 153899
Project: 153899
Buggy source:
/** 
 * Updates an model property's value. If the given module hasn't any property if the the given propertyKey an  {@link IllegalArgumentException} will be thrown.This method performs an verification using the  {@link ModuleProperty} regex. If the givenvalue doesn't satisfy the regex, an  {@link IllegalArgumentException} will be thrown.If the given module isn't enabled for the given domain, nothing happens.
 * @param module The module
 * @param propertyKey The property key to be updated
 * @param propertyValue The new property value
 */
public void setModuleProperty(Module module,String propertyKey,String propertyValue){
  DomainConfiguration domainConf=this.getDomainConfiguration();
  if (domainConf.isModuleEnabled(module.name())) {
    DomainSpecificModuleConfiguration moduleConf=this.moduleDAO.get(module.name());
    if (moduleConf.existsProperty(propertyKey)) {
      String regex=moduleConf.getPropertyRegex(propertyKey);
      if (!regex.isEmpty()) {
        if (!propertyValue.matches(regex)) {
          throw new IllegalArgumentException("String_Node_Str" + propertyKey + "String_Node_Str"+ module.name()+ "String_Node_Str");
        }
      }
      moduleConf.setConfigurationValue(propertyKey,propertyValue);
    }
 else {
      throw new IllegalArgumentException("String_Node_Str" + module.name() + "String_Node_Str"+ propertyKey);
    }
  }
 else {
    throw new DataDoesNotExistsException("String_Node_Str" + module.name() + "String_Node_Str");
  }
}

Fixed version (ground truth):
public void setModuleProperty(Module module,String propertyKey,String propertyValue){
  DomainConfiguration domainConf=this.getDomainConfiguration();
  if (domainConf.isModuleEnabled(module.name())) {
    DomainSpecificModuleConfiguration moduleConf=this.moduleDAO.get(module.name());
    if (moduleConf.existsProperty(propertyKey)) {
      String regex=moduleConf.getPropertyRegex(propertyKey);
      if (!regex.isEmpty()) {
        if (!propertyValue.matches(regex)) {
          throw new IllegalArgumentException("String_Node_Str" + propertyKey + "String_Node_Str"+ module.name()+ "String_Node_Str");
        }
      }
      moduleConf.setConfigurationValue(propertyKey,propertyValue);
      moduleDAO.save(moduleConf);
    }
 else {
      throw new IllegalArgumentException("String_Node_Str" + module.name() + "String_Node_Str"+ propertyKey);
    }
  }
 else {
    throw new DataDoesNotExistsException("String_Node_Str" + module.name() + "String_Node_Str");
  }
}
Program: 153900
Project: 153900
Buggy source:
@Test public void restorePropertiesTest() throws DataDoesNotExistsException {
  this.domain.enableModule("String_Node_Str");
  expect(this.domainDAO.count()).andReturn(1).anyTimes();
  expect(this.domainDAO.getAll()).andReturn(this.result).anyTimes();
  DomainSpecificModuleConfiguration moduleConf=Module.getModuleSpec(Module.BANK).getDomainSpecificModuleConfiguration();
  expect(this.moduleDAO.get("String_Node_Str")).andReturn(moduleConf).anyTimes();
  replay(this.domainDAO,this.moduleDAO);
  this.configurationManager.setModuleProperty(Module.BANK,"String_Node_Str","String_Node_Str");
  DomainSpecificModuleConfigurationView moduleInfo=this.configurationManager.getModuleConfiguration(Module.BANK);
  assertEquals("String_Node_Str",moduleInfo.getPropertyValue("String_Node_Str"));
  this.configurationManager.restoreModuleProperties(Module.BANK);
  moduleInfo=this.configurationManager.getModuleConfiguration(Module.BANK);
  assertEquals("String_Node_Str",moduleInfo.getPropertyValue("String_Node_Str"));
  verify(this.domainDAO,this.moduleDAO);
}

Fixed version (ground truth):
@Test public void restorePropertiesTest() throws DataDoesNotExistsException {
  this.domain.enableModule("String_Node_Str");
  expect(this.domainDAO.count()).andReturn(1).anyTimes();
  expect(this.domainDAO.getAll()).andReturn(this.result).anyTimes();
  DomainSpecificModuleConfiguration moduleConf=Module.getModuleSpec(Module.BANK).getDomainSpecificModuleConfiguration();
  this.moduleDAO.save(moduleConf);
  expect(this.moduleDAO.get("String_Node_Str")).andReturn(moduleConf).anyTimes();
  replay(this.domainDAO,this.moduleDAO);
  this.configurationManager.setModuleProperty(Module.BANK,"String_Node_Str","String_Node_Str");
  DomainSpecificModuleConfigurationView moduleInfo=this.configurationManager.getModuleConfiguration(Module.BANK);
  assertEquals("String_Node_Str",moduleInfo.getPropertyValue("String_Node_Str"));
  this.configurationManager.restoreModuleProperties(Module.BANK);
  moduleInfo=this.configurationManager.getModuleConfiguration(Module.BANK);
  assertEquals("String_Node_Str",moduleInfo.getPropertyValue("String_Node_Str"));
  verify(this.domainDAO,this.moduleDAO);
}
Program: 153901
Project: 153901
Buggy source:
@Test public void setPropertyTest(){
  this.domain.enableModule("String_Node_Str");
  expect(this.domainDAO.count()).andReturn(1).anyTimes();
  expect(this.domainDAO.getAll()).andReturn(this.result).anyTimes();
  DomainSpecificModuleConfiguration moduleConf=Module.getModuleSpec(Module.BANK).getDomainSpecificModuleConfiguration();
  expect(this.moduleDAO.get("String_Node_Str")).andReturn(moduleConf).anyTimes();
  replay(this.domainDAO,this.moduleDAO);
  DomainSpecificModuleConfigurationView moduleInfo=this.configurationManager.getModuleConfiguration(Module.BANK);
  assertEquals("String_Node_Str",moduleInfo.getPropertyValue("String_Node_Str"));
  this.configurationManager.setModuleProperty(Module.BANK,"String_Node_Str","String_Node_Str");
  moduleInfo=this.configurationManager.getModuleConfiguration(Module.BANK);
  assertEquals("String_Node_Str",moduleInfo.getPropertyValue("String_Node_Str"));
  verify(this.domainDAO,this.moduleDAO);
}

Fixed version (ground truth):
@Test public void setPropertyTest(){
  this.domain.enableModule("String_Node_Str");
  expect(this.domainDAO.count()).andReturn(1).anyTimes();
  expect(this.domainDAO.getAll()).andReturn(this.result).anyTimes();
  DomainSpecificModuleConfiguration moduleConf=Module.getModuleSpec(Module.BANK).getDomainSpecificModuleConfiguration();
  this.moduleDAO.save(moduleConf);
  expect(this.moduleDAO.get("String_Node_Str")).andReturn(moduleConf).anyTimes();
  replay(this.domainDAO,this.moduleDAO);
  DomainSpecificModuleConfigurationView moduleInfo=this.configurationManager.getModuleConfiguration(Module.BANK);
  assertEquals("String_Node_Str",moduleInfo.getPropertyValue("String_Node_Str"));
  this.configurationManager.setModuleProperty(Module.BANK,"String_Node_Str","String_Node_Str");
  moduleInfo=this.configurationManager.getModuleConfiguration(Module.BANK);
  assertEquals("String_Node_Str",moduleInfo.getPropertyValue("String_Node_Str"));
  verify(this.domainDAO,this.moduleDAO);
}
Program: 153902
Project: 153902
Buggy source:
public static void createDomain(String domain,String accessId,String accessKey,String hostedZoneId) throws Route53Exception {
  try {
    HTTPRequest request=new HTTPRequest(new URL(ROUTE53_SERVER + VERSION_SPEC + HOSTED_ZONE_COMMAND+ hostedZoneId),HTTPMethod.POST);
    String requestBody=generateRequestBody(domain);
    logger.fine(requestBody);
    request.setPayload(requestBody.getBytes());
    signRequest(request,accessId,accessKey);
    HTTPResponse response=urlFetchService.fetch(request);
    if (response.getResponseCode() != 200) {
      String out=new String(response.getContent());
      logger.fine("String_Node_Str" + domain + "String_Node_Str"+ out);
      throw new Route53Exception(out);
    }
  }
 catch (  Exception e) {
    logger.log(Level.SEVERE,"String_Node_Str" + e.getMessage(),e);
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
public static void createDomain(String domain,String accessId,String accessKey,String hostedZoneId) throws Route53Exception {
  try {
    HTTPRequest request=new HTTPRequest(new URL(ROUTE53_SERVER + VERSION_SPEC + HOSTED_ZONE_COMMAND+ hostedZoneId+ RRSET),HTTPMethod.POST);
    String requestBody=generateRequestBody(domain);
    logger.fine(requestBody);
    request.setPayload(requestBody.getBytes());
    signRequest(request,accessId,accessKey);
    HTTPResponse response=urlFetchService.fetch(request);
    if (response.getResponseCode() != 200) {
      String out=new String(response.getContent());
      logger.fine("String_Node_Str" + domain + "String_Node_Str"+ out);
      throw new Route53Exception(out);
    }
  }
 catch (  Exception e) {
    logger.log(Level.SEVERE,"String_Node_Str" + e.getMessage(),e);
    throw new RuntimeException(e);
  }
}
Program: 153903
Project: 153903
Buggy source:
protected static String sign(String content,String key) throws InvalidKeySpecException, NoSuchAlgorithmException, InvalidKeyException {
  SecretKey skey=new SecretKeySpec(key.getBytes(),KEY_ALGORITHM);
  Mac mac=Mac.getInstance(MAC_ALGORITHM);
  mac.init(skey);
  mac.update(content.getBytes());
  return new String(Base64.encodeBase64(mac.doFinal()));
}

Fixed version (ground truth):
protected static String sign(String content,String key) throws InvalidKeySpecException, NoSuchAlgorithmException, InvalidKeyException, IllegalStateException {
  Mac mac=Mac.getInstance(MAC_ALGORITHM);
  SecretKey skey=new SecretKeySpec(key.getBytes(),KEY_ALGORITHM);
  mac.init(skey);
  mac.update(content.getBytes());
  return new String(Base64.encodeBase64((mac.doFinal())));
}
Program: 153904
Project: 153904
Buggy source:
protected static void signRequest(HTTPRequest request,String accessID,String key) throws IOException, InvalidKeyException, InvalidKeySpecException, NoSuchAlgorithmException {
  String date=fetchDate();
  logger.fine("String_Node_Str" + date);
  String sign=sign(date,key);
  String signature=AUTH_TOKEN.replace(ACCESS_ID_TOKEN,accessID);
  signature=signature.replace(SIGNATURE_TOKEN,sign);
  request.addHeader(new HTTPHeader(SUBMIT_DATE_HEADER,date));
  request.addHeader(new HTTPHeader(AUTHORIZATION_HEADER,signature));
  request.addHeader(new HTTPHeader("String_Node_Str","String_Node_Str"));
}

Fixed version (ground truth):
protected static void signRequest(HTTPRequest request,String accessID,String key) throws IOException, InvalidKeyException, InvalidKeySpecException, NoSuchAlgorithmException {
  String date=fetchDate();
  String sign=sign(date,key);
  String signature=AUTH_TOKEN.replace(ACCESS_ID_TOKEN,accessID);
  signature=signature.replace(SIGNATURE_TOKEN,sign);
  request.addHeader(new HTTPHeader(SUBMIT_DATE_HEADER,date));
  request.addHeader(new HTTPHeader(AUTHORIZATION_HEADER,signature));
  request.addHeader(new HTTPHeader("String_Node_Str","String_Node_Str"));
}
Program: 153905
Project: 153905
Buggy source:
protected static String fetchDate() throws IOException {
  HttpURLConnection connection=(HttpURLConnection)new URL(ROUTE53_SERVER + DATE_COMMAND).openConnection();
  if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {
    Map<String,List<String>> headers=connection.getHeaderFields();
    return new Date(connection.getHeaderFieldDate(FETCH_DATE_HEADER,0)).toGMTString();
  }
 else {
    return null;
  }
}

Fixed version (ground truth):
protected static String fetchDate() throws IOException {
  HttpURLConnection connection=(HttpURLConnection)new URL(ROUTE53_SERVER + DATE_COMMAND).openConnection();
  if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {
    return formatter.format(new Date(connection.getHeaderFieldDate(FETCH_DATE_HEADER,0)));
  }
 else {
    return null;
  }
}
Program: 153906
Project: 153906
Buggy source:
@Override public ActionResult doExecute(HttpServletRequest req,RenderContext renderContext,Resource resource,JCRSessionWrapper session,Map<String,List<String>> parameters,URLResolver urlResolver) throws Exception {
  JCRSessionWrapper jcrSessionWrapper=resource.getNode().getSession();
  JCRNodeWrapper node=resource.getNode();
  if (!node.hasNode("String_Node_Str")) {
    node.checkout();
    node=node.addNode("String_Node_Str","String_Node_Str");
  }
 else {
    node=node.getNode("String_Node_Str");
  }
  JCRNodeWrapper newNode=createNode(req,parameters,node,"String_Node_Str","String_Node_Str");
  jcrSessionWrapper.save();
  return new ActionResult(HttpServletResponse.SC_OK,newNode.getPath(),Render.serializeNodeToJSON(newNode));
}

Fixed version (ground truth):
@Override public ActionResult doExecute(HttpServletRequest req,RenderContext renderContext,Resource resource,JCRSessionWrapper session,Map<String,List<String>> parameters,URLResolver urlResolver) throws Exception {
  JCRSessionWrapper jcrSessionWrapper=resource.getNode().getSession();
  JCRNodeWrapper node=resource.getNode();
  if (!node.hasNode("String_Node_Str")) {
    node.checkout();
    node=node.addNode("String_Node_Str","String_Node_Str");
  }
 else {
    node=node.getNode("String_Node_Str");
  }
  JCRNodeWrapper newNode=createNode(req,parameters,node,"String_Node_Str","String_Node_Str",false);
  jcrSessionWrapper.save();
  return new ActionResult(HttpServletResponse.SC_OK,newNode.getPath(),Render.serializeNodeToJSON(newNode));
}
Program: 153908
Project: 153908
Buggy source:
public QuantityCellEditor(final CustomerTableModel tableModel){
  this.tableModel=tableModel;
  SpinnerNumberModel smodel=new SpinnerNumberModel(0,0,Integer.MAX_VALUE,1);
  buySpinner=new JSpinner(smodel);
  JFormattedTextField tf=((JSpinner.DefaultEditor)buySpinner.getEditor()).getTextField();
  tf.setFocusLostBehavior(JFormattedTextField.COMMIT);
}

Fixed version (ground truth):
public QuantityCellEditor(final CustomerTableModel tableModel){
  this.tableModel=tableModel;
  SpinnerNumberModel smodel=new SpinnerNumberModel(0,0,Integer.MAX_VALUE,1);
  buySpinner=new JSpinner(smodel);
  addCellEditorListener(this);
  final JFormattedTextField tf=((JSpinner.DefaultEditor)buySpinner.getEditor()).getTextField();
  tf.addKeyListener(new KeyAdapter(){
    @Override public void keyReleased(    KeyEvent e){
      try {
        tf.commitEdit();
      }
 catch (      ParseException e1) {
        tf.setValue(0);
        try {
          tf.commitEdit();
        }
 catch (        ParseException e2) {
        }
      }
    }
  }
);
}
Program: 153909
Project: 153909
Buggy source:
/** 
 * Gets the JVM Options used to launch the slave JVM.
 * @return
 */
public String getJvmOptions(){
  return jvmOptions;
}

Fixed version (ground truth):
/** 
 * Gets the JVM Options used to launch the slave JVM.
 * @return
 */
public String getJvmOptions(){
  return jvmOptions == null ? "String_Node_Str" : jvmOptions;
}
Program: 153910
Project: 153910
Buggy source:
private void reportEnvironment(StreamTaskListener listener) throws IOException {
  Session session=connection.openSession();
  try {
    session.execCommand("String_Node_Str");
    StreamGobbler out=new StreamGobbler(session.getStdout());
    StreamGobbler err=new StreamGobbler(session.getStderr());
    try {
      BufferedReader r1=new BufferedReader(new InputStreamReader(out));
      BufferedReader r2=new BufferedReader(new InputStreamReader(err));
      String line;
      outer:       for (      BufferedReader r : new BufferedReader[]{r1,r2}) {
        while (null != (line=r.readLine())) {
          listener.getLogger().println(line);
        }
      }
    }
  finally {
      out.close();
      err.close();
    }
  }
  finally {
    session.close();
  }
}

Fixed version (ground truth):
private void reportEnvironment(StreamTaskListener listener) throws IOException {
  listener.getLogger().println(Messages._SSHLauncher_RemoteUserEnvironment(getTimestamp()));
  Session session=connection.openSession();
  try {
    session.execCommand("String_Node_Str");
    StreamGobbler out=new StreamGobbler(session.getStdout());
    StreamGobbler err=new StreamGobbler(session.getStderr());
    try {
      BufferedReader r1=new BufferedReader(new InputStreamReader(out));
      BufferedReader r2=new BufferedReader(new InputStreamReader(err));
      String line;
      outer:       for (      BufferedReader r : new BufferedReader[]{r1,r2}) {
        while (null != (line=r.readLine())) {
          listener.getLogger().println(line);
        }
      }
    }
  finally {
      out.close();
      err.close();
      listener.getLogger().println();
    }
  }
  finally {
    session.close();
  }
}
Program: 153912
Project: 153912
Buggy source:
private String checkJavaVersion(StreamTaskListener listener,String javaCommand) throws IOException {
  listener.getLogger().println(Messages.SSHLauncher_CheckingDefaultJava(getTimestamp()));
  String line=null;
  Session session=connection.openSession();
  try {
    session.execCommand(javaCommand + "String_Node_Str");
    StreamGobbler out=new StreamGobbler(session.getStdout());
    StreamGobbler err=new StreamGobbler(session.getStderr());
    try {
      BufferedReader r1=new BufferedReader(new InputStreamReader(out));
      BufferedReader r2=new BufferedReader(new InputStreamReader(err));
      outer:       for (      BufferedReader r : new BufferedReader[]{r1,r2}) {
        while (null != (line=r.readLine())) {
          if (line.startsWith("String_Node_Str")) {
            break outer;
          }
        }
      }
    }
  finally {
      out.close();
      err.close();
    }
  }
  finally {
    session.close();
  }
  if (line == null || !line.startsWith("String_Node_Str")) {
    throw new IOException("String_Node_Str");
  }
  line=line.substring(line.indexOf('\"') + 1,line.lastIndexOf('\"'));
  listener.getLogger().println(Messages.SSHLauncher_JavaVersionResult(getTimestamp(),java,line));
  if (line.compareTo("String_Node_Str") < 0) {
    throw new IOException(Messages.SSHLauncher_NoJavaFound());
  }
  return javaCommand;
}

Fixed version (ground truth):
private String checkJavaVersion(StreamTaskListener listener,String javaCommand) throws IOException {
  listener.getLogger().println(Messages.SSHLauncher_CheckingDefaultJava(getTimestamp()));
  String line=null;
  Session session=connection.openSession();
  try {
    session.execCommand(javaCommand + "String_Node_Str");
    StreamGobbler out=new StreamGobbler(session.getStdout());
    StreamGobbler err=new StreamGobbler(session.getStderr());
    try {
      BufferedReader r1=new BufferedReader(new InputStreamReader(out));
      BufferedReader r2=new BufferedReader(new InputStreamReader(err));
      outer:       for (      BufferedReader r : new BufferedReader[]{r1,r2}) {
        while (null != (line=r.readLine())) {
          if (line.startsWith("String_Node_Str")) {
            break outer;
          }
        }
      }
    }
  finally {
      out.close();
      err.close();
    }
  }
  finally {
    session.close();
  }
  if (line == null || !line.startsWith("String_Node_Str")) {
    throw new IOException("String_Node_Str");
  }
  line=line.substring(line.indexOf('\"') + 1,line.lastIndexOf('\"'));
  listener.getLogger().println(Messages.SSHLauncher_JavaVersionResult(getTimestamp(),javaCommand,line));
  if (line.compareTo("String_Node_Str") < 0) {
    throw new IOException(Messages.SSHLauncher_NoJavaFound());
  }
  return javaCommand;
}
Program: 153913
Project: 153913
Buggy source:
/** 
 * Instantiates a new close frame.
 */
public CloseFrame(){
  FrameHeader header=FrameBuilderRfc6455.createFrameHeader(null,false,Opcode.CONNECTION_CLOSE);
  setHeader(header);
}

Fixed version (ground truth):
/** 
 * Instantiates a new close frame.
 */
public CloseFrame(){
  FrameHeader header=FrameBuilderRfc6455.createFrameHeader(0,false,Opcode.CONNECTION_CLOSE);
  setHeader(header);
}
Program: 153914
Project: 153914
Buggy source:
/** 
 * Instantiates a new ping frame.
 */
public PingFrame(){
  FrameHeader header=FrameBuilderRfc6455.createFrameHeader(null,false,Opcode.PING);
  setHeader(header);
}

Fixed version (ground truth):
/** 
 * Instantiates a new ping frame.
 */
public PingFrame(){
  FrameHeader header=FrameBuilderRfc6455.createFrameHeader(0,false,Opcode.PING);
  setHeader(header);
}
Program: 153915
Project: 153915
Buggy source:
/** 
 * Instantiates a new pong frame.
 */
public PongFrame(){
  FrameHeader header=FrameBuilderRfc6455.createFrameHeader(null,false,Opcode.PONG);
  setHeader(header);
}

Fixed version (ground truth):
/** 
 * Instantiates a new pong frame.
 */
public PongFrame(){
  FrameHeader header=FrameBuilderRfc6455.createFrameHeader(0,false,Opcode.PONG);
  setHeader(header);
}
Program: 153916
Project: 153916
Buggy source:
@Override protected void closeWebSocket() throws WebSocketException {
  pipeline.sendUpstream(this,null,new CloseFrame());
  transitionTo(State.CLOSING);
}

Fixed version (ground truth):
@Override protected void closeWebSocket() throws WebSocketException {
  transitionTo(State.CLOSING);
  pipeline.sendUpstream(this,null,new CloseFrame());
}
Program: 153917
Project: 153917
Buggy source:
@Override protected void closeWebSocket() throws WebSocketException {
  pipeline.sendUpstream(this,null,new CloseFrame());
  transitionTo(State.CLOSING);
}

Fixed version (ground truth):
@Override protected void closeWebSocket() throws WebSocketException {
  transitionTo(State.CLOSING);
  pipeline.sendUpstream(this,null,new CloseFrame());
}
Program: 153918
Project: 153918
Buggy source:
/** 
 * Gets the response header map.
 * @return the response header map
 */
public HttpHeader getResponseHeader(){
  if (isDone()) {
    return httpResponseHeaderParser.getResponseHeader();
  }
 else {
    throw new IllegalStateException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Gets the response header map.
 * @return the response header map
 */
public HttpHeader getResponseHeader(){
  return httpResponseHeaderParser.getResponseHeader();
}
Program: 153919
Project: 153919
Buggy source:
/** 
 * Gets the response status.
 * @return the response status
 */
public int getResponseStatus(){
  if (isDone()) {
    return responseStatus;
  }
 else {
    throw new IllegalStateException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Gets the response status.
 * @return the response status
 */
public int getResponseStatus(){
  return responseStatus;
}
Program: 153920
Project: 153920
Buggy source:
/** 
 * Gets the response header map.
 * @return the response header map
 */
public HttpHeader getResponseHeader(){
  if (isDone()) {
    return httpResponseHeaderParser.getResponseHeader();
  }
 else {
    throw new IllegalStateException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Gets the response header map.
 * @return the response header map
 */
public HttpHeader getResponseHeader(){
  return httpResponseHeaderParser.getResponseHeader();
}
Program: 153921
Project: 153921
Buggy source:
/** 
 * Gets the response status.
 * @return the response status
 */
public int getResponseStatus(){
  if (isDone()) {
    return responseStatus;
  }
 else {
    throw new IllegalStateException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Gets the response status.
 * @return the response status
 */
public int getResponseStatus(){
  return responseStatus;
}