[Demonstration 1]

[Buggy Method]
public ApiSurface includingPackage(String packageName) throws IOException {
    ClassPath classPath = ClassPath.from(ClassLoader.getSystemClassLoader());
    Set<Class<?>> newRootClasses = Sets.newHashSet();
    for (ClassInfo classInfo : classPath.getTopLevelClassesRecursive(packageName)) {
        Class clazz = classInfo.load();
        if (exposed(clazz.getModifiers())) {
            newRootClasses.add(clazz);
        }
    }
    LOG.debug("Including package {} and subpackages: {}", packageName, newRootClasses);
    newRootClasses.addAll(rootClasses);
    return new ApiSurface(newRootClasses, patternsToPrune);
}

[Buggy Hunk]
ClassPath classPath = ClassPath.from(ClassLoader.getSystemClassLoader());

[Patch]
ClassPath classPath = ClassPath.from(getSdkClassLoader());

[Demonstration 2]

[Buggy Method]
public boolean allClientsAhead(Long workQueueHeadTime) {
    synchronized (lock) {
        for (Client client : registeredClients) {
            Long time = lastItemTimesByClient.get(client.getClientId());
            //client hasn't parsed any items yet, so time is null
            //workQueueHeadTime is ahead of any registered client last workQueueHeadTime
            if (time == null || workQueueHeadTime > time) {
                return false;
            }
        }
    }
    return true;
}

[Buggy Hunk]
if (time == null || workQueueHeadTime > time) {

[Patch]
if (time == null || workQueueHeadTime >= time) {