nus-yam/ex-repair huggingface dataset:
Program: 22920
Project: 22920
Buggy source:
@Override public boolean onBlockActivated(net.minecraft.world.World World,int X,int Y,int Z,net.minecraft.entity.player.EntityPlayer Player,int Side,float HitX,float HitY,float HitZ){
  if (World.isRemote) {
    return (false);
  }
  if (!ToolItemSet.IsScrewdriverOrEquivalent(Player.inventory.getCurrentItem())) {
    return (false);
  }
  try {
    CarriageDriveEntity cde=(CarriageDriveEntity)World.getBlockTileEntity(X,Y,Z);
    cde.lastUsingPlayer=Player;
    System.out.println("String_Node_Str");
    cde.HandleToolUsage(Side,Player.isSneaking());
  }
 catch (  Throwable Throwable) {
    Throwable.printStackTrace();
    return (false);
  }
  return (true);
}

Fixed version (ground truth):
@Override public boolean onBlockActivated(net.minecraft.world.World World,int X,int Y,int Z,net.minecraft.entity.player.EntityPlayer Player,int Side,float HitX,float HitY,float HitZ){
  if (World.isRemote) {
    return (false);
  }
  if (!ToolItemSet.IsScrewdriverOrEquivalent(Player.inventory.getCurrentItem())) {
    return (false);
  }
  try {
    CarriageDriveEntity cde=(CarriageDriveEntity)World.getTileEntity(X,Y,Z);
    cde.lastUsingPlayer=Player;
    System.out.println("String_Node_Str");
    cde.HandleToolUsage(Side,Player.isSneaking());
  }
 catch (  Throwable Throwable) {
    Throwable.printStackTrace();
    return (false);
  }
  return (true);
}
Program: 22921
Project: 22921
Buggy source:
@Override public net.minecraft.util.Icon getBlockTexture(net.minecraft.world.IBlockAccess World,int X,int Y,int Z,int Side){
  try {
    CarriageDriveEntity Drive=(CarriageDriveEntity)World.getBlockTileEntity(X,Y,Z);
    if (Drive.SideClosed[Side]) {
      return (InactiveIcon);
    }
    Types Type=Types.values()[World.getBlockMetadata(X,Y,Z)];
    if (Drive.Continuous) {
      return (Drive.Active ? Type.ContinuousActiveIcon : Type.ContinuousIcon);
    }
    return (Drive.Active ? Type.NormalActiveIcon : Type.NormalIcon);
  }
 catch (  Throwable Throwable) {
    Throwable.printStackTrace();
    return (Blocks.Spectre.getIcon(0,0));
  }
}

Fixed version (ground truth):
@Override public IIcon getBlockTexture(net.minecraft.world.IBlockAccess World,int X,int Y,int Z,int Side){
  try {
    CarriageDriveEntity Drive=(CarriageDriveEntity)World.getTileEntity(X,Y,Z);
    if (Drive.SideClosed[Side]) {
      return (InactiveIcon);
    }
    Types Type=Types.values()[World.getBlockMetadata(X,Y,Z)];
    if (Drive.Continuous) {
      return (Drive.Active ? Type.ContinuousActiveIcon : Type.ContinuousIcon);
    }
    return (Drive.Active ? Type.NormalActiveIcon : Type.NormalIcon);
  }
 catch (  Throwable Throwable) {
    Throwable.printStackTrace();
    return (Blocks.Spectre.getIcon(0,0));
  }
}
Program: 22922
Project: 22922
Buggy source:
@Override public net.minecraft.util.Icon getIcon(int Side,int Meta){
  try {
    return (Types.values()[Meta].NormalIcon);
  }
 catch (  Throwable Throwable) {
    return (Blocks.Spectre.getIcon(0,0));
  }
}

Fixed version (ground truth):
@Override public IIcon getIcon(int Side,int Meta){
  try {
    return (Types.values()[Meta].NormalIcon);
  }
 catch (  Throwable Throwable) {
    return (Blocks.Spectre.getIcon(0,0));
  }
}
Program: 22923
Project: 22923
Buggy source:
@Override public net.minecraft.util.Icon GetIcon(net.minecraft.item.ItemStack Item,Directions Side){
  return (Blocks.CarriageDrive.getIcon(0,BlockItem.GetBlockType(Item)));
}

Fixed version (ground truth):
@Override public IIcon GetIcon(net.minecraft.item.ItemStack Item,Directions Side){
  return (Blocks.CarriageDrive.getIcon(0,BlockItem.GetBlockType(Item)));
}
Program: 22924
Project: 22924
Buggy source:
public BerTlvBuilder addAmount(BerTag aObject,BigDecimal aAmount){
  BigDecimal numeric=aAmount.multiply(new BigDecimal(100));
  StringBuilder sb=new StringBuilder(12);
  sb.append(numeric.longValue());
  while (sb.length() < 12) {
    sb.insert(0,'0');
  }
  return addHex(aObject,sb.toString());
}

Fixed version (ground truth):
public BerTlvBuilder addAmount(BerTag aObject,BigDecimal aAmount){
  BigDecimal numeric=aAmount.multiply(HUNDRED);
  StringBuilder sb=new StringBuilder(12);
  sb.append(numeric.longValue());
  while (sb.length() < 12) {
    sb.insert(0,'0');
  }
  return addHex(aObject,sb.toString());
}
Program: 22925
Project: 22925
Buggy source:
public int build(){
  if (theTemplate) {
    theBuffer[theLengthPosition]=(byte)(thePos - theLengthPosition - 1);
  }
  return thePos;
}

Fixed version (ground truth):
public int build(){
  if (theTemplate != null) {
    int tagLen=theTemplate.bytes.length;
    int lengthBytesCount=calculateBytesCountForLength(thePos);
    System.arraycopy(theBuffer,theBufferOffset,theBuffer,tagLen + lengthBytesCount,thePos);
    System.arraycopy(theTemplate.bytes,0,theBuffer,theBufferOffset,theTemplate.bytes.length);
    fillLength(theBuffer,tagLen,thePos);
    thePos+=tagLen + lengthBytesCount;
  }
  return thePos;
}
Program: 22926
Project: 22926
Buggy source:
public BerTlvBuilder(){
  this(new byte[1024],0,1024);
}

