[Demonstration 1]

[Buggy Method]
public static Loader getLoaderByVersion(String version, TracerBlocker tracerBlocker, ProtocolManager protocolManager) {
    for (Version ver : values()) {
        if (ver.getVersion().equalsIgnoreCase(version)) {
            return ver.getLoader(tracerBlocker, protocolManager);
        }
    }
    return null;
}

[Buggy Hunk]
if(ver.getVersion().equalsIgnoreCase(version)) {

[Patch]
if(ver.getVersion().contains(version)) {

[Demonstration 2]

[Buggy Method]
public boolean isAuthentication(String password) throws UnsupportedEncodingException, NoSuchAlgorithmException {
    return Hashcypher.authenticate(this.password, password);
}

[Buggy Hunk]
return Hashcypher.authenticate(this.password, password);

[Patch]
return Hashcypher.authenticate(password, this.password);

[Demonstration 3]

[Buggy Method]
public void fetchNotifications(User user) throws IOException {
    GitHubApi api = new GitHubApi(user.accessToken());
    String lastUpdated = DatastoreConstants.GITHUB_DATE_FORMAT.format(user.lastUpdated());
    JSONArray notifications = api.getArray(ProdConstants.GITHUB_NOTIFICATIONS_URL + "?since=" + lastUpdated);
    store(notifications, user);
}

[Buggy Hunk]
GitHubApi api = new GitHubApi(user.accessToken());

[Patch]
GitHubApi api = getApi(user);