www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Counting D contributors

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
Please check my code. It prints 126 - congratulations everyone!

Andrei



TAG_FROM=v2.065.0
TAG_TO=v2.066.0

function stream() {
     local DIR=$1
     (
         cd $DIR && \
         { git log $TAG_FROM..$TAG_TO|grep '^Author:'|sort|uniq } || \
         echo >&2 "Failed: $DIR"
     )
}

cat  <(stream phobos) <(stream dlang.org) <(stream druntime) \
         <(stream dmd) <(stream tools) <(stream installer) | \
     sort | uniq | wc -l




Aug 18 2014
next sibling parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Monday, 18 August 2014 at 17:40:45 UTC, Andrei Alexandrescu 
wrote:
 git log $TAG_FROM..$TAG_TO|grep '^Author:'
I would suggest replacing this with "git log --pretty=format:%an". This should be a bit more efficient, and avoid counting multiple email addresses belonging to the same author as different contributors.
Aug 18 2014
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/18/14, 10:48 AM, Vladimir Panteleev wrote:
 On Monday, 18 August 2014 at 17:40:45 UTC, Andrei Alexandrescu wrote:
 git log $TAG_FROM..$TAG_TO|grep '^Author:'
I would suggest replacing this with "git log --pretty=format:%an". This should be a bit more efficient, and avoid counting multiple email addresses belonging to the same author as different contributors.
I get 117 with that. What gives? Do we have people with multiple emails, or identical names? Andrei
Aug 18 2014
next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/18/14, 11:48 AM, Andrei Alexandrescu wrote:
 On 8/18/14, 10:48 AM, Vladimir Panteleev wrote:
 On Monday, 18 August 2014 at 17:40:45 UTC, Andrei Alexandrescu wrote:
 git log $TAG_FROM..$TAG_TO|grep '^Author:'
I would suggest replacing this with "git log --pretty=format:%an". This should be a bit more efficient, and avoid counting multiple email addresses belonging to the same author as different contributors.
I get 117 with that. What gives? Do we have people with multiple emails, or identical names? Andrei
Anyhow here's the source for the published numbers: http://pastebin.com/1CgtiNBx Andrei
Aug 18 2014
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 18/08/14 20:48, Andrei Alexandrescu wrote:

 I get 117 with that. What gives? Do we have people with multiple emails,
 or identical names?
Hara Kenji seems to be using two usernames/email address "k-hara" and "9rnsr". -- /Jacob Carlborg
Aug 19 2014
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/19/14, 12:25 AM, Jacob Carlborg wrote:
 On 18/08/14 20:48, Andrei Alexandrescu wrote:

 I get 117 with that. What gives? Do we have people with multiple emails,
 or identical names?
Hara Kenji seems to be using two usernames/email address "k-hara" and "9rnsr".
Neither is listed at https://github.com/D-Programming-Language/phobos/graphs/contributors. -- Andrei
Aug 19 2014
parent reply Jacob Carlborg <doob me.com> writes:
On 2014-08-19 16:11, Andrei Alexandrescu wrote:

 Neither is listed at
 https://github.com/D-Programming-Language/phobos/graphs/contributors. --
 Andrei
"9rnsr" is listed for DMD [1], with very few commits. A wild guess: that page only tracks Github accounts. Hara Kenji is doing all his work with the "k-hara" username which doesn't correspond to a Github account. Although all merged pull request is done with the "9rnsr" account since it's done via Github. I'm guessing that page doesn't count merge commits. [1] https://github.com/D-Programming-Language/dmd/graphs/contributors -- /Jacob Carlborg
Aug 19 2014
parent reply "Dicebot" <public dicebot.lv> writes:
On Tuesday, 19 August 2014 at 16:01:10 UTC, Jacob Carlborg wrote:
 On 2014-08-19 16:11, Andrei Alexandrescu wrote:

 Neither is listed at
 https://github.com/D-Programming-Language/phobos/graphs/contributors. 
 --
 Andrei
"9rnsr" is listed for DMD [1], with very few commits. A wild guess: that page only tracks Github accounts. Hara Kenji is doing all his work with the "k-hara" username which doesn't correspond to a Github account. Although all merged pull request is done with the "9rnsr" account since it's done via Github. I'm guessing that page doesn't count merge commits. [1] https://github.com/D-Programming-Language/dmd/graphs/contributors
This matches my knowledge and observations. It only counts actual commits authors which have GitHub accounts with same e-mails as defined in commit metadata.
Aug 19 2014
parent Jacob Carlborg <doob me.com> writes:
On 2014-08-19 18:07, Dicebot wrote:

 This matches my knowledge and observations. It only counts actual
 commits authors which have GitHub accounts with same e-mails as defined
 in commit metadata.
It's easy to register an additional email address and suddenly "k-hara" will be recognized as the same account as "9rnsr". -- /Jacob Carlborg
Aug 19 2014
prev sibling parent reply "H. S. Teoh via Digitalmars-d" <digitalmars-d puremagic.com> writes:
On Mon, Aug 18, 2014 at 10:40:50AM -0700, Andrei Alexandrescu via Digitalmars-d
wrote:
 Please check my code. It prints 126 - congratulations everyone!
https://github.com/D-Programming-Language/phobos/graphs/contributors :-) --T
Aug 18 2014
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/18/14, 11:09 AM, H. S. Teoh via Digitalmars-d wrote:
 On Mon, Aug 18, 2014 at 10:40:50AM -0700, Andrei Alexandrescu via
Digitalmars-d wrote:
 Please check my code. It prints 126 - congratulations everyone!
