original_docstring: Adjust capitalization of s according to orig_s. Example: if s=will orig_s=Wo then return Will
docstring: Adjust capitalization of s according to orig_s. Example: if s=will orig_s=Wo then return Will
docstring_tokens: Adjust capitalization of s according to orig_s . Example : if s = will orig_s = Wo then return Will
code: def adjust_capitalization(s: str, orig_s) -> str:
      """Adjust capitalization of s according to orig_s. Example: if s=will orig_s=Wo then return Will"""
      if s == orig_s:
          return s
      else:
          if re_non_letter.sub('', s) == (orig_s_letters := re_non_letter.sub('', orig_s)):
              return s
          elif (len(orig_s_letters) >= 1) and orig_s_letters[0].isupper():
              if (len(orig_s_letters) >= 2) and orig_s_letters[1].isupper():
                  return s.upper()
              elif m2 := re_split_on_first_letter.match(s):
                  return m2.group(1) + m2.group(2).capitalize()
              else:
                  return s.capitalize()
          else:
              return s
code_tokens: def adjust_capitalization ( s : str , orig_s ) -> str : if s == orig_s : return s else : if re_non_letter . sub ( '' , s ) == ( orig_s_letters := re_non_letter . sub ( '' , orig_s ) ) : return s elif ( len ( orig_s_letters ) >= 1 ) and orig_s_letters [ 0 ] . isupper ( ) : if ( len ( orig_s_letters ) >= 2 ) and orig_s_letters [ 1 ] . isupper ( ) : return s . upper ( ) elif m2 := re_split_on_first_letter . match ( s ) : return m2 . group ( 1 ) + m2 . group ( 2 ) . capitalize ( ) else : return s . capitalize ( ) else : return s
short_docstring: Adjust capitalization of s according to orig_s.
short_docstring_tokens: Adjust capitalization of s according to orig_s .
comment: """Adjust capitalization of s according to orig_s. Example: if s=will orig_s=Wo then return Will"""