Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


Hi,

On Thursday, 2017-05-11 15:44:56 +0100, Michael Meeks wrote:

    + openhub statistics (2001-01-01), -1(-1) people did -1(-1) commits in 12 month in -1(-1) 
lines of code
         + Is that really so ? -1 lines is a lot ...

Currently https://www.openhub.net/p/libreoffice says

30 Day Summary
Apr 1 2017 — May 1 2017
1216 Commits
79 Contributors

12 Month Summary
May 1 2016 — May 1 2017
15733 Commits
Down -2331 (12%) from previous 12 months
270 Contributors
Down -30 (10%) from previous 12 months

However, OpenHub notoriously being a source of not updated data (and now
maybe an API change so all those -1 values?), I propose we
(additionally) use the GitHub data from
https://github.com/LibreOffice/core/pulse/monthly

Excluding merges, 85 authors have pushed 1,279 commits to master and
1,932 commits to all branches. On master, 5,591 files have changed and
there have been 111,775 additions and 71,331 deletions.


API doc at https://developer.github.com/v3/repos/statistics/

For example, commits last 52 weeks daily (no author count though)
curl -i https://api.github.com/repos/LibreOffice/core/stats/commit_activity
piped through
awk -e '/^ +"total": [[:digit:]]+,$/ {if(++i>=48){n+=substr($2,1,length($2)-1)}} END{print 
"Commits: " n}'

gives the number of commits of the last 4 weeks plus days of current
week (currently 1339).
Note this awk scriptlet works only for unauthenticated (limited to 60
per hour per IP) API queries as otherwise the JSON data is all on one
line..

The example uses the source data of graphs with commits daily / weekly / 52 weeks
https://github.com/LibreOffice/core/graphs/commit-activity

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Care about Free Software, support the FSFE https://fsfe.org/support/?erack

Attachment: signature.asc
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.