Last active
August 29, 2015 14:15
-
-
Save carlzulauf/f1e4ebe7b479c3519a75 to your computer and use it in GitHub Desktop.
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
| # Intended to run inside this directory: | |
| # https://github.com/gregkh/kernel-history/tree/master/logs/summaries | |
| # sort release in proper ascending order | |
| paths = Dir.glob("results*").sort_by do |path| | |
| m = path.match(/results-(\d)\.(\d+)\.?(\d+)?/) | |
| "#{m[1]}.#{m[2].rjust(2,"0")}.#{m[3].to_s.rjust(2,"0")}" | |
| end | |
| puts "Canonical contributions" | |
| total = 0 | |
| stats = paths.each do |path| | |
| kernel = "#{path.match(/results-(.+)/)[1]}:".ljust(10) | |
| lines = File.read(path).lines | |
| start = lines.index { |line| line =~ /Top changeset contributors by employer/ rescue nil } | |
| stop = lines.index { |line| line =~ /Top lines changed by employer/ rescue nil } | |
| top = lines[start..stop] | |
| canonical_i = top.index { |line| line =~ /Canonical/ rescue nil } | |
| if canonical_i | |
| changes = top[canonical_i].match(/ +(\d+) \(/)[1].to_i | |
| total += changes | |
| puts "#{kernel} #{changes.to_s.rjust(2)} (Rank: #{canonical_i.to_s.rjust(3)})" | |
| else | |
| puts "#{kernel} No participation" | |
| end | |
| end | |
| puts nil, "Total: #{total} contributions" |
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
| Canonical contributions | |
| 2.6.11: No participation | |
| 2.6.12: No participation | |
| 2.6.13: No participation | |
| 2.6.14: No participation | |
| 2.6.15: No participation | |
| 2.6.16: 1 (Rank: 88) | |
| 2.6.17: No participation | |
| 2.6.18: No participation | |
| 2.6.19: No participation | |
| 2.6.20: No participation | |
| 2.6.21: No participation | |
| 2.6.22: 1 (Rank: 130) | |
| 2.6.23: 2 (Rank: 104) | |
| 2.6.24: 1 (Rank: 150) | |
| 2.6.25: 2 (Rank: 135) | |
| 2.6.26: 2 (Rank: 130) | |
| 2.6.27: 4 (Rank: 99) | |
| 2.6.28: 4 (Rank: 102) | |
| 2.6.29: 34 (Rank: 41) | |
| 2.6.30: 18 (Rank: 74) | |
| 2.6.31: 11 (Rank: 79) | |
| 2.6.32: 35 (Rank: 43) | |
| 2.6.33: 9 (Rank: 86) | |
| 2.6.34: 36 (Rank: 41) | |
| 2.6.35: 19 (Rank: 63) | |
| 2.6.36: 51 (Rank: 33) | |
| 2.6.37: 56 (Rank: 34) | |
| 2.6.38: 57 (Rank: 32) | |
| 2.6.39: 45 (Rank: 41) | |
| 3.0: 24 (Rank: 54) | |
| 3.1: 27 (Rank: 51) | |
| 3.2: 46 (Rank: 40) | |
| 3.3: 53 (Rank: 36) | |
| 3.4: 48 (Rank: 45) | |
| 3.5: 35 (Rank: 48) | |
| 3.6: 89 (Rank: 26) | |
| 3.7: 90 (Rank: 28) | |
| 3.8: 91 (Rank: 29) | |
| 3.9: 84 (Rank: 29) | |
| 3.10: 58 (Rank: 42) | |
| 3.11: 81 (Rank: 28) | |
| 3.12: 55 (Rank: 41) | |
| 3.13: 48 (Rank: 42) | |
| 3.14: 28 (Rank: 61) | |
| 3.15: 25 (Rank: 60) | |
| 3.16: 34 (Rank: 46) | |
| Total: 1304 contributions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment