nus-yam/ex-repair huggingface dataset:
Program: 61597
Project: 61597
Buggy source:
public List<String> retrieveRegressionTestCases(){
  String casesTest=ConfigurationProperties.properties.getProperty("String_Node_Str");
  String[] cases=casesTest.split("String_Node_Str");
  return Arrays.asList(cases);
}

Fixed version (ground truth):
/** 
 * Feed the list of test cases according to the definition POM/build.xml
 * @return 
 */
public List<String> retrieveRegressionTestCases(List<String> allTest){
  List<String> regressionCases=new ArrayList<String>();
  List<String> ignoreTestcases=retriveIgnoreTestCases();
  for (  String candidateTest : allTest) {
    CtSimpleType<?> type=MutationSupporter.getFactory().Type().get(candidateTest);
    if (type != null && (!type.getModifiers().contains(ModifierKind.ABSTRACT)) && !(type instanceof CtInterface) && isValidConstructor(type) && !(isIgnoredTestCase(type.getQualifiedName(),ignoreTestcases))) {
      regressionCases.add(type.getQualifiedName());
    }
  }
  return regressionCases;
}
Program: 61598
Project: 61598
Buggy source:
/** 
 * @param variant 
 * @param genList
 * @return
 */
protected List<Gen> getGenList(ProgramVariant variant){
  List<Gen> genList=variant.getGenList();
  String mode=ConfigurationProperties.getProperty("String_Node_Str");
  if ("String_Node_Str".equals(mode))   return genList;
  if ("String_Node_Str".equals(mode))   return getWeightGenList(genList);
  if ("String_Node_Str".equals(mode)) {
    List<Gen> shuffList=new ArrayList<Gen>(genList);
    Collections.shuffle(shuffList);
    return shuffList;
  }
  if ("String_Node_Str".equals(mode)) {
    int i=variant.getLastGenAnalyzed();
    if (i < genList.size()) {
      variant.setLastGenAnalyzed(i + 1);
      return genList.subList(i,i + 1);
    }
    return Collections.EMPTY_LIST;
  }
  return genList;
}

Fixed version (ground truth):
/** 
 * @param variant
 * @param genList
 * @return
 */
protected List<Gen> getGenList(ProgramVariant variant){
  List<Gen> genList=variant.getGenList();
  String mode=ConfigurationProperties.getProperty("String_Node_Str");
  if ("String_Node_Str".equals(mode))   return genList;
  if ("String_Node_Str".equals(mode))   return getWeightGenList(genList);
  if ("String_Node_Str".equals(mode)) {
    List<Gen> shuffList=new ArrayList<Gen>(genList);
    Collections.shuffle(shuffList);
    return shuffList;
  }
  if ("String_Node_Str".equals(mode)) {
    int i=variant.getLastGenAnalyzed();
    if (i < genList.size()) {
      variant.setLastGenAnalyzed(i + 1);
      return genList.subList(i,i + 1);
    }
    return Collections.EMPTY_LIST;
  }
  return genList;
}
Program: 61599
Project: 61599
Buggy source:
protected void showResults(int generation){
  log.info("String_Node_Str");
  if (!this.solutions.isEmpty()) {
    log.info("String_Node_Str");
    log.info("String_Node_Str" + projectFacade.getProperties().getInDir());
  }
 else {
    log.info("String_Node_Str");
  }
  log.info("String_Node_Str" + this.solutions.size());
  for (  ProgramVariant variant : solutions) {
    log.info("String_Node_Str" + variant.getFitness() + "String_Node_Str"+ variant);
  }
  log.info("String_Node_Str");
  for (  ProgramVariant variant : variants) {
    log.info("String_Node_Str" + variant.getFitness() + "String_Node_Str"+ variant);
  }
  if (!solutions.isEmpty()) {
    log.info("String_Node_Str");
    log.info(mutatorSupporter.getSolutionData(solutions,generation));
  }
  FixLocationSpace space=this.getFixSpace();
  String s="String_Node_Str" + space.strategy() + "String_Node_Str";
  for (  Object l : space.getSpace().keySet()) {
    int ing=0;
    Map r=(Map)space.getSpace().get(l);
    String ty="String_Node_Str";
    for (    Object t : r.keySet()) {
      List ingredients=(List)r.get(t);
      ing+=ingredients.size();
    }
    s+=l + "String_Node_Str" + ing+ "String_Node_Str"+ ty+ "String_Node_Str";
  }
  log.info(s);
  log.info("String_Node_Str");
  log.info(currentStat);
}

Fixed version (ground truth):
protected void showResults(int generation){
  log.info("String_Node_Str");
  if (!this.solutions.isEmpty()) {
    log.info("String_Node_Str");
    log.info("String_Node_Str" + projectFacade.getProperties().getInDir());
  }
 else {
    log.info("String_Node_Str");
  }
  log.info("String_Node_Str" + this.solutions.size());
  for (  ProgramVariant variant : solutions) {
    log.info("String_Node_Str" + variant.getFitness() + "String_Node_Str"+ variant);
  }
  log.info("String_Node_Str");
  for (  ProgramVariant variant : variants) {
    log.info("String_Node_Str" + variant.getFitness() + "String_Node_Str"+ variant);
  }
  if (!solutions.isEmpty()) {
    log.info("String_Node_Str");
    log.info(mutatorSupporter.getSolutionData(solutions,generation));
  }
  if (this.getFixSpace() != null) {
    FixLocationSpace space=this.getFixSpace();
    String s="String_Node_Str" + space.strategy() + "String_Node_Str";
    for (    Object l : space.getSpace().keySet()) {
      int ing=0;
      Map r=(Map)space.getSpace().get(l);
      String ty="String_Node_Str";
      for (      Object t : r.keySet()) {
        List ingredients=(List)r.get(t);
        ing+=ingredients.size();
      }
      s+=l + "String_Node_Str" + ing+ "String_Node_Str"+ ty+ "String_Node_Str";
    }
    log.info(s);
  }
  log.info("String_Node_Str");
  log.info(currentStat);
}
Program: 61601
Project: 61601
Buggy source:
protected List retrieveClassesForIngredients(){
  if (getFixSpace().strategy().equals(IngredientSpaceStrategy.LOCAL))   return originalVariant.getAffectedClasses();
  if (getFixSpace().strategy().equals(IngredientSpaceStrategy.GLOBAL))   return this.mutatorSupporter.getFactory().Type().getAll();
  return null;
}

Fixed version (ground truth):
protected List retrieveClassesForIngredients(){
  if (getFixSpace().strategy().equals(IngredientSpaceStrategy.LOCAL))   return originalVariant.getAffectedClasses();
  if (getFixSpace().strategy().equals(IngredientSpaceStrategy.GLOBAL) || getFixSpace().strategy().equals(IngredientSpaceStrategy.PACKAGE))   return this.mutatorSupporter.getFactory().Type().getAll();
  return null;
}
Program: 61603
Project: 61603
Buggy source:
/** 
 * For a given VariableAccess, we search the list of Variables contains compatible types (i.e. sub types)
 * @param varContext
 * @param vartofind
 * @return
 */
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) public static List<CtVariable> compatiblesSubType(List<CtVariable> varContext,CtTypeReference typeToFind){
  List<CtVariable> result=new ArrayList<CtVariable>();
  for (  CtVariable ctVariable_i : varContext) {
    CtTypeReference typeref_i=ctVariable_i.getType();
    try {
      if (typeref_i.isSubtypeOf(typeToFind)) {
        result.add(ctVariable_i);
      }
    }
 catch (    Exception e) {
    }
  }
  return result;
}

Fixed version (ground truth):
/** 
 * For a given VariableAccess, we search the list of Variables contains compatible types (i.e. sub types)
 * @param varContext
 * @param vartofind
 * @return
 */
@SuppressWarnings({"String_Node_Str","String_Node_Str"}) public static List<CtVariable> compatiblesSubType(List<CtVariable> varContext,CtTypeReference typeToFind){
  List<CtVariable> result=new ArrayList<CtVariable>();
  for (  CtVariable ctVariable_i : varContext) {
    CtTypeReference typeref_i=ctVariable_i.getType();
    try {
      if (typeref_i.isSubtypeOf(typeToFind)) {
        result.add(ctVariable_i);
      }
    }
 catch (    Exception e) {
      if (typeref_i.getDeclaration().getQualifiedName().equals(typeToFind.getDeclaration().getQualifiedName()))       result.add(ctVariable_i);
    }
  }
  return result;
}
Program: 61605
Project: 61605
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + id + "String_Node_Str"+ genType+ "String_Node_Str"+ Integer.toString(this.size())+ "String_Node_Str"+ states+ "String_Node_Str";
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + id + "String_Node_Str"+ genType+ "String_Node_Str"+ Integer.toString(this.size())+ "String_Node_Str"+ states+ "String_Node_Str"+ ingredientSpaceStrategy.toString()+ "String_Node_Str";
}
Program: 61606
Project: 61606
Buggy source:
public static void validatePatchExistence(String dir){
  File out=new File(dir + File.separator + "String_Node_Str");
  assertTrue(out.listFiles().length > 1);
  boolean isSol=false;
  for (  File sol : out.listFiles()) {
    isSol|=sol.getName().startsWith("String_Node_Str");
  }
  assertTrue(isSol);
}

Fixed version (ground truth):
public static void validatePatchExistence(String dir,int numberSolution){
  File out=new File(dir + File.separator + "String_Node_Str");
  assertTrue(out.listFiles().length > 1);
  int cantSol=0;
  for (  File sol : out.listFiles()) {
    cantSol+=(sol.getName().startsWith("String_Node_Str")) ? 1 : 0;
  }
  Assert.assertEquals(numberSolution,cantSol);
}
Program: 61607
Project: 61607
Buggy source:
@Test public void testMath85issue280() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  String dep="String_Node_Str";
  String[] args=new String[]{"String_Node_Str",dep,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",new File("String_Node_Str").getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  System.out.println(Arrays.toString(args));
  main1.main(args);
}

Fixed version (ground truth):
/** 
 * The fix is a replacement of an return statement
 * @throws Exception
 */
@Test public void testMath85issue280() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  String dep="String_Node_Str";
  String[] args=new String[]{"String_Node_Str",dep,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",new File("String_Node_Str").getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  System.out.println(Arrays.toString(args));
  main1.main(args);
}
Program: 61608
Project: 61608
Buggy source:
/** 
 * Math 70 bug can be fixed by replacing a method invocation. +        return solve(f, min, max); -      return solve(min, max);
 * @throws Exception
 */
