[Demonstration 1]

[Buggy Method]
public static void main(String[] args) {
    new GuildBot(args[0]);
}

[Buggy Hunk]
new GuildBot(args[0]);

[Patch]
bot = new GuildBot(args[0]);

[Demonstration 2]

[Buggy Method]
Song getTestSong() {
    String fileName = "LooneyToonsEnd.wav";
    String path = System.getProperty("user.dir") + "\\src\\main\\java\\tempFiles\\" + fileName;
    byte[] songBytes = null;
    int size = 0;
    try {
        File file = new File(path);
        InputStream inputStream = new FileInputStream(file);
        size = inputStream.available();
        songBytes = new byte[size];
        inputStream.read(songBytes);
        inputStream.close();
    } catch (IOException e) {
        e.printStackTrace();
    }
    return new Song("LooneyToons", null, "");
}

[Buggy Hunk]
return new Song("LooneyToons", null, "");

[Patch]
return new Song("LooneyToons", null, fileName);

[Demonstration 3]

[Buggy Method]
public Queue<GridPosition.Direction> pathTo(Entity entity, GridPosition destination) {
    GridPosition startNode = entity.getPosition();
    Set<GridPosition> closedList = new HashSet<>();
    LinkedList<GridPosition> openList = new LinkedList<>();
    Map<GridPosition, GridPosition.Direction> pathParent = new HashMap<>();
    openList.add(startNode);
    while (!openList.isEmpty()) {
        GridPosition node = openList.removeFirst();
        if (node == destination) {
            return constructPath(pathParent, destination);
        } else {
            closedList.add(node);
            // add neighbors to the open list
            for (GridPosition.Direction direction : GridPosition.Direction.values()) {
                GridPosition neighborNode = node.getNeighbor(direction);
                if (!closedList.contains(neighborNode) && !openList.contains(neighborNode)) {
                    pathParent.put(neighborNode, direction.invert());
                    openList.add(neighborNode);
                }
            }
        }
    }
    return null;
}

[Buggy Hunk]
if (node == destination) {

[Patch]
if (node.equals(destination)) {