nus-yam/ex-repair huggingface dataset:
Program: 185654
Project: 185654
Buggy source:
/** 
 * Returns an indentation service that uses the right preferences for a given IJavaProject. The same object will be returned if the javaProject is the same as the one from the last request, but a new instance will be created if the project has changed.
 */
public static synchronized GroovyIndentationService get(IJavaProject project){
  if (lastIndenter != null && !lastIndenter.project.equals(project)) {
    disposeLastImpl();
  }
  if (lastIndenter == null) {
    lastIndenter=new GroovyIndentationService(project);
  }
  return lastIndenter;
}

Fixed version (ground truth):
/** 
 * Returns an indentation service that uses the right preferences for a given IJavaProject. The same object will be returned if the javaProject is the same as the one from the last request, but a new instance will be created if the project has changed.
 */
public static synchronized GroovyIndentationService get(IJavaProject project){
  if (lastIndenter != null && !project.equals(lastIndenter.project)) {
    disposeLastImpl();
  }
  if (lastIndenter == null) {
    lastIndenter=new GroovyIndentationService(project);
  }
  return lastIndenter;
}
Program: 185655
Project: 185655
Buggy source:
public void testGetModuleNode_7() throws Exception {
  IFile groovyFile=createSimpleGroovyProject();
  GroovyCompilationUnit unit1=(GroovyCompilationUnit)JavaCore.createCompilationUnitFrom(groovyFile);
  unit1.becomeWorkingCopy(null);
  unit1.getModuleNode();
  GroovyCompilationUnit unit2=(GroovyCompilationUnit)JavaCore.createCompilationUnitFrom(groovyFile);
  unit2.becomeWorkingCopy(null);
  unit2.getModuleNode();
  unit1.getBuffer().append("String_Node_Str");
  unit1.getModuleNode();
  unit2.getModuleNode();
  unit1.discardWorkingCopy();
  unit2.discardWorkingCopy();
  assertTrue("String_Node_Str",getInitialModuleNodeMapperSize() >= ModuleNodeMapper.size());
}

Fixed version (ground truth):
public void testGetModuleNode_7() throws Exception {
  IFile groovyFile=createSimpleGroovyProject();
  GroovyCompilationUnit unit1=(GroovyCompilationUnit)JavaCore.createCompilationUnitFrom(groovyFile);
  unit1.becomeWorkingCopy(null);
  unit1.getModuleNode();
  GroovyCompilationUnit unit2=(GroovyCompilationUnit)JavaCore.createCompilationUnitFrom(groovyFile);
  unit2.becomeWorkingCopy(null);
  unit2.getModuleNode();
  unit1.getBuffer().append("String_Node_Str");
  unit1.getModuleNode();
  unit2.getModuleNode();
  unit1.discardWorkingCopy();
  unit2.discardWorkingCopy();
  assertTrue("String_Node_Str",moduleNodeMapperCacheSize >= ModuleNodeMapper.size());
}
Program: 185656
Project: 185656
Buggy source:
/** 
 * Sets up this test.
 */
protected void setUp() throws Exception {
  super.setUp();
  System.out.println("String_Node_Str");
  System.out.println("String_Node_Str" + getName());
  debugRequestor=new EfficiencyCompilerRequestor();
  Compiler.DebugRequestor=debugRequestor;
  if (env == null) {
    env=new TestingEnvironment();
    env.openEmptyWorkspace();
  }
  env.resetWorkspace();
  env.setAutoBuilding(false);
  this.moduleNodeMapperCacheSize=ModuleNodeMapper.size();
}

Fixed version (ground truth):
protected void setUp() throws Exception {
  super.setUp();
  System.out.println("String_Node_Str");
  System.out.println("String_Node_Str" + getName());
  debugRequestor=new EfficiencyCompilerRequestor();
  Compiler.DebugRequestor=debugRequestor;
  if (env == null) {
    env=new TestingEnvironment();
    env.openEmptyWorkspace();
  }
  env.resetWorkspace();
  env.setAutoBuilding(false);
  this.moduleNodeMapperCacheSize=ModuleNodeMapper.size();
}
Program: 185657
Project: 185657
Buggy source:
/** 
 * @see junit.framework.TestCase#tearDown()
 */
