nus-yam/ex-repair huggingface dataset:
Program: 82695
Project: 82695
Buggy source:
/** 
 * Update the style sheets to reflect the current theme and direction.
 */
private void updateStyleSheets(){
  String gwtStyleSheet="String_Node_Str" + CUR_THEME + "String_Node_Str"+ CUR_THEME+ "String_Node_Str";
  String showcaseStyleSheet=CUR_THEME + "String_Node_Str";
  if (LocaleInfo.getCurrentLocale().isRTL()) {
    gwtStyleSheet=gwtStyleSheet.replace("String_Node_Str","String_Node_Str");
    showcaseStyleSheet=showcaseStyleSheet.replace("String_Node_Str","String_Node_Str");
  }
  HeadElement headElem=getHeadElement();
  NodeList<Node> children=headElem.getChildNodes();
  for (int i=0; i < children.getLength(); i++) {
    Node node=children.getItem(i);
    if (node.getNodeType() == Node.ELEMENT_NODE) {
      Element elem=Element.as(node);
      if (elem.getTagName().equalsIgnoreCase("String_Node_Str") && elem.getPropertyString("String_Node_Str").equalsIgnoreCase("String_Node_Str")) {
        String href=elem.getPropertyString("String_Node_Str");
        if (gwtStyleSheet != null && href.contains(gwtStyleSheet)) {
          gwtStyleSheet=null;
        }
 else         if (showcaseStyleSheet != null && href.contains(showcaseStyleSheet)) {
          showcaseStyleSheet=null;
        }
 else {
          headElem.removeChild(elem);
          i--;
        }
      }
    }
  }
  String modulePath=GWT.getModuleBaseURL();
  if (gwtStyleSheet != null) {
    styleTesterTimer.schedule(25);
    loadStyleSheet(modulePath + gwtStyleSheet);
  }
  if (showcaseStyleSheet != null) {
    loadStyleSheet(modulePath + showcaseStyleSheet);
  }
}

Fixed version (ground truth):
/** 
 * Update the style sheets to reflect the current theme and direction.
 */
private void updateStyleSheets(){
  String gwtStyleSheet="String_Node_Str" + CUR_THEME + "String_Node_Str"+ CUR_THEME+ "String_Node_Str";
  String showcaseStyleSheet=CUR_THEME + "String_Node_Str";
  if (LocaleInfo.getCurrentLocale().isRTL()) {
    gwtStyleSheet=gwtStyleSheet.replace("String_Node_Str","String_Node_Str");
    showcaseStyleSheet=showcaseStyleSheet.replace("String_Node_Str","String_Node_Str");
  }
  HeadElement headElem=getHeadElement();
  NodeList<Node> children=headElem.getChildNodes();
  for (int i=0; i < children.getLength(); i++) {
    Node node=children.getItem(i);
    if (node.getNodeType() == Node.ELEMENT_NODE) {
      Element elem=Element.as(node);
      if (elem.getTagName().equalsIgnoreCase("String_Node_Str") && elem.getPropertyString("String_Node_Str").equalsIgnoreCase("String_Node_Str")) {
        String href=elem.getPropertyString("String_Node_Str");
        if (gwtStyleSheet != null && href.contains(gwtStyleSheet)) {
          gwtStyleSheet=null;
        }
 else         if (showcaseStyleSheet != null && href.contains(showcaseStyleSheet)) {
          showcaseStyleSheet=null;
        }
 else {
          headElem.removeChild(elem);
          i--;
        }
      }
    }
  }
  styleTesterTimer.schedule(25);
  String modulePath=GWT.getModuleBaseURL();
  if (gwtStyleSheet != null) {
    loadStyleSheet(modulePath + gwtStyleSheet);
  }
  if (showcaseStyleSheet != null) {
    loadStyleSheet(modulePath + showcaseStyleSheet);
  }
}
Program: 82697
Project: 82697
Buggy source:
private void generateProxyMethods(SourceWriter w,SerializableTypeOracle serializableTypeOracle,Map<JMethod,JMethod> syncMethToAsyncMethMap){
  JMethod[] syncMethods=serviceIntf.getOverridableMethods();
  for (  JMethod syncMethod : syncMethods) {
    JMethod asyncMethod=syncMethToAsyncMethMap.get(syncMethod);
    assert(asyncMethod != null);
    generateProxyMethod(w,serializableTypeOracle,syncMethod,asyncMethod);
  }
}

Fixed version (ground truth):
private void generateProxyMethods(SourceWriter w,SerializableTypeOracle serializableTypeOracle,Map<JMethod,JMethod> syncMethToAsyncMethMap){
  JMethod[] syncMethods=serviceIntf.getOverridableMethods();
  for (  JMethod syncMethod : syncMethods) {
    JMethod asyncMethod=syncMethToAsyncMethMap.get(syncMethod);
    assert(asyncMethod != null);
    JClassType enclosingType=syncMethod.getEnclosingType();
    JParameterizedType isParameterizedType=enclosingType.isParameterized();
    if (isParameterizedType != null) {
      JMethod[] methods=isParameterizedType.getMethods();
      for (int i=0; i < methods.length; ++i) {
        if (methods[i] == syncMethod) {
          syncMethod=isParameterizedType.getBaseType().getMethods()[i];
        }
      }
    }
    generateProxyMethod(w,serializableTypeOracle,syncMethod,asyncMethod);
  }
}
Program: 82698
Project: 82698
Buggy source:
private SourceWriter getSourceWriter(TreeLogger logger,GeneratorContext ctx,JClassType serviceAsync){
  JPackage serviceIntfPkg=serviceAsync.getPackage();
  String packageName=serviceIntfPkg == null ? "String_Node_Str" : serviceIntfPkg.getName();
  PrintWriter printWriter=ctx.tryCreate(logger,packageName,getProxySimpleName());
  if (printWriter == null) {
    return null;
  }
  ClassSourceFileComposerFactory composerFactory=new ClassSourceFileComposerFactory(packageName,getProxySimpleName());
  String[] imports=new String[]{RemoteServiceProxy.class.getCanonicalName(),ClientSerializationStreamWriter.class.getCanonicalName(),GWT.class.getCanonicalName(),ResponseReader.class.getCanonicalName(),SerializationException.class.getCanonicalName()};
  for (  String imp : imports) {
    composerFactory.addImport(imp);
  }
  composerFactory.setSuperclass(RemoteServiceProxy.class.getSimpleName());
  composerFactory.addImplementedInterface(serviceAsync.getParameterizedQualifiedSourceName());
  return composerFactory.createSourceWriter(ctx,printWriter);
}

