nus-yam/ex-repair huggingface dataset:
Program: 10452
Project: 10452
Buggy source:
public String asDScriptListLevelsOnly(){
  String dScriptList="String_Node_Str";
  if (this.isEmpty())   return dScriptList;
  for (  Integer enchantment : this.values())   dScriptList=dScriptList + enchantment + "String_Node_Str";
  return dScriptList.substring(1,dScriptList.length() - 1);
}

Fixed version (ground truth):
public String asDScriptListLevelsOnly(){
  String dScriptList="String_Node_Str";
  if (this.isEmpty())   return dScriptList;
  for (  Integer enchantment : this.values())   dScriptList=dScriptList + enchantment + "String_Node_Str";
  return dScriptList.substring(0,dScriptList.length() - 1);
}
Program: 10453
Project: 10453
Buggy source:
public String asDScriptList(){
  String dScriptList="String_Node_Str";
  if (this.isEmpty())   return dScriptList;
  for (  Enchantment enchantment : this.keySet())   dScriptList=dScriptList + enchantment.getName() + "String_Node_Str";
  return dScriptList.substring(1,dScriptList.length() - 1);
}

Fixed version (ground truth):
public String asDScriptList(){
  String dScriptList="String_Node_Str";
  if (this.isEmpty())   return dScriptList;
  for (  Enchantment enchantment : this.keySet())   dScriptList=dScriptList + enchantment.getName() + "String_Node_Str";
  return dScriptList.substring(0,dScriptList.length() - 1);
}
Program: 10454
Project: 10454
Buggy source:
public String asDScriptListWithLevels(){
  String dScriptList="String_Node_Str";
  if (this.isEmpty())   return dScriptList;
  for (  Entry<Enchantment,Integer> enchantment : this.entrySet())   dScriptList=dScriptList + enchantment.getKey().getName() + "String_Node_Str"+ enchantment.getValue()+ "String_Node_Str";
  return dScriptList.substring(1,dScriptList.length() - 1);
}

Fixed version (ground truth):
public String asDScriptListWithLevels(){
  String dScriptList="String_Node_Str";
  if (this.isEmpty())   return dScriptList;
  for (  Entry<Enchantment,Integer> enchantment : this.entrySet())   dScriptList=dScriptList + enchantment.getKey().getName() + "String_Node_Str"+ enchantment.getValue()+ "String_Node_Str";
  return dScriptList.substring(0,dScriptList.length() - 1);
}
Program: 10455
Project: 10455
Buggy source:
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  boolean outcome=false;
  boolean exact=false;
  int quantity=1;
  ItemStack itemToCheck=null;
  for (  String thisArg : args) {
    if (aH.matchesQuantity(thisArg)) {
      quantity=aH.getIntegerFrom(thisArg);
      dB.echoDebug("String_Node_Str" + quantity);
    }
 else     if (aH.matchesArg("String_Node_Str",thisArg)) {
      exact=true;
      dB.echoDebug("String_Node_Str");
    }
 else {
      itemToCheck=aH.getItemFrom(thisArg);
      dB.echoDebug("String_Node_Str" + itemToCheck);
    }
  }
  if (itemToCheck != null && quantity > 1) {
    itemToCheck.setAmount(quantity);
  }
  if (exact)   outcome=context.getPlayer().getItemInHand().equals(itemToCheck);
 else   outcome=context.getPlayer().getItemInHand().isSimilar(itemToCheck);
  if (outcome)   dB.echoDebug("String_Node_Str");
  return outcome;
}

Fixed version (ground truth):
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  boolean outcome=false;
  boolean exact=false;
  int quantity=1;
  ItemStack itemToCheck=null;
  for (  String thisArg : args) {
    if (aH.matchesQuantity(thisArg)) {
      quantity=aH.getIntegerFrom(thisArg);
      dB.echoDebug("String_Node_Str" + quantity);
    }
 else     if (aH.matchesArg("String_Node_Str",thisArg)) {
      exact=true;
      dB.echoDebug("String_Node_Str");
    }
 else {
      itemToCheck=new ItemStack(aH.getItemFrom(thisArg));
      dB.echoDebug("String_Node_Str" + itemToCheck);
    }
  }
  if (itemToCheck != null) {
    itemToCheck.setAmount(quantity);
  }
  if (exact)   outcome=context.getPlayer().getItemInHand().equals(itemToCheck);
 else   outcome=context.getPlayer().getItemInHand().isSimilar(itemToCheck);
  if (outcome)   dB.echoDebug("String_Node_Str");
  return outcome;
}
Program: 10456
Project: 10456
Buggy source:
@Override public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {
  Script script=scriptEntry.getScript();
  String step=null;
  Duration duration=new Duration(-1d);
  for (  String arg : scriptEntry.getArguments()) {
    if (aH.matchesScript(arg)) {
      script=aH.getScriptFrom(arg);
    }
 else     if (aH.matchesDuration(arg)) {
      duration=aH.getDurationFrom(arg);
    }
 else     if (aH.matchesValueArg("String_Node_Str",arg,aH.ArgumentType.String) || aH.matchesInteger(arg)) {
      step=aH.getStringFrom(arg);
      dB.echoDebug(Messages.DEBUG_SET_STEP,step);
    }
 else     throw new InvalidArgumentsException(Messages.ERROR_UNKNOWN_ARGUMENT,arg);
  }
  scriptEntry.addObject("String_Node_Str",script);
  scriptEntry.addObject("String_Node_Str",step);
  scriptEntry.addObject("String_Node_Str",duration);
}

Fixed version (ground truth):
@Override public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {
  Script script=scriptEntry.getScript();
  String step=null;
  Duration duration=new Duration(-1d);
  for (  String arg : scriptEntry.getArguments()) {
    if (aH.matchesScript(arg)) {
      script=aH.getScriptFrom(arg);
    }
 else     if (aH.matchesDuration(arg)) {
      duration=aH.getDurationFrom(arg);
    }
 else     if (aH.matchesValueArg("String_Node_Str",arg,aH.ArgumentType.String) || aH.matchesInteger(arg)) {
      step=aH.getStringFrom(arg);
      dB.echoDebug(Messages.DEBUG_SET_STEP,step);
    }
 else     throw new InvalidArgumentsException(Messages.ERROR_UNKNOWN_ARGUMENT,arg);
  }
  scriptEntry.addObject("String_Node_Str",script).addObject("String_Node_Str",step).addObject("String_Node_Str",duration);
}
Program: 10458
Project: 10458
Buggy source:
public void action(String actionName,Player player){
  if (getCitizen().hasTrait(AssignmentTrait.class))   DenizenAPI.getCurrentInstance().getNPCRegistry().getActionHandler().doAction(actionName,this,player,getAssignmentTrait().getAssignment());
}