Fixed version (ground truth):
public BerTlvBuilder(BerTag aTemplate,byte[] aBuffer,int aOffset,int aLength){
  theTemplate=aTemplate;
  theBuffer=aBuffer;
  thePos=aOffset;
  theBufferOffset=aOffset;
}
Program: 22927
Project: 22927
Buggy source:
public static void log(String aPadding,BerTlv aTlv,IBerTlvLogger aLogger){
  if (aTlv == null) {
    aLogger.debug("String_Node_Str",aPadding);
    return;
  }
  if (aTlv.isConstructed()) {
    aLogger.debug("String_Node_Str",aPadding,aTlv.getTag());
    for (    BerTlv child : aTlv.getValues()) {
      log(aPadding + "String_Node_Str",child,aLogger);
    }
  }
 else {
    aLogger.debug("String_Node_Str",aPadding,aTlv.getTag(),aTlv.getHexValue());
  }
}

Fixed version (ground truth):
public static void log(String aPadding,BerTlv aTlv,IBerTlvLogger aLogger){
  if (aTlv == null) {
    aLogger.debug("String_Node_Str",aPadding);
    return;
  }
  if (aTlv.isConstructed()) {
    aLogger.debug("String_Node_Str",aPadding,HexUtil.toHexString(aTlv.getTag().bytes));
    for (    BerTlv child : aTlv.getValues()) {
      log(aPadding + "String_Node_Str",child,aLogger);
    }
  }
 else {
    aLogger.debug("String_Node_Str",aPadding,HexUtil.toHexString(aTlv.getTag().bytes),aTlv.getHexValue());
  }
}
Program: 22929
Project: 22929
Buggy source:
private void addChildren(int aLevel,byte[] aBuf,int aOffset,String levelPadding,int tagOffset,int dataOffset,int valueLength,ArrayList<BerTlv> list){
  int conOffset=aOffset + tagOffset + dataOffset;
  int conLen=valueLength;
  while (conOffset < dataOffset + valueLength) {
    ParseResult result=parseWithResult(aLevel + 1,aBuf,conOffset,conLen);
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str",levelPadding,aLevel,result.tlv.getTag(),result.offset);
    }
    conOffset=result.offset;
    conLen=valueLength - conOffset;
    list.add(result.tlv);
  }
}

Fixed version (ground truth):
/** 
 * @param aLevel          level for debug
 * @param aBuf            buffer
 * @param aOffset         offset (first byte)
 * @param levelPadding    level padding (for debug)
 * @param aTagBytesCount  tag bytes count
 * @param aDataBytesCount data bytes count
 * @param valueLength     length
 * @param list            list to add
 */
private void addChildren(int aLevel,byte[] aBuf,int aOffset,String levelPadding,int aTagBytesCount,int aDataBytesCount,int valueLength,ArrayList<BerTlv> list){
  int startPosition=aOffset + aTagBytesCount + aDataBytesCount;
  int len=valueLength;
  while (startPosition < aOffset + valueLength) {
    ParseResult result=parseWithResult(aLevel + 1,aBuf,startPosition,len);
    list.add(result.tlv);
    startPosition=result.offset;
    len=valueLength - startPosition;
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str",levelPadding,aLevel,result.tlv.getTag(),result.offset,startPosition,aDataBytesCount,valueLength);
    }
  }
}
Program: 22930
Project: 22930
Buggy source:
private void parse(String hex){
  byte[] bytes=HexUtil.parseHex(hex);
  BerTlvParser parser=new BerTlvParser(LOG);
  BerTlvs tlvs=parser.parse(bytes,0,bytes.length);
  BerTlvLogger.log("String_Node_Str",tlvs,LOG);
}

Fixed version (ground truth):
private BerTlvs parse(String hex){
  byte[] bytes=HexUtil.parseHex(hex);
  BerTlvParser parser=new BerTlvParser(LOG);
  BerTlvs tlvs=parser.parse(bytes,0,bytes.length);
  BerTlvLogger.log("String_Node_Str",tlvs,LOG);
  return tlvs;
}
Program: 22931
Project: 22931
Buggy source:
private void attachSampleFile(PDDocument doc) throws IOException {
  PDEmbeddedFilesNameTreeNode efTree=new PDEmbeddedFilesNameTreeNode();
  PDComplexFileSpecification fs=new PDComplexFileSpecification();
  fs.setFile("String_Node_Str");
  COSDictionary dict=fs.getCOSDictionary();
  dict.setName("String_Node_Str","String_Node_Str");
  dict.setString("String_Node_Str","String_Node_Str");
  String payload="String_Node_Str";
  InputStream is=new ByteArrayInputStream(payload.getBytes());
  PDEmbeddedFile ef=new PDEmbeddedFile(doc,is);
  ef.setSubtype("String_Node_Str");
  ef.setModDate(GregorianCalendar.getInstance());
  ef.setSize(payload.length());
  ef.setCreationDate(new GregorianCalendar());
  fs.setEmbeddedFile(ef);
  efTree.setNames(Collections.singletonMap("String_Node_Str",fs));
  PDDocumentCatalog catalog=doc.getDocumentCatalog();
  PDDocumentNameDictionary names=new PDDocumentNameDictionary(doc.getDocumentCatalog());
  names.setEmbeddedFiles(efTree);
  catalog.setNames(names);
}

Fixed version (ground truth):
private void attachSampleFile(PDDocument doc) throws IOException {
  PDEmbeddedFilesNameTreeNode efTree=new PDEmbeddedFilesNameTreeNode();
  PDComplexFileSpecification fs=new PDComplexFileSpecification();
  fs.setFile("String_Node_Str");
  COSDictionary dict=fs.getCOSDictionary();
  dict.setName("String_Node_Str","String_Node_Str");
  dict.setString("String_Node_Str","String_Node_Str");
  String payload="String_Node_Str";
  InputStream is=new ByteArrayInputStream(payload.getBytes());
  PDEmbeddedFile ef=new PDEmbeddedFile(doc,is);
  ef.setSubtype("String_Node_Str");
  ef.setModDate(GregorianCalendar.getInstance());
  ef.setSize(payload.length());
  ef.setCreationDate(new GregorianCalendar());
  fs.setEmbeddedFile(ef);
  efTree.setNames(Collections.singletonMap("String_Node_Str",fs));
  PDDocumentCatalog catalog=doc.getDocumentCatalog();
  PDDocumentNameDictionary names=new PDDocumentNameDictionary(doc.getDocumentCatalog());
  names.setEmbeddedFiles(efTree);
  catalog.setNames(names);
  COSDictionary dict2=catalog.getCOSDictionary();
  COSArray array=new COSArray();
  array.add(fs.getCOSDictionary());
  dict2.setItem("String_Node_Str",array);
}
Program: 22932
Project: 22932
Buggy source:
/** 
 * This is what needs to be added to the RDF metadata - basically the name of the embedded  Zugferd file
 */
public XMPSchemaZugferd(org.apache.jempbox.xmp.XMPMetadata parent){
  super(parent);
  schema.setAttributeNS(NS_NAMESPACE,"String_Node_Str","String_Node_Str");
  schema.removeAttributeNS(NS_NAMESPACE,"String_Node_Str");
  schema.removeAttributeNS(NS_NAMESPACE,"String_Node_Str");
  Element textNode=schema.getOwnerDocument().createElement("String_Node_Str");
  XMLUtil.setStringValue(textNode,"String_Node_Str");
  schema.appendChild(textNode);
  textNode=schema.getOwnerDocument().createElement("String_Node_Str");
  XMLUtil.setStringValue(textNode,"String_Node_Str");
  schema.appendChild(textNode);
  textNode=schema.getOwnerDocument().createElement("String_Node_Str");
  XMLUtil.setStringValue(textNode,"String_Node_Str");
  schema.appendChild(textNode);
  textNode=schema.getOwnerDocument().createElement("String_Node_Str");
  XMLUtil.setStringValue(textNode,"String_Node_Str");
  schema.appendChild(textNode);
}

Fixed version (ground truth):
/** 
 * This is what needs to be added to the RDF metadata - basically the name of the embedded Zugferd file
 */
public XMPSchemaZugferd(org.apache.jempbox.xmp.XMPMetadata parent){
  super(parent);
  schema.setAttributeNS(NS_NAMESPACE,"String_Node_Str","String_Node_Str");
  schema.removeAttributeNS(NS_NAMESPACE,"String_Node_Str");
  schema.removeAttributeNS(NS_NAMESPACE,"String_Node_Str");
  Element textNode=schema.getOwnerDocument().createElement("String_Node_Str");
  XMLUtil.setStringValue(textNode,"String_Node_Str");
  schema.appendChild(textNode);
  textNode=schema.getOwnerDocument().createElement("String_Node_Str");
  XMLUtil.setStringValue(textNode,"String_Node_Str");
  schema.appendChild(textNode);
  textNode=schema.getOwnerDocument().createElement("String_Node_Str");
  XMLUtil.setStringValue(textNode,"String_Node_Str");
  schema.appendChild(textNode);
  textNode=schema.getOwnerDocument().createElement("String_Node_Str");
  XMLUtil.setStringValue(textNode,"String_Node_Str");
  schema.appendChild(textNode);
}
Program: 22933
Project: 22933
Buggy source:
private void attachSampleFile(PDDocument doc) throws IOException {
  PDEmbeddedFilesNameTreeNode efTree=new PDEmbeddedFilesNameTreeNode();
  PDComplexFileSpecification fs=new PDComplexFileSpecification();
  fs.setFile("String_Node_Str");
  COSDictionary dict=fs.getCOSDictionary();
  dict.setName("String_Node_Str","String_Node_Str");
  dict.setString("String_Node_Str","String_Node_Str");
  String payload="String_Node_Str";
  InputStream is=new ByteArrayInputStream(payload.getBytes());
  PDEmbeddedFile ef=new PDEmbeddedFile(doc,is);
  ef.setSubtype("String_Node_Str");
  ef.setFile(fs);
  ef.setModDate(GregorianCalendar.getInstance());
  ef.setSize(payload.length());
  ef.setCreationDate(new GregorianCalendar());
  fs.setEmbeddedFile(ef);
  Map efMap=new HashMap();
  efMap.put("String_Node_Str",fs);
  efTree.setNames(efMap);
  PDDocumentCatalog catalog=doc.getDocumentCatalog();
  PDDocumentNameDictionary names=new PDDocumentNameDictionary(doc.getDocumentCatalog());
  names.setEmbeddedFiles(efTree);
  catalog.setNames(names);
  COSArray cosArray=new COSArray();
  cosArray.add(fs);
  catalog.getCOSDictionary().setItem("String_Node_Str",cosArray);
}

