facebookresearch / diplomacy_searchbot
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 146 files with 68,128 lines of code.
    • 6 very long files (50,741 lines of code)
    • 6 long files (3,800 lines of code)
    • 23 medium size files (7,496 lines of codeclsfd_ftr_w_mp_ins)
    • 23 small files (3,109 lines of code)
    • 88 very small files (2,982 lines of code)
74% | 5% | 11% | 4% | 4%
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
py79% | 4% | 8% | 3% | 3%
html100% | 0% | 0% | 0% | 0%
cc24% | 14% | 38% | 12% | 9%
proto0% | 69% | 27% | 0% | 2%
h0% | 0% | 44% | 22% | 33%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
fairdiplomacy/models98% | 0% | 1% | <1% | <1%
dipcc/python96% | 0% | 0% | 1% | 1%
dipcc/dipcc18% | 10% | 38% | 15% | 17%
fairdiplomacy/selfplay22% | 28% | 34% | 10% | 4%
conf0% | 69% | 27% | 0% | 2%
fairdiplomacy/agents0% | 31% | 32% | 24% | 10%
fairdiplomacy/data0% | 39% | 38% | 11% | 10%
heyhi0% | 0% | 69% | 23% | 7%
fairdiplomacy0% | 0% | 52% | 23% | 24%
fairdiplomacy/utils0% | 0% | 26% | 30% | 43%
ROOT0% | 0% | 0% | 0% | 100%
conf/c02_sup_train0% | 0% | 0% | 0% | 100%
slurm0% | 0% | 0% | 0% | 100%
conf/exps0% | 0% | 0% | 0% | 100%
integration_tests0% | 0% | 0% | 0% | 100%
dipcc0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
order_vocabulary_consts.py
in fairdiplomacy/models/diplomacy_model
27100 -
consts.py
in fairdiplomacy/models
13649 -
datc.html
in dipcc/python/datc
6758 -
cc
adjudicator.cc
in dipcc/dipcc/cc
1119 37
exploit.py
in fairdiplomacy/selfplay
1080 39
diplomacy_model.py
in fairdiplomacy/models/diplomacy_model
1035 26
search_data_loader.py
in fairdiplomacy/selfplay
854 42
cc
game_state.cc
in dipcc/dipcc/cc
668 26
proto
conf.proto
in conf
644 -
searchbot_agent.py
in fairdiplomacy/agents
628 32
search_rollout.py
in fairdiplomacy/selfplay
504 12
dataset.py
in fairdiplomacy/data
502 21
build_dataset.py
in fairdiplomacy/data
490 11
data_loader.py
in fairdiplomacy/selfplay
462 24
train_sl.py
in fairdiplomacy/models/diplomacy_model
451 12
multiproc_search_agent.py
in fairdiplomacy/agents
440 8
util.py
in heyhi
440 37
action_exploration.py
in fairdiplomacy
419 9
cc
game.cc
in dipcc/dipcc/cc
411 15
prioritized_replay.h
in fairdiplomacy/selfplay/cc
401 27
adjacencies.h
in dipcc/dipcc/cc
370 -
conf.py
in heyhi
341 23
cc
orders_encoder.cc
in dipcc/dipcc/cc
330 9
rollout.py
in fairdiplomacy/selfplay
314 12
cc
encoding.cc
in dipcc/dipcc/cc
280 2
proto
agents.proto
in conf
257 -
h2h_evaler.py
in fairdiplomacy/selfplay
250 6
cc
thread_pool.cc
in dipcc/dipcc/cc
249 13
h2h_sweep.py
in fairdiplomacy/utils
244 13
cc
loc.cc
in dipcc/dipcc/cc
242 6
valid_orders_encoder.h
in dipcc/dipcc/pybind
233 8
search_utils.py
in fairdiplomacy/selfplay
228 9
cc
profile_late.cc
in dipcc/dipcc/profiling
228 2
model_wrapper.py
in fairdiplomacy/agents
213 10
compare_agents_array.py
in fairdiplomacy
203 6
ce1p_agent.py
in fairdiplomacy/agents
189 4
cc
order.cc
in dipcc/dipcc/cc
186 4
get_xpower_supports.py
in fairdiplomacy
179 4
tensorlist.py
in fairdiplomacy/utils
169 26
plausible_order_sampling.py
in fairdiplomacy/agents
161 10
gsheets.py
in heyhi
155 4
build_metadata.py
in fairdiplomacy/data
149 2
loc.h
in dipcc/dipcc/cc
138 -
model_rollouts.py
in fairdiplomacy/agents
137 4
metrics.py
in fairdiplomacy/selfplay
137 27
civil_disorder_distances.h
in dipcc/dipcc/cc
136 -
tensor_dict.h
in fairdiplomacy/selfplay/cc
131 12
ckpt_syncer.py
in fairdiplomacy/selfplay
122 11
cc
py_dict.cc
in dipcc/dipcc/pybind
122 3
cc
phase.cc
in dipcc/dipcc/cc
118 4
Files With Most Units (Top 20)
File# lines# units
search_data_loader.py
in fairdiplomacy/selfplay
854 42
exploit.py
in fairdiplomacy/selfplay
1080 39
cc
adjudicator.cc
in dipcc/dipcc/cc
1119 37
util.py
in heyhi
440 37
searchbot_agent.py
in fairdiplomacy/agents
628 32
metrics.py
in fairdiplomacy/selfplay
137 27
prioritized_replay.h
in fairdiplomacy/selfplay/cc
401 27
tensorlist.py
in fairdiplomacy/utils
169 26
diplomacy_model.py
in fairdiplomacy/models/diplomacy_model
1035 26
cc
game_state.cc
in dipcc/dipcc/cc
668 26
data_loader.py
in fairdiplomacy/selfplay
462 24
conf.py
in heyhi
341 23
dataset.py
in fairdiplomacy/data
502 21
timing_ctx.py
in fairdiplomacy/utils
94 16
cc
game.cc
in dipcc/dipcc/cc
411 15
h2h_sweep.py
in fairdiplomacy/utils
244 13
cc
thread_pool.cc
in dipcc/dipcc/cc
249 13
train_sl.py
in fairdiplomacy/models/diplomacy_model
451 12
search_rollout.py
in fairdiplomacy/selfplay
504 12
rollout.py
in fairdiplomacy/selfplay
314 12
Files With Long Lines (Top 8)

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

File# lines# units# long lines
datc.html
in dipcc/python/datc
6758 - 13
run.py
in heyhi
110 4 2
action_exploration.py
in fairdiplomacy
419 9 1
model_wrapper.py
in fairdiplomacy/agents
213 10 1
searchbot_agent.py
in fairdiplomacy/agents
628 32 1
multiproc_search_agent.py
in fairdiplomacy/agents
440 8 1
exploit.py
in fairdiplomacy/selfplay
1080 39 1
build_metadata.py
in fairdiplomacy/data
149 2 1