protected void tearDown() throws Exception {
  env.resetWorkspace();
  ICompilationUnit[] wcs=null;
  int i=0;
  do {
    wcs=JavaModelManager.getJavaModelManager().getWorkingCopies(null,true);
    if (wcs != null) {
      for (      ICompilationUnit workingCopy : wcs) {
        try {
          workingCopy.discardWorkingCopy();
          workingCopy.close();
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
      }
    }
    i++;
    if (i > 20 && wcs != null) {
      fail("String_Node_Str" + wcs);
    }
  }
 while (wcs != null && wcs.length > 0);
  assertTrue("String_Node_Str",getInitialModuleNodeMapperSize() >= ModuleNodeMapper.size());
  JavaCore.setOptions(JavaCore.getDefaultOptions());
  super.tearDown();
}

Fixed version (ground truth):
protected void tearDown() throws Exception {
  env.resetWorkspace();
  ICompilationUnit[] wcs=null;
  int i=0;
  do {
    wcs=JavaModelManager.getJavaModelManager().getWorkingCopies(null,true);
    if (wcs != null) {
      for (      ICompilationUnit workingCopy : wcs) {
        try {
          workingCopy.discardWorkingCopy();
          workingCopy.close();
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
      }
    }
    i++;
    if (i > 20 && wcs != null) {
      fail("String_Node_Str" + wcs);
    }
  }
 while (wcs != null && wcs.length > 0);
  assertTrue("String_Node_Str",moduleNodeMapperCacheSize >= ModuleNodeMapper.size());
  JavaCore.setOptions(JavaCore.getDefaultOptions());
  super.tearDown();
}
Program: 185658
Project: 185658
Buggy source:
/** 
 * Open an empty workspace.
 */
public void openEmptyWorkspace(){
  close();
  openWorkspace();
  fProjects=new Hashtable<String,IProject>(10);
  setup();
}

Fixed version (ground truth):
/** 
 * Open an empty workspace.
 */
public void openEmptyWorkspace(){
  close();
  openWorkspace();
  fProjects=new Hashtable<String,IProject>(10);
  fIsOpen=true;
}
Program: 185659
Project: 185659
Buggy source:
public void testCrashingOnBadCode_GRE290_2(){
  runNegativeTest(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");
}

Fixed version (ground truth):
public void testCrashingOnBadCode_GRE290_2(){
  runNegativeTest(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");
}
Program: 185660
Project: 185660
Buggy source:
public void testAliasedAnnotationClassLiteral2(){
  String[] sources={"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"};
  runConformTest(sources);
}

Fixed version (ground truth):
public void testAliasedAnnotationClassLiteral2(){
  String[] sources={"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"};
  runConformTest(sources);
}
Program: 185661
Project: 185661
Buggy source:
private boolean isClass(TypeBinding requiredType){
  if (requiredType.isArrayType()) {
    requiredType=requiredType.leafComponentType();
  }
  requiredType=requiredType.original();
  boolean isClass=requiredType.id == TypeIds.T_JavaLangClass;
  return isClass;
}

Fixed version (ground truth):
private static boolean isClass(TypeBinding requiredType){
  if (requiredType.isArrayType()) {
    requiredType=requiredType.leafComponentType();
  }
  requiredType=requiredType.original();
  boolean isClass=requiredType.id == TypeIds.T_JavaLangClass;
  return isClass;
}
Program: 185662
Project: 185662
Buggy source:
private boolean isGroovy(Scope scope){
  while (scope.parent != null) {
    scope=scope.parent;
  }
  return scope.getClass().getSimpleName().startsWith("String_Node_Str");
}

Fixed version (ground truth):
private static boolean isGroovy(Scope scope){
  while (scope.parent != null) {
    scope=scope.parent;
  }
  return scope.getClass().getSimpleName().startsWith("String_Node_Str");
}
Program: 185663
Project: 185663
Buggy source:
private Expression repairClassLiteralReference(Expression exp,BlockScope scope,TypeBinding[] valueType){
  TypeBinding vtb=null;
  if (exp instanceof SingleNameReference) {
    vtb=exp.resolveType(scope);
    SingleNameReference ref=(SingleNameReference)exp;
    if (vtb != null && Arrays.equals(ref.token,vtb.sourceName())) {
      return new ClassLiteralAccess(ref.sourceEnd,new SingleTypeReference(ref.token,((long)ref.sourceStart) << 32 | ref.sourceEnd));
    }
  }
 else   if (this.value instanceof QualifiedNameReference) {
    vtb=exp.resolveType(scope);
    QualifiedNameReference ref=(QualifiedNameReference)exp;
    if (vtb != null && Arrays.equals(ref.tokens[ref.tokens.length - 1],vtb.sourceName())) {
      return new ClassLiteralAccess(ref.sourceEnd,new QualifiedTypeReference(ref.tokens,ref.sourcePositions));
    }
  }
  if (valueType != null) {
    valueType[0]=vtb;
  }
  return exp;
}

Fixed version (ground truth):
private static Expression repairClassLiteralReference(Expression exp,BlockScope scope){
  if (exp instanceof SingleNameReference) {
    if (exp.resolveType(scope) != null) {
      SingleNameReference ref=(SingleNameReference)exp;
      return new ClassLiteralAccess(ref.sourceEnd,new SingleTypeReference(ref.token,((long)ref.sourceStart) << 32 | ref.sourceEnd));
    }
  }
 else   if (exp instanceof QualifiedNameReference) {
    if (exp.resolveType(scope) != null) {
      QualifiedNameReference ref=(QualifiedNameReference)exp;
      return new ClassLiteralAccess(ref.sourceEnd,new QualifiedTypeReference(ref.tokens,ref.sourcePositions));
    }
  }
  return exp;
}
Program: 185665
Project: 185665
Buggy source:
private boolean isClass(TypeBinding requiredType){
  if (requiredType.isArrayType()) {
    requiredType=requiredType.leafComponentType();
  }
  requiredType=requiredType.original();
  boolean isClass=requiredType.id == TypeIds.T_JavaLangClass;
  return isClass;
}

Fixed version (ground truth):
private static boolean isClass(TypeBinding requiredType){
  if (requiredType.isArrayType()) {
    requiredType=requiredType.leafComponentType();
  }
  requiredType=requiredType.original();
  boolean isClass=requiredType.id == TypeIds.T_JavaLangClass;
  return isClass;
}
Program: 185666
Project: 185666
Buggy source:
private boolean isGroovy(Scope scope){
  while (scope.parent != null) {
    scope=scope.parent;
  }
  return scope.getClass().getSimpleName().startsWith("String_Node_Str");
}

Fixed version (ground truth):
private static boolean isGroovy(Scope scope){
  while (scope.parent != null) {
    scope=scope.parent;
  }
  return scope.getClass().getSimpleName().startsWith("String_Node_Str");
}
Program: 185667
Project: 185667
Buggy source:
private Expression repairClassLiteralReference(Expression exp,BlockScope scope,TypeBinding[] valueType){
  TypeBinding vtb=null;
  if (exp instanceof SingleNameReference) {
    vtb=exp.resolveType(scope);
    SingleNameReference ref=(SingleNameReference)exp;
    if (vtb != null && Arrays.equals(ref.token,vtb.sourceName())) {
      return new ClassLiteralAccess(ref.sourceEnd,new SingleTypeReference(ref.token,((long)ref.sourceStart) << 32 | ref.sourceEnd));
    }
  }
 else   if (this.value instanceof QualifiedNameReference) {
    vtb=exp.resolveType(scope);
    QualifiedNameReference ref=(QualifiedNameReference)exp;
    if (vtb != null && Arrays.equals(ref.tokens[ref.tokens.length - 1],vtb.sourceName())) {
      return new ClassLiteralAccess(ref.sourceEnd,new QualifiedTypeReference(ref.tokens,ref.sourcePositions));
    }
  }
  if (valueType != null) {
    valueType[0]=vtb;
  }
  return exp;
}

Fixed version (ground truth):
private static Expression repairClassLiteralReference(Expression exp,BlockScope scope){
  if (exp instanceof SingleNameReference) {
    if (exp.resolveType(scope) != null) {
      SingleNameReference ref=(SingleNameReference)exp;
      return new ClassLiteralAccess(ref.sourceEnd,new SingleTypeReference(ref.token,((long)ref.sourceStart) << 32 | ref.sourceEnd));
    }
  }
 else   if (exp instanceof QualifiedNameReference) {
    if (exp.resolveType(scope) != null) {
      QualifiedNameReference ref=(QualifiedNameReference)exp;
      return new ClassLiteralAccess(ref.sourceEnd,new QualifiedTypeReference(ref.tokens,ref.sourcePositions));
    }
  }
  return exp;
}
Program: 185669
Project: 185669
Buggy source:
private boolean isClass(TypeBinding requiredType){
  if (requiredType.isArrayType()) {
    requiredType=requiredType.leafComponentType();
  }
  requiredType=requiredType.original();
  boolean isClass=requiredType.id == TypeIds.T_JavaLangClass;
  return isClass;
}

Fixed version (ground truth):
private static boolean isClass(TypeBinding requiredType){
  if (requiredType.isArrayType()) {
    requiredType=requiredType.leafComponentType();
  }
  requiredType=requiredType.original();
  boolean isClass=requiredType.id == TypeIds.T_JavaLangClass;
  return isClass;
}
Program: 185670
Project: 185670
Buggy source:
private boolean isGroovy(Scope scope){
  while (scope.parent != null) {
    scope=scope.parent;
  }
  return scope.getClass().getSimpleName().startsWith("String_Node_Str");
}

Fixed version (ground truth):
private static boolean isGroovy(Scope scope){
  while (scope.parent != null) {
    scope=scope.parent;
  }
  return scope.getClass().getSimpleName().startsWith("String_Node_Str");
}
Program: 185671
Project: 185671
Buggy source:
private Expression repairClassLiteralReference(Expression exp,BlockScope scope,TypeBinding[] valueType){
  TypeBinding vtb=null;
  if (exp instanceof SingleNameReference) {
    vtb=exp.resolveType(scope);
    SingleNameReference ref=(SingleNameReference)exp;
    if (vtb != null && Arrays.equals(ref.token,vtb.sourceName())) {
      return new ClassLiteralAccess(ref.sourceEnd,new SingleTypeReference(ref.token,((long)ref.sourceStart) << 32 | ref.sourceEnd));
    }
  }
 else   if (this.value instanceof QualifiedNameReference) {
    vtb=exp.resolveType(scope);
    QualifiedNameReference ref=(QualifiedNameReference)exp;
    if (vtb != null && Arrays.equals(ref.tokens[ref.tokens.length - 1],vtb.sourceName())) {
      return new ClassLiteralAccess(ref.sourceEnd,new QualifiedTypeReference(ref.tokens,ref.sourcePositions));
    }
  }
  if (valueType != null) {
    valueType[0]=vtb;
  }
  return exp;
}

Fixed version (ground truth):
private static Expression repairClassLiteralReference(Expression exp,BlockScope scope){
  if (exp instanceof SingleNameReference) {
    if (exp.resolveType(scope) != null) {
      SingleNameReference ref=(SingleNameReference)exp;
      return new ClassLiteralAccess(ref.sourceEnd,new SingleTypeReference(ref.token,((long)ref.sourceStart) << 32 | ref.sourceEnd));
    }
  }
 else   if (exp instanceof QualifiedNameReference) {
    if (exp.resolveType(scope) != null) {
      QualifiedNameReference ref=(QualifiedNameReference)exp;
      return new ClassLiteralAccess(ref.sourceEnd,new QualifiedTypeReference(ref.tokens,ref.sourcePositions));
    }
  }
  return exp;
}
Program: 185673
Project: 185673
Buggy source:
public void testAccessForExtends(){
  env.addGroovyClass(src,"String_Node_Str","String_Node_Str" + "String_Node_Str");
  fullBuild();
  expectingProblemsFor(src.append("String_Node_Str"),"String_Node_Str" + "String_Node_Str");
}

Fixed version (ground truth):
public void testAccessForExtends(){
  String source="String_Node_Str" + "String_Node_Str";
  assertAccessRestriction(source,"String_Node_Str");
}
Program: 185674
Project: 185674
Buggy source:
public void testAccessForImplements(){
  env.addGroovyClass(src,"String_Node_Str","String_Node_Str" + "String_Node_Str");
  fullBuild();
  expectingProblemsFor(src.append("String_Node_Str"),"String_Node_Str" + "String_Node_Str");
}

Fixed version (ground truth):
public void testAccessForImplements(){
  String source="String_Node_Str" + "String_Node_Str";
  assertAccessRestriction(source,"String_Node_Str");
}
Program: 185675
Project: 185675
Buggy source:
/** 
 * @param type
 * @param cl erasure of type
 * @return
 */
private ClassNode makeClassNode(TypeBinding t,TypeBinding c){
  ClassNode back=null;
  if (back == null)   back=resolver.convertToClassNode(c);
  if (!((t instanceof BinaryTypeBinding) || (t instanceof SourceTypeBinding))) {
    ClassNode front=JDTClassNodeBuilder.build(this.resolver,t);
    front.setRedirect(back);
    return front;
  }
  return back;
}

Fixed version (ground truth):
/** 
 * @param t type
 * @param c erasure of type
 */
private ClassNode makeClassNode(TypeBinding t,TypeBinding c){
  ClassNode back=resolver.convertToClassNode(c);
  if (!((t instanceof BinaryTypeBinding) || (t instanceof SourceTypeBinding))) {
    ClassNode front=JDTClassNodeBuilder.build(this.resolver,t);
    front.setRedirect(back);
    return front;
  }
  return back;
}
Program: 185676
Project: 185676
Buggy source:
/** 
 * Creates a Groovy ClassNode that represents the JDT TypeBinding. Build the basic structure, mark it as 'in progress' and then continue with initialization. This allows self referential generic declarations.
 * @param jdtBinding the JDT binding for which to create a ClassNode
 * @return the new ClassNode, of type JDTClassNode
 */
private ClassNode createJDTClassNode(TypeBinding jdtBinding){
}

Fixed version (ground truth):
/** 
 * Creates a Groovy ClassNode that represents the JDT TypeBinding. Steps include building the basic structure, marking node as 'in progress' and continuing with initialization. This allows self-referential generics.
 * @param jdtBinding the JDT binding for which to create a ClassNode
 * @return a {@link JDTClassNode}
 */
private ClassNode createJDTClassNode(TypeBinding jdtBinding){
}
Program: 185677
Project: 185677
Buggy source:
@Override protected boolean resolveFromModule(ClassNode type,boolean testModuleImports){
  boolean foundit=super.resolveFromModule(type,testModuleImports);
  recordDependency(type.getName());
  if (DEBUG) {
    log("String_Node_Str",type,foundit);
  }
  return foundit;
}

Fixed version (ground truth):
@Override protected boolean resolveFromModule(ClassNode type,boolean testModuleImports){
  boolean foundit=super.resolveFromModule(type,testModuleImports);
  recordDependency(type.getName());
  if (DEBUG) {
    log("String_Node_Str",type,foundit);
  }
  if (foundit) {
    if (type.redirect() instanceof JDTClassNode && ((JDTClassNode)type.redirect()).getJdtBinding().hasRestrictedAccess()) {
      TypeBinding binding=((JDTClassNode)type.redirect()).getJdtBinding();
      AccessRestriction restriction=activeScope.environment().getAccessRestriction(binding.erasure());
      if (restriction != null) {
        SingleTypeReference ref=new SingleTypeReference(type.getNameWithoutPackage().toCharArray(),((long)type.getStart() << 32 | (long)type.getEnd() - 1));
        activeScope.problemReporter().forbiddenReference(binding,ref,restriction.classpathEntryType,restriction.classpathEntryName,restriction.getProblemId());
      }
    }
  }
  return foundit;
}
Program: 185678
Project: 185678
Buggy source:
public void testStaticImports_GtoJ(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testStaticImports_GtoJ(){
  runConformTest(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");
}
Program: 185679
Project: 185679
Buggy source:
public void testBrokenPackage(){
  this.runNegativeTest(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");
}

Fixed version (ground truth):
public void testBrokenPackage(){
  runNegativeTest(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");
}
Program: 185680
Project: 185680
Buggy source:
public void testEnums(){
  this.runConformTest(new String[]{"String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str"},"String_Node_Str");
}

Fixed version (ground truth):
public void testEnums(){
  runConformTest(new String[]{"String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str"},"String_Node_Str");
}
Program: 185681
Project: 185681
Buggy source:
public void _testOverridingFinalMethod(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void _testOverridingFinalMethod(){
  runConformTest(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");
}
Program: 185682
Project: 185682
Buggy source:
/** 
 * Now a class extending a java type which extends a base groovy class.  Super groovy type should get them. This looks odd to me, not sure why Foo and One both get the methods when One inherits them through Foo - perhaps the java type in the middle makes a difference.  Anyway by augmenting both of these we are actually doing the same as groovyc, and that is the main thing.
 */
public void testClassHierarchiesAndGroovyObjectMethods3(){
  try {
    GroovyClassScope.debugListener=new EventListener();
    this.runConformTest(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");
    assertEventCount(2,GroovyClassScope.debugListener);
    assertEvent("String_Node_Str",GroovyClassScope.debugListener);
    assertEvent("String_Node_Str",GroovyClassScope.debugListener);
  }
  finally {
    GroovyClassScope.debugListener=null;
  }
}

Fixed version (ground truth):
/** 
 * Now a class extending a java type which extends a base groovy class.  Super groovy type should get them. This looks odd to me, not sure why Foo and One both get the methods when One inherits them through Foo - perhaps the java type in the middle makes a difference.  Anyway by augmenting both of these we are actually doing the same as groovyc, and that is the main thing.
 */
public void testClassHierarchiesAndGroovyObjectMethods3(){
  try {
    GroovyClassScope.debugListener=new EventListener();
    runConformTest(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");
    assertEventCount(2,GroovyClassScope.debugListener);
    assertEvent("String_Node_Str",GroovyClassScope.debugListener);
    assertEvent("String_Node_Str",GroovyClassScope.debugListener);
  }
  finally {
    GroovyClassScope.debugListener=null;
  }
}
Program: 185683
Project: 185683
Buggy source:
/** 
 * First a class extending another.  The superclass gets augmented but not the subclass.
 */
public void testClassHierarchiesAndGroovyObjectMethods(){
  try {
    GroovyClassScope.debugListener=new EventListener("String_Node_Str");
    this.runConformTest(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");
    assertEventCount(1,GroovyClassScope.debugListener);
    assertEvent("String_Node_Str",GroovyClassScope.debugListener);
    System.err.println(GroovyClassScope.debugListener.toString());
  }
  finally {
    GroovyClassScope.debugListener=null;
  }
}

Fixed version (ground truth):
/** 
 * First a class extending another.  The superclass gets augmented but not the subclass.
 */
public void testClassHierarchiesAndGroovyObjectMethods(){
  try {
    GroovyClassScope.debugListener=new EventListener("String_Node_Str");
    runConformTest(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");
    assertEventCount(1,GroovyClassScope.debugListener);
    assertEvent("String_Node_Str",GroovyClassScope.debugListener);
    System.err.println(GroovyClassScope.debugListener.toString());
  }
  finally {
    GroovyClassScope.debugListener=null;
  }
}
Program: 185684
Project: 185684
Buggy source:
/** 
 * Now a class implementing an interface.  The subclass gets augmented because the superclass did not.
 */
public void testClassHierarchiesAndGroovyObjectMethods2(){
  try {
    GroovyClassScope.debugListener=new EventListener("String_Node_Str");
    this.runConformTest(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");
    assertEventCount(1,GroovyClassScope.debugListener);
    assertEvent("String_Node_Str",GroovyClassScope.debugListener);
    System.err.println(GroovyClassScope.debugListener.toString());
  }
  finally {
    GroovyClassScope.debugListener=null;
  }
}

Fixed version (ground truth):
/** 
 * Now a class implementing an interface.  The subclass gets augmented because the superclass did not.
 */
public void testClassHierarchiesAndGroovyObjectMethods2(){
  try {
    GroovyClassScope.debugListener=new EventListener("String_Node_Str");
    runConformTest(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");
    assertEventCount(1,GroovyClassScope.debugListener);
    assertEvent("String_Node_Str",GroovyClassScope.debugListener);
    System.err.println(GroovyClassScope.debugListener.toString());
  }
  finally {
    GroovyClassScope.debugListener=null;
  }
}
Program: 185685
Project: 185685
Buggy source:
public void testImplementingInterface_MethodWithParameters_JextendsG(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testImplementingInterface_MethodWithParameters_JextendsG(){
  runConformTest(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");
}
Program: 185686
Project: 185686
Buggy source:
public void testConstructorsForEnumWrong_GRE285(){
  this.runNegativeTest(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");
}

Fixed version (ground truth):
public void testConstructorsForEnumWrong_GRE285(){
  runNegativeTest(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");
}
Program: 185687
Project: 185687
Buggy source:
public void testImportInnerInner01(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testImportInnerInner01(){
  runConformTest(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");
}
Program: 185688
Project: 185688
Buggy source:
public void testImportAliasing(){
  this.runConformTest(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" + "String_Node_Str"+ "String_Node_Str"},"String_Node_Str");
}

Fixed version (ground truth):
public void testImportAliasing(){
  runConformTest(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" + "String_Node_Str"+ "String_Node_Str"},"String_Node_Str");
}
Program: 185689
Project: 185689
Buggy source:
public void testCrashingOnBadCode_GRE290_3(){
  this.runNegativeTest(new String[]{"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):
public void testCrashingOnBadCode_GRE290_3(){
  runNegativeTest(new String[]{"String_Node_Str","String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"},"String_Node_Str");
}
Program: 185690
Project: 185690
Buggy source:
public void testGroovyObjectsAreGroovyAtCompileTime(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testGroovyObjectsAreGroovyAtCompileTime(){
  runConformTest(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");
}
Program: 185691
Project: 185691
Buggy source:
public void testCrashingOnBadCode_GRE290_4(){
  this.runNegativeTest(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");
}

Fixed version (ground truth):
public void testCrashingOnBadCode_GRE290_4(){
  runNegativeTest(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");
}
Program: 185692
Project: 185692
Buggy source:
public void testParsingDotTerminatedImportFollowedByClassDeclaration_538() throws Exception {
  if (GroovyUtils.GROOVY_LEVEL < 18) {
    return;
  }
  this.runNegativeTest(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");
  ModuleNode mn=getModuleNode("String_Node_Str");
  assertNotNull(mn);
  assertFalse(mn.encounteredUnrecoverableError());
  List<ImportNode> imports=mn.getStarImports();
  ImportNode brokenImportNode=imports.get(0);
  assertEquals("String_Node_Str",brokenImportNode.getPackageName());
  ClassNode cn=mn.getClasses().get(0);
  assertNotNull(cn);
  assertEquals("String_Node_Str",cn.getName());
}

Fixed version (ground truth):
public void testParsingDotTerminatedImportFollowedByClassDeclaration_538() throws Exception {
  runNegativeTest(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");
  ModuleNode mn=getModuleNode("String_Node_Str");
  assertNotNull(mn);
  assertFalse(mn.encounteredUnrecoverableError());
  List<ImportNode> imports=mn.getStarImports();
  ImportNode brokenImportNode=imports.get(0);
  assertEquals("String_Node_Str",brokenImportNode.getPackageName());
  ClassNode cn=mn.getClasses().get(0);
  assertNotNull(cn);
  assertEquals("String_Node_Str",cn.getName());
}
Program: 185693
Project: 185693
Buggy source:
public void testCrashingOnBadCode_GRE290_2(){
  this.runNegativeTest(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");
}

Fixed version (ground truth):
public void testCrashingOnBadCode_GRE290_2(){
  runNegativeTest(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");
}
Program: 185694
Project: 185694
Buggy source:
public void testGroovyPropertyAccessors_Set(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testGroovyPropertyAccessors_Set(){
  runConformTest(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");
}
Program: 185695
Project: 185695
Buggy source:
public void testImplementingInterface_JavaExtendingGroovyAndImplementingMethod_QualifiedArrayReferenceReturnType(){
  this.runNegativeTest(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"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
}

Fixed version (ground truth):
public void testImplementingInterface_JavaExtendingGroovyAndImplementingMethod_QualifiedArrayReferenceReturnType(){
  runNegativeTest(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"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
}
Program: 185696
Project: 185696
Buggy source:
public void testDefaultValueMethods02(){
  this.runConformTest(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 expectedOutput="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";
  checkGCUDeclaration("String_Node_Str",expectedOutput);
  expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  checkDisassemblyFor("String_Node_Str",expectedOutput,ClassFileBytesDisassembler.COMPACT);
  expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  checkDisassemblyFor("String_Node_Str",expectedOutput,ClassFileBytesDisassembler.COMPACT);
  expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  checkDisassemblyFor("String_Node_Str",expectedOutput,ClassFileBytesDisassembler.COMPACT);
  expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  checkDisassemblyFor("String_Node_Str",expectedOutput,ClassFileBytesDisassembler.COMPACT);
}

Fixed version (ground truth):
public void testDefaultValueMethods02(){
  runConformTest(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 expectedOutput="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";
  checkGCUDeclaration("String_Node_Str",expectedOutput);
  expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  checkDisassemblyFor("String_Node_Str",expectedOutput,ClassFileBytesDisassembler.COMPACT);
  expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  checkDisassemblyFor("String_Node_Str",expectedOutput,ClassFileBytesDisassembler.COMPACT);
  expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  checkDisassemblyFor("String_Node_Str",expectedOutput,ClassFileBytesDisassembler.COMPACT);
  expectedOutput="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  checkDisassemblyFor("String_Node_Str",expectedOutput,ClassFileBytesDisassembler.COMPACT);
}
Program: 185697
Project: 185697
Buggy source:
public void testInvalidScripts_GRE323_1b(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testInvalidScripts_GRE323_1b(){
  runConformTest(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");
}
Program: 185698
Project: 185698
Buggy source:
public void testExtendingJavaWithGroovyAndThenJava(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testExtendingJavaWithGroovyAndThenJava(){
  runConformTest(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");
}
Program: 185699
Project: 185699
Buggy source:
public void testAbstractCovariance_GRE272(){
  this.runNegativeTest(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");
}

Fixed version (ground truth):
public void testAbstractCovariance_GRE272(){
  runNegativeTest(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");
}
Program: 185700
Project: 185700
Buggy source:
public void testImports2(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testImports2(){
  runConformTest(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");
}
Program: 185701
Project: 185701
Buggy source:
public void testImports1(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testImports1(){
  runConformTest(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");
}
Program: 185702
Project: 185702
Buggy source:
public void testPositions(){
  this.runNegativeTest(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");
}

Fixed version (ground truth):
public void testPositions(){
  runNegativeTest(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");
}
Program: 185703
Project: 185703
Buggy source:
public void testImplementingInterface_MethodWithParameters_GextendsJ(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testImplementingInterface_MethodWithParameters_GextendsJ(){
  runConformTest(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");
}
Program: 185704
Project: 185704
Buggy source:
public void testNotMakingInterfacesImplementGroovyObject(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testNotMakingInterfacesImplementGroovyObject(){
  runConformTest(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");
}
Program: 185705
Project: 185705
Buggy source:
public void testReferencingFields_GreferingToJ(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testReferencingFields_GreferingToJ(){
  runConformTest(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");
}
Program: 185706
Project: 185706
Buggy source:
public void testVisibility(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testVisibility(){
  runConformTest(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");
}
Program: 185707
Project: 185707
Buggy source:
public void testExtendingJavaWithGroovy1(){
  this.runConformTest(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");
}

Fixed version (ground truth):
public void testExtendingJavaWithGroovy1(){
  runConformTest(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");
}