[Demonstration 1]

[Buggy Method]
@OnClick(R.id.btn_view_task)
protected void onClick() {
    Intent it = new Intent(MainActivity.this, CreateTaskActivity.class);
    startActivity(it);
}

[Buggy Hunk]
Intent it = new Intent(MainActivity.this, CreateTaskActivity.class);

[Patch]
Intent it = new Intent(MainActivity.this, ViewTaskActivity.class);

[Demonstration 2]

[Buggy Method]
@Override
protected void configure() {
    bind(BoxProvider.class).to(AbstractOauth2Provider.class);
    bind(RedisConfig.class).to(RedisConfiguration.class).in(Singleton.class);
    bind(BoxFacade.class).to(BoxFacade.class).in(Singleton.class);
    bind(AuthManager.class).to(AuthManager.class);
    bind(AuthenticationService.class).to(AuthenticationService.class);
    bind(AuthorizationService.class).to(AuthorizationService.class);
    bind(DataManager.class).to(DataManager.class);
    bind(DatabaseLoadService.class).to(DatabaseLoadService.class);
    bind(DatabaseSaveService.class).to(DatabaseSaveService.class);
    bind(DescribeManager.class).to(DescribeManager.class);
    bind(DescribeService.class).to(DescribeService.class);
    bind(FileManager.class).to(FileManager.class);
    bind(FileService.class).to(FileService.class);
    bind(FolderManager.class).to(FolderManager.class);
    bind(FolderService.class).to(FolderService.class);
    bind(FileUploadService.class).to(FileUploadService.class);
    bind(ObjectMapperService.class).to(ObjectMapperService.class);
    bind(SecurityConfiguration.class).to(SecurityConfiguration.class);
    bind(FlowConfiguration.class).to(FlowConfiguration.class);
    bind(TaskManager.class).to(TaskManager.class);
    bind(TaskService.class).to(TaskService.class);
    bind(WebhookManager.class).to(WebhookManager.class);
    bind(WebhookTriggersService.class).to(WebhookTriggersService.class);
    bind(CacheManager2.class).to(CacheManagerInterface.class);
    bind(EventManager.class).to(EventManager.class);
    bind(CallbackWebhookManager.class).to(CallbackWebhookManager.class);
    bind(ListenerManager.class).to(ListenerManager.class);
    bind(RequestInterceptorImpl.class).to(RequestInterceptor.class);
    bind(TokenCacheService.class).to(TokenCacheService.class);
    bind(CallbackService.class).to(CallbackService.class);
    bind(LaunchFlowManager.class).to(LaunchFlowManager.class);
    bind(FlowService.class).to(FlowService.class);
    bind(ExtendedRawRunClient.class).to(ExtendedRawRunClient.class);
    bind(AssignFlowManager.class).to(AssignFlowManager.class);
    bind(ListenerService.class).to(ListenerService.class);
    bind(WebhookHandlerManager.class).to(WebhookHandlerManager.class);
}

[Buggy Hunk]
bind(CacheManager2.class).to(CacheManagerInterface.class);

[Patch]
bind(CacheManagerWithoutScan.class).to(CacheManagerInterface.class);

[Demonstration 3]

[Buggy Method]
public static Result service(String ownerName, String projectName, String service, boolean isAdvertise) throws IOException, UnsupportedOperationException, ServletException {
    if (!isSupportedService(service)) {
        return forbidden(String.format("Unsupported service: '%s'", service));
    }
    Project project = Project.findByOwnerAndProjectName(ownerName, projectName);
    if (project == null) {
        return notFound();
    }
    models.User user = UserApp.currentUser();
    if (!isAllowed(project, service)) {
        if (user.isAnonymous()) {
            return BasicAuthAction.unauthorized(response());
        } else {
            // If you want the Git client showing your custom message to
            // the user, the Content-Type should be exact "text/plain"
            // without any parameter. For more details, see the code at
            // https://github.com/git/git/commit/426e70d4a11ce3b4f70636d57c6a0ab16ae08a00#diff-eea0ad565ec5903a11b6023755d491cfR154
            response().setHeader("Content-Type", "text/plain");
            return forbidden(String.format("'%s' has no permission to '%s/%s'.", user.name, ownerName, projectName));
        }
    }
    if (isAdvertise) {
        return ok(RepositoryService.gitAdvertise(project, service, response()));
    } else {
        if (request().body().isMaxSizeExceeded()) {
            return status(REQUEST_ENTITY_TOO_LARGE);
        } else {
            user.visits(project);
            return ok(RepositoryService.gitRpc(project, service, request(), response()));
        }
    }
}

[Buggy Hunk]
user.name, ownerName, projectName));

[Patch]
user.loginId, ownerName, projectName));