nus-yam/ex-repair huggingface dataset:
Program: 189204
Project: 189204
Buggy source:
@Override protected void populateItem(ListItem<User> listItem){
  super.populateItem(listItem);
  final User user=listItem.getModelObject();
  if (user.isHiddenInTimeTracking()) {
    listItem.setVisible(false);
    return;
  }
  listItem.add(new Label("String_Node_Str",user.getFullnameOrUsername()));
  int estimate=0;
  int worked=0;
  int remaining=0;
  for (  Issue issue : issueSet) {
    if (issue.getAssignee() != null && issue.getAssignee().equals(user)) {
      if (issue.getTimeEstimate() != null && issue.getTimeEstimate().getHours() > 0) {
        double e=issue.getTimeEstimate().getHours();
        estimate+=e;
        if (burndown) {
          if (issue.getTimeRequired() != null) {
            remaining+=issue.getTimeRequired().getHours();
          }
        }
 else {
          if (issue.getTimeRequired() != null) {
            double r=issue.getTimeRequired().getHours();
            double delta=e - r;
            if (delta > 0) {
              remaining+=delta;
            }
          }
        }
      }
    }
    for (    DurationWorked dur : issue.getTimeWorked()) {
      if (user.equals(dur.getUser()) && dur.getWorked() != null) {
        worked+=dur.getWorked().getHours();
      }
    }
  }
  listItem.add(new Label("String_Node_Str",new Duration(estimate).toHoursWithFractionString()));
  listItem.add(new Label("String_Node_Str",new Duration(worked).toHoursWithFractionString()));
  listItem.add(new Label("String_Node_Str",new Duration(remaining).toHoursWithFractionString()));
}

Fixed version (ground truth):
@Override protected void populateItem(ListItem<User> listItem){
  super.populateItem(listItem);
  final User user=listItem.getModelObject();
  if (user.isHiddenInTimeTracking()) {
    listItem.setVisible(false);
    return;
  }
  listItem.add(new Label("String_Node_Str",user.getFullnameOrUsername()));
  double estimate=0;
  double worked=0;
  double remaining=0;
  for (  Issue issue : issueSet) {
    if (issue.getAssignee() != null && issue.getAssignee().equals(user)) {
      if (issue.getTimeEstimate() != null && issue.getTimeEstimate().getHours() > 0) {
        double e=issue.getTimeEstimate().getHours();
        estimate+=e;
        if (burndown) {
          if (issue.getTimeRequired() != null) {
            remaining+=issue.getTimeRequired().getHours();
          }
        }
 else {
          if (issue.getTimeRequired() != null) {
            double r=issue.getTimeRequired().getHours();
            double delta=e - r;
            if (delta > 0) {
              remaining+=delta;
            }
          }
        }
      }
    }
    for (    DurationWorked dur : issue.getTimeWorked()) {
      if (user.equals(dur.getUser()) && dur.getWorked() != null) {
        worked+=dur.getWorked().getHours();
      }
    }
  }
  listItem.add(new Label("String_Node_Str",new Duration(estimate).toHoursWithFractionString()));
  listItem.add(new Label("String_Node_Str",new Duration(worked).toHoursWithFractionString()));
  listItem.add(new Label("String_Node_Str",new Duration(remaining).toHoursWithFractionString()));
}
Program: 189206
Project: 189206
Buggy source:
public String getObject(){
  if (type.equals("String_Node_Str")) {
    if (build.getTests() > 0) {
      return className + "String_Node_Str";
    }
    return className + "String_Node_Str";
  }
  if (type.equals("String_Node_Str")) {
    if (build.getFailures() > 0) {
      return className + "String_Node_Str";
    }
  }
 else   if (type.equals("String_Node_Str")) {
    if (build.getErrors() > 0) {
      return className + "String_Node_Str";
    }
  }
 else   if (type.equals("String_Node_Str")) {
    if (build.getWarnings() > 0) {
      return className + "String_Node_Str";
    }
  }
  return className + "String_Node_Str";
}

Fixed version (ground truth):
public String getObject(){
  if (type.equals("String_Node_Str")) {
    if (build.getTests() > 0) {
      return className + "String_Node_Str";
    }
    return className + "String_Node_Str";
  }
  if (type.equals("String_Node_Str")) {
    if (build.getFailures() > 0) {
      return className + "String_Node_Str";
    }
  }
 else   if (type.equals("String_Node_Str")) {
    if (build.getFailures() > 0 || build.getErrors() > 0) {
      return className + "String_Node_Str";
    }
  }
 else   if (type.equals("String_Node_Str")) {
    if (build.getErrors() > 0) {
      return className + "String_Node_Str";
    }
  }
 else   if (type.equals("String_Node_Str")) {
    if (build.getWarnings() > 0) {
      return className + "String_Node_Str";
    }
  }
  return className + "String_Node_Str";
}
Program: 189207
Project: 189207
Buggy source:
public CITestStatusModifier(final String className,final Build build,final String type){
  super("String_Node_Str",true,new Model<String>(){
    public String getObject(){
      if (type.equals("String_Node_Str")) {
        if (build.getTests() > 0) {
          return className + "String_Node_Str";
        }
        return className + "String_Node_Str";
      }
      if (type.equals("String_Node_Str")) {
        if (build.getFailures() > 0) {
          return className + "String_Node_Str";
        }
      }
 else       if (type.equals("String_Node_Str")) {
        if (build.getErrors() > 0) {
          return className + "String_Node_Str";
        }
      }
 else       if (type.equals("String_Node_Str")) {
        if (build.getWarnings() > 0) {
          return className + "String_Node_Str";
        }
      }
      return className + "String_Node_Str";
    }
  }
);
}

