[Demonstration 1]

[Buggy Method]
public static Base settlement(Stage world, String customTitle, Faction faction) {
    final Base base = namedBase(world, faction.name);
    if (base != null)
        return base;
    final Blueprint[] canBuild = Blueprint.allCivicBlueprints();
    final Base made = registerBase(new Base(world, faction), world, canBuild);
    if (customTitle != null)
        made.title = customTitle;
    return made;
}

[Buggy Hunk]
final Base base = namedBase(world, faction.name);

[Patch]
final Base base = findBase(world, null, faction);

[Demonstration 2]

[Buggy Method]
public static ClientAccessTokenProvider get(String client_id, String client_secret, String... scopes) {
    boolean createNew = false;
    if (CACHE == null) {
        createNew = true;
    } else {
        if (!CACHE.client_id.equals(client_id)) {
            // client_id doesn't match...createNew
            createNew = true;
        } else {
            for (String requiredScope : scopes) {
                boolean found = false;
                for (String availScope : CACHE.scopes) {
                    if (availScope == requiredScope) {
                        found = true;
                        break;
                    }
                }
                if (!found) {
                    createNew = true;
                    break;
                }
            }
        }
    }
    if (createNew)
        CACHE = new ClientAccessTokenProvider(client_id, client_secret, scopes);
    return CACHE;
}

[Buggy Hunk]
if(availScope == requiredScope) {

[Patch]
if(availScope.equals(requiredScope)) {

[Demonstration 3]

[Buggy Method]
public String getFormula(Response pattern) {
    String baseFormula = "[](P->(P&l<>Q)))";
    return baseFormula;
}

[Buggy Hunk]
public String getFormula(Response pattern) {

[Patch]
public static String getFormula(Response pattern) {