You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Marco Neumann <ma...@gmail.com> on 2020/08/17 10:04:43 UTC

Jena XX - Apache Jena Lines of Code

In preparation for our Jena XX Lotico session next week*. Does the
following count for lines of code resonate with you and the actual code
developed for the Apache Jena project and modules in the github repository?
Specifically the approximation here for half a million lines of java code?

   27999 text files.
   25575 unique files.
    9048 files ignored.

--------------------------------------------------------------------------------
Language                      files          blank        comment
code
--------------------------------------------------------------------------------
HTML                          11497           2878         428777
 3376157
Java                           6478         124799         267155
563264
XML                             621            856            741
 79787
JavaScript                      158           8412          11510
 43287
Maven                            56           1080           1293
6385
Bourne Shell                     62           1006           1268
4565
CSS                              22            204            269
2349
Bourne Again Shell               51            511            813
2055
XSLT                              4            275            148
1108
DOS Batch                        50            251             30
 948
SVG                               2              0              0
 733
Ruby                              5            130            116
 721
Perl                              5            246            257
 622
Markdown                         14            135              0
 244
Smarty                            7             15              0
 220
DTD                               1             45             73
  88
INI                               2             19              0
  66
AspectJ                           1              8             46
  36
XSD                               1              6             13
  34
Elixir                            1             12             42
   9
YAML                              2              0             88
   9
--------------------------------------------------------------------------------
SUM:                          19040         140888         712639
 4082687
--------------------------------------------------------------------------------
-- 

Are there other metrics in the apache/jena github repository that show the
entire code development over time?

* http://www.lotico.com/index.php/Jena_XX


---
Marco Neumann
KONA

Re: Jena XX - Apache Jena Lines of Code

Posted by Marco Neumann <ma...@gmail.com>.
very good, yes so jena-arq and jena-core are by far the largest artifacts

                        Code            Code -path '*src/main'
---------------------------------------------------------
jena-arq                178785          138635
jena-core               126511          71270
jena-db                 32552           23708
jena-tdb                30187           21283
jena-fuseki2            20478           14211
jena-geosparql          24692           9363
jena-sdb                23155           18448
jena-permissions        17330           9516
jena-jdbc               17186           8771
jena-base               13666           8761
jena-extras             13557           6393
jena-shacl              12472           11852
jena-elephas            11620           6181
jena-text               10584           4098
jena-iri                11553           10310
jena-cmds               10444           9211
jena-spatial            4143            2117
jena-rdfconnection      2272            1774
jena-text-es            1006            584
jena-integration-tests  630
jena-examples           280             260
apache-jena-libs        39




On Mon, Aug 17, 2020 at 6:02 PM Andy Seaborne <an...@apache.org> wrote:

> Seems high. Possibly because the repo wasn't "mvn clean"'ed first. That
> accounts for HTML which is 3e6.
>
> mvn clean
>
> find . -path '*src/main' | xargs cloc > cloc-main
>
> Java  code: 377130
>
> find . -path '*src/main' | xargs du -shc | tail -1
> 42M     total
>
> find . -path '*src/test' | xargs cloc > cloc-test
>
> Java   code: 183198
>
> find . -path '*src/test' | xargs du -shc | tail -1
> 18M     total
>
>
> find . -name src | xargs cloc > cloc-all
>
> Java   code: 560647
>
> find . -name src | xargs du -shc | tail -1
> 60M     total
>
>
>      Andy
>
>
> main:
>
>
> -------------------------------------------------------------------------------
> Language                     files          blank        comment
>  code
>
> -------------------------------------------------------------------------------
> Java                          4573          85096         206792
>  377130
> JavaScript                      70           4514           5933
> 26687
> XML                             12            184            331
>  1659
> HTML                            39            196            531
>  1584
> CSS                             16            135            114
>   796
> XSLT                             1            184             36
>   751
> SVG                              2              0              0
>   733
> Smarty                           7             15              0
>   220
> DTD                              1             45             73
>    88
> AspectJ                          1              8             46
>    36
> INI                              1             10              0
>    28
> Bourne Shell                     1              4              0
>    17
>
> -------------------------------------------------------------------------------
> SUM:                          4724          90391         213856
>  409729
>
> -------------------------------------------------------------------------------
>
> test:
>
> -------------------------------------------------------------------------------
> Language                     files          blank        comment
>  code
>
> -------------------------------------------------------------------------------
> Java                          1835          38846          58077
>  183198
> XML                              4             19            198
>  9502
> HTML                             1              3             15
>    12
>
> -------------------------------------------------------------------------------
> SUM:                          1840          38868          58290
>  192712
>
> -------------------------------------------------------------------------------
>
> all
>
> -------------------------------------------------------------------------------
> Language                     files          blank        comment
>  code
>
> -------------------------------------------------------------------------------
> Java                          6413         124010         265091
>  560647
> JavaScript                      70           4514           5933
> 26687
> XML                             16            203            529
> 11161
> HTML                            40            199            546
>  1596
> CSS                             16            135            114
>   796
> XSLT                             1            184             36
>   751
> SVG                              2              0              0
>   733
> Smarty                           7             15              0
>   220
> DTD                              1             45             73
>    88
> INI                              2             19              0
>    66
> AspectJ                          1              8             46
>    36
> Bourne Shell                     1              4              0
>    17
>
> -------------------------------------------------------------------------------
> SUM:                          6570         129336         272368
>  602798
>
> -------------------------------------------------------------------------------
>
>

-- 


---
Marco Neumann
KONA

Re: Jena XX - Apache Jena Lines of Code

Posted by Andy Seaborne <an...@apache.org>.
Seems high. Possibly because the repo wasn't "mvn clean"'ed first. That accounts for HTML which is 3e6.

mvn clean

find . -path '*src/main' | xargs cloc > cloc-main

Java  code: 377130

find . -path '*src/main' | xargs du -shc | tail -1
42M	total

find . -path '*src/test' | xargs cloc > cloc-test

Java   code: 183198

find . -path '*src/test' | xargs du -shc | tail -1
18M	total


find . -name src | xargs cloc > cloc-all

Java   code: 560647

find . -name src | xargs du -shc | tail -1
60M	total


     Andy


main:

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Java                          4573          85096         206792         377130
JavaScript                      70           4514           5933          26687
XML                             12            184            331           1659
HTML                            39            196            531           1584
CSS                             16            135            114            796
XSLT                             1            184             36            751
SVG                              2              0              0            733
Smarty                           7             15              0            220
DTD                              1             45             73             88
AspectJ                          1              8             46             36
INI                              1             10              0             28
Bourne Shell                     1              4              0             17
-------------------------------------------------------------------------------
SUM:                          4724          90391         213856         409729
-------------------------------------------------------------------------------

test:
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Java                          1835          38846          58077         183198
XML                              4             19            198           9502
HTML                             1              3             15             12
-------------------------------------------------------------------------------
SUM:                          1840          38868          58290         192712
-------------------------------------------------------------------------------

all
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Java                          6413         124010         265091         560647
JavaScript                      70           4514           5933          26687
XML                             16            203            529          11161
HTML                            40            199            546           1596
CSS                             16            135            114            796
XSLT                             1            184             36            751
SVG                              2              0              0            733
Smarty                           7             15              0            220
DTD                              1             45             73             88
INI                              2             19              0             66
AspectJ                          1              8             46             36
Bourne Shell                     1              4              0             17
-------------------------------------------------------------------------------
SUM:                          6570         129336         272368         602798
-------------------------------------------------------------------------------