Fixed version (ground truth):
public CITestStatusModifier(final String className,final Build build,final String type){
  super("String_Node_Str",true,new Model<String>(){
    public String getObject(){
      if (type.equals("String_Node_Str")) {
        if (build.getTests() > 0) {
          return className + "String_Node_Str";
        }
        return className + "String_Node_Str";
      }
      if (type.equals("String_Node_Str")) {
        if (build.getFailures() > 0) {
          return className + "String_Node_Str";
        }
      }
 else       if (type.equals("String_Node_Str")) {
        if (build.getFailures() > 0 || build.getErrors() > 0) {
          return className + "String_Node_Str";
        }
      }
 else       if (type.equals("String_Node_Str")) {
        if (build.getErrors() > 0) {
          return className + "String_Node_Str";
        }
      }
 else       if (type.equals("String_Node_Str")) {
        if (build.getWarnings() > 0) {
          return className + "String_Node_Str";
        }
      }
      return className + "String_Node_Str";
    }
  }
);
}
Program: 189208
Project: 189208
Buggy source:
private void sendSubscriptions(Event event){
  String from=Manager.getStorageInstance().getGlobalConfiguration().getSmtpHost();
  if (StringUtil.isEmpty(from)) {
    from="String_Node_Str";
  }
  Session session=HibernateUtil.getCurrentSession();
  for (  User user : Manager.getSecurityInstance().getUsers()) {
    user=(User)session.load(StoredUser.class,user.getUsername());
    if (!user.isDisabled()) {
      continue;
    }
    if ((event.getUsername() == null || !event.getUsername().equals(user.getUsername())) && event.shouldNotify(user) && !user.isDisabled()) {
      if (!StringUtil.isEmpty(user.getEmail())) {
        getLoggerForComponent(getClass().getName()).info("String_Node_Str" + user.getUsername() + "String_Node_Str"+ user.getEmail());
        try {
          ((EmailNotifier)getNotifierList().get("String_Node_Str").newInstance()).sendEventEmail(event,user.getEmail(),from,EmailNotifier.FooterType.Subscription);
        }
 catch (        Exception e) {
          getLoggerForComponent(getClass().getName()).error("String_Node_Str",e);
        }
      }
 else {
        getLoggerForComponent(getClass().getName()).warn("String_Node_Str" + user.getUsername());
      }
    }
  }
}

Fixed version (ground truth):
private void sendSubscriptions(Event event){
  String from=Manager.getStorageInstance().getGlobalConfiguration().getSmtpHost();
  if (StringUtil.isEmpty(from)) {
    from="String_Node_Str";
  }
  Session session=HibernateUtil.getCurrentSession();
  for (  User user : Manager.getSecurityInstance().getUsers()) {
    user=(User)session.load(StoredUser.class,user.getUsername());
    if (user.isDisabled()) {
      continue;
    }
    if ((event.getUsername() == null || !event.getUsername().equals(user.getUsername())) && event.shouldNotify(user)) {
      if (!StringUtil.isEmpty(user.getEmail())) {
        getLoggerForComponent(getClass().getName()).info("String_Node_Str" + user.getUsername() + "String_Node_Str"+ user.getEmail());
        try {
          ((EmailNotifier)getNotifierList().get("String_Node_Str").newInstance()).sendEventEmail(event,user.getEmail(),from,EmailNotifier.FooterType.Subscription);
        }
 catch (        Exception e) {
          getLoggerForComponent(getClass().getName()).error("String_Node_Str",e);
        }
      }
 else {
        getLoggerForComponent(getClass().getName()).warn("String_Node_Str" + user.getUsername());
      }
    }
  }
}
Program: 189209
Project: 189209
Buggy source:
protected File getDerivedDataDirectory(Build build,File checkoutDir){
  String checkoutName=checkoutDir.getName();
  String buildHashWithDash=checkoutName.substring(checkoutName.indexOf('-'));
  File derivedData=new File(System.getProperty("String_Node_Str"),"String_Node_Str");
  for (  File derivedDataDir : derivedData.listFiles()) {
    if (isDerivedDataDirectoryForBuild(derivedDataDir,buildHashWithDash)) {
      return derivedDataDir;
    }
  }
  return null;
}

Fixed version (ground truth):
protected File getDerivedDataDirectory(Build build,File checkoutDir){
  String checkoutName=checkoutDir.getName();
  String buildHashWithDash=checkoutName.substring(checkoutName.indexOf('-'));
  File derivedData=new File(System.getProperty("String_Node_Str"),"String_Node_Str");
  File[] subdirs=derivedData.listFiles();
  if (subdirs == null || subdirs.length == 0) {
    return null;
  }
  for (  File derivedDataDir : subdirs) {
    if (isDerivedDataDirectoryForBuild(derivedDataDir,buildHashWithDash)) {
      return derivedDataDir;
    }
  }
  return null;
}
Program: 189210
Project: 189210
Buggy source:
private String getProjectFileValue(String line){
  String ret;
  int start=line.indexOf("String_Node_Str") + 1;
  int end=line.indexOf("String_Node_Str",start);
  if (end == -1) {
    ret=line.substring(start);
  }
 else {
    ret=line.substring(start,end);
  }
  ret=ret.trim();
  if (ret.length() > 2) {
    if (ret.charAt(0) == '"' && ret.charAt(ret.length() - 1) == '"') {
      ret=ret.substring(1,ret.length() - 1);
    }
  }
  return stripComments(ret);
}

Fixed version (ground truth):
private String getProjectFileValue(String line){
  String ret;
  int start=line.indexOf("String_Node_Str") + 1;
  int end=line.indexOf("String_Node_Str",start);
  if (end == -1) {
    ret=line.substring(start);
  }
 else {
    ret=line.substring(start,end);
  }
  ret=ret.trim();
  if (ret.length() > 2) {
    if (ret.charAt(0) == '"' && ret.charAt(ret.length() - 1) == '"') {
      ret=ret.substring(1,ret.length() - 1);
    }
  }
  return stripComments(replaceVariables(ret));
}
Program: 189211
Project: 189211
Buggy source:
public void layout(){
  super.layout();
  add(CSSPackageResource.getHeaderContribution(getClass(),"String_Node_Str"));
  final MilestoneGroup create=new MilestoneGroup("String_Node_Str",getProject());
  add(new EditMilestoneGroupForm("String_Node_Str",create,true,this){
    public void submitParent(){
      create.setCreated(new Date());
      ((MilestonesApplication)getHeadsUpApplication()).addMilestoneGroup(create);
      getHeadsUpApplication().addEvent(new CreateMilestoneGroupEvent(create,create.getProject(),CreateMilestoneGroup.this.getSession().getUser()));
    }
  }
);
}

