facebookresearch / starcraft_defogger
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 25 files with 5,635 lines of code.
    • 1 very long files (1,135 lines of code)
    • 2 long files (1,414 lines of code)
    • 6 medium size files (1,728 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (837 lines of code)
    • 10 very small files (521 lines of code)
20% | 25% | 30% | 14% | 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
h71% | 0% | 0% | 15% | 13%
py0% | 49% | 26% | 16% | 8%
cpp0% | 0% | 83% | 10% | 5%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
flatbuffers100% | 0% | 0% | 0% | 0%
ROOT0% | 45% | 31% | 15% | 7%
featurizers0% | 0% | 54% | 25% | 19%
Longest Files (Top 25)
File# lines# units
flatbuffers.h
in flatbuffers
1135 119
compare_models.py
in root
796 34
conv_lstm_models.py
in root
618 40
sweep.py
in root
438 5
utils.py
in root
316 21
fogofwar.cpp
in featurizers
291 3
coarse_conv_featurizer_units.cpp
in featurizers
240 7
coarse_conv_featurizer.cpp
in featurizers
233 5
_ext.cpp
in root
210 3
data.py
in root
198 21
baseline.py
in root
146 2
coarse_conv_featurizer_units_generated.h
in featurizers
129 19
conv_lstm_utils.py
in root
126 3
forward_conv2d_state_action_featurizer.cpp
in featurizers
125 4
coarse_conv_featurizer.h
in featurizers
113 8
forward_conv2d_state_action_featurizer.h
in featurizers
87 -
dump_replays_openbw.py
in root
86 3
reduce_data.py
in root
85 1
setup.py
in root
68 3
coarse_conv_featurizer_stats.cpp
in featurizers
60 1
fogofwar.h
in featurizers
50 -
coarse_conv_featurizer_units.h
in featurizers
48 1
coarse_conv_featurizer_stats.h
in featurizers
33 1
featurizer.h
in featurizers
3 -
featurizer.cpp
in featurizers
1 -
Files With Most Units (Top 20)
File# lines# units
flatbuffers.h
in flatbuffers
1135 119
conv_lstm_models.py
in root
618 40
compare_models.py
in root
796 34
utils.py
in root
316 21
data.py
in root
198 21
coarse_conv_featurizer_units_generated.h
in featurizers
129 19
coarse_conv_featurizer.h
in featurizers
113 8
coarse_conv_featurizer_units.cpp
in featurizers
240 7
coarse_conv_featurizer.cpp
in featurizers
233 5
sweep.py
in root
438 5
forward_conv2d_state_action_featurizer.cpp
in featurizers
125 4
fogofwar.cpp
in featurizers
291 3
conv_lstm_utils.py
in root
126 3
dump_replays_openbw.py
in root
86 3
_ext.cpp
in root
210 3
setup.py
in root
68 3
baseline.py
in root
146 2
coarse_conv_featurizer_units.h
in featurizers
48 1
coarse_conv_featurizer_stats.h
in featurizers
33 1
coarse_conv_featurizer_stats.cpp
in featurizers
60 1
Files With Long Lines (Top 7)

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

File# lines# units# long lines
coarse_conv_featurizer_units_generated.h
in featurizers
129 19 17
compare_models.py
in root
796 34 13
sweep.py
in root
438 5 6
conv_lstm_models.py
in root
618 40 5
utils.py
in root
316 21 4
reduce_data.py
in root
85 1 1
data.py
in root
198 21 1