@staticmethod
def get_name(commit):
    """Extract the name from the author or committer.

        Arguments:
          commit (:py:class:`dict`): The JSON data from the response.

        Returns:
          :py:class:`str`: The author (or committer) name.

        """
    author = commit.get('author', {})
    if 'name' in author:
        return author['name']
    return commit.get('committer', {}).get('name')