Fixed version (ground truth):
public void action(String actionName,Player player){
  if (getCitizen() != null) {
    if (getCitizen().hasTrait(AssignmentTrait.class))     DenizenAPI.getCurrentInstance().getNPCRegistry().getActionHandler().doAction(actionName,this,player,getAssignmentTrait().getAssignment());
  }
}
Program: 10460
Project: 10460
Buggy source:
/** 
 * Executes the Teleport command.
 * @param scriptEntry the ScriptEntry
 */
@Override public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
  Location teleportLocation=(Location)scriptEntry.getObject("String_Node_Str");
  List<LivingEntity> teleportEntities=(List<LivingEntity>)scriptEntry.getObject("String_Node_Str");
  List<NPC> teleportNPCs=(List<NPC>)scriptEntry.getObject("String_Node_Str");
  dB.echoApproval("String_Node_Str" + getName() + "String_Node_Str"+ teleportLocation+ "String_Node_Str"+ "String_Node_Str"+ teleportEntities.toString()+ "String_Node_Str"+ teleportNPCs.toString()+ "String_Node_Str");
  for (  LivingEntity entity : teleportEntities) {
    entity.teleport(teleportLocation);
  }
  for (  NPC npc : teleportNPCs) {
    npc.spawn(teleportLocation);
    npc.getBukkitEntity().teleport(teleportLocation,PlayerTeleportEvent.TeleportCause.COMMAND);
  }
}

Fixed version (ground truth):
/** 
 * Executes the Teleport command.
 * @param scriptEntry the ScriptEntry
 */
@Override public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
  Location teleportLocation=(Location)scriptEntry.getObject("String_Node_Str");
  List<LivingEntity> teleportEntities=(List<LivingEntity>)scriptEntry.getObject("String_Node_Str");
  List<NPC> teleportNPCs=(List<NPC>)scriptEntry.getObject("String_Node_Str");
  dB.echoApproval("String_Node_Str" + getName() + "String_Node_Str"+ teleportLocation.debug()+ "String_Node_Str"+ "String_Node_Str"+ teleportEntities.toString()+ "String_Node_Str"+ teleportNPCs.toString()+ "String_Node_Str");
  for (  LivingEntity entity : teleportEntities) {
    entity.teleport(teleportLocation);
  }
  for (  NPC npc : teleportNPCs) {
    npc.spawn(teleportLocation);
    npc.getBukkitEntity().teleport(teleportLocation,PlayerTeleportEvent.TeleportCause.COMMAND);
  }
}
Program: 10461
Project: 10461
Buggy source:
public void start(){
  dB.log("String_Node_Str" + id + "String_Node_Str");
  if (ticks > 0)   taskId=Bukkit.getScheduler().scheduleSyncRepeatingTask(DenizenAPI.getCurrentInstance(),new Runnable(){
    @Override public void run(){
      revolve();
    }
  }
,ticks,ticks);
 else   revolve();
}

Fixed version (ground truth):
public void start(){
  dB.log("String_Node_Str" + id + "String_Node_Str"+ ticks+ "String_Node_Str");
  if (ticks > 0)   taskId=Bukkit.getScheduler().scheduleSyncRepeatingTask(DenizenAPI.getCurrentInstance(),new Runnable(){
    @Override public void run(){
      revolve();
    }
  }
,ticks,ticks);
 else   revolve();
}
Program: 10462
Project: 10462
Buggy source:
public Duration getSpeed(){
  Duration speed=Duration.valueOf(getString("String_Node_Str",null));
  if (speed == null)   speed=new Duration(Double.valueOf(Settings.InteractDelayInTicks() / 20));
  return speed;
}

Fixed version (ground truth):
public Duration getSpeed(){
  Duration speed=Duration.valueOf(getString("String_Node_Str",null));
  if (speed == null)   speed=new Duration(((double)Settings.InteractDelayInTicks() / 20));
  return speed;
}
Program: 10463
Project: 10463
Buggy source:
/** 
 * Send packets for all currently sitting NPCs to all new players who join.
 */
@EventHandler public void onPlayerLoginEvent(PlayerJoinEvent event){
  for (  dNPC npc : DenizenAPI.getSpawnedNPCs())   makeSitSpecificPlayer(npc,event.getPlayer());
}

Fixed version (ground truth):
/** 
 * Send packets for all currently sitting NPCs to all new players who join.
 */
@EventHandler public void onPlayerLoginEvent(PlayerJoinEvent event){
  Set<dNPC> npcs=new HashSet<dNPC>();
  for (  Integer intgr : chairRegistry.keySet()) {
    npcs.add(DenizenAPI.getDenizenNPC(CitizensAPI.getNPCRegistry().getById(intgr)));
  }
  for (  dNPC npc : npcs)   makeSitSpecificPlayer(npc,event.getPlayer());
}
Program: 10464
Project: 10464
Buggy source:
public void makeSitSpecificPlayer(dNPC npc,Player player){
  try {
    PacketContainer packet=ProtocolLibrary.getProtocolManager().createPacket(40);
    packet.getSpecificModifier(int.class).write(0,npc.getEntity().getEntityId());
    WrappedDataWatcher watcher=new WrappedDataWatcher();
    watcher.setObject(0,(byte)4);
    packet.getWatchableCollectionModifier().write(0,watcher.getWatchableObjects());
    if (npc.getEntity().getWorld().equals(player.getWorld())) {
      try {
        ProtocolLibrary.getProtocolManager().sendServerPacket(player,packet);
      }
 catch (      InvocationTargetException e) {
        dB.echoError("String_Node_Str" + player.getName());
      }
    }
  }
 catch (  Error e) {
    dB.echoError("String_Node_Str");
  }
}

Fixed version (ground truth):
public void makeSitSpecificPlayer(dNPC npc,Player player){
  try {
    PacketContainer packet=ProtocolLibrary.getProtocolManager().createPacket(40);
    packet.getSpecificModifier(int.class).write(0,npc.getEntity().getEntityId());
    WrappedDataWatcher watcher=new WrappedDataWatcher();
    watcher.setObject(0,(byte)4);
    packet.getWatchableCollectionModifier().write(0,watcher.getWatchableObjects());
    if (npc.getEntity().getWorld().equals(player.getWorld())) {
      try {
        ProtocolLibrary.getProtocolManager().sendServerPacket(player,packet);
      }
 catch (      Exception e) {
        dB.echoError("String_Node_Str" + player.getName());
      }
    }
  }
 catch (  Error e) {
    dB.echoError("String_Node_Str");
  }
}
Program: 10465
Project: 10465
Buggy source:
/** 
 * Called by the CommandExecuter before the execute() method is called. Arguments should be iterated through and checked before continuing to execute(). Note that PLAYER:player_name and NPCID:# arguments are parsed automatically by the Executer and should not be handled by this Command otherwise. Their output is stored in the attached   {@link ScriptEntry} and can be retrieved with scriptEntry.getPlayer(), scriptEntry.getOfflinePlayer() (if the player specified is not online), and scriptEntry.getNPC(). Remember that any of these have a possibility of being null and should be handled accordingly if required by this Command.
 * @param scriptEntry The  {@link ScriptEntry} which contains run-time information which maybe utilized by this Command.
 * @throws InvalidArgumentsException Will halt execution of this Command and hint usage to the console to avoid unwanted behavior due to missing information.
 */
public abstract void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException ;

Fixed version (ground truth):
/** 
 * Called by the CommandExecuter before the execute() method is called. Arguments should be iterated through and checked before continuing to execute(). Note that PLAYER:player_name and NPCID:# arguments are parsed automatically by the Executer and should not be handled by this Command otherwise. Their output is stored in the attached   {@link ScriptEntry} and can be retrieved with scriptEntry.getPlayer(), scriptEntry.getOfflinePlayer() (if the player specified is not online), and scriptEntry.getNPC(). Remember that any of these have a possibility of being null and should be handled accordingly if required by this Command.
 * @param scriptEntry The  {@link ScriptEntry}, which contains run-time context that may be utilized by this Command.
 * @throws InvalidArgumentsException Will halt execution of this Command and hint usage to the console to avoid unwanted behavior due to missing information.
 */
public abstract void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException ;
Program: 10467
Project: 10467
Buggy source:
public TaskScriptContainer setSpeed(Duration speed){
  set("String_Node_Str",speed.dScriptArgValue());
  return this;
}

Fixed version (ground truth):
public TaskScriptContainer setSpeed(Duration speed){
  set("String_Node_Str",speed.getSeconds());
  return this;
}
Program: 10469
Project: 10469
Buggy source:
@Override public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {
  List<ScriptQueue> queues=new ArrayList<ScriptQueue>();
  queues.add(ScriptQueue._getQueue(scriptEntry.getResidingQueue()));
  for (  String arg : scriptEntry.getArguments()) {
    if (aH.matchesQueue(arg))     for (    String queueName : aH.getListFrom(arg)) {
      queues.clear();
      try {
        queues.add(aH.getQueueFrom(queueName));
      }
 catch (      Exception e) {
      }
    }
 else     throw new InvalidArgumentsException(dB.Messages.ERROR_UNKNOWN_ARGUMENT,arg);
  }
  if (queues.isEmpty())   throw new InvalidArgumentsException("String_Node_Str");
  scriptEntry.addObject("String_Node_Str",queues);
}

Fixed version (ground truth):
@Override public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {
}
Program: 10474
Project: 10474
Buggy source:
/** 
 * Returns the current step for a Player and specified script. If no current step is found, the default step is used, 'Default', unless another default (used by ending the step-name with a '*') is specified in the script. For the sake of compatibility from v0.76, '1' can also be used.
 * @param player the Player to check
 * @param scriptName the name of the interact script container to check
 * @return the current, or default, step name
 */
public static String getCurrentStep(Player player,String scriptName){
  if (scriptName == null)   return null;
  if (DenizenAPI._saves().contains("String_Node_Str" + player.getName() + "String_Node_Str"+ "String_Node_Str"+ scriptName.toUpperCase()+ "String_Node_Str"+ "String_Node_Str"))   return DenizenAPI._saves().getString("String_Node_Str" + player.getName() + "String_Node_Str"+ "String_Node_Str"+ scriptName.toUpperCase()+ "String_Node_Str"+ "String_Node_Str");
  return ScriptRegistry.getScriptContainerAs(scriptName,InteractScriptContainer.class).getDefaultStepName();
}

Fixed version (ground truth):
/** 
 * Returns the current step for a Player and specified script. If no current step is found, the default step is used, 'Default', unless another default (used by ending the step-name with a '*') is specified in the script. For the sake of compatibility from v0.76, '1' can also be used.
 * @param player the Player to check
 * @param scriptName the name of the interact script container to check
 * @return the current, or default, step name
 */
public static String getCurrentStep(Player player,String scriptName){
  if (scriptName == null)   return null;
  if (DenizenAPI._saves().contains("String_Node_Str" + player.getName() + "String_Node_Str"+ "String_Node_Str"+ scriptName.toUpperCase()+ "String_Node_Str"+ "String_Node_Str")) {
    return DenizenAPI._saves().getString("String_Node_Str" + player.getName() + "String_Node_Str"+ "String_Node_Str"+ scriptName.toUpperCase()+ "String_Node_Str"+ "String_Node_Str").toUpperCase();
  }
  return ScriptRegistry.getScriptContainerAs(scriptName,InteractScriptContainer.class).getDefaultStepName().toUpperCase();
}
Program: 10478
Project: 10478
Buggy source:
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  boolean outcome=false;
  CheckType checkType=null;
  for (  String thisArg : args) {
    if (aH.matchesValueArg("String_Node_Str",thisArg,ArgumentType.Custom)) {
      checkType=CheckType.ITEMINHAND;
      dB.echoDebug("String_Node_Str");
    }
 else     dB.echoError("String_Node_Str",thisArg);
  }
  if (checkType != null) {
switch (checkType) {
case ITEMINHAND:
      if (!context.getPlayer().getItemInHand().getEnchantments().isEmpty())       outcome=true;
    break;
}
}
if (outcome == true) dB.echoDebug("String_Node_Str");
 else dB.echoDebug("String_Node_Str");
return outcome;
}