Fixed version (ground truth):
private void attachSampleFile(PDDocument doc) throws IOException {
  PDEmbeddedFilesNameTreeNode efTree=new PDEmbeddedFilesNameTreeNode();
  PDComplexFileSpecification fs=new PDComplexFileSpecification();
  fs.setFile("String_Node_Str");
  COSDictionary dict=fs.getCOSDictionary();
  dict.setName("String_Node_Str","String_Node_Str");
  dict.setString("String_Node_Str","String_Node_Str");
  String payload="String_Node_Str";
  InputStream is=new ByteArrayInputStream(payload.getBytes());
  PDEmbeddedFile ef=new PDEmbeddedFile(doc,is);
  ef.setSubtype("String_Node_Str");
  ef.setModDate(GregorianCalendar.getInstance());
  ef.setSize(payload.length());
  ef.setCreationDate(new GregorianCalendar());
  fs.setEmbeddedFile(ef);
  efTree.setNames(Collections.singletonMap("String_Node_Str",fs));
  PDDocumentCatalog catalog=doc.getDocumentCatalog();
  PDDocumentNameDictionary names=new PDDocumentNameDictionary(doc.getDocumentCatalog());
  names.setEmbeddedFiles(efTree);
  catalog.setNames(names);
  COSArray cosArray=new COSArray();
  cosArray.add(fs);
  catalog.getCOSDictionary().setItem("String_Node_Str",cosArray);
}
Program: 22935
Project: 22935
Buggy source:
private void start(ValidatorHostContext hostContext,List<ValidationMessage> errors,Element resource,Element element,StructureDefinition defn,NodeStack stack) throws FHIRException, FHIRException, IOException {
  ResourceProfiles resourceProfiles=getResourceProfiles(element,stack);
  if (!resourceProfiles.isProcessed())   checkDeclaredProfiles(resourceProfiles,errors,resource,element,stack);
  if (!resourceProfiles.isProcessed()) {
    resourceProfiles.setProcessed();
    if (!resourceProfiles.hasProfiles() && (rule(errors,IssueType.STRUCTURE,element.line(),element.col(),stack.getLiteralPath(),defn.hasSnapshot(),"String_Node_Str"))) {
      validateElement(hostContext,errors,defn,defn.getSnapshot().getElement().get(0),null,null,resource,element,element.getName(),stack,false);
    }
    if (element.getType().equals("String_Node_Str"))     validateBundle(errors,element,stack);
 else     if (element.getType().equals("String_Node_Str"))     validateObservation(errors,element,stack);
 else     if (element.getType().equals("String_Node_Str"))     validateQuestionannaireResponse(errors,element,stack);
  }
  for (  ProfileUsage profileUsage : resourceProfiles.uncheckedProfiles()) {
    profileUsage.setChecked();
    validateElement(hostContext,errors,profileUsage.getProfile(),profileUsage.getProfile().getSnapshot().getElement().get(0),null,null,resource,element,element.getName(),stack,false);
  }
}

Fixed version (ground truth):
private void start(ValidatorHostContext hostContext,List<ValidationMessage> errors,Element resource,Element element,StructureDefinition defn,NodeStack stack) throws FHIRException, FHIRException, IOException {
  ResourceProfiles resourceProfiles=getResourceProfiles(element,stack);
  if (!resourceProfiles.isProcessed())   checkDeclaredProfiles(resourceProfiles,errors,resource,element,stack);
  if (!resourceProfiles.isProcessed()) {
    resourceProfiles.setProcessed();
    if (!resourceProfiles.hasProfiles() && (rule(errors,IssueType.STRUCTURE,element.line(),element.col(),stack.getLiteralPath(),defn.hasSnapshot(),"String_Node_Str"))) {
      validateElement(hostContext,errors,defn,defn.getSnapshot().getElement().get(0),null,null,resource,element,element.getName(),stack,false);
    }
    if (element.getType().equals("String_Node_Str"))     validateBundle(errors,element,stack);
 else     if (element.getType().equals("String_Node_Str"))     validateObservation(errors,element,stack);
 else     if (element.getType().equals("String_Node_Str"))     validateQuestionannaireResponse(errors,element,stack);
 else     if (element.getType().equals("String_Node_Str"))     validateCodeSystem(errors,element,stack);
  }
  for (  ProfileUsage profileUsage : resourceProfiles.uncheckedProfiles()) {
    profileUsage.setChecked();
    validateElement(hostContext,errors,profileUsage.getProfile(),profileUsage.getProfile().getSnapshot().getElement().get(0),null,null,resource,element,element.getName(),stack,false);
  }
}
Program: 22937
Project: 22937
Buggy source:
private String conceptId() throws FHIRException {
  StringBuffer res=new StringBuffer(Utilities.padLeft("String_Node_Str",' ',18));
  int i=0;
  while (peek() >= '0' && peek() <= '9') {
    res.setCharAt(i,next());
    i++;
  }
  rule(i > 0,"String_Node_Str" + peekDisp() + "String_Node_Str");
  return res.substring(0,i);
}

Fixed version (ground truth):
private String conceptId() throws FHIRException {
  StringBuffer res=new StringBuffer(Utilities.padLeft("String_Node_Str",' ',18));
  int i=0;
  while (peek() >= '0' && peek() <= '9') {
    res.setCharAt(i,next());
    i++;
  }
  rule(i > 0,"String_Node_Str" + peekDisp() + "String_Node_Str"+ source+ "String_Node_Str");
  return res.substring(0,i);
}
Program: 22938
Project: 22938
Buggy source:
/** 
 * @param value {@link #url} (An absolute URI that is used to identify this search parameter when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which this search parameter is (or will be) published.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
 */
public SearchParameter setUrlElement(UriType value){
  this.url=value;
  return this;
}

Fixed version (ground truth):
/** 
 * @param value {@link #url} (An absolute URI that is used to identify this search parameter when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this search parameter is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the search parameter is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
 */
public SearchParameter setUrlElement(UriType value){
  this.url=value;
  return this;
}
Program: 22939
Project: 22939
Buggy source:
public String getSystem(){
switch (this) {
case MISSING:
    return "String_Node_Str";
case EXACT:
  return "String_Node_Str";
case CONTAINS:
return "String_Node_Str";
case NOT:
return "String_Node_Str";
case TEXT:
return "String_Node_Str";
case IN:
return "String_Node_Str";
case NOTIN:
return "String_Node_Str";
case BELOW:
return "String_Node_Str";
case ABOVE:
return "String_Node_Str";
case TYPE:
return "String_Node_Str";
default :
return "String_Node_Str";
}
}

Fixed version (ground truth):
public String getSystem(){
switch (this) {
case MISSING:
    return "String_Node_Str";
case EXACT:
  return "String_Node_Str";
case CONTAINS:
return "String_Node_Str";
case NOT:
return "String_Node_Str";
case TEXT:
return "String_Node_Str";
case IN:
return "String_Node_Str";
case NOTIN:
return "String_Node_Str";
case BELOW:
return "String_Node_Str";
case ABOVE:
return "String_Node_Str";
case TYPE:
return "String_Node_Str";
case IDENTIFIER:
return "String_Node_Str";
case OFTYPE:
return "String_Node_Str";
default :
return "String_Node_Str";
}
}
Program: 22940
Project: 22940
Buggy source:
public String toCode(SearchModifierCode code){
  if (code == SearchModifierCode.MISSING)   return "String_Node_Str";
  if (code == SearchModifierCode.EXACT)   return "String_Node_Str";
  if (code == SearchModifierCode.CONTAINS)   return "String_Node_Str";
  if (code == SearchModifierCode.NOT)   return "String_Node_Str";
  if (code == SearchModifierCode.TEXT)   return "String_Node_Str";
  if (code == SearchModifierCode.IN)   return "String_Node_Str";
  if (code == SearchModifierCode.NOTIN)   return "String_Node_Str";
  if (code == SearchModifierCode.BELOW)   return "String_Node_Str";
  if (code == SearchModifierCode.ABOVE)   return "String_Node_Str";
  if (code == SearchModifierCode.TYPE)   return "String_Node_Str";
  return "String_Node_Str";
}

Fixed version (ground truth):
public String toCode(SearchModifierCode code){
  if (code == SearchModifierCode.MISSING)   return "String_Node_Str";
  if (code == SearchModifierCode.EXACT)   return "String_Node_Str";
  if (code == SearchModifierCode.CONTAINS)   return "String_Node_Str";
  if (code == SearchModifierCode.NOT)   return "String_Node_Str";
  if (code == SearchModifierCode.TEXT)   return "String_Node_Str";
  if (code == SearchModifierCode.IN)   return "String_Node_Str";
  if (code == SearchModifierCode.NOTIN)   return "String_Node_Str";
  if (code == SearchModifierCode.BELOW)   return "String_Node_Str";
  if (code == SearchModifierCode.ABOVE)   return "String_Node_Str";
  if (code == SearchModifierCode.TYPE)   return "String_Node_Str";
  if (code == SearchModifierCode.IDENTIFIER)   return "String_Node_Str";
  if (code == SearchModifierCode.OFTYPE)   return "String_Node_Str";
  return "String_Node_Str";
}
Program: 22941
Project: 22941
Buggy source:
/** 
 * @return The type of value a search parameter refers to, and how the content is interpreted.
 */
public SearchParamType getType(){
  return this.type == null ? null : this.type.getValue();
}

Fixed version (ground truth):
/** 
 * @return The type of value that a search parameter may contain, and how the content is interpreted.
 */
public SearchParamType getType(){
  return this.type == null ? null : this.type.getValue();
}
Program: 22942
Project: 22942
Buggy source:
/** 
 * @return {@link #type} (The type of value a search parameter refers to, and how the content is interpreted.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
 */
public Enumeration<SearchParamType> getTypeElement(){
  if (this.type == null)   if (Configuration.errorOnAutoCreate())   throw new Error("String_Node_Str");
 else   if (Configuration.doAutoCreate())   this.type=new Enumeration<SearchParamType>(new SearchParamTypeEnumFactory());
  return this.type;
}

Fixed version (ground truth):
/** 
 * @return {@link #type} (The type of value that a search parameter may contain, and how the content is interpreted.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
 */
public Enumeration<SearchParamType> getTypeElement(){
  if (this.type == null)   if (Configuration.errorOnAutoCreate())   throw new Error("String_Node_Str");
 else   if (Configuration.doAutoCreate())   this.type=new Enumeration<SearchParamType>(new SearchParamTypeEnumFactory());
  return this.type;
}
Program: 22943
Project: 22943
Buggy source:
public SearchModifierCode fromCode(String codeString) throws IllegalArgumentException {
  if (codeString == null || "String_Node_Str".equals(codeString))   if (codeString == null || "String_Node_Str".equals(codeString))   return null;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.MISSING;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.EXACT;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.CONTAINS;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.NOT;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.TEXT;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.IN;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.NOTIN;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.BELOW;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.ABOVE;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.TYPE;
  throw new IllegalArgumentException("String_Node_Str" + codeString + "String_Node_Str");
}

Fixed version (ground truth):
public SearchModifierCode fromCode(String codeString) throws IllegalArgumentException {
  if (codeString == null || "String_Node_Str".equals(codeString))   if (codeString == null || "String_Node_Str".equals(codeString))   return null;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.MISSING;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.EXACT;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.CONTAINS;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.NOT;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.TEXT;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.IN;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.NOTIN;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.BELOW;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.ABOVE;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.TYPE;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.IDENTIFIER;
  if ("String_Node_Str".equals(codeString))   return SearchModifierCode.OFTYPE;
  throw new IllegalArgumentException("String_Node_Str" + codeString + "String_Node_Str");
}
Program: 22944
Project: 22944
Buggy source:
/** 
 * @param value An absolute URI that is used to identify this search parameter when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which this search parameter is (or will be) published.
 */
public SearchParameter setUrl(String value){
  if (this.url == null)   this.url=new UriType();
  this.url.setValue(value);
  return this;
}

Fixed version (ground truth):
/** 
 * @param value An absolute URI that is used to identify this search parameter when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this search parameter is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the search parameter is stored on different servers.
 */
public SearchParameter setUrl(String value){
  if (this.url == null)   this.url=new UriType();
  this.url.setValue(value);
  return this;
}
Program: 22945
Project: 22945
Buggy source:
/** 
 * @return An absolute URI that is used to identify this search parameter when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which this search parameter is (or will be) published.
 */
public String getUrl(){
  return this.url == null ? null : this.url.getValue();
}

Fixed version (ground truth):
/** 
 * @return An absolute URI that is used to identify this search parameter when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this search parameter is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the search parameter is stored on different servers.
 */
