[Demonstration 1]

[Buggy Method]
@Override
public void onClick(View v) {
    //        super.onClick(v);
    int viewIndex = Integer.parseInt((String) v.getTag());
    //flExit_btn
    //        if (v.getId() == R.id.flExit_btn){
    if (viewIndex == 3) {
        showDialog();
        return;
    }
    oldIndex = fragmentIndex;
    fragmentIndex = viewIndex;
    //do nothing if it's the same button as previous one
    if (oldIndex == viewIndex) {
        return;
    }
    //else
    btnList.get(oldIndex).setBackgroundResource(R.color.liquid);
    if (oldIndex != fragmentIndex) {
        v.setBackgroundResource(R.drawable.topbg);
        changeFragment(oldIndex, fragmentIndex);
    }
    if (Integer.parseInt((String) v.getTag()) == 0) {
        //chatfragment
        chatNumberLayout.setVisibility(View.INVISIBLE);
        chatNumber = 0;
    }
}

[Buggy Hunk]
if (viewIndex == 3){

[Patch]
if (viewIndex== INDEX_EXIT) {

[Demonstration 2]

[Buggy Method]
public static void register() throws MBaaSNotInitializedException {
    if (_instance == null)
        throw new MBaaSNotInitializedException();
    hasGooglePlayService = GooglePlayServices.checkGooglePlayServiceAvailability(MBaaS.context);
    if (hasGooglePlayService) {
        InstanceIdHelper instanceIdHelper = new InstanceIdHelper(MBaaS.context);
        String senderId = StaticMethods.getSenderId(MBaaS.context);
        instanceIdHelper.getToken(senderId, GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
    } else {
        if (MBaaS.gcmRegistrationListener != null) {
            MBaaS.gcmRegistrationListener.onGooglePlayServiceUnavailable(MBaaS.context);
        }
        Registration regApi = new Registration(MBaaS.context, "", MBaaS.device, hasGooglePlayService);
        regApi.execute();
    }
}

[Buggy Hunk]
String senderId = StaticMethods.getSenderId(MBaaS.context);

[Patch]
senderId = StaticMethods.getSenderId(MBaaS.context);

[Demonstration 3]

[Buggy Method]
private synchronized void insertQuantidadeWebHook(Webhook web) {
    if (webQuantidadeTable.get(web.getUrl()) == null)
        webQuantidadeTable.put(web.getUrl(), 1);
    else
        webQuantidadeTable.put(web.getUrl(), webQuantidadeTable.get(web.getUrl()) + 1);
}

[Buggy Hunk]
private synchronized void insertQuantidadeWebHook(Webhook web) {

[Patch]
private void insertQuantidadeWebHook(Webhook web) {