nus-yam/ex-repair huggingface dataset:
Program: 27817
Project: 27817
Buggy source:
@Override public Optional<CommandMapping> register(Object plugin,CommandCallable callable,List<String> aliases,Function<List<String>,List<String>> callback){
  checkNotNull(plugin);
  Optional<PluginContainer> containerOptional=this.pluginManager.fromInstance(plugin);
  if (!containerOptional.isPresent()) {
    throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
  }
  PluginContainer container=containerOptional.get();
synchronized (this.lock) {
    List<String> aliasesWithPrefix=new ArrayList<String>(aliases.size() * 2);
    for (    String alias : aliases) {
      aliasesWithPrefix.add(alias);
      aliasesWithPrefix.add(container.getId() + "String_Node_Str" + alias);
    }
    Optional<CommandMapping> mapping=this.dispatcher.register(callable,aliasesWithPrefix,callback);
    if (mapping.isPresent()) {
      this.owners.put(container,mapping.get());
    }
    return mapping;
  }
}

Fixed version (ground truth):
@Override public Optional<CommandMapping> register(Object plugin,CommandCallable callable,List<String> aliases,Function<List<String>,List<String>> callback){
  checkNotNull(plugin,"String_Node_Str");
  Optional<PluginContainer> containerOptional=this.pluginManager.fromInstance(plugin);
  if (!containerOptional.isPresent()) {
    throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
  }
  PluginContainer container=containerOptional.get();
synchronized (this.lock) {
    List<String> aliasesWithPrefix=new ArrayList<String>(aliases.size() * 2);
    for (    String alias : aliases) {
      aliasesWithPrefix.add(alias);
      aliasesWithPrefix.add(container.getId() + "String_Node_Str" + alias);
    }
    Optional<CommandMapping> mapping=this.dispatcher.register(callable,aliasesWithPrefix,callback);
    if (mapping.isPresent()) {
      this.owners.put(container,mapping.get());
    }
    return mapping;
  }
}
Program: 27818
Project: 27818
Buggy source:
/** 
 * Creates a new subject data instance, using the provided service to request instances of permission subjects.
 * @param service The service to request subjects from
 */
public MemorySubjectData(PermissionService service){
  checkNotNull(service);
  this.service=service;
}

Fixed version (ground truth):
/** 
 * Creates a new subject data instance, using the provided service to request instances of permission subjects.
 * @param service The service to request subjects from
 */
public MemorySubjectData(PermissionService service){
  checkNotNull(service,"String_Node_Str");
  this.service=service;
}
Program: 27819
Project: 27819
Buggy source:
/** 
 * Deserializes all data existing in this source into a single   {@link DataContainer}. This can be used for passing around data containers without knowing the contents.
 * @return A data container containing all data from this source
 */
Optional<DataContainer> deserialize();

Fixed version (ground truth):
/** 
 * Deserializes all data existing in this source into a single  {@link DataContainer}. This can be used for passing around data containers without knowing the contents.
 * @return A data container containing all data from this source
 */
Optional<DataContainer> deserialize();
Program: 27820
Project: 27820
Buggy source:
/** 
 * Attempts to retrieve the   {@link DataSerializableBuilder} for the desired {@link DataSerializable} class.<p>Builders may not always exist for a given  {@link DataSerializable}, nor is it guaranteed that a provided builder will function with all   {@link DataContainer}s.</p>
 * @param clazz The class of the data serializable
 * @param < T > The type of data serializable
 * @return The builder, if available
 */
<T extends DataSerializable>Optional<DataSerializableBuilder<T>> getBuilder(Class<T> clazz);

Fixed version (ground truth):
/** 
 * Attempts to retrieve the   {@link DataSerializableBuilder} for the desired{@link DataSerializable} class.<p>Builders may not always exist for a given  {@link DataSerializable}, nor is it guaranteed that a provided builder will function with all  {@link DataContainer}s.</p>
 * @param clazz The class of the data serializable
 * @param < T > The type of data serializable
 * @return The builder, if available
 */
