[Demonstration 1]

[Buggy Method]
@Override
protected void onPostExecute(List<Mp3File> result) {
    super.onPostExecute(result);
    if (mMediaPlayer != null) {
        mMediaPlayer.release();
        mMediaPlayer = null;
        mPlay.setImageResource(R.drawable.play_circle_outline);
    }
    mFileListAdapter = new FileListAdapter(result, new FileListAdapter.FilesListViewHolder.CustomClickListener() {

        @Override
        public void onUserPlayIconClickListener(int position) {
        }
    });
    mRecyclerView.swapAdapter(mFileListAdapter, false);
}

[Buggy Hunk]
mRecyclerView.swapAdapter(mFileListAdapter, false);

[Patch]
mRecyclerView.setAdapter(mFileListAdapter);

[Demonstration 2]

[Buggy Method]
public void askQuestion() {
    updateButtonText();
    //play song from data resource
    mMediaPlayer = new MediaPlayer();
    mMediaPlayer.setOnPreparedListener(this);
    mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
    try {
        mMediaPlayer.setDataSource(getSongURL());
    } catch (IllegalArgumentException e) {
        e.printStackTrace();
    } catch (IOException e) {
        e.printStackTrace();
    }
    mMediaPlayer.prepareAsync();
}

[Buggy Hunk]
mMediaPlayer.setDataSource(getSongURL());

[Patch]
mMediaPlayer.setDataSource(currentSongURL());

[Demonstration 3]

[Buggy Method]
@Test
public void testEmbeddedIsTheDefaultGraphDatabaseService() throws Exception {
    Properties properties = new Properties();
    properties.put(Neo4jProperties.DATABASE_PATH, Neo4jTestHelper.dbLocation());
    Neo4jGraphDatabaseServiceFactoryProvider graphService = new Neo4jGraphDatabaseServiceFactoryProvider();
    GraphDatabaseService db = graphService.load(properties, new ClassLoaderServiceImpl()).create();
    db.shutdown();
    assertThat(db.getClass()).isEqualTo(EmbeddedGraphDatabase.class);
}

[Buggy Hunk]
assertThat( db.getClass() ). isEqualTo( EmbeddedGraphDatabase.class );

[Patch]
assertThat( db.getClass() ). isEqualTo( GraphDatabaseFacade.class );