Fixed version (ground truth):
public void layout(){
  super.layout();
  add(CSSPackageResource.getHeaderContribution(getClass(),"String_Node_Str"));
  final MilestoneGroup create=new MilestoneGroup("String_Node_Str",getProject());
  add(new EditMilestoneGroupForm("String_Node_Str",create,true,this){
    public void submitParent(){
      super.submitParent();
      create.setCreated(new Date());
      ((MilestonesApplication)getHeadsUpApplication()).addMilestoneGroup(create);
      getHeadsUpApplication().addEvent(new CreateMilestoneGroupEvent(create,create.getProject(),CreateMilestoneGroup.this.getSession().getUser()));
    }
  }
);
}
Program: 189212
Project: 189212
Buggy source:
public void submitParent(){
  create.setCreated(new Date());
  ((MilestonesApplication)getHeadsUpApplication()).addMilestoneGroup(create);
  getHeadsUpApplication().addEvent(new CreateMilestoneGroupEvent(create,create.getProject(),CreateMilestoneGroup.this.getSession().getUser()));
}

Fixed version (ground truth):
public void submitParent(){
  super.submitParent();
  create.setCreated(new Date());
  ((MilestonesApplication)getHeadsUpApplication()).addMilestoneGroup(create);
  getHeadsUpApplication().addEvent(new CreateMilestoneGroupEvent(create,create.getProject(),CreateMilestoneGroup.this.getSession().getUser()));
}
Program: 189213
Project: 189213
Buggy source:
public void layout(){
  super.layout();
  add(CSSPackageResource.getHeaderContribution(getClass(),"String_Node_Str"));
  name=getPageParameters().getString("String_Node_Str");
  MilestoneGroup group=MilestonesApplication.getMilestoneGroup(name,getProject());
  if (group == null) {
    notFoundError();
    return;
  }
  addLink(new BookmarkableMenuLink(getPageClass("String_Node_Str"),getPageParameters(),"String_Node_Str"));
  final MilestoneGroup finalGroup=group;
  add(new EditMilestoneGroupForm("String_Node_Str",finalGroup,false,this){
    public void submitParent(){
      getHeadsUpApplication().addEvent(new UpdateMilestoneGroupEvent(finalGroup,finalGroup.getProject(),EditMilestoneGroup.this.getSession().getUser()));
    }
  }
);
}

Fixed version (ground truth):
public void layout(){
  super.layout();
  add(CSSPackageResource.getHeaderContribution(getClass(),"String_Node_Str"));
  name=getPageParameters().getString("String_Node_Str");
  MilestoneGroup group=MilestonesApplication.getMilestoneGroup(name,getProject());
  if (group == null) {
    notFoundError();
    return;
  }
  addLink(new BookmarkableMenuLink(getPageClass("String_Node_Str"),getPageParameters(),"String_Node_Str"));
  final MilestoneGroup finalGroup=group;
  add(new EditMilestoneGroupForm("String_Node_Str",finalGroup,false,this){
    public void submitParent(){
      super.submitParent();
      getHeadsUpApplication().addEvent(new UpdateMilestoneGroupEvent(finalGroup,finalGroup.getProject(),EditMilestoneGroup.this.getSession().getUser()));
    }
  }
);
}
Program: 189214
Project: 189214
Buggy source:
public void submitParent(){
  getHeadsUpApplication().addEvent(new UpdateMilestoneGroupEvent(finalGroup,finalGroup.getProject(),EditMilestoneGroup.this.getSession().getUser()));
}

Fixed version (ground truth):
public void submitParent(){
  super.submitParent();
  getHeadsUpApplication().addEvent(new UpdateMilestoneGroupEvent(finalGroup,finalGroup.getProject(),EditMilestoneGroup.this.getSession().getUser()));
}
Program: 189216
Project: 189216
Buggy source:
@Override protected void populateItem(ListItem<MilestoneGroup> listItem){
  MilestoneGroup group=listItem.getModelObject();
  PageParameters params=getProjectPageParameters();
  params.add("String_Node_Str",group.getName());
  BookmarkablePageLink nameLink=new BookmarkablePageLink<ViewMilestoneGroup>("String_Node_Str",ViewMilestoneGroup.class,params);
  nameLink.add(new Label("String_Node_Str",group.getName()));
  listItem.add(nameLink);
  double part=DurationWorkedUtil.getMilestoneGroupCompleteness(group);
  int percent=(int)(part * 100);
  Panel panel=new PercentagePanel("String_Node_Str",percent);
  listItem.add(panel);
  SortableEntityProvider<Milestone> provider=new GroupedMilestoneProvider(group,filter);
  listItem.add(new MilestoneListPanel("String_Node_Str",provider,Milestones.this,hideProject));
}

Fixed version (ground truth):
@Override protected void populateItem(ListItem<MilestoneGroup> listItem){
  MilestoneGroup group=listItem.getModelObject();
  PageParameters params=getProjectPageParameters();
  params.add("String_Node_Str",group.getName());
  BookmarkablePageLink nameLink=new BookmarkablePageLink("String_Node_Str",getPageClass("String_Node_Str"),params);
  nameLink.add(new Label("String_Node_Str",group.getName()));
  listItem.add(nameLink);
  double part=DurationWorkedUtil.getMilestoneGroupCompleteness(group);
  int percent=(int)(part * 100);
  Panel panel=new PercentagePanel("String_Node_Str",percent);
  listItem.add(panel);
  SortableEntityProvider<Milestone> provider=new GroupedMilestoneProvider(group,filter);
  listItem.add(new MilestoneListPanel("String_Node_Str",provider,Milestones.this,hideProject));
}
Program: 189218
Project: 189218
Buggy source:
protected static void appendXcodeCommands(PropertyTree config,ArrayList<String> commands,String overrideConfig){
  String targetName=config.getProperty(CIApplication.CONFIGURATION_XCODE_TARGET.getKey(),(String)CIApplication.CONFIGURATION_XCODE_TARGET.getDefault());
  String sdkName=config.getProperty(CIApplication.CONFIGURATION_XCODE_SDK.getKey(),(String)CIApplication.CONFIGURATION_XCODE_SDK.getDefault());
  commands.add("String_Node_Str");
  if (overrideConfig != null) {
    commands.add("String_Node_Str");
    commands.add(overrideConfig);
  }
 else {
    String confName=config.getProperty(CIApplication.CONFIGURATION_XCODE_CONFIG.getKey(),(String)CIApplication.CONFIGURATION_XCODE_CONFIG.getDefault());
    if (!StringUtil.isEmpty(confName)) {
      commands.add("String_Node_Str");
      commands.add(confName);
    }
  }
  if (!StringUtil.isEmpty(targetName)) {
    commands.add("String_Node_Str");
    commands.add(targetName);
  }
  if (!StringUtil.isEmpty(sdkName)) {
    commands.add("String_Node_Str");
    commands.add(sdkName);
  }
}

