openai / spinningup
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 57 files with 3,879 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (239 lines of code)
    • 16 small files (2,478 lines of code)
    • 40 very small files (1,162 lines of code)
0% | 0% | 6% | 63% | 29%
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
py0% | 0% | 6% | 63% | 29%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
spinup0% | 0% | 6% | 63% | 29%
Longest Files (Top 50)
File# lines# units
run_utils.py
in spinup/utils
239 14
trpo.py
in spinup/algos/tf1/trpo
188 5
ppo.py
in spinup/algos/pytorch/ppo
171 5
sac.py
in spinup/algos/pytorch/sac
169 4
td3.py
in spinup/algos/pytorch/td3
169 4
logx.py
in spinup/utils
166 16
vpg.py
in spinup/algos/pytorch/vpg
159 5
exercise1_3.py
in spinup/exercises/pytorch/problem_set_1
159 4
sac.py
in spinup/algos/tf1/sac
156 4
td3.py
in spinup/algos/tf1/td3
155 4
ppo.py
in spinup/algos/tf1/ppo
153 5
ddpg.py
in spinup/algos/pytorch/ddpg
152 4
exercise1_3.py
in spinup/exercises/tf1/problem_set_1
152 4
ddpg.py
in spinup/algos/tf1/ddpg
142 4
vpg.py
in spinup/algos/tf1/vpg
141 5
run.py
in spinup
129 3
plot.py
in spinup/utils
117 5
core.py
in spinup/algos/tf1/trpo
97 21
core.py
in spinup/algos/pytorch/ppo
78 18
core.py
in spinup/algos/pytorch/vpg
78 18
core.py
in spinup/algos/pytorch/sac
67 9
core.py
in spinup/algos/tf1/ppo
63 13
core.py
in spinup/algos/tf1/vpg
63 13
exercise2_2.py
in spinup/exercises/pytorch/problem_set_2
60 7
mpi_tools.py
in spinup/utils
50 10
core.py
in spinup/algos/tf1/sac
50 9
mpi_tf.py
in spinup/utils
47 7
exercise1_2.py
in spinup/exercises/pytorch/problem_set_1
47 7
core.py
in spinup/algos/pytorch/td3
44 9
core.py
in spinup/algos/pytorch/ddpg
43 9
exercise2_2.py
in spinup/exercises/tf1/problem_set_2
43 2
exercise1_2_soln.py
in spinup/exercises/pytorch/problem_set_1_solutions
36 8
exercise1_2_auxiliary.py
in spinup/exercises/pytorch/problem_set_1
32 6
core.py
in spinup/algos/tf1/td3
28 6
core.py
in spinup/algos/tf1/ddpg
26 6
exercise1_2.py
in spinup/exercises/tf1/problem_set_1
26 2
serialization_utils.py
in spinup/utils
25 2
mpi_pytorch.py
in spinup/utils
24 3
exercise1_1.py
in spinup/exercises/tf1/problem_set_1
22 1
exercise1_2_soln.py
in spinup/exercises/tf1/problem_set_1_solutions
19 3
exercise1_1.py
in spinup/exercises/pytorch/problem_set_1
18 1
__init__.py
in spinup
16 -
14 -
run_entrypoint.py
in spinup/utils
10 -
common.py
in spinup/exercises
7 1
exercise1_1_soln.py
in spinup/exercises/tf1/problem_set_1_solutions
6 1
exercise1_1_soln.py
in spinup/exercises/pytorch/problem_set_1_solutions
6 1
version.py
in spinup
5 1
trpo.py
in spinup/algos/pytorch/trpo
4 1
__init__.py
in spinup/utils
1 -
Files With Most Units (Top 46)
File# lines# units
core.py
in spinup/algos/tf1/trpo
97 21
core.py
in spinup/algos/pytorch/ppo
78 18
core.py
in spinup/algos/pytorch/vpg
78 18
logx.py
in spinup/utils
166 16
run_utils.py
in spinup/utils
239 14
core.py
in spinup/algos/tf1/ppo
63 13
core.py
in spinup/algos/tf1/vpg
63 13
mpi_tools.py
in spinup/utils
50 10
core.py
in spinup/algos/tf1/sac
50 9
core.py
in spinup/algos/pytorch/sac
67 9
core.py
in spinup/algos/pytorch/ddpg
43 9
core.py
in spinup/algos/pytorch/td3
44 9
exercise1_2_soln.py
in spinup/exercises/pytorch/problem_set_1_solutions
36 8
mpi_tf.py
in spinup/utils
47 7
exercise1_2.py
in spinup/exercises/pytorch/problem_set_1
47 7
exercise2_2.py
in spinup/exercises/pytorch/problem_set_2
60 7
core.py
in spinup/algos/tf1/ddpg
26 6
core.py
in spinup/algos/tf1/td3
28 6
exercise1_2_auxiliary.py
in spinup/exercises/pytorch/problem_set_1
32 6
plot.py
in spinup/utils
117 5
ppo.py
in spinup/algos/tf1/ppo
153 5
trpo.py
in spinup/algos/tf1/trpo
188 5
vpg.py
in spinup/algos/tf1/vpg
141 5
ppo.py
in spinup/algos/pytorch/ppo
171 5
vpg.py
in spinup/algos/pytorch/vpg
159 5
sac.py
in spinup/algos/tf1/sac
156 4
ddpg.py
in spinup/algos/tf1/ddpg
142 4
td3.py
in spinup/algos/tf1/td3
155 4
sac.py
in spinup/algos/pytorch/sac
169 4
ddpg.py
in spinup/algos/pytorch/ddpg
152 4
td3.py
in spinup/algos/pytorch/td3
169 4
exercise1_3.py
in spinup/exercises/tf1/problem_set_1
152 4
exercise1_3.py
in spinup/exercises/pytorch/problem_set_1
159 4
mpi_pytorch.py
in spinup/utils
24 3
run.py
in spinup
129 3
exercise1_2_soln.py
in spinup/exercises/tf1/problem_set_1_solutions
19 3
serialization_utils.py
in spinup/utils
25 2
exercise1_2.py
in spinup/exercises/tf1/problem_set_1
26 2
exercise2_2.py
in spinup/exercises/tf1/problem_set_2
43 2
version.py
in spinup
5 1
trpo.py
in spinup/algos/pytorch/trpo
4 1
exercise1_1_soln.py
in spinup/exercises/tf1/problem_set_1_solutions
6 1
exercise1_1.py
in spinup/exercises/tf1/problem_set_1
22 1
common.py
in spinup/exercises
7 1
exercise1_1_soln.py
in spinup/exercises/pytorch/problem_set_1_solutions
6 1
exercise1_1.py
in spinup/exercises/pytorch/problem_set_1
18 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there are 2 long lines.

