Program: 13477
Project: 13477
Buggy source:
public SignupBottomSheetDialog(@NonNull final Context context,@NonNull final SignupSheetListener signupSheetListener){
  super(context);
  final View layout=LayoutInflater.from(context).inflate(R.layout.signup_bottom_sheet_dialog,null,false);
  Button termsOfServiceText=(Button)layout.findViewById(R.id.signup_tos);
  termsOfServiceText.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      signupSheetListener.onSignupSheetTermsOfServiceClicked();
    }
  }
);
  termsOfServiceText.setText(Html.fromHtml(String.format(context.getResources().getString(R.string.signup_terms_of_service_text),"String_Node_Str","String_Node_Str")));
  Button signupWithEmailButton=(Button)layout.findViewById(R.id.signup_email);
  signupWithEmailButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      signupSheetListener.onSignupSheetEmailClicked();
    }
  }
);
  Button signupWithGoogleButton=(Button)layout.findViewById(R.id.signup_google);
  signupWithGoogleButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      signupSheetListener.onSignupSheetGoogleClicked();
    }
  }
);
  setOnCancelListener(new OnCancelListener(){
    @Override public void onCancel(    DialogInterface dialog){
      signupSheetListener.onSignupSheetCanceled();
    }
  }
);
  setContentView(layout);
  final BottomSheetBehavior behavior=BottomSheetBehavior.from((View)layout.getParent());
  setOnShowListener(new OnShowListener(){
    @Override public void onShow(    DialogInterface dialog){
      behavior.setPeekHeight(layout.getHeight());
    }
  }
);
}

Fixed version (ground truth):
public SignupBottomSheetDialog(@NonNull final Context context,@NonNull final SignupSheetListener signupSheetListener){
  super(context);
  final View layout=LayoutInflater.from(context).inflate(R.layout.signup_bottom_sheet_dialog,null);
  Button termsOfServiceText=(Button)layout.findViewById(R.id.signup_tos);
  termsOfServiceText.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      signupSheetListener.onSignupSheetTermsOfServiceClicked();
    }
  }
);
  termsOfServiceText.setText(Html.fromHtml(String.format(context.getResources().getString(R.string.signup_terms_of_service_text),"String_Node_Str","String_Node_Str")));
  Button signupWithEmailButton=(Button)layout.findViewById(R.id.signup_email);
  signupWithEmailButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      signupSheetListener.onSignupSheetEmailClicked();
    }
  }
);
  Button signupWithGoogleButton=(Button)layout.findViewById(R.id.signup_google);
  signupWithGoogleButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      signupSheetListener.onSignupSheetGoogleClicked();
    }
  }
);
  setOnCancelListener(new OnCancelListener(){
    @Override public void onCancel(    DialogInterface dialog){
      signupSheetListener.onSignupSheetCanceled();
    }
  }
);
  setContentView(layout);
  final BottomSheetBehavior behavior=BottomSheetBehavior.from((View)layout.getParent());
  setOnShowListener(new OnShowListener(){
    @Override public void onShow(    DialogInterface dialog){
      behavior.setPeekHeight(layout.getHeight());
    }
  }
);
}