Fixed version (ground truth):
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  boolean outcome=false;
  CheckType checkType=null;
  if (args.size() < 1)   throw new RequirementCheckException("String_Node_Str");
  for (  String thisArg : args) {
    if (aH.matchesValueArg("String_Node_Str",thisArg,ArgumentType.Custom)) {
      checkType=CheckType.ITEMINHAND;
      dB.echoDebug("String_Node_Str");
    }
 else     dB.echoError("String_Node_Str",thisArg);
  }
  if (checkType != null) {
switch (checkType) {
case ITEMINHAND:
      if (!context.getPlayer().getItemInHand().getEnchantments().isEmpty())       outcome=true;
    break;
}
}
if (outcome == true) dB.echoDebug("String_Node_Str");
 else dB.echoDebug("String_Node_Str");
return outcome;
}
Program: 10479
Project: 10479
Buggy source:
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  boolean outcome=false;
  Block blockToCheck=null;
  for (  String thisArg : args) {
    if (aH.matchesLocation(thisArg)) {
      blockToCheck=aH.getLocationFrom(thisArg).getBlock();
      if (blockToCheck != null)       dB.echoDebug("String_Node_Str",blockToCheck.getType().toString());
    }
 else     dB.echoError("String_Node_Str",thisArg);
  }
  if (blockToCheck != null && blockToCheck.isLiquid())   outcome=true;
  if (outcome == true)   dB.echoDebug("String_Node_Str");
 else   dB.echoDebug("String_Node_Str");
  return outcome;
}

Fixed version (ground truth):
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  boolean outcome=false;
  Block blockToCheck=null;
  if (args.size() < 1)   throw new RequirementCheckException("String_Node_Str");
  for (  String thisArg : args) {
    if (aH.matchesLocation(thisArg)) {
      blockToCheck=aH.getLocationFrom(thisArg).getBlock();
      if (blockToCheck != null)       dB.echoDebug("String_Node_Str",blockToCheck.getType().toString());
    }
 else     dB.echoError("String_Node_Str",thisArg);
  }
  if (blockToCheck != null && blockToCheck.isLiquid())   outcome=true;
  if (outcome == true)   dB.echoDebug("String_Node_Str");
 else   dB.echoDebug("String_Node_Str");
  return outcome;
}
Program: 10480
Project: 10480
Buggy source:
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  for (  String arg : args) {
    if (aH.matchesQuantity(arg) || aH.matchesInteger(arg) || aH.matchesDouble(arg)) {
      quantity=aH.getDoubleFrom(arg);
      dB.echoDebug("String_Node_Str" + quantity);
    }
 else     throw new RequirementCheckException(Messages.ERROR_UNKNOWN_ARGUMENT,arg);
  }
  if (Depends.economy != null) {
    balance=Depends.economy.getBalance(context.getPlayer().getName());
    dB.echoDebug("String_Node_Str" + balance);
  }
 else {
    dB.echoError("String_Node_Str");
  }
  if (balance >= quantity)   outcome=true;
 else   outcome=false;
  return outcome;
}

Fixed version (ground truth):
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  boolean outcome=true;
  if (Depends.economy != null) {
    double quantity=0;
    double balance=0;
    for (    String arg : args) {
      if (aH.matchesQuantity(arg) || aH.matchesInteger(arg) || aH.matchesDouble(arg)) {
        quantity=aH.getDoubleFrom(arg);
        dB.echoDebug("String_Node_Str" + quantity);
      }
 else       throw new RequirementCheckException(Messages.ERROR_UNKNOWN_ARGUMENT,arg);
    }
    balance=Depends.economy.getBalance(context.getPlayer().getName());
    dB.echoDebug("String_Node_Str" + balance);
    if (balance >= quantity)     outcome=true;
 else     outcome=false;
  }
 else {
    dB.echoError("String_Node_Str");
  }
  return outcome;
}
Program: 10481
Project: 10481
Buggy source:
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  boolean outcome=false;
  if (context.getPlayer() != null) {
    if (Depends.permissions != null) {
      for (      String permission : args) {
        if (Depends.permissions.has(context.getPlayer(),permission)) {
          dB.echoDebug("String_Node_Str" + permission);
        }
 else {
          outcome=false;
          dB.echoDebug("String_Node_Str" + permission + "String_Node_Str");
          break;
        }
      }
      return outcome;
    }
    dB.echoDebug("String_Node_Str");
  }
  return outcome;
}

Fixed version (ground truth):
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  if (context.getPlayer() != null) {
    boolean outcome=false;
    if (Depends.permissions != null) {
      for (      String permission : args) {
        if (Depends.permissions.has(context.getPlayer(),permission)) {
          dB.echoDebug("String_Node_Str" + permission);
        }
 else {
          outcome=false;
          dB.echoDebug("String_Node_Str" + permission + "String_Node_Str");
          break;
        }
      }
      return outcome;
    }
    dB.echoDebug("String_Node_Str");
  }
  return true;
}
Program: 10482
Project: 10482
Buggy source:
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  boolean outcome=false;
  if (!context.getPlayer().getWorld().hasStorm())   outcome=true;
  return outcome;
}

Fixed version (ground truth):
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  return !context.getPlayer().getWorld().hasStorm();
}
Program: 10483
Project: 10483
Buggy source:
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  String region=null;
  Boolean outcome=false;
  if (args == null)   throw new RequirementCheckException("String_Node_Str");
  for (  String arg : args) {
    if (aH.matchesValueArg("String_Node_Str",arg,ArgumentType.String)) {
      region=aH.getStringFrom(arg);
      dB.echoDebug("String_Node_Str" + region);
    }
 else     throw new RequirementCheckException("String_Node_Str");
  }
  outcome=WorldGuardUtilities.checkPlayerWGRegion(context.getPlayer(),region);
  if (outcome == true)   dB.echoDebug("String_Node_Str");
 else   dB.echoDebug("String_Node_Str");
  return outcome;
}

Fixed version (ground truth):
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  String region=null;
  Boolean outcome=false;
  if (args == null || args.size() < 1)   throw new RequirementCheckException("String_Node_Str");
  for (  String arg : args) {
    if (aH.matchesValueArg("String_Node_Str",arg,ArgumentType.String)) {
      region=aH.getStringFrom(arg);
      dB.echoDebug("String_Node_Str" + region);
    }
 else     throw new RequirementCheckException("String_Node_Str");
  }
  outcome=WorldGuardUtilities.checkPlayerWGRegion(context.getPlayer(),region);
  if (outcome == true)   dB.echoDebug("String_Node_Str");
 else   dB.echoDebug("String_Node_Str");
  return outcome;
}
Program: 10488
Project: 10488
Buggy source:
/** 
 * <p>Used to determine if a dScript argument string is a valid Bukkit ItemStack or a currently saved instance from the   {@link NewCommand} using 'NEWITEMSTACK'.</p> <p>Accounts for several formats, including <tt>ItemId</tt>, <tt>ItemId:Data</tt>, <tt>Material</tt>, <tt>Material:Data</tt>, and finally <tt>ITEMSTACK.item_name</tt>.</p> <b>Examples:</b> <ol> <tt>'ITEM:DIAMOND'</tt> will return 'true'.<br> <tt>'ITEM:1'</tt> will return 'true'.<br> <tt>'100:3'</tt> will return 'false'.<br> <tt>'ITEM:ITEMSTACK.enchantedItem'</tt> will return 'true'.<br> </ol>
 * @param arg the dScript argument string
 * @return true if matches, false otherwise
 */