public String getUrl(){
  return this.url == null ? null : this.url.getValue();
}
Program: 22947
Project: 22947
Buggy source:
/** 
 * @param value {@link #type} (The type of value a search parameter refers to, and how the content is interpreted.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
 */
public SearchParameter setTypeElement(Enumeration<SearchParamType> value){
  this.type=value;
  return this;
}

Fixed version (ground truth):
/** 
 * @param value {@link #type} (The type of value that a search parameter may contain, and how the content is interpreted.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
 */
public SearchParameter setTypeElement(Enumeration<SearchParamType> value){
  this.type=value;
  return this;
}
Program: 22948
Project: 22948
Buggy source:
/** 
 * @return {@link #url} (An absolute URI that is used to identify this search parameter when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which this search parameter is (or will be) published.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
 */
public UriType getUrlElement(){
  if (this.url == null)   if (Configuration.errorOnAutoCreate())   throw new Error("String_Node_Str");
 else   if (Configuration.doAutoCreate())   this.url=new UriType();
  return this.url;
}

Fixed version (ground truth):
/** 
 * @return {@link #url} (An absolute URI that is used to identify this search parameter when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this search parameter is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the search parameter is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
 */
public UriType getUrlElement(){
  if (this.url == null)   if (Configuration.errorOnAutoCreate())   throw new Error("String_Node_Str");
 else   if (Configuration.doAutoCreate())   this.url=new UriType();
  return this.url;
}
Program: 22949
Project: 22949
Buggy source:
/** 
 * @param value The type of value a search parameter refers to, and how the content is interpreted.
 */
public SearchParameter setType(SearchParamType value){
  if (this.type == null)   this.type=new Enumeration<SearchParamType>(new SearchParamTypeEnumFactory());
  this.type.setValue(value);
  return this;
}

Fixed version (ground truth):
/** 
 * @param value The type of value that a search parameter may contain, and how the content is interpreted.
 */
public SearchParameter setType(SearchParamType value){
  if (this.type == null)   this.type=new Enumeration<SearchParamType>(new SearchParamTypeEnumFactory());
  this.type.setValue(value);
  return this;
}
Program: 22950
Project: 22950
Buggy source:
public String getDisplay(){
switch (this) {
case MISSING:
    return "String_Node_Str";
case EXACT:
  return "String_Node_Str";
case CONTAINS:
return "String_Node_Str";
case NOT:
return "String_Node_Str";
case TEXT:
return "String_Node_Str";
case IN:
return "String_Node_Str";
case NOTIN:
return "String_Node_Str";
case BELOW:
return "String_Node_Str";
case ABOVE:
return "String_Node_Str";
case TYPE:
return "String_Node_Str";
default :
return "String_Node_Str";
}
}

Fixed version (ground truth):
public String getDisplay(){
switch (this) {
case MISSING:
    return "String_Node_Str";
case EXACT:
  return "String_Node_Str";
case CONTAINS:
return "String_Node_Str";
case NOT:
return "String_Node_Str";
case TEXT:
return "String_Node_Str";
case IN:
return "String_Node_Str";
case NOTIN:
return "String_Node_Str";
case BELOW:
return "String_Node_Str";
case ABOVE:
return "String_Node_Str";
case TYPE:
return "String_Node_Str";
case IDENTIFIER:
return "String_Node_Str";
case OFTYPE:
return "String_Node_Str";
default :
return "String_Node_Str";
}
}
Program: 22951
Project: 22951
Buggy source:
private IContextResourceLoader loaderForVersion(){
  if (Utilities.noString(version))   return null;
  if (version.equals("String_Node_Str"))   return new R2ToR4Loader();
  if (version.equals("String_Node_Str"))   return new R3ToR4Loader();
  if (version.equals("String_Node_Str"))   return new R3ToR4Loader();
  return null;
}

Fixed version (ground truth):
private IContextResourceLoader loaderForVersion(){
  if (Utilities.noString(version))   return null;
  if (version.equals("String_Node_Str"))   return new R2ToR4Loader();
  if (version.equals("String_Node_Str"))   return new R2016MayToR4Loader();
  if (version.equals("String_Node_Str"))   return new R3ToR4Loader();
  return null;
}
Program: 22956
Project: 22956
Buggy source:
private ResourceSummary getResourceSummary(String n) throws IOException {
  ResourceSummary rs=new ResourceSummary();
  JsonObject r=r3r4Outcomes.getAsJsonObject(n);
  if (r != null && (new File(Utilities.path(folders.rootDir,"String_Node_Str","String_Node_Str","String_Node_Str",n + "String_Node_Str")).exists())) {
    rs.setMapped(true);
    for (    Entry<String,JsonElement> e : r.entrySet()) {
      JsonObject el=(JsonObject)e.getValue();
      rs.testCount++;
      JsonPrimitive p=el.getAsJsonPrimitive("String_Node_Str");
      if (!p.isBoolean())       rs.executeFailCount++;
      if (el.has("String_Node_Str")) {
        rs.r4ValidationFailCount++;
        rs.r4ValidationErrors=rs.r4ValidationErrors + el.getAsJsonArray("String_Node_Str").size();
      }
      if (el.has("String_Node_Str"))       rs.roundTripFailCount++;
    }
  }
 else   rs.setMapped(false);
  return rs;
}