Fixed version (ground truth):
protected static void appendXcodeCommands(Project project,PropertyTree config,ArrayList<String> commands,File dir,String overrideConfig){
  boolean buildWorkspace=config.getProperty(CIApplication.CONFIGURATION_XCODE_BUILD_WORKSPACE.getKey(),(String)CIApplication.CONFIGURATION_XCODE_SDK.getDefault()).equals("String_Node_Str");
  String sdkName=config.getProperty(CIApplication.CONFIGURATION_XCODE_SDK.getKey(),(String)CIApplication.CONFIGURATION_XCODE_SDK.getDefault());
  commands.add("String_Node_Str");
  if (buildWorkspace) {
    setupWorkspaceCommand(project,config,commands,dir);
  }
 else {
    setupProjectCommand(config,commands,overrideConfig);
  }
  if (overrideConfig != null) {
    commands.add("String_Node_Str");
    commands.add(overrideConfig);
  }
 else {
    String confName=config.getProperty(CIApplication.CONFIGURATION_XCODE_CONFIG.getKey(),(String)CIApplication.CONFIGURATION_XCODE_CONFIG.getDefault());
    if (!StringUtil.isEmpty(confName)) {
      commands.add("String_Node_Str");
      commands.add(confName);
    }
  }
  if (!StringUtil.isEmpty(sdkName)) {
    commands.add("String_Node_Str");
    commands.add(sdkName);
  }
  commands.add("String_Node_Str");
}
Program: 189221
Project: 189221
Buggy source:
protected void submitChild(){
  if (getIssue().getAssignee() != null && !getIssue().getWatchers().contains(getIssue().getAssignee())) {
    getIssue().getWatchers().add(getIssue().getAssignee());
  }
  getIssue().setStatus(Issue.STATUS_ASSIGNED);
}

Fixed version (ground truth):
protected void submitChild(Comment comment){
  if (getIssue().getAssignee() != null && !getIssue().getWatchers().contains(getIssue().getAssignee())) {
    getIssue().getWatchers().add(getIssue().getAssignee());
  }
  getIssue().setStatus(Issue.STATUS_ASSIGNED);
}
Program: 189222
Project: 189222
Buggy source:
protected void submitChild(){
  getIssue().setStatus(Issue.STATUS_CLOSED);
}

Fixed version (ground truth):
protected void submitChild(Comment comment){
  getIssue().setStatus(Issue.STATUS_CLOSED);
}
Program: 189223
Project: 189223
Buggy source:
@Override protected void submitChild(){
  getIssue().getAttachments().add(attachmentPanel.getAttachment());
}

Fixed version (ground truth):
@Override protected void submitChild(Comment comment){
  getIssue().getAttachments().add(attachmentPanel.getAttachment());
}
Program: 189224
Project: 189224
Buggy source:
protected void submitChild(){
}

Fixed version (ground truth):
protected void submitChild(Comment comment){
}
Program: 189225
Project: 189225
Buggy source:
public void onSubmit(){
  issue=(Issue)((HibernateStorage)getStorage()).getHibernateSession().merge(issue);
  submitChild();
  Date now=new Date();
  if (create.getComment() != null) {
    create.setUser(CreateComment.this.getSession().getUser());
    create.setCreated(now);
    ((HibernateStorage)getStorage()).save(create);
    issue.getComments().add(create);
  }
  if (issue.getStatus() < Issue.STATUS_FEEDBACK) {
    issue.setStatus(Issue.STATUS_FEEDBACK);
  }
  issue.setUpdated(now);
  getHeadsUpApplication().addEvent(getUpdateEvent(create));
  setResponsePage(getPageClass("String_Node_Str"),getPageParameters());
}

Fixed version (ground truth):
public void onSubmit(){
  issue=(Issue)((HibernateStorage)getStorage()).getHibernateSession().merge(issue);
  Date now=new Date();
  if (create.getComment() != null) {
    create.setUser(CreateComment.this.getSession().getUser());
    create.setCreated(now);
    ((HibernateStorage)getStorage()).save(create);
    if (!childWillConsumeComment()) {
      issue.getComments().add(create);
    }
  }
  submitChild(create);
  if (issue.getStatus() < Issue.STATUS_FEEDBACK) {
    issue.setStatus(Issue.STATUS_FEEDBACK);
  }
  issue.setUpdated(now);
  getHeadsUpApplication().addEvent(getUpdateEvent(create));
  setResponsePage(getPageClass("String_Node_Str"),getPageParameters());
}
Program: 189226
Project: 189226
Buggy source:
protected void submitChild(){
  duration.setUser(getSession().getUser());
  duration.setIssue(getIssue());
  ((HibernateStorage)getStorage()).save(duration);
  getIssue().getTimeWorked().add(duration);
  boolean timeBurndown=Boolean.parseBoolean(getProject().getConfigurationValue(StoredProject.CONFIGURATION_TIMETRACKING_BURNDOWN));
  if (timeBurndown) {
    duration.setUpdatedRequired(getIssue().getTimeRequired());
  }
 else {
    double hours=0;
    if (getIssue().getTimeRequired() == null) {
      if (getIssue().getTimeEstimate() != null) {
        hours=getIssue().getTimeEstimate().getHours();
      }
    }
 else {
      hours=getIssue().getTimeRequired().getHours();
    }
    hours+=duration.getWorked().getHours();
    Duration required=new Duration(hours);
    duration.setUpdatedRequired(required);
    getIssue().setTimeRequired(required);
  }
  if (getIssue().getAssignee() == null) {
    getIssue().setAssignee(getSession().getUser());
    getIssue().getWatchers().add(getSession().getUser());
  }
}

