facebookresearch / digit-design
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 26 files with 16,732 lines of code.
    • 7 very long files (14,127 lines of code)
    • 1 long files (598 lines of code)
    • 3 medium size files (806 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (750 lines of code)
    • 10 very small files (451 lines of code)
84% | 3% | 4% | 4% | 2%
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
gtl95% | 0% | 4% | 0% | 0%
gbl96% | 0% | 0% | 3% | 0%
gto100% | 0% | 0% | 0% | 0%
gbo0% | 74% | 0% | 25% | 0%
gbs0% | 0% | 71% | 0% | 28%
gts0% | 0% | 67% | 0% | 32%
gbp0% | 0% | 0% | 75% | 24%
gtp0% | 0% | 0% | 67% | 32%
py0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
hardware/fabrication/digit85% | 5% | 5% | 3% | 0%
hardware/fabrication/digit-flex/2020-193% | 0% | 0% | 2% | 4%
hardware/fabrication/digit-flex/2021-264% | 0% | 11% | 14% | 9%
firmware/digit-programmer0% | 0% | 0% | 0% | 100%
Longest Files (Top 26)
File# lines# units
gtl
digit_copper_signal_top.gtl
in hardware/fabrication/digit
3658 -
gbl
digit_copper_signal_bot.gbl
in hardware/fabrication/digit
3626 -
gtl
digit_flex.gtl
in hardware/fabrication/digit-flex/2020-1
1771 -
gto
digit_legend_top.gto
in hardware/fabrication/digit
1425 -
gto
gel_flex.gto
in hardware/fabrication/digit-flex/2021-2
1332 -
gto
digit_flex.gto
in hardware/fabrication/digit-flex/2020-1
1241 -
gbl
digit_flex.gbl
in hardware/fabrication/digit-flex/2020-1
1074 -
gbo
digit_legend_bot.gbo
in hardware/fabrication/digit
598 -
gbs
digit_soldermask_bot.gbs
in hardware/fabrication/digit
287 -
gts
digit_soldermask_top.gts
in hardware/fabrication/digit
283 -
gtl
gel_flex.gtl
in hardware/fabrication/digit-flex/2021-2
236 -
gbl
gel_flex.gbl
in hardware/fabrication/digit-flex/2021-2
194 -
gbp
digit_paste_bot.gbp
in hardware/fabrication/digit
179 -
gtp
digit_paste_top.gtp
in hardware/fabrication/digit
175 -
gbo
digit_flex.gbo
in hardware/fabrication/digit-flex/2020-1
101 -
gbo
gel_flex.gbo
in hardware/fabrication/digit-flex/2021-2
101 -
gts
digit_flex.gts
in hardware/fabrication/digit-flex/2020-1
70 -
gts
gel_flex.gts
in hardware/fabrication/digit-flex/2021-2
68 -
gbs
digit_flex.gbs
in hardware/fabrication/digit-flex/2020-1
56 -
gbs
gel_flex.gbs
in hardware/fabrication/digit-flex/2021-2
56 -
flash.py
in firmware/digit-programmer
53 6
gtp
digit_flex.gtp
in hardware/fabrication/digit-flex/2020-1
43 -
gtp
gel_flex.gtp
in hardware/fabrication/digit-flex/2021-2
41 -
gbp
digit_flex.gbp
in hardware/fabrication/digit-flex/2020-1
29 -
gbp
gel_flex.gbp
in hardware/fabrication/digit-flex/2021-2
29 -
programmer.yaml
in firmware/digit-programmer
6 -
Files With Most Units (Top 1)
File# lines# units
flash.py
in firmware/digit-programmer
53 6
Files With Long Lines (Top 6)

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

File# lines# units# long lines
gts
digit_soldermask_top.gts
in hardware/fabrication/digit
283 - 1
gtl
digit_copper_signal_top.gtl
in hardware/fabrication/digit
3658 - 1
gbp
digit_paste_bot.gbp
in hardware/fabrication/digit
179 - 1
gbl
digit_copper_signal_bot.gbl
in hardware/fabrication/digit
3626 - 1
gtp
digit_paste_top.gtp
in hardware/fabrication/digit
175 - 1
gbs
digit_soldermask_bot.gbs
in hardware/fabrication/digit
287 - 1