Fixed version (ground truth):
private ResourceSummary getResourceSummary(String n) throws IOException {
  ResourceSummary rs=new ResourceSummary();
  JsonObject r=r3r4Outcomes.getAsJsonObject(n);
  if (r != null && (new File(Utilities.path(folders.rootDir,"String_Node_Str","String_Node_Str","String_Node_Str",n + "String_Node_Str")).exists())) {
    rs.setMapped(true);
    for (    Entry<String,JsonElement> e : r.entrySet()) {
      JsonObject el=(JsonObject)e.getValue();
      rs.testCount++;
      JsonPrimitive p=el.getAsJsonPrimitive("String_Node_Str");
      if (!p.isBoolean())       rs.executeFailCount++;
      if (el.has("String_Node_Str")) {
        rs.r4ValidationFailCount++;
        if (el.getAsJsonArray("String_Node_Str") != null)         rs.r4ValidationErrors=rs.r4ValidationErrors + el.getAsJsonArray("String_Node_Str").size();
 else         rs.r4ValidationErrors=rs.r4ValidationErrors;
      }
      if (el.has("String_Node_Str"))       rs.roundTripFailCount++;
    }
  }
 else   rs.setMapped(false);
  return rs;
}
Program: 22958
Project: 22958
Buggy source:
private void loadSpecInternals(ImplementationGuide ig,byte[] bs,String version,String canonical,Map<String,byte[]> files) throws Exception {
  SpecMapManager spm=new SpecMapManager(bs,version);
  ImplementationGuideManifestComponent man=ig.getManifest();
  man.setRendering(spm.getWebUrl("String_Node_Str"));
  for (  String s : spm.getPathUrls()) {
    if (s.startsWith(canonical)) {
      String r=s.substring(canonical.length() + 1);
      ImplementationGuideManifestResourceComponent ra=getMatchingResource(r,ig);
      if (ra != null && !ra.hasRelativePath())       ra.setRelativePath(spm.getPath(s));
    }
  }
  for (  String s : spm.getImages()) {
    ig.getManifest().addImage(s);
  }
  for (  String s : spm.getTargets()) {
    if (s.contains("String_Node_Str"))     throw new Error("String_Node_Str");
    ig.getManifest().addPage().setName(s);
  }
  if (spm.getPages().size() > 0)   throw new Error("String_Node_Str");
}

Fixed version (ground truth):
private void loadSpecInternals(ImplementationGuide ig,byte[] bs,String version,String canonical,Map<String,byte[]> files) throws Exception {
  SpecMapManager spm=new SpecMapManager(bs,version);
  ImplementationGuideManifestComponent man=ig.getManifest();
  man.setRendering(spm.getWebUrl("String_Node_Str"));
  for (  String s : spm.getPathUrls()) {
    if (s.startsWith(canonical)) {
      String r=s.equals(canonical) ? "String_Node_Str" : s.substring(canonical.length() + 1);
      ImplementationGuideManifestResourceComponent ra=getMatchingResource(r,ig);
      if (ra != null && !ra.hasRelativePath())       ra.setRelativePath(spm.getPath(s));
    }
  }
  for (  String s : spm.getImages()) {
    ig.getManifest().addImage(s);
  }
  for (  String s : spm.getTargets()) {
    if (s.contains("String_Node_Str"))     throw new Error("String_Node_Str");
    ig.getManifest().addPage().setName(s);
  }
  if (spm.getPages().size() > 0)   throw new Error("String_Node_Str");
}
Program: 22960
Project: 22960
Buggy source:
public static String vsToRef(String url){
  if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   return "String_Node_Str";
}

Fixed version (ground truth):
public static String vsToRef(String url){
  if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   if (url.equals("String_Node_Str"))   return "String_Node_Str";
 else   return null;
}
Program: 22966
Project: 22966
Buggy source:
private void generateIds(List<ElementDefinition> list,String name) throws DefinitionException {
  if (list.isEmpty())   return;
  Map<String,String> idMap=new HashMap<String,String>();
  List<String> idList=new ArrayList<String>();
  List<String> paths=new ArrayList<String>();
  for (  ElementDefinition ed : list) {
    if (!ed.hasPath())     throw new DefinitionException("String_Node_Str" + Integer.toString(list.indexOf(ed)) + "String_Node_Str"+ name);
    int depth=charCount(ed.getPath(),'.');
    String tail=tail(ed.getPath());
    if (depth > paths.size()) {
      String[] pl=ed.getPath().split("String_Node_Str");
      for (int i=paths.size(); i < pl.length - 1; i++)       paths.add(pl[i]);
    }
    while (depth < paths.size() && paths.size() > 0)     paths.remove(paths.size() - 1);
    String t=ed.hasSliceName() ? tail + "String_Node_Str" + checkName(ed.getSliceName()) : tail;
    name=null;
    StringBuilder b=new StringBuilder();
    for (    String s : paths) {
      b.append(s);
      b.append("String_Node_Str");
    }
    b.append(t);
    String bs=b.toString();
    idMap.put(ed.hasId() ? ed.getId() : ed.getPath(),bs);
    ed.setId(bs);
    if (idList.contains(bs))     throw new DefinitionException("String_Node_Str" + bs + "String_Node_Str"+ name);
    idList.add(bs);
    paths.add(t);
    if (ed.hasContentReference()) {
      String s=ed.getContentReference().substring(1);
      if (idMap.containsKey(s))       ed.setContentReference("String_Node_Str" + idMap.get(s));
    }
  }
}