Fixed version (ground truth):
private SourceWriter getSourceWriter(TreeLogger logger,GeneratorContext ctx,JClassType serviceAsync){
  JPackage serviceIntfPkg=serviceAsync.getPackage();
  String packageName=serviceIntfPkg == null ? "String_Node_Str" : serviceIntfPkg.getName();
  PrintWriter printWriter=ctx.tryCreate(logger,packageName,getProxySimpleName());
  if (printWriter == null) {
    return null;
  }
  ClassSourceFileComposerFactory composerFactory=new ClassSourceFileComposerFactory(packageName,getProxySimpleName());
  String[] imports=new String[]{RemoteServiceProxy.class.getCanonicalName(),ClientSerializationStreamWriter.class.getCanonicalName(),GWT.class.getCanonicalName(),ResponseReader.class.getCanonicalName(),SerializationException.class.getCanonicalName()};
  for (  String imp : imports) {
    composerFactory.addImport(imp);
  }
  composerFactory.setSuperclass(RemoteServiceProxy.class.getSimpleName());
  composerFactory.addImplementedInterface(serviceAsync.getErasedType().getQualifiedSourceName());
  return composerFactory.createSourceWriter(ctx,printWriter);
}
Program: 82702
Project: 82702
Buggy source:
/** 
 * Returns <code>true</code> if the query type is accessible to classes in the same package.
 */
private static boolean isAccessibleToClassesInSamePackage(JClassType type){
  if (type.isPrivate()) {
    return false;
  }
  if (type.isMemberType()) {
    return isAccessibleToClassesInSamePackage(type.getEnclosingType());
  }
  return true;
}

Fixed version (ground truth):
/** 
 * Returns <code>true</code> if the query type is accessible to classes in the same package.
 */
private static boolean isAccessibleToClassesInSamePackage(JClassType type){
  if (type.isPrivate() || type.isLocalType()) {
    return false;
  }
  if (type.isMemberType()) {
    return isAccessibleToClassesInSamePackage(type.getEnclosingType());
  }
  return true;
}
Program: 82703
Project: 82703
Buggy source:
private Map<String,Resource> rerootResourcePaths(Map<String,AbstractResource> newInternalMap){
  Map<String,Resource> externalMap;
  externalMap=new HashMap<String,Resource>();
  for (  AbstractResource resource : newInternalMap.values()) {
    String path=resource.getPath();
    if (externalMap.get(path) instanceof ResourceWrapper) {
      continue;
    }
    for (    PathPrefix pathPrefix : pathPrefixSet.values()) {
      if (pathPrefix.allows(path)) {
        assert(path.startsWith(pathPrefix.getPrefix()));
        if (pathPrefix.shouldReroot()) {
          path=pathPrefix.getRerootedPath(path);
          AbstractResource wrapper=new ResourceWrapper(path,resource);
          externalMap.put(path,wrapper);
        }
 else {
          externalMap.put(path,resource);
        }
        break;
      }
    }
    assert(externalMap.containsKey(path));
  }
  return externalMap;
}

Fixed version (ground truth):
private Map<String,Resource> rerootResourcePaths(Map<String,AbstractResource> newInternalMap){
  Map<String,Resource> externalMap;
  externalMap=new HashMap<String,Resource>();
  for (  AbstractResource resource : newInternalMap.values()) {
    String path=resource.getPath();
    if (externalMap.get(path) instanceof ResourceWrapper) {
      continue;
    }
    for (    PathPrefix pathPrefix : pathPrefixSet.values()) {
      if (pathPrefix.allows(path)) {
        assert(path.startsWith(pathPrefix.getPrefix()));
        if (pathPrefix.shouldReroot()) {
          path=pathPrefix.getRerootedPath(path);
          Resource exposed=exposedResourceMap.get(path);
          if (exposed instanceof ResourceWrapper) {
            ResourceWrapper exposedWrapper=(ResourceWrapper)exposed;
            if (exposedWrapper.resource == resource) {
              externalMap.put(path,exposedWrapper);
              break;
            }
          }
          AbstractResource wrapper=new ResourceWrapper(path,resource);
          externalMap.put(path,wrapper);
        }
 else {
          externalMap.put(path,resource);
        }
        break;
      }
    }
    assert(externalMap.containsKey(path));
  }
  return externalMap;
}
Program: 82704
Project: 82704
Buggy source:
public void testReplaceString(){
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
}

Fixed version (ground truth):
public void testReplaceString(){
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
  assertEquals("String_Node_Str",hideFromCompiler("String_Node_Str").replace("String_Node_Str","String_Node_Str"));
}
Program: 82705
Project: 82705
Buggy source:
private static native void initUrlCheckTimer();

Fixed version (ground truth):
private native void initUrlCheckTimer();
Program: 82706
Project: 82706
Buggy source:
public DefaultMuseum(){
  addIssue(new Issue1245());
  addIssue(new Issue1897());
  addIssue(new Issue2261());
  addIssue(new Issue2290());
  addIssue(new Issue2307());
  addIssue(new Issue2321());
  addIssue(new Issue2331());
  addIssue(new Issue2338());
  addIssue(new Issue2339());
}

Fixed version (ground truth):
public DefaultMuseum(){
  addIssue(new Issue1245());
  addIssue(new Issue1897());
  addIssue(new Issue2261());
  addIssue(new Issue2290());
  addIssue(new Issue2307());
  addIssue(new Issue2321());
  addIssue(new Issue2331());
  addIssue(new Issue2338());
  addIssue(new Issue2339());
  addIssue(new TestFireEvents());
}
Program: 82707
Project: 82707
Buggy source:
public DefaultMuseum(){
  addIssue(new Issue1245());
  addIssue(new Issue1897());
  addIssue(new Issue2261());
  addIssue(new Issue2290());
  addIssue(new Issue2307());
  addIssue(new Issue2321());
  addIssue(new Issue2331());
  addIssue(new Issue2338());
  addIssue(new Issue2339());
  addIssue(new TestFireEvents());
}

Fixed version (ground truth):
public DefaultMuseum(){
  addIssue(new Issue1245());
  addIssue(new Issue1897());
  addIssue(new Issue2261());
  addIssue(new Issue2290());
  addIssue(new Issue2307());
  addIssue(new Issue2321());
  addIssue(new Issue2331());
  addIssue(new Issue2338());
  addIssue(new Issue2339());
  addIssue(new Issue2392());
  addIssue(new TestFireEvents());
}
Program: 82708
Project: 82708
Buggy source:
private static native boolean detectOldSafari();