Fixed version (ground truth):
protected void submitChild(Comment comment){
  duration.setUser(getSession().getUser());
  duration.setIssue(getIssue());
  duration.setComment(comment);
  ((HibernateStorage)getStorage()).save(duration);
  getIssue().getTimeWorked().add(duration);
  boolean timeBurndown=Boolean.parseBoolean(getProject().getConfigurationValue(StoredProject.CONFIGURATION_TIMETRACKING_BURNDOWN));
  if (timeBurndown) {
    duration.setUpdatedRequired(getIssue().getTimeRequired());
  }
 else {
    double hours=0;
    if (getIssue().getTimeRequired() == null) {
      if (getIssue().getTimeEstimate() != null) {
        hours=getIssue().getTimeEstimate().getHours();
      }
    }
 else {
      hours=getIssue().getTimeRequired().getHours();
    }
    hours+=duration.getWorked().getHours();
    Duration required=new Duration(hours);
    duration.setUpdatedRequired(required);
    getIssue().setTimeRequired(required);
  }
  if (getIssue().getAssignee() == null) {
    getIssue().setAssignee(getSession().getUser());
    getIssue().getWatchers().add(getSession().getUser());
  }
}
Program: 189227
Project: 189227
Buggy source:
protected void submitChild(){
  getIssue().setResolution(0);
  getIssue().setReopened(getIssue().getReopened() + 1);
  getIssue().setStatus(Issue.STATUS_REOPENED);
}

Fixed version (ground truth):
protected void submitChild(Comment comment){
  getIssue().setResolution(0);
  getIssue().setReopened(getIssue().getReopened() + 1);
  getIssue().setStatus(Issue.STATUS_REOPENED);
}
Program: 189230
Project: 189230
Buggy source:
private boolean isSessionUserAssignedToIssue(Issue issue){
  return issue.getAssignee().equals(getSessionUser());
}

Fixed version (ground truth):
private boolean isSessionUserAssignedToIssue(Issue issue){
  return issue.getAssignee() != null && issue.getAssignee().equals(getSessionUser());
}
Program: 189231
Project: 189231
Buggy source:
private void addDropIssueButton(final Issue issue){
  final Form form=new Form("String_Node_Str");
  Button button=new Button("String_Node_Str"){
    @Override public void onSubmit(){
      super.onSubmit();
      issue.setAssignee(null);
      issue.getWatchers().remove(getSessionUser());
      issue.setStatus(Issue.STATUS_NEW);
      issue.setUpdated(new Date());
      Session session=((HibernateStorage)Manager.getStorageInstance()).getHibernateSession();
      Transaction tx=session.beginTransaction();
      session.update(issue);
      tx.commit();
      setResponsePage(ViewIssue.class,getPage().getPageParameters());
    }
  }
;
  add(form.add(button.setDefaultFormProcessing(false)));
}

Fixed version (ground truth):
private void addDropIssueButton(final Issue issue){
  final Form form=new Form("String_Node_Str");
  Button button=new Button("String_Node_Str"){
    @Override public void onSubmit(){
      super.onSubmit();
      issue.setAssignee(null);
      issue.getWatchers().remove(getSessionUser());
      issue.setStatus(Issue.STATUS_NEW);
      issue.setUpdated(new Date());
      Session session=((HibernateStorage)Manager.getStorageInstance()).getHibernateSession();
      Transaction tx=session.beginTransaction();
      session.update(issue);
      tx.commit();
      setResponsePage(ViewIssue.class,getPage().getPageParameters());
      ApplicationPageMapper.get().getApplication("String_Node_Str").addEvent(new UpdateIssueEvent(issue,issue.getProject(),getSessionUser(),"String_Node_Str"));
    }
  }
;
  add(form.add(button.setDefaultFormProcessing(false)));
}
Program: 189233
Project: 189233
Buggy source:
@Override public void onSubmit(){
  super.onSubmit();
  issue.setAssignee(null);
  issue.getWatchers().remove(getSessionUser());
  issue.setStatus(Issue.STATUS_NEW);
  issue.setUpdated(new Date());
  Session session=((HibernateStorage)Manager.getStorageInstance()).getHibernateSession();
  Transaction tx=session.beginTransaction();
  session.update(issue);
  tx.commit();
  setResponsePage(ViewIssue.class,getPage().getPageParameters());
}

Fixed version (ground truth):
@Override public void onSubmit(){
  super.onSubmit();
  issue.setAssignee(null);
  issue.getWatchers().remove(getSessionUser());
  issue.setStatus(Issue.STATUS_NEW);
  issue.setUpdated(new Date());
  Session session=((HibernateStorage)Manager.getStorageInstance()).getHibernateSession();
  Transaction tx=session.beginTransaction();
  session.update(issue);
  tx.commit();
  setResponsePage(ViewIssue.class,getPage().getPageParameters());
  ApplicationPageMapper.get().getApplication("String_Node_Str").addEvent(new UpdateIssueEvent(issue,issue.getProject(),getSessionUser(),"String_Node_Str"));
}
Program: 189235
Project: 189235
Buggy source:
private String renderComment(final Comment comment){
  String content=new RenderUtil(){
    public Panel getPanel(){
      return new CommentPanel(RenderUtil.PANEL_ID,comment,getProject());
    }
  }
.getRenderedContent();
  return "String_Node_Str" + content + "String_Node_Str";
}

Fixed version (ground truth):
private String renderComment(final Comment comment){
  if (comment == null) {
    return "String_Node_Str";
  }
  String content=new RenderUtil(){
    public Panel getPanel(){
      return new CommentPanel(RenderUtil.PANEL_ID,comment,getProject());
    }
  }
.getRenderedContent();
  return "String_Node_Str" + content + "String_Node_Str";
}
Program: 189236
Project: 189236
Buggy source:
private String renderComment(final Comment comment){
  String content=new RenderUtil(){
    public Panel getPanel(){
      return new CommentPanel(RenderUtil.PANEL_ID,comment,getProject());
    }
  }
.getRenderedContent();
  return "String_Node_Str" + content + "String_Node_Str";
}

Fixed version (ground truth):
private String renderComment(final Comment comment){
  if (comment == null) {
    return "String_Node_Str";
  }
  String content=new RenderUtil(){
    public Panel getPanel(){
      return new CommentPanel(RenderUtil.PANEL_ID,comment,getProject());
    }
  }
.getRenderedContent();
  return "String_Node_Str" + content + "String_Node_Str";
}
Program: 189237
Project: 189237
Buggy source:
private void sendSubscriptions(Event event){
  String from=Manager.getStorageInstance().getGlobalConfiguration().getSmtpHost();
  if (StringUtil.isEmpty(from)) {
    from="String_Node_Str";
  }
  Session session=HibernateUtil.getCurrentSession();
  for (  User user : Manager.getSecurityInstance().getUsers()) {
    user=(User)session.load(StoredUser.class,user.getUsername());
    if ((event.getUsername() == null || !event.getUsername().equals(user.getUsername())) && event.shouldNotify(user)) {
      if (!StringUtil.isEmpty(user.getEmail())) {
        getLoggerForComponent(getClass().getName()).info("String_Node_Str" + user.getUsername() + "String_Node_Str"+ user.getEmail());
        try {
          ((EmailNotifier)getNotifierList().get("String_Node_Str").newInstance()).sendEventEmail(event,user.getEmail(),from);
        }
 catch (        Exception e) {
          getLoggerForComponent(getClass().getName()).error("String_Node_Str",e);
        }
      }
 else {
        getLoggerForComponent(getClass().getName()).warn("String_Node_Str" + user.getUsername());
      }
    }
  }
}

