[Demonstration 1]

[Buggy Method]
@Override
public synchronized void update() {
    for (Entity e : mEntities) {
        if (e.exists() && e.isActive()) {
            e.update();
        }
    }
}

[Buggy Hunk]
public synchronized void update() {

[Patch]
public void update() {

[Demonstration 2]

[Buggy Method]
public Object[] httpGet(int number) {
    // SSLSocketFactory.getSocketFactory().setHostnameVerifier(new AllowAllHostnameVerifier());
    Object[] array = new Object[4];
    try {
        String url = "https://projecteuler.net/problem=" + number;
        Document doc = Jsoup.connect(url).timeout(20000).get();
        Elements title = doc.getElementsByTag("h2");
        array[0] = title.text();
        Elements description = doc.getElementsByAttributeValue("class", "problem_content");
        array[1] = description.html();
        Elements info = doc.getElementsByAttributeValue("id", "problem_info");
        String solveAndDiff = info.text();
        String[] splited = solveAndDiff.split(";");
        array[2] = Integer.parseInt(splited[1].trim().split(" ")[2]);
        if (splited.length == 2) {
            array[3] = 0;
        } else if (splited.length == 3) {
            array[3] = Integer.parseInt(splited[2].trim().split(":")[1].replace('%', ' ').trim());
        }
    } catch (Exception e) {
        Log.e("exception", "exception" + e.getMessage());
        return null;
    }
    return array;
}

[Buggy Hunk]
array[1]=description.html();

[Patch]
array[1]=description.outerHtml();

[Demonstration 3]

[Buggy Method]
private void refresh() {
    this.createdCommunities = new ArrayList<>();
    this.joinedCommunities = new ArrayList<>();
    this.publicCommunities = new ArrayList<>();
    this.allCommunities = new ArrayList<>();
    this.otherCommunities = new ArrayList<>();
    this.communitiesToActivate = new ArrayList<>();
    this.communitiesToActivate.clear();
    this.createdCommunities = communityService.findByAuthorId(this.loggedInUser.getId());
    this.joinedCommunities = communityService.findUserRelated(this.loggedInUser.getId());
    this.publicCommunities = communityService.findUserRelated(this.loggedInUser.getId());
    this.communitiesWithRequests = communityService.findRequestedCommunities();
    this.allCommunities = communityService.findAll();
    ArrayList<CommunityDto> dummy = new ArrayList<>();
    allCommunities.forEach(dto -> {
        if (!Objects.equals(dto.getAuthor().getId(), this.loggedInUser.getId())) {
            dummy.add(dto);
        }
        if (!dto.getActiveState()) {
            this.communitiesToActivate.add(dto);
        }
    });
    dummy.forEach(dto -> {
        if (!dto.getAllowedUsers().contains(this.loggedInUser)) {
            this.otherCommunities.add(dto);
        }
    });
}

[Buggy Hunk]
this.communitiesWithRequests = communityService.findRequestedCommunities();

[Patch]
this.communitiesWithRequests = communityService.findRequestedCommunities(this.loggedInUser.getId());