Program: 158531
Project: 158531
Buggy source:
@Override public boolean apply(Game game,Ability source){
  if (game.getBattlefield().contains(filterFlying,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(FlyingAbility.getInstance(),Duration.EndOfTurn),source);
  }
  if (game.getBattlefield().contains(filterFear,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(FearAbility.getInstance(),Duration.EndOfTurn),source);
  }
  if (game.getBattlefield().contains(filterFirstStrike,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(),Duration.EndOfTurn),source);
  }
  if (game.getBattlefield().contains(filterDoubleStrike,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(),Duration.EndOfTurn),source);
  }
  for (  Permanent permanent : game.getBattlefield().getAllActivePermanents(filterLandwalk,source.getControllerId(),game)) {
    for (    Ability ability : permanent.getAbilities(game)) {
      if (ability instanceof LandwalkAbility) {
        game.addEffect(new GainAbilityControlledEffect(ability,Duration.EndOfTurn),source);
      }
    }
  }
  for (  Permanent permanent : game.getBattlefield().getAllActivePermanents(filterProtection,source.getControllerId(),game)) {
    for (    Ability ability : permanent.getAbilities(game)) {
      if (ability instanceof ProtectionAbility) {
        game.addEffect(new GainAbilityControlledEffect(ability,Duration.EndOfTurn),source);
      }
    }
  }
  if (game.getBattlefield().contains(filterTrample,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(TrampleAbility.getInstance(),Duration.EndOfTurn),source);
  }
  if (game.getBattlefield().contains(filterVigilance,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(VigilanceAbility.getInstance(),Duration.EndOfTurn),source);
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean apply(Game game,Ability source){
  if (game.getBattlefield().contains(filterFlying,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(FlyingAbility.getInstance(),Duration.EndOfTurn,filterCreatures),source);
  }
  if (game.getBattlefield().contains(filterFear,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(FearAbility.getInstance(),Duration.EndOfTurn,filterCreatures),source);
  }
  if (game.getBattlefield().contains(filterFirstStrike,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(),Duration.EndOfTurn,filterCreatures),source);
  }
  if (game.getBattlefield().contains(filterDoubleStrike,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(),Duration.EndOfTurn,filterCreatures),source);
  }
  for (  Permanent permanent : game.getBattlefield().getAllActivePermanents(filterLandwalk,source.getControllerId(),game)) {
    for (    Ability ability : permanent.getAbilities(game)) {
      if (ability instanceof LandwalkAbility) {
        game.addEffect(new GainAbilityControlledEffect(ability,Duration.EndOfTurn,filterCreatures),source);
      }
    }
  }
  for (  Permanent permanent : game.getBattlefield().getAllActivePermanents(filterProtection,source.getControllerId(),game)) {
    for (    Ability ability : permanent.getAbilities(game)) {
      if (ability instanceof ProtectionAbility) {
        game.addEffect(new GainAbilityControlledEffect(ability,Duration.EndOfTurn,filterCreatures),source);
      }
    }
  }
  if (game.getBattlefield().contains(filterTrample,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(TrampleAbility.getInstance(),Duration.EndOfTurn,filterCreatures),source);
  }
  if (game.getBattlefield().contains(filterVigilance,source.getControllerId(),1,game)) {
    game.addEffect(new GainAbilityControlledEffect(VigilanceAbility.getInstance(),Duration.EndOfTurn,filterCreatures),source);
  }
  return true;
}