Fixed version (ground truth):
private void sendSubscriptions(Event event){
  String from=Manager.getStorageInstance().getGlobalConfiguration().getSmtpHost();
  if (StringUtil.isEmpty(from)) {
    from="String_Node_Str";
  }
  Session session=HibernateUtil.getCurrentSession();
  for (  User user : Manager.getSecurityInstance().getUsers()) {
    user=(User)session.load(StoredUser.class,user.getUsername());
    if ((event.getUsername() == null || !event.getUsername().equals(user.getUsername())) && event.shouldNotify(user)) {
      if (!StringUtil.isEmpty(user.getEmail())) {
        getLoggerForComponent(getClass().getName()).info("String_Node_Str" + user.getUsername() + "String_Node_Str"+ user.getEmail());
        try {
          ((EmailNotifier)getNotifierList().get("String_Node_Str").newInstance()).sendEventEmail(event,user.getEmail(),from,EmailNotifier.FooterType.Subscription);
        }
 catch (        Exception e) {
          getLoggerForComponent(getClass().getName()).error("String_Node_Str",e);
        }
      }
 else {
        getLoggerForComponent(getClass().getName()).warn("String_Node_Str" + user.getUsername());
      }
    }
  }
}
Program: 189239
Project: 189239
Buggy source:
public void eventAdded(Event event){
  sendEventEmail(event,getTo(),getFrom());
}

Fixed version (ground truth):
public void eventAdded(Event event){
  sendEventEmail(event,getTo(),getFrom(),FooterType.Notification);
}
Program: 189240
Project: 189240
Buggy source:
@Override public Iterator<Milestone> iterator(int start,int limit){
  if (getSort() != null && !getSort().getProperty().equals("String_Node_Str")) {
    return super.iterator(start,limit);
  }
  Iterator<Milestone> iter=super.iterator(0,size());
  List<Milestone> all=new ArrayList<Milestone>();
  while (iter.hasNext()) {
    all.add(iter.next());
  }
  Collections.sort(all,new MilestoneComparator());
  return all.subList(start,limit).iterator();
}

Fixed version (ground truth):
@Override public Iterator<Milestone> iterator(int start,int limit){
  if (getSort() != null && !getSort().getProperty().equals("String_Node_Str")) {
    return super.iterator(start,limit);
  }
  Iterator<Milestone> iter=super.iterator(0,size());
  List<Milestone> all=new ArrayList<Milestone>();
  while (iter.hasNext()) {
    all.add(iter.next());
  }
  Collections.sort(all,new MilestoneComparator());
  return all.subList(start,start + limit).iterator();
}
Program: 189241
Project: 189241
Buggy source:
public static SortableEntityProvider<Milestone> getMilestoneProviderForProject(final Project project,final MilestoneFilterPanel filter){
  return new SortableEntityProvider<Milestone>(){
    @Override protected Criteria createCriteria(){
      Session session=((HibernateStorage)Manager.getStorageInstance()).getHibernateSession();
      Criteria c=session.createCriteria(Milestone.class);
      c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
      Criterion completed=filter.getCompletedCriterion();
      if (completed != null) {
        c.add(completed);
      }
      Criterion dueQuery=filter.getDueCriterion();
      if (dueQuery != null) {
        c.add(dueQuery);
      }
      c.add(Restrictions.eq("String_Node_Str",project));
      return c;
    }
    @Override protected List<Order> getDefaultOrder(){
      return Arrays.asList(Order.asc("String_Node_Str"),Order.desc("String_Node_Str"));
    }
    @Override public String getCountProperty(){
      return "String_Node_Str";
    }
    @Override public Iterator<Milestone> iterator(    int start,    int limit){
      if (getSort() != null && !getSort().getProperty().equals("String_Node_Str")) {
        return super.iterator(start,limit);
      }
      Iterator<Milestone> iter=super.iterator(0,size());
      List<Milestone> all=new ArrayList<Milestone>();
      while (iter.hasNext()) {
        all.add(iter.next());
      }
      Collections.sort(all,new MilestoneComparator());
      return all.subList(start,limit).iterator();
    }
  }
;
}

Fixed version (ground truth):
public static SortableEntityProvider<Milestone> getMilestoneProviderForProject(final Project project,final MilestoneFilterPanel filter){
  return new SortableEntityProvider<Milestone>(){
    @Override protected Criteria createCriteria(){
      Session session=((HibernateStorage)Manager.getStorageInstance()).getHibernateSession();
      Criteria c=session.createCriteria(Milestone.class);
      c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
      Criterion completed=filter.getCompletedCriterion();
      if (completed != null) {
        c.add(completed);
      }
      Criterion dueQuery=filter.getDueCriterion();
      if (dueQuery != null) {
        c.add(dueQuery);
      }
      c.add(Restrictions.eq("String_Node_Str",project));
      return c;
    }
    @Override protected List<Order> getDefaultOrder(){
      return Arrays.asList(Order.asc("String_Node_Str"),Order.desc("String_Node_Str"));
    }
    @Override public String getCountProperty(){
      return "String_Node_Str";
    }
    @Override public Iterator<Milestone> iterator(    int start,    int limit){
      if (getSort() != null && !getSort().getProperty().equals("String_Node_Str")) {
        return super.iterator(start,limit);
      }
      Iterator<Milestone> iter=super.iterator(0,size());
      List<Milestone> all=new ArrayList<Milestone>();
      while (iter.hasNext()) {
        all.add(iter.next());
      }
      Collections.sort(all,new MilestoneComparator());
      return all.subList(start,start + limit).iterator();
    }
  }
;
}
Program: 189242
Project: 189242
Buggy source:
public static SortableEntityProvider<Milestone> getMilestoneProvider(final MilestoneFilterPanel filter){
  return new SortableEntityProvider<Milestone>(){
    @Override protected Criteria createCriteria(){
      Session session=((HibernateStorage)Manager.getStorageInstance()).getHibernateSession();
      Criteria c=session.createCriteria(Milestone.class);
      c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
      Criterion completed=filter.getCompletedCriterion();
      if (completed != null) {
        c.add(completed);
      }
      Criterion dueQuery=filter.getDueCriterion();
      if (dueQuery != null) {
        c.add(dueQuery);
      }
      return c;
    }
    @Override protected List<Order> getDefaultOrder(){
      return Arrays.asList(Order.asc("String_Node_Str"),Order.desc("String_Node_Str"));
    }
    @Override public String getCountProperty(){
      return "String_Node_Str";
    }
    @Override public Iterator<Milestone> iterator(    int start,    int limit){
      if (getSort() != null && !getSort().getProperty().equals("String_Node_Str")) {
        return super.iterator(start,limit);
      }
      Iterator<Milestone> iter=super.iterator(0,size());
      List<Milestone> all=new ArrayList<Milestone>();
      while (iter.hasNext()) {
        all.add(iter.next());
      }
      Collections.sort(all,new MilestoneComparator(getSort() == null || getSort().isAscending()));
      return all.subList(start,limit).iterator();
    }
  }
;
}