File# lines# units# long lines
logx.py
in spinup/utils
166 16 2
Correlations

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

spinup/__init__.py x: 3 commits (all time) y: 16 lines of code spinup/algos/pytorch/ddpg/core.py x: 1 commits (all time) y: 43 lines of code spinup/algos/pytorch/ddpg/ddpg.py x: 1 commits (all time) y: 152 lines of code spinup/algos/pytorch/ppo/core.py x: 1 commits (all time) y: 78 lines of code spinup/algos/pytorch/ppo/ppo.py x: 1 commits (all time) y: 171 lines of code spinup/algos/pytorch/sac/core.py x: 1 commits (all time) y: 67 lines of code spinup/algos/pytorch/sac/sac.py x: 1 commits (all time) y: 169 lines of code spinup/algos/pytorch/td3/core.py x: 1 commits (all time) y: 44 lines of code spinup/algos/pytorch/trpo/trpo.py x: 1 commits (all time) y: 4 lines of code spinup/algos/pytorch/vpg/vpg.py x: 1 commits (all time) y: 159 lines of code spinup/algos/tf1/ddpg/__init__.py x: 1 commits (all time) y: 1 lines of code spinup/algos/tf1/ddpg/core.py x: 1 commits (all time) y: 26 lines of code spinup/algos/tf1/ddpg/ddpg.py x: 1 commits (all time) y: 142 lines of code spinup/algos/tf1/ppo/core.py x: 1 commits (all time) y: 63 lines of code spinup/algos/tf1/ppo/ppo.py x: 1 commits (all time) y: 153 lines of code spinup/algos/tf1/sac/core.py x: 1 commits (all time) y: 50 lines of code spinup/algos/tf1/sac/sac.py x: 1 commits (all time) y: 156 lines of code spinup/algos/tf1/td3/core.py x: 1 commits (all time) y: 28 lines of code spinup/algos/tf1/td3/td3.py x: 1 commits (all time) y: 155 lines of code spinup/algos/tf1/trpo/core.py x: 1 commits (all time) y: 97 lines of code spinup/algos/tf1/trpo/trpo.py x: 1 commits (all time) y: 188 lines of code spinup/algos/tf1/vpg/vpg.py x: 1 commits (all time) y: 141 lines of code spinup/exercises/pytorch/problem_set_1/exercise1_1.py x: 1 commits (all time) y: 18 lines of code spinup/exercises/pytorch/problem_set_1/exercise1_2.py x: 1 commits (all time) y: 47 lines of code spinup/exercises/pytorch/problem_set_1/exercise1_2_auxiliary.py x: 1 commits (all time) y: 32 lines of code spinup/exercises/pytorch/problem_set_1_solutions/exercise1_1_soln.py x: 1 commits (all time) y: 6 lines of code spinup/exercises/pytorch/problem_set_1_solutions/exercise1_2_soln.py x: 1 commits (all time) y: 36 lines of code spinup/exercises/pytorch/problem_set_2/exercise2_2.py x: 1 commits (all time) y: 60 lines of code spinup/exercises/tf1/problem_set_1/exercise1_1.py x: 1 commits (all time) y: 22 lines of code spinup/exercises/tf1/problem_set_1_solutions/exercise1_2_soln.py x: 1 commits (all time) y: 19 lines of code spinup/run.py x: 6 commits (all time) y: 129 lines of code spinup/user_config.py x: 3 commits (all time) y: 14 lines of code spinup/utils/logx.py x: 2 commits (all time) y: 166 lines of code spinup/utils/mpi_pytorch.py x: 1 commits (all time) y: 24 lines of code spinup/utils/plot.py x: 9 commits (all time) y: 117 lines of code spinup/version.py x: 5 commits (all time) y: 5 lines of code spinup/utils/run_utils.py x: 6 commits (all time) y: 239 lines of code spinup/exercises/common.py x: 1 commits (all time) y: 7 lines of code spinup/utils/run_entrypoint.py x: 1 commits (all time) y: 10 lines of code spinup/utils/serialization_utils.py x: 1 commits (all time) y: 25 lines of code
239.0
lines of code
  min: 1.0
  average: 68.05
  25th percentile: 12.0
  median: 44.0
  75th percentile: 141.5
  max: 239.0
