openai / procgen
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 54 files with 9,103 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,884 lines of code)
    • 17 medium size files (5,116 lines of code)
    • 10 small files (1,319 lines of code)
    • 25 very small files (784 lines of code)
0% | 20% | 56% | 14% | 8%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cpp0% | 24% | 63% | 9% | 3%
py0% | 0% | 32% | 54% | 12%
h0% | 0% | 0% | 35% | 64%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
procgen0% | 21% | 57% | 13% | 8%
procgen-build0% | 0% | 0% | 73% | 26%
Longest Files (Top 50)
File# lines# units
944 84
resources.cpp
in procgen/src
940 3
coinrun.cpp
in procgen/src/games
421 28
bossfight.cpp
in procgen/src/games
402 19
dodgeball.cpp
in procgen/src/games
375 17
vecgame.cpp
in procgen/src
371 16
jumper.cpp
in procgen/src/games
366 23
starpilot.cpp
in procgen/src/games
349 15
ninja.cpp
in procgen/src/games
348 21
chaser.cpp
in procgen/src/games
332 17
climber.cpp
in procgen/src/games
280 21
caveflyer.cpp
in procgen/src/games
262 12
miner.cpp
in procgen/src/games
258 20
leaper.cpp
in procgen/src/games
244 18
mazegen.cpp
in procgen/src
234 10
plunder.cpp
in procgen/src/games
228 11
fruitbot.cpp
in procgen/src/games
227 16
env.py
in procgen
214 10
game.cpp
in procgen/src
205 9
heist.cpp
in procgen/src/games
178 12
assetgen.cpp
in procgen/src
149 9
basic-abstract-game.h
in procgen/src
140 -
entity.cpp
in procgen/src
139 4
roomgen.cpp
in procgen/src
137 6
build_qt.py
in procgen-build/procgen_build
129 4
interactive.py
in procgen
121 4
buffer.h
in procgen/src
112 14
builder.py
in procgen
108 6
maze.cpp
in procgen/src/games
106 8
bigfish.cpp
in procgen/src/games
96 7
game.h
in procgen/src
91 -
randgen.cpp
in procgen/src
89 13
grid.h
in procgen/src
60 11
vecoptions.cpp
in procgen/src
49 5
entity.h
in procgen/src
46 -
cpp-utils.h
in procgen/src
45 4
vecgame.h
in procgen/src
34 -
mazegen.h
in procgen/src
32 -
build_package.py
in procgen-build/procgen_build
31 1
24 2
randgen.h
in procgen/src
22 -
game-registry.h
in procgen/src
21 2
assetgen.h
in procgen/src
21 -
qt-utils.h
in procgen/src
18 2
cpp-utils.cpp
in procgen/src
18 1
object-ids.h
in procgen/src
16 -
common.py
in procgen-build/procgen_build
15 1
vecoptions.h
in procgen/src
15 -
roomgen.h
in procgen/src
15 -
resources.h
in procgen/src
13 -
Files With Most Units (Top 40)
File# lines# units
944 84
coinrun.cpp
in procgen/src/games
421 28
jumper.cpp
in procgen/src/games
366 23
climber.cpp
in procgen/src/games
280 21
ninja.cpp
in procgen/src/games
348 21
miner.cpp
in procgen/src/games
258 20
bossfight.cpp
in procgen/src/games
402 19
leaper.cpp
in procgen/src/games
244 18
chaser.cpp
in procgen/src/games
332 17
dodgeball.cpp
in procgen/src/games
375 17
fruitbot.cpp
in procgen/src/games
227 16
vecgame.cpp
in procgen/src
371 16
starpilot.cpp
in procgen/src/games
349 15
buffer.h
in procgen/src
112 14
randgen.cpp
in procgen/src
89 13
caveflyer.cpp
in procgen/src/games
262 12
heist.cpp
in procgen/src/games
178 12
plunder.cpp
in procgen/src/games
228 11
grid.h
in procgen/src
60 11
mazegen.cpp
in procgen/src
234 10
env.py
in procgen
214 10
game.cpp
in procgen/src
205 9
assetgen.cpp
in procgen/src
149 9
maze.cpp
in procgen/src/games
106 8
bigfish.cpp
in procgen/src/games
96 7
builder.py
in procgen
108 6
roomgen.cpp
in procgen/src
137 6
vecoptions.cpp
in procgen/src
49 5
build_qt.py
in procgen-build/procgen_build
129 4
cpp-utils.h
in procgen/src
45 4
entity.cpp
in procgen/src
139 4
interactive.py
in procgen
121 4
resources.cpp
in procgen/src
940 3
qt-utils.h
in procgen/src
18 2
game-registry.h
in procgen/src
21 2
24 2
build_package.py
in procgen-build/procgen_build
31 1
common.py
in procgen-build/procgen_build
15 1
cpp-utils.cpp
in procgen/src
18 1
coinrun_old.cpp
in procgen/src/games
2 1
Files With Long Lines (Top 22)

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

