facebookincubator / retrie
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 37 files with 6,399 lines of code.
    • 1 very long files (1,198 lines of code)
    • 0 long files (0 lines of code)
    • 8 medium size files (2,625 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,638 lines of code)
    • 16 very small files (938 lines of code)
18% | 0% | 41% | 25% | 14%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
hs19% | 0% | 42% | 23% | 15%
cabal0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Retrie/PatternMap84% | 0% | 0% | 8% | 6%
Retrie0% | 0% | 64% | 19% | 16%
ROOT0% | 0% | 0% | 97% | 2%
Retrie/Rewrites0% | 0% | 0% | 70% | 29%
Retrie/ExactPrint0% | 0% | 0% | 100% | 0%
hse0% | 0% | 0% | 0% | 100%
Longest Files (Top 37)
File# lines# units
hs
Instances.hs
in Retrie/PatternMap
1198 -
hs
ExactPrint.hs
in Retrie
466 -
hs
Options.hs
in Retrie
460 -
hs
Expr.hs
in Retrie
366 -
hs
Types.hs
in Retrie
315 -
hs
CPP.hs
in Retrie
310 -
hs
Monad.hs
in Retrie
256 -
hs
Rewrites.hs
in Retrie
251 -
hs
Context.hs
in Retrie
201 -
cabal
176 -
hs
Run.hs
in Retrie
157 -
hs
Retrie.hs
in root
157 -
hs
GHC.hs
in Retrie
150 -
hs
Annotated.hs
in Retrie/ExactPrint
144 -
hs
Function.hs
in Retrie/Rewrites
132 -
hs
Subst.hs
in Retrie
128 -
hs
Replace.hs
in Retrie
127 -
hs
Bag.hs
in Retrie/PatternMap
126 -
hs
Patterns.hs
in Retrie/Rewrites
123 -
hs
Universe.hs
in Retrie
113 -
hs
Elaborate.hs
in Retrie
105 -
hs
Util.hs
in Retrie
100 -
hs
Class.hs
in Retrie/PatternMap
98 -
hs
SYB.hs
in Retrie
83 -
hs
68 -
hs
AlphaEnv.hs
in Retrie
66 -
hs
Pretty.hs
in Retrie
63 -
hs
63 -
hs
Query.hs
in Retrie
62 -
hs
Types.hs
in Retrie/Rewrites
60 -
hs
FreeVars.hs
in Retrie
51 -
hs
48 -
hs
Fixity.hs
in Retrie
48 -
hs
Rules.hs
in Retrie/Rewrites
47 -
hs
Fixity.hs
in hse
40 -
hs
Debug.hs
in Retrie
34 -
hs
Setup.hs
in root
7 -
Files With Most Units (Top 0)
File# lines# units
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 7 long lines.

File# lines# units# long lines
hs
Instances.hs
in Retrie/PatternMap
1198 - 3
hs
Rewrites.hs
in Retrie
251 - 3
hs
ExactPrint.hs
in Retrie
466 - 1
Correlations

File Size vs. Commits (all time): 34 points

retrie.cabal x: 19 commits (all time) y: 176 lines of code Retrie/Options.hs x: 9 commits (all time) y: 460 lines of code Retrie/ExactPrint/Annotated.hs x: 3 commits (all time) y: 144 lines of code Retrie.hs x: 1 commits (all time) y: 157 lines of code Retrie/CPP.hs x: 2 commits (all time) y: 310 lines of code Retrie/Context.hs x: 5 commits (all time) y: 201 lines of code Retrie/Debug.hs x: 1 commits (all time) y: 34 lines of code Retrie/Elaborate.hs x: 2 commits (all time) y: 105 lines of code Retrie/ExactPrint.hs x: 7 commits (all time) y: 466 lines of code Retrie/Expr.hs x: 8 commits (all time) y: 366 lines of code Retrie/Fixity.hs x: 2 commits (all time) y: 48 lines of code Retrie/GHC.hs x: 7 commits (all time) y: 150 lines of code Retrie/GroundTerms.hs x: 1 commits (all time) y: 68 lines of code Retrie/Monad.hs x: 1 commits (all time) y: 256 lines of code Retrie/PatternMap/Bag.hs x: 3 commits (all time) y: 126 lines of code Retrie/PatternMap/Instances.hs x: 14 commits (all time) y: 1198 lines of code Retrie/Quantifiers.hs x: 1 commits (all time) y: 63 lines of code Retrie/Replace.hs x: 6 commits (all time) y: 127 lines of code Retrie/Rewrites.hs x: 4 commits (all time) y: 251 lines of code Retrie/Rewrites/Function.hs x: 7 commits (all time) y: 132 lines of code Retrie/Rewrites/Patterns.hs x: 5 commits (all time) y: 123 lines of code Retrie/Rewrites/Rules.hs x: 3 commits (all time) y: 47 lines of code Retrie/Rewrites/Types.hs x: 4 commits (all time) y: 60 lines of code Retrie/Run.hs x: 3 commits (all time) y: 157 lines of code Retrie/Subst.hs x: 5 commits (all time) y: 128 lines of code Retrie/Types.hs x: 2 commits (all time) y: 315 lines of code Retrie/Universe.hs x: 4 commits (all time) y: 113 lines of code Retrie/PatternMap/Class.hs x: 4 commits (all time) y: 98 lines of code Retrie/Util.hs x: 5 commits (all time) y: 100 lines of code hse/Fixity.hs x: 1 commits (all time) y: 40 lines of code Retrie/FreeVars.hs x: 1 commits (all time) y: 51 lines of code
1198.0
lines of code
  min: 34.0
  average: 183.62
  25th percentile: 62.75
  median: 126.5
  75th percentile: 213.5
  max: 1198.0
