[Demonstration 1]

[Buggy Method]
public static void startAction(Context context, String param1, String action) {
    Intent intent = new Intent(context, TransitDataIntentService.class);
    intent.setAction(action);
    intent.putExtra(EXTRA_URL, param1);
    context.startService(intent);
}

[Buggy Hunk]
Intent intent = new Intent(context, TransitDataIntentService.class);

[Patch]
Intent intent = new Intent(context.getApplicationContext(), TransitDataIntentService.class);

[Demonstration 2]

[Buggy Method]
@Test
@Transactional
public void checkCompanyCityIsRequired() throws Exception {
    int databaseSizeBeforeTest = jobRepository.findAll().size();
    // set the field null
    job.setCompanyCity(null);
    // Create the Job, which fails.
    restJobOfferMockMvc.perform(post("/api/jobs").contentType(TestUtil.APPLICATION_JSON_UTF8).content(TestUtil.convertObjectToJsonBytes(job))).andExpect(status().isBadRequest());
    List<Job> jobList = jobRepository.findAll();
    assertThat(jobList).hasSize(databaseSizeBeforeTest);
}

[Buggy Hunk]
restJobOfferMockMvc.perform(post("/api/jobs")

[Patch]
restJobMockMvc.perform(post("/api/jobs")

[Demonstration 3]

[Buggy Method]
public static Intent makeNotificationIntent(Context context, String msg) {
    Intent intent = new Intent(context, MapsActivity.class);
    intent.putExtra(NOTIFICATION_MSG, msg);
    return intent;
}

[Buggy Hunk]
Intent intent = new Intent( context, MapsActivity.class );

[Patch]
Intent intent = new Intent( context, ProfileActivity.class );