Fixed version (ground truth):
private void generateIds(List<ElementDefinition> list,String name) throws DefinitionException {
  if (list.isEmpty())   return;
  Map<String,String> idMap=new HashMap<String,String>();
  Map<String,String> idList=new HashMap<String,String>();
  for (  ElementDefinition ed : list) {
    List<String> paths=new ArrayList<String>();
    if (!ed.hasPath())     throw new DefinitionException("String_Node_Str" + Integer.toString(list.indexOf(ed)) + "String_Node_Str"+ name);
    String tail=tail(ed.getPath());
    String[] pl=ed.getPath().split("String_Node_Str");
    for (int i=paths.size(); i < pl.length - 1; i++)     paths.add(pl[i]);
    String t=ed.hasSliceName() ? tail + "String_Node_Str" + checkName(ed.getSliceName()) : tail;
    name=null;
    StringBuilder b=new StringBuilder();
    for (    String s : paths) {
      b.append(s);
      b.append("String_Node_Str");
    }
    b.append(t);
    String bs=b.toString();
    idMap.put(ed.hasId() ? ed.getId() : ed.getPath(),bs);
    ed.setId(bs);
    if (idList.containsKey(bs))     throw new DefinitionException("String_Node_Str" + bs + "String_Node_Str"+ idList.get(bs)+ "String_Node_Str"+ ed.getPath()+ "String_Node_Str"+ name);
    idList.put(bs,ed.getPath());
    paths.add(t);
    if (ed.hasContentReference()) {
      String s=ed.getContentReference().substring(1);
      if (idMap.containsKey(s))       ed.setContentReference("String_Node_Str" + idMap.get(s));
    }
  }
}
Program: 22970
Project: 22970
Buggy source:
public void sortDifferential(StructureDefinition base,StructureDefinition diff,String name,List<String> errors) throws FHIRException {
  final List<ElementDefinition> diffList=diff.getDifferential().getElement();
  if (diffList.isEmpty())   return;
  ElementDefinitionHolder edh=new ElementDefinitionHolder(diffList.get(0));
  boolean hasSlicing=false;
  List<String> paths=new ArrayList<String>();
  for (  ElementDefinition elt : diffList) {
    if (elt.hasSlicing() || paths.contains(elt.getPath())) {
      hasSlicing=true;
      break;
    }
    paths.add(elt.getPath());
  }
  if (!hasSlicing) {
    Collections.sort(diffList,new ElementNameCompare());
  }
  int i=1;
  processElementsIntoTree(edh,i,diff.getDifferential().getElement());
  ElementDefinitionComparer cmp=new ElementDefinitionComparer(true,base.getSnapshot().getElement(),"String_Node_Str",0,name);
  sortElements(edh,cmp,errors);
  diffList.clear();
  writeElements(edh,diffList);
}

Fixed version (ground truth):
public void sortDifferential(StructureDefinition base,StructureDefinition diff,String name,List<String> errors) throws FHIRException {
  final List<ElementDefinition> diffList=diff.getDifferential().getElement();
  if (diffList.isEmpty())   return;
  ElementDefinitionHolder edh=null;
  int i=0;
  if (diffList.get(0).getPath().contains("String_Node_Str")) {
    String newPath=diffList.get(0).getPath().split("String_Node_Str")[0];
    ElementDefinition e=new ElementDefinition(new StringType(newPath));
    edh=new ElementDefinitionHolder(e,true);
  }
 else {
    edh=new ElementDefinitionHolder(diffList.get(0));
    i=1;
  }
  boolean hasSlicing=false;
  List<String> paths=new ArrayList<String>();
  for (  ElementDefinition elt : diffList) {
    if (elt.hasSlicing() || paths.contains(elt.getPath())) {
      hasSlicing=true;
      break;
    }
    paths.add(elt.getPath());
  }
  if (!hasSlicing) {
    Collections.sort(diffList,new ElementNameCompare());
  }
  processElementsIntoTree(edh,i,diff.getDifferential().getElement());
  ElementDefinitionComparer cmp=new ElementDefinitionComparer(true,base.getSnapshot().getElement(),"String_Node_Str",0,name);
  sortElements(edh,cmp,errors);
  diffList.clear();
  writeElements(edh,diffList);
}
Program: 22971
Project: 22971
Buggy source:
public ValidationEngine(String src) throws Exception {
  loadDefinitions(src);
}

Fixed version (ground truth):
public ValidationEngine(String src) throws Exception {
  loadDefinitions(src);
  pcm=new PackageCacheManager(true);
}
Program: 22972
Project: 22972
Buggy source:
private PackageInfo loadPackageInfo(String path) throws IOException {
  PackageInfo pi=new PackageInfo(path);
  for (  String f : sorted(new File(path).list())) {
    if (new File(Utilities.path(path,f)).isDirectory()) {
      pi.folders.add(f);
    }
  }
  pi.npm=(JsonObject)new com.google.gson.JsonParser().parse(TextFile.fileToString(Utilities.path(path,"String_Node_Str","String_Node_Str")));
  return pi;
}

Fixed version (ground truth):
private PackageInfo loadPackageInfo(String path) throws IOException {
  PackageInfo pi=new PackageInfo(path);
  for (  String f : sorted(new File(path).list())) {
    if (new File(Utilities.path(path,f)).isDirectory()) {
      pi.folders.add(f);
    }
  }
  pi.npm=(JsonObject)new com.google.gson.JsonParser().parse(TextFile.fileToString(Utilities.path(path,"String_Node_Str","String_Node_Str")));
  pi.cache=new IniFile(Utilities.path(path,"String_Node_Str"));
  return pi;
}
Program: 22975
Project: 22975
Buggy source:
private List<Base> opIs(List<Base> left,List<Base> right){
  List<Base> result=new ArrayList<Base>();
  if (left.size() != 1 || right.size() != 1)   result.add(new BooleanType(false).noExtensions());
 else {
    String tn=convertToString(right);
    if (!(left.get(0) instanceof Element) || ((Element)left.get(0)).isDisallowExtensions())     result.add(new BooleanType(Utilities.capitalize(left.get(0).fhirType()).equals(tn)).noExtensions());
 else     result.add(new BooleanType(left.get(0).hasType(tn)).noExtensions());
  }
  return result;
}

Fixed version (ground truth):
private List<Base> opIs(List<Base> left,List<Base> right){
  List<Base> result=new ArrayList<Base>();
  if (left.size() != 1 || right.size() != 1)   result.add(new BooleanType(false).noExtensions());
 else {
    String tn=convertToString(right);
    if (left.get(0) instanceof org.hl7.fhir.r4.elementmodel.Element)     result.add(new BooleanType(left.get(0).hasType(tn)).noExtensions());
 else     if ((left.get(0) instanceof Element) || ((Element)left.get(0)).isDisallowExtensions())     result.add(new BooleanType(Utilities.capitalize(left.get(0).fhirType()).equals(tn)).noExtensions());
 else     result.add(new BooleanType(left.get(0).hasType(tn)).noExtensions());
  }
  return result;
}