facebookresearch / nevergrad
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 112 files with 16,589 lines of code.
    • 2 very long files (3,582 lines of code)
    • 2 long files (1,442 lines of code)
    • 22 medium size files (5,860 lines of codeclsfd_ftr_w_mp_ins)
    • 26 small files (4,039 lines of code)
    • 60 very small files (1,666 lines of code)
21% | 8% | 35% | 24% | 10%
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
py21% | 8% | 35% | 24% | 9%
toml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
nevergrad/optimization43% | 0% | 39% | 13% | 3%
nevergrad/benchmark40% | 18% | 16% | 18% | 5%
nevergrad/functions/gym0% | 99% | 0% | 0% | <1%
nevergrad/parametrization0% | 0% | 45% | 50% | 3%
nevergrad/functions0% | 0% | 75% | 0% | 24%
nevergrad/functions/control0% | 0% | 85% | 0% | 14%
nevergrad/functions/photonics0% | 0% | 74% | 25% | <1%
nevergrad/functions/games0% | 0% | 99% | 0% | <1%
nevergrad/functions/ml0% | 0% | 99% | 0% | <1%
nevergrad/functions/images0% | 0% | 68% | 31% | <1%
nevergrad/functions/powersystems0% | 0% | 99% | 0% | <1%
nevergrad/optimization/multiobjective0% | 0% | 0% | 99% | <1%
nevergrad/functions/rl0% | 0% | 0% | 81% | 18%
nevergrad/functions/rocket0% | 0% | 0% | 99% | <1%
nevergrad/common0% | 0% | 0% | 41% | 58%
nevergrad/functions/pyomo0% | 0% | 0% | 99% | <1%
nevergrad/functions/mlda0% | 0% | 0% | 58% | 42%
nevergrad/functions/olympussurfaces0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
nevergrad/functions/causaldiscovery0% | 0% | 0% | 0% | 100%
nevergrad/functions/iohprofiler0% | 0% | 0% | 0% | 100%
nevergrad/ops0% | 0% | 0% | 0% | 100%
nevergrad/functions/arcoating0% | 0% | 0% | 0% | 100%
nevergrad/functions/unitcommitment0% | 0% | 0% | 0% | 100%
nevergrad/functions/stsp0% | 0% | 0% | 0% | 100%
nevergrad/functions/fishing0% | 0% | 0% | 0% | 100%
nevergrad/benchmark/additional0% | 0% | 0% | 0% | 100%
nevergrad/functions/mixsimulator0% | 0% | 0% | 0% | 100%
nevergrad/functions/multiobjective0% | 0% | 0% | 0% | 100%
nevergrad0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
optimizerlib.py
in nevergrad/optimization
2164 118
experiments.py
in nevergrad/benchmark
1418 101
multigym.py
in nevergrad/functions/gym
798 29
plotting.py
in nevergrad/benchmark
644 32
base.py
in nevergrad/optimization
449 42
gymexperiments.py
in nevergrad/benchmark
334 24
core.py
in nevergrad/functions/control
328 3
photonics.py
in nevergrad/functions/photonics
326 15
data.py
in nevergrad/parametrization
308 33
experimentalvariants.py
in nevergrad/optimization
306 -
oneshot.py
in nevergrad/optimization
304 13
core.py
in nevergrad/parametrization
268 41
game.py
in nevergrad/functions/games
262 15
mlfunctionlib.py
in nevergrad/functions/ml
258 4
core.py
in nevergrad/functions/images
249 19
_datalayers.py
in nevergrad/parametrization
241 37
differentialevolution.py
in nevergrad/optimization
237 12
functionlib.py
in nevergrad/functions
236 18
recastlib.py
in nevergrad/optimization
231 23
frozenexperiments.py
in nevergrad/benchmark
229 14
core.py
in nevergrad/functions/powersystems
225 8
recaster.py
in nevergrad/optimization
222 30
corefuncs.py
in nevergrad/functions
218 46
base.py
in nevergrad/functions
214 22
utils.py
in nevergrad/optimization
210 44
mutation.py
in nevergrad/parametrization
205 34
instantiate.py
in nevergrad/parametrization
199 21
callbacks.py
in nevergrad/optimization
198 19
optgroups.py
in nevergrad/benchmark
195 22
utils.py
in nevergrad/parametrization
188 20
transforms.py
in nevergrad/parametrization
187 33
hypervolume.py
in nevergrad/optimization/multiobjective
185 26
xpbase.py
in nevergrad/benchmark
180 19
externalbo.py
in nevergrad/optimization
176 8
rocket.py
in nevergrad/functions/rocket
176 2
sequences.py
in nevergrad/optimization
172 21
base.py
in nevergrad/functions/rl
170 25
_layering.py
in nevergrad/parametrization
161 29
core.py
in nevergrad/benchmark
159 17
core.py
in nevergrad/optimization/multiobjective
151 13
nsga2.py
in nevergrad/optimization/multiobjective
150 6
agents.py
in nevergrad/functions/rl
150 18
tools.py
in nevergrad/common
142 19
helpers.py
in nevergrad/parametrization
141 11
container.py
in nevergrad/parametrization
131 28
choice.py
in nevergrad/parametrization
128 14
core.py
in nevergrad/functions/pyomo
126 7
__main__.py
in nevergrad/benchmark
119 3
problems.py
in nevergrad/functions/mlda
116 14
es.py
in nevergrad/optimization
115 5
Files With Most Units (Top 20)
File# lines# units
optimizerlib.py
in nevergrad/optimization
2164 118
experiments.py
in nevergrad/benchmark
1418 101
corefuncs.py
in nevergrad/functions
218 46
utils.py
in nevergrad/optimization
210 44
base.py
in nevergrad/optimization
449 42
core.py
in nevergrad/parametrization
268 41
_datalayers.py
in nevergrad/parametrization
241 37
mutation.py
in nevergrad/parametrization
205 34
transforms.py
in nevergrad/parametrization
187 33
data.py
in nevergrad/parametrization
308 33
plotting.py
in nevergrad/benchmark
644 32
recaster.py
in nevergrad/optimization
222 30
multigym.py
in nevergrad/functions/gym
798 29
_layering.py
in nevergrad/parametrization
161 29
container.py
in nevergrad/parametrization
131 28
hypervolume.py
in nevergrad/optimization/multiobjective
185 26
base.py
in nevergrad/functions/rl
170 25
gymexperiments.py
in nevergrad/benchmark
334 24
recastlib.py
in nevergrad/optimization
231 23
optgroups.py
in nevergrad/benchmark
195 22
Files With Long Lines (Top 8)

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

File# lines# units# long lines
xpbase.py
in nevergrad/benchmark
180 19 2
base.py
in nevergrad/optimization
449 42 2
mlfunctionlib.py
in nevergrad/functions/ml
258 4 2
base.py
in nevergrad/functions
214 22 2
plotting.py
in nevergrad/benchmark
644 32 1
optimizerlib.py
in nevergrad/optimization
2164 118 1
multigym.py
in nevergrad/functions/gym
798 29 1
base.py
in nevergrad/functions/rl
170 25 1