https://github.com/D-Programming-Language/phobos/graphs/contributors
That's only phobos, we need aggregate. -- Andrei
Aug 18 2014
next sibling parent reply "Jesse Phillips" <Jesse.K.Phillips+D gmail.com> writes:
On Monday, 18 August 2014 at 18:48:36 UTC, Andrei Alexandrescu 
wrote:
 On 8/18/14, 11:09 AM, H. S. Teoh via Digitalmars-d wrote:
 On Mon, Aug 18, 2014 at 10:40:50AM -0700, Andrei Alexandrescu 
 via Digitalmars-d wrote:
 Please check my code. It prints 126 - congratulations 
 everyone!
https://github.com/D-Programming-Language/phobos/graphs/contributors
That's only phobos, we need aggregate. -- Andrei
I don't have a good answer for aggregate data. Phobos: 201 https://www.openhub.net/p/libphobos Druntime: 97 https://www.openhub.net/p/druntime DMD: 124 https://www.openhub.net/p/dmd I'm not sure why your aggregate number is smaller than the number here for Phobos. Some time ago I'd gone through the list of names and added alias for those with obvious duplication (spacing, underscores) The API might allow for enough information to combine the results of these three projects. And if we spend some time to merge aliases again, then we'll benefit from Oholoh's statistics. https://github.com/blackducksw/ohloh_api
Aug 18 2014
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/18/14, 12:54 PM, Jesse Phillips wrote:
 On Monday, 18 August 2014 at 18:48:36 UTC, Andrei Alexandrescu wrote:
 On 8/18/14, 11:09 AM, H. S. Teoh via Digitalmars-d wrote:
 On Mon, Aug 18, 2014 at 10:40:50AM -0700, Andrei Alexandrescu via
 Digitalmars-d wrote:
 Please check my code. It prints 126 - congratulations everyone!
https://github.com/D-Programming-Language/phobos/graphs/contributors
That's only phobos, we need aggregate. -- Andrei
I don't have a good answer for aggregate data. Phobos: 201 https://www.openhub.net/p/libphobos Druntime: 97 https://www.openhub.net/p/druntime DMD: 124 https://www.openhub.net/p/dmd I'm not sure why your aggregate number is smaller than the number here for Phobos.
I think it's because that's counting all contributors since the project started, whereas the script only counts those contributing to 2.066.
 Some time ago I'd gone through the list of names and added
 alias for those with obvious duplication (spacing, underscores)

 The API might allow for enough information to combine the results of
 these three projects. And if we spend some time to merge aliases again,
 then we'll benefit from Oholoh's statistics.
 https://github.com/blackducksw/ohloh_api
Did you just volunteer? Andrei
Aug 18 2014
prev sibling parent reply "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Monday, 18 August 2014 at 18:48:36 UTC, Andrei Alexandrescu 
wrote:
 On 8/18/14, 11:09 AM, H. S. Teoh via Digitalmars-d wrote:
 On Mon, Aug 18, 2014 at 10:40:50AM -0700, Andrei Alexandrescu 
 via Digitalmars-d wrote:
 Please check my code. It prints 126 - congratulations 
 everyone!
https://github.com/D-Programming-Language/phobos/graphs/contributors
That's only phobos, we need aggregate. -- Andrei
It also doesn't list everyone. For instance, for whatever reason, Kenji isn't listed, and he's obviously a big contributor. - Jonathan M Davis
Aug 18 2014
next sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/18/14, 1:16 PM, Jonathan M Davis wrote:
 On Monday, 18 August 2014 at 18:48:36 UTC, Andrei Alexandrescu wrote:
 On 8/18/14, 11:09 AM, H. S. Teoh via Digitalmars-d wrote:
 On Mon, Aug 18, 2014 at 10:40:50AM -0700, Andrei Alexandrescu via
 Digitalmars-d wrote:
 Please check my code. It prints 126 - congratulations everyone!
https://github.com/D-Programming-Language/phobos/graphs/contributors
That's only phobos, we need aggregate. -- Andrei
It also doesn't list everyone. For instance, for whatever reason, Kenji isn't listed, and he's obviously a big contributor.
That's odd. Although Kenji works mainly on dmd, I'm positive he has at least a few commits in Phobos. What's going on? -- Andrei
Aug 18 2014
parent "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Monday, 18 August 2014 at 20:21:05 UTC, Andrei Alexandrescu 
wrote:
 That's odd. Although Kenji works mainly on dmd, I'm positive he 
 has at least a few commits in Phobos. What's going on? -- Andrei
I believe that's because Kenji's git email is not associated with his GitHub profile.
Aug 18 2014
prev sibling parent reply =?UTF-8?B?QWxpIMOHZWhyZWxp?= <acehreli yahoo.com> writes:
On 08/18/2014 01:16 PM, Jonathan M Davis wrote:

 for whatever reason, Kenji isn't listed, and he's obviously a
 big contributor.
Kenji cannot be captured by tools written by mortals. :p Ali
Aug 18 2014
parent simendsjo <simendsjo gmail.com> writes:
On 08/18/2014 11:58 PM, Ali Çehreli wrote:
 On 08/18/2014 01:16 PM, Jonathan M Davis wrote:
 
 for whatever reason, Kenji isn't listed, and he's obviously a
 big contributor.
Kenji cannot be captured by tools written by mortals. :p Ali
LOL! We need a Kenji Hara facts page like this: http://meta.stackexchange.com/questions/9134/jon-skeet-facts
Aug 18 2014