[Demonstration 1]

[Buggy Method]
public static QueryModel createQueryModel(AbsoluteTableIdentifier absoluteTableIdentifier, CarbonTable carbonTable, String columnString) throws IOException {
    QueryModel executorModel = new QueryModel();
    String[] columns = null;
    if (columnString != null) {
        columns = columnString.split(",");
    }
    String factTableName = carbonTable.getFactTableName();
    executorModel.setAbsoluteTableIdentifier(absoluteTableIdentifier);
    fillExecutorModel(carbonTable, executorModel, factTableName, columns);
    List<CarbonDimension> dims = new ArrayList<CarbonDimension>(CarbonCommonConstants.CONSTANT_SIZE_TEN);
    dims.addAll(executorModel.getQueryDimension());
    executorModel.setDimAggregationInfo(new ArrayList<DimensionAggregatorInfo>());
    executorModel.setForcedDetailRawQuery(true);
    executorModel.setQueryId(System.nanoTime() + "");
    return executorModel;
}

[Buggy Hunk]
CarbonTable carbonTable, String columnString) throws IOException {

[Patch]
CarbonTable carbonTable, String columnString) throws CarbonInputFormatException {

[Demonstration 2]

[Buggy Method]
public void drawLoggedInScreen() {
    frame.remove(panel);
    userGUI = new UserProfileGUI(con, "user2");
    panel = userGUI.getPanel(loggedInUserId);
    //panel.add(searchField);
    //panel.add(searchButton);
    frame.setContentPane(panel);
    frame.revalidate();
    frame.repaint();
    ;
}

[Buggy Hunk]
userGUI = new UserProfileGUI(con, "user2");

[Patch]
userGUI = new UserProfileGUI(con, 3);

[Demonstration 3]

[Buggy Method]
public static void addMoney(int amount) {
    if (amount < 0) {
    } else
        balance += amount;
    Main.b.repaint();
}

[Buggy Hunk]
Main.b.repaint();

[Patch]
Main.menu.repaint();