0 19.0
commits (all time)
min: 1.0 | average: 4.24 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 5.25 | max: 19.0

File Size vs. Contributors (all time): 34 points

retrie.cabal x: 5 contributors (all time) y: 176 lines of code Retrie/Options.hs x: 6 contributors (all time) y: 460 lines of code Retrie/ExactPrint/Annotated.hs x: 3 contributors (all time) y: 144 lines of code Retrie.hs x: 1 contributors (all time) y: 157 lines of code Retrie/CPP.hs x: 2 contributors (all time) y: 310 lines of code Retrie/Context.hs x: 3 contributors (all time) y: 201 lines of code Retrie/Debug.hs x: 1 contributors (all time) y: 34 lines of code Retrie/Elaborate.hs x: 2 contributors (all time) y: 105 lines of code Retrie/ExactPrint.hs x: 4 contributors (all time) y: 466 lines of code Retrie/Expr.hs x: 3 contributors (all time) y: 366 lines of code Retrie/Fixity.hs x: 2 contributors (all time) y: 48 lines of code Retrie/GHC.hs x: 2 contributors (all time) y: 150 lines of code Retrie/GroundTerms.hs x: 1 contributors (all time) y: 68 lines of code Retrie/Monad.hs x: 1 contributors (all time) y: 256 lines of code Retrie/PatternMap/Bag.hs x: 2 contributors (all time) y: 126 lines of code Retrie/PatternMap/Instances.hs x: 3 contributors (all time) y: 1198 lines of code Retrie/Quantifiers.hs x: 1 contributors (all time) y: 63 lines of code Retrie/Replace.hs x: 3 contributors (all time) y: 127 lines of code Retrie/Rewrites.hs x: 3 contributors (all time) y: 251 lines of code Retrie/Rewrites/Function.hs x: 3 contributors (all time) y: 132 lines of code Retrie/Rewrites/Rules.hs x: 2 contributors (all time) y: 47 lines of code Retrie/Rewrites/Types.hs x: 2 contributors (all time) y: 60 lines of code Retrie/Run.hs x: 3 contributors (all time) y: 157 lines of code Retrie/Types.hs x: 2 contributors (all time) y: 315 lines of code Retrie/Universe.hs x: 3 contributors (all time) y: 113 lines of code Retrie/PatternMap/Class.hs x: 2 contributors (all time) y: 98 lines of code Retrie/Util.hs x: 4 contributors (all time) y: 100 lines of code hse/Fixity.hs x: 1 contributors (all time) y: 40 lines of code Retrie/FreeVars.hs x: 1 contributors (all time) y: 51 lines of code
1198.0
lines of code
  min: 34.0
  average: 183.62
  25th percentile: 62.75
  median: 126.5
  75th percentile: 213.5
  max: 1198.0
0 6.0
contributors (all time)
min: 1.0 | average: 2.38 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 6.0

File Size vs. Commits (30 days): 1 points

retrie.cabal x: 2 commits (30d) y: 176 lines of code
176.0
lines of code
  min: 176.0
  average: 176.0
  25th percentile: 176.0
  median: 176.0
  75th percentile: 176.0
  max: 176.0
0 2.0
commits (30d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

File Size vs. Contributors (30 days): 1 points

retrie.cabal x: 1 contributors (30d) y: 176 lines of code
176.0
lines of code
  min: 176.0
  average: 176.0
  25th percentile: 176.0
  median: 176.0
  75th percentile: 176.0
  max: 176.0
0 1.0
contributors (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Commits (90 days): 3 points

retrie.cabal x: 3 commits (90d) y: 176 lines of code Retrie/Options.hs x: 1 commits (90d) y: 460 lines of code Retrie/ExactPrint/Annotated.hs x: 1 commits (90d) y: 144 lines of code
460.0
lines of code
  min: 144.0
  average: 260.0
  25th percentile: 144.0
  median: 176.0
  75th percentile: 460.0
  max: 460.0
0 3.0
commits (90d)
min: 1.0 | average: 1.67 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 3.0 | max: 3.0

File Size vs. Contributors (90 days): 3 points

retrie.cabal x: 1 contributors (90d) y: 176 lines of code Retrie/Options.hs x: 1 contributors (90d) y: 460 lines of code Retrie/ExactPrint/Annotated.hs x: 1 contributors (90d) y: 144 lines of code
460.0
lines of code
  min: 144.0
  average: 260.0
  25th percentile: 144.0
  median: 176.0
  75th percentile: 460.0
  max: 460.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0