[Demonstration 1]

[Buggy Method]
private void renderTextBox(TileDisplay te, double x, double y, double z, List<String> lines) {
    // text render happens in the opposite order ^^"
    Collections.reverse(lines);
    // start the rendering
    GlStateManager.pushMatrix();
    GlStateManager.glNormal3f(0.0F, 1.0F, 0.0F);
    // move stuff to right above the item
    IBlockState state = te.getWorld().getBlockState(te.getPos());
    EnumFacing direction = state.getValue(BlockDisplay.FACING);
    double xPush = 0.1 * direction.getFrontOffsetX() + 0.5;
    double yPush = 0.1 * direction.getFrontOffsetY() + 0.6;
    double zPush = 0.1 * direction.getFrontOffsetZ() + 0.5;
    GlStateManager.translate(x + xPush, y + yPush, z + zPush);
    // rotate so it faces the player
    RenderManager renderManager = Minecraft.getMinecraft().getRenderManager();
    float playerAngle = renderManager.playerViewY;
    GlStateManager.rotate(-playerAngle, 0.0F, 1.0F, 0.0F);
    // take into account 3rd person view
    GlStateManager.rotate((float) (renderManager.options.thirdPersonView == 2 ? -1 : 1) * renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(180, 0, 0, 1);
    GlStateManager.scale(0.025, 0.025, 0.025);
    GlStateManager.disableLighting();
    GlStateManager.depthMask(false);
    GlStateManager.disableDepth();
    // target string
    FontRenderer fontRenderer = getFontRenderer();
    GlStateManager.enableBlend();
    GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
    GlStateManager.disableTexture2D();
    int stringWidth = lines.stream().map(fontRenderer::getStringWidth).max(Math::max).orElseGet(() -> 0) / 2;
    Tessellator tessellator = Tessellator.getInstance();
    VertexBuffer vertexBuffer = tessellator.getBuffer();
    vertexBuffer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_COLOR);
    vertexBuffer.pos(-stringWidth - 1, -(9 * lines.size() - 8), 0).color(0.0f, 0.0f, 0.0f, 0.25f).endVertex();
    vertexBuffer.pos(-stringWidth - 1, 8, 0).color(0.0f, 0.0f, 0.0f, 0.25f).endVertex();
    vertexBuffer.pos(stringWidth + 1, 8, -0).color(0.0f, 0.0f, 0.0f, 0.25f).endVertex();
    vertexBuffer.pos(stringWidth + 1, -(9 * lines.size() - 8), 0).color(0.0f, 0.0f, 0.0f, 0.25f).endVertex();
    tessellator.draw();
    GlStateManager.enableTexture2D();
    for (int i = 0; i < lines.size(); i++) fontRenderer.drawString(lines.get(i), -fontRenderer.getStringWidth(lines.get(i)) / 2, -(i * 9), 0xFFFFFF);
    GlStateManager.enableDepth();
    GlStateManager.depthMask(true);
    GlStateManager.enableLighting();
    GlStateManager.disableBlend();
    // finish the GL rendering
    GlStateManager.popMatrix();
}

[Buggy Hunk]
int stringWidth = lines.stream().map(fontRenderer::getStringWidth).max(Math::max).orElseGet(() -> 0) / 2;

[Patch]
int stringWidth = lines.stream().map(fontRenderer::getStringWidth).reduce(Math::max).orElseGet(() -> 0) / 2;

[Demonstration 2]

[Buggy Method]
@Override
protected void configure(HttpSecurity http) throws Exception {
    http.csrf().disable().authorizeRequests().antMatchers("/user").authenticated().anyRequest().permitAll();
    http.formLogin().loginPage("/login").loginProcessingUrl("/j_spring_security_check").failureUrl("/login?error").usernameParameter("login").passwordParameter("password").permitAll();
    http.logout().permitAll().logoutUrl("/logout").logoutSuccessUrl("/login?logout").invalidateHttpSession(true);
}

[Buggy Hunk]
.antMatchers( "/user" ).authenticated()

[Patch]
.antMatchers( "/user" , "/newSurvey" ).authenticated()

[Demonstration 3]

[Buggy Method]
@Override
public Collection<String> findAttachmentIds(String login) {
    Statement statement = QueryBuilder.select().column("attachmentId").from(ColumnFamilyKeys.USER_ATTACHMENT_CF).where(eq("login", login)).limit(Constants.CASSANDRA_MAX_ROWS);
    ResultSet results = session.execute(statement);
    return results.all().stream().map(e -> e.getString("attachmentId").toString()).collect(Collectors.toList());
}

[Buggy Hunk]
.map(e -> e.getString("attachmentId").toString())

[Patch]
.map(e -> e.getUUID("attachmentId").toString())