facebookresearch / jps
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 22 files with 4,300 lines of code.
    • 1 very long files (1,420 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,435 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (1,041 lines of code)
    • 9 very small files (404 lines of code)
33% | 0% | 33% | 24% | 9%
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
h38% | 0% | 31% | 20% | 9%
cpp0% | 0% | 100% | 0% | 0%
cc0% | 0% | 0% | 71% | 28%
py0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
simple_game37% | 0% | 30% | 27% | 3%
rela0% | 0% | 50% | 0% | 49%
Longest Files (Top 22)
File# lines# units
search.h
in simple_game
1420 75
simple_hanabi.h
in simple_game
379 31
cfr_opt.h
in simple_game
320 24
utils.h
in rela
275 26
main.cpp
in simple_game
257 1
simple_bidding.h
in simple_game
204 19
two_suited_bridge.h
in simple_game
200 18
comm.h
in simple_game
172 18
cc
search.cc
in simple_game
164 11
comm2.h
in simple_game
149 17
load_strategies.py
in simple_game
128 5
kuhn.h
in simple_game
121 14
game_utils.h
in simple_game
107 2
env.h
in rela
84 15
types.h
in rela
78 1
utils.h
in simple_game
75 9
logging.h
in rela
49 1
cc
utils.cc
in rela
37 1
common.h
in simple_game
28 -
cc
pybind.cc
in simple_game
27 -
string_util.h
in rela
17 1
comm_options.h
in simple_game
9 -
Files With Most Units (Top 19)
File# lines# units
search.h
in simple_game
1420 75
simple_hanabi.h
in simple_game
379 31
utils.h
in rela
275 26
cfr_opt.h
in simple_game
320 24
simple_bidding.h
in simple_game
204 19
two_suited_bridge.h
in simple_game
200 18
comm.h
in simple_game
172 18
comm2.h
in simple_game
149 17
env.h
in rela
84 15
kuhn.h
in simple_game
121 14
cc
search.cc
in simple_game
164 11
utils.h
in simple_game
75 9
load_strategies.py
in simple_game
128 5
game_utils.h
in simple_game
107 2
main.cpp
in simple_game
257 1
string_util.h
in rela
17 1
types.h
in rela
78 1
cc
utils.cc
in rela
37 1
logging.h
in rela
49 1
Files With Long Lines (Top 3)

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

File# lines# units# long lines
cfr_opt.h
in simple_game
320 24 2
two_suited_bridge.h
in simple_game
200 18 1
utils.h
in rela
275 26 1