Skip to content

Instantly share code, notes, and snippets.

@BruceZu
Last active February 15, 2025 11:34
Show Gist options
  • Save BruceZu/e8990e83e2b9273ce679e735581931a2 to your computer and use it in GitHub Desktop.
Save BruceZu/e8990e83e2b9273ce679e735581931a2 to your computer and use it in GitHub Desktop.
# Contribution to all SUDI RPCs
{
echo -e "Author\t\t\tCommits\tInsertions\tDeletions\tTotal" | tr '\t' '|'
git log --no-merges --pretty=format:"%an" --numstat -- . ':(exclude)trigger-*' ':(exclude)code_style.xml' | awk '
/^[^0-9]/ {
author = $0
commit_count[author]++
}
/^[0-9]/ {
insertions[author] += $1
deletions[author] += $2
}
END {
for (author in insertions) {
total = insertions[author] + deletions[author]
printf "%-20s|%8d|%10d|%10d|%10d\n", author, commit_count[author], insertions[author], deletions[author], total
}
}
' | sort -t'|' -k5,5nr
}
#output of Jan 6 2025 on master branch:
Bruce Zu | 408| 52521| 16788| 69309
anirudh.gali | 372| 24940| 7577| 32517
jiacheng.guo | 49| 24554| 4153| 28707
Haoran Liu | 59| 17333| 8351| 25684
Jacky Chen | 46| 16883| 3480| 20363
Xuan | 63| 14676| 2303| 16979
xiangwei.zheng | 103| 8437| 3703| 12140
Yiran Huang | 46| 8675| 1518| 10193
jerry.gao | 59| 5684| 3495| 9179
fengkexiang.cole | 24| 5071| 914| 5985
Rong Wei Wei | 6| 3391| 1639| 5030
yuting.wang | 10| 3285| 287| 3572
haoran.liu | 5| 3161| 33| 3194
Anirudh Ruia Gali | 23| 1841| 100| 1941
dalewyt | 1| 831| 160| 991
yiyong.guo | 14| 174| 307| 481
Xuan Wang | 2| 49| 83| 132
Xiang Xu | 2| 112| 16| 128
范子茜 | 1| 64| 28| 92
xuan.wang | 1| 7| 6| 13
# Contribution to 2 SUDI RPC: ad.sudi.entites and ad.sudi.acl
{
echo -e "Author\t\t\tCommits\tInsertions\tDeletions\tTotal" | tr '\t' '|'
git log --no-merges --pretty=format:"%an" --numstat -- sudi-thrift-entity-service sudi-thrift-acl-service ':(exclude)trigger-*' ':(exclude)code_style.xml' | awk '
/^[^0-9]/ {
author = $0
commit_count[author]++
}
/^[0-9]/ {
insertions[author] += $1
deletions[author] += $2
}
END {
for (author in insertions) {
total = insertions[author] + deletions[author]
printf "%-20s|%8d|%10d|%10d|%10d\n", author, commit_count[author], insertions[author], deletions[author], total
}
}
' | sort -t'|' -k5,5nr
}
#output of Jan 6 2025 on master branch:
Author|||Commits|Insertions|Deletions|Total
Bruce Zu | 348| 44550| 15095| 59645
Xuan | 45| 11282| 1748| 13030
Yiran Huang | 34| 6613| 1027| 7640
Haoran Liu | 32| 4888| 1719| 6607
xiangwei.zheng | 55| 3828| 1791| 5619
anirudh.gali | 113| 3515| 1481| 4996
jiacheng.guo | 10| 3107| 1315| 4422
fengkexiang.cole | 22| 3347| 809| 4156
Jacky Chen | 5| 2116| 727| 2843
Anirudh Ruia Gali | 9| 1497| 57| 1554
yuting.wang | 1| 1| 0| 1
@BruceZu
Copy link
Author

BruceZu commented Feb 15, 2025

image

@BruceZu
Copy link
Author

BruceZu commented Feb 15, 2025

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment