[Demonstration 1]

[Buggy Method]
boolean getAtIndex(int i) {
    return field[i];
}

[Buggy Hunk]
boolean getAtIndex(int i) {

[Patch]
public boolean getAtIndex(int i) {

[Demonstration 2]

[Buggy Method]
private void setDriverPath() {
    if (PlatformUtil.isMac()) {
        System.setProperty("webdriver.chrome.driver", "chromedriver");
    }
    if (PlatformUtil.isWindows()) {
        System.setProperty("webdriver.chrome.driver", "chromedriver.exe");
    }
    if (PlatformUtil.isLinux()) {
        System.setProperty("webdriver.chrome.driver", "chromedriver_linux");
    }
}

[Buggy Hunk]
private void setDriverPath() {

[Patch]
private static void setDriverPath() {

[Demonstration 3]

[Buggy Method]
private Playlist loadPlaylist(String name) {
    SQLiteDatabase database = dbhelper.getReadableDatabase();
    Playlist playlist = new Playlist(name);
    //TODO: check if playlist exists and create it if necessary (??)
    Cursor exists = database.rawQuery("SELECT " + DBContract._ID + " FROM " + DBContract.TABLE_NAME_PLAYLISTS + " WHERE " + DBContract.PLAYLISTS_COLUMN_NAME + "=?", new String[] { name });
    if (exists == null || exists.getCount() < 1) {
        return playlist;
    }
    exists.close();
    String[] projection = { DBContract._ID, DBContract.PLAYLIST_COLUMN_SONGS };
    String order = DBContract._ID + " DESC";
    Cursor cursor = database.query(DBContract.PLAYLISTS_PREFIX + name, projection, null, null, null, null, order);
    if (cursor.getCount() < 1)
        return playlist;
    cursor.moveToLast();
    do {
        int songId = cursor.getInt(cursor.getColumnIndexOrThrow(DBContract.PLAYLIST_COLUMN_SONGS));
        if (m_songs.size() > songId) {
            playlist.addSong(m_songs.get(songId));
        }
    } while (cursor.moveToPrevious());
    cursor.close();
    return playlist;
}

[Buggy Hunk]
DBContract.PLAYLISTS_PREFIX + name,

[Patch]
"'" + DBContract.PLAYLISTS_PREFIX + name + "'",