Program: 8295
Project: 8295
Buggy source:
public Showable createNotify(final Activity activity){
  int resultType=getResult();
  String str;
  int duration;
  Style style;
  if ((resultType & OperationResult.RESULT_ERROR) == 0) {
    String untilCancelled;
    duration=Notify.LENGTH_LONG;
    style=Style.OK;
    untilCancelled="String_Node_Str";
    if ((resultType & ImportKeyResult.RESULT_CANCELLED) > 0) {
      duration=0;
      style=Style.WARN;
      untilCancelled+=activity.getString(R.string.with_cancelled);
    }
    if (mOk > 0 && mFail > 0) {
      style=Style.WARN;
      duration=0;
      str=activity.getResources().getQuantityString(R.plurals.delete_ok_but_fail_1,mOk,mOk);
      str+="String_Node_Str" + activity.getResources().getQuantityString(R.plurals.delete_ok_but_fail_2,mFail,mFail,untilCancelled);
    }
 else     if (mOk > 0) {
      str=activity.getResources().getQuantityString(R.plurals.delete_ok,mOk,mOk,untilCancelled);
    }
 else     if ((resultType & ImportKeyResult.RESULT_CANCELLED) > 0) {
      str=activity.getString(R.string.delete_cancelled);
    }
 else {
      duration=0;
      style=Style.ERROR;
      str="String_Node_Str";
    }
  }
 else {
    duration=0;
    style=Style.ERROR;
    if (mFail == 0) {
      str=activity.getString(R.string.delete_nothing);
    }
 else {
      str=activity.getResources().getQuantityString(R.plurals.delete_fail,mFail);
    }
  }
  return Notify.create(activity,str,duration,style,new ActionListener(){
    @Override public void onAction(){
      Intent intent=new Intent(activity,LogDisplayActivity.class);
      intent.putExtra(LogDisplayFragment.EXTRA_RESULT,DeleteResult.this);
      activity.startActivity(intent);
    }
  }
,R.string.snackbar_details);
}

Fixed version (ground truth):
public Showable createNotify(final Activity activity){
  int resultType=getResult();
  String str;
  int duration;
  Style style;
  if ((resultType & OperationResult.RESULT_ERROR) == 0) {
    String untilCancelled;
    duration=Notify.LENGTH_LONG;
    style=Style.OK;
    untilCancelled="String_Node_Str";
    if ((resultType & ImportKeyResult.RESULT_CANCELLED) > 0) {
      duration=0;
      style=Style.WARN;
      untilCancelled+=activity.getString(R.string.with_cancelled);
    }
    if (mOk > 0 && mFail > 0) {
      style=Style.WARN;
      duration=0;
      str=activity.getResources().getQuantityString(R.plurals.delete_ok_but_fail_1,mOk,mOk);
      str+="String_Node_Str" + activity.getResources().getQuantityString(R.plurals.delete_ok_but_fail_2,mFail,mFail,untilCancelled);
    }
 else     if (mOk > 0) {
      str=activity.getResources().getQuantityString(R.plurals.delete_ok,mOk,mOk,untilCancelled);
    }
 else     if ((resultType & ImportKeyResult.RESULT_CANCELLED) > 0) {
      str=activity.getString(R.string.delete_cancelled);
    }
 else {
      duration=0;
      style=Style.ERROR;
      str="String_Node_Str";
    }
  }
 else {
    duration=0;
    style=Style.ERROR;
    if (mLog.getLast().mType == LogType.MSG_DEL_ERROR_MULTI_SECRET) {
      str=activity.getString(R.string.secret_cannot_multiple);
    }
 else     if (mFail == 0) {
      str=activity.getString(R.string.delete_nothing);
    }
 else {
      str=activity.getResources().getQuantityString(R.plurals.delete_fail,mFail);
    }
  }
  return Notify.create(activity,str,duration,style,new ActionListener(){
    @Override public void onAction(){
      Intent intent=new Intent(activity,LogDisplayActivity.class);
      intent.putExtra(LogDisplayFragment.EXTRA_RESULT,DeleteResult.this);
      activity.startActivity(intent);
    }
  }
,R.string.snackbar_details);
}