nus-yam/ex-repair huggingface dataset:
Program: 83151
Project: 83151
Buggy source:
public Widgets(){
  HorizontalPanel hp;
  panel.add(createMenu());
  panel.add(hp=new HorizontalPanel());
  hp.setSpacing(8);
  hp.add(normalButton);
  hp.add(disabledButton);
  panel.add(hp=new HorizontalPanel());
  hp.setSpacing(8);
  hp.add(normalCheck);
  hp.add(disabledCheck);
  panel.add(hp=new HorizontalPanel());
  hp.setSpacing(8);
  hp.add(radio0);
  hp.add(radio1);
  hp.add(radio2);
  hp.add(radio3);
  panel.add(hp=new HorizontalPanel());
  hp.setSpacing(8);
  hp.add(pushButton);
  hp.add(toggleButton);
  disabledButton.setEnabled(false);
  disabledCheck.setEnabled(false);
  radio2.setEnabled(false);
  panel.setSpacing(8);
  initWidget(panel);
}

Fixed version (ground truth):
public Widgets(Sink.Images images){
  pushButton=new PushButton(images.gwtLogo().createImage());
  toggleButton=new ToggleButton(images.gwtLogo().createImage());
  HorizontalPanel hp;
  panel.add(createMenu());
  panel.add(hp=new HorizontalPanel());
  hp.setSpacing(8);
  hp.add(normalButton);
  hp.add(disabledButton);
  panel.add(hp=new HorizontalPanel());
  hp.setSpacing(8);
  hp.add(normalCheck);
  hp.add(disabledCheck);
  panel.add(hp=new HorizontalPanel());
  hp.setSpacing(8);
  hp.add(radio0);
  hp.add(radio1);
  hp.add(radio2);
  hp.add(radio3);
  panel.add(hp=new HorizontalPanel());
  hp.setSpacing(8);
  hp.add(pushButton);
  hp.add(toggleButton);
  disabledButton.setEnabled(false);
  disabledCheck.setEnabled(false);
  radio2.setEnabled(false);
  panel.setSpacing(8);
  initWidget(panel);
}
Program: 83154
Project: 83154
Buggy source:
private void logValidAsyncInterfaceDeclaration(TreeLogger logger,JClassType remoteService){
  logger=logger.branch(TreeLogger.INFO,"String_Node_Str" + remoteService.getQualifiedSourceName() + "String_Node_Str",null);
  logger.log(TreeLogger.ERROR,synthesizeAsynchronousInterfaceDefinition(remoteService),null);
}

