facebookresearch / Hanabi_SPARTA
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 46 files with 9,126 lines of code.
    • 1 very long files (1,333 lines of code)
    • 4 long files (2,917 lines of code)
    • 8 medium size files (2,499 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,295 lines of code)
    • 23 very small files (1,082 lines of code)
14% | 31% | 27% | 14% | 11%
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
cc22% | 50% | 26% | 0% | 0%
h0% | 0% | 34% | 40% | 25%
css0% | 0% | 100% | 0% | 0%
js0% | 0% | 0% | 47% | 52%
py0% | 0% | 0% | 61% | 38%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
csrc17% | 39% | 28% | 8% | 5%
webapp/src0% | 0% | 52% | 22% | 24%
webapp/src/components0% | 0% | 0% | 47% | 52%
webapp0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 0% | 100%
webapp/public0% | 0% | 0% | 0% | 100%
Longest Files (Top 46)
File# lines# units
cc
InfoBot.cc
in csrc
1333 117
cc
SmartBot.cc
in csrc
975 55
cc
SearchBot.cc
in csrc
726 30
cc
HanabiServer.cc
in csrc
633 50
cc
HolmesBot.cc
in csrc
583 35
cc
BotUtils.cc
in csrc
494 34
styles.css
in webapp/src
370 -
cc
JointSearchBot.cc
in csrc
365 12
HleUtils.h
in csrc
331 22
cc
TorchBot.cc
in csrc
268 17
Hanabi.h
in csrc
228 13
cc
SimpleBot.cc
in csrc
227 19
cc
extension.cc
in csrc
216 10
BotUtils.h
in csrc
195 11
server.py
in webapp
163 4
BoardState.js
in webapp/src
158 11
Batcher.h
in csrc
137 7
Counters.js
in webapp/src/components
113 2
GameBoard.js
in webapp/src/components
111 3
SmartBot.h
in csrc
110 11
OwnHand.js
in webapp/src/components
105 2
PyBot.h
in csrc
102 10
SearchBot.h
in csrc
101 1
PlayerHand.js
in webapp/src/components
95 2
AsyncModelWrapper.h
in csrc
85 2
State.js
in webapp/src
77 3
ThreadPool.h
in csrc
75 3
RevealOwnHand.js
in webapp/src/components
73 3
HolmesBot.h
in csrc
68 -
History.js
in webapp/src/components
54 -
TorchBot.h
in csrc
53 -
Overlay.js
in webapp/src/components
53 -
accum_scores.py
in root
53 1
utils.js
in webapp/src
50 6
ShowHints.js
in webapp/src/components
44 1
JointSearchBot.h
in csrc
42 -
index.html
in webapp/public
38 -
InfoBot.h
in csrc
37 8
App.js
in webapp/src
35 1
SimpleBot.h
in csrc
33 -
setup.py
in root
31 -
LoadingScreen.js
in webapp/src/components
25 -
CardLeftCount.js
in webapp/src/components
20 -
eval_bot.py
in root
19 -
index.js
in webapp/src
12 -
BotFactory.h
in csrc
10 1
Files With Most Units (Top 20)
File# lines# units
cc
InfoBot.cc
in csrc
1333 117
cc
SmartBot.cc
in csrc
975 55
cc
HanabiServer.cc
in csrc
633 50
cc
HolmesBot.cc
in csrc
583 35
cc
BotUtils.cc
in csrc
494 34
cc
SearchBot.cc
in csrc
726 30
HleUtils.h
in csrc
331 22
cc
SimpleBot.cc
in csrc
227 19
cc
TorchBot.cc
in csrc
268 17
Hanabi.h
in csrc
228 13
cc
JointSearchBot.cc
in csrc
365 12
BotUtils.h
in csrc
195 11
SmartBot.h
in csrc
110 11
BoardState.js
in webapp/src
158 11
PyBot.h
in csrc
102 10
cc
extension.cc
in csrc
216 10
InfoBot.h
in csrc
37 8
Batcher.h
in csrc
137 7
utils.js
in webapp/src
50 6
server.py
in webapp
163 4
Files With Long Lines (Top 20)

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

File# lines# units# long lines
SearchBot.h
in csrc
101 1 13
cc
JointSearchBot.cc
in csrc
365 12 10
cc
SearchBot.cc
in csrc
726 30 8
PyBot.h
in csrc
102 10 3
cc
InfoBot.cc
in csrc
1333 117 3
cc
SmartBot.cc
in csrc
975 55 3
accum_scores.py
in root
53 1 3
SmartBot.h
in csrc
110 11 2
SimpleBot.h
in csrc
33 - 2
cc
TorchBot.cc
in csrc
268 17 2
HolmesBot.h
in csrc
68 - 2
cc
HanabiServer.cc
in csrc
633 50 2
cc
SimpleBot.cc
in csrc
227 19 2
JointSearchBot.h
in csrc
42 - 2
TorchBot.h
in csrc
53 - 2
cc
BotUtils.cc
in csrc
494 34 2
InfoBot.h
in csrc
37 8 2
cc
HolmesBot.cc
in csrc
583 35 2
BotFactory.h
in csrc
10 1 1
server.py
in webapp
163 4 1