Fixed version (ground truth):
public static SortableEntityProvider<Milestone> getMilestoneProvider(final MilestoneFilterPanel filter){
  return new SortableEntityProvider<Milestone>(){
    @Override protected Criteria createCriteria(){
      Session session=((HibernateStorage)Manager.getStorageInstance()).getHibernateSession();
      Criteria c=session.createCriteria(Milestone.class);
      c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);
      Criterion completed=filter.getCompletedCriterion();
      if (completed != null) {
        c.add(completed);
      }
      Criterion dueQuery=filter.getDueCriterion();
      if (dueQuery != null) {
        c.add(dueQuery);
      }
      return c;
    }
    @Override protected List<Order> getDefaultOrder(){
      return Arrays.asList(Order.asc("String_Node_Str"),Order.desc("String_Node_Str"));
    }
    @Override public String getCountProperty(){
      return "String_Node_Str";
    }
    @Override public Iterator<Milestone> iterator(    int start,    int limit){
      if (getSort() != null && !getSort().getProperty().equals("String_Node_Str")) {
        return super.iterator(start,limit);
      }
      Iterator<Milestone> iter=super.iterator(0,size());
      List<Milestone> all=new ArrayList<Milestone>();
      while (iter.hasNext()) {
        all.add(iter.next());
      }
      Collections.sort(all,new MilestoneComparator(getSort() == null || getSort().isAscending()));
      return all.subList(start,start + limit).iterator();
    }
  }
;
}
Program: 189248
Project: 189248
Buggy source:
protected void layoutChild(Form form){
  setSubmitLabel("String_Node_Str");
  form.add(attachmentPanel=new AttachmentPanel("String_Node_Str",this));
}

Fixed version (ground truth):
protected void layoutChild(Form form){
  setSubmitLabel("String_Node_Str");
  form.add(attachmentPanel=new AttachmentPanel("String_Node_Str",this));
  attachmentPanel.setRequired(true);
}
Program: 189249
Project: 189249
Buggy source:
protected void layoutChild(Form form){
  form.add(attachmentPanel=new AttachmentPanel("String_Node_Str",this));
  setSubmitLabel("String_Node_Str");
}

Fixed version (ground truth):
protected void layoutChild(Form form){
  form.add(attachmentPanel=new AttachmentPanel("String_Node_Str",this));
  attachmentPanel.setRequired(true);
  setSubmitLabel("String_Node_Str");
}
Program: 189250
Project: 189250
Buggy source:
/** 
 * Cleanup after a debug running - this means removing any bundles from the cache that were loaded from the debug area.
 */
