Published February 26, 2015
| Version JSEP2015
Software
Open
cwi-swat/jsep-sloc-versus-cc: Scripts and Data used for the Empirical analysis of the relationship between CC and SLOC in a large corpus of Java methods and C functions publication
Description
This archive contains a Rascal-MPL Eclipse project used to parse and calculate the metrics for the Java corpus and analyze the metrics from the Java corpus and the C corpus for the JSEP paper.
Next to it is the data of the CC and SLOC values for the Java and C corpora.
It contains the following files:
- src\gather\ASTs.rsc: The rascal script that gathers all ASTs using the m3 framework and stores it into a Rascal data file per project.
- src\gather\SLOCs.rsc: The rascal script that tokenizes all files in the Corpus and stores which lines contain Java statements to count for SLOC.
- src\metric\SLOC.rsc: The Java tokenized as discussed in Section III.B
- src\metric\CC.rsc: The Rascal code (depicted in Figure 1) which calculates CC.
- src\calculate\CCs.rsc: The rascal script that calculates the CC per method.
- src\analyse\JSEP2015.rsc: The calculations to combine the data used in the paper.
- data-java\method-cc-sloc.csv.gz : Method level CC and SLOC metric values.
- data-java\file-cc-sloc.csv.gz : File level aggregated CC and SLOC metric values.
- data-c\method-cc-sloc.csv.gz : Function level CC and SLOC metric values.
- data-c\file-cc-sloc.csv.gz : File level aggregated CC and SLOC metric values.
Files
cwi-swat/jsep-sloc-versus-cc-JSEP2015.zip
Files
(3.0 MB)
Name | Size | Download all |
---|---|---|
md5:f17cadd4a69757f8204e91c024ca7cf3
|
3.0 MB | Preview Download |
Additional details
Related works
- Compiles
- 10.1002/smr.1760 (DOI)
- Is supplement to
- https://github.com/cwi-swat/jsep-sloc-versus-cc/tree/JSEP2015 (URL)
- References
- 10.5281/zenodo.208213 (DOI)
- 10.5281/zenodo.208215 (DOI)