[Demonstration 1]

[Buggy Method]
private static void convertRaster(final PSDLayer input, final LayerElement output, final ConvertionSettings settings) {
    final PSDRasterPosition position = input.getRaster().getPosition();
    output.is_hidden = !input.isVisible();
    output.name = input.getName();
    if (output.name.startsWith("@")) {
        throw new Error("Bad layer name: " + output.name);
    }
    // if (input.getName().startsWith("area_touch1")) {
    // L.d();
    // }
    final Float2 offset = settings.getCurrentOffset();
    final double scale_factor = settings.getScaleFactor();
    output.is_raster = true;
    output.blend_mode = RASTER_BLEND_MODE.valueOf(input.getMode().toString());
    output.position_x = position.getX() * scale_factor + offset.getX();
    output.position_y = position.getY() * scale_factor + offset.getY();
    output.width = position.getWidth() * scale_factor;
    output.opacity = input.getOpacity();
    output.height = position.getHeight() * scale_factor;
    final PsdRepackerNameResolver naming = settings.getNaming();
    final SceneStructurePackingResult result = settings.getResult();
    final String raster_name = naming.getPSDLayerName(input).toString();
    output.raster_id = raster_name;
    result.addRequiredAsset(Names.newID(output.raster_id), Collections.newList(input));
}

[Buggy Hunk]
throw new Error("Bad layer name: " + output.name);

[Patch]
Err.reportError("Bad layer name: " + output.name);

[Demonstration 2]

[Buggy Method]
@Override
protected List<ReportingMessage> onKitCreate(Map<String, String> settings, Context context) {
    if (MParticle.isAndroidIdDisabled()) {
        Leanplum.setDeviceIdMode(LeanplumDeviceIdMode.ADVERTISING_ID);
    }
    if (MParticle.getInstance().getEnvironment().equals(MParticle.Environment.Development)) {
        Leanplum.enableVerboseLoggingInDevelopmentMode();
        Leanplum.setAppIdForDevelopmentMode(settings.get(APP_ID_KEY), settings.get(CLIENT_KEY_KEY));
    } else {
        Leanplum.setAppIdForProductionMode(settings.get(APP_ID_KEY), settings.get(CLIENT_KEY_KEY));
    }
    Map<String, Object> attributes = getAllUserAttributes();
    Map<MParticle.IdentityType, String> identities = getUserIdentities();
    String userId;
    if (USER_ID_CUSTOMER_ID_VALUE.equalsIgnoreCase(settings.get(USER_ID_FIELD_KEY))) {
        userId = identities.get(MParticle.IdentityType.CustomerId);
    } else {
        userId = identities.get(MParticle.IdentityType.Email);
    }
    if (!TextUtils.isEmpty(userId)) {
        if (attributes.size() > 0) {
            Leanplum.start(context, userId, attributes);
        } else {
            Leanplum.start(context, attributes);
        }
    } else if (attributes.size() > 0) {
        Leanplum.start(context, attributes);
    } else {
        Leanplum.start(context);
    }
    LeanplumActivityHelper.enableLifecycleCallbacks((Application) context.getApplicationContext());
    List<ReportingMessage> messageList = new LinkedList<ReportingMessage>();
    messageList.add(new ReportingMessage(this, ReportingMessage.MessageType.APP_STATE_TRANSITION, System.currentTimeMillis(), null));
    return messageList;
}

[Buggy Hunk]
Leanplum.start(context, attributes);

[Patch]
Leanplum.start(context, userId);

[Demonstration 3]

[Buggy Method]
public void modifImageFantome(Pacman pacman, Pacman pacman2, Fantome[] tabFantomes) {
    //
    if (pacman.isInvicible() || pacman2.isInvicible()) {
        for (Fantome f : tabFantomes) {
            f.setImage("fantome_PLS.jpg");
        }
    } else {
        for (Fantome f : tabFantomes) {
            switch(f.getCouleur()) {
                case "RED":
                    f.setImage("ready.png");
                    break;
                case "PINK":
                    f.setImage("pinkie.jpg");
                    break;
                case "BLUE":
                    f.setImage("bleue.png");
                    break;
                case "ORANGE":
                    f.setImage("yellowie.png");
                    break;
            }
        }
    }
}

[Buggy Hunk]
if (pacman.isInvicible() || pacman2.isInvicible()){

[Patch]
if (pacman.getIsInvicible() || pacman2.getIsInvicible()){