Program: 86623
Project: 86623
Buggy source:
private TilesetAtlas parseTilesets(LeoArray tilesets,boolean loadImages) throws Exception {
  if (tilesets.isEmpty()) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  TilesetAtlas atlas=new TilesetAtlas();
  for (  LeoObject t : tilesets) {
    LeoMap tileset=t.as();
    if (t.hasObject("String_Node_Str")) {
      String source=tileset.getString("String_Node_Str");
      if (source.endsWith("String_Node_Str")) {
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
      }
 else       if (source.endsWith("String_Node_Str")) {
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
      }
 else       if (source.endsWith("String_Node_Str")) {
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
      }
      tileset.putByString("String_Node_Str",LeoObject.valueOf(32));
      tileset.putByString("String_Node_Str",LeoObject.valueOf(32));
    }
    int firstgid=tileset.getInt("String_Node_Str");
    int margin=tileset.getInt("String_Node_Str");
    int spacing=tileset.getInt("String_Node_Str");
    int tilewidth=tileset.getInt("String_Node_Str");
    int tileheight=tileset.getInt("String_Node_Str");
    LeoMap tilesetprops=null;
    LeoObject props=tileset.getByString("String_Node_Str");
    if (LeoObject.isTrue(props) && props.isMap()) {
      tilesetprops=props.as();
    }
    TextureRegion image=null;
    TextureRegion[] images=null;
    if (loadImages) {
      final String imagePath=tileset.getString("String_Node_Str");
      image=TextureUtil.loadImage(imagePath);
      image.flip(false,true);
      image.getTexture().setFilter(TextureFilter.Nearest,TextureFilter.Nearest);
      image.getTexture().setWrap(TextureWrap.MirroredRepeat,TextureWrap.MirroredRepeat);
      images=TextureUtil.toTileSet(image,tilewidth,tileheight,margin,spacing);
    }
    atlas.addTileset(new Tileset(firstgid,images,tilesetprops));
  }
  return atlas;
}

Fixed version (ground truth):
private TilesetAtlas parseTilesets(LeoArray tilesets,boolean loadImages) throws Exception {
  if (tilesets.isEmpty()) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  TilesetAtlas atlas=new TilesetAtlas();
  for (  LeoObject t : tilesets) {
    LeoMap tileset=t.as();
    if (t.hasObject("String_Node_Str")) {
      String source=tileset.getString("String_Node_Str");
      if (source.endsWith("String_Node_Str")) {
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
      }
 else       if (source.endsWith("String_Node_Str")) {
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
      }
 else       if (source.endsWith("String_Node_Str")) {
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
        tileset.putByString("String_Node_Str",LeoString.valueOf("String_Node_Str"));
      }
      tileset.putByString("String_Node_Str",LeoObject.valueOf(32));
      tileset.putByString("String_Node_Str",LeoObject.valueOf(32));
    }
    int firstgid=tileset.getInt("String_Node_Str");
    int margin=tileset.getInt("String_Node_Str");
    int spacing=tileset.getInt("String_Node_Str");
    int tilewidth=tileset.getInt("String_Node_Str");
    int tileheight=tileset.getInt("String_Node_Str");
    LeoMap tilesetprops=null;
    LeoObject props=tileset.getByString("String_Node_Str");
    if (LeoObject.isTrue(props) && props.isMap()) {
      tilesetprops=props.as();
    }
    TextureRegion image=null;
    TextureRegion[] images=null;
    if (loadImages) {
      String imagePath=tileset.getString("String_Node_Str");
      if (!new File(imagePath).exists()) {
        imagePath="String_Node_Str" + imagePath.substring(imagePath.lastIndexOf("String_Node_Str"),imagePath.length());
      }
      image=TextureUtil.loadImage(imagePath);
      image.flip(false,true);
      image.getTexture().setFilter(TextureFilter.Nearest,TextureFilter.Nearest);
      image.getTexture().setWrap(TextureWrap.MirroredRepeat,TextureWrap.MirroredRepeat);
      images=TextureUtil.toTileSet(image,tilewidth,tileheight,margin,spacing);
    }
    atlas.addTileset(new Tileset(firstgid,images,tilesetprops));
  }
  return atlas;
}