facebookresearch / mvfst-rl
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 43 files with 4,385 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (765 lines of code)
    • 4 medium size files (1,167 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,403 lines of code)
    • 28 very small files (1,050 lines of code)
0% | 17% | 26% | 31% | 23%
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
py0% | 34% | 42% | 18% | 4%
cpp0% | 0% | 20% | 53% | 25%
h0% | 0% | 0% | 29% | 70%
yml0% | 0% | 0% | 100% | 0%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
train0% | 43% | 26% | 25% | 3%
scripts/plotting0% | 0% | 95% | 0% | 4%
congestion_control0% | 0% | 15% | 29% | 54%
traffic_gen0% | 0% | 0% | 79% | 20%
scripts0% | 0% | 0% | 100% | 0%
config/hydra/sweeper0% | 0% | 0% | 0% | 100%
config/hydra/launcher0% | 0% | 0% | 0% | 100%
config0% | 0% | 0% | 0% | 100%
Longest Files (Top 43)
File# lines# units
learner.py
in train
765 27
plot_sweep.py
in scripts/plotting
471 22
pantheon_env.py
in train
260 10
CongestionControlEnv.cpp
in congestion_control
223 11
train.py
in train
213 7
experiments.yml
in train
174 -
RLCongestionController.cpp
in congestion_control
173 14
main.cpp
in traffic_gen
166 1
utils.py
in train
163 19
ExampleClient.h
in traffic_gen
149 14
CongestionControlRPCEnv.cpp
in congestion_control
134 6
models.py
in train
121 4
get_tperf_args.py
in scripts
115 7
NetworkState.cpp
in congestion_control
107 5
ExampleHandler.h
in traffic_gen
101 12
CongestionControlEnv.h
in congestion_control
96 7
CongestionControlLocalEnv.cpp
in congestion_control
75 2
ExampleServer.h
in traffic_gen
67 3
RLBandwidthSampler.cpp
in congestion_control
64 2
_nevergrad.yaml
in config/hydra/sweeper
63 -
NetworkState.h
in congestion_control
62 2
RLCongestionController.h
in congestion_control
57 1
Utils.cpp
in congestion_control
55 2
CongestionControlEnvConfig.h
in congestion_control
55 -
Utils.h
in congestion_control
50 -
state.py
in train
49 7
Utils.h
in traffic_gen
41 4
CongestionControlEnvConfig.cpp
in congestion_control
40 1
CongestionControlEnvFactory.h
in congestion_control
40 1
CongestionControlFixedCwndEnv.cpp
in congestion_control
38 2
CongestionControlRPCEnv.h
in congestion_control
37 -
RLCongestionControllerFactory.h
in congestion_control
26 1
CongestionControlLocalEnv.h
in congestion_control
24 -
util.py
in scripts/plotting
22 4
CongestionControlRandomEnv.h
in congestion_control
17 1
RLBandwidthSampler.h
in congestion_control
15 -
CongestionControlFixedCwndEnv.h
in congestion_control
13 -
_submitit_slurm.yaml
in config/hydra/launcher
10 -
constants.py
in train
10 -
common.py
in train
10 -
config.yaml
in config
8 -
_submitit_local.yaml
in config/hydra/launcher
3 -
_joblib.yaml
in config/hydra/launcher
3 -
Files With Most Units (Top 20)
File# lines# units
learner.py
in train
765 27
plot_sweep.py
in scripts/plotting
471 22
utils.py
in train
163 19
ExampleClient.h
in traffic_gen
149 14
RLCongestionController.cpp
in congestion_control
173 14
ExampleHandler.h
in traffic_gen
101 12
CongestionControlEnv.cpp
in congestion_control
223 11
pantheon_env.py
in train
260 10
get_tperf_args.py
in scripts
115 7
train.py
in train
213 7
state.py
in train
49 7
CongestionControlEnv.h
in congestion_control
96 7
CongestionControlRPCEnv.cpp
in congestion_control
134 6
NetworkState.cpp
in congestion_control
107 5
Utils.h
in traffic_gen
41 4
util.py
in scripts/plotting
22 4
models.py
in train
121 4
ExampleServer.h
in traffic_gen
67 3
Utils.cpp
in congestion_control
55 2
RLBandwidthSampler.cpp
in congestion_control
64 2
Files With Long Lines (Top 2)

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

File# lines# units# long lines
experiments.yml
in train
174 - 6
plot_sweep.py
in scripts/plotting
471 22 2