public static boolean matchesItem(String arg){
  final Pattern[] matchesItemPtrn={Pattern.compile("String_Node_Str",Pattern.CASE_INSENSITIVE),Pattern.compile("String_Node_Str",Pattern.CASE_INSENSITIVE),Pattern.compile("String_Node_Str",Pattern.CASE_INSENSITIVE),Pattern.compile("String_Node_Str",Pattern.CASE_INSENSITIVE)};
  Matcher m;
  m=matchesItemPtrn[3].matcher(arg);
  if (m.matches())   return true;
  m=matchesItemPtrn[0].matcher(arg);
  if (m.matches())   return true;
  m=matchesItemPtrn[1].matcher(arg);
  if (m.matches())   return true;
  m=matchesItemPtrn[2].matcher(arg);
  if (m.matches()) {
    for (    Material mat : Material.values())     if (mat.toString().equalsIgnoreCase(m.group(1)))     return true;
  }
  if (arg.toUpperCase().startsWith("String_Node_Str"))   dB.echoError("String_Node_Str" + arg + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  return false;
}

Fixed version (ground truth):
/** 
 * <p>Used to determine if a dScript argument string is a valid Bukkit ItemStack or a currently saved instance from the   {@link NewCommand} using 'NEWITEMSTACK'.</p> <p>Accounts for several formats, including <tt>ItemId</tt>, <tt>ItemId:Data</tt>, <tt>Material</tt>, <tt>Material:Data</tt>, and finally <tt>ITEMSTACK.item_name</tt>.</p> <b>Examples:</b> <ol> <tt>'ITEM:DIAMOND'</tt> will return 'true'.<br> <tt>'ITEM:1'</tt> will return 'true'.<br> <tt>'100:3'</tt> will return 'false'.<br> <tt>'ITEM:ITEMSTACK.enchantedItem'</tt> will return 'true'.<br> </ol>
 * @param arg the dScript argument string
 * @return true if matches, false otherwise
 */
public static boolean matchesItem(String arg){
  if (arg.toUpperCase().startsWith("String_Node_Str"))   return true;
  return false;
}
Program: 10489
Project: 10489
Buggy source:
private void doElse(ScriptEntry scriptEntry){
  String elseCommand=null;
  if (scriptEntry.getObject("String_Node_Str") != null)   elseCommand=((String)scriptEntry.getObject("String_Node_Str")).toUpperCase();
  String[] elseArgs=null;
  if (scriptEntry.getObject("String_Node_Str") != null)   elseArgs=Arrays.copyOf((Object[])scriptEntry.getObject("String_Node_Str"),((Object[])scriptEntry.getObject("String_Node_Str")).length,String[].class);
  if (elseCommand == null)   return;
  try {
    denizen.getScriptEngine().getScriptExecuter().execute(new ScriptEntry(elseCommand,elseArgs,scriptEntry.getPlayer(),scriptEntry.getNPC(),scriptEntry.getScript().getName(),scriptEntry.getStep()));
  }
 catch (  ScriptEntryCreationException e) {
    dB.echoError("String_Node_Str");
    if (dB.showStackTraces) {
      dB.echoDebug("String_Node_Str");
      e.printStackTrace();
    }
 else     dB.echoDebug("String_Node_Str");
  }
}

Fixed version (ground truth):
private void doElse(ScriptEntry scriptEntry){
  String elseCommand=null;
  if (scriptEntry.getObject("String_Node_Str") != null)   elseCommand=((String)scriptEntry.getObject("String_Node_Str")).toUpperCase();
  String[] elseArgs=null;
  if (scriptEntry.getObject("String_Node_Str") != null)   elseArgs=Arrays.copyOf((Object[])scriptEntry.getObject("String_Node_Str"),((Object[])scriptEntry.getObject("String_Node_Str")).length,String[].class);
  if (elseCommand == null)   return;
  try {
    denizen.getScriptEngine().getScriptExecuter().execute(new ScriptEntry(elseCommand,elseArgs,scriptEntry.getPlayer(),scriptEntry.getNPC(),scriptEntry.getScript().getName(),scriptEntry.getStep()).addObject("String_Node_Str",scriptEntry.getObject("String_Node_Str")));
  }
 catch (  ScriptEntryCreationException e) {
    dB.echoError("String_Node_Str");
    if (dB.showStackTraces) {
      dB.echoDebug("String_Node_Str");
      e.printStackTrace();
    }
 else     dB.echoDebug("String_Node_Str");
  }
}
Program: 10490
Project: 10490
Buggy source:
private void doCommand(ScriptEntry scriptEntry){
  String outcomeCommand=((String)scriptEntry.getObject("String_Node_Str")).toUpperCase();
  String[] outcomeArgs=Arrays.copyOf((Object[])scriptEntry.getObject("String_Node_Str"),((Object[])scriptEntry.getObject("String_Node_Str")).length,String[].class);
  try {
    denizen.getScriptEngine().getScriptExecuter().execute(new ScriptEntry(outcomeCommand,outcomeArgs,scriptEntry.getPlayer(),scriptEntry.getNPC(),scriptEntry.getScript().getName(),scriptEntry.getStep()));
  }
 catch (  ScriptEntryCreationException e) {
    dB.echoError("String_Node_Str");
    if (dB.showStackTraces) {
      dB.echoDebug("String_Node_Str");
      e.printStackTrace();
    }
 else     dB.echoDebug("String_Node_Str");
  }
}

Fixed version (ground truth):
private void doCommand(ScriptEntry scriptEntry){
  String outcomeCommand=((String)scriptEntry.getObject("String_Node_Str")).toUpperCase();
  String[] outcomeArgs=Arrays.copyOf((Object[])scriptEntry.getObject("String_Node_Str"),((Object[])scriptEntry.getObject("String_Node_Str")).length,String[].class);
  try {
    denizen.getScriptEngine().getScriptExecuter().execute(new ScriptEntry(outcomeCommand,outcomeArgs,scriptEntry.getPlayer(),scriptEntry.getNPC(),scriptEntry.getScript().getName(),scriptEntry.getStep()).addObject("String_Node_Str",scriptEntry.getObject("String_Node_Str")));
  }
 catch (  ScriptEntryCreationException e) {
    dB.echoError("String_Node_Str");
    if (dB.showStackTraces) {
      dB.echoDebug("String_Node_Str");
      e.printStackTrace();
    }
 else     dB.echoDebug("String_Node_Str");
  }
}
Program: 10491
Project: 10491
Buggy source:
public Map<String,AbstractListener> getListenersFor(Player player){
  if (listeners.containsKey(player.getName())) {
    Map<String,AbstractListener> playerListeners=listeners.get(player.getName());
    return playerListeners;
  }
  return null;
}

Fixed version (ground truth):
public Map<String,AbstractListener> getListenersFor(OfflinePlayer player){
  if (listeners.containsKey(player.getName())) {
    Map<String,AbstractListener> playerListeners=listeners.get(player.getName());
    return playerListeners;
  }
  return null;
}
Program: 10492
Project: 10492
Buggy source:
public AbstractListener getListenerFor(Player player,String listenerId){
  if (listeners.containsKey(player.getName())) {
    Map<String,AbstractListener> playerListeners=listeners.get(player.getName());
    if (playerListeners.containsKey(listenerId.toLowerCase()))     return playerListeners.get(listenerId.toLowerCase());
  }
  return null;
}

Fixed version (ground truth):
public AbstractListener getListenerFor(OfflinePlayer player,String listenerId){
  if (listeners.containsKey(player.getName())) {
    Map<String,AbstractListener> playerListeners=listeners.get(player.getName());
    if (playerListeners.containsKey(listenerId.toLowerCase()))     return playerListeners.get(listenerId.toLowerCase());
  }
  return null;
}
Program: 10493
Project: 10493
Buggy source:
public void deconstructPlayer(OfflinePlayer player){
  denizen.getSaves().set("String_Node_Str" + player.getName(),null);
  if (!listeners.containsKey(player.getName())) {
    return;
  }
  for (  Map.Entry<String,AbstractListener> entry : getListenersFor((Player)player).entrySet()) {
    dB.log(player.getName() + "String_Node_Str" + entry.getKey()+ "String_Node_Str");
    entry.getValue().save();
  }
  listeners.remove(player);
}

Fixed version (ground truth):
public void deconstructPlayer(OfflinePlayer player){
  denizen.getSaves().set("String_Node_Str" + player.getName(),null);
  if (!listeners.containsKey(player.getName())) {
    return;
  }
  for (  Map.Entry<String,AbstractListener> entry : getListenersFor((OfflinePlayer)player).entrySet()) {
    dB.log(player.getName() + "String_Node_Str" + entry.getKey()+ "String_Node_Str");
    entry.getValue().save();
  }
  listeners.remove(player);
}
Program: 10495
Project: 10495
Buggy source:
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  for (  String arg : args) {
    if (aH.matchesQuantity(arg)) {
      quantity=aH.getDoubleFrom(arg);
      dB.echoDebug("String_Node_Str" + quantity);
    }
 else     throw new RequirementCheckException(Messages.ERROR_UNKNOWN_ARGUMENT,arg);
  }
  try {
    RegisteredServiceProvider<Economy> provider=Bukkit.getServicesManager().getRegistration(Economy.class);
    if (provider != null && provider.getProvider() != null) {
      Economy economy=provider.getProvider();
      balance=economy.getBalance(context.getPlayer().getName());
      dB.echoDebug("String_Node_Str" + balance);
    }
  }
 catch (  NoClassDefFoundError e) {
    dB.echoError("String_Node_Str");
  }
  if (balance >= quantity)   outcome=true;
 else   outcome=false;
  return outcome;
}

Fixed version (ground truth):
@Override public boolean check(RequirementsContext context,List<String> args) throws RequirementCheckException {
  for (  String arg : args) {
    if (aH.matchesQuantity(arg) || aH.matchesInteger(arg) || aH.matchesDouble(arg)) {
      quantity=aH.getDoubleFrom(arg);
      dB.echoDebug("String_Node_Str" + quantity);
    }
 else     throw new RequirementCheckException(Messages.ERROR_UNKNOWN_ARGUMENT,arg);
  }
  try {
    RegisteredServiceProvider<Economy> provider=Bukkit.getServicesManager().getRegistration(Economy.class);
    if (provider != null && provider.getProvider() != null) {
      Economy economy=provider.getProvider();
      balance=economy.getBalance(context.getPlayer().getName());
      dB.echoDebug("String_Node_Str" + balance);
    }
  }
 catch (  NoClassDefFoundError e) {
    dB.echoError("String_Node_Str");
  }
  if (balance >= quantity)   outcome=true;
 else   outcome=false;
  return outcome;
}
Program: 10496
Project: 10496
Buggy source:
public boolean hasAssignment(){
  if (!getCitizen().hasTrait(AssignmentTrait.class))   return false;
 else   return getCitizen().getTrait(AssignmentTrait.class).hasAssignment();
}

Fixed version (ground truth):
public boolean hasAssignment(){
  if (!getCitizen().hasTrait(AssignmentTrait.class))   return false;
  return getCitizen().getTrait(AssignmentTrait.class).hasAssignment();
}
Program: 10497
Project: 10497
Buggy source:
public void doAction(String actionName,DenizenNPC npc,Player player,String assignment){
  List<String> script=denizen.getScriptEngine().getScriptHelper().getStringListIgnoreCase(assignment + "String_Node_Str" + actionName);
  if (script.isEmpty())   return;
  dB.echoDebug(DebugElement.Header,"String_Node_Str" + actionName.toUpperCase() + "String_Node_Str"+ npc.toString());
  List<ScriptEntry> scriptEntries=denizen.getScriptEngine().getScriptBuilder().buildScriptEntries(player,npc,script,null,null);
  for (  ScriptEntry scriptEntry : scriptEntries)   denizen.getScriptEngine().getScriptExecuter().execute(scriptEntry);
}

