Created
March 9, 2016 17:00
-
-
Save AstraLuma/9f57a0db20c36e14f607 to your computer and use it in GitHub Desktop.
Python Processing Idea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gitlog = program("git" "log").by_lines() | |
| @gitlog.then | |
| def authors(lines): | |
| for line in lines: | |
| yield extractauthor(line) | |
| @authors.then | |
| def domains(emails): | |
| for e in emails: | |
| yield domain(e) | |
| totals = Counter(domains) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment