Class CodeMetrics
java.lang.Object
io.github.jbastgen.stemma.app.git.CodeMetrics
The size of the code of a repository as it is now: lines, files, and the languages or file types used. Pure: it is given the
number of lines of each file, which
countLines(byte[]) counts.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne language (or file type): its files and lines. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondoubleAverage number of lines of a file; 0 without files.
-
Field Details
-
files
public final int files -
lines
public final long lines -
languages
Languages by lines, the biggest first. -
truncated
public final boolean truncatedWhether the file list was cut off.
-
-
Method Details
-
averagePerFile
public double averagePerFile()Average number of lines of a file; 0 without files.
-