[Demonstration 1]

[Buggy Method]
@RequestMapping(value = "/avatar/{profileId}", method = RequestMethod.POST)
@ResponseBody
public Profile getProfileAvatar(MultipartHttpServletRequest request, HttpServletResponse response, @PathVariable("profileId") String profileId) throws IOException, ProfileException {
    final Profile profile = SocialSecurityUtils.getCurrentProfile();
    if (profile != null && !profile.getUsername().equalsIgnoreCase(SocialSecurityUtils.ANONYMOUS)) {
        final Iterator<String> files = request.getFileNames();
        String fileName = null;
        if (files.hasNext()) {
            fileName = files.next();
        }
        if (!StringUtils.isBlank(fileName)) {
            final MultipartFile avatar = request.getFile(fileName);
            profileService.addProfileAttachment(profile.getId().toString(), AVATAR + "." + FilenameUtils.getExtension(avatar.getOriginalFilename()), avatar.getInputStream());
        }
        return profile;
    } else {
        response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
        return null;
    }
}

[Buggy Hunk]
.getExtension(avatar.getOriginalFilename()), avatar.getInputStream());

[Patch]
.getExtension(avatar.getOriginalFilename()).toLowerCase(), avatar.getInputStream());

[Demonstration 2]

[Buggy Method]
public void readControlValues() {
    DELIN_POW = SmartDashboard.getInt(DELIN_POW_KEY);
    DEADBAND_X = SmartDashboard.getNumber(DEADBAND_X_KEY);
    DEADBAND_Y = SmartDashboard.getNumber(DEADBAND_Y_KEY);
    DEADBAND_TWIST = SmartDashboard.getNumber(DEADBAND_TWIST_KEY);
    TURN_OUTER_SPEED = SmartDashboard.getNumber(TURN_OUTER_SPEED_KEY);
    TURN_INNER_SPEED = SmartDashboard.getNumber(TURN_INNER_SPEED_KEY);
    CURRENT_LIMIT = SmartDashboard.getNumber(CURRENT_LIMIT_KEY);
}

[Buggy Hunk]
CURRENT_LIMIT = SmartDashboard.getNumber(CURRENT_LIMIT_KEY);

[Patch]
CURRENT_LIMIT = SmartDashboard.getInt(CURRENT_LIMIT_KEY);

[Demonstration 3]

[Buggy Method]
@Override
public void robotInit() {
    drive = new Drive();
    intake = new Intake();
    shooter = new Shooter();
    vision = new Vision();
    intakeRoller = new ShooterFeeder();
    oi = new OI();
    // instantiate the command used for the autonomous period
    autonomousCommand = new Autonomous();
    SmartDashboard.putData("Aim", new Aim());
    SmartDashboard.putData("RunRollerSystem", new RunFeederSystem());
}

[Buggy Hunk]
intakeRoller = new ShooterFeeder();

[Patch]
shooterFeeder = new ShooterFeeder();