Detect common anti-bot / captcha pages returned by Scholar.
(html_text: str)
| 772 | stats["sample_titles"].append(title) |
| 773 | |
| 774 | collaboration_network = [] |
| 775 | for author_name, stats in coauthor_stats.items(): |
| 776 | top_venues = [venue for venue, _ in stats["venues"].most_common(3)] |
| 777 | collaboration_network.append( |
| 778 | { |
| 779 | "name": author_name, |
| 780 | "count": int(stats["count"]), |
| 781 | "citation_sum": int(stats["citation_sum"]), |
| 782 | "last_year": int(stats["last_year"] or 0), |
| 783 | "top_venues": top_venues, |
| 784 | "sample_titles": list(stats["sample_titles"][:2]), |
| 785 | } |
| 786 | ) |
| 787 | |
| 788 | collaboration_network.sort( |
| 789 | key=lambda item: ( |
no outgoing calls
no test coverage detected