[Demonstration 1]

[Buggy Method]
public String findStringOfUniqueSymbols(String inputStr) {
    // Zero length string handle.
    if (inputStr.length() == 0) {
        return "";
    }
    // Fetching unique symbols to set
    char[] chars = inputStr.toCharArray();
    for (char c : chars) {
        set.add(c);
    }
    int setSize = set.size();
    // Loop to go through input string
    for (int i = 0; i < chars.length - setSize; i++) {
        // Making a copy of the set
        backupSet.clear();
        backupSet.addAll(set);
        // Loop to compare every symbol in substring with symbols in the set.
        for (int j = i; j < j + setSize; j++) {
            // If it's impossible to delete symbol from the set(it's already deleted),
            // this isn't the string we are looking for
            if (!backupSet.remove(chars[j])) {
                break;
            }
            // If all the symbols are deleted - we have our winner
            if (backupSet.size() == 0) {
                set.clear();
                return inputStr.substring(i, i + setSize);
            }
        }
    }
    set.clear();
    // If nothing found
    return "No such substring";
}

[Buggy Hunk]
for (int i = 0; i < chars.length - setSize; i++) {

[Patch]
for (int i = 0; i < chars.length - setSize + 1; i++) {

[Demonstration 2]

[Buggy Method]
public String Decrypt(String toDecrypt, String key) {
    char[] chars = toDecrypt.toCharArray();
    char[] newChars = new char[chars.length];
    for (int i = 0; i < chars.length; i++) {
        if (chars[i] > 31 && chars[i] < 240) {
            char c = '?';
            for (int j = 0; j < key.length(); j++) {
                if (key.charAt(j) == chars[i]) {
                    c = key.charAt(j);
                    break;
                }
            }
            newChars[i] = c;
        } else {
            newChars[i] = chars[i];
        }
    }
    return new String(newChars);
}

[Buggy Hunk]
public String Decrypt(String toDecrypt, String key)

[Patch]
public static String Decrypt(String toDecrypt, String key)

[Demonstration 3]

[Buggy Method]
public void addPoint(Point point) {
    stream.getData().add(point);
    if (stream.getData().size() >= length) {
        Sequence sequence = new Sequence();
        sequence.setPoints(stream.getData());
        subsequences.add(sequence);
        stream.clear();
    }
}

[Buggy Hunk]
sequence.setPoints(stream.getData());

[Patch]
sequence.setPoints(new ArrayList<>(stream.getData()));