[Demonstration 1]

[Buggy Method]
public List<Cue> getCues(long timeUs, Map<String, TtmlStyle> globalStyles, Map<String, TtmlRegion> regionMap) {
    TreeMap<String, SpannableStringBuilder> regionOutputs = new TreeMap<>();
    traverseForText(timeUs, false, regionId, regionOutputs);
    traverseForStyle(globalStyles, regionOutputs);
    List<Cue> cues = new ArrayList<>();
    for (Entry<String, SpannableStringBuilder> entry : regionOutputs.entrySet()) {
        TtmlRegion region = regionMap.get(entry.getKey());
        cues.add(new Cue(cleanUpText(entry.getValue()), null, region.line, Cue.TYPE_UNSET, Cue.TYPE_UNSET, region.position, Cue.TYPE_UNSET, region.width));
    }
    return cues;
}

[Buggy Hunk]
cues.add(new Cue(cleanUpText(entry.getValue()), null, region.line, Cue.TYPE_UNSET,

[Patch]
cues.add(new Cue(cleanUpText(entry.getValue()), null, region.line, region.lineType,

[Demonstration 2]

[Buggy Method]
private void setMode(final int mode) {
    EnumShipCoreMode[] modes = EnumShipCoreMode.values();
    if (mode >= 0 && mode <= modes.length) {
        this.mode = modes[mode];
        markDirty();
        if (WarpDriveConfig.LOGGING_JUMP && hasWorldObj()) {
            WarpDrive.logger.info(this + " Mode set to " + this.mode + " (" + this.mode.getCode() + ")");
        }
    }
}

[Buggy Hunk]
if (mode >= 0 && mode <= modes.length) {

[Patch]
if (modes[mode] != null) {

[Demonstration 3]

[Buggy Method]
public static void main(String[] args) throws SQLException {
    Connection conn = DriverManager.getConnection("jdbc:h2:./main");
    () -> {
    }.start();
    Statement stmt = conn.createStatement();
    stmt.execute("CREATE TABLE id IDENTITY, username VARCHAR, address VARCHAR, email VARCHAR");
}

[Buggy Hunk]
().start();

[Patch]
Server.createWebServer().start();