<T extends DataSerializable>Optional<DataSerializableBuilder<T>> getBuilder(Class<T> clazz);
Program: 27821
Project: 27821
Buggy source:
@Override public boolean call(CommandSource source,String arguments,List<String> parents) throws CommandException {
  String[] parts=arguments.split("String_Node_Str",2);
  Optional<CommandMapping> mapping=get(parts[0]);
  if (mapping.isPresent()) {
    List<String> passedParents=new ArrayList<String>(parents.size() + 1);
    passedParents.addAll(parents);
    passedParents.add(parts[0]);
    mapping.get().getCallable().call(source,parts.length > 1 ? parts[1] : "String_Node_Str",Collections.unmodifiableList(passedParents));
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
@Override public boolean call(CommandSource source,String arguments,List<String> parents) throws CommandException {
  String[] parts=arguments.split("String_Node_Str",2);
  Optional<CommandMapping> mapping=get(parts[0]);
  if (mapping.isPresent()) {
    List<String> passedParents=new ArrayList<String>(parents.size() + 1);
    passedParents.addAll(parents);
    passedParents.add(parts[0]);
    try {
      mapping.get().getCallable().call(source,parts.length > 1 ? parts[1] : "String_Node_Str",Collections.unmodifiableList(passedParents));
    }
 catch (    CommandException c) {
      throw c;
    }
catch (    Throwable t) {
      throw new InvocationCommandException(t);
    }
    return true;
  }
 else {
    return false;
  }
}
Program: 27822
Project: 27822
Buggy source:
@Override public List<String> getSuggestions(CommandSource source,String arguments) throws CommandException {
  String[] parts=arguments.split("String_Node_Str",2);
  List<String> suggestions=new ArrayList<String>();
  if (parts.length == 1) {
    String incompleteCommand=parts[0].toLowerCase();
synchronized (this) {
      for (      CommandMapping mapping : this.commands.values()) {
        for (        String alias : mapping.getAllAliases()) {
          if (alias.toLowerCase().startsWith(incompleteCommand)) {
            suggestions.add(alias);
          }
        }
      }
    }
  }
 else {
    Optional<CommandMapping> mapping=get(parts[0]);
    if (mapping.isPresent()) {
      mapping.get().getCallable().getSuggestions(source,parts.length > 1 ? parts[1] : "String_Node_Str");
    }
  }
  return Collections.unmodifiableList(suggestions);
}

Fixed version (ground truth):
@Override public List<String> getSuggestions(CommandSource source,String arguments) throws CommandException {
  String[] parts=arguments.split("String_Node_Str",2);
  List<String> suggestions=new ArrayList<String>();
  if (parts.length == 1) {
    String incompleteCommand=parts[0].toLowerCase();
synchronized (this) {
      for (      CommandMapping mapping : this.commands.values()) {
        for (        String alias : mapping.getAllAliases()) {
          if (alias.toLowerCase().startsWith(incompleteCommand)) {
            suggestions.add(alias);
          }
        }
      }
    }
  }
 else {
    Optional<CommandMapping> mapping=get(parts[0]);
    if (mapping.isPresent()) {
      suggestions.addAll(mapping.get().getCallable().getSuggestions(source,parts.length > 1 ? parts[1] : "String_Node_Str"));
    }
  }
  return Collections.unmodifiableList(suggestions);
}
Program: 27823
Project: 27823
Buggy source:
@Override public List<String> getSuggestions(CommandSource source,String arguments) throws CommandException {
  String[] parts=arguments.split("String_Node_Str",2);
  List<String> suggestions=new ArrayList<String>();
  if (parts.length == 1) {
    String incompleteCommand=parts[0].toLowerCase();
synchronized (this) {
      for (      CommandMapping mapping : this.commands.values()) {
        for (        String alias : mapping.getAllAliases()) {
          if (alias.toLowerCase().startsWith(incompleteCommand)) {
            suggestions.add(alias);
          }
        }
      }
    }
  }
 else {
    Optional<CommandMapping> mapping=get(parts[0]);
    if (mapping.isPresent()) {
      suggestions.addAll(mapping.get().getCallable().getSuggestions(source,parts.length > 1 ? parts[1] : "String_Node_Str"));
    }
  }
  return Collections.unmodifiableList(suggestions);
}

Fixed version (ground truth):
@Override public List<String> getSuggestions(CommandSource source,String arguments) throws CommandException {
  String[] parts=arguments.split("String_Node_Str",2);
  List<String> suggestions=new ArrayList<String>();
  if (parts.length == 1) {
    String incompleteCommand=parts[0].toLowerCase();
synchronized (this) {
      for (      CommandMapping mapping : this.commands.values()) {
        for (        String alias : mapping.getAllAliases()) {
          if (alias.toLowerCase().startsWith(incompleteCommand)) {
            suggestions.add(alias);
          }
        }
      }
    }
  }
 else {
    Optional<CommandMapping> mapping=get(parts[0]);
    if (mapping.isPresent()) {
      List<String> ret=mapping.get().getCallable().getSuggestions(source,parts.length > 1 ? parts[1] : "String_Node_Str");
      if (ret == null) {
        suggestions.addAll(ret);
      }
    }
  }
  return Collections.unmodifiableList(suggestions);
}
Program: 27824
Project: 27824
Buggy source:
@Override public String getShortDescription(CommandSource source){
  return shortDescription;
}

Fixed version (ground truth):
@Override public String getShortDescription(CommandSource source){
  return this.shortDescription;
}
Program: 27825
Project: 27825
Buggy source:
@Override public Text getHelp(CommandSource source){
  return help;
}

Fixed version (ground truth):
@Override public Text getHelp(CommandSource source){
  return this.help;
}
Program: 27826
Project: 27826
Buggy source:
/** 
 * Retrieves the RecipeRegistry for this GameRegistry
 * @return The recipe registry
 */
RecipeRegistry getRecipeRegistry();

Fixed version (ground truth):
/** 
 * Retrieves the RecipeRegistry for this GameRegistry.
 * @return The recipe registry
 */
RecipeRegistry getRecipeRegistry();
Program: 27827
Project: 27827
Buggy source:
/** 
 * Retrieves the GameDictionary (item dictionary) for this GameRegistry
 * @return The item dictionary
 */
GameDictionary getGameDictionary();

Fixed version (ground truth):
/** 
 * Retrieves the GameDictionary (item dictionary) for this GameRegistry.
 * @return The item dictionary
 */
GameDictionary getGameDictionary();
Program: 27828
Project: 27828
Buggy source:
/** 
 * Gets the human-readable name of this object
 * @return The name of this object
 */
Translatable getName();

Fixed version (ground truth):
/** 
 * Gets the human-readable name of this object.
 * @return The name of this object
 */
Translatable getName();
Program: 27829
Project: 27829
Buggy source:
/** 
 * Get whether this entity can equip the supplied equipment in its slot of the specified type (eg. whether calling   {@link #equip} with the specifiedslot type and item will succeed)
 * @param type The type of equipment slot to query
 * @param equipment The equipment to check for
 */
boolean canEquip(EquipmentType type,@Nullable ItemStack equipment);

Fixed version (ground truth):
/** 
 * Get whether this entity can equip the supplied equipment in its slot of the specified type (eg. whether calling   {@link #equip} with the specifiedslot type and item will succeed)
 * @param type The type of equipment slot to query
 * @param equipment The equipment to check for
 * @return true if can equip the supplied equipment
 */
boolean canEquip(EquipmentType type,@Nullable ItemStack equipment);
Program: 27830
Project: 27830
Buggy source:
/** 
 * No subclasses for you!
 */
private Inventories(){
}

Fixed version (ground truth):
/** 
 * No subclasses for you.
 */
private Inventories(){
}
Program: 27831
Project: 27831
Buggy source:
/** 
 * Get a new custom inventory builder
 */
public static CustomInventoryBuilder customInventoryBuilder(){
  return Inventories.factory.builder();
}

Fixed version (ground truth):
/** 
 * Get a new custom inventory builder.
 * @return new CustomInventoryBuilder
 */
public static CustomInventoryBuilder customInventoryBuilder(){
  return Inventories.factory.builder();
}
Program: 27832
Project: 27832
Buggy source:
@Override public TileInventory<Lockable> getInventory();

Fixed version (ground truth):
@Override TileInventory<Lockable> getInventory();
Program: 27833
Project: 27833
Buggy source:
/** 
 * Creates a new   {@link BrewingStandBrewEvent}.
 * @param game The game instance for this {@link GameEvent}
 * @param brewingStand The {@link BrewingStand} involved in this event
 * @param sourceItems The {@link ItemStack}s being modified
 * @param fuelSource The {@link ItemStack} used as the reagent to modify the source items
 * @param brewedItems The {@link ItemStack}s produced as a result
 * @return A new instance of the event
 */
public static BrewingStandBrewEvent createBrewingStandBrewEvent(Game game,BrewingStand brewingStand,List<ItemStack> sourceItems,ItemStack fuelSource,List<ItemStack> brewedItems){
  Map<String,Object> values=Maps.newHashMap();
  values.put("String_Node_Str",game);
  values.put("String_Node_Str",brewingStand);
  values.put("String_Node_Str",brewingStand);
  values.put("String_Node_Str",sourceItems);
  values.put("String_Node_Str",fuelSource);
  values.put("String_Node_Str",brewedItems);
  return createEvent(BrewingStandBrewEvent.class,values);
}

Fixed version (ground truth):
/** 
 * Creates a new   {@link BrewingStandBrewEvent}.
 * @param game The game instance for this {@link GameEvent}
 * @param brewingStand The {@link BrewingStand} involved in this event
 * @param sourceItems The {@link ItemStack}s being modified
 * @param fuelSource The {@link ItemStack} used as the reagent to modify the source items
 * @param brewedItems The {@link ItemStack}s produced as a result
 * @param cause The cause
 * @param inventory The inventory of the brewing stand
 * @param blockLoc The location of the brewing stand
 * @return A new instance of the event
 */
public static BrewingStandBrewEvent createBrewingStandBrewEvent(Game game,BrewingStand brewingStand,List<ItemStack> sourceItems,ItemStack fuelSource,List<ItemStack> brewedItems,Cause cause,TileInventory<Lockable> inventory,BlockLoc blockLoc){
  Map<String,Object> values=Maps.newHashMap();
  values.put("String_Node_Str",game);
  values.put("String_Node_Str",brewingStand);
  values.put("String_Node_Str",brewingStand);
  values.put("String_Node_Str",sourceItems);
  values.put("String_Node_Str",fuelSource);
  values.put("String_Node_Str",brewedItems);
  values.put("String_Node_Str",brewedItems);
  values.put("String_Node_Str",inventory);
  values.put("String_Node_Str",Optional.fromNullable(cause));
  values.put("String_Node_Str",blockLoc);
  return createEvent(BrewingStandBrewEvent.class,values);
}
Program: 27834
Project: 27834
Buggy source:
/** 
 * Creates a new   {@link FurnaceConsumeFuelEvent}.
 * @param game The game instance for this {@link GameEvent}
 * @param furnace The {@link Furnace} involved in this event
 * @param burnedItem The {@link ItemStack} consumed for fuel
 * @param remainingFuel The {@link ItemStack} representing the remaining fuel, can be null
 * @return A new instance of the event
 */
public static FurnaceConsumeFuelEvent createFurnaceConsumeFuelEvent(Game game,Furnace furnace,ItemStack burnedItem,ItemStack remainingFuel){
  Map<String,Object> values=Maps.newHashMap();
  values.put("String_Node_Str",game);
  values.put("String_Node_Str",furnace);
  values.put("String_Node_Str",burnedItem);
  values.put("String_Node_Str",Optional.fromNullable(remainingFuel));
  return createEvent(FurnaceConsumeFuelEvent.class,values);
}

Fixed version (ground truth):
/** 
 * Creates a new   {@link FurnaceConsumeFuelEvent}.
 * @param game The game instance for this {@link GameEvent}
 * @param furnace The {@link Furnace} involved in this event
 * @param burnedItem The {@link ItemStack} consumed for fuel
 * @param remainingFuel The {@link ItemStack} representing the remaining fuel, can be null
 * @param cause The cause
 * @param inventory The inventory of the furnace
 * @param loc The location of the furnace
 * @return A new instance of the event
 */
public static FurnaceConsumeFuelEvent createFurnaceConsumeFuelEvent(Game game,Furnace furnace,ItemStack burnedItem,ItemStack remainingFuel,Cause cause,TileInventory<Lockable> inventory,BlockLoc loc){
  Map<String,Object> values=Maps.newHashMap();
  values.put("String_Node_Str",game);
  values.put("String_Node_Str",furnace);
  values.put("String_Node_Str",burnedItem);
  values.put("String_Node_Str",Optional.fromNullable(remainingFuel));
  values.put("String_Node_Str",Optional.fromNullable(remainingFuel));
  values.put("String_Node_Str",inventory);
  values.put("String_Node_Str",Optional.fromNullable(cause));
  values.put("String_Node_Str",loc);
  return createEvent(FurnaceConsumeFuelEvent.class,values);
}
Program: 27835
Project: 27835
Buggy source:
/** 
 * Creates a new   {@link FurnaceSmeltItemEvent}.
 * @param game The game instance for this {@link GameEvent}
 * @param furnace The {@link Furnace} involved in this event
 * @param cookedItem The {@link ItemStack} resulting from smelting the source item
 * @param sourceItem The {@link ItemStack} smelted to create the cooked item
 * @return A new instance of the event
 */
public static FurnaceSmeltItemEvent createFurnaceSmeltItemEvent(Game game,Furnace furnace,ItemStack cookedItem,ItemStack sourceItem){
  Map<String,Object> values=Maps.newHashMap();
  values.put("String_Node_Str",game);
  values.put("String_Node_Str",furnace);
  values.put("String_Node_Str",cookedItem);
  values.put("String_Node_Str",sourceItem);
  return createEvent(FurnaceSmeltItemEvent.class,values);
}

Fixed version (ground truth):
/** 
 * Creates a new   {@link FurnaceSmeltItemEvent}.
 * @param game The game instance for this {@link GameEvent}
 * @param furnace The {@link Furnace} involved in this event
 * @param cookedItem The {@link ItemStack} resulting from smelting the source item
 * @param sourceItem The {@link ItemStack} smelted to create the cooked item
 * @param cause The cause
 * @param inventory The inventory of the furnace
 * @param loc The location of the furnace
 * @return A new instance of the event
 */
public static FurnaceSmeltItemEvent createFurnaceSmeltItemEvent(Game game,Furnace furnace,ItemStack cookedItem,ItemStack sourceItem,Cause cause,TileInventory<Lockable> inventory,BlockLoc loc){
  Map<String,Object> values=Maps.newHashMap();
  values.put("String_Node_Str",game);
  values.put("String_Node_Str",furnace);
  values.put("String_Node_Str",cookedItem);
  values.put("String_Node_Str",sourceItem);
  values.put("String_Node_Str",Optional.fromNullable(cookedItem));
  values.put("String_Node_Str",Optional.fromNullable(cause));
  values.put("String_Node_Str",inventory);
  values.put("String_Node_Str",loc);
  return createEvent(FurnaceSmeltItemEvent.class,values);
}
Program: 27836
Project: 27836
Buggy source:
/** 
 * Convenience method to avoid null-checking. Returns 0 if <em>value</em> is null.
 */
protected int hashCodeOf(Object value){
  return value != null ? value.hashCode() : 0;
}

Fixed version (ground truth):
/** 
 * Convenience method to avoid null-checking. Returns 0 if <em>value</em> is null.
 * @param value The value to get the hashcode of
 * @return The hashcode value
 */
protected int hashCodeOf(Object value){
  return value != null ? value.hashCode() : 0;
}
Program: 27837
Project: 27837
Buggy source:
/** 
 * Get whether the specified entity can interact with this object.
 * @param entity the Entity wishing to interact with this Inventory
 * @return true if the Entity is able to interact with this Inventory
 */
public boolean canInteractWith(T entity);

Fixed version (ground truth):
/** 
 * Get whether the specified entity can interact with this object.
 * @param entity the Entity wishing to interact with this Inventory
 * @return true if the Entity is able to interact with this Inventory
 */
boolean canInteractWith(T entity);
Program: 27838
Project: 27838
Buggy source:
/** 
 * Get the default maximum quantity for   {@link ItemStack}s of this item.
 * @return Max stack quantity
 */
int getMaxStackQuantity();

Fixed version (ground truth):
/** 
 * Get the default maximum quantity for  {@link org.spongepowered.api.item.inventory.ItemStack}s of this item.
 * @return Max stack quantity
 */
int getMaxStackQuantity();
Program: 27839
Project: 27839
Buggy source:
/** 
 * Sends the message(s) with the specified   {@link ChatType} on the client.
 * @param type     The chat type to send the messages to
 * @param messages The message(s) to send
 */
void sendMessage(ChatType type,Iterable<Message> messages);

Fixed version (ground truth):
/** 
 * Sends the message(s) with the specified   {@link ChatType} on the client.
 * @param type The chat type to send the messages to
 * @param messages The message(s) to send
 */
void sendMessage(ChatType type,Iterable<Message> messages);
Program: 27840
Project: 27840
Buggy source:
/** 
 * Launches a   {@link Projectile} from this projectile source.
 * @param projectileClass The class of the projectile
 * @param velocity        The velocity to launch the projectile
 * @param < T >             The Type of Projectile
 * @return The projectile instance that was launched
 */
<T extends Projectile>T launchProjectile(Class<T> projectileClass,Vector3f velocity);

Fixed version (ground truth):
/** 
 * Launches a   {@link Projectile} from this projectile source.
 * @param projectileClass The class of the projectile
 * @param velocity The velocity to launch the projectile
 * @param < T > The Type of Projectile
 * @return The projectile instance that was launched
 */
<T extends Projectile>T launchProjectile(Class<T> projectileClass,Vector3f velocity);
Program: 27841
Project: 27841
Buggy source:
/** 
 * Retrieves the result for this event.
 * @return The result
 */
ItemStack getResult();

Fixed version (ground truth):
/** 
 * Retrieves the result for this event.
 * @return The result
 */
Optional<ItemStack> getResult();
Program: 27842
Project: 27842
Buggy source:
/** 
 * Gets a   {@link Particle} by id.
 * @param id The particle id
 * @return The corresponding particle, if available
 */
Optional<Particle> getParticle(String id);

Fixed version (ground truth):
/** 
 * Gets a   {@link Particle} by id.
 * @param id The particle id
 * @return The corresponding particle or Optional.absent() if not found
 */
Optional<Particle> getParticle(String id);
Program: 27843
Project: 27843
Buggy source:
/** 
 * Gets a   {@link BiomeType} by its identifier.
 * @param id The id to look up
 * @return The biome or null if not found
 */
Optional<BiomeType> getBiome(String id);

Fixed version (ground truth):
/** 
 * Gets a   {@link BiomeType} by its identifier.
 * @param id The id to look up
 * @return The biome or Optional.absent() if not found
 */
Optional<BiomeType> getBiome(String id);
Program: 27844
Project: 27844
Buggy source:
/** 
 * Gets the villager   {@link Career} with the specified id.
 * @param id The id of the career to return
 * @return The career with the given id, if available
 */
Optional<Career> getCareer(String id);

Fixed version (ground truth):
/** 
 * Gets the villager   {@link Career} with the specified id.
 * @param id The id of the career to return
 * @return The career with the given id or Optional.absent() if not found
 */
Optional<Career> getCareer(String id);
Program: 27845
Project: 27845
Buggy source:
/** 
 * Gets the villager   {@link Profession} with the specified id.
 * @param id The id of the profession to return
 * @return The profession with the given id, if available
 */
Optional<Profession> getProfession(String id);

Fixed version (ground truth):
/** 
 * Gets the villager   {@link Profession} with the specified id.
 * @param id The id of the profession to return
 * @return The profession with the given id or Optional.absent() if not found
 */
Optional<Profession> getProfession(String id);
Program: 27846
Project: 27846
Buggy source:
/** 
 * Gets a   {@link Player} by their nameThis only works for online players. <b>Note: Do not use names for persistent storage, the Zidane of today may not be the Zidane of yesterday.</b>
 * @param name The name to get the player from
 * @return {@link Player} if available
 */
Optional<Player> getPlayer(String name);

Fixed version (ground truth):
/** 
 * Gets a   {@link Player} by their nameThis only works for online players. <b>Note: Do not use names for persistent storage, the Zidane of today may not be the Zidane of yesterday.</b>
 * @param name The name to get the player from
 * @return {@link Player} or Optional.absent() if not found
 */
Optional<Player> getPlayer(String name);
Program: 27847
Project: 27847
Buggy source:
/** 
 * Gets a loaded   {@link World} by name, if any
 * @param worldName Name to lookup
 * @return The world or null if not found
 */
Optional<World> getWorld(String worldName);

Fixed version (ground truth):
/** 
 * Gets a loaded   {@link World} by name, if any.
 * @param worldName Name to lookup
 * @return The world or Optional.absent() if not found
 */
Optional<World> getWorld(String worldName);
Program: 27848
Project: 27848
Buggy source:
/** 
 * Gets the bound   {@link InetSocketAddress} this server is accepting connections from.
 * @return The address
 */
Optional<InetSocketAddress> getBoundAddress();

Fixed version (ground truth):
/** 
 * Gets the bound   {@link InetSocketAddress} this server is accepting connections from.
 * @return The address or Optional.absent() if not found
 */
Optional<InetSocketAddress> getBoundAddress();
Program: 27849
Project: 27849
Buggy source:
/** 
 * Get the value representation for the given name.
 * @param name A name that represents a valid value for this property
 * @return A valid value for this property
 */
Optional<T> getValueForName(String name);

Fixed version (ground truth):
/** 
 * Get the value representation for the given name.
 * @param name A name that represents a valid value for this property
 * @return A valid value for this property or Optional.absent() if not found
 */
Optional<T> getValueForName(String name);
Program: 27850
Project: 27850
Buggy source:
/** 
 * Get the current value of a given property.
 * @param name Property to get value of
 * @return Current value of the property
 */
Optional<? extends Comparable<?>> getPropertyValue(String name);

Fixed version (ground truth):
/** 
 * Get the current value of a given property.
 * @param name Property to get value of
 * @return Current value of the property or Optional.absent() if not found
 */
Optional<? extends Comparable<?>> getPropertyValue(String name);
Program: 27851
Project: 27851
Buggy source:
/** 
 * Get a property from its name.
 * @param name The name of the property
 * @return The property with the given name
 */
Optional<BlockProperty<?>> getPropertyByName(String name);

Fixed version (ground truth):
/** 
 * Get a property from its name.
 * @param name The name of the property
 * @return The property with the given name or Optional.absent() if not found
 */
Optional<BlockProperty<?>> getPropertyByName(String name);
Program: 27852
Project: 27852
Buggy source:
/** 
 * Gets the   {@link BlockLoc} that the player has clicked, if available.
 * @return The block
 */
Optional<BlockLoc> getBlock();

Fixed version (ground truth):
/** 
 * Gets the   {@link BlockLoc} that the player has clicked.
 * @return The block
 */
BlockLoc getBlock();
Program: 27853
Project: 27853
Buggy source:
/** 
 * Returns a list of all currently scheduled tasks owned by a certain plugin.
 * @param plugin The plugin to return tasks created by
 * @return A list of scheduled tasks
 */
Collection<Task> getScheduledTasks(Object plugin);

Fixed version (ground truth):
/** 
 * Returns a collection of all currently scheduled tasks owned by a certain plugin.
 * @param plugin The plugin to return tasks created by
 * @return A collection of scheduled tasks
 */
Collection<Task> getScheduledTasks(Object plugin);
Program: 27854
Project: 27854
Buggy source:
/** 
 * Constructs a new exception with the specified cause and a detail message of.
 * @param cause The cause
 */
public CommandException(@Nullable Throwable cause){
  super(cause);
}

Fixed version (ground truth):
/** 
 * Constructs a new exception with the specified cause.
 * @param cause The cause
 */
public CommandException(@Nullable Throwable cause){
  super(cause);
}
Program: 27855
Project: 27855
Buggy source:
/** 
 * Get the block that will replace the block.
 */
BlockSnapshot getReplacementBlock();

Fixed version (ground truth):
/** 
 * Get the block that will replace the block.
 * @return The block that will replace
 */
BlockSnapshot getReplacementBlock();
Program: 27856
Project: 27856
Buggy source:
/** 
 * Sends the formatted text message(s) to source when possible. If text formatting is not supported in the implementation it will be displayed as plain text.
 * @param messages The message(s)
 */
void sendMessage(Iterable<Message<?>>... messages);

Fixed version (ground truth):
/** 
 * Sends the formatted text message(s) to source when possible. If text formatting is not supported in the implementation it will be displayed as plain text.
 * @param messages The messages
 */
void sendMessage(Iterable<Message<?>>... messages);
Program: 27857
Project: 27857
Buggy source:
/** 
 * Gets the   {@link Player}s currently online
 * @return a {@link Collection} of online players
 */
Collection<Player> getOnlinePlayers();

Fixed version (ground truth):
/** 
 * Gets the   {@link Player}s currently online
 * @return A {@link Collection} of online players
 */
Collection<Player> getOnlinePlayers();
Program: 27858
Project: 27858
Buggy source:
/** 
 * Creates a new clean   {@link Title} configuration that will reset thecurrently displayed title before displaying the new one.
 * @return A new clean {@link Title} configuration.
 */
Title createTitle();

Fixed version (ground truth):
/** 
 * Creates a new clean   {@link Title} configuration that will reset thecurrently displayed title before displaying the new one.
 * @return A new clean {@link Title} configuration
 */
Title createTitle();
Program: 27859
Project: 27859
Buggy source:
/** 
 * Creates a new empty   {@link Title} configuration that will just updatethe currently displayed title on the client.
 * @return A new empty {@link Title} configuration.
 */
Title updateTitle();

Fixed version (ground truth):
/** 
 * Creates a new empty   {@link Title} configuration that will just updatethe currently displayed title on the client.
 * @return A new empty {@link Title} configuration
 */
Title updateTitle();
Program: 27860
Project: 27860
Buggy source:
/** 
 * Gets the time it takes to dig this block the specified item in ticks.
 * @param itemStack The item to pretend-dig with
 * @return The time in ticks.
 */
int getDigTimeWith(ItemStack itemStack);

Fixed version (ground truth):
/** 
 * Gets the time it takes to dig this block the specified item in ticks.
 * @param itemStack The item to pretend-dig with
 * @return The time in ticks
 */
int getDigTimeWith(ItemStack itemStack);
Program: 27861
Project: 27861
Buggy source:
/** 
 * Gets the time it takes to dig this block with a fist in ticks.
 * @return The time in ticks.
 */
int getDigTime();

Fixed version (ground truth):
/** 
 * Gets the time it takes to dig this block with a fist in ticks.
 * @return The time in ticks
 */
int getDigTime();
Program: 27862
Project: 27862
Buggy source:
/** 
 * Gets the rate at which unoccupied boats decelerate.
 * @return The unoccupied deceleration rate.
 */
double getUnoccupiedDeceleration();

Fixed version (ground truth):
/** 
 * Gets the rate at which unoccupied boats decelerate.
 * @return The unoccupied deceleration rate
 */
double getUnoccupiedDeceleration();
Program: 27863
Project: 27863
Buggy source:
/** 
 * Gets the rate at which occupied boats decelerate.
 * @return The occupied deceleration rate.
 */
double getOccupiedDeceleration();

Fixed version (ground truth):
/** 
 * Gets the rate at which occupied boats decelerate.
 * @return The occupied deceleration rate
 */
double getOccupiedDeceleration();
Program: 27864
Project: 27864
Buggy source:
/** 
 * Gets whether or not the boat is able to move freely on land.
 * @return If the boat can move on land.
 */
boolean getMoveOnLand();

Fixed version (ground truth):
/** 
 * Gets whether or not the boat is able to move freely on land.
 * @return If the boat can move on land
 */
boolean getMoveOnLand();
Program: 27865
Project: 27865
Buggy source:
/** 
 * Gets whether this boat is currently in water.
 * @return If the boat is in water.
 */
boolean isInWater();

Fixed version (ground truth):
/** 
 * Gets whether this boat is currently in water.
 * @return If the boat is in water
 */
boolean isInWater();
Program: 27866
Project: 27866
Buggy source:
/** 
 * Sets the rate at which unoccupied boats decelerate.
 * @param unoccupiedDeceleration The new unoccupied deceleration rate.
 */
void setUnoccupiedDeceleration(double unoccupiedDeceleration);

Fixed version (ground truth):
/** 
 * Sets the rate at which unoccupied boats decelerate.
 * @param unoccupiedDeceleration The new unoccupied deceleration rate
 */
void setUnoccupiedDeceleration(double unoccupiedDeceleration);
Program: 27867
Project: 27867
Buggy source:
/** 
 * Gets whether or not the boat is able to move freely on land.
 * @param moveOnLand If the boat can move on land.
 */
void setMoveOnLand(boolean moveOnLand);

Fixed version (ground truth):
/** 
 * Gets whether or not the boat is able to move freely on land.
 * @param moveOnLand If the boat can move on land
 */
void setMoveOnLand(boolean moveOnLand);
Program: 27868
Project: 27868
Buggy source:
/** 
 * Sets the rate at which occupied boats decelerate.
 * @param occupiedDeceleration The new occupied deceleration rate.
 */
void setOccupiedDeceleration(double occupiedDeceleration);

Fixed version (ground truth):
/** 
 * Sets the rate at which occupied boats decelerate.
 * @param occupiedDeceleration The new occupied deceleration rate
 */
void setOccupiedDeceleration(double occupiedDeceleration);
Program: 27869
Project: 27869
Buggy source:
/** 
 * Gets the maximum speed that this boat is allowed to travel at. Default value is 0.4
 * @return The maximum speed.
 */
double getMaxSpeed();

Fixed version (ground truth):
/** 
 * Gets the maximum speed that this boat is allowed to travel at. Default value is 0.4
 * @return The maximum speed
 */
double getMaxSpeed();
Program: 27870
Project: 27870
Buggy source:
/** 
 * Sets the maximum speed that this boat is allowed to travel at. Default value is 0.4
 * @param maxSpeed The new max speed.
 */
void setMaxSpeed(double maxSpeed);

Fixed version (ground truth):
/** 
 * Sets the maximum speed that this boat is allowed to travel at. Default value is 0.4
 * @param maxSpeed The new max speed
 */
void setMaxSpeed(double maxSpeed);
Program: 27871
Project: 27871
Buggy source:
/** 
 * Gets the rotation as a EulerDirection.
 * @return rotation The rotation as a EulerDirection
 */
EulerDirection getRotation();

Fixed version (ground truth):
/** 
 * Gets the rotation as a EulerDirection.
 * @return The rotation as a EulerDirection
 */
EulerDirection getRotation();
Program: 27872
Project: 27872
Buggy source:
/** 
 * Gets the rotation as a vector. This does not support the roll component of the entity's rotation.
 * @return rotation A possibly, but not necessarily, unit vector
 */
Vector3f getVectorRotation();

Fixed version (ground truth):
/** 
 * Gets the rotation as a vector. This does not support the roll component of the entity's rotation.
 * @return A possibly, but not necessarily, unit vector
 */
Vector3f getVectorRotation();
Program: 27873
Project: 27873
Buggy source:
/** 
 * Mount the entity provided.
 * @param entity The entity to mount.
 */
void mount(Entity entity);

Fixed version (ground truth):
/** 
 * Mount the entity provided.
 * @param entity The entity to mount
 */
void mount(Entity entity);
Program: 27874
Project: 27874
Buggy source:
/** 
 * Gets the entity that is riding this entity.
 * @return The riding entity, if it exists.
 */
Optional<Entity> getRider();

Fixed version (ground truth):
/** 
 * Gets the entity that is riding this entity.
 * @return The riding entity, if it exists
 */
Optional<Entity> getRider();
Program: 27875
Project: 27875
Buggy source:
/** 
 * Gets the position.
 * @return position The position
 */
Vector3d getPosition();

Fixed version (ground truth):
/** 
 * Gets the position.
 * @return The position
 */
Vector3d getPosition();
Program: 27876
Project: 27876
Buggy source:
/** 
 * Simulates the interaction with this object using the given item as if the player had done so.
 * @param itemStack The item
 * @param interactionType The type of interaction performed on this entity
 */
void interactWith(ItemStack itemStack,EntityInteractionType interactionType);

Fixed version (ground truth):
/** 
 * Simulates the interaction with this object using the given item as if the player had done so.
 * @param itemStack       The item
 * @param interactionType The type of interaction performed on this entity
 */
void interactWith(ItemStack itemStack,EntityInteractionType interactionType);
Program: 27877
Project: 27877
Buggy source:
/** 
 * Gets the entity that this entity is riding.
 * @return The entity being ridden, if it exists.
 */
Optional<Entity> getRiding();

Fixed version (ground truth):
/** 
 * Gets the entity that this entity is riding.
 * @return The entity being ridden, if it exists
 */
Optional<Entity> getRiding();
Program: 27878
Project: 27878
Buggy source:
/** 
 * Gets whether or not the minecart is currently on a valid rail block.
 * @return If the cart is on a rail.
 */
boolean isOnRail();

Fixed version (ground truth):
/** 
 * Gets whether or not the minecart is currently on a valid rail block.
 * @return If the cart is on a rail
 */
boolean isOnRail();
Program: 27879
Project: 27879
Buggy source:
/** 
 * Sets the velocity modifier applied when the minecart is not on rails.
 * @param derailedVelocityMod The new derailed velocity modifier.
 */
void setDerailedVelocityMod(Vector3d derailedVelocityMod);

Fixed version (ground truth):
/** 
 * Sets the velocity modifier applied when the minecart is not on rails.
 * @param derailedVelocityMod The new derailed velocity modifier
 */
void setDerailedVelocityMod(Vector3d derailedVelocityMod);
Program: 27880
Project: 27880
Buggy source:
/** 
 * Gets the velocity modifier applied when the minecart is airborne.
 * @return Airborne velocity modifier.
 */
Vector3d getAirborneVelocityMod();

Fixed version (ground truth):
/** 
 * Gets the velocity modifier applied when the minecart is airborne.
 * @return Airborne velocity modifier
 */
Vector3d getAirborneVelocityMod();
Program: 27881
Project: 27881
Buggy source:
/** 
 * Gets whether or not the minecart slows down faster without a passenger.
 * @return If the cart slows when empty.
 */
boolean doesSlowWhenEmpty();

Fixed version (ground truth):
/** 
 * Gets whether or not the minecart slows down faster without a passenger.
 * @return If the cart slows when empty
 */
boolean doesSlowWhenEmpty();
Program: 27882
Project: 27882
Buggy source:
/** 
 * Sets whether or not the minecart slows down faster without a passenger.
 * @param slowWhenEmpty If the cart should slow when emoty.
 */
void setSlowWhenEmpty(boolean slowWhenEmpty);

Fixed version (ground truth):
/** 
 * Sets whether or not the minecart slows down faster without a passenger.
 * @param slowWhenEmpty If the cart should slow when emoty
 */
void setSlowWhenEmpty(boolean slowWhenEmpty);
Program: 27883
Project: 27883
Buggy source:
/** 
 * Gets the velocity modifier applied when the minecart is not on rails.
 * @return Derailed velocity modifier.
 */
Vector3d getDerailedVelocityMod();

Fixed version (ground truth):
/** 
 * Gets the velocity modifier applied when the minecart is not on rails.
 * @return Derailed velocity modifier
 */
Vector3d getDerailedVelocityMod();
Program: 27884
Project: 27884
Buggy source:
/** 
 * Gets the maximum speed that this cart is allowed to travel at. Default value is 0.4
 * @return The maximum speed.
 */
double getMaxSpeed();

Fixed version (ground truth):
/** 
 * Gets the maximum speed that this cart is allowed to travel at. Default value is 0.4
 * @return The maximum speed
 */
double getMaxSpeed();
Program: 27885
Project: 27885
Buggy source:
/** 
 * Sets the maximum speed that this cart is allowed to travel at. Default value is 0.4
 * @param maxSpeed The new max speed.
 */
void setMaxSpeed(double maxSpeed);

Fixed version (ground truth):
/** 
 * Sets the maximum speed that this cart is allowed to travel at. Default value is 0.4
 * @param maxSpeed The new max speed
 */
void setMaxSpeed(double maxSpeed);
Program: 27886
Project: 27886
Buggy source:
/** 
 * Sets the velocity modifier applied when the minecart is airborne.
 * @param airborneVelocityMod The new airborne velocity modifier.
 */
void setAirborneVelocityMod(Vector3d airborneVelocityMod);

Fixed version (ground truth):
/** 
 * Sets the velocity modifier applied when the minecart is airborne.
 * @param airborneVelocityMod The new airborne velocity modifier
 */
void setAirborneVelocityMod(Vector3d airborneVelocityMod);
Program: 27887
Project: 27887
Buggy source:
/** 
 * Sends a   {@link Title} to this player. This is the same as calling{@link Title#send(Player)}.
 * @param title The {@link Title} to send to the player.
 */
void sendTitle(Title title);

Fixed version (ground truth):
/** 
 * Sends a   {@link Title} to this player. This is the same as calling{@link Title#send(Player)}.
 * @param title The {@link Title} to send to the player
 */
void sendTitle(Title title);
Program: 27888
Project: 27888
Buggy source:
/** 
 * Sets the cancelled state of the   {@link Event}.
 * @param cancel the new cancelled state
 */
void setCancelled(boolean cancel);

Fixed version (ground truth):
/** 
 * Sets the cancelled state of the   {@link Event}.
 * @param cancel The new cancelled state
 */
void setCancelled(boolean cancel);
Program: 27889
Project: 27889
Buggy source:
/** 
 * Gets the entity that is being dismounted from.
 * @return The entity that is being dismounted from.
 */
Entity getDismounted();

Fixed version (ground truth):
/** 
 * Gets the entity that is being dismounted from.
 * @return The entity that is being dismounted from
 */
Entity getDismounted();
Program: 27890
Project: 27890
Buggy source:
/** 
 * Gets the entity that is being mounted.
 * @return The entity that is being mounted.
 */
Entity getMounted();

Fixed version (ground truth):
/** 
 * Gets the entity that is being mounted.
 * @return The entity that is being mounted
 */
Entity getMounted();
Program: 27891
Project: 27891
Buggy source:
/** 
 * @return the config folder
 */
public File getConfigurationDirectory();

Fixed version (ground truth):
/** 
 * @return The config folder
 */
public File getConfigurationDirectory();
Program: 27892
Project: 27892
Buggy source:
/** 
 * Returns the yaw component.
 * @return the yaw component
 */
float getYaw();

Fixed version (ground truth):
/** 
 * Returns the yaw component.
 * @return The yaw component
 */
float getYaw();
Program: 27893
Project: 27893
Buggy source:
/** 
 * Returns the pitch component.
 * @return the pitch component
 */
float getPitch();

Fixed version (ground truth):
/** 
 * Returns the pitch component.
 * @return The pitch component
 */
float getPitch();
Program: 27894
Project: 27894
Buggy source:
/** 
 * Converts this Euler Direction into a   {@link Vector3f}. The vector will represent the directions that this direction is facing in x, y, z coordinates, with a length of 1. Roll will be ignored, as it does not contribute to the facing direction.
 * @return the vector representation of this direction
 */
Vector3f toVector();

Fixed version (ground truth):
/** 
 * Converts this Euler Direction into a   {@link Vector3f}. The vector will represent the directions that this direction is facing in x, y, z coordinates, with a length of 1. Roll will be ignored, as it does not contribute to the facing direction.
 * @return The vector representation of this direction
 */
Vector3f toVector();
Program: 27895
Project: 27895
Buggy source:
/** 
 * Returns the roll component.
 * @return the roll component
 */
float getRoll();

Fixed version (ground truth):
/** 
 * Returns the roll component.
 * @return The roll component
 */
float getRoll();
Program: 27896
Project: 27896
Buggy source:
/** 
 * Returns this vector as an array.
 * @return This vector as an array.
 */
double[] toArray();

Fixed version (ground truth):
/** 
 * Returns this vector as an array.
 * @return This vector as an array
 */
double[] toArray();
Program: 27897
Project: 27897
Buggy source:
/** 
 * Returns this vector as an array.
 * @return This vector as an array.
 */
float[] toArray();

Fixed version (ground truth):
/** 
 * Returns this vector as an array.
 * @return This vector as an array
 */
float[] toArray();
Program: 27898
Project: 27898
Buggy source:
/** 
 * Returns this vector as an array.
 * @return This vector as an array.
 */
int[] toArray();

Fixed version (ground truth):
/** 
 * Returns this vector as an array.
 * @return This vector as an array
 */
int[] toArray();
Program: 27899
Project: 27899
Buggy source:
/** 
 * Gets the time it takes to dig this block the specified item in ticks.
 * @return The time in ticks.
 */
int getDigTimeWith(ItemStack itemStack);

Fixed version (ground truth):
/** 
 * Gets the time it takes to dig this block the specified item in ticks.
 * @param itemStack The item to pretend-dig with
 * @return The time in ticks.
 */
int getDigTimeWith(ItemStack itemStack);
Program: 27900
Project: 27900
Buggy source:
/** 
 * Return the default state for this block.
 */
BlockState getDefaultState();

Fixed version (ground truth):
/** 
 * Return the default state for this block.
 * @return The default state
 */
BlockState getDefaultState();
Program: 27901
Project: 27901
Buggy source:
/** 
 * Sets the helmet currently being worn by this entity.
 * @param helmet The helmet to put on the entity
 */
void setHelmet(ItemStack helmet);

Fixed version (ground truth):
/** 
 * Sets the helmet currently being worn by this entity.
 * @param helmet The helmet to put on the entity
 */
void setHelmet(@Nullable ItemStack helmet);
Program: 27902
Project: 27902
Buggy source:
/** 
 * Sets the leggings currently being worn by this entity.
 * @param leggings The leggings to put on the entity
 */
void setLeggings(ItemStack leggings);

Fixed version (ground truth):
/** 
 * Sets the leggings currently being worn by this entity.
 * @param leggings The leggings to put on the entity
 */
void setLeggings(@Nullable ItemStack leggings);
Program: 27903
Project: 27903
Buggy source:
/** 
 * Sets the boots currently being worn by this entity.
 * @param boots The boots to put on the entity
 */
void setBoots(ItemStack boots);

Fixed version (ground truth):
/** 
 * Sets the boots currently being worn by this entity.
 * @param boots The boots to put on the entity
 */
void setBoots(@Nullable ItemStack boots);
Program: 27904
Project: 27904
Buggy source:
/** 
 * Sets the chestplate currently being worn by this entity.
 * @param chestplate The chestplate to put on the entity
 */
void setChestplate(ItemStack chestplate);

Fixed version (ground truth):
/** 
 * Sets the chestplate currently being worn by this entity.
 * @param chestplate The chestplate to put on the entity
 */
void setChestplate(@Nullable ItemStack chestplate);
Program: 27905
Project: 27905
Buggy source:
/** 
 * Sets whether this entity can breed a new child.
 * @param breeding
 */
void setBreeding(boolean breeding);

Fixed version (ground truth):
/** 
 * Sets whether this entity can breed a new child.
 * @param breeding whether this entity can breed
 */
void setBreeding(boolean breeding);
Program: 27906
Project: 27906
Buggy source:
/** 
 * Sets whether or not this blaze is currently on fire.
 * @param onFire Whether the blaze should be on fire or not.
 */
void setOnFire(boolean onFire);

Fixed version (ground truth):
/** 
 * Sets whether or not this blaze is currently on fire.
 * @param onFire Whether the blaze should be on fire or not
 */
void setOnFire(boolean onFire);
Program: 27907
Project: 27907
Buggy source:
/** 
 * Gets whether or not this blaze is currently on fire.
 * @return Whether or not the blaze is on fire.
 */
boolean isOnFire();

Fixed version (ground truth):
/** 
 * Gets whether or not this blaze is currently on fire.
 * @return Whether or not the blaze is on fire
 */
boolean isOnFire();