Fixed version (ground truth):
public void doAction(String actionName,DenizenNPC npc,Player player,String assignment){
  dB.echoDebug("String_Node_Str" + actionName + "String_Node_Str"+ assignment);
  List<String> script=denizen.getScriptEngine().getScriptHelper().getStringListIgnoreCase(assignment + "String_Node_Str" + actionName);
  if (script.isEmpty())   return;
  dB.echoDebug(DebugElement.Header,"String_Node_Str" + actionName.toUpperCase() + "String_Node_Str"+ npc.toString());
  List<ScriptEntry> scriptEntries=denizen.getScriptEngine().getScriptBuilder().buildScriptEntries(player,npc,script,null,null);
  for (  ScriptEntry scriptEntry : scriptEntries)   denizen.getScriptEngine().getScriptExecuter().execute(scriptEntry);
}
Program: 10498
Project: 10498
Buggy source:
private boolean checkAssignment(String assignment){
  if (assignment.equals("String_Node_Str"))   return false;
  if (DenizenAPI.getCurrentInstance().getScriptEngine().getScriptHelper().getStringIgnoreCase(assignment + "String_Node_Str","String_Node_Str") != null && DenizenAPI.getCurrentInstance().getScriptEngine().getScriptHelper().getStringIgnoreCase(assignment + "String_Node_Str","String_Node_Str").equalsIgnoreCase("String_Node_Str"))   return true;
 else   return false;
}

Fixed version (ground truth):
private boolean checkAssignment(String assignment){
  if (assignment == null || assignment.equals("String_Node_Str"))   return false;
  if (DenizenAPI.getCurrentInstance().getScriptEngine().getScriptHelper().getStringIgnoreCase(assignment + "String_Node_Str") != null && DenizenAPI.getCurrentInstance().getScriptEngine().getScriptHelper().getStringIgnoreCase(assignment + "String_Node_Str").equalsIgnoreCase("String_Node_Str"))   return true;
 else   return false;
}
Program: 10499
Project: 10499
Buggy source:
private Map<String,String> rebuildAssignmentConstants(){
  if (!npc.hasTrait(AssignmentTrait.class)) {
    assignmentConstants.clear();
    return assignmentConstants;
  }
  assignment=npc.getTrait(AssignmentTrait.class).getAssignment();
  assignmentConstants.clear();
  if (DenizenAPI.getCurrentInstance().getScripts().contains(assignment.toUpperCase() + "String_Node_Str"))   for (  String constant : DenizenAPI.getCurrentInstance().getScripts().getConfigurationSection(assignment.toUpperCase() + "String_Node_Str").getKeys(false))   assignmentConstants.put(constant.toLowerCase(),DenizenAPI.getCurrentInstance().getScripts().getString(assignment.toUpperCase() + "String_Node_Str" + constant.toUpperCase(),"String_Node_Str"));
  return assignmentConstants;
}

Fixed version (ground truth):
private Map<String,String> rebuildAssignmentConstants(){
  if (!npc.hasTrait(AssignmentTrait.class) || !npc.getTrait(AssignmentTrait.class).hasAssignment()) {
    assignmentConstants.clear();
    return assignmentConstants;
  }
  assignment=npc.getTrait(AssignmentTrait.class).getAssignment();
  assignmentConstants.clear();
  if (DenizenAPI.getCurrentInstance().getScripts().contains(assignment.toUpperCase() + "String_Node_Str"))   for (  String constant : DenizenAPI.getCurrentInstance().getScripts().getConfigurationSection(assignment.toUpperCase() + "String_Node_Str").getKeys(false))   assignmentConstants.put(constant.toLowerCase(),DenizenAPI.getCurrentInstance().getScripts().getString(assignment.toUpperCase() + "String_Node_Str" + constant.toUpperCase(),"String_Node_Str"));
  return assignmentConstants;
}
Program: 10500
Project: 10500
Buggy source:
public boolean isEnabled(String triggerName){
  if (enabled.containsKey(triggerName.toUpperCase()))   return enabled.get(triggerName.toUpperCase());
 else   return false;
}

Fixed version (ground truth):
public boolean isEnabled(String triggerName){
  if (!DenizenAPI.getDenizenNPC(npc).hasAssignment())   return false;
  if (enabled.containsKey(triggerName.toUpperCase()))   return enabled.get(triggerName.toUpperCase());
 else   return false;
}
Program: 10501
Project: 10501
Buggy source:
public void setLocalRadius(String triggerName,int value){
  if (radius.containsKey(triggerName.toUpperCase()))   radius.put(triggerName,value);
}

Fixed version (ground truth):
public void setLocalRadius(String triggerName,int value){
  if (triggerName == null)   return;
  if (radius.containsKey(triggerName.toUpperCase()))   radius.put(triggerName,value);
}
Program: 10502
Project: 10502
Buggy source:
public List<String> getScriptContents(String path){
  List<String> contents=new ArrayList<String>();
  path=path.toUpperCase().replace("String_Node_Str","String_Node_Str");
  if (denizen.getScripts().contains(path.toUpperCase()))   contents=denizen.getScripts().getStringList(path.toUpperCase());
  if (contents.isEmpty()) {
    dB.echoError("String_Node_Str");
    String spacing="String_Node_Str";
    for (    String node : path.split("String_Node_Str")) {
      dB.echoDebug(spacing + node);
      spacing=spacing + "String_Node_Str";
    }
    dB.echoDebug(spacing + "String_Node_Str");
    dB.echoError("String_Node_Str");
  }
  return contents;
}

Fixed version (ground truth):
public List<String> getScriptContents(String path){
  List<String> contents=new ArrayList<String>();
  path=path.toUpperCase().replace("String_Node_Str","String_Node_Str");
  if (denizen.getScripts().contains(path.toUpperCase()))   contents=denizen.getScripts().getStringList(path.toUpperCase());
  if (contents.isEmpty()) {
    if (path.toUpperCase().contains("String_Node_Str")) {
      String[] context=path.split("String_Node_Str");
      if (context.length >= 4)       dB.echoDebug(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ "String_Node_Str"+ context[3]+ "String_Node_Str"+ context[0].toUpperCase()+ "String_Node_Str"+ context[2].toUpperCase()+ "String_Node_Str");
      return contents;
    }
    dB.echoDebug(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ "String_Node_Str");
    String spacing="String_Node_Str";
    for (    String node : path.split("String_Node_Str")) {
      dB.echoDebug(spacing + node + "String_Node_Str");
      spacing=spacing + "String_Node_Str";
    }
    dB.echoDebug(spacing.substring(0,spacing.length() - 1) + "String_Node_Str");
    dB.echoDebug("String_Node_Str");
  }
  return contents;
}
Program: 10503
Project: 10503
Buggy source:
private void doElse(ScriptEntry scriptEntry){
  String elseCommand=((String)scriptEntry.getObject("String_Node_Str")).toUpperCase();
  String[] elseArgs=Arrays.copyOf((Object[])scriptEntry.getObject("String_Node_Str"),((Object[])scriptEntry.getObject("String_Node_Str")).length,String[].class);
  try {
    denizen.getScriptEngine().getScriptExecuter().execute(new ScriptEntry(elseCommand,elseArgs,scriptEntry.getPlayer(),scriptEntry.getNPC(),scriptEntry.getScript(),scriptEntry.getStep()));
  }
 catch (  ScriptEntryCreationException e) {
    dB.echoError("String_Node_Str");
    if (dB.showStackTraces) {
      dB.echoDebug("String_Node_Str");
      e.printStackTrace();
    }
 else     dB.echoDebug("String_Node_Str");
  }
}

