[Demonstration 1]

[Buggy Method]
@Override
protected URLConnection openConnection(URL u) throws IOException {
    return new URLConnection(u) {

        @Override
        public void connect() throws IOException {
        }

        @Override
        public InputStream getInputStream() throws IOException {
            return new FileInputStream(new File(tempDir, name));
        }
    };
}

[Buggy Hunk]
return new FileInputStream(new File(tempDir, name));

[Patch]
return new FileInputStream(file);

[Demonstration 2]

[Buggy Method]
public static Page parse(final Reader in) throws ParseException, IOException {
    return parse(in, new ParserConstants());
}

[Buggy Hunk]
return parse(in, new ParserConstants());

[Patch]
return parse(in, new ParserConstants(),true);

[Demonstration 3]

[Buggy Method]
private boolean runTheCommand(final String command, final AbstractBuild<?, ?> build, final Launcher launcher, final BuildListener listener) throws InterruptedException {
    if (SystemUtils.IS_OS_WINDOWS) {
        commandInterpreter = new BatchFile(command);
    } else {
        commandInterpreter = new Shell(command);
    }
    LOGGER.log(Level.FINEST, "Executing command: " + command);
    return commandInterpreter.perform(build, launcher, listener);
}

[Buggy Hunk]
if (SystemUtils.IS_OS_WINDOWS) {

[Patch]
if (isOsWindows(launcher)) {