[Demonstration 1]

[Buggy Method]
@BeforeClass
public void init() {
    abstAllocator = new AbstractAllocator() {

        @Override
        public void cancel() {
            // empty
        }

        @Override
        public void calculate(Configuration configuration) throws AllocationException {
            // empty
        }
    };
}

[Buggy Hunk]
public void calculate(Configuration configuration) throws AllocationException {

[Patch]
public void calculate(Configuration configuration) {

[Demonstration 2]

[Buggy Method]
@Override
public int hashCode() {
    return new HashCodeBuilder().append(asOf).append(createdAt).append(locations).append(trends).toHashCode();
}

[Buggy Hunk]
return new HashCodeBuilder().append(asOf).append(createdAt).append(locations).append(trends).toHashCode();

[Patch]
return new HashCodeBuilder().append(trends).toHashCode();

[Demonstration 3]

[Buggy Method]
@Override
public void run(LoginFrontendsConfiguration configuration, Environment environment) throws Exception {
    final ViewsResource viewsResource = new ViewsResource(new BaseClient());
    environment.jersey().register(viewsResource);
}

[Buggy Hunk]
final ViewsResource viewsResource = new ViewsResource(new BaseClient());

[Patch]
final ViewsResource viewsResource = new ViewsResource(new BaseClient(), new FriendClient());