Program: 14940
Project: 14940
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  ViewGroup rootView=(ViewGroup)inflater.inflate(R.layout.new_account_user_fragment_screen,container,false);
  WPTextView termsOfServiceTextView=(WPTextView)rootView.findViewById(R.id.l_agree_terms_of_service);
  termsOfServiceTextView.setText(Html.fromHtml(String.format(getString(R.string.agree_terms_of_service,"String_Node_Str","String_Node_Str"))));
  termsOfServiceTextView.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Uri uri=Uri.parse(Constants.URL_TOS);
      startActivity(new Intent(Intent.ACTION_VIEW,uri));
    }
  }
);
  mSignupButton=(WPTextView)rootView.findViewById(R.id.signup_button);
  mSignupButton.setOnClickListener(signupClickListener);
  mSignupButton.setEnabled(false);
  mProgressTextSignIn=(WPTextView)rootView.findViewById(R.id.nux_sign_in_progress_text);
  mProgressBarSignIn=(ProgressBar)rootView.findViewById(R.id.nux_sign_in_progress_bar);
  mEmailTextField=(EditText)rootView.findViewById(R.id.email_address);
  mEmailTextField.setText(UserEmail.getPrimaryEmail(getActivity()));
  mEmailTextField.setSelection(mEmailTextField.getText().toString().length());
  mPasswordTextField=(EditText)rootView.findViewById(R.id.password);
  mUsernameTextField=(EditText)rootView.findViewById(R.id.username);
  mSiteUrlTextField=(EditText)rootView.findViewById(R.id.site_url);
  mEmailTextField.addTextChangedListener(this);
  mPasswordTextField.addTextChangedListener(this);
  mUsernameTextField.addTextChangedListener(this);
  mSiteUrlTextField.addTextChangedListener(this);
  mUsernameTextField.addTextChangedListener(new TextWatcher(){
    @Override public void beforeTextChanged(    CharSequence s,    int start,    int count,    int after){
    }
    @Override public void onTextChanged(    CharSequence s,    int start,    int before,    int count){
      mSiteUrlTextField.setText(mUsernameTextField.getText().toString());
    }
    @Override public void afterTextChanged(    Editable s){
    }
  }
);
  mEmailTextField.setOnFocusChangeListener(new View.OnFocusChangeListener(){
    public void onFocusChange(    View v,    boolean hasFocus){
      if (!hasFocus) {
        autocorrectEmail();
      }
    }
  }
);
  return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  ViewGroup rootView=(ViewGroup)inflater.inflate(R.layout.new_account_user_fragment_screen,container,false);
  WPTextView termsOfServiceTextView=(WPTextView)rootView.findViewById(R.id.l_agree_terms_of_service);
  termsOfServiceTextView.setText(Html.fromHtml(String.format(getString(R.string.agree_terms_of_service),"String_Node_Str","String_Node_Str")));
  termsOfServiceTextView.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Uri uri=Uri.parse(Constants.URL_TOS);
      startActivity(new Intent(Intent.ACTION_VIEW,uri));
    }
  }
);
  mSignupButton=(WPTextView)rootView.findViewById(R.id.signup_button);
  mSignupButton.setOnClickListener(signupClickListener);
  mSignupButton.setEnabled(false);
  mProgressTextSignIn=(WPTextView)rootView.findViewById(R.id.nux_sign_in_progress_text);
  mProgressBarSignIn=(ProgressBar)rootView.findViewById(R.id.nux_sign_in_progress_bar);
  mEmailTextField=(EditText)rootView.findViewById(R.id.email_address);
  mEmailTextField.setText(UserEmail.getPrimaryEmail(getActivity()));
  mEmailTextField.setSelection(mEmailTextField.getText().toString().length());
  mPasswordTextField=(EditText)rootView.findViewById(R.id.password);
  mUsernameTextField=(EditText)rootView.findViewById(R.id.username);
  mSiteUrlTextField=(EditText)rootView.findViewById(R.id.site_url);
  mEmailTextField.addTextChangedListener(this);
  mPasswordTextField.addTextChangedListener(this);
  mUsernameTextField.addTextChangedListener(this);
  mSiteUrlTextField.addTextChangedListener(this);
  mUsernameTextField.addTextChangedListener(new TextWatcher(){
    @Override public void beforeTextChanged(    CharSequence s,    int start,    int count,    int after){
    }
    @Override public void onTextChanged(    CharSequence s,    int start,    int before,    int count){
      mSiteUrlTextField.setText(mUsernameTextField.getText().toString());
    }
    @Override public void afterTextChanged(    Editable s){
    }
  }
);
  mEmailTextField.setOnFocusChangeListener(new View.OnFocusChangeListener(){
    public void onFocusChange(    View v,    boolean hasFocus){
      if (!hasFocus) {
        autocorrectEmail();
      }
    }
  }
);
  return rootView;
}