File# lines# units# long lines
944 84 14
basic-abstract-game.h
in procgen/src
140 - 6
dodgeball.cpp
in procgen/src/games
375 17 5
miner.cpp
in procgen/src/games
258 20 4
fruitbot.cpp
in procgen/src/games
227 16 4
heist.cpp
in procgen/src/games
178 12 3
coinrun.cpp
in procgen/src/games
421 28 3
starpilot.cpp
in procgen/src/games
349 15 3
build_qt.py
in procgen-build/procgen_build
129 4 2
build_package.py
in procgen-build/procgen_build
31 1 2
caveflyer.cpp
in procgen/src/games
262 12 2
climber.cpp
in procgen/src/games
280 21 2
jumper.cpp
in procgen/src/games
366 23 2
vecgame.cpp
in procgen/src
371 16 2
vecgame.h
in procgen/src
34 - 1
game.cpp
in procgen/src
205 9 1
leaper.cpp
in procgen/src/games
244 18 1
bossfight.cpp
in procgen/src/games
402 19 1
chaser.cpp
in procgen/src/games
332 17 1
ninja.cpp
in procgen/src/games
348 21 1
assetgen.h
in procgen/src
21 - 1
env.py
in procgen
214 10 1
Correlations

File Size vs. Commits (all time): 54 points

procgen/env.py x: 5 commits (all time) y: 214 lines of code procgen-build/procgen_build/build_package.py x: 7 commits (all time) y: 31 lines of code procgen-build/procgen_build/build_qt.py x: 3 commits (all time) y: 129 lines of code procgen-build/procgen_build/common.py x: 3 commits (all time) y: 15 lines of code procgen/builder.py x: 1 commits (all time) y: 108 lines of code procgen/interactive.py x: 5 commits (all time) y: 121 lines of code procgen/gym_registration.py x: 6 commits (all time) y: 24 lines of code procgen/src/game.cpp x: 3 commits (all time) y: 205 lines of code procgen/src/vecgame.cpp x: 5 commits (all time) y: 371 lines of code procgen/__init__.py x: 2 commits (all time) y: 8 lines of code procgen/src/basic-abstract-game.cpp x: 2 commits (all time) y: 944 lines of code procgen/src/basic-abstract-game.h x: 3 commits (all time) y: 140 lines of code procgen/src/buffer.h x: 1 commits (all time) y: 112 lines of code procgen/src/cpp-utils.h x: 2 commits (all time) y: 45 lines of code procgen/src/entity.cpp x: 2 commits (all time) y: 139 lines of code procgen/src/game.h x: 3 commits (all time) y: 91 lines of code procgen/src/games/bigfish.cpp x: 2 commits (all time) y: 96 lines of code procgen/src/games/bossfight.cpp x: 2 commits (all time) y: 402 lines of code procgen/src/games/caveflyer.cpp x: 2 commits (all time) y: 262 lines of code procgen/src/games/chaser.cpp x: 2 commits (all time) y: 332 lines of code procgen/src/games/climber.cpp x: 2 commits (all time) y: 280 lines of code procgen/src/games/coinrun.cpp x: 2 commits (all time) y: 421 lines of code procgen/src/games/dodgeball.cpp x: 2 commits (all time) y: 375 lines of code procgen/src/games/fruitbot.cpp x: 2 commits (all time) y: 227 lines of code procgen/src/games/heist.cpp x: 2 commits (all time) y: 178 lines of code procgen/src/games/jumper.cpp x: 2 commits (all time) y: 366 lines of code procgen/src/games/leaper.cpp x: 2 commits (all time) y: 244 lines of code procgen/src/games/maze.cpp x: 2 commits (all time) y: 106 lines of code procgen/src/games/miner.cpp x: 2 commits (all time) y: 258 lines of code procgen/src/games/ninja.cpp x: 2 commits (all time) y: 348 lines of code procgen/src/grid.h x: 2 commits (all time) y: 60 lines of code procgen/src/object-ids.h x: 2 commits (all time) y: 16 lines of code procgen/src/randgen.cpp x: 2 commits (all time) y: 89 lines of code procgen/src/randgen.h x: 2 commits (all time) y: 22 lines of code procgen/src/resources.cpp x: 2 commits (all time) y: 940 lines of code procgen/src/resources.h x: 2 commits (all time) y: 13 lines of code procgen/src/vecgame.h x: 2 commits (all time) y: 34 lines of code procgen-build/procgen_build/__init__.py x: 1 commits (all time) y: 1 lines of code procgen/src/assetgen.cpp x: 1 commits (all time) y: 149 lines of code procgen/src/assetgen.h x: 1 commits (all time) y: 21 lines of code procgen/src/cpp-utils.cpp x: 1 commits (all time) y: 18 lines of code procgen/src/mazegen.cpp x: 1 commits (all time) y: 234 lines of code procgen/src/mazegen.h x: 1 commits (all time) y: 32 lines of code procgen/src/roomgen.cpp x: 1 commits (all time) y: 137 lines of code procgen/src/vecoptions.cpp x: 1 commits (all time) y: 49 lines of code
944.0
lines of code
  min: 1.0
  average: 168.57
  25th percentile: 21.75
  median: 110.0
  75th percentile: 247.5
  max: 944.0
