original_docstring: Convert a one-based index to a zero-based index.
docstring: Convert a one-based index to a zero-based index.
docstring_tokens: Convert a one - based index to a zero - based index .
code: def _zero_based_index(self, onebased: Union[int, str]) -> int:
          """Convert a one-based index to a zero-based index."""
          result = int(onebased)
          if result > 0:
              result -= 1
          return result
code_tokens: def _zero_based_index ( self , onebased : Union [ int , str ] ) -> int : result = int ( onebased ) if result > 0 : result -= 1 return result
short_docstring: Convert a one-based index to a zero-based index.
short_docstring_tokens: Convert a one - based index to a zero - based index .
comment: """Convert a one-based index to a zero-based index."""