Fixed version (ground truth):
private void doElse(ScriptEntry scriptEntry){
  String elseCommand=null;
  if (scriptEntry.getObject("String_Node_Str") != null)   elseCommand=((String)scriptEntry.getObject("String_Node_Str")).toUpperCase();
  String[] elseArgs=null;
  if (scriptEntry.getObject("String_Node_Str") != null)   elseArgs=Arrays.copyOf((Object[])scriptEntry.getObject("String_Node_Str"),((Object[])scriptEntry.getObject("String_Node_Str")).length,String[].class);
  if (elseCommand == null)   return;
  try {
    denizen.getScriptEngine().getScriptExecuter().execute(new ScriptEntry(elseCommand,elseArgs,scriptEntry.getPlayer(),scriptEntry.getNPC(),scriptEntry.getScript(),scriptEntry.getStep()));
  }
 catch (  ScriptEntryCreationException e) {
    dB.echoError("String_Node_Str");
    if (dB.showStackTraces) {
      dB.echoDebug("String_Node_Str");
      e.printStackTrace();
    }
 else     dB.echoDebug("String_Node_Str");
  }
}
Program: 10504
Project: 10504
Buggy source:
public boolean parse(DenizenNPC npc,Player player,String script){
  if (npc == null || player == null || script == null)   return false;
  dB.echoDebug(DebugElement.Header,"String_Node_Str" + name + "String_Node_Str"+ npc.getName()+ "String_Node_Str"+ player.getName());
  dB.echoDebug("String_Node_Str");
  String theStep=sH.getCurrentStep(player,script);
  List<String> theScript=sH.getScriptContents(sH.getTriggerScriptPath(script,theStep,name) + sH.scriptKey);
  sB.queueScriptEntries(player,sB.buildScriptEntries(player,npc,theScript,script,theStep),QueueType.PLAYER);
  return true;
}

Fixed version (ground truth):
public boolean parse(DenizenNPC npc,Player player,String script){
  if (npc == null || player == null || script == null)   return false;
  dB.echoDebug(DebugElement.Header,"String_Node_Str" + name + "String_Node_Str"+ npc.getName()+ "String_Node_Str"+ player.getName());
  String theStep=sH.getCurrentStep(player,script);
  List<String> theScript=sH.getScriptContents(sH.getTriggerScriptPath(script,theStep,name) + sH.scriptKey);
  if (theScript.isEmpty())   return false;
  sB.queueScriptEntries(player,sB.buildScriptEntries(player,npc,theScript,script,theStep),QueueType.PLAYER);
  return true;
}
Program: 10505
Project: 10505
Buggy source:
@Override public void registerCoreMembers(){
  new ClickTrigger().activate().as("String_Node_Str").withOptions(true,2.0,CooldownType.PLAYER);
  new DamageTrigger().activate().as("String_Node_Str").withOptions(false,0.5,CooldownType.NPC);
  new ChatTrigger().activate().as("String_Node_Str").withOptions(true,2.0,CooldownType.PLAYER);
  new ProximityTrigger().activate().as("String_Node_Str").withOptions(true,1.0,CooldownType.PLAYER);
  dB.echoApproval("String_Node_Str" + instances.keySet().toString());
}

Fixed version (ground truth):
@Override public void registerCoreMembers(){
  new ClickTrigger().activate().as("String_Node_Str").withOptions(true,2.0,CooldownType.PLAYER);
  new DamageTrigger().activate().as("String_Node_Str").withOptions(false,0.5,CooldownType.NPC);
  new ChatTrigger().activate().as("String_Node_Str").withOptions(true,2.0,CooldownType.PLAYER);
  new ProximityTrigger().activate().as("String_Node_Str").withOptions(true,5.0,5,CooldownType.PLAYER);
  dB.echoApproval("String_Node_Str" + instances.keySet().toString());
}
Program: 10506
Project: 10506
Buggy source:
@EventHandler public void clickTrigger(NPCRightClickEvent event){
  if (!event.getNPC().hasTrait(TriggerTrait.class))   return;
  if (!event.getNPC().getTrait(TriggerTrait.class).isEnabled(name))   return;
  if (!event.getNPC().getTrait(TriggerTrait.class).trigger(this,event.getClicker()))   return;
  String script=sH.getInteractScript(event.getNPC(),event.getClicker(),this.getClass());
  event.getNPC().getTrait(TriggerTrait.class).getRadius(name);
  if (!parse(denizen.getNPCRegistry().getDenizen(event.getNPC()),event.getClicker(),script))   denizen.getNPCRegistry().getDenizen(event.getNPC()).action("String_Node_Str",event.getClicker());
}

Fixed version (ground truth):
@EventHandler public void clickTrigger(NPCRightClickEvent event){
  if (!event.getNPC().hasTrait(TriggerTrait.class))   return;
  if (!event.getNPC().getTrait(TriggerTrait.class).isEnabled(name))   return;
  dB.echoDebug("String_Node_Str");
  if (!event.getNPC().getTrait(TriggerTrait.class).trigger(this,event.getClicker()))   return;
  dB.echoDebug("String_Node_Str");
  String script=sH.getInteractScript(event.getNPC(),event.getClicker(),this.getClass());
  if (!parse(denizen.getNPCRegistry().getDenizen(event.getNPC()),event.getClicker(),script))   denizen.getNPCRegistry().getDenizen(event.getNPC()).action("String_Node_Str",event.getClicker());
}