0 9.0
commits (all time)
min: 1.0 | average: 1.47 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 9.0

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

spinup/__init__.py x: 1 contributors (all time) y: 16 lines of code spinup/algos/pytorch/ddpg/core.py x: 1 contributors (all time) y: 43 lines of code spinup/algos/pytorch/ddpg/ddpg.py x: 1 contributors (all time) y: 152 lines of code spinup/algos/pytorch/ppo/core.py x: 1 contributors (all time) y: 78 lines of code spinup/algos/pytorch/ppo/ppo.py x: 1 contributors (all time) y: 171 lines of code spinup/algos/pytorch/sac/core.py x: 1 contributors (all time) y: 67 lines of code spinup/algos/pytorch/sac/sac.py x: 1 contributors (all time) y: 169 lines of code spinup/algos/pytorch/td3/core.py x: 1 contributors (all time) y: 44 lines of code spinup/algos/pytorch/trpo/trpo.py x: 1 contributors (all time) y: 4 lines of code spinup/algos/pytorch/vpg/vpg.py x: 1 contributors (all time) y: 159 lines of code spinup/algos/tf1/ddpg/__init__.py x: 1 contributors (all time) y: 1 lines of code spinup/algos/tf1/ddpg/core.py x: 1 contributors (all time) y: 26 lines of code spinup/algos/tf1/ddpg/ddpg.py x: 1 contributors (all time) y: 142 lines of code spinup/algos/tf1/ppo/core.py x: 1 contributors (all time) y: 63 lines of code spinup/algos/tf1/ppo/ppo.py x: 1 contributors (all time) y: 153 lines of code spinup/algos/tf1/sac/core.py x: 1 contributors (all time) y: 50 lines of code spinup/algos/tf1/sac/sac.py x: 1 contributors (all time) y: 156 lines of code spinup/algos/tf1/td3/core.py x: 1 contributors (all time) y: 28 lines of code spinup/algos/tf1/td3/td3.py x: 1 contributors (all time) y: 155 lines of code spinup/algos/tf1/trpo/core.py x: 1 contributors (all time) y: 97 lines of code spinup/algos/tf1/trpo/trpo.py x: 1 contributors (all time) y: 188 lines of code spinup/algos/tf1/vpg/vpg.py x: 1 contributors (all time) y: 141 lines of code spinup/exercises/pytorch/problem_set_1/exercise1_1.py x: 1 contributors (all time) y: 18 lines of code spinup/exercises/pytorch/problem_set_1/exercise1_2.py x: 1 contributors (all time) y: 47 lines of code spinup/exercises/pytorch/problem_set_1/exercise1_2_auxiliary.py x: 1 contributors (all time) y: 32 lines of code spinup/exercises/pytorch/problem_set_1_solutions/exercise1_1_soln.py x: 1 contributors (all time) y: 6 lines of code spinup/exercises/pytorch/problem_set_1_solutions/exercise1_2_soln.py x: 1 contributors (all time) y: 36 lines of code spinup/exercises/pytorch/problem_set_2/exercise2_2.py x: 1 contributors (all time) y: 60 lines of code spinup/exercises/tf1/problem_set_1/exercise1_1.py x: 1 contributors (all time) y: 22 lines of code spinup/exercises/tf1/problem_set_1_solutions/exercise1_2_soln.py x: 1 contributors (all time) y: 19 lines of code spinup/run.py x: 4 contributors (all time) y: 129 lines of code spinup/user_config.py x: 1 contributors (all time) y: 14 lines of code spinup/utils/logx.py x: 1 contributors (all time) y: 166 lines of code spinup/utils/mpi_pytorch.py x: 1 contributors (all time) y: 24 lines of code spinup/utils/plot.py x: 4 contributors (all time) y: 117 lines of code spinup/version.py x: 2 contributors (all time) y: 5 lines of code spinup/utils/run_utils.py x: 3 contributors (all time) y: 239 lines of code spinup/exercises/common.py x: 1 contributors (all time) y: 7 lines of code spinup/utils/run_entrypoint.py x: 1 contributors (all time) y: 10 lines of code spinup/utils/serialization_utils.py x: 1 contributors (all time) y: 25 lines of code
239.0
lines of code
  min: 1.0
  average: 68.05
  25th percentile: 12.0
  median: 44.0
  75th percentile: 141.5
  max: 239.0
0 4.0
contributors (all time)
min: 1.0 | average: 1.16 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 4.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".