[Demonstration 1]

[Buggy Method]
public void CreateTable(String tableName) throws SQLException {
    Statement stmt = c.createStatement();
    String execute = "CREATE TABLE COMPANY " + "(ID INT PRIMARY KEY     NOT NULL," + " NAME           TEXT    NOT NULL, " + " AGE            INT     NOT NULL, " + " ADDRESS        CHAR(50), " + " SALARY         REAL)";
    System.out.println(execute);
    stmt.executeUpdate(execute);
    if (stmt != null) {
        stmt.close();
    }
}

[Buggy Hunk]
String execute = "CREATE TABLE COMPANY " +

[Patch]
String execute = "CREATE TABLE " +tableName+ " " +

[Demonstration 2]

[Buggy Method]
@Override
public void onCreate(SQLiteDatabase db) {
    String createCarsTable = "CREATE TABLE " + DBConstants.DATABASE_TABLE_CARS + " (id INTEGER PRIMARY KEY AUTOINCREMENT, model TEXT, color TEXT, price TEXT, description TEXT, image_url TEXT)";
    db.execSQL(createCarsTable);
    InitiateCars.initCars(db);
    String createCarImageTable = "CREATE TABLE " + DBConstants.DATABASE_TABLE_CAR_IMAGES + "(id INTEGER PRIMARY KEY AUTOINCREMENT, car_id INTEGER, car_image_url TEXT)";
    db.execSQL(createCarImageTable);
    InitiateCars.initCarImages(db);
    String createCarCommentsTable = "CREATE TABLE " + DBConstants.DATABASE_TABLE_FEEDBACK + "(id INTEGER PRIMARY KEY AUTOINCREMENT, car_id INTEGER, user_name TEXT, user_avatar_url TEXT, user_feedback TEXT)";
    db.execSQL(createCarCommentsTable);
    InitiateCars.initCarImages(db);
}

[Buggy Hunk]
InitiateCars.initCarImages(db);

[Patch]
InitiateCars.initCarFeedback(db);

[Demonstration 3]

[Buggy Method]
void zoomOutToBouncer() {
    if (mZoomInOutAnim != null && mZoomInOutAnim.isRunning()) {
        mZoomInOutAnim.cancel();
    }
    int curPage = getCurrentPage();
    View currentPage = getPageAt(curPage);
    if (shouldSetTopAlignedPivotForWidget(curPage)) {
        currentPage.setPivotY(0);
        // Note: we are working around the issue that setting the x-pivot to the same value as it
        //       was does not actually work.
        currentPage.setPivotX(0);
        currentPage.setPivotX(currentPage.getMeasuredWidth() / 2);
    }
    if (!(currentPage.getScaleX() < 1f || currentPage.getScaleY() < 1f)) {
        mZoomInOutAnim = new AnimatorSet();
        mZoomInOutAnim.playTogether(ObjectAnimator.ofFloat(currentPage, "scaleX", BOUNCER_SCALE_FACTOR), ObjectAnimator.ofFloat(currentPage, "scaleY", BOUNCER_SCALE_FACTOR));
        mZoomInOutAnim.setDuration(mBouncerZoomInOutDuration);
        mZoomInOutAnim.setInterpolator(new DecelerateInterpolator(1.5f));
        mZoomInOutAnim.start();
    }
    if (currentPage instanceof KeyguardWidgetFrame) {
        ((KeyguardWidgetFrame) currentPage).onBouncerShowing(true);
    }
}

[Buggy Hunk]
if (!(currentPage.getScaleX() < 1f || currentPage.getScaleY() < 1f)) {

[Patch]
if (currentPage != null && (!(currentPage.getScaleX() < 1f || currentPage.getScaleY() < 1f))) {