Fixed version (ground truth):
static native boolean detectOldSafari();
Program: 82709
Project: 82709
Buggy source:
public void testTokenEscaping(){
  final String escToken="String_Node_Str";
  delayTestFinish(5000);
  History.addHistoryListener(new HistoryListener(){
    public void onHistoryChanged(    String token){
      assertEquals(escToken,token);
      finishTest();
      History.removeHistoryListener(this);
    }
  }
);
  History.newItem(escToken);
}

Fixed version (ground truth):
public void testTokenEscaping(){
  final String shouldBeEncoded="String_Node_Str";
  final String shouldBeEncodedAs="String_Node_Str";
  delayTestFinish(5000);
  History.addHistoryListener(new HistoryListener(){
    public void onHistoryChanged(    String token){
      assertEquals(shouldBeEncodedAs,getCurrentLocationHash());
      assertEquals(shouldBeEncoded,token);
      finishTest();
      History.removeHistoryListener(this);
    }
  }
);
  History.newItem(shouldBeEncoded);
}
Program: 82711
Project: 82711
Buggy source:
public synchronized void refresh(TreeLogger logger) throws UnableToCompleteException {
  PerfLogger.start("String_Node_Str");
  lazyPublicOracle.refresh(logger);
  compilationState.refresh();
  if (lazyTypeOracle != null) {
    updateTypeOracle(logger);
  }
  PerfLogger.end();
}

Fixed version (ground truth):
public synchronized void refresh(TreeLogger logger) throws UnableToCompleteException {
  PerfLogger.start("String_Node_Str");
  lazyPublicOracle.refresh(logger);
  lazySourceOracle.refresh(logger);
  compilationState.refresh();
  if (lazyTypeOracle != null) {
    updateTypeOracle(logger);
  }
  PerfLogger.end();
}
Program: 82713
Project: 82713
Buggy source:
@Override protected synchronized Class<?> findClass(String className) throws ClassNotFoundException {
  if (className == null) {
    throw new ClassNotFoundException("String_Node_Str",new NullPointerException());
  }
  if (isInStandardJavaPackage(className)) {
    throw new ClassNotFoundException(className);
  }
  if (BRIDGE_CLASS_NAMES.containsKey(className)) {
    return BRIDGE_CLASS_NAMES.get(className);
  }
  byte[] classBytes;
  try {
    String lookupClassName=className;
    if (classRewriter != null && classRewriter.isJsoImpl(className)) {
      lookupClassName=className.substring(0,className.length() - 1);
    }
    classBytes=compiler.getClassBytes(logger,lookupClassName);
    if (classRewriter != null) {
      classBytes=classRewriter.rewrite(className,classBytes);
    }
    Class<?> newClass=defineClass(className,classBytes,0,classBytes.length);
    if (className.equals(JavaScriptHost.class.getName())) {
      javaScriptHostClass=newClass;
      updateJavaScriptHost();
    }
    return newClass;
  }
 catch (  UnableToCompleteException e) {
    throw new ClassNotFoundException(className);
  }
}

Fixed version (ground truth):
@Override protected synchronized Class<?> findClass(String className) throws ClassNotFoundException {
  if (className == null) {
    throw new ClassNotFoundException("String_Node_Str",new NullPointerException());
  }
  if (isInStandardJavaPackage(className)) {
    throw new ClassNotFoundException(className);
  }
  if (BRIDGE_CLASS_NAMES.containsKey(className)) {
    return BRIDGE_CLASS_NAMES.get(className);
  }
  byte[] classBytes;
  try {
    ++stackDepth;
    String lookupClassName=className;
    if (classRewriter != null && classRewriter.isJsoImpl(className)) {
      lookupClassName=className.substring(0,className.length() - 1);
    }
    classBytes=compiler.getClassBytes(logger,lookupClassName);
    if (classRewriter != null) {
      classBytes=classRewriter.rewrite(className,classBytes);
    }
    Class<?> newClass=defineClass(className,classBytes,0,classBytes.length);
    if (className.equals(JavaScriptHost.class.getName())) {
      javaScriptHostClass=newClass;
      updateJavaScriptHost();
    }
    return newClass;
  }
 catch (  UnableToCompleteException e) {
    throw new ClassNotFoundException(className);
  }
 finally {
    --stackDepth;
  }
}
Program: 82714
Project: 82714
Buggy source:
/** 
 * Overridden to process JSNI annotations.
 */
@Override protected synchronized Class<?> loadClass(String name,boolean resolve) throws ClassNotFoundException {
  Class<?> newClass=super.loadClass(name,resolve);
  JsniMethods jsniMethods=newClass.getAnnotation(JsniMethods.class);
  if (jsniMethods != null) {
    for (    JsniMethod jsniMethod : jsniMethods.value()) {
      String[] bodyParts=jsniMethod.body();
      int size=0;
      for (      String bodyPart : bodyParts) {
        size+=bodyPart.length();
      }
      StringBuilder body=new StringBuilder(size);
      for (      String bodyPart : bodyParts) {
        body.append(bodyPart);
      }
      shellJavaScriptHost.createNative(jsniMethod.file(),jsniMethod.line(),jsniMethod.name(),jsniMethod.paramNames(),body.toString());
    }
  }
  return newClass;
}

Fixed version (ground truth):
/** 
 * Overridden to process JSNI annotations.
 */
@Override protected synchronized Class<?> loadClass(String name,boolean resolve) throws ClassNotFoundException {
  Class<?> newClass=super.loadClass(name,resolve);
  if (!newClass.isInterface() && !newClass.isLocalClass()) {
    pendingJsniInjectionClasses.add(newClass);
  }
  if (stackDepth == 0 && !pendingJsniInjectionClasses.isEmpty()) {
    Class<?>[] toCheck=pendingJsniInjectionClasses.toArray(new Class<?>[pendingJsniInjectionClasses.size()]);
    pendingJsniInjectionClasses.clear();
    for (    Class<?> checkClass : toCheck) {
      JsniMethods jsniMethods=checkClass.getAnnotation(JsniMethods.class);
      if (jsniMethods != null) {
        for (        JsniMethod jsniMethod : jsniMethods.value()) {
          String[] bodyParts=jsniMethod.body();
          int size=0;
          for (          String bodyPart : bodyParts) {
            size+=bodyPart.length();
          }
          StringBuilder body=new StringBuilder(size);
          for (          String bodyPart : bodyParts) {
            body.append(bodyPart);
          }
          shellJavaScriptHost.createNative(jsniMethod.file(),jsniMethod.line(),jsniMethod.name(),jsniMethod.paramNames(),body.toString());
        }
      }
    }
  }
  return newClass;
}
Program: 82715
Project: 82715
Buggy source:
protected static void validateDeclaredAnnotations(Annotation[] expected,Annotation[] actual){
  assertArraysEqual(expected,actual);
}

