[Demonstration 1]

[Buggy Method]
public String getHoursOfDay() {
    SimpleDateFormat formatter = new SimpleDateFormat("EE " + "@" + "HH:mm", Locale.ENGLISH);
    TimeZone timeZone = TimeZone.getTimeZone(mTimeZone);
    formatter.setTimeZone(timeZone);
    Date dateTime = new Date(mTime * 1000);
    String hourOfDay = formatter.format(dateTime);
    return hourOfDay;
}

[Buggy Hunk]
SimpleDateFormat formatter = new SimpleDateFormat("EE " +"@" + "HH:mm", Locale.ENGLISH);

[Patch]
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm");

[Demonstration 2]

[Buggy Method]
@Subscribe
public void onEvent(GazeEvent ge) {
    MainApplication mMainApplicaiton = MainApplication.getInstance();
    int x = (int) (ge.x * mMainApplicaiton.mScreenWidth);
    int y = (int) (ge.x * mMainApplicaiton.mScreenHeight);
    mCurrentTrail.update(x, y);
}

[Buggy Hunk]
int y = (int)(ge.x * mMainApplicaiton.mScreenHeight);

[Patch]
int y = (int)((1-ge.y) * mMainApplicaiton.mScreenHeight);

[Demonstration 3]

[Buggy Method]
@Override
protected void doInTransactionWithoutResult(TransactionStatus arg0) {
    // 今日有交易则更新交易信息
    if (StringUtils.isNotBlank(arr[3]) && Float.valueOf(arr[3]) > 0) {
        float price = Float.valueOf(arr[3]);
        //更新股票当前价格信息
        StockInfo stockInfo = new StockInfo();
        stockInfo.setCode(task.getInfoValue("code").toString());
        stockInfo.setPrice(price);
        stockDataService.siUpdateOrInsert(stockInfo, false);
        //保存今日交易信息
        DailyTradeDetail dtd = new DailyTradeDetail();
        dtd.setCode(task.getInfoValue("code").toString());
        dtd.setDate(new SimpleDateFormat("yyyy-MM-dd").format(new Date()));
        dtd.setStartPrice(Float.valueOf(arr[1]));
        dtd.setLastEndPrice(Float.valueOf(arr[2]));
        dtd.setEndPrice(price);
        dtd.setMaxPrice(Float.valueOf(arr[4]));
        dtd.setMinPrice(Float.valueOf(arr[5]));
        dtd.setTradeVolume(Long.valueOf(arr[8]));
        dtd.setTradeAmt(Double.valueOf(arr[9]));
        stockDataService.dtdUpdateOrInsert(dtd);
    }
}

[Buggy Hunk]
dtd.setDate (new SimpleDateFormat ("yyyy-MM-dd").format (new Date ()));

[Patch]
dtd.setDate (arr[30]);