protected static void cleanDebug(){
  File cache=new File("String_Node_Str");
  for (  File bundle : cache.listFiles()) {
    if (!bundle.isDirectory()) {
      continue;
    }
    File location=new File(bundle,"String_Node_Str");
    if (!location.exists()) {
      continue;
    }
    BufferedReader in=null;
    try {
      in=new BufferedReader(new FileReader(location));
      String jarFile=in.readLine();
      if (jarFile.startsWith("String_Node_Str")) {
        jarFile=jarFile.substring(5);
      }
      if (new File(jarFile).getParentFile().getName().equals("String_Node_Str")) {
        Main.delete(bundle);
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
 finally {
      if (in != null) {
        try {
          in.close();
        }
 catch (        IOException e) {
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Cleanup after a debug running - this means removing any bundles from the cache that were loaded from the debug area.
 */
protected static void cleanDebug(){
  File cache=new File("String_Node_Str");
  for (  File bundle : cache.listFiles()) {
    if (!bundle.isDirectory()) {
      continue;
    }
    File location=new File(bundle,"String_Node_Str");
    if (!location.exists()) {
      continue;
    }
    BufferedReader in=null;
    boolean delete=false;
    try {
      in=new BufferedReader(new FileReader(location));
      String jarFile=in.readLine();
      if (jarFile.startsWith("String_Node_Str")) {
        jarFile=jarFile.substring(5);
      }
      if (new File(jarFile).getParentFile().getName().equals("String_Node_Str")) {
        delete=true;
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
 finally {
      if (in != null) {
        try {
          in.close();
        }
 catch (        IOException e) {
        }
      }
    }
    if (delete) {
      try {
        Main.delete(bundle);
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
  }
}
Program: 189251
Project: 189251
Buggy source:
public IModel model(Object o){
  return new CompoundPropertyModel(o);
}

Fixed version (ground truth):
public IModel<T> model(Object o){
  return new CompoundPropertyModel<T>(o);
}
Program: 189252
Project: 189252
Buggy source:
private void sendEmail(User user,Submission submission,Map<String,Object> data){
  String subject=(String)data.get("String_Node_Str");
  String templatedMessage=templateUtility.compileString((String)data.get("String_Node_Str"),submission);
  boolean sendRecipientEmail=data.get("String_Node_Str").equals("String_Node_Str");
  if (sendRecipientEmail) {
    boolean sendCCRecipientEmail=data.get("String_Node_Str").equals("String_Node_Str");
    SimpleMailMessage smm=new SimpleMailMessage();
    smm.setTo(((String)data.get("String_Node_Str")).split("String_Node_Str"));
    if (sendCCRecipientEmail) {
      smm.setCc(((String)data.get("String_Node_Str")).split("String_Node_Str"));
    }
    String preferedEmail=user.getSetting("String_Node_Str");
    user.getSetting("String_Node_Str");
    if (user.getSetting("String_Node_Str").equals("String_Node_Str")) {
      smm.setBcc(preferedEmail == null ? user.getEmail() : preferedEmail);
    }
    smm.setSubject(subject);
    smm.setText(templatedMessage);
    emailSender.send(smm);
  }
  actionLogRepo.createPublicLog(submission,user,subject + "String_Node_Str" + templatedMessage);
}

Fixed version (ground truth):
private void sendEmail(User user,Submission submission,Map<String,Object> data){
  String subject=(String)data.get("String_Node_Str");
  String templatedMessage=templateUtility.compileString((String)data.get("String_Node_Str"),submission);
  boolean sendRecipientEmail=(boolean)data.get("String_Node_Str");
  if (sendRecipientEmail) {
    boolean sendCCRecipientEmail=(boolean)data.get("String_Node_Str");
    SimpleMailMessage smm=new SimpleMailMessage();
    smm.setTo(((String)data.get("String_Node_Str")).split("String_Node_Str"));
    if (sendCCRecipientEmail) {
      smm.setCc(((String)data.get("String_Node_Str")).split("String_Node_Str"));
    }
    String preferredEmail=user.getSetting("String_Node_Str");
    user.getSetting("String_Node_Str");
    if (user.getSetting("String_Node_Str") != null && user.getSetting("String_Node_Str").equals("String_Node_Str")) {
      smm.setBcc(preferredEmail == null ? user.getEmail() : preferredEmail);
    }
    smm.setSubject(subject);
    smm.setText(templatedMessage);
    emailSender.send(smm);
  }
  actionLogRepo.createPublicLog(submission,user,subject + "String_Node_Str" + templatedMessage);
}
Program: 189253
Project: 189253
Buggy source:
@Transactional @RequestMapping(value="String_Node_Str") @PreAuthorize("String_Node_Str") public ApiResponse batchComment(@WeaverUser User user,@RequestBody Map<String,Object> data){
  submissionRepo.batchDynamicSubmissionQuery(user.getActiveFilter(),user.getSubmissionViewColumns()).forEach(sub -> {
    Map<String,Object> subMessage=new HashMap<String,Object>(data);
    if (data.get("String_Node_Str").equals("String_Node_Str") || data.get("String_Node_Str").equals("String_Node_Str")) {
      subMessage.put("String_Node_Str",findEmailValue(sub,subMessage.get("String_Node_Str").toString()));
      subMessage.put("String_Node_Str",findEmailValue(sub,subMessage.get("String_Node_Str").toString()));
    }
    addComment(user,sub.getId(),subMessage);
  }
);
  return new ApiResponse(SUCCESS);
}

Fixed version (ground truth):
@Transactional @RequestMapping(value="String_Node_Str") @PreAuthorize("String_Node_Str") public ApiResponse batchComment(@WeaverUser User user,@RequestBody Map<String,Object> data){
  submissionRepo.batchDynamicSubmissionQuery(user.getActiveFilter(),user.getSubmissionViewColumns()).forEach(sub -> {
    Map<String,Object> subMessage=new HashMap<String,Object>(data);
    if ((boolean)data.get("String_Node_Str") || (boolean)data.get("String_Node_Str")) {
      subMessage.put("String_Node_Str",findEmailValue(sub,subMessage.get("String_Node_Str").toString()));
      subMessage.put("String_Node_Str",findEmailValue(sub,subMessage.get("String_Node_Str").toString()));
    }
    addComment(user,sub.getId(),subMessage);
  }
);
  return new ApiResponse(SUCCESS);
}
Program: 189254
Project: 189254
Buggy source:
@ApiMapping("String_Node_Str") @ApiValidation(business={@ApiValidation.Business(value=RESET)}) public ApiResponse resetSetting(@ApiValidatedModel Configuration configuration){
  logger.info("String_Node_Str" + configuration.getName() + "String_Node_Str"+ configuration.getValue());
  configuration=configurationRepo.reset(configuration);
  simpMessagingTemplate.convertAndSend("String_Node_Str",new ApiResponse(SUCCESS,configurationRepo.findAll()));
  return new ApiResponse(SUCCESS,configuration);
}

Fixed version (ground truth):
@ApiMapping("String_Node_Str") @ApiValidation(business={@ApiValidation.Business(value=RESET)}) public ApiResponse resetSetting(@ApiValidatedModel Configuration configuration){
  logger.info("String_Node_Str" + configuration.getName() + "String_Node_Str"+ configuration.getValue());
  configuration=configurationRepo.reset(configuration);
  simpMessagingTemplate.convertAndSend("String_Node_Str",new ApiResponse(SUCCESS,configuration));
  return new ApiResponse(SUCCESS,configuration);
}
Program: 189255
Project: 189255
Buggy source:
@ApiMapping("String_Node_Str") @ApiValidation(business={@ApiValidation.Business(value=UPDATE),@ApiValidation.Business(value=NONEXISTS)}) public ApiResponse updateSetting(@ApiValidatedModel Configuration configuration){
  logger.info("String_Node_Str" + configuration.getName() + "String_Node_Str"+ configuration.getValue());
  configuration=configurationRepo.save(configuration);
  simpMessagingTemplate.convertAndSend("String_Node_Str",new ApiResponse(SUCCESS,configurationRepo.findAll()));
  return new ApiResponse(SUCCESS,configuration);
}

Fixed version (ground truth):
@ApiMapping("String_Node_Str") @ApiValidation(business={@ApiValidation.Business(value=UPDATE),@ApiValidation.Business(value=NONEXISTS)}) public ApiResponse updateSetting(@ApiValidatedModel Configuration configuration){
  logger.info("String_Node_Str" + configuration.getName() + "String_Node_Str"+ configuration.getValue());
  configuration=configurationRepo.save(configuration);
  simpMessagingTemplate.convertAndSend("String_Node_Str",new ApiResponse(SUCCESS,configuration));
  return new ApiResponse(SUCCESS,configuration);
}