Fixed version (ground truth):
private void logValidAsyncInterfaceDeclaration(TreeLogger logger,JClassType remoteService){
  TreeLogger branch=logger.branch(TreeLogger.INFO,"String_Node_Str" + remoteService.getQualifiedSourceName() + "String_Node_Str",null);
  branch.log(TreeLogger.ERROR,synthesizeAsynchronousInterfaceDefinition(remoteService),null);
}
Program: 83155
Project: 83155
Buggy source:
private static String synthesizeAsynchronousInterfaceDefinition(JClassType serviceIntf){
  StringBuffer sb=new StringBuffer();
  JPackage pkg=serviceIntf.getPackage();
  if (pkg != null) {
    sb.append("String_Node_Str");
    sb.append(pkg.getName());
    sb.append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  sb.append(serviceIntf.getSimpleSourceName());
  sb.append("String_Node_Str");
  JMethod[] methods=serviceIntf.getMethods();
  for (int index=0; index < methods.length; ++index) {
    JMethod method=methods[index];
    assert(method != null);
    sb.append("String_Node_Str");
    sb.append(method.getName());
    sb.append("String_Node_Str");
    JParameter[] params=method.getParameters();
    for (int paramIndex=0; paramIndex < params.length; ++paramIndex) {
      JParameter param=params[paramIndex];
      if (paramIndex > 0) {
        sb.append("String_Node_Str");
      }
      sb.append(param.toString());
    }
    if (params.length > 0) {
      sb.append("String_Node_Str");
    }
    sb.append(AsyncCallback.class.getName());
    sb.append("String_Node_Str");
    sb.append(Integer.toString(params.length + 1));
    sb.append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
private static String synthesizeAsynchronousInterfaceDefinition(JClassType serviceIntf){
  StringBuffer sb=new StringBuffer();
  JPackage pkg=serviceIntf.getPackage();
  if (pkg != null) {
    sb.append("String_Node_Str");
    sb.append(pkg.getName());
    sb.append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  sb.append(serviceIntf.getSimpleSourceName());
  sb.append("String_Node_Str");
  JMethod[] methods=serviceIntf.getOverridableMethods();
  for (int index=0; index < methods.length; ++index) {
    JMethod method=methods[index];
    assert(method != null);
    sb.append("String_Node_Str");
    sb.append(method.getName());
    sb.append("String_Node_Str");
    JParameter[] params=method.getParameters();
    for (int paramIndex=0; paramIndex < params.length; ++paramIndex) {
      JParameter param=params[paramIndex];
      if (paramIndex > 0) {
        sb.append("String_Node_Str");
      }
      sb.append(param.toString());
    }
    if (params.length > 0) {
      sb.append("String_Node_Str");
    }
    sb.append(AsyncCallback.class.getName());
    sb.append("String_Node_Str");
    sb.append(Integer.toString(params.length + 1));
    sb.append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 83156
Project: 83156
Buggy source:
private InheritanceTestServiceAsync getServiceAsync(){
  if (inheritanceTestService == null) {
    inheritanceTestService=(InheritanceTestServiceAsync)GWT.create(InheritanceTestService.class);
    ((ServiceDefTarget)inheritanceTestService).setServiceEntryPoint(GWT.getModuleBaseURL() + "String_Node_Str");
  }
  return inheritanceTestService;
}

Fixed version (ground truth):
private InheritanceTestServiceAsync getServiceAsync(){
  if (inheritanceTestService == null) {
    inheritanceTestService=(InheritanceTestServiceAsync)GWT.create(InheritanceTestServiceSubtype.class);
    ((ServiceDefTarget)inheritanceTestService).setServiceEntryPoint(GWT.getModuleBaseURL() + "String_Node_Str");
  }
  return inheritanceTestService;
}
Program: 83157
Project: 83157
Buggy source:
public void execute(){
  updateDivWidth(panel);
}

Fixed version (ground truth):
public void execute(){
  int percentage=parseInt(lastSplitPosition);
  impl.setSplitPosition(HorizontalSplitPanel.this,(getOffsetWidth() * (percentage / 100.0)) + "String_Node_Str");
}
Program: 83158
Project: 83158
Buggy source:
public final void setSplitPosition(String pos){
  impl.setSplitPosition(this,pos);
}

Fixed version (ground truth):
public final void setSplitPosition(String pos){
  lastSplitPosition=pos.trim();
  if (!lastSplitPosition.endsWith("String_Node_Str")) {
    impl.setSplitPosition(this,pos);
  }
 else   if (isAttached()) {
    DeferredCommand.addCommand(new Command(){
      public void execute(){
        int percentage=parseInt(lastSplitPosition);
        impl.setSplitPosition(HorizontalSplitPanel.this,(getOffsetWidth() * (percentage / 100.0)) + "String_Node_Str");
      }
    }
);
  }
}
Program: 83159
Project: 83159
Buggy source:
public AboutDialog(){
  setText("String_Node_Str");
  DockPanel outer=new DockPanel();
  outer.setSpacing(4);
  outer.add(new Image(LOGO_IMAGE),DockPanel.WEST);
  HorizontalPanel buttonPanel=new HorizontalPanel();
  buttonPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
  buttonPanel.add(new Button("String_Node_Str",new ClickListener(){
    public void onClick(    Widget sender){
      hide();
    }
  }
));
  outer.add(buttonPanel,DockPanel.SOUTH);
  HTML text=new HTML("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  text.setStyleName("String_Node_Str");
  outer.add(text,DockPanel.CENTER);
  outer.setSpacing(8);
  setWidget(outer);
}

Fixed version (ground truth):
public AboutDialog(){
  setText("String_Node_Str");
  VerticalPanel outer=new VerticalPanel();
  HTML text=new HTML("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  text.setStyleName("String_Node_Str");
  outer.add(text);
  outer.add(new Button("String_Node_Str",new ClickListener(){
    public void onClick(    Widget sender){
      hide();
    }
  }
));
  setWidget(outer);
}
Program: 83160
Project: 83160
Buggy source:
public void onClick(Widget sender){
  ContactPopup popup=new ContactPopup(contact);
  int left=link.getAbsoluteLeft() + 32;
  int top=link.getAbsoluteTop() + 8;
  popup.setPopupPosition(left,top);
  popup.show();
}

Fixed version (ground truth):
public void onClick(Widget sender){
  ContactPopup popup=new ContactPopup(contact);
  int left=link.getAbsoluteLeft() + 14;
  int top=link.getAbsoluteTop() + 14;
  popup.setPopupPosition(left,top);
  popup.show();
}
Program: 83161
Project: 83161
Buggy source:
public Contacts(){
  for (int i=0; i < contacts.length; ++i) {
    addContact(contacts[i]);
  }
  initWidget(panel);
  setStyleName("String_Node_Str");
}

Fixed version (ground truth):
public Contacts(Images images){
  SimplePanel outer=new SimplePanel();
  outer.setWidget(panel);
  this.images=images;
  for (int i=0; i < contacts.length; ++i) {
    addContact(contacts[i]);
  }
  initWidget(outer);
  setStyleName("String_Node_Str");
}
Program: 83162
Project: 83162
Buggy source:
private void addContact(final Contact contact){
  final HTML link=new HTML("String_Node_Str" + contact.name + "String_Node_Str");
  panel.add(link);
  link.addClickListener(new ClickListener(){
    public void onClick(    Widget sender){
      ContactPopup popup=new ContactPopup(contact);
      int left=link.getAbsoluteLeft() + 32;
      int top=link.getAbsoluteTop() + 8;
      popup.setPopupPosition(left,top);
      popup.show();
    }
  }
);
}

Fixed version (ground truth):
private void addContact(final Contact contact){
  final HTML link=new HTML("String_Node_Str" + contact.name + "String_Node_Str");
  panel.add(link);
  link.addClickListener(new ClickListener(){
    public void onClick(    Widget sender){
      ContactPopup popup=new ContactPopup(contact);
      int left=link.getAbsoluteLeft() + 14;
      int top=link.getAbsoluteTop() + 14;
      popup.setPopupPosition(left,top);
      popup.show();
    }
  }
);
}
Program: 83163
Project: 83163
Buggy source:
public ContactPopup(Contact contact){
  super(true);
  VerticalPanel inner=new VerticalPanel();
  Label nameLabel=new Label(contact.name);
  Label emailLabel=new Label(contact.email);
  inner.add(nameLabel);
  inner.add(emailLabel);
  HorizontalPanel hp=new HorizontalPanel();
  hp.setSpacing(4);
  hp.add(new Image(contact.photo));
  hp.add(inner);
  add(hp);
  setStyleName("String_Node_Str");
  nameLabel.setStyleName("String_Node_Str");
  emailLabel.setStyleName("String_Node_Str");
}

Fixed version (ground truth):
public ContactPopup(Contact contact){
  super(true);
  VerticalPanel inner=new VerticalPanel();
  Label nameLabel=new Label(contact.name);
  Label emailLabel=new Label(contact.email);
  inner.add(nameLabel);
  inner.add(emailLabel);
  HorizontalPanel hp=new HorizontalPanel();
  hp.setSpacing(4);
  hp.add(images.defaultPhoto().createImage());
  hp.add(inner);
  add(hp);
  setStyleName("String_Node_Str");
  nameLabel.setStyleName("String_Node_Str");
  emailLabel.setStyleName("String_Node_Str");
}
Program: 83164
Project: 83164
Buggy source:
/** 
 * This method constructs the application user interface by instantiating controls and hooking up event listeners.
 */
public void onModuleLoad(){
  singleton=this;
  topPanel.setWidth("String_Node_Str");
  mailList=new MailList();
  mailList.setWidth("String_Node_Str");
  rightPanel.add(mailList);
  rightPanel.add(mailDetail);
  mailList.setWidth("String_Node_Str");
  mailDetail.setWidth("String_Node_Str");
  DockPanel outer=new DockPanel();
  outer.add(topPanel,DockPanel.NORTH);
  outer.add(shortcuts,DockPanel.WEST);
  outer.add(rightPanel,DockPanel.CENTER);
  outer.setWidth("String_Node_Str");
  outer.setSpacing(4);
  outer.setCellWidth(rightPanel,"String_Node_Str");
  Window.addWindowResizeListener(this);
  Window.enableScrolling(false);
  Window.setMargin("String_Node_Str");
  RootPanel.get().add(outer);
  DeferredCommand.add(new Command(){
    public void execute(){
      onWindowResized(Window.getClientWidth(),Window.getClientHeight());
    }
  }
);
}

Fixed version (ground truth):
/** 
 * This method constructs the application user interface by instantiating controls and hooking up event listeners.
 */
public void onModuleLoad(){
  singleton=this;
  topPanel.setWidth("String_Node_Str");
  mailList=new MailList();
  mailList.setWidth("String_Node_Str");
  rightPanel.add(mailList);
  rightPanel.add(mailDetail);
  mailList.setWidth("String_Node_Str");
  mailDetail.setWidth("String_Node_Str");
  DockPanel outer=new DockPanel();
  outer.add(topPanel,DockPanel.NORTH);
  outer.add(shortcuts,DockPanel.WEST);
  outer.add(rightPanel,DockPanel.CENTER);
  outer.setWidth("String_Node_Str");
  outer.setSpacing(4);
  outer.setCellWidth(rightPanel,"String_Node_Str");
  Window.addWindowResizeListener(this);
  Window.enableScrolling(false);
  Window.setMargin("String_Node_Str");
  RootPanel.get().add(outer);
  DeferredCommand.addCommand(new Command(){
    public void execute(){
      onWindowResized(Window.getClientWidth(),Window.getClientHeight());
    }
  }
);
  onWindowResized(Window.getClientWidth(),Window.getClientHeight());
}
Program: 83165
Project: 83165
Buggy source:
public MailList(){
  table.setCellSpacing(0);
  table.setCellPadding(2);
  table.setWidth("String_Node_Str");
  table.addTableListener(this);
  newerButton.addClickListener(this);
  olderButton.addClickListener(this);
  HorizontalPanel innerNavBar=new HorizontalPanel();
  innerNavBar.setStyleName("String_Node_Str");
  innerNavBar.setSpacing(8);
  innerNavBar.add(newerButton);
  innerNavBar.add(countLabel);
  innerNavBar.add(olderButton);
  navBar.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
  navBar.add(innerNavBar);
  navBar.setWidth("String_Node_Str");
  initWidget(table);
  setStyleName("String_Node_Str");
  initTable();
  update();
}

Fixed version (ground truth):
public MailList(){
  table.setCellSpacing(0);
  table.setCellPadding(0);
  table.setWidth("String_Node_Str");
  table.addTableListener(this);
  newerButton.addClickListener(this);
  olderButton.addClickListener(this);
  HorizontalPanel innerNavBar=new HorizontalPanel();
  navBar.setStyleName("String_Node_Str");
  innerNavBar.add(newerButton);
  innerNavBar.add(countLabel);
  innerNavBar.add(olderButton);
  navBar.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
  navBar.add(innerNavBar);
  navBar.setWidth("String_Node_Str");
  initWidget(table);
  setStyleName("String_Node_Str");
  initTable();
  update();
}
Program: 83166
Project: 83166
Buggy source:
/** 
 * Returns a list of summaries of all the Benchmark reports.
 * @return a non-null list of ReportSummary
 */
public List getReportSummaries();

Fixed version (ground truth):
/** 
 * Returns a list of summaries of all the Benchmark reports.
 * @return a non-null list of ReportSummary
 * @gwt.typeArgs <com.google.gwt.junit.viewer.client.ReportSummary>
 */
public List getReportSummaries();
Program: 83167
Project: 83167
Buggy source:
public JType getType(){
  JType type=instance.getType();
  if (type == program.getTypeNull()) {
    return type;
  }
  JArrayType arrayType=(JArrayType)type;
  return arrayType.getElementType();
}

Fixed version (ground truth):
public JType getType(){
  JType type=instance.getType();
  JNullType typeNull=program.getTypeNull();
  if (type == typeNull) {
    return typeNull;
  }
  JArrayType arrayType=(JArrayType)type;
  JType elementType=arrayType.getElementType();
  if (elementType instanceof JReferenceType && !program.typeOracle.isInstantiatedType((JReferenceType)elementType)) {
    return typeNull;
  }
  return elementType;
}
Program: 83168
Project: 83168
Buggy source:
public boolean hasSideEffects(){
  return true;
}

Fixed version (ground truth):
public boolean hasSideEffects(){
  for (int i=0, c=exprs.size(); i < c; ++i) {
    if (((JExpression)exprs.get(i)).hasSideEffects()) {
      return true;
    }
  }
  return false;
}
Program: 83169
Project: 83169
Buggy source:
public boolean hasSideEffects(){
  return true;
}

Fixed version (ground truth):
public boolean hasSideEffects(){
  for (int i=0, c=propInits.size(); i < c; ++i) {
    JsonPropInit propInit=((JsonPropInit)propInits.get(i));
    if (propInit.labelExpr.hasSideEffects() || propInit.valueExpr.hasSideEffects()) {
      return true;
    }
  }
  return false;
}
Program: 83170
Project: 83170
Buggy source:
/** 
 * Check a statically false cast, which can succeed if the argument is null.
 */
static Object throwClassCastExceptionUnlessNull(Object o) throws ClassCastException {
  if (o != null) {
    throw new ClassCastException();
  }
  return null;
}

Fixed version (ground truth):
/** 
 * Check a statically false cast, which can succeed if the argument is null. Called by compiler-generated code based on static type information.
 */
static Object throwClassCastExceptionUnlessNull(Object o) throws ClassCastException {
  if (o != null) {
    throw new ClassCastException();
  }
  return o;
}
Program: 83172
Project: 83172
Buggy source:
/** 
 * Process the RPC request encoded into the payload string and return a string that encodes either the method return or an exception thrown by it.
 */
public String processCall(String payload) throws SerializationException {
  RPCRequest rpcRequest=RPC.decodeRequest(payload,this.getClass());
  return RPC.invokeAndEncodeResponse(this,rpcRequest.getMethod(),rpcRequest.getParameters());
}

Fixed version (ground truth):
/** 
 * Process the RPC request encoded into the payload string and return a string that encodes either the method return or an exception thrown by it.
 */
public String processCall(String payload) throws SerializationException {
  try {
    RPCRequest rpcRequest=RPC.decodeRequest(payload,this.getClass());
    return RPC.invokeAndEncodeResponse(this,rpcRequest.getMethod(),rpcRequest.getParameters());
  }
 catch (  IncompatibleRemoteServiceException ex) {
    return RPC.encodeResponseForFailure(null,ex);
  }
}
Program: 83173
Project: 83173
Buggy source:
/** 
 * Called when an asynchronous call fails to complete normally.
 */
void onFailure(Throwable caught);

Fixed version (ground truth):
/** 
 * Called when an asynchronous call fails to complete normally.  {@link IncompatibleRemoteServiceException}s,   {@link InvocationException}s, or checked exceptions thrown by the service method are examples of the type of failures that can be passed to this method. <p> If <code>caught</code> is an instance of an  {@link IncompatibleRemoteServiceException} the application should try toget into a state where a browser refresh can be safely done. </p>
 * @param caught failure encountered while executing a remote procedure call
 */
void onFailure(Throwable caught);
Program: 83175
Project: 83175
Buggy source:
/** 
 * Constructs a builder.
 * @param rootLogger
 * @param typeOracle
 * @throws UnableToCompleteException if we fail to find one of our specialtypes
 */
public SerializableTypeOracleBuilder(TreeLogger rootLogger,TypeOracle typeOracle) throws UnableToCompleteException {
  this.rootLogger=rootLogger;
  this.typeOracle=typeOracle;
  try {
    collectionClass=typeOracle.getType(Collection.class.getName());
    isSerializableClass=typeOracle.getType(IsSerializable.class.getName());
    mapClass=typeOracle.getType(Map.class.getName());
    serializableClass=typeOracle.getType(Serializable.class.getName());
    stringClass=typeOracle.getType(String.class.getName());
    streamReaderClass=typeOracle.getType(SerializationStreamReader.class.getName());
    streamWriterClass=typeOracle.getType(SerializationStreamWriter.class.getName());
    MetaTypeInfo mti=getMetaTypeInfo(stringClass);
    mti.setSerializable(true);
    remoteServiceAsyncValidator=new RemoteServiceAsyncValidator(typeOracle);
  }
 catch (  NotFoundException e) {
    rootLogger.log(TreeLogger.ERROR,null,e);
    throw new UnableToCompleteException();
  }
}

Fixed version (ground truth):
/** 
 * Constructs a builder.
 * @param rootLogger
 * @param typeOracle
 * @throws UnableToCompleteException if we fail to find one of our specialtypes
 */
public SerializableTypeOracleBuilder(TreeLogger rootLogger,TypeOracle typeOracle) throws UnableToCompleteException {
  this.rootLogger=rootLogger;
  this.typeOracle=typeOracle;
  try {
    collectionClass=typeOracle.getType(Collection.class.getName());
    isSerializableClass=typeOracle.getType(IsSerializable.class.getName());
    mapClass=typeOracle.getType(Map.class.getName());
    serializableClass=typeOracle.getType(Serializable.class.getName());
    stringClass=typeOracle.getType(String.class.getName());
    streamReaderClass=typeOracle.getType(SerializationStreamReader.class.getName());
    streamWriterClass=typeOracle.getType(SerializationStreamWriter.class.getName());
    MetaTypeInfo stringMti=getMetaTypeInfo(stringClass);
    stringMti.setSerializable(true);
    MetaTypeInfo incompatibleRemoteServiceExceptionMti=getMetaTypeInfo(typeOracle.getType(IncompatibleRemoteServiceException.class.getName()));
    incompatibleRemoteServiceExceptionMti.setSerializable(true);
    remoteServiceAsyncValidator=new RemoteServiceAsyncValidator(typeOracle);
  }
 catch (  NotFoundException e) {
    rootLogger.log(TreeLogger.ERROR,null,e);
    throw new UnableToCompleteException();
  }
}
Program: 83176
Project: 83176
Buggy source:
/** 
 * Causes the browser to pre-fetch the image at a given URL.
 * @param url the URL of the image to be prefetched
 */
public static void prefetch(String url){
  Element img=DOM.createImg();
  DOM.setElementProperty(img,"String_Node_Str",url);
  prefetchImages.put(url,img);
}

Fixed version (ground truth):
/** 
 * Causes the browser to pre-fetch the image at a given URL.
 * @param url the URL of the image to be prefetched
 */
public static void prefetch(String url){
  Element img=DOM.createImg();
  DOM.setImgSrc(img,url);
  prefetchImages.put(url,img);
}
Program: 83177
Project: 83177
Buggy source:
/** 
 * Tests   {@link DOM#toString(Element)} against likely failure points.
 */
public void testToString(){
  Button b=new Button("String_Node_Str");
  assertTrue(b.toString().indexOf("String_Node_Str") != -1);
  assertTrue(b.toString().toLowerCase().indexOf("String_Node_Str") != -1);
  Element image=DOM.createImg();
  String imageUrl="String_Node_Str";
  DOM.setElementProperty(image,"String_Node_Str",imageUrl);
  String imageToString=DOM.toString(image).trim().toLowerCase();
  assertTrue(imageToString.startsWith("String_Node_Str"));
  assertTrue(imageToString.indexOf(imageUrl) != -1);
  Element input=DOM.createInputText();
  DOM.setElementProperty(input,"String_Node_Str","String_Node_Str");
  final String inputToString=DOM.toString(input).trim().toLowerCase();
  assertTrue(inputToString.startsWith("String_Node_Str"));
  Element select=DOM.createSelect();
  for (int i=0; i < 10; i++) {
    final Element option=DOM.createElement("String_Node_Str");
    DOM.appendChild(select,option);
    DOM.setInnerText(option,"String_Node_Str" + i);
  }
  String selectToString=DOM.toString(select).trim().toLowerCase();
  assertTrue(selectToString.startsWith("String_Node_Str"));
  for (int i=0; i < 10; i++) {
    assertTrue(selectToString.indexOf("String_Node_Str" + i) != -1);
  }
  Element meta=DOM.createElement("String_Node_Str");
  DOM.setElementProperty(meta,"String_Node_Str","String_Node_Str");
  String metaToString=DOM.toString(meta).trim().toLowerCase();
  assertTrue(metaToString.startsWith("String_Node_Str"));
}

Fixed version (ground truth):
/** 
 * Tests   {@link DOM#toString(Element)} against likely failure points.
 */
public void testToString(){
  Button b=new Button("String_Node_Str");
  assertTrue(b.toString().indexOf("String_Node_Str") != -1);
  assertTrue(b.toString().toLowerCase().indexOf("String_Node_Str") != -1);
  Element image=DOM.createImg();
  String imageUrl="String_Node_Str";
  DOM.setImgSrc(image,imageUrl);
  String imageToString=DOM.toString(image).trim().toLowerCase();
  assertTrue(imageToString.startsWith("String_Node_Str"));
  assertTrue(imageToString.indexOf(imageUrl) != -1);
  Element input=DOM.createInputText();
  DOM.setElementProperty(input,"String_Node_Str","String_Node_Str");
  final String inputToString=DOM.toString(input).trim().toLowerCase();
  assertTrue(inputToString.startsWith("String_Node_Str"));
  Element select=DOM.createSelect();
  for (int i=0; i < 10; i++) {
    final Element option=DOM.createElement("String_Node_Str");
    DOM.appendChild(select,option);
    DOM.setInnerText(option,"String_Node_Str" + i);
  }
  String selectToString=DOM.toString(select).trim().toLowerCase();
  assertTrue(selectToString.startsWith("String_Node_Str"));
  for (int i=0; i < 10; i++) {
    assertTrue(selectToString.indexOf("String_Node_Str" + i) != -1);
  }
  Element meta=DOM.createElement("String_Node_Str");
  DOM.setElementProperty(meta,"String_Node_Str","String_Node_Str");
  String metaToString=DOM.toString(meta).trim().toLowerCase();
  assertTrue(metaToString.startsWith("String_Node_Str"));
}
Program: 83178
Project: 83178
Buggy source:
/** 
 * Invoke a native JavaScript function that returns an integer value.
 */
public static int invokeNativeInt(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeInt(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns an integer value.
 */
public static int invokeNativeInt(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeInt(name,jthis,types,args);
}
Program: 83179
Project: 83179
Buggy source:
/** 
 * Invoke a native JavaScript function that returns a byte value.
 */
public static byte invokeNativeByte(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeByte(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns a byte value.
 */
public static byte invokeNativeByte(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeByte(name,jthis,types,args);
}
Program: 83180
Project: 83180
Buggy source:
/** 
 * Invoke a native JavaScript function that returns a handle value.
 */
public static Object invokeNativeHandle(String name,Object jthis,Class returnType,Class[] types,Object[] args){
  return sHost.invokeNativeHandle(name,jthis,returnType,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns a handle value.
 */
public static Object invokeNativeHandle(String name,Object jthis,Class returnType,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeHandle(name,jthis,returnType,types,args);
}
Program: 83181
Project: 83181
Buggy source:
/** 
 * Invoke a native JavaScript function that returns a float value.
 */
public static float invokeNativeFloat(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeFloat(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns a float value.
 */
public static float invokeNativeFloat(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeFloat(name,jthis,types,args);
}
Program: 83182
Project: 83182
Buggy source:
/** 
 * Invoke a native JavaScript function that returns a short value.
 */
public static short invokeNativeShort(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeShort(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns a short value.
 */
public static short invokeNativeShort(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeShort(name,jthis,types,args);
}
Program: 83183
Project: 83183
Buggy source:
/** 
 * Invoke a native JavaScript function that returns a string value.
 */
public static String invokeNativeString(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeString(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns a string value.
 */
public static String invokeNativeString(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeString(name,jthis,types,args);
}
Program: 83184
Project: 83184
Buggy source:
/** 
 * Invoke a native JavaScript function that returns an object value.
 */
public static Object invokeNativeObject(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeObject(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns an object value.
 */
public static Object invokeNativeObject(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeObject(name,jthis,types,args);
}
Program: 83185
Project: 83185
Buggy source:
/** 
 * Invoke a native JavaScript function that returns a character value.
 */
public static char invokeNativeChar(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeChar(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns a character value.
 */
public static char invokeNativeChar(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeChar(name,jthis,types,args);
}
Program: 83186
Project: 83186
Buggy source:
/** 
 * Invoke a native JavaScript function that returns a double value.
 */
public static double invokeNativeDouble(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeDouble(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns a double value.
 */
public static double invokeNativeDouble(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeDouble(name,jthis,types,args);
}
Program: 83187
Project: 83187
Buggy source:
/** 
 * Invoke a native JavaScript function that returns no value.
 */
public static void invokeNativeVoid(String name,Object jthis,Class[] types,Object[] args){
  sHost.invokeNativeVoid(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns no value.
 */
public static void invokeNativeVoid(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  sHost.invokeNativeVoid(name,jthis,types,args);
}
Program: 83188
Project: 83188
Buggy source:
/** 
 * Invoke a native JavaScript function that returns a boolean value.
 */
public static boolean invokeNativeBoolean(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeBoolean(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns a boolean value.
 */
public static boolean invokeNativeBoolean(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeBoolean(name,jthis,types,args);
}
Program: 83189
Project: 83189
Buggy source:
/** 
 * Invoke a native JavaScript function that returns a long value.
 */
public static long invokeNativeLong(String name,Object jthis,Class[] types,Object[] args){
  return sHost.invokeNativeLong(name,jthis,types,args);
}

Fixed version (ground truth):
/** 
 * Invoke a native JavaScript function that returns a long value.
 */
public static long invokeNativeLong(String name,Object jthis,Class[] types,Object[] args) throws Throwable {
  return sHost.invokeNativeLong(name,jthis,types,args);
}
Program: 83191
Project: 83191
Buggy source:
/** 
 * Gets the keyboard modifiers associated with a DOMEvent.
 * @param event the event.
 * @return the modifiers as defined in {@link KeyboardListener}.
 */
public static int getKeyboardModifiers(Event event){
  return (DOM.eventGetShiftKey(event) ? KeyboardListener.MODIFIER_SHIFT : 0) | (DOM.eventGetCtrlKey(event) ? KeyboardListener.MODIFIER_CTRL : 0) | (DOM.eventGetAltKey(event) ? KeyboardListener.MODIFIER_ALT : 0);
}

Fixed version (ground truth):
/** 
 * Gets the keyboard modifiers associated with a DOMEvent.
 * @param event the event.
 * @return the modifiers as defined in {@link KeyboardListener}.
 */
public static int getKeyboardModifiers(Event event){
  return (DOM.eventGetShiftKey(event) ? KeyboardListener.MODIFIER_SHIFT : 0) | (DOM.eventGetMetaKey(event) ? KeyboardListener.MODIFIER_META : 0) | (DOM.eventGetCtrlKey(event) ? KeyboardListener.MODIFIER_CTRL : 0)| (DOM.eventGetAltKey(event) ? KeyboardListener.MODIFIER_ALT : 0);
}
Program: 83192
Project: 83192
Buggy source:
/** 
 * Determines if the class can be constructed using a simple <code>new</code> operation. Specifically, the class must <ul> <li>be a class rather than an interface, </li> <li>have either no constructors or a parameterless <code>public</code> constructor, and</li> <li>be a top-level class or a static nested class.</li> </ul>
 * @return <code>true</code> if the type is default instantiable, or<code>false</code> otherwise
 */
public boolean isDefaultInstantiable(){
  if (isInterface() != null) {
    return false;
  }
  if (constructors.isEmpty()) {
    return true;
  }
  JConstructor ctor=findConstructor(TypeOracle.NO_JTYPES);
  if (ctor != null) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Determines if the class can be constructed using a simple <code>new</code> operation. Specifically, the class must <ul> <li>be a class rather than an interface, </li> <li>have either no constructors or a parameterless constructor, and</li> <li>be a top-level class or a static nested class.</li> </ul>
 * @return <code>true</code> if the type is default instantiable, or<code>false</code> otherwise
 */
public boolean isDefaultInstantiable(){
  if (isInterface() != null) {
    return false;
  }
  if (constructors.isEmpty()) {
    return true;
  }
  JConstructor ctor=findConstructor(TypeOracle.NO_JTYPES);
  if (ctor != null) {
    return true;
  }
  return false;
}
Program: 83193
Project: 83193
Buggy source:
/** 
 * Adds a new child widget to the panel.
 * @param w the child widget to be added
 * @param container the element within which the child will be contained
 */
protected void add(Widget w,Element container){
  insert(w,container,children.size());
}

Fixed version (ground truth):
/** 
 * Adds a new child widget to the panel.
 * @param w the child widget to be added
 * @param container the element within which the child will be contained
 * @return the index at which the widget was added
 */
protected int add(Widget w,Element container){
  return insert(w,container,getChildren().size());
}
Program: 83194
Project: 83194
Buggy source:
public Iterator iterator(){
  return children.iterator();
}

Fixed version (ground truth):
public Iterator iterator(){
  return getChildren().iterator();
}
Program: 83195
Project: 83195
Buggy source:
/** 
 * Inserts a new child widget into the panel.
 * @param w the child widget to be added
 * @param container the element within which the child will be contained
 * @param beforeIndex the index before which the widget will be added
 */
protected void insert(Widget w,Element container,int beforeIndex){
  if (w.getParent() == this) {
    return;
  }
  adopt(w,container);
  children.insert(w,beforeIndex);
}

Fixed version (ground truth):
/** 
 * Inserts a new child widget into the panel.
 * @param w the child widget to be added
 * @param container the element within which the child will be contained
 * @param beforeIndex the index before which the widget will be added
 * @return the index at which the widget was added
 */
protected int insert(Widget w,Element container,int beforeIndex){
  if ((beforeIndex < 0) || (beforeIndex > getWidgetCount())) {
    throw new IndexOutOfBoundsException();
  }
  int idx=getWidgetIndex(w);
  if (idx == -1) {
    w.removeFromParent();
  }
 else {
    remove(w);
    if (idx < beforeIndex) {
      beforeIndex--;
    }
  }
  adopt(w,container);
  getChildren().insert(w,beforeIndex);
  return beforeIndex;
}
Program: 83196
Project: 83196
Buggy source:
public boolean remove(Widget w){
  if (!children.contains(w)) {
    return false;
  }
  disown(w);
  children.remove(w);
  return true;
}

Fixed version (ground truth):
public boolean remove(Widget w){
  if (!getChildren().contains(w)) {
    return false;
  }
  disown(w);
  getChildren().remove(w);
  return true;
}
Program: 83197
Project: 83197
Buggy source:
/** 
 * Inserts a widget before the specified index.
 * @param w the widget to be inserted
 * @param beforeIndex the index before which it will be inserted
 * @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out ofrange
 */
public void insert(Widget w,int beforeIndex){
  if ((beforeIndex < 0) || (beforeIndex > getWidgetCount())) {
    throw new IndexOutOfBoundsException();
  }
  super.insert(w,getElement(),beforeIndex);
  Element child=w.getElement();
  DOM.setStyleAttribute(child,"String_Node_Str","String_Node_Str");
  DOM.setStyleAttribute(child,"String_Node_Str","String_Node_Str");
  w.setVisible(false);
}

Fixed version (ground truth):
/** 
 * Inserts a widget before the specified index.
 * @param w the widget to be inserted
 * @param beforeIndex the index before which it will be inserted
 * @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out ofrange
 */
public void insert(Widget w,int beforeIndex){
  super.insert(w,getElement(),beforeIndex);
  Element child=w.getElement();
  DOM.setStyleAttribute(child,"String_Node_Str","String_Node_Str");
  DOM.setStyleAttribute(child,"String_Node_Str","String_Node_Str");
  w.setVisible(false);
}
Program: 83198
Project: 83198
Buggy source:
/** 
 * Inserts a widget before the specified index. If the Widget is already attached to the HorizontalPanel, it will be moved to the specified index.
 * @param w the widget to be inserted
 * @param beforeIndex the index before which it will be inserted
 * @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out ofrange
 */
public void insert(Widget w,int beforeIndex){
  int idx=getWidgetIndex(w);
  if (idx == -1) {
    w.removeFromParent();
  }
 else {
    remove(w);
    if (idx < beforeIndex) {
      beforeIndex--;
    }
  }
  Element td=DOM.createTD();
  DOM.insertChild(tableRow,td,beforeIndex);
  super.insert(w,td,beforeIndex);
  setCellHorizontalAlignment(w,horzAlign);
  setCellVerticalAlignment(w,vertAlign);
}

Fixed version (ground truth):
/** 
 * Inserts a widget before the specified index. If the Widget is already attached to the HorizontalPanel, it will be moved to the specified index.
 * @param w the widget to be inserted
 * @param beforeIndex the index before which it will be inserted
 * @throws IndexOutOfBoundsException if <code>beforeIndex</code> is out ofrange
 */
public void insert(Widget w,int beforeIndex){
  Element td=DOM.createTD();
  beforeIndex=super.insert(w,td,beforeIndex);
  DOM.insertChild(tableRow,td,beforeIndex);
  setCellHorizontalAlignment(w,horzAlign);
  setCellVerticalAlignment(w,vertAlign);
}
Program: 83199
Project: 83199
Buggy source:
private boolean remove(Widget child,int index){
  if (child.getParent() != this) {
    return false;
  }
  if (visibleStack == index) {
    visibleStack=-1;
  }
 else   if (visibleStack > index) {
    --visibleStack;
  }
  int rowIndex=2 * index;
  Element tr=DOM.getChild(body,rowIndex);
  DOM.removeChild(body,tr);
  tr=DOM.getChild(body,rowIndex);
  DOM.removeChild(body,tr);
  super.remove(child);
  int rows=getWidgetCount() * 2;
  for (int i=rowIndex; i < rows; i=i + 2) {
    Element childTR=DOM.getChild(body,i);
    Element td=DOM.getFirstChild(childTR);
    DOM.setElementPropertyInt(td,"String_Node_Str",index);
    ++index;
  }
  return true;
}

Fixed version (ground truth):
private boolean remove(Widget child,int index){
  if (child.getParent() != this) {
    return false;
  }
  if (visibleStack == index) {
    visibleStack=-1;
  }
 else   if (visibleStack > index) {
    --visibleStack;
  }
  int rowIndex=2 * index;
  Element tr=DOM.getChild(body,rowIndex);
  DOM.removeChild(body,tr);
  tr=DOM.getChild(body,rowIndex);
  DOM.removeChild(body,tr);
  super.remove(child);
  updateIndicesFrom(rowIndex);
  return true;
}
Program: 83200
Project: 83200
Buggy source:
/** 
 * Enqueues an   {@link IncrementalCommand} to be fired after all current eventshave been handled. Note that the  {@link IncrementalCommand} should not perform any blockingoperations.
 * @param cmd the command to be fired. If cmd is null, a "pause" will beinserted into the queue. Any events added after the pause will wait for an additional cycle through the system event loop before executing. Pauses are cumulative.
 */
public static void addCommand(IncrementalCommand cmd){
  commandExecutor.submit(cmd);
}

Fixed version (ground truth):
/** 
 * Enqueues an   {@link IncrementalCommand} to be fired after all current eventshave been handled. Note that the  {@link IncrementalCommand} should not perform any blockingoperations.
 * @param cmd the command to be fired
 * @throws NullPointerException if cmd is <code>null</code>
 */
public static void addCommand(IncrementalCommand cmd){
  if (cmd == null) {
    throw new NullPointerException("String_Node_Str");
  }
  commandExecutor.submit(cmd);
}
Program: 83202
Project: 83202
Buggy source:
/** 
 * Handle auto-generated resources.
 * @return <code>true</code> if a resource was generated
 */
private boolean autoGenerateResources(HttpServletRequest request,HttpServletResponse response,TreeLogger logger,String partialPath,String moduleName) throws IOException {
  boolean nocacheHtml=partialPath.equals(moduleName + "String_Node_Str");
  boolean nocacheScript=!nocacheHtml && partialPath.equals(moduleName + "String_Node_Str");
  if (nocacheHtml || nocacheScript) {
    if (request.getParameter("String_Node_Str") == null) {
      try {
        String js=genSelectionScript(logger,moduleName,nocacheScript);
        response.setStatus(HttpServletResponse.SC_OK);
        response.setContentType("String_Node_Str");
        response.getWriter().println(js);
        return true;
      }
 catch (      UnableToCompleteException e) {
      }
    }
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Handle auto-generated resources.
 * @return <code>true</code> if a resource was generated
 */
private boolean autoGenerateResources(HttpServletRequest request,HttpServletResponse response,TreeLogger logger,String partialPath,String moduleName) throws IOException {
  boolean nocacheHtml=partialPath.equals(moduleName + "String_Node_Str");
  boolean nocacheScript=!nocacheHtml && partialPath.equals(moduleName + "String_Node_Str");
  if (nocacheHtml || nocacheScript) {
    if (request.getParameter("String_Node_Str") == null) {
      try {
        String js=genSelectionScript(logger,moduleName,nocacheScript);
        setResponseCacheHeaders(response,0);
        response.setStatus(HttpServletResponse.SC_OK);
        response.setContentType("String_Node_Str");
        response.getWriter().println(js);
        return true;
      }
 catch (      UnableToCompleteException e) {
      }
    }
  }
  return false;
}
Program: 83203
Project: 83203
Buggy source:
private String getHtmlPrefix(){
  DefaultTextOutput out=new DefaultTextOutput(obfuscate);
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str" + moduleName + "String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.print(module.getName());
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newline();
  return out.toString();
}

Fixed version (ground truth):
private String getHtmlPrefix(){
  DefaultTextOutput out=new DefaultTextOutput(obfuscate);
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.print(module.getName());
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newline();
  return out.toString();
}
Program: 83204
Project: 83204
Buggy source:
private String getJsPrefix(){
  DefaultTextOutput out=new DefaultTextOutput(obfuscate);
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str" + moduleName + "String_Node_Str");
  out.newlineOpt();
  return out.toString();
}

Fixed version (ground truth):
private String getJsPrefix(){
  DefaultTextOutput out=new DefaultTextOutput(obfuscate);
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  out.print("String_Node_Str");
  out.newlineOpt();
  return out.toString();
}
Program: 83206
Project: 83206
Buggy source:
private void ctorAddKnownGlobalSymbols(){
  String[] commonBuiltins=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","String_Node_Str"};
  for (int i=0; i < commonBuiltins.length; i++) {
    String ident=commonBuiltins[i];
    this.doCreateName(ident,ident);
  }
}

Fixed version (ground truth):
private void ctorAddKnownGlobalSymbols(){
  String[] commonBuiltins=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","String_Node_Str","String_Node_Str"};
  for (int i=0; i < commonBuiltins.length; i++) {
    String ident=commonBuiltins[i];
    this.doCreateName(ident,ident);
  }
}
Program: 83207
Project: 83207
Buggy source:
protected CompilationUnitProvider doFilterCompilationUnit(TreeLogger logger,String typeName,CompilationUnitProvider existing) throws UnableToCompleteException {
  if (typeName.equals("String_Node_Str")) {
    return cuMeta;
  }
  CompilationUnitProvider jsnified=injector.inject(logger,existing);
  return jsnified;
}

Fixed version (ground truth):
protected CompilationUnitProvider doFilterCompilationUnit(TreeLogger logger,String typeName,CompilationUnitProvider existing) throws UnableToCompleteException {
  if (typeName.equals("String_Node_Str")) {
    try {
      String source=Utility.getFileFromClassPath("String_Node_Str");
      return new StaticCompilationUnitProvider("String_Node_Str","String_Node_Str",source.toCharArray());
    }
 catch (    IOException e) {
      logger.log(TreeLogger.ERROR,"String_Node_Str",e);
      throw new UnableToCompleteException();
    }
  }
  CompilationUnitProvider jsnified=injector.inject(logger,existing);
  return jsnified;
}
Program: 83208
Project: 83208
Buggy source:
public HostedModeSourceOracle(TypeOracle typeOracle,String moduleName){
  super(typeOracle);
  this.moduleName=moduleName;
  this.injector=new JsniInjector(typeOracle);
}

Fixed version (ground truth):
public HostedModeSourceOracle(TypeOracle typeOracle){
  super(typeOracle);
  this.injector=new JsniInjector(typeOracle);
}