def parse_repo_info(data): return ( f"Название: {data.get('name', '—')}\n" f"Описание: {data.get('description') or '—'}\n" f"Автор: {data.get('owner', {}).get('login', '—')}\n" f"Создан: {data.get('created_at', '—')}\n" f"Изменён: {data.get('updated_at', '—')}\n" ) def parse_authors(commits): authors = set() for commit in commits: try: name = commit["commit"]["author"]["name"] if name: authors.add(name) except Exception: continue return sorted(authors)