[Demonstration 1]

[Buggy Method]
@Override
public void actionPerformed(ActionEvent e) {
    ProgressHandle p = ProgressHandleFactory.createHandle("Recording snapshot...");
    p.start();
    logger.log(Level.INFO, "Creating snapshot...");
    SnapshotBuffer buffer = SnapshotManager.getCurrentBuffer();
    buffer.stopBuffering(3000);
    buffer.writeToFile();
    p.finish();
}

[Buggy Hunk]
buffer.stopBuffering(3000);

[Patch]
buffer.stopBuffering(Options.getSnapshotBufferFinish());

[Demonstration 2]

[Buggy Method]
@Override
public void run() {
    JBufferHandler<String> handler = new JBufferHandler<String>() {

        @Override
        public void nextPacket(PcapHeader ph, JBuffer jb, String t) {
            try {
                ProcessingChain chain = ProcessingChain.FORWARD;
                Packet packet = new Packet(Receiver.this.networkInterface, jb);
                if (packet.getEthernetType() == EthernetType.IPV4) {
                    for (NetworkInterface iface : NetworkInterfaceImpl.this.routerController.getModule(InterfaceManagerModule.class).getNetworkInterfaces()) {
                        if (iface.getIPv4InterfaceAddress() != null && packet.getDestinationIPv4Address().equals(iface.getIPv4InterfaceAddress().getAddress())) {
                            chain = ProcessingChain.INPUT;
                            break;
                        }
                    }
                } else if (packet.getDestinationHardwareAddress().equals(Receiver.this.networkInterface.getHardwareAddress()) || packet.getDestinationHardwareAddress().isBroadcast()) {
                    chain = ProcessingChain.INPUT;
                }
                packet.setProcessingChain(chain);
                Receiver.this.networkInterface.routerController.getPacketProcessor().processPacket(packet);
            } catch (PacketException | NoSuchModuleException ex) {
                Receiver.this.networkInterface.logger.warn("Failed to process incoming packet on interface {}", Receiver.this.networkInterface.getName(), ex);
            }
        }
    };
    while (this.running) {
        this.networkInterface.pcap.loop(1, handler, null);
    }
}

[Buggy Hunk]
this.networkInterface.pcap.loop(1, handler, null);

[Patch]
this.networkInterface.pcap.dispatch(10, handler, null);

[Demonstration 3]

[Buggy Method]
@Override
public String getLabel() {
    return BundleUtil.getString(MODULE_BUNDLE, "label." + this.getClass().getSimpleName(), getCredits().toString(), getConfiguration().getCurricularPeriod().getFullLabel());
}

[Buggy Hunk]
getConfiguration().getCurricularPeriod().getFullLabel());

[Patch]
getYearMin().toString());