@Test public void testMath70() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  String dep="String_Node_Str";
  File out=new File("String_Node_Str");
  String[] args=new String[]{"String_Node_Str",dep,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",new File("String_Node_Str").getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",out.getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  System.out.println(Arrays.toString(args));
  main1.main(args);
  validatePatchExistence(out + File.separator + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Math 70 bug can be fixed by replacing a method invocation. +        return solve(f, min, max); -      return solve(min, max);
 * @throws Exception
 */
@Test public void testMath70() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  String dep="String_Node_Str";
  File out=new File("String_Node_Str");
  String[] args=new String[]{"String_Node_Str",dep,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",new File("String_Node_Str").getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",out.getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  System.out.println(Arrays.toString(args));
  main1.main(args);
  validatePatchExistence(out + File.separator + "String_Node_Str");
}
Program: 61609
Project: 61609
Buggy source:
@Test public void testMath40ModeStatement() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  String dep="String_Node_Str";
  String[] args=new String[]{"String_Node_Str",dep,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  System.out.println(Arrays.toString(args));
  main1.main(args);
}

Fixed version (ground truth):
/** 
 * The fix is the addition of an Assignment: signChangeIndex = 2
 * @throws Exception
 */
@Test public void testMath40ModeStatement() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  String dep="String_Node_Str";
  File out=new File("String_Node_Str");
  String[] args=new String[]{"String_Node_Str",dep,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",new File("String_Node_Str").getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",out.getAbsolutePath()};
  System.out.println(Arrays.toString(args));
  main1.main(args);
  validatePatchExistence(out.getPath() + File.separator + "String_Node_Str",1);
}
Program: 61611
Project: 61611
Buggy source:
public CompilationResult compileOnMemory(Collection<CtClass> ctClassList,URL[] cp){
  Map<String,String> toCompile=new HashMap<String,String>();
  prettyPrinter=new DefaultJavaPrettyPrinter(getEnvironment());
  try {
    for (    CtClass ctClass : ctClassList) {
      this.getProcessingManager().process(ctClass);
      String[] tmp=ctClass.getQualifiedName().split("String_Node_Str");
      char[][] pack=new char[tmp.length - 1][];
      toCompile.put(ctClass.getQualifiedName(),sourceForModelledClass(ctClass));
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    List<String> errors=new ArrayList<String>();
    errors.add(e.getMessage());
    CompilationResult rbc=new CompilationResult(null,true,errors);
    return rbc;
  }
  List<String> cps=new ArrayList<>();
  cps.add("String_Node_Str");
  String s="String_Node_Str";
  for (  URL url : cp) {
    s+=((url.getPath()) + File.pathSeparator);
  }
  cps.add(s);
  CompilationResult rbc=dcc.javaBytecodeFor(toCompile,new HashMap<String,byte[]>(),cps);
  return rbc;
}

Fixed version (ground truth):
public CompilationResult compileOnMemory(Collection<CtClass> ctClassList,URL[] cp){
  Map<String,String> toCompile=new HashMap<String,String>();
  prettyPrinter=new DefaultJavaPrettyPrinter(getEnvironment());
  try {
    for (    CtClass ctClass : ctClassList) {
      this.getProcessingManager().process(ctClass);
      String[] tmp=ctClass.getQualifiedName().split("String_Node_Str");
      char[][] pack=new char[tmp.length - 1][];
      toCompile.put(ctClass.getQualifiedName(),sourceForModelledClass(ctClass));
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    List<String> errors=new ArrayList<String>();
    errors.add(e.getMessage());
    CompilationResult rbc=new CompilationResult(null,errors);
    return rbc;
  }
  List<String> cps=new ArrayList<>();
  cps.add("String_Node_Str");
  String s="String_Node_Str";
  for (  URL url : cp) {
    s+=((url.getPath()) + File.pathSeparator);
  }
  cps.add(s);
  CompilationResult rbc=dcc.javaBytecodeFor(toCompile,new HashMap<String,byte[]>(),cps);
  return rbc;
}
Program: 61612
Project: 61612
Buggy source:
public synchronized CompilationResult javaBytecodeFor(Map<String,String> qualifiedNameAndContent,Map<String,byte[]> compiledDependencies,List<String> options){
  diagnostics=new DiagnosticCollector<JavaFileObject>();
  fileManager.classFiles().clear();
  Collection<JavaFileObject> units=addCompilationUnits(qualifiedNameAndContent);
  fileManager.addCompiledClasses(compiledDependencies);
  CompilationTask task=compiler().getTask(null,fileManager,diagnostics(),options,null,units);
  runCompilationTask(task);
  Map<String,byte[]> bytecodes=collectBytecodes(qualifiedNameAndContent);
  List<String> errors=new ArrayList<>();
  copyErrors(errors,diagnostics);
  CompilationResult cr=new CompilationResult(bytecodes,!diagnostics.getDiagnostics().isEmpty(),errors);
  return cr;
}

Fixed version (ground truth):
public synchronized CompilationResult javaBytecodeFor(Map<String,String> qualifiedNameAndContent,Map<String,byte[]> compiledDependencies,List<String> options){
  diagnostics=new DiagnosticCollector<JavaFileObject>();
  fileManager.classFiles().clear();
  Collection<JavaFileObject> units=addCompilationUnits(qualifiedNameAndContent);
  fileManager.addCompiledClasses(compiledDependencies);
  CompilationTask task=compiler().getTask(null,fileManager,diagnostics(),options,null,units);
  runCompilationTask(task);
  Map<String,byte[]> bytecodes=collectBytecodes(qualifiedNameAndContent);
  List<String> errors=new ArrayList<>();
  copyErrors(errors,diagnostics);
  CompilationResult cr=new CompilationResult(bytecodes,errors);
  return cr;
}
Program: 61613
Project: 61613
Buggy source:
private void copyErrors(List<String> errors,DiagnosticCollector<JavaFileObject> diagnostics2){
  for (  Diagnostic d : diagnostics2.getDiagnostics()) {
    errors.add(d.toString());
  }
}

Fixed version (ground truth):
private void copyErrors(List<String> errors,DiagnosticCollector<JavaFileObject> diagnostics2){
  for (  Diagnostic d : diagnostics2.getDiagnostics()) {
    if (d.getKind() == Kind.ERROR || d.getKind() == Kind.MANDATORY_WARNING) {
      errors.add(d.toString());
    }
  }
}
Program: 61614
Project: 61614
Buggy source:
/** 
 * Apply a given Mutation to the node referenced by the operation
 * @param operation
 * @throws IllegalAccessException
 */
public void transform(GenOperationInstance operation) throws IllegalAccessException {
  boolean successful=false;
  CtStatement ctst=(CtStatement)operation.getOriginal();
  CtStatement fix=(CtStatement)operation.getModified();
  CtBlock parentBlock=operation.getParentBlock();
  if (parentBlock != null) {
    GenProgMutationOperation operator=(GenProgMutationOperation)operation.getOperationApplied();
    try {
switch (operator) {
case DELETE:
        parentBlock.getStatements().remove(ctst);
      successful=true;
    break;
case INSERT_BEFORE:
  ctst.insertBefore((CtStatement)fix);
successful=true;
break;
case INSERT_AFTER:
ctst.insertAfter((CtStatement)fix);
successful=true;
break;
case REPLACE:
ctst.replace((CtStatement)fix);
successful=true;
break;
default :
log.error("String_Node_Str");
break;
}
operation.setSuccessfulyApplied(successful);
}
 catch (Exception ex) {
log.error("String_Node_Str" + ex.getMessage());
operation.setExceptionAtApplied(ex);
operation.setSuccessfulyApplied(false);
}
}
}

Fixed version (ground truth):
/** 
 * Apply a given Mutation to the node referenced by the operation
 * @param operation
 * @throws IllegalAccessException
 */
public void transform(GenOperationInstance operation) throws IllegalAccessException {
  boolean successful=false;
  CtStatement ctst=(CtStatement)operation.getOriginal();
  CtStatement fix=(CtStatement)operation.getModified();
  CtBlock parentBlock=operation.getParentBlock();
  if (parentBlock != null) {
    GenProgMutationOperation operator=(GenProgMutationOperation)operation.getOperationApplied();
    successful=true;
    try {
switch (operator) {
case DELETE:
        parentBlock.getStatements().remove(ctst);
      break;
case INSERT_BEFORE:
    ctst.insertBefore((CtStatement)fix);
  fix.setParent(parentBlock);
break;
case INSERT_AFTER:
ctst.insertAfter((CtStatement)fix);
fix.setParent(parentBlock);
break;
case REPLACE:
ctst.replace((CtStatement)fix);
fix.setParent(parentBlock);
break;
default :
log.error("String_Node_Str");
successful=false;
break;
}
operation.setSuccessfulyApplied(successful);
}
 catch (Exception ex) {
log.error("String_Node_Str" + ex.getMessage());
operation.setExceptionAtApplied(ex);
operation.setSuccessfulyApplied(false);
}
}
}
Program: 61615
Project: 61615
Buggy source:
public String toString(){
  return "String_Node_Str" + this.getOperationApplied() + "String_Node_Str"+ StringUtil.trunc(this.original)+ "String_Node_Str"+ StringUtil.trunc(modified)+ "String_Node_Str";
}

Fixed version (ground truth):
public String toString(){
  return "String_Node_Str" + this.getOperationApplied() + "String_Node_Str"+ StringUtil.trunc(this.original)+ "String_Node_Str"+ StringUtil.trunc(modified)+ "String_Node_Str"+ getLocationInParent()+ "String_Node_Str"+ StringUtil.trunc(parentBlock)+ "String_Node_Str";
}
Program: 61616
Project: 61616
Buggy source:
protected void undoSingleGeneration(ProgramVariant instance,int genI){
  List<GenOperationInstance> operations=instance.getOperations().get(genI);
  if (operations == null || operations.isEmpty()) {
    return;
  }
  for (int i=operations.size() - 1; i >= 0; i--) {
    GenOperationInstance genOperation=operations.get(i);
    undoOperationToSpoonElement(genOperation);
  }
}

Fixed version (ground truth):
protected void undoSingleGeneration(ProgramVariant instance,int genI){
  List<GenOperationInstance> operations=instance.getOperations().get(genI);
  if (operations == null || operations.isEmpty()) {
    return;
  }
  for (int i=operations.size() - 1; i >= 0; i--) {
    GenOperationInstance genOperation=operations.get(i);
    log.debug("String_Node_Str" + genI + "String_Node_Str"+ genOperation);
    undoOperationToSpoonElement(genOperation);
  }
}
Program: 61620
Project: 61620
Buggy source:
/** 
 * Apply a given Mutation to the node referenced by the operation
 * @param operation
 * @throws IllegalAccessException
 */
public void transform(GenOperationInstance operation) throws IllegalAccessException {
  boolean successful=false;
  CtStatement ctst=(CtStatement)operation.getOriginal();
  CtStatement fix=(CtStatement)operation.getModified();
  CtBlock parentBlock=operation.getParentBlock();
  if (parentBlock != null) {
    int locationIndex=parentBlock.getStatements().indexOf(ctst);
    if (locationIndex < 0) {
      throw new IllegalAccessException("String_Node_Str" + operation);
    }
    operation.setLocationInParent(locationIndex);
    GenProgMutationOperation operator=(GenProgMutationOperation)operation.getOperationApplied();
    try {
switch (operator) {
case DELETE:
        parentBlock.getStatements().remove(ctst);
      successful=true;
    break;
case INSERT_BEFORE:
  ctst.insertBefore((CtStatement)fix);
successful=true;
break;
case INSERT_AFTER:
ctst.insertAfter((CtStatement)fix);
successful=true;
break;
case REPLACE:
ctst.replace((CtStatement)fix);
successful=true;
break;
default :
log.error("String_Node_Str");
break;
}
operation.setSuccessfulyApplied(successful);
}
 catch (Exception ex) {
log.error("String_Node_Str" + ex.getMessage());
operation.setExceptionAtApplied(ex);
operation.setSuccessfulyApplied(false);
}
}
}

Fixed version (ground truth):
/** 
 * Apply a given Mutation to the node referenced by the operation
 * @param operation
 * @throws IllegalAccessException
 */
public void transform(GenOperationInstance operation) throws IllegalAccessException {
  boolean successful=false;
  CtStatement ctst=(CtStatement)operation.getOriginal();
  CtStatement fix=(CtStatement)operation.getModified();
  CtBlock parentBlock=operation.getParentBlock();
  if (parentBlock != null) {
    int locationIndex=parentBlock.getStatements().indexOf(ctst);
    if (locationIndex < 0) {
      throw new IllegalAccessException("String_Node_Str" + operation);
    }
    GenProgMutationOperation operator=(GenProgMutationOperation)operation.getOperationApplied();
    try {
switch (operator) {
case DELETE:
        parentBlock.getStatements().remove(ctst);
      successful=true;
    break;
case INSERT_BEFORE:
  ctst.insertBefore((CtStatement)fix);
successful=true;
break;
case INSERT_AFTER:
ctst.insertAfter((CtStatement)fix);
operation.setLocationInParent(locationIndex + 1);
successful=true;
break;
case REPLACE:
ctst.replace((CtStatement)fix);
successful=true;
break;
default :
log.error("String_Node_Str");
break;
}
operation.setSuccessfulyApplied(successful);
}
 catch (Exception ex) {
log.error("String_Node_Str" + ex.getMessage());
operation.setExceptionAtApplied(ex);
operation.setSuccessfulyApplied(false);
}
}
}
Program: 61621
Project: 61621
Buggy source:
public void revert(GenOperationInstance operation){
  CtStatement ctst=(CtStatement)operation.getOriginal();
  CtStatement fix=(CtStatement)operation.getModified();
  CtBlock parentBlock=operation.getParentBlock();
  if (parentBlock != null) {
    GenProgMutationOperation operator=(GenProgMutationOperation)operation.getOperationApplied();
switch (operator) {
case DELETE:
      if ((parentBlock.getStatements().isEmpty() && operation.getLocationInParent() == 0) || (parentBlock.getStatements().size() >= operation.getLocationInParent())) {
        parentBlock.getStatements().add(operation.getLocationInParent(),ctst);
      }
 else {
        log.error("String_Node_Str" + ctst + "String_Node_Str"+ operation.getLocationInParent()+ "String_Node_Str"+ parentBlock.getStatements().size());
        throw new IllegalStateException("String_Node_Str");
      }
    break;
case INSERT_BEFORE:
  parentBlock.getStatements().remove(fix);
break;
case INSERT_AFTER:
parentBlock.getStatements().remove(fix);
break;
case REPLACE:
fix.replace((CtStatement)ctst);
break;
default :
break;
}
}
}

Fixed version (ground truth):
public void revert(GenOperationInstance operation){
  CtStatement ctst=(CtStatement)operation.getOriginal();
  CtStatement fix=(CtStatement)operation.getModified();
  CtBlock<?> parentBlock=operation.getParentBlock();
  int position=operation.getLocationInParent();
  if (parentBlock != null) {
    GenProgMutationOperation operator=(GenProgMutationOperation)operation.getOperationApplied();
switch (operator) {
case DELETE:
      if ((parentBlock.getStatements().isEmpty() && operation.getLocationInParent() == 0) || (parentBlock.getStatements().size() >= operation.getLocationInParent())) {
        parentBlock.getStatements().add(operation.getLocationInParent(),ctst);
      }
 else {
        log.error("String_Node_Str" + ctst + "String_Node_Str"+ operation.getLocationInParent()+ "String_Node_Str"+ parentBlock.getStatements().size());
        throw new IllegalStateException("String_Node_Str");
      }
    break;
case INSERT_BEFORE:
  remove(parentBlock,fix,position);
break;
case INSERT_AFTER:
remove(parentBlock,fix,position);
break;
case REPLACE:
fix.replace((CtStatement)ctst);
break;
default :
break;
}
}
}
Program: 61622
Project: 61622
Buggy source:
public String getSolutionData(List<ProgramVariant> variants,int generation){
  String line="String_Node_Str";
  for (  ProgramVariant childVariant : variants) {
    line+="String_Node_Str" + childVariant.getId() + "String_Node_Str";
    for (int i=1; i <= generation; i++) {
      List<GenOperationInstance> genOperationInstances=childVariant.getOperations().get(i);
      if (genOperationInstances == null)       continue;
      for (      GenOperationInstance genOperationInstance : genOperationInstances) {
        line+="String_Node_Str" + "String_Node_Str" + genOperationInstance.getGen().getCtClass().getQualifiedName();
        if (genOperationInstance.getGen() instanceof GenSuspicious) {
          GenSuspicious gs=(GenSuspicious)genOperationInstance.getGen();
          line+="String_Node_Str" + gs.getSuspicious().getLineNumber();
        }
        line+="String_Node_Str" + Integer.toString(i);
        line+="String_Node_Str" + genOperationInstance.getOriginal().toString();
        line+="String_Node_Str" + genOperationInstance.getModified().toString();
        line+="String_Node_Str";
      }
    }
    line+="String_Node_Str";
  }
  return line;
}

Fixed version (ground truth):
public String getSolutionData(List<ProgramVariant> variants,int generation){
  String line="String_Node_Str";
  for (  ProgramVariant childVariant : variants) {
    line+="String_Node_Str" + childVariant.getId() + "String_Node_Str";
    for (int i=1; i <= generation; i++) {
      List<GenOperationInstance> genOperationInstances=childVariant.getOperations().get(i);
      if (genOperationInstances == null)       continue;
      for (      GenOperationInstance genOperationInstance : genOperationInstances) {
        line+="String_Node_Str" + "String_Node_Str" + genOperationInstance.getGen().getCtClass().getQualifiedName();
        if (genOperationInstance.getGen() instanceof GenSuspicious) {
          GenSuspicious gs=(GenSuspicious)genOperationInstance.getGen();
          line+="String_Node_Str" + gs.getSuspicious().getLineNumber();
        }
        line+="String_Node_Str" + genOperationInstance.getOriginal().toString();
        line+="String_Node_Str" + genOperationInstance.getModified().toString();
        line+="String_Node_Str" + Integer.toString(i);
        line+="String_Node_Str";
      }
    }
    line+="String_Node_Str";
  }
  return line;
}
Program: 61623
Project: 61623
Buggy source:
public String getSolutionData(List<ProgramVariant> variants,int generation){
  String line="String_Node_Str";
  for (  ProgramVariant childVariant : variants) {
    line+="String_Node_Str" + childVariant.getId() + "String_Node_Str";
    for (int i=1; i <= generation; i++) {
      List<GenOperationInstance> genOperationInstances=childVariant.getOperations().get(i);
      if (genOperationInstances == null)       continue;
      for (      GenOperationInstance genOperationInstance : genOperationInstances) {
        line+="String_Node_Str" + "String_Node_Str" + genOperationInstance.getGen().getCtClass().getQualifiedName();
        if (genOperationInstance.getGen() instanceof GenSuspicious) {
          GenSuspicious gs=(GenSuspicious)genOperationInstance.getGen();
          line+="String_Node_Str" + gs.getSuspicious().getLineNumber();
        }
        line+="String_Node_Str" + genOperationInstance.getOriginal().toString();
        line+="String_Node_Str" + genOperationInstance.getModified().toString();
        line+="String_Node_Str" + Integer.toString(i);
        line+="String_Node_Str";
      }
    }
    line+="String_Node_Str";
  }
  return line;
}

Fixed version (ground truth):
public String getSolutionData(List<ProgramVariant> variants,int generation){
  String line="String_Node_Str";
  for (  ProgramVariant childVariant : variants) {
    line+="String_Node_Str" + childVariant.getId() + "String_Node_Str";
    for (int i=1; i <= generation; i++) {
      List<GenOperationInstance> genOperationInstances=childVariant.getOperations().get(i);
      if (genOperationInstances == null)       continue;
      for (      GenOperationInstance genOperationInstance : genOperationInstances) {
        line+="String_Node_Str" + "String_Node_Str" + genOperationInstance.getGen().getCtClass().getQualifiedName();
        if (genOperationInstance.getGen() instanceof GenSuspicious) {
          GenSuspicious gs=(GenSuspicious)genOperationInstance.getGen();
          line+="String_Node_Str" + gs.getSuspicious().getLineNumber();
        }
        line+="String_Node_Str" + genOperationInstance.getOriginal().toString();
        if (genOperationInstance.getModified() != null)         line+="String_Node_Str" + genOperationInstance.getModified().toString() + "String_Node_Str";
 else {
          line+="String_Node_Str" + genOperationInstance.getOriginal().toString() + "String_Node_Str";
        }
        line+="String_Node_Str" + Integer.toString(i);
        line+="String_Node_Str";
      }
    }
    line+="String_Node_Str";
  }
  return line;
}
Program: 61625
Project: 61625
Buggy source:
@SuppressWarnings("String_Node_Str") @Test public void testMath2Example() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  main1.main(new String[]{"String_Node_Str","String_Node_Str" + File.pathSeparator + "String_Node_Str","String_Node_Str" + "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Test public void testMath2Example() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  main1.main(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
}
Program: 61627
Project: 61627
Buggy source:
public void prepareNextGeneration(List<ProgramVariant> temporalInstances,int generation){
  variants=populationControler.selectProgramVariantsForNextGeneration(variants,temporalInstances,this.solutions,ConfigurationProperties.getPropertyInt("String_Node_Str"));
  if (ConfigurationProperties.getPropertyBool("String_Node_Str")) {
    ProgramVariant parentNew=this.variantFactory.createProgramVariantFromAnother(originalVariant,generation);
    parentNew.getOperations().clear();
    parentNew.setParent(null);
    ProgramVariant removedVariant=null;
    if (variants.size() != 0) {
      removedVariant=variants.remove(variants.size() - 1);
    }
    variants.add(parentNew);
    log.debug("String_Node_Str" + ((removedVariant != null) ? "String_Node_Str" + removedVariant.getId() : "String_Node_Str"));
  }
}

Fixed version (ground truth):
public void prepareNextGeneration(List<ProgramVariant> temporalInstances,int generation){
  variants=populationControler.selectProgramVariantsForNextGeneration(variants,temporalInstances,this.solutions,ConfigurationProperties.getPropertyInt("String_Node_Str"));
  if (ConfigurationProperties.getPropertyBool("String_Node_Str")) {
    ProgramVariant parentNew=this.variantFactory.createProgramVariantFromAnother(originalVariant,generation);
    parentNew.getOperations().clear();
    parentNew.setParent(null);
    ProgramVariant removedVariant=null;
    if (variants.size() != 0) {
      removedVariant=variants.remove(variants.size() - 1);
    }
    variants.add(parentNew);
  }
}
Program: 61628
Project: 61628
Buggy source:
/** 
 * TODO: maybe we can filter some of them. Only the Parent?
 */
public List<SuspiciousCode> getSuspicious(String packageToInst,String mutatorIdentifier) throws FileNotFoundException, IOException {
  if (getProperties().getFailingTestCases() == null || "String_Node_Str".equals(getProperties().getFailingTestCases().isEmpty())) {
    new IllegalArgumentException("String_Node_Str");
  }
  logger.info("String_Node_Str" + getOutDirWithPrefix(mutatorIdentifier) + "String_Node_Str"+ getProperties().getFailingTestCases());
  List<String> listTOInst=new ArrayList<String>();
  listTOInst.add(packageToInst);
  HashSet<String> hs=new HashSet<String>();
  hs.add(getOutDirWithPrefix(mutatorIdentifier));
  List<SuspiciousCode> suspiciousStatemens=faultLocalizationFacade.searchGZoltar(getOutDirWithPrefix(mutatorIdentifier),getProperties().getFailingTestCases(),listTOInst,hs);
  return suspiciousStatemens;
}

Fixed version (ground truth):
/** 
 * TODO: maybe we can filter some of them. Only the Parent?
 */
public List<SuspiciousCode> getSuspicious(String packageToInst,String mutatorIdentifier) throws FileNotFoundException, IOException {
  if (getProperties().getFailingTestCases() == null || "String_Node_Str".equals(getProperties().getFailingTestCases().isEmpty())) {
    new IllegalArgumentException("String_Node_Str");
  }
  logger.info("String_Node_Str" + getOutDirWithPrefix(mutatorIdentifier) + "String_Node_Str"+ getProperties().getFailingTestCases());
  List<String> listTOInst=new ArrayList<String>();
  listTOInst.add(packageToInst);
  HashSet<String> hs=new HashSet<String>();
  hs.add(getOutDirWithPrefix(mutatorIdentifier));
  List<SuspiciousCode> suspiciousStatemens=faultLocalizationFacade.searchGZoltar(getOutDirWithPrefix(mutatorIdentifier),getProperties().getFailingTestCases(),listTOInst,hs,ConfigurationProperties.getProperty("String_Node_Str") + "String_Node_Str" + ConfigurationProperties.getProperty("String_Node_Str"));
  return suspiciousStatemens;
}
Program: 61629
Project: 61629
Buggy source:
@SuppressWarnings("String_Node_Str") @Test public void testRunMain() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  main1.main(new String[]{"String_Node_Str","String_Node_Str" + File.pathSeparator + "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"});
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Test public void testRunMain() throws Exception {
  MainjGenProg main1=new MainjGenProg();
  String[] args=new String[]{"String_Node_Str","String_Node_Str" + File.pathSeparator + "String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  System.out.println(Arrays.toString(args));
  main1.main(args);
}
Program: 61630
Project: 61630
Buggy source:
@Test public void testExampleMath0C1() throws Exception {
  String dependenciespath="String_Node_Str" + File.pathSeparator + "String_Node_Str";
  String folder="String_Node_Str";
  String failing="String_Node_Str";
  File f=new File("String_Node_Str");
  String location=f.getParent();
  String packageToInstrument="String_Node_Str";
  double thfl=0.5;
  this.generic(location,folder,"String_Node_Str",failing,dependenciespath,packageToInstrument,thfl);
}

Fixed version (ground truth):
@Test public void testExampleMath0C1() throws Exception {
  String dependenciespath="String_Node_Str" + File.pathSeparator + "String_Node_Str";
  String folder="String_Node_Str";
  String failing="String_Node_Str";
  File f=new File("String_Node_Str");
  String location=f.getAbsolutePath();
  String packageToInstrument="String_Node_Str";
  double thfl=0.5;
  this.generic(location,folder,"String_Node_Str",failing,dependenciespath,packageToInstrument,thfl);
}
Program: 61631
Project: 61631
Buggy source:
private List<String> determineMavenFolders(boolean srcWithMain,String originalProjectRoot){
  File srcdefault=new File(originalProjectRoot + File.separator + ConfigurationProperties.getProperty("String_Node_Str"));
  if (srcdefault.exists())   return Arrays.asList(new String[]{ConfigurationProperties.getProperty("String_Node_Str"),ConfigurationProperties.getProperty("String_Node_Str")});
  File src=new File(originalProjectRoot + File.separator + "String_Node_Str");
  if (src.exists())   return Arrays.asList(new String[]{"String_Node_Str","String_Node_Str"});
  src=new File(originalProjectRoot + File.separator + "String_Node_Str");
  if (src.exists())   return Arrays.asList(new String[]{"String_Node_Str","String_Node_Str"});
  return Arrays.asList(new String[]{"String_Node_Str","String_Node_Str"});
}

Fixed version (ground truth):
private List<String> determineMavenFolders(boolean srcWithMain,String originalProjectRoot){
  File srcdefault=new File(originalProjectRoot + File.separator + ConfigurationProperties.getProperty("String_Node_Str"));
  File testdefault=new File(originalProjectRoot + File.separator + ConfigurationProperties.getProperty("String_Node_Str"));
  if (srcdefault.exists() && testdefault.exists())   return Arrays.asList(new String[]{ConfigurationProperties.getProperty("String_Node_Str"),ConfigurationProperties.getProperty("String_Node_Str")});
  File src=new File(originalProjectRoot + File.separator + "String_Node_Str");
  if (src.exists())   return Arrays.asList(new String[]{"String_Node_Str","String_Node_Str"});
  src=new File(originalProjectRoot + File.separator + "String_Node_Str");
  if (src.exists())   return Arrays.asList(new String[]{"String_Node_Str","String_Node_Str"});
  return Arrays.asList(new String[]{"String_Node_Str","String_Node_Str"});
}
Program: 61632
Project: 61632
Buggy source:
private GenOperationInstance createDummyOperation1(ProgramVariant variant,int currentGeneration){
  GenSuspicious genSusp=searchSuspiciousElement(variant,"String_Node_Str","String_Node_Str",95);
  assertNotNull(genSusp);
  CtElement targetStmt=genSusp.getRootElement();
  CtElement fix=createFix1();
  assertEquals(fix.toString(),"String_Node_Str");
  GenOperationInstance operation=new GenOperationInstance();
  operation.setOperationApplied(GenProgMutationOperation.REPLACE);
  operation.setGen(genSusp);
  operation.setParentBlock((CtBlock)targetStmt.getParent());
  operation.setOriginal(targetStmt);
  operation.setModified(fix);
  variant.putGenOperation(currentGeneration,operation);
  operation.setGen(genSusp);
  return operation;
}

Fixed version (ground truth):
private GenOperationInstance createDummyOperation1(ProgramVariant variant,int currentGeneration){
  GenSuspicious genSusp=searchSuspiciousElement(variant,"String_Node_Str","String_Node_Str",93);
  assertNotNull(genSusp);
  CtElement targetStmt=genSusp.getRootElement();
  CtElement fix=createFix1();
  assertEquals(fix.toString(),"String_Node_Str");
  GenOperationInstance operation=new GenOperationInstance();
  operation.setOperationApplied(GenProgMutationOperation.REPLACE);
  operation.setGen(genSusp);
  operation.setParentBlock((CtBlock)targetStmt.getParent());
  operation.setOriginal(targetStmt);
  operation.setModified(fix);
  variant.putGenOperation(currentGeneration,operation);
  operation.setGen(genSusp);
  return operation;
}
Program: 61633
Project: 61633
Buggy source:
public boolean wasSuccessful(){
  return failures != 0;
}

Fixed version (ground truth):
public boolean wasSuccessful(){
  return failures == 0;
}
Program: 61634
Project: 61634
Buggy source:
@Override public String toString(){
  return "String_Node_Str" + failTest.isEmpty() + "String_Node_Str"+ failures+ "String_Node_Str";
}

Fixed version (ground truth):
@Override public String toString(){
  return "String_Node_Str" + failTest.isEmpty() + "String_Node_Str"+ failures+ "String_Node_Str"+ this.wasSuccessful()+ "String_Node_Str";
}
Program: 61640
Project: 61640
Buggy source:
private boolean shouldStopAfter(DeliveryAttempt attempt){
  long stopAfterCount=stopAfterIfs.stream().filter(predicate -> predicate.test(attempt)).count();
  return stopAfterCount == 0;
}

Fixed version (ground truth):
private boolean shouldStopAfter(DeliveryAttempt attempt){
  long stopAfterCount=stopAfterIfs.stream().filter(predicate -> predicate.test(attempt)).count();
  return stopAfterCount != 0;
}
Program: 61642
Project: 61642
Buggy source:
private boolean shouldStopBefore(DeliveryAttempt attempt){
  long stopBeforeCount=stopBeforeIfs.stream().filter(predicate -> predicate.test(attempt)).count();
  return stopBeforeCount == 0;
}

Fixed version (ground truth):
private boolean shouldStopBefore(DeliveryAttempt attempt){
  long stopBeforeCount=stopBeforeIfs.stream().filter(predicate -> predicate.test(attempt)).count();
  return stopBeforeCount != 0;
}
Program: 61643
Project: 61643
Buggy source:
private long getOldest(){
  ChannelContentKey[] array=keys.toArray(new ChannelContentKey[0]);
  Arrays.sort(array);
  ChannelContentKey oldest=array[array.length - 1];
  DateTime then=oldest.getContentKey().getTime();
  DateTime now=DateTime.now(DateTimeZone.UTC);
  Interval delta=new Interval(now,then);
  return delta.toDurationMillis();
}

Fixed version (ground truth):
private long getOldest(){
  ChannelContentKey[] array=keys.toArray(new ChannelContentKey[0]);
  Arrays.sort(array);
  if (array.length > 1) {
    ChannelContentKey oldest=array[array.length - 1];
    DateTime then=oldest.getContentKey().getTime();
    DateTime now=DateTime.now(DateTimeZone.UTC);
    Interval delta=new Interval(then,now);
    return delta.toDurationMillis();
  }
 else {
    return 0;
  }
}
Program: 61644
Project: 61644
Buggy source:
@Override public void get(StreamResults streamResults){
  SortedSet<ContentKey> keys=streamResults.getKeys();
  Consumer<Content> callback=streamResults.getCallback();
  for (  ContentKey key : keys) {
    Optional<Content> contentOptional=get(streamResults.getChannel(),key,false);
    if (contentOptional.isPresent()) {
      callback.accept(contentOptional.get());
    }
  }
}

Fixed version (ground truth):
@Override public void get(StreamResults streamResults){
  List<ContentKey> keys=new ArrayList<>(streamResults.getKeys());
  Consumer<Content> callback=streamResults.getCallback();
  if (streamResults.isDescending()) {
    Collections.reverse(keys);
  }
  for (  ContentKey key : keys) {
    Optional<Content> contentOptional=get(streamResults.getChannel(),key,false);
    if (contentOptional.isPresent()) {
      callback.accept(contentOptional.get());
    }
  }
}
Program: 61645
Project: 61645
Buggy source:
@Override public ChannelConfig createChannel(ChannelConfig configuration){
  logger.info("String_Node_Str",configuration);
  channelValidator.validate(configuration,null,false);
  channelConfigDao.upsert(configuration);
  notify(configuration,null);
  TagWebhook.updateTagWebhooksDoToChannelConfigChange(configuration);
  return configuration;
}

Fixed version (ground truth):
@Override public ChannelConfig createChannel(ChannelConfig configuration){
  logger.info("String_Node_Str",configuration);
  channelValidator.validate(configuration,null,false);
  channelConfigDao.upsert(configuration);
  notify(configuration,null);
  TagWebhook.updateTagWebhooksDueToChannelConfigChange(configuration);
  return configuration;
}
Program: 61646
Project: 61646
Buggy source:
@Override public ChannelConfig updateChannel(ChannelConfig configuration,ChannelConfig oldConfig,boolean isLocalHost){
  if (!configuration.equals(oldConfig)) {
    logger.info("String_Node_Str",configuration,oldConfig);
    channelValidator.validate(configuration,oldConfig,isLocalHost);
    channelConfigDao.upsert(configuration);
    TagWebhook.updateTagWebhooksDoToChannelConfigChange(configuration);
    notify(configuration,oldConfig);
  }
 else {
    logger.info("String_Node_Str",configuration);
  }
  return configuration;
}

Fixed version (ground truth):
@Override public ChannelConfig updateChannel(ChannelConfig configuration,ChannelConfig oldConfig,boolean isLocalHost){
  if (!configuration.equals(oldConfig)) {
    logger.info("String_Node_Str",configuration,oldConfig);
    channelValidator.validate(configuration,oldConfig,isLocalHost);
    channelConfigDao.upsert(configuration);
    TagWebhook.updateTagWebhooksDueToChannelConfigChange(configuration);
    notify(configuration,oldConfig);
  }
 else {
    logger.info("String_Node_Str",configuration);
  }
  return configuration;
}