0 7.0
commits (all time)
min: 1.0 | average: 2.13 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 7.0

File Size vs. Contributors (all time): 54 points

procgen/env.py x: 3 contributors (all time) y: 214 lines of code procgen-build/procgen_build/build_package.py x: 2 contributors (all time) y: 31 lines of code procgen-build/procgen_build/build_qt.py x: 2 contributors (all time) y: 129 lines of code procgen-build/procgen_build/common.py x: 2 contributors (all time) y: 15 lines of code procgen/builder.py x: 1 contributors (all time) y: 108 lines of code procgen/interactive.py x: 2 contributors (all time) y: 121 lines of code procgen/gym_registration.py x: 1 contributors (all time) y: 24 lines of code procgen/src/game.cpp x: 1 contributors (all time) y: 205 lines of code procgen/src/vecgame.cpp x: 1 contributors (all time) y: 371 lines of code procgen/__init__.py x: 1 contributors (all time) y: 8 lines of code procgen/src/basic-abstract-game.cpp x: 1 contributors (all time) y: 944 lines of code procgen/src/basic-abstract-game.h x: 1 contributors (all time) y: 140 lines of code procgen/src/buffer.h x: 1 contributors (all time) y: 112 lines of code procgen/src/cpp-utils.h x: 1 contributors (all time) y: 45 lines of code procgen/src/game.h x: 1 contributors (all time) y: 91 lines of code procgen/src/games/bigfish.cpp x: 1 contributors (all time) y: 96 lines of code procgen/src/games/bossfight.cpp x: 1 contributors (all time) y: 402 lines of code procgen/src/games/caveflyer.cpp x: 1 contributors (all time) y: 262 lines of code procgen/src/games/chaser.cpp x: 1 contributors (all time) y: 332 lines of code procgen/src/games/climber.cpp x: 1 contributors (all time) y: 280 lines of code procgen/src/games/coinrun.cpp x: 1 contributors (all time) y: 421 lines of code procgen/src/games/dodgeball.cpp x: 1 contributors (all time) y: 375 lines of code procgen/src/games/fruitbot.cpp x: 1 contributors (all time) y: 227 lines of code procgen/src/games/heist.cpp x: 1 contributors (all time) y: 178 lines of code procgen/src/games/jumper.cpp x: 1 contributors (all time) y: 366 lines of code procgen/src/games/leaper.cpp x: 1 contributors (all time) y: 244 lines of code procgen/src/games/maze.cpp x: 1 contributors (all time) y: 106 lines of code procgen/src/games/miner.cpp x: 1 contributors (all time) y: 258 lines of code procgen/src/games/ninja.cpp x: 1 contributors (all time) y: 348 lines of code procgen/src/grid.h x: 1 contributors (all time) y: 60 lines of code procgen/src/object-ids.h x: 1 contributors (all time) y: 16 lines of code procgen/src/randgen.cpp x: 1 contributors (all time) y: 89 lines of code procgen/src/randgen.h x: 1 contributors (all time) y: 22 lines of code procgen/src/resources.cpp x: 1 contributors (all time) y: 940 lines of code procgen/src/resources.h x: 1 contributors (all time) y: 13 lines of code procgen/src/vecgame.h x: 1 contributors (all time) y: 34 lines of code procgen-build/procgen_build/__init__.py x: 1 contributors (all time) y: 1 lines of code procgen/src/assetgen.cpp x: 1 contributors (all time) y: 149 lines of code procgen/src/mazegen.cpp x: 1 contributors (all time) y: 234 lines of code procgen/src/mazegen.h x: 1 contributors (all time) y: 32 lines of code procgen/src/roomgen.cpp x: 1 contributors (all time) y: 137 lines of code procgen/src/vecoptions.cpp x: 1 contributors (all time) y: 49 lines of code
944.0
lines of code
  min: 1.0
  average: 168.57
  25th percentile: 21.75
  median: 110.0
  75th percentile: 247.5
  max: 944.0
0 3.0
contributors (all time)
min: 1.0 | average: 1.11 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 3.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".