[Demonstration 1]

[Buggy Method]
@Test
public void testLoadSctData() throws Exception {
    assert snomedDataSource != null;
    final File intFile = new File(intFilePath);
    final File extentionFile = new File(extentionFilePath);
    assertNotNull(extentionFile);
    final String versionName = "test_20150131";
    releaseDataManager.loadSnomedData(versionName, intFile);
    try (Connection connection = snomedDataSource.getConnection();
        ResultSet catalogs = connection.getMetaData().getCatalogs()) {
        boolean exists = false;
        while (catalogs.next()) {
            final String catalogName = catalogs.getString(1);
            if (catalogName.equals(versionName)) {
                exists = true;
                break;
            }
        }
        assertTrue("Schema name must exist : " + versionName, exists);
    }
}

[Buggy Hunk]
releaseDataManager.loadSnomedData(versionName, intFile);

[Patch]
releaseDataManager.loadSnomedData(versionName, intFile, extentionFile);

[Demonstration 2]

[Buggy Method]
@Override
public void handleEvent(final StreamConnection channel) {
    if (UndertowLogger.REQUEST_LOGGER.isTraceEnabled()) {
        UndertowLogger.REQUEST_LOGGER.tracef("Opened connection with %s", channel.getPeerAddress());
    }
    //set read and write timeouts
    try {
        Integer readTimeout = channel.getOption(Options.READ_TIMEOUT);
        Integer idleTimeout = undertowOptions.get(UndertowOptions.IDLE_TIMEOUT);
        if ((readTimeout == null || readTimeout <= 0) && idleTimeout != null) {
            readTimeout = idleTimeout;
        } else if (readTimeout != null && idleTimeout != null && idleTimeout > 0) {
            readTimeout = Math.min(readTimeout, idleTimeout);
        }
        if (readTimeout != null && readTimeout > 0) {
            channel.getSourceChannel().setConduit(new ReadTimeoutStreamSourceConduit(channel.getSourceChannel().getConduit(), channel, this));
        }
        Integer writeTimeout = channel.getOption(Options.WRITE_TIMEOUT);
        if ((writeTimeout == null || writeTimeout <= 0) && idleTimeout != null) {
            writeTimeout = idleTimeout;
        } else if (writeTimeout != null && idleTimeout != null && idleTimeout > 0) {
            writeTimeout = Math.min(writeTimeout, idleTimeout);
        }
        if (writeTimeout != null && writeTimeout > 0) {
            channel.getSinkChannel().setConduit(new WriteTimeoutStreamSinkConduit(channel.getSinkChannel().getConduit(), channel, this));
        }
    } catch (IOException e) {
        IoUtils.safeClose(channel);
        UndertowLogger.REQUEST_IO_LOGGER.ioException(e);
    }
    if (statisticsEnabled) {
        channel.getSinkChannel().setConduit(new BytesSentStreamSinkConduit(channel.getSinkChannel().getConduit(), connectorStatistics.sentAccumulator()));
        channel.getSourceChannel().setConduit(new BytesReceivedStreamSourceConduit(channel.getSourceChannel().getConduit(), connectorStatistics.sentAccumulator()));
    }
    AjpServerConnection connection = new AjpServerConnection(channel, bufferPool, rootHandler, undertowOptions, bufferSize);
    AjpReadListener readListener = new AjpReadListener(connection, scheme, parser, statisticsEnabled ? connectorStatistics : null);
    connection.setAjpReadListener(readListener);
    readListener.startRequest();
    channel.getSourceChannel().setReadListener(readListener);
    readListener.handleEvent(channel.getSourceChannel());
}

[Buggy Hunk]
channel.getSourceChannel().setConduit(new BytesReceivedStreamSourceConduit(channel.getSourceChannel().getConduit(), connectorStatistics.sentAccumulator()));

[Patch]
channel.getSourceChannel().setConduit(new BytesReceivedStreamSourceConduit(channel.getSourceChannel().getConduit(), connectorStatistics.receivedAccumulator()));

[Demonstration 3]

[Buggy Method]
public Connection createConnection() throws JMSException {
    return createConnection(properties.getUser(), properties.getPassword());
}

[Buggy Hunk]
return createConnection(properties.getUser(), properties.getPassword());

[Patch]
return createConnection(this.properties.getUser(), this.properties.getPassword());