[Demonstration 1]

[Buggy Method]
public List<Token> tokenise(String code) throws LexerException {
    reset();
    List<Token> tokens = new ArrayList<Token>();
    char[] characters = code.toCharArray();
    while (index < characters.length) {
        gobbleWhitespace(characters);
        gobbleComments(characters);
        if (index >= characters.length) {
            break;
        }
        if (Character.isLetter(characters[index])) {
            String value = parseString(characters);
            Token token = constructStringToken(value);
            tokens.add(token);
            column += value.length();
        } else if (Character.isDigit(characters[index])) {
            String integer = parseInteger(characters);
            Location location = new Location(line, line, column, column + integer.length());
            Token token = new IntegerToken(Integer.parseInt(integer), location);
            tokens.add(token);
            column += integer.length();
        } else {
            Token token = constructSymbolToken(characters);
            tokens.add(token);
        }
    }
    return tokens;
}

[Buggy Hunk]
Location location = new Location(line, line, column, column + integer.length());

[Patch]
Location location = new Location(line, column, line, column + integer.length());

[Demonstration 2]

[Buggy Method]
public void stopService(Context context) {
    context.stopService(new Intent(context, SocketService.class));
    ImsSipHelper.getInstance().unRegisterSipServer();
    NetWorkStatusChangeHelper.getInstance().disableNetWorkChange();
}

[Buggy Hunk]
ImsSipHelper.getInstance().unRegisterSipServer();

[Patch]
ImsSipHelper.getInstance().stopSipServer();

[Demonstration 3]

[Buggy Method]
@Override
public void onReceive(Context context, Intent intent) {
    if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
        context.startService(new Intent(context, ForegroundService.class));
    }
}

[Buggy Hunk]
context.startService(new Intent(context, ForegroundService.class));

[Patch]
SharedMethods.startService(context);