Skip to content

Repository files navigation

SourceCodeRectAnalyzer

R script which analyzes for all files of the max number of char per lines per file and the max number of lines per file

Purpose

This script will run through the source code files of a project and extract the max line length and the number of lines of each source code file.

Environment

This is a R script which will work best with RStudio. If you do not use RStudio you will have to change the import path.

Usage

  1. Put the uncompressed source code files in the folder 'data'.
  2. Adjust the file extension filter allowedExtensions.
  3. Run the script in RStudio.

Example Result

Elastic Search (2019-11-28):

nrfilewidthheight
1elasticsearch-master/benchmarks/src/main/java/org/ elasticsearch/benchmark/fs/AvailableIndexFoldersBenchmark.java9794
2elasticsearch-master/benchmarks/src/main/java/org/ elasticsearch/benchmark/indices/breaker/MemoryStatsBenchmark.java91105
3elasticsearch-master/benchmarks/src/main/java/org/ elasticsearch/benchmark/routing/allocation/AllocationBenchmark.java138168
4elasticsearch-master/benchmarks/src/main/java/org/ elasticsearch/benchmark/routing/allocation/Allocators.java13299

Row 1-4 of 12195

The red line marks the classic 80 character per line limit

About

R script which analyzes for all files of the max number of char per lines per file and the max number of lines per file

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages