def AddTokenToState(self, newline, dry_run, must_split=False):
    penalty = 0
    if newline:
      penalty = self._AddTokenOnNewline(dry_run, must_split)
    else:
      self._AddTokenOnCurrentLine(dry_run)

    return self._MoveStateToNextToken() + penalty
Validates that the bug tracker hosting url is valid.
dataset/ETHPy150Open google/yapf/yapf/yapflib/format_decision_state.py/FormatDecisionState.AddTokenToState--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/scmtools/forms.py/RepositoryForm.clean_bug_tracker_hosting_url