Fixed version (ground truth):
protected static void validateDeclaredAnnotations(Annotation[] expected,Annotation[] actual){
  Arrays.sort(expected,ANNOTATION_COMPARATOR);
  Arrays.sort(actual,ANNOTATION_COMPARATOR);
  assertArraysEqual(expected,actual);
}
Program: 82716
Project: 82716
Buggy source:
protected static void validateAnnotations(Annotation[] expected,Annotation[] actual){
  assertArraysEqual(expected,actual);
}

Fixed version (ground truth):
protected static void validateAnnotations(Annotation[] expected,Annotation[] actual){
  Arrays.sort(expected,ANNOTATION_COMPARATOR);
  Arrays.sort(actual,ANNOTATION_COMPARATOR);
  assertArraysEqual(expected,actual);
}
Program: 82717
Project: 82717
Buggy source:
protected static void validateMetaDataTags(HasMetaData md1,HasMetaData md2){
  assertEquals(md1.getMetaDataTags().length,md2.getMetaDataTags().length);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") protected static void validateMetaDataTags(HasMetaData md1,HasMetaData md2){
  assertEquals(md1.getMetaDataTags().length,md2.getMetaDataTags().length);
}
Program: 82718
Project: 82718
Buggy source:
protected static void validateMetaData(HasMetaData md1,HasMetaData md2){
  validateMetaDataTags(md1,md2);
  String[] md1TagNames=md1.getMetaDataTags();
  String[] md2TagNames=md2.getMetaDataTags();
  for (int i=0; i < md1TagNames.length; ++i) {
    assertEquals(md1TagNames[i],md2TagNames[i]);
    String[][] md1TagValues=md1.getMetaData(md1TagNames[i]);
    String[][] md2TagValues=md2.getMetaData(md2TagNames[i]);
    assertTrue(Arrays.deepEquals(md1TagValues,md2TagValues));
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") protected static void validateMetaData(HasMetaData md1,HasMetaData md2){
  validateMetaDataTags(md1,md2);
  String[] md1TagNames=md1.getMetaDataTags();
  String[] md2TagNames=md2.getMetaDataTags();
  for (int i=0; i < md1TagNames.length; ++i) {
    assertEquals(md1TagNames[i],md2TagNames[i]);
    String[][] md1TagValues=md1.getMetaData(md1TagNames[i]);
    String[][] md2TagValues=md2.getMetaData(md2TagNames[i]);
    assertTrue(Arrays.deepEquals(md1TagValues,md2TagValues));
  }
}
Program: 82719
Project: 82719
Buggy source:
public boolean execute(){
  if (++executionCount >= 10) {
    fail("String_Node_Str");
  }
  if (executionCount == 9) {
    finishTest();
  }
  return executionCount < 10;
}

Fixed version (ground truth):
public boolean execute(){
  if (++executionCount > 10) {
    fail("String_Node_Str");
  }
  if (executionCount == 10) {
    finishTest();
  }
  return executionCount < 10;
}
Program: 82720
Project: 82720
Buggy source:
/** 
 * Test method for  {@link com.google.gwt.user.client.CommandExecutor#submit(com.google.gwt.user.client.IncrementalCommand)}. <p/> Cases: <ul> <li>Submit <code>null</code></li> <li>Submit   {@link IncrementalCommand} and make sure that it fires as manytimes as we want it to</li> </ul>
 */
public void testSubmitIncrementalCommand(){
  CommandExecutor ce=new CommandExecutor();
  ce.submit((Command)null);
  delayTestFinish(TEST_FINISH_DELAY_MILLIS);
  ce.submit(new IncrementalCommand(){
    private int executionCount=0;
    public boolean execute(){
      if (++executionCount >= 10) {
        fail("String_Node_Str");
      }
      if (executionCount == 9) {
        finishTest();
      }
      return executionCount < 10;
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Test method for  {@link com.google.gwt.user.client.CommandExecutor#submit(com.google.gwt.user.client.IncrementalCommand)}. <p/> Cases: <ul> <li>Submit <code>null</code></li> <li>Submit   {@link IncrementalCommand} and make sure that it fires as manytimes as we want it to</li> </ul>
 */
public void testSubmitIncrementalCommand(){
  CommandExecutor ce=new CommandExecutor();
  ce.submit((Command)null);
  delayTestFinish(TEST_FINISH_DELAY_MILLIS);
  ce.submit(new IncrementalCommand(){
    private int executionCount=0;
    public boolean execute(){
      if (++executionCount > 10) {
        fail("String_Node_Str");
      }
      if (executionCount == 10) {
        finishTest();
      }
      return executionCount < 10;
    }
  }
);
}
Program: 82721
Project: 82721
Buggy source:
public DefaultMuseum(){
  addIssue(new Issue1245());
  addIssue(new Issue1897());
  addIssue(new Issue2261());
  addIssue(new Issue2290());
  addIssue(new Issue2307());
  addIssue(new Issue2321());
  addIssue(new Issue2331());
  addIssue(new Issue2338());
}

Fixed version (ground truth):
public DefaultMuseum(){
  addIssue(new Issue1245());
  addIssue(new Issue1897());
  addIssue(new Issue2261());
  addIssue(new Issue2290());
  addIssue(new Issue2307());
  addIssue(new Issue2321());
  addIssue(new Issue2331());
  addIssue(new Issue2338());
  addIssue(new Issue2339());
}
Program: 82722
Project: 82722
Buggy source:
@Override public void onStart(){
  onUpdate(0.0);
  UIObject.setVisible(container1,true);
  UIObject.setVisible(container2,true);
}

Fixed version (ground truth):
@Override public void onStart(){
  com.google.gwt.dom.client.Element deckElem=container1.getParentElement();
  int deckHeight=deckElem.getOffsetHeight();
  if (growing) {
    fixedHeight=container2.getOffsetHeight();
    container2.getStyle().setPropertyPx("String_Node_Str",fixedHeight - 1);
  }
 else {
    fixedHeight=container1.getOffsetHeight();
    container1.getStyle().setPropertyPx("String_Node_Str",fixedHeight - 1);
  }
  if (deckElem.getOffsetHeight() != deckHeight) {
    fixedHeight=-1;
  }
  onUpdate(0.0);
  UIObject.setVisible(container1,true);
  UIObject.setVisible(container2,true);
}
Program: 82723
Project: 82723
Buggy source:
@Override public void onUpdate(double progress){
  if (!growing) {
    progress=1.0 - progress;
  }
  int height1;
  int height2;
  if (fixedHeight == -1) {
    height1=(int)(progress * DOM.getElementPropertyInt(container1,"String_Node_Str"));
    height2=(int)((1.0 - progress) * DOM.getElementPropertyInt(container2,"String_Node_Str"));
  }
 else {
    height1=(int)(progress * fixedHeight);
    height2=fixedHeight - height1;
  }
  DOM.setStyleAttribute(container1,"String_Node_Str",height1 + "String_Node_Str");
  DOM.setStyleAttribute(container2,"String_Node_Str",height2 + "String_Node_Str");
}

Fixed version (ground truth):
@Override public void onUpdate(double progress){
  if (!growing) {
    progress=1.0 - progress;
  }
  int height1;
  int height2;
  if (fixedHeight == -1) {
    height1=(int)(progress * DOM.getElementPropertyInt(container1,"String_Node_Str"));
    height2=(int)((1.0 - progress) * DOM.getElementPropertyInt(container2,"String_Node_Str"));
  }
 else {
    height1=(int)(progress * fixedHeight);
    height2=fixedHeight - height1;
  }
  if (height1 == 0) {
    height1=1;
    height2=Math.max(1,height2 - 1);
  }
 else   if (height2 == 0) {
    height2=1;
    height1=Math.max(1,height1 - 1);
  }
  DOM.setStyleAttribute(container1,"String_Node_Str",height1 + "String_Node_Str");
  DOM.setStyleAttribute(container2,"String_Node_Str",height2 + "String_Node_Str");
}
Program: 82724
Project: 82724
Buggy source:
/** 
 * Returns a pretty printed list of clients that have not retrieved the current test. Used for error reporting.
 * @return a string containing the list of clients that have not retrieved thecurrent test.
 */
String getUnretrievedClients(){
  StringBuilder buf=new StringBuilder();
synchronized (clientStatusesLock) {
    int lineCount=0;
    for (    ClientStatus clientStatus : clientStatuses.values()) {
      if (lineCount > 0) {
        buf.append('\n');
      }
      if (!clientStatus.hasRequestedCurrentTest) {
        buf.append("String_Node_Str");
      }
 else {
        buf.append("String_Node_Str");
      }
      buf.append(clientStatus.clientId);
      lineCount++;
    }
    int difference=numClients - numClientsHaveRequestedTest;
    if (difference > 0) {
      if (lineCount > 0) {
        buf.append('\n');
      }
      buf.append("String_Node_Str" + difference + "String_Node_Str");
    }
  }
  return buf.toString();
}

Fixed version (ground truth):
/** 
 * Returns a pretty printed list of clients that have not retrieved the current test. Used for error reporting.
 * @return a string containing the list of clients that have not retrieved thecurrent test.
 */
String getUnretrievedClients(){
synchronized (clientStatusesLock) {
    StringBuilder buf=new StringBuilder();
    int lineCount=0;
    for (    ClientStatus clientStatus : clientStatuses.values()) {
      if (lineCount > 0) {
        buf.append('\n');
      }
      if (!clientStatus.hasRequestedCurrentTest) {
        buf.append("String_Node_Str");
      }
 else {
        buf.append("String_Node_Str");
      }
      buf.append(clientStatus.clientId);
      lineCount++;
    }
    int difference=numClients - numClientsHaveRequestedTest;
    if (difference > 0) {
      if (lineCount > 0) {
        buf.append('\n');
      }
      buf.append("String_Node_Str" + difference + "String_Node_Str");
    }
    return buf.toString();
  }
}
Program: 82725
Project: 82725
Buggy source:
/** 
 * Called by the servlet to query for for the next method to test.
 * @param timeout how long to wait for an answer
 * @return the next test to run, or <code>null</code> if<code>timeout</code> is exceeded or the next test does not match <code>testClassName</code>
 */
public TestInfo getNextTestInfo(String clientId,long timeout) throws TimeoutException {
synchronized (clientStatusesLock) {
    ClientStatus clientStatus=clientStatuses.get(clientId);
    if (clientStatus == null) {
      clientStatus=new ClientStatus(clientId);
      clientStatuses.put(clientId,clientStatus);
    }
    long startTime=System.currentTimeMillis();
    long stopTime=startTime + timeout;
    while (clientStatus.hasRequestedCurrentTest == true) {
      long timeToWait=stopTime - System.currentTimeMillis();
      if (timeToWait < 1) {
        double elapsed=(System.currentTimeMillis() - startTime) / 1000.0;
        throw new TimeoutException("String_Node_Str" + "String_Node_Str" + timeout + "String_Node_Str"+ "String_Node_Str"+ clientId+ "String_Node_Str"+ "String_Node_Str"+ elapsed+ "String_Node_Str");
      }
      try {
        clientStatusesLock.wait(timeToWait);
      }
 catch (      InterruptedException e) {
        System.err.println("String_Node_Str");
        e.printStackTrace();
        return null;
      }
    }
    clientStatus.hasRequestedCurrentTest=true;
    ++numClientsHaveRequestedTest;
    return currentTest;
  }
}

Fixed version (ground truth):
/** 
 * Called by the servlet to query for for the next method to test.
 * @param timeout how long to wait for an answer
 * @return the next test to run, or <code>null</code> if<code>timeout</code> is exceeded or the next test does not match <code>testClassName</code>
 */
public TestInfo getNextTestInfo(String clientId,long timeout) throws TimeoutException {
synchronized (clientStatusesLock) {
    ClientStatus clientStatus=clientStatuses.get(clientId);
    if (clientStatus == null) {
      clientStatus=new ClientStatus(clientId);
      clientStatuses.put(clientId,clientStatus);
    }
    long startTime=System.currentTimeMillis();
    long stopTime=startTime + timeout;
    while (clientStatus.currentTestResults != null) {
      long timeToWait=stopTime - System.currentTimeMillis();
      if (timeToWait < 1) {
        double elapsed=(System.currentTimeMillis() - startTime) / 1000.0;
        throw new TimeoutException("String_Node_Str" + "String_Node_Str" + timeout + "String_Node_Str"+ "String_Node_Str"+ clientId+ "String_Node_Str"+ "String_Node_Str"+ elapsed+ "String_Node_Str");
      }
      try {
        clientStatusesLock.wait(timeToWait);
      }
 catch (      InterruptedException e) {
        System.err.println("String_Node_Str");
        e.printStackTrace();
        return null;
      }
    }
    clientStatus.hasRequestedCurrentTest=true;
    ++numClientsHaveRequestedTest;
    return currentTest;
  }
}
Program: 82726
Project: 82726
Buggy source:
/** 
 * Fetches the results of a completed test.
 * @return A map of results from all clients.
 */
Map<String,JUnitResult> getResults(){
  Map<String,JUnitResult> result=new HashMap<String,JUnitResult>();
synchronized (clientStatusesLock) {
    for (    ClientStatus clientStatus : clientStatuses.values()) {
      result.put(clientStatus.clientId,clientStatus.currentTestResults);
    }
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Fetches the results of a completed test.
 * @return A map of results from all clients.
 */
Map<String,JUnitResult> getResults(){
synchronized (clientStatusesLock) {
    Map<String,JUnitResult> result=new HashMap<String,JUnitResult>();
    for (    ClientStatus clientStatus : clientStatuses.values()) {
      result.put(clientStatus.clientId,clientStatus.currentTestResults);
    }
    return result;
  }
}
Program: 82727
Project: 82727
Buggy source:
/** 
 * Only instantiable within this package.
 * @param numClients The number of parallel clients being served by thisqueue.
 */
JUnitMessageQueue(int numClients){
  this.numClients=numClients;
}

Fixed version (ground truth):
/** 
 * Only instantiable within this package.
 * @param numClients The number of parallel clients being served by thisqueue.
 */
JUnitMessageQueue(int numClients){
synchronized (clientStatusesLock) {
    this.numClients=numClients;
  }
}
Program: 82728
Project: 82728
Buggy source:
public DefaultMuseum(){
  addIssue(new Issue1245());
  addIssue(new Issue1897());
  addIssue(new Issue2261());
  addIssue(new Issue2290());
  addIssue(new Issue2307());
  addIssue(new Issue2321());
  addIssue(new Issue2331());
}

Fixed version (ground truth):
public DefaultMuseum(){
  addIssue(new Issue1245());
  addIssue(new Issue1897());
  addIssue(new Issue2261());
  addIssue(new Issue2290());
  addIssue(new Issue2307());
  addIssue(new Issue2321());
  addIssue(new Issue2331());
  addIssue(new Issue2338());
}
Program: 82729
Project: 82729
Buggy source:
@Override public void onUpdate(double progress){
  int scrollHeight=DOM.getElementPropertyInt(curItem.childSpanElem,"String_Node_Str");
  int height=(int)(progress * scrollHeight);
  if (!opening) {
    height=scrollHeight - height;
  }
  DOM.setStyleAttribute(curItem.childSpanElem,"String_Node_Str",height + "String_Node_Str");
  int scrollWidth=DOM.getElementPropertyInt(curItem.childSpanElem,"String_Node_Str");
  DOM.setStyleAttribute(curItem.childSpanElem,"String_Node_Str",scrollWidth + "String_Node_Str");
}

Fixed version (ground truth):
@Override public void onUpdate(double progress){
  int scrollHeight=DOM.getElementPropertyInt(curItem.childSpanElem,"String_Node_Str");
  int height=(int)(progress * scrollHeight);
  if (!opening) {
    height=scrollHeight - height;
  }
  height=Math.max(height,1);
  DOM.setStyleAttribute(curItem.childSpanElem,"String_Node_Str",height + "String_Node_Str");
  int scrollWidth=DOM.getElementPropertyInt(curItem.childSpanElem,"String_Node_Str");
  DOM.setStyleAttribute(curItem.childSpanElem,"String_Node_Str",scrollWidth + "String_Node_Str");
}
Program: 82731
Project: 82731
Buggy source:
void clear(){
  weakJsoCache.clear();
  weakJavaWrapperCache.clear();
  dispClassInfoOracle.clear();
}

Fixed version (ground truth):
void clear(){
  shellJavaScriptHost=null;
  updateJavaScriptHost();
  weakJsoCache.clear();
  weakJavaWrapperCache.clear();
  dispClassInfoOracle.clear();
}
Program: 82732
Project: 82732
Buggy source:
@Override protected synchronized Class<?> findClass(String className) throws ClassNotFoundException {
  if (className == null) {
    throw new ClassNotFoundException("String_Node_Str",new NullPointerException());
  }
  if (isInStandardJavaPackage(className)) {
    throw new ClassNotFoundException(className);
  }
  if (className.equals(ShellJavaScriptHost.class.getName())) {
    return ShellJavaScriptHost.class;
  }
  byte[] classBytes;
  try {
    String lookupClassName=className;
    if (classRewriter != null && classRewriter.isJsoImpl(className)) {
      lookupClassName=className.substring(0,className.length() - 1);
    }
    classBytes=compiler.getClassBytes(logger,lookupClassName);
    if (classRewriter != null) {
      classBytes=classRewriter.rewrite(className,classBytes);
    }
    return defineClass(className,classBytes,0,classBytes.length);
  }
 catch (  UnableToCompleteException e) {
    throw new ClassNotFoundException(className);
  }
}

Fixed version (ground truth):
@Override protected synchronized Class<?> findClass(String className) throws ClassNotFoundException {
  if (className == null) {
    throw new ClassNotFoundException("String_Node_Str",new NullPointerException());
  }
  if (isInStandardJavaPackage(className)) {
    throw new ClassNotFoundException(className);
  }
  if (BRIDGE_CLASS_NAMES.containsKey(className)) {
    return BRIDGE_CLASS_NAMES.get(className);
  }
  byte[] classBytes;
  try {
    String lookupClassName=className;
    if (classRewriter != null && classRewriter.isJsoImpl(className)) {
      lookupClassName=className.substring(0,className.length() - 1);
    }
    classBytes=compiler.getClassBytes(logger,lookupClassName);
    if (classRewriter != null) {
      classBytes=classRewriter.rewrite(className,classBytes);
    }
    Class<?> newClass=defineClass(className,classBytes,0,classBytes.length);
    if (className.equals(JavaScriptHost.class.getName())) {
      javaScriptHostClass=newClass;
      updateJavaScriptHost();
    }
    JsniMethods jsniMethods=newClass.getAnnotation(JsniMethods.class);
    if (jsniMethods != null) {
      for (      JsniMethod jsniMethod : jsniMethods.value()) {
        shellJavaScriptHost.createNative(jsniMethod.file(),jsniMethod.line(),jsniMethod.name(),jsniMethod.paramNames(),jsniMethod.body());
      }
    }
    return newClass;
  }
 catch (  UnableToCompleteException e) {
    throw new ClassNotFoundException(className);
  }
}
Program: 82733
Project: 82733
Buggy source:
/** 
 * This method is called via reflection from the shell, providing the hosted mode application with all of the methods it needs to interface with the browser and the server (for deferred binding).
 */
public static void setHost(ShellJavaScriptHost host){
  sHost=host;
}

Fixed version (ground truth):
/** 
 * This method is called via reflection from the   {@link CompilingClassLoader}, providing the hosted mode application with all of the methods it needs to interface with the browser and the server (for deferred binding).
 */
public static void setHost(ShellJavaScriptHost host){
  sHost=host;
}
Program: 82734
Project: 82734
Buggy source:
@Override public void uninitElement(){
  unhookEvents();
  String html=getHTML();
  beforeInitPlaceholder=DOM.createDiv();
  DOM.setInnerHTML(beforeInitPlaceholder,html);
}

Fixed version (ground truth):
@Override public void uninitElement(){
  if (initializing) {
    initializing=false;
    return;
  }
  unhookEvents();
  String html=getHTML();
  beforeInitPlaceholder=DOM.createDiv();
  DOM.setInnerHTML(beforeInitPlaceholder,html);
}
Program: 82735
Project: 82735
Buggy source:
@Override protected void onElementInitialized(){
  super.onElementInitialized();
  if (beforeInitPlaceholder != null) {
    setHTMLImpl(DOM.getInnerHTML(beforeInitPlaceholder));
    beforeInitPlaceholder=null;
  }
}

Fixed version (ground truth):
@Override protected void onElementInitialized(){
  if (!initializing) {
    return;
  }
  initializing=false;
  super.onElementInitialized();
  if (beforeInitPlaceholder != null) {
    setHTMLImpl(DOM.getInnerHTML(beforeInitPlaceholder));
    beforeInitPlaceholder=null;
  }
}
Program: 82736
Project: 82736
Buggy source:
/** 
 * Test that an immediate set of text is reflected immediately and after a delay. Some platforms have timing subtleties that need to be tested.
 */
public void testSetTextBeforeInit(){
  final RichTextArea richTextArea=new RichTextArea();
  RootPanel.get().add(richTextArea);
  richTextArea.setText("String_Node_Str");
  assertEquals("String_Node_Str",richTextArea.getText());
  new Timer(){
    public void run(){
      assertEquals("String_Node_Str",richTextArea.getText());
      finishTest();
    }
  }
.schedule(200);
  delayTestFinish(1000);
}

Fixed version (ground truth):
/** 
 * Test that an immediate set of text is reflected immediately and after a delay. Some platforms have timing subtleties that need to be tested.
 */
public void testSetTextBeforeInit(){
  final RichTextArea richTextArea=new RichTextArea();
  RootPanel.get().add(richTextArea);
  richTextArea.setText("String_Node_Str");
  assertEquals("String_Node_Str",richTextArea.getText());
  new Timer(){
    @Override public void run(){
      assertEquals("String_Node_Str",richTextArea.getText());
      finishTest();
    }
  }
.schedule(200);
  delayTestFinish(1000);
}
Program: 82737
Project: 82737
Buggy source:
/** 
 * Test that a delayed set of HTML is reflected. Some platforms have timing subtleties that need to be tested.
 */
public void testSetHTMLAfterInit(){
  final RichTextArea richTextArea=new RichTextArea();
  RootPanel.get().add(richTextArea);
  new Timer(){
    public void run(){
      richTextArea.setHTML("String_Node_Str");
      assertEquals("String_Node_Str",richTextArea.getHTML().toLowerCase());
      finishTest();
    }
  }
.schedule(200);
  delayTestFinish(1000);
}

Fixed version (ground truth):
/** 
 * Test that a delayed set of HTML is reflected. Some platforms have timing subtleties that need to be tested.
 */
public void testSetHTMLAfterInit(){
  final RichTextArea richTextArea=new RichTextArea();
  RootPanel.get().add(richTextArea);
  new Timer(){
    @Override public void run(){
      richTextArea.setHTML("String_Node_Str");
      assertEquals("String_Node_Str",richTextArea.getHTML().toLowerCase());
      finishTest();
    }
  }
.schedule(200);
  delayTestFinish(1000);
}
Program: 82738
Project: 82738
Buggy source:
/** 
 * Test that delayed set of text is reflected. Some platforms have timing subtleties that need to be tested.
 */
public void testSetTextAfterInit(){
  final RichTextArea richTextArea=new RichTextArea();
  RootPanel.get().add(richTextArea);
  new Timer(){
    public void run(){
      richTextArea.setText("String_Node_Str");
      assertEquals("String_Node_Str",richTextArea.getText());
      finishTest();
    }
  }
.schedule(200);
  delayTestFinish(1000);
}

Fixed version (ground truth):
/** 
 * Test that delayed set of text is reflected. Some platforms have timing subtleties that need to be tested.
 */
public void testSetTextAfterInit(){
  final RichTextArea richTextArea=new RichTextArea();
  RootPanel.get().add(richTextArea);
  new Timer(){
    @Override public void run(){
      richTextArea.setText("String_Node_Str");
      assertEquals("String_Node_Str",richTextArea.getText());
      finishTest();
    }
  }
.schedule(200);
  delayTestFinish(1000);
}
Program: 82739
Project: 82739
Buggy source:
public void run(){
  assertEquals("String_Node_Str",richTextArea.getText());
  finishTest();
}

Fixed version (ground truth):
@Override public void run(){
  assertEquals("String_Node_Str",richTextArea.getText());
  finishTest();
}
Program: 82740
Project: 82740
Buggy source:
/** 
 * Test that an immediate set of HTML is reflected immediately and after a delay. Some platforms have timing subtleties that need to be tested.
 */
public void testSetHTMLBeforeInit(){
  final RichTextArea richTextArea=new RichTextArea();
  RootPanel.get().add(richTextArea);
  richTextArea.setHTML("String_Node_Str");
  assertEquals("String_Node_Str",richTextArea.getHTML().toLowerCase());
  new Timer(){
    public void run(){
      assertEquals("String_Node_Str",richTextArea.getHTML().toLowerCase());
      finishTest();
    }
  }
.schedule(200);
  delayTestFinish(1000);
}

Fixed version (ground truth):
/** 
 * Test that an immediate set of HTML is reflected immediately and after a delay. Some platforms have timing subtleties that need to be tested.
 */
public void testSetHTMLBeforeInit(){
  final RichTextArea richTextArea=new RichTextArea();
  RootPanel.get().add(richTextArea);
  richTextArea.setHTML("String_Node_Str");
  assertEquals("String_Node_Str",richTextArea.getHTML().toLowerCase());
  new Timer(){
    @Override public void run(){
      assertEquals("String_Node_Str",richTextArea.getHTML().toLowerCase());
      finishTest();
    }
  }
.schedule(200);
  delayTestFinish(1000);
}
Program: 82741
Project: 82741
Buggy source:
public String getModuleName(){
  return "String_Node_Str";
}

Fixed version (ground truth):
@Override public String getModuleName(){
  return "String_Node_Str";
}
Program: 82742
Project: 82742
Buggy source:
/** 
 * Test that removing and re-adding an RTA doesn't destroy its contents (Only IE actually preserves dynamically-created iframe contents across DOM removal/re-adding).
 */
public void testAddEditRemoveAdd(){
  final RichTextArea area=new RichTextArea();
  RootPanel.get().add(area);
  area.setHTML("String_Node_Str");
  this.delayTestFinish(1000);
  new Timer(){
    public void run(){
      RootPanel.get().remove(area);
      RootPanel.get().add(area);
      assertEquals("String_Node_Str",area.getHTML());
      finishTest();
    }
  }
.schedule(500);
}

Fixed version (ground truth):
/** 
 * Test that removing and re-adding an RTA doesn't destroy its contents (Only IE actually preserves dynamically-created iframe contents across DOM removal/re-adding).
 */
public void testAddEditRemoveAdd(){
  final RichTextArea area=new RichTextArea();
  RootPanel.get().add(area);
  area.setHTML("String_Node_Str");
  this.delayTestFinish(1000);
  new Timer(){
    @Override public void run(){
      RootPanel.get().remove(area);
      RootPanel.get().add(area);
      assertEquals("String_Node_Str",area.getHTML());
      finishTest();
    }
  }
.schedule(500);
}
Program: 82743
Project: 82743
Buggy source:
/** 
 * @see HasAnimation#isAnimationEnabled()
 */
public boolean isAnimationEnabled(){
  return isAnimationEnabled;
}

Fixed version (ground truth):
public boolean isAnimationEnabled(){
  return isAnimationEnabled;
}
Program: 82744
Project: 82744
Buggy source:
/** 
 * @see HasAnimation#setAnimationEnabled(boolean)
 */
public void setAnimationEnabled(boolean enable){
  isAnimationEnabled=enable;
}

Fixed version (ground truth):
public void setAnimationEnabled(boolean enable){
  isAnimationEnabled=enable;
}
Program: 82745
Project: 82745
Buggy source:
@Override public void onUpdate(double progress){
  int scrollHeight=DOM.getElementPropertyInt(curPanel.contentWrapper.getElement(),"String_Node_Str");
  int height=(int)(progress * scrollHeight);
  if (!opening) {
    height=scrollHeight - height;
  }
  DOM.setStyleAttribute(curPanel.contentWrapper.getElement(),"String_Node_Str",height + "String_Node_Str");
  DOM.setStyleAttribute(curPanel.contentWrapper.getElement(),"String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
@Override public void onUpdate(double progress){
  int scrollHeight=DOM.getElementPropertyInt(curPanel.contentWrapper.getElement(),"String_Node_Str");
  int height=(int)(progress * scrollHeight);
  if (!opening) {
    height=scrollHeight - height;
  }
  height=Math.max(height,1);
  DOM.setStyleAttribute(curPanel.contentWrapper.getElement(),"String_Node_Str",height + "String_Node_Str");
  DOM.setStyleAttribute(curPanel.contentWrapper.getElement(),"String_Node_Str","String_Node_Str");
}
Program: 82746
Project: 82746
Buggy source:
public boolean addAll(int index,Collection<? extends E> c){
  Iterator<? extends E> iter=c.iterator();
  while (iter.hasNext()) {
    add(index,iter.next());
    ++index;
  }
  return !c.isEmpty();
}

Fixed version (ground truth):
public boolean addAll(int index,Collection<? extends E> c){
  Iterator<? extends E> iter=c.iterator();
  while (iter.hasNext()) {
    add(index++,iter.next());
  }
  return !c.isEmpty();
}
Program: 82747
Project: 82747
Buggy source:
@Override public boolean addAll(Collection<? extends E> c){
  Iterator<? extends E> iter=c.iterator();
  boolean changed=iter.hasNext();
  while (iter.hasNext()) {
    setImpl(array,size++,iter.next());
  }
  return changed;
}

Fixed version (ground truth):
public boolean addAll(int index,Collection<? extends E> c){
  if (c.isEmpty()) {
    return false;
  }
  if (index < 0 || index > size) {
    indexOutOfBounds(index,size);
  }
  insertImpl(array,index,c.toArray());
  size+=c.size();
  return true;
}
Program: 82748
Project: 82748
Buggy source:
public boolean removeAll(Collection<?> c){
  Iterator<?> iter=c.iterator();
  boolean changed=false;
  while (iter.hasNext()) {
    if (remove(iter.next())) {
      changed=true;
    }
  }
  return changed;
}

Fixed version (ground truth):
public boolean removeAll(Collection<?> c){
  Iterator<?> iter=iterator();
  boolean changed=false;
  while (iter.hasNext()) {
    if (c.contains(iter.next())) {
      iter.remove();
      changed=true;
    }
  }
  return changed;
}
Program: 82749
Project: 82749
Buggy source:
public static Boolean valueOf(String s){
  if (s != null && s.equalsIgnoreCase("String_Node_Str")) {
    return TRUE;
  }
 else {
    return FALSE;
  }
}

Fixed version (ground truth):
public static Boolean valueOf(String s){
  return valueOf(parseBoolean(s));
}