Program: 54330
Project: 54330
Buggy source:
public void setUpActionBar(){
  findViewById(R.id.send_button).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (Compose.this instanceof ComposeDMActivity) {
        boolean close=doneClick();
        if (close) {
          onBackPressed();
        }
        return;
      }
      if (Integer.parseInt(charRemaining.getText().toString()) < 0 && settings.twitlonger) {
        new AlertDialog.Builder(context).setTitle(context.getResources().getString(R.string.tweet_to_long)).setMessage(context.getResources().getString(R.string.select_shortening_service)).setPositiveButton(R.string.twitlonger,new DialogInterface.OnClickListener(){
          @Override public void onClick(          DialogInterface dialogInterface,          int i){
            doneClick();
          }
        }
).setNeutralButton(R.string.pwiccer,new DialogInterface.OnClickListener(){
          @Override public void onClick(          DialogInterface dialogInterface,          int i){
            try {
              Intent pwiccer=new Intent("String_Node_Str");
              pwiccer.putExtra("String_Node_Str",reply.getText().toString());
              startActivityForResult(pwiccer,420);
            }
 catch (            Throwable e) {
              startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse("String_Node_Str")));
            }
          }
        }
).setNegativeButton(R.string.split_tweet,new DialogInterface.OnClickListener(){
          @Override public void onClick(          DialogInterface dialogInterface,          int i){
            multiTweet=true;
            boolean close=doneClick();
            if (close) {
              onBackPressed();
            }
          }
        }
).create().show();
      }
 else {
        boolean close=doneClick();
        if (close) {
          onBackPressed();
        }
      }
    }
  }
);
  findViewById(R.id.discard_button).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      discardClicked=true;
      sharedPrefs.edit().putString("String_Node_Str","String_Node_Str").commit();
      if (emojiKeyboard.isShowing()) {
        onBackPressed();
      }
      onBackPressed();
    }
  }
);
}

Fixed version (ground truth):
public void setUpActionBar(){
  findViewById(R.id.send_button).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (Compose.this instanceof ComposeDMActivity) {
        boolean close=doneClick();
        if (close) {
          onBackPressed();
        }
        return;
      }
      if (Integer.parseInt(charRemaining.getText().toString()) < 0 && settings.twitlonger) {
        new AlertDialog.Builder(context).setTitle(context.getResources().getString(R.string.tweet_to_long)).setMessage(context.getResources().getString(R.string.select_shortening_service)).setPositiveButton(R.string.twitlonger,new DialogInterface.OnClickListener(){
          @Override public void onClick(          DialogInterface dialogInterface,          int i){
            boolean close=doneClick();
            if (close) {
              onBackPressed();
            }
          }
        }
).setNeutralButton(R.string.pwiccer,new DialogInterface.OnClickListener(){
          @Override public void onClick(          DialogInterface dialogInterface,          int i){
            try {
              Intent pwiccer=new Intent("String_Node_Str");
              pwiccer.putExtra("String_Node_Str",reply.getText().toString());
              startActivityForResult(pwiccer,420);
            }
 catch (            Throwable e) {
              startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse("String_Node_Str")));
            }
          }
        }
).setNegativeButton(R.string.split_tweet,new DialogInterface.OnClickListener(){
          @Override public void onClick(          DialogInterface dialogInterface,          int i){
            multiTweet=true;
            boolean close=doneClick();
            if (close) {
              onBackPressed();
            }
          }
        }
).create().show();
      }
 else {
        boolean close=doneClick();
        if (close) {
          onBackPressed();
        }
      }
    }
  }
);
  findViewById(R.id.discard_button).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      discardClicked=true;
      sharedPrefs.edit().putString("String_Node_Str","String_Node_Str").commit();
      if (emojiKeyboard.isShowing()) {
        onBackPressed();
      }
      onBackPressed();
    }
  }
);
}