[Demonstration 1]

[Buggy Method]
@Override
protected boolean isEnabled() {
    return ofNullable(authConfigRepository.findActiveDirectory(true)).isPresent();
}

[Buggy Hunk]
return ofNullable(authConfigRepository.findActiveDirectory(true)).isPresent();

[Patch]
return authConfigRepository.findActiveDirectory(true).isPresent();

[Demonstration 2]

[Buggy Method]
private String buildSearchUrl(String keyWord, boolean isR18) {
    return PixivCrawlerConfig.SEARCH_URL + "?word=" + keyWord + "&r18=" + (isR18 ? "1" : "0");
}

[Buggy Hunk]
private String buildSearchUrl(String keyWord, boolean isR18) {

[Patch]
private static final String buildSearchUrl(String keyWord, boolean isR18) {

[Demonstration 3]

[Buggy Method]
Collection<String> findMembers(String externalId) {
    Collection<String> users = Collections.emptyList();
    LDAPConnection connection = null;
    try {
        connection = getConnection();
        LDAPSearchResults results = connection.search(externalId, LDAPConnection.SCOPE_BASE, "member=*", new String[] { memberAttribute }, false);
        while (results.hasMore()) {
            LDAPEntry entry = results.next();
            LDAPAttribute memberAttr = entry.getAttribute(memberAttribute);
            if (memberAttr == null) {
                continue;
            }
            String[] members = memberAttr.getStringValueArray();
            MessageFormat formatter = new MessageFormat(memberFormat);
            users = new ArrayList<String>(members.length);
            for (String member : members) {
                //oakPrimaryPersonID=21096,ou=people,dc=oak,dc=ox,dc=ac,dc=uk
                Object[] parseValues;
                try {
                    parseValues = formatter.parse(member);
                    if (parseValues.length == 1) {
                        String eid = (String) parseValues[0];
                        users.add(eid);
                    } else {
                        log.warn("Failed to parse member of group: " + member);
                    }
                } catch (ParseException e) {
                    log.warn("It's a grouper group" + e.getMessage());
                }
            }
        }
    } catch (LDAPException ldape) {
        log.warn("Failed to find members of: " + externalId, ldape);
    } finally {
        if (connection != null) {
            returnConnection(connection);
        }
    }
    return users;
}

[Buggy Hunk]
log.warn("It's a grouper group" + e.getMessage());

[Patch